/* =====================================================================
   LAMS Design System
   Finease — Loan & Asset Management System
   Aesthetic: Institutional, bank-grade. Deep navy + restrained gold.
   ===================================================================== */

/* ------- Tokens ------- */
:root {
    /* Brand */
    --navy-950: #0a1628;
    --navy-900: #0f1f3a;
    --navy-800: #14294d;
    --navy-700: #1d3563;
    --navy-600: #2a4582;
    --navy-500: #3b5ba6;

    --gold-500: #c9a449;
    --gold-600: #b08d33;
    --gold-700: #8a6d22;
    --gold-100: #f7eed3;

    /* Neutrals */
    --ink-900: #0a0e14;
    --ink-700: #2a2f38;
    --ink-500: #5a6371;
    --ink-400: #7e8794;
    --ink-300: #b1b8c2;
    --ink-200: #d6dae0;
    --ink-100: #ebeef2;
    --ink-50:  #f6f7f9;
    --paper:   #ffffff;
    --bg:      #f4f5f7;

    /* Status */
    --good:    #1f7a3f;
    --good-bg: #e6f4eb;
    --warn:    #b86e00;
    --warn-bg: #fff3df;
    --bad:     #b3251c;
    --bad-bg:  #fbe8e6;
    --info:    #1a4d8a;
    --info-bg: #e3eef9;

    /* Type */
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body:    'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;

    /* Spacing scale */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
    --s-9: 56px; --s-10: 72px;

    --radius-sm: 4px;
    --radius:    6px;
    --radius-lg: 10px;

    --shadow-sm: 0 1px 2px rgba(10,22,40,0.06);
    --shadow:    0 4px 16px rgba(10,22,40,0.08);
    --shadow-lg: 0 16px 48px rgba(10,22,40,0.16);

    --header-h: 64px;
    --sidebar-w: 260px;
}

/* ------- Reset ------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-900);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--navy-950); }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; }
h4 { font-size: 15px; line-height: 1.35; font-family: var(--font-body); font-weight: 600; }

.muted { color: var(--ink-500); }
.tiny  { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); }
.mono  { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }

/* =====================================================================
   AUTH SCREEN — bank vault aesthetic
   ===================================================================== */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg);
}
@media (min-width: 960px) {
    .auth-shell { grid-template-columns: 1.1fr 1fr; }
}

.auth-brand {
    background:
        radial-gradient(ellipse at top right, rgba(201,164,73,0.12), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(59,91,166,0.18), transparent 60%),
        linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
    color: white;
    padding: var(--s-8) var(--s-7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(201,164,73,0.04) 0 1px, transparent 1px 12px);
    pointer-events: none;
}
.auth-brand .mark {
    display: flex; align-items: center; gap: var(--s-3);
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -0.01em;
}
.auth-brand .mark .crest {
    width: 40px; height: 40px;
    border: 1.5px solid var(--gold-500);
    display: grid; place-items: center;
    color: var(--gold-500);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
}
.auth-brand .pitch {
    position: relative;
    max-width: 460px;
}
.auth-brand .pitch h1 {
    color: white;
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: var(--s-4);
}
.auth-brand .pitch h1 em {
    font-style: italic; color: var(--gold-500); font-weight: 400;
}
.auth-brand .pitch p { color: rgba(255,255,255,0.72); font-size: 15px; max-width: 400px; }
.auth-brand .meta {
    display: flex; gap: var(--s-6);
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    position: relative;
}
.auth-brand .meta span::before {
    content: ''; display: inline-block; width: 6px; height: 6px;
    background: var(--gold-500); margin-right: var(--s-2);
    transform: rotate(45deg);
}

.auth-panel {
    padding: var(--s-8) var(--s-6);
    display: flex; align-items: center; justify-content: center;
}
.auth-card {
    width: 100%; max-width: 400px;
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    padding: var(--s-8) var(--s-7);
    box-shadow: var(--shadow);
}
.auth-card .lead { font-family: var(--font-display); font-size: 26px; color: var(--navy-950); margin-bottom: var(--s-2); }
.auth-card .sub  { color: var(--ink-500); margin-bottom: var(--s-7); font-size: 13px; }

/* =====================================================================
   FORMS
   ===================================================================== */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-700); font-weight: 600; }
.field label .req { color: var(--bad); }
.field .hint { font-size: 11px; color: var(--ink-500); }

.input, .select, .textarea {
    width: 100%;
    padding: 11px 13px;
    font-size: 14px;
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    color: var(--ink-900);
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(42,69,130,0.12);
}
.input.has-error, .select.has-error, .textarea.has-error {
    border-color: var(--bad);
    box-shadow: 0 0 0 3px rgba(179,37,28,0.10);
}
.field-error { color: var(--bad); font-size: 12px; margin-top: var(--s-1); }

.textarea { min-height: 88px; resize: vertical; }

.input-row { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .input-row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) { .input-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, transform .05s, box-shadow .15s, border-color .15s;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-900); color: white; }
.btn-primary:hover { background: var(--navy-700); color: white; text-decoration: none; }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-600); color: var(--navy-950); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--ink-200); }
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-900); text-decoration: none; }
.btn-danger { background: var(--bad); color: white; }
.btn-danger:hover { background: #8a1e16; color: white; text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 26px; font-size: 14px; }

/* =====================================================================
   APP SHELL — sidebar + content
   ===================================================================== */
.shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: var(--header-h) 1fr;
    grid-template-areas:
        "sidebar topbar"
        "sidebar main";
    min-height: 100vh;
}
@media (max-width: 960px) {
    .shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "main";
    }
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: var(--navy-950);
    color: rgba(255,255,255,0.85);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand {
    padding: var(--s-5) var(--s-5) var(--s-5);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: var(--s-3);
}
.sidebar-brand .crest {
    width: 36px; height: 36px;
    border: 1.5px solid var(--gold-500);
    display: grid; place-items: center;
    color: var(--gold-500);
    font-family: var(--font-display);
    font-size: 19px; font-weight: 600;
}
.sidebar-brand .name { font-family: var(--font-display); font-size: 18px; color: white; line-height: 1.1; }
.sidebar-brand .name small { display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-500); margin-top: 2px; }

.sidebar-nav { flex: 1; padding: var(--s-4) var(--s-3); }
.nav-group-title {
    font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: var(--s-5) var(--s-3) var(--s-2);
    font-weight: 500;
}
.nav-item {
    display: flex; align-items: center; gap: var(--s-3);
    padding: 9px 12px;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
    transition: background .12s, color .12s, border-color .12s;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: white; text-decoration: none; }
.nav-item.is-active {
    background: rgba(201,164,73,0.10);
    border-left-color: var(--gold-500);
    color: white;
}
.nav-item .icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }

.sidebar-foot {
    padding: var(--s-4) var(--s-5);
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 11px; color: rgba(255,255,255,0.4);
}

/* Topbar */
.topbar {
    grid-area: topbar;
    height: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--ink-200);
    display: flex; align-items: center;
    padding: 0 var(--s-6);
    position: sticky; top: 0; z-index: 50;
    gap: var(--s-4);
}
.topbar .menu-toggle {
    display: none;
    background: transparent; border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    width: 40px; height: 40px; padding: 0;
    cursor: pointer;
}
@media (max-width: 960px) {
    .topbar .menu-toggle { display: grid; place-items: center; }
}
.topbar .global-search {
    flex: 1; max-width: 480px;
    position: relative;
}
.topbar .global-search input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    background: var(--ink-50);
    font-size: 13px;
}
.topbar .global-search input:focus { background: var(--paper); border-color: var(--navy-600); }
.topbar .global-search::before {
    content: '⌕'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--ink-400); font-size: 16px;
}
.topbar .grow { flex: 1; }
.topbar .who {
    display: flex; align-items: center; gap: var(--s-3);
    padding-left: var(--s-4);
    border-left: 1px solid var(--ink-200);
    cursor: pointer;
    position: relative;
}
.topbar .who .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--navy-900); color: var(--gold-500);
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 600; font-size: 14px;
    border: 1px solid var(--gold-500);
}
.topbar .who .meta { line-height: 1.15; }
.topbar .who .meta b { font-weight: 600; font-size: 13px; }
.topbar .who .meta small { display: block; color: var(--ink-500); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 720px) {
    .topbar .who .meta { display: none; }
}

.who-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--paper); border: 1px solid var(--ink-200);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: var(--s-2);
    min-width: 200px;
    display: none;
    z-index: 100;
}
.who-menu.is-open { display: block; }
.who-menu a, .who-menu button {
    display: block; width: 100%; text-align: left;
    padding: 9px 12px; font-size: 13px; color: var(--ink-700);
    background: transparent; border: 0; cursor: pointer;
    border-radius: var(--radius-sm);
}
.who-menu a:hover, .who-menu button:hover { background: var(--ink-50); color: var(--navy-900); text-decoration: none; }
.who-menu hr { border: 0; border-top: 1px solid var(--ink-200); margin: var(--s-1) 0; }

/* Main content */
.main { grid-area: main; padding: var(--s-6); }
@media (max-width: 720px) { .main { padding: var(--s-4); } }

/* Mobile sidebar drawer */
@media (max-width: 960px) {
    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 200;
    }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-backdrop {
        position: fixed; inset: 0;
        background: rgba(10,22,40,0.5);
        z-index: 199;
        display: none;
    }
    .sidebar-backdrop.is-open { display: block; }
}

/* =====================================================================
   PAGE HEADER
   ===================================================================== */
.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--s-4); flex-wrap: wrap;
    padding-bottom: var(--s-5);
    border-bottom: 1px solid var(--ink-200);
    margin-bottom: var(--s-6);
}
.page-head .title { display: flex; flex-direction: column; gap: var(--s-1); }
.page-head .title .crumbs {
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
}
.page-head .title .crumbs a { color: var(--ink-500); }
.page-head .title .crumbs a:hover { color: var(--navy-700); }
.page-head .title h1 { font-size: 26px; }
.page-head .actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* =====================================================================
   PANEL / CARD
   ===================================================================== */
.panel {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.panel-head {
    padding: var(--s-5) var(--s-6);
    border-bottom: 1px solid var(--ink-200);
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.panel-head h3 { font-size: 16px; font-family: var(--font-body); font-weight: 600; }
.panel-body { padding: var(--s-6); }
.panel-foot { padding: var(--s-4) var(--s-6); border-top: 1px solid var(--ink-200); background: var(--ink-50); }

/* Stat tiles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-4);
    margin-bottom: var(--s-6);
}
.stat {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    padding: var(--s-5) var(--s-5);
    position: relative;
    overflow: hidden;
}
.stat::after {
    content: ''; position: absolute; right: -20px; top: -20px;
    width: 100px; height: 100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,164,73,0.06), transparent 70%);
}
.stat .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); margin-bottom: var(--s-3); font-weight: 500; }
.stat .value { font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--navy-950); font-weight: 600; letter-spacing: -0.02em; }
.stat .value small { font-family: var(--font-body); font-size: 13px; color: var(--ink-500); margin-left: var(--s-2); font-weight: 400; }
.stat .delta { margin-top: var(--s-3); font-size: 12px; color: var(--ink-500); }
.stat .delta.up { color: var(--good); }
.stat .delta.down { color: var(--bad); }
.stat.accent { border-top: 3px solid var(--gold-500); }

/* =====================================================================
   TABLES
   ===================================================================== */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}
.tbl thead th {
    text-align: left; padding: 12px 16px;
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    font-weight: 600; color: var(--ink-500);
    background: var(--ink-50);
    border-bottom: 1px solid var(--ink-200);
    white-space: nowrap;
}
.tbl tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ink-100);
    color: var(--ink-900);
    vertical-align: middle;
}
.tbl tbody tr:hover { background: var(--ink-50); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.tbl .compact td, .tbl .compact th { padding: 8px 12px; }

/* Mobile cardified rows */
@media (max-width: 720px) {
    .tbl.responsive thead { display: none; }
    .tbl.responsive tbody, .tbl.responsive tr { display: block; }
    .tbl.responsive td {
        display: flex; justify-content: space-between; align-items: center;
        padding: 10px 14px;
        border-bottom: 1px solid var(--ink-100);
    }
    .tbl.responsive td::before {
        content: attr(data-label);
        font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
        color: var(--ink-500); margin-right: var(--s-3);
    }
    .tbl.responsive tr {
        background: var(--paper);
        border: 1px solid var(--ink-200);
        border-radius: var(--radius);
        margin-bottom: var(--s-3);
        overflow: hidden;
    }
    .tbl.responsive tr td:last-child { border-bottom: 0; }
}

/* =====================================================================
   CHIPS / PILLS
   ===================================================================== */
.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px; letter-spacing: 0.04em;
    font-weight: 600; text-transform: uppercase;
    line-height: 1.6;
}
.pill-good { background: var(--good-bg); color: var(--good); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad  { background: var(--bad-bg);  color: var(--bad); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-neutral { background: var(--ink-100); color: var(--ink-700); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-good { background: var(--good); } .dot-warn { background: var(--warn); }
.dot-bad  { background: var(--bad); }  .dot-info { background: var(--info); }

/* =====================================================================
   TOOLBAR (filter bar above tables)
   ===================================================================== */
.toolbar {
    display: flex; gap: var(--s-3); flex-wrap: wrap;
    padding: var(--s-4) var(--s-5);
    background: var(--ink-50);
    border-bottom: 1px solid var(--ink-200);
    align-items: center;
}
.toolbar .input, .toolbar .select { padding: 8px 12px; font-size: 13px; }
.toolbar .grow { flex: 1; min-width: 200px; }

/* =====================================================================
   FLASH MESSAGES
   ===================================================================== */
.flash-stack { margin-bottom: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.flash {
    display: flex; gap: var(--s-3); align-items: flex-start;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    border-left: 3px solid;
}
.flash-success { background: var(--good-bg); color: var(--good); border-color: var(--good); }
.flash-error   { background: var(--bad-bg);  color: var(--bad);  border-color: var(--bad); }
.flash-info    { background: var(--info-bg); color: var(--info); border-color: var(--info); }
.flash-warning { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.flash strong { font-weight: 700; margin-right: 4px; }

/* =====================================================================
   PAGINATION
   ===================================================================== */
.pagination {
    display: flex; align-items: center; gap: var(--s-2);
    padding: var(--s-4) var(--s-5);
    font-size: 13px;
}
.pagination a, .pagination span {
    padding: 6px 12px; border: 1px solid var(--ink-200); border-radius: var(--radius);
    color: var(--ink-700); background: var(--paper);
    text-decoration: none;
}
.pagination a:hover { border-color: var(--navy-700); color: var(--navy-900); text-decoration: none; }
.pagination .current { background: var(--navy-900); color: white; border-color: var(--navy-900); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }
.pagination .info { margin-left: auto; color: var(--ink-500); }

/* =====================================================================
   UTILITIES
   ===================================================================== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); }
.mb-1 { margin-bottom: var(--s-1); } .mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.full-width { width: 100%; }
.divider { border: 0; border-top: 1px solid var(--ink-200); margin: var(--s-5) 0; }

/* Reveal-on-click for sensitive fields */
.sensitive {
    cursor: pointer;
    border-bottom: 1px dashed var(--ink-300);
    user-select: none;
}
.sensitive::after { content: ' (tap to reveal)'; font-size: 11px; color: var(--ink-400); }
.sensitive.is-revealed::after { content: ''; }

/* Empty state */
.empty {
    padding: var(--s-9) var(--s-5);
    text-align: center;
    color: var(--ink-500);
}
.empty .icon {
    width: 48px; height: 48px; margin: 0 auto var(--s-4);
    border: 2px solid var(--ink-200); border-radius: 50%;
    display: grid; place-items: center;
    color: var(--ink-300); font-size: 20px;
}
.empty h3 { font-size: 18px; color: var(--navy-900); margin-bottom: var(--s-2); }

/* Form sections (multi-section forms) */
.form-section {
    padding: var(--s-6);
    border-bottom: 1px solid var(--ink-200);
}
.form-section:last-child { border-bottom: 0; }
.form-section h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: var(--s-1);
}
.form-section .section-sub {
    color: var(--ink-500); font-size: 12px;
    margin-bottom: var(--s-5);
    text-transform: uppercase; letter-spacing: 0.08em;
}

/* Print friendliness */
@media print {
    .sidebar, .topbar, .page-head .actions { display: none !important; }
    .shell { grid-template-columns: 1fr; grid-template-areas: "main"; }
    .main { padding: 0; }
    .panel { border: 0; box-shadow: none; }
}
