/* =====================================================================
   BDS Manajemen — Gaya aplikasi
   PT Bali Digital Studio · navy #1F3864 / orange #E8722C
   Tanpa CDN, semua lokal.
   ===================================================================== */

:root {
    --navy: #1F3864;
    --navy-2: #16294a;
    --navy-3: #24457c;
    --orange: #E8722C;
    --orange-2: #d4601c;
    --orange-soft: #fdf1e8;
    --bg: #f3f5f9;
    --card: #ffffff;
    --text: #1b2333;
    --muted: #6b7590;
    --line: #e2e7f0;
    --line-2: #eef1f7;
    --green: #1f8a5b;
    --green-soft: #e8f7ee;
    --red: #c93a3a;
    --red-soft: #fdecec;
    --warn: #b97607;
    --warn-soft: #fdf5e3;
    --info: #2563a8;
    --info-soft: #eaf1fb;
    --purple: #6b46c1;
    --purple-soft: #f1ecfd;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(22, 41, 74, .06), 0 6px 18px rgba(22, 41, 74, .05);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 8px; }
code {
    background: #eef1f7;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: .92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------- layout */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 236px;
    flex: 0 0 236px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #dbe3f2;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .5px;
    box-shadow: 0 3px 10px rgba(232, 114, 44, .35);
}

.brand-mark-lg { width: 54px; height: 54px; flex-basis: 54px; font-size: 17px; border-radius: 12px; }

.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt strong { color: #fff; font-size: 14px; }
.brand-txt small { color: #9fb0cd; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }

.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #cdd8ec;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link.is-active { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(232, 114, 44, .32); }
.nav-link.is-active .ico { opacity: 1; }
.nav-out { color: #f0b596; }

.sidebar-foot { padding: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ver { padding: 8px 12px 2px; font-size: 11px; color: #7c8dab; }

.ico { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar-title h1 { font-size: 19px; color: var(--navy); }
.topbar-title .sub { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { font-size: 13px; color: var(--muted); }

.btn-menu {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-size: 18px;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 9px;
    cursor: pointer;
}

.content { padding: 20px 22px 30px; max-width: 1400px; width: 100%; }
.foot {
    margin-top: auto;
    padding: 14px 22px 22px;
    font-size: 11.5px;
    color: var(--muted);
}

/* ---------------------------------------------------------------- kartu */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.card-head h3 { font-size: 15px; color: var(--navy); }
.card-foot { margin-top: 10px; font-size: 13px; color: var(--muted); }

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.page-head h2 { font-size: 17px; color: var(--navy); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 18px;
    align-items: start;
}

/* ------------------------------------------------------------------ stat */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.stat-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.stat {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
}
.stat-ic {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--info-soft);
    color: var(--info);
}
.stat-ic .ico { width: 20px; height: 20px; }
.ic-orange { background: var(--orange-soft); color: var(--orange-2); }
.ic-purple { background: var(--purple-soft); color: var(--purple); }
.ic-danger { background: var(--red-soft); color: var(--red); }
.ic-green { background: var(--green-soft); color: var(--green); }

.stat-body { min-width: 0; display: flex; flex-direction: column; }
.stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stat-value { font-size: 21px; color: var(--navy); line-height: 1.25; margin: 2px 0 2px; }
.stat-money { font-size: 18px; }
.stat-link { font-size: 12px; color: var(--orange-2); font-weight: 600; }

/* ---------------------------------------------------------------- tabel */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.table th {
    text-align: left;
    font-size: 11.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 650;
    padding: 9px 10px;
    background: #f7f9fc;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tbody tr:hover { background: #fbfcfe; }
.table tfoot th { background: #f7f9fc; border-top: 1px solid var(--line); border-bottom: none; color: var(--navy); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .th-act, .table .td-act { text-align: right; white-space: nowrap; }
.table td small, .table td .muted { display: block; }
.sisa { color: var(--red); font-weight: 600; }

.strong-link { font-weight: 600; color: var(--navy); }
.strong-link:hover { color: var(--orange); }
.muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.empty { padding: 18px 4px; color: var(--muted); font-size: 13.5px; }
.link { color: var(--orange-2); font-weight: 600; font-size: 13px; }

.wa-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--green); font-weight: 600; }
.wa-link .ico { width: 14px; height: 14px; }

/* --------------------------------------------------------------- badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    background: #eef1f7;
    color: #4a5670;
    white-space: nowrap;
}
.badge-success { background: var(--green-soft); color: var(--green); }
.badge-danger  { background: var(--red-soft); color: var(--red); }
.badge-warn    { background: var(--warn-soft); color: var(--warn); }
.badge-orange  { background: var(--orange-soft); color: var(--orange-2); }
.badge-info    { background: var(--info-soft); color: var(--info); }
.badge-purple  { background: var(--purple-soft); color: var(--purple); }
.badge-navy    { background: #e7ecf6; color: var(--navy); }

/* ------------------------------------------------------------- tombol */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.3;
    transition: background .15s, border-color .15s, color .15s, transform .05s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 3px 10px rgba(232, 114, 44, .28); }
.btn-primary:hover { background: var(--orange-2); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: #3d4a63; }
.btn-ghost:hover { border-color: #c8d2e4; color: var(--navy); background: #f8fafd; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #f9dada; color: #a92f2f; }
.btn-sm { padding: 5px 9px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.inline { display: inline-block; margin: 0; }

/* ---------------------------------------------------------------- alert */
.alert {
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 16px;
    font-size: 13.5px;
    border: 1px solid transparent;
}
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }
.alert-ok   { background: var(--green-soft); border-color: #bfe6d0; color: #176b47; }
.alert-err  { background: var(--red-soft); border-color: #f3c9c9; color: #962626; }
.alert-warn { background: var(--warn-soft); border-color: #f2dfae; color: #8a5805; }
.alert-info { background: var(--info-soft); border-color: #cbdff5; color: #1d4f86; }

/* -------------------------------------------------------------- filters */
.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}
.search {
    position: relative;
    flex: 1 1 260px;
    display: flex;
    align-items: center;
}
.search .ico {
    position: absolute;
    left: 11px;
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
}
.search input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    background: #fff;
    color: var(--text);
}
.search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 114, 44, .14); }

.sel {
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text);
    min-width: 130px;
}
.sel:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 114, 44, .14); }
.sel-sm { padding: 4px 6px; font-size: 12px; min-width: 108px; border-radius: 7px; }

.filter-sum { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

/* ----------------------------------------------------------------- tabs */
.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.tab {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4d5a75;
    background: #f1f4f9;
}
.tab:hover { background: #e7ecf5; color: var(--navy); }
.tab.is-on { background: var(--navy); color: #fff; }
.tab .cnt {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    opacity: .75;
}

/* ------------------------------------------------------------ pagination */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
}
.pager-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.pg {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: #42506a;
    font-size: 12.5px;
    font-weight: 600;
}
.pg:hover { border-color: #c8d2e4; color: var(--navy); }
.pg-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg-off { color: #b3bccc; background: #f7f9fc; }

/* ----------------------------------------------------------------- form */
.form-card { max-width: 900px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.form-single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: 12.5px; font-weight: 600; color: #46516b; }
.req { color: var(--orange); }
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=date],
.field select,
.field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text);
    background: #fff;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 114, 44, .14);
}
.hint { font-size: 11.5px; color: var(--muted); }
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line-2);
}

/* ---------------------------------------------------------------- bar */
.bar {
    height: 5px;
    border-radius: 999px;
    background: #eef1f7;
    overflow: hidden;
    margin-top: 4px;
    min-width: 60px;
}
.bar span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.bar-lg { height: 9px; max-width: 260px; }

/* --------------------------------------------------------------- aging */
.aging { list-style: none; margin: 0; padding: 0; }
.aging li {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}
.aging li.total { border-bottom: none; border-top: 2px solid var(--line); margin-top: 4px; padding-top: 11px; color: var(--navy); font-weight: 700; }
.aging li.total strong { color: var(--orange-2); }

.tips { margin: 0; padding-left: 18px; font-size: 13.5px; color: #3d4a63; }
.tips li { margin-bottom: 8px; }

/* --------------------------------------------------------------- login */
.auth-body {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(232, 114, 44, .22), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, #16294a 55%, #221c33 100%);
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 18px;
}
.auth-wrap { width: 100%; max-width: 404px; }
.auth-card {
    background: #fff;
    border-radius: 18px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 60px rgba(9, 18, 36, .32);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.auth-brand strong { display: block; font-size: 15px; color: var(--navy); }
.auth-brand small { color: var(--muted); font-size: 12px; }
.auth-title { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-form .btn { margin-top: 4px; padding: 11px; }
.auth-note {
    margin-top: 18px;
    padding: 11px 13px;
    background: #f5f7fb;
    border: 1px dashed var(--line);
    border-radius: 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}
.auth-foot { text-align: center; color: rgba(255, 255, 255, .62); font-size: 11.5px; margin-top: 16px; }

/* --------------------------------------------------------------- cetak */
.print-body { background: #eef1f6; padding: 22px 14px 40px; }

.print-bar {
    max-width: 210mm;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.print-bar-right { display: flex; gap: 8px; flex-wrap: wrap; }

.sheet {
    width: 210mm;
    max-width: 100%;
    min-height: 297mm;
    margin: 0 auto;
    background: #fff;
    padding: 16mm 16mm 12mm;
    box-shadow: 0 10px 40px rgba(17, 30, 55, .18);
    font-size: 12.5px;
    color: #1e2638;
    position: relative;
}

.sheet-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 3px solid var(--navy);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.sheet-brand { display: flex; gap: 12px; align-items: flex-start; }
.sheet-brand strong { display: block; font-size: 15px; color: var(--navy); letter-spacing: .2px; }
.sheet-brand small { display: block; color: #5a6580; font-size: 10.5px; line-height: 1.5; }
.sheet-title { text-align: right; min-width: 190px; }
.sheet-title h1 {
    font-size: 26px;
    letter-spacing: .18em;
    color: var(--navy);
    margin-bottom: 8px;
}
.sheet .meta { border-collapse: collapse; font-size: 11px; margin-left: auto; }
.sheet .meta td { padding: 2px 0 2px 10px; text-align: right; }
.sheet .meta td:first-child { color: #6b7590; text-align: left; }

.sheet-to {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.55;
}
.sheet-to .lbl {
    display: block;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #7c869c;
    margin-bottom: 3px;
}
.sheet-to strong { color: var(--navy); }

.sheet-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.sheet-table th {
    background: var(--navy);
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
}
.sheet-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet-table .c { text-align: center; }
.sheet-table .r { text-align: right; white-space: nowrap; }
.sheet-table tfoot td { border-bottom: none; padding: 6px 10px; font-size: 11.5px; }
.sheet-table tfoot .grand td {
    background: var(--orange-soft);
    color: var(--navy);
    font-weight: 700;
    font-size: 12.5px;
    border-top: 1px solid #f0d3bf;
}
.small { font-size: 10.5px; color: #5a6580; }

.sheet-pay { margin-top: 16px; }
.sheet-pay h3, .sheet-note h3 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--navy);
    margin-bottom: 5px;
}
.mini { width: 100%; border-collapse: collapse; font-size: 11px; }
.mini th { text-align: left; color: #6b7590; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.mini td { padding: 5px 8px; border-bottom: 1px dashed var(--line-2); }
.mini .r { text-align: right; }

.sheet-note {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr .9fr;
    gap: 16px;
    margin-top: 22px;
    font-size: 11px;
    color: #3b465f;
}
.sheet-note p { margin: 0; line-height: 1.65; }
.sheet-note .sign { text-align: center; }
.sign-space { height: 46px; }

.sheet-foot {
    position: absolute;
    left: 16mm;
    right: 16mm;
    bottom: 9mm;
    border-top: 1px solid var(--line);
    padding-top: 7px;
    font-size: 9px;
    color: #7c869c;
    text-align: center;
}

/* --------------------------------------------------------------- mobile */
@media (max-width: 980px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 0 0 40px rgba(10, 20, 40, .35);
    }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(11, 20, 36, .45);
        z-index: 35;
    }
    .btn-menu { display: inline-block; }
    .content { padding: 16px 14px 24px; }
    .topbar { padding: 12px 14px; }
    .topbar-title h1 { font-size: 17px; }
    .who { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .sheet { padding: 10mm; }
    .sheet-head { flex-direction: column; }
    .sheet-title { text-align: left; }
    .sheet .meta { margin-left: 0; }
    .sheet .meta td { text-align: left; }
    .sheet-note { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 11px; gap: 9px; }
    .stat-ic { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
    .stat-value { font-size: 17px; }
    .stat-money { font-size: 15px; }
    .page-head h2 { font-size: 15.5px; }
    .print-bar { justify-content: center; }
}

/* ---------------------------------------------------------------- print */
@media print {
    @page { size: A4; margin: 12mm; }

    body, .print-body { background: #fff !important; padding: 0 !important; }
    .no-print, .sidebar, .topbar, .foot, .print-bar, .btn, .pager, .filters { display: none !important; }
    .app, .main { display: block !important; }
    .content { padding: 0 !important; max-width: none; }

    .card, .stat {
        box-shadow: none !important;
        border: 1px solid #d7dce6 !important;
        break-inside: avoid;
    }
    .table { min-width: 0; font-size: 10.5px; }
    .table th { background: #f2f4f8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .badge { border: 1px solid #ccd3e0; }

    .sheet {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
        font-size: 11.5px;
    }
    .sheet-head { border-bottom: 2.5pt solid var(--navy); }
    .sheet-table th { background: var(--navy) !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sheet-table tfoot .grand td { background: var(--orange-soft) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sheet-foot { position: static; margin-top: 18px; }
}