body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background: #ecf0fb !important;
}

html * {
    font-family:
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif !important;
}

/* Allow icon fonts to render (global font-family override breaks them) */
.fa,
.fas,
.far,
.fal,
.fat,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal;
}
.fa,
.fas,
.fa-solid {
    font-weight: 900 !important;
}
.far,
.fa-regular {
    font-weight: 400 !important;
}
.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

:root {
    --navItem-bgColor: #0050b1;
    --main-black: #000000;
    --main-white: #ffffff;
    --gray-txt: #717171;
    --blue-txt-color: #0050b1;
    --right-sideBg-color: #eef4fb;
    --grey-color: #434343;
}

/* ensure anchor container can position dropdown */
.profile-parent {
    position: relative;
}

/* Figma sidebar (node 1:6) */
/* Override the global vw-based fixed sidebar with our fixed 224px design */
.fd-sidenav {
    width: 224px !important;
    min-width: 224px !important;
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh !important;
    min-height: 100vh !important;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    background:
        radial-gradient(
            220px 360px at 50% 50%,
            rgba(255, 255, 255, 0.024) 0%,
            rgba(0, 0, 0, 0) 60%
        ),
        linear-gradient(180deg, #080e1c 0%, #0b1321 100%);
    padding: 24px 12px !important;
    gap: 18px !important;
    overflow: hidden;
    z-index: 100;
}

/* Match all global media query margin-left overrides for client-main-content */
@media (min-width: 992px) {
    .client-main-content {
        width: calc(100% - 224px) !important;
        margin-left: 224px !important;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .client-main-content {
        width: calc(100% - 224px) !important;
        margin-left: 224px !important;
    }
}

@media (max-width: 1600px) {
    .client-main-content {
        margin-left: 224px !important;
    }
}

/* Mobile responsiveness: collapse fixed sidebar + reset content offset */
@media (max-width: 991.98px) {
    .fd-sidenav {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 14px 12px !important;
        overflow: visible !important;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .client-main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .fd-shell {
        padding: 12px 12px 18px;
    }

    .fd-topbar {
        padding: 12px 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .fd-topbar-title {
        font-size: 16px;
    }

    .fd-topbar-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    /* Prevent wide content (tables/charts) from forcing horizontal scroll */
    .table-responsive,
    .fd-tablewrap,
    .fd-chart,
    .fd-card,
    .fd-toolbar {
        max-width: 100%;
    }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ════════════════════════════════════════════════════════
   Documentation pages (P1…P23) — theme alignment overrides
   Notes:
   - Individual docs pages load `p2service.css` AFTER `index.css`.
   - These rules use higher specificity (prefixed with `.fd-root`) so they
     override without touching any Blade files.
════════════════════════════════════════════════════════ */

/* Shared layout: soften typography + spacing */
.fd-root .left-section.progress-vertical,
.fd-root .progress-vertical {
    color: var(--fd-ink);
}

.fd-root .left-section {
    max-width: 52%;
}

@media (max-width: 992px) {
    .fd-root .left-section {
        max-width: 100%;
    }
}

/* Stepper line + markers (match FinGroup palette) */
.fd-root .progress-vertical .step::before {
    border-color: var(--fd-line);
}

.fd-root .progress-vertical .marker {
    border-color: rgba(45, 89, 66, 0.55);
    background: var(--fd-card);
    box-shadow: 0 0 0 4px rgba(45, 89, 66, 0.1);
}

.fd-root .progress-vertical .step.completed .marker {
    background: linear-gradient(135deg, #1a3d2b 0%, #2d5942 100%);
    border-color: rgba(26, 61, 43, 0.65);
    box-shadow: 0 0 0 4px rgba(26, 61, 43, 0.14);
}

.fd-root .progress-vertical .step.current .marker {
    background: var(--fd-card);
    border-color: rgba(80, 70, 228, 0.55);
    box-shadow: 0 0 0 5px rgba(80, 70, 228, 0.14);
}

/* Headings + body copy inside steps */
.fd-root .progress-vertical .body h4 {
    color: var(--fd-ink);
    letter-spacing: -0.2px;
}
.fd-root .progress-vertical .body p,
.fd-root .progress-vertical .body span,
.fd-root .progress-vertical .body a {
    font-size: 14px;
    line-height: 22px;
}

.fd-root .progress-vertical .body a {
    color: rgba(80, 70, 228, 0.92);
    text-decoration: none;
    font-weight: 650;
}
.fd-root .progress-vertical .body a:hover {
    text-decoration: underline;
}

/* Dark mode readability fixes */
.fd-root.is-dark .progress-vertical .body,
.fd-root.is-dark .progress-vertical .body p,
.fd-root.is-dark .progress-vertical .body span {
    color: rgba(255, 255, 255, 0.82);
}

.fd-root.is-dark .progress-vertical .body .fw-bold,
.fd-root.is-dark .progress-vertical .body b,
.fd-root.is-dark .progress-vertical .body strong {
    color: rgba(255, 255, 255, 0.92);
}

/* GET/POST labels */
.fd-root.is-dark .progress-vertical .body p .fw-bold,
.fd-root.is-dark .progress-vertical .body p strong,
.fd-root.is-dark .progress-vertical .body p b {
    color: #d4af37;
}

/* Right-side panel (docs pages) bold labels */
.fd-root.is-dark .right-section .fw-bold,
.fd-root.is-dark .right-section b,
.fd-root.is-dark .right-section strong {
    color: #d4af37;
}

/* Mobile cards (Transactions + Failed Transactions) */
.fd-root .individual-card {
    border-radius: 16px;
    border: 2px solid rgba(229, 231, 235, 0.55);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 30px rgba(16, 24, 40, 0.1);
    padding: 16px;
}
.fd-root.is-dark .individual-card {
    border-color: rgba(30, 41, 57, 0.65);
    background: rgba(15, 21, 37, 0.92);
    box-shadow: 0 22px 34px rgba(0, 0, 0, 0.4);
}

.fd-root .cid-mob {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(16, 24, 40, 0.62);
}
.fd-root.is-dark .cid-mob {
    color: rgba(255, 255, 255, 0.62);
}

.fd-root .cid-mob-value {
    margin-top: 4px;
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    font-size: 13px;
    font-weight: 800;
    color: rgba(21, 101, 192, 0.95);
    overflow-wrap: anywhere;
}
.fd-root.is-dark .cid-mob-value {
    color: rgba(96, 165, 250, 0.95);
}

.fd-root .currency-mob {
    font-size: 13px;
    font-weight: 900;
    color: rgba(16, 24, 40, 0.92);
    white-space: nowrap;
}
.fd-root.is-dark .currency-mob {
    color: rgba(255, 255, 255, 0.92);
}

.fd-root .date-mob {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(16, 24, 40, 0.62);
}
.fd-root.is-dark .date-mob {
    color: rgba(255, 255, 255, 0.62);
}
.fd-root .date-mob-value {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(54, 65, 83, 0.92);
}
.fd-root.is-dark .date-mob-value {
    color: rgba(226, 232, 240, 0.82);
}

/* Status pill inside mobile card */
.fd-root .status-text {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 12px !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.fd-root.is-dark .pendingBg-color .status-text {
    background: rgba(212, 175, 55, 0.16) !important;
    color: #d4af37 !important;
}
.fd-root.is-dark .donebg-color .status-text {
    background: rgba(16, 185, 129, 0.18) !important;
    color: rgba(16, 185, 129, 0.95) !important;
}
.fd-root.is-dark .failedBg-color .status-text {
    background: rgba(239, 68, 68, 0.18) !important;
    color: rgba(239, 68, 68, 0.95) !important;
}

/* Tighter gaps on small phones */
@media (max-width: 575.98px) {
    .fd-root .individual-card {
        padding: 14px;
    }
}

/* Mobile responsiveness (Transactions) */
@media (max-width: 991.98px) {
    /* Controls: stack nicely */
    .fd-root .input-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    .fd-root .input-group > form {
        width: 100%;
    }

    .fd-root .input-group > form,
    .fd-root .input-group > form .input-group {
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        align-items: center !important;
    }

    /* Transactions top form has Bootstrap utility classes that force nowrap/centering */
    .fd-root form[action*="showTransactions"] {
        width: 100% !important;
    }
    .fd-root form[action*="showTransactions"] .input-group.d-flex.flex-nowrap,
    .fd-root
        form[action*="showTransactions"]
        .input-group.d-flex.flex-nowrap.justify-content-center {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
    }
    .fd-root form[action*="showTransactions"] .d-flex.gap-3 {
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    .fd-root form[action*="showTransactions"] .d-flex.gap-3 > div {
        flex: 1 1 240px;
        min-width: 0;
    }

    .fd-root .trans-search {
        min-width: 0 !important;
        width: 100% !important;
    }

    .fd-root .trans-select {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Buttons row: full width and wrap (legacy layouts without .fd-trans-panel) */
    .fd-root:not(:has(.fd-trans-panel)) .trans-search-btn.btn,
    .fd-root:not(:has(.fd-trans-panel)) .trans-cancel-btn.btn {
        width: 100%;
    }

    /* Pagination: stack info + controls */
    .fd-root .pager-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 0 0;
    }
    .fd-root .pager-controls {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .fd-root .pagination {
        flex-wrap: nowrap;
        width: max-content;
        padding-bottom: 6px;
    }
}

@media (max-width: 575.98px) {
    .fd-root .trans-search {
        height: 48px;
        padding-left: 44px !important;
        font-size: 14px;
    }
    .fd-root .trans-search-icon svg {
        top: 12px !important;
        left: 14px !important;
        width: 20px;
        height: 20px;
    }
    .fd-root .trans-select {
        height: 48px;
    }
}

/* Legacy search — overridden inside .fd-trans-panel */
.fd-root .trans-search {
    min-width: 448px !important;
    height: 52px;
    border-radius: 14px !important;
    border: 2px solid rgba(229, 231, 235, 1) !important;
    background: #fff !important;
    padding-left: 48px !important;
    font-size: 16px;
    color: rgba(16, 24, 40, 0.9);
}
.fd-root .trans-search::placeholder {
    color: rgba(16, 24, 40, 0.5);
}
.fd-root .trans-search-icon svg {
    top: 11px !important;
    left: 16px !important;
}
.fd-root .trans-search-icon svg path {
    stroke: rgba(16, 24, 40, 0.55) !important;
}

.fd-root.is-dark .trans-search {
    border-color: rgba(30, 41, 57, 0.7) !important;
    background: rgba(26, 34, 54, 0.7) !important;
    color: rgba(255, 255, 255, 0.9);
}
.fd-root.is-dark .trans-search::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.fd-root.is-dark .trans-search-icon svg path {
    stroke: rgba(255, 255, 255, 0.55) !important;
}

.fd-root .trans-select {
    height: 52px;
    border-radius: 14px !important;
    border: 2px solid rgba(229, 231, 235, 1) !important;
    background-color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    color: rgba(16, 24, 40, 0.86);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
}
.fd-root.is-dark .trans-select {
    border-color: rgba(30, 41, 57, 0.7) !important;
    background-color: rgba(26, 34, 54, 0.7) !important;
    color: rgba(255, 255, 255, 0.86);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' fill='none' stroke='%23CBD5E1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Some browsers/Bootstrap override select background-image; force ours on the actual selects */
.fd-root select.form-select.trans-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px 16px !important;
    padding-right: 44px !important;
}
.fd-root.is-dark select.form-select.trans-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' fill='none' stroke='%23CBD5E1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Buttons in the top control row */
.fd-root .trans-search-btn.btn,
.fd-root .btn.btn-outline-primary.rounded-4 {
    height: 40px;
    border-radius: 14px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(229, 231, 235, 1) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: rgba(54, 65, 83, 1) !important;
    font-weight: 700;
}
.fd-root .trans-search-btn.btn {
    border: 0 !important;
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 16px rgba(21, 101, 192, 0.18);
}
.fd-root .trans-search-btn.btn:disabled {
    opacity: 0.55;
    box-shadow: none;
}

.fd-root .trans-cancel-btn.btn {
    min-width: 96px;
    width: auto !important;
    flex: 0 0 auto !important;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(229, 231, 235, 1) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: rgba(54, 65, 83, 1) !important;
    font-weight: 700;
    line-height: 1 !important;
}

.fd-root.is-dark .trans-cancel-btn.btn {
    background: rgba(30, 41, 57, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(226, 232, 240, 0.9) !important;
}
.fd-root.is-dark .btn.btn-outline-primary.rounded-4 {
    background: rgba(30, 41, 57, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(226, 232, 240, 0.9) !important;
}

/* Pagination (Transactions) */
.fd-root .pager-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0px 3px 40px;
}
.fd-root .pager-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: rgba(16, 24, 40, 0.62);
}
.fd-root.is-dark .pager-info h6 {
    color: rgba(255, 255, 255, 0.62);
}
.fd-root .pagination {
    gap: 8px;
    margin: 0;
}
.fd-root .pagination .page-link,
.fd-root .pagination .page-num--current,
.fd-root .pagination .page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 1);
    background: rgba(255, 255, 255, 0.85);
    color: rgba(54, 65, 83, 1);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}
.fd-root .pagination .page-num--current {
    background: linear-gradient(90deg, #1a3d2b 0%, #2d5942 100%);
    color: #fff;
    border-color: rgba(26, 61, 43, 0.35);
}
.fd-root .pagination .page-ellipsis {
    border-color: transparent;
    background: transparent;
    min-width: 18px;
    padding: 0 6px;
}
.fd-root .pagination .page-link:hover {
    background: rgba(80, 70, 228, 0.08);
    border-color: rgba(80, 70, 228, 0.18);
}
.fd-root.is-dark .pagination .page-link,
.fd-root.is-dark .pagination .page-num--current,
.fd-root.is-dark .pagination .page-ellipsis {
    border-color: rgba(30, 41, 57, 0.8);
    background: rgba(26, 34, 54, 0.7);
    color: rgba(226, 232, 240, 0.9);
}
.fd-root.is-dark .pagination .page-num--current {
    background: rgba(184, 150, 12, 0.18);
    border-color: rgba(184, 150, 12, 0.22);
    color: #d4af37;
}
.fd-root.is-dark .pagination .page-link:hover {
    background: rgba(184, 150, 12, 0.12);
    border-color: rgba(184, 150, 12, 0.2);
}
.fd-root .pagination .page-arrow .page-link svg path {
    stroke: rgba(130, 127, 127, 1);
}
.fd-root.is-dark .pagination .page-arrow .page-link svg path {
    stroke: rgba(203, 213, 225, 0.9);
}

/* Transaction details modal (Transactions page) */
.fd-root [id^="transactionModal-"] .modal-content {
    border-radius: 16px;
    border: 2px solid rgba(229, 231, 235, 0.55);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.fd-root [id^="transactionModal-"] .modal-header {
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92),
        rgba(249, 250, 251, 1)
    );
    padding: 16px 18px;
}

.fd-root [id^="transactionModal-"] .modal-title {
    font-family:
        "Inter",
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.2px;
    color: rgba(16, 24, 40, 0.92);
}

.fd-root [id^="transactionModal-"] .modal-body {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92),
        rgba(249, 250, 251, 1)
    );
    padding: 16px 18px !important;
}

.fd-root [id^="transactionModal-"] .btn-close {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 1);
    background-color: rgba(255, 255, 255, 0.85);
    opacity: 1;
    box-shadow: 0 10px 16px rgba(16, 24, 40, 0.06);
}

/* Table inside modal */
.fd-root [id^="transactionModal-"] table.table {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    background: rgba(255, 255, 255, 0.9);
}
.fd-root
    [id^="transactionModal-"]
    .table-striped
    > tbody
    > tr:nth-of-type(odd)
    > * {
    --bs-table-accent-bg: rgba(16, 24, 40, 0.02);
}
.fd-root [id^="transactionModal-"] table.table th,
.fd-root [id^="transactionModal-"] table.table td {
    padding: 12px 14px;
    border-color: rgba(229, 231, 235, 0.8);
    vertical-align: top;
    font-size: 13.5px;
}
.fd-root [id^="transactionModal-"] table.table th {
    width: 220px;
    font-weight: 900;
    color: rgba(16, 24, 40, 0.66);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    background: rgba(16, 24, 40, 0.02);
}
.fd-root [id^="transactionModal-"] table.table td {
    color: rgba(16, 24, 40, 0.9);
    font-weight: 650;
}

/* Status text within modal */
.fd-root [id^="transactionModal-"] .text-warning strong {
    color: #d78708;
}
.fd-root [id^="transactionModal-"] .text-success strong {
    color: #10b981;
}
.fd-root [id^="transactionModal-"] .text-danger strong {
    color: #ef4444;
}

/* Dark mode */
.fd-root.is-dark [id^="transactionModal-"] .modal-content {
    border-color: rgba(30, 41, 57, 0.6);
    background: rgba(15, 21, 37, 0.96);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}
.fd-root.is-dark [id^="transactionModal-"] .modal-header {
    border-bottom-color: rgba(30, 41, 57, 0.75);
    background:
        radial-gradient(
            900px 240px at 20% 0%,
            rgba(184, 150, 12, 0.1),
            rgba(15, 21, 37, 0) 55%
        ),
        rgba(15, 21, 37, 0.96);
}
.fd-root.is-dark [id^="transactionModal-"] .modal-body {
    background: rgba(15, 21, 37, 0.96);
}
.fd-root.is-dark [id^="transactionModal-"] .modal-title {
    color: rgba(255, 255, 255, 0.92);
}
.fd-root.is-dark [id^="transactionModal-"] .btn-close {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.35);
    filter: invert(1) brightness(0.95);
}

.fd-root.is-dark [id^="transactionModal-"] table.table {
    border-color: rgba(30, 41, 57, 0.8);
    background: rgba(26, 34, 54, 0.6);
}
.fd-root.is-dark
    [id^="transactionModal-"]
    .table-striped
    > tbody
    > tr:nth-of-type(odd)
    > * {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.03);
}
.fd-root.is-dark [id^="transactionModal-"] table.table th,
.fd-root.is-dark [id^="transactionModal-"] table.table td {
    border-color: rgba(30, 41, 57, 0.8);
}
.fd-root.is-dark [id^="transactionModal-"] table.table th {
    color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.03);
}
.fd-root.is-dark [id^="transactionModal-"] table.table td {
    color: rgba(255, 255, 255, 0.88);
}
.fd-root.is-dark [id^="transactionModal-"] .text-warning strong {
    color: #d4af37;
}

/* Table container card */
.fd-root .summary-card-transactions-client,
.fd-root .summary-card2.summary-card-transactions-client {
    border-radius: 16px !important;
    border: none !important;
    background: #fff !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden;
}
.fd-root.is-dark .summary-card-transactions-client,
.fd-root.is-dark .summary-card2.summary-card-transactions-client {
    border-color: transparent !important;
    background: rgba(15, 21, 37, 0.92) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important;
}

/* Avoid scrollbar when table is short (transactions.css uses overflow: scroll) */
.fd-root .summary-card-transactions-client .scrollable,
.fd-root .summary-card2.summary-card-transactions-client .scrollable {
    overflow: auto !important;
}

/* Table header */
.fd-root .table-header-transactions tr {
    background: #1a3d2b !important;
}
.fd-root .table-header-transactions th {
    font-family:
        "Inter",
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    font-weight: 900 !important;
    font-size: 12px !important;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 20px 0 !important;
    border: 0 !important;
}

/* Table cells */
.fd-root .trans-table-client td {
    border-color: rgba(229, 231, 235, 1) !important;
    padding: 18px 10px !important;
    vertical-align: middle;
    font-size: 14px;
    color: rgba(16, 24, 40, 0.86);
}
.fd-root.is-dark .trans-table-client td {
    border-color: rgba(30, 41, 57, 0.65) !important;
    color: rgba(255, 255, 255, 0.82);
}

/* Hover state (override `transactions.css` hover which uses white-mix) */
.fd-root .table-wrapper table tr:not(:last-child):not(.no-hover):hover {
    background: rgba(16, 24, 40, 0.03) !important;
}
.fd-root.is-dark .table-wrapper table tr:not(:last-child):not(.no-hover):hover {
    background: rgba(255, 255, 255, 0.04) !important;
}
.fd-root .table-wrapper table tr:not(:last-child):not(.no-hover):hover td {
    color: rgba(16, 24, 40, 0.9) !important;
}
.fd-root.is-dark
    .table-wrapper
    table
    tr:not(:last-child):not(.no-hover):hover
    td {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* Never apply hover effects to filler rows */
.fd-root .table-wrapper table tr.no-hover:hover,
.fd-root .table-wrapper table tr.no-hover:hover td {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* Checkout ID: link-like + monospace */
.fd-root .trans-table-client td.first-column {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    font-weight: 700;
    color: #1565c0;
    text-align: left;
    padding-left: 24px !important;
}
.fd-root.is-dark .trans-table-client td.first-column {
    color: rgba(96, 165, 250, 0.95);
}

/* Payment ID: muted monospace */
.fd-root .trans-table-client td:nth-child(2) {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    font-size: 13px;
    color: rgba(54, 65, 83, 0.9);
}
.fd-root.is-dark .trans-table-client td:nth-child(2) {
    color: rgba(226, 232, 240, 0.78);
}

/* Status pills (reuse existing span wrappers) */
.fd-root .pendingBg-color span,
.fd-root .created-color span {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #d78708 !important;
    border-radius: 999px !important;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px !important;
}
.fd-root .donebg-color span {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #10b981 !important;
    border-radius: 999px !important;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px !important;
}
.fd-root .failedBg-color span {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #ef4444 !important;
    border-radius: 999px !important;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px !important;
}

/* Dark mode pill contrast */
.fd-root.is-dark .pendingBg-color span,
.fd-root.is-dark .created-color span {
    background: rgba(212, 175, 55, 0.16) !important;
    color: #d4af37 !important;
}
.fd-root.is-dark .donebg-color span {
    background: rgba(16, 185, 129, 0.18) !important;
    color: rgba(16, 185, 129, 0.95) !important;
}
.fd-root.is-dark .failedBg-color span {
    background: rgba(239, 68, 68, 0.18) !important;
    color: rgba(239, 68, 68, 0.95) !important;
}

/* ── .fd-trans-page (panel, export modal, compact table) ── */
.fd-root:has(.fd-trans-page) .fd-topbar {
    margin-bottom: 11px;
}
.fd-root:has(.fd-trans-page) .fd-shell {
    padding-top: 16px;
    padding-bottom: 18px;
}
.fd-trans-page {
    margin-top: 0;
    --fd-trans-green: #1a3d2b;
    --fd-trans-green-mid: #2d5942;
    --fd-trans-control-h: 40px;
    --fd-trans-search-max: 320px;
    --fd-trans-scroll-max: calc(100vh - 16rem);
    --fd-trans-radius: 10px;
    --fd-trans-radius-lg: 14px;
    --fd-trans-border: rgba(229, 231, 235, 0.65);
    --fd-trans-muted: var(--fd-muted, #6b7494);
}
.fd-currency-amount {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.fd-currency-icon,
.fd-currency-symbol {
    line-height: 1;
    flex-shrink: 0;
}
.fd-currency-symbol {
    font-weight: 700;
    font-size: 0.92em;
}
.fd-trans-page .trans-table-client .fd-currency-icon {
    font-size: 0.85em;
}
.fd-trans-page .currency-mob .fd-currency-amount {
    font-size: 1rem;
    font-weight: 700;
}
.fd-trans-panel {
    margin-bottom: 16px !important;
}
/* Hero row: stat tiles + download (Stitch) */
.fd-trans-panel__hero {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    align-items: stretch;
}
.fd-trans-panel__hero:has(.fd-trans-download) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(200px, 1.15fr);
}
.fd-trans-tiles {
    display: contents;
}
.fd-trans-tile {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    padding: 14px 16px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    display: flex;
    flex-direction: column;
}
.fd-trans-tile__glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
}
.fd-trans-tile--green .fd-trans-tile__glow {
    background: #10b981;
    top: -40px;
    left: -30px;
}
.fd-trans-tile--rose .fd-trans-tile__glow {
    background: #ef4444;
    top: -40px;
    left: -30px;
}
.fd-trans-tile--purple .fd-trans-tile__glow {
    background: #a855f7;
    top: -50px;
    right: -20px;
    left: auto;
}
.fd-trans-tile--blue .fd-trans-tile__glow {
    background: #3b82f6;
    top: -50px;
    right: -20px;
    left: auto;
}
.fd-trans-tile--slate .fd-trans-tile__glow {
    background: #64748b;
    top: -45px;
    right: -25px;
    left: auto;
    opacity: 0.2;
}
.fd-trans-tile__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.fd-trans-tile__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fd-muted, #6b7494);
    line-height: 1.2;
}
/* Inline diagonal arrow next to the label (no badge background) */
.fd-trans-tile__arrow {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}
.fd-trans-tile__arrow--green {
    color: #34d399;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.45));
}
.fd-root:not(.is-dark) .fd-trans-tile__arrow--green {
    color: #10b981;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.3));
}
.fd-trans-tile__value {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--fd-ink, #101828);
}
.fd-trans-tile__value--text {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.fd-trans-tile__foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
}
.fd-trans-tile__sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--fd-muted, #6b7494);
    line-height: 1.2;
}
/* Light mode tiles */
.fd-root:not(.is-dark) .fd-trans-tile {
    border-color: rgba(10, 15, 30, 0.08);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(10, 15, 30, 0.04),
        0 8px 24px -8px rgba(10, 15, 30, 0.08);
}
.fd-root:not(.is-dark) .fd-trans-tile__glow {
    opacity: 0.12;
}
.fd-root:not(.is-dark) .fd-trans-tile--green {
    background: linear-gradient(145deg, #f4fcf8 0%, #fff 55%);
}
.fd-root:not(.is-dark) .fd-trans-tile--purple {
    background: linear-gradient(145deg, #faf5ff 0%, #fff 55%);
}
.fd-root:not(.is-dark) .fd-trans-tile--blue {
    background: linear-gradient(145deg, #f0f7ff 0%, #fff 55%);
}
.fd-root:not(.is-dark) .fd-trans-tile--slate {
    background: linear-gradient(145deg, #f8fafc 0%, #fff 55%);
}
.fd-root:not(.is-dark) .fd-trans-tile--rose {
    background: linear-gradient(145deg, #fff5f5 0%, #fff 55%);
}
/* Dark mode tiles */
.fd-root.is-dark .fd-trans-tile {
    background: linear-gradient(
        145deg,
        rgba(22, 28, 45, 0.95) 0%,
        rgba(15, 21, 37, 0.98) 100%
    );
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
}
.fd-root.is-dark .fd-trans-tile__value {
    color: #f8fafc;
}
.fd-root.is-dark .fd-trans-tile__label,
.fd-root.is-dark .fd-trans-tile__sub {
    color: rgba(148, 163, 184, 0.95);
}
/* Download CTA — same row as tiles */
.fd-trans-download {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 118px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    text-align: left;
    background:
        radial-gradient(120% 130% at 0% 0%, rgba(212, 175, 55, 0.18) 0%, transparent 55%),
        radial-gradient(140% 130% at 100% 100%, rgba(45, 89, 66, 0.55) 0%, transparent 60%),
        linear-gradient(135deg, #14301f 0%, #1a3d2b 38%, #1f5236 72%, #2d5942 100%);
    box-shadow:
        0 16px 36px -14px rgba(0, 0, 0, 0.55),
        0 4px 14px -6px rgba(26, 61, 43, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}
.fd-trans-download__glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.35) 0%,
        transparent 70%
    );
    top: -70px;
    right: -50px;
    filter: blur(20px);
    pointer-events: none;
    opacity: 0.9;
}
.fd-trans-download__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0.12) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f3d77a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 6px 14px -6px rgba(212, 175, 55, 0.35);
    flex-shrink: 0;
}
.fd-trans-download__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.fd-trans-download__title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #fff;
}
.fd-trans-download__sub {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(243, 215, 122, 0.85);
    line-height: 1.2;
}
.fd-trans-download:hover,
.fd-trans-download:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 22px 44px -14px rgba(0, 0, 0, 0.6),
        0 6px 18px -6px rgba(26, 61, 43, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.fd-trans-download:active {
    transform: translateY(0);
}
/* Light mode — softer card-like primary button */
.fd-root:not(.is-dark) .fd-trans-download {
    border-color: rgba(26, 61, 43, 0.22);
    color: #fff;
    background:
        radial-gradient(120% 130% at 0% 0%, rgba(212, 175, 55, 0.22) 0%, transparent 55%),
        radial-gradient(140% 130% at 100% 100%, rgba(26, 61, 43, 0.85) 0%, transparent 65%),
        linear-gradient(135deg, #1a3d2b 0%, #235139 40%, #2d5942 80%, #38684f 100%);
    box-shadow:
        0 18px 32px -14px rgba(26, 61, 43, 0.45),
        0 6px 14px -6px rgba(26, 61, 43, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.fd-root:not(.is-dark) .fd-trans-download__glow {
    opacity: 0.7;
}
.fd-root:not(.is-dark) .fd-trans-download__icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fde68a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 12px -4px rgba(0, 0, 0, 0.25);
}
.fd-root:not(.is-dark) .fd-trans-download__sub {
    color: rgba(253, 230, 138, 0.95);
}
.fd-root:not(.is-dark) .fd-trans-download:hover,
.fd-root:not(.is-dark) .fd-trans-download:focus-visible {
    box-shadow:
        0 24px 44px -14px rgba(26, 61, 43, 0.55),
        0 8px 18px -6px rgba(26, 61, 43, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
@media (max-width: 1199.98px) {
    .fd-trans-download {
        min-height: 64px;
        padding: 14px 18px;
    }
    .fd-trans-download__icon {
        width: 40px;
        height: 40px;
    }
}
/* Filters row — search left, dropdowns right */
.fd-trans-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}
.fd-trans-filters__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--fd-muted, #6b7494);
    line-height: 1;
}
.fd-trans-filters__search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 520px;
}
.fd-trans-filters__search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.fd-trans-filters__search-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 200px;
    min-width: 160px;
    max-width: var(--fd-trans-search-max);
}
.fd-trans-filters__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    color: var(--fd-muted, #6b7494);
    pointer-events: none;
}
.fd-trans-filters__search-icon svg {
    width: 17px;
    height: 17px;
}
.fd-trans-filters__input {
    width: 100%;
    height: var(--fd-trans-control-h);
    min-height: var(--fd-trans-control-h);
    padding: 0 12px 0 38px;
    border-radius: 10px;
    border: 1px solid var(--fd-line);
    background: var(--fd-card);
    color: var(--fd-ink);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}
.fd-trans-filters__input::placeholder {
    color: var(--fd-muted, #6b7494);
    font-weight: 500;
}
.fd-trans-filters__input:focus {
    border-color: rgba(26, 61, 43, 0.45);
    box-shadow: 0 0 0 3px rgba(26, 61, 43, 0.12);
}
.fd-trans-filters__search-field:focus-within .fd-trans-filters__search-icon {
    color: #1a3d2b;
}
.fd-trans-filters__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.fd-trans-filters__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--fd-trans-control-h);
    min-height: var(--fd-trans-control-h);
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}
.fd-trans-filters__btn--clear {
    border: 1px solid var(--fd-line);
    background: var(--fd-card);
    color: var(--fd-muted, #6b7494);
}
.fd-trans-filters__btn--search {
    border: none;
    background: linear-gradient(
        135deg,
        var(--fd-trans-green) 0%,
        var(--fd-trans-green-mid) 100%
    );
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(26, 61, 43, 0.45);
}
.fd-trans-filters__btn--search:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
.fd-trans-filters__btn--search:not(:disabled):hover {
    filter: brightness(1.06);
    color: #fff;
}
/* Beat transactions page inline .btn:hover (nav blue) */
.fd-trans-page .fd-trans-filters__btn--clear:hover,
.fd-trans-page .fd-trans-filters__btn--clear:focus {
    background: var(--fd-card) !important;
    border-color: var(--fd-line) !important;
    color: var(--fd-ink) !important;
}
.fd-trans-page .fd-trans-filters__btn--search:not(:disabled):hover,
.fd-trans-page .fd-trans-filters__btn--search:not(:disabled):focus {
    background: linear-gradient(
        135deg,
        var(--fd-trans-green) 0%,
        var(--fd-trans-green-mid) 100%
    ) !important;
    color: #fff !important;
    border: none !important;
}
/* Light mode — search & filter controls */
.fd-root:not(.is-dark) .fd-trans-filters__label {
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.fd-root:not(.is-dark) .fd-trans-filters__input {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.fd-root:not(.is-dark) .fd-trans-filters__input::placeholder {
    color: #94a3b8;
}
.fd-root:not(.is-dark) .fd-trans-filters__input:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}
.fd-root:not(.is-dark) .fd-trans-filters__input:focus {
    border-color: rgba(26, 61, 43, 0.35);
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(26, 61, 43, 0.1),
        0 1px 2px rgba(15, 23, 42, 0.05);
}
.fd-root:not(.is-dark)
    .fd-trans-filters__search-field:focus-within
    .fd-trans-filters__search-icon {
    color: #1a3d2b;
}
.fd-root:not(.is-dark) .fd-trans-filters__btn--clear {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.fd-root:not(.is-dark) .fd-trans-filters__btn--clear:hover,
.fd-root:not(.is-dark) .fd-trans-page .fd-trans-filters__btn--clear:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
.fd-root.is-dark .fd-trans-filters__btn--clear {
    background: rgba(15, 21, 37, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}
.fd-root.is-dark .fd-trans-filters__btn--clear:hover,
.fd-root.is-dark .fd-trans-page .fd-trans-filters__btn--clear:hover {
    background: rgba(26, 34, 54, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
}
.fd-trans-filters__selects {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    flex: 0 1 auto;
    margin-left: auto;
}
.fd-trans-filters__field {
    min-width: 148px;
}
.fd-trans-filters__select {
    width: 100%;
    height: var(--fd-trans-control-h);
    min-height: var(--fd-trans-control-h);
    padding: 0 36px 0 12px;
    border-radius: 10px;
    border: 1px solid var(--fd-line);
    background-color: var(--fd-card);
    color: var(--fd-ink);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}
.fd-root:not(.is-dark) .fd-trans-filters__select {
    background-color: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.fd-root:not(.is-dark) .fd-trans-filters__select:hover {
    border-color: #cbd5e1;
    background-color: #fafbfc;
}
.fd-root:not(.is-dark) .fd-trans-filters__select:focus {
    border-color: rgba(26, 61, 43, 0.35);
    box-shadow:
        0 0 0 3px rgba(26, 61, 43, 0.1),
        0 1px 2px rgba(15, 23, 42, 0.05);
}
.fd-root.is-dark .fd-trans-filters__select {
    background-color: rgba(15, 21, 37, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.fd-root.is-dark .fd-trans-filters__input {
    background: rgba(15, 21, 37, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
.fd-root.is-dark .fd-trans-filters__input:focus {
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 0 3px rgba(26, 61, 43, 0.35);
}
.fd-trans-export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(
        135deg,
        var(--fd-trans-green) 0%,
        var(--fd-trans-green-mid) 100%
    );
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(26, 61, 43, 0.55);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}
.fd-trans-export-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(26, 61, 43, 0.6);
    filter: brightness(1.06);
}
.fd-trans-export-btn__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}
.fd-trans-export-btn__icon {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 1;
}
.fd-root.is-dark .fd-trans-export-btn {
    box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.5);
}
/* Export modal (.fd-trans-export-modal) */
.fd-trans-export-modal__dialog {
    max-width: 420px;
}
.fd-trans-export-modal__content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px -12px rgba(10, 15, 30, 0.3);
}
.fd-trans-export-modal__content::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--fd-trans-green) 0%,
        var(--fd-trans-green-mid) 50%,
        #3d7a5c 100%
    );
}
.fd-trans-export-modal__header {
    border-bottom: 1px solid rgba(229, 231, 235, 0.55);
    padding: 18px 20px 16px;
    align-items: center;
    background: linear-gradient(180deg, rgba(26, 61, 43, 0.06) 0%, #fff 100%);
}
.fd-trans-export-modal__title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* Self-contained brand vars so the modal renders correctly outside .fd-trans-page (e.g. admin pages) */
.fd-trans-export-modal {
    --fd-trans-green: #1a3d2b;
    --fd-trans-green-mid: #2d5942;
}
.fd-trans-export-modal__title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        var(--fd-trans-green) 0%,
        var(--fd-trans-green-mid) 100%
    );
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px -4px rgba(26, 61, 43, 0.5);
}
.fd-trans-export-modal__header .modal-title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--fd-ink, #101828);
    letter-spacing: -0.02em;
}
.fd-trans-export-modal__body {
    padding: 18px 20px 20px;
    background: #fff;
}
.fd-trans-export-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.fd-trans-export-preset {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8faf9;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition:
        background 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease,
        box-shadow 0.12s ease;
}
.fd-trans-export-preset:hover {
    border-color: rgba(26, 61, 43, 0.35);
    background: rgba(26, 61, 43, 0.07);
    color: #1a3d2b;
}
.fd-trans-export-preset.is-active {
    border-color: #1a3d2b;
    background: rgba(26, 61, 43, 0.12);
    color: #1a3d2b;
    box-shadow: 0 0 0 1px rgba(26, 61, 43, 0.12);
}
.fd-trans-export-dates {
    padding: 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #eef0f2;
}
.fd-trans-export-modal__field-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fd-muted, #6b7494);
    margin-bottom: 6px;
}
.fd-trans-export-date {
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.fd-trans-export-date:focus {
    border-color: rgba(26, 61, 43, 0.5);
    box-shadow: 0 0 0 3px rgba(26, 61, 43, 0.1);
    outline: none;
}
.fd-trans-export-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid rgba(229, 231, 235, 0.55);
    padding: 14px 20px 18px;
    gap: 10px;
    background: #f9fafb;
}
.fd-trans-export-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    max-width: 220px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        var(--fd-trans-green) 0%,
        var(--fd-trans-green-mid) 100%
    );
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(26, 61, 43, 0.45);
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}
.fd-trans-export-submit:hover,
.fd-trans-export-submit:focus,
.fd-trans-export-submit:active {
    color: #fff;
    filter: brightness(1.06);
    box-shadow: 0 6px 18px -4px rgba(26, 61, 43, 0.5);
}
.fd-trans-export-submit:hover,
.fd-trans-export-submit:focus {
    transform: translateY(-1px);
}
.fd-trans-export-submit:active {
    transform: translateY(0);
}
.fd-trans-export-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    text-decoration: none;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}
.fd-trans-export-cancel:hover,
.fd-trans-export-cancel:focus {
    color: #374151;
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: none;
    outline: none;
}
.fd-trans-export-cancel:active {
    background: #e5e7eb;
    color: #1f2937;
    border-color: #d1d5db;
}
/* Beat inline .btn:hover (nav blue) from host pages — scoped to the modal itself */
.fd-trans-export-modal .fd-trans-export-cancel:hover,
.fd-trans-export-modal .fd-trans-export-cancel:focus,
.fd-trans-export-modal .fd-trans-export-cancel:active {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}
.fd-trans-export-modal .fd-trans-export-submit,
.fd-trans-export-modal .fd-trans-export-submit:hover,
.fd-trans-export-modal .fd-trans-export-submit:focus,
.fd-trans-export-modal .fd-trans-export-submit:active {
    background: linear-gradient(
        135deg,
        var(--fd-trans-green) 0%,
        var(--fd-trans-green-mid) 100%
    ) !important;
    color: #fff !important;
    border: none !important;
}
.fd-root.is-dark .fd-trans-export-modal__content {
    background: rgba(15, 21, 37, 0.98);
}
.fd-root.is-dark .fd-trans-export-modal__header {
    background: linear-gradient(
        180deg,
        rgba(26, 61, 43, 0.2) 0%,
        rgba(15, 21, 37, 0.98) 100%
    );
    border-color: rgba(255, 255, 255, 0.08);
}
.fd-root.is-dark .fd-trans-export-modal__body {
    background: rgba(15, 21, 37, 0.98);
}
.fd-root.is-dark .fd-trans-export-modal__header .modal-title {
    color: #e2e8f0;
}
.fd-root.is-dark .fd-trans-export-dates {
    background: rgba(10, 14, 26, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}
.fd-root.is-dark .fd-trans-export-preset {
    background: rgba(10, 14, 26, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
.fd-root.is-dark .fd-trans-export-preset:hover {
    background: rgba(26, 61, 43, 0.25);
    color: #e2e8f0;
}
.fd-root.is-dark .fd-trans-export-preset.is-active {
    background: rgba(26, 61, 43, 0.35);
    border-color: rgba(52, 211, 153, 0.4);
    color: #34d399;
}
.fd-root.is-dark .fd-trans-export-date {
    background: rgba(15, 21, 37, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}
.fd-root.is-dark .fd-trans-export-modal__footer {
    background: rgba(10, 14, 26, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}
.fd-root.is-dark .fd-trans-export-cancel,
html.is-dark .fd-trans-export-modal .fd-trans-export-cancel {
    background: rgba(15, 21, 37, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}
.fd-root.is-dark .fd-trans-export-modal .fd-trans-export-cancel:hover,
.fd-root.is-dark .fd-trans-export-modal .fd-trans-export-cancel:focus,
.fd-root.is-dark .fd-trans-export-modal .fd-trans-export-cancel:active,
html.is-dark .fd-trans-export-modal .fd-trans-export-cancel:hover,
html.is-dark .fd-trans-export-modal .fd-trans-export-cancel:focus,
html.is-dark .fd-trans-export-modal .fd-trans-export-cancel:active {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #e2e8f0 !important;
}
/* Dark mode submit — keep a strong, readable green so the button is clearly visible */
.fd-root.is-dark .fd-trans-export-modal .fd-trans-export-submit,
.fd-root.is-dark .fd-trans-export-modal .fd-trans-export-submit:hover,
.fd-root.is-dark .fd-trans-export-modal .fd-trans-export-submit:focus,
.fd-root.is-dark .fd-trans-export-modal .fd-trans-export-submit:active,
html.is-dark .fd-trans-export-modal .fd-trans-export-submit,
html.is-dark .fd-trans-export-modal .fd-trans-export-submit:hover,
html.is-dark .fd-trans-export-modal .fd-trans-export-submit:focus,
html.is-dark .fd-trans-export-modal .fd-trans-export-submit:active {
    background: linear-gradient(135deg, #1f5236 0%, #2d7a55 60%, #38a169 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px -6px rgba(56, 161, 105, 0.45) !important;
    border: none !important;
}

/* .fd-trans-page — responsive */
@media (max-width: 575.98px) {
    .fd-trans-export-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .fd-trans-export-submit {
        max-width: none;
        width: 100%;
    }
    .fd-trans-export-cancel {
        width: 100%;
    }
}
@media (max-width: 1199.98px) {
    .fd-trans-panel__hero,
    .fd-trans-panel__hero:has(.fd-trans-download) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fd-trans-download {
        grid-column: 1 / -1;
        min-height: 64px;
    }
}
@media (max-width: 767.98px) {
    .fd-trans-panel__hero,
    .fd-trans-panel__hero:has(.fd-trans-download) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .fd-trans-tile {
        min-height: 84px;
        padding: 10px 12px 10px;
        border-radius: 12px;
    }
    .fd-trans-tile__label {
        font-size: 9.5px;
        letter-spacing: 0.06em;
    }
    .fd-trans-tile__value {
        margin-top: 4px;
        font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    }
    .fd-trans-tile__value--text {
        font-size: clamp(0.9rem, 3.6vw, 1.1rem);
    }
    .fd-trans-tile__top {
        gap: 6px;
    }
    .fd-trans-tile__arrow {
        width: 12px;
        height: 12px;
    }
    .fd-trans-tile__foot {
        padding-top: 4px;
        min-height: 0;
    }
    .fd-trans-tile__sub {
        font-size: 10px;
    }
    .fd-trans-download {
        grid-column: 1 / -1;
        min-height: 56px;
        padding: 10px 14px;
        gap: 10px;
        border-radius: 12px;
    }
    .fd-trans-download__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .fd-trans-download__title {
        font-size: 13px;
    }
    .fd-trans-download__sub {
        font-size: 10px;
    }
    .fd-trans-filters__selects {
        width: 100%;
        margin-left: 0;
    }
    .fd-trans-filters__field {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }
}
@media (max-width: 419.98px) {
    .fd-trans-panel__hero,
    .fd-trans-panel__hero:has(.fd-trans-download) {
        grid-template-columns: 1fr;
    }
    .fd-trans-download {
        grid-column: auto;
    }
}
@media (max-width: 575.98px) {
    .fd-trans-filters__search {
        max-width: none;
    }
    .fd-trans-filters__search-field {
        max-width: none;
        flex: 1 1 100%;
    }
    .fd-trans-filters__actions {
        width: 100%;
    }
    .fd-trans-filters__actions .fd-trans-filters__btn {
        flex: 1 1 0;
    }
    .fd-trans-filters__field {
        flex: 1 1 100%;
    }
}
/* Table — grows with rows, scrolls past viewport cap */
.fd-trans-page .fd-trans-table-card {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    max-height: var(--fd-trans-scroll-max);
    min-height: 0;
}
.fd-trans-page .fd-trans-table-card .scrollable {
    flex: 0 1 auto;
    min-height: 0;
    max-height: var(--fd-trans-scroll-max) !important;
    overflow: auto;
}
.fd-trans-page .trans-table-empty td {
    border: 0 !important;
    padding: 3rem 1.5rem !important;
    vertical-align: middle;
    color: var(--fd-muted, #6b7494);
    font-weight: 600;
}
.fd-root.is-dark .fd-trans-page .trans-table-empty td {
    color: rgba(148, 163, 184, 0.9);
}
.fd-trans-page .table-header-transactions th {
    padding: 14px 8px !important;
    font-size: 12px !important;
    letter-spacing: 0.06em;
}
.fd-trans-page .trans-table-client td {
    padding: 12px 10px !important;
    font-size: 13.5px !important;
    line-height: 1.4;
}
.fd-trans-page .trans-table-client td.first-column {
    padding-left: 20px !important;
}
.fd-trans-page .trans-table-client td:nth-child(2) {
    font-size: 13px !important;
}
.fd-trans-page .trans-table-client tr.no-hover td {
    padding: 10px 10px !important;
    line-height: 1.2;
}
.fd-trans-page .pendingBg-color span,
.fd-trans-page .created-color span,
.fd-trans-page .donebg-color span,
.fd-trans-page .failedBg-color span {
    padding: 5px 11px !important;
    font-size: 12px !important;
    line-height: 1.25;
}
.fd-trans-page .table-foot-cell,
.fd-trans-page .pager-bar {
    margin-top: 10px !important;
}
.fd-trans-page .pager-info h6 {
    margin: 0;
    font-size: 12px;
}
@media (max-width: 991.98px) {
    .fd-trans-page {
        --fd-trans-scroll-max: none;
    }
    .fd-trans-page .fd-trans-table-card,
    .fd-trans-page .fd-trans-table-card .scrollable {
        max-height: none !important;
    }
}

.fd-root.is-dark .progress-vertical .body a {
    color: rgba(148, 163, 255, 0.95);
}
.fd-root.is-dark .progress-vertical .body a:hover {
    color: rgba(184, 196, 255, 0.98);
}

/* Right-side links inside code/info boxes */
.fd-root.is-dark .box-content a,
.fd-root.is-dark .box-header a {
    color: rgba(148, 163, 255, 0.95);
    text-decoration: none;
}
.fd-root.is-dark .box-content a:hover,
.fd-root.is-dark .box-header a:hover {
    color: rgba(184, 196, 255, 0.98);
    text-decoration: underline;
}

/* Code/info boxes */
.fd-root .header-wrapper {
    margin-top: 14px;
}

.fd-root .box-header {
    border: 1px solid var(--fd-line);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92),
        rgba(255, 255, 255, 0.78)
    );
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 16px rgba(16, 24, 40, 0.06);
}

.fd-root.is-dark .box-header {
    background: rgba(15, 21, 37, 0.55);
}

.fd-root .box-header p,
.fd-root .box-header span {
    color: var(--fd-ink);
}

.fd-root.is-dark .box-header p,
.fd-root.is-dark .box-header span {
    color: rgba(255, 255, 255, 0.86);
}

.fd-root .box-content {
    border: 1px solid var(--fd-line);
    background:
        radial-gradient(
            900px 240px at 15% 0%,
            rgba(80, 70, 228, 0.1),
            rgba(80, 70, 228, 0) 55%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.72),
            rgba(255, 255, 255, 0.6)
        );
    border-radius: 14px;
    margin-top: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 16px rgba(16, 24, 40, 0.05);
}

.fd-root.is-dark .box-content {
    background: rgba(255, 255, 255, 0.05);
}

.fd-root .box-content p {
    margin-bottom: 0 !important;
    padding: 6px 12px;
    font-family:
        "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", monospace !important;
    font-size: 13px;
    line-height: 20px;
    color: var(--fd-ink);
}

/* Token colors (keep intent but align with theme) */
.fd-root .pink-text {
    color: #d946ef; /* magenta */
    font-weight: 650;
}

.fd-root .yellow-text {
    color: #f59e0b; /* amber */
    font-weight: 650;
}

.fd-root .comment-text {
    color: #22c55e; /* green */
}

.fd-root .blue-text-color,
.fd-root .box-text-secondary {
    color: rgba(16, 24, 40, 0.78);
}
.fd-root.is-dark .blue-text-color,
.fd-root.is-dark .box-text-secondary {
    color: rgba(255, 255, 255, 0.78);
}

/* Copy button polish (works with existing markup) */
.fd-root .copy-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--fd-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
    transition:
        transform 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}
.fd-root .copy-btn:hover {
    transform: translateY(-1px);
    background: rgba(80, 70, 228, 0.08);
    box-shadow: 0 10px 16px rgba(16, 24, 40, 0.08);
}
.fd-root.is-dark .copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.25);
}
.fd-root.is-dark .copy-btn:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.22);
}
.fd-root.is-dark .copy-btn svg *,
.fd-root.is-dark .copy-btn svg path {
    fill: rgba(255, 255, 255, 0.92) !important;
    stroke: rgba(255, 255, 255, 0.92) !important;
}

.fd-sidenav {
    width: 255px;
    border-right: 1px solid rgba(45, 89, 66, 0.3);
    background: linear-gradient(
        180deg,
        #1a3d2b 0%,
        #1a3d2b 50%,
        #183928 57.14%,
        #173526 64.29%,
        #153223 71.43%,
        #142e21 78.57%,
        #122a1e 85.71%,
        #11271b 92.86%,
        #0f2319 100%
    );
}
.is-dark .fd-sidenav {
    background-image: linear-gradient(
        180deg,
        rgb(15, 35, 25) 0%,
        rgb(15, 35, 25) 50%,
        rgb(13, 31, 22) 57.143%,
        rgb(12, 28, 20) 64.286%,
        rgb(10, 24, 17) 71.429%,
        rgb(9, 20, 14) 78.571%,
        rgb(7, 17, 12) 85.714%,
        rgb(6, 13, 9) 92.857%,
        rgb(5, 10, 7) 100%
    );
    border-right: 1px solid rgba(26, 61, 43, 0.5);
}

.fd-sidenav .fd-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
    /* height:34px; */
}

.fd-sidenav .fd-brand .mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.fd-sidenav .fd-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fd-sidenav .fd-brand .name {
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.15px;
    white-space: nowrap;
}

.fd-sidenav .fd-section {
    margin-top: 20px;
    padding: 0 14px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(200, 210, 230, 0.3);
}

.fd-sidenav .nav {
    margin-top: 16px;
    gap: 16px !important;
}

/* prevent global .active styles from index.css from affecting layout */
.fd-sidenav .nav-item.active {
    background: transparent !important;
    border-radius: 0 !important;
}

.fd-sidenav .nav .nav-link {
    border-radius: 14px;
    padding: 12px 16px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    color: #d1d5dc !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    transition:
        background-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.fd-sidenav .nav .nav-link svg {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 auto;
}

.fd-sidenav .nav .nav-link .fd-nav-ico {
    width: 20px;
    height: 20px;
    color: #d1d5dc;
}
.fd-sidenav .nav .nav-link .fd-nav-ico svg {
    opacity: 0.7;
    transition: opacity 180ms ease;
}
.fd-sidenav .nav .nav-item.active .fd-nav-ico {
    color: #fff;
}
.fd-sidenav .nav .nav-item.active .fd-nav-ico svg {
    opacity: 1;
}
.fd-sidenav .nav .nav-link:hover .fd-nav-ico {
    color: #fff;
}
.fd-sidenav .nav .nav-link:hover .fd-nav-ico svg {
    opacity: 1;
}

/* ensure default (black) SVGs are visible on dark bg */
.fd-sidenav .nav .nav-link svg * {
    fill: rgba(200, 210, 230, 0.55) !important;
    stroke: rgba(200, 210, 230, 0.55) !important;
}

.fd-sidenav .nav .nav-item.active .nav-link {
    background-image: linear-gradient(
        90deg,
        rgb(184, 150, 12) 0%,
        rgb(187, 153, 19) 11.111%,
        rgb(190, 156, 25) 22.222%,
        rgb(193, 158, 31) 33.333%,
        rgb(196, 161, 35) 44.444%,
        rgb(199, 164, 40) 55.556%,
        rgb(203, 167, 44) 66.667%,
        rgb(206, 169, 48) 77.778%,
        rgb(209, 172, 51) 88.889%,
        rgb(212, 175, 55) 100%
    ) !important;
    color: #fff !important;
    box-shadow:
        0px 4px 3px rgba(184, 150, 12, 0.2),
        0px 10px 7.5px rgba(184, 150, 12, 0.2);
    border-left: 0 !important;
}

.fd-sidenav .nav .nav-item.active .nav-link svg * {
    fill: #fff !important;
    stroke: #fff !important;
}

.fd-sidenav .nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
}

.fd-sidenav .nav .nav-link:hover svg * {
    fill: #fff !important;
    stroke: #fff !important;
}

/* Don't override active (gold) pill when hovered */
.fd-sidenav .nav .nav-item.active .nav-link:hover {
    background-image: linear-gradient(
        90deg,
        rgb(184, 150, 12) 0%,
        rgb(187, 153, 19) 11.111%,
        rgb(190, 156, 25) 22.222%,
        rgb(193, 158, 31) 33.333%,
        rgb(196, 161, 35) 44.444%,
        rgb(199, 164, 40) 55.556%,
        rgb(203, 167, 44) 66.667%,
        rgb(206, 169, 48) 77.778%,
        rgb(209, 172, 51) 88.889%,
        rgb(212, 175, 55) 100%
    ) !important;
}

.fd-sidenav .fd-account {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fd-sidenav .fd-account .badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 11px;
}

.fd-sidenav .fd-account .meta {
    display: flex;
    flex-direction: column;
    line-height: 1;
    min-width: 0;
}

.fd-sidenav .fd-account .meta .title {
    color: #e2e8f0;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fd-sidenav .fd-account .meta .sub {
    margin-top: 2px;
    color: rgba(200, 210, 230, 0.4);
    font-size: 10px;
    font-weight: 700;
}

/* Sidebar logout button (desktop + mobile offcanvas) */
.fd-sidebar-logout {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px;
}

/* Sidebar bottom logo (replaces logout) */
.fd-sidebar-logo {
    margin-top: auto;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.fd-sidebar-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.fd-sidebar-accent {
    margin-top: auto;
    padding: 16px 16px 0;
}
.fd-sidebar-accent-bar {
    height: 4px;
    width: 100%;
    border-radius: 999999px;
    opacity: 0.5;
    background-image: linear-gradient(
        90deg,
        rgb(184, 150, 12) 0%,
        rgb(188, 154, 21) 7.1429%,
        rgb(192, 157, 28) 14.286%,
        rgb(196, 161, 35) 21.429%,
        rgb(200, 164, 40) 28.571%,
        rgb(204, 168, 45) 35.714%,
        rgb(208, 171, 50) 42.857%,
        rgb(212, 175, 55) 50%,
        rgb(208, 171, 50) 57.143%,
        rgb(204, 168, 45) 64.286%,
        rgb(200, 164, 40) 71.429%,
        rgb(196, 161, 35) 78.571%,
        rgb(192, 157, 28) 85.714%,
        rgb(188, 154, 21) 92.857%,
        rgb(184, 150, 12) 100%
    );
}
.fd-logout-btn {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(226, 232, 240, 0.92);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.2px;
    cursor: pointer;
}
.fd-logout-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}
.fd-logout-icon {
    opacity: 0.9;
}

/* Topbar logout needs to work on both light + dark backgrounds */
.fd-topbar-logout .fd-logout-btn {
    width: auto;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--fd-line);
    color: var(--fd-ink);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}
.fd-root:not(.is-dark) .fd-topbar-logout .fd-logout-btn {
    height: 40px;
    border-radius: 14px;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: #364153;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    backdrop-filter: none;
}
.fd-root:not(.is-dark) .fd-topbar-logout .fd-logout-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    opacity: 0.85;
}
.fd-root:not(.is-dark) .fd-topbar-logout .fd-logout-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}
.fd-root.is-dark .fd-topbar-logout .fd-logout-btn {
    background: rgba(255, 255, 255, 0.06);
}
.fd-topbar-logout .fd-logout-btn:hover {
    background: rgba(255, 255, 255, 0.55);
}
.fd-root.is-dark .fd-topbar-logout .fd-logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fd-root {
    --fd-bg: #ecf0fb;
    --fd-card: #ffffff;
    --fd-ink: #0a0f1e;
    --fd-muted: #6b7494;
    --fd-line: rgba(10, 15, 30, 0.06);
    --fd-toolbar-bg: #ffffff;
    --fd-toolbar-border: rgba(10, 15, 30, 0.07);
    --fd-tab-active-bg: #5046e4;
    --fd-tab-active-color: #fff;
    --fd-tab-color: #6b7494;
    --fd-select-bg: #ffffff;
    --fd-select-color: #0a0f1e;
    --fd-select-border: rgba(10, 15, 30, 0.18);
    --fd-tx-id: #2d3452;
    --fd-tx-date: #9ba4be;
    --fd-row-border: rgba(10, 15, 30, 0.05);
    --fd-search-border: rgba(10, 15, 30, 0.08);
    --fd-topbar-bg: linear-gradient(
        168.43deg,
        #ffffff 7.74%,
        #f0effe 54.23%,
        #e8f0ff 92.27%
    );
    --fd-topbar-border: rgba(10, 15, 30, 0.07);
    --fd-topbar-title: #0a0f1e;
    --fd-topbar-sub: #9ba4be;
    --fd-chart-grid: rgba(10, 15, 30, 0.06);
    --fd-chart-tick: #9ba4be;
    --fd-toggle-bg: rgba(10, 15, 30, 0.08);
}

.fd-root.is-dark {
    --fd-bg: #07080f;
    --fd-card: #0f1525;
    --fd-ink: #e2e8f0;
    --fd-muted: #8892ac;
    --fd-line: rgba(255, 255, 255, 0.06);
    --fd-toolbar-bg: #0f1525;
    --fd-toolbar-border: rgba(255, 255, 255, 0.07);
    --fd-tab-active-bg: #5046e4;
    --fd-tab-active-color: #fff;
    --fd-tab-color: #8892ac;
    --fd-select-bg: #1a2236;
    --fd-select-color: #e2e8f0;
    --fd-select-border: rgba(255, 255, 255, 0.12);
    --fd-tx-id: #c8d4e8;
    --fd-tx-date: #5a6480;
    --fd-row-border: rgba(255, 255, 255, 0.05);
    --fd-search-border: rgba(255, 255, 255, 0.08);
    --fd-topbar-bg: linear-gradient(
        168.43deg,
        #0f1525 7.74%,
        #0b1020 54.23%,
        #090e1c 92.27%
    );
    --fd-topbar-border: rgba(255, 255, 255, 0.06);
    --fd-topbar-title: #e2e8f0;
    --fd-topbar-sub: #5a6480;
    --fd-chart-grid: rgba(255, 255, 255, 0.06);
    --fd-chart-tick: #5a6480;
    --fd-toggle-bg: rgba(255, 255, 255, 0.08);
}

/* Dark-mode header styles (Figma node 47:329) — structure unchanged */
.fd-root.is-dark .fd-topbar {
    background: rgba(16, 24, 40, 0.8);
    border-bottom: 1px solid rgba(30, 41, 57, 0.5);
    padding: 20px 32px 21px;
    box-shadow:
        0px 1px 3px rgba(0, 0, 0, 0.1),
        0px 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    backdrop-filter: blur(12px);
}

.fd-root.is-dark .fd-appmark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(
        135deg,
        #1a3d2b 0%,
        #1c402d 10%,
        #1e422f 20%,
        #204532 30%,
        #214834 40%,
        #234b36 50%,
        #254e39 60%,
        #27503b 70%,
        #29533d 80%,
        #2b5640 90%,
        #2d5942 100%
    );
    box-shadow:
        0 10px 15px -3px rgba(26, 61, 43, 0.3),
        0 4px 6px -4px rgba(26, 61, 43, 0.3);
}

.fd-root.is-dark .fd-topbar-title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: #fff;
}

.fd-root.is-dark .fd-dark-toggle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: transparent;
    border: 0;
}
.fd-root.is-dark .fd-dark-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}
.fd-root.is-dark .fd-dark-toggle svg {
    transform: none;
}

.fd-root.is-dark .fd-topbar-logout .fd-logout-btn {
    height: 40px;
    border-radius: 14px;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: #d1d5dc;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    backdrop-filter: none;
}
.fd-root.is-dark .fd-topbar-logout .fd-logout-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    opacity: 0.85;
}
.fd-root.is-dark .fd-topbar-logout .fd-logout-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.client-header {
    display: none !important;
}
.client-main-content {
    padding-top: 0 !important;
}
.fd-shell {
    padding: 22px 22px 28px;
    flex: 1;
}

.fd-topbar {
    background: var(--fd-topbar-bg);
    border-bottom: 1px solid var(--fd-topbar-border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow:
        0 1px 2px rgba(10, 15, 30, 0.04),
        0 10px 22px rgba(10, 15, 30, 0.06);
    margin-bottom: 14px;
}

/* Light-mode header styles (Figma node 47:50) — structure unchanged */
.fd-root:not(.is-dark) .fd-topbar {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 20px 32px 21px;
    box-shadow:
        0px 1px 3px rgba(0, 0, 0, 0.1),
        0px 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    backdrop-filter: blur(12px);
}
.fd-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fd-appmark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fd-root:not(.is-dark) .fd-appmark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(
        135deg,
        #1a3d2b 0%,
        #1c402d 10%,
        #1e422f 20%,
        #204532 30%,
        #214834 40%,
        #234b36 50%,
        #254e39 60%,
        #27503b 70%,
        #29533d 80%,
        #2b5640 90%,
        #2d5942 100%
    );
    box-shadow:
        0 10px 15px -3px rgba(26, 61, 43, 0.3),
        0 4px 6px -4px rgba(26, 61, 43, 0.3);
}
.fd-topbar-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--fd-topbar-title);
    line-height: 1;
    letter-spacing: -0.2px;
}
.fd-root:not(.is-dark) .fd-topbar-title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: #101828;
}
.fd-topbar-sub {
    margin: 0;
    font-size: 11px;
    color: #21232b;
    font-weight: 400;
    line-height: 1;
}
.fd-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fd-userpill {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px 6px 6px;
    border-radius: 14px;
    border: 1px solid var(--fd-line);
    background: linear-gradient(
        90deg,
        #2d5942 0%,
        #2f5b44 14.29%,
        #325e47 28.57%,
        #346049 42.86%,
        #36624b 57.14%,
        #38644d 71.43%,
        #3b6750 85.71%,
        #3d6952 100%
    );
    transition:
        background 0.25s,
        border-color 0.25s;
}
.fd-userbadge {
    width: 30px;
    height: 30px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #1a3d2b 0%,
        #1c402d 10%,
        #1e422f 20%,
        #204532 30%,
        #214834 40%,
        #234b36 50%,
        #254e39 60%,
        #27503b 70%,
        #29533d 80%,
        #2b5640 90%,
        #2d5942 100%
    );
    box-shadow:
        0 10px 15px -3px rgba(26, 61, 43, 0.3),
        0 4px 6px -4px rgba(26, 61, 43, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.fd-username {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    transition: color 0.25s;
}
.fd-caret {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}
.fd-root.is-dark .fd-caret {
    filter: invert(1);
}

/* dark-mode toggle button */
.fd-dark-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--fd-toggle-bg);
    border: 1px solid var(--fd-line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.fd-root:not(.is-dark) .fd-dark-toggle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: transparent;
    border: 0;
}
.fd-root:not(.is-dark) .fd-dark-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}
.fd-dark-toggle:hover {
    background: rgba(80, 70, 228, 0.12);
}
.fd-dark-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.35s;
}
.fd-root.is-dark .fd-dark-toggle svg {
    transform: rotate(180deg);
}

/* â”€â”€ Toolbar / service tabs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fd-toolbar {
    background: var(--fd-toolbar-bg);
    border: 1px solid var(--fd-toolbar-border);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(10, 15, 30, 0.04),
        0 4px 16px rgba(10, 15, 30, 0.06);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    transition:
        background 0.25s,
        border-color 0.25s;
}
.fd-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--fd-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}
.fd-divider {
    width: 1px;
    height: 16px;
    background: var(--fd-line);
    flex-shrink: 0;
}
.fd-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.fd-tab {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--fd-tab-color);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.fd-tab:hover {
    background: rgba(26, 61, 43, 0.08);
    color: #1a3d2b;
}
.fd-tab.is-active {
    background: linear-gradient(
        148.99deg,
        rgba(26, 61, 43, 0.1) 0%,
        rgba(26, 61, 43, 0.06) 100%
    );
    color: #1a3d2b !important;
    border: 1px solid rgba(26, 61, 43, 0.18);
    box-shadow: 0px 1px 2px rgba(26, 61, 43, 0.1);
}

.fd-kpi,
.fd-kpi--inr,
.fd-kpi--usd {
    border-radius: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 0;
    background-image: linear-gradient(
        162.822deg,
        rgb(15, 35, 25) 0%,
        rgb(17, 39, 27) 7.1429%,
        rgb(18, 42, 30) 14.286%,
        rgb(20, 46, 33) 21.429%,
        rgb(21, 50, 35) 28.571%,
        rgb(23, 53, 38) 35.714%,
        rgb(24, 57, 40) 42.857%,
        rgb(26, 61, 43) 50%,
        rgb(29, 65, 46) 57.143%,
        rgb(31, 69, 49) 64.286%,
        rgb(34, 73, 53) 71.429%,
        rgb(37, 77, 56) 78.571%,
        rgb(39, 81, 59) 85.714%,
        rgb(42, 85, 63) 92.857%,
        rgb(45, 89, 66) 100%
    );
    box-shadow:
        0px 20px 25px -5px rgba(0, 0, 0, 0.1),
        0px 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.fd-kpi::before,
.fd-kpi::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.fd-kpi::before {
    width: 384px;
    height: 384px;
    background: #b8960c;
    opacity: 0.05;
    filter: blur(64px);
    right: -128px;
    top: -128px;
}
.fd-kpi::after {
    width: 256px;
    height: 256px;
    background: #1565c0;
    opacity: 0.1;
    filter: blur(64px);
    left: -85px;
    top: 73px;
    right: auto;
    bottom: auto;
}
.fd-kpi-inner {
    position: relative;
    z-index: 1;
    padding: 22px;
}

/* Figma card has a 4px gold rule at bottom */
.fd-kpi .fd-kpi-inner::after,
.fd-kpi--inr .fd-kpi-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: linear-gradient(
        90deg,
        rgb(184, 150, 12) 0%,
        rgb(188, 154, 21) 7.1429%,
        rgb(192, 157, 28) 14.286%,
        rgb(196, 161, 35) 21.429%,
        rgb(200, 164, 40) 28.571%,
        rgb(204, 168, 45) 35.714%,
        rgb(208, 171, 50) 42.857%,
        rgb(212, 175, 55) 50%,
        rgb(208, 171, 50) 57.143%,
        rgb(204, 168, 45) 64.286%,
        rgb(200, 164, 40) 71.429%,
        rgb(196, 161, 35) 78.571%,
        rgb(192, 157, 28) 85.714%,
        rgb(188, 154, 21) 92.857%,
        rgb(184, 150, 12) 100%
    );
    border-radius: 999999px;
    opacity: 1;
}

/* Consistent KPI card spacing for all currencies */
.fd-kpi .fd-kpi-inner,
.fd-kpi--inr .fd-kpi-inner {
    padding: 24px;
}
.fd-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.fd-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}
.fd-kpi-filter {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 28px 4px 10px;
    height: 23px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    line-height: 1;
    cursor: pointer;
}
.fd-kpi-filter option {
    background-color: #0f2319 !important;
    color: #eaf2ff !important;
    font-weight: 700;
}

.fd-root.is-dark .fd-kpi-filter option {
    background-color: #050a07 !important;
    color: rgba(255, 255, 255, 0.92) !important;
}
.fd-kpi-filter-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.fd-kpi-filter-wrap::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.9);
    transform: translateY(-30%);
    pointer-events: none;
}
.fd-kpi-amount {
    margin-top: 18px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.56px;
}
.fd-kpi-sub {
    margin-top: 10px;
}
.fd-kpi-sub small {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 11px;
}

/* â”€â”€ Chart + transaction cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fd-card {
    background: var(--fd-card);
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(10, 15, 30, 0.04),
        0 4px 16px rgba(10, 15, 30, 0.06);
    border: 1px solid var(--fd-line);
    transition:
        background 0.25s,
        border-color 0.25s;
}
.fd-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 0;
}
.fd-card-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fd-muted);
    font-weight: 900;
}
.fd-card-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--fd-ink);
    margin-top: 6px;
}
.fd-chart {
    height: 290px;
    padding: 12px 18px 18px;
}
.fd-select {
    background: var(--fd-select-bg) !important;
    color: var(--fd-select-color) !important;
    border: 1px solid var(--fd-select-border) !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 8px 12px !important;
    outline: none !important;
    transition:
        background 0.25s,
        color 0.25s;
}
.fd-select option {
    background: var(--fd-select-bg);
    color: var(--fd-select-color);
}

.fd-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fd-select-wrap .fd-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px !important;
    cursor: pointer;
}

.fd-select-wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7494;
    transform: translateY(-25%);
    pointer-events: none;
}

.fd-root.is-dark .fd-select-wrap::after {
    border-top-color: #9ba4be;
}

/* â”€â”€ Transaction list â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fd-tx-head {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--fd-line);
    height: 63px;
}
.fd-tx-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fd-tx-head-left h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--fd-ink);
}
.fd-tx-count {
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #1a3d2b 0%,
        #1c402d 10%,
        #1e422f 20%,
        #204532 30%,
        #214834 40%,
        #234b36 50%,
        #254e39 60%,
        #27503b 70%,
        #29533d 80%,
        #2b5640 90%,
        #2d5942 100%
    );
    box-shadow:
        0 10px 15px -3px rgba(26, 61, 43, 0.3),
        0 4px 6px -4px rgba(26, 61, 43, 0.3);
    color: #fff;
    font-family: "JetBrains Mono", monospace !important;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
}
.fd-link {
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    color: #5046e4;
}
.fd-search {
    padding: 12px 18px;
    border-bottom: 1px solid var(--fd-line);
}
.fd-search input {
    width: 100%;
    border: 1px solid var(--fd-search-border);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    background: var(--fd-card);
    color: var(--fd-ink);
    transition:
        background 0.25s,
        color 0.25s;
}
.fd-cur-badge,
.fd-cur-inr,
.fd-cur-usd,
.fd-cur-other {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", monospace !important;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(
        135deg,
        #1a3d2b 0%,
        #1c402d 10%,
        #1e422f 20%,
        #204532 30%,
        #214834 40%,
        #234b36 50%,
        #254e39 60%,
        #27503b 70%,
        #29533d 80%,
        #2b5640 90%,
        #2d5942 100%
    );
    box-shadow:
        0 10px 15px -3px rgba(26, 61, 43, 0.3),
        0 4px 6px -4px rgba(26, 61, 43, 0.3);
}

.fd-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px 14px;
    border-bottom: 1px solid var(--fd-row-border);
}
.fd-row:last-child {
    border-bottom: 0;
}
.fd-row-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fd-row-id {
    font-family: "JetBrains Mono", monospace !important;
    font-size: 11px;
    font-weight: 700;
    color: var(--fd-tx-id);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fd-row-date {
    font-size: 10px;
    color: var(--fd-muted, #6b7494);
    font-weight: 500;
}
.fd-row-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}
.fd-row-amt {
    font-family: "JetBrains Mono", monospace !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fd-ink);
}
.fd-row-amt.is-pending,
.fd-row-amt.is-failed {
    color: #6b7494;
}
.fd-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.is-dark .fd-status {
    filter: brightness(2);
}
.fd-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #15803d;
    box-shadow: 0 0 5px rgba(21, 128, 61, 0.5);
}
.fd-status.is-pending .dot {
    background: #9a6200;
    box-shadow: 0 0 5px rgba(154, 98, 0, 0.5);
}
.fd-status.is-failed .dot {
    background: #dc2626;
    box-shadow: 0 0 5px rgba(220, 38, 38, 0.5);
}
.fd-status .lbl {
    font-size: 10px;
    font-weight: 600;
    color: #15803d;
}
.fd-status.is-pending .lbl {
    color: #9a6200;
}
.fd-status.is-failed .lbl {
    color: #dc2626;
}

@media (min-width: 992px) {
    .fd-equal-row {
        align-items: stretch !important;
    }
    .fd-equal-row > .col-lg-8 {
        display: flex;
        flex-direction: column;
    }
    .fd-equal-row > .col-lg-8 > .row {
        flex: 1;
        min-height: 0;
        align-content: flex-start;
    }
    .fd-equal-row > .col-lg-8 > .row > .col-12:last-child {
        flex: 1;
        min-height: 0;
    }
    .fd-equal-row > .col-lg-8 > .row > .col-12:last-child > .fd-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .fd-equal-row > .col-lg-8 > .row > .col-12:last-child .fd-chart {
        flex: 1;
        height: auto !important;
        min-height: 220px;
    }
    .fd-equal-col {
        display: flex;
    }
    .fd-tx-card {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .fd-tx-card #txList {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }
}

/* â”€â”€ Metric cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fd-metric {
    background: var(--fd-card);
    border: 2px solid rgba(10, 15, 30, 0.08);
    border-radius: 24px;
    color: var(--fd-ink);
    padding: 26px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}
.fd-metric.green {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.08),
        0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --mc: #10b981;
    --mc-bg: rgba(16, 185, 129, 0.09);
    --mc-bd: rgba(16, 185, 129, 0.19);
}
.fd-metric.amber {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.08),
        0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --mc: #f59e0b;
    --mc-bg: rgba(245, 158, 11, 0.09);
    --mc-bd: rgba(245, 158, 11, 0.19);
}
.fd-metric.red {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.08),
        0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --mc: #ef4444;
    --mc-bg: rgba(239, 68, 68, 0.09);
    --mc-bd: rgba(239, 68, 68, 0.19);
}
.fd-metric.violet {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.08),
        0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --mc: #6366f1;
    --mc-bg: rgba(99, 102, 241, 0.09);
    --mc-bd: rgba(99, 102, 241, 0.19);
}
.fd-metric::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 40px;
    top: -20px;
    right: 20px;
    background: var(--mc);
    opacity: 0.2;
    filter: blur(20px);
    pointer-events: none;
}

/* Light mode: remove any colored glow effects */
.fd-root:not(.is-dark) .fd-metric::before {
    display: none;
}
.fd-root:not(.is-dark) .fd-meter-fill {
    box-shadow: none;
}
.fd-metric-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fd-metric-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--fd-muted);
}
.fd-metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--mc-bg);
    border: 1px solid var(--mc-bd);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fd-metric-icon svg {
    width: 13px;
    height: 13px;
}
.fd-metric .val {
    margin-top: 16px;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.26px;
    line-height: 1;
    color: var(--fd-ink);
}
.fd-meter {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fd-meter-track {
    flex: 1;
    height: 6px;
    border-radius: 99px;
    background: rgba(10, 15, 30, 0.08);
    overflow: hidden;
}
.fd-meter-fill {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--mc) 0%, var(--mc) 100%);
    box-shadow: 0 0 8px 0 var(--mc);
}
.fd-foot {
    font-family: "JetBrains Mono", monospace !important;
    font-size: 11px;
    font-weight: 700;
    color: var(--mc);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hover polish (matches new UI feel) */
.fd-metric:hover {
    transform: translateY(-2px);
    border-color: var(--mc-bd);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

/* Dark mode: keep card surface consistent */
.fd-root.is-dark .fd-metric {
    background: #0f1525;
    border-color: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.22),
        0 8px 10px -6px rgba(0, 0, 0, 0.18);
}
.fd-root.is-dark .fd-metric-label {
    color: rgba(209, 213, 220, 0.65);
}
.fd-root.is-dark .fd-metric .val {
    color: #fff;
}
.fd-root.is-dark .fd-meter-track {
    background: rgba(255, 255, 255, 0.08);
}
.fd-root.is-dark .fd-meter-fill {
    box-shadow: none;
}
.fd-root.is-dark .fd-metric:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border-color: rgba(45, 89, 66, 0.55);
}

/* Full-page dark background — applied at html/body level */
html.is-dark,
html.is-dark body,
html.is-dark .client-main-content {
    background-color: #07080f !important;
}

/* â”€â”€ Dark mode explicit overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fd-root.is-dark .fd-topbar {
    background: linear-gradient(
        168.43deg,
        #0f1525 7.74%,
        #0b1020 54.23%,
        #090e1c 92.27%
    ) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 10px 22px rgba(0, 0, 0, 0.3);
}
.fd-root.is-dark .fd-topbar-title {
    color: #e2e8f0 !important;
}
.fd-root.is-dark .fd-topbar-sub {
    color: #5a6480 !important;
}
.fd-root.is-dark .fd-username {
    color: #e2e8f0 !important;
}
.fd-root.is-dark .fd-toolbar {
    background: #0f1525 !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.2);
}
.fd-root.is-dark .fd-topbar-sub {
    color: #d8d8d9 !important;
}
.fd-root.is-dark .fd-divider {
    background: rgba(255, 255, 255, 0.07);
}
.fd-root.is-dark .fd-tab {
    color: #8892ac;
}
.fd-root.is-dark .fd-tab.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
    border: 1px solid rgba(45, 89, 66, 0.55);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.18);
}
.fd-root.is-dark .fd-card {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.3);
}
.fd-root.is-dark .fd-card-title {
    color: #8892ac;
}
.fd-root.is-dark .fd-card-value {
    color: #e2e8f0;
}
.fd-root.is-dark .fd-tx-head-left h3 {
    color: #e2e8f0;
}
.fd-root.is-dark .fd-tx-count {
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #1a3d2b 0%,
        #1c402d 10%,
        #1e422f 20%,
        #204532 30%,
        #214834 40%,
        #234b36 50%,
        #254e39 60%,
        #27503b 70%,
        #29533d 80%,
        #2b5640 90%,
        #2d5942 100%
    );
    box-shadow:
        0 10px 15px -3px rgba(26, 61, 43, 0.3),
        0 4px 6px -4px rgba(26, 61, 43, 0.3);
    color: #fff;
}
.fd-root.is-dark .fd-row-amt {
    color: #e2e8f0;
}
.fd-root.is-dark .fd-row-id {
    color: #c8d4e8;
}
.fd-root.is-dark .fd-row-date {
    color: #5a6480;
}
.fd-root.is-dark .fd-search input {
    background: #1a2236;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.08);
}
.fd-root.is-dark .fd-search input::placeholder {
    color: #5a6480;
}

.active {
    background-color: var(--navItem-bgColor);

    border-radius: 10px;
}

.a-head-content {
    padding: 1.5rem 1.5rem 0 1rem !important;
}

.active a {
    color: var(--main-white);
}

.nav-item a {
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.copy-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.copy-btn .copy-icon {
    pointer-events: none;
}

.nav-item svg {
    width: 30px;
}

.nav-item:hover {
    /* background-color: var(--navItem-bgColor); */
    border-radius: 10px;
}

.nav-item a:hover {
    color: var(--main-white);
}

.nav-link i {
    font-size: 20px;
}

.nav-link {
    color: var(--grey-color);
    font-family: Plus Jakarta Sans;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
}

/* Faster/smoother slide with easing */
.offcanvas {
    /* make the slide a bit longer & smoother */
    --bs-offcanvas-transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    /* add fade on top of slide */
    opacity: 0;
    transition:
        var(--bs-offcanvas-transition),
        opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.offcanvas.showing,
.offcanvas.show {
    opacity: 1;
}

.offcanvas.hiding {
    opacity: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);
}

/* optional: subtle parallax nudge as it finishes opening */
.offcanvas.showing {
    transform: translateX(0) !important;
}

.logout-box,
.logout-box-mob {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--main-white);
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    margin-bottom: 0;
    text-align: center;
    min-width: max-content;
    cursor: pointer;
}

.logout-box.show {
    display: block;
}

.logout-box.show,
.logout-box-mob.show {
    display: block;
}

.logout-box.show {
    display: block;
}

.profile-parent {
    position: relative;
}

.text-reset {
    margin-left: 2rem;
    margin-top: 1rem !important;
}

.offcanvas ul {
    margin-top: 3rem;
}

.offcanvas-admin ul {
    margin-top: 0;
}

/* remove default border + glow */
.navbar-toggler {
    border: 0 !important;
    box-shadow: none !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.offcanvas-title img {
    margin-top: 2rem;
}

.offcanvas {
    width: max-content;
}

.client-main-content .profile-parent img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-repeat: no-repeat;
    cursor: pointer;
}

.admin-logo {
    justify-self: center;
    width: -webkit-fill-available !important;
    position: fixed;
    top: 0%;
    padding: 1rem 0 2rem 0;
    background-color: white;
}

.nav-pills {
    margin-top: 8rem !important;
}

.admin-company-pic-mob img,
.admin-top-right img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-repeat: no-repeat;
    cursor: pointer;
    object-fit: contain;
}

.profile-parent p {
    font-weight: 500;
    cursor: pointer;
}

.dash-date {
    color: var(--gray-txt);
    font-weight: 600;
}

.dash-status {
    border-radius: 20px;
    padding: 0.4rem;
}

.bg-successColor {
    background-color: color-mix(in srgb, #06872c 15%, transparent);
    color: #06872c !important;
}

.bg-dangerColor {
    background-color: color-mix(in srgb, #ea1619 15%, transparent);
    color: #ea1619 !important;
}

.bg-warningColor {
    background-color: color-mix(in srgb, #d78708 15%, transparent);
    color: #d78708 !important;
}

/* dash cards  */
.container-card {
    margin-top: 20px;
}

.summary-card {
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    position: relative;
}

.summary-card1 {
    border-radius: 20px;
    padding: 20px;
    position: relative;
    max-width: 68vw;
}

.summary-card2 {
    border-radius: 20px;
    padding: 20px;
    position: relative;
    background-color: var(--main-white);
}

.accordion-button:focus {
    border: none !important;
    outline: none;
    box-shadow: none;
}

.accordion {
    border-radius: 30px !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--navItem-bgColor);
    color: var(--main-white);
}

.card-parent {
    padding: 0px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* OUTER scroller: owns spacing relative to sidebar and edges */
.card-scroller {
    overflow-x: auto;
    padding-left: 0rem !important;
    /* padding-right: 2rem; */
    margin-left: 2rem !important;
    margin-right: 1rem !important;
}

/* INNER track: stable horizontal layout that shrink-wraps content width */
.card-track {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 1.25rem;
}

/* Ensure cards don’t collapse and are scrollable */
.card-track > .card-container-dashboard {
    flex: none;
}

.card-scroller {
    scroll-snap-type: x proximity;
    scroll-padding-left: 5rem;
    scroll-padding-right: 2rem;
}

.card-track > .card-container-dashboard {
    scroll-snap-align: start;
}

.company-des {
    padding: 0px 40px;
    display: flex;
    justify-content: center;
}

.dark-blue-txt {
    font-weight: 700;
    color: var(--blue-txt-color);
}

.summary-header {
    background: var(--navItem-bgColor);
    color: white;
    padding: 10px 35px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 40px;
    font-weight: bold;
}

.amount-text {
    font-family: Plus Jakarta Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 1.5rem;
    line-height: 100%;
    letter-spacing: 0%;
    color: #ffffff;
    margin-top: 5%;
}

.amount-subtext {
    font-family: Plus Jakarta Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 1.5rem;
    line-height: 100%;
    letter-spacing: 0%;
    color: #ffffff;
    margin-top: 2%;
}

.currency-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 60px;
    width: 60px;
    bottom: 10px;
    right: 15px;
    font-size: 30px;
    background-color: #cde3ff;
    padding: 20px;
    border-radius: 50%;
    color: #fff;
}

/* Set height of the grid so .sidenav can be 100% (adjust as needed) */
.row.content {
    /* height: 550px; */
    min-height: 100vh;
}

.dash-date {
    margin-bottom: unset;
    margin-bottom: 0px !important;
}

.stroke-black {
    stroke: black;
    transition: stroke 0.3s ease;
}

.stroke-white {
    stroke: white;
    transition: stroke 0.3s ease;
}

.trans-icon:hover svg path {
    stroke: white;
}

.trans-icon-fill:hover svg path {
    fill: white;
}

.font-500 {
    font-weight: 500;
}

.client-top-right {
    position: relative;
}

.bg-blue-gradient {
    background: linear-gradient(320.82deg, #0035aa -5.71%, #4997f9 89.05%);
}

.bg-cyan-gradient {
    background: linear-gradient(320.82deg, #00aebe -5.71%, #43e3f2 89.05%);
}

.bg-green-gradient {
    background: linear-gradient(318.93deg, #04a346 3.71%, #20f478 96.26%);
}

.bg-purple-gradient {
    background: linear-gradient(318.79deg, #7606c2 3.45%, #c165ff 96.8%);
}

.bg-mint-gradient {
    background: linear-gradient(135deg, #b7e3c0 0%, #8ed6a7 40%, #5ab98d 80%);
}

.bg-brown-gradient {
    background: linear-gradient(135deg, #d1c4e9 0%, #b39ddb 40%, #9575cd 80%);
}

.card-container-dashboard {
    min-width: 15vw;
    /* height: 20vh; */
    box-shadow: 5px 5px 20px 0px #00000012;
    border-radius: 20px;
    position: relative;
    padding-bottom: 1rem;
}

.card-top {
    width: 90%;
    height: 25%;
    margin: 1.5rem 1.25rem;
}

.curr-sign-container {
    border-radius: 10px;
    background: #ffffffe0;
    height: 100%;
    width: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 0 0.5rem;
    background-color: transparent;
    border: 0;
    color: #ffffff;
    font: inherit;

    outline: none;
}

select:focus {
    outline: none;
    box-shadow: none;
}

.time-selection .ts-select option {
    background-color: transparent;
    color: #111;
}

.ts-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff17;
    border: 1px solid #ffffff12;
    font-family: Plus Jakarta Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 0.8rem;
    line-height: 100%;
    letter-spacing: 0%;
    border-radius: 17px;
    padding: 0.7rem 0 0.7rem;
    position: relative;
    display: inline-block;
}

.ts-form svg {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Let clicks pass through to select */
}

.chart {
    background: #ffffff;
    box-shadow: 5px 5px 20px 0px #00000012;
    border-radius: 20px;
    padding: 1rem 1rem;
    /* margin: 1rem 2rem; */
    /* width: calc(100% - 6rem); */
}

.chart-container {
    width: 90%;
}

.chart-select {
    border-radius: 100px;
}

.dashboard-table {
    background-color: #ffffff;
    border-radius: 20px;
}

.dashboard-table table {
    border-collapse: separate;
    border-spacing: 0 1rem;
    width: 100%;
}

.dashboard-table thead th {
    border: none;
    font-weight: 500;
    font-size: 1.2rem;
}

.dashboard-table tbody tr {
    background: #fff;
    box-shadow: 4px 4px 20px 0px #00000012;
}

.dashboard-table thead {
    background: #fff;
    box-shadow: 4px 4px 20px 0px #00000012;
}

.dashboard-table tbody td {
    border: none;
}

.dashboard-table tbody td,
.dashboard-table thead th {
    width: max-content;
}

.dashboard-table tr {
    min-height: 16%;
}

.dashboard-table-top-left {
    font-family:
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-weight: 600;
    /* SemiBold equivalent */
    font-style: normal;
    /* correct usage */
    font-size: 1.2rem;
    /* fixed typo */
    line-height: 1;
    /* or 1.1 / 1.2 depending on taste */
    letter-spacing: 0;
    display: inline-block;
    /* helps with sizing and spacing */
    color: inherit;
}

.dashboard-table-top-right {
    font-family: Plus Jakarta Sans;
    font-weight: 700;
    font-style: Bold;
    font-size: 1rem;
    line-height: 100%;
    letter-spacing: 0%;
    color: #0050b1;
    cursor: pointer;
}

.dashboard-table-top-right {
    text-decoration: none;
}

.r1c1,
.r2c1 {
    box-shadow: 5px 5px 20px 0px #00000012;
    color: white;
    border-radius: 20px;
    margin: 1rem 1rem 1rem 1.5rem;
    max-width: calc(50% - 3rem);
    padding: 1rem;
}

.r1c2,
.r2c2 {
    box-shadow: 5px 5px 20px 0px #00000012;
    color: white;
    border-radius: 20px;
    margin: 1rem 1rem 1rem 1.5rem;
    max-width: calc(50% - 2rem);
    padding: 1rem;
}

.r1c1 {
    background: linear-gradient(320.82deg, #63fa90 -5.71%, #057d29 89.05%);
}

.r1c2 {
    background: linear-gradient(320.82deg, #ffda9f -5.71%, #996004 89.05%);
}

.r2c1 {
    background: linear-gradient(320.82deg, #ff8486 -5.71%, #ea1619 89.05%);
}

.r2c2 {
    background: linear-gradient(320.82deg, #787878 -5.71%, #000000 89.05%);
}

.bar {
    width: 100%;
    height: 15px;
    border-radius: 20px;
    background: #ffffffb0;
}

.fill-white {
    fill: white;
}

.fill-black {
    fill: black;
}

.card-title {
    color: #000;
}

.card-title,
.dash-date,
.client-comp-name {
    font-family: Plus Jakarta Sans;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.client-comp-name {
    color: #717171;
}

.nav-link {
    font-size: 1rem;
}

/* Pagination bar container */
.pager-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    /* ~ Tailwind gap-4 */
    padding-right: 8px;
    margin-bottom: 2rem;
    /* ~ max-lg:pr-2 */
}

.logout-btn {
    border: 0;
    background-color: transparent;
}

.client-header {
    position: relative;
    padding-right: 2rem !important;
    padding-left: 1.5rem !important;
}

.chart-body {
    min-height: 35vh;
}

.navbar-logo-container {
    width: 275px;
    /* fixed width */
    height: 90px;
    /* fixed height */
    padding: 8px;
    /* keeps weird logos from touching edges */
    background: #fff;
    /* helps transparent PNGs */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* keeps box clean */
}

.navbar-logo-container .navbar-logo,
.navbar-logo-container-mob .navbar-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    /* keep original aspect ratio */
    height: auto;
    /* keep original aspect ratio */
    object-fit: contain;
    object-position: center;
    display: block;
}

/* md conditional widths you had: 92vw or 46vw */
@media (min-width: 768px) {
    .pager-bar.w-md-92 {
        width: 92vw;
    }
}

/* lg overrides */
@media (min-width: 1024px) {
    .pager-bar {
        width: 95.5%;
        /* ~ lg:w-full */
        gap: 56px;
        /* ~ lg:gap-14 */
        padding-right: 0;
        padding-top: 20px;
        /* ~ lg:py-5 */
        padding-bottom: 20px;
    }
}

.pager-info {
    display: flex;
    align-items: center;
}

/* "Showing X to Y of Z results" text */
.pager-info h6 {
    font-size: 1rem;
    /* ~ text-base */
    margin: 0;
}

@media (min-width: 1024px) {
    .pager-info h6 {
        font-size: 1.125rem;
        /* ~ lg:text-lg */
    }
}

/* Pagination list */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Page items and links */
.page-item {
    margin: 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 5px;
    text-decoration: none;
    color: #000;
    /* default number color */
    line-height: 1;
}

/* Current page badge */
.page-num--current {
    background: #022179;
    color: #fff;
    border-radius: 5px;
    padding: 6px 16px;
    /* ~ py-0.5 px-2 */
    font-size: 0.875rem;
    /* ~ text-sm */
}

@media (min-width: 1024px) {
    .page-num--current {
        font-size: 1rem;
        /* ~ lg:text-base */
    }
}

/* Non-current page number */
.page-num {
    margin: 0 4px;
    /* ~ mx-1 */
    font-size: 0.875rem;
    /* ~ text-sm */
}

@media (min-width: 1024px) {
    .page-num {
        font-size: 1rem;
    }

    /* ~ lg:text-base */
}

/* Ellipsis */
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 32px;
    color: #000;
}

/* Prev/Next arrow buttons */
.page-arrow .page-link {
    padding: 0 6px;
}

/* Make SVGs align nicely */
.page-link svg {
    display: block;
}

/* Table footer cell reset */
.table-foot-cell {
    padding: 0;
    border: 0;
}

@media (min-width: 1201px) and (max-width: 1600px) {
    .chart-container {
        width: 100%;
    }

    .r1c1,
    .r1c2,
    .r2c1,
    .r2c2 {
        margin: 1rem 1rem;
        max-width: calc(50% - 2rem);
    }

    .px-md-5 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .sidenav {
        width: 30vw;
        position: fixed;
        min-height: 100vh;
    }

    .client-main-content,
    .admin-main-content {
        width: 70vw;
        margin-left: 30vw;
    }
}

@media (max-width: 1600px) {
    .cid {
        min-width: 8vw;
    }

    .px-5 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }
}

@media (max-width: 1199.98px) {
    .card-container-dashboard {
        width: auto;
        height: auto;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }

    .chart-container {
        min-width: 100%;
    }

    .r1c1,
    .r1c2,
    .r2c1,
    .r2c2 {
        min-width: calc(100% - 3rem);
    }
}

@media (max-width: 991.98px) {
    .navbar-logo-container-mob {
        width: 250px;
        height: 75px;
    }

    .card-scroller {
        margin-right: 2rem !important;
    }

    .profile-parent img {
        cursor: pointer;
        height: 50px;
        width: 50px;
        border-radius: 50%;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .r1c1,
    .r2c1,
    .r1c2,
    .r2c2 {
        margin: 1rem 1rem 1rem 1.5rem;
        max-width: 100%;
    }

    .r1c1,
    .r1c2,
    .r2c1,
    .r2c2 {
        min-width: calc(100% - 3rem);
    }

    .card-scroller {
        margin-right: 2rem;
    }

    .logout-box,
    .logout-box-mob {
        left: -235%;
    }

    .chart,
    .dashboard-table,
    .card-row1,
    .card-row2 {
        min-width: calc(100% - 4rem);
    }

    .navbar {
        height: 10vh;
        background-color: white;
    }

    .client-main-content,
    .admin-main-content {
        margin-top: 10vh;
    }

    .card-scroller {
        margin-left: 2rem;
    }

    .nav-item svg {
        width: 30px;
        height: 40px;
    }
}

/* On small screens, set height to 'auto' for the grid */
@media screen and (max-width: 767px) {
    .row.content {
        height: auto;
    }

    .logout-box,
    .logout-box-mob {
        left: -190%;
    }

    .card-title {
        font-size: 18px;
    }

    .chart-container {
        width: 100%;
        overflow-x: auto;
    }

    .dashboard-table-top-left,
    .dashboard-table-top-right {
        font-size: 14px;
    }

    .dashboard-table td {
        font-size: 12px;
    }

    .dashboard-table thead th {
        font-size: 14px;
    }

    .cid-td {
        width: 35vw !important;
        max-width: 35vw !important;
    }

    .r1c1,
    .r1c2,
    .r2c1,
    .r2c2 {
        min-width: calc(100% - 0.5rem);
        margin: 0.25rem;
        font-size: 0.8rem;
    }

    .amount-subtext {
        font-size: 0.8rem;
    }

    .amount-text {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    html,
    body {
        height: 100%;
        margin: 0;
    }

    .admin-body {
        display: flex;
        align-items: stretch;
    }

    .sidenav {
        width: 22vw;
        position: fixed;
        min-height: 100vh;
    }

    .admin-main-content {
        flex: 1;
        min-height: 100vh;
    }

    .client-main-content,
    .admin-main-content {
        width: 78vw;
        margin-left: 22vw;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .sidenav {
        width: 30vw;
        position: fixed;
        min-height: 100vh;
    }

    .client-main-content,
    .admin-main-content {
        width: 70vw;
        margin-left: 30vw;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar {
        height: 10vh;
    }
}

@media (max-width: 575.98px) {
    .navbar-logo-container-mob {
        width: 150px;
        height: 55px;
    }
    .fd-root:not(.is-dark) .fd-topbar,
    .fd-root.is-dark .fd-topbar {
        padding: 20px 11px 21px;
    }

    .fd-root .input-group > form,
    .fd-root .input-group > form .input-group {
        justify-content: center !important;
    }

    .fd-root .trans-search {
        min-width: 300px !important;
    }
    .reg-heading {
        font-size: 1.5rem !important;
    }
    .fd-topbar {
        flex-wrap: nowrap;
    }

    .fd-root:not(.is-dark) .fd-topbar-logout .fd-logout-btn,
    .fd-root.is-dark .fd-topbar-logout .fd-logout-btn {
        padding: 10px 0px;
    }

    .fd-root:not(.is-dark) .fd-topbar-title,
    .fd-root.is-dark .fd-topbar-title {
        font-size: 16px;
    }

    .navbar {
        height: 8vh;
    }

    .dash-main {
        padding: 0 0.5rem;
    }

    .pager-info h6 {
        font-size: 0.8rem;
        margin: 0;
    }

    .pager-bar {
        padding-right: 16px;
    }

    .card-scroller {
        margin-right: 0.5rem !important;
        margin-left: 0.5rem !important;
    }
}

@media (max-width: 767.98px) {
    .client-top-right {
        gap: 0.5rem !important;
    }

    .client-main-content,
    .admin-main-content {
        margin-top: 8vh;
        padding-top: 1rem;
    }

    .card-scroller {
        margin-left: 0rem;
        margin-right: 0rem;
    }

    .time-selection {
        margin-right: 1rem;
    }

    .client-header {
        gap: 2rem;
    }

    .client-comp-name {
        font-size: 0.8rem;
    }

    h5 {
        font-size: 1rem;
    }

    .card-scroller {
        padding-left: 0rem;
        margin-left: 0rem;
    }

    .cid {
        min-width: 22vw !important;
    }

    .dashboard-table-top-right,
    .dashboard-table-top-left {
        font-size: 1rem;
    }

    .nav-item svg {
        width: 20px;
        height: 28px;
    }

    .nav-item a {
        padding: 0.8rem 0.5rem;
    }

    .nav-link {
        font-size: 15px;
    }

    .bar {
        height: 1vh;
    }

    .card-row1 h5,
    .card-row2 h5 {
        font-size: 0.8rem;
    }

    .logout-box,
    .logout-box-mob {
        background: #fff;
        padding: 0.5rem 1rem;
        min-width: max-content;
        font-size: 0.8rem;
    }
}

@media (max-width: 399.98px) {
    .logout-box {
        top: 6rem;
        left: -6rem;
    }

    .cid-td {
        width: 30vw !important;
        max-width: 30vw !important;
    }

    .dashboard-table thead th {
        font-size: 12px;
    }

    .dashboard-table td {
        font-size: 10px;
    }
}

@media (min-width: 1600px) {
    .card-container-dashboard {
        height: auto;
    }

    .pager-bar {
        width: 96.5%;
    }

    .sidenav {
        width: 17vw;
        position: fixed;
        min-height: 100vh;
    }

    .admin-sidenav {
        position: fixed;
        z-index: 100;
        inset: 0;
        height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .client-main-content {
        width: calc(100% - 17vw);
        margin-left: 17vw;
        min-height: 100vh;
    }

    .admin-main-content {
        margin-left: 17vw;
    }
}

@media (min-width: 2560px) {
    .card-container-dashboard {
        min-width: 20vw;
    }

    .sidenav {
        width: 20vw;
    }

    .client-main-content,
    .admin-main-content {
        width: 80vw;
        margin-left: 20vw;
    }

    .dashboard-table-top-right {
        font-size: 2rem;
    }

    .dashboard-table-top-left {
        font-size: 2.5rem;
    }

    .ts-form {
        font-size: 1.5rem;
    }

    .pt-1 {
        padding-top: 3rem !important;
    }

    .amount-text {
        font-size: 3rem;
    }

    .amount-subtext {
        font-size: 2.5rem;
    }

    .nav-link {
        font-size: 1.8rem;
    }

    .h4,
    h4 {
        font-size: 3rem;
    }

    p {
        font-size: 2rem;
    }

    .h5,
    h5 {
        font-size: 1.75rem;
    }

    span {
        font-size: 1.5 rem;
    }

    .nav-item svg {
        width: 2.5rem;
    }
}

/* ── Cross-document View Transitions ───────────────────────────────
   Disabled. Earlier we used `@view-transition { navigation: auto; }`
   to crossfade between pages, but the snapshot capture caused a
   visible flash on filter/search reloads. Now we rely on the inline
   <html> background + preloaded CSS to keep the reload looking instant.
──────────────────────────────────────────────────────────────────── */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none !important;
}

/* ════════════════════════════════════════════════════════
   fd-* Mobile & Responsive
   The dashboard uses fd-topbar as its own header, so
   the legacy Bootstrap mobile navbar is redundant.
════════════════════════════════════════════════════════ */

/* Suppress old Bootstrap mobile nav when new fd-root layout is present */
body:has(.fd-root) .navbar.d-lg-none {
    display: none !important;
}
/* Remove any body padding-top that Bootstrap may apply for fixed-top navbars */
body:has(.fd-root) {
    padding-top: 0 !important;
}

/* ── Hamburger toggle inside fd-topbar (hidden on desktop) ── */
.fd-nav-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--fd-toggle-bg);
    border: 1px solid var(--fd-line);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    color: var(--fd-muted);
    transition: background 0.2s;
}
.fd-nav-toggle:hover {
    background: rgba(80, 70, 228, 0.12);
}
.fd-nav-toggle svg {
    display: block;
}

/* ── Dark offcanvas sidebar (mobile) — mirrors desktop .fd-sidenav ── */
#mobileNav {
    width: 264px !important;
    max-width: 84vw !important;
    background-image: linear-gradient(
        180deg,
        rgb(15, 35, 25) 0%,
        rgb(15, 35, 25) 50%,
        rgb(13, 31, 22) 57.143%,
        rgb(12, 28, 20) 64.286%,
        rgb(10, 24, 17) 71.429%,
        rgb(9, 20, 14) 78.571%,
        rgb(7, 17, 12) 85.714%,
        rgb(6, 13, 9) 92.857%,
        rgb(5, 10, 7) 100%
    ) !important;
    border-right: 1px solid rgba(26, 61, 43, 0.5) !important;
}
#mobileNav .offcanvas-header {
    padding: 20px 12px 14px;
    border-bottom: 1px solid rgba(26, 61, 43, 0.5);
}
/* btn-close lives in its own div above offcanvas-header */
#mobileNav .btn-close {
    filter: invert(1) brightness(0.9);
    opacity: 1 !important;
}
#mobileNav .fd-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
}
#mobileNav .fd-mobile-brand .fd-brand img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}
#mobileNav .fd-brand-name {
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.15px;
    white-space: nowrap;
}
/* Inline max-width override */
#mobileNav {
    max-width: 84vw !important;
}
#mobileNav .offcanvas-body {
    padding: 14px 10px 18px;
}

/* keep logout pinned to bottom in mobile offcanvas */
#mobileNav .fd-offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#mobileNav .fd-offcanvas-body .navbar-nav {
    flex: 1 1 auto;
}
#mobileNav .fd-sidebar-logout {
    margin-top: auto;
    padding: 10px;
}
#mobileNav .navbar-nav {
    flex-direction: column;
    gap: 8px;
}
#mobileNav .nav-link {
    border-radius: 14px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    height: 44px;
    color: #d1d5dc !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}
#mobileNav .nav-link svg {
    opacity: 0.7;
    transition: opacity 180ms ease;
}
#mobileNav .nav-link:hover svg {
    opacity: 1;
}

#mobileNav .nav-link .fd-nav-ico {
    color: #d1d5dc;
}
#mobileNav .nav-item.active .fd-nav-ico {
    color: #fff;
}
#mobileNav .nav-link:hover .fd-nav-ico {
    color: #fff;
}
/* Override hardcoded fill/stroke presentation attributes and utility classes */
#mobileNav .nav-link svg *,
#mobileNav .nav-link svg path,
#mobileNav .nav-link svg circle,
#mobileNav .nav-link svg rect {
    fill: currentColor !important;
    stroke: currentColor !important;
}
#mobileNav .nav-item.active .nav-link {
    background-image: linear-gradient(
        90deg,
        rgb(184, 150, 12) 0%,
        rgb(187, 153, 19) 11.111%,
        rgb(190, 156, 25) 22.222%,
        rgb(193, 158, 31) 33.333%,
        rgb(196, 161, 35) 44.444%,
        rgb(199, 164, 40) 55.556%,
        rgb(203, 167, 44) 66.667%,
        rgb(206, 169, 48) 77.778%,
        rgb(209, 172, 51) 88.889%,
        rgb(212, 175, 55) 100%
    ) !important;
    color: #fff !important;
    box-shadow:
        0px 4px 3px rgba(184, 150, 12, 0.2),
        0px 10px 7.5px rgba(184, 150, 12, 0.2);
    border-left: 0 !important;
}

/* prevent global/Bootstrap .active styles from affecting layout */
#mobileNav .nav-item.active {
    background: transparent !important;
    border-radius: 0 !important;
}
#mobileNav .nav-item.active .nav-link svg *,
#mobileNav .nav-item.active .nav-link svg path,
#mobileNav .nav-item.active .nav-link svg circle,
#mobileNav .nav-item.active .nav-link svg rect {
    fill: #fff !important;
    stroke: #fff !important;
}
#mobileNav .nav-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

/* ── Mobile breakpoint: < 992px ── */
@media (max-width: 991.98px) {
    /* Show hamburger */
    .fd-nav-toggle {
        display: flex;
    }

    /* Remove legacy fixed-navbar spacing when fd-root header is used */
    body:has(.fd-root) .client-main-content,
    body:has(.fd-root) .admin-main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* fd-root: no left offset (sidebar is hidden) */
    .fd-root {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* fd-topbar: sticky, tighter padding */
    .fd-topbar {
        position: sticky;
        top: 0;
        z-index: 99;
        padding: 10px 16px;
        margin-bottom: 10px;
    }

    /* Prevent top-right controls wrapping on mobile */
    .fd-topbar-left {
        min-width: 0;
    }
    .fd-topbar-titles {
        min-width: 0;
    }
    .fd-topbar-title {
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .fd-topbar-sub {
        display: none;
    }
    .fd-topbar-right {
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
    }
    .fd-userpill {
        min-width: 0;
    }
    .fd-username {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Shell: tighter padding */
    .fd-shell {
        padding: 4px 12px 28px;
    }

    /* Toolbar: single scrollable row, no wrap */
    .fd-toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-top: 10px;
    }
    .fd-toolbar::-webkit-scrollbar {
        display: none;
    }
    .fd-tabs {
        flex-wrap: nowrap;
    }
    .fd-label,
    .fd-divider {
        flex-shrink: 0;
    }

    /* KPI: slightly smaller amount */
    .fd-kpi-amount {
        font-size: 22px;
    }

    /* Chart: constrained height on mobile */
    .fd-chart {
        height: 200px;
    }

    /* Undo desktop equal-height column flex gymnastics */
    .fd-equal-row > .col-lg-8 {
        display: block;
    }
    .fd-equal-col {
        display: block;
    }
    .fd-tx-card {
        height: auto !important;
        flex: none;
    }
    .fd-tx-card #txList {
        overflow-y: visible;
        max-height: none;
        flex: none;
    }

    /* User pill: show badge only on mobile */
    .fd-username,
    .fd-caret {
        display: none;
    }
    .fd-userpill {
        padding: 4px;
        border-radius: 10px;
    }

    /* Metric value smaller */
    .fd-metric .val {
        font-size: 32px;
    }
}

/* Extra-small: keep header single-line */
@media (max-width: 420px) {
    .fd-topbar-title {
        max-width: 38vw;
    }
    .fd-username {
        display: none;
    }
    .fd-topbar-logout .fd-logout-btn span {
        display: none;
    }
    .fd-topbar-logout .fd-logout-btn {
        padding: 10px 12px;
    }
}

/* ── Small phones: < 576px ── */
@media (max-width: 575.98px) {
    .fd-shell {
        padding: 4px 8px 20px;
    }

    .fd-userpill {
        gap: 0px;
    }
    .fd-topbar {
        padding: 8px 12px;
        margin-bottom: 8px;
    }
    .fd-topbar-title {
        font-size: 16px;
    }
    .fd-topbar-sub {
        display: none;
    }
    .fd-appmark {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .fd-kpi-amount {
        font-size: 20px;
    }
    .fd-kpi-inner {
        padding: 16px;
    }
    .fd-card-value {
        font-size: 20px;
    }
    .fd-metric {
        padding: 16px;
    }
    .fd-metric .val {
        font-size: 26px;
    }
    .fd-chart {
        height: 180px;
    }
}

/* =========================
   Documentation tiles (critical)
   Put here to avoid CSS flash (index.css is preloaded early)
   ========================= */
.fd-root .doc-card {
    background: #ffffff;
    border: 2px solid rgba(229, 231, 235, 0.5);
    border-radius: 16px;
    padding: 34px 34px 2px;
    box-shadow:
        0 10px 7.5px rgba(0, 0, 0, 0.1),
        0 4px 3px rgba(0, 0, 0, 0.1);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
    will-change: transform;
}

.fd-root .doc-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 18px rgba(0, 0, 0, 0.12),
        0 8px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(45, 89, 66, 0.35);
}

.fd-root .doc-card .fd-docTile,
.fd-root .doc-card.fd-docTile {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    text-align: left;
}

.fd-root .doc-card .fd-docTile__top,
.fd-root .doc-card.fd-docTile .fd-docTile__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 56px;
}

.fd-root .doc-card .fd-docTile__title,
.fd-root .doc-card.fd-docTile .fd-docTile__title {
    font-family:
        "Inter",
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 28px;
    color: #101828;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fd-root .doc-card .fd-docTile__icon,
.fd-root .doc-card.fd-docTile .fd-docTile__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        #1a3d2b 0%,
        #1c402d 10%,
        #1e422f 20%,
        #204532 30%,
        #214834 40%,
        #234b36 50%,
        #254e39 60%,
        #27503b 70%,
        #29533d 80%,
        #2b5640 90%,
        #2d5942 100%
    );
    box-shadow:
        0 10px 15px -3px rgba(26, 61, 43, 0.3),
        0 4px 6px -4px rgba(26, 61, 43, 0.3);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.fd-root .doc-card .fd-docTile__icon svg,
.fd-root .doc-card.fd-docTile .fd-docTile__icon svg {
    width: 28px;
    height: 28px;
}

.fd-root .doc-card .fd-docTile__icon svg *,
.fd-root .doc-card.fd-docTile .fd-docTile__icon svg * {
    fill: #fff !important;
    stroke: #fff !important;
}

.fd-root .doc-card .fd-docTile__arrow,
.fd-root .doc-card.fd-docTile .fd-docTile__arrow {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.fd-root .doc-card .fd-docTile__arrow svg,
.fd-root .doc-card.fd-docTile .fd-docTile__arrow svg {
    width: 20px;
    height: 20px;
}

.fd-root .doc-card .fd-docTile__arrow svg *,
.fd-root .doc-card.fd-docTile .fd-docTile__arrow svg * {
    fill: #101828 !important;
    stroke: #101828 !important;
}

.fd-root .doc-card:hover .fd-docTile__arrow {
    transform: translateX(1px);
    box-shadow: 0 10px 16px rgba(16, 24, 40, 0.1);
}

.fd-root .doc-card:hover .fd-docTile__icon {
    transform: translateY(-1px);
    box-shadow: 0 16px 22px -10px rgba(26, 61, 43, 0.55);
}

.fd-root.is-dark .doc-card {
    background: #101828;
    border-color: rgba(30, 41, 57, 0.5);
    box-shadow:
        0 10px 7.5px rgba(0, 0, 0, 0.1),
        0 4px 3px rgba(0, 0, 0, 0.1);
}

.fd-root.is-dark .doc-card:hover {
    border-color: rgba(45, 89, 66, 0.55);
    box-shadow:
        0 22px 22px rgba(0, 0, 0, 0.3),
        0 10px 8px rgba(0, 0, 0, 0.22);
    background:
        radial-gradient(
            1200px 220px at 30% 0%,
            rgba(45, 89, 66, 0.18),
            rgba(16, 24, 40, 0) 55%
        ),
        #101828;
}

.fd-root.is-dark .doc-card .fd-docTile__title {
    color: #ffffff;
}

.fd-root.is-dark .doc-card .fd-docTile__arrow {
    background: #1e2939;
}

.fd-root.is-dark .doc-card .fd-docTile__arrow svg * {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Button version (Developer's Area): fd-docTile sits on the same element as doc-card */
.fd-root .doc-card.fd-docTile {
    width: 100%;
    border: 2px solid rgba(229, 231, 235, 0.5);
    background: #ffffff;
}
.fd-root .doc-card.fd-docTile:hover {
    border-color: rgba(45, 89, 66, 0.35);
}
.fd-root.is-dark .doc-card.fd-docTile {
    background: #101828;
    border-color: rgba(30, 41, 57, 0.5);
}

.fd-root.is-dark .doc-card:hover .fd-docTile__arrow {
    background: rgba(30, 41, 57, 0.85);
    box-shadow: 0 14px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575.98px) {
    .fd-root .doc-card {
        padding: 22px 18px 10px;
    }
    .fd-root .doc-card .fd-docTile__title {
        font-size: 16px;
        line-height: 24px;
    }

    .fd-root .pager-bar {
        padding: 0px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Client portal login (resources/views/client/login.blade.php)
   Scoped under .fd-login-page — does not affect dashboard or admin login.
   ═══════════════════════════════════════════════════════════════════════════ */

.fd-login-page {
    background: var(--fd-bg);
    transition: background-color 0.2s ease;
}

.fd-login-topbar .fd-topbar-left {
    gap: 16px;
    align-items: center;
}

.fd-login-brand-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fd-login-brand-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.fd-root.is-dark .fd-login-brand-img {
    filter: brightness(1.15) contrast(1.02);
}

.fd-login-shell {
    padding-top: 32px;
    padding-bottom: 40px;
}

.fd-login-card {
    max-width: 440px;
    padding: 36px 32px 32px;
    background: var(--fd-card);
    border: 1px solid var(--fd-line);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(10, 15, 30, 0.04),
        0 12px 32px rgba(10, 15, 30, 0.08);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.fd-root.is-dark .fd-login-card {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 12px 40px rgba(0, 0, 0, 0.35);
}

.fd-login-card-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.fd-login-heading {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fd-ink);
}

.fd-login-lead {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--fd-muted);
    line-height: 1.45;
}

.fd-login-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--fd-muted);
    margin-bottom: 6px;
}

.fd-login-page .fd-login-control {
    border-radius: 12px !important;
    border: 1px solid var(--fd-select-border) !important;
    background: var(--fd-select-bg) !important;
    color: var(--fd-select-color) !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.fd-login-page .fd-login-control::placeholder {
    color: var(--fd-muted);
    opacity: 0.75;
}

.fd-login-page .fd-login-control:focus {
    border-color: rgba(80, 70, 228, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(80, 70, 228, 0.15) !important;
    outline: none !important;
}

.fd-root.is-dark .fd-login-page .fd-login-control:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

.fd-login-page .fd-login-control:-webkit-autofill,
.fd-login-page .fd-login-control:-webkit-autofill:hover,
.fd-login-page .fd-login-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--fd-select-color) !important;
    caret-color: var(--fd-select-color);
    transition: background-color 9999s ease-out 0s;
    box-shadow: 0 0 0 1000px var(--fd-select-bg) inset !important;
}

.fd-login-page .fd-login-eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 6px;
    line-height: 0;
    cursor: pointer;
    border-radius: 8px;
    opacity: 0.75;
}

.fd-login-page .fd-login-eye-btn:hover {
    opacity: 1;
    background: rgba(80, 70, 228, 0.08);
}

.fd-root.is-dark .fd-login-page .fd-login-eye-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Inline SVG eyes — currentColor (PNG + filter was unreliable in dark mode) */
.fd-login-page .fd-login-eye-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
    color: var(--fd-muted);
}

html.is-dark .fd-root.fd-login-page .fd-login-eye-icon,
.fd-root.is-dark.fd-login-page .fd-login-eye-icon {
    color: rgba(226, 232, 240, 0.88);
}

.fd-login-page .fd-login-eye-btn:hover .fd-login-eye-icon {
    color: var(--fd-ink);
}

html.is-dark .fd-root.fd-login-page .fd-login-eye-btn:hover .fd-login-eye-icon,
.fd-root.is-dark.fd-login-page .fd-login-eye-btn:hover .fd-login-eye-icon {
    color: #f8fafc;
}

.fd-login-page .fd-login-submit {
    border: 0;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    letter-spacing: 0.02em;
    color: #fff !important;
    background: linear-gradient(
        135deg,
        #1a3d2b 0%,
        #214834 40%,
        #2d5942 100%
    ) !important;
    box-shadow:
        0 10px 15px -3px rgba(26, 61, 43, 0.28),
        0 4px 6px -4px rgba(26, 61, 43, 0.2);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.fd-login-page .fd-login-submit:hover {
    color: #fff !important;
    filter: brightness(1.05);
    box-shadow:
        0 12px 20px -3px rgba(26, 61, 43, 0.35),
        0 6px 8px -4px rgba(26, 61, 43, 0.25);
}

.fd-login-page .fd-login-submit:active {
    transform: translateY(1px);
}

.fd-login-page .fd-login-alert {
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.1);
    color: #b02a37;
    font-size: 13px;
    padding: 10px 12px;
}

.fd-root.is-dark .fd-login-page .fd-login-alert {
    background: rgba(220, 53, 69, 0.15);
    color: #f8b4ba;
    border-color: rgba(248, 180, 186, 0.35);
}

.fd-login-footer-text {
    font-size: 12px;
    color: var(--fd-muted);
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.fd-login-page .fd-login-theme-ico {
    color: var(--fd-muted);
}

.fd-root:not(.is-dark) .fd-login-page .fd-login-theme-ico {
    color: #6b7494;
}

.fd-root.is-dark .fd-login-page #fdIconSun.fd-login-theme-ico {
    color: #fbbf24;
}

.fd-login-page .fd-topbar-sub {
    color: var(--fd-muted);
}

@media (max-width: 575.98px) {
    .fd-login-page .fd-login-card {
        padding: 28px 22px 26px;
    }

    .fd-login-page .fd-login-brand-wrap {
        display: none;
    }

    .fd-login-page .fd-login-shell {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Admin login only (resources/views/auth/login.blade.php — body.fd-admin-login)
   Must not use :has() on body: dashboard has no .fd-login-page and would match.
   ═══════════════════════════════════════════════════════════════════════════ */

body.fd-admin-login {
    background-color: #fff !important;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    min-height: 100%;
}

body.fd-admin-login .container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
}

body.fd-admin-login .login-logo img {
    width: 100px;
    height: auto;
}

body.fd-admin-login .login-container,
body.fd-admin-login .signup-container,
body.fd-admin-login .otp-container,
body.fd-admin-login .forget-container {
    width: 100%;
    padding: 50px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.fd-admin-login .login-form,
body.fd-admin-login .signup-form,
body.fd-admin-login .otp-form,
body.fd-admin-login .forget-form {
    background-color: #ffffff;
    position: relative;
    z-index: 1111;
    border-radius: 8px;
    width: clamp(300px, 40vw, 650px);
    padding: 40px 110px;
}

body.fd-admin-login .login-form h2,
body.fd-admin-login .signup-form h2,
body.fd-admin-login .otp-form h2,
body.fd-admin-login .forget-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

body.fd-admin-login .login-form .form-control,
body.fd-admin-login .otp-input {
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0 !important;
    font-size: 16px;
}

body.fd-admin-login .login-form .form-control:focus,
body.fd-admin-login .otp-input:focus {
    border-color: #007bff;
    outline: none;
}

body.fd-admin-login .btn-login {
    background-color: #0035aa !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    padding: 10px 50px !important;
}

body.fd-admin-login .login-form input {
    background-color: #f5f5f5 !important;
    border: none !important;
    border-bottom: 1px solid #0035aa !important;
    color: #111;
}

body.fd-admin-login .login-form input:focus {
    background-color: #f5f5f5 !important;
    outline: none !important;
    box-shadow: none !important;
    border-color: #0035aa;
}

body.fd-admin-login .login-form input:-webkit-autofill,
body.fd-admin-login .login-form input:-webkit-autofill:hover,
body.fd-admin-login .login-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111;
    -webkit-box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
    box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

body.fd-admin-login .eye-icon,
body.fd-admin-login .eye-slash-icon {
    width: 28px;
    top: 52%;
    right: 3%;
}

body.fd-admin-login .eye-slash-icon {
    margin-top: 5px;
}

@media (max-width: 1399.98px) {
    body.fd-admin-login .login-form,
    body.fd-admin-login .signup-form,
    body.fd-admin-login .otp-form,
    body.fd-admin-login .forget-form {
        padding: 40px 60px;
    }
}

@media (max-width: 1199.98px) {
    body.fd-admin-login .login-form,
    body.fd-admin-login .signup-form,
    body.fd-admin-login .otp-form,
    body.fd-admin-login .forget-form {
        padding: 40px 40px;
    }
}

@media (max-width: 575.98px) {
    body.fd-admin-login .login-form,
    body.fd-admin-login .signup-form,
    body.fd-admin-login .otp-form,
    body.fd-admin-login .forget-form {
        padding: 40px 30px;
    }

    .fd-root .trans-search-btn.btn,
    .fd-root .trans-cancel-btn.btn,
    .fd-root .btn.btn-outline-primary.rounded-4 {
        padding: 14px 14px !important;
    }

    body.fd-admin-login .footer-text {
        font-size: 12px;
    }

    body.fd-admin-login .eye-icon,
    body.fd-admin-login .eye-slash-icon {
        width: 24px;
        top: 54%;
        right: 2%;
    }

    body.fd-admin-login .eye-slash-icon {
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    body.fd-admin-login .container {
        padding: 10px;
    }

    body.fd-admin-login .login-container,
    body.fd-admin-login .signup-container,
    body.fd-admin-login .otp-container,
    body.fd-admin-login .forget-container {
        padding: 30px 10px;
    }
}

.no-hover:hover {
    background: none !important;
    color: inherit !important;
    box-shadow: none !important;
    cursor: default !important;
}

.scrollable {
    overflow-y: auto;
    overflow-x: auto;
    max-height: 75vh;
}

.bx-0 {
    border-left: 0 !important;
    border-right: 0 !important;
}

.table td,
.table th,
.table td div {
    min-width: max-content;
}

.table-wrapper {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

.table-wrapper thead {
    position: sticky;
    top: 0;
}

/* ─── Legacy transaction globals (admin + shared utilities) ─── */
.trans-search,
.trans-select {
    border-radius: 16px;
}

.trans-select {
    min-width: max-content;
}

.trans-select:hover {
    cursor: pointer;
}

.trans-search {
    min-width: 35ch !important;
}

/* Control heights: legacy layouts only (.fd-trans-panel uses --fd-trans-control-h) */
.fd-root:not(:has(.fd-trans-panel)) .trans-search,
.fd-root:not(:has(.fd-trans-panel)) .trans-select,
.fd-root:not(:has(.fd-trans-panel)) .trans-search-btn.btn,
.fd-root:not(:has(.fd-trans-panel)) .trans-cancel-btn.btn {
    height: 44px !important;
    min-height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.trans-pay-btn {
    position: relative;
    cursor: pointer;
    border-radius: 8px !important;
    min-width: max-content;
    background-color: var(--navItem-bgColor);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.trans-pay-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.trans-search-btn {
    background-color: var(--navItem-bgColor) !important;
    color: white !important;
}

.trans-search-btn.btn {
    min-width: 96px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.trans-search-btn.btn:disabled {
    opacity: 0.65 !important;
    box-shadow: none !important;
}

.trans-cancel-btn {
    min-width: 96px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(30, 41, 57, 0.55) !important;
    color: rgba(226, 232, 240, 0.9) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.trans-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.trans-cancel-btn.d-none {
    display: none !important;
}

.input-group {
    position: relative;
    width: auto !important;
}

.trans-search-icon svg {
    position: absolute;
    top: 0.35rem;
    left: 0.3rem;
    z-index: 10;
}

.table-wrapper thead th {
    font-weight: 600;
    color: var(--grey-table-header);
}

.scrollable::-webkit-scrollbar {
    display: none;
}

.created-color span {
    background-color: color-mix(in srgb, blue 15%, transparent);
    color: blue;
    padding: 3px 12px;
    border-radius: 20px;
}

.pendingBg-color span {
    /* background-color: var(--pendingBg-color) !important; */
    background-color: color-mix(
        in srgb,
        var(--pendingBg-color) 15%,
        transparent
    );
    padding: 3px 12px;
    border-radius: 20px;
    color: var(--pendingBg-color);
}

.failedBg-color span {
    background-color: color-mix(
        in srgb,
        var(--failedBg-color) 15%,
        transparent
    ) !important;
    padding: 3px 20px;
    border-radius: 20px;
    color: var(--failedBg-color) !important;
}

.donebg-color span {
    background-color: color-mix(in srgb, var(--donebg-color) 15%, transparent);
    padding: 3px 20px;
    border-radius: 20px;
    color: var(--donebg-color);
}

.table-header-transactions tr {
    background-color: var(--navItem-bgColor);
}

.table-header-transactions th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.8rem 0;
}

.top-left {
    border-top-left-radius: 20px;
}

.top-right {
    border-top-right-radius: 20px;
}

.n-amt {
    min-width: 7vw;
}

.summary-card-transactions-client {
    border-radius: 20px;
    padding: 0;
    position: relative;
    background-color: var(--main-white);
    border: 1px solid #b8b8b8;
    box-shadow: 0px 0px 4px 0px #00000040;
}

.trans-table-client {
    margin-bottom: 0;
    border: none;
}

.trans-table-client td {
    border: 1px solid #b8b8b8;
    border-bottom: 0;
    padding: 0.5rem 0.2rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.all-trans-table td {
    padding: 0.5rem 0.2rem !important;
}

.first-column {
    border-left: 0 !important;
}

.last-column {
    border-right: 0 !important;
}

.trans-table-footer {
    width: 95%;
    margin: 1rem 1rem;
}

.footer-pagination svg {
    cursor: pointer;
}

.footer-page-number {
    background-color: #022179;
    padding: 0.2rem 0.7rem;
    color: white;
    border-radius: 5px;
}

.table-wrapper table tr:not(:last-child):hover {
    background-color: color-mix(in srgb, var(--navItem-bgColor) 7.5%, white);
}

@media (min-width: 1536px) {
    .limiter {
        min-width: none !important;
        max-width: 20vw !important;
    }
}

@media (max-width: 1600px) {
    .trans-table-client td {
        padding: 0.6rem 1.2rem;
    }

    .trans-table-client {
        width: max-content;
        /* expand to content width */
        min-width: 100%;
        /* but at least full container width */
        border-collapse: collapse;
        table-layout: auto;
        /* allow natural width based on content */
    }

    .trans-table-client th,
    .trans-table-client td {
        white-space: nowrap;
        /* no wrapping */
        padding: 1rem;
        min-width: max-content;
        /* size to unbroken content */
    }

    .trans-table-client th {
        min-width: max-content;
        padding: 1rem 1rem;
    }
}

@media (max-width: 991.98px) {
    .individual-card {
        border-radius: 20px;
        background: linear-gradient(
            90deg,
            rgba(21, 91, 198, 0.2) 0%,
            rgba(35, 193, 207, 0.2) 100%
        );
        box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.07);
        padding: 1rem;
    }

    .created-class-mob {
        background-color: black;
        color: white;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        border-radius: 9999px;
        line-height: 1;
        white-space: nowrap;
        font-size: 0.875rem;
    }

    .pendingBg-color span {
        /* background-color: var(--pendingBg-color) !important; */
        background-color: var(--pendingBg-color) !important;
        color: white !important;
    }

    .failedBg-color span {
        background-color: var(--failedBg-color) !important;
        color: white !important;
    }

    .donebg-color span {
        background-color: var(--donebg-color) !important;
        color: white !important;
    }

    .cid-mob,
    .date-mob {
        color: #5c5c5c;
        font-family: Roboto;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .cid-mob-value,
    .date-mob-value {
        color: #000;
        font-family: Poppins;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .currency-mob {
        color: #000;
        font-family: Poppins;
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        min-width: max-content;
    }

    .status-text {
        color: #fff;
        text-align: center;
        font-family: Poppins;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .cid-mob-container {
        max-width: 70%;
        overflow-wrap: break-word;
    }
}

@media (max-width: 575.98px) {
    .individual-card {
        padding: 0.5rem 1rem;
    }

    .btn,
    .trans-select,
    .trans-search {
        font-size: 0.8rem !important;
    }

    .trans-search-icon svg {
        width: 20px;
        min-width: none !important;
    }

    .trans-search {
        min-width: 30ch !important;
    }

    .trans-search {
        padding-left: 2rem !important;
    }

    .cid-mob,
    .date-mob {
        font-size: 12px;
    }

    .cid-mob-value,
    .date-mob-value {
        font-size: 14px;
    }

    .currency-mob {
        font-size: 16px;
    }

    .status-text {
        font-size: 12px;
    }
}

@media (max-width: 406.98px) {
    .trans-search-btn,
    .trans-cancel-btn,
    .trans-search,
    .trans-pay-btn,
    .trans-select {
        font-size: 0.8rem !important;
    }

    .btn,
    .trans-select,
    .trans-search {
        font-size: 0.7rem !important;
    }

    .trans-search {
        min-width: 25ch !important;
    }
}
