/* ===========================================================================
   JN1 PAYMENT REQUEST SYSTEM — Design System
   Modern corporate financial SaaS · merah sebagai identitas, putih dominan.
   =========================================================================== */
:root {
  --red: #D71920;
  --red-dark: #A81017;
  --primary: #D71920;
  --primary-dark: #A81017;
  --accent: #20242A;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #FBFBFC;
  --ink: #20242A;
  --muted: #697386;
  --border: #E5E7EB;
  --border-strong: #D5D9E0;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;
  --info: #2563EB;
  --violet: #7C3AED;
  --emerald: #059669;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 4px 16px rgba(16, 24, 40, .07);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .18);
  --sidebar-w: 254px;
  --sidebar-bg: #15181F;
  --sidebar-ink: #B9BFCC;
  --sidebar-ink-strong: #FFFFFF;
  --sidebar-hover: rgba(255, 255, 255, .07);
  --sidebar-active: var(--primary);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 8px; }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.mono { font-variant-numeric: tabular-nums; font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
::selection { background: rgba(215, 25, 32, .15); }

/* ------------------------------- APP SHELL ------------------------------- */
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: var(--sidebar-bg); color: var(--sidebar-ink);
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 60;
  transition: width .18s ease, transform .22s ease;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar .brand-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.sidebar .brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sidebar .brand-logo span { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px; }
.sidebar .brand-text { min-width: 0; }
.sidebar .brand-text b { display: block; color: #fff; font-size: 13.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .brand-text small { display: block; color: #8A93A6; font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; margin-top: 2px; }
.nav { padding: 10px 10px 18px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 6px; }
.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 4px; }
.nav-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6F7889; padding: 6px 10px; font-weight: 700; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--sidebar-ink);
  font-size: 13.2px; font-weight: 500; cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
}
.nav-link:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--sidebar-active); color: #fff; box-shadow: 0 6px 14px rgba(215, 25, 32, .28); }
.nav-link svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .9; }
.nav-link .nav-badge { margin-left: auto; background: rgba(255,255,255,.16); color: #fff; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; font-weight: 700; }
.nav-link.active .nav-badge { background: rgba(0,0,0,.22); }
.sidebar-foot { padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11px; color: #6F7889; }
.sidebar.collapsed { width: 76px; flex-basis: 76px; }
.sidebar.collapsed .brand-text, .sidebar.collapsed .nav-label, .sidebar.collapsed .nav-link span.txt, .sidebar.collapsed .nav-link .nav-badge, .sidebar.collapsed .sidebar-foot { display: none; }
.sidebar.collapsed .nav-link { justify-content: center; }
.sidebar.collapsed .brand { justify-content: center; padding: 18px 8px 14px; }
.sidebar.light { --sidebar-bg: #FFFFFF; --sidebar-ink: #4B5563; --sidebar-ink-strong: #111827; --sidebar-hover: #F3F4F6; }
.sidebar.light .brand { border-color: var(--border); }
.sidebar.light .nav-label { color: #9AA1B0; }
.sidebar.light .sidebar-foot { border-color: var(--border); color: #9AA1B0; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; transition: margin .18s ease; }
.app-shell.collapsed .main { margin-left: 76px; }

.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 22px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.topbar .icon-btn { flex: 0 0 auto; }
.topbar .crumbs { min-width: 0; }
.crumbs .crumb-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .crumb-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.search-box { position: relative; width: min(340px, 34vw); }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.search-box input {
  width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); font-family: var(--font); font-size: 13px; color: var(--ink);
}
.search-box input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(215,25,32,.1); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: #fff;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); position: relative;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 999px; background: var(--primary); border: 2px solid #fff; }
.company-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 11px 5px 5px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; cursor: pointer; font-family: var(--font); max-width: 265px;
}
.company-chip:hover { border-color: var(--primary); }
.company-chip .cc-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 10.5px; flex: 0 0 auto; letter-spacing: .02em; }
.company-chip .cc-txt { min-width: 0; line-height: 1.2; text-align: left; }
.company-chip .cc-txt b { display: block; font-size: 12.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-chip .cc-txt small { font-size: 10px; color: var(--muted); }
@media (max-width: 1100px) { .company-chip .cc-txt small { display: none; } .company-chip { max-width: 190px; } }
@media (max-width: 760px) { .company-chip .cc-txt { display: none; } .company-chip { padding: 5px; } }
.topbar { min-width: 0; }
.company-chip { min-width: 0; max-width: min(265px, 42vw); }
.crumbs { min-width: 0; }
@media (max-width: 480px) { .crumbs .crumb-sub { display: none; } .icon-btn { width: 34px; height: 34px; } }
.company-menu { position: absolute; top: 52px; right: 0; width: min(300px, calc(100vw - 24px)); z-index: 120; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.company-menu .cm-head { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.company-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 11px 14px; cursor: pointer; font-family: var(--font); text-align: left; border-bottom: 1px solid #F3F4F6; }
.company-menu button:last-child { border-bottom: 0; }
.company-menu button:hover { background: var(--surface-2); }
.company-menu button.active { background: #FFF8F8; }
.company-menu .cm-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; flex: 0 0 auto; }
.company-menu .cm-t { flex: 1; min-width: 0; }
.company-menu .cm-t b { display: block; font-size: 12.6px; }
.company-menu .cm-t small { font-size: 11px; color: var(--muted); }
.company-menu .cm-badge { font-size: 10.5px; color: var(--success); font-weight: 700; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.profile-chip:hover { border-color: var(--border-strong); }
.avatar { width: 30px; height: 30px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.profile-chip .who { line-height: 1.15; text-align: left; }
.profile-chip .who b { display: block; font-size: 12.5px; }
.profile-chip .who small { font-size: 10.5px; color: var(--muted); }

.page { padding: 22px; max-width: 1480px; width: 100%; margin: 0 auto; flex: 1; }
.page.narrow { max-width: 1080px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .titles { min-width: 0; flex: 1; }
.page-head h1 { font-size: 25px; line-height: 1.2; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* --------------------------------- CARDS -------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.card-h h2, .card-h h3 { font-size: 15.5px; }
.card-h .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-h .spacer { flex: 1; }
.card-b { padding: 18px; }
.card-b.tight { padding: 12px; }
.card-f { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.section-gap { margin-bottom: 22px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; font-weight: 500; }
.kpi .k-label svg { width: 15px; height: 15px; opacity: .7; }
.kpi .k-value { font-size: 22px; font-weight: 700; margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .k-value.sm { font-size: 18px; }
.kpi .k-foot { margin-top: 6px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi.accent { border-top: 3px solid var(--primary); }
.kpi.accent .k-value { color: var(--primary); }
.kpi.clickable { cursor: pointer; display: block; color: inherit; text-decoration: none; transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.kpi.clickable:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(215,25,32,.12); transform: translateY(-1px); text-decoration: none; }
.kpi.clickable:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.kpi .k-more { margin-top: 8px; font-size: 11.5px; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; opacity: 0; transition: opacity .14s ease; }
.kpi.clickable:hover .k-more, .kpi.clickable:focus-visible .k-more { opacity: 1; }
.kpi .k-more svg { width: 13px; height: 13px; }
@media (hover: none) { .kpi .k-more { opacity: 1; } }
.trend-up { color: var(--success); font-weight: 600; }
.trend-down { color: var(--danger); font-weight: 600; }

.grid-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.grid-split-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.tight { gap: 6px; }

/* -------------------------------- BUTTONS ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px;
  border-radius: 9px; border: 1px solid transparent; background: #F3F4F6; color: var(--ink); font-family: var(--font);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .14s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { text-decoration: none; background: #EAECF0; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(215,25,32,.22); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803D; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #F3F4F6; color: var(--ink); }
.btn-sm { min-height: 31px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 34px; min-height: 34px; }
.btn-link { background: none; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; padding: 0; font-size: 12.5px; }
.btn-link:hover { text-decoration: underline; }

/* --------------------------------- FORMS -------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: #3B4250; display: flex; gap: 5px; align-items: center; }
.field .req { color: var(--danger); }
.field .hint { font-size: 11.5px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 39px; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 9px;
  background: #fff; font-family: var(--font); font-size: 13.2px; color: var(--ink); transition: .14s ease;
}
textarea.input { min-height: 84px; resize: vertical; line-height: 1.5; }
.input:focus, select.input:focus, textarea.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(215,25,32,.1); }
.input:disabled, .input[readonly] { background: var(--surface-2); color: var(--muted); }
.input.is-invalid { border-color: var(--danger); background: #FEF2F2; }
.input.money { text-align: right; font-variant-numeric: tabular-nums; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23697386' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
/* --------------------------- FILTER AKTIF (CHIP) ------------------------- */
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 11px; border-radius: 999px;
  background: #FFF1F1; border: 1px solid #FBD5D5; color: var(--primary-dark); font-size: 12.3px; font-weight: 600;
}
.filter-chip .fc-x {
  width: 20px; height: 20px; border: 0; border-radius: 999px; background: #fff; color: var(--primary);
  display: grid; place-items: center; cursor: pointer; padding: 0; font-size: 14px; line-height: 1;
}
.filter-chip .fc-x:hover { background: var(--primary); color: #fff; }
.filter-chip .fc-x svg { width: 12px; height: 12px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); background: #FFFAFA; }

/* ---------------------- COMBO PENCARIAN (DROPDOWN) ---------------------- */
.combo { position: relative; width: 100%; }
.combo-input { width: 100%; }
.combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 130;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: var(--shadow-lg); max-height: 292px; overflow-y: auto; padding: 4px;
}
.combo-list.hidden { display: none; }
.combo-item {
  display: block; width: 100%; border: 0; background: none; text-align: left; cursor: pointer;
  padding: 8px 10px; border-radius: 8px; font-family: var(--font);
}
.combo-item:hover, .combo-item.active { background: #FFF7F7; }
.combo-item .ci-main { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.combo-item .ci-main b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-item .ci-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.combo-list .combo-empty { padding: 12px 10px; font-size: 12.5px; color: var(--muted); }
.combo-list .combo-foot { border-top: 1px solid var(--border); margin-top: 4px; padding: 8px 6px 4px; }
.combo-list .combo-foot .btn { width: 100%; justify-content: flex-start; }
@media (max-width: 760px) { .combo-list { max-height: 244px; } }

/* --------------------- INPUT PASSWORD: TOMBOL MATA ---------------------- */
.pw-wrap { position: relative; display: block; width: 100%; min-width: 0; }
.pw-wrap > .input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 8px;
  background: transparent; display: grid; place-items: center; cursor: pointer;
  color: var(--muted); transition: background .14s ease, color .14s ease;
}
.pw-toggle:hover { background: #F1F2F4; color: var(--ink); }
.pw-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.pw-toggle svg { width: 17px; height: 17px; display: block; pointer-events: none; }
.pw-wrap > .input.is-invalid { padding-right: 42px; }
@media (max-width: 420px) { .pw-toggle { width: 30px; height: 30px; right: 3px; } }
.err-msg { color: var(--danger); font-size: 11.8px; display: flex; align-items: center; gap: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.fieldset legend { padding: 0 8px; font-weight: 700; font-size: 13px; color: var(--primary); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: #D1D5DB; position: relative; transition: .16s; flex: 0 0 auto; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: #fff; transition: .16s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--primary); outline-offset: 2px; }

/* -------------------------------- BADGES -------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-gray { background: #F3F4F6; color: #4B5563; border-color: #E5E7EB; }
.badge-amber { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.badge-orange { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; }
.badge-red { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.badge-blue { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.badge-violet { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.badge-green { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.badge-emerald { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.badge-outline { background: #fff; color: var(--muted); border-color: var(--border); }
.badge-red-solid { background: var(--primary); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: #F3F4F6; font-size: 11.5px; color: #4B5563; font-weight: 600; }

/* --------------------------------- TABLES -------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.dt thead th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  font-weight: 700; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.dt thead th.sortable { cursor: pointer; user-select: none; }
table.dt thead th.sortable:hover { color: var(--primary); }
table.dt tbody td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.dt tbody tr:hover { background: #FAFAFB; }
table.dt tbody tr:last-child td { border-bottom: 0; }
table.dt td.num, table.dt th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.dt td.actions, table.dt th.actions { text-align: right; white-space: nowrap; }
table.dt .cell-main { font-weight: 600; color: var(--ink); }
table.dt .cell-sub { font-size: 11.5px; color: var(--muted); }
table.dt.compact tbody td { padding: 8px 10px; }
.table-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table-toolbar .input { min-height: 36px; font-size: 12.7px; }
.table-toolbar .search-inline { position: relative; flex: 1 1 210px; max-width: 300px; }
.table-toolbar .search-inline input { padding-left: 32px; }
.table-toolbar .search-inline svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); }
.table-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.table-foot .spacer { flex: 1; }
.pager { display: flex; gap: 5px; align-items: center; }
.pager button { min-width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pager button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.summary-strip { display: flex; gap: 22px; flex-wrap: wrap; padding: 10px 16px; background: var(--surface-2); border-top: 1px solid var(--border); font-size: 12.5px; }
.summary-strip b { color: var(--ink); }

/* --------------------------------- TABS ---------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { border: 0; background: none; padding: 10px 14px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count { display: inline-block; margin-left: 6px; background: #F3F4F6; border-radius: 999px; padding: 0 7px; font-size: 11px; color: #4B5563; }
.tab.active .count { background: rgba(215,25,32,.1); color: var(--primary); }

/* ---------------------------------- STEPS -------------------------------- */
.steps { display: flex; gap: 0; padding: 4px 0 18px; overflow-x: auto; }
.step { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 150px; position: relative; }
.step + .step::before { content: ''; position: absolute; left: -50%; top: 15px; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.step.done + .step::before, .step.active + .step::before { background: rgba(215,25,32,.35); }
.step .num { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: #F3F4F6; color: var(--muted); font-weight: 700; font-size: 12.5px; z-index: 1; border: 2px solid #fff; }
.step .lbl { font-size: 12px; font-weight: 600; color: var(--muted); z-index: 1; background: var(--bg); padding-right: 6px; }
.step.active .num { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(215,25,32,.12); }
.step.active .lbl { color: var(--ink); }
.step.done .num { background: #FEE2E2; color: var(--primary-dark); }
.step.done .lbl { color: var(--ink); }

/* --------------------------------- MODALS -------------------------------- */
.modal-back { position: fixed; inset: 0; z-index: 200; background: rgba(16,24,40,.55); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; animation: pop .16s ease; }
.modal.md { max-width: 720px; }
.modal.lg { max-width: 940px; }
.modal.xl { max-width: 1120px; }
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.modal-h .t { flex: 1; min-width: 0; }
.modal-h h3 { font-size: 16.5px; }
.modal-h .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.modal-b { padding: 20px; max-height: min(72vh, 760px); overflow-y: auto; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 14px 14px; flex-wrap: wrap; }
.modal-f .left { margin-right: auto; }
.close-x { border: 0; background: none; cursor: pointer; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.close-x:hover { background: #F3F4F6; color: var(--ink); }

/* --------------------------------- TOASTS -------------------------------- */
.toast-wrap { position: fixed; top: 16px; right: 16px; z-index: 400; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--info); border-radius: 10px; box-shadow: var(--shadow); padding: 11px 14px; font-size: 13px; display: flex; gap: 9px; align-items: flex-start; animation: slideIn .18s ease; }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast b { display: block; font-size: 12.7px; }
.toast .body { color: var(--muted); font-size: 12.2px; margin-top: 1px; }
.toast svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------ EMPTY / LOADING -------------------------- */
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 42px; height: 42px; opacity: .35; margin-bottom: 10px; }
.empty h3 { font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.empty p { font-size: 12.8px; max-width: 420px; margin: 0 auto 14px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 34px; color: var(--muted); font-size: 13px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 999px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #F1F2F4 25%, #E9EBEF 50%, #F1F2F4 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --------------------------------- CHARTS -------------------------------- */
.chart-wrap { padding: 6px 2px 0; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.8px; color: var(--muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 92px; gap: 10px; align-items: center; font-size: 12.3px; padding: 5px 0; }
.bar-track { height: 9px; background: #F1F2F4; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 999px; }

/* ------------------------------- DETAIL VIEWS ---------------------------- */
.detail-head { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.doc-number { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.meta-item .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.meta-item .val { font-size: 13.5px; font-weight: 600; margin-top: 3px; word-break: break-word; }
.total-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.total-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; }
.total-row.big { border-top: 1px dashed var(--border-strong); margin-top: 6px; padding-top: 10px; font-size: 15px; font-weight: 700; }
.total-row.big .amount { color: var(--primary); }
.net-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.net-box .big { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.terbilang { font-size: 12px; font-style: italic; color: var(--muted); background: #FFFBEB; border: 1px dashed #FDE68A; border-radius: 8px; padding: 8px 11px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 999px; background: #fff; border: 2px solid var(--border-strong); }
.timeline li.ok::before { border-color: var(--success); background: var(--success); }
.timeline li.warn::before { border-color: var(--warning); background: var(--warning); }
.timeline li.bad::before { border-color: var(--danger); background: var(--danger); }
.timeline .tl-title { font-weight: 600; font-size: 13px; }
.timeline .tl-meta { font-size: 11.5px; color: var(--muted); }
.timeline .tl-note { font-size: 12.5px; margin-top: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.file-row + .file-row { margin-top: 8px; }
.file-row .fi { width: 32px; height: 32px; border-radius: 8px; background: #FEF2F2; display: grid; place-items: center; color: var(--primary); flex: 0 0 auto; }
.file-row .fi svg { width: 16px; height: 16px; }
.file-row .meta { min-width: 0; flex: 1; }
.file-row .meta b { display: block; font-size: 12.7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row .meta small { color: var(--muted); font-size: 11px; }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); font-size: 12.8px; cursor: pointer; background: var(--surface-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: #FEF7F7; color: var(--primary); }
.dropzone svg { width: 22px; height: 22px; margin-bottom: 4px; opacity: .7; }
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.attach-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.attach-card .thumb { height: 92px; background: #F3F4F6; display: grid; place-items: center; color: var(--muted); }
.attach-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.attach-card .body { padding: 8px 10px; }
.attach-card .body b { display: block; font-size: 11.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach-card .body small { font-size: 10.5px; color: var(--muted); }
.progress { height: 6px; background: #F1F2F4; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .2s; }
.notice { display: flex; gap: 10px; padding: 11px 13px; border-radius: 10px; font-size: 12.8px; border: 1px solid; }
.notice svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.notice.info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.notice.warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.notice.danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.notice.success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.notice b { display: block; margin-bottom: 1px; }

/* -------------------------------- DRAWERS -------------------------------- */
.drawer-back { position: fixed; inset: 0; z-index: 180; background: rgba(16,24,40,.4); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 181; box-shadow: -12px 0 40px rgba(16,24,40,.16); display: flex; flex-direction: column; animation: drawerIn .2s ease; }
@keyframes drawerIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-h { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 8px 0; }
.notif-item { display: flex; gap: 11px; padding: 12px 18px; border-bottom: 1px solid #F3F4F6; cursor: pointer; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: #FFFBFB; }
.notif-item .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #F3F4F6; color: var(--muted); flex: 0 0 auto; }
.notif-item .ic svg { width: 16px; height: 16px; }
.notif-item.success .ic { background: #F0FDF4; color: var(--success); }
.notif-item.warning .ic { background: #FFFBEB; color: var(--warning); }
.notif-item.danger .ic { background: #FEF2F2; color: var(--danger); }
.notif-item.finance .ic, .notif-item.approval .ic { background: #EFF6FF; color: var(--info); }
.notif-item .tx { min-width: 0; }
.notif-item .tx b { font-size: 12.8px; display: block; }
.notif-item .tx p { font-size: 12px; color: var(--muted); margin: 1px 0; }
.notif-item .tx small { font-size: 10.8px; color: #9AA1B0; }

/* ---------------------------------- MISC --------------------------------- */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 12.8px; }
.list-plain li:last-child { border-bottom: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.quick-item { border: 1px solid var(--border); border-radius: 10px; padding: 13px; display: flex; gap: 10px; align-items: center; cursor: pointer; background: #fff; font-size: 12.8px; font-weight: 600; }
.quick-item:hover { border-color: var(--primary); color: var(--primary); background: #FFFBFB; }
.quick-item svg { width: 17px; height: 17px; color: var(--primary); }
.brand-preview { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.brand-preview .bp-top { padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.brand-preview .bp-top img { height: 26px; max-width: 110px; object-fit: contain; }
.brand-preview .bp-top .nm { font-weight: 700; font-size: 12.5px; }
.brand-preview .bp-body { height: 76px; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.brand-preview .bp-btn { background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 7px; }
.logo-box { width: 100%; height: 108px; border: 1.5px dashed var(--border-strong); border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; }
.logo-box img { max-width: 92%; max-height: 84%; object-fit: contain; }
.master-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.chip-tab { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* -------------------------------- RESPONSIVE ------------------------------ */
@media (max-width: 1220px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; flex-basis: var(--sidebar-w) !important; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.32); }
  .sidebar .brand-text, .sidebar .nav-label, .sidebar .nav-link span.txt, .sidebar .nav-link .nav-badge, .sidebar .sidebar-foot { display: block; }
  .sidebar.collapsed .nav-link { justify-content: flex-start; }
  .main, .app-shell.collapsed .main { margin-left: 0; }
  .grid-split, .grid-split-even { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-3 { grid-column: span 2; }
  .search-box { width: 190px; }
  .page { padding: 18px; }
}
@media (max-width: 760px) {
  .kpi-grid, .kpi-grid.three, .kpi-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 13px; }
  .kpi .k-value { font-size: 18px; }
  .page { padding: 14px; }
  .page-head h1 { font-size: 21px; }
  .form-grid, .form-grid.two { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2, .form-grid .span-3 { grid-column: auto; }
  .profile-chip .who { display: none; }
  .search-box { display: none; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .card-h, .card-b { padding: 14px; }
  .modal-back { padding: 12px 10px; align-items: flex-end; }
  .modal { max-width: 100%; border-radius: 14px 14px 0 0; }
  .modal-b { max-height: 68vh; }
  .modal-f { border-radius: 0; }
  .tab { padding: 9px 10px; font-size: 12.4px; }
  .steps { gap: 0; }
  .step { min-width: 112px; }
  .step .lbl { font-size: 10.8px; }
  .table-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .meta-grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 4px; }
  .doc-number { font-size: 18px; }
  /* tabel → kartu */
  table.dt.responsive thead { display: none; }
  table.dt.responsive, table.dt.responsive tbody, table.dt.responsive tr, table.dt.responsive td { display: block; width: 100%; }
  table.dt.responsive tbody tr { border: 1px solid var(--border); border-radius: 10px; margin: 10px 12px; padding: 4px 0; background: #fff; }
  table.dt.responsive tbody tr:hover { background: #fff; }
  table.dt.responsive tbody td { border: 0; padding: 6px 12px; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  table.dt.responsive tbody td::before { content: attr(data-label); font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: left; flex: 0 0 auto; }
  table.dt.responsive tbody td:first-child { padding-top: 10px; }
  table.dt.responsive tbody td.actions { justify-content: flex-end; padding-bottom: 10px; }
  table.dt.responsive tbody td.actions::before { display: none; }
}
@media (max-width: 420px) {
  .kpi-grid, .kpi-grid.three, .kpi-grid.two { grid-template-columns: minmax(0, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* -------------------------------- LOGIN PAGE ----------------------------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.auth-visual { background: linear-gradient(150deg, #15181F 0%, #241318 55%, #5A0A0E 100%); color: #fff; padding: 46px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-visual::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 999px; background: radial-gradient(circle, rgba(215,25,32,.5), transparent 65%); right: -190px; bottom: -190px; }
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand .lg { width: 44px; height: 44px; border-radius: 11px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.auth-brand .lg img { width: 100%; height: 100%; object-fit: contain; }
.auth-brand .lg span { color: var(--primary); font-weight: 800; font-size: 15px; }
.auth-visual h2 { font-size: 32px; line-height: 1.22; margin: 30px 0 12px; color: #fff; max-width: 470px; position: relative; z-index: 1; }
.auth-visual p.lead { color: #D6D9E0; font-size: 14px; max-width: 430px; position: relative; z-index: 1; }
.auth-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 10px; font-size: 13px; color: #E7E9EE; align-items: flex-start; }
.auth-points svg { width: 17px; height: 17px; color: #FF8A8E; flex: 0 0 auto; margin-top: 2px; }
.auth-foot { font-size: 11.5px; color: #8A93A6; position: relative; z-index: 1; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 25px; margin-bottom: 5px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.demo-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 20px; }
.demo-box b { font-size: 12px; display: block; margin-bottom: 6px; }
.demo-box .acc { display: flex; justify-content: space-between; gap: 8px; font-size: 11.8px; padding: 3px 0; color: var(--muted); }
.demo-box .acc button { border: 0; background: none; color: var(--primary); cursor: pointer; font-weight: 600; font-size: 11.5px; padding: 0; }
@media (max-width: 940px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { min-height: 100vh; }
}

/* -------------------------------- PRINT VIEW ----------------------------- */
.print-shell { min-height: 100vh; background: #E9EBEF; padding: 18px; }
.print-bar { max-width: 900px; margin: 0 auto 14px; display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.print-frame { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); height: calc(100vh - 120px); }
.print-frame iframe { width: 100%; height: 100%; border: 0; }
@media print {
  .print-bar, .sidebar, .topbar, .no-print { display: none !important; }
  body { background: #fff; }
  .print-shell { padding: 0; background: #fff; }
  .print-frame { box-shadow: none; border-radius: 0; height: auto; }
  .print-frame iframe { height: 100vh; }
}
