:root {
  --bg: #f4f6f6; --surface: #fff; --surface-2: #f8faf9; --text: #101828; --muted: #667085; --faint: #98a2b3;
  --border: #e4e7ec; --brand: #0f3d3e; --brand-2: #0f766e; --brand-soft: #e6f4f1; --accent: #5eead4;
  --expired: #c0262d; --expired-bg: #fef1f1; --due: #b45309; --due-bg: #fff7e8; --valid: #067647; --valid-bg: #eafaf1;
  --lifetime: #475467; --lifetime-bg: #f1f3f6; --progress: #1d5fd1; --progress-bg: #eef5ff; --missing: #6b4bc4; --missing-bg: #f4f1ff;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 20px 40px -12px rgba(16,24,40,.25);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--brand); color: #d5e7e5; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: rgba(94,234,212,.15); display: grid; place-items: center; flex: none; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 11px; color: #8fb8b4; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #c4dcd9; font-weight: 500; margin-bottom: 2px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(94,234,212,.14); color: #fff; }
.nav a .count { margin-left: auto; background: var(--expired); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; padding: 12px; font-size: 12px; color: #8fb8b4; }
.side-foot button { background: none; border: 0; color: #c4dcd9; cursor: pointer; padding: 0; }
.main { min-width: 0; padding: 28px 32px 60px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 700; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); padding: 9px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.primary:hover { background: #0b5f59; }
.btn.danger { color: var(--expired); }
.btn.ghost { background: none; border-color: transparent; box-shadow: none; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { border: 0; background: none; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=time], select, textarea {
  width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; padding: 9px 12px; background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }
textarea { resize: vertical; min-height: 70px; }
label.field { display: block; }
label.field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
label.field > small { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-2); }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search input { padding-left: 34px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 15px; font-weight: 650; }
.card-body { padding: 18px 20px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; cursor: pointer; transition: transform .12s, box-shadow .12s; position: relative; overflow: hidden; }
.kpi:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(16,24,40,.18); }
.kpi .label { color: var(--muted); font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: 30px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .hint { font-size: 12px; color: var(--faint); }
.kpi .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--due-bg); color: #7a3e06; border: 1px solid #fde3b0; margin-bottom: 16px; }
.banner.info { background: var(--progress-bg); color: #19418f; border-color: #cfe0fd; }
.banner svg { width: 18px; height: 18px; flex: none; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; }
.s-expired { color: var(--expired); background: var(--expired-bg); } .s-expired .dot, .bg-expired { background: var(--expired); }
.s-due { color: var(--due); background: var(--due-bg); } .s-due .dot, .bg-due { background: #e8890c; }
.s-valid { color: var(--valid); background: var(--valid-bg); } .s-valid .dot, .bg-valid { background: #17a34a; }
.s-lifetime { color: var(--lifetime); background: var(--lifetime-bg); } .s-lifetime .dot, .bg-lifetime { background: #98a2b3; }
.s-in_progress { color: var(--progress); background: var(--progress-bg); } .s-in_progress .dot, .bg-in_progress { background: #3b82f6; }
.s-missing { color: var(--missing); background: var(--missing-bg); } .s-missing .dot, .bg-missing { background: #8b6fe0; }
.days { font-variant-numeric: tabular-nums; font-weight: 650; }
.days.expired { color: var(--expired); } .days.due { color: var(--due); } .days.valid { color: var(--valid); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.t th.sortable { cursor: pointer; user-select: none; } .t th.sortable:hover { color: var(--text); }
.t td { padding: 11px 14px; border-bottom: 1px solid #f0f2f4; vertical-align: middle; }
.t tbody tr { cursor: pointer; } .t tbody tr:hover { background: #f9fbfb; }
.t tr:last-child td { border-bottom: 0; }
.t .lic-name { font-weight: 600; } .t .lic-num { color: var(--muted); font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty svg { width: 40px; height: 40px; color: var(--faint); margin-bottom: 10px; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.filters .search { flex: 1; min-width: 200px; }
.filters select { width: auto; min-width: 190px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px 0; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.chip b { font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; } .chip.on b { color: var(--accent); }

/* ---------- attention list ---------- */
.att { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #f0f2f4; cursor: pointer; }
.att:hover { background: #f9fbfb; } .att:last-child { border-bottom: 0; }
.att .when { width: 76px; height: 56px; flex: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid transparent; }
.att .when.s-expired { background: var(--expired-bg); border-color: #f7c9c9; }
.att .when.s-due { background: var(--due-bg); border-color: #f8dcaa; }
.att .when b { display: block; font-size: 20px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.att .when span { font-size: 9.5px; line-height: 1; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; opacity: .85; white-space: nowrap; }
.att .what { min-width: 0; flex: 1; } .att .what div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scroll-list { max-height: 460px; overflow-y: auto; }

/* ---------- charts ---------- */
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 10px; }
.month { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; cursor: default; position: relative; }
.month .b { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: var(--brand-2); min-height: 3px; transition: opacity .15s; }
.month .b.zero { background: var(--border); }
.month .b.soon { background: #e8890c; }
.month:hover .b { opacity: .8; }
.month .n { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.month .m { font-size: 11px; color: var(--muted); }
.month .tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; width: 220px; z-index: 5; box-shadow: var(--shadow-lg); }
.month:hover .tip { display: block; }
.months-wrap { position: relative; }
.donut-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.legend { display: grid; gap: 8px; flex: 1; min-width: 160px; }
.legend div { display: flex; align-items: center; gap: 8px; cursor: pointer; } .legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.stackbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--border); }
.stackbar span { display: block; height: 100%; }

/* ---------- client cards ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.client-card { padding: 18px; cursor: pointer; transition: transform .12s, box-shadow .12s; display: flex; flex-direction: column; gap: 12px; }
.client-card:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(16,24,40,.2); }
.avatar { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: var(--brand); background: var(--brand-soft); flex: none; font-size: 14px; }
.client-card .name { font-weight: 650; line-height: 1.3; }
.mini-stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.mini-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.mini-stats .e b { color: var(--expired); } .mini-stats .d b { color: var(--due); }
.client-rows .crow { display: grid; grid-template-columns: minmax(0,1fr) 80px 64px; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid #f0f2f4; cursor: pointer; }
.client-rows .crow:hover { background: #f9fbfb; } .client-rows .crow:last-child { border-bottom: 0; }
.crow .nm { font-weight: 500; line-height: 1.3; }

/* ---------- drawer & modal ---------- */
#overlay:empty { display: none; }
.backdrop { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 40; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--surface); z-index: 41; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.drawer-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100% - 24px)); max-height: calc(100vh - 32px); background: var(--surface); border-radius: 16px; z-index: 51; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: pop .16s ease-out; }
.modal.sm { width: min(440px, calc(100% - 24px)); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); border-radius: 0 0 16px 16px; }
.backdrop.top { z-index: 50; }
@keyframes fade { from { opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, -48%); opacity: 0; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.facts > div { background: #fff; padding: 12px 14px; }
.facts .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.facts .v { font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; word-break: break-word; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.period { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.period-head { padding: 10px 14px; background: var(--surface-2); display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid #f0f2f4; }
.file-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--expired-bg); color: var(--expired); font-size: 10px; font-weight: 700; flex: none; }
.file-ic.img { background: var(--progress-bg); color: var(--progress); } .file-ic.doc { background: var(--brand-soft); color: var(--brand-2); }
.file .fn { min-width: 0; flex: 1; } .file .fn div:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.drop { border: 2px dashed #cfd6dd; border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: all .15s; background: var(--surface-2); }
.drop.over, .drop:hover { border-color: var(--brand-2); background: var(--brand-soft); color: var(--brand); }
.drop svg { width: 28px; height: 28px; margin-bottom: 4px; }
.timeline { border-left: 2px solid var(--border); margin-left: 6px; padding-left: 16px; }
.timeline > div { position: relative; padding-bottom: 12px; }
.timeline > div::before { content: ''; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--faint); }
.timeline > div.now::before { border-color: var(--brand-2); background: var(--brand-2); }
.viewer { position: fixed; inset: 16px; z-index: 61; background: #1d2939; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.viewer-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #fff; }
.viewer-head .icon-btn { color: #d0d5dd; } .viewer-head .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.viewer iframe, .viewer .imgbox { flex: 1; border: 0; background: #fff; }
.viewer .imgbox { display: grid; place-items: center; overflow: auto; background: #101828; }
.viewer .imgbox img { max-width: 100%; max-height: 100%; }
.backdrop.viewer-bg { z-index: 60; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 6px; background: #fff; }
.tags:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }
.tag { background: var(--brand-soft); color: var(--brand); border-radius: 7px; padding: 4px 6px 4px 10px; display: inline-flex; gap: 4px; align-items: center; font-weight: 500; font-size: 13px; }
.tag button { border: 0; background: none; cursor: pointer; color: var(--brand); padding: 0 3px; font-size: 15px; line-height: 1; }
.tags input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 160px; padding: 4px 6px; }
.soon-badge { font-size: 11px; background: var(--progress-bg); color: var(--progress); padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.help { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #475467; }
.help ol { margin: 6px 0 0; padding-left: 18px; } .help li { margin: 3px 0; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 10% -10%, #1b5e5f 0%, transparent 60%), var(--brand); }
.login-card { width: min(400px, 100%); padding: 32px; }
.login-card h1 { font-size: 22px; margin: 18px 0 4px; }

/* ---------- toast ---------- */
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { background: var(--text); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); animation: fade .2s; max-width: 380px; font-weight: 500; }
.toast.err { background: var(--expired); }

.mobile-only { display: none; }
@media (max-width: 1150px) { .kpis { grid-template-columns: repeat(3, 1fr); } .dash-grid, .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; } .nav { min-width: 0; }
  .banner { flex-wrap: wrap; } .page-head .actions { margin-left: 0; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; z-index: 30; gap: 8px; }
  .brand { padding: 0; } .brand-text, .side-foot { display: none; }
  .nav { display: flex; overflow-x: auto; gap: 2px; flex: 1; scrollbar-width: none; }
  .nav a { padding: 8px 10px; margin: 0; font-size: 13px; white-space: nowrap; }
  .nav a svg { display: none; }
  .main { padding: 20px 16px 60px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .t .hide-sm { display: none; }
  .mobile-only { display: initial; }
  .months .m { font-size: 9px; }
}

/* ---------- type-or-pick box ---------- */
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; z-index: 5; padding: 4px; }
.combo-item { padding: 8px 10px; border-radius: 7px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.combo-item.on, .combo-item:hover { background: var(--brand-soft); }
.combo-item.add { color: var(--brand-2); font-weight: 500; }
.combo-item b { font-weight: 650; }
.combo-empty { padding: 8px 10px; color: var(--muted); font-size: 13px; }

/* ---------- custom dropdown arrow ---------- */
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
}
select:hover { border-color: #b8c0cc; }

/* ---------- visual report ---------- */
.report { max-width: 1040px; margin: 0 auto; display: grid; gap: 16px; }
.report-head { display: flex; gap: 16px; align-items: flex-end; padding: 24px 26px; border-radius: var(--radius); background: var(--brand); color: #fff; flex-wrap: wrap; }
.report-head h1 { font-size: 26px; margin: 6px 0 4px; }
.report-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.report-sub { color: #b7d3d0; }
.report-date { margin-left: auto; text-align: right; color: #b7d3d0; } .report-date b { color: #fff; }
.report-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.report-score { display: flex; align-items: center; gap: 18px; padding: 16px 20px; }
.report-label { font-weight: 700; font-size: 16px; }
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rk { padding: 12px 14px; position: relative; overflow: hidden; }
.rk .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; } .bg-brand { background: var(--brand-2); }
.rk .label { color: var(--muted); font-size: 12px; font-weight: 500; } .rk .value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.report-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.report-block { overflow: hidden; }
.t.plain tbody tr { cursor: default; } .t.plain tbody tr:hover { background: none; }
.report-foot { color: var(--muted); font-size: 12px; text-align: center; padding: 6px 0 20px; }
@media (max-width: 860px) { .report-top, .report-charts { grid-template-columns: 1fr; } .report-kpis { grid-template-columns: repeat(2, 1fr); } }

@page { size: A4; margin: 12mm; }
@media print {
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .side, .no-print, #toasts, #overlay { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .report { max-width: none; gap: 10px; }
  .report-top, .report-charts { grid-template-columns: 1fr 1.4fr; }
  .report-kpis { grid-template-columns: repeat(3, 1fr); }
  .t th { position: static; }
  .t tr { break-inside: avoid; }
  .month .tip { display: none !important; }
}
