:root {
    --pm-primary: #2563eb;
    --pm-dark: #0f172a;
    --pm-bg: #f5f7fb;
    --pm-border: #e5e7eb;
    --pm-muted: #64748b;
    --pm-card: #fff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--pm-bg);
    color: #172033;
    font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size: 14px
}

.app-shell {
    min-height: 100vh
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 245px;
    background: var(--pm-dark);
    color: #cbd5e1;
    padding: 20px 14px;
    z-index: 1040;
    overflow: auto
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    line-height: 1.05
}

    .brand small {
        font-weight: 500;
        color: #94a3b8
    }

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--pm-primary);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px
}

.menucolor {
    color: #262626 !important;
}

.app-nav {
    margin-top: 28px;
    gap: 3px
}

    .app-nav .nav-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: #64748b;
        margin: 17px 10px 5px
    }

    .app-nav .nav-link {
        color: #b3bfcd;
        border-radius: 10px;
        padding: 11px 12px;
        font-weight: 500
    }

        .app-nav .nav-link:hover, .app-nav .nav-link.active {
            background: #1e293b;
            color: #fff
        }

        .app-nav .nav-link span {
            display: inline-block;
            width: 24px;
            color: #94a3b8
        }

.app-main {
    margin-left: 245px;
    min-height: 100vh
}

.app-topbar {
    height: 66px;
    background: #fff;
    border-bottom: 1px solid var(--pm-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1000
}

.top-title {
    font-weight: 600;
    font-size: 15px;
    margin-left: 10px;
}

.user-chip {
    color: #475569;
    font-weight: 500
}

.app-content {
    padding: 28px;
    max-width: 1600px;
    margin: auto
}

.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px
}

    .page-heading h1 {
        font-size: 24px;
        font-weight: 700;
        margin: 0 0 5px
    }

    .page-heading p {
        margin: 0;
        color: var(--pm-muted)
    }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

.stat-card, .panel {
    background: var(--pm-card);
    border: 1px solid var(--pm-border);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15,23,42,.04)
}

.stat-card {
    padding: 20px
}

    .stat-card span, .stat-card small {
        display: block;
        color: var(--pm-muted)
    }

    .stat-card strong {
        display: block;
        font-size: 25px;
        margin: 8px 0 4px
    }

.panel {
    padding: 20px
}

.panel-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px
}

.panel h5 {
    font-size: 16px;
    font-weight: 700;
    margin: 0
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px
}

    .finance-grid div {
        background: #f8fafc;
        border-radius: 12px;
        padding: 17px
    }

    .finance-grid span {
        display: block;
        color: var(--pm-muted);
        font-size: 12px
    }

    .finance-grid strong {
        display: block;
        margin-top: 6px;
        font-size: 19px
    }

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px
}

    .quick-grid a {
        padding: 13px;
        border: 1px solid var(--pm-border);
        border-radius: 12px;
        text-decoration: none;
        color: #334155;
        background: #fff
    }

        .quick-grid a:hover {
            border-color: #93c5fd;
            background: #eff6ff
        }

.app-table {
    margin-bottom: 0
}

    .app-table thead th {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #64748b;
        white-space: nowrap
    }

    .app-table tbody td {
        vertical-align: middle
    }

.status-pill {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 700
}

.form-panel {
    /*    max-width: 1000px*/
}

.form-label {
    font-weight: 600;
    font-size: 13px
}

.form-control, .form-select {
    border-color: #dbe2ea;
    border-radius: 10px;
    min-height: 44px
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px
}

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 12px;
    padding: 14px
}

.invoice {
    max-width: 1000px
}

.invoice-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pm-border);
    margin-bottom: 20px
}

    .invoice-head small {
        color: var(--pm-muted)
    }

    .invoice-head h4 {
        margin: 5px 0
    }

.invoice-summary {
    margin-left: auto;
    max-width: 420px;
    margin-top: 20px
}

    .invoice-summary > div {
        display: flex;
        justify-content: space-between;
        padding: 8px 0
    }

    .invoice-summary .grand-total {
        border-top: 2px solid #0f172a;
        margin-top: 8px;
        font-size: 17px
    }

.empty-state {
    text-align: center;
    padding: 80px 20px
}

.btn-primary {
    background: var(--pm-primary);
    border-color: var(--pm-primary)
}

.btn-icon {
    border: 1px solid var(--pm-border);
    border-radius: 10px
}

.mobile-bottom-nav {
    display: none
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#eff6ff,#f8fafc);
    padding: 20px
}

.login-card {
    width: min(420px,100%);
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(15,23,42,.08)
}

    .login-card h1 {
        font-size: 24px;
        font-weight: 700
    }

    .login-card .brand {
        color: #111827
    }

.offcanvas .mobile-nav {
    margin-top: 10px;
    padding: 10px
}

.dt-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.dt-search {
    margin-bottom: 8px
}

.dataTables_wrapper .row {
    align-items: center;
    gap: 8px
}

@media(max-width:991.98px) {
    .app-sidebar {
        display: none
    }

    .app-main {
        margin-left: 0
    }

    .app-topbar {
        padding: 0 16px;
        height: 60px
    }

    .app-content {
        padding: 18px 14px 90px
    }

    .stat-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .mobile-bottom-nav {
        position: fixed;
        display: flex;
        left: 0;
        right: 0;
        bottom: 0;
        height: 68px;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--pm-border);
        z-index: 1050;
        padding-bottom: env(safe-area-inset-bottom)
    }

        .mobile-bottom-nav a {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: #64748b;
            gap: 3px
        }

            .mobile-bottom-nav a span {
                font-size: 20px
            }

            .mobile-bottom-nav a small {
                font-size: 10px
            }

    .page-heading {
        align-items: flex-start
    }

        .page-heading .btn {
            white-space: nowrap
        }

    .panel {
        border-radius: 14px
    }

    .user-chip {
        display: none
    }
}

@media(max-width:575.98px) {
    body {
        font-size: 13px
    }

    .app-content {
        padding: 14px 10px 90px
    }

    .page-heading {
        flex-direction: column;
        margin-bottom: 16px
    }

        .page-heading h1 {
            font-size: 21px
        }

        .page-heading .btn {
            width: 100%
        }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px
    }

    .stat-card {
        padding: 14px;
        border-radius: 13px
    }

        .stat-card strong {
            font-size: 18px
        }

        .stat-card small {
            font-size: 10px
        }

    .finance-grid {
        grid-template-columns: 1fr
    }

    .panel {
        padding: 14px
    }

    .form-actions {
        flex-direction: column-reverse
    }

        .form-actions .btn {
            width: 100%
        }

    .invoice-head {
        flex-direction: column
    }

        .invoice-head .text-end {
            text-align: left !important
        }

    .dt-buttons .btn {
        font-size: 11px;
        padding: 6px 8px
    }
}

@media print {
    .app-sidebar, .app-topbar, .mobile-bottom-nav, .offcanvas, .page-heading .btn {
        display: none !important
    }

    .app-main {
        margin: 0
    }

    .app-content {
        padding: 0
    }

    .panel {
        border: 0;
        box-shadow: none
    }
}


/* =========================================================
   Select2
   ========================================================= */
/* Keep Select2 within its available layout width without forcing the
   dropdown container (which may be attached to <body>) to span the page. */
.select2-container {
    max-width: 100%;
}

/* The original selection control should fill its field; Select2 calculates
   the dropdown width from that control. */
.select2-container--bootstrap-5 {
    min-width: 0;
}

    .select2-container--bootstrap-5 .select2-selection {
        min-height: 44px;
        border-color: #dbe2ea;
        border-radius: 10px;
    }

    .select2-container--bootstrap-5 .select2-selection--single {
        height: 44px;
        padding: .55rem 2.25rem .55rem .75rem;
    }

        .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
            line-height: 30px;
            color: #212529;
        }

        .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
            color: #6c757d;
        }

    .select2-container--bootstrap-5 .select2-dropdown {
        border-color: #dbe2ea;
        border-radius: 10px;
        overflow: hidden;
    }

    .select2-container--bootstrap-5 .select2-search__field {
        border-radius: 8px;
    }

    .select2-container--bootstrap-5 .select2-results__option {
        padding: 9px 12px;
    }

    .select2-container--bootstrap-5 .select2-results__option--highlighted {
        background-color: var(--pm-primary);
    }

    .select2-container--bootstrap-5.select2-container--focus .select2-selection,
    .select2-container--bootstrap-5.select2-container--open .select2-selection {
        border-color: #93c5fd;
        box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
    }


/* =========================================================
   Billing form - responsive / friendly layout
   ========================================================= */
.billing-summary,
.tenant-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tenant-summary {
    background: #f8fafc;
    border: 1px solid var(--pm-border);
    border-radius: 12px;
    padding: 10px;
}

.tenant-summary-item {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 9px;
    background: #fff;
}

    .tenant-summary-item span {
        display: block;
        color: var(--pm-muted);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 3px;
    }

    .tenant-summary-item strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
    }

.tenant-summary-wide {
    grid-column: span 2;
}

#billingLinesTable {
    min-width: 1180px;
}

    #billingLinesTable .form-control,
    #billingLinesTable .form-select {
        min-height: 40px;
        padding: .38rem .5rem;
    }

    #billingLinesTable .line-description {
        min-width: 180px;
    }

    #billingLinesTable .quantity,
    #billingLinesTable .rate,
    #billingLinesTable .amount,
    #billingLinesTable .taxable,
    #billingLinesTable .tax-amount,
    #billingLinesTable .final-amount {
        min-width: 95px;
    }

    #billingLinesTable .advanced-billing-col {
        display: none;
    }

    #billingLinesTable.show-advanced .advanced-billing-col {
        display: table-cell;
    }

    #billingLinesTable.show-advanced {
        min-width: 1420px;
    }

.utility-no-reading td {
    background: #fff7ed !important;
    border-top-color: #fed7aa;
    border-bottom-color: #fed7aa;
}

    .utility-no-reading td:first-child {
        border-left: 4px solid #f59e0b;
    }

.utility-no-reading .line-description {
    font-weight: 600;
}

    .utility-no-reading .line-description::after {
        content: "  • No reading";
        color: #b45309;
        font-size: 11px;
        font-weight: 700;
    }

#toggleBillingColumns {
    white-space: nowrap;
}

.toggle-columns-icon {
    display: inline-block;
    margin-right: 4px;
}

@media (max-width: 991.98px) {
    .tenant-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tenant-summary-wide {
        grid-column: span 2;
    }

    .billing-form-panel {
        padding: 14px;
    }

    #billingLinesTable {
        min-width: 1080px;
    }

        #billingLinesTable.show-advanced {
            min-width: 1380px;
        }
}

@media (max-width: 575.98px) {
    .tenant-summary {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 7px;
    }

    .tenant-summary-item {
        padding: 7px 8px;
    }

        .tenant-summary-item strong {
            font-size: 12px;
        }

    .tenant-summary-wide {
        grid-column: span 2;
    }

    #billingLinesTable {
        min-width: 1000px;
    }

        #billingLinesTable.show-advanced {
            min-width: 1340px;
        }

        #billingLinesTable th,
        #billingLinesTable td {
            padding: .35rem .3rem;
        }

        #billingLinesTable .form-control,
        #billingLinesTable .form-select {
            min-height: 38px;
            font-size: 12px;
        }

    .panel {
        overflow: hidden;
    }

    .table-responsive {
        margin-left: -4px;
        margin-right: -4px;
    }
}

/* =========================================
   Modern Sidebar Scrollbar
   Property Management - Dark Navy Theme
   ========================================= */

/* Apply to the element that scrolls the sidebar menu */
.app-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox: hidden by default */
    -ms-overflow-style: none;
}

    /* Chrome, Edge and Safari: hidden by default */
    .app-sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    /* Show a slim scrollbar when hovering over the sidebar */
    .app-sidebar:hover {
        scrollbar-width: thin;
        scrollbar-color: #64748b transparent;
    }

        .app-sidebar:hover::-webkit-scrollbar {
            width: 5px;
        }

        .app-sidebar:hover::-webkit-scrollbar-track {
            background: transparent;
            margin-block: 8px;
        }

        .app-sidebar:hover::-webkit-scrollbar-thumb {
            background-color: #475569;
            border-radius: 20px;
            border: 1px solid #0f172a;
        }

            .app-sidebar:hover::-webkit-scrollbar-thumb:hover {
                background-color: #93a4bd;
            }

    /* Keep the scrollbar hidden when the sidebar isn't hovered */
    .app-sidebar:not(:hover)::-webkit-scrollbar {
        width: 0;
    }


/* =========================================================
   Reports workspace - reusable report navigation and results
   ========================================================= */
.reports-page-heading {
    margin-bottom: 18px;
}

.reports-live-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

    .reports-live-label span, .report-result-badge span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 0 3px #d1fae5;
    }

.reports-workspace {
    display: grid;
    grid-template-columns: 290px minmax(0,1fr);
    gap: 20px;
    align-items: start;
}

.reports-navigator {
    padding: 0;
    overflow: hidden;
    position: sticky;
    top: 84px;
}

.reports-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 19px 18px 15px;
    border-bottom: 1px solid #eef2f7;
}

    .reports-nav-head small {
        display: block;
        color: #64748b;
        font-size: 10px;
        letter-spacing: .13em;
        font-weight: 800;
        margin-bottom: 5px;
    }

    .reports-nav-head h5 {
        font-size: 16px;
        margin: 0;
        font-weight: 750;
    }

.reports-count {
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

.reports-nav-scroll {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding: 8px 10px 14px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

    .reports-nav-scroll::-webkit-scrollbar {
        width: 5px;
    }

    .reports-nav-scroll::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 20px;
    }

.reports-group {
    padding: 8px 0 10px;
}

    .reports-group + .reports-group {
        border-top: 1px solid #eef2f7;
    }

.reports-group-title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px 9px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.reports-group-number {
    width: 23px;
    height: 23px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
}

.reports-group-alert {
    color: #c2410c;
    background: #fff7ed;
}

.report-nav-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 10px 9px;
    margin: 2px 0;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    transition: background .15s ease,border-color .15s ease,color .15s ease;
}

    .report-nav-item:hover {
        background: #f8fafc;
        border-color: #e2e8f0;
        color: #0f172a;
    }

    .report-nav-item.active {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1d4ed8;
        box-shadow: inset 3px 0 #2563eb;
    }

    .report-nav-item > span:last-child {
        min-width: 0;
    }

    .report-nav-item b {
        display: block;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
    }

    .report-nav-item small {
        display: block;
        margin-top: 3px;
        color: #8491a4;
        font-size: 10px;
        line-height: 1.35;
    }

    .report-nav-item.active small {
        color: #5275b7;
    }

.report-nav-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
}

.report-nav-item.active .report-nav-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.report-icon-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.report-icon-warning {
    background: #ffedd5;
    color: #c2410c;
}

.reports-nav-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 17px;
    border-top: 1px solid #eef2f7;
    color: #8491a4;
    font-size: 10px;
}

.reports-foot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
}

.reports-main {
    min-width: 0;
}

.reports-filters {
    padding: 17px 18px 18px;
    margin-bottom: 20px;
}

.reports-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

    .reports-filter-heading h6 {
        margin: 0 0 4px;
        font-size: 14px;
        font-weight: 750;
    }

    .reports-filter-heading small {
        color: var(--pm-muted);
        font-size: 11px;
    }

.reports-filter-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    align-items: end;
}

    .reports-filter-grid .form-label {
        margin-bottom: 5px;
        font-size: 11px;
        color: #475569;
        font-weight: 700;
    }

    .reports-filter-grid .form-control, .reports-filter-grid .form-select {
        min-height: 40px;
        font-size: 12px;
    }

.report-filter-action .btn {
    width: 100%;
    min-height: 40px;
    font-size: 12px;
    font-weight: 700;
}

.report-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 17px;
}

.report-eyebrow {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 6px;
}

.report-result-heading h2 {
    font-size: 21px;
    font-weight: 750;
    margin: 0 0 6px;
    letter-spacing: -.025em;
}

.report-result-heading p {
    margin: 0;
    max-width: 690px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.report-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    border: 1px solid var(--pm-border);
    border-radius: 999px;
    background: #fff;
    padding: 7px 10px;
    font-size: 10px;
    white-space: nowrap;
}

    .report-result-badge span {
        width: 6px;
        height: 6px;
        box-shadow: none;
    }

.report-stat-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 17px;
}

.report-stat-card {
    padding: 15px 16px;
    border-radius: 13px;
    min-width: 0;
}

    .report-stat-card span {
        font-size: 11px;
    }

    .report-stat-card strong {
        font-size: 21px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .report-stat-card small {
        font-size: 10px;
    }

.report-stat-danger {
    color: #b91c1c;
}

.report-stat-success {
    color: #047857;
}

.report-stat-warning {
    color: #b45309;
}

.report-table-panel {
    padding: 0;
    overflow: hidden;
}

.report-table-title {
    padding: 17px 19px;
    margin: 0;
    border-bottom: 1px solid #eef2f7;
    align-items: center;
}

    .report-table-title h5 {
        margin-bottom: 4px;
    }

    .report-table-title small {
        font-size: 11px;
    }

.report-table-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 17px;
}

.report-table-panel .table-responsive {
    padding: 0 15px;
}

.report-table-panel .app-table {
    font-size: 12px;
}

    .report-table-panel .app-table thead th {
        padding-top: 14px;
        padding-bottom: 12px;
        background: #f8fafc;
    }

    .report-table-panel .app-table tbody td {
        padding-top: 12px;
        padding-bottom: 12px;
        white-space: nowrap;
    }

.report-table-panel .dt-container {
    padding: 12px 17px 0;
    font-size: 11px;
}

.report-table-panel .dt-buttons {
    margin-bottom: 9px;
}

    .report-table-panel .dt-buttons .dt-button {
        border: 1px solid #dbe2ea;
        border-radius: 8px;
        background: #fff;
        padding: 6px 10px;
        color: #334155;
        font-size: 11px;
    }

        .report-table-panel .dt-buttons .dt-button:hover {
            background: #eff6ff;
            border-color: #bfdbfe;
            color: #1d4ed8;
        }

.report-table-panel .dt-search input, .report-table-panel .dt-length select {
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    padding: 6px 8px;
}

.report-table-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #eef2f7;
    padding: 12px 18px;
    color: #94a3b8;
    font-size: 10px;
}

.report-foot-check {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    margin: 0 5px 1px 0;
}

.report-status-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 750;
}

    .report-status-pill.danger {
        color: #b91c1c;
        background: #fee2e2;
    }

    .report-status-pill.warning {
        color: #9a3412;
        background: #ffedd5;
    }

    .report-status-pill.success {
        color: #047857;
        background: #d1fae5;
    }

.reports-empty {
    text-align: center;
    padding: 46px 15px;
    color: #64748b;
}

.reports-empty-icon {
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
}

.reports-empty strong {
    color: #334155;
    display: block;
    font-size: 13px;
}

.reports-empty p {
    margin: 5px 0 0;
    font-size: 11px;
}

.reports-loading, .reports-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 140px;
    color: #64748b;
    font-size: 12px;
}

.reports-error {
    display: block;
    padding: 25px;
    border-color: #fecaca;
    background: #fffafa;
    color: #b91c1c;
}

    .reports-error p {
        margin-top: 7px;
        font-size: 12px;
    }

@media(max-width:1199.98px) {
    .reports-workspace {
        grid-template-columns: 260px minmax(0,1fr);
        gap: 14px;
    }

    .report-stat-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .reports-filter-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:991.98px) {
    .reports-workspace {
        grid-template-columns: minmax(0,1fr);
    }

    .reports-navigator {
        position: static;
    }

    .reports-nav-scroll {
        max-height: 310px;
    }

    .reports-nav-foot {
        display: none;
    }

    .reports-group {
        padding-top: 4px;
    }

    .report-nav-item {
        width: calc(50% - 4px);
        display: inline-flex;
        vertical-align: top;
    }

    .reports-nav-scroll {
        display: block;
    }
}

@media(max-width:575.98px) {
    .reports-page-heading {
        flex-direction: row;
        align-items: center;
    }

    .reports-live-label {
        padding: 6px 8px;
        font-size: 10px;
    }

    .reports-nav-head {
        padding: 14px;
    }

    .reports-nav-scroll {
        max-height: 280px;
        padding: 7px;
    }

    .report-nav-item {
        width: 100%;
        margin: 2px 0;
    }

    .reports-filters {
        padding: 13px;
    }

    .reports-filter-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px;
    }

    .report-result-heading {
        flex-direction: column;
        gap: 9px;
    }

        .report-result-heading h2 {
            font-size: 19px;
        }

    .report-stat-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

    .report-stat-card {
        padding: 12px;
    }

        .report-stat-card strong {
            font-size: 17px;
        }

    .report-table-title {
        padding: 13px;
    }

    .report-table-panel .table-responsive {
        padding: 0 8px;
    }

    .report-table-panel .dt-container {
        padding: 10px 10px 0;
    }

    .report-table-footer {
        flex-direction: column;
        gap: 4px;
        padding: 10px 13px;
    }
}

/* =========================================================
   Modern property admin dashboard
   ========================================================= */
.dash-page {
    --dash-ink: #17243b;
    --dash-muted: #7a879b;
    --dash-line: #e8edf5;
    color: var(--dash-ink);
}

.dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 27px 30px;
    border-radius: 22px;
    margin-bottom: 19px;
    color: #fff;
    background: radial-gradient(circle at 80% 0%,rgba(125,160,255,.34),transparent 32%),linear-gradient(115deg,#15294b,#244a86 62%,#315db0);
    box-shadow: 0 14px 32px rgba(36,74,134,.16);
}

.dash-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    color: #c3d6ff;
}

.dash-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #45e0b0;
    box-shadow: 0 0 0 4px rgba(69,224,176,.13);
}

.dash-hero h1 {
    margin: 11px 0 7px;
    color: #fff;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -.04em;
}

    .dash-hero h1 span {
        color: #ffcf76;
        font-size: 21px;
    }

.dash-hero p {
    margin: 0;
    color: #c6d4ee;
    font-size: 13px;
}

.dash-hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dash-date {
    text-align: right;
    white-space: nowrap;
}

    .dash-date span, .dash-date strong {
        display: block;
    }

    .dash-date span {
        color: #b9c9e4;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .12em;
        margin-bottom: 5px;
    }

    .dash-date strong {
        font-size: 12px;
        color: #fff;
    }

.dash-action {
    border: 0;
    border-radius: 11px;
    padding: 11px 15px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

    .dash-action span {
        font-size: 17px;
        margin-right: 4px;
    }

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    margin-bottom: 27px;
}

.dash-kpi {
    min-width: 0;
    padding: 17px 18px 13px;
    background: #fff;
    border: 1px solid var(--dash-line);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(24,43,77,.035);
    position: relative;
    overflow: hidden;
}

    .dash-kpi:before {
        content: "";
        position: absolute;
        width: 88px;
        height: 88px;
        border-radius: 50%;
        right: -35px;
        top: -39px;
        background: var(--kpi-tint);
    }

.kpi-blue {
    --kpi-tint: #edf3ff;
    --kpi-color: #4776e6;
}

.kpi-violet {
    --kpi-tint: #f2efff;
    --kpi-color: #7c63df;
}

.kpi-teal {
    --kpi-tint: #e8faf5;
    --kpi-color: #1fae91;
}

.kpi-orange {
    --kpi-tint: #fff3e6;
    --kpi-color: #e8943d;
}

.kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #68768b;
    font-size: 12px;
    font-weight: 700;
    position: relative;
}

.kpi-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--kpi-tint);
    color: var(--kpi-color);
    font-size: 18px;
}

.dash-kpi > strong {
    display: block;
    margin: 12px 0 4px;
    color: #17243b;
    font-size: 27px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.dash-kpi > small {
    display: block;
    min-height: 17px;
    color: #8b97a8;
    font-size: 10px;
}

.kpi-bottom {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #f0f3f8;
    padding-top: 11px;
    margin-top: 13px;
    color: #8b97a8;
    font-size: 10px;
}

    .kpi-bottom span:last-child {
        color: var(--kpi-color);
        font-weight: 800;
    }

.kpi-line {
    font-size: 15px;
}

.dash-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    margin: 26px 1px 14px;
}

.dash-section-tag {
    display: block;
    margin-bottom: 6px;
    color: #7184a4;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;
}

.dash-section-head h2 {
    margin: 0 0 5px;
    color: #1b2940;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.dash-section-head p {
    margin: 0;
    color: #8490a2;
    font-size: 11px;
}

.dash-period, .dash-doc-total {
    flex: 0 0 auto;
    padding: 8px 11px;
    background: #fff;
    border: 1px solid var(--dash-line);
    border-radius: 10px;
    color: #62728b;
    font-size: 10px;
    font-weight: 750;
}

.dash-finance-strip {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 16px;
}

    .dash-finance-strip > div {
        padding: 17px 18px;
        background: #fff;
        border: 1px solid var(--dash-line);
        border-radius: 14px;
    }

.finance-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #69778c;
    font-size: 11px;
    font-weight: 700;
}

.finance-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.income-dot {
    background: #4f7df3;
}

.expense-dot {
    background: #f5a65b;
}

.balance-dot {
    background: #23b78d;
}

.dash-finance-strip strong {
    display: block;
    margin: 9px 0 4px;
    color: #1b2940;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.dash-finance-strip small {
    color: #98a2b1;
    font-size: 10px;
}

.dash-chart-grid {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(240px,1fr) minmax(240px,1fr);
    gap: 14px;
}

.dash-panel {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--dash-line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(24,43,77,.03);
}

.dash-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}

    .dash-panel-head h3 {
        margin: 0 0 4px;
        color: #1c2b43;
        font-size: 14px;
        font-weight: 800;
    }

    .dash-panel-head p {
        margin: 0;
        color: #94a0b0;
        font-size: 10px;
    }

.dash-chart-mark {
    display: grid;
    place-items: center;
    flex: 0 0 33px;
    height: 33px;
    border-radius: 10px;
    color: #4275ed;
    background: #edf3ff;
    font-size: 17px;
}

.purple-mark {
    color: #8066dc;
    background: #f2efff;
}

.amber-mark {
    color: #df973b;
    background: #fff3e4;
}

.dash-chart-wrap {
    position: relative;
    height: 255px;
}

.dash-donut-wrap {
    height: 205px;
    position: relative;
    max-width: 270px;
    margin: 4px auto 7px;
}

.dash-donut-center {
    position: absolute;
    pointer-events: none;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1px;
}

    .dash-donut-center strong {
        font-size: 25px;
        font-weight: 850;
        letter-spacing: -.04em;
        color: #23334d;
    }

    .dash-donut-center span {
        font-size: 10px;
        color: #8b97a8;
    }

.dash-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
    padding-top: 9px;
    color: #78869a;
    font-size: 10px;
}

    .dash-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .dash-legend b {
        color: #33445d;
        font-size: 10px;
    }

    .dash-legend i {
        width: 7px;
        height: 7px;
        border-radius: 3px;
        display: inline-block;
    }

.legend-blue {
    background: #4f7df3;
}

.legend-gray {
    background: #e8edf5;
}

.legend-green {
    background: #23b78d;
}

.legend-amber {
    background: #f4b544;
}

.legend-red {
    background: #f16b75;
}

.dash-legend-stack {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    width: max-content;
    margin: 0 auto;
}

.dash-doc-heading {
    margin-top: 31px;
}

.dash-doc-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    align-items: start;
}

.dash-doc-panel {
    padding: 0;
    overflow: hidden;
}

    .dash-doc-panel > .dash-panel-head {
        padding: 17px 18px 15px;
        margin: 0;
        border-bottom: 1px solid #edf1f6;
    }

.dash-doc-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dash-doc-title h3 {
        margin: 0 0 4px;
        font-size: 14px;
        font-weight: 800;
        color: #1c2b43;
    }

    .dash-doc-title p {
        margin: 0;
        font-size: 10px;
        color: #94a0b0;
    }

.dash-doc-symbol {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    font-weight: 900;
}

.expired-symbol {
    background: #fff0f0;
    color: #e35d66;
}

.expiring-symbol {
    background: #fff5e7;
    color: #d98d2e;
}

.dash-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 850;
}

.count-danger {
    background: #fff0f0;
    color: #d94f5b;
}

.count-warning {
    background: #fff5e7;
    color: #bd7b20;
}

.dash-doc-table-wrap {
    max-height: 380px;
    overflow: auto;
}

.dash-doc-table {
    min-width: 540px;
    margin: 0;
    font-size: 10px;
}

    .dash-doc-table thead th {
        padding: 11px 12px;
        color: #8c98a9;
        background: #fbfcfe;
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid #edf1f6;
        white-space: nowrap;
    }

    .dash-doc-table tbody td {
        padding: 12px;
        vertical-align: middle;
        border-color: #f0f3f8;
    }

.dash-file {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    max-width: 220px;
}

.dash-file-icon {
    display: grid;
    place-items: center;
    flex: 0 0 29px;
    width: 29px;
    height: 32px;
    border-radius: 8px;
    background: #f0f4fb;
    color: #607da9;
    font-size: 16px;
}

.dash-file strong, .dash-file small {
    display: block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-file strong {
    color: #35445c;
    font-size: 10px;
    font-weight: 750;
}

.dash-file small {
    margin-top: 3px;
    color: #a0a9b7;
    font-size: 9px;
}

.dash-owner {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 5px;
    background: #f2f5fa;
    color: #6d7b91;
    font-size: 8px;
    font-weight: 800;
}

.dash-owner-name {
    margin-top: 4px;
    max-width: 130px;
    color: #465670;
    font-size: 9px;
    white-space: normal;
}

.dash-expiry {
    display: block;
    color: #596b85;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.expired-text {
    color: #d94f5b;
}

.soon-text {
    color: #c27b1c;
}

.dash-days {
    display: block;
    margin-top: 3px;
    color: #98a2b1;
    font-size: 9px;
    white-space: nowrap;
}

.dash-download {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dfe7f4;
    border-radius: 9px;
    background: #fff;
    color: #3568cf;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s ease;
}

    .dash-download:hover {
        background: #edf4ff;
        border-color: #b9cefa;
        color: #214fb0;
        transform: translateY(-1px);
    }

.dash-empty {
    padding: 35px 15px 38px;
    text-align: center;
}

    .dash-empty > span {
        display: grid;
        place-items: center;
        width: 35px;
        height: 35px;
        margin: 0 auto 9px;
        border-radius: 50%;
        background: #eafaf4;
        color: #16a579;
        font-size: 17px;
    }

    .dash-empty strong {
        display: block;
        color: #34445c;
        font-size: 12px;
    }

    .dash-empty p {
        margin: 5px 0 0;
        color: #97a2b2;
        font-size: 10px;
    }

.dash-footnote {
    margin: 13px 1px 0;
    color: #8a97a9;
    font-size: 10px;
}

    .dash-footnote span {
        color: #e5a23e;
        font-size: 12px;
        margin-right: 5px;
    }
/* Tablet layout */
@media(max-width:1250px) {
    .dash-chart-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .dash-chart-wide {
        grid-column: span 2;
    }
}

@media(max-width:991.98px) {
    .dash-page {
        padding-bottom: 24px;
    }

    .dash-hero {
        align-items: flex-start;
        flex-direction: row;
        padding: 22px;
        border-radius: 20px;
    }

    .dash-hero-actions {
        width: auto;
        align-items: flex-end;
        flex-direction: column;
        gap: 12px;
    }

    .dash-date {
        text-align: right;
    }

    .dash-kpis {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }

    .dash-finance-strip {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .dash-chart-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .dash-chart-wide {
        grid-column: span 2;
    }

    .dash-doc-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .dash-panel {
        border-radius: 18px;
    }
}
/* Phone: app-like cards, compact header, touch-friendly controls */
@media(max-width:575.98px) {
    .dash-page {
        margin: 0 -10px;
        padding: 0 10px 28px;
        color: #17243b;
    }

    .dash-hero {
        display: block;
        padding: 20px 18px 17px;
        margin: 0 0 15px;
        border-radius: 0 0 22px 22px;
        box-shadow: 0 9px 24px rgba(36,74,134,.14);
    }

    .dash-eyebrow {
        font-size: 9px;
        letter-spacing: .11em;
    }

    .dash-hero h1 {
        margin: 10px 0 6px;
        font-size: 24px;
    }

        .dash-hero h1 span {
            font-size: 18px;
        }

    .dash-hero p {
        max-width: 290px;
        font-size: 12px;
        line-height: 1.5;
    }

    .dash-hero-actions {
        display: flex;
        align-items: stretch;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        margin-top: 17px;
    }

    .dash-date {
        align-self: center;
        min-width: 0;
        text-align: left;
        white-space: normal;
    }

        .dash-date span {
            font-size: 8px;
            margin-bottom: 4px;
        }

        .dash-date strong {
            font-size: 11px;
            line-height: 1.4;
        }

    .dash-action {
        width: auto;
        min-height: 43px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 11px;
    }

    .dash-kpis {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
        margin-bottom: 23px;
    }

    .dash-kpi {
        padding: 14px 13px 12px;
        border-radius: 17px;
        box-shadow: 0 5px 16px rgba(24,43,77,.055);
    }

    .kpi-top {
        align-items: flex-start;
        gap: 5px;
        font-size: 11px;
    }

    .kpi-icon {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        border-radius: 10px;
        font-size: 16px;
    }

    .dash-kpi > strong {
        margin: 11px 0 5px;
        font-size: clamp(19px,5.7vw,25px);
        line-height: 1.15;
    }

    .dash-kpi > small {
        min-height: 29px;
        font-size: 9px;
        line-height: 1.45;
    }

    .kpi-bottom {
        align-items: flex-start;
        padding-top: 9px;
        margin-top: 10px;
        font-size: 9px;
        line-height: 1.35;
    }

        .kpi-bottom span:last-child {
            text-align: right;
        }

    .dash-section-head {
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
        margin: 23px 2px 12px;
    }

    .dash-section-tag {
        margin-bottom: 5px;
        font-size: 8px;
        letter-spacing: .12em;
    }

    .dash-section-head h2 {
        font-size: 17px;
        line-height: 1.25;
    }

    .dash-section-head p {
        max-width: 260px;
        margin-top: 4px;
        font-size: 10px;
        line-height: 1.45;
    }

    .dash-period, .dash-doc-total {
        padding: 7px 8px;
        border-radius: 9px;
        font-size: 9px;
        text-align: center;
        white-space: normal;
    }

    .dash-finance-strip {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 8px;
        margin-bottom: 13px;
    }

        .dash-finance-strip > div {
            min-width: 0;
            padding: 12px 10px;
            border-radius: 14px;
            box-shadow: 0 4px 13px rgba(24,43,77,.035);
        }

    .finance-label {
        align-items: flex-start;
        gap: 5px;
        font-size: 9px;
        line-height: 1.35;
    }

    .finance-dot {
        flex: 0 0 7px;
        margin-top: 3px;
    }

    .dash-finance-strip strong {
        margin: 9px 0 4px;
        font-size: clamp(12px,3.6vw,17px);
        line-height: 1.25;
        letter-spacing: -.03em;
        overflow-wrap: anywhere;
    }

    .dash-finance-strip small {
        display: block;
        font-size: 8px;
        line-height: 1.35;
    }

    .dash-chart-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 11px;
    }

    .dash-chart-wide {
        grid-column: auto;
    }

    .dash-panel {
        padding: 15px;
        border-radius: 18px;
        box-shadow: 0 5px 17px rgba(24,43,77,.045);
    }

    .dash-panel-head {
        margin-bottom: 12px;
    }

        .dash-panel-head h3 {
            font-size: 13px;
        }

        .dash-panel-head p {
            font-size: 10px;
        }

    .dash-chart-mark {
        flex-basis: 31px;
        height: 31px;
    }

    .dash-chart-wrap {
        height: 220px;
    }

    .dash-donut-wrap {
        height: 190px;
    }

    .dash-legend {
        gap: 12px;
        font-size: 10px;
    }

    .dash-doc-heading {
        margin-top: 25px;
    }

    .dash-doc-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 12px;
    }

    .dash-doc-panel {
        padding: 0;
    }

        .dash-doc-panel > .dash-panel-head {
            padding: 14px 15px;
        }

    .dash-doc-title {
        gap: 9px;
    }

        .dash-doc-title h3 {
            font-size: 13px;
        }

        .dash-doc-title p {
            font-size: 9px;
        }

    .dash-doc-symbol {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .dash-doc-table-wrap {
        max-height: none;
        overflow: visible;
        padding: 10px;
    }

    .dash-doc-table {
        display: block;
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 9px;
    }

        .dash-doc-table thead {
            display: none;
        }

        .dash-doc-table tbody {
            display: block;
            width: 100%;
        }

            .dash-doc-table tbody tr {
                display: grid;
                grid-template-columns: minmax(0,1fr) auto;
                gap: 0 10px;
                padding: 12px;
                margin-bottom: 9px;
                background: #fbfcff;
                border: 1px solid #edf1f7;
                border-radius: 14px;
                box-shadow: 0 2px 8px rgba(24,43,77,.025);
            }

            .dash-doc-table tbody td {
                display: block;
                min-width: 0;
                padding: 5px 0;
                border: 0;
            }

                .dash-doc-table tbody td:first-child {
                    grid-column: 1 / -1;
                    padding-top: 0;
                }

                .dash-doc-table tbody td:nth-child(2) {
                    grid-column: 1;
                }

                .dash-doc-table tbody td:nth-child(3) {
                    grid-column: 1;
                }

                .dash-doc-table tbody td:last-child {
                    grid-column: 2;
                    grid-row: 2 / span 2;
                    align-self: center;
                    justify-self: end;
                }

                .dash-doc-table tbody td[data-label]::before {
                    content: attr(data-label);
                    display: block;
                    margin-bottom: 4px;
                    color: #9aa5b5;
                    font-size: 8px;
                    font-weight: 800;
                    text-transform: uppercase;
                    letter-spacing: .08em;
                }

                .dash-doc-table tbody td:first-child::before {
                    display: none;
                }

    .dash-file {
        max-width: 100%;
        min-width: 0;
        gap: 9px;
    }

        .dash-file strong, .dash-file small {
            max-width: calc(100vw - 115px);
            font-size: 10px;
        }

    .dash-owner-name {
        max-width: 220px;
        font-size: 10px;
    }

    .dash-expiry {
        font-size: 11px;
    }

    .dash-days {
        font-size: 9px;
    }

    .dash-download {
        width: 39px;
        height: 39px;
        border-radius: 12px;
        font-size: 21px;
    }

    .dash-empty {
        padding: 27px 15px 30px;
    }

    .dash-footnote {
        font-size: 9px;
        line-height: 1.5;
    }
}

@media(max-width:370px) {
    .dash-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dash-date {
        align-self: flex-start;
    }

    .dash-action {
        width: 100%;
    }

    .dash-finance-strip {
        grid-template-columns: minmax(0,1fr);
    }

        .dash-finance-strip > div {
            padding: 13px 14px;
        }

        .dash-finance-strip strong {
            font-size: 19px;
        }

    .dash-section-head {
        flex-direction: column;
    }

    .dash-period, .dash-doc-total {
        align-self: flex-start;
    }
}



/* =========================================================
   Active navigation state - desktop, mobile drawer and bottom bar
   ========================================================= */
.app-sidebar .app-nav .nav-link.active {
    background: #1e293b;
    color: #fff !important;
    box-shadow: inset 3px 0 #60a5fa;
    font-weight: 700;
}

    .app-sidebar .app-nav .nav-link.active span {
        color: #93c5fd;
    }

.offcanvas .mobile-nav .nav-link {
    border-radius: 10px;
    margin: 2px 0;
    padding: 12px 14px;
    transition: background-color .15s ease, color .15s ease;
}

    .offcanvas .mobile-nav .nav-link.active {
        background: #eaf1ff;
        color: #1d4ed8 !important;
        box-shadow: inset 3px 0 #2563eb;
        font-weight: 700;
    }

.mobile-bottom-nav a {
    position: relative;
    transition: color .15s ease, background-color .15s ease;
}

    .mobile-bottom-nav a.active {
        color: #2563eb;
        font-weight: 700;
        background: linear-gradient(to bottom, rgba(37,99,235,.07), transparent 65%);
    }

        .mobile-bottom-nav a.active::before {
            content: "";
            position: absolute;
            top: 0;
            left: 28%;
            right: 28%;
            height: 3px;
            border-radius: 0 0 4px 4px;
            background: #2563eb;
        }

        .mobile-bottom-nav a.active span {
            transform: translateY(-1px);
        }

