/* ERP Aqiqah86 — satu file CSS, tanpa build step.
 * Tema "Espresso & Gold" (Okt 2026): mewah, hangat, tetap mudah dibaca untuk data.
 * Semua nama kelas lama dipertahankan supaya halaman inti & modul (RPH) ikut berubah. */

:root {
  /* Brand */
  --color-brand-espresso: #1B100C;
  --color-brand-ochre: #B4721F;
  --color-brand-golden-tan: #BB9C67;
  --color-brand-cream: #F1E8AB;
  --color-brand-warm-white: #F0EEE2;

  /* Interface */
  --color-text-primary: #1B100C;
  --color-surface: #FFFFFF;
  --color-page-background: #F0EEE2;
  --color-border: #BB9C67;

  /* Typography */
  --font-heading: "Exo", sans-serif;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: "Montserrat", sans-serif;

  /* Layout */
  --radius-card: 12px;
  --radius-button: 8px;
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-6: 24px;
  --spacing-8: 32px;

  /* Turunan (dipakai di seluruh file) */
  --ink: #1B100C;
  --ink-2: #4A3A2E;
  --ink-3: #8A7A68;
  --line: #E6DCC6;
  --line-2: #F0E9D8;
  --bg: #F0EEE2;
  --panel: #FFFFFF;
  --brand: #B4721F;
  --brand-2: #9A5F15;
  --brand-tint: #F8EFD9;
  --gold: #BB9C67;
  --gold-soft: rgba(187, 156, 103, .35);
  --side: #1B100C;
  --side-2: #2A1A12;
  --side-ink: #D9CBB0;
  --side-active: rgba(180, 114, 31, .16);
  --ok: #3E6B3A;
  --ok-tint: #E9F1E3;
  --warn: #9A5F15;
  --warn-tint: #FBF0D6;
  --bad: #A3271F;
  --bad-tint: #FBE7E3;
  --info: #3E5A7A;
  --info-tint: #E8EEF5;
  --radius: var(--radius-card);
  --shadow-sm: 0 1px 2px rgba(27, 16, 12, .05);
  --shadow: 0 1px 2px rgba(27, 16, 12, .04), 0 10px 28px -12px rgba(27, 16, 12, .14);
  --shadow-lg: 0 24px 60px -20px rgba(27, 16, 12, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.55 var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(241, 232, 171, .45), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(187, 156, 103, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-brand-cream); color: var(--ink); }
a { color: var(--brand-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h2 { font-family: var(--font-heading); font-size: 15.5px; font-weight: 600; margin: 0 0 12px; letter-spacing: .01em; }
h3 { font-family: var(--font-label); font-size: 11.5px; font-weight: 600; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
small, .muted { color: var(--ink-3); }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  background:
    radial-gradient(400px 260px at 0% 0%, rgba(180, 114, 31, .22), transparent 70%),
    linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%);
  color: var(--side-ink);
  padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid rgba(187, 156, 103, .18);
  scrollbar-width: thin; scrollbar-color: rgba(187, 156, 103, .35) transparent;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; margin-bottom: 8px; color: #fff;
  border-bottom: 1px solid rgba(187, 156, 103, .18); }
.brand-mark {
  width: 64px; height: 48px; flex: 0 0 64px;
  background: url('../logo-aqiqah86.png?v=3') center / contain no-repeat;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35));
  font-size: 0; color: transparent; transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-3deg) scale(1.04); }
.brand b { display: block; font-family: var(--font-display); font-size: 16px; letter-spacing: -.01em; color: #fff; }
.brand small { color: var(--gold); font-family: var(--font-label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sec { margin-top: 4px; }
.nav-sec > summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: 8px; font-family: var(--font-label); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); transition: background .2s, color .2s; }
.nav-sec > summary::-webkit-details-marker { display: none; }
.nav-sec > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .25s var(--ease); margin-right: 4px; }
.nav-sec[open] > summary::after { transform: rotate(45deg); }
.nav-sec > summary:hover { background: rgba(255, 255, 255, .04); color: var(--color-brand-cream); }
.nav-sec[open] > summary { color: var(--color-brand-cream); }
.nav-sec[open] > a { animation: nav-in .28s var(--ease) both; }
.nav-sec > a { padding-left: 18px; }
.nav-group { margin: 14px 0 4px; padding: 0 10px; font-family: var(--font-label); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.nav a {
  position: relative; display: block; padding: 8px 12px; border-radius: 8px; color: var(--side-ink); font-size: 13.5px;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; transform: translateX(2px); }
.nav a.active { background: linear-gradient(90deg, rgba(180, 114, 31, .28), rgba(180, 114, 31, .06)); color: #fff; font-weight: 600; }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--color-brand-cream), var(--brand)); box-shadow: 0 0 12px rgba(241, 232, 171, .6); }
.side-foot { margin-top: 24px; padding: 14px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.6;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(187, 156, 103, .2); }
.side-foot b { color: #fff; display: block; font-family: var(--font-heading); font-size: 14px; }
.side-foot a { color: var(--gold) !important; }
.side-foot button { margin-top: 10px; }

.main { min-width: 0; }
.topbar { display: none; }
.main-top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 32px; background: rgba(240, 238, 226, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.main-top.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(27, 16, 12, .4); }
.main-top .crumb { font-family: var(--font-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.main-top .crumb b { color: var(--brand-2); font-weight: 600; }
.main-top .who { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.main-top .who .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #fff;
  border: 1px solid var(--line); font-family: var(--font-label); font-size: 11px; letter-spacing: .04em; }
.main-top .who .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(180, 114, 31, .18); }
.main-top .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700;
  font-size: 13px; color: var(--color-brand-cream); background: linear-gradient(135deg, var(--side-2), var(--side)); box-shadow: 0 0 0 2px var(--gold-soft); }
.content { padding: 8px 32px 56px; max-width: 1320px; }
.content > * { animation: rise .45s var(--ease) both; }
.content > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3) { animation-delay: .08s; }
.content > *:nth-child(4) { animation-delay: .12s; }
.content > *:nth-child(n+5) { animation-delay: .16s; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 12px 0 22px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--ink-3); max-width: 900px; }
.page-head h1 + p { font-size: 13.5px; }
.page-head.hero { position: relative; overflow: hidden; align-items: center; padding: 26px 28px; border-radius: 16px; color: var(--color-brand-warm-white);
  background:
    radial-gradient(500px 220px at 85% 0%, rgba(241, 232, 171, .28), transparent 70%),
    radial-gradient(400px 200px at 0% 100%, rgba(180, 114, 31, .35), transparent 70%),
    linear-gradient(135deg, #2A1A12 0%, #1B100C 70%);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(187, 156, 103, .35); }
.page-head.hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(241, 232, 171, .18); box-shadow: 0 0 0 26px rgba(241, 232, 171, .04), 0 0 0 54px rgba(241, 232, 171, .03); pointer-events: none; }
.page-head.hero h1 { color: #fff; font-size: 30px; }
.page-head.hero p { color: var(--side-ink); }
.page-head.hero .btn { background: rgba(255, 255, 255, .06); color: var(--color-brand-cream); border-color: rgba(241, 232, 171, .35); }
.page-head.hero .btn:hover { background: rgba(255, 255, 255, .12); }
.page-head.hero .btn.primary { background: linear-gradient(135deg, #D08A2E, var(--brand)); color: #fff; border-color: transparent; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; position: relative; z-index: 1; }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
  box-shadow: var(--shadow); transition: box-shadow .25s var(--ease), border-color .25s; }
.panel:hover { border-color: #DCCDAA; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFDF7, #FFFFFF); }
.panel-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.panel-head h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), var(--brand)); }
.panel > h2:first-child { display: flex; align-items: center; gap: 10px; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.stat::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--color-brand-cream)); opacity: .85; }
.stat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(27, 16, 12, .35); border-color: var(--gold); }
.stat .label { font-family: var(--font-label); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stat .value { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat a { font-size: 12.5px; font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
th { font-family: var(--font-label); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  background: #FBF8EF; white-space: nowrap; border-bottom: 1px solid var(--line); }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: #FCF7E8; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nowrap { white-space: nowrap; }
tr.total td, tfoot tr.total th { font-weight: 700; border-top: 2px solid var(--gold-soft); background: #F9F2DE; }
tfoot th { background: #F9F2DE; }
tr.subtotal td { font-weight: 600; background: #FDF9EE; }
tr.section td { font-family: var(--font-heading); font-weight: 600; background: var(--brand-tint); color: var(--brand-2); }
tr.inactive td { color: var(--ink-3); }
tr.header-row td { font-weight: 600; color: var(--ink-2); }
.indent-1 { padding-left: 30px !important; }
.indent-2 { padding-left: 46px !important; }
.neg { color: var(--bad); }
.empty { padding: 34px; text-align: center; color: var(--ink-3); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-family: var(--font-label);
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; border: 1px solid transparent; vertical-align: middle; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.draft { background: #F3EFE6; color: var(--ink-2); border-color: #E6DCC6; }
.badge.submitted { background: var(--warn-tint); color: var(--warn); border-color: #EFD9A6; }
.badge.approved { background: var(--info-tint); color: var(--info); border-color: #CFDBE8; }
.badge.posted { background: var(--ok-tint); color: var(--ok); border-color: #CADDBD; }
.badge.reversed { background: var(--bad-tint); color: var(--bad); border-color: #F0C6BF; }
.badge.off { background: #F3EFE6; color: var(--ink-3); border-color: #E6DCC6; }
.badge.on { background: var(--ok-tint); color: var(--ok); border-color: #CADDBD; }
.badge.open { background: var(--ok-tint); color: var(--ok); border-color: #CADDBD; }
.badge.closed { background: #F3EFE6; color: var(--ink-2); border-color: #E6DCC6; }

/* ---------- Forms ---------- */
label { display: block; font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 9px 12px; font: inherit; color: var(--ink);
  border: 1px solid #DCCFB2; border-radius: var(--radius-button); background: #FFFEFB;
  transition: border-color .15s, box-shadow .2s, background .15s;
}
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select { min-height: 40px; }
.lines select, .lines input, .qty-input, .logistic-table .col-note input { min-height: 34px; }
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=date]:hover, input[type=number]:hover, select:hover, textarea:hover { border-color: var(--gold); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(180, 114, 31, .16); }
input.amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
input[readonly] { background: #F6F2E8; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; }
.check { display: flex; gap: 8px; align-items: center; font-family: var(--font-body); font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.check input { width: auto; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.is-invalid { border-color: var(--bad) !important; background: #FFF7F5 !important; }
.error-text { color: var(--bad); font-size: 12px; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; font-family: var(--font-body); font-weight: 600; font-size: 13.5px; line-height: 1.2;
  border-radius: var(--radius-button); border: 1px solid #DCCFB2; background: #FFFEFB; color: var(--ink); cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { background: #FFF8E9; border-color: var(--gold); color: var(--ink); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(27, 16, 12, .35); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn.primary { background: linear-gradient(135deg, #C9822A 0%, var(--brand) 55%, #9A5F15 100%); border-color: #9A5F15; color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .15); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 18px -10px rgba(180, 114, 31, .8); }
.btn.primary:hover { background: linear-gradient(135deg, #D59238 0%, #BF7B25 55%, #A2661A 100%); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 24px -10px rgba(180, 114, 31, .9); }
.btn.danger { color: var(--bad); border-color: #EBC2BB; background: #FFFBFA; }
.btn.danger:hover { background: var(--bad-tint); color: var(--bad); border-color: var(--bad); }
.btn.small { padding: 5px 11px; font-size: 12.5px; }
.btn.link { border: 0; background: none; color: var(--brand-2); padding: 4px 6px; box-shadow: none; }
.btn.link:hover { transform: none; box-shadow: none; text-decoration: underline; background: none; }
.btn.ghost-light { background: transparent; color: var(--color-brand-cream); border-color: rgba(187, 156, 103, .45); box-shadow: none; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .06); color: #fff; border-color: var(--color-brand-cream); }
.inline { display: inline; }

/* Jurnal: tabel baris */
.lines td { padding: 6px 6px; }
.lines td:first-child { padding-left: 14px; }
.lines select, .lines input { padding: 7px 9px; }
.lines .col-account { min-width: 280px; }
.lines .col-amount { width: 160px; }
.lines .col-memo { min-width: 160px; }
.lines .col-del { width: 40px; text-align: center; }
.balance-bar { display: flex; gap: 26px; justify-content: flex-end; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap;
  background: linear-gradient(180deg, #FFFDF7, #FBF6E9); }
.balance-bar .item { text-align: right; }
.balance-bar .item small { display: block; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.balance-bar .item b { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 18px; }
.balance-ok { color: var(--ok); }
.balance-bad { color: var(--bad); }

/* ---------- Alerts ---------- */
.alert { position: relative; padding: 12px 16px 12px 18px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; box-shadow: var(--shadow-sm); }
.alert::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: currentColor; opacity: .7; }
.alert.success { background: var(--ok-tint); border-color: #CADDBD; color: #2D5229; }
.alert.error { background: var(--bad-tint); border-color: #F0C6BF; color: #7C1D16; }
.alert.warn { background: var(--warn-tint); border-color: #EFD9A6; color: #6E430C; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }

/* ---------- Detail ---------- */
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 22px; }
.meta div span { display: block; font-family: var(--font-label); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.meta div b { font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(187, 156, 103, .2); }
.timeline li:last-child { border-bottom: 0; }
details.action-box { border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-top: 10px; background: #FFFDF7; }
details.action-box summary { cursor: pointer; font-weight: 600; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; min-width: 150px; }
.filters .field.grow { flex: 1; min-width: 200px; }

.pagination { display: flex; gap: 6px; padding: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.page { padding: 5px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; transition: background .15s, border-color .15s; }
.pagination a:hover { background: var(--brand-tint); border-color: var(--gold); text-decoration: none; }
.pagination span.current { background: linear-gradient(135deg, #C9822A, var(--brand)); border-color: var(--brand); color: #fff; }

.report-head { text-align: center; margin-bottom: 16px; }
.report-head h2 { margin: 0; font-family: var(--font-display); font-size: 18px; }
.report-head p { margin: 2px 0 0; color: var(--ink-3); }

/* ---------- Login & halaman error ---------- */
.guest { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden;
  background:
    radial-gradient(700px 400px at 80% 10%, rgba(241, 232, 171, .22), transparent 65%),
    radial-gradient(600px 400px at 10% 90%, rgba(180, 114, 31, .35), transparent 65%),
    linear-gradient(160deg, #2A1A12 0%, #1B100C 60%, #120A07 100%); }
.guest::before, .guest::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(241, 232, 171, .12); pointer-events: none; }
.guest::before { width: 640px; height: 640px; right: -200px; top: -220px; animation: float 14s ease-in-out infinite; }
.guest::after { width: 420px; height: 420px; left: -140px; bottom: -160px; animation: float 18s ease-in-out infinite reverse; }
.guest-card { position: relative; z-index: 1; width: 100%; max-width: 400px; background: rgba(255, 253, 247, .97); border-radius: 18px; padding: 34px 32px;
  border: 1px solid rgba(241, 232, 171, .6); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(187, 156, 103, .25);
  animation: rise .6s var(--ease) both; }
.guest-card h1 { font-size: 22px; margin-bottom: 8px; }
.guest-card .brand { color: var(--ink); padding: 0 0 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.guest-card .brand b { color: var(--ink); font-size: 19px; }
.guest-card .brand small { color: var(--brand-2); }
.guest-card .brand { flex-direction: column; text-align: center; gap: 10px; }
.guest-card .brand-mark { width: 150px; height: 113px; flex-basis: auto; filter: drop-shadow(0 10px 18px rgba(27, 16, 12, .25)); }
.guest-foot { position: relative; z-index: 1; margin-top: 18px; text-align: center; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ---------- Animasi ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes nav-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 18px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 30; transform: translateX(-100%); transition: transform .3s var(--ease); }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(27, 16, 12, .55); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; position: sticky; top: 0; z-index: 20;
    background: linear-gradient(90deg, var(--side), var(--side-2)); color: var(--color-brand-cream); font-family: var(--font-display); border-bottom: 1px solid rgba(187, 156, 103, .3); }
  .topbar button { background: none; border: 1px solid rgba(187, 156, 103, .45); color: var(--color-brand-cream); border-radius: 8px; padding: 6px 12px; font: inherit; font-family: var(--font-body); }
  .main-top { display: none; }
  .content { padding: 16px; }
  .page-head.hero { padding: 20px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat .value { font-size: 24px; }
}
@media (max-width: 640px) {
  th, td { padding: 8px 9px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 22px; }
}

/* ---------- Cetak ---------- */
@media print {
  .side, .topbar, .main-top, .no-print, .filters, .actions { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .content > * { animation: none !important; }
  .panel, .stat { border: 0; padding: 0; box-shadow: none; }
  .page-head.hero { background: none; color: var(--ink); box-shadow: none; border: 0; padding: 0; }
  .page-head.hero h1 { color: var(--ink); }
  body { background: #fff; font-size: 12px; }
  th { background: #fff; }
}

/* ---- Logistik ---- */
.qty-input { width: 90px; text-align: right; padding: 7px 9px; }
.logistic-table td { vertical-align: middle; }
.logistic-table .col-note input { min-width: 140px; padding: 7px 9px; }
.logistic-table tr.has-std td { background: #FDF9EE; }
.logistic-table tr.over td.diff { color: var(--warn); font-weight: 600; }
.logistic-table tr.under td.diff { color: var(--bad); font-weight: 600; }
.package-rows .form-row { grid-template-columns: minmax(240px, 3fr) minmax(90px, 1fr); }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: flex; gap: 8px; align-items: center; font-family: var(--font-body); font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #FFFEFB; cursor: pointer; transition: border-color .15s, background .15s; }
.radio-row label:hover { border-color: var(--gold); }
.radio-row label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.radio-row input { width: auto; }
.badge.none { background: #F3EFE6; color: var(--ink-2); border-color: #E6DCC6; }

/* Sub-judul dalam panel (mis. Upgrade & ganti kemasan) */
.panel h3.sub { font-size: 11.5px; margin: 16px 0 8px; font-weight: 600; }
.panel h3.sub small { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Lampiran bukti transaksi */
.attach-list { list-style: none; margin: 0 0 10px; padding: 0; }
.attach-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.attach-list li a { font-weight: 600; word-break: break-all; }
.attach-list li form { margin-left: auto; }
.attach-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.attach-form small { flex-basis: 100%; }

/* Pilihan yang bisa dicari dengan mengetik (combobox) */
select.cb-select { display: none !important; }
.cb-input { width: 100%; }
.cb-list { position: absolute; z-index: 1000; display: none; max-height: 320px; overflow-y: auto; background: #FFFEFB;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(27, 16, 12, .35); font-size: 14px; max-width: min(560px, 94vw); padding: 4px; }
.cb-opt { padding: 8px 10px; cursor: pointer; line-height: 1.3; border-radius: 6px; }
.cb-opt.hi { background: var(--brand-tint); }
.cb-opt.sel { font-weight: 600; color: var(--brand-2); }
.cb-opt.muted { color: var(--ink-3); }
.cb-group { padding: 8px 10px 3px; font-family: var(--font-label); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.cb-empty { padding: 9px 10px; color: var(--ink-3); }

/* Lampiran: kotak seret & lepas / tempel */
.drop-zone { border: 2px dashed #DCCFB2; border-radius: 12px; padding: 14px 16px; background: #FFFCF4; cursor: default; flex: 1 1 100%; transition: border-color .2s, background .2s; }
.drop-zone:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.drop-zone.is-over { border-color: var(--brand); background: var(--brand-tint); }
.drop-zone-text { color: var(--ink-2); font-size: 14px; }
.drop-zone-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.drop-zone-list li { padding: 2px 0; word-break: break-all; }
