/* =========================================================
   PRECIOUS ESQUIRE LAW FIRM
   Main Application Styles
   ========================================================= */


/* =========================
   RESET
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f9f6f4;
    color: #172033;
    min-height: 100vh;
      background-image: url('/images/dashboard.jpeg');
      background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}


/* =========================
   MAIN APPLICATION
   ========================= */

.app {
    display: flex;
    min-height: 100vh;
}


/* =========================
   SIDEBAR
   ========================= */

.sidebar {
    width: 270px;
    min-height: 100vh;
    background: #0b1f3a;
    color: #ffffff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}


/* =========================
   BRAND
   ========================= */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand img {
    width: 120px;
    height: 100px;
    border-radius: 12px;
    background: #c9a227;
    color: #0b1f3a;
    display: flex;
    margin: 0 auto;
    font-weight: 800;
    font-size: 17px;
}





/* =========================
   NAVIGATION
   ========================= */

.navigation {
    padding: 20px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    margin-bottom: 6px;
    border-radius: 8px;
    color: #d9e2ef;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-link span {
    width: 25px;
    text-align: center;
    font-size: 17px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(3px);
}

.nav-link.active {
    background: #c9a227;
    color: #0b1f3a;
    font-weight: 700;
}


/* =========================
   MAIN CONTENT
   ========================= */

.main-content {
    width: calc(100% - 270px);
    margin-left: 270px;
    min-height: 100vh;
}


/* =========================
   TOPBAR
   ========================= */

.topbar {
    height: 82px;
    background: #ffffff;
    border-bottom: 1px solid #e4e8ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
}

.topbar h1 {
    font-size: 22px;
    font-weight: 700;
    color: #0b1f3a;
}

.topbar p {
    margin-top: 4px;
    color: #7b8798;
    font-size: 12px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0b1f3a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.user-area strong {
    display: block;
    font-size: 13px;
    color: #172033;
}

.user-area small {
    display: block;
    margin-top: 3px;
    color: #8994a5;
    font-size: 11px;
}


/* =========================
   CONTENT
   ========================= */

.content {
    padding: 35px;
}


/* =========================
   WELCOME SECTION
   ========================= */

.welcome {
    background: linear-gradient(
        135deg,
        #0b1f3a,
        #173b67
    );

    color: #ffffff;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.welcome::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 35px solid rgba(201, 162, 39, 0.15);
    border-radius: 50%;
    right: -80px;
    top: -80px;
}

.welcome h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.welcome p {
    color: #d8e1ed;
    font-size: 14px;
}


/* =========================
   DASHBOARD GRID
   ========================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* =========================
   DASHBOARD CARDS
   ========================= */

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e7ebf1;
    border-radius: 14px;
    padding: 25px;
    min-height: 190px;
    transition: all 0.25s ease;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    border-color: #c9a227;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #eef3f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 17px;
}

.dashboard-card h3 {
    color: #0b1f3a;
    font-size: 17px;
    margin-bottom: 8px;
}

.dashboard-card p {
    color: #758195;
    font-size: 13px;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    margin-top: 18px;
    color: #b08a17;
    font-size: 12px;
    font-weight: 700;
}


/* =========================
   PAGE HEADER
   ========================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h2 {
    color: #0b1f3a;
    font-size: 23px;
}

.page-header p {
    color: #7c8798;
    margin-top: 5px;
    font-size: 13px;
}


/* =========================
   BUTTONS
   ========================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #0b1f3a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #173b67;
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #435066;
    border: 1px solid #d9dfe8;
    border-radius: 8px;
    padding: 10px 17px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f4f8;
}


/* =========================
   TABLE CARD
   ========================= */

.table-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e9ef;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.table-header {
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9edf2;
}

.table-header h3 {
    color: #0b1f3a;
    font-size: 16px;
}


/* =========================
   SEARCH
   ========================= */

.search-input {
    width: 240px;
    padding: 10px 13px;
    border: 1px solid #dce2ea;
    border-radius: 7px;
    outline: none;
    font-size: 13px;
}

.search-input:focus {
    border-color: #0b1f3a;
    box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
}


/* =========================
   TABLE
   ========================= */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f7f9fb;
}

th {
    text-align: left;
    padding: 14px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #68758a;
    white-space: nowrap;
}

td {
    padding: 16px 20px;
    border-top: 1px solid #edf0f4;
    font-size: 13px;
    color: #465268;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: #fafbfd;
}


/* =========================
   BALANCE
   ========================= */

.balance {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.balance.pending {
    background: #fff5d6;
    color: #916f0b;
}

.balance.paid {
    background: #e7f7ef;
    color: #197044;
}


/* =========================
   EMPTY STATE
   ========================= */

.empty-state {
    text-align: center;
    padding: 45px 20px;
    color: #8a95a5;
}

.empty-state a {
    display: inline-block;
    margin-top: 10px;
    color: #0b1f3a;
    font-weight: 600;
}


/* =========================
   FORM CARD
   ========================= */

.form-card {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e9ef;
    padding: 30px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ecf1;
}

.form-header h2 {
    color: #0b1f3a;
    font-size: 21px;
}

.form-header p {
    color: #7d8999;
    font-size: 13px;
    margin-top: 5px;
}


/* =========================
   FORM
   ========================= */

.form-group {
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #26344a;
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    outline: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #0b1f3a;
    box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
}

.form-group input::placeholder {
    color: #a4adba;
}


/* =========================
   BALANCE PREVIEW
   ========================= */

.balance-preview {
    background: #f4f7fa;
    border: 1px solid #e1e7ee;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.balance-preview span {
    color: #5e6a7c;
    font-size: 13px;
    font-weight: 600;
}

.balance-preview strong {
    color: #0b1f3a;
    font-size: 22px;
}


/* =========================
   FORM ACTIONS
   ========================= */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
}


/* =========================
   VALIDATION ERRORS
   ========================= */

.error {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 11px;
}


/* =========================
   ALERTS
   ========================= */

.alert {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
}

.alert.success {
    background: #e8f7ef;
    color: #197044;
    border: 1px solid #ccebdc;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 800px) {

    .sidebar {
        width: 220px;
    }

    .main-content {
        width: calc(100% - 220px);
        margin-left: 220px;
    }

    .content {
        padding: 25px;
    }

    .topbar {
        padding: 0 25px;
    }

}


@media (max-width: 650px) {

    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .app {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .navigation {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

    .nav-link {
        min-width: max-content;
        margin-bottom: 0;
    }

    .brand {
        padding: 15px;
    }
    

.brand-text {
    width: 100% !important;
    display: block !important;
    margin: 15px auto 0 auto !important;
    padding: 10px 0 20px 0 !important;
    text-align: center !important;
    color: #c9a227;
}

.brand-text strong {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.5px;
}
    .topbar {
        height: auto;
        padding: 20px;
        gap: 15px;
    }

    .content {
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .table-header {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-card {
        padding: 20px;
    }

    .form-header {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions a,
    .form-actions button {
        width: 100%;
    }

}
/* =====================================================
   CASE STATUS
===================================================== */

.case-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    background: #f7f9fc;
    border: 1px solid #e2e7ef;
    border-radius: 10px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-item span {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item strong {
    color: #172033;
    font-size: 15px;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #e8eef7;
    color: #17365d;
    font-size: 12px;
    font-weight: 600;
}

.pending {
    color: #a16207;
    font-size: 13px;
    font-style: italic;
}

.btn-small {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 6px;
    background: #17365d;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.btn-small:hover {
    opacity: 0.9;
}

textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    border: 1px solid #d5dce6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #17365d;
}

@media (max-width: 700px) {

    .case-summary {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   CASE STATUS FORMS
========================================================= */

.form-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(15, 39, 71, 0.08);
    border: 1px solid #e4e9f0;
    max-width: 1000px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   FORM HEADER
--------------------------------------------------------- */

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e9ef;
}

.form-header h2 {
    margin: 0 0 6px;
    color: #17365d;
    font-size: 24px;
    font-weight: 700;
}

.form-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}


/* ---------------------------------------------------------
   FORM GROUP
--------------------------------------------------------- */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #26364a;
    font-size: 14px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   INPUTS / SELECTS / TEXTAREA
--------------------------------------------------------- */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;

    border: 1px solid #d5dce6;
    border-radius: 8px;

    background: #ffffff;
    color: #1f2937;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input,
.form-group select {
    min-height: 46px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;

    border-color: #17365d;

    box-shadow:
        0 0 0 3px rgba(23, 54, 93, 0.10);
}


/* ---------------------------------------------------------
   READ ONLY S/N
--------------------------------------------------------- */

.form-group input[readonly] {
    background: #f1f4f8;
    color: #64748b;
    cursor: not-allowed;
}


/* ---------------------------------------------------------
   FORM ROW
--------------------------------------------------------- */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* ---------------------------------------------------------
   HELP TEXT
--------------------------------------------------------- */

.form-help {
    display: block;
    margin-top: 6px;
    color: #8a96a6;
    font-size: 12px;
}


/* ---------------------------------------------------------
   VALIDATION ERROR
--------------------------------------------------------- */

.error {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 12px;
}


/* ---------------------------------------------------------
   FORM ACTIONS
--------------------------------------------------------- */

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;

    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid #e5e9ef;
}


/* ---------------------------------------------------------
   PRIMARY BUTTON
--------------------------------------------------------- */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    border: none;
    border-radius: 8px;

    background: #17365d;
    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.btn-primary:hover {
    background: #0f2947;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   SECONDARY BUTTON
--------------------------------------------------------- */

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border: 1px solid #d5dce6;
    border-radius: 8px;

    background: #ffffff;
    color: #425466;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.btn-secondary:hover {
    background: #f5f7fa;
    border-color: #bcc6d3;
}


/* =========================================================
   CASE INFORMATION SUMMARY — FORM 2
========================================================= */

.case-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;

    margin-bottom: 28px;
    padding: 20px;

    background: #f7f9fc;

    border: 1px solid #e2e7ef;
    border-radius: 10px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 12px;

    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
}

.summary-item span {
    color: #7a8797;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item strong {
    color: #17365d;
    font-size: 14px;
}


/* ---------------------------------------------------------
   TEXTAREA
--------------------------------------------------------- */

.form-group textarea {
    min-height: 160px;
    line-height: 1.6;
    resize: vertical;
}


/* ---------------------------------------------------------
   SUCCESS MESSAGE
--------------------------------------------------------- */

.alert.success {
    margin-bottom: 20px;
    padding: 13px 16px;

    background: #ecfdf3;
    border: 1px solid #b7ebc6;
    border-radius: 8px;

    color: #176b3a;

    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .form-card {
        padding: 20px;
        border-radius: 10px;
    }

    .form-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .case-summary {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions a,
    .form-actions button {
        width: 100%;
    }

}
/* =========================================================
   CLIENT REPORT
========================================================= */

.report-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   REPORT FILTER
--------------------------------------------------------- */

.report-filter-card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 5px 18px rgba(15, 39, 71, 0.05);
}

.report-filter {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.report-filter .form-group {
    width: 260px;
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   REPORT CARDS
--------------------------------------------------------- */

.report-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.report-card {
    display: flex;
    align-items: center;
    gap: 18px;

    background: #ffffff;

    border: 1px solid #e3e8ef;
    border-radius: 12px;

    padding: 24px;

    box-shadow: 0 5px 18px rgba(15, 39, 71, 0.05);
}

.report-card-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eef3f8;

    font-size: 23px;

    flex-shrink: 0;
}

.report-card span {
    display: block;

    color: #718096;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.report-card h3 {
    margin: 6px 0;

    color: #17365d;

    font-size: 21px;
    font-weight: 700;
}

.report-card small {
    color: #9aa5b1;
    font-size: 12px;
}


/* ---------------------------------------------------------
   TOTAL BALANCE
--------------------------------------------------------- */

.balance-report-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 35px;

    margin-bottom: 24px;

    padding: 30px;

    background: #17365d;

    color: #ffffff;

    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(15, 39, 71, 0.15);
}

.balance-report-card > div:first-child {
    min-width: 270px;
}

.balance-report-card span {
    display: block;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.7px;

    opacity: 0.75;
}

.balance-report-card h2 {
    margin: 8px 0;

    font-size: 32px;
    font-weight: 700;
}

.balance-report-card p {
    margin: 0;

    font-size: 13px;

    opacity: 0.75;
}


/* ---------------------------------------------------------
   BALANCE FORMULA
--------------------------------------------------------- */

.balance-formula {
    display: flex;
    align-items: center;
    gap: 16px;
}

.balance-formula > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.balance-formula strong {
    font-size: 14px;
}

.formula-minus,
.formula-equals {
    font-size: 24px;
    opacity: 0.65;
}


/* ---------------------------------------------------------
   REPORT INFORMATION
--------------------------------------------------------- */

.report-information {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 20px;

    background: #ffffff;

    border: 1px solid #e3e8ef;
    border-radius: 10px;
}

.report-information div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.report-information strong {
    color: #718096;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.report-information span {
    color: #26364a;

    font-size: 14px;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 900px) {

    .report-cards {
        grid-template-columns: 1fr;
    }

    .balance-report-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .balance-formula {
        flex-wrap: wrap;
    }

}


@media (max-width: 600px) {

    .report-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .report-filter .form-group {
        width: 100%;
    }

    .report-filter button {
        width: 100%;
    }

    .report-information {
        flex-direction: column;
    }

}
/* =========================================================
   MODULE 5 — REPORTS
   ========================================================= */

.report-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* =========================================================
   REPORT HEADER
   ========================================================= */

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.report-header h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #172033;
}

.report-header p {
    margin: 0;
    color: #6b7280;
}


/* =========================================================
   YEAR FILTER
   ========================================================= */

.year-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-filter label {
    font-weight: 600;
    color: #374151;
}

.year-filter select {
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    cursor: pointer;
}


/* =========================================================
   SUMMARY CARDS
   ========================================================= */

.report-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.report-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 125px;
    padding: 22px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.06);
}

.report-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    font-size: 24px;
}

.report-card span {
    display: block;
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 14px;
}

.report-card h3 {
    margin: 0;
    color: #111827;
    font-size: 21px;
}


/* Individual card icons */

.income-card .report-card-icon {
    background: #e8eef7;
}

.collected-card .report-card-icon {
    background: #dcfce7;
}

.expense-card .report-card-icon {
    background: #fee2e2;
}

.balance-card .report-card-icon {
    background: #fef3c7;
}


/* =========================================================
   REPORT SECTIONS
   ========================================================= */

.report-section {
    margin-bottom: 25px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 21px;
}

.section-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   FINANCIAL SUMMARY
   ========================================================= */

.financial-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.summary-item {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.summary-item span {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.summary-item strong {
    color: #172033;
    font-size: 18px;
}

.summary-item.highlight {
    background: #172033;
    border-color: #172033;
}

.summary-item.highlight span,
.summary-item.highlight strong {
    color: #ffffff;
}


/* =========================================================
   CHART
   ========================================================= */

.chart-container {
    position: relative;
    width: 100%;
    height: 380px;
}

.chart-container canvas {
    max-width: 100%;
}


/* =========================================================
   REPORT TABLE
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.report-table thead {
    background: #172033;
}

.report-table th {
    padding: 14px 16px;
    color: #ffffff;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}

.report-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
}

.report-table tbody tr:hover {
    background: #f8fafc;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .report-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .financial-summary {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .report-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .year-filter {
        width: 100%;
    }

    .year-filter select {
        flex: 1;
    }

    .report-cards {
        grid-template-columns: 1fr;
    }

    .financial-summary {
        grid-template-columns: 1fr;
    }

    .report-section {
        padding: 18px;
    }

    .chart-container {
        height: 300px;
    }

}
/* =========================================================
   REPORT ACTIONS
========================================================= */

.report-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.btn-print {
    border: none;
    padding: 11px 18px;

    border-radius: 8px;

    background: #17365d;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.btn-print:hover {
    opacity: 0.9;
}
/* =========================================================
   PRINT REPORT
========================================================= */

@media print {

    /*
    ---------------------------------------------------------
    Hide application navigation
    ---------------------------------------------------------
    */

    .sidebar,
    .topbar,
    .report-actions,
    .report-filter,
    .btn-print {
        display: none !important;
    }


    /*
    ---------------------------------------------------------
    Reset page
    ---------------------------------------------------------
    */

    body {
        background: #ffffff !important;
        margin: 0;
        padding: 0;
    }


    .app {
        display: block !important;
    }


    .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    .content {
        padding: 0 !important;
        margin: 0 !important;
    }


    /*
    ---------------------------------------------------------
    Report
    ---------------------------------------------------------
    */

    .report-page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 20px;
    }


    /*
    ---------------------------------------------------------
    Print header
    ---------------------------------------------------------
    */

    .report-header {
        display: block !important;

        text-align: center;

        padding-bottom: 20px;

        margin-bottom: 20px;

        border-bottom: 2px solid #17365d;
    }


    .report-header h2 {
        font-size: 24px;
        color: #000000 !important;
    }


    .report-header p {
        color: #444444 !important;
    }


    /*
    ---------------------------------------------------------
    Cards
    ---------------------------------------------------------
    */

    .report-cards {
        display: grid !important;

        grid-template-columns:
            repeat(4, 1fr) !important;

        gap: 10px;

        margin-bottom: 20px;
    }


    .report-card {
        box-shadow: none !important;

        border: 1px solid #cccccc !important;

        break-inside: avoid;
    }


    /*
    ---------------------------------------------------------
    Sections
    ---------------------------------------------------------
    */

    .report-section {
        box-shadow: none !important;

        border: 1px solid #cccccc !important;

        break-inside: avoid;

        margin-bottom: 20px;
    }


    /*
    ---------------------------------------------------------
    Charts
    ---------------------------------------------------------
    */

    .chart-container {
        height: 350px !important;

        break-inside: avoid;
    }


    /*
    ---------------------------------------------------------
    Table
    ---------------------------------------------------------
    */

    .report-table {
        width: 100% !important;

        border-collapse: collapse;
    }


    .report-table th {
        background: #17365d !important;

        color: #ffffff !important;
    }


    .report-table th,
    .report-table td {
        border: 1px solid #cccccc !important;
    }


    /*
    ---------------------------------------------------------
    Avoid splitting important sections
    ---------------------------------------------------------
    */

    .financial-summary,
    .report-card,
    .chart-container,
    .report-section {
        break-inside: avoid;
    }


    /*
    ---------------------------------------------------------
    Page setup
    ---------------------------------------------------------
    */

    @page {
        size: A4 landscape;
        margin: 12mm;
    }

}
/* =========================================================
   PRINT / REPORT HEADER
========================================================= */

.print-header {
    display: none;
}

@media print {

    .print-header {
        display: flex;

        align-items: center;
        justify-content: center;

        gap: 18px;

        text-align: center;

        margin-bottom: 15px;
    }


    .print-logo {
        width: 60px;
        height: 60px;

        display: flex;
        align-items: center;
        justify-content: center;

        border: 2px solid #17365d;

        border-radius: 50%;

        color: #17365d;

        font-size: 20px;
        font-weight: 800;
    }

    .print-logo img {
    width: 120px;
    height: 100px;
    border-radius: 12px;
    background: #c9a227;
    color: #0b1f3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;

    }

    .print-header-text h1 {
        margin: 0;

        color: #000000;

        font-size: 20px;
        letter-spacing: 1px;
    }


    .print-header-text h2 {
        margin: 4px 0;

        color: #17365d;

        font-size: 15px;
    }


    .print-header-text p {
        margin: 0;

        color: #444444;

        font-size: 12px;
    }

}
.print-meta {
    display: none;
}

@media print {

    .print-meta {
        display: flex;

        justify-content: space-between;

        padding: 10px 0;

        margin-bottom: 18px;

        border-bottom: 1px solid #cccccc;

        font-size: 11px;

        color: #444444;
    }

}
.reference-number {
    font-weight: 700;
    color: #17365d;
    white-space: nowrap;
}
.party-section { margin: 20px 0; padding: 18px; border: 1px solid #d9e0e8; border-radius: 10px; }
.party-section h3 { margin: 0 0 12px; color: #17365d; }
.party-row { display: flex; gap: 10px; margin-bottom: 10px; }
.party-row input { flex: 1; }
.table-action-link { color: #17365d; font-weight: 700; text-decoration: underline; }
.report-brand-header,
.report-screen-heading { display: flex; align-items: center; gap: 16px; }
.report-brand-header { justify-content: center; text-align: center; margin-bottom: 24px; }
.report-brand-header img,
.report-screen-heading img { width: 88px; height: 72px; object-fit: contain; border-radius: 8px; }
.report-brand-header h1 { color: #17365d; font-size: 22px; margin-bottom: 4px; }
.report-brand-header p { color: #68758a; font-weight: 700; letter-spacing: 1px; }
@media print { .no-print { display: none !important; } }

/* =========================================================
   RESPONSIVE AUTOFIT OVERRIDES
   Keeps the existing page structure while allowing every
   module to fit phones, tablets, laptops and wide screens.
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
canvas,
svg {
    max-width: 100%;
}

.main-content,
.content,
.report-page,
.table-card,
.table-wrapper,
.form-card {
    min-width: 0;
}

.dashboard-grid,
.report-cards,
.financial-summary,
.case-summary,
.form-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.dashboard-card,
.report-card,
.summary-item,
.form-group {
    min-width: 0;
}

.page-header,
.table-header,
.form-header,
.report-header,
.report-filter,
.report-actions,
.form-actions {
    flex-wrap: wrap;
}

.form-group input,
.form-group select,
.form-group textarea,
.search-input {
    max-width: 100%;
}

.table-wrapper {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

table {
    max-width: 100%;
}

td {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .sidebar {
        width: 210px;
    }

    .main-content {
        width: calc(100% - 210px);
        margin-left: 210px;
    }

    .content {
        padding: 24px;
    }

    .topbar {
        padding-inline: 24px;
    }

    .report-filter .form-group {
        width: min(100%, 260px);
    }
}

@media (max-width: 700px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        overflow: visible;
    }

    .sidebar-brand {
        padding: 12px;
    }

    .sidebar-brand img {
        width: 88px;
        height: 68px;
        object-fit: contain;
    }

    .brand-text {
        margin: 0 auto !important;
        padding: 4px 12px 10px !important;
    }

    .navigation {
        display: flex;
        gap: 6px;
        padding: 10px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .nav-link {
        flex: 0 0 auto;
        min-width: max-content;
        margin: 0;
    }

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

    .topbar {
        height: auto;
        min-height: 72px;
        padding: 14px 16px;
    }

    .topbar h1 {
        font-size: clamp(18px, 5vw, 22px);
    }

    .user-area {
        margin-left: auto;
    }

    .content {
        padding: 16px;
    }

    .welcome,
    .dashboard-card,
    .form-card,
    .report-card,
    .report-section {
        padding: 18px;
    }

    .page-header,
    .table-header,
    .form-header,
    .report-header {
        align-items: stretch;
        gap: 12px;
    }

    .page-header .form-actions,
    .report-actions,
    .report-filter,
    .report-filter .form-group,
    .search-input {
        width: 100%;
    }

    .page-header .form-actions > *,
    .report-actions > *,
    .report-filter > button {
        flex: 1 1 150px;
    }

    .party-row {
        align-items: stretch;
        flex-direction: column;
    }

    .report-brand-header,
    .report-screen-heading {
        flex-direction: column;
        text-align: center;
    }

    .report-brand-header h1 {
        font-size: clamp(17px, 5vw, 22px);
    }
}

@media (max-width: 420px) {
    .topbar p,
    .user-area > div:last-child {
        display: none;
    }

    .content {
        padding: 12px;
    }

    .form-card,
    .welcome,
    .dashboard-card,
    .report-card,
    .report-section {
        padding: 14px;
        border-radius: 10px;
    }

    .form-actions,
    .report-actions {
        width: 100%;
        flex-direction: column;
    }

    .form-actions > *,
    .report-actions > * {
        width: 100%;
    }

    th,
    td {
        padding: 10px 12px;
    }
}

/* =========================================================
   BRIGHT BLUE GRADIENT THEME
   ========================================================= */

.sidebar {
    background:
        radial-gradient(circle at 16% 5%, rgba(59, 209, 255, .34), transparent 24%),
        radial-gradient(circle at 92% 82%, rgba(90, 94, 255, .28), transparent 32%),
        linear-gradient(165deg, #0788e8 0%, #0756c9 43%, #1734a7 100%);
    box-shadow: 8px 0 30px rgba(3, 65, 162, .22);
}

.sidebar-brand {
    background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.035));
    border-bottom-color: rgba(255,255,255,.22);
}

.sidebar-logo-frame {
    border-color: rgba(255,255,255,.92);
    box-shadow: 0 12px 30px rgba(3,45,123,.30), 0 0 0 5px rgba(107,224,255,.25);
}

.sidebar-brand:hover .sidebar-logo-frame {
    box-shadow: 0 16px 38px rgba(3,45,123,.38), 0 0 0 7px rgba(107,224,255,.30);
}

.nav-link {
    color: #eff9ff;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #fff;
    border-color: rgba(255,255,255,.20);
    background: linear-gradient(90deg, rgba(255,255,255,.20), rgba(112,222,255,.13));
    box-shadow: 0 8px 20px rgba(0,37,115,.18);
}

.nav-link.active {
    color: #073c96;
    border-color: rgba(255,255,255,.65);
    background: linear-gradient(120deg, #ffffff 0%, #bcefff 48%, #7bd7ff 100%);
    box-shadow: 0 10px 24px rgba(0,39,122,.24);
}

.dashboard-hero {
    background:
        radial-gradient(circle at 14% 18%, rgba(86, 225, 255, .48), transparent 27%),
        radial-gradient(circle at 82% 84%, rgba(126, 99, 255, .38), transparent 31%),
        linear-gradient(125deg, #0498ef 0%, #075bd7 48%, #3739bd 100%);
    box-shadow: 0 24px 58px rgba(8, 78, 190, .28);
}

.dashboard-hero::before {
    border-color: rgba(255,255,255,.11);
}

.hero-eyebrow,
.dashboard-section-heading span {
    color: #35cfff;
}

.dashboard-hero .hero-eyebrow {
    color: #d5f8ff;
}

.hero-copy p {
    color: #edf9ff;
}

.hero-btn-primary {
    color: #063b92;
    background: linear-gradient(120deg, #ffffff, #a8efff);
    box-shadow: 0 10px 26px rgba(2,47,126,.24);
}

.hero-btn-primary:hover {
    background: linear-gradient(120deg, #fff, #6edfff);
}

.dashboard-section-heading h2 {
    color: #073f9a;
}

.dashboard-modules .dashboard-card {
    border: 1px solid rgba(32, 126, 232, .16);
    background: linear-gradient(145deg, #ffffff 0%, #eef9ff 100%);
    box-shadow: 0 10px 28px rgba(12, 83, 171, .10);
}

.dashboard-modules .dashboard-card:nth-child(2n) {
    background: linear-gradient(145deg, #ffffff 0%, #f2f0ff 100%);
}

.dashboard-modules .dashboard-card:nth-child(3n) {
    background: linear-gradient(145deg, #ffffff 0%, #eafcff 100%);
}

.dashboard-modules .dashboard-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 18px 38px rgba(6, 96, 196, .18);
}

.dashboard-modules .dashboard-card::after {
    border-color: rgba(36, 166, 238, .10);
}

.dashboard-modules .card-icon {
    color: #075acb;
    background: linear-gradient(145deg, #dff7ff, #acdfff);
    box-shadow: inset 0 0 0 1px rgba(24, 126, 215, .12);
}

.dashboard-modules .dashboard-card:nth-child(2n) .card-icon {
    color: #573ac8;
    background: linear-gradient(145deg, #eeeaff, #d4c8ff);
}

.dashboard-modules .dashboard-card h3 {
    color: #073f9a;
}

.dashboard-modules .card-link {
    color: #0876d8;
}

.hero-dots span.is-active {
    background: #7ee9ff;
}

@media (max-width: 700px) {
    .nav-link .nav-label {
        background: linear-gradient(120deg, #075acb, #343cb9);
    }
}

/* Matching red gradient sidebar and dashboard modules */
.sidebar {
    background:
        radial-gradient(circle at 14% 7%, rgba(255, 150, 150, .34), transparent 25%),
        radial-gradient(circle at 88% 82%, rgba(255, 74, 110, .25), transparent 34%),
        linear-gradient(165deg, #f02b3a 0%, #c20f2f 46%, #79051e 100%);
    box-shadow: 8px 0 30px rgba(119, 5, 30, .26);
}

.sidebar-brand {
    background: linear-gradient(145deg, rgba(255,255,255,.19), rgba(255,255,255,.04));
}

.nav-link {
    min-height: 50px;
    padding: 14px 16px;
    color: #fff4f5;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

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

.nav-link:hover {
    background: linear-gradient(90deg, rgba(255,255,255,.23), rgba(255,174,187,.14));
    box-shadow: 0 8px 20px rgba(94, 0, 20, .22);
}

.nav-link.active {
    color: #8f0a25;
    background: linear-gradient(120deg, #ffffff 0%, #ffd8de 50%, #ffadb9 100%);
    box-shadow: 0 10px 24px rgba(91, 0, 22, .27);
}

.sidebar-brand .brand-text strong {
    font-size: 22px;
}

.sidebar-brand .brand-text em {
    font-size: 12px;
}

.dashboard-section-heading h2 {
    color: #8e1028;
    font-size: clamp(25px, 3vw, 32px);
}

.dashboard-section-heading span {
    color: #d01839;
    font-size: 14px;
}

.dashboard-section-heading p {
    color: #5f2b35;
    font-size: 15px;
}

.dashboard-modules .dashboard-card,
.dashboard-modules .dashboard-card:nth-child(2n),
.dashboard-modules .dashboard-card:nth-child(3n) {
    border-color: rgba(183, 16, 48, .25);
    background:
        radial-gradient(circle at 100% 100%, rgba(255, 185, 196, .30), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #fff0f2 52%, #ffdce2 100%);
    box-shadow: 0 10px 28px rgba(137, 8, 36, .12);
}

.dashboard-modules .dashboard-card:hover {
    border-color: #e22d4d;
    box-shadow: 0 18px 40px rgba(151, 8, 40, .20);
}

.dashboard-modules .dashboard-card::after {
    border-color: rgba(210, 24, 58, .12);
}

.dashboard-modules .card-icon,
.dashboard-modules .dashboard-card:nth-child(2n) .card-icon {
    width: 56px;
    height: 56px;
    color: #a70b2b;
    background: linear-gradient(145deg, #ffe8ec, #ffb9c5);
    font-size: 26px;
    box-shadow: inset 0 0 0 1px rgba(172, 12, 42, .15);
}

.dashboard-modules .dashboard-card h3 {
    color: #8e1028;
    font-size: 20px;
    line-height: 1.35;
}

.dashboard-modules .dashboard-card p {
    color: #60414a;
    font-size: 15px;
    line-height: 1.7;
}

.dashboard-modules .card-link {
    color: #bd1233;
    font-size: 14px;
}

@media (max-width: 700px) {
    .nav-link .nav-label {
        background: linear-gradient(120deg, #d51b3b, #85071f);
        font-size: 14px;
    }

    .dashboard-modules .dashboard-card h3 { font-size: 18px; }
    .dashboard-modules .dashboard-card p { font-size: 14px; }
}

/* Soft light-red dashboard palette */
.sidebar {
    background:
        radial-gradient(circle at 12% 6%, rgba(255,255,255,.32), transparent 27%),
        radial-gradient(circle at 90% 84%, rgba(255,215,221,.28), transparent 36%),
        linear-gradient(165deg, #ff7c89 0%, #f35b70 48%, #dc3655 100%);
    box-shadow: 8px 0 30px rgba(182, 43, 70, .20);
}

.sidebar-brand {
    background: linear-gradient(145deg, rgba(255,255,255,.23), rgba(255,226,231,.08));
}

.nav-link:hover {
    background: linear-gradient(90deg, rgba(255,255,255,.27), rgba(255,232,236,.14));
}

.nav-link.active {
    color: #9c2940;
    background: linear-gradient(120deg, #fff 0%, #ffe9ed 52%, #ffd0d8 100%);
}

.dashboard-hero {
    background:
        radial-gradient(circle at 13% 17%, rgba(255,255,255,.24), transparent 28%),
        radial-gradient(circle at 83% 83%, rgba(255,210,219,.32), transparent 34%),
        linear-gradient(125deg, #ff8a96 0%, #f06075 50%, #df3f5d 100%);
    box-shadow: 0 24px 58px rgba(185, 45, 73, .22);
}

.dashboard-hero::before {
    border-color: rgba(255,255,255,.16);
}

.dashboard-hero .hero-eyebrow,
.hero-copy h2,
.hero-copy p {
    color: #ffffff;
}

.hero-gallery {
    border-color: rgba(255,255,255,.60);
    box-shadow: 0 18px 38px rgba(143, 30, 54, .22);
}

.hero-dots {
    background: rgba(153, 31, 56, .66);
}

.hero-dots span.is-active {
    background: #ffffff;
}

.topbar h1,
.page-header h2,
.table-header h3 {
    color: #9d2941;
}

.dashboard-section-heading h2 {
    color: #a32942;
}

.dashboard-section-heading span {
    color: #df4963;
}

.dashboard-modules .dashboard-card,
.dashboard-modules .dashboard-card:nth-child(2n),
.dashboard-modules .dashboard-card:nth-child(3n) {
    border-color: rgba(232, 91, 116, .30);
    background:
        radial-gradient(circle at 100% 100%, rgba(255, 186, 198, .26), transparent 35%),
        linear-gradient(145deg, #fffafa 0%, #fff0f3 54%, #ffe1e7 100%);
    box-shadow: 0 10px 28px rgba(187, 53, 78, .10);
}

.dashboard-modules .dashboard-card:hover {
    border-color: #f06f84;
    box-shadow: 0 18px 40px rgba(184, 48, 75, .17);
}

.dashboard-modules .card-icon,
.dashboard-modules .dashboard-card:nth-child(2n) .card-icon {
    color: #b52f49;
    background: linear-gradient(145deg, #fff1f4, #ffcbd4);
}

.dashboard-modules .dashboard-card h3,
.dashboard-modules .card-link {
    color: #a82740;
}

.btn-primary {
    background: linear-gradient(120deg, #f36a7d, #d93a57);
}

.btn-primary:hover {
    background: linear-gradient(120deg, #e9536b, #c82c4b);
}

@media (max-width: 700px) {
    .nav-link .nav-label {
        background: linear-gradient(120deg, #f06b7d, #cc3451);
    }
}

/* =========================================================
   DASHBOARD FRONT PAGE
========================================================= */

body {
    background-color: #f5f2ed;
    background-image: radial-gradient(circle at 92% 8%, rgba(201, 162, 39, .10), transparent 28%),
                      linear-gradient(180deg, #f9f8f5 0%, #f3f0ea 100%);
}

.dashboard-hero {
    min-height: 390px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    border-radius: 24px;
    background: linear-gradient(125deg, #07182d 0%, #102f52 58%, #173b67 100%);
    box-shadow: 0 22px 55px rgba(7, 24, 45, .20);
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: auto auto -160px -100px;
    width: 380px;
    height: 380px;
    border: 60px solid rgba(201, 162, 39, .08);
    border-radius: 50%;
}

.hero-copy {
    align-self: center;
    position: relative;
    z-index: 2;
    padding: clamp(34px, 6vw, 70px);
    color: #fff;
}

.hero-eyebrow,
.dashboard-section-heading span {
    display: block;
    margin-bottom: 10px;
    color: #e2bd4e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.hero-copy h2 {
    max-width: 640px;
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.8px;
}

.hero-copy p {
    max-width: 590px;
    color: #dce5ef;
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.hero-btn:hover { transform: translateY(-2px); }
.hero-btn-primary { background: #c9a227; color: #07182d; box-shadow: 0 8px 22px rgba(201, 162, 39, .22); }
.hero-btn-primary:hover { background: #dfbb4e; }
.hero-btn-secondary { border-color: rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.06); }
.hero-btn-secondary:hover { background: rgba(255,255,255,.13); }

.hero-gallery {
    position: relative;
    width: calc(100% - 24px);
    max-width: 430px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    align-self: center;
    justify-self: center;
    margin: 24px 24px 24px 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(0,0,0,.22);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 1s ease, transform 5s ease;
}

.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 16px;
    display: flex;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 20px;
    background: rgba(7, 24, 45, .7);
}

.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); transition: width .3s ease, background .3s ease; }
.hero-dots span.is-active { width: 20px; border-radius: 8px; background: #d9b343; }

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 2px 18px;
}

.dashboard-section-heading h2 { color: #0b1f3a; font-size: clamp(21px, 3vw, 28px); }
.dashboard-section-heading p { color: #758195; font-size: 13px; }
.dashboard-modules { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.dashboard-modules .dashboard-card { position: relative; min-height: 210px; overflow: hidden; }
.dashboard-modules .dashboard-card::after { content: ""; position: absolute; right: -28px; bottom: -32px; width: 90px; height: 90px; border: 18px solid rgba(201,162,39,.08); border-radius: 50%; }
.dashboard-modules .card-icon { color: #b08a17; background: linear-gradient(145deg, #fff8dc, #f0e2aa); }

@media (max-width: 1050px) {
    .dashboard-hero { grid-template-columns: 1fr 320px; }
}

@media (max-width: 820px) {
    .dashboard-hero { grid-template-columns: 1fr; }
    .hero-copy { padding-bottom: 28px; }
    .hero-gallery { width: min(420px, calc(100% - 44px)); min-height: 0; margin: 0 22px 22px; }
}

@media (max-width: 520px) {
    .dashboard-hero { min-height: auto; border-radius: 16px; }
    .hero-copy { padding: 28px 22px 24px; }
    .hero-copy h2 { font-size: clamp(32px, 11vw, 43px); }
    .hero-gallery { width: calc(100% - 28px); min-height: 0; margin: 0 14px 14px; border-radius: 12px; }
    .dashboard-section-heading { display: block; }
    .dashboard-section-heading p { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .dashboard-card, .hero-btn { transition: none !important; }
}

/* =========================================================
   SIDEBAR BRAND IDENTITY
========================================================= */

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    position: relative;
    padding: 24px 18px 21px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(201,162,39,.06));
    text-align: center;
}

.sidebar-logo-frame {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    padding: 5px;
    border: 1px solid rgba(224, 187, 76, .65);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 0 0 5px rgba(201,162,39,.09);
    transition: transform .3s ease, box-shadow .3s ease;
}

.sidebar-brand:hover .sidebar-logo-frame {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,.34), 0 0 0 6px rgba(201,162,39,.13);
}

.sidebar-brand .sidebar-logo-frame img {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.sidebar-brand .brand-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15;
}

.sidebar-brand .brand-text small {
    margin-bottom: 5px;
    color: #aab9cc;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.sidebar-brand .brand-text strong {
    width: 100%;
    margin: 0 !important;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: .3px;
    text-transform: none;
}

.sidebar-brand .brand-text em {
    margin-top: 6px;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

@media (max-width: 900px) and (min-width: 701px) {
    .sidebar-logo-frame { width: 90px; height: 90px; }
    .sidebar-brand .brand-text strong { font-size: 17px; }
}

@media (max-width: 700px) {
    .sidebar-brand {
        flex-direction: row;
        justify-content: center;
        gap: 14px;
        padding: 12px 16px;
        text-align: left;
    }

    .sidebar-logo-frame {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
    }

    .sidebar-brand .brand-text {
        width: auto;
        align-items: flex-start;
    }

    .sidebar-brand .brand-text strong { font-size: 18px; text-align: left !important; }
    .sidebar-brand .brand-text em { letter-spacing: 2px; }
}

/* Preserve the desktop structure on narrow screens: the sidebar remains
   fixed and becomes an icon rail instead of moving above the content. */
@media (max-width: 700px) {
    .app {
        display: flex !important;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        width: 82px !important;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .main-content {
        width: calc(100% - 82px) !important;
        min-width: 0;
        margin-left: 82px !important;
    }

    .sidebar-brand {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 15px 8px !important;
    }

    .sidebar-logo-frame {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
        padding: 3px;
    }

    .sidebar-brand .brand-text {
        display: none;
    }

    .navigation {
        display: block !important;
        padding: 12px 8px;
        overflow: visible;
    }

    .nav-link {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 7px;
        padding: 10px 6px;
    }

    .nav-link .nav-icon {
        width: auto;
        flex: 0 0 auto;
        font-size: 20px;
    }

    .nav-link .nav-label {
        position: fixed;
        left: 72px;
        z-index: 1200;
        width: max-content;
        max-width: 220px;
        padding: 8px 10px;
        border-radius: 6px;
        color: #fff;
        background: #07182d;
        box-shadow: 0 8px 20px rgba(0,0,0,.22);
        font-size: 12px;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-6px);
        transition: opacity .18s ease, transform .18s ease;
    }

    .nav-link:hover .nav-label,
    .nav-link:focus-visible .nav-label {
        opacity: 1;
        transform: translateX(0);
    }

    .topbar {
        width: 100%;
        padding: 13px 15px;
    }

    .content {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .sidebar { width: 68px !important; }
    .main-content { width: calc(100% - 68px) !important; margin-left: 68px !important; }
    .sidebar-logo-frame { width: 50px; height: 50px; flex-basis: 50px; }
    .navigation { padding-inline: 6px; }
    .nav-link .nav-label { left: 61px; }
    .content { padding: 10px; }
    .topbar { padding-inline: 11px; }
}

/* Final blue colour theme: sidebar and dashboard hero */
.sidebar {
    background: linear-gradient(125deg, #07182d 0%, #102f52 58%, #173b67 100%);
}

.sidebar {
    box-shadow: 8px 0 30px rgba(3, 65, 162, .22);
}

.dashboard-hero {
    background: linear-gradient(125deg, #07182d 0%, #102f52 58%, #173b67 100%);
    box-shadow: 0 22px 55px rgba(7, 24, 45, .20);
}

.sidebar-brand,
.sidebar-brand .brand-text strong,
.sidebar-brand .brand-text em,
.nav-link,
.nav-link:hover,
.nav-link.active,
.dashboard-hero .hero-eyebrow,
.dashboard-hero .hero-copy,
.dashboard-hero .hero-copy h2,
.dashboard-hero .hero-copy p {
    color: #ffffff;
}

.nav-link:hover,
.nav-link.active {
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .16);
    box-shadow: none;
}

.dashboard-hero::before {
    border-color: rgba(255, 255, 255, .12);
}

@media (max-width: 700px) {
    .nav-link .nav-label {
        color: #ffffff;
        background: #102f52;
    }
}

/* Simple dashboard cards without decorative colour styling */
.dashboard-modules .dashboard-card,
.dashboard-modules .dashboard-card:nth-child(2n),
.dashboard-modules .dashboard-card:nth-child(3n) {
    border: 1px solid #e2e6eb;
    background: #ffffff;
    box-shadow: none;
}

.dashboard-modules .dashboard-card:hover {
    border-color: #e2e6eb;
    box-shadow: none;
    transform: none;
}

.dashboard-modules .dashboard-card::after {
    display: none;
}

.dashboard-modules .card-icon,
.dashboard-modules .dashboard-card:nth-child(2n) .card-icon {
    color: #0b1f3a;
    background: transparent;
    box-shadow: none;
}

.dashboard-modules .dashboard-card h3,
.dashboard-modules .card-link {
    color: #0b1f3a;
}

.dashboard-modules .dashboard-card p {
    color: #5f6875;
}

/* Blue accents across the interface */
.topbar h1,
.page-header h2,
.table-header h3,
.dashboard-section-heading h2,
.dashboard-section-heading span {
    color: #173b67;
}

.btn-primary,
.hero-btn-primary {
    color: #ffffff;
    border-color: #173b67;
    background: #173b67;
    box-shadow: none;
}

.btn-primary:hover,
.hero-btn-primary:hover {
    color: #ffffff;
    border-color: #102f52;
    background: #102f52;
}

.card-link,
.table-action-link {
    color: #173b67;
}

.hero-dots span.is-active {
    background: #173b67;
}

/* Matching Case Report header for browser printing and exported PDF */
@media print {
    .case-report-print-header {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        margin-bottom: 8px;
    }

    .case-report-print-header .print-logo {
        width: 150px;
        height: 120px;
        border: 0;
        border-radius: 0;
    }

    .case-report-print-header .print-logo img {
        display: block;
        width: 135px;
        height: 115px;
        object-fit: contain;
        border-radius: 0;
        background: transparent;
    }

    .case-report-print-header .print-header-text {
        text-align: center;
    }

    .case-report-print-meta {
        display: flex;
        justify-content: space-between;
    }
}
