/* Akuntansi Pampas — satu stylesheet lokal (tanpa CDN). */
:root {
  --bg: #f4f6f9; --panel: #ffffff; --text: #1d2733; --muted: #6b7785; --line: #dde3ea;
  --accent: #0759af; --accent-soft: #e6f0fb; --ok: #1d7a46; --ok-soft: #e3f4ea; --warn: #9a6200; --warn-soft: #fdf2dc;
  --bad: #b3261e; --bad-soft: #fbe7e5; --info: #0b5cad; --info-soft: #e5effa;
  /* menu samping hijau tua #021E10; teks putih agak abu (netral, tidak kehijauan) */
  --side: #021e10; --side-2: #01150b; --side-text: #e4e6e8; --side-head: #c9cdd1; --side-mark: #e4e6e8; --side-icon: #c9cdd1;
  color-scheme: light;
}
/* tema: data-theme="light" | "dark" dipilih user; tanpa atribut = ikut sistem komputer */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #11161c; --panel: #1a212a; --text: #e3e8ee; --muted: #93a0ae; --line: #2c3642; --accent: #5aa2ee; --accent-soft: #1b2c40;
    --ok: #5cc98a; --ok-soft: #173126; --warn: #e6b450; --warn-soft: #3a2f16; --bad: #f08a80; --bad-soft: #3d1d1a; --info: #7cb6f2; --info-soft: #1a2b3f;
    --side: #021e10; --side-2: #010f08; --side-text: #dcdfe2; --side-head: #c2c6ca; --side-mark: #dcdfe2; --side-icon: #c2c6ca; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #11161c; --panel: #1a212a; --text: #e3e8ee; --muted: #93a0ae; --line: #2c3642; --accent: #5aa2ee; --accent-soft: #1b2c40;
  --ok: #5cc98a; --ok-soft: #173126; --warn: #e6b450; --warn-soft: #3a2f16; --bad: #f08a80; --bad-soft: #3d1d1a; --info: #7cb6f2; --info-soft: #1a2b3f;
  --side: #021e10; --side-2: #010f08; --side-text: #dcdfe2; --side-head: #c2c6ca; --side-mark: #dcdfe2; --side-icon: #c2c6ca; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); padding: 14px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: #fff; font-weight: 700; font-size: 16px; padding: 4px 18px 14px; }
.side .brand small { display: block; font-weight: 400; color: var(--side-text); font-size: 12px; }
.side h4 { margin: 14px 18px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-head); }
.side a { display: block; color: var(--side-text); padding: 5px 18px; font-size: 13.5px; }
.side a:hover, .side a.on { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.main { padding: 18px 24px 40px; min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.top h1 { font-size: 20px; margin: 0; flex: 1; }
.top .user { color: var(--muted); font-size: 13px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.panel h2 { font-size: 15px; margin: 0 0 10px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.kpi .l { color: var(--muted); font-size: 12px; }
.kpi .v { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--panel); position: sticky; top: 0; }
td.n, th.n { text-align: right; white-space: nowrap; }
tr.tot td { font-weight: 700; border-top: 2px solid var(--text); }
tr.b td { font-weight: 700; }
.scroll { overflow-x: auto; }
form.inline { display: inline; }
.f { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 10px; }
.f label, .fld { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; min-width: 0; }
input[type=number] { text-align: right; }
textarea { width: 100%; }
.btn { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.sec { background: transparent; color: var(--accent); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 3px 8px; font-size: 12px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: var(--bg); color: var(--muted); }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); } .alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert ul { margin: 0; padding-left: 18px; }
.muted { color: var(--muted); } .neg { color: var(--bad); } .pos { color: var(--ok); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.lines input, .lines select { width: 100%; }
.pager { margin-top: 10px; } .pager nav svg { width: 16px; }
.login { max-width: 360px; margin: 12vh auto; }
.mono { font-family: Consolas, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .main { padding: 14px 16px; } }
/* kop surat laporan (partials/kop): selalu tercetak, tampil di layar hanya di halaman laporan; latar putih di tema apa pun */
.kop-wrap { display: none; background: #fff; color: #111; padding: 12px 16px 10px; margin-bottom: 12px; border-radius: 8px; border: 1px solid var(--line); }
.kop-wrap.screen { display: block; }
.kop { display: flex; align-items: center; gap: 16px; padding-bottom: 8px; border-bottom: 3px double #111; }
.kop img { max-height: 64px; max-width: 200px; width: auto; height: auto; object-fit: contain; flex: none; }
.kop-id { min-width: 0; line-height: 1.35; }
.kop-id b { display: block; font-size: 18px; letter-spacing: .02em; }
.kop-id div { font-size: 12px; white-space: pre-line; }
.kop-title { text-align: center; margin-top: 8px; line-height: 1.3; }
.kop-title b { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.kop-title div { font-size: 12px; }
@media print { .side, .top, .actions, .noprint, .f { display: none !important; } .shell { display: block; } body { background: #fff; color: #000; } .panel { border: 0; padding: 0; }
  .kop-wrap { display: block !important; border: 0; border-radius: 0; padding: 0; margin-bottom: 10px; } }
.pager ul { list-style: none; display: flex; gap: 4px; padding: 0; flex-wrap: wrap; } .pager li > * { display: inline-block; padding: 3px 9px; border: 1px solid var(--line); border-radius: 4px; } .pager li.active > * { background: var(--accent); color: #fff; }

/* ===== Shell multi-tab (17-11-2026) ===== */
.shell-body { overflow: hidden; }
.app { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.nav { background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%); color: var(--side-text); display: flex; flex-direction: column; min-height: 0; z-index: 20; transition: transform .22s ease; }
/* brand beku: logo di atas, nama di bawah logo */
.brand { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 14px 14px; border-bottom: 1px solid rgba(255,255,255,.1); flex: none; background: var(--side); z-index: 2; }
.brand .logo { max-width: 170px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.brand-text { min-width: 0; max-width: 100%; line-height: 1.2; }
.brand-text b { color: #fff; display: block; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 18px; letter-spacing: .05em; }
.brand-text small { color: var(--side-text);font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.pin { position: absolute; top: 8px; right: 8px; background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; cursor: pointer; padding: 3px 6px; font-size: 13px; line-height: 1; opacity: .7; }
.pin:hover { opacity: 1; background: rgba(255,255,255,.08); }
.unpinned .pin { filter: grayscale(1); opacity: .6; transform: rotate(45deg); }
/* gulir menu halus (seperti MES): scrollbar tipis, tanpa memantul ke halaman */
.nav-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0 14px; scroll-behavior: smooth; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; scrollbar-gutter: stable; }
.nav-scroll::-webkit-scrollbar { width: 6px; }
.nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 6px; }
.nav-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.35); }
.nav-scroll::-webkit-scrollbar-track { background: transparent; }
.nav-item { display: block; color: var(--side-text); padding: 6px 16px 6px 28px; margin: 1px 8px; border-radius: 6px; font-size: 13.5px; text-decoration: none; border-left: 3px solid transparent; transition: background .15s, color .15s; }
.nav-item.top-item { padding-left: 13px; font-weight: 600; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-item.on { background: rgba(255,255,255,.14); color: #fff; border-left-color: var(--side-mark); }
.grp-h { width: 100%; display: flex; justify-content: space-between; align-items: center; background: transparent; border: 0; color: var(--side-head); cursor: pointer;
  padding: 9px 18px 9px 16px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: color .15s; }
.grp-h:hover, .grp.open .grp-h { color: #fff; }
.grp .chev { transition: transform .22s ease; }
.grp.open .chev { transform: rotate(90deg); }
/* akordeon beranimasi: hanya satu grup terbuka */
.grp-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.grp.open .grp-b { grid-template-rows: 1fr; }
.grp-in { overflow: hidden; min-height: 0; }
.grp.open .grp-in { padding-bottom: 4px; }
.nav-foot { flex: none; font-size: 11px; padding: 8px 14px; border-top: 1px solid rgba(255,255,255,.1); color: var(--side-head); }
.edge { display: none; }
.work { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* baris utama (atas) */
.bar { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; }
.bar-title { flex: 1; min-width: 0; font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .user { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.theme { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; flex: none; }
.theme button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.theme button + button { border-left: 1px solid var(--line); }
.theme button:hover { color: var(--text); background: var(--bg); }
.theme button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
#menuBtn { display: none; }
/* baris tab (di bawah baris utama) */
.tabrow { display: flex; align-items: flex-end; gap: 8px; padding: 6px 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); flex: none; }
.tabs { flex: 1; display: flex; gap: 4px; overflow-x: auto; min-width: 0; scrollbar-width: thin; scroll-behavior: smooth; }
.tabrow #closeAll { margin-bottom: 5px; flex: none; }
.tab { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--panel);
  cursor: pointer; white-space: nowrap; max-width: 220px; font-size: 13px; user-select: none; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab .t { overflow: hidden; text-overflow: ellipsis; }
.tab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; box-shadow: inset 0 2px 0 var(--accent); }
.tab .x { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 4px; }
.tab .x:hover { background: var(--bad-soft); color: var(--bad); }
.frames { flex: 1; position: relative; min-height: 0; background: var(--bg); }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; background: var(--bg); }
.frame.on { display: block; }
/* lepas pin: menu disembunyikan, muncul (melayang) saat kursor di tepi kiri / tombol ☰ */
.unpinned .app { grid-template-columns: 1fr; }
.unpinned .nav { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; transform: translateX(-100%); box-shadow: 4px 0 18px rgba(0,0,0,.3); }
.unpinned.peek .nav { transform: none; }
.unpinned .edge { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 8px; z-index: 19; }
.unpinned #menuBtn { display: inline-block; }
/* halaman di dalam tab: tanpa menu & akun (sudah di shell) */
.embed .side, .embed .acct { display: none !important; }
.embed .shell { display: block; }
.embed .main { padding: 14px 18px 30px; }
.embed .top h1 { font-size: 18px; }
html { scrollbar-width: thin; }
/* menu cadangan (di luar shell) */
.side { background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; scroll-behavior: smooth; overscroll-behavior: contain; }
.side .brand { position: sticky; top: -14px; margin: -14px 0 6px; }
.side details summary { cursor: pointer; padding: 8px 18px; color: var(--side-head); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; list-style: none; }
.side details a { padding-left: 28px; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .nav { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; transform: translateX(-100%); }
  .peek .nav { transform: none; } #menuBtn { display: inline-block; } .bar .user, .bar-title { display: none; } .bar { flex-wrap: wrap; justify-content: flex-end; } .theme button { padding: 4px 7px; } }
@media (prefers-reduced-motion: reduce) { .nav, .grp-b, .grp .chev, .nav-scroll, .tabs { transition: none; scroll-behavior: auto; } }/* pengaturan logo */
.logo-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 18px; align-items: start; }
.logo-prev { height: 110px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 8px; padding: 10px; }
.logo-prev.dark { background: var(--side); }
.logo-prev img { max-width: 100%; height: auto; object-fit: contain; }
.chk { display: flex; gap: 6px; align-items: center; font-size: 12.5px; margin-top: 6px; }/* ===== Menu: font seperti MES (tidak tebal), ikon per induk, cari menu (17-11-2026) ===== */
.nav, .side { font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
.nav-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 400; padding: 7px 14px 7px 44px; }
.nav-item.top-item { padding-left: 13px; font-weight: 400; font-size: 14px; }
.nav-item .ico, .grp-h .ico, .side summary .ico { flex: none; color: var(--side-icon); }
.nav-item:hover .ico, .nav-item.on .ico, .grp-h:hover .ico, .grp.open .grp-h .ico { color: #fff; }
.nav-item:focus-visible, .grp-h:focus-visible { outline: 2px solid var(--side-mark); outline-offset: -2px; }
.grp-h { justify-content: flex-start; gap: 10px; padding: 9px 16px 9px 16px; font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--side-head); }
.grp-h .gl { flex: 1; text-align: left; }
.grp-h:hover, .grp.open .grp-h { color: #fff; }
.nav-item.on { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-item:hover { background: rgba(255, 255, 255, .07); }
.brand-text small { color: var(--side-head); }
.nav-foot { color: var(--side-head); opacity: .75; }
.side details summary { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--side-head); }
.nav-search { flex: none; position: relative; padding: 10px 12px 6px; }
.nav-search .ico { position: absolute; left: 22px; top: 50%; margin-top: 2px; transform: translateY(-50%); color: var(--side-icon); pointer-events: none; }
.nav-search input { width: 100%; padding: 7px 10px 7px 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff; font: inherit; font-size: 13px; }
.nav-search input::placeholder { color: var(--side-head); opacity: .7; }
.nav-search input:focus { outline: none; border-color: var(--side-mark); background: rgba(255,255,255,.1); }
.nav.searching .grp.found .grp-b { grid-template-rows: 1fr; }
.nav.searching .grp.found .chev { transform: rotate(90deg); }
.nav-item.hit:not([hidden]) { color: #fff; }
.nav-item[hidden], .grp[hidden] { display: none; }
.nav-none { padding: 10px 18px; color: var(--side-head); font-size: 13px; }

/* ===== Pilihan yang bisa dicari ===== */
.ss { position: relative; display: block; min-width: 0; }
.f .ss { display: inline-block; min-width: 150px; max-width: 340px; }
.ss-native { position: absolute !important; left: 50%; bottom: 0; width: 1px !important; height: 1px; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.ss-trigger { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 32px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.ss-trigger:hover { border-color: var(--accent); }
.ss-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ss-trigger:disabled { cursor: not-allowed; opacity: .6; }
.ss-trigger.ss-invalid { border-color: var(--bad); }
.ss-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-empty .ss-text { color: var(--muted); }
.ss-caret { flex: none; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); }
.ss-panel { position: fixed; z-index: 3000; display: flex; flex-direction: column; gap: 6px; padding: 6px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.ss-search { width: 100%; }
.ss-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; flex: 1; overscroll-behavior: contain; scrollbar-width: thin; }
.ss-opt { padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-opt.on { background: var(--accent-soft); }
.ss-opt.sel { font-weight: 700; }
.ss-opt.off { opacity: .5; cursor: not-allowed; }
.ss-none { padding: 6px 8px; color: var(--muted); font-size: 12.5px; }
td .ss-trigger { min-height: 30px; padding: 4px 7px; }

/* ===== Excel ===== */
.excel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin: 8px 0; border: 1px dashed var(--line); border-radius: 8px; background: var(--bg); }
.excel-bar .inline-up { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.excel-bar .inline-up input[type=file] { max-width: 240px; font-size: 12px; }
.excel-bar label.btn { cursor: pointer; }
.excel-bar .msg { flex-basis: 100%; font-size: 13px; }
.excel-bar .msg:empty { display: none; }
.excel-bar .msg ul { margin: 4px 0 0; padding-left: 18px; }

/* ===== Bantuan ===== */
.help { display: grid; gap: 0; max-width: 1100px; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; position: sticky; top: 0; z-index: 3; }
.help h2 { font-size: 16px; }
.help section { scroll-margin-top: 70px; line-height: 1.6; }
.help ul, .help ol { padding-left: 20px; margin: 6px 0; }
.help li { margin: 3px 0; }
kbd { font: 12px Consolas, monospace; padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--bg); }
.flow { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 10px; }
.flow span { position: relative; padding: 5px 12px 5px 16px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); }
.flow span:first-child { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); padding-left: 12px; }
.flow span.ok { background: var(--ok-soft); color: var(--ok); }/* batas tab */
.tab-notice { position: fixed; top: 92px; left: 50%; transform: translate(-50%, -10px); z-index: 50; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 8px;
  background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.tab-notice.on { opacity: 1; transform: translate(-50%, 0); }
.tabs.full .tab { animation: tabshake .35s; }
@keyframes tabshake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.logo-prev.changed { outline: 2px dashed var(--accent); outline-offset: 2px; }/* ===== Halaman login — sama dengan desain MES (auth-page / auth-card) ===== */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 16px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06); font-size: 15px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.auth-brand h1 { font-size: 1.35rem; margin: 0; }
.auth-brand p { margin: 4px 0 0; }
.auth-logo { display: inline-flex; align-items: center; height: 72px; }
.auth-logo img { height: 100%; width: auto; max-width: 300px; object-fit: contain; display: block; }
.auth-logo .on-dark { display: none; }
:root[data-theme="dark"] .auth-logo .on-light { display: none; }
:root[data-theme="dark"] .auth-logo .on-dark { display: block; }
:root[data-theme="dark"] .auth-logo.custom { background: #fff; border-radius: 8px; padding: 4px 8px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-logo .on-light { display: none; }
  :root:not([data-theme="light"]) .auth-logo .on-dark { display: block; }
  :root:not([data-theme="light"]) .auth-logo.custom { background: #fff; border-radius: 8px; padding: 4px 8px; }
}
.auth-field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.auth-input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-weight: 400; }
.auth-input:focus-visible, .auth-eye:focus-visible, .auth-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-group { display: flex; gap: 6px; }
.auth-eye { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; }
.auth-eye:hover { background: var(--bg); border-color: var(--line); color: var(--text); }
.auth-submit { width: 100%; min-height: 42px; font-size: 15px; font-weight: 600; border-radius: 8px; }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; filter: none; }
.auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; font-size: .92rem; border: 1px solid transparent; color: var(--text); }
.auth-alert .ico { flex: none; margin-top: 1px; }
.auth-alert.info { background: var(--accent-soft); border-color: var(--accent); }
.auth-alert.danger { background: var(--bad-soft); border-color: var(--bad); }
.small { font-size: .85rem; } .center { text-align: center; }
.auth-card p.small { margin: 0; }
@media (max-width: 480px) { .auth-card { padding: 22px 18px; } }/* ===== Pajak masa & tahunan ===== */
.tabbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.tabbar a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid transparent; border-bottom: 0; border-radius: 7px 7px 0 0; color: var(--muted); }
.tabbar a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.tabbar a.on { background: var(--panel); border-color: var(--line); color: var(--accent); font-weight: 600; margin-bottom: -1px; }
tr.late td { background: var(--bad-soft); }
details.panel > summary { cursor: pointer; }/* ===== Notifikasi persetujuan ===== */
.nbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #e5302f; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
.nav-item .nbadge { margin-left: auto; }
.grp-h .nbadge { margin-right: 6px; }
.bell-wrap { position: relative; }
.bell { position: relative; }
.bell .nbadge { position: absolute; top: -7px; right: -8px; box-shadow: 0 0 0 2px var(--panel); }
.bell-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: min(360px, calc(100vw - 24px)); background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); overflow: hidden; }
.bell-h { padding: 10px 14px; font-weight: 650; border-bottom: 1px solid var(--line); }
.bell-item { display: flex; gap: 10px; align-items: center; padding: 9px 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.bell-item:hover { background: var(--bg); text-decoration: none; }
.bell-item .t { flex: 1; font-size: 13px; }
.bell-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.bell-f { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 9px 14px; background: var(--bg); font-size: 12.5px; }
.bell-f .chk { margin: 0; }
.logo-prev.stack { flex-direction: column; gap: 6px; }
.logo-prev .prev-app-name { color: #fff; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 16px; letter-spacing: .05em; }
