/* Ascon ERP — Tax Operations. Token desain dari PLAN §13 & mockup. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/pjs-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/pjs-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1A1714;
  --ink-2: #44403C;
  --muted: #57534E;
  --accent: #F47B20;
  --accent-d: #EA580C;
  --accent-t: #C2410C;
  --accent-t2: #9A3412;
  --accent-bg: #FFF7ED;
  --accent-bd: #FED7AA;
  --bg: #FFFFFF;
  --panel: #F6F4F1;
  --line: #EFEAE4;
  --line-2: #E7E2DC;
  --line-3: #F1EDE8;
  --side-fg: #F5F5F4;
  --ok: #15803D;
  --bad: #B91C1C;
  --warn: #B45309;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 2px 6px rgba(26, 23, 20, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-t); }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- shell */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 260px; max-width: 100%; background: var(--ink); color: var(--side-fg); padding: 26px 14px 0; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; color: var(--side-fg); }
.brand:hover { color: var(--side-fg); }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 800; font-size: 20px; }
.brand b { display: block; font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.brand small { font-size: 13px; color: #D6D3D1; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--r-md); color: var(--side-fg); font-weight: 500; font-size: 15px; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.on { background: #fff; color: var(--ink); font-weight: 800; }
.nav a.on svg { stroke: var(--accent); }
.nav .sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 8px 12px; }
.side-foot { flex-grow: 1; min-height: 40px; }
.side-art { position: relative; margin: 0 -14px; height: 250px; }
.side-art svg { position: absolute; left: 0; bottom: 0; }
.side-art div { position: absolute; left: 24px; bottom: 26px; display: flex; flex-direction: column; gap: 2px; }
.side-art b { font-weight: 800; font-size: 17px; }
.side-art span { font-size: 13px; color: #D6D3D1; }
.side .nav-toggle { display: none; }

.main { flex: 999 1 560px; min-width: 0; position: relative; padding: 22px 30px 40px; display: flex; flex-direction: column; gap: 22px; background: var(--bg); }
.hero-art { position: absolute; top: 0; right: 0; width: 58%; height: 330px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 35%); mask-image: linear-gradient(to right, transparent, #000 35%); }
.hero-art { z-index: 0; }
.main > *:not(.hero-art) { position: relative; z-index: 1; }
.main > header.top { z-index: 5; }

/* ---------------------------------------------------------------- top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.top-search { flex: 1 1 280px; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(26, 23, 20, .05); }
.top-search input { flex-grow: 1; border: 0; outline: 0; font-size: 15px; background: transparent; min-width: 0; }
.pill { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-2); text-align: left; cursor: pointer; position: relative; }
.pill .t { display: flex; flex-direction: column; line-height: 1.25; }
.pill .t b { font-weight: 700; font-size: 14px; }
.pill .t small { font-size: 12px; color: var(--muted); }
.pill select { border: 0; background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; outline: 0; appearance: none; padding-right: 2px; }
.tag-run { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #FFEDD5; color: var(--accent-t2); }
.bell { width: 52px; justify-content: center; padding: 0; }
.bell .count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #DC2626; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 38px; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 58px; min-width: 220px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: 0 12px 30px rgba(26, 23, 20, .12); padding: 8px; z-index: 30; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14px; font-weight: 600; width: 100%; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--panel); color: var(--ink); }

/* ---------------------------------------------------------------- page head */
.head { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 4px; max-width: 760px; }
.head h1 { font-size: 44px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; }
.head p { margin: 0; font-size: 17px; color: var(--ink-2); }
.crumb { font-size: 14px; font-weight: 600; color: var(--muted); }
.crumb a { color: var(--accent-t); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; }
.chip { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.chip.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.warn { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.chip.bad { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }

/* ---------------------------------------------------------------- KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi { padding: 18px; }
.kpi { background: linear-gradient(160deg, var(--tint, #F5F5F4) 0%, #fff 70%); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); color: var(--ink); }
a.kpi:hover { border-color: var(--accent-bd); color: var(--ink); }
.kpi-top { display: flex; gap: 12px; align-items: flex-start; }
.kpi-ic { width: 52px; height: 52px; flex: 0 0 52px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }
.kpi-l { font-size: 15px; font-weight: 700; display: block; }
.kpi-v { font-size: 32px; font-weight: 800; letter-spacing: -.8px; line-height: 1.15; }
.kpi-v small { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.kpi-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.kpi-bot > div:first-child { min-width: 0; flex: 1 1 auto; }
.spark { flex: 0 0 auto; }
.kpi-d { font-size: 15px; font-weight: 700; display: block; }
.kpi-s { font-size: 13px; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 46px; }
.spark span { width: 7px; border-radius: 2px; min-height: 3px; }

/* ---------------------------------------------------------------- cards & tables */
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.row.top-align { align-items: flex-start; }
.col-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; min-width: 0; }
.card.flex { display: flex; flex-direction: column; gap: 14px; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.warm { background: var(--accent-bg); border-color: var(--accent-bd); }
.card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-h h2, .card h2 { font-size: 20px; font-weight: 800; }
.card .sub { margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.w-chart { flex: 999 1 420px; }
.w-trend { flex: 1 1 300px; }
.w-alert { flex: 1 1 320px; }

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: left; font-weight: 700; background: var(--panel); padding: 14px 12px; white-space: nowrap; }
.tbl th:first-child { border-radius: 12px 0 0 12px; padding-left: 16px; }
.tbl th:last-child { border-radius: 0 12px 12px 0; padding-right: 16px; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line-3); vertical-align: middle; }
.tbl td:first-child { padding-left: 16px; }
.tbl td:last-child { padding-right: 16px; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #FFFBF6; }
.cell-2 { display: flex; flex-direction: column; min-width: 0; }
.cell-2 b { font-weight: 700; }
.cell-2 small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
.progress { display: flex; flex-direction: column; gap: 5px; min-width: 90px; }
.progress small { font-size: 13px; color: var(--ink-2); }
.bar { height: 6px; border-radius: 3px; background: var(--line-3); overflow: hidden; }
.bar span { display: block; height: 6px; }
.empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.fw7 { font-weight: 700; }
.fw8 { font-weight: 800; }
.nowrap { white-space: nowrap; }
.small { font-size: 13px; }

/* ---------------------------------------------------------------- buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--ink); }
.btn:hover { border-color: var(--accent-bd); color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #2A2622; color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 800; }
.btn.accent:hover { background: #F68B3A; }
.btn.soft { background: var(--accent-bg); border-color: var(--accent-bd); color: var(--accent-t2); }
.btn.danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.icon { width: 42px; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; min-width: 0; }
.form-grid .field, .filters .field { flex: 1 1 150px; }
.form-grid .field.wide, .filters .field.wide { flex: 2 1 240px; }
.form-grid .field.full { flex-basis: 100%; }
.field small { font-weight: 500; color: var(--muted); font-size: 13px; }
.inp, select.inp, textarea.inp { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 14px; font-weight: 500; background: #fff; width: 100%; min-width: 0; }
textarea.inp { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.inp.sm { height: 40px; border-radius: 10px; font-size: 14px; }
.inp:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(244, 123, 32, .18); }
.form-grid { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.pager .pages { display: flex; gap: 6px; }
.pager a, .pager span.cur { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.pager span.cur { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }

.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; border: 1px solid; }
.alert.error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert.success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.alert.info { background: var(--accent-bg); border-color: var(--accent-bd); color: var(--accent-t2); }

/* ---------------------------------------------------------------- dashboard widgets */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-2); }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.bars { display: flex; gap: 10px; height: 270px; }
.bars-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 13px; color: var(--muted); padding-bottom: 28px; text-align: right; width: 28px; }
.bars-g { flex-grow: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; border-bottom: 1px solid var(--line-2); position: relative; }
.bars-c { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bars-p { display: flex; align-items: flex-end; gap: 4px; height: 242px; }
.bars-p div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 13px; font-weight: 700; }
.bars-p span { width: 22px; border-radius: 6px 6px 0 0; }
.bars-x { position: absolute; bottom: -26px; font-size: 14px; color: var(--ink-2); }
.trend { position: relative; height: 230px; margin-top: 6px; }
.trend-tip { position: absolute; right: 0; top: 8px; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; align-items: center; }
.trend-tip b { font-size: 15px; }
.trend-tip small { font-size: 12px; color: #D6D3D1; }
.trend-x { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.alerts a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-3); }
.alerts .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.alerts .tx { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alerts .tx b { font-size: 15px; }
.alerts .tx small { font-size: 13px; color: var(--muted); }
.count-dot { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

.matrix { border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.matrix th { font-weight: 700; color: var(--muted); padding: 4px 6px; white-space: nowrap; text-align: center; }
.matrix th.l { text-align: left; color: var(--ink); }
.matrix td { padding: 0; }
.matrix td a, .matrix td span.na { display: block; min-width: 92px; height: 34px; line-height: 34px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 12px; padding: 0 6px; white-space: nowrap; }
.matrix td span.na { background: #FAFAF9; color: #D6D3D1; }

.heat { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 640px; }
.heat-r { display: grid; grid-template-columns: 90px repeat(12, minmax(0, 1fr)); gap: 5px; align-items: center; }
.heat-r.h { color: var(--muted); font-weight: 700; text-align: center; }
.heat-r b { font-weight: 700; }
.heat-r a, .heat-r i { height: 30px; border-radius: 7px; display: block; }
.heat-legend { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 700; }
.heat-legend span { padding: 4px 10px; border-radius: 999px; }

/* ---------------------------------------------------------------- task detail */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-3); }
.steps li:first-child { border-top: 0; }
.step-no { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: var(--panel); }
.steps li.done .step-no { background: #DCFCE7; color: #166534; }
.step-tx { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-tx b { font-size: 14px; font-weight: 700; }
.steps li.done .step-tx b { color: var(--muted); }
.step-tx small { font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.files a.f { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-3); font-size: 14px; }
.files a.f:first-child { border-top: 0; }
.files .f span { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.files .f small { color: var(--muted); font-size: 12px; }
.timeline { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.timeline div { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--line-2); }
.timeline small { color: var(--muted); font-size: 12px; }
.blockbox { background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--r-md); padding: 14px 18px; color: #7F1D1D; font-size: 14px; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 700; }
.flow span { padding: 6px 10px; border-radius: 8px; background: var(--panel); color: var(--muted); }
.flow span.done { background: #DCFCE7; color: #166534; }
.flow span.cur { background: var(--ink); color: #fff; }
details.act { border: 1px solid var(--line-2); border-radius: 12px; }
details.act > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.act > summary::-webkit-details-marker { display: none; }
details.act > summary::after { content: '+'; font-weight: 800; color: var(--muted); }
details.act[open] > summary::after { content: '–'; }
details.act > form, details.act > div { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------- login */
.login-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-side { flex: 1 1 380px; background: var(--ink); color: var(--side-fg); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-side h2 { font-size: 34px; font-weight: 800; letter-spacing: -.8px; max-width: 420px; line-height: 1.15; margin-top: 60px; }
.login-side p { color: #D6D3D1; max-width: 420px; }
.login-main { flex: 2 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.login-box h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .side { flex-basis: 100%; padding: 14px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand { padding: 0; flex-grow: 1; }
  .side .nav-toggle { display: inline-flex; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 4px; padding-top: 12px; }
  .side.open .nav { display: flex; }
  .side-foot, .side-art { display: none; }
  .main { padding: 16px 14px 32px; }
  .head h1 { font-size: 32px; }
  .hero-art { display: none; }
  .pill .t small { display: none; }
  .kv { grid-template-columns: 1fr; }
}
@media print {
  .side, .top, .hero-art, .btn, .filters { display: none !important; }
  .main { padding: 0; }
}

/* ---------- R2: portal klien, kalender, kotak keluar, 2FA ---------- */
body.portal { background: var(--bg, #F7F5F2); }
.portal-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #1A1714; color: #fff; }
.portal-top b { display: block; font-size: 16px; }
.portal-top small { color: #A8A29E; font-size: 12px; }
.portal-main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.portal-doc { border-top: 1px solid var(--line-3, #EEE); padding: 14px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.portal-doc:first-of-type { border-top: 0; }
.portal-doc-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.portal-doc.done b { color: var(--muted); }
.portal-foot { text-align: center; margin-top: 8px; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.codes code, .secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px dashed var(--accent-bd, #FDBA74); border-radius: 10px; padding: 10px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.secret { display: inline-block; margin: 8px 0 4px; font-size: 18px; word-break: break-all; }
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.mode { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.mode.CORETAX { background: #EDE9FE; color: #5B21B6; }
.mode.SISTEM { background: #E0F2FE; color: #075985; }
.mode.MANUAL { background: #F5F5F4; color: #57534E; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line-2, #E7E5E4); border-radius: var(--r-md, 14px); overflow: hidden; background: #fff; }
.cal .dow { background: #F5F5F4; font-size: 12px; font-weight: 700; text-align: center; padding: 8px 0; color: var(--muted); }
.cal .day { min-height: 118px; border-top: 1px solid var(--line-3, #EEE); border-left: 1px solid var(--line-3, #EEE); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .day:nth-child(7n+1) { border-left: 0; }
.cal .day.out { background: #FAFAF9; opacity: .55; }
.cal .day.off .dn { color: #B91C1C; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--accent, #F47B20); }
.cal .dn { font-size: 13px; font-weight: 800; display: flex; justify-content: space-between; gap: 4px; }
.cal .dn small { font-weight: 600; color: #B91C1C; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev { display: block; font-size: 11.5px; line-height: 1.3; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cal .ev.pay { background: #FFEDD5; color: #9A3412; }
.cal .ev.rep { background: #E0F2FE; color: #075985; }
.cal .ev.cut { background: #FEF3C7; color: #92400E; }
.cal .ev.done { background: #F0FDF4; color: #166534; text-decoration: line-through; opacity: .75; }
.cal .ev.late { background: #FEE2E2; color: #991B1B; }
.cal .more { font-size: 11px; color: var(--muted); font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars span { flex: 1; min-width: 12px; background: #E7E5E4; border-radius: 4px 4px 0 0; position: relative; }
.bars span i { position: absolute; left: 0; right: 0; bottom: 0; background: #16A34A; border-radius: 4px 4px 0 0; }
.bars-lbl { display: flex; gap: 6px; font-size: 10.5px; color: var(--muted); }
.bars-lbl span { flex: 1; min-width: 12px; text-align: center; }
@media (max-width: 860px) {
  .cal { grid-template-columns: 1fr; }
  .cal .dow, .cal .day.out, .cal .day.empty { display: none; }
  .cal .day { min-height: 0; border-left: 0; }
}
@media print {
  .report-actions { display: none !important; }
}
.portal-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--r-md, 14px); background: var(--accent-bg); border: 1px solid var(--accent-bd); }
.portal-box > span { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.portal-box > span small { color: var(--muted); font-size: 12.5px; }
.portal-box input[data-copy] { flex: 2 1 280px; cursor: copy; font-size: 12.5px; background: #fff; }
input[data-copy].copied { outline: 2px solid #16A34A; }
.tbl.report td.num { text-align: right; font-variant-numeric: tabular-nums; }
@media print {
  .main { padding: 0 !important; }
  .card { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .tbl-wrap { overflow: visible !important; }
  .tbl { min-width: 0 !important; font-size: 9.5px; }
  .tbl th, .tbl td { padding: 4px 5px !important; }
  .alert { display: none; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* R4 — Alat Pajak */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; margin: 0; }
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28, 25, 23, .08); }
.tool-card b { font-size: 17px; }
.tool-card .chip { align-self: flex-start; }
.tool-ic { width: 46px; height: 46px; border-radius: 14px; background: #FFF4EA; display: grid; place-items: center; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.sum-grid > div { background: #FAFAF9; border: 1px solid var(--line, #E7E5E4); border-radius: 14px; padding: 12px 14px; }
.sum-grid small { display: block; color: var(--muted, #78716C); font-size: 12px; }
.sum-grid b { font-size: 18px; }
.sum-grid .hl { background: #1C1917; color: #fff; border-color: #1C1917; }
.sum-grid .hl small { color: #D6D3D1; }
.ws-table td input.inp { min-width: 120px; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2 > .card { margin: 0; }
.filters + .card, .filters + details.card, .grid-2 { margin-top: 18px; }
.grid-2 + .card { margin-top: 20px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.chip.accent { background: var(--accent); color: #fff; text-decoration: none; }
