:root {
    --forest-950: #004c75;
    --forest-900: #005b88;
    --forest-800: #0073ad;
    --forest-700: #0784bd;
    --mint-100: #e3f3fa;
    --mint-50: #f1f9fc;
    --gold-500: #f47b35;
    --gold-100: #fff0e6;
    --ink-900: #15313f;
    --ink-700: #3b5360;
    --ink-500: #6b7e87;
    --line: #dbe7ec;
    --surface: #ffffff;
    --canvas: #f4f8fa;
    --danger: #a43a34;
    --danger-soft: #fff1ef;
    --success: #24745c;
    --success-soft: #e8f6f0;
    --shadow-card: 0 24px 70px rgba(0, 76, 117, 0.13);
    --shadow-soft: 0 10px 35px rgba(0, 76, 117, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink-900);
    background: var(--canvas);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ink-900);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

main {
    flex: 1;
}

.shell {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    left: 16px;
    top: 12px;
    transform: translateY(-180%);
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--forest-950);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    min-height: 86px;
    display: flex;
    align-items: center;
    color: var(--forest-950);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 3px 18px rgba(0, 76, 117, 0.06);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--forest-950);
    text-decoration: none;
}

.brand-logo {
    width: 154px;
    height: auto;
    display: block;
}

.portal-label {
    padding-left: 18px;
    border-left: 1px solid var(--line);
    color: var(--ink-500);
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.back-link,
.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    border: 0;
    color: var(--forest-800);
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.back-link:hover,
.logout-button:hover {
    color: var(--forest-950);
}

.logout-button {
    padding: 10px 15px;
    border: 1px solid #b9d8e7;
    border-radius: 10px;
}

.site-footer {
    min-height: 78px;
    display: flex;
    align-items: center;
    color: var(--ink-500);
    background: #fff;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 27px;
    height: 2px;
    content: "";
    background: currentColor;
}

/* Login */

.login-page {
    background: var(--forest-950);
}

.login-page .site-footer {
    color: rgba(255, 255, 255, 0.52);
    background: #00466c;
    border-color: rgba(255, 255, 255, 0.08);
}

.login-section {
    position: relative;
    min-height: calc(100vh - 164px);
    display: flex;
    align-items: center;
    padding: 64px 0 72px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 74% 38%, rgba(85, 184, 224, 0.22), transparent 29%),
        linear-gradient(118deg, #00466c 0%, #006699 62%, #007bb5 100%);
}

.login-section::before,
.login-section::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.login-section::before {
    width: 520px;
    height: 520px;
    left: -270px;
    bottom: -340px;
}

.login-section::after {
    width: 760px;
    height: 760px;
    right: -470px;
    top: -500px;
}

.login-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
    gap: clamp(70px, 10vw, 150px);
    align-items: center;
}

.login-intro h1 {
    max-width: 600px;
    margin: 22px 0 23px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(47px, 5.1vw, 72px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.login-intro h1 em {
    color: var(--gold-500);
    font-weight: 400;
}

.login-intro > p {
    max-width: 530px;
    margin: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 17px;
    line-height: 1.75;
}

.trust-row {
    display: flex;
    gap: 34px;
    margin-top: 43px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(244, 123, 53, 0.32);
    border-radius: 50%;
    color: var(--gold-500);
    background: rgba(244, 123, 53, 0.1);
    font-weight: 700;
}

.trust-item > span:last-child {
    display: grid;
    gap: 2px;
}

.trust-item strong {
    font-size: 13px;
}

.trust-item small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.login-card {
    padding: 35px 38px 31px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: var(--radius-xl);
    color: var(--ink-900);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 34px 100px rgba(0, 47, 75, 0.28);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--forest-800);
    background: var(--mint-100);
    font-size: 22px;
}

.card-heading h2 {
    margin: 0 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
}

.card-heading p {
    margin: 0;
    color: var(--ink-500);
    font-size: 13px;
}

.field-group {
    margin-top: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-700);
    font-size: 12px;
    font-weight: 750;
}

.input-shell {
    position: relative;
}

.input-shell input {
    width: 100%;
    min-height: 52px;
    padding: 0 84px 0 45px;
    border: 1px solid #d7dfdc;
    border-radius: var(--radius-md);
    outline: 0;
    color: var(--ink-900);
    background: #fbfcfc;
    font-size: 15px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-shell input:first-of-type:not([type="password"]) {
    padding-right: 15px;
}

.input-shell input:focus {
    border-color: var(--forest-700);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 115, 173, 0.12);
}

.input-shell input.input-validation-error {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.input-icon {
    position: absolute;
    z-index: 1;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c9994;
    font-weight: 700;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px 8px;
    border: 0;
    color: var(--forest-700);
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.field-hint,
.field-error {
    display: block;
    margin-top: 7px;
    color: var(--ink-500);
    font-size: 11px;
}

.field-error {
    color: var(--danger);
}

.field-error:empty {
    display: none;
}

.validation-summary {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #efc8c2;
    border-radius: 10px;
    color: #7c2c28;
    background: var(--danger-soft);
    font-size: 12px;
    line-height: 1.5;
}

.validation-summary.validation-summary-valid {
    display: none;
}

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.primary-button {
    width: 100%;
    min-height: 54px;
    margin-top: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--radius-md);
    color: #fff;
    background: var(--forest-800);
    box-shadow: 0 8px 22px rgba(0, 115, 173, 0.23);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    background: var(--forest-900);
    box-shadow: 0 10px 28px rgba(0, 91, 136, 0.3);
}

.primary-button:focus-visible,
.back-link:focus-visible,
.logout-button:focus-visible,
.refresh-link:focus-visible,
.password-toggle:focus-visible {
    outline: 3px solid rgba(244, 123, 53, 0.75);
    outline-offset: 3px;
}

.help-note {
    display: flex;
    gap: 11px;
    margin-top: 24px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
    color: var(--ink-500);
}

.help-note > span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #cbd6d1;
    border-radius: 50%;
    color: var(--forest-700);
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 700;
}

.help-note p {
    margin: 0;
    font-size: 11px;
    line-height: 1.65;
}

.help-note strong {
    color: var(--ink-700);
}

.privacy-note {
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    text-align: center;
}

/* Portal */

.portal-section {
    padding: 48px 0 70px;
    background:
        linear-gradient(180deg, rgba(227, 243, 250, 0.8), rgba(244, 248, 250, 0) 240px),
        var(--canvas);
}

.dashboard-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 27px;
}

.dashboard-heading h1 {
    margin: 8px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.dashboard-heading p {
    margin: 0;
    color: var(--ink-500);
    font-size: 13px;
}

.refresh-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--forest-800);
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 76, 117, 0.05);
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.print-button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--forest-800);
    border-radius: 10px;
    color: #fff;
    background: var(--forest-800);
    box-shadow: 0 5px 16px rgba(0, 115, 173, 0.17);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.print-button:hover {
    background: var(--forest-900);
}

.print-button:focus-visible {
    outline: 3px solid rgba(244, 123, 53, 0.72);
    outline-offset: 3px;
}

.print-header {
    display: none;
}

.account-strip {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.account-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--forest-700);
    background: var(--mint-100);
    font-size: 22px;
}

.account-detail {
    display: grid;
    gap: 4px;
}

.account-detail small {
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-detail strong {
    color: var(--ink-900);
    font-size: 14px;
}

.account-divider {
    width: 1px;
    height: 38px;
    margin-inline: 10px;
    background: var(--line);
}

.summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
    margin-top: 18px;
}

.total-card,
.info-card {
    min-height: 142px;
    border-radius: var(--radius-lg);
}

.total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 27px 30px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.1), transparent 34%),
        var(--forest-900);
    box-shadow: 0 17px 45px rgba(0, 91, 136, 0.18);
}

.total-card > div {
    display: grid;
    gap: 9px;
}

.total-card small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.total-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.total-card strong span {
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.status-pill > span {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--forest-950);
    background: var(--gold-500);
    font-size: 10px;
}

.total-card.is-clear {
    background: var(--success);
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 28px 25px;
    border: 1px solid #eadfca;
    color: #554a36;
    background: linear-gradient(145deg, #fffcf5, var(--gold-100));
}

.info-card-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--gold-500);
    font-family: Georgia, serif;
    font-weight: 700;
}

.info-card strong {
    font-size: 13px;
}

.info-card p {
    margin: 8px 0 0;
    color: #796e5a;
    font-size: 11px;
    line-height: 1.65;
}

.debt-panel {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.panel-heading {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 25px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
    margin: 0 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.panel-heading p,
.currency-note {
    margin: 0;
    color: var(--ink-500);
    font-size: 11px;
}

.currency-note {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--mint-50);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 16px 25px;
    border-bottom: 1px solid #edf1ef;
    text-align: left;
}

th {
    color: var(--ink-500);
    background: #fafcfb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: var(--mint-50);
}

.amount-column {
    text-align: right;
    white-space: nowrap;
    font-weight: 750;
}

.invoice-number {
    color: var(--ink-700);
    font-variant-numeric: tabular-nums;
}

.credit-amount {
    color: var(--success);
}

.type-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 0 3px var(--gold-100);
    vertical-align: middle;
}

.mobile-debt-list {
    display: none;
}

.empty-state {
    display: grid;
    justify-items: center;
    padding: 58px 24px 66px;
    text-align: center;
}

.empty-icon,
.message-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--success);
    background: var(--success-soft);
    font-size: 22px;
    font-weight: 800;
}

.empty-state h3 {
    margin: 16px 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.empty-state p {
    max-width: 460px;
    margin: 0;
    color: var(--ink-500);
    font-size: 13px;
    line-height: 1.65;
}

.support-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 18px;
    padding: 17px 21px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--ink-700);
    background: rgba(255, 255, 255, 0.72);
}

.support-bar > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--forest-700);
    background: var(--mint-100);
    font-weight: 750;
}

.support-bar p {
    display: grid;
    gap: 3px;
    margin: 0;
}

.support-bar strong {
    font-size: 12px;
}

.support-bar small {
    color: var(--ink-500);
    font-size: 10px;
}

.support-bar > a {
    color: var(--forest-700);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.message-section {
    min-height: calc(100vh - 164px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: var(--canvas);
}

.message-card {
    max-width: 570px;
    margin: 0 auto;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.message-icon {
    margin: 0 auto;
    color: var(--danger);
    background: var(--danger-soft);
}

.message-card h1 {
    margin: 20px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.message-card p {
    margin: 0;
    color: var(--ink-500);
    line-height: 1.65;
}

.message-card small {
    display: block;
    margin-top: 12px;
    color: var(--ink-500);
}

.inline-button {
    width: auto;
    margin-top: 26px;
}

@media (max-width: 900px) {
    .login-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .login-intro {
        text-align: center;
    }

    .login-intro > p {
        margin-inline: auto;
    }

    .eyebrow {
        justify-content: center;
    }

    .trust-row {
        justify-content: center;
    }

    .login-card-wrap {
        width: min(470px, 100%);
        margin-inline: auto;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .shell {
        width: min(100% - 30px, 1160px);
    }

    .site-header {
        min-height: 74px;
    }

    .brand-logo {
        width: 132px;
    }

    .portal-label,
    .back-link {
        display: none;
    }

    .site-footer {
        padding: 20px 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .login-section {
        min-height: auto;
        align-items: start;
        padding: 42px 0 55px;
    }

    .login-grid {
        gap: 34px;
    }

    .login-intro h1 {
        margin-top: 15px;
        font-size: 40px;
    }

    .login-intro > p {
        font-size: 15px;
        line-height: 1.65;
    }

    .trust-row {
        display: none;
    }

    .login-card {
        padding: 28px 22px 25px;
        border-radius: 20px;
    }

    .card-heading {
        margin-bottom: 20px;
    }

    .portal-section {
        padding: 34px 0 50px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 21px;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions > * {
        flex: 1;
    }

    .dashboard-heading .eyebrow {
        justify-content: flex-start;
    }

    .dashboard-heading h1 {
        font-size: 37px;
    }

    .refresh-link {
        align-self: stretch;
        justify-content: center;
    }

    .account-strip {
        align-items: flex-start;
        padding: 18px;
        flex-wrap: wrap;
    }

    .account-divider {
        display: none;
    }

    .account-address {
        width: calc(100% - 64px);
        margin-left: 64px;
        margin-top: -13px;
    }

    .total-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .total-card strong {
        font-size: 39px;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

    .table-wrap {
        display: none;
    }

    .mobile-debt-list {
        display: grid;
        gap: 0;
    }

    .mobile-debt-card {
        padding: 18px 20px;
        border-bottom: 1px solid var(--line);
    }

    .mobile-debt-card:last-child {
        border-bottom: 0;
    }

    .mobile-card-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        font-size: 12px;
    }

    .mobile-card-top strong {
        white-space: nowrap;
    }

    .mobile-debt-card dl {
        display: flex;
        gap: 28px;
        margin: 15px 0 0 17px;
    }

    .mobile-debt-card dl div {
        display: grid;
        gap: 3px;
    }

    .mobile-debt-card dt {
        color: var(--ink-500);
        font-size: 9px;
        font-weight: 750;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .mobile-debt-card dd {
        margin: 0;
        color: var(--ink-700);
        font-size: 11px;
    }

    .support-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-bar > a {
        margin-left: 44px;
    }

    .message-card {
        padding: 38px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 13mm;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        display: block;
        color: #15313f;
        background: #fff;
    }

    .site-header,
    .site-footer,
    .dashboard-actions,
    .eyebrow,
    .info-card,
    .support-bar {
        display: none !important;
    }

    main,
    .portal-section {
        padding: 0;
        background: #fff;
    }

    .shell {
        width: 100%;
        max-width: none;
    }

    .print-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 9mm;
        padding-bottom: 5mm;
        border-bottom: 2px solid #0073ad;
    }

    .print-header img {
        width: 126px;
        height: auto;
    }

    .print-header > div {
        display: grid;
        gap: 3px;
        text-align: right;
    }

    .print-header strong {
        color: #005b88;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 17pt;
    }

    .print-header span {
        color: #6b7e87;
        font-size: 8pt;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .dashboard-heading {
        margin: 0 0 5mm;
    }

    .dashboard-heading h1 {
        display: none;
    }

    .dashboard-heading p {
        color: #6b7e87;
        font-size: 8pt;
    }

    .account-strip {
        min-height: 0;
        padding: 4mm 5mm;
        border-color: #cadbe3;
        border-radius: 8px;
        background: #f6fbfd;
        box-shadow: none;
    }

    .account-mark {
        display: none;
    }

    .summary-grid {
        display: block;
        margin-top: 4mm;
    }

    .total-card {
        min-height: 0;
        padding: 5mm 6mm;
        border: 1px solid #0073ad;
        border-left: 5px solid #f47b35;
        border-radius: 8px;
        color: #15313f;
        background: #fff;
        box-shadow: none;
    }

    .total-card small,
    .status-pill {
        color: #3b5360;
    }

    .total-card strong {
        font-size: 26pt;
    }

    .status-pill {
        border-color: #cadbe3;
        background: #f1f9fc;
    }

    .status-pill > span {
        color: #fff;
        background: #f47b35;
    }

    .debt-panel {
        margin-top: 5mm;
        overflow: visible;
        border-radius: 8px;
        box-shadow: none;
    }

    .panel-heading {
        min-height: 0;
        padding: 4mm 5mm;
    }

    .panel-heading h2 {
        font-size: 14pt;
    }

    .table-wrap {
        display: block !important;
        overflow: visible;
    }

    .mobile-debt-list {
        display: none !important;
    }

    table {
        font-size: 8.5pt;
    }

    thead {
        display: table-header-group;
    }

    tr {
        break-inside: avoid;
    }

    th,
    td {
        padding: 3.2mm 4mm;
    }

    th {
        color: #005b88;
        background: #eaf6fb;
        font-size: 7.5pt;
    }
}
