﻿/* ============================================================
   app.css  —  Paymir Global Styles
   Contains: base, brand tokens, layout, utilities, dialogs,
             print preview, and all page-specific new CSS.
   ============================================================ */

/* ============================================================
   🌐 GLOBAL BASE STYLES
   ============================================================ */
html {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--neutral-light);
    color: var(--text-primary);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    padding-top: 65px;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
    .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ============================================================
   🎨 PAYMIR BRAND COLORS
   ============================================================ */
:root {
    --brand-primary: #1E3A8A;
    --brand-secondary: #1FA8A0;
    --brand-accent: #00B5AD;
    --neutral-light: #F8FAFC;
    --neutral-mid: #E2E8F0;
    --text-primary: #1E293B;
    --text-on-dark: #FFFFFF;
}

/* ============================================================
   🔘 GLOBAL BUTTONS
   ============================================================ */
.btn-primary {
    background-color: #1E3D7B;
    border-color: #1E3D7B;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .btn-primary:hover {
        background-color: #1D7A83;
        border-color: #1D7A83;
        transform: scale(1.05);
    }

.btn-success:hover {
    background-color: #1D7A83;
    border-color: #1D7A83;
    transform: scale(1.05);
}

/* ============================================================
   ⚓ FOOTER
   ============================================================ */
.app-footer {
    background: linear-gradient(90deg, #1E3A8A 0%, #1FA8A0 100%);
    color: var(--text-on-dark);
    font-family: 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.10);
    padding: 8px 0;
    flex-shrink: 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 12px;
}

.footer-logo-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 7px;
    padding: 3px 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.18s;
}

    .footer-logo-box:hover {
        background: rgba(255, 255, 255, 0.22);
    }

    .footer-logo-box img {
        height: 20px;
        width: auto;
    }

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.70);
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .footer-copy .brand {
        color: #00B5AD;
        font-weight: 600;
    }

.footer-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

    .footer-contact-item i {
        font-size: 0.72rem;
        color: #00B5AD;
    }

    .footer-contact-item:hover {
        color: #ffffff;
    }

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        gap: 5px;
        padding: 6px 14px;
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
    }

    .footer-logo-box {
        display: none;
    }
}

/* ============================================================
   🌐 LAYOUT STRUCTURE
   ============================================================ */
html, body {
    height: 100%;
    margin: 0;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    padding-top: 0;
}

.content {
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
}

/* ============================================================
   📊 TABLES (global)
   ============================================================ */
.table-responsive {
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    overflow-x: auto;
}

.table {
    font-size: 0.95rem;
    border-radius: 0.75rem;
}

    .table th {
        background-color: #1FA8A0;
        color: #FFFFFF;
        font-weight: 500;
        border-bottom: #00796B;
        white-space: nowrap;
        vertical-align: middle;
    }

    .table td {
        white-space: nowrap;
        vertical-align: middle;
    }

.btn-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* ============================================================
   🃏 CARDS (global)
   ============================================================ */
.card {
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card-body h5 {
    font-weight: 600;
    color: #2d3e50;
}

.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #e3e6ea;
    transition: transform 0.2s ease-in-out;
}

    .bg-light:hover {
        transform: translateY(-3px);
    }

/* ============================================================
   🔵 BADGES
   ============================================================ */
.badge {
    border-radius: 1rem;
    font-size: 0.92em;
    font-weight: 600;
    padding: 0.2em 0.7em;
}

    .badge.bg-success {
        background-color: #198754 !important;
    }

    .badge.bg-warning {
        background-color: #ffc107 !important;
        color: #212529 !important;
    }

    .badge.bg-info {
        background-color: #0dcaf0 !important;
    }

.status-icon {
    font-size: 1.1em;
    vertical-align: middle;
    margin-right: 0.2em;
}

.badge-paid {
    background: #dcfce7;
    color: #16a34a;
}

/* ============================================================
   🔵 STATUS BADGE CIRCLES (Payments page)
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    flex-direction: column;
    text-align: center;
}

    .status-badge i {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .status-badge.paid {
        background: linear-gradient(135deg, #22c55e, #16a34a);
    }

    .status-badge.unpaid {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }

    .status-badge.partial {
        background: linear-gradient(135deg, #facc15, #eab308);
        color: #222;
    }

    .status-badge.pending {
        background: linear-gradient(135deg, #6b7280, #4b5563);
    }

    .status-badge:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 14px rgba(0,0,0,0.2);
    }

/* ============================================================
   📋 MODALS (global)
   ============================================================ */
.modal-title {
    margin: 0;
}

.modal-body {
    padding: 1.25rem 1rem;
    font-size: 1.05rem;
    color: #333;
    text-align: center;
}

.modal-footer {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.modal-content {
    border-radius: 1rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
}

.modal.show {
    animation: fadeIn 0.2s ease-in;
}

.modal-dialog-centered {
    animation: slideDown 0.3s ease-out;
}

.modal-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
}

/* ============================================================
   ⏳ LOADING OVERLAY
   ============================================================ */
.action-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.06);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ── Ring around logo ── */
.loading-logo-ring {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-arc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #1FA8A0;
    border-right-color: #1E3A8A;
    animation: loadingArcSpin 1s linear infinite;
}

.loading-arc-2 {
    inset: 6px;
    border-top-color: rgba(31, 168, 160, 0.30);
    border-right-color: transparent;
    border-bottom-color: rgba(30, 58, 138, 0.30);
    animation: loadingArcSpin 1.6s linear infinite reverse;
}

/* ── Logo box — wide rounded square matching actual logo shape ── */
.loading-logo-inner {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1E3A8A 0%, #1FA8A0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(31, 168, 160, 0.30);
    overflow: hidden;
    padding: 10px;
}

/* ── Shimmer progress bar ── */
.loading-bar-wrap {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1E3A8A, #1FA8A0, #2dd4bf, #1FA8A0, #1E3A8A);
    background-size: 300% auto;
    animation: loadingBarShimmer 1.8s linear infinite;
    border-radius: 2px;
}

/* ── Muted message ── */
.loading-msg {
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.05em;
    text-align: center;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

@keyframes loadingArcSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingBarShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

/* ============================================================
   🖨 PRINT PREVIEW OVERLAY
   ============================================================ */
.print-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13,110,253,0.95) 0%, rgba(108,117,125,0.95) 100%);
    z-index: 9999;
    overflow-y: auto;
    padding: 30px 20px;
    animation: fadeIn 0.3s ease-in;
}

.print-preview-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: slideUp 0.4s ease-out;
    position: relative; /* add this */
}

.receipt-content {
    background: white;
    padding: 50px 60px;
    position: relative;
}

.receipt-header {
    margin-bottom: 30px;
}

.company-name {
    font-size: 3rem;
    font-weight: 800;
    color: #0d6efd;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.company-tagline {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 10px;
}

.company-info {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.6;
}

    .company-info i {
        color: #0d6efd;
        margin-right: 5px;
    }

.voucher-badge {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #0d6efd;
}

    .voucher-badge h3 {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .voucher-badge h4 {
        font-size: 1.8rem;
        color: #0d6efd;
    }

.header-divider {
    border: none;
    height: 3px;
    background: linear-gradient(to right, #0d6efd, #6c757d);
    margin: 20px 0;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    height: 100%;
}

.info-card-header {
    background: linear-gradient(135deg, #0097A7 0%, #00838F 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .info-card-header i, .info-card-header h6 {
        color: white;
        font-weight: 600;
    }

.info-card-body {
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

    .info-row:last-child {
        border-bottom: none;
    }

.info-label {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-value {
    color: #212529;
    font-weight: 600;
    text-align: right;
}

.remarks-section {
    background: #f8f9fa;
    border-left: 4px solid #0097A7;
    border-radius: 8px;
    overflow: hidden;
}

.remarks-header {
    background: linear-gradient(135deg, #0097A7 0%, #00838F 100%);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

    .remarks-header i {
        color: white;
    }

.remarks-body {
    padding: 15px 20px;
    color: #856404;
    font-style: italic;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0097A7;
}

    .section-header i {
        font-size: 1.5rem;
        color: #0097A7;
    }

    .section-header h5 {
        color: #212529;
        font-weight: 700;
    }

.table-wrapper {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.voucher-table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

    .voucher-table thead {
        background: linear-gradient(135deg, #0097A7 0%, #00838F 100%);
        color: white;
    }

        .voucher-table thead th {
            font-weight: 600;
            padding: 15px 12px;
            border: none;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.5px;
        }

    .voucher-table tbody tr {
        transition: background-color 0.2s ease;
    }

        .voucher-table tbody tr:nth-child(even) {
            background-color: #f8f9fa;
        }

        .voucher-table tbody tr:hover {
            background-color: #e0f7fa;
        }

    .voucher-table tbody td {
        padding: 12px;
        vertical-align: middle;
        border-bottom: 1px solid #dee2e6;
    }

    .voucher-table tfoot {
        background: #f8f9fa;
        font-weight: 600;
    }

.total-row {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-top: 3px solid #0097A7;
}

    .total-row td {
        padding: 15px 12px;
        font-size: 1.1rem;
        border: none;
    }

.total-amount {
    color: #0097A7;
    font-size: 1.3rem;
}

.summary-row td {
    padding: 10px 12px;
    border: none;
    color: #6c757d;
}

.text-monospace {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.status-paid {
    color: #28a745;
    font-size: 1.3rem;
}

.status-unpaid {
    color: #dc3545;
    font-size: 1.3rem;
}

.receipt-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #dee2e6;
}

.signature-section {
    padding-top: 40px;
}

.signature-line {
    width: 200px;
    border: none;
    border-top: 2px solid #212529;
    margin: 0 0 10px;
}

.qr-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #0d6efd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    background: #f8f9fa;
}

.print-preview-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 12px 12px;
}

    .print-preview-actions .btn {
        padding: 12px 30px;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

        .print-preview-actions .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

    .print-preview-actions .btn-primary {
        background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
        border: none;
    }

/* Cancelled Watermark */
.vch-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 7rem;
    font-weight: 900;
    color: rgba(220, 53, 69, 0.15);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 8px;
    user-select: none;
    border: 8px solid rgba(220, 53, 69, 0.15);
    padding: 10px 30px;
    border-radius: 8px;
}
.vch-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: #374151;
    /* match .vch-input so it aligns with dropdowns in the grid */
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

    .vch-check:hover {
        border-color: #9ca3af;
    }

    /* checked state — makes the flag obvious at a glance */
    .vch-check:has(.vch-checkbox:checked) {
        border-color: #1E3A8A;
        background: #eff6ff; /* subtle navy tint */
    }

        .vch-check:has(.vch-checkbox:checked) span {
            color: #1E3A8A;
            font-weight: 600;
        }

.vch-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: #1E3A8A;
    cursor: pointer;
    flex-shrink: 0;
}

    .vch-checkbox:focus-visible {
        outline: 2px solid #1E3A8A;
        outline-offset: 2px;
    }
@media print {

    /* ── Hide EVERYTHING by default (navbar, footer, sidebar, etc.) ── */
    body * {
        visibility: hidden !important;
    }
    html, body {
        height: auto !important;
        overflow: hidden !important;
    }
    /* ── Show ONLY the print overlay and its children ── */
    .print-preview-overlay,
    .print-preview-overlay * {
        visibility: visible !important;
    }
    .approval-modal-backdrop,
    .approval-modal-backdrop * {
        visibility: visible !important;
    }

        /* ── Pin overlay to top-left, fill the page ── */
        .print-preview-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: auto !important;
            overflow: visible !important;
            background: white !important;
            padding: 0 !important;
            margin: 0 !important;
            z-index: 99999 !important;
        }
            /* ── Logo image ── */
            .print-preview-overlay img.logo-img {
                max-height: none !important; /* override the 55px cap on all imgs */
                height: 55px !important;
                width: 100% !important;
                object-fit: contain !important;
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

        .print-preview-container {
            box-shadow: none !important;
            max-width: 100% !important;
            border-radius: 0 !important;
            padding: 20px 60px !important;
            overflow: visible !important;
        }
        /* ── Hide action buttons ── */
        .no-print,
        .print-preview-actions {
            display: none !important;
            visibility: hidden !important;
        }
        /* ── Input fields: no borders, no underlines, plain text only ── */
        input,
        input[type="text"],
        .voucher-line-input {
            border: none !important;
            border-bottom: none !important;
            outline: none !important;
            box-shadow: none !important;
            background: transparent !important;
            -webkit-appearance: none !important;
            appearance: none !important;
            width: 100% !important;
            padding: 0 2px !important;
            border-radius: 0 !important;
        }
        /* ── Preserve table header & total-row background colors ── */
        thead tr,
        table thead tr th,
        .info-card-header,
        .total-row {
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        table thead tr {
            background-color: #1FA8A0 !important;
            color: #fff !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        table tbody tr:last-child {
            background: #f0fdfa !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }
        /* ── Table page-break rules ── */
        table {
            page-break-inside: auto;
            width: 100% !important;
        }

            table tr {
                page-break-inside: avoid;
                page-break-after: auto;
            }

            table thead {
                display: table-header-group;
            }

            table tfoot {
                display: table-footer-group;
            }
        /* ── Signature images ── */
        img {
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
            max-height: 55px !important;
            object-fit: contain !important;
        }

        .vch-watermark {
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) rotate(-35deg) !important;
            font-size: 7rem !important;
            font-weight: 900 !important;
            color: rgba(220, 53, 69, 0.15) !important;
            border: 8px solid rgba(220, 53, 69, 0.15) !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
            visibility: visible !important;
            z-index: 99999 !important;
        }

        .approval-modal-backdrop {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: auto !important;
            background: white !important;
            backdrop-filter: none !important;
            z-index: 99999 !important;
            overflow: visible !important;
        }

        .approval-modal-content {
            max-height: none !important;
            box-shadow: none !important;
            border-radius: 0 !important;
            overflow: visible !important;
        }

        .approval-modal-body {
            overflow-y: visible !important;
        }

        .modal-footer {
            display: none !important;
        }

        .timeline-marker {
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        .timeline-success {
            background: #16a34a !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        .timeline-danger {
            background: #dc2626 !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        .timeline-info {
            background: #2563eb !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        .approval-comment {
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }
    }

@media (max-width: 768px) {
    .receipt-content {
        padding: 30px 20px;
    }

    .company-name {
        font-size: 2rem;
    }

    .voucher-table {
        font-size: 0.8rem;
    }

    .voucher-badge h4 {
        font-size: 1.4rem;
    }
}


/* ============================================================
   🔐 SESSION EXPIRED DIALOG 
   ============================================================ */
.session-expired-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-expired-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: session-pop 0.25s ease-out;
}

@keyframes session-pop {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.session-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff3cd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

    .session-icon i {
        font-size: 1.8rem;
        color: #f59e0b;
    }

.session-expired-dialog h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.session-time {
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.session-message {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.session-btn {
    width: 100%;
    padding: 0.6rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* ============================================================
   ✍ DIGITAL SIGNATURE
   ============================================================ */
/* ============================================================
   DigitalSignature.razor.css  —  Paymir Brand Design
   ============================================================ */
.dsg-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
}

.dsg-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dsg-header {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
}

.dsg-header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .dsg-header-title i {
        font-size: 0.95rem;
    }

.dsg-body {
    padding: 20px 24px 10px;
}

.dsg-intro {
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.dsg-intro-text {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
}

.dsg-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.87rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
   
}

    .dsg-alert.show {
        opacity: 1;
        transform: translateY(0);
    }

.dsg-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

.dsg-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #14532d;
}

.dsg-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: 0.78rem;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

    .dsg-alert-close:hover {
        opacity: 1;
    }

.dsg-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.dsg-label {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .dsg-label i {
        color: var(--brand-secondary);
        font-size: 0.8rem;
    }

.dsg-upload-area {
    border: 1.5px dashed #b2dfdb;
    border-radius: 10px;
    background: #f0fdfa;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .dsg-upload-area:hover {
        border-color: var(--brand-secondary);
        background: #e6f7f5;
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(26, 156, 140, 0.12);
    }

.dsg-upload-icon {
    font-size: 1.6rem;
    color: var(--brand-secondary);
    display: block;
    margin-bottom: 5px;
    animation: dsgBounce 2s ease-in-out infinite;
}

@keyframes dsgBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.dsg-upload-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 2px;
}

.dsg-upload-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0 0 10px;
}

.dsg-file-input {
    width: 100%;
    height: 34px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 0.82rem;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #374151;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .dsg-file-input:focus {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10);
    }

.dsg-preview-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .dsg-preview-label i {
        color: var(--brand-secondary);
        font-size: 0.72rem;
    }

.dsg-preview-box {
    border: 1.5px solid #e0f2f0;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fffe, #f0fdfa);
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dsg-preview-empty {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .dsg-preview-empty i {
        font-size: 1rem;
        color: #b2dfdb;
    }

.dsg-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    margin: 14px -24px -10px;
}

.dsg-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 20px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

    .dsg-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.dsg-btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
}

    .dsg-btn-primary:hover:not(:disabled) {
        background: #1e3d7b;
        transform: translateY(-1px);
        color: #ffffff;
    }

.dsg-btn-outline {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid var(--neutral-mid);
}

    .dsg-btn-outline:hover {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }/* ============================================================
   📊 VOUCHER TRACKING MODAL
   ============================================================ */
/* ============================================================
   📊 VOUCHER TRACKING MODAL  —  brand-aligned
   ============================================================ */
.vt-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(15, 23, 42, 0.45); /* same as .approval-modal-backdrop */
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: vtFadeIn .2s ease;
}

.vt-modal {
    width: 100%;
    max-width: 950px;
    background: #fff;
    border-radius: 14px; /* was 18px — matches approval modal */
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    animation: vtSlide .38s cubic-bezier(.16,1,.3,1);
}

/* Header — the standard Paymir gradient, 90deg like every other header */
.vt-header {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vt-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.vt-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Close button — matches .crud-modal-close; no !important needed
   because the markup doesn't carry the Bootstrap .btn class */
.vt-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0;
    transition: all 0.15s;
    flex-shrink: 0;
}

    .vt-close-btn:hover {
        background: rgba(255, 255, 255, 0.22);
        color: #ffffff;
    }

/* Stats strip — light, matching .vl-stat-* rather than a dark band */
.vt-stats-strip {
    background: #f8fafc;
    border-bottom: 1px solid var(--neutral-mid);
    padding: 12px 20px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
}

.vt-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vt-stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vt-stat-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

    /* Per-status stat colours — same five values as .vl-appr-* */
    .vt-stat-val.is-approved {
        color: #16a34a;
    }

    .vt-stat-val.is-awaiting {
        color: #d97706;
    }

    .vt-stat-val.is-draft {
        color: #64748b;
    }

    .vt-stat-val.is-rejected {
        color: #dc2626;
    }

.vt-table-wrap {
    overflow-x: auto;
    max-height: 420px;
    overflow-y: auto;
}

    .vt-table-wrap::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .vt-table-wrap::-webkit-scrollbar-track {
        background: #f8fafc;
    }

    .vt-table-wrap::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 8px;
    }

.vt-table {
    width: 100%;
    border-collapse: collapse;
}

    .vt-table thead {
        position: sticky;
        top: 0;
        z-index: 2;
    }

        /* Teal header — identical to .vl-table-card, .rr-table, .mx-table, .bl-table */
        .vt-table thead th {
            background-color: var(--brand-secondary);
            color: #ffffff;
            font-size: 0.81rem;
            font-weight: 600;
            letter-spacing: normal;
            text-transform: none;
            padding: 10px 12px;
            white-space: nowrap;
            border: none;
        }

    .vt-table tbody tr {
        background: #ffffff;
    }

        .vt-table tbody tr:hover td {
            background-color: #f8fafc;
        }

    .vt-table td {
        padding: 10px 12px;
        font-size: 0.875rem;
        color: var(--text-primary);
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
    }

    .vt-table tbody tr:last-child td {
        border-bottom: none;
    }

/* Voucher number — same treatment as .voucher-number in the grid */
.vt-num {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* Status badges — same palette as .rr-badge-* / .hm-chip-* */
.vt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

    .vt-badge::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        opacity: 0.65;
        flex-shrink: 0;
    }

.vt-badge-approved {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.vt-badge-awaiting {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.vt-badge-draft {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.vt-badge-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.vt-owner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Avatar — brand gradient instead of the indigo one-off */
.vt-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vt-owner-txt {
    font-size: 0.83rem;
    color: #475569;
    font-weight: 500;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pending-days pills — prefixed to stop the bare .days-* globals leaking */
.vt-days {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    border: 1px solid transparent;
}

.vt-days-high {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.vt-days-mid {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.vt-days-low {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.vt-days-zero {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.vt-amount {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* Footer — matches .vch-action-bar / .rg-action-bar */
.vt-footer {
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Close/secondary button — matches .vl-btn-refresh */
.vt-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 18px;
    border: 1.5px solid var(--neutral-mid);
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 0.87rem;
    font-weight: 500;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.18s;
}

    .vt-btn:hover {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }
/* ============================================================
   📊 DASHBOARD PILL CARDS
   ============================================================ */
.dash-card-wrapper {
    background: #ffffff;
    border: 1px solid #e8eaf0;
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.07), 0 24px 48px rgba(0,0,0,0.04);
}

.dash-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #0d2d5e, #0a9e9e);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: opacity 0.2s;
    user-select: none;
}

    .dash-filter-toggle:hover {
        opacity: 0.92;
    }

.dash-filter-toggle-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-filter-icon {
    font-size: 18px;
    color: white;
}

.dash-filter-hint {
    font-size: 15px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.dash-chevron-icon {
    font-size: 18px;
    color: white;
    transition: transform 0.3s;
}

.dash-date-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    background: #f1f5fb;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #dce4f0;
    width: 100%;
}

.dash-date-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

    .dash-date-field .form-control {
        width: 100% !important;
        height: 38px;
    }

    .dash-date-field label {
        font-size: 13px;
        font-weight: 600;
        color: #444;
    }

    .dash-date-field.dash-refresh {
        flex: 1;
    }

.dash-refresh-btn {
    background: linear-gradient(135deg, #0A1172, #00BCD4) !important;
    color: white !important;
    border: none !important;
    padding: 8px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    width: 100%;
    white-space: nowrap;
    box-shadow: 0 4px 0px #060b4a, 0 6px 16px rgba(10,17,114,0.35) !important;
    transition: all 0.18s ease;
}

    .dash-refresh-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 0px #060b4a, 0 10px 22px rgba(10,17,114,0.4) !important;
        opacity: 1 !important;
    }

    .dash-refresh-btn:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0px #060b4a, 0 4px 10px rgba(10,17,114,0.3) !important;
    }

.dash-cards-container {
    margin-top: 20px;
    padding-top: 8px;
}

.dash-cards-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    padding-top: 8px;
}

.dash-pill-card {
    display: flex;
    align-items: center;
    border-radius: 50px;
    overflow: hidden;
    min-width: 160px;
    max-width: 200px;
    flex: 1;
    cursor: pointer;
    position: relative;
    border-bottom: 4px solid transparent;
    transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s ease;
    animation: dashCardPop 0.4s cubic-bezier(.34,1.56,.64,1) both;
}

    .dash-pill-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .dash-pill-card:nth-child(2) {
        animation-delay: 0.10s;
    }

    .dash-pill-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .dash-pill-card:nth-child(4) {
        animation-delay: 0.20s;
    }

    .dash-pill-card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .dash-pill-card:nth-child(6) {
        animation-delay: 0.30s;
    }

    .dash-pill-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(155deg, rgba(255,255,255,0.20) 0%, transparent 55%);
        border-radius: 50px;
        pointer-events: none;
        z-index: 1;
    }

    .dash-pill-card:hover {
        transform: translateY(-5px) scale(1.025);
    }

    .dash-pill-card:active {
        transform: translateY(2px) scale(0.98);
    }

.clickable-card {
    cursor: pointer;
}

.dash-pill-icon {
    align-self: stretch;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    min-width: 55px;
    font-size: 22px;
    color: white;
    background: rgba(0,0,0,0.14);
    position: relative;
    z-index: 2;
}

.dash-pill-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.30);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.dash-pill-body {
    padding: 8px 14px 8px 12px;
    color: white;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.dash-pill-count {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dash-pill-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.90;
    margin-top: 2px;
}

.dash-pill-amount {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.72;
    margin-top: 2px;
}

.dash-pill-blue {
    background: linear-gradient(135deg, #85001e, #DC143C);
    box-shadow: 0 4px 0px #4a0011, 0 8px 24px rgba(220,20,60,0.45);
    border-bottom-color: #4a0011;
}

    .dash-pill-blue:hover {
        box-shadow: 0 6px 0px #4a0011, 0 0px 35px rgba(220,20,60,0.55);
    }

.dash-pill-green {
    background: linear-gradient(135deg, #880E4F, #F48FB1);
    box-shadow: 0 4px 0px #560a34, 0 8px 24px rgba(136,14,79,0.45);
    border-bottom-color: #560a34;
}

    .dash-pill-green:hover {
        box-shadow: 0 6px 0px #560a34, 0 0px 35px rgba(136,14,79,0.55);
    }

.dash-pill-gray {
    background: linear-gradient(135deg, #37474F, #B0BEC5);
    box-shadow: 0 4px 0px #1c2b31, 0 8px 24px rgba(55,71,79,0.45);
    border-bottom-color: #1c2b31;
}

    .dash-pill-gray:hover {
        box-shadow: 0 6px 0px #1a2d2d, 0 0px 35px rgba(112,128,144,0.55);
    }

.dash-pill-amber {
    background: linear-gradient(135deg, #BF360C, #FFB74D);
    box-shadow: 0 4px 0px #7a2108, 0 8px 24px rgba(191,54,12,0.45);
    border-bottom-color: #7a2108;
}

    .dash-pill-amber:hover {
        box-shadow: 0 6px 0px #7a2108, 0 0px 35px rgba(191,54,12,0.55);
    }

.dash-pill-teal {
    background: linear-gradient(135deg, #004D40, #4DD0E1);
    box-shadow: 0 4px 0px #002b25, 0 8px 24px rgba(0,77,64,0.45);
    border-bottom-color: #002b25;
}

    .dash-pill-teal:hover {
        box-shadow: 0 6px 0px #002b25, 0 0px 35px rgba(0,77,64,0.55);
    }

.dash-pill-red {
    background: linear-gradient(135deg, #7F0000, #F48FB1);
    box-shadow: 0 4px 0px #4a0000, 0 8px 24px rgba(127,0,0,0.45);
    border-bottom-color: #4a0000;
}

    .dash-pill-red:hover {
        box-shadow: 0 6px 0px #4a004d, 0 0px 35px rgba(255,0,255,0.55);
    }

/* ============================================================
   🗂 INVOICE / VOUCHER TABS
   ============================================================ */
.invoice-tabs-container {
    background: #fff;
    padding: 0;
    margin-bottom: 0.25rem;
}

.invoice-tabs {
    display: inline-flex;
    gap: -0.35rem;
    align-items: flex-end;
}

.tab-button {
    width: 300px;
    padding: .35rem .7rem;
    font-size: 1rem;
    border-radius: .5rem .5rem 0 0;
    border: 1px solid #e6e9ef;
    border-bottom: none;
    background: rgba(255,255,255,0.95);
    color: #374151;
    min-width: auto;
    box-shadow: none;
    height: 40px;
    margin-bottom: -4px;
}

    .tab-button:hover {
        background: #f3f4f6;
        color: var(--brand-primary);
    }

    .tab-button.active {
        background-color: #1FA8A0;
        color: var(--text-on-dark);
        border-color: #1FA8A0;
        box-shadow: none;
    }

.tab-badge {
    padding: .18rem .5rem;
    font-size: .78rem;
}

.voucher-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .voucher-tabs {
        flex-direction: column;
        align-items: stretch;
    }

        .voucher-tabs > .d-flex {
            justify-content: flex-start;
        }

    .btn.btn-primary.ms-auto {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        width: 100%;
    }

    .invoice-tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }
}

/* ============================================================
   📋 INVOICE LIST
   ============================================================ */
.filters-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.invoice-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1rem;
}

.action-btn {
    padding: .5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all .3s ease;
}

    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30,58,138,.3);
    }

.loading-container, .empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 2px solid #f3f4f6;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-info {
    color: #6b7280;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

    .pagination-controls .btn {
        min-width: 40px;
        font-weight: 600;
        transition: all .2s ease;
    }

    .pagination-controls .btn-primary {
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
        border: none;
    }

    .pagination-controls .btn-outline-primary:hover:not(:disabled) {
        background: var(--brand-primary);
        color: #fff;
        transform: translateY(-2px);
    }

    .pagination-controls .btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.invoice-link {
    cursor: pointer;
    color: var(--brand-primary);
}

    .invoice-link:hover {
        color: #0a58ca;
        text-decoration: underline;
        transform: translateX(2px);
    }

    .invoice-link:active {
        color: #084298;
    }

@media (max-width: 576px) {
    .status-icon {
        font-size: .62rem;
    }
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        text-align: center;
    }

    .pagination-controls {
        justify-content: center;
    }
}

/* ============================================================
   🔑 FORGOT PASSWORD LINK
   ============================================================ */
.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-primary);
    position: relative;
    transition: color 0.2s ease;
}

    .forgot-password-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1.5px;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
        border-radius: 2px;
        transition: width 0.25s ease;
    }

    .forgot-password-link:hover {
        color: var(--brand-secondary);
    }

        .forgot-password-link:hover::after {
            width: 100%;
        }

.forgot-arrow {
    font-size: 0.78rem;
    transition: transform 0.2s ease;
}

.forgot-password-link:hover .forgot-arrow {
    transform: translateX(3px);
}

/* ============================================================
   🔍 ACCOUNT HEAD DROPDOWN
   ============================================================ */
.account-head-option:hover {
    background-color: #f0f7ff;
    color: #0d6efd;
}

/* ============================================================
   💠 REPORT CARDS
   ============================================================ */
.report-card {
    border-radius: 1rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .report-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

@media (max-width: 768px) {
    .report-card {
        margin-bottom: 1rem;
    }
}

/* ============================================================
   🎡 LOGO / LOADER
   ============================================================ */
.rounded-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.logo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.loader-circle {
    position: absolute;
    width: 230px;
    height: 230px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    z-index: 1;
}

/* ============================================================
   🎨 MISC UTILITIES
   ============================================================ */
.dropdown-item {
    cursor: pointer;
}

.btn-lg {
    border-radius: 2rem;
    padding: 0.75rem 2rem;
}

.approval-card {
    transition: all 0.25s ease-in-out;
}

    .approval-card:hover {
        box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.06);
    }

.bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* ============================================================
   🎞 ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes backgroundMove {
    0% {
        transform: translate(0,0);
    }

    100% {
        transform: translate(50px,50px);
    }
}

@keyframes signatureModalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes signatureStripShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes signatureFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes signatureRippleExpand {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes dsCardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dsStripShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes dsFingerprintFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes dsRippleExpand {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes dsUploadBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes vtFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes vtSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dashCardPop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   📱 GLOBAL RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.75rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .card-body h5 {
        font-size: 1rem;
    }
}


/* ============================================================
   NavMenu.razor.css
   ============================================================ */
/* ==========================================================
   PAYMIR NAVBAR
   ========================================================== */

.paymir-nav {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
    height: 52px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ==========================================================
   LOGO
   ========================================================== */

.paymir-nav-logo {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    margin-right: 18px;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(255,255,255,.10);
    transition: .15s ease;
}

    .paymir-nav-logo:hover {
        background: rgba(255,255,255,.18);
    }

    .paymir-nav-logo img {
        height: 22px;
        width: auto;
    }

/* ==========================================================
   NAV LINKS
   ========================================================== */

.paymir-nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 7px 12px !important;
    border-radius: 8px;
    color: rgba(255,255,255,.92) !important;
    font-size: .87rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: .15s ease;
}

    .paymir-nav-link:hover,
    .paymir-nav-link.active {
        background: rgba(255,255,255,.12) !important;
        color: #fff !important;
    }

    .paymir-nav-link i {
        font-size: .87rem;
    }

/* ==========================================================
   DROPDOWNS
   ========================================================== */

.paymir-dropdown {
    position: relative;
}

.paymir-dropdown-toggle {
    cursor: pointer;
}

.paymir-dropdown.open > .paymir-dropdown-toggle {
    background: rgba(255,255,255,.16) !important;
    color: #fff !important;
}

.paymir-chevron {
    font-size: .65rem;
    opacity: .8;
    transition: transform .2s ease;
}

.paymir-dropdown.open .paymir-chevron {
    transform: rotate(180deg);
}

/* ==========================================================
   MENU
   ========================================================== */

.paymir-dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 1px);
    left: 0;
    min-width: 180px;
    width: max-content;
    padding: 4px !important;
    border: none !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.20), 0 2px 6px rgba(0,0,0,.10) !important;
    z-index: 1100;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity .15s ease, transform .15s ease;
}

    .paymir-dropdown-menu.open {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
    }

.dropdown-menu-end.paymir-dropdown-menu {
    left: auto !important;
    right: 0 !important;
}

/* ==========================================================
   MENU ITEMS
   ========================================================== */

.paymir-dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    color: rgba(255,255,255,.92) !important;
    font-size: .87rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: .15s ease;
}

    .paymir-dropdown-item:hover,
    .paymir-dropdown-item.active {
        background: rgba(255,255,255,.15) !important;
        color: #fff !important;
    }

    .paymir-dropdown-item i {
        font-size: .87rem;
        opacity: .8;
    }

/* ==========================================================
   DIVIDER
   ========================================================== */

.paymir-dropdown-divider {
    margin: 4px 0 !important;
    border-top: 1px solid rgba(255,255,255,.20) !important;
}

/* ==========================================================
   DANGER ITEM
   ========================================================== */

.paymir-dropdown-danger {
    color: #fca5a5 !important;
}

    .paymir-dropdown-danger:hover {
        background: rgba(220,38,38,.30) !important;
        color: #fee2e2 !important;
    }

/* ==========================================================
   USER BUTTON
   ========================================================== */

.paymir-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .87rem;
    font-weight: 600;
    cursor: pointer;
    transition: .15s ease;
}

    .paymir-user-btn:hover {
        background: rgba(255,255,255,.20);
    }

.paymir-user-avatar {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    border: 1px solid rgba(255,255,255,.30);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
}

/* ==========================================================
   LOGIN BUTTON
   ========================================================== */

.paymir-login-btn {
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.30) !important;
}

    .paymir-login-btn:hover {
        background: rgba(255,255,255,.22) !important;
    }

/* ==========================================================
   TOGGLER
   ========================================================== */

.paymir-toggler {
    border-color: rgba(255,255,255,.4) !important;
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 991px) {

    .paymir-nav-link {
        width: 100%;
        margin-bottom: 2px;
    }

    .paymir-user-btn {
        width: 100%;
        justify-content: flex-start;
        margin-top: 6px;
    }

    .paymir-dropdown-menu {
        position: static !important;
        display: block !important;
        margin-top: 4px !important;
        background: rgba(255,255,255,.08) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        opacity: 1 !important;
        transform: none !important;
        width: 100%;
    }

    .paymir-dropdown-item {
        color: rgba(255,255,255,.92) !important;
        font-size: .87rem !important;
        font-weight: 600 !important;
    }

        .paymir-dropdown-item:hover {
            background: rgba(255,255,255,.12) !important;
            color: #fff !important;
        }

    .paymir-chevron {
        display: none;
    }
}
/* ============================================================
   Home.razor.css
   ============================================================ */
/* ============================================================
   Home.razor.css  —  Paymir Brand Home Page
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ══ STATE 1: Redirect spinner ════════════════════════════════ */

.hm-redirect-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}

.hm-redirect-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* Brand-coloured spinner */
.hm-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--neutral-mid);
    border-top-color: var(--brand-primary);
    animation: hm-spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}

@keyframes hm-spin {
    to {
        transform: rotate(360deg);
    }
}

.hm-redirect-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.hm-redirect-sub {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* ══ STATE 2: Home (OP role) ══════════════════════════════════ */

/* ── Hero banner ─────────────────────────────────────────────── */

.hm-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.hm-hero-greeting {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
}

.hm-hero-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hm-hero-sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ── Page content wrapper ────────────────────────────────────── */
.hm-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}


.hm-section-label {
    font-size: 0.71rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

/* ── Quick Access grid ───────────────────────────────────────── */
.hm-qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ── Quick Access card base ──────────────────────────────────── */
.hm-qa-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 14px;
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

    /* Top accent bar */
    .hm-qa-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        border-radius: 14px 14px 0 0;
    }

    .hm-qa-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
    }

/* Accent bar colours */
.hm-qa-blue::before {
    background: linear-gradient(90deg, var(--brand-primary), #2563eb);
}

.hm-qa-teal::before {
    background: linear-gradient(90deg, var(--brand-secondary), #00B5AD);
}

.hm-qa-amber::before {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

/* ── Icon box ────────────────────────────────────────────────── */
.hm-qa-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.35rem;
}

.hm-qa-icon-blue {
    background: #EFF6FF;
    color: var(--brand-primary);
}

.hm-qa-icon-teal {
    background: #E6F7F6;
    color: var(--brand-secondary);
}

.hm-qa-icon-amber {
    background: #FFFBEB;
    color: #d97706;
}

/* ── Card text ───────────────────────────────────────────────── */
.hm-qa-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.hm-qa-desc {
    font-size: 0.80rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* ── Card button ─────────────────────────────────────────────── */
.hm-qa-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.79rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.hm-qa-btn-blue {
    background: #EFF6FF;
    color: var(--brand-primary);
    border-color: #bfdbfe;
}

    .hm-qa-btn-blue:hover {
        background: var(--brand-primary);
        color: #ffffff;
        border-color: var(--brand-primary);
    }

.hm-qa-btn-teal {
    background: #E6F7F6;
    color: #0F6B65;
    border-color: #99e6e0;
}

    .hm-qa-btn-teal:hover {
        background: var(--brand-secondary);
        color: #ffffff;
        border-color: var(--brand-secondary);
    }

.hm-qa-btn-amber {
    background: #FFFBEB;
    color: #92400e;
    border-color: #fde68a;
}

    .hm-qa-btn-amber:hover {
        background: #d97706;
        color: #ffffff;
        border-color: #d97706;
    }

/* ── Overview grid ───────────────────────────────────────────── */
.hm-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hm-overview-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    overflow: hidden;
}

.hm-overview-header {
    background: var(--brand-secondary);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: 0.81rem;
    font-weight: 600;
}

    .hm-overview-header i {
        font-size: 0.81rem;
    }

.hm-overview-body {
    padding: 4px 14px 6px;
}

.hm-ov-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
}

    .hm-ov-row:last-child {
        border-bottom: none;
    }

.hm-ov-label {
    color: #475569;
    font-weight: 500;
}

.hm-ov-val {
    font-weight: 700;
    font-size: 0.88rem;
}

.hm-ov-blue {
    color: var(--brand-primary);
}

.hm-ov-green {
    color: #16a34a;
}

.hm-ov-amber {
    color: #d97706;
}

.hm-ov-red {
    color: #dc2626;
}

.hm-ov-muted {
    color: #64748b;
}

/* ── Status chips ────────────────────────────────────────────── */
.hm-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.71rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.hm-chip-await {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.hm-chip-appr {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.hm-chip-rej {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hm-hero {
        padding: 2rem 1rem 1.75rem;
    }

    .hm-hero-title {
        font-size: 1.25rem;
    }

    .hm-qa-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hm-overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hm-page {
        padding: 1.25rem 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hm-qa-grid {
        grid-template-columns: 1fr;
    }

    .hm-overview-grid {
        grid-template-columns: 1fr;
    }
}
/* ── Card loading spinner ── */
.hm-card-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 1rem;
    color: #94a3b8;
    font-size: 0.78rem;
}

.hm-card-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2.5px solid var(--neutral-mid);
    border-top-color: var(--brand-secondary);
    animation: hm-spin 0.8s linear infinite;
}

/* ── Card empty state ── */
.hm-card-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 1.5rem 1rem;
    color: #94a3b8;
    font-size: 0.78rem;
}

    .hm-card-empty i {
        font-size: 1.5rem;
        color: #cbd5e1;
    }

/* ── Chip for draft status ── */
.hm-chip-draft {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}
/* ============================================================
   Beneficiary.razor.css
   ============================================================ */
/* ============================================================
   Beneficiary.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.bn-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
}

/* ── Card ────────────────────────────────────────────────────── */
.bn-card {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Gradient header ─────────────────────────────────────────── */
.bn-header {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
}

.bn-header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .bn-header-title i {
        font-size: 0.95rem;
    }

/* ── Body ────────────────────────────────────────────────────── */
.bn-body {
    padding: 22px 24px 10px;
}

/* ── Error alert ─────────────────────────────────────────────── */
.bn-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.87rem;
    margin-bottom: 1.1rem;
    border-radius: 0 8px 8px 0;
}

.bn-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

/* ── 2-column form grid ──────────────────────────────────────── */
.bn-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}

.bn-field {
    display: flex;
    flex-direction: column;
}

/* Full-width override for Notes */
.bn-field-full {
    grid-column: 1 / -1;
}

/* ── Label ───────────────────────────────────────────────────── */
.bn-label {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: block;
}

.bn-required {
    color: #e53e3e;
}

.bn-validation {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 3px;
}

/* ── Input / select — !important beats Bootstrap form-control ── */
.bn-input {
    height: 36px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    font-size: 0.87rem !important;
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--text-primary) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    line-height: 1.5 !important;
}

    .bn-input:focus {
        border-color: var(--brand-primary) !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10) !important;
        outline: none !important;
        background: #ffffff !important;
    }

    .bn-input::placeholder {
        color: #9ca3af !important;
        opacity: 1 !important;
    }

/* Textarea */
.bn-textarea {
    height: auto !important;
    min-height: 72px !important;
    padding: 8px 10px !important;
    resize: vertical;
    line-height: 1.5 !important;
}

/* ── Action bar ──────────────────────────────────────────────── */
.bn-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    margin: 14px -24px -10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.bn-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 20px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.bn-btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
}

    .bn-btn-primary:hover {
        background: #1e3d7b;
        transform: translateY(-1px);
        color: #ffffff;
    }

.bn-btn-outline {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid var(--neutral-mid);
}

    .bn-btn-outline:hover {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bn-body {
        padding: 16px 14px 10px;
    }

    .bn-action-bar {
        margin: 14px -14px -10px;
        padding: 12px 14px;
    }

    .bn-form-grid {
        grid-template-columns: 1fr;
    }

    .bn-field-full {
        grid-column: 1;
    }
}

/* ============================================================
   BeneficiariesList.razor.css
   ============================================================ */
/* ============================================================
   BeneficiariesList.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────────── */
.bl-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.bl-page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

    .bl-page-title i {
        color: var(--brand-secondary);
        font-size: 1.05rem;
    }

.bl-page-sub {
    font-size: 0.79rem;
    color: #64748b;
    margin-top: 3px;
}

/* ── Add button ──────────────────────────────────────────────── */
.bl-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    transition: all 0.18s ease;
    white-space: nowrap;
}

    .bl-btn-add:hover {
        background: #1e3d7b;
        transform: translateY(-1px);
    }

/* ── Filter card ─────────────────────────────────────────────── */
.bl-filter-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    padding: 0.9rem 1.25rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bl-filter-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.bl-filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

/* ── Search input ────────────────────────────────────────────── */
.bl-search-wrap {
    position: relative;
}

.bl-search-ico {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
}

.bl-search-input {
    width: 100%;
    height: 36px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 10px 0 32px;
    font-size: 0.87rem;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-primary);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .bl-search-input:focus {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10);
    }

    .bl-search-input::placeholder {
        color: #9ca3af;
    }

/* ── Table card ──────────────────────────────────────────────── */
.bl-table-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Table ───────────────────────────────────────────────────── */
.bl-table thead th {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 10px 14px;
    white-space: nowrap;
    border: none !important;
}

.bl-table tbody td {
    padding: 11px 14px;
    font-size: 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9 !important;
    color: var(--text-primary);
}

.bl-table tbody tr:last-child td {
    border-bottom: none !important;
}

.bl-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* ── Cell content ────────────────────────────────────────────── */
.bl-cell-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.bl-cell-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.bl-cell-contact {
    font-size: 0.83rem;
    color: var(--text-primary);
}

.bl-cell-bank {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bl-cell-iban {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── Voucher group chip ──────────────────────────────────────── */
.bl-group-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.73rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: #eff6ff;
    color: var(--brand-primary);
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

/* ── Payable amount ──────────────────────────────────────────── */
.bl-amount {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #16a34a;
    font-size: 0.88rem;
}

/* ── Action buttons ──────────────────────────────────────────── */
.bl-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.bl-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #eff6ff;
    color: var(--brand-primary);
    border: 1px solid #bfdbfe;
    transition: all 0.18s ease;
    white-space: nowrap;
}

    .bl-btn-edit:hover {
        background: var(--brand-primary);
        color: #ffffff;
        border-color: var(--brand-primary);
    }

.bl-btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #ffffff;
    color: #dc2626;
    border: 1.5px solid #fecaca;
    transition: all 0.18s ease;
}

    .bl-btn-delete:hover {
        background: #fef2f2;
        border-color: #fca5a5;
    }

/* ── Empty / loading state ───────────────────────────────────── */
.bl-empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .bl-empty-state i {
        font-size: 2.5rem;
    }

    .bl-empty-state p {
        margin: 0;
    }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bl-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .bl-btn-add {
        width: 100%;
        justify-content: center;
    }

    .bl-cell-iban {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }
}

/* ============================================================
   Collection.razor.css
   ============================================================ */
/* ============================================================
   Collection.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.cs-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

/* ── Card ────────────────────────────────────────────────────── */
.cs-card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-mid);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* ── Gradient header ─────────────────────────────────────────── */
.cs-header {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cs-header-title i {
        font-size: 0.95rem;
    }

.cs-header-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Body ────────────────────────────────────────────────────── */
.cs-body {
    padding: 3rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
}

/* ── Animated icon ───────────────────────────────────────────── */
.cs-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cs-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(31, 168, 160, 0.25);
    animation: cs-ripple 2.4s ease-out infinite;
}

.cs-icon-ring-2 {
    animation-delay: 1.2s;
}

@keyframes cs-ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.cs-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EFF6FF, #E6F7F6);
    border: 1.5px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--brand-primary);
    animation: cs-float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes cs-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* ── Title & description ─────────────────────────────────────── */
.cs-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.cs-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 1.75rem;
}

/* ── Progress bar ────────────────────────────────────────────── */
.cs-progress-wrap {
    width: 100%;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.cs-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.cs-progress-track {
    height: 6px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}

.cs-progress-fill {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 6px;
    animation: cs-progress 2.5s ease-in-out infinite alternate;
}

@keyframes cs-progress {
    from {
        width: 60%;
    }

    to {
        width: 75%;
    }
}

/* ── Feature pills ───────────────────────────────────────────── */
.cs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.cs-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid var(--neutral-mid);
    color: #475569;
    white-space: nowrap;
}

    .cs-pill i {
        color: var(--brand-secondary);
        font-size: 0.72rem;
    }

/* ── Notify Me button ────────────────────────────────────────── */
.cs-notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

    .cs-notify-btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .cs-body {
        padding: 2rem 1.25rem 2rem;
    }

    .cs-title {
        font-size: 1.1rem;
    }

    .cs-pills {
        gap: 6px;
    }
}

/* ============================================================
   About.razor.css
   ============================================================ */
/* ============================================================
   About.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.ab-page {
    background: var(--neutral-light);
    min-height: calc(100vh - 52px);
}

/* ── Hero banner ─────────────────────────────────────────────── */
.ab-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .ab-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.07) 0%, transparent 60%);
        pointer-events: none;
    }

.ab-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.ab-hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
}

.ab-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.25;
}

.ab-hero-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin: 0;
}

    .ab-hero-desc strong {
        color: #ffffff;
        font-weight: 600;
    }

/* ── Content wrapper ─────────────────────────────────────────── */
.ab-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2.5rem;
}

/* ── Stats strip ─────────────────────────────────────────────── */
.ab-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 8px;
}

.ab-stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.ab-stat-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
}

.ab-stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-top: 3px;
}

.ab-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--neutral-mid);
    flex-shrink: 0;
}

/* ── Two-column grid ─────────────────────────────────────────── */
.ab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ── Card (Objectives / Benefits) ───────────────────────────── */
.ab-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ab-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1.5px solid #f1f5f9;
}

.ab-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Icon boxes ──────────────────────────────────────────────── */
.ab-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ab-icon-blue {
    background: #EFF6FF;
    color: var(--brand-primary);
}

.ab-icon-teal {
    background: #E6F7F6;
    color: var(--brand-secondary);
}

.ab-icon-amber {
    background: #FFFBEB;
    color: #d97706;
}

/* ── List ────────────────────────────────────────────────────── */
.ab-list {
    list-style: none;
    margin: 0;
    padding: 8px 16px 12px;
}

.ab-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.55;
    border-bottom: 1px solid #f8fafc;
}

    .ab-list-item:last-child {
        border-bottom: none;
    }

.ab-check {
    color: var(--brand-primary);
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.ab-check-teal {
    color: var(--brand-secondary);
}

/* ── Impact card (full width) ────────────────────────────────── */
.ab-impact {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    padding: 16px 20px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ab-impact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f1f5f9;
}

.ab-impact-text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ── Pill tags ───────────────────────────────────────────────── */
.ab-impact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ab-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid var(--neutral-mid);
    color: #475569;
    white-space: nowrap;
}

    .ab-pill i {
        color: var(--brand-secondary);
        font-size: 0.72rem;
    }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ab-hero-title {
        font-size: 1.35rem;
    }

    .ab-grid {
        grid-template-columns: 1fr;
    }

    .ab-stat-divider {
        display: none;
    }

    .ab-stats {
        gap: 12px;
    }

    .ab-content {
        padding: 1.25rem 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .ab-hero {
        padding: 2rem 1rem 1.75rem;
    }

    .ab-hero-title {
        font-size: 1.2rem;
    }
}

/* ============================================================
   ReconciliationReport.razor.css
   ============================================================ */
/* ============================================================
   ReconciliationReport.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.rr-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

/* ── Page Header ─────────────────────────────────────────────── */
.rr-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.rr-page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

    .rr-page-title i {
        color: var(--brand-secondary);
        font-size: 1.05rem;
    }

.rr-page-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 3px;
}

/* Print button */
.rr-btn-print {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    transition: all 0.18s ease;
    white-space: nowrap;
}

    .rr-btn-print:hover {
        background: #1e3d7b;
        transform: translateY(-1px);
    }

/* ── Filters card ────────────────────────────────────────────── */
.rr-filters-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    padding: 0.9rem 1.25rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rr-filter-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.rr-filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

.rr-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.rr-field {
    display: flex;
    flex-direction: column;
}

.rr-field-btn {
    justify-content: flex-end;
}

.rr-invisible-label {
    visibility: hidden;
}

/* Label */
.rr-label {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .rr-label i {
        color: var(--brand-secondary);
        font-size: 0.78rem;
    }

/* Input / select */
.rr-input {
    width: 100%;
    height: 36px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 0.87rem;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-primary);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

    .rr-input:focus {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10);
    }

/* Search button */
.rr-btn-search {
    height: 36px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
}

    .rr-btn-search:hover {
        opacity: 0.91;
        transform: translateY(-1px);
    }

/* ── Loading state ───────────────────────────────────────────── */
.rr-loading {
    text-align: center;
    padding: 3.5rem 1rem;
}

.rr-loading-text {
    margin-top: 0.75rem;
    font-size: 0.87rem;
    color: #64748b;
}

/* ── Section header ──────────────────────────────────────────── */
.rr-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.25rem 0 0.6rem;
}

.rr-section-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rr-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

/* ── Table card ──────────────────────────────────────────────── */
.rr-table-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
}

/* ── Table ───────────────────────────────────────────────────── */
.rr-table thead th {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 10px 12px;
    white-space: nowrap;
    border: none !important;
}

.rr-table tbody td {
    padding: 9px 12px;
    font-size: 0.85rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9 !important;
    color: var(--text-primary);
}

.rr-table tbody tr:last-child td {
    border-bottom: none !important;
}

.rr-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* Total row */
.rr-total-row td {
    background-color: #f0f7ff !important;
    font-weight: 700;
    border-top: 1.5px solid #bfdbfe !important;
}

/* ── Cell types ──────────────────────────────────────────────── */
.rr-cell-label {
    font-weight: 600;
    color: var(--text-primary);
}

.rr-bank-name {
    font-weight: 600;
    color: var(--brand-primary);
}

.rr-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
}

.rr-iban {
    color: #64748b;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: table-cell;
}

.rr-amount {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.83rem;
}

.rr-amount-total {
    color: var(--brand-primary);
    font-weight: 700;
}

.rr-sr {
    color: #94a3b8;
    font-size: 0.78rem;
}

.rr-date {
    font-size: 0.81rem;
    color: #475569;
    white-space: nowrap;
}

/* ── Status badges ───────────────────────────────────────────── */
.rr-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.71rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.rr-badge-posted {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.rr-badge-pending {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.rr-badge-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.rr-badge-reversed {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.rr-badge-default {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

/* ── Empty state ─────────────────────────────────────────────── */
.rr-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

    .rr-empty i {
        font-size: 2rem;
    }

    .rr-empty p {
        margin: 0;
    }

/* ── Footer ──────────────────────────────────────────────────── */
.rr-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid var(--neutral-mid);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

    .rr-footer i {
        color: var(--brand-secondary);
    }

.rr-footer-divider {
    color: var(--neutral-mid);
    font-size: 0.85rem;
}

/* ── Print styles ────────────────────────────────────────────── */
@media print {

    /* ── Force A4, no margins ── */
/*    @page {
        size: A4 landscape;
        margin: 0;
    }*/

    /* ── Hide EVERYTHING by default (navbar, footer, sidebar, etc.) ── */
    body * {
        visibility: hidden !important;
    }

    /* ── Show ONLY the rr-page and its children ── */
    .rr-page,
    .rr-page * {
        visibility: visible !important;
    }

    /* ── Pin rr-page to top-left, fill the page ── */
    .rr-page {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: white !important;
        padding: 16px 20px !important;
        margin: 0 !important;
        z-index: 99999 !important;
        max-width: 100% !important;
    }

    /* ── Hide no-print elements (header, filters, print button) ── */
    .no-print {
        display: none !important;
        visibility: hidden !important;
    }

    /* ── Table cards ── */
    .rr-table-card {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* ── Preserve table header colors ── */
    .rr-table thead th {
        background-color: var(--brand-secondary) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Preserve total row color ── */
    .rr-total-row td {
        background-color: #f0f7ff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── Section headers ── */
    .rr-section-header {
        margin-top: 1rem !important;
    }

    /* ── Footer ── */
    .rr-footer {
        border: none !important;
        background: none !important;
        margin-top: 1rem !important;
        font-size: 0.7rem !important;
        visibility: visible !important;
    }

    /* ── Tables page-break rules ── */
    .rr-table {
        width: 100% !important;
        page-break-inside: auto;
    }

        .rr-table tr {
            page-break-inside: avoid;
            page-break-after: auto;
        }

        .rr-table thead {
            display: table-header-group;
        }

        .rr-table tfoot {
            display: table-footer-group;
        }

    /* ── Badges — preserve colors ── */
    .rr-badge {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* ── No input borders ── */
    input,
    input[type="text"],
    input[type="date"],
    select {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .rr-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rr-field-btn {
        grid-column: 1 / -1;
    }

    .rr-btn-search {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .rr-filter-grid {
        grid-template-columns: 1fr;
    }

    .rr-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .rr-btn-print {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   MxCallReport.razor.css
   ============================================================ */
/* ============================================================
   MxCallReport.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.mx-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

/* ── Page Header ─────────────────────────────────────────────── */
.mx-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.mx-page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

    .mx-page-title i {
        color: var(--brand-secondary);
        font-size: 1.05rem;
    }

.mx-page-sub {
    font-size: 0.79rem;
    color: #64748b;
    margin-top: 3px;
}

/* ── Refresh button ──────────────────────────────────────────── */
.mx-btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid var(--neutral-mid);
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    transition: all 0.18s ease;
    white-space: nowrap;
}

    .mx-btn-refresh:hover:not(:disabled) {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }

    .mx-btn-refresh:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ── Loading ─────────────────────────────────────────────────── */
.mx-loading {
    text-align: center;
    padding: 3.5rem 1rem;
}

.mx-loading-text {
    margin-top: 0.75rem;
    font-size: 0.87rem;
    color: #64748b;
}

/* ── Error alert ─────────────────────────────────────────────── */
.mx-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.87rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.mx-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

/* ── Summary stat cards ──────────────────────────────────────── */
.mx-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.25rem;
}

.mx-stat-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-top-width: 3px;
    border-radius: 10px;
    padding: 14px 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: default;
}

    .mx-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
    }

/* Accent border colours */
.mx-stat-blue {
    border-top-color: var(--brand-primary);
}

.mx-stat-teal {
    border-top-color: var(--brand-secondary);
}

.mx-stat-green {
    border-top-color: #16a34a;
}

.mx-stat-red {
    border-top-color: #dc2626;
}

/* Icon box */
.mx-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mx-stat-blue .mx-stat-icon {
    background: #EFF6FF;
    color: var(--brand-primary);
}

.mx-stat-teal .mx-stat-icon {
    background: #E6F7F6;
    color: var(--brand-secondary);
}

.mx-stat-green .mx-stat-icon {
    background: #F0FDF4;
    color: #16a34a;
}

.mx-stat-red .mx-stat-icon {
    background: #FEF2F2;
    color: #dc2626;
}

.mx-stat-body {
    min-width: 0;
}

.mx-stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.mx-stat-blue .mx-stat-val {
    color: var(--brand-primary);
}

.mx-stat-teal .mx-stat-val {
    color: var(--brand-secondary);
}

.mx-stat-green .mx-stat-val {
    color: #16a34a;
}

.mx-stat-red .mx-stat-val {
    color: #dc2626;
}

.mx-stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Section header ──────────────────────────────────────────── */
.mx-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
}

.mx-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

/* ── Table card ──────────────────────────────────────────────── */
.mx-table-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Table ───────────────────────────────────────────────────── */
.mx-table thead th {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 10px 14px;
    white-space: nowrap;
    border: none !important;
}

.mx-table tbody td {
    padding: 10px 14px;
    font-size: 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9 !important;
    color: var(--text-primary);
}

.mx-table tbody tr:last-child td {
    border-bottom: none !important;
}

.mx-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* ── Cell types ──────────────────────────────────────────────── */
.mx-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: #64748b;
}

.mx-bank {
    font-weight: 600;
    color: var(--brand-primary);
}

.mx-amount {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.88rem;
    color: #16a34a;
}

.mx-date {
    font-size: 0.81rem;
    color: #475569;
    white-space: nowrap;
}

/* ── Status badges ───────────────────────────────────────────── */
.mx-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.71rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.mx-badge-posted {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.mx-badge-pending {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.mx-badge-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.mx-badge-reversed {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.mx-badge-default {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

/* ── Empty state ─────────────────────────────────────────────── */
.mx-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

    .mx-empty i {
        font-size: 2rem;
    }

    .mx-empty p {
        margin: 0;
    }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .mx-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mx-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mx-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .mx-btn-refresh {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .mx-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Login.razor.css
   ============================================================ */
/* ============================================================
   Login.razor.css  —  Paymir Brand Design
   Scoped styles. Intentionally overrides site.css login styles
   since those use generic class names.
   ============================================================ */

/* ── Full-page wrapper ───────────────────────────────────────── */
.lp-page {
    /*min-height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: #f0f4f8;*/
}

/* ── Two-column container ────────────────────────────────────── */
.lp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1020px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: lp-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lp-slide-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Left panel ──────────────────────────────────────────────── */
.lp-left {
    background: linear-gradient(145deg, #0f2460 0%, #1E3A8A 45%, #1FA8A0 100%);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    /* Decorative blurred circles */
    .lp-left::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        pointer-events: none;
    }

    .lp-left::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        pointer-events: none;
    }

/* Logo row */
.lp-left-top {
    position: relative;
    z-index: 1;
}

.lp-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.lp-logo-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
}

    .lp-logo-box img {
        height: 22px;
        width: auto;
        object-fit: contain;
    }

.lp-org {
    font-size: 0.73rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Hero text */
.lp-hero {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.lp-tagline {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* Feature items */
.lp-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.75rem;
}

.lp-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    padding: 8px 13px;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.18s;
}

    .lp-feature:hover {
        background: rgba(255, 255, 255, 0.17);
    }

    .lp-feature i {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.85);
        flex-shrink: 0;
    }

/* Badges */
.lp-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.71rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* ── Right panel ─────────────────────────────────────────────── */
.lp-right {
    background: #ffffff;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-form-card {
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
}

/* Form header */
.lp-form-header {
    margin-bottom: 1.25rem;
}

.lp-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.lp-form-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

/* ── Alerts ──────────────────────────────────────────────────── */
.lp-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 0 8px 8px 0;
    font-size: 0.83rem;
    margin-bottom: 1rem;
}

.lp-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

.lp-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #14532d;
}

.lp-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: 0.78rem;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

    .lp-alert-close:hover {
        opacity: 1;
    }

/* ── Field + label ───────────────────────────────────────────── */
.lp-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.85rem;
}

.lp-label {
    font-size: 0.81rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .lp-label i {
        color: var(--brand-secondary);
        font-size: 0.8rem;
    }

.lp-validation {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 3px;
}

/* ── Input ───────────────────────────────────────────────────── */
.lp-input {
    width: 100%;
    height: 40px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 9px !important;
    padding: 0 10px !important;
    font-size: 0.9rem !important;
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--text-primary) !important;
    background: #ffffff !important;
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

    .lp-input:focus {
        border-color: var(--brand-primary) !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10) !important;
        background: #ffffff !important;
    }

    .lp-input:disabled {
        background: #f3f4f6 !important;
        color: #9ca3af !important;
        cursor: not-allowed;
    }

    .lp-input::placeholder {
        color: #9ca3af !important;
        opacity: 1 !important;
    }

/* ── Password wrapper ────────────────────────────────────────── */
.lp-pw-wrap {
    position: relative;
}

    .lp-pw-wrap .lp-input {
        padding-right: 38px !important;
    }

.lp-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

    .lp-pw-toggle:hover {
        color: var(--brand-primary);
    }

    .lp-pw-toggle:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

/* ── Forgot password link ────────────────────────────────────── */
.lp-form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    margin-top: -4px;
}

/* Uses .forgot-password-link from site.css — already designed */

/* ── Submit button ───────────────────────────────────────────── */
.lp-submit {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

    .lp-submit:hover:not(:disabled) {
        opacity: 0.92;
        transform: translateY(-1px);
    }

    .lp-submit:disabled {
        opacity: 0.72;
        cursor: not-allowed;
    }

/* ── Security note ───────────────────────────────────────────── */
.lp-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.74rem;
    color: #166534;
    margin-top: 0.85rem;
    font-weight: 500;
}

    .lp-security i {
        font-size: 0.78rem;
    }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 680px) {
    .lp-container {
        grid-template-columns: 1fr;
        max-width: 420px;
        border-radius: 16px;
    }

    /* Hide left panel on very small screens */
    .lp-left {
        display: none;
    }

    .lp-right {
        padding: 2rem 1.5rem;
    }
}

/* ============================================================
   OTP Verification — extends lp- block
   ============================================================ */
.otp-channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

    .otp-channel-badge.whatsapp {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #15803d;
    }

    .otp-channel-badge.sms {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1d4ed8;
    }

.otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-box {
    width: 44px;
    height: 50px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    color: #1E3A8A;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .otp-box:focus {
        border-color: #1E3A8A;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10);
    }

    .otp-box.filled {
        border-color: #1FA8A0;
        background: #f0fdfc;
    }

    .otp-box:disabled {
        background: #f3f4f6;
        cursor: not-allowed;
    }

.otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 6px;
}

.otp-timer-count {
    font-weight: 700;
    color: #dc2626;
    font-variant-numeric: tabular-nums;
    min-width: 28px;
}

    .otp-timer-count.safe {
        color: #16a34a;
    }

.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.otp-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1E3A8A;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    position: relative;
    transition: color 0.2s ease;
}

    .otp-link-btn::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1.5px;
        background: linear-gradient(90deg, #1E3A8A, #1FA8A0);
        border-radius: 2px;
        transition: width 0.25s ease;
    }

    .otp-link-btn:hover {
        color: #1FA8A0;
    }

        .otp-link-btn:hover::after {
            width: 100%;
        }

    .otp-link-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .otp-link-btn.muted {
        color: #64748b;
    }

        .otp-link-btn.muted:hover {
            color: #1E3A8A;
        }
/* ============================================================
   Register.razor.css
   ============================================================ */
/* ============================================================
   Register.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.rg-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
}

/* ── Card ────────────────────────────────────────────────────── */
.rg-card {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Gradient header ─────────────────────────────────────────── */
.rg-header {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
}

.rg-header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .rg-header-title i {
        font-size: 0.95rem;
    }

/* ── Body ────────────────────────────────────────────────────── */
.rg-body {
    padding: 22px 24px 10px;
}

/* ── Alerts ──────────────────────────────────────────────────── */
.rg-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.87rem;
    margin-bottom: 1.1rem;
    border-radius: 0 8px 8px 0;
}

.rg-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

.rg-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #14532d;
}

.rg-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: 0.78rem;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

    .rg-alert-close:hover {
        opacity: 1;
    }

/* ── Form grid — 2 columns ───────────────────────────────────── */
.rg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}

.rg-field {
    display: flex;
    flex-direction: column;
}

/* ── Label ───────────────────────────────────────────────────── */
.rg-label {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .rg-label i {
        color: var(--brand-secondary);
        font-size: 0.8rem;
    }

.rg-required {
    color: #e53e3e;
}

.rg-validation {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 3px;
}

/* ── Input / select — !important overrides Bootstrap ────────── */
.rg-input {
    height: 36px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    font-size: 0.87rem !important;
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--text-primary) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    line-height: 1.5 !important;
}

    .rg-input:focus {
        border-color: var(--brand-primary) !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10) !important;
        outline: none !important;
        background: #ffffff !important;
    }

    .rg-input:disabled {
        background: #f3f4f6 !important;
        color: #9ca3af !important;
        cursor: not-allowed;
    }

    .rg-input::placeholder {
        color: #9ca3af !important;
        opacity: 1 !important;
    }

/* ── Phone number wrapper ────────────────────────────────────── */
.rg-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .rg-phone-wrap:focus-within {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10);
    }

.rg-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #f9fafb;
    border-right: 1.5px solid #e5e7eb;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Phone input inside wrapper — remove individual border */
.rg-phone-input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
}

    .rg-phone-input:focus {
        border: none !important;
        box-shadow: none !important;
    }

/* ── Password wrapper ────────────────────────────────────────── */
.rg-pw-wrap {
    position: relative;
}

    .rg-pw-wrap .rg-input {
        padding-right: 38px !important;
        width: 100%;
    }

.rg-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

    .rg-pw-toggle:hover {
        color: var(--brand-primary);
    }

    .rg-pw-toggle:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

/* ── Action bar ──────────────────────────────────────────────── */
.rg-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    margin: 14px -24px -10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.rg-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 20px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.rg-btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
}

    .rg-btn-primary:hover:not(:disabled) {
        background: #1e3d7b;
        transform: translateY(-1px);
        color: #ffffff;
    }

    .rg-btn-primary:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.rg-btn-outline {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid var(--neutral-mid);
}

    .rg-btn-outline:hover {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }

/* ── Unauthorized state ──────────────────────────────────────── */
.rg-unauthorized {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
}

.rg-unauthorized-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.rg-unauth-icon {
    font-size: 2.5rem;
    color: #dc2626;
    display: block;
    margin-bottom: 1rem;
}

.rg-unauth-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.rg-unauth-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}
/* ── Select fields (Department / SOE / Role dropdowns) ──────── */
.rg-select {
    height: 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #1E293B;
    background-color: #fafbfd;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

    .rg-select:focus {
        border-color: #1E3A8A;
        box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
        background-color: #ffffff;
        outline: none;
    }

    .rg-select:disabled {
        background-color: #f1f5f9;
        color: #94a3b8;
        cursor: not-allowed;
        opacity: 0.75;
    }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rg-body {
        padding: 16px 14px 10px;
    }

    .rg-action-bar {
        margin: 14px -14px -10px;
        padding: 12px 14px;
    }

    .rg-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Profile.razor.css
   ============================================================ */
/* ============================================================
   Profile.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.pf-page {
    max-width: 860px;
    margin: 0 auto;
}

/* ── Loading state ───────────────────────────────────────────── */
.pf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: calc(100vh - 120px);
    color: #64748b;
    font-size: 0.87rem;
}

.pf-loading-text {
    color: #64748b;
}

/* ── Hero Banner ─────────────────────────────────────────────── */
.pf-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 16px;
    padding: 1.75rem 1.5rem 0;
    margin-bottom: 1.1rem;
    position: relative;
    overflow: hidden;
}

    /* Decorative circle */
    .pf-hero::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        pointer-events: none;
    }

/* Avatar + info row */
.pf-avatar-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.pf-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    border: 3px solid rgba(255, 255, 255, 0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.pf-avatar-info {
    padding-bottom: 4px;
}

.pf-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    line-height: 1.2;
}

.pf-username {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 7px;
    font-family: 'Courier New', monospace;
}

.pf-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
}

    .pf-verified i {
        font-size: 0.7rem;
    }

/* Stats strip */
.pf-stats {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 -1.5rem;
    position: relative;
    z-index: 1;
}

.pf-stat {
    flex: 1;
    padding: 11px 16px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

    .pf-stat:last-child {
        border-right: none;
    }

.pf-stat-val {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-stat-lbl {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

/* ── Section label ───────────────────────────────────────────── */
.pf-section-label {
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 1rem 0 0.6rem;
    display: block;
}

/* ── Info card ───────────────────────────────────────────────── */
.pf-info-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pf-info-header {
    background: var(--brand-secondary);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
}

    .pf-info-header i {
        font-size: 0.78rem;
    }

/* 2-column info grid */
.pf-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pf-info-cell {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}

    /* Even cells — no right border */
    .pf-info-cell:nth-child(even) {
        border-right: none;
    }

    /* Last two cells — no bottom border */
    .pf-info-cell:nth-last-child(-n+2) {
        border-bottom: none;
    }

    /* Edge case: if odd total, last cell spans both columns */
    .pf-info-cell:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        border-right: none;
    }

.pf-info-lbl {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 3px;
}

.pf-info-val {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-val-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.80rem;
    color: var(--brand-primary);
}

/* ── Action buttons grid ─────────────────────────────────────── */
.pf-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pf-action-btn {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-radius: 12px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.18s ease;
}

    .pf-action-btn:hover {
        background: #f8fafc;
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
        color: inherit;
        text-decoration: none;
    }

/* Icon box */
.pf-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.pf-ai-blue {
    background: #EFF6FF;
    color: var(--brand-primary);
}

.pf-ai-green {
    background: #EAF3DE;
    color: #3B6D11;
}

.pf-ai-amber {
    background: #FAEEDA;
    color: #854F0B;
}

.pf-ai-teal {
    background: #E1F5EE;
    color: #0F6E56;
}

.pf-action-body {
    flex: 1;
    min-width: 0;
}

.pf-action-title {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.pf-action-desc {
    font-size: 0.72rem;
    color: #94a3b8;
}

.pf-action-arrow {
    color: #CBD5E1;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: transform 0.18s ease, color 0.18s ease;
}

.pf-action-btn:hover .pf-action-arrow {
    transform: translateX(3px);
    color: var(--brand-secondary);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 560px) {
    .pf-actions-grid {
        grid-template-columns: 1fr;
    }

    .pf-info-grid {
        grid-template-columns: 1fr;
    }

    .pf-info-cell {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }

        .pf-info-cell:last-child {
            border-bottom: none;
        }

        .pf-info-cell:nth-last-child(-n+2) {
            border-bottom: 1px solid #f1f5f9;
        }

        .pf-info-cell:last-child {
            border-bottom: none !important;
        }

    .pf-stat-val {
        font-size: 0.72rem;
    }
}

/* ============================================================
   Voucher.razor.css
   ============================================================ */
/* ============================================================
   Voucher.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.vch-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
    /*padding: 1.25rem 1rem;*/
}

/* ── Main card ───────────────────────────────────────────────── */
.vch-card {
    width: 100%;
    max-width: 1600px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Gradient header bar ─────────────────────────────────────── */
.vch-header {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vch-header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .vch-header-title i {
        font-size: 0.95rem;
    }

.vch-header-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
}
.vch-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vch-voucher-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1E3A8A;
    padding: 12px 16px;
    background: #EFF6FF;
    border-left: 4px solid #1FA8A0;
    border-radius: 6px;
}

    .vch-voucher-title-bar i {
        font-size: 1.2rem;
        color: #1FA8A0;
        flex-shrink: 0;
    }
/* ── Body padding ────────────────────────────────────────────── */
.vch-body {
    padding: 20px 24px 8px;
}

/* ── Section gap ─────────────────────────────────────────────── */
.vch-section-gap {
    margin-bottom: 1.1rem;
}

/* ── Form grids ──────────────────────────────────────────────── */
.vch-form-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 1rem;
}

/*  Header fields row: auto-fit so 3 or 4 items both look correct
    when disbursement period is conditionally rendered              */
.vch-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Two explicit columns — used for Bank Name + Remarks */
.vch-grid-2 {
    grid-template-columns: 1fr 1fr;
}

/* Add-beneficiary form: strict 2-col */
.vch-grid-2-strict {
    grid-template-columns: 1fr 1fr;
}

/* ── Field + label ───────────────────────────────────────────── */
.vch-field {
    display: flex;
    flex-direction: column;
}

.vch-label {
    display: block;
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.vch-required {
    color: #e53e3e;
}

.vch-validation {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 3px;
}

/* ── Inputs & selects ────────────────────────────────────────── */
/*  Applied both as .vch-input and by overriding .form-control
    inside .vch-card so Bootstrap Blazor inputs (InputText,
    InputSelect, InputNumber, InputTextArea) pick up the same
    styling automatically when class="form-control" is used.     */

.vch-input,
.vch-card .form-control,
.vch-card .form-select {
    width: 100% !important;
    height: 36px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    font-size: 0.87rem !important;
    line-height: 1.5 !important;
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--text-primary) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

    .vch-input:focus,
    .vch-card .form-control:focus,
    .vch-card .form-select:focus {
        border-color: var(--brand-primary) !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10) !important;
        outline: none !important;
        background: #ffffff !important;
    }

    .vch-input:disabled,
    .vch-card .form-control:disabled,
    .vch-card .form-select:disabled {
        background: #f3f4f6 !important;
        color: #9ca3af !important;
        cursor: not-allowed;
        opacity: 1 !important; /* Bootstrap sets opacity:1 but some themes change it */
    }

    .vch-input::placeholder,
    .vch-card .form-control::placeholder {
        color: #9ca3af !important;
        opacity: 1 !important;
    }

    /* Textarea — override height back to auto */
    .vch-card textarea.form-control,
    .vch-input.vch-textarea {
        height: auto !important;
        min-height: 64px !important;
        padding: 8px 10px !important;
        resize: vertical;
        line-height: 1.5 !important;
    }

/* Smaller variant — table cell inputs */
.vch-input-sm,
.vch-card .vch-table .form-control,
.vch-card .vch-table .form-select {
    height: 28px !important;
    font-size: 0.79rem !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    line-height: 1.4 !important;
}

/* Textarea standalone class */
.vch-textarea {
    height: auto !important;
    min-height: 64px !important;
    padding: 8px 10px !important;
    resize: vertical;
}

/* Read-only bank name field */
.vch-readonly-field {
    height: 36px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text-primary);
    background: #f9fafb;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Alert banners ───────────────────────────────────────────── */
.vch-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.87rem;
    margin-bottom: 1rem;
    position: relative;
}

.vch-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 0 8px 8px 0;
    color: #7f1d1d;
}

.vch-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 8px 8px 0;
    color: #1e40af;
}

.vch-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    font-size: 0.8rem;
    padding: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

    .vch-alert-close:hover {
        opacity: 1;
    }

/* ── Section header (teal) ───────────────────────────────────── */
.vch-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-secondary);
    padding: 8px 14px;
    border-radius: 8px 8px 0 0;
}

.vch-section-title {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .vch-section-title i {
        font-size: 0.82rem;
    }

.vch-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
}

/* ── Section body ────────────────────────────────────────────── */
.vch-section-body {
    border: 1px solid var(--neutral-mid);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    padding: 12px 14px;
    overflow: hidden; /* clip the bottom corners on tables */
}

/* No-padding variant for tables flush to section edges */
.vch-section-body-flush {
    border: 1px solid var(--neutral-mid);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    overflow: hidden;
    padding: 0;
}

/* ── Add-row button (lives inside teal section header) ───────── */
.vch-btn-add {
    display: inline-flex;
    /*align-items: center;*/
    gap: 4px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    /*padding: 3px 10px;*/
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    transition: background 0.15s;
}

    .vch-btn-add:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.30);
    }

    .vch-btn-add:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ── Tables ──────────────────────────────────────────────────── */
.vch-table {
    margin-bottom: 0;
}

    .vch-table thead th {
        background-color: var(--brand-secondary);
        color: #ffffff;
        font-weight: 600;
        font-size: 0.78rem;
        padding: 9px 12px;
        white-space: nowrap;
        border-bottom: none;
        border-color: var(--brand-secondary);
    }

    .vch-table tbody td {
        padding: 8px 12px;
        font-size: 0.85rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        color: var(--text-primary);
    }

    .vch-table tbody tr:last-child td {
        border-bottom: none;
    }

    .vch-table tbody tr:hover td {
        background-color: #f8fafc;
    }

/* IBAN monospace */
.vch-iban {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--brand-primary);
}

/* ── Status badges ───────────────────────────────────────────── */
.vch-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.vch-status-paid {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.vch-status-unpaid {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.vch-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ── Total row (flush bottom of table card) ──────────────────── */
.vch-total-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 9px 14px;
    border-top: 1.5px solid var(--neutral-mid);
    background: #f8fafc;
}

.vch-total-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.vch-total-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* ── Payment Summary stat strip ──────────────────────────────── */
.vch-stat-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.vch-stat-mini {
    background: #f8fafc;
    border: 1px solid var(--neutral-mid);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}

.vch-stat-mini-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.2;
}

.vch-stat-mini-danger .vch-stat-mini-val {
    color: #dc2626;
}

.vch-stat-mini-success .vch-stat-mini-val {
    color: #16a34a;
}

.vch-stat-mini-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-top: 3px;
}

/* ── Deduction breakdown ─────────────────────────────────────── */
.vch-deduction-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.vch-deduction-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.vch-deduction-scroll {
    max-height: 130px;
    overflow-y: auto;
}

/* ── Approval Timeline ───────────────────────────────────────── */
.vch-timeline-body {
    max-height: 240px;
    overflow-y: auto;
    padding: 10px 12px;
}

.vch-tl-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.vch-tl-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.vch-tl-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.vch-tl-dot-fwd {
    background: #eff6ff;
    border: 1px solid var(--brand-secondary);
    color: var(--brand-secondary);
}

.vch-tl-dot-appr {
    background: #f0fdf4;
    border: 1px solid #16a34a;
    color: #16a34a;
}

.vch-tl-dot-rej {
    background: #fef2f2;
    border: 1px solid #dc2626;
    color: #dc2626;
}

.vch-tl-line {
    width: 1px;
    flex-grow: 1;
    background: var(--brand-secondary);
    margin-top: 4px;
    min-height: 14px;
    opacity: 0.45;
}

.vch-tl-content {
    flex: 1;
    padding-bottom: 10px;
}

.vch-tl-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.vch-tl-name {
    font-size: 0.79rem;
    font-weight: 500;
    color: var(--text-primary);
}

.vch-tl-date {
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
}

.vch-tl-comment {
    font-size: 0.73rem;
    color: #64748b;
    font-style: italic;
    margin-top: 3px;
    line-height: 1.4;
}

/* ── Forwarded-by banner ─────────────────────────────────────── */
.vch-fwd-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 10px 10px 0;
    overflow: hidden;
    margin-bottom: 1.1rem;
}

.vch-fwd-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 6px;
}

.vch-fwd-banner-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.vch-fwd-banner-to {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.vch-fwd-banner-body {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    background: #f0f7ff;
    border-top: 1px solid #bfdbfe;
    font-size: 0.87rem;
    color: #334155;
}

    .vch-fwd-banner-body i {
        color: var(--brand-primary);
        font-size: 0.9rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

/* ── Beneficiary search bar ──────────────────────────────────── */
/*  Replaces the Bootstrap input-group entirely to avoid height
    conflicts between .input-group-text and .vch-input            */
.vch-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.vch-search-field-wrap {
    position: relative;
    flex: 1;
}

.vch-search-ico {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

/* The search input gets extra left padding for the icon */
.vch-search-input {
    padding-left: 32px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.vch-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

    .vch-empty-state i {
        font-size: 1.5rem;
    }

/* ── Action bar ──────────────────────────────────────────────── */
.vch-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    margin: 12px -24px -8px;
    flex-wrap: wrap;
}

/* ── Button system ───────────────────────────────────────────── */
.vch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

    .vch-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        transform: none;
    }

.vch-btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
}

.vch-btn-success {
    background: #16a34a;
    color: #ffffff;
}

.vch-btn-warning {
    background: #d97706;
    color: #ffffff;
}

.vch-btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.vch-btn-secondary {
    background: #64748b;
    color: #ffffff;
}

.vch-btn-primary:hover:not(:disabled) {
    background: #1e3d7b;
    transform: translateY(-1px);
}

.vch-btn-success:hover:not(:disabled) {
    background: #15803d;
    transform: translateY(-1px);
}

.vch-btn-warning:hover:not(:disabled) {
    background: #b45309;
    transform: translateY(-1px);
}

.vch-btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-1px);
}

.vch-btn-secondary:hover:not(:disabled) {
    background: #475569;
    transform: translateY(-1px);
}

.vch-btn-outline {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid var(--neutral-mid);
}

    .vch-btn-outline:hover:not(:disabled) {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }

/* Icon-only compact button */
.vch-btn-icon {
    padding: 5px 8px;
    border-radius: 6px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .vch-grid-auto {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .vch-body {
        padding: 14px 14px 8px;
    }

    .vch-action-bar {
        margin: 12px -14px -8px;
        padding: 12px 14px;
        justify-content: stretch;
    }

    .vch-btn {
        flex: 1;
        justify-content: center;
    }

    .vch-grid-2 {
        grid-template-columns: 1fr;
    }

    .vch-grid-2-strict {
        grid-template-columns: 1fr;
    }

    .vch-grid-auto {
        grid-template-columns: 1fr 1fr;
    }

    .vch-stat-strip {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .vch-grid-auto {
        grid-template-columns: 1fr;
    }

    .vch-stat-strip {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   VouchersList.razor.css
   ============================================================ */
/* ============================================================
   VouchersList.razor.css  —  Paymir Brand Design
   Scoped styles. Inherits global tokens from site.css.
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────────── */
.vl-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 8px;
}

.vl-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

    .vl-page-title i {
        color: var(--brand-secondary);
        font-size: 1.1rem;
    }

.vl-page-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 3px;
}

/* ── Shared Filter Card ──────────────────────────────────────── */
.vl-filters-card {
    background: #ffffff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--neutral-mid);
    margin-bottom: 1rem;
    overflow: hidden;
}

/* ── Filter header — static (OP view) ── */
.vl-filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1.5px solid #f1f5f9;
}

/* ── Filter header — clickable toggle (Approval user date filter) ── */
.vl-filter-header-toggle {
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    border-bottom: none;
}

    .vl-filter-header-toggle:hover {
        background: #f8fafc;
    }

    /* When date row is open, restore bottom border */
    .vl-filter-header-toggle + .vl-date-row {
        border-top: 1.5px solid #f1f5f9;
    }

.vl-filter-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vl-filter-header-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

.vl-chevron-icon {
    color: #94a3b8;
    font-size: 0.88rem;
    transition: transform 0.2s;
}

/* ── Filter grid (OP 4-col) ── */
.vl-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0 16px 14px;
}

/* ── Date row (Approval user — 3-col: from, to, button) ── */
.vl-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 12px 16px 14px;
}

.vl-filter-group {
    display: flex;
    flex-direction: column;
}

.vl-filter-btn-group {
    justify-content: flex-end;
}

.vl-invisible-label {
    visibility: hidden;
}

.vl-filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .vl-filter-label i {
        color: var(--brand-secondary);
        font-size: 0.8rem;
    }

/* Search icon overlay */
.vl-search-wrap {
    position: relative;
}

.vl-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
}

/* Input / select base */
.vl-input,
.vl-select {
    width: 100%;
    height: 38px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.88rem;
    color: var(--text-primary);
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.vl-input {
    padding: 0 10px 0 32px;
}

.vl-select {
    padding: 0 10px;
    cursor: pointer;
}

.vl-date-input {
    padding: 0 10px;
}

.vl-input:focus,
.vl-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10);
    outline: none;
}

.vl-input::placeholder {
    color: #9ca3af;
}

/* Apply Filter button (inside date filter card) */
.vl-btn-apply {
    height: 38px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
    font-size: 0.87rem;
    font-weight: 600;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
}

    .vl-btn-apply:hover {
        opacity: 0.91;
        transform: translateY(-1px);
    }

/* ── Summary Stat Cards Grid ─────────────────────────────────── */
.vl-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 1rem;
}

.vl-stat-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-top-width: 3px;
    border-radius: 10px;
    padding: 14px 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

    .vl-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
    }

.vl-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.vl-stat-body {
    min-width: 0;
}

.vl-stat-count {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.vl-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vl-stat-amt {
    font-size: 0.67rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Stat card top accent bar ─────────────────────────────────
   Each card gets a 3px gradient stripe at the top that mirrors
   the Paymir navbar gradient pattern.
   ──────────────────────────────────────────────────────────── */
.vl-stat-card {
    border-top: 3px solid transparent;
}

/* Total — brand primary blue (#1E3A8A) */
.vl-stat-total {
    border-top-color: #1E3A8A;
}

    .vl-stat-total .vl-stat-icon {
        background: #EFF6FF;
        color: #1E3A8A;
    }

    .vl-stat-total .vl-stat-count,
    .vl-stat-total .vl-stat-label,
    .vl-stat-total .vl-stat-amt {
        color: #1E3A8A;
    }

/* Disbursement — brand secondary teal (#1FA8A0) */
.vl-stat-disb {
    border-top-color: #1FA8A0;
}

    .vl-stat-disb .vl-stat-icon {
        background: #E6F7F6;
        color: #1FA8A0;
    }

    .vl-stat-disb .vl-stat-count,
    .vl-stat-disb .vl-stat-label,
    .vl-stat-disb .vl-stat-amt {
        color: #0F6B65;
    }

/* Draft — neutral slate (inactive/incomplete) */
.vl-stat-draft {
    border-top-color: #94a3b8;
}

    .vl-stat-draft .vl-stat-icon {
        background: #F1F5F9;
        color: #64748b;
    }

    .vl-stat-draft .vl-stat-count,
    .vl-stat-draft .vl-stat-label,
    .vl-stat-draft .vl-stat-amt {
        color: #475569;
    }

/* Awaiting — amber (pending/caution) */
.vl-stat-await {
    border-top-color: #d97706;
}

    .vl-stat-await .vl-stat-icon {
        background: #FFFBEB;
        color: #d97706;
    }

    .vl-stat-await .vl-stat-count,
    .vl-stat-await .vl-stat-label,
    .vl-stat-await .vl-stat-amt {
        color: #92400e;
    }

/* Approved — green (success) */
.vl-stat-appr {
    border-top-color: #16a34a;
}

    .vl-stat-appr .vl-stat-icon {
        background: #F0FDF4;
        color: #16a34a;
    }

    .vl-stat-appr .vl-stat-count,
    .vl-stat-appr .vl-stat-label,
    .vl-stat-appr .vl-stat-amt {
        color: #14532d;
    }

/* Rejected — red (danger) */
.vl-stat-rej {
    border-top-color: #dc2626;
}

    .vl-stat-rej .vl-stat-icon {
        background: #FEF2F2;
        color: #dc2626;
    }

    .vl-stat-rej .vl-stat-count,
    .vl-stat-rej .vl-stat-label,
    .vl-stat-rej .vl-stat-amt {
        color: #7f1d1d;
    }

/* ── Approver Info Banner ────────────────────────────────────── */
.vl-approver-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 8px 8px 0;
    padding: 9px 14px;
    font-size: 0.87rem;
    color: #1e40af;
    margin-bottom: 0.65rem;
}

    .vl-approver-banner i {
        font-size: 0.95rem;
        flex-shrink: 0;
    }

/* ── Tab Row ──────────────────────────────────────────────────── */
.vl-tab-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
}

.vl-tabs {
    display: inline-flex;
    align-items: flex-end;
}

.vl-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.38rem 1.1rem;
    height: 40px;
    min-width: 150px;
    font-size: 0.91rem;
    font-weight: 500;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border-radius: 0.5rem 0.5rem 0 0;
    border: 1px solid #e6e9ef;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    margin-bottom: -4px;
}

    .vl-tab-btn:hover {
        background: #f3f4f6;
        color: var(--brand-primary);
    }

    .vl-tab-btn.active {
        background: var(--brand-secondary);
        color: #ffffff;
        border-color: var(--brand-secondary);
    }

.vl-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0.15rem 0.5rem;
    font-size: 0.73rem;
    font-weight: 600;
    border-radius: 20px;
}

.vl-tab-btn:not(.active) .vl-tab-badge {
    background: #e2e8f0;
    color: #374151;
}

.vl-tab-btn.active .vl-tab-badge {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.vl-badge-green {
    background: #dcfce7 !important;
    color: #16a34a !important;
}

.vl-tab-btn.active .vl-badge-green {
    background: rgba(255, 255, 255, 0.30) !important;
    color: #ffffff !important;
}

/* Refresh button */
.vl-btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 14px;
    border: 1.5px solid var(--neutral-mid);
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 0.87rem;
    font-weight: 500;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.18s;
}

    .vl-btn-refresh:hover {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }

/* ── Table Card ───────────────────────────────────────────────── */
.vl-table-card {
    background: #ffffff;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--neutral-mid);
    overflow: hidden;
}

    .vl-table-card .table thead th {
        background-color: var(--brand-secondary);
        color: #ffffff;
        font-weight: 600;
        font-size: 0.81rem;
        padding: 10px 12px;
        white-space: nowrap;
        border-bottom: none;
    }

    .vl-table-card .table tbody td {
        padding: 10px 12px;
        font-size: 0.875rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        color: var(--text-primary);
    }

    .vl-table-card .table tbody tr:last-child td {
        border-bottom: none;
    }

    .vl-table-card .table tbody tr:hover td {
        background-color: #f8fafc;
    }

/* ── Voucher Number ───────────────────────────────────────────── */
.voucher-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 0.88rem;
}

/* ── Type Chips ───────────────────────────────────────────────── */
.vl-type-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.vl-type-payment {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.vl-type-receipt {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.vl-type-journal {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

/* ── Approval Status text ────────────────────────────────────── */
.vl-appr-draft {
    color: #64748b;
}

.vl-appr-awaiting {
    color: #d97706;
}

.vl-appr-approved {
    color: #16a34a;
}

.vl-appr-rejected {
    color: #dc2626;
}

/* ── Payment Status ───────────────────────────────────────────── */
.vl-pay-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

.vl-pay-paid {
    color: #16a34a;
}

.vl-pay-unpaid {
    color: #dc2626;
}

.vl-pay-partial {
    color: #d97706;
}

/* ── Trail Link ───────────────────────────────────────────────── */
.vl-trail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.83rem;
    cursor: pointer;
    transition: color 0.18s;
}

    .vl-trail-link:hover {
        color: var(--brand-primary);
    }

/* ── Desc cell ellipsis ──────────────────────────────────────── */
.vl-desc-cell {
    display: block;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #475569;
}

/* ── Action Group ────────────────────────────────────────────── */
.vl-action-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vl-btn-detail {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 7px;
    font-weight: 600;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.18s, transform 0.15s;
}

    .vl-btn-detail:hover:not(:disabled) {
        background-color: #1e3d7b;
        border-color: #1e3d7b;
        color: #ffffff;
        transform: translateY(-1px);
    }

.vl-btn-fed {
    font-size: 0.8rem;
    padding: 4px 9px;
    border-radius: 7px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s;
}

    .vl-btn-fed:hover:not(:disabled) {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
    }

    .vl-btn-fed:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.vl-btn-del {
    font-size: 0.8rem;
    padding: 4px 9px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s;
}

    .vl-btn-del:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
.vl-vnum-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vl-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vl-urgent-mark {
    position: relative;
    display: inline-flex;
    width: 9px;
    height: 9px;
    flex-shrink: 0;
}

.vl-urgent-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dc2626;
}

.vl-urgent-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #dc2626;
    opacity: 0.4;
    animation: vl-ping 1.6s ease-out infinite;
}


@keyframes vl-ping {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    80%,100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

.vl-num-urgent {
    color: #b91c1c;
    font-weight: 600;
}
.vl-urgent-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 999px;
}
/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .vl-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vl-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .vl-date-row {
        grid-template-columns: 1fr 1fr;
    }

        .vl-date-row .vl-filter-btn-group {
            grid-column: 1 / -1;
        }

            .vl-date-row .vl-filter-btn-group .vl-btn-apply {
                width: 100%;
                justify-content: center;
            }

    .vl-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vl-tab-row {
        flex-direction: column;
        align-items: stretch;
    }

    .vl-tabs {
        width: 100%;
    }

    .vl-tab-btn {
        flex: 1;
        min-width: unset;
        justify-content: center;
    }

    .vl-btn-refresh {
        width: 100%;
        justify-content: center;
    }

    .vl-action-group {
        flex-wrap: wrap;
    }

    .vl-desc-cell {
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    .vl-filter-grid {
        grid-template-columns: 1fr;
    }

    .vl-date-row {
        grid-template-columns: 1fr;
    }

    .vl-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ============================================================
   ChangePassword.razor.css  —  Paymir Brand Design
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.cp-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
}

/* ── Card ────────────────────────────────────────────────────── */
.cp-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Gradient header ─────────────────────────────────────────── */
.cp-header {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
}

.cp-header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cp-header-title i {
        font-size: 0.95rem;
    }

/* ── Body ────────────────────────────────────────────────────── */
.cp-body {
    padding: 20px 24px 10px;
}

/* ── Intro text ──────────────────────────────────────────────── */
.cp-intro {
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.cp-intro-text {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
}

/* ── Alerts ──────────────────────────────────────────────────── */
.cp-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.87rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.cp-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

.cp-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #14532d;
}

.cp-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: 0.78rem;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

    .cp-alert-close:hover {
        opacity: 1;
    }

/* ── Field ───────────────────────────────────────────────────── */
.cp-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

/* ── Label ───────────────────────────────────────────────────── */
.cp-label {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .cp-label i {
        color: var(--brand-secondary);
        font-size: 0.8rem;
    }

.cp-validation {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 3px;
}

/* ── Input ───────────────────────────────────────────────────── */
.cp-input {
    height: 38px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    font-size: 0.87rem !important;
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--text-primary) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    line-height: 1.5 !important;
}

    .cp-input:focus {
        border-color: var(--brand-primary) !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10) !important;
        outline: none !important;
        background: #ffffff !important;
    }

    .cp-input:disabled {
        background: #f3f4f6 !important;
        color: #9ca3af !important;
        cursor: not-allowed;
    }

    .cp-input::placeholder {
        color: #9ca3af !important;
        opacity: 1 !important;
    }

/* ── Password wrapper ────────────────────────────────────────── */
.cp-pw-wrap {
    position: relative;
}

    .cp-pw-wrap .cp-input {
        padding-right: 38px !important;
        width: 100%;
    }

.cp-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

    .cp-pw-toggle:hover {
        color: var(--brand-primary);
    }

    .cp-pw-toggle:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

/* ── Action bar ──────────────────────────────────────────────── */
.cp-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    margin: 6px -24px -10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.cp-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.cp-btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
}

    .cp-btn-primary:hover:not(:disabled) {
        background: #1e3d7b;
        transform: translateY(-1px);
        color: #ffffff;
    }

    .cp-btn-primary:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.cp-btn-outline {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid var(--neutral-mid);
}

    .cp-btn-outline:hover {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }

/* ============================================================
   ForgotPin.razor.css  —  Paymir Brand Design
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.fp-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
}

/* ── Card ────────────────────────────────────────────────────── */
.fp-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Gradient header ─────────────────────────────────────────── */
.fp-header {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
}

.fp-header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .fp-header-title i {
        font-size: 0.95rem;
    }

/* ── Body ────────────────────────────────────────────────────── */
.fp-body {
    padding: 20px 24px 10px;
}

/* ── Intro text ──────────────────────────────────────────────── */
.fp-intro {
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.fp-intro-text {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
}

/* ── Alerts ──────────────────────────────────────────────────── */
.fp-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.87rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.fp-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

.fp-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #14532d;
}

.fp-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: 0.78rem;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

    .fp-alert-close:hover {
        opacity: 1;
    }

/* ── Field ───────────────────────────────────────────────────── */
.fp-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

/* ── Label ───────────────────────────────────────────────────── */
.fp-label {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .fp-label i {
        color: var(--brand-secondary);
        font-size: 0.8rem;
    }

.fp-validation {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 3px;
}

/* ── Input ───────────────────────────────────────────────────── */
.fp-input {
    height: 38px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    font-size: 0.87rem !important;
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--text-primary) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    line-height: 1.5 !important;
}

    .fp-input:focus {
        border-color: var(--brand-primary) !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10) !important;
        outline: none !important;
        background: #ffffff !important;
    }

    .fp-input:disabled {
        background: #f3f4f6 !important;
        color: #9ca3af !important;
        cursor: not-allowed;
    }

    .fp-input::placeholder {
        color: #9ca3af !important;
        opacity: 1 !important;
    }

/* PIN-specific input — larger digits, centred, spaced */
.fp-pin-input {
    text-align: center !important;
    font-size: 1.5rem !important;
    letter-spacing: 0.6rem !important;
    font-weight: 700 !important;
    padding-right: 38px !important; /* room for toggle */
    color: var(--brand-primary) !important;
}

/* ── Password wrapper ────────────────────────────────────────── */
.fp-pw-wrap {
    position: relative;
}

    .fp-pw-wrap .fp-input {
        padding-right: 38px !important;
        width: 100%;
    }

.fp-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

    .fp-pw-toggle:hover {
        color: var(--brand-primary);
    }

/* ── Action bar ──────────────────────────────────────────────── */
.fp-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    margin: 6px -24px -10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.fp-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.fp-btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
}

    .fp-btn-primary:hover:not(:disabled) {
        background: #1e3d7b;
        transform: translateY(-1px);
        color: #ffffff;
    }

    .fp-btn-primary:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.fp-btn-outline {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid var(--neutral-mid);
}

    .fp-btn-outline:hover {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }
/* ============================================================
   ForgotPassword.razor.css  —  Paymir Brand Design
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.fwd-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
}

/* ── Card ────────────────────────────────────────────────────── */
.fwd-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--neutral-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Gradient header ─────────────────────────────────────────── */
.fwd-header {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
}

.fwd-header-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .fwd-header-title i {
        font-size: 0.95rem;
    }

/* ── Body ────────────────────────────────────────────────────── */
.fwd-body {
    padding: 20px 24px 10px;
}

/* ── Intro text ──────────────────────────────────────────────── */
.fwd-intro {
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.fwd-intro-text {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0;
}

/* ── Alerts ──────────────────────────────────────────────────── */
.fwd-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.87rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.fwd-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

.fwd-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #14532d;
}

.fwd-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: 0.78rem;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

    .fwd-alert-close:hover {
        opacity: 1;
    }

/* ── Field ───────────────────────────────────────────────────── */
.fwd-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

/* ── Label ───────────────────────────────────────────────────── */
.fwd-label {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .fwd-label i {
        color: var(--brand-secondary);
        font-size: 0.8rem;
    }

.fwd-validation {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 3px;
}

/* ── Input ───────────────────────────────────────────────────── */
.fwd-input {
    height: 38px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    font-size: 0.87rem !important;
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--text-primary) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    line-height: 1.5 !important;
}

    .fwd-input:focus {
        border-color: var(--brand-primary) !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10) !important;
        outline: none !important;
        background: #ffffff !important;
    }

    .fwd-input:disabled {
        background: #f3f4f6 !important;
        color: #9ca3af !important;
        cursor: not-allowed;
    }

    .fwd-input::placeholder {
        color: #9ca3af !important;
        opacity: 1 !important;
    }

/* ── Password wrapper ────────────────────────────────────────── */
.fwd-pw-wrap {
    position: relative;
}

    .fwd-pw-wrap .fwd-input {
        padding-right: 38px !important;
        width: 100%;
    }

.fwd-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

    .fwd-pw-toggle:hover {
        color: var(--brand-primary);
    }

/* ── Action bar ──────────────────────────────────────────────── */
.fwd-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    margin: 6px -24px -10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.fwd-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.fwd-btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
}

    .fwd-btn-primary:hover:not(:disabled) {
        background: #1e3d7b;
        transform: translateY(-1px);
        color: #ffffff;
    }

    .fwd-btn-primary:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.fwd-btn-outline {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid var(--neutral-mid);
}

    .fwd-btn-outline:hover {
        border-color: var(--brand-secondary);
        color: var(--brand-primary);
        background: #f0fdfc;
    }
.voucher-line-input {
    flex: 1;
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    outline: none;
    background: transparent;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.88rem;
    color: #1E293B;
    padding: 0 4px;
    line-height: 1.8;
}

    .voucher-line-input:focus {
        border-bottom: 1.5px solid #1FA8A0;
        background: transparent;
    }

@media print {
    .voucher-line-input:focus {
        border-bottom: 1px solid #000;
    }
}

.otp-sending-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    min-height: 300px;
}

.otp-sending-spinner {
    margin-bottom: 1.5rem;
}

    .otp-sending-spinner .spinner-border {
        width: 3rem;
        height: 3rem;
        border-width: 0.3em;
    }

.otp-sending-title {
    font-weight: 700;
    color: var(--brand-primary, #1a3c5e);
    margin-bottom: 0.5rem;
}

.otp-sending-sub {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}
/* ── Signature Required Modal ── */
.signature-modal-content {
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
    animation: signatureModalSlideIn 0.4s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    background: #ffffff;
}

.signature-modal-strip {
    height: 5px;
    background: linear-gradient(90deg, #1a9c8c, #2dd4bf, #1a9c8c);
    background-size: 200% auto;
    animation: signatureStripShimmer 3s linear infinite;
}

.signature-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f3f5;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

    .signature-close-btn:hover {
        background: #1a9c8c;
        color: #fff;
        transform: rotate(90deg);
    }

.signature-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    margin: 0 auto;
}

.signature-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6f7f5 0%, #f0fdfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: signatureFloat 3s ease-in-out infinite;
}

    .signature-icon-circle i {
        font-size: 2.4rem;
        color: #1a9c8c;
        filter: drop-shadow(0 2px 6px rgba(26,156,140,0.3));
    }

.signature-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin-left: -40px;
    margin-top: -40px;
    border-radius: 50%;
    border: 2px solid rgba(26,156,140,0.6);
    animation: signatureRippleExpand 2.5s ease-out infinite;
    z-index: 1;
}

.signature-ripple-delay {
    animation-delay: 1.2s;
}

.signature-modal-title {
    font-weight: 700;
    font-size: 1.35rem;
    color: #1a1a2e;
    letter-spacing: -0.3px;
}

.signature-divider {
    width: 50px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #1a9c8c, #2dd4bf);
}

.signature-modal-text {
    color: #5a5a6e;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

    .signature-modal-text strong {
        color: #1a1a2e;
    }

.signature-btn-cancel {
    padding: 10px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #dee2e6;
    color: #5a5a6e;
    background: #fff;
    transition: all 0.25s ease;
}

    .signature-btn-cancel:hover {
        border-color: #adb5bd;
        background: #f8f9fa;
        color: #333;
        transform: translateY(-1px);
    }

.signature-btn-upload {
    padding: 10px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #1a9c8c 0%, #147a6b 100%);
    box-shadow: 0 4px 15px rgba(26,156,140,0.35);
    transition: all 0.25s ease;
}

    .signature-btn-upload:hover {
        background: linear-gradient(135deg, #14897a 0%, #116b5e 100%);
        box-shadow: 0 6px 20px rgba(26,156,140,0.5);
        transform: translateY(-2px);
        color: #fff;
    }

/* ── Keyframes ── */
@keyframes signatureModalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes signatureStripShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes signatureFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes signatureRippleExpand {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ── Skeleton base ── */
.sk-cell,
.sk-chip,
.sk-btn {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.4s infinite;
    border-radius: 4px;
}

@keyframes sk-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Cell line ── */
.sk-cell {
    height: 13px;
}

.sk-w-20 {
    width: 20%;
}

.sk-w-30 {
    width: 30%;
}

.sk-w-40 {
    width: 40%;
}

.sk-w-60 {
    width: 60%;
}

.sk-w-80 {
    width: 80%;
}

/* ── Badge/chip shape ── */
.sk-chip {
    height: 22px;
    width: 72px;
    border-radius: 20px;
}

/* ── Button shape ── */
.sk-btn {
    height: 28px;
    width: 76px;
    border-radius: 6px;
}

.sk-btn-sm {
    width: 42px;
}

/* ── Row fade in ── */
.sk-cell, .sk-chip, .sk-btn {
    opacity: 0;
    animation: sk-shimmer 1.4s infinite, sk-fadein 0.3s forwards;
}

@for (int i = 1; i <= 6; i++) {
    /* stagger each row slightly */
}

tbody tr:nth-child(1) .sk-cell,
tbody tr:nth-child(1) .sk-chip,
tbody tr:nth-child(1) .sk-btn {
    animation-delay: 0s, 0s;
}

tbody tr:nth-child(2) .sk-cell,
tbody tr:nth-child(2) .sk-chip,
tbody tr:nth-child(2) .sk-btn {
    animation-delay: 0s, 0.05s;
}

tbody tr:nth-child(3) .sk-cell,
tbody tr:nth-child(3) .sk-chip,
tbody tr:nth-child(3) .sk-btn {
    animation-delay: 0s, 0.10s;
}

tbody tr:nth-child(4) .sk-cell,
tbody tr:nth-child(4) .sk-chip,
tbody tr:nth-child(4) .sk-btn {
    animation-delay: 0s, 0.15s;
}

tbody tr:nth-child(5) .sk-cell,
tbody tr:nth-child(5) .sk-chip,
tbody tr:nth-child(5) .sk-btn {
    animation-delay: 0s, 0.20s;
}

tbody tr:nth-child(6) .sk-cell,
tbody tr:nth-child(6) .sk-chip,
tbody tr:nth-child(6) .sk-btn {
    animation-delay: 0s, 0.25s;
}

@keyframes sk-fadein {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Approval Modal*/

/* Approval Audit Trail Modal */
.approval-modal-backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}

.approval-modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.approval-modal-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #1FA8A0 100%);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.approval-modal-header-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.approval-modal-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .approval-modal-header-icon i {
        font-size: 18px;
        color: #ffffff;
    }

.approval-modal-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.approval-modal-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.approval-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

    .approval-modal-close i {
        font-size: 16px;
        color: #ffffff;
    }

    .approval-modal-close:hover {
        background: rgba(255, 255, 255, 0.25);
    }

.approval-modal-body {
    overflow-y: auto;
    background: #fafbfc;
    padding: 12px 16px;
    flex: 1;
}

.approval-modal-footer {
    padding: 10px 16px;
    border-top: 0.5px solid #eef2f7;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    background: #ffffff;
}

/* Log cards */
.apl-card {
    border: 0.5px solid #edf0f5;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #ffffff;
}

    .apl-card.approved {
        border-left: 3px solid #16a34a;
    }

    .apl-card.rejected {
        border-left: 3px solid #dc2626;
    }

    .apl-card.forwarded {
        border-left: 3px solid #2563eb;
    }

.apl-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

    .apl-avatar.green {
        background: #dcfce7;
        color: #166534;
    }

    .apl-avatar.red {
        background: #fee2e2;
        color: #991b1b;
    }

    .apl-avatar.blue {
        background: #dbeafe;
        color: #1e40af;
    }

.apl-card-right {
    flex: 1;
    min-width: 0;
}

.apl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.apl-name {
    font-size: 12px;
    font-weight: 500;
    color: #0f172a;
}

.apl-role {
    font-size: 10px;
    color: #64748b;
    margin-top: 1px;
}

.apl-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.apl-pill {
    font-size: 10px;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

    .apl-pill.approved {
        background: #dcfce7;
        color: #166534;
    }

    .apl-pill.rejected {
        background: #fee2e2;
        color: #991b1b;
    }

    .apl-pill.forwarded {
        background: #dbeafe;
        color: #1e40af;
    }

.apl-time {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
}

.apl-comment {
    font-size: 11px;
    color: #475569;
    margin-top: 5px;
    padding: 5px 9px;
    background: #f8fafc;
    border-radius: 6px;
    font-style: italic;
    line-height: 1.45;
    border-left: 2px solid #dbeafe;
}

/* Buttons */
.apl-btn {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 0.5px solid #cbd5e1;
    background: transparent;
    cursor: pointer;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .apl-btn i {
        font-size: 13px;
    }

    .apl-btn:hover {
        background: #f1f5f9;
    }

    .apl-btn.primary {
        background: #1E3A8A;
        color: #ffffff;
        border-color: #1E3A8A;
    }

        .apl-btn.primary:hover {
            background: #1e40af;
        }


/* ============================================================
   crud-shared.css — Fintech Unit Admin Panel
   Shared styles for all settings sub-pages (tables + forms)
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────────── */
.crud-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9eef5;
}

.crud-page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f1e45;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    line-height: 1.3;
}

    .crud-page-title i {
        color: #1FA8A0;
        font-size: 1rem;
        background: #e6f7f6;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

.crud-page-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 400;
}

/* ── Add Button ──────────────────────────────────────────────── */
.crud-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: #1E3A8A;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    transition: all 0.18s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(30,58,138,0.25);
}

    .crud-btn-add:hover {
        background: #163172;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(30,58,138,0.35);
    }

/* ── Filter Card ─────────────────────────────────────────────── */
.crud-filter-card {
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.crud-filter-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.crud-filter-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.crud-search-wrap {
    position: relative;
}

.crud-search-ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0bac8;
    font-size: 0.82rem;
    pointer-events: none;
}

.crud-search-input {
    width: 100%;
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px 0 34px;
    font-size: 0.87rem;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #1E293B;
    background: #fafbfd;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

    .crud-search-input:focus {
        border-color: #1E3A8A;
        box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
        background: #ffffff;
    }

    .crud-search-input::placeholder {
        color: #b0bac8;
    }

/* ============================================================
   TABLE — responsive strategy:
   - Wrapper scrolls horizontally instead of squeezing columns
   - table-layout switches from fixed(desktop) to auto(mobile)
     via the wrapper, so columns keep readable widths and the
     whole table scrolls sideways rather than ellipsis-ing text
   ============================================================ */

.crud-table-card {
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

/* Scroll wrapper — wrap your <table> in <div class="crud-table-scroll"> */
.crud-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    /* subtle scrollbar so it still looks tidy on desktop */
    .crud-table-scroll::-webkit-scrollbar {
        height: 8px;
    }

    .crud-table-scroll::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 8px;
    }

    .crud-table-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

.crud-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 720px; /* forces horizontal scroll instead of column squeeze below this width */
}

    .crud-table thead tr {
        background: linear-gradient(90deg, #1E3A8A 0%, #1FA8A0 100%);
    }

    .crud-table thead th {
        color: rgba(255,255,255,0.92);
        font-weight: 600;
        font-size: 0.72rem;
        text-transform: uppercase;
        padding: 10px 16px;
        text-align: left;
        white-space: nowrap;
        border: none;
        position: sticky;
        top: 0;
    }

    .crud-table tbody td {
        font-size: 0.865rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        color: #1E293B;
        padding: 10px 16px;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 260px; 
    }

    .crud-table tbody tr:last-child td {
        border-bottom: none;
    }

    .crud-table tbody tr {
        transition: background 0.12s ease;
    }

        .crud-table tbody tr:hover td {
            background-color: #f5f8ff;
        }

    .crud-table td:nth-child(1) {
        color: #b0bac8;
        font-size: 0.75rem;
        font-weight: 700;
        font-family: 'Courier New', monospace;
        text-align: left;
        max-width: 60px;
    }

/* ── Code Pill ───────────────────────────────────────────────── */
.crud-code-pill {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1E3A8A;
    background: #eef3ff;
    border: 1px solid #c7d7f9;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── Badges ──────────────────────────────────────────────────── */
.crud-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8faf3;
    color: #0a6e49;
    border: 1px solid #a8e6cc;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

    .crud-badge-active::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
        flex-shrink: 0;
    }

.crud-badge-inactive {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef0f0;
    color: #9e1f1f;
    border: 1px solid #f5a8a8;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

    .crud-badge-inactive::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ef4444;
        flex-shrink: 0;
    }

/* ── Row Actions ─────────────────────────────────────────────── */
.crud-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.crud-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    background: #eef3ff;
    color: #1E3A8A;
    border: 1px solid #c7d7f9;
    transition: all 0.15s ease;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    white-space: nowrap;
}

    .crud-btn-edit:hover {
        background: #1E3A8A;
        color: #ffffff;
        border-color: #1E3A8A;
        transform: translateY(-1px);
    }

.crud-btn-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    background: #fff5f5;
    color: #dc2626;
    border: 1px solid #fecaca;
    transition: all 0.15s ease;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    flex-shrink: 0;
}

    .crud-btn-del:hover {
        background: #dc2626;
        color: #ffffff;
        border-color: #dc2626;
        transform: translateY(-1px);
    }

/* ============================================================
   MODAL — chrome (header/footer/close)
   ============================================================ */

.modal-dialog {
    max-width: 640px; /* default: small/medium forms (4-7 fields) */
}

    .modal-dialog.crud-modal-lg {
        max-width: 820px; /* larger forms (8+ fields) */
    }

.crud-modal-header {
    background: linear-gradient(90deg, #1E3A8A 0%, #1FA8A0 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crud-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
}

.crud-modal-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.crud-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.15s;
    flex-shrink: 0;
}

    .crud-modal-close:hover {
        background: rgba(255,255,255,0.22);
        color: #ffffff;
    }

.crud-modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e9eef5;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.crud-modal-body {
    text-align: left !important;
    max-height: 70vh;
    overflow-y: auto;
}

/* ============================================================
   FORM SYSTEM — works for any field count (4 to 12+)
   ============================================================ */

.crud-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px 20px;
}

.crud-form-span-2 {
    grid-column: 1 / -1;
}

.crud-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.crud-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .crud-form-label .required {
        color: #dc2626;
        font-weight: 700;
    }

.crud-modal-body .form-control,
.crud-modal-body .form-select {
    height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.87rem;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #1E293B;
    background-color: #fafbfd;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
}

.crud-modal-body textarea.form-control {
    height: auto;
    min-height: 90px;
    padding: 10px 12px;
    resize: vertical;
}

.crud-modal-body .form-control:focus,
.crud-modal-body .form-select:focus {
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
    background-color: #ffffff;
    outline: none;
}

.crud-modal-body .form-control::placeholder {
    color: #b0bac8;
}

.crud-modal-body .form-control:disabled,
.crud-modal-body .form-select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.crud-modal-body .form-control.is-invalid,
.crud-modal-body .form-select.is-invalid {
    border-color: #ef4444;
    background-color: #fff8f8;
}

.crud-form-error {
    font-size: 0.72rem;
    color: #dc2626;
    font-weight: 500;
}

/* ── Modal Buttons ───────────────────────────────────────────── */
.crud-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.crud-btn-primary {
    background: #1E3A8A;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(30,58,138,0.25);
}

    .crud-btn-primary:hover:not(:disabled) {
        background: #163172;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(30,58,138,0.30);
        color: #ffffff;
    }

    .crud-btn-primary:disabled {
        opacity: 0.60;
        cursor: not-allowed;
    }

.crud-btn-outline {
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

    .crud-btn-outline:hover {
        border-color: #1FA8A0;
        color: #1E3A8A;
        background: #f0fdfc;
    }

/* ── Toast ───────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: calc(100vw - 40px);
}

.toast-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.855rem;
    font-weight: 500;
    min-width: 260px;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    animation: toastSlideIn 0.28s ease;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    border-left-width: 4px;
    border-left-style: solid;
}

.toast-success {
    background: #f0fdf8;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-left-color: #10b981;
}

.toast-error {
    background: #fff5f5;
    color: #7f1d1d;
    border: 1px solid #fecaca;
    border-left-color: #ef4444;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.45;
    font-size: 12px;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

    .toast-close:hover {
        opacity: 1;
    }

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wobble {
    from {
        transform: rotate(-8deg) scale(1);
    }

    to {
        transform: rotate(8deg) scale(1.1);
    }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 992px) {
    .modal-dialog.crud-modal-lg {
        max-width: 90vw;
    }
}

@media (max-width: 640px) {
    .modal-dialog,
    .modal-dialog.crud-modal-lg {
        max-width: 100%;
        margin: 8px;
    }

    .crud-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .crud-modal-body {
        max-height: 75vh;
        padding: 1rem !important;
    }

    .crud-modal-footer {
        flex-direction: column-reverse;
    }

        .crud-modal-footer .crud-btn {
            width: 100%;
            justify-content: center;
        }

    .crud-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .crud-btn-add {
        width: 100%;
        justify-content: center;
    }

    .crud-filter-card {
        padding: 12px 14px;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast-msg {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 400px) {
    .crud-modal-header {
        padding: 12px 16px;
    }

    .crud-modal-title {
        font-size: 0.85rem;
    }

    .crud-page-title {
        font-size: 1rem;
    }
}
/* ── Checklist Box (used in Voucher Group Account "Add Link") ── */
.crud-checklist-box {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    background: #fafbfd;
}

.crud-checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    transition: background 0.12s ease;
}

    .crud-checklist-item:hover {
        background: #f0f4ff;
    }

    .crud-checklist-item .form-check-input {
        margin: 0;
        cursor: pointer;
        flex-shrink: 0;
    }

.crud-checklist-label {
    font-size: 0.85rem;
    color: #1E293B;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

@media (max-width: 640px) {
    .crud-checklist-box {
        max-height: 160px;
    }
}
/* ── Quirky Inactive-Confirm Popup (Department page) ────────── */
.crud-quirky-popup {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 24px;
    padding: 30px 28px 24px;
    width: 300px;
    max-width: calc(100vw - 32px);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 9999;
    user-select: none;
}

.crud-quirky-emoji {
    font-size: 70px;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
    animation: wobble 0.6s ease infinite alternate;
}

.crud-quirky-title {
    color: #e05c5c;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.crud-quirky-text {
    color: #8a94b0;
    font-size: 13px;
    margin-bottom: 20px;
}

.crud-quirky-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.crud-quirky-btn {
    padding: 8px 22px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    flex: 1;
}

.crud-quirky-btn-cancel {
    background: #f0f2f8;
    color: #2c3558;
}

.crud-quirky-btn-confirm {
    background: #e05c5c;
    color: white;
}

.crud-quirky-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    backdrop-filter: blur(2px);
    background: rgba(0,0,0,0.2);
}
/* ── Success Result Modal (uses your existing crud-modal-* chrome) ── */
.crud-modal-header-success {
    background: linear-gradient(90deg, #0a6e49 0%, #1FA8A0 100%);
    justify-content: center;
}

    .crud-modal-header-success .crud-modal-title {
        justify-content: center;
    }

.crud-modal-icon-success {
    background: rgba(255,255,255,0.22);
}

.crud-result-message {
    font-size: 0.92rem;
    color: #334155;
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}}

.crud-result-callout {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: 10px;
    background: #e8faf3;
    border: 1px solid #a8e6cc;
    display: inline-block;
    min-width: 200px;
}

.crud-result-callout-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0a6e49;
    margin-bottom: 4px;
}

.crud-result-callout-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a6e49;
    font-family: 'Courier New', monospace;
}

@media (max-width: 480px) {
    .crud-result-callout {
        width: 100%;
        min-width: 0;
    }
}
/* ── Error Result Modal ──────────────────────────────────────── */
.crud-modal-header-danger {
    background: linear-gradient(90deg, #9e1f1f 0%, #dc2626 100%);
    justify-content: center;
}

    .crud-modal-header-danger .crud-modal-title {
        justify-content: center;
    }

.crud-modal-icon-danger {
    background: rgba(255,255,255,0.22);
}

.crud-btn-danger {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(220,38,38,0.25);
}

    .crud-btn-danger:hover:not(:disabled) {
        background: #b91c1c;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(220,38,38,0.30);
        color: #ffffff;
    }
.crud-result-detail {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 8px;
    margin-bottom: 0;
}
/* ── Small modal variant (PIN dialog, compact confirms) ─────── */
.modal-dialog.crud-modal-sm {
    max-width: 380px;
}

/* ── Inline Alert boxes — more compact ──────────────────────── */
.crud-alert {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.crud-alert-info {
    background: #eef3ff;
    color: #1E3A8A;
    border: 1px solid #c7d7f9;
}

.crud-alert-danger {
    background: #fff5f5;
    color: #9e1f1f;
    border: 1px solid #f5a8a8;
}

/* ── PIN Input — smaller, still readable ────────────────────── */
.crud-pin-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    height: 44px;
}

/* ── "Verifying..." inline status — more compact ────────────── */
.crud-verifying {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 0;
    color: #1E3A8A;
    font-size: 0.8rem;
    font-weight: 500;
}
@media (max-width: 400px) {
    .crud-quirky-popup {
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 24px 20px 20px;
    }

    .crud-quirky-emoji {
        font-size: 56px;
    }
}
/*Soe Logo css*/
/* ✅ Logo Upload Area */
.logo-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 28px 16px;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
    gap: 8px;
}

    .logo-upload-area:hover {
        border-color: #0ea5e9;
        background: #f0f9ff;
    }

/* ✅ Upload Icon Circle */
.logo-upload-icon-wrap {
    width: 52px;
    height: 52px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-upload-icon {
    font-size: 1.5rem;
    color: #0ea5e9;
}

/* ✅ Upload Text */
.logo-upload-text {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

    .logo-upload-text span {
        color: #0ea5e9;
        font-weight: 600;
    }

.logo-upload-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ✅ Preview Wrap */
.logo-preview-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    background: #f8fafc;
}

/* ✅ Preview Image */
.logo-preview {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

/* ✅ Preview Info */
.logo-preview-info {
    flex: 1;
}

.logo-preview-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.logo-preview-sub {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

/* ✅ Remove Button */
.logo-remove-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .logo-remove-btn:hover {
        background: #fecaca;
    }

/*for soe icon css*/
.soe-logo-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8f9fc;
}

.soe-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
}
/* ── Logo upload/preview responsive tweak ───────────────────── */
@media (max-width: 480px) {
    .logo-preview-wrap {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .logo-remove-btn {
        width: 100%;
        text-align: center;
    }
}
/* ============================================================
   Settings.razor.css  —  Paymir Admin Sidebar Layout
   Full-screen, no MainLayout wrapper
   ============================================================ */

/* ── Full screen wrapper ─────────────────────────────────────── */
.sl-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #f0f4f8;
    /* sits directly under the body, no MainLayout padding to escape */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sl-sidebar {
    width: 240px;
    min-width: 240px;
    flex-shrink: 0;
    background: #0f1e45;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    

/* ── Logo header ─────────────────────────────────────────────── */
.sl-sidebar-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 20px 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.sl-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(31,168,160,0.25);
    border: 1.5px solid rgba(31,168,160,0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 7px;
}

    .sl-logo-circle img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.sl-brand-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    display: block;
}

.sl-brand-sub {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.38);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
    display: block;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.sl-nav {
    flex: 1;
    padding: 10px 8px 8px;
    overflow-y: auto;
}
.sl-nav::-webkit-scrollbar {
    display: none !important;
}

.sl-nav-section {
    margin-bottom: 2px;
}

.sl-nav-label {
    font-size: 0.60rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.28);
    padding: 12px 10px 4px;
    display: block;
}

.sl-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 7px;
    margin-bottom: 1px;
    color: rgba(255,255,255,0.60);
    font-size: 0.84rem;
    font-weight: 500;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    transition: all 0.14s ease;
    position: relative;
}

    .sl-nav-item i {
        font-size: 0.95rem;
        flex-shrink: 0;
        width: 18px;
        text-align: center;
    }

    .sl-nav-item:hover {
        background: rgba(255,255,255,0.07);
        color: rgba(255,255,255,0.90);
        text-decoration: none;
    }

    .sl-nav-item.active {
        background: rgba(31,168,160,0.18);
        color: #ffffff;
        font-weight: 600;
    }

        .sl-nav-item.active i {
            color: #1FA8A0;
        }

        .sl-nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 18px;
            background: #1FA8A0;
            border-radius: 0 3px 3px 0;
        }

.sl-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 6px 8px;
}

/* ── Sidebar footer ──────────────────────────────────────────── */
.sl-sidebar-footer {
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

/* ── User card ───────────────────────────────────────────────── */
.sl-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 12px;
}

.sl-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(31,168,160,0.30);
    border: 1.5px solid rgba(31,168,160,0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.sl-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sl-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sl-user-role {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.38);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1px;
}

.sl-footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 2px 6px;
}

/* logout item — red tint on hover */
.sl-logout-item:hover {
    background: rgba(220,38,38,0.18) !important;
    color: #fca5a5 !important;
}

    .sl-logout-item:hover i {
        color: #fca5a5 !important;
    }

/* ── Main content ────────────────────────────────────────────── */
.sl-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 24px 28px;
    height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    
/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sl-wrapper {
        flex-direction: column;
        position: relative;
        height: auto;
        overflow: visible;
    }

    .sl-sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
    }

    .sl-main {
        height: auto;
        padding: 16px;
    }

    .sl-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .sl-nav-label,
    .sl-nav-divider {
        display: none;
    }

    .sl-nav-item {
        width: auto;
    }
}
/* ============================================================
   Settings Dashboard
   ============================================================ */

.sd-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 1.25rem;
}

.sd-stat-card {
    background: #ffffff;
    border: 1px solid var(--neutral-mid);
    border-top-width: 3px;
    border-radius: 12px;
    padding: 16px 16px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .sd-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    }

.sd-blue {
    border-top-color: #1E3A8A;
}

.sd-teal {
    border-top-color: #1FA8A0;
}

.sd-amber {
    border-top-color: #d97706;
}

.sd-green {
    border-top-color: #16a34a;
}

.sd-purple {
    border-top-color: #7c3aed;
}

.sd-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sd-blue .sd-stat-icon {
    background: #EFF6FF;
    color: #1E3A8A;
}

.sd-teal .sd-stat-icon {
    background: #E6F7F6;
    color: #1FA8A0;
}

.sd-amber .sd-stat-icon {
    background: #FFFBEB;
    color: #d97706;
}

.sd-green .sd-stat-icon {
    background: #F0FDF4;
    color: #16a34a;
}

.sd-purple .sd-stat-icon {
    background: #F5F3FF;
    color: #7c3aed;
}

.sd-stat-body {
    min-width: 0;
}

.sd-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.sd-blue .sd-stat-val {
    color: #1E3A8A;
}

.sd-teal .sd-stat-val {
    color: #1FA8A0;
}

.sd-amber .sd-stat-val {
    color: #d97706;
}

.sd-green .sd-stat-val {
    color: #16a34a;
}

.sd-purple .sd-stat-val {
    color: #7c3aed;
}

.sd-stat-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-top: 4px;
}

.sd-stat-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.87rem;
    font-weight: 600;
    color: #1E3A8A;
}

.sd-view-all {
    font-size: 0.78rem;
    font-weight: 500;
    color: #1FA8A0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .sd-view-all:hover {
        color: #1E3A8A;
        text-decoration: none;
    }

.sd-seq-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1FA8A0;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
body:has(.sl-wrapper) {
    overflow: hidden;
    height: 100vh;
}

/* Receipt Modal */
.vch-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vch-receipt-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 320px;
    max-height: 90vh;
    overflow-y: auto;
    font-family: sans-serif;
    scrollbar-width: none;
}

    .vch-receipt-card::-webkit-scrollbar {
        display: none;
    }
.vch-receipt-header {
    padding: 14px 16px 12px;
    text-align: center;
}

.vch-receipt-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 8px;
}

.vch-receipt-logo-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1FA8A0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .vch-receipt-logo-dot i {
        font-size: 13px;
        color: #ffffff;
    }

.vch-receipt-brand {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.vch-receipt-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.vch-receipt-success-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(31, 168, 160, 0.15);
    border: 2px solid #1FA8A0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

    .vch-receipt-success-circle i {
        font-size: 20px;
        color: #1FA8A0;
    }

.vch-receipt-paid-label {
    font-size: 12px;
    font-weight: 500;
    color: #1FA8A0;
}

.vch-receipt-amount {
    text-align: center;
    padding: 10px 16px;
    border-bottom: 1px dashed #e0e0e0;
}

.vch-receipt-amount-label {
    font-size: 10px;
    color: #888;
    margin-bottom: 2px;
}

.vch-receipt-amount-value {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

    .vch-receipt-amount-value span {
        font-size: 13px;
        font-weight: 400;
        color: #888;
        margin-right: 2px;
    }

.vch-receipt-rows {
    padding: 8px 16px;
    border-bottom: 1px dashed #e0e0e0;
}

.vch-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px 0;
}

.vch-receipt-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
    padding-right: 12px;
}

.vch-receipt-value {
    font-size: 11px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: right;
}

.vch-receipt-mono {
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
}

.vch-receipt-footer {
    padding: 10px 16px;
    text-align: center;
}

.vch-receipt-raast-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #E6F1FB;
    border-radius: 20px;
    padding: 3px 12px;
}

    .vch-receipt-raast-badge i {
        font-size: 12px;
        color: #185FA5;
    }

    .vch-receipt-raast-badge span {
        font-size: 10px;
        color: #185FA5;
        font-weight: 500;
    }

.vch-receipt-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px 14px;
    justify-content: center;
    border-top: 0.5px solid #e0e0e0;
}

.vch-receipt-rows {
    position: relative;
}

.vch-receipt-stamp {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 112px;
    height: 112px;
    margin: -56px 0 0 -56px;
    color: #1FA8A0;
    opacity: 0.32;
    pointer-events: none;
    z-index: 3;
}

    .vch-receipt-stamp svg {
        width: 100%;
        height: 100%;
        display: block;
        font-family: sans-serif;
    }

/* === Voucher amount tiers: left border + chip (standard users) === */
.vl-tier-row > td:first-child {
    border-left: 4px solid transparent;
}

.vl-tier-row.tier-low > td:first-child {
    border-left-color: #22c55e;
}

.vl-tier-row.tier-mid > td:first-child {
    border-left-color: #f59e0b;
}

.vl-tier-row.tier-high > td:first-child {
    border-left-color: #ef4444;
}

.vl-amount-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

    .vl-amount-chip.tier-low {
        background: rgba(34, 197, 94, 0.12);
        color: #15803d;
    }

    .vl-amount-chip.tier-mid {
        background: rgba(245, 158, 11, 0.14);
        color: #b45309;
    }

    .vl-amount-chip.tier-high {
        background: rgba(239, 68, 68, 0.12);
        color: #b91c1c;
    }


/* === Voucher amount tiers: full row tint (approval users) === */
.vl-tint-row.tier-low > td {
    background-color: rgba(34, 197, 94, 0.12) !important;
}

.vl-tint-row.tier-mid > td {
    background-color: rgba(245, 158, 11, 0.12) !important;
}

.vl-tint-row.tier-high > td {
    background-color: rgba(239, 68, 68, 0.12) !important;
}

.table-hover > tbody > tr.vl-tint-row.tier-low:hover > td {
    background-color: rgba(34, 197, 94, 0.20) !important;
}

.table-hover > tbody > tr.vl-tint-row.tier-mid:hover > td {
    background-color: rgba(245, 158, 11, 0.20) !important;
}

.table-hover > tbody > tr.vl-tint-row.tier-high:hover > td {
    background-color: rgba(239, 68, 68, 0.20) !important;
}

