:root{
    --bg:#f6f7f9;
    --card:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --line:#e5e7eb;
    --dark:#0f172a;
    --blue:#1f4f7a;
    --gold:#c99a2e;
    --green:#16a34a;
    --red:#dc2626;
    --orange:#f59e0b;
    --radius:24px;
    --shadow:0 20px 50px rgba(15,23,42,.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{
    background:var(--bg);
    color:var(--text);
}

button,input{
    font:inherit;
}

.loginPage{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at top left,#ffffff,transparent 35%),
        linear-gradient(135deg,#f8fafc,#eef2f7);
}

.loginCard{
    width:420px;
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.8);
    border-radius:32px;
    padding:42px;
    box-shadow:var(--shadow);
}

.loginLogo{
    width:72px;
    height:72px;
    border-radius:22px;
    background:var(--dark);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    margin-bottom:24px;
}

.loginCard h1{
    font-size:30px;
    margin-bottom:8px;
}

.loginCard p{
    color:var(--muted);
    margin-bottom:28px;
}

.loginCard label{
    display:block;
    font-weight:600;
    margin:18px 0 8px;
}

.loginCard input{
    width:100%;
    border:1px solid var(--line);
    border-radius:16px;
    padding:14px 16px;
    outline:none;
    background:#f9fafb;
}

.loginError{
    color:var(--red);
    min-height:22px;
    margin:14px 0;
}

.primaryButton,.darkButton,.softButton{
    border:none;
    border-radius:16px;
    padding:13px 20px;
    cursor:pointer;
    font-weight:700;
}

.primaryButton,.darkButton{
    background:var(--dark);
    color:white;
}

.softButton{
    background:#f3f4f6;
    color:var(--dark);
}

.loginCard .primaryButton{
    width:100%;
    margin-top:6px;
}

.appShell{
    height:100vh;
    display:grid;
    grid-template-columns:280px 1fr;
}

.sidebar{
    background:#0f172a;
    color:white;
    padding:28px;
}

.brand{
    display:flex;
    gap:14px;
    align-items:center;
    margin-bottom:36px;
}

.brandMark{
    width:58px;
    height:58px;
    border-radius:18px;
    background:white;
    color:#0f172a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}

.brand h2{
    font-size:21px;
}

.brand p{
    color:#94a3b8;
    font-size:13px;
}

.menu{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.menu button{
    border:none;
    background:transparent;
    color:#cbd5e1;
    padding:13px 14px;
    border-radius:16px;
    text-align:left;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:12px;
    transition:.2s;
}

.menu button:hover,
.menu button.active{
    background:white;
    color:#0f172a;
}

.mainArea{
    overflow:auto;
    padding:30px 40px 60px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:34px;
}

.topbar h1{
    font-size:34px;
    letter-spacing:-.03em;
}

.topbar p{
    color:var(--muted);
    margin-top:4px;
}

.topbarActions{
    display:flex;
    gap:12px;
}

.pageContent{
    animation:fadeIn .25s ease;
}

.heroPanel,.panel,.statCard{
    background:var(--card);
    border:1px solid rgba(229,231,235,.9);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.heroPanel{
    padding:34px;
    margin-bottom:24px;
}

.eyebrow{
    color:var(--gold);
    text-transform:uppercase;
    font-weight:800;
    letter-spacing:.12em;
    font-size:12px;
    margin-bottom:10px;
}

.heroPanel h2{
    font-size:42px;
    letter-spacing:-.04em;
}

.muted{
    color:var(--muted);
}

.dashboardGrid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
    margin-bottom:20px;
}

.statCard{
    padding:26px;
}

.statCard p{
    color:var(--muted);
    font-weight:700;
}

.statCard h2{
    font-size:38px;
    margin:12px 0;
}

.statCard span{
    color:var(--muted);
    font-size:14px;
}

.statCard.success{
    border-color:rgba(22,163,74,.25);
}

.statCard.success h2{
    color:var(--green);
}

.wideGrid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.panel{
    padding:28px;
}

.panel h2,.panel h3{
    margin-bottom:12px;
}

.verse{
    font-size:18px;
    line-height:1.6;
    margin:12px 0;
}

@keyframes fadeIn{
    from{opacity:0; transform:translateY(8px);}
    to{opacity:1; transform:translateY(0);}
}

@media(max-width:900px){
    .appShell{
        grid-template-columns:1fr;
    }

    .sidebar{
        display:none;
    }

    .mainArea{
        padding:22px;
    }

    .dashboardGrid,
    .wideGrid{
        grid-template-columns:1fr;
    }

    .topbar{
        align-items:flex-start;
        gap:18px;
        flex-direction:column;
    }
}

/* ==========================================================
   CRS V2 DESIGN SYSTEM
   ========================================================== */

.page{
    display:flex;
    flex-direction:column;
    gap:28px;
}

.pageHeader{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:10px;
}

.pageHeader h1{
    font-size:42px;
    letter-spacing:-.04em;
}

.subtext{
    color:var(--muted);
    margin-top:6px;
}

.primaryBtn{
    background:var(--dark);
    color:#fff;
    border:none;
    border-radius:18px;
    padding:14px 24px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
    box-shadow:var(--shadow);
}

.primaryBtn:hover{
    transform:translateY(-2px);
}

.backBtn{
    width:max-content;
    background:white;
    border:1px solid var(--line);
    border-radius:16px;
    padding:12px 18px;
    cursor:pointer;
    transition:.25s;
}

.backBtn:hover{
    background:#f8fafc;
}

/* ---------- PROPERTY CARDS ---------- */

.propertyGrid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
    gap:24px;
}

.propertyCard{
    background:white;
    border-radius:28px;
    overflow:hidden;
    cursor:pointer;
    box-shadow:var(--shadow);
    transition:.3s;
    border:1px solid rgba(0,0,0,.05);
}

.propertyCard:hover{
    transform:translateY(-6px);
}

.propertyImage{
    height:220px;
    background:#eef2f7;
    display:flex;
    align-items:center;
    justify-content:center;
}

.propertyImage img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.propertyImage span{
    font-size:64px;
    font-weight:800;
    color:#cbd5e1;
}

.propertyBody{
    padding:26px;
}

.propertyBody h2{
    font-size:28px;
    margin-bottom:6px;
}

.propertyBody p{
    color:var(--muted);
}

.propertyStats{
    margin-top:24px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.propertyStats div{
    background:#f8fafc;
    border-radius:18px;
    padding:16px;
}

.propertyStats strong{
    display:block;
    font-size:22px;
}

.propertyStats span{
    color:var(--muted);
    font-size:13px;
}

/* ---------- PROPERTY WORKSPACE ---------- */

.workspaceHero{
    display:flex;
    gap:30px;
    align-items:center;
    background:white;
    padding:30px;
    border-radius:28px;
    box-shadow:var(--shadow);
}

.workspaceImage{
    width:150px;
    height:150px;
    border-radius:24px;
    overflow:hidden;
    background:#eef2f7;
    display:flex;
    align-items:center;
    justify-content:center;
}

.workspaceImage img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.workspaceImage span{
    font-size:48px;
    font-weight:800;
}

.statsGrid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.workspacePanel{
    background:white;
    border-radius:28px;
    padding:30px;
    box-shadow:var(--shadow);
}

/* ---------- UNIT CARDS ---------- */

.unitGrid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:22px;
    margin-top:30px;
}

.unitCard{
    background:white;
    border-radius:24px;
    padding:24px;
    cursor:pointer;
    transition:.25s;
    border:1px solid rgba(0,0,0,.05);
    box-shadow:var(--shadow);
}

.unitCard:hover{
    transform:translateY(-4px);
}

.unitCardTop{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:24px;
}

.unitLabel{
    color:var(--muted);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.12em;
}

.unitCard h3{
    font-size:34px;
    margin-top:4px;
}

.unitStatus{
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
}

.unitStatus.vacant{
    background:#fef3c7;
    color:#92400e;
}

.unitStatus.occupied{
    background:#dcfce7;
    color:#166534;
}

.unitStatus.maintenance{
    background:#fee2e2;
    color:#991b1b;
}

.unitStatus.reserved{
    background:#dbeafe;
    color:#1d4ed8;
}

.unitTenant{
    margin-bottom:22px;
}

.unitTenant span{
    display:block;
    color:var(--muted);
    font-size:13px;
}

.unitTenant strong{
    font-size:18px;
}

.unitMeta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-bottom:24px;
}

.unitMeta div{
    background:#f8fafc;
    padding:14px;
    border-radius:16px;
}

.unitMeta span{
    display:block;
    color:var(--muted);
    font-size:12px;
}

.unitAction{
    color:var(--blue);
    font-weight:700;
}

/* ---------- FORMS ---------- */

.propertyForm,
.formGrid{
    display:grid;
    gap:18px;
}

.formGrid{
    grid-template-columns:repeat(2,1fr);
    margin-top:20px;
}

.propertyForm{
    background:white;
    border-radius:28px;
    padding:30px;
    margin-bottom:24px;
    box-shadow:var(--shadow);
}

.propertyForm label,
.workspacePanel label{
    font-weight:700;
}

.propertyForm input,
.workspacePanel input,
.workspacePanel textarea,
.workspacePanel select{
    width:100%;
    padding:14px 16px;
    border-radius:16px;
    border:1px solid var(--line);
    background:#f8fafc;
}

.workspacePanel textarea{
    resize:vertical;
    min-height:120px;
}

.sectionHeader{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

@media(max-width:900px){

    .pageHeader,
    .workspaceHero{
        flex-direction:column;
        align-items:flex-start;
    }

    .statsGrid{
        grid-template-columns:1fr;
    }

    .formGrid{
        grid-template-columns:1fr;
    }

    .propertyGrid,
    .unitGrid{
        grid-template-columns:1fr;
    }
}

.paymentBadge{
    width:100%;
    border:none;
    border-radius:16px;
    padding:14px;
    font-weight:800;
    cursor:pointer;
    transition:.2s;
    text-align:center;
}

.paymentBadge:hover{
    transform:translateY(-2px);
}

.paymentBadge.paid{
    background:#dcfce7;
    color:#166534;
}

.paymentBadge.partial{
    background:#ffedd5;
    color:#9a3412;
}

.paymentBadge.outstanding{
    background:#fee2e2;
    color:#991b1b;
}

.slideOverlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.35);
    backdrop-filter:blur(8px);
    display:none;
    justify-content:flex-end;
    z-index:50;
}

.slideOverlay.active{
    display:flex;
}

.slidePanel{
    width:min(720px,100%);
    height:100%;
    background:white;
    padding:34px;
    overflow:auto;
    box-shadow:-20px 0 60px rgba(15,23,42,.18);
    animation:slideIn .25s ease;
}

@keyframes slideIn{
    from{transform:translateX(40px); opacity:0;}
    to{transform:translateX(0); opacity:1;}
}

.paymentBadge small{
    display:block;
    margin-top:6px;
    font-size:12px;
}

.paymentSummary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin:26px 0;
}

.paymentSummary div{
    background:#f8fafc;
    border-radius:18px;
    padding:18px;
}

.paymentSummary span{
    display:block;
    color:var(--muted);
    font-size:13px;
    margin-bottom:6px;
}

.paymentSummary strong{
    font-size:20px;
}

.paymentPanel{
    display:flex;
    flex-direction:column;
    gap:28px;
}

.paymentPanelHeader{
    display:flex;
    justify-content:space-between;
    gap:24px;
    align-items:flex-start;
}

.paymentPanelHeader h2{
    font-size:36px;
    letter-spacing:-.04em;
}

.paymentCloseBtn{
    width:54px;
    height:54px;
    border-radius:18px;
    border:1px solid var(--line);
    background:#fff;
    font-size:32px;
    cursor:pointer;
    transition:.2s;
}

.paymentCloseBtn:hover{
    background:#f8fafc;
}

.paymentSummaryCard{
    background:#f8fafc;
    border-radius:22px;
    padding:22px;
    border:1px solid rgba(229,231,235,.8);
}

.paymentSummaryCard.highlight{
    background:#fff7ed;
    border-color:#fed7aa;
}

.paymentFormGrid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:28px;
}

.paymentField{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.moneyInput{
    display:grid;
    grid-template-columns:60px 1fr;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    background:#f8fafc;
}

.moneyInput span{
    display:flex;
    align-items:center;
    justify-content:center;
    border-right:1px solid var(--line);
    color:var(--muted);
    font-weight:800;
}

.moneyInput input{
    border:none;
    background:white;
    padding:16px;
    outline:none;
}

.paymentField textarea{
    width:100%;
    border:1px solid var(--line);
    border-radius:18px;
    padding:16px;
    background:#fff;
    resize:vertical;
    outline:none;
}

.paymentResultBox{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    background:#f8fafc;
    border-radius:24px;
    padding:22px;
    border:1px solid var(--line);
}

.paymentResultBox span{
    display:block;
    color:var(--muted);
    font-size:13px;
    margin-bottom:6px;
}

.paymentResultBox strong{
    font-size:24px;
}

.paymentResultBox .paid{
    color:var(--green);
}

.paymentResultBox .partial{
    color:var(--orange);
}

.paymentResultBox .outstanding{
    color:var(--red);
}

.paymentHelpBox{
    background:#eff6ff;
    border:1px solid #bfdbfe;
    border-radius:22px;
    padding:20px;
}

.paymentHelpBox strong{
    color:#1d4ed8;
}

.paymentHelpBox p{
    color:#475569;
    margin-top:8px;
    line-height:1.6;
}

.paymentPanelActions{
    display:flex;
    justify-content:flex-end;
    gap:14px;
    margin-top:auto;
    padding-top:20px;
}

@media(max-width:900px){
    .paymentFormGrid,
    .paymentResultBox{
        grid-template-columns:1fr;
    }
}

.paymentHistoryList{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-top:22px;
}

.paymentHistoryItem{
    background:#f8fafc;
    border:1px solid var(--line);
    border-radius:24px;
    padding:22px;
}

.paymentHistoryTop{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:18px;
}

.paymentHistoryTop span{
    display:block;
    color:var(--muted);
    margin-top:4px;
}

.paymentHistoryStatus{
    padding:8px 14px;
    border-radius:999px;
    font-weight:800;
    font-size:13px;
}

.paymentHistoryStatus.paid{
    background:#dcfce7;
    color:#166534;
}

.paymentHistoryStatus.partial{
    background:#ffedd5;
    color:#9a3412;
}

.paymentHistoryStatus.outstanding{
    background:#fee2e2;
    color:#991b1b;
}

.paymentHistoryGrid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.paymentHistoryGrid div{
    background:white;
    border-radius:16px;
    padding:14px;
}

.paymentHistoryGrid span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.paymentHistoryNote{
    margin-top:16px;
    padding:16px;
    border-radius:16px;
    background:white;
    color:#334155;
    line-height:1.5;
}

@media(max-width:900px){
    .paymentHistoryGrid{
        grid-template-columns:1fr;
    }
}

.unitRentBox{
    background:#f8fafc;
    border-radius:18px;
    padding:16px;
    margin:22px 0;
    cursor:pointer;
    transition:.2s;
    border:1px solid transparent;
}

.unitRentBox:hover{
    background:white;
    border-color:#bfdbfe;
    transform:translateY(-2px);
}

.unitRentBox span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.unitRentBox strong{
    display:block;
    font-size:20px;
}

.unitRentBox small{
    display:block;
    color:var(--blue);
    font-weight:700;
    margin-top:6px;
}

.tenantGrid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
    gap:22px;
    margin-top:26px;
}

.tenantCard{
    background:#f8fafc;
    border:1px solid var(--line);
    border-radius:24px;
    padding:24px;
    box-shadow:0 10px 30px rgba(15,23,42,.04);
}

.tenantCardTop{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:22px;
}

.tenantCardTop h3{
    font-size:24px;
    letter-spacing:-.03em;
}

.tenantMeta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.tenantMeta div{
    background:white;
    border-radius:16px;
    padding:14px;
}

.tenantMeta span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.tenantMeta strong{
    font-size:14px;
}

@media(max-width:900px){
    .tenantGrid,
    .tenantMeta{
        grid-template-columns:1fr;
    }
}

.tenantSection{
    padding:0;
    overflow:hidden;
}

.tenantSectionToggle{
    width:100%;
    border:none;
    background:white;
    padding:30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    text-align:left;
    cursor:pointer;
}

.tenantSectionToggle h2{
    margin-bottom:6px;
}

.tenantSectionToggle p{
    color:var(--muted);
}

.tenantSectionToggle span{
    background:#f8fafc;
    border:1px solid var(--line);
    padding:10px 16px;
    border-radius:999px;
    font-weight:800;
}

.tenantSectionBody{
    display:none;
    padding:0 30px 30px;
}

.tenantSectionBody.open{
    display:block;
}

.tenantSearchInput{
    width:100%;
    margin-top:10px;
    padding:16px 18px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#f8fafc;
    outline:none;
    font-size:16px;
}

.tenantSearchInput:focus{
    background:white;
    border-color:#bfdbfe;
}

.leaseDocument{
    background:#f8fafc;
    border:1px solid var(--line);
    border-radius:24px;
    padding:28px;
    line-height:1.7;
}

.leaseDocument h3{
    font-size:26px;
    margin-bottom:18px;
}

.leaseDocument p{
    margin-bottom:18px;
}

.signatureGrid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin:24px 0;
}

.signatureBox{
    background:#f8fafc;
    border:1px solid var(--line);
    border-radius:24px;
    padding:20px;
}

.signatureBox label{
    display:block;
    font-weight:800;
    margin-bottom:12px;
}

.signatureBox canvas{
    width:100%;
    height:180px;
    background:white;
    border:1px dashed #cbd5e1;
    border-radius:16px;
    margin-bottom:14px;
    touch-action:none;
}

@media(max-width:900px){
    .signatureGrid{
        grid-template-columns:1fr;
    }
}

.savedSignature{
    width:100%;
    max-height:180px;
    object-fit:contain;
    background:white;
    border:1px dashed #cbd5e1;
    border-radius:16px;
    padding:14px;
}

.leaseSignaturePreview{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-top:28px;
    padding-top:22px;
    border-top:1px solid var(--line);
}

.leaseSignaturePreview div{
    background:white;
    border-radius:18px;
    padding:18px;
    border:1px solid var(--line);
}

.leaseSignaturePreview strong{
    display:block;
    margin-bottom:10px;
}

.leaseSignaturePreview img{
    width:100%;
    max-height:140px;
    object-fit:contain;
    border:1px dashed #cbd5e1;
    border-radius:14px;
    background:#fff;
}

.leaseSignaturePreview span{
    color:var(--muted);
}

@media(max-width:900px){
    .leaseSignaturePreview{
        grid-template-columns:1fr;
    }
}

.documentImageGrid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:16px;
    margin-top:22px;
}

.documentImageGrid img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:18px;
    border:1px solid var(--line);
    background:#fff;
}

.unreadJobCard{
    border:2px solid #ef4444;
    box-shadow:0 16px 40px rgba(239,68,68,.14);
}
.notificationButton{
    width:100%;
    border:1px solid var(--line);
    background:#fff;
    border-radius:14px;
    padding:14px 16px;
    margin-top:10px;
    text-align:left;
    font-weight:700;
    cursor:pointer;
}

.notificationButton:hover{
    box-shadow:0 12px 30px rgba(15,23,42,.08);
    transform:translateY(-1px);
}

/* ===========================================================
   CRS PAYMENT CARD V2
   =========================================================== */

.tenantCard{
    background:#fff;
    border-radius:28px;
    padding:28px;
    border:1px solid #e5e7eb;
    box-shadow:0 15px 40px rgba(15,23,42,.05);
    transition:.25s;
}

.tenantCard:hover{
    transform:translateY(-3px);
}

.tenantMeta{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
    margin-top:18px;
}

.tenantMeta>div{
    background:#f8fafc;
    border-radius:18px;
    padding:18px;
}

.tenantMeta span{
    display:block;
    color:#64748b;
    font-size:12px;
    margin-bottom:8px;
    font-weight:600;
}

.tenantMeta strong{
    font-size:22px;
    font-weight:700;
}

.tenantPaymentDateNote,
.tenantPartialAmount,
.tenantBalanceWhen{
    width:100%;
    border:1px solid #dbe3ec;
    border-radius:16px;
    padding:14px;
    background:white;
    outline:none;
    transition:.2s;
}

.tenantPaymentDateNote:focus,
.tenantPartialAmount:focus,
.tenantBalanceWhen:focus{
    border-color:#1d4ed8;
}

.partialPaymentBox{
    margin-top:24px;
    padding:22px;
    border-radius:22px;
    background:#f8fafc;
}

.partialPaymentBox label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
}

.saveTenantPayment{
    margin-top:22px;
}

.tenantOutstanding{
    color:#dc2626;
    font-size:24px;
    font-weight:800;
}

.paymentHistoryNote{
    margin-top:18px;
    background:#ecfdf5;
    border:1px solid #86efac;
    border-radius:16px;
    padding:16px;
}

.tenantPaymentBtn{
    transition:.2s;
}

.tenantPaymentBtn.secondaryBtn{
    background:#fff;
    color:#111827;
    border:1px solid #d1d5db;
}

.tenantPaymentBtn.primaryBtn{
    background:#0f172a;
    color:white;
}

@media(max-width:900px){

    .tenantMeta{
        grid-template-columns:1fr;
    }

}

/* ===========================================================
   CRS TENANT PAGE V3
   =========================================================== */

.tenantPaymentLayout{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-top:22px;
}

.tenantInfoCard{
    background:#f8fafc;
    border-radius:18px;
    padding:18px;
}

.tenantInfoCard span{
    display:block;
    color:#64748b;
    font-size:12px;
    margin-bottom:8px;
    font-weight:600;
}

.tenantInfoCard strong{
    display:block;
    font-size:20px;
    font-weight:700;
}

.tenantPaymentPanel{
    margin-top:22px;
    display:grid;
    gap:18px;
}

.tenantPaymentPanel label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
}

.tenantStatusButtons{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.tenantStatusButtons button{
    width:100%;
}

.saveTenantPayment{
    width:100%;
    margin-top:24px;
}

.paymentResult{
    margin-top:18px;
}

@media (max-width:900px){

    .tenantPaymentLayout{
        grid-template-columns:1fr;
    }

    .tenantStatusButtons{
        grid-template-columns:1fr;
    }

}

/* ===========================
   Reports Centre
   =========================== */

.reportCard {
    min-height: 238px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reportCardHeading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.reportCardHeading > div:last-child {
    min-width: 0;
}

.reportCardHeading strong {
    display: block;
    margin-bottom: 6px;
}

.reportCardHeading span {
    display: block;
    line-height: 1.45;
}

.reportCardIcon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf2f8;
    color: #0b1731;
    font-size: 14px;
    font-weight: 800;
}

.reportCardPending {
    background: #f8fafc;
}

.reportCardPending .reportCardIcon {
    color: #7a8497;
    background: #eef1f5;
}

.reportPendingMessage {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    margin-top: auto;
    border-top: 1px solid #e3e8ef;
}

.reportPendingMessage > span {
    color: #778195;
    font-size: 13px;
}

.reportUnavailableButton,
.reportUnavailableButton:disabled {
    cursor: not-allowed;
    opacity: 1;
    color: #7b8494;
    background: #edf0f4;
    border-color: #e1e5eb;
    box-shadow: none;
}

.reportCard .paymentPanelActions {
    margin-top: auto;
    padding-top: 20px;
}

.reportCard .paymentPanelActions button {
    min-width: 128px;
}

@media (max-width: 760px) {
    .reportCard {
        min-height: auto;
    }

    .reportPendingMessage {
        align-items: stretch;
        flex-direction: column;
    }

    .reportUnavailableButton {
        width: 100%;
    }

    .reportCard .paymentPanelActions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reportCard .paymentPanelActions button {
        width: 100%;
    }
}

/* ===========================
   Property Performance Report
   =========================== */

.positiveAmount {
    color: #16835d;
}

.negativeAmount {
    color: #c44848;
}

.reportTableWrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 24px;
    border: 1px solid #e2e7ee;
    border-radius: 16px;
}

.reportTable {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.reportTable th,
.reportTable td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e6eaf0;
}

.reportTable th {
    color: #687386;
    background: #f7f9fb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.reportTable tbody tr:hover {
    background: #fafbfd;
}

.reportTable tfoot td {
    background: #f3f6f9;
    border-bottom: 0;
}

.reportTable .amountCell {
    text-align: right;
    white-space: nowrap;
}

/* ===========================
   Outstanding Rent Report
   =========================== */

.outstandingRentTable {
    min-width: 1500px;
}

.reportCompactTable {
    min-width: 760px;
}

.reportCompactTable th,
.reportCompactTable td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.reportTable td .paymentHistoryStatus {
    display: inline-flex;
    justify-content: center;
    min-width: 88px;
}

.reportTable td {
    line-height: 1.45;
}

.reportTable .negativeAmount {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .outstandingRentTable {
        min-width: 1400px;
    }

    .reportCompactTable {
        min-width: 700px;
    }
}

/* ===========================
   CRS Direct Report Printing
   =========================== */

#crsDirectPrintArea {
    display: none;
}

@media print {
    body.crsPrintingReport > * {
        display: none !important;
    }

    body.crsPrintingReport #crsDirectPrintArea {
        display: block !important;
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        color: #18202f !important;
        background: #ffffff !important;
        font-family:
            Arial,
            Helvetica,
            sans-serif !important;
    }

    body.crsPrintingReport {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    #crsDirectPrintArea * {
        box-sizing: border-box !important;
    }

    #crsDirectPrintArea h1,
    #crsDirectPrintArea h2,
    #crsDirectPrintArea h3,
    #crsDirectPrintArea p {
        margin-top: 0;
    }

    #crsDirectPrintArea h1 {
        font-size: 24px;
    }

    #crsDirectPrintArea h2 {
        font-size: 17px;
    }

    #crsDirectPrintArea h3 {
        font-size: 14px;
    }

    #crsDirectPrintArea .eyebrow {
        margin-bottom: 7px;
        color: #657086;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }

    #crsDirectPrintArea .reportDocumentHeader {
        display: flex !important;
        align-items: flex-start;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 18px;
        padding-bottom: 15px;
        border-bottom: 2px solid #18202f;
    }

    #crsDirectPrintArea .reportDocumentHeader p {
        color: #657086;
    }

    #crsDirectPrintArea .reportDocumentMark {
        display: grid !important;
        place-items: center;
        min-width: 62px;
        height: 62px;
        padding: 8px;
        border-radius: 12px;
        color: #ffffff !important;
        background: #18202f !important;
        font-size: 14px;
        font-weight: 800;
    }

    #crsDirectPrintArea .reportMetaGrid {
        display: grid !important;
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
        gap: 9px;
        margin-bottom: 18px;
    }

    #crsDirectPrintArea .reportMetaGrid > div {
        padding: 10px;
        border: 1px solid #dfe4ec;
        border-radius: 9px;
    }

    #crsDirectPrintArea .reportMetaGrid span {
        display: block;
        color: #657086;
        font-size: 9px;
    }

    #crsDirectPrintArea .reportMetaGrid strong {
        display: block;
        margin-top: 4px;
        font-size: 10px;
    }

    #crsDirectPrintArea .dashboardGrid {
        display: grid !important;
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
        gap: 9px;
        margin-bottom: 18px;
    }

    #crsDirectPrintArea .statCard {
        display: block !important;
        padding: 10px;
        border: 1px solid #dfe4ec;
        border-radius: 10px;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    #crsDirectPrintArea .statCard p,
    #crsDirectPrintArea .statCard span {
        display: block;
        color: #657086;
        font-size: 9px;
    }

    #crsDirectPrintArea .statCard h2 {
        margin: 5px 0;
        font-size: 15px;
    }

    #crsDirectPrintArea .reportSection,
    #crsDirectPrintArea .reportStatementSection {
        display: block !important;
        margin-top: 16px;
        padding: 13px;
        border: 1px solid #dfe4ec;
        border-radius: 10px;
        box-shadow: none !important;
    }

    #crsDirectPrintArea .sectionHeader {
        display: flex !important;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
    }

    #crsDirectPrintArea .reportProgressTrack {
        display: block !important;
        height: 7px;
        margin: 10px 0 14px;
        overflow: hidden;
        border-radius: 999px;
        background: #e6eaf0 !important;
    }

    #crsDirectPrintArea .reportProgressValue {
        display: block !important;
        height: 100%;
        background: #18202f !important;
    }

    #crsDirectPrintArea .reportSummaryRows > div,
    #crsDirectPrintArea .reportStatementRow,
    #crsDirectPrintArea .reportStatementTotal,
    #crsDirectPrintArea .reportStatementResult {
        display: flex !important;
        justify-content: space-between;
        gap: 18px;
        padding: 8px 0;
        border-bottom: 1px solid #e6eaf0;
    }

    #crsDirectPrintArea .reportStatementTotal {
        margin-top: 6px;
        border-top: 2px solid #18202f;
        border-bottom: 0;
    }

    #crsDirectPrintArea .reportStatementResult {
        margin-top: 14px;
        padding: 13px;
        border: 0;
        border-radius: 9px;
        background: #f1f4f8 !important;
        font-size: 15px;
    }

    #crsDirectPrintArea .paymentHistoryNote {
        padding: 12px;
        border-radius: 9px;
        background: #f5f7fa !important;
        line-height: 1.45;
    }

    #crsDirectPrintArea .reportTableWrap {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 13px;
        overflow: visible !important;
        border: 0 !important;
    }

    #crsDirectPrintArea .reportTable {
        display: table !important;
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: collapse;
        table-layout: auto;
        font-size: 7px;
    }

    #crsDirectPrintArea .reportTable thead {
        display: table-header-group !important;
    }

    #crsDirectPrintArea .reportTable tbody {
        display: table-row-group !important;
    }

    #crsDirectPrintArea .reportTable tfoot {
        display: table-footer-group !important;
    }

    #crsDirectPrintArea .reportTable tr {
        display: table-row !important;
        break-inside: avoid;
    }

    #crsDirectPrintArea .reportTable th,
    #crsDirectPrintArea .reportTable td {
        display: table-cell !important;
        padding: 5px 4px;
        text-align: left;
        vertical-align: top;
        overflow-wrap: anywhere;
        border: 1px solid #dfe4ec;
    }

    #crsDirectPrintArea .reportTable th {
        color: #3f4959;
        background: #f3f5f8 !important;
        font-size: 6px;
        font-weight: 800;
        text-transform: uppercase;
    }

    #crsDirectPrintArea .reportTable tfoot td {
        background: #f3f5f8 !important;
    }

    #crsDirectPrintArea .amountCell {
        text-align: right !important;
        white-space: nowrap;
    }

    #crsDirectPrintArea .tableSubtext {
        display: block;
        margin-top: 2px;
        color: #657086;
    }

    #crsDirectPrintArea .paymentHistoryStatus {
        display: inline-block !important;
        min-width: 0 !important;
        padding: 2px 4px;
        border-radius: 999px;
        background: #eef1f5 !important;
        font-size: 6px;
        font-weight: 700;
    }

    #crsDirectPrintArea .positiveAmount {
        color: #16835d !important;
    }

    #crsDirectPrintArea .negativeAmount {
        color: #b73333 !important;
    }

    @page {
        size: A4 landscape;
        margin: 9mm;
    }
}

/* ===========================
   Occupancy Report
   =========================== */

.occupancyPropertyTable {
    min-width: 1180px;
}

.occupancyUnitTable {
    min-width: 1250px;
}

.paymentHistoryStatus.neutral {
    color: #566176;
    background: #edf0f4;
}

@media (max-width: 760px) {
    .occupancyPropertyTable {
        min-width: 1100px;
    }

    .occupancyUnitTable {
        min-width: 1180px;
    }
}/* ===========================
   Municipal Bills Report
   =========================== */

.municipalPropertyTable {
    min-width: 1050px;
}

.municipalBillTable {
    min-width: 1100px;
}

@media (max-width: 760px) {
    .municipalPropertyTable {
        min-width: 980px;
    }

    .municipalBillTable {
        min-width: 1020px;
    }
}

/* ===========================
   SARS Expense Report
   =========================== */

.sarsCategoryTable {
    min-width: 900px;
}

.sarsPropertyTable {
    min-width: 800px;
}

.sarsExpenseTable {
    min-width: 1750px;
}

@media (max-width: 760px) {
    .sarsCategoryTable {
        min-width: 850px;
    }

    .sarsPropertyTable {
        min-width: 760px;
    }

    .sarsExpenseTable {
        min-width: 1650px;
    }
}

/* ===========================
   Document Register Report
   =========================== */

.documentModuleTable {
    min-width: 760px;
}

.documentCategoryTable {
    min-width: 680px;
}

.documentRegisterTable {
    min-width: 1800px;
}

@media (max-width: 760px) {
    .documentModuleTable {
        min-width: 720px;
    }

    .documentCategoryTable {
        min-width: 640px;
    }

    .documentRegisterTable {
        min-width: 1700px;
    }
}

/* =========================================
   CRS Main Application Layout
   ========================================= */

.appShell {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(209, 226, 247, 0.48),
            transparent 28%
        ),
        #f4f7fb;
}

.mainArea {
    flex: 1;
    min-width: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: transparent;
}

.pageViewport {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding:
        0
        clamp(20px, 2.5vw, 42px)
        18px;
}

.appFooter {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px 18px;
    color: #8490a3;
    font-size: 12px;
    font-weight: 600;
}

.appFooterDivider {
    color: #c1c8d3;
}

.sidebarBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: 0;
    border: 0;
    background: rgba(4, 13, 30, 0.58);
    backdrop-filter: blur(3px);
}

/* =========================================
   Responsive Layout
   ========================================= */

@media (max-width: 1100px) {
    .pageViewport {
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (max-width: 820px) {
    .appShell {
        display: block;
    }

    .mainArea {
        width: 100%;
    }

    .pageViewport {
        padding-right: 16px;
        padding-left: 16px;
    }

    .appFooter {
        flex-wrap: wrap;
        padding-bottom: 14px;
    }

    .sidebarBackdrop.isVisible {
        display: block;
    }
}

@media (max-width: 520px) {
    .pageViewport {
        padding-right: 12px;
        padding-left: 12px;
    }

    .appFooter {
        gap: 6px;
        font-size: 11px;
    }
}

/* =====================================================
   CRS Executive Sidebar V2
   ===================================================== */

.sidebar {
    width: 286px;
    min-width: 286px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    padding: 22px 16px 18px;
    overflow-y: auto;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(27, 67, 109, 0.35),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #071226 0%,
            #09162d 52%,
            #061225 100%
        );
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        14px 0 34px rgba(5, 17, 38, 0.09);
    z-index: 100;
}

/* =====================================================
   Sidebar Top
   ===================================================== */

.sidebarTop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sidebarBrand {
    flex: 1;
    min-width: 0;
}

.sidebarBrandLogo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 18px;
}

.sidebarBrandFallback {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 8px;
}

.sidebarFallbackMark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(219, 169, 47, 0.65);
    border-radius: 14px;
    color: #f0bd3b;
    background:
        linear-gradient(
            145deg,
            rgba(238, 185, 59, 0.12),
            rgba(255, 255, 255, 0.02)
        );
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.sidebarBrandFallback strong,
.sidebarBrandFallback span {
    display: block;
}

.sidebarBrandFallback strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sidebarBrandFallback span {
    margin-top: 3px;
    color: #e5b64a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.sidebarCloseButton {
    display: none;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    color: #d7deea;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.sidebarCloseButton:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.sidebarDivider {
    height: 1px;
    margin: 18px 4px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.13),
            transparent
        );
}

/* =====================================================
   Sidebar Navigation
   ===================================================== */

.sidebarNavigation {
    flex: 1;
    min-height: 0;
}

.sidebarMenuGroup + .sidebarMenuGroup {
    margin-top: 20px;
}

.sidebarMenuLabel {
    margin: 0 0 8px 13px;
    color: #6f7f99;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sidebarMenuItems {
    display: grid;
    gap: 5px;
}

.sidebarNavButton {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    padding: 10px 13px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #cad3e2;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.sidebarNavButton:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.sidebarNavButton.active {
    color: #f5c347;
    background:
        linear-gradient(
            90deg,
            rgba(27, 51, 89, 0.96),
            rgba(18, 37, 68, 0.94)
        );
    border-color: rgba(255, 255, 255, 0.055);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.015),
        0 10px 22px rgba(0, 0, 0, 0.12);
}

.sidebarNavIcon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    color: #91a0b7;
}

.sidebarNavButton:hover .sidebarNavIcon {
    color: #ffffff;
}

.sidebarNavButton.active .sidebarNavIcon {
    color: #f5c347;
}

.sidebarNavLabel {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebarActiveIndicator {
    width: 3px;
    height: 24px;
    position: absolute;
    left: 0;
    top: 50%;
    border-radius: 0 999px 999px 0;
    background:
        linear-gradient(
            180deg,
            #ffd76b,
            #d99d08
        );
    box-shadow:
        0 0 14px rgba(236, 181, 41, 0.65);
    transform: translateY(-50%);
}

/* =====================================================
   Sidebar User Area
   ===================================================== */

.sidebarBottom {
    margin-top: 24px;
}

.sidebarUserCard {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        );
}

.sidebarUserAvatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229, 174, 46, 0.75);
    border-radius: 50%;
    color: #f0bd3b;
    background: rgba(231, 176, 41, 0.08);
    font-size: 13px;
    font-weight: 800;
}

.sidebarUserDetails {
    flex: 1;
    min-width: 0;
}

.sidebarUserDetails strong,
.sidebarUserDetails span {
    display: block;
}

.sidebarUserDetails strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebarUserDetails span {
    margin-top: 3px;
    color: #8f9bb0;
    font-size: 11px;
}

.sidebarOnlineIndicator {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border: 2px solid #0a172d;
    border-radius: 50%;
    background: #35c784;
    box-shadow:
        0 0 10px rgba(53, 199, 132, 0.62);
}

.sidebarLogoutButton {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 9px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    color: #d1d9e6;
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.sidebarLogoutButton:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.12);
}

.sidebarLogoutButton .sidebarNavIcon {
    color: #8f9bb0;
}

.sidebarVersion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 0 5px;
    color: #596983;
    font-size: 10px;
}

.sidebarVersion strong {
    color: #8d9bb0;
    font-weight: 800;
}

/* =====================================================
   Override Old Sidebar Rules
   ===================================================== */

.sidebar .brand,
.sidebar .menu {
    display: none !important;
}

.sidebar button {
    font-family: inherit;
}

/* =====================================================
   Desktop Sidebar Scrollbar
   ===================================================== */

.sidebar {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.12)
        transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

/* =====================================================
   Responsive Sidebar
   ===================================================== */

@media (max-width: 1100px) {
    .sidebar {
        width: 252px;
        min-width: 252px;
    }

    .sidebarBrandLogo {
        width: 170px;
    }
}

@media (max-width: 820px) {
    .sidebar {
        width: min(286px, 88vw);
        min-width: min(286px, 88vw);
        height: 100vh;
        min-height: 100vh;
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 110;
        transform: translateX(-105%);
        transition:
            transform 220ms ease;
        box-shadow:
            20px 0 50px rgba(0, 0, 0, 0.3);
    }

    .sidebar.isOpen {
        transform: translateX(0);
    }

    .sidebarCloseButton {
        display: grid;
    }
}

@media (max-width: 520px) {
    .sidebar {
        padding:
            18px
            13px
            15px;
    }

    .sidebarBrandLogo {
        width: 160px;
    }

    .sidebarNavButton {
        min-height: 46px;
    }
}

/* ==========================================================
   Executive Topbar
   ========================================================== */

.executiveTopbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;

    margin:28px 28px 18px;
    padding:22px 30px;

    background:#ffffff;

    border:1px solid #edf1f7;
    border-radius:24px;

    box-shadow:
        0 12px 36px rgba(14,30,60,.06);
}

/* ========================= */

.topbarLeft{
    display:flex;
    align-items:center;
    gap:18px;
}

.topbarGreeting h1{

    margin:2px 0 0;

    font-size:38px;
    font-weight:800;
    color:#0d2341;

}

.topbarWelcome{

    margin:0;

    color:#8897ab;

    font-size:14px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.12em;

}

/* ========================= */

.topbarCenter{

    flex:1;

    display:flex;
    justify-content:center;

}

/* ========================= */

.searchBox{

    width:100%;
    max-width:620px;

    display:flex;
    align-items:center;
    gap:14px;

    padding:0 18px;

    height:58px;

    border-radius:18px;

    background:#f5f8fc;

    border:1px solid #e8eef7;

}

.searchBox svg{

    color:#8c98aa;

    flex:0 0 auto;

}

.searchBox input{

    flex:1;

    border:none;

    outline:none;

    background:transparent;

    font-size:15px;

    color:#233654;

}

.searchBox input::placeholder{

    color:#98a5b6;

}

/* ========================= */

.topbarRight{

    display:flex;
    align-items:center;
    gap:14px;

}

/* ========================= */

.dateCard{

    display:flex;
    flex-direction:column;

    padding:10px 18px;

    border-radius:16px;

    background:#f8fafc;

    border:1px solid #edf2f8;

}

.dateCard span{

    font-size:11px;

    color:#9aa7b8;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.12em;

}

.dateCard strong{

    margin-top:3px;

    color:#112746;

    font-size:14px;

    font-weight:700;

}

/* ========================= */

.iconButton{

    width:50px;
    height:50px;

    display:grid;
    place-items:center;

    border:none;

    border-radius:16px;

    background:#f7f9fc;

    cursor:pointer;

    font-size:18px;

    transition:.2s;

}

.iconButton:hover{

    background:#0f2242;

    color:#fff;

}

/* ========================= */

.logoutButton{

    height:50px;

    padding:0 22px;

    border:none;

    border-radius:16px;

    background:#0d2341;

    color:#fff;

    font-size:14px;
    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.logoutButton:hover{

    background:#d6a01d;

    color:#fff;

}

/* ==========================================================
   Responsive
   ========================================================== */

@media(max-width:1400px){

.executiveTopbar{

    flex-wrap:wrap;

}

.topbarCenter{

    order:3;

    width:100%;

}

.searchBox{

    max-width:none;

}

}

@media(max-width:900px){

.executiveTopbar{

    margin:18px;

    padding:18px;

}

.topbarGreeting h1{

    font-size:30px;

}

.topbarRight{

    flex-wrap:wrap;

}

.dateCard{

    display:none;

}

}

/* =====================================================
   Executive Dashboard V2
   Section 1: Main Structure and KPI Cards
   ===================================================== */

.executiveDashboard {
    width: 100%;
    display: grid;
    gap: 22px;
    padding:
        0
        2px
        20px;
}

/* =====================================================
   Dashboard Load Warning
   ===================================================== */

.dashboardLoadWarning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border: 1px solid #f2d49f;
    border-radius: 16px;
    color: #75500b;
    background: #fff8e9;
    box-shadow:
        0 8px 22px rgba(138, 94, 16, 0.06);
}

.dashboardLoadWarning strong,
.dashboardLoadWarning span {
    display: block;
}

.dashboardLoadWarning strong {
    font-size: 14px;
}

.dashboardLoadWarning span {
    color: #9c742f;
    font-size: 12px;
}

/* =====================================================
   KPI Grid
   ===================================================== */

.executiveKpiGrid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 16px;
}

/* =====================================================
   KPI Card
   ===================================================== */

.executiveKpiCard{

    position:relative;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    min-height:170px;

    padding:24px;

    border-radius:24px;

    background:#ffffff;

    border:1px solid #eef2f7;

    box-shadow:
        0 18px 45px rgba(24,44,74,.07);

    transition:
        .25s;

}

.executiveKpiCard:hover{

    transform:translateY(-5px);

    box-shadow:
        0 30px 60px rgba(16,38,66,.12);

}

.executiveKpiCard::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:4px;

    background:linear-gradient(
        90deg,
        #d4a325,
        #f1d37a
    );

}

/* =====================================================
   KPI Icon
   ===================================================== */

.executiveKpiValue{

    font-size:42px;

    font-weight:900;

    color:#0d2340;

    line-height:1;

    margin-top:18px;

}

/* =====================================================
   KPI Body
   ===================================================== */

.executiveKpiBody {
    min-width: 0;
    flex: 1;
}

.executiveKpiBody span,
.executiveKpiBody strong,
.executiveKpiBody small {
    display: block;
}

.executiveKpiBody span {
    margin-bottom: 7px;
    color: #65748a;
    font-size: 12px;
    font-weight: 700;
}

.executiveKpiBody strong {
    overflow: hidden;
    color: #0b1f3a;
    font-size:
        clamp(
            24px,
            2vw,
            32px
        );
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.executiveKpiBody small {
    margin-top: 10px;
    color: #8190a5;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

/* =====================================================
   Positive KPI
   ===================================================== */

.executiveKpiCard.positive {
    border-color: #dcefe5;
}

.executiveKpiCard.positive
.executiveKpiIcon {
    color: #168056;
    background: #e9f7ef;
}

.executiveKpiCard.positive
.executiveKpiBody small {
    color: #27946b;
}

/* =====================================================
   Warning KPI
   ===================================================== */

.executiveKpiCard.warning {
    border-color: #f2dfba;
}

.executiveKpiCard.warning
.executiveKpiIcon {
    color: #b37508;
    background: #fff4de;
}

.executiveKpiCard.warning
.executiveKpiBody small {
    color: #b27914;
}

/* =====================================================
   Shared Dashboard Panels
   ===================================================== */

.executivePanel {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e5eaf1;
    border-radius: 22px;
    background: #ffffff;
    box-shadow:
        0 14px 38px rgba(25, 48, 82, 0.07);
}

.executivePanelHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.executivePanelHeader.compact {
    align-items: center;
    margin-bottom: 14px;
}

.executivePanelHeader h2 {
    margin: 3px 0 4px;
    color: #0c223e;
    font-size: 20px;
    font-weight: 820;
    letter-spacing: -0.025em;
}

.executivePanelHeader span {
    color: #8190a5;
    font-size: 12px;
}

.executivePanelEyebrow {
    margin: 0;
    color: #d59c12;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboardPanelButton {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #e2e7ee;
    border-radius: 13px;
    color: #19324f;
    background: #f8fafc;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.dashboardPanelButton:hover {
    color: #ffffff;
    border-color: #102844;
    background: #102844;
}

.dashboardPanelButton span {
    color: inherit;
    font-size: 16px;
}

/* =====================================================
   Main Dashboard Grid
   ===================================================== */

.executiveMainGrid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(300px, 0.95fr)
        minmax(280px, 0.8fr);
    gap: 18px;
    align-items: stretch;
}

/* =====================================================
   Bottom Dashboard Grid
   ===================================================== */

.executiveBottomGrid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(290px, 0.78fr);
    gap: 18px;
    align-items: stretch;
}

/* =====================================================
   Empty State
   ===================================================== */

.dashboardEmptyState {
    min-height: 110px;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 1px dashed #dce2eb;
    border-radius: 16px;
    color: #8390a3;
    background: #fafbfd;
    font-size: 13px;
    text-align: center;
}

/* =====================================================
   Utility Text
   ===================================================== */

.dashboardDangerText {
    color: #c04444 !important;
}

/* =====================================================
   Responsive KPI Layout
   ===================================================== */

@media (max-width: 1500px) {
    .executiveKpiGrid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

    .executiveMainGrid {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(300px, 1fr);
    }

    .leaseExpiryPanel {
        grid-column:
            1 /
            -1;
    }

    .executiveBottomGrid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .dashboardVerseCard {
        grid-column:
            1 /
            -1;
    }
}

@media (max-width: 1180px) {
    .executiveKpiGrid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .executiveMainGrid {
        grid-template-columns:
            1fr;
    }

    .leaseExpiryPanel {
        grid-column: auto;
    }

    .executiveBottomGrid {
        grid-template-columns:
            1fr;
    }

    .dashboardVerseCard {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .executiveKpiGrid {
        grid-template-columns:
            1fr;
    }

    .executiveKpiCard {
        min-height: 130px;
    }

    .executivePanel {
        padding: 18px;
        border-radius: 18px;
    }

    .executivePanelHeader {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboardPanelButton {
        width: 100%;
    }

    .dashboardLoadWarning {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   Executive Dashboard V2
   Section 2: Portfolio Overview and Property Rows
   ===================================================== */

.portfolioOverviewPanel {
    overflow: hidden;
}

.propertyPerformanceList {
    display: grid;
    gap: 10px;
}

/* =====================================================
   Property Row
   ===================================================== */

.propertyPerformanceRow {
    width: 100%;
    display: grid;
    grid-template-columns:
        126px
        minmax(0, 1fr)
        minmax(220px, 0.78fr);
    align-items: center;
    gap: 18px;
    padding: 13px;
    border: 1px solid transparent;
    border-radius: 17px;
    color: #112641;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background 170ms ease,
        border-color 170ms ease,
        box-shadow 170ms ease,
        transform 170ms ease;
}

.propertyPerformanceRow + .propertyPerformanceRow {
    border-top-color: #edf1f5;
}

.propertyPerformanceRow:hover {
    border-color: #e5eaf1;
    background: #fafbfd;
    box-shadow:
        0 10px 28px rgba(27, 47, 75, 0.07);
    transform: translateY(-2px);
}

.propertyPerformanceRow:focus-visible {
    outline:
        3px solid
        rgba(225, 171, 39, 0.28);
    outline-offset: 2px;
}

/* =====================================================
   Property Image
   ===================================================== */

.propertyPerformanceImage {
    width: 126px;
    height: 74px;
    overflow: hidden;
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            #e9eef5,
            #f7f9fc
        );
    box-shadow:
        inset 0 0 0 1px
        rgba(13, 36, 65, 0.05);
}

.propertyPerformanceImage img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.propertyImageFallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #15345c;
    background:
        radial-gradient(
            circle at 25% 20%,
            rgba(227, 172, 35, 0.18),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #eef3f8,
            #dfe7f1
        );
    font-size: 20px;
    font-weight: 850;
    letter-spacing: 0.06em;
}

/* =====================================================
   Property Main Information
   ===================================================== */

.propertyPerformanceMain {
    min-width: 0;
}

.propertyPerformanceHeading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.propertyPerformanceHeading strong,
.propertyPerformanceHeading span,
.propertyPerformanceMain small {
    display: block;
}

.propertyPerformanceHeading strong {
    overflow: hidden;
    color: #0c223e;
    font-size: 15px;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.propertyPerformanceHeading span {
    flex: 0 0 auto;
    color: #65748a;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.propertyPerformanceMain small {
    margin-top: 7px;
    color: #7d8ba0;
    font-size: 10px;
    font-weight: 650;
}

/* =====================================================
   Occupancy Progress
   ===================================================== */

.propertyOccupancyTrack {
    width: 100%;
    height: 7px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf3;
}

.propertyOccupancyValue {
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #19a66d,
            #2bc17f
        );
    box-shadow:
        0 0 10px
        rgba(34, 179, 113, 0.28);
}

/* =====================================================
   Property Financial Figures
   ===================================================== */

.propertyPerformanceMoney {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 16px;
    align-items: center;
    padding-left: 16px;
    border-left: 1px solid #edf1f5;
}

.propertyPerformanceMoney div {
    min-width: 0;
}

.propertyPerformanceMoney span,
.propertyPerformanceMoney strong {
    display: block;
}

.propertyPerformanceMoney span {
    margin-bottom: 5px;
    color: #78879a;
    font-size: 10px;
    font-weight: 650;
}

.propertyPerformanceMoney strong {
    overflow: hidden;
    color: #102540;
    font-size: 14px;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================================================
   Subtle Portfolio Divider
   ===================================================== */

.propertyPerformanceRow:not(:last-child)::after {
    content: "";
    position: absolute;
}

.propertyPerformanceList {
    position: relative;
}

/* =====================================================
   Responsive Portfolio Layout
   ===================================================== */

@media (max-width: 1380px) {
    .propertyPerformanceRow {
        grid-template-columns:
            110px
            minmax(0, 1fr)
            minmax(190px, 0.72fr);
        gap: 14px;
    }

    .propertyPerformanceImage {
        width: 110px;
        height: 68px;
    }

    .propertyPerformanceMoney {
        gap: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 900px) {
    .propertyPerformanceRow {
        grid-template-columns:
            100px
            minmax(0, 1fr);
    }

    .propertyPerformanceImage {
        width: 100px;
        height: 66px;
    }

    .propertyPerformanceMoney {
        grid-column:
            1 /
            -1;
        padding:
            13px
            0
            0;
        border-top:
            1px solid
            #edf1f5;
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .propertyPerformanceRow {
        grid-template-columns:
            1fr;
        padding: 12px;
    }

    .propertyPerformanceImage {
        width: 100%;
        height: 145px;
    }

    .propertyPerformanceHeading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .propertyPerformanceMoney {
        grid-template-columns:
            1fr;
    }
}

/* =====================================================
   Executive Dashboard V2
   Section 3: Action Centre and Lease Expiries
   ===================================================== */

/* =====================================================
   Action Centre
   ===================================================== */

.actionCentrePanel {
    min-width: 0;
}

.actionCentreList {
    display: grid;
    gap: 10px;
}

.actionCentreItem {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns:
        48px
        minmax(0, 1fr)
        18px;
    align-items: center;
    gap: 13px;
    padding: 12px 13px;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    color: #10243f;
    background: #fafbfd;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 170ms ease,
        box-shadow 170ms ease,
        border-color 170ms ease,
        background 170ms ease;
}

.actionCentreItem:hover {
    border-color: #dce3ec;
    background: #ffffff;
    box-shadow:
        0 12px 28px rgba(23, 46, 77, 0.08);
    transform: translateY(-2px);
}

.actionCentreItem:focus-visible {
    outline:
        3px solid
        rgba(222, 167, 35, 0.25);
    outline-offset: 2px;
}

.actionCentreIcon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #244363;
    background: #edf2f8;
    font-size: 16px;
    font-weight: 850;
}

.actionCentreText {
    min-width: 0;
}

.actionCentreText strong,
.actionCentreText small {
    display: block;
}

.actionCentreText strong {
    overflow: hidden;
    color: #10243f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.actionCentreText small {
    margin-top: 4px;
    color: #7c8a9d;
    font-size: 11px;
    line-height: 1.4;
}

.actionCentreArrow {
    color: #8b98aa;
    font-size: 22px;
    font-weight: 500;
}

/* =====================================================
   Action Centre Tones
   ===================================================== */

.actionCentreItem.danger
.actionCentreIcon {
    color: #c14343;
    background: #ffeded;
}

.actionCentreItem.warning
.actionCentreIcon {
    color: #ae720c;
    background: #fff3dd;
}

.actionCentreItem.info
.actionCentreIcon {
    color: #246cc6;
    background: #e9f2ff;
}

.actionCentreItem.purple
.actionCentreIcon {
    color: #7957c8;
    background: #f0ebff;
}

.actionCentreItem.success
.actionCentreIcon {
    color: #16845a;
    background: #e9f7ef;
}

/* =====================================================
   Lease Expiry Panel
   ===================================================== */

.leaseExpiryPanel {
    min-width: 0;
}

.leaseExpiryList {
    display: grid;
    gap: 9px;
}

.leaseExpiryRow {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 13px;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    color: #10243f;
    background: #fafbfd;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 170ms ease,
        box-shadow 170ms ease,
        border-color 170ms ease,
        background 170ms ease;
}

.leaseExpiryRow:hover {
    border-color: #dce3ec;
    background: #ffffff;
    box-shadow:
        0 12px 28px rgba(23, 46, 77, 0.08);
    transform: translateY(-2px);
}

.leaseExpiryRow:focus-visible {
    outline:
        3px solid
        rgba(222, 167, 35, 0.25);
    outline-offset: 2px;
}

.leaseExpiryRow div {
    min-width: 0;
}

.leaseExpiryRow strong,
.leaseExpiryRow span,
.leaseExpiryRow time {
    display: block;
}

.leaseExpiryRow strong {
    overflow: hidden;
    color: #10243f;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaseExpiryRow span {
    margin-top: 4px;
    color: #7e8c9f;
    font-size: 11px;
}

.leaseExpiryRow time {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 10px;
    color: #173656;
    background: #edf3fa;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

/* =====================================================
   Panel Balance
   ===================================================== */

.actionCentrePanel,
.leaseExpiryPanel {
    display: flex;
    flex-direction: column;
}

.actionCentreList,
.leaseExpiryList {
    flex: 1;
}

/* =====================================================
   Responsive Action and Lease Panels
   ===================================================== */

@media (max-width: 1180px) {
    .actionCentreItem,
    .leaseExpiryRow {
        min-height: 70px;
    }
}

@media (max-width: 560px) {
    .actionCentreItem {
        grid-template-columns:
            44px
            minmax(0, 1fr);
    }

    .actionCentreArrow {
        display: none;
    }

    .actionCentreIcon {
        width: 44px;
        height: 44px;
    }

    .leaseExpiryRow {
        align-items: flex-start;
        flex-direction: column;
    }

    .leaseExpiryRow time {
        align-self: flex-start;
    }
}

/* =====================================================
   Executive Dashboard V2
   Section 4
   Charts
   ===================================================== */

.dashboardChartPanel{
    display:flex;
    flex-direction:column;
}

.dashboardChartPeriod{
    color:#8b96a8;
    font-size:11px;
    font-weight:700;
}

/* ==========================================
   Bar Chart
   ========================================== */

.dashboardBarChart{

    height:290px;

    display:flex;

    align-items:flex-end;

    justify-content:space-between;

    gap:18px;

    margin-top:18px;

}

.dashboardBarColumn{

    flex:1;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:10px;

}

.dashboardBarValue{

    width:100%;

    height:220px;

    display:flex;

    align-items:flex-end;

}

.dashboardBar{

    width:100%;

    border-radius:16px 16px 6px 6px;

    background:linear-gradient(
        180deg,
        #d9e7fb,
        #8ab6ff
    );

    transition:
        .25s;

}

.dashboardBar.current{

    background:linear-gradient(
        180deg,
        #f4cf71,
        #dca31a
    );

}

.dashboardBar:hover{

    transform:scaleY(1.03);

    filter:brightness(1.05);

}

.dashboardBarColumn span{

    font-size:11px;

    color:#7f8da0;

    font-weight:700;

}

/* ==========================================
   Line Chart
   ========================================== */

.dashboardLineChart{

    margin-top:14px;

}

.dashboardLineChart svg{

    width:100%;

    height:240px;

    overflow:visible;

}

.dashboardLineLabels{

    display:flex;

    justify-content:space-between;

    margin-top:8px;

}

.dashboardLineLabels span{

    color:#8390a3;

    font-size:11px;

    font-weight:700;

}

/* ==========================================
   Hover Animation
   ========================================== */

.dashboardLineChart circle{

    transition:.2s;

}

.dashboardLineChart circle:hover{

    r:2.7;

}

/* ==========================================
   Chart Card Animation
   ========================================== */

.dashboardChartPanel{

    transition:
        .25s;

}

.dashboardChartPanel:hover{

    transform:translateY(-2px);

    box-shadow:
        0 18px 45px
        rgba(20,39,66,.09);

}

/* ==========================================
   Responsive
   ========================================== */

@media(max-width:1100px){

.dashboardBarChart{

    gap:12px;

}

.dashboardBarValue{

    height:180px;

}

.dashboardLineChart svg{

    height:180px;

}

}

/* =====================================================
   Executive Dashboard V2
   Section 5
   Verse Card & Final Polish
   ===================================================== */

.dashboardVerseCard{

    position:relative;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    min-height:360px;

    padding:40px;

    border-radius:24px;

    color:#ffffff;

    text-align:center;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,215,120,.18),
            transparent 28%
        ),

        linear-gradient(
            145deg,
            #07182e,
            #0f2848 60%,
            #183b63
        );

    box-shadow:
        0 25px 60px
        rgba(12,34,63,.22);

}

/* ========================================= */

.dashboardVerseCard::before{

    content:"";

    position:absolute;

    width:420px;
    height:420px;

    top:-220px;
    right:-180px;

    border-radius:50%;

    background:
        rgba(255,255,255,.035);

}

.dashboardVerseCard::after{

    content:"";

    position:absolute;

    width:260px;
    height:260px;

    bottom:-120px;
    left:-120px;

    border-radius:50%;

    background:
        rgba(255,215,120,.08);

}

/* ========================================= */

.dashboardVerseLogo{

    width:165px;

    margin-bottom:18px;

    object-fit:contain;

    z-index:2;

}

/* ========================================= */

.dashboardVerseCross{

    width:64px;
    height:64px;

    display:grid;
    place-items:center;

    margin-bottom:20px;

    border-radius:50%;

    background:
        rgba(255,215,120,.12);

    color:#f0c24c;

    font-size:30px;

    box-shadow:
        0 0 30px
        rgba(241,194,76,.18);

    z-index:2;

}

/* ========================================= */

.dashboardVerseCard blockquote{

    max-width:420px;

    margin:0;

    font-size:24px;

    font-weight:700;

    line-height:1.65;

    letter-spacing:-.02em;

    z-index:2;

}

.dashboardVerseCard cite{

    margin-top:24px;

    color:#f0c24c;

    font-style:normal;

    font-size:14px;

    font-weight:700;

    letter-spacing:.08em;

    text-transform:uppercase;

    z-index:2;

}

/* =========================================
   Floating Effect
   ========================================= */

.dashboardVerseCard{

    transition:
        .3s;

}

.dashboardVerseCard:hover{

    transform:
        translateY(-4px);

    box-shadow:
        0 35px 70px
        rgba(12,34,63,.28);

}

/* =========================================
   Dashboard Animation
   ========================================= */

.executiveKpiCard,
.executivePanel,
.dashboardVerseCard{

    animation:
        dashboardFade .45s ease;

}

@keyframes dashboardFade{

from{

    opacity:0;

    transform:
        translateY(18px);

}

to{

    opacity:1;

    transform:
        translateY(0);

}

}

/* =========================================
   Dashboard Background
   ========================================= */

.pageContent{

    background:
        linear-gradient(
            180deg,
            #f5f7fb,
            #eef3f9
        );

}

/* =========================================
   Scrollbar
   ========================================= */

.pageContent::-webkit-scrollbar{

    width:8px;

}

.pageContent::-webkit-scrollbar-thumb{

    background:#ccd5e2;

    border-radius:999px;

}

/* =========================================
   Responsive
   ========================================= */

@media(max-width:900px){

.dashboardVerseCard{

    min-height:280px;

    padding:28px;

}

.dashboardVerseCard blockquote{

    font-size:20px;

}

.dashboardVerseLogo{

    width:120px;

}

}

/* =====================================================
   CRS Global Search
   ===================================================== */

.globalSearchWrapper {
    width: 100%;
    max-width: 620px;
    position: relative;
}

.globalSearchWrapper .searchBox {
    max-width: none;
}

.globalSearchClear {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #718096;
    background: #e9eef5;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.globalSearchClear:hover {
    color: #ffffff;
    background: #102844;
}

.globalSearchResults {
    width: 100%;
    max-height: 460px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 300;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e1e7ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 24px 65px rgba(13, 35, 66, 0.2);
}

.globalSearchResult {
    width: 100%;
    display: grid;
    grid-template-columns:
        78px
        minmax(0, 1fr)
        22px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 0;
    border-radius: 13px;
    color: #10243f;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.globalSearchResult:hover {
    background: #f4f7fb;
}

.globalSearchType {
    display: inline-flex;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 8px;
    color: #9a6a08;
    background: #fff3d8;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.globalSearchResultText {
    min-width: 0;
}

.globalSearchResultText strong,
.globalSearchResultText small {
    display: block;
}

.globalSearchResultText strong {
    overflow: hidden;
    color: #10243f;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.globalSearchResultText small {
    margin-top: 4px;
    overflow: hidden;
    color: #7c899c;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.globalSearchArrow {
    color: #8794a7;
    font-size: 16px;
}

.globalSearchMessage {
    padding: 20px;
    color: #7b899c;
    font-size: 12px;
    text-align: center;
}

.mobileMenuButton {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #e1e7ef;
    border-radius: 13px;
    color: #102844;
    background: #f7f9fc;
    font-size: 19px;
    cursor: pointer;
}

@media (max-width: 820px) {
    .mobileMenuButton {
        display: grid;
    }

    .globalSearchResults {
        position: fixed;
        top: 92px;
        right: 14px;
        left: 14px;
        width: auto;
        max-height: calc(100vh - 112px);
    }
}

/* =====================================================
   Coetzer Rentals Logo
   ===================================================== */

.sidebarLogo{

    width:150px;

    display:block;

    margin:22px auto 26px;

    object-fit:contain;

}

/* =====================================================
   Sidebar Brand
   ===================================================== */

.sidebarBrand{

    display:flex;

    justify-content:center;

    align-items:center;

    padding:18px 0 26px;

}

.sidebarBrandLogo{

    width:165px;

    display:block;

    object-fit:contain;

    filter:
        drop-shadow(
            0 10px 24px rgba(0,0,0,.22)
        );

    transition:.25s;

}

.sidebarBrandLogo:hover{

    transform:scale(1.03);

}

/* =====================================================
   Sidebar Final Polish
   ===================================================== */

.sidebar {
    width: 280px;
    min-width: 280px;
    padding:
        24px
        16px
        18px;
}

.sidebarBrand {
    padding:
        0
        0
        26px;
}

.sidebarBrandLogo {
    width: 165px;
    max-width: 100%;
    border-radius: 20px;
}

.sidebarDivider {
    margin:
        8px
        4px
        24px;
}

.sidebarMenuGroup + .sidebarMenuGroup {
    margin-top: 22px;
}

.sidebarMenuLabel {
    margin:
        0
        0
        9px
        13px;
    color: #7f96bb;
}

.sidebarMenuItems {
    gap: 6px;
}

.sidebarNavButton {
    min-height: 49px;
    padding:
        11px
        14px;
    border-radius: 15px;
}

.sidebarNavButton.active {
    background:
        linear-gradient(
            90deg,
            rgba(28, 56, 98, 0.98),
            rgba(20, 44, 80, 0.96)
        );
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.sidebarNavButton.active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(245, 194, 71, 0.055),
            transparent 45%
        );
}

.sidebarNavIcon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
}

.sidebarNavIcon svg {
    width: 21px;
    height: 21px;
}

.sidebarNavLabel {
    font-size: 14px;
    font-weight: 720;
}

.sidebarActiveIndicator {
    width: 4px;
    height: 29px;
}

.sidebarBottom {
    margin-top: 30px;
}

.sidebarUserCard {
    padding: 13px;
}

.sidebarLogoutButton {
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .sidebar {
        width: 250px;
        min-width: 250px;
    }

    .sidebarBrandLogo {
        width: 150px;
    }
}

/* =====================================================
   Dashboard Width and Spacing Correction
   ===================================================== */

.pageViewport {
    padding:
        0
        28px
        20px;
}

.executiveDashboard {
    max-width: 1680px;
    margin: 0 auto;
}

.executiveTopbar {
    max-width: 1680px;
    width: calc(100% - 56px);
    margin:
        28px
        auto
        18px;
}

.executiveKpiGrid {
    grid-template-columns:
        repeat(
            4,
            minmax(180px, 1fr)
        );
}

.executiveKpiCard {
    min-height: 148px;
}

@media (min-width: 1550px) {
    .executiveKpiGrid {
        grid-template-columns:
            repeat(
                8,
                minmax(0, 1fr)
            );
    }

    .executiveKpiCard {
        min-height: 156px;
        padding: 17px;
    }

    .executiveKpiBody strong {
        font-size: 25px;
    }
}

@media (max-width: 820px) {
    .executiveTopbar {
        width: calc(100% - 28px);
        margin:
            14px
            auto;
    }

    .pageViewport {
        padding:
            0
            14px
            16px;
    }
}

/* =====================================================
   KPI Titles
   ===================================================== */

.executiveKpiBody span {
    color: #738299;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.executiveKpiBody strong {

    display: block;

    margin: 16px 0 10px;

    color: #0d2340;

    font-size: 40px;

    font-weight: 900;

    line-height: 1;

    letter-spacing: -.03em;

}

.executiveKpiBody small {

    display: block;

    margin-top: auto;

    color: #8a97aa;

    font-size: 13px;

    line-height: 1.5;

}

.executiveKpiIcon {

    width: 58px;

    height: 58px;

    display: grid;

    place-items: center;

    border-radius: 18px;

    background: #f4f7fb;

    color: #204067;

    margin-bottom: 18px;

    box-shadow:
        inset 0 0 0 1px #edf2f7;

}

.executiveKpiIcon svg {

    width: 24px;

    height: 24px;

}

.executiveKpiGrid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(240px, 1fr));

    gap: 24px;

    margin-top: 28px;

}

.executivePanel {

    background: #ffffff;

    border: 1px solid #edf2f7;

    border-radius: 28px;

    padding: 30px;

    box-shadow:
        0 18px 40px rgba(16, 38, 66, .07);

}

.executivePanel h2 {

    margin: 0;

    color: #102844;

    font-size: 28px;

    font-weight: 850;

}.executivePanel p {

    color: #7d8da3;

    line-height: 1.7;

}

.executivePanel,
.executiveKpiCard {

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.executivePanel:hover,
.executiveKpiCard:hover {

    transform: translateY(-4px);

    box-shadow:
        0 28px 55px rgba(18, 39, 67, .12);

}

/* ==========================================================
   CRS LEASE WORKSPACE V2
   ========================================================== */

/* ---------- Workspace header ---------- */

.page[data-lease-id] {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

.page[data-lease-id] .workspaceHero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(222, 229, 238, 0.92);
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(210, 225, 244, 0.7),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}

.page[data-lease-id] .workspaceHero::after {
    content: "";
    position: absolute;
    top: -85px;
    right: -85px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(201, 154, 46, 0.07);
    pointer-events: none;
}

.page[data-lease-id] .workspaceHeroContent {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.page[data-lease-id] .workspaceHeroContent h1 {
    margin: 0;
    color: #102844;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.page[data-lease-id] .workspaceHeroContent .subtext {
    margin-top: 10px;
    color: #738198;
    font-size: 15px;
    line-height: 1.6;
}

.page[data-lease-id] .workspaceHeroContent > .statusBadge {
    margin-top: 18px;
}

.page[data-lease-id] .workspaceImage {
    position: relative;
    z-index: 1;
    flex: 0 0 138px;
    width: 138px;
    height: 138px;
    border: 1px solid rgba(205, 216, 230, 0.9);
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eaf1f9
        );
    box-shadow:
        0 18px 38px rgba(18, 42, 70, 0.12);
}

.page[data-lease-id] .workspaceImage span {
    font-size: 52px;
    filter: grayscale(0.15);
}

/* ---------- Statistics ---------- */

.page[data-lease-id] .statsGrid {
    gap: 18px;
}

.page[data-lease-id] .statCard {
    min-width: 0;
    padding: 23px;
    border: 1px solid #e9eef5;
    box-shadow:
        0 14px 32px rgba(18, 39, 67, 0.06);
}

.page[data-lease-id] .statCard span {
    display: block;
    margin-bottom: 10px;
    color: #7b889b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page[data-lease-id] .statCard strong {
    display: block;
    overflow-wrap: anywhere;
    color: #102844;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

/* ---------- Main panels ---------- */

.page[data-lease-id] .workspacePanel {
    padding: clamp(25px, 3vw, 34px);
    border: 1px solid #e9eef5;
    box-shadow:
        0 18px 42px rgba(18, 39, 67, 0.07);
}

.page[data-lease-id] .panelHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page[data-lease-id] .panelHeader h2 {
    margin: 0;
    color: #102844;
    font-size: clamp(25px, 3vw, 31px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.page[data-lease-id] .panelHeader .eyebrow {
    margin-bottom: 8px;
}

.page[data-lease-id] .workspacePanel > .muted {
    max-width: 820px;
    margin: -8px 0 24px;
    line-height: 1.65;
}

/* ---------- Status badges ---------- */

.page[data-lease-id] .statusBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #566176;
    background: #edf1f5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.page[data-lease-id] .statusBadge::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

.page[data-lease-id] .statusBadge.statusPaid {
    color: #147348;
    border-color: #b9e8d0;
    background: #eaf9f1;
}

.page[data-lease-id] .statusBadge.statusPartial {
    color: #9a6413;
    border-color: #f2d89c;
    background: #fff8e7;
}

.page[data-lease-id] .statusBadge.statusOutstanding {
    color: #b33b3b;
    border-color: #f1c2c2;
    background: #fff0f0;
}

/* ---------- Lease details ---------- */

.page[data-lease-id] .tenantMeta {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 0;
}

.page[data-lease-id] .tenantMeta > div {
    min-width: 0;
    padding: 18px;
    border: 1px solid #edf1f5;
    border-radius: 18px;
    background: #f8fafc;
}

.page[data-lease-id] .tenantMeta span {
    display: block;
    margin-bottom: 7px;
    color: #7a8799;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page[data-lease-id] .tenantMeta strong {
    display: block;
    overflow-wrap: anywhere;
    color: #162a43;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
}

/* ---------- Agreement preview ---------- */

.page[data-lease-id] .leaseDocument {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfcfe
        );
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.page[data-lease-id] .leaseDocument::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background:
        linear-gradient(
            180deg,
            #c99a2e,
            #e4c36b
        );
}

.page[data-lease-id] .leaseDocument h3 {
    color: #102844;
    font-size: 28px;
    letter-spacing: -0.025em;
}

.page[data-lease-id] .leaseDocument p {
    color: #475569;
    line-height: 1.8;
}

.page[data-lease-id] .leaseDocument p:last-child {
    margin-bottom: 0;
}

.page[data-lease-id] .leaseDocument strong {
    color: #172b46;
}

/* ---------- Signatures ---------- */

.page[data-lease-id] .signatureGrid {
    align-items: stretch;
}

.page[data-lease-id] .signatureBox {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #dfe6ef;
    background: #f7f9fc;
}

.page[data-lease-id] .signatureBox label {
    color: #142943;
    font-size: 15px;
}

.page[data-lease-id] .signatureBox canvas,
.page[data-lease-id] .savedSignature {
    height: 180px;
    min-height: 180px;
    object-fit: contain;
    border-color: #cbd7e5;
    background: #ffffff;
}

.page[data-lease-id] .savedSignatureWrap {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.page[data-lease-id] .signatureCaptured {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: 12px;
    color: #147348;
    font-size: 13px;
    font-weight: 750;
}

.page[data-lease-id] .signatureCaptured::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 7px;
    border-radius: 50%;
    color: #ffffff;
    background: #16835d;
    font-size: 12px;
    font-weight: 900;
}

.page[data-lease-id] .signatureMissing {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 22px;
    border: 1px dashed #d3dae5;
    border-radius: 16px;
    color: #8b96a6;
    background: #ffffff;
    text-align: center;
}

/* ---------- Completion and email summary ---------- */

.page[data-lease-id] .completionSummary {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 4px;
}

.page[data-lease-id] .completionItem {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e6ecf3;
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            #f9fbfd,
            #f4f7fb
        );
}

.page[data-lease-id] .completionItem span {
    display: block;
    margin-bottom: 8px;
    color: #7c899c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.page[data-lease-id] .completionItem strong {
    display: block;
    overflow-wrap: anywhere;
    color: #142943;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.page[data-lease-id] .workspaceActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

/* ---------- CRS workspace buttons ---------- */

.page[data-lease-id] .primaryBtn,
.page[data-lease-id] .secondaryBtn,
.page[data-lease-id] .softButton {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.page[data-lease-id] .primaryBtn {
    border: 1px solid #102844;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #102844,
            #183b63
        );
    box-shadow:
        0 12px 24px rgba(16, 40, 68, 0.18);
}

.page[data-lease-id] .secondaryBtn {
    border: 1px solid #d5deea;
    color: #17314f;
    background: #ffffff;
    box-shadow:
        0 8px 20px rgba(18, 39, 67, 0.06);
}

.page[data-lease-id] .softButton {
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid #dde4ed;
    color: #42536a;
    background: #ffffff;
    box-shadow: none;
}

.page[data-lease-id] .primaryBtn:hover,
.page[data-lease-id] .secondaryBtn:hover,
.page[data-lease-id] .softButton:hover {
    transform: translateY(-2px);
}

.page[data-lease-id] .primaryBtn:hover {
    box-shadow:
        0 16px 30px rgba(16, 40, 68, 0.24);
}

.page[data-lease-id] .secondaryBtn:hover,
.page[data-lease-id] .softButton:hover {
    border-color: #bfcbd9;
    background: #f8fafc;
}

.page[data-lease-id] .primaryBtn:disabled,
.page[data-lease-id] .secondaryBtn:disabled,
.page[data-lease-id] .softButton:disabled {
    transform: none;
    cursor: wait;
    opacity: 0.65;
    box-shadow: none;
}

/* ---------- Email audit timeline ---------- */

.page[data-lease-id] .emailHistoryList {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page[data-lease-id] .emailHistoryItem {
    position: relative;
    margin-left: 18px;
    padding: 0 0 26px 34px;
    border-left: 2px solid #e3e9f1;
}

.page[data-lease-id] .emailHistoryItem:last-child {
    padding-bottom: 0;
}

.page[data-lease-id] .emailHistoryItem::before {
    content: "";
    position: absolute;
    top: 3px;
    left: -8px;
    width: 14px;
    height: 14px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #1f4f7a;
    box-shadow:
        0 0 0 1px #ccd8e6;
}

.page[data-lease-id] .emailHistoryMain {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid #e6ecf3;
    border-radius: 19px 19px 0 0;
    background: #f8fafc;
}

.page[data-lease-id] .emailHistoryMain strong {
    display: block;
    color: #142943;
    font-size: 16px;
    line-height: 1.35;
}

.page[data-lease-id] .emailHistoryMain .muted {
    margin-top: 5px;
    color: #7b889b;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.page[data-lease-id] .emailHistoryMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
    padding: 13px 20px;
    border: 1px solid #e6ecf3;
    border-top: 0;
    border-radius: 0 0 19px 19px;
    color: #718096;
    background: #ffffff;
    font-size: 12px;
    line-height: 1.5;
}

.page[data-lease-id] .emptyState,
.page[data-lease-id] .errorState {
    padding: 24px;
    border: 1px dashed #d8e0ea;
    border-radius: 19px;
    color: #718096;
    background: #f8fafc;
    text-align: center;
}

.page[data-lease-id] .emptyState strong {
    display: block;
    margin-bottom: 7px;
    color: #243a55;
    font-size: 16px;
}

.page[data-lease-id] .emptyState p {
    margin: 0;
    line-height: 1.6;
}

.page[data-lease-id] .errorState {
    color: #a33a3a;
    border-color: #efc8c8;
    background: #fff4f4;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
    .page[data-lease-id] .tenantMeta {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .page[data-lease-id] .completionSummary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page[data-lease-id] {
        gap: 20px;
    }

    .page[data-lease-id] .workspaceHero {
        gap: 20px;
        padding: 24px;
    }

    .page[data-lease-id] .workspaceImage {
        flex-basis: 96px;
        width: 96px;
        height: 96px;
    }

    .page[data-lease-id] .workspaceImage span {
        font-size: 38px;
    }

    .page[data-lease-id] .panelHeader {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .page[data-lease-id] .tenantMeta,
    .page[data-lease-id] .completionSummary {
        grid-template-columns: 1fr;
    }

    .page[data-lease-id] .signatureGrid {
        gap: 16px;
    }

    .page[data-lease-id] .workspaceActions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page[data-lease-id] .workspaceActions .primaryBtn,
    .page[data-lease-id] .workspaceActions .secondaryBtn,
    .page[data-lease-id] .workspacePanel > .primaryBtn,
    .page[data-lease-id] .workspacePanel > .secondaryBtn {
        width: 100%;
    }

    .page[data-lease-id] .emailHistoryItem {
        margin-left: 10px;
        padding-left: 24px;
    }

    .page[data-lease-id] .emailHistoryMain {
        flex-direction: column;
    }

    .page[data-lease-id] .emailHistoryMeta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page[data-lease-id] .workspaceHero {
        padding: 21px;
    }

    .page[data-lease-id] .workspacePanel {
        padding: 22px 18px;
        border-radius: 23px;
    }

    .page[data-lease-id] .statCard {
        padding: 20px;
    }

    .page[data-lease-id] .signatureBox {
        padding: 16px;
    }

    .page[data-lease-id] .signatureBox canvas,
    .page[data-lease-id] .savedSignature,
    .page[data-lease-id] .signatureMissing {
        height: 155px;
        min-height: 155px;
    }

    .page[data-lease-id] .emailHistoryItem {
        margin-left: 5px;
    }
}

/* ==========================================================
   CRS DOCUMENT WORKSPACE V2
   ========================================================== */

.documentWorkspacePage {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

/* ---------- Hero ---------- */

.documentWorkspacePage .workspaceHero {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5ebf3;
    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(213, 228, 246, 0.7),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );
}

.documentWorkspacePage .workspaceHero > div:last-child {
    min-width: 0;
}

.documentWorkspacePage .workspaceHero h1 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #102844;
    font-size: clamp(31px, 4vw, 46px);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.documentWorkspacePage .workspaceHero .subtext {
    margin-top: 10px;
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.documentWorkspacePage .workspaceHero .statusBadge {
    margin-top: 16px;
}

.documentWorkspacePage .workspaceImage {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border: 1px solid #dce5ef;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eaf1f8
        );
    box-shadow:
        0 18px 38px rgba(18, 42, 70, 0.11);
}

.documentWorkspacePage .workspaceImage span {
    font-size: 52px;
}

/* ---------- Summary cards ---------- */

.documentWorkspacePage .statsGrid {
    gap: 18px;
}

.documentWorkspacePage .statCard {
    min-width: 0;
    padding: 23px;
    border: 1px solid #e7edf4;
    box-shadow:
        0 14px 32px rgba(18, 39, 67, 0.06);
}

.documentWorkspacePage .statCard span {
    display: block;
    margin-bottom: 9px;
    color: #748298;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.documentWorkspacePage .statCard strong {
    display: block;
    overflow-wrap: anywhere;
    color: #102844;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

/* ---------- Panels ---------- */

.documentWorkspacePage .workspacePanel {
    padding: clamp(25px, 3vw, 34px);
    border: 1px solid #e7edf4;
    box-shadow:
        0 18px 42px rgba(18, 39, 67, 0.07);
}

.documentWorkspacePage .sectionHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.documentWorkspacePage .sectionHeader > div:first-child {
    min-width: 0;
}

.documentWorkspacePage .sectionHeader h2 {
    margin: 0;
    color: #102844;
    font-size: clamp(25px, 3vw, 31px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.documentWorkspacePage .sectionHeader .muted {
    margin-top: 7px;
    line-height: 1.6;
}

/* ---------- Buttons ---------- */

.documentWorkspacePage .workspaceActions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    margin-top: 0;
}

.documentWorkspacePage .primaryBtn,
.documentWorkspacePage .secondaryBtn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.documentWorkspacePage .primaryBtn {
    border: 1px solid #102844;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #102844,
            #183b63
        );
    box-shadow:
        0 12px 25px rgba(16, 40, 68, 0.18);
}

.documentWorkspacePage .secondaryBtn {
    border: 1px solid #d2dce8;
    color: #17314f;
    background: #ffffff;
    box-shadow:
        0 8px 20px rgba(18, 39, 67, 0.06);
}

.documentWorkspacePage .primaryBtn:hover,
.documentWorkspacePage .secondaryBtn:hover {
    transform: translateY(-2px);
}

.documentWorkspacePage .primaryBtn:hover {
    box-shadow:
        0 16px 30px rgba(16, 40, 68, 0.24);
}

.documentWorkspacePage .secondaryBtn:hover {
    border-color: #b9c7d7;
    background: #f8fafc;
}

/* ---------- Status badge ---------- */

.documentWorkspacePage .statusBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #566176;
    background: #edf1f5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.documentWorkspacePage .statusBadge::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
}

.documentWorkspacePage .statusBadge.statusPaid {
    color: #147348;
    border-color: #b9e8d0;
    background: #eaf9f1;
}

.documentWorkspacePage .statusBadge.statusPartial {
    color: #9a6413;
    border-color: #f1d897;
    background: #fff8e7;
}

/* ---------- PDF and image preview ---------- */

.documentWorkspacePage .documentPreviewFrame {
    display: block;
    width: 100%;
    height: min(76vh, 920px);
    min-height: 650px;
    border: 1px solid #dce4ee;
    border-radius: 20px;
    background: #f4f6f9;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.documentWorkspacePage .documentPreviewImage {
    display: block;
    width: 100%;
    max-height: 900px;
    object-fit: contain;
    border: 1px solid #dce4ee;
    border-radius: 20px;
    background: #f4f6f9;
}

.documentWorkspacePage .documentPreviewPlaceholder {
    display: grid;
    min-height: 420px;
    place-items: center;
    align-content: center;
    padding: 40px;
    border: 1px dashed #cfd9e5;
    border-radius: 20px;
    color: #718096;
    background: #f8fafc;
    text-align: center;
}

.documentWorkspacePage .documentPreviewPlaceholder h2 {
    margin: 14px 0 8px;
    color: #17314f;
}

.documentWorkspacePage .documentPreviewPlaceholder p {
    margin: 3px 0;
}

.documentWorkspacePage .documentPreviewIcon {
    font-size: 56px;
}

/* ---------- Metadata grids ---------- */

.documentWorkspacePage .tenantMeta {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 0;
}

.documentWorkspacePage .tenantMeta > div {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e8edf4;
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            #f9fbfd,
            #f5f8fb
        );
}

.documentWorkspacePage .tenantMeta span {
    display: block;
    margin-bottom: 8px;
    color: #738198;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.documentWorkspacePage .tenantMeta strong {
    display: block;
    overflow-wrap: anywhere;
    color: #142943;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

/* ---------- Storage cards ---------- */

.documentWorkspacePage .completionSummary {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.documentWorkspacePage .completionItem {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e6ecf3;
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            #f9fbfd,
            #f4f7fb
        );
}

.documentWorkspacePage .completionItem span {
    display: block;
    margin-bottom: 8px;
    color: #7c899c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.documentWorkspacePage .completionItem strong {
    display: block;
    overflow-wrap: anywhere;
    color: #142943;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

/* ---------- Storage path and notes ---------- */

.documentWorkspacePage .documentStoragePath,
.documentWorkspacePage .paymentHistoryNote {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.65;
}

.documentWorkspacePage .documentStoragePath {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #dce6f1;
    background: #f4f8fc;
}

.documentWorkspacePage .documentStoragePath strong {
    color: #17314f;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .documentWorkspacePage .sectionHeader {
        flex-direction: column;
    }

    .documentWorkspacePage .workspaceActions {
        justify-content: flex-start;
    }

    .documentWorkspacePage .completionSummary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .documentWorkspacePage {
        gap: 20px;
    }

    .documentWorkspacePage .workspaceHero {
        gap: 20px;
        padding: 24px;
    }

    .documentWorkspacePage .workspaceImage {
        flex-basis: 100px;
        width: 100px;
        height: 100px;
    }

    .documentWorkspacePage .workspaceImage span {
        font-size: 38px;
    }

    .documentWorkspacePage .workspaceActions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .documentWorkspacePage .workspaceActions .primaryBtn,
    .documentWorkspacePage .workspaceActions .secondaryBtn {
        width: 100%;
    }

    .documentWorkspacePage .tenantMeta,
    .documentWorkspacePage .completionSummary {
        grid-template-columns: 1fr;
    }

    .documentWorkspacePage .documentPreviewFrame {
        height: 70vh;
        min-height: 520px;
    }
}

@media (max-width: 480px) {
    .documentWorkspacePage .workspacePanel {
        padding: 22px 18px;
        border-radius: 23px;
    }

    .documentWorkspacePage .workspaceHero {
        padding: 21px;
    }

    .documentWorkspacePage .statCard {
        padding: 20px;
    }

    .documentWorkspacePage .documentPreviewFrame {
        min-height: 440px;
        border-radius: 15px;
    }

    .documentWorkspacePage .tenantMeta > div,
    .documentWorkspacePage .completionItem {
        padding: 17px;
    }
}

/* ==========================================================
   CRS MAINTENANCE WORKSPACE V2
   ========================================================== */

.maintenanceWorkspacePage {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

/* ---------- Hero ---------- */

.maintenanceWorkspacePage .workspaceHero {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5ebf3;
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(225, 234, 245, 0.75),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );
}

.maintenanceWorkspacePage .workspaceHeroContent {
    min-width: 0;
}

.maintenanceWorkspacePage .workspaceHeroContent h1 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #102844;
    font-size: clamp(31px, 4vw, 46px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.maintenanceWorkspacePage .workspaceHeroContent .subtext {
    margin-top: 10px;
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.maintenanceWorkspacePage .workspaceImage {
    flex: 0 0 145px;
    width: 145px;
    height: 145px;
    border: 1px solid #dce5ef;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eaf1f8
        );
    box-shadow:
        0 18px 38px rgba(18, 42, 70, 0.11);
}

.maintenanceWorkspacePage .workspaceImage span {
    font-size: 50px;
}

.maintenanceWorkspacePage .maintenanceBadgeRow {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
}

/* ---------- Status badges ---------- */

.maintenanceWorkspacePage .statusBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #566176;
    background: #edf1f5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.maintenanceWorkspacePage .statusBadge::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
}

.maintenanceWorkspacePage .statusBadge.statusPaid {
    color: #147348;
    border-color: #b9e8d0;
    background: #eaf9f1;
}

.maintenanceWorkspacePage .statusBadge.statusPartial {
    color: #9a6413;
    border-color: #f1d897;
    background: #fff8e7;
}

.maintenanceWorkspacePage .statusBadge.statusOutstanding {
    color: #b33b3b;
    border-color: #f1c2c2;
    background: #fff0f0;
}

/* ---------- Summary cards ---------- */

.maintenanceWorkspacePage .statsGrid {
    gap: 18px;
}

.maintenanceWorkspacePage .statCard {
    min-width: 0;
    padding: 23px;
    border: 1px solid #e7edf4;
    box-shadow:
        0 14px 32px rgba(18, 39, 67, 0.06);
}

.maintenanceWorkspacePage .statCard span {
    display: block;
    margin-bottom: 9px;
    color: #748298;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.maintenanceWorkspacePage .statCard strong {
    display: block;
    overflow-wrap: anywhere;
    color: #102844;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

/* ---------- Panels ---------- */

.maintenanceWorkspacePage .workspacePanel {
    padding: clamp(25px, 3vw, 34px);
    border: 1px solid #e7edf4;
    box-shadow:
        0 18px 42px rgba(18, 39, 67, 0.07);
}

.maintenanceWorkspacePage .sectionHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.maintenanceWorkspacePage .sectionHeader h2 {
    margin: 0;
    color: #102844;
    font-size: clamp(25px, 3vw, 31px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.maintenanceWorkspacePage .sectionHeader .muted {
    margin-top: 7px;
    max-width: 780px;
    line-height: 1.65;
}

/* ---------- Information cards ---------- */

.maintenanceWorkspacePage .tenantMeta {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 0;
}

.maintenanceWorkspacePage .tenantMeta > div {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e8edf4;
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            #f9fbfd,
            #f5f8fb
        );
}

.maintenanceWorkspacePage .tenantMeta span {
    display: block;
    margin-bottom: 8px;
    color: #738198;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.maintenanceWorkspacePage .tenantMeta strong {
    display: block;
    overflow-wrap: anywhere;
    color: #142943;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

/* ---------- Forms ---------- */

.maintenanceWorkspacePage .formGrid {
    gap: 18px;
}

.maintenanceWorkspacePage .formGrid > div,
.maintenanceWorkspacePage .maintenanceDescriptionField {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maintenanceWorkspacePage label {
    color: #233a57;
    font-size: 13px;
    font-weight: 800;
}

.maintenanceWorkspacePage input,
.maintenanceWorkspacePage select,
.maintenanceWorkspacePage textarea {
    width: 100%;
    border: 1px solid #d9e2ec;
    border-radius: 15px;
    color: #172a45;
    background: #f8fafc;
    outline: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.maintenanceWorkspacePage input,
.maintenanceWorkspacePage select {
    min-height: 48px;
    padding: 12px 14px;
}

.maintenanceWorkspacePage textarea {
    min-height: 145px;
    padding: 14px 16px;
    resize: vertical;
}

.maintenanceWorkspacePage input:focus,
.maintenanceWorkspacePage select:focus,
.maintenanceWorkspacePage textarea:focus {
    border-color: #9eb7d2;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(31, 79, 122, 0.08);
}

.maintenanceWorkspacePage .maintenanceDescriptionField {
    margin-top: 20px;
}

/* ---------- Buttons ---------- */

.maintenanceWorkspacePage .primaryBtn,
.maintenanceWorkspacePage .secondaryBtn,
.maintenanceWorkspacePage .softButton {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.maintenanceWorkspacePage .primaryBtn {
    margin-top: 22px;
    border: 1px solid #102844;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #102844,
            #183b63
        );
    box-shadow:
        0 12px 25px rgba(16, 40, 68, 0.18);
}

.maintenanceWorkspacePage .secondaryBtn,
.maintenanceWorkspacePage .softButton {
    border: 1px solid #d2dce8;
    color: #17314f;
    background: #ffffff;
    box-shadow:
        0 8px 20px rgba(18, 39, 67, 0.06);
}

.maintenanceWorkspacePage .primaryBtn:hover,
.maintenanceWorkspacePage .secondaryBtn:hover,
.maintenanceWorkspacePage .softButton:hover {
    transform: translateY(-2px);
}

.maintenanceWorkspacePage .primaryBtn:hover {
    box-shadow:
        0 16px 30px rgba(16, 40, 68, 0.24);
}

.maintenanceWorkspacePage .secondaryBtn:hover,
.maintenanceWorkspacePage .softButton:hover {
    border-color: #b9c7d7;
    background: #f8fafc;
}

.maintenanceWorkspacePage .primaryBtn:disabled {
    transform: none;
    cursor: wait;
    opacity: 0.65;
    box-shadow: none;
}

/* ---------- Financial cards ---------- */

.maintenanceWorkspacePage .completionSummary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.maintenanceWorkspacePage .completionItem {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e6ecf3;
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            #f9fbfd,
            #f4f7fb
        );
}

.maintenanceWorkspacePage .completionItem span {
    display: block;
    margin-bottom: 8px;
    color: #7c899c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.maintenanceWorkspacePage .completionItem strong {
    display: block;
    overflow-wrap: anywhere;
    color: #142943;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

/* ---------- Notes and empty states ---------- */

.maintenanceWorkspacePage .paymentHistoryNote {
    margin-top: 22px;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.maintenanceWorkspacePage .emptyState {
    padding: 24px;
    border: 1px dashed #d6dfe9;
    border-radius: 19px;
    color: #718096;
    background: #f8fafc;
    text-align: center;
}

.maintenanceWorkspacePage .emptyState strong {
    display: block;
    margin-bottom: 7px;
    color: #243a55;
    font-size: 16px;
}

/* ---------- Audit timeline ---------- */

.maintenanceWorkspacePage .maintenanceRecordTimeline {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.maintenanceWorkspacePage .maintenanceRecordItem {
    position: relative;
    min-width: 0;
    padding: 20px 20px 20px 25px;
    border: 1px solid #e5ebf2;
    border-radius: 18px;
    background: #f8fafc;
}

.maintenanceWorkspacePage .maintenanceRecordItem::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 13px;
    width: 5px;
    height: calc(100% - 40px);
    border-radius: 999px;
    background: #1f4f7a;
}

.maintenanceWorkspacePage .maintenanceRecordItem span {
    display: block;
    margin-bottom: 7px;
    color: #748298;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.maintenanceWorkspacePage .maintenanceRecordItem strong {
    display: block;
    overflow-wrap: anywhere;
    color: #142943;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
    .maintenanceWorkspacePage .completionSummary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .maintenanceWorkspacePage .maintenanceRecordTimeline {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .maintenanceWorkspacePage {
        gap: 20px;
    }

    .maintenanceWorkspacePage .workspaceHero {
        gap: 20px;
        padding: 24px;
    }

    .maintenanceWorkspacePage .workspaceImage {
        flex-basis: 100px;
        width: 100px;
        height: 100px;
    }

    .maintenanceWorkspacePage .workspaceImage span {
        font-size: 38px;
    }

    .maintenanceWorkspacePage .tenantMeta,
    .maintenanceWorkspacePage .completionSummary,
    .maintenanceWorkspacePage .maintenanceRecordTimeline {
        grid-template-columns: 1fr;
    }

    .maintenanceWorkspacePage .primaryBtn,
    .maintenanceWorkspacePage .secondaryBtn,
    .maintenanceWorkspacePage .softButton {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .maintenanceWorkspacePage .workspacePanel {
        padding: 22px 18px;
        border-radius: 23px;
    }

    .maintenanceWorkspacePage .workspaceHero {
        padding: 21px;
    }

    .maintenanceWorkspacePage .statCard {
        padding: 20px;
    }

    .maintenanceWorkspacePage .tenantMeta > div,
    .maintenanceWorkspacePage .completionItem,
    .maintenanceWorkspacePage .maintenanceRecordItem {
        padding: 17px;
    }
}

/* ==========================================================
   CRS MUNICIPAL BILL WORKSPACE V2
   ========================================================== */

.municipalBillWorkspacePage {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

/* ---------- Hero ---------- */

.municipalBillWorkspacePage .workspaceHero {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5ebf3;
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(225, 234, 245, 0.75),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );
}

.municipalBillWorkspacePage .workspaceHeroContent {
    min-width: 0;
}

.municipalBillWorkspacePage .workspaceHeroContent h1 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #102844;
    font-size: clamp(31px, 4vw, 46px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.municipalBillWorkspacePage .workspaceHeroContent .subtext {
    margin-top: 10px;
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.municipalBillWorkspacePage .workspaceHeroContent .statusBadge {
    margin-top: 17px;
}

.municipalBillWorkspacePage .workspaceImage {
    flex: 0 0 145px;
    width: 145px;
    height: 145px;
    border: 1px solid #dce5ef;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eaf1f8
        );
    box-shadow:
        0 18px 38px rgba(18, 42, 70, 0.11);
}

.municipalBillWorkspacePage .workspaceImage span {
    font-size: 50px;
}

/* ---------- Status badges ---------- */

.municipalBillWorkspacePage .statusBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #566176;
    background: #edf1f5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.municipalBillWorkspacePage .statusBadge::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
}

.municipalBillWorkspacePage .statusBadge.statusPaid {
    color: #147348;
    border-color: #b9e8d0;
    background: #eaf9f1;
}

.municipalBillWorkspacePage .statusBadge.statusPartial {
    color: #9a6413;
    border-color: #f1d897;
    background: #fff8e7;
}

.municipalBillWorkspacePage .statusBadge.statusOutstanding {
    color: #b33b3b;
    border-color: #f1c2c2;
    background: #fff0f0;
}

/* ---------- Statistics ---------- */

.municipalBillWorkspacePage .statsGrid {
    gap: 18px;
}

.municipalBillWorkspacePage .statCard {
    min-width: 0;
    padding: 23px;
    border: 1px solid #e7edf4;
    box-shadow:
        0 14px 32px rgba(18, 39, 67, 0.06);
}

.municipalBillWorkspacePage .statCard span {
    display: block;
    margin-bottom: 9px;
    color: #748298;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.municipalBillWorkspacePage .statCard strong {
    display: block;
    overflow-wrap: anywhere;
    color: #102844;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

/* ---------- Panels ---------- */

.municipalBillWorkspacePage .workspacePanel {
    padding: clamp(25px, 3vw, 34px);
    border: 1px solid #e7edf4;
    box-shadow:
        0 18px 42px rgba(18, 39, 67, 0.07);
}

.municipalBillWorkspacePage .sectionHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.municipalBillWorkspacePage .sectionHeader > div:first-child {
    min-width: 0;
}

.municipalBillWorkspacePage .sectionHeader h2 {
    margin: 0;
    color: #102844;
    font-size: clamp(25px, 3vw, 31px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.municipalBillWorkspacePage .sectionHeader .muted {
    max-width: 760px;
    margin-top: 7px;
    line-height: 1.65;
}

/* ---------- Information cards ---------- */

.municipalBillWorkspacePage .tenantMeta {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 0;
}

.municipalBillWorkspacePage .tenantMeta > div {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e8edf4;
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            #f9fbfd,
            #f5f8fb
        );
}

.municipalBillWorkspacePage .tenantMeta span {
    display: block;
    margin-bottom: 8px;
    color: #738198;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.municipalBillWorkspacePage .tenantMeta strong {
    display: block;
    overflow-wrap: anywhere;
    color: #142943;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

/* ---------- Form controls ---------- */

.municipalBillWorkspacePage .formGrid {
    gap: 18px;
}

.municipalBillWorkspacePage .formGrid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.municipalBillWorkspacePage label {
    color: #233a57;
    font-size: 13px;
    font-weight: 800;
}

.municipalBillWorkspacePage input,
.municipalBillWorkspacePage select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d9e2ec;
    border-radius: 15px;
    color: #172a45;
    background: #f8fafc;
    outline: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.municipalBillWorkspacePage input:focus,
.municipalBillWorkspacePage select:focus {
    border-color: #9eb7d2;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(31, 79, 122, 0.08);
}

/* ---------- Buttons ---------- */

.municipalBillWorkspacePage .workspaceActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
}

.municipalBillWorkspacePage .sectionHeader .workspaceActions {
    justify-content: flex-end;
    margin-top: 0;
}

.municipalBillWorkspacePage .primaryBtn,
.municipalBillWorkspacePage .secondaryBtn,
.municipalBillWorkspacePage .softButton {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.municipalBillWorkspacePage .primaryBtn {
    border: 1px solid #102844;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #102844,
            #183b63
        );
    box-shadow:
        0 12px 25px rgba(16, 40, 68, 0.18);
}

.municipalBillWorkspacePage .secondaryBtn,
.municipalBillWorkspacePage .softButton {
    border: 1px solid #d2dce8;
    color: #17314f;
    background: #ffffff;
    box-shadow:
        0 8px 20px rgba(18, 39, 67, 0.06);
}

.municipalBillWorkspacePage .primaryBtn:hover,
.municipalBillWorkspacePage .secondaryBtn:hover,
.municipalBillWorkspacePage .softButton:hover {
    transform: translateY(-2px);
}

.municipalBillWorkspacePage .primaryBtn:hover {
    box-shadow:
        0 16px 30px rgba(16, 40, 68, 0.24);
}

.municipalBillWorkspacePage .secondaryBtn:hover,
.municipalBillWorkspacePage .softButton:hover {
    border-color: #b9c7d7;
    background: #f8fafc;
}

.municipalBillWorkspacePage .primaryBtn:disabled,
.municipalBillWorkspacePage .secondaryBtn:disabled {
    transform: none;
    cursor: wait;
    opacity: 0.65;
    box-shadow: none;
}

/* ---------- Document preview ---------- */

.municipalBillWorkspacePage .documentPreviewFrame {
    display: block;
    width: 100%;
    height: min(76vh, 920px);
    min-height: 650px;
    border: 1px solid #dce4ee;
    border-radius: 20px;
    background: #f4f6f9;
}

.municipalBillWorkspacePage .documentPreviewImage {
    display: block;
    width: 100%;
    max-height: 900px;
    object-fit: contain;
    border: 1px solid #dce4ee;
    border-radius: 20px;
    background: #f4f6f9;
}

.municipalBillWorkspacePage .documentPreviewPlaceholder {
    display: grid;
    min-height: 390px;
    place-items: center;
    align-content: center;
    padding: 40px;
    border: 1px dashed #cfd9e5;
    border-radius: 20px;
    color: #718096;
    background: #f8fafc;
    text-align: center;
}

.municipalBillWorkspacePage .documentPreviewPlaceholder h2 {
    margin: 14px 0 8px;
    color: #17314f;
}

.municipalBillWorkspacePage .documentPreviewIcon {
    font-size: 56px;
}

/* ---------- Payment summary ---------- */

.municipalBillWorkspacePage .completionSummary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.municipalBillWorkspacePage .completionItem {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e6ecf3;
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            #f9fbfd,
            #f4f7fb
        );
}

.municipalBillWorkspacePage .completionItem span {
    display: block;
    margin-bottom: 8px;
    color: #7c899c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.municipalBillWorkspacePage .completionItem strong {
    display: block;
    overflow-wrap: anywhere;
    color: #142943;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

/* ---------- Notes and storage path ---------- */

.municipalBillWorkspacePage .paymentHistoryNote {
    margin-top: 22px;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.65;
}

.municipalBillWorkspacePage .emptyState {
    padding: 26px;
    border: 1px dashed #d6dfe9;
    border-radius: 19px;
    color: #718096;
    background: #f8fafc;
    text-align: center;
}

.municipalBillWorkspacePage .emptyState strong {
    display: block;
    margin-bottom: 7px;
    color: #243a55;
    font-size: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
    .municipalBillWorkspacePage .completionSummary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .municipalBillWorkspacePage .sectionHeader {
        flex-direction: column;
    }

    .municipalBillWorkspacePage .sectionHeader .workspaceActions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .municipalBillWorkspacePage {
        gap: 20px;
    }

    .municipalBillWorkspacePage .workspaceHero {
        gap: 20px;
        padding: 24px;
    }

    .municipalBillWorkspacePage .workspaceImage {
        flex-basis: 100px;
        width: 100px;
        height: 100px;
    }

    .municipalBillWorkspacePage .workspaceImage span {
        font-size: 38px;
    }

    .municipalBillWorkspacePage .tenantMeta,
    .municipalBillWorkspacePage .completionSummary {
        grid-template-columns: 1fr;
    }

    .municipalBillWorkspacePage .workspaceActions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .municipalBillWorkspacePage .primaryBtn,
    .municipalBillWorkspacePage .secondaryBtn,
    .municipalBillWorkspacePage .softButton {
        width: 100%;
    }

    .municipalBillWorkspacePage .documentPreviewFrame {
        height: 70vh;
        min-height: 520px;
    }
}

@media (max-width: 480px) {
    .municipalBillWorkspacePage .workspacePanel {
        padding: 22px 18px;
        border-radius: 23px;
    }

    .municipalBillWorkspacePage .workspaceHero {
        padding: 21px;
    }

    .municipalBillWorkspacePage .statCard {
        padding: 20px;
    }

    .municipalBillWorkspacePage .documentPreviewFrame {
        min-height: 440px;
        border-radius: 15px;
    }

    .municipalBillWorkspacePage .tenantMeta > div,
    .municipalBillWorkspacePage .completionItem {
        padding: 17px;
    }
}

/* ==========================================================
   CRS DASHBOARD USER WELCOME
   ========================================================== */

.executiveWelcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 32px;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #e5ebf3;
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(211, 225, 242, 0.72),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #f7faff
        );
    box-shadow:
        0 18px 42px rgba(18, 39, 67, 0.07);
}

.executiveWelcome > div:first-child {
    min-width: 0;
}

.executiveWelcomeEyebrow {
    margin: 0 0 8px;
    color: #7b8798;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.executiveWelcome h1 {
    margin: 0;
    color: #102844;
    font-size: clamp(31px, 4vw, 45px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.executiveWelcome p:not(
    .executiveWelcomeEyebrow
) {
    margin: 10px 0 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.65;
}

.executiveWelcomeDate {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    padding: 16px 19px;
    border: 1px solid #dfe7f0;
    border-radius: 18px;
    background: rgba(
        255,
        255,
        255,
        0.8
    );
}

.executiveWelcomeDate span {
    margin-bottom: 5px;
    color: #7b8798;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.executiveWelcomeDate strong {
    color: #17314f;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 720px) {
    .executiveWelcome {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .executiveWelcomeDate {
        width: 100%;
        align-items: flex-start;
    }
}

/* ==========================================================
   CRS TOPBAR USER
   ========================================================== */

.topbarUserCard {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    padding: 9px 13px;
    border: 1px solid #e0e7ef;
    border-radius: 14px;
    background: #ffffff;
}

.topbarUserCard span {
    margin-bottom: 3px;
    color: #7c899a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.topbarUserCard strong {
    overflow: hidden;
    color: #17314f;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .topbarUserCard {
        display: none;
    }
}

/* ==========================================================
   CRS CLEAN RESPONSIVE SYSTEM
   Phase 1 — Foundation, layout, topbar and sidebar
   ========================================================== */

/* ==========================================================
   Global responsive safety
   ========================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body {
    min-height: 100dvh;
}

#app {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
}

img,
svg,
canvas,
video,
iframe {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

.appShell {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
}

.mainArea,
.pageViewport,
.pageContent,
.page,
.executiveDashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.mainArea {
    min-height: 100dvh;
}

.pageViewport {
    box-sizing: border-box;
}

.workspaceHero,
.workspacePanel,
.sectionHeader,
.executiveTopbar,
.topbarLeft,
.topbarCenter,
.topbarRight,
.executivePanel,
.executiveWelcome {
    min-width: 0;
    box-sizing: border-box;
}

.workspacePanel,
.workspaceHero,
.statCard,
.tenantCard,
.propertyCard,
.unitCard,
.executivePanel {
    overflow-wrap: anywhere;
}

.reportTableWrap,
.tableWrapper,
.documentTableWrapper,
.ledgerTableWrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================
   Tablet and mobile drawer sidebar
   Applies to phone, tablet portrait and tablet landscape
   ========================================================== */

@media (max-width: 1180px) {

    .appShell {
        display: block;
        min-height: 100dvh;
    }

    .mainArea {
        width: 100%;
        min-height: 100dvh;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 100 !important;

        display: flex !important;
        flex-direction: column !important;

        width: min(320px, 88vw) !important;
        min-width: 0 !important;

        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0 !important;

        padding:
            22px
            16px
            16px !important;

        overflow: hidden !important;

        transform:
            translateX(
                -105%
            );

        transition:
            transform
            0.24s
            ease;

        box-shadow:
            20px
            0
            60px
            rgba(
                4,
                13,
                30,
                0.28
            );
    }

    .sidebar.isOpen {
        transform:
            translateX(
                0
            );
    }

    .sidebarTop {
        position: relative !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }

    .sidebarCloseButton {
        display: inline-grid !important;
        place-items: center;
    }

    .sidebarDivider {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }

    .sidebarNavigation {
        position: relative !important;
        inset: auto !important;

        display: block !important;
        flex: 1 1 auto !important;

        width: 100% !important;
        min-height: 0 !important;

        padding:
            10px
            2px
            18px !important;

        margin: 0 !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .sidebarMenuGroup {
        position: static !important;
        width: 100% !important;
        margin-bottom: 18px !important;
    }

    .sidebarMenuGroup:last-child {
        margin-bottom: 0 !important;
    }

    .sidebarMenuItems {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    .sidebarNavButton {
        position: relative !important;

        width: 100% !important;
        min-height: 46px !important;

        flex: 0 0 auto !important;
    }

    .sidebarBottom {
        position: static !important;

        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        flex-shrink: 0 !important;

        width: 100% !important;
        max-width: 100% !important;

        padding-top: 10px !important;
        margin-top: 0 !important;

        transform: none !important;
        overflow: visible !important;

        background: #071a35 !important;
        z-index: 5 !important;
    }

    .sidebarBottom > .sidebarDivider {
        display: block !important;

        margin:
            0
            0
            10px !important;
    }

    .sidebarUserCard {
        position: static !important;
        inset: auto !important;

        width: 100% !important;
        min-height: 70px !important;

        margin:
            0
            0
            9px !important;

        transform: none !important;
        flex-shrink: 0 !important;
    }

    .sidebarLogoutButton {
        position: static !important;
        inset: auto !important;

        width: 100% !important;
        min-height: 48px !important;

        margin: 0 !important;

        transform: none !important;
        flex-shrink: 0 !important;
    }

    .sidebarVersion {
        position: static !important;
        inset: auto !important;

        width: 100% !important;

        margin-top: 10px !important;

        padding:
            0
            4px !important;

        transform: none !important;
        flex-shrink: 0 !important;
    }

    .sidebarBackdrop.isVisible {
        display: block;
    }
}

/* ==========================================================
   Responsive topbar
   ========================================================== */

@media (max-width: 1180px) {

    .executiveTopbar {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: grid;

        width: calc(100% - 36px) !important;
        max-width: none !important;

        grid-template-columns:
            minmax(0, 1fr);

        gap: 14px;

        margin:
            18px
            auto
            22px !important;

        padding:
            18px
            20px !important;

        transform: none !important;
        overflow: visible !important;

        border-radius: 26px !important;
    }

    .topbarLeft {
        display: flex;

        width: 100%;
        min-width: 0;

        align-items: center;
        gap: 14px;
    }

    .mobileMenuButton {
        display: inline-grid !important;

        width: 46px;
        height: 46px;

        flex: 0 0 46px;

        place-items: center;

        padding: 0;

        border:
            1px
            solid
            #dce4ee;

        border-radius: 14px;

        background: #ffffff;
        color: #17314f;

        cursor: pointer;
        font-size: 21px;
    }

    .topbarGreeting {
        flex: 1;
        min-width: 0;
    }

    .topbarGreeting h1 {
        margin: 0;

        overflow: hidden;

        font-size:
            clamp(
                23px,
                5vw,
                31px
            );

        line-height: 1.15;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbarWelcome {
        font-size: 12px;
    }

    .topbarCenter {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .globalSearchWrapper,
    .searchBox {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .searchBox input {
        width: 100%;
        min-width: 0;
    }

    .globalSearchResults {
        right: 0;
        left: 0;

        width: 100%;
        max-height: 56vh;

        overflow-y: auto;
    }

    .topbarRight {
        display: flex;

        width: 100%;

        justify-content: flex-end;
        gap: 10px;
    }

    .dateCard,
    .topbarUserCard {
        display: none;
    }

    .topbarRight .iconButton {
        width: 44px;
        height: 44px;

        flex: 0 0 44px;
    }

    .pageViewport {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding:
            0
            18px
            18px !important;

        margin: 0 !important;

        transform: none !important;
        overflow: visible !important;
    }
}

/* ==========================================================
   CRS CLEAN RESPONSIVE SYSTEM
   Phase 2 — Page grids, cards, forms, workspaces and reports
   ========================================================== */

/* ==========================================================
   Tablet layout
   ========================================================== */

@media (max-width: 1180px) {

    .workspaceHero {
        align-items: flex-start;
    }

    .workspaceHeroContent,
    .workspaceHero > div:last-child {
        flex: 1;
        min-width: 0;
    }

    .statsGrid,
    .dashboardGrid,
    .completionSummary {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .propertyGrid,
    .unitGrid,
    .tenantGrid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .tenantMeta,
    .paymentHistoryGrid,
    .formGrid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .pageHeader,
    .sectionHeader,
    .paymentPanelHeader {
        min-width: 0;
    }

    .workspaceActions,
    .sectionActions,
    .paymentPanelActions {
        min-width: 0;
        flex-wrap: wrap;
    }

    .slidePanel {
        width:
            min(
                680px,
                94vw
            );
    }
}

/* ==========================================================
   Tablet portrait
   ========================================================== */

@media
    (min-width: 681px)
    and (max-width: 900px)
    and (orientation: portrait) {

    .workspaceHero {
        flex-direction: column;
        align-items: flex-start;

        gap: 22px;
        padding: 26px;
    }

    .workspaceImage {
        width: 112px;
        height: 112px;

        flex: 0 0 112px;

        border-radius: 22px;
    }

    .workspaceImage span {
        font-size: 40px;
    }

    .workspaceHero h1 {
        font-size:
            clamp(
                30px,
                7vw,
                42px
            );

        line-height: 1.1;
    }

    .workspaceHero .subtext {
        max-width: 100%;
    }

    .pageHeader,
    .sectionHeader,
    .paymentPanelHeader {
        flex-direction: column;
        align-items: flex-start;

        gap: 16px;
    }

    .pageHeader > div,
    .sectionHeader > div {
        width: 100%;
        min-width: 0;
    }

    .sectionHeader .statusBadge {
        align-self: flex-start;
    }

    .workspaceActions,
    .sectionActions,
    .paymentPanelActions {
        width: 100%;

        justify-content: flex-start;
    }

    .workspacePanel {
        padding: 26px;
    }

    .statsGrid,
    .dashboardGrid,
    .completionSummary {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 14px;
    }

    .propertyGrid,
    .unitGrid,
    .tenantGrid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 16px;
    }

    .formGrid,
    .signatureGrid,
    .leaseSignaturePreview,
    .paymentFormGrid,
    .paymentResultBox,
    .paymentSummary,
    .tenantPaymentLayout {
        grid-template-columns:
            1fr;
    }

    .tenantMeta,
    .paymentHistoryGrid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .reportToolbar,
    .reportHeaderActions {
        display: grid;

        width: 100%;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 10px;
    }

    .reportToolbar button,
    .reportHeaderActions button {
        width: 100%;
    }
}

/* ==========================================================
   Tablet landscape
   ========================================================== */

@media
    (min-width: 901px)
    and (max-width: 1180px)
    and (orientation: landscape) {

    .pageViewport {
        padding:
            0
            18px
            18px !important;
    }

    .executiveKpiGrid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .statsGrid,
    .dashboardGrid,
    .completionSummary {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .propertyGrid,
    .unitGrid,
    .tenantGrid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .formGrid,
    .tenantMeta,
    .paymentHistoryGrid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .executiveMainGrid,
    .executiveBottomGrid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .workspaceHero,
    .workspacePanel,
    .executivePanel,
    .dashboardChartPanel,
    .dashboardVerseCard {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .dashboardBarChart,
    .dashboardLineChart,
    .dashboardLineChart svg {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================
   Phone layout
   ========================================================== */

@media (max-width: 680px) {

    :root {
        --radius: 20px;
    }

    .page {
        gap: 18px;
    }

    .pageViewport {
        padding:
            0
            12px
            14px !important;
    }

    .executiveTopbar {
        width: calc(100% - 24px) !important;

        margin:
            12px
            auto
            18px !important;

        padding:
            12px
            12px
            14px !important;

        border-radius: 22px !important;
    }

    .topbarLeft {
        gap: 10px;
    }

    .mobileMenuButton {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        border-radius: 13px;
    }

    .topbarGreeting h1 {
        font-size: 24px;
    }

    .topbarWelcome {
        display: none;
    }

    .searchBox {
        min-height: 46px;
    }

    .searchBox input {
        min-width: 0;
        font-size: 14px;
    }

    .globalSearchResult {
        padding: 13px;
    }

    .globalSearchType {
        display: none;
    }

    .workspaceHero {
        flex-direction: column;
        align-items: flex-start;

        gap: 17px;

        padding:
            21px
            19px;

        border-radius: 23px;
    }

    .workspaceImage {
        width: 88px;
        height: 88px;

        flex-basis: 88px;

        border-radius: 18px;
    }

    .workspaceImage span {
        font-size: 34px;
    }

    .workspaceHero h1 {
        font-size:
            clamp(
                28px,
                9vw,
                36px
            );

        line-height: 1.1;
    }

    .workspaceHero .eyebrow {
        font-size: 10px;
    }

    .workspaceHero .subtext {
        max-width: 100%;

        font-size: 13px;
        line-height: 1.55;
    }

    .workspacePanel,
    .propertyForm {
        padding:
            21px
            18px;

        border-radius: 22px;
    }

    .workspacePanel h2,
    .sectionHeader h2 {
        font-size:
            clamp(
                22px,
                6.5vw,
                28px
            );
    }

    .pageHeader,
    .sectionHeader,
    .paymentPanelHeader {
        flex-direction: column;
        align-items: flex-start;

        gap: 12px;
    }

    .sectionHeader > div,
    .pageHeader > div {
        width: 100%;
        min-width: 0;
    }

    .statsGrid,
    .dashboardGrid,
    .completionSummary,
    .propertyGrid,
    .unitGrid,
    .tenantGrid,
    .tenantMeta,
    .paymentHistoryGrid,
    .propertyStats,
    .formGrid,
    .signatureGrid,
    .leaseSignaturePreview,
    .paymentFormGrid,
    .paymentResultBox,
    .paymentSummary,
    .tenantPaymentLayout {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    .statCard {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 20px;

        border-radius: 20px;
    }

    .statCard strong,
    .statCard h2 {
        max-width: 100%;

        overflow-wrap: anywhere;

        font-size:
            clamp(
                24px,
                8vw,
                34px
            );
    }

    .completionItem {
        padding: 17px;
    }

    .propertyCard,
    .unitCard,
    .tenantCard,
    .invoiceCard {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        border-radius: 21px;
    }

    .propertyImage {
        height: 180px;
    }

    .propertyBody,
    .unitCard,
    .tenantCard {
        padding: 20px;
    }

    .propertyBody h2,
    .tenantCardTop h3 {
        font-size: 23px;
    }

    .unitCardTop,
    .tenantCardTop,
    .paymentHistoryTop {
        flex-direction: column;
        align-items: flex-start;

        gap: 12px;
    }

    .unitStatus,
    .paymentHistoryStatus,
    .statusBadge {
        align-self: flex-start;
    }

    .tenantMeta > div,
    .paymentHistoryGrid > div {
        min-width: 0;
        padding: 14px;
    }

    .tenantMeta strong,
    .paymentHistoryGrid strong {
        overflow-wrap: anywhere;
        font-size: 15px;
    }

    .workspacePanel input,
    .workspacePanel select,
    .workspacePanel textarea,
    .propertyForm input,
    .propertyForm select,
    .propertyForm textarea {
        min-height: 48px;

        padding:
            13px
            14px;

        border-radius: 14px;

        font-size: 16px;
    }

    .workspacePanel textarea,
    .propertyForm textarea {
        min-height: 120px;
    }

    .primaryBtn,
    .secondaryBtn,
    .softButton,
    .backBtn,
    .rolloverActionBtn {
        min-height: 46px;

        padding:
            12px
            16px;

        border-radius: 14px;

        white-space: normal;
    }

    .workspaceActions,
    .sectionActions,
    .paymentPanelActions,
    .reportToolbar,
    .reportHeaderActions {
        display: grid;

        width: 100%;

        grid-template-columns:
            minmax(0, 1fr);

        gap: 10px;
    }

    .workspaceActions button,
    .workspaceActions a,
    .sectionActions button,
    .sectionActions a,
    .paymentPanelActions button,
    .reportToolbar button,
    .reportHeaderActions button,
    .primaryBtn.rolloverActionBtn {
        width: 100%;
    }

    .backBtn {
        width: 100%;
        text-align: center;
    }

    .slideOverlay {
        align-items: flex-end;
    }

    .slidePanel {
        width: 100%;

        height:
            min(
                92dvh,
                880px
            );

        padding:
            24px
            18px;

        border-radius:
            24px
            24px
            0
            0;

        animation:
            slideUpMobile
            0.24s
            ease;
    }

    .paymentCloseBtn {
        width: 46px;
        height: 46px;

        flex: 0 0 46px;

        border-radius: 14px;
    }

    .signatureBox {
        padding: 16px;
    }

    .signatureBox canvas {
        height: 150px;
    }

    .savedSignature {
        max-height: 150px;
    }

    .documentPreviewFrame {
        width: 100%;

        height: 68vh;
        min-height: 430px;
    }

    .documentPreviewImage {
        width: 100%;
        height: auto;
    }

    .reportCard {
        min-height: auto;
    }

    .reportTableWrap {
        border-radius: 14px;
    }

    .reportTable th,
    .reportTable td {
        padding:
            11px
            12px;
    }

    .rolloverWarning {
        align-items: flex-start;
        padding: 18px;
    }

    .rolloverWarningIcon {
        flex: 0 0 auto;
    }

    .paymentHistoryItem {
        padding: 17px;
        border-radius: 19px;
    }

    .paymentHistoryNote {
        padding: 14px;

        font-size: 13px;
    }

    .maintenanceInvoiceCard {
        width: 100%;
        text-align: left;
    }

    .appFooter {
        padding:
            10px
            12px
            14px;

        text-align: center;
    }
}

/* ==========================================================
   Small phone layout
   ========================================================== */

@media (max-width: 420px) {

    .pageViewport {
        padding:
            0
            9px
            12px !important;
    }

    .executiveTopbar {
        width: calc(100% - 18px) !important;

        margin:
            9px
            auto
            16px !important;
    }

    .workspaceHero,
    .workspacePanel,
    .propertyForm {
        padding:
            19px
            15px;
    }

    .workspaceImage {
        width: 76px;
        height: 76px;

        flex-basis: 76px;
    }

    .workspaceImage span {
        font-size: 29px;
    }

    .workspaceHero h1 {
        font-size: 27px;
    }

    .statCard,
    .tenantCard,
    .unitCard {
        padding: 17px;
    }

    .topbarRight .iconButton {
        width: 41px;
        height: 41px;

        flex-basis: 41px;
    }

    .sidebar {
        width: 91vw !important;
    }

    .sidebarBrandLogo {
        max-width: 188px;
    }

    .slidePanel {
        padding:
            21px
            15px;
    }

    .documentPreviewFrame {
        min-height: 380px;
    }

    .signatureBox canvas {
        height: 135px;
    }
}

/* ==========================================================
   CRS CLEAN RESPONSIVE SYSTEM
   Phase 3 — Final responsive polish
   ========================================================== */

/* =========================================
   Images
   ========================================= */

img,
svg,
canvas,
iframe,
video {
    max-width: 100%;
    height: auto;
}

.documentPreviewFrame {
    width: 100%;
    border: 0;
}

.documentPreviewImage {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================
   Tables
   ========================================= */

.tableWrapper,
.reportTableWrap,
.ledgerTableWrapper,
.documentTableWrapper {
    overflow-x: auto;
    overflow-y: hidden;

    width: 100%;
    max-width: 100%;

    -webkit-overflow-scrolling: touch;
}

.reportTable,
table {
    min-width: 760px;
}

/* =========================================
   Charts
   ========================================= */

.dashboardBarChart,
.dashboardLineChart,
.dashboardPieChart,
.executiveChart {
    width: 100%;
    max-width: 100%;
}

.dashboardBarChart svg,
.dashboardLineChart svg,
.dashboardPieChart svg {
    width: 100%;
    height: auto;
}

/* =========================================
   Buttons
   ========================================= */

button,
.primaryBtn,
.secondaryBtn,
.softButton,
.backBtn,
.iconButton {
    touch-action: manipulation;
}

/* =========================================
   Forms
   ========================================= */

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* =========================================
   Cards
   ========================================= */

.workspacePanel,
.statCard,
.propertyCard,
.unitCard,
.tenantCard,
.invoiceCard,
.reportCard,
.executivePanel {
    min-width: 0;
}

/* =========================================
   Long values
   ========================================= */

.statCard strong,
.workspacePanel strong,
.tenantMeta strong,
.paymentHistoryGrid strong,
.propertyCard h2,
.unitCard h2,
.tenantCard h3,
.documentTitle,
.reportTitle {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================================
   Animations
   ========================================= */

@keyframes slideUpMobile {

    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@media (prefers-reduced-motion: reduce) {

    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

}

/* =========================================
   Desktop protection
   ========================================= */

@media (min-width:1181px){

    .mobileMenuButton{
        display:none!important;
    }

    .sidebar{
        transform:none!important;
    }

}