/* Masterbangun Proyek
   Palet dan tipografi diambil dari identitas masterbangun.id:
   navy #040037 (teks dan rangka), raspberry #E21E51 (aksen tunggal),
   lilac #EFEFF5 (latar), Montserrat sebagai huruf judul.
   Aksen dipakai hanya untuk aksi utama dan penanda menu aktif. */

:root {
  --navy: #040037;
  --navy-soft: #17134a;
  --navy-line: #2b2660;
  --accent: #e21e51;
  --accent-dark: #7a2135;
  --lilac: #efeff5;
  --paper: #ffffff;
  --slate: #514d7c;
  --muted: #5c5c6e;
  --line: #deddeb;
  --line-strong: #c7c6da;
  --ok: #13612e;
  --ok-bg: #e6f0e9;
  --warn: #8a5200;
  --warn-bg: #fbeed9;
  --danger: #b82105;
  --danger-bg: #fbe6e1;
  --info: #1159af;
  --info-bg: #e5eefa;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-bar: 0 1px 0 var(--line), 0 6px 18px rgba(4, 0, 55, 0.05);
  --shadow-pop: 0 10px 30px rgba(4, 0, 55, 0.14);
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-data: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-data);
  color: var(--navy);
  background: var(--lilac);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, .brand, .btn, .nav-link, .tab, label, .eyebrow, .stat-value {
  font-family: var(--font);
}

h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.25; }
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 0.8em; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: 0.82rem; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Tata letak */
.layout { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--navy);
  color: #cdcbe6;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.brand-sub { display: block; font-size: 0.68rem; font-weight: 500; color: #9a97c4; letter-spacing: 0.02em; }

.nav-group { padding: 6px 12px; overflow-y: auto; flex: 1; }
.nav-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7d7ab0;
  padding: 12px 8px 5px;
  font-weight: 600;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: #cdcbe6;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
}
.nav-link:hover { background: var(--navy-soft); color: #fff; text-decoration: none; }
.nav-link.is-active { background: var(--navy-soft); color: #fff; }
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -12px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nav-link .nav-icon { width: 16px; text-align: center; opacity: 0.9; }
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
}
.sidebar-foot { padding: 12px; border-top: 1px solid var(--navy-line); }
.user-chip { display: flex; align-items: center; gap: 10px; color: #fff; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.8rem;
  color: #fff;
  flex: 0 0 auto;
}
.user-chip .name { font-size: 0.84rem; font-weight: 600; line-height: 1.2; }
.user-chip .role { font-size: 0.72rem; color: #9a97c4; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-bar);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar h1 { margin: 0; font-size: 1.18rem; }
.topbar .sub { color: var(--muted); font-size: 0.82rem; margin-top: 1px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 1.1rem;
  cursor: pointer;
}

.content { padding: 22px; flex: 1; width: 100%; max-width: 1240px; }

/* Kartu dan bagian */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .spacer { margin-left: auto; }
.card.tight { padding: 14px; }

.section-title {
  display: flex; align-items: baseline; gap: 10px;
  margin: 26px 0 12px;
}
.section-title:first-child { margin-top: 0; }
.section-title h2 { margin: 0; }
.section-title .accent-rule {
  height: 3px; width: 34px; border-radius: 2px; background: var(--accent);
  align-self: center;
}
.section-title .count { color: var(--muted); font-size: 0.85rem; }
.section-title .spacer { margin-left: auto; align-self: center; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* Statistik: hanya angka nyata, satu garis aksen */
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.stat-label { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.stat-value { font-size: 1.5rem; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; }
.stat-note { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.stat.alert .stat-value { color: var(--danger); }

/* Daftar baris */
.row-list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }
.row-main { min-width: 0; flex: 1; }
.row-title { font-weight: 600; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-sub { color: var(--muted); font-size: 0.8rem; margin-top: 1px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; flex-wrap: wrap; }
/* Di dalam tabel, tombol aksi berjajar rapat supaya baris tidak melebar. */
table.data .row-actions { justify-content: flex-end; gap: 6px; }
.row-link { color: inherit; }
.row-link:hover { text-decoration: none; }
.row-link:hover .row-title { color: var(--accent-dark); }

/* Tabel */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--font); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:hover { background: #fafafd; }
table.data tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #f4f4fa; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--info); }
.btn-ghost:hover { background: #eef0f8; }
.btn-danger { color: var(--danger); border-color: #ecc9c0; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Lencana status */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.73rem; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.danger { color: var(--danger); background: var(--danger-bg); }
.badge.info { color: var(--info); background: var(--info-bg); }
.badge.muted { color: var(--muted); background: #eef0f4; }
.badge.plain::before { display: none; }

/* Formulir */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; }
.field .hint { font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--paper);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
/* Input berkas punya lebar bawaan browser yang bisa melebihi kolom sempit. */
input[type="file"] { font-size: 0.84rem; width: 100%; max-width: 100%; min-width: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; padding: 4px 0; }
.check input { width: 18px; height: 18px; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.inline-form { display: inline; }

/* Tab dalam halaman proyek */
.tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 4px; }
.tab {
  padding: 9px 13px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--navy); text-decoration: none; }
.tab.is-active { color: var(--navy); border-bottom-color: var(--accent); }

/* Progres */
.progress { height: 8px; background: var(--lilac); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.progress.navy > span { background: var(--navy); }
.progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }

/* Linimasa tahapan */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line-strong);
}
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.active::before { background: var(--accent); border-color: var(--accent); }
.timeline .tl-title { font-weight: 600; font-size: 0.9rem; }
.timeline .tl-meta { font-size: 0.78rem; color: var(--muted); }

/* Media laporan */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.media-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.media-item img, .media-item video { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--lilac); }
.media-item .media-body { padding: 8px; font-size: 0.78rem; }
.media-item.is-hidden { opacity: 0.5; border-style: dashed; }
.media-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; }

/* Keadaan kosong dan pesan */
.empty { text-align: center; padding: 30px 18px; color: var(--muted); }
.empty h3 { color: var(--navy); margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }
.empty.small { padding: 18px; }

.flash { padding: 11px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.88rem; border: 1px solid; display: flex; gap: 9px; align-items: flex-start; }
.flash.ok { color: var(--ok); background: var(--ok-bg); border-color: #bfd8c6; }
.flash.err { color: var(--danger); background: var(--danger-bg); border-color: #ecc9c0; }
.flash.info { color: var(--info); background: var(--info-bg); border-color: #c3d6ef; }
.flash.warn { color: var(--warn); background: var(--warn-bg); border-color: #e8d3ac; }

.alert-inline { font-size: 0.84rem; color: var(--danger); margin-top: 5px; }

/* Halaman masuk */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy); }
.auth-card { width: 100%; max-width: 400px; background: var(--paper); border-radius: 14px; padding: 30px; box-shadow: var(--shadow-pop); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.auth-brand .brand { color: var(--navy); padding: 0; }
.auth-demo { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 0.8rem; color: var(--muted); }
.auth-demo table { width: 100%; border-collapse: collapse; }
.auth-demo td { padding: 3px 0; }
.auth-demo code { color: var(--navy); }

/* Notifikasi dan tautan bagian */
.bell {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.1rem;
  border: 1px solid var(--line); background: var(--paper);
}
.bell:hover { text-decoration: none; border-color: var(--line-strong); }
.bell-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.section-title .section-link { margin-left: auto; align-self: center; font-size: 0.82rem; font-weight: 600; }
details.card > summary { cursor: pointer; font-family: var(--font); font-weight: 600; }
details.card > summary::marker { color: var(--accent); }

/* Navigasi bawah untuk HP */
.bottom-nav { display: none; }
.mobile-overlay { display: none; }

/* Utilitas */
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.input-with-toggle { display: flex; gap: 8px; align-items: stretch; }
.input-with-toggle input { flex: 1; min-width: 0; }
.input-with-toggle .toggle-password { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.hidden { display: none; }
.stack > * + * { margin-top: 10px; }
.def-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.88rem; }
.def-list dt { color: var(--muted); }
.def-list dd { margin: 0; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.pill-list { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 0.76rem; background: var(--lilac); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--slate); }

/* Editor termin kontrak: satu baris = satu termin, jumlahnya bebas.
   Di ponsel tombol hapus pindah ke baris sendiri supaya tidak menghimpit input. */
.term-rows { display: flex; flex-direction: column; gap: 10px; }
.term-row {
  display: grid; gap: 8px 10px; align-items: start;
  grid-template-columns: minmax(0, 1.5fr) 110px minmax(0, 1fr) minmax(0, 1.2fr) auto;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.term-row .field { margin-bottom: 0; }
.term-row .term-remove { align-self: end; margin-bottom: 1px; }
.term-row .term-amount { min-height: 1.1em; }
.term-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.term-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--lilac); border: 1px solid var(--line);
}
.term-summary div { display: flex; flex-direction: column; gap: 2px; }
.term-summary strong { font-size: 0.98rem; }
.term-status { margin: 8px 0 0; }
.term-status.is-ok { color: var(--ok); font-weight: 600; }
.term-status.is-off { color: var(--danger); font-weight: 600; }

/* Log aktivitas: nilai lama dan baru dibaca berpasangan */
.audit-pair { display: block; }
.audit-pair + .audit-pair { margin-top: 2px; }
.audit-before { text-decoration: line-through; opacity: 0.75; }

/* Ponsel: sidebar menjadi menu geser, ditambah navigasi bawah */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.2s ease; width: 260px; box-shadow: var(--shadow-pop); }
  .sidebar.is-open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-overlay.is-open { display: block; position: fixed; inset: 0; background: rgba(4, 0, 55, 0.45); z-index: 35; }
  .content { padding: 16px 14px 96px; }
  .topbar { padding: 10px 14px; }
  .topbar h1 { font-size: 1.02rem; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.split { grid-template-columns: minmax(0, 1fr); }
  .bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1; min-height: 52px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 0.68rem; font-weight: 600; color: var(--muted); text-decoration: none;
  }
  .bottom-nav a .bi { font-size: 1.05rem; line-height: 1; }
  .bottom-nav a.is-active { color: var(--accent-dark); }
  table.data.stack-mobile thead { display: none; }
  table.data.stack-mobile tbody tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.data.stack-mobile tbody td { display: flex; justify-content: space-between; gap: 12px; border: none; padding: 4px 0; }
  table.data.stack-mobile tbody td::before { content: attr(data-label); color: var(--muted); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
  table.data.stack-mobile td.num { text-align: right; }
  /* Baris total ikut ditumpuk; tanpa ini kolom total memaksa tabel melebar. */
  table.data.stack-mobile tfoot tr { display: block; border-top: 2px solid var(--line); padding: 8px 0 2px; }
  table.data.stack-mobile tfoot td {
    display: flex; justify-content: space-between; gap: 12px;
    border: none; padding: 4px 0; font-weight: 700;
  }
  table.data.stack-mobile tfoot td::before {
    content: attr(data-label); color: var(--muted); font-weight: 600;
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em;
  }
  table.data.stack-mobile tfoot td.num { text-align: right; }
  .btn-sm { min-height: 40px; padding: 8px 12px; }
  .check { min-height: 44px; }
  .bell { width: 44px; height: 44px; }
  /* Tab proyek dilipat jadi beberapa baris supaya tidak ada tab yang tersembunyi di luar layar. */
  .tabs .tab { padding: 8px 10px; font-size: 0.8rem; }
}

@media (max-width: 520px) {
  .card { padding: 14px; }
  .content { padding: 12px 12px 96px; }
  .def-list { grid-template-columns: 1fr; gap: 2px 0; }
  .def-list dt { margin-top: 6px; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .term-row { grid-template-columns: minmax(0, 1fr); }
  .term-row .term-remove { justify-self: start; }
  .term-summary { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Cetak laporan: yang tercetak hanya isi laporan, bukan rangka aplikasi. */
.print-only { display: none; }

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

  body { background: #fff; color: #000; font-size: 11pt; }
  .sidebar, .topbar, .bottom-nav, .menu-toggle, .mobile-overlay, .flash, .toast, .no-print { display: none !important; }
  .main { margin-left: 0 !important; min-height: auto; }
  .content { padding: 0 !important; max-width: none; }
  .print-only { display: block !important; }

  .report-head { margin-bottom: 12mm; border-bottom: 1px solid #000; padding-bottom: 4mm; }
  .report-company { font-family: var(--font); font-size: 10pt; letter-spacing: 0.06em; text-transform: uppercase; }
  .report-title { font-family: var(--font); font-size: 16pt; font-weight: 700; margin-top: 2mm; }
  .report-meta { font-size: 9pt; margin-top: 1mm; }

  .card {
    border: none; border-radius: 0; box-shadow: none;
    padding: 0 0 6mm; margin-bottom: 6mm;
    break-inside: auto;
  }
  .card-head { border-bottom: 1px solid #000; padding-bottom: 2mm; margin-bottom: 2mm; }
  .card-head h2 { font-size: 12pt; }
  .grid.split, .grid.cols-2, .grid.cols-4 { display: block !important; }
  .stat { border: none !important; padding: 0 0 3mm !important; background: none !important; box-shadow: none !important; }

  .table-wrap { overflow: visible; }
  table.data { font-size: 9pt; }
  table.data th, table.data td { padding: 2mm 3mm; border-bottom: 1px solid #bbb; }
  table.data th { color: #000; }
  table.data tbody tr:hover { background: none; }
  table.data thead { display: table-header-group; }
  table.data tr { break-inside: avoid; }

  .badge { border: 1px solid #000; color: #000 !important; background: none !important; }
  .badge::before { display: none; }
  .progress { border: 1px solid #000; background: none; height: 4mm; }
  .progress > span { background: #000 !important; }

  .row { padding: 2mm 0; border-bottom: 1px solid #bbb; }
  .row-sub { color: #333; }

  a { color: #000; text-decoration: none; }
  h1, h2, h3 { break-after: avoid; }
}

