:root {
    --brand: #0f4c5c;
    --brand-2: #1b6b7d;
    --accent: #e09f3e;
    --sidebar-bg: #12343b;
    --ground: #f4f6f7;
}
body { background: var(--ground); font-size: 0.95rem; }
.topbar { background: var(--brand); color: #fff; height: 56px; position: sticky; top: 0; z-index: 1030; }
.topbar .brand { color: #fff; font-weight: 600; font-size: 1.05rem; }
.brand-logo { height: 34px; width: auto; border-radius: 4px; background: #fff; }
.app-body { min-height: calc(100vh - 56px); }
.sidebar { background: var(--sidebar-bg) !important; width: 250px; min-width: 250px; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; } }
.sidebar.offcanvas-lg { --bs-offcanvas-bg: var(--sidebar-bg); --bs-offcanvas-color: #fff; }
.sidebar .nav-link { color: #c9d8db; padding: .55rem 1.1rem; border-left: 3px solid transparent; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.1); border-left-color: var(--accent); }
.sidebar .nav-link .bi { width: 1.4rem; display: inline-block; }
.sidebar .sub .nav-link { padding-left: 2.9rem; font-size: .9rem; }
.sidebar .nav-link .chev { transition: transform .2s; }
.sidebar .nav-link.collapsed .chev { transform: rotate(-90deg); }
.content { min-width: 0; }
.page-title { font-size: 1.4rem; font-weight: 600; color: var(--brand); margin-bottom: 1rem; }
.card { border: 1px solid #e1e6e8; box-shadow: none; }
.card-header { background: #fff; font-weight: 600; }
.stat { border-radius: .5rem; background: #fff; border: 1px solid #e1e6e8; padding: 1rem 1.1rem; }
.stat .v { font-size: 1.6rem; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stat .l { color: #5c6b70; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-2); --bs-btn-hover-border-color: var(--brand-2); --bs-btn-active-bg: var(--brand-2); }
.table thead th { background: #eef3f4; color: #23424a; font-weight: 600; white-space: nowrap; }
.table td, .table th { vertical-align: middle; }
.mark-input { width: 90px; }
.mark-input.is-locked { background: #f1f1f1; }
.avatar { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; background: #dfe7e9; }
.photo-lg { width: 120px; height: 140px; object-fit: cover; border-radius: .4rem; background: #dfe7e9; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--brand) 0%, #0b3540 100%); }
.login-card { width: 100%; max-width: 400px; }
.grade-A { color: #1e7b34; font-weight: 600; } .grade-B { color: #2a6db0; font-weight: 600; }
.grade-C { color: #7a5b00; font-weight: 600; } .grade-D { color: #a35200; font-weight: 600; } .grade-E { color: #b02a37; font-weight: 600; }
.grade-B\+ { color: #1f7a8c; font-weight: 600; } .grade-F { color: #b02a37; font-weight: 600; }
.sheet { background: #fff; border: 1px solid #e1e6e8; padding: 1.2rem; }
.sheet-head { text-align: center; border-bottom: 2px solid var(--brand); margin-bottom: 1rem; padding-bottom: .6rem; }
.sheet-head img { height: 64px; }
.sheet-head h2 { font-size: 1.3rem; margin: .2rem 0; color: var(--brand); }
.small-muted { font-size: .8rem; color: #6c757d; }
/* ID cards: CR80 85.6 x 54 mm */
.idcards { display: flex; flex-wrap: wrap; gap: 6mm; }
.idcard { width: 85.6mm; height: 54mm; border-radius: 3mm; overflow: hidden; background: #fff; border: .3mm solid #b9c6c9; position: relative; font-family: Arial, sans-serif; page-break-inside: avoid; break-inside: avoid; }
.idcard .band { background: var(--brand); color: #fff; padding: 1.6mm 3mm; display: flex; align-items: center; gap: 2mm; height: 12mm; }
.idcard .band img { height: 8.5mm; width: 8.5mm; object-fit: contain; background: #fff; border-radius: 1mm; }
.idcard .band .nm { font-weight: 700; font-size: 3.1mm; line-height: 1.15; }
.idcard .band .mt { font-size: 2.2mm; opacity: .9; }
.idcard .body { display: flex; gap: 3mm; padding: 2.4mm 3mm 0; }
.idcard .ph { width: 20mm; height: 24mm; object-fit: cover; border-radius: 1mm; border: .3mm solid #ccd; background: #eef2f3; }
.idcard .info { font-size: 2.6mm; line-height: 1.45; }
.idcard .info .n { font-weight: 700; font-size: 3.2mm; color: #102a30; line-height: 1.2; margin-bottom: .8mm; }
.idcard .info .k { color: #5d6b70; }
.idcard .bc { position: absolute; left: 3mm; right: 3mm; bottom: 1.6mm; height: 9mm; text-align: center; }
.idcard .bc svg { height: 6.4mm; width: 60mm; fill: #000; }
.idcard .bc div { font-size: 2.1mm; letter-spacing: .3mm; }
.idcard .tag { position: absolute; right: 3mm; top: 13.5mm; background: var(--accent); color: #fff; font-size: 2.1mm; font-weight: 700; padding: .5mm 1.6mm; border-radius: 1mm; }
.idcard.back { padding: 4mm; font-size: 2.6mm; }
.idcard.back h4 { font-size: 3mm; color: var(--brand); margin: 0 0 2mm; }
@media print {
    @page { margin: 10mm; }
    body { background: #fff; }
    .no-print, .topbar, .sidebar, .alert { display: none !important; }
    .content { padding: 0 !important; }
    .sheet { border: 0; padding: 0; }
    .card { border: 0; }
    .idcard { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .page-title { display: none; }
    .table thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .page-break { page-break-after: always; break-after: page; }
}

/* copyright */
.content { display: flex; flex-direction: column; }
.app-footer { margin-top: auto; padding-top: 1.5rem; text-align: center; font-size: .8rem; color: #6c757d; }
.login-wrap { position: relative; }
.login-copy { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.75); }
@media print { .app-footer { padding-top: .5rem; font-size: 7pt; } }

/* analytical dashboard */
.dash-h { font-size: 1.05rem; font-weight: 700; color: #23424a; margin: .25rem 0 .75rem; padding-bottom: .35rem; border-bottom: 1px solid #e1e6e8; }
.chart-title { font-size: .95rem; font-weight: 600; color: #23424a; margin: 0; }
.chart-sub { font-size: .78rem; color: #5c6b70; margin-bottom: .5rem; }
.chart-box { position: relative; width: 100%; }
.bar-track { height: 6px; background: #eef1f2; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.bar-track > span { display: block; height: 100%; background: #2a78d6; border-radius: 0 3px 3px 0; }
#debtors td { padding-top: .45rem; padding-bottom: .45rem; }
@media print { details { display: none; } .chart-box { break-inside: avoid; } .card { break-inside: avoid; } }

/* profit & loss statement */
.pnl td, .pnl th { padding-top: .35rem; padding-bottom: .35rem; }
.pnl .pnl-sec th { background: #f4f7f8; color: #23424a; font-size: .8rem; letter-spacing: .04em; padding-top: .6rem; }
.pnl .pnl-tot th { border-top: 1.5px solid #23424a; }
.pnl .pnl-bal th { background: #eef3f4; }
.pnl .pnl-net th { font-size: 1.05rem; border-top: 2px solid #23424a; border-bottom: 3px double #23424a; }
.pnl .pnl-net.is-profit th { color: #0b7a0b; }
.pnl .pnl-net.is-loss th { color: #b42f2f; }
.bar-track.exp > span { background: #eb6834; }
.stat .v { overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .stat .v { font-size: 1.2rem; } .stat { padding: .75rem .8rem; } }
.pnl-tiles .stat .v { font-size: 1.3rem; white-space: nowrap; }
@media (max-width: 575.98px) { .pnl-tiles .stat .v { font-size: 1.05rem; } }

/* print / export toolbar on every report and list */
.print-head { display: none; }
.page-tools .btn { white-space: nowrap; }
@media print {
    .print-head { display: block; text-align: center; border-bottom: 2px solid var(--brand); margin-bottom: 10px; padding-bottom: 6px; }
    .print-head .ph-school { font-size: 15pt; font-weight: 700; color: var(--brand); }
    .print-head .ph-title { font-size: 12pt; font-weight: 600; text-transform: uppercase; }
    .print-head .ph-meta { font-size: 8pt; color: #555; }
    body:has(.sheet-head) .print-head, body:has(.no-print-head) .print-head { display: none; }
    .page-tools, .title-row .btn { display: none !important; }
    main form[method="get"], main form[method="GET"], main .btn { display: none !important; }
    .print-head .ph-filters { font-size: 9pt; margin-top: 2px; }
    table .btn, table form, table .form-check, .card-header .btn, .card-body > form .btn { display: none !important; }
    table input.form-control, table select.form-select { border: 0; padding: 0; background: transparent; appearance: none; }
    a { color: inherit !important; text-decoration: none !important; }
    .table-responsive { overflow: visible !important; }
    .card { box-shadow: none; }
    .collapse:not(.show) { display: none !important; }
    tr.collapse { display: none !important; }
}

/* ---- login page with Nesatech information ---- */
.login-wrap { flex-direction: column; gap: 1.25rem; padding-top: 2rem !important; padding-bottom: 1rem !important; }
.login-grid { display: flex; gap: 1.5rem; align-items: stretch; justify-content: center; width: 100%; max-width: 900px; }
.login-grid .login-card { flex: 0 0 400px; align-self: center; }
.login-copy { position: static !important; }
.nesa-card { flex: 1 1 0; min-width: 0; max-width: 470px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: .75rem; padding: 1.25rem 1.4rem; }
.nesa-brand { font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; }
.nesa-brand .bi { margin-right: .25rem; }
.nesa-lead { font-size: .9rem; color: rgba(255,255,255,.82); margin: .35rem 0 .9rem; }
.nesa-products { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.nesa-products li { display: flex; gap: .65rem; align-items: flex-start; padding: .5rem .6rem; border-radius: .5rem; }
.nesa-products li.is-current { background: rgba(255,255,255,.12); }
.nesa-products .bi { font-size: 1.25rem; line-height: 1.2; opacity: .9; }
.nesa-products b { font-size: .95rem; }
.nesa-products span:not(.nesa-tag) { display: block; font-size: .8rem; color: rgba(255,255,255,.75); line-height: 1.35; }
.nesa-tag { font-size: .68rem; background: #fff; color: #222; border-radius: 1rem; padding: 0 .45rem; margin-left: .25rem; vertical-align: 1px; }
.nesa-demo { border-top: 1px solid rgba(255,255,255,.2); padding-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.nesa-demo-title { width: 100%; font-weight: 600; font-size: .95rem; }
.nesa-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: .45rem; font-size: .88rem; font-weight: 600; text-decoration: none; }
.nesa-wa { background: #25d366; color: #0b2e17; }
.nesa-wa:hover { background: #1fbd5a; color: #0b2e17; }
.nesa-mail { background: #fff; color: #1d2b36; }
.nesa-mail:hover { background: #e9eef3; color: #1d2b36; }
@media (max-width: 860px) {
    .login-grid { flex-direction: column; align-items: center; }
    .login-grid .login-card { flex: none; width: 100%; max-width: 400px; }
    .nesa-card { width: 100%; max-width: 400px; padding: 1rem; }
}

/* ---------- Messages: inbox, announcements, chat ---------- */
.msg-tabs .nav-link { color: var(--brand); }
.msg-tabs .nav-link.active { background: var(--brand); }
.msg-row { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; }
.msg-av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #dfeaec; color: var(--brand); font-weight: 700; font-size: .9rem; }
.msg-av.ann { background: var(--accent); color: #fff; font-size: 1.05rem; }
.msg-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.msg-title { color: #1d3138; }
.msg-time, .msg-from { font-size: .78rem; color: #6c757d; }
.msg-time { white-space: nowrap; flex: 0 0 auto; }
.msg-prev { font-size: .86rem; color: #5c6b70; }
.msg-row.unread { background: #f3f9fa; }
.msg-row.unread .msg-title, .msg-row.unread .msg-prev { font-weight: 700; color: #102a30; }
.msg-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ann-badge { background: var(--accent); }
.ann-from { color: #3c4d52; }
.ann-body { font-size: 1.02rem; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.ann-update { border-top: 1px dashed #d5dfe1; margin-top: 1rem; padding-top: .8rem; }
.readers { max-height: 420px; overflow-y: auto; }
.aud-box { border: 1px solid #e1e6e8; border-radius: .5rem; padding: .6rem .9rem .8rem; margin-bottom: .8rem; }
.aud-box legend { float: none; width: auto; font-size: .9rem; font-weight: 600; color: var(--brand); padding: 0 .3rem; margin: 0; }
.class-pick { max-height: 300px; overflow-y: auto; border-top: 1px solid #eef1f2; }
.class-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid #eef1f2; }
.class-row .form-check { min-width: 9rem; margin: 0; }
.class-row .streams { display: flex; flex-wrap: wrap; gap: .25rem; }
.class-row .streams .btn { padding: .1rem .55rem; }
.people-suggest { position: relative; z-index: 5; max-height: 240px; overflow-y: auto; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: #e8f1f3; color: #123; border-radius: 1rem; padding: .2rem .35rem .2rem .7rem; font-size: .85rem; }
.btn-close-sm { width: .55em; height: .55em; padding: .25em; }
.aud-summary { font-size: .95rem; color: #23424a; }
.chat-card { max-width: 860px; display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; background: #f6f9f9; display: flex; flex-direction: column; gap: .35rem; }
.bubble { max-width: 78%; padding: .5rem .75rem .35rem; border-radius: 1rem; position: relative; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid #e3eaec; border-bottom-left-radius: .3rem; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: .3rem; }
.bubble.me a { color: #ffe3b8; }
.bubble .meta { font-size: .7rem; opacity: .7; text-align: right; margin-top: .1rem; }
.chat-day { text-align: center; margin: .6rem 0 .3rem; }
.chat-day span { background: #e2ebed; color: #46585d; font-size: .72rem; padding: .15rem .6rem; border-radius: 1rem; }
.chat-compose { display: flex; gap: .5rem; align-items: flex-end; padding: .6rem .75rem .3rem; border-top: 1px solid #e1e6e8; background: #fff; }
.chat-compose textarea { resize: none; max-height: 160px; }
.chat-compose .btn { flex: 0 0 auto; height: 38px; }
@media (max-width: 575.98px) {
    .chat-card { height: calc(100vh - 170px); border-radius: 0; margin: 0 -1rem; }
    .bubble { max-width: 88%; }
    .msg-row { padding: .7rem .75rem; }
}
/* ---------- Learning resources: past papers ---------- */
.exam-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.exam-tabs a { display: inline-flex; align-items: baseline; gap: .45rem; padding: .45rem .8rem; border: 1px solid #cfdadd; border-radius: .4rem; background: #fff; color: var(--brand); text-decoration: none; }
.exam-tabs a span { font-size: .78rem; color: #6c7d82; }
.exam-tabs a:hover { border-color: var(--brand-2); }
.exam-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.exam-tabs a.active span { color: rgba(255,255,255,.8); }
.pp-wrap { max-height: 72vh; }
.pp-grid { font-size: .88rem; }
.pp-grid thead th { position: sticky; top: 0; z-index: 2; }
.pp-grid .pp-subj { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 11rem; font-weight: 600; color: #23424a; }
.pp-grid thead .pp-subj { background: #eef3f4; z-index: 3; }
.pp-cell { min-width: 6.5rem; white-space: nowrap; }
.pp-item { display: inline-flex; align-items: center; margin: .1rem .25rem .1rem 0; }
.pp-paper { display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .4rem; border-radius: .3rem; background: #e8f1f3; color: var(--brand); text-decoration: none; font-weight: 600; }
.pp-paper:hover { background: var(--brand); color: #fff; }
.ms-chip { display: inline-block; margin-left: .15rem; padding: .05rem .3rem; border-radius: .25rem; font-size: .7rem; font-weight: 700; line-height: 1.4; background: #e3f3e8; color: #1e6b35; border: 1px solid #b9dfc5; text-decoration: none; }
a.ms-chip:hover { background: #1e7b34; color: #fff; }
.res-ico { font-size: 1.35rem; color: var(--brand-2); line-height: 1; margin-top: .1rem; }
.res-table td { padding-top: .5rem; padding-bottom: .5rem; }
.res-preview { width: 100%; height: 78vh; border: 0; display: block; }
.res-dl dt { font-weight: 500; color: #5c6b70; }
.kind-picks { display: flex; flex-wrap: wrap; gap: .35rem; }
@media print { .pp-wrap { max-height: none; } .pp-paper { background: none; padding: 0; } }
@media (max-width: 576px) { .pp-grid .pp-subj { min-width: 7.5rem; white-space: normal; } .pp-cell { min-width: 5.5rem; } }
/* ---------- NECTA-style class report ---------- */
.necta-top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
.necta-gpa { background: var(--band); color: var(--band-text); border-radius: .5rem; padding: .8rem 1.2rem; min-width: 14rem; }
.necta-gpa .lbl { font-size: .8rem; opacity: .9; }
.necta-gpa .val { font-size: 2.1rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.necta-gpa .band { font-weight: 600; }
.necta-facts { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1; align-content: center; }
.necta-facts > div { border: 1px solid #d8e2e5; border-radius: .4rem; padding: .45rem .8rem; background: #fff; min-width: 7.5rem; }
.necta-facts span { display: block; font-size: .75rem; color: #5f6f74; }
.necta-facts b { font-size: 1.25rem; }
.necta-facts small { font-size: .8rem; font-weight: 500; color: #5f6f74; }
.necta-div thead th { background: #eef3f4; }
.necta-div .div-fail { color: #c62828; }
.necta-bands { display: flex; flex-wrap: wrap; gap: .35rem; }
.necta-bands .nb { border-radius: .35rem; padding: .3rem .6rem; display: flex; flex-direction: column; min-width: 6.4rem; line-height: 1.25; }
.necta-bands .nb b { font-size: 1.05rem; }
.necta-bands .nb span { font-size: .8rem; }
.necta-bands .nb small { font-size: .7rem; opacity: .9; font-variant-numeric: tabular-nums; }
.necta-bands .nb.on { outline: 3px solid #1d1d1d; outline-offset: 1px; }
.necta-subj .band-edge { border-left: 6px solid var(--band) !important; }
.necta-subj .band-tint { background: color-mix(in srgb, var(--band) 16%, #fff); }
.band-badge { display: inline-block; padding: .15rem .5rem; border-radius: .3rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.band-badge.sm { font-size: .72rem; padding: .05rem .35rem; }
@media print {
  .necta-gpa, .necta-bands .nb, .band-badge, .necta-subj .band-tint { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ---------- several schools ---------- */
.school-logo { width: 64px; height: 64px; flex: none; border-radius: .5rem; background: #eef3f4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.school-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.school-logo i { font-size: 1.8rem; color: var(--brand-2); }
.school-pick .dropdown-item.active { background: var(--brand); }
/* ---------- phone app page ---------- */
.app-icon { width: 64px; height: 64px; border-radius: 14px; }
.app-steps li { margin-bottom: .7rem; }
.app-address { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.app-address code { font-size: 1rem; background: #eef3f4; padding: .3rem .6rem; border-radius: .3rem; word-break: break-all; }
.app-qr { width: 220px; height: 220px; margin: .5rem auto; }
.app-qr svg { width: 100%; height: 100%; }
@media (max-width: 576px) {
  .topbar .brand { min-width: 0; flex: 1 1 auto; }
  .topbar .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: 1rem; }
}

/* ================= Look shared with Dawa MS: fonts, surfaces, dashboard welcome ================= */
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url(../fonts/outfit-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url(../fonts/outfit-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url(../fonts/outfit-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 400; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 500; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 600; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 700; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
:root { --ground: #f3f5f9; --line: #e0e5ee; --ink: #15233a; --muted: #5a6779; --display: 'Outfit', system-ui, sans-serif;
        --glow: var(--accent); }
body { font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); }
.page-title, .topbar .brand, .stat .v, .h-display { font-family: var(--display); letter-spacing: -.01em; }
.page-title { font-weight: 700; font-size: 1.55rem; }
.topbar .brand { font-weight: 700; font-size: 1.15rem; }
.card { border-color: var(--line); border-radius: 14px; }
.card > .card-header:first-child { border-radius: 14px 14px 0 0; }
.card-header { border-bottom-color: var(--line); padding: .8rem 1rem; }
.stat { border-radius: 14px; border-color: var(--line); padding: 1rem 1.15rem; height: 100%; }
.stat .l { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.stat .v { font-weight: 700; font-size: 1.75rem; color: var(--ink); }
.stat .v.kpi-good { color: #1e7b34; } .stat .v.kpi-bad { color: #b02a37; }
.btn { border-radius: 10px; font-weight: 600; }
.form-control, .form-select { border-radius: 10px; }
.table > thead th { font-weight: 600; color: var(--muted); font-size: .85rem; }
.sidebar .nav-link { border-radius: 0 10px 10px 0; margin-right: .6rem; }
.welcome { background: var(--sidebar-bg); color: #fff; border-radius: 20px; padding: 26px 28px; display: flex; gap: 28px; align-items: stretch; flex-wrap: wrap; margin-bottom: 1.25rem; position: relative; overflow: hidden; }
.welcome .w-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }
.welcome .w-date { color: rgba(255,255,255,.7); font-size: .9rem; }
.welcome h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.015em; margin: .15rem 0 .35rem; }
.welcome .w-line { color: rgba(255,255,255,.8); margin: 0; }
.welcome .w-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1.2rem; }
.welcome .w-actions a { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; padding: .6rem .95rem; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.welcome .w-actions a:hover { background: rgba(255,255,255,.18); }
.welcome .w-actions a.primary { background: var(--glow); color: #241a05; }
.welcome .w-actions a.primary:hover { background: color-mix(in srgb, var(--glow) 75%, white); }
.w-today { flex: 0 1 300px; min-width: 240px; display: grid; gap: .5rem; align-content: center; background: rgba(255,255,255,.06); border-radius: 14px; padding: 14px 16px; }
.w-today .wt { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.w-today .wt b { color: #fff; }
.w-today .wt.total { border-top: 1px solid rgba(255,255,255,.18); padding-top: .45rem; font-size: 1rem; }
.w-today .wt.total b { color: var(--glow); font-size: 1.2rem; }
.share { height: 5px; background: #edf1f3; border-radius: 3px; margin-top: .4rem; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--c, var(--brand)); border-radius: 3px; }
.top-svc { padding: .3rem 0; }
@media (max-width: 575.98px) { .welcome { padding: 20px 18px; border-radius: 16px; } .w-today { flex-basis: 100%; } }
.welcome .w-actions a.primary { color: #2a1c03; }
.dash-h { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 1.5rem 0 .8rem; }
.chart-title { font-family: var(--display); font-weight: 600; font-size: 1rem; margin-bottom: .1rem; }
.chart-sub { color: var(--muted); font-size: .82rem; margin-bottom: .5rem; }
.money-tiles .stat .v { font-size: 1.55rem; }
@media (max-width: 575.98px) { .money-tiles .stat .v { font-size: 1.15rem; } }
