/* e-PIS design system: tokens, layout, components, motion, print */
:root {
  --bg: #f4f6f5;
  --bg-2: #eaefed;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --border: #dfe5e2;
  --text: #15201c;
  --text-2: #55645e;
  --text-3: #8a9792;
  --primary: #0f766e;
  --primary-2: #0d9488;
  --primary-soft: #ccfbf1;
  --primary-ink: #ffffff;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, 0.06);
  --shadow: 0 4px 16px rgba(16, 24, 20, 0.08);
  --shadow-lg: 0 18px 50px rgba(16, 24, 20, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --sidebar: 248px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d1412; --bg-2: #121b18; --surface: #151f1c; --surface-2: #1a2622; --border: #26342f;
    --text: #e7efec; --text-2: #a5b4ae; --text-3: #71807a; --primary: #2dd4bf; --primary-2: #5eead4;
    --primary-soft: #113a35; --primary-ink: #04201c; --accent: #fbbf24; --accent-soft: #3a2a0a;
    --ok: #4ade80; --ok-soft: #10301c; --warn: #fbbf24; --warn-soft: #3a2a0a; --bad: #f87171; --bad-soft: #3b1414;
    --info: #93c5fd; --info-soft: #132446;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0d1412; --bg-2: #121b18; --surface: #151f1c; --surface-2: #1a2622; --border: #26342f;
  --text: #e7efec; --text-2: #a5b4ae; --text-3: #71807a; --primary: #2dd4bf; --primary-2: #5eead4;
  --primary-soft: #113a35; --primary-ink: #04201c; --accent: #fbbf24; --accent-soft: #3a2a0a;
  --ok: #4ade80; --ok-soft: #10301c; --warn: #fbbf24; --warn-soft: #3a2a0a; --bad: #f87171; --bad-soft: #3b1414;
  --info: #93c5fd; --info-soft: #132446;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
.muted { color: var(--text-2); } .small { font-size: 0.85rem; } .tiny { font-size: 0.75rem; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; z-index: 30;
  transition: transform 0.35s var(--ease);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: var(--shadow);
}
.brand-name { font-weight: 800; font-size: 1.05rem; }
.brand-sub { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.nav-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500;
  position: relative; transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav .badge { margin-left: auto; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
  background: var(--primary-soft); color: var(--primary); flex: none;
}
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar h1 { font-size: 1.25rem; }
.content { padding: 8px 28px 48px; max-width: 1400px; width: 100%; }
.menu-btn { display: none; }
.scrim { display: none; }

@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-105%); box-shadow: var(--shadow-lg); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 25; animation: fade 0.25s; }
  .menu-btn { display: inline-flex; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
}

/* ---------- buttons & inputs ---------- */
.btn {
  --b: var(--surface); --c: var(--text); --bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--bd); background: var(--b); color: var(--c); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s var(--ease), box-shadow 0.2s, background 0.2s, opacity 0.2s; user-select: none;
}
.btn:hover { box-shadow: var(--shadow-sm); filter: brightness(1.02); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { --b: var(--primary); --c: var(--primary-ink); --bd: transparent; }
.btn.accent { --b: var(--accent); --c: #fff; --bd: transparent; }
.btn.ok { --b: var(--ok); --c: #fff; --bd: transparent; }
.btn.danger { --b: var(--bad); --c: #fff; --bd: transparent; }
.btn.ghost { --b: transparent; --bd: transparent; }
.btn.ghost:hover { --b: var(--surface-2); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 0.85rem; }
.btn.icon { padding: 0; width: 42px; }
.btn.sm.icon { width: 34px; }
.btn.lg { min-height: 52px; font-size: 1rem; padding: 0 22px; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor;
  border-color: var(--c) transparent var(--c) transparent; animation: spin 0.7s linear infinite;
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--bad); }
.field .hint { font-size: 0.75rem; color: var(--text-3); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text); font: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.input.invalid { border-color: var(--bad); animation: shake 0.35s; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .unit {
  display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border); border-left: 0; border-radius: 0 10px 10px 0;
  background: var(--surface-2); color: var(--text-2); font-size: 0.85rem; min-width: 46px;
}
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; }
@media (max-width: 1200px) { .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g4, .g6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ---------- cards, chips ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-body { padding: 20px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.section-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.draft { background: var(--surface-2); color: var(--text-2); }
.chip.submitted { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.approved { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.rejected { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.plain::before { display: none; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; display: inline-grid; place-items: center; }

/* KPI tiles */
.kpi { padding: 18px; position: relative; overflow: hidden; }
.kpi .k-label { font-size: 0.78rem; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .k-value { font-size: clamp(1.25rem, 1.9vw, 1.75rem); white-space: nowrap; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.kpi .k-sub { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }
.kpi .k-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kpi .k-icon svg { width: 17px; height: 17px; }
.kpi .bar { height: 6px; border-radius: 6px; background: var(--bg-2); margin-top: 10px; overflow: hidden; }
.kpi .bar > i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--primary); transition: width 1s var(--ease); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.table th {
  text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); font-weight: 700;
  padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap;
}
.table th.sortable { cursor: pointer; } .table th.sortable:hover { color: var(--text); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.actions { text-align: right; white-space: nowrap; }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty svg { width: 54px; height: 54px; color: var(--text-3); margin-bottom: 8px; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 140px; }
.seg { display: inline-flex; background: var(--bg-2); padding: 4px; border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 600; font-size: 0.85rem; padding: 7px 12px;
  border-radius: 9px; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* workstation tiles */
.ws-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ws-tile {
  text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 18px; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px; font: inherit; color: inherit; min-height: 130px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.ws-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.ws-tile .ws-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.ws-tile .ws-ico svg { width: 24px; height: 24px; }
.ws-tile b { font-size: 1rem; }

/* downtime rows */
.dt-row { display: grid; grid-template-columns: 2fr 1fr 1fr 0.8fr 2fr auto; gap: 10px; align-items: end; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; margin-bottom: 10px; animation: pop 0.3s var(--ease); }
@media (max-width: 900px) { .dt-row { grid-template-columns: 1fr 1fr; } .dt-row .dt-reason, .dt-row .dt-remarks { grid-column: 1 / -1; } }

.form-actions {
  position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.summary-strip { display: flex; gap: 24px; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.summary-strip span b { font-size: 1.15rem; display: block; color: var(--text); }

/* detail */
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 18px; }
.dl div > span { display: block; font-size: 0.74rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.dl div > b { font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .chg { font-size: 0.8rem; color: var(--text-2); margin-top: 4px; }
.timeline .chg code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); animation: toastIn 0.4s var(--ease); border-left: 4px solid var(--primary);
}
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
.toast.success { border-left-color: var(--ok); } .toast.error { border-left-color: var(--bad); } .toast.warn { border-left-color: var(--warn); }
.toast svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.toast.success svg { color: var(--ok); } .toast.error svg { color: var(--bad); } .toast.warn svg { color: var(--warn); } .toast.info svg { color: var(--primary); }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(5, 12, 10, 0.5); z-index: 90; display: grid; place-items: center; padding: 16px; animation: fade 0.2s; backdrop-filter: blur(3px); }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); animation: modalIn 0.35s var(--ease); }
.modal.wide { width: min(900px, 100%); }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.modal-back.closing { animation: fade 0.2s reverse forwards; }
.modal-back.closing .modal { animation: modalIn 0.2s reverse forwards; }

/* ---------- skeleton ---------- */
.sk { background: linear-gradient(90deg, var(--bg-2) 25%, var(--surface-2) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
.sk-line { height: 14px; margin: 10px 0; } .sk-kpi { height: 110px; border-radius: var(--radius); } .sk-chart { height: 300px; border-radius: var(--radius); }

/* ---------- page transitions ---------- */
.view-enter { animation: viewIn 0.4s var(--ease); }
.stagger > * { animation: rise 0.5s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: 0.04s; } .stagger > *:nth-child(3) { animation-delay: 0.08s; }
.stagger > *:nth-child(4) { animation-delay: 0.12s; } .stagger > *:nth-child(5) { animation-delay: 0.16s; }
.stagger > *:nth-child(6) { animation-delay: 0.2s; } .stagger > *:nth-child(7) { animation-delay: 0.24s; }
.stagger > *:nth-child(n + 8) { animation-delay: 0.28s; }
.top-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.4s var(--ease), opacity 0.4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(0.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; margin: 0; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes float { 50% { transform: translate(30px, -20px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.auth .blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: 0.35; animation: float 14s ease-in-out infinite; }
.auth .b1 { background: var(--primary); top: -160px; left: -120px; }
.auth .b2 { background: var(--accent); bottom: -200px; right: -140px; animation-delay: -6s; }
.auth-card { position: relative; width: min(420px, 100%); padding: 34px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: modalIn 0.6s var(--ease); }
.auth-card .brand { justify-content: center; flex-direction: column; text-align: center; padding-bottom: 8px; }
.auth-card .brand-mark { width: 58px; height: 58px; font-size: 1.2rem; border-radius: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.pw-wrap .btn:active { transform: translateY(-50%) scale(0.95); }

/* ---------- charts ---------- */
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 360px; }
.bar-list .bl-row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 10px; align-items: center; padding: 6px 0; font-size: 0.85rem; }
.bar-list .bl-track { height: 10px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.bar-list .bl-track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width 0.9s var(--ease); }

/* ---------- print ---------- */
.print-sheet { background: #fff; color: #000; padding: 24px; max-width: 900px; margin: 0 auto; font-size: 12px; }
.print-sheet table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.print-sheet th, .print-sheet td { border: 1px solid #555; padding: 5px 7px; text-align: left; }
.print-sheet th { background: #eee; }
.print-sheet .sig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.print-sheet .sig div { border-top: 1px solid #000; padding-top: 6px; text-align: center; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; }
  .sidebar, .topbar, .toasts, .no-print, .form-actions, .top-progress { display: none !important; }
  .app { display: block; } .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #999; }
  .print-sheet { padding: 0; }
}
