:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --b: #e2e8f0;
  --tx: #1e293b;
  --mu: #64748b;
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --green: #059669;
  --red: #e11d48;
  --amber: #b45309;
  --sky: #0284c7;
  --orange: #ea580c;
  --violet: #7c3aed;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 14px; }

.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.shell { display: flex; height: 100vh; }
.sidebar {
  display: none;
  width: 248px; background: var(--card); border-right: 1px solid var(--b);
  flex-direction: column; flex-shrink: 0;
}
@media (min-width: 1024px) { .sidebar { display: flex; } }
.sidebar-brand {
  padding: 18px 20px; background: linear-gradient(135deg, #0a192f, #1e3a5f); color: #fff;
}
.sidebar-brand .logo { width: 38px; height: 38px; border-radius: 12px; background: rgba(37,99,235,.25); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
.nav-btn {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  color: #475569; font-weight: 600; font-size: 13px; text-decoration: none; margin-bottom: 2px;
  border-left: 3px solid transparent;
}
.nav-btn i { width: 20px; text-align: center; color: #94a3b8; }
.nav-btn:hover { background: #f8fafc; }
.nav-btn.active { background: #eff6ff; color: var(--blue); border-left-color: var(--blue); }
.nav-btn.active i { color: var(--blue); }
.sidebar-foot { padding: 14px; border-top: 1px solid var(--b); }
.avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--b); }
@media (min-width: 1024px) { .topbar { display: none; } }
.view { flex: 1; overflow-y: auto; padding-bottom: 76px; }
@media (min-width: 1024px) { .view { padding-bottom: 24px; } }
.mnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--card); border-top: 1px solid var(--b);
  display: flex; overflow-x: auto; padding: 4px 0; padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 1024px) { .mnav { display: none; } }
.mnav a { flex: 0 0 auto; min-width: 68px; display: flex; flex-direction: column; align-items: center; padding: 6px 8px; font-size: 9px; font-weight: 700; color: #94a3b8; text-decoration: none; gap: 3px; }
.mnav a i { font-size: 15px; }
.mnav a.on { color: var(--blue); }

.page-head { padding: 18px 16px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.page-sub { font-size: 12px; color: var(--mu); margin-top: 2px; }
.container { padding: 0 16px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--b); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-pad { padding: 14px; }
.stat-card { background: var(--card); border: 1px solid var(--b); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.stat-card .val { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat-card .lbl { font-size: 11px; font-weight: 700; color: var(--mu); margin-top: 2px; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; flex-shrink: 0; }

.list-card { background: var(--card); border: 1px solid var(--b); border-radius: 14px; padding: 12px 14px; display: block; text-decoration: none; color: inherit; }
.list-card:hover { border-color: #cbd5e1; }

/* quick action hero cards */
.hero-card { background: var(--card); border: 1px solid var(--b); border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.hero-card .h-ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.hero-card .h-t { font-size: 15px; font-weight: 800; }
.hero-card .h-s { font-size: 12px; color: var(--mu); margin-top: 2px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #d1fae5; color: #047857; }
.badge-rose { background: #ffe4e6; color: #be123c; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-sky { background: #e0f2fe; color: #0369a1; }
.badge-violet { background: #ede9fe; color: #6d28d9; }
.badge-outline { background: transparent; border: 1px solid var(--b); color: var(--mu); }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--b); background: var(--card);
  font-weight: 700; font-size: 13px; color: #334155; cursor: pointer; text-decoration: none;
  transition: transform .05s ease, box-shadow .1s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 1px 3px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--blue-d); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--b); color: #334155; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 10px; }
.btn-lg { padding: 14px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* seg 3-state for kiểm tra */
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--b); background: #fff; font-weight: 800; font-size: 12px; cursor: pointer; color: #475569; }
.seg button.on-pass { background: var(--green); border-color: var(--green); color: #fff; }
.seg button.on-fail { background: var(--red); border-color: var(--red); color: #fff; }
.seg button.on-na { background: #e2e8f0; border-color: #cbd5e1; color: #334155; }

/* ---------- Forms ---------- */
.field { margin-bottom: 12px; }
.field-label { display: block; font-size: 11px; font-weight: 800; color: var(--mu); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .03em; }
input[type="text"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #cbd5e1; background: #fff;
  font-size: 14px; font-family: inherit; color: var(--tx); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea { min-height: 90px; resize: vertical; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.flex-1 { flex: 1; min-width: 0; }
.muted { color: var(--mu); }
.tiny { font-size: 11px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.tab {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--b); background: var(--card);
  font-size: 12px; font-weight: 700; color: var(--mu); cursor: pointer; white-space: nowrap;
}
.tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Progress / bars ---------- */
.progress-track { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--blue); transition: width .2s; }
.progress-fill.green { background: var(--green); }
.progress-fill.red { background: var(--red); }
.hbar { height: 10px; border-radius: 999px; background: #f1f5f9; overflow: hidden; position: relative; }
.hbar > div { height: 100%; }
.vchart { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.vchart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.vchart .col .bar { width: 100%; max-width: 40px; background: var(--blue); border-radius: 8px 8px 0 0; position: relative; }
.vchart .col .lbl { font-size: 10px; font-weight: 700; color: var(--mu); }

/* ---------- Wizard ---------- */
.big-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 26px 16px; border-radius: 18px; border: 2px solid var(--b); background: var(--card);
  font-weight: 800; font-size: 14px; cursor: pointer; color: #334155;
}
.big-btn i { font-size: 26px; color: var(--blue); }
.big-btn small { font-weight: 400; color: var(--mu); font-size: 11px; }
.big-btn.on { border-color: var(--blue); background: #eff6ff; color: var(--blue); }
.reg-item { background: var(--card); border: 1px solid var(--b); border-radius: 14px; padding: 12px 14px; }
.reg-item .rt { font-weight: 800; font-size: 13px; }
.reg-item .rc { font-size: 11px; color: var(--mu); font-weight: 700; }

/* ---------- Photos ---------- */
.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-previews .pp { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--b); }
.photo-previews .pp img { width: 100%; height: 100%; object-fit: cover; }
.photo-previews .pp button {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 999px; border: none;
  background: rgba(0,0,0,.6); color: #fff; font-size: 11px; cursor: pointer;
}
.ts-pill { display: inline-flex; align-items: center; gap: 6px; background: #f8fafc; border: 1px solid var(--b); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }

/* ---------- Timeline ---------- */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #e2e8f0; }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item::before { content: ''; position: absolute; left: -21px; top: 6px; width: 12px; height: 12px; border-radius: 999px; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 2px #dbeafe; }
.tl-item .tl-h { font-weight: 800; font-size: 12px; }
.tl-item .tl-t { font-size: 12px; color: var(--mu); margin-top: 2px; white-space: pre-wrap; }

/* ---------- Misc ---------- */
.empty { text-align: center; color: var(--mu); padding: 30px 16px; font-size: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--mu); padding: 8px; border-bottom: 1px solid var(--b); }
.table td { padding: 9px 8px; border-bottom: 1px solid #f1f5f9; }
.search-box { position: relative; }
.search-box input { padding-left: 34px; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; }
a.link { color: var(--blue); text-decoration: none; font-weight: 700; }
.divider { height: 1px; background: var(--b); margin: 12px 0; }
.section-t { font-size: 13px; font-weight: 800; margin: 18px 0 10px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Core overlays + layout (falls back when CDN Tailwind offline) ---------- */
#app { position: relative; }
#view { flex: 1; overflow-y: auto; }
.shell { min-height: 100vh; }
#modal-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
#modal-wrap > .absolute { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
#modal-wrap > .relative { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(15,23,42,.35); width: 100%; max-width: 672px; max-height: 92vh; overflow-y: auto; }
#toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; width: 100%; max-width: 384px; padding: 0 16px; pointer-events: none; }
#lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(15,23,42,.9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.flex { display: flex; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.flex-1 { min-width: 0; }
.relative { position: relative; }
.w-full { width: 100%; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.p-4 { padding: 16px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.text-sm { font-size: 13px; } .text-xs { font-size: 11px; } .text-lg { font-size: 17px; }
.font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overflow-y-auto { overflow-y: auto; }
.max-w-md { max-width: 448px; } .max-w-sm { max-width: 384px; } .max-w-2xl { max-width: 672px; }
.rounded-2xl { border-radius: 16px; } .rounded-xl { border-radius: 12px; }
.shadow-xl { box-shadow: 0 20px 50px rgba(15,23,42,.35); }
.shadow-sm { box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.bg-white { background: #fff; }

/* ---------- Mobile app polish ---------- */
.avatar-sm { width: 32px; height: 32px; font-size: 11px; }
@media (max-width: 1023.98px) {
  .topbar { position: sticky; top: 0; z-index: 40; padding: max(10px, env(safe-area-inset-top)) 16px 10px; backdrop-filter: blur(8px); }
  .page-head { position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 12px 16px; }
  .mnav a { min-width: 56px; padding: 7px 6px; border-radius: 12px; }
  .mnav a i { font-size: 17px; }
  .mnav a.on { background: #eff6ff; box-shadow: inset 0 0 0 1px #dbeafe; }
  .view { scrollbar-width: none; }
}

/* ---------- Dark mode (theo Telegram colorScheme) ---------- */
html.dark { color-scheme: dark; --bg: #0b1220; --card: #111a2e; --b: #1e2a44; --tx: #e2e8f0; --mu: #94a3b8; }
html.dark body { background: #0b1220; color: #e2e8f0; }
html.dark .sidebar { background: #0e1626; }
html.dark .sidebar-brand { background: linear-gradient(135deg, #0a111f, #16233f); }
html.dark .nav-btn { color: #cbd5e1; }
html.dark .nav-btn:hover { background: #1a2438; }
html.dark .nav-btn.active { background: #16233f; border-left-color: #60a5fa; }
html.dark .nav-btn.active i { color: #60a5fa; }
html.dark .topbar { background: #0e1626; }
html.dark .mnav { background: #0e1626; }
html.dark .mnav a { color: #64748b; }
html.dark .mnav a.on { background: #16233f; box-shadow: inset 0 0 0 1px #1e3a5f; color: #60a5fa; }
html.dark .btn { background: #1a2438; border-color: #27334e; color: #e2e8f0; }
html.dark .btn-ghost { background: transparent; border-color: #27334e; color: #cbd5e1; }
html.dark .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
html.dark .btn-success { background: var(--green); border-color: var(--green); color: #fff; }
html.dark .btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
html.dark .page-title { color: #f1f5f9; }
html.dark input[type="text"], html.dark input[type="date"], html.dark input[type="number"], html.dark input[type="search"], html.dark select, html.dark textarea { background: #0f172a; color: #e2e8f0; border-color: #27334e; }
html.dark input::placeholder, html.dark textarea::placeholder { color: #64748b; }
html.dark .badge-gray { background: #1e293b; color: #cbd5e1; }
html.dark .badge-outline { border-color: #334155; color: #94a3b8; }
html.dark .tab { background: #111a2e; border-color: #27334e; color: #94a3b8; }
html.dark .seg button { background: #0f172a; border-color: #27334e; color: #94a3b8; }
html.dark .progress-track, html.dark .hbar { background: #1e293b; }
html.dark .table td { border-color: #1e293b; }
html.dark .search-box i { color: #64748b; }
html.dark .tl-item::before { background: var(--blue); border-color: #111a2e; box-shadow: 0 0 0 2px #16233f; }
html.dark .photo-previews .pp { border-color: #27334e; }
html.dark .ts-pill { background: #0f172a; border-color: #27334e; color: #cbd5e1; }
html.dark .divider { background: #1e2a44; }
html.dark #modal-wrap > .relative { background: #111a2e; }
html.dark #modal-wrap .btn { background: #1a2438; border-color: #27334e; color: #e2e8f0; }
html.dark #login .bg-white { background: #111a2e; border-color: #1e2a44; }
html.dark #dev-list button { background: #0f172a; border-color: #1e2a44; color: #e2e8f0; }
html.dark a.link { color: #60a5fa; }
/* ===== Sự cố: chip chọn nhanh, stepper workflow, thẻ sự cố ===== */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-wrap .chip-cat { display: flex; align-items: center; gap: 6px; }
.chip {
  border: 1px solid #e2e8f0; background: #fff; color: #334155;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  line-height: 1.2; cursor: pointer; transition: all .12s ease; min-height: 40px;
}
.chip:hover { border-color: #93c5fd; background: #eff6ff; }
.chip.on { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .25); }
.chip .cat-icon { font-size: 15px; }
.anon-toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.anon-toggle input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.issue-card { cursor: pointer; }
.issue-card:hover { border-color: #bfdbfe; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
.mini-input { padding: 6px 10px; font-size: 13px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
html.dark .mini-input, html.dark .chip { background: #0f172a; border-color: #1e2a44; color: #e2e8f0; }
html.dark .chip.on { background: #2563eb; border-color: #2563eb; color: #fff; }

.stepper { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.step { flex: 1; min-width: 92px; text-align: center; }
.step-dot {
  width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 999px;
  background: #e2e8f0; color: #64748b; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step.done .step-dot { background: #10b981; color: #fff; }
.step.now .step-dot { background: #2563eb; color: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.step-lbl { font-size: 10.5px; font-weight: 600; color: #64748b; line-height: 1.25; }
.step.now .step-lbl { color: #1d4ed8; }
.stepper::after { content: ''; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 13px; left: 60%; right: -40%; height: 2px; background: #e2e8f0;
}
.step.done:not(:last-child)::after { background: #10b981; }

/* ===== Báo cáo in / PDF ===== */
.rep-sheet { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.rep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid #0f172a; padding-bottom: 10px; }
.rep-org-name { font-size: 15px; font-weight: 800; }
.rep-title { font-size: 15px; font-weight: 800; text-align: right; text-transform: uppercase; }
.rep-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.rep-h { font-size: 13px; font-weight: 800; margin: 16px 0 6px; text-transform: uppercase; }
.rep-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.rep-tbl th, .rep-tbl td { border: 1px solid #cbd5e1; padding: 4px 6px; text-align: left; vertical-align: top; }
.rep-tbl th { background: #f1f5f9; font-weight: 700; }
.rep-empty { text-align: center; color: #94a3b8; padding: 10px; }
.rep-sign { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; }
.sign-line { width: 190px; height: 1px; background: #0f172a; margin: 26px 0 4px; }
html.dark .rep-sheet { background: #0f172a; border-color: #1e2a44; }
html.dark .rep-tbl th, html.dark .rep-tbl td { border-color: #1e2a44; }
html.dark .rep-tbl th { background: #111a2e; }

@media print {
  .sidebar, .topbar, .mnav, .no-print { display: none !important; }
  html, body { background: #fff !important; }
  .view { padding: 0 !important; overflow: visible !important; height: auto !important; }
  .container { max-width: none !important; padding: 0 !important; }
  .card, .rep-sheet { box-shadow: none !important; border: none !important; border-radius: 0 !important; padding: 0 !important; }
  .rep-tbl { font-size: 9.5px; }
  .rep-tbl th, .rep-tbl td { border-color: #94a3b8 !important; }
  .rep-h { break-after: avoid; }
  .rep-tbl tr { break-inside: avoid; }
}
