/* Dashboard owner (admin.bekaldigital.web.id) - gaya neo-brutalist: garis hitam tebal, bayangan keras, aksen kuning. */
:root {
  --ink: #111111; --paper: #FFFFFF; --bg: #F4F4F1; --yellow: #FFE15D; --teal: #00897B; --coral: #FF8A7A;
  --muted: #555555; --line: #D9D9D4; --ok: #1E8E5A; --warn: #C98A00; --bad: #C8432F;
  --mono: 'Space Mono', ui-monospace, monospace; --head: 'Space Grotesk', system-ui, sans-serif;
  --shadow: 5px 5px 0 var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--mono); }
h1, h2 { font-family: var(--head); font-weight: 700; letter-spacing: -.01em; margin: 0; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb-loading { padding: 40px; font-family: var(--mono); }

/* tombol & isian */
.nb-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 .8rem var(--mono); letter-spacing: .04em; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.nb-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nb-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.nb-btn-dark { background: var(--ink); color: #fff; width: 100%; justify-content: center; min-height: 48px; }
.nb-btn svg { width: 16px; height: 16px; }
.nb-input { width: 100%; min-height: 46px; border: 2px solid var(--ink); padding: 8px 12px; font: 400 1rem var(--mono); background: #fff; }
.nb-input:focus, .nb-btn:focus-visible, .nb-nav:focus-visible, .nb-pill:focus-visible, .nb-search input:focus { outline: 3px solid var(--teal); outline-offset: 2px; }

/* login */
.nb-login { max-width: 420px; margin: 8vh auto; padding: 0 16px; display: grid; gap: 22px; }
.nb-login .nb-card { display: grid; gap: 12px; }
.nb-login h1 { font-size: 1.5rem; }
.nb-lbl { font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.nb-err { margin: 0; color: var(--bad); font-weight: 700; }

/* kerangka */
.nb-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.nb-side { background: var(--paper); border-right: 2px solid var(--ink); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.nb-brand { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 18px; background: var(--yellow); border-bottom: 2px solid var(--ink); font: 700 1.15rem var(--head); }
.nb-brand-lg { border: 2px solid var(--ink); box-shadow: var(--shadow); justify-content: center; }
.nb-logo { width: 26px; height: 26px; border: 3px solid var(--ink); background: linear-gradient(135deg, var(--ink) 0 45%, transparent 45%); }
.nb-side nav { padding: 14px 12px 24px; display: grid; gap: 10px; }
.nb-sec { margin: 10px 4px 0; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nb-nav { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font: 700 .78rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); cursor: pointer; width: 100%; text-align: left; }
.nb-nav svg { width: 18px; height: 18px; }
.nb-nav:hover { background: var(--yellow); }
.nb-nav.is-active { background: var(--ink); color: #fff; }
.nb-main { min-width: 0; }
.nb-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 22px; background: var(--paper); border-bottom: 2px solid var(--ink); }
.nb-top-title { font: 700 1.05rem var(--head); margin-right: auto; }
.nb-menu { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; }
.nb-search { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); padding: 0 10px; min-height: 42px; width: min(300px, 40vw); background: #fff; }
.nb-search input { border: 0; outline: 0; width: 100%; font: 400 .8rem var(--mono); background: transparent; min-width: 0; }
.nb-avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink); background: #9B7BEA; color: #fff; font: 700 .85rem var(--head); flex: none; }

/* halaman */
.nb-page { padding: 26px 26px 60px; max-width: 1240px; }
.nb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 2px dashed var(--ink); }
.nb-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.nb-tag { display: inline-block; margin-top: 8px; background: var(--yellow); padding: 2px 8px; font-size: .75rem; letter-spacing: .06em; }
.nb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nb-updated { font-size: .75rem; color: var(--muted); }

/* status sistem */
.nb-sys { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nb-sys li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 2px solid var(--ink); background: var(--paper); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.nb-sys i { width: 10px; height: 10px; border: 2px solid var(--ink); flex: none; }
.nb-sys .ok i { background: #3DDC84; } .nb-sys .warn i { background: var(--yellow); } .nb-sys .bad i { background: #FF6B57; }
.nb-sys b { font-weight: 400; text-transform: none; }

/* kartu angka */
.nb-kpis { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
.nb-card { background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.nb-kpi { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 18px; }
.nb-kpi.is-hot { background: var(--yellow); }
.nb-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; position: relative; z-index: 1; }
.nb-ico { display: grid; place-items: center; width: 42px; height: 42px; background: var(--ink); color: #fff; font: 700 1rem var(--head); }
.nb-ico svg { width: 22px; height: 22px; }
.nb-chg { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 2px solid var(--ink); background: var(--paper); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.nb-chg.up::before { content: "\2197"; } .nb-chg.down::before { content: "\2198"; } .nb-chg.flat::before { content: "\2192"; }
.nb-ghost { position: absolute; right: -6px; top: 10px; width: 92px; height: 92px; opacity: .12; stroke-width: 2.5; z-index: 0; }
.nb-kpi-l { position: relative; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; margin: 6px 0 0; }
.nb-kpi-v { position: relative; z-index: 1; font: 700 clamp(1.45rem, 2.6vw, 1.9rem) var(--mono); letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.nb-kpi-s { position: relative; z-index: 1; font-size: .72rem; color: var(--muted); margin: 0; }
.nb-kpi.is-hot .nb-kpi-s { color: #3d3a2a; }

/* grid grafik */
.nb-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; margin-top: 22px; align-items: start; }
.nb-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.nb-card-head h2 { font-size: 1.15rem; }
.nb-sub { margin: 2px 0 0; font-size: .74rem; color: var(--muted); }
.nb-range { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-pill { min-height: 32px; padding: 3px 9px; border: 2px solid var(--ink); background: var(--paper); font: 700 .7rem var(--mono); letter-spacing: .04em; cursor: pointer; color: var(--ink); }
.nb-pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nb-pill-static { cursor: default; background: #E9E9E4; display: inline-flex; align-items: center; }
.nb-dates { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.nb-dates label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; }
.nb-dates input { min-height: 34px; border: 2px solid var(--ink); padding: 2px 6px; font: 400 .8rem var(--mono); background: #fff; }
.nb-range-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 8px; }
.nb-range-sum span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.nb-range-sum b { font-size: 1.05rem; }
.nb-fig { margin: 0; position: relative; }
.nb-plot { width: 100%; min-height: 220px; }
.nb-plot svg { display: block; width: 100%; height: 260px; overflow: visible; stroke: none; stroke-width: 0; }
.nb-plot .grid { stroke: #BDBDB6; stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.nb-plot .base { stroke: var(--ink); stroke-width: 2; fill: none; }
.nb-plot .tick { fill: var(--muted); font: 400 10.5px var(--mono); stroke: none; }
.nb-plot .area { fill: var(--coral); stroke: none; }
.nb-plot .edge { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: miter; }
.nb-plot .dot { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.nb-plot .hit { fill: transparent; cursor: crosshair; }
.nb-plot .cross { stroke: var(--ink); stroke-width: 1; }
.nb-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--yellow); padding: 6px 9px; font-size: .74rem; line-height: 1.4; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); z-index: 3; }
.nb-empty { padding: 50px 0; text-align: center; color: var(--muted); font-size: .85rem; }
.nb-details { margin-top: 12px; }
.nb-details summary { cursor: pointer; font-weight: 700; font-size: .75rem; letter-spacing: .05em; text-decoration: underline; }

/* batang status */
.nb-bars { display: grid; gap: 10px; }
.nb-bar-row { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 2.6em; align-items: center; gap: 10px; font-size: .74rem; }
.nb-bar-row span { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; }
.nb-bar-track { height: 26px; border-bottom: 2px solid transparent; }
.nb-bar-fill { height: 100%; min-width: 3px; background: var(--teal); border: 2px solid var(--ink); }
.nb-bar-fill.is-y { background: var(--yellow); }
.nb-bar-fill.is-r { background: #FF6B57; }
.nb-bar-row b { text-align: right; font-size: .95rem; }
.nb-bar-note { margin: 6px 0 0; font-size: .7rem; color: var(--muted); }

/* tabel */
.nb-block { margin-top: 22px; }
.nb-scroll { overflow-x: auto; }
.nb-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 680px; }
.nb-tbl th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.nb-tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.nb-tbl tr:last-child td { border-bottom: 0; }
.nb-tbl tbody tr:hover { background: #FFFBE0; }
.nb-tbl .num { text-align: right; white-space: nowrap; }
.nb-tbl a { font-weight: 700; white-space: nowrap; }
.nb-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 2px solid var(--ink); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; background: #fff; }
.nb-badge::before { content: ""; width: 7px; height: 7px; background: #9A9A94; }
.nb-badge.s-ok::before { background: #3DDC84; } .nb-badge.s-run::before { background: var(--teal); }
.nb-badge.s-warn { background: #FFF6C9; } .nb-badge.s-warn::before { background: #E3B400; }
.nb-badge.s-bad { background: #FFE3DE; } .nb-badge.s-bad::before { background: #FF6B57; }
.nb-none { color: var(--muted); padding: 10px 0; margin: 0; font-size: .82rem; }
.nb-free { font-size: .66rem; border: 1px solid var(--ink); padding: 0 4px; margin-left: 4px; }

/* responsif */
@media (max-width: 1100px) { .nb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nb-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .nb-shell { grid-template-columns: minmax(0, 1fr); }
  .nb-side { position: fixed; z-index: 20; left: 0; top: 0; width: 260px; transform: translateX(-105%); transition: transform .2s; box-shadow: 6px 0 0 var(--ink); }
  .nb-side.is-open { transform: none; }
  .nb-menu { display: inline-flex; }
  .nb-top { padding: 0 14px; gap: 10px; }
  .nb-page { padding: 18px 16px 50px; }
  .nb-search { width: auto; flex: 1; }
  .nb-top-title { display: none; }
}
@media (max-width: 520px) { .nb-kpis { grid-template-columns: minmax(0, 1fr); } .nb-avatar { display: none; } }
@media (prefers-reduced-motion: reduce) { .nb-side { transition: none; } .nb-btn:hover, .nb-btn:active { transform: none; } }

/* brief pesanan (28 Okt 2026): tombol kecil di tabel + jendela isi brief */
.nb-mini { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font: 700 .68rem var(--mono); letter-spacing: .04em; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); text-decoration: none; white-space: nowrap; }
.nb-mini:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.nb-dim { color: var(--muted); }
.nb-dlg { width: min(92vw, 820px); max-height: 88vh; padding: 0; border: 2px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.nb-dlg::backdrop { background: rgba(17, 17, 17, .55); }
.nb-dlg-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--yellow); border-bottom: 2px solid var(--ink); }
.nb-dlg-head h2 { margin: 0; font: 700 1.05rem var(--head); letter-spacing: .02em; }
.nb-x { min-height: 36px; padding: 2px 12px; font-size: 1.3rem; }
.nb-dlg-body { padding: 16px 16px 22px; display: grid; gap: 16px; }
.nb-b-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.nb-btn-yel { background: var(--yellow); text-decoration: none; }
.nb-b-acts a.nb-btn { text-decoration: none; }
.nb-b-zip { margin: -8px 0 0; font-size: .75rem; color: var(--muted); }
.nb-b-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); border: 2px solid var(--ink); }
.nb-b-grid div { padding: 8px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.nb-b-grid dt { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nb-b-grid dd { margin: 0; font-size: .85rem; overflow-wrap: anywhere; }
.nb-b-text h3 { margin: 0 0 6px; font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.nb-b-text p { margin: 0; padding: 10px 12px; border: 2px solid var(--ink); background: #FFFDF0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; }
.nb-b-text ul { margin: 0; padding-left: 18px; overflow-wrap: anywhere; font-size: .85rem; }
.nb-b-files { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.nb-b-files li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px; border: 2px solid var(--ink); background: #fff; }
.nb-b-files img, .nb-b-ico { width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; justify-content: center; font: 700 .7rem var(--mono); }
.nb-b-fn { min-width: 0; display: grid; }
.nb-b-fn b { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-b-fn small { color: var(--muted); font-size: .7rem; }
@media (max-width: 520px) { .nb-b-files li { grid-template-columns: 44px minmax(0, 1fr); } .nb-b-files img, .nb-b-ico { width: 44px; height: 44px; } .nb-b-files .nb-mini { justify-self: start; } }

/* corong penjualan & status Meta (29 Okt 2026) */
.nb-funnel { display: grid; gap: 10px; }
.nb-fstep { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 54px; gap: 12px; align-items: center; }
.nb-flabel { display: grid; min-width: 0; }
.nb-flabel b { font: 700 .82rem var(--mono); }
.nb-flabel span { font-size: .68rem; color: var(--muted); }
.nb-ftrack { height: 26px; border: 2px solid var(--ink); background: var(--paper); min-width: 0; overflow: hidden; }
.nb-ftrack i { display: block; height: 100%; background: var(--yellow); border-right: 2px solid var(--ink); }
.nb-fstep:last-child .nb-ftrack i { background: var(--teal); }
.nb-fnum { text-align: right; font: 700 1.1rem var(--head); }
.nb-meta-sys { margin-bottom: 12px; }
@media (max-width: 560px) { .nb-fstep { grid-template-columns: minmax(0, 1fr) 44px; } .nb-ftrack { grid-column: 1 / -1; grid-row: 2; } }

/* produk template (9 Nov 2026) */
#tpTabs { margin: 4px 0 14px; }
.nb-prod td { vertical-align: middle; }
.nb-prod img { display: block; width: 112px; height: 70px; object-fit: cover; border: 2px solid var(--ink); background: var(--bg); }
.nb-prod .nb-pname { font-weight: 700; min-width: 180px; }
.nb-prod .nb-pname a { color: var(--ink); }
.nb-prod .nb-files { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.nb-prod .nb-files a { white-space: nowrap; text-decoration: none; }
.nb-prod .nb-fsize { display: block; font-size: .7rem; color: #555; }
/* ubah harga produk (9 Nov 2026) */
.nb-pform { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.nb-pcur { font-weight: 700; }
.nb-pin { width: 92px; min-height: 32px; border: 2px solid var(--ink); padding: 2px 8px; font: 700 .85rem var(--mono); text-align: right; background: #fff; }
.nb-pmsg { display: block; font-size: .7rem; margin-top: 4px; }
.nb-prod { min-width: 960px; }
.nb-prod .nb-files { gap: 4px; }
.nb-prod .nb-files a { min-width: 128px; justify-content: center; }

/* analitik toko (10 Nov 2026) */
.nb-an-h { margin: 18px 0 12px; font: 700 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nb-an-h:first-child { margin-top: 2px; }
#analitik .nb-grid { margin-top: 18px; }
#analitik .nb-grid > .nb-block { margin-top: 0; }
#analitik .nb-tbl .num { text-align: right; }
#analitik .nb-fstep { grid-template-columns: minmax(0, 1fr) 54px; row-gap: 6px; }
#analitik .nb-ftrack { grid-column: 1 / -1; grid-row: 2; }
#analitik .nb-plot svg { height: auto; }
