/* ============================================================
   BengkelPro — tema "Gelap Teknisi"
   Hitam/abu arang + aksen kuning-amber & merah. Otomotif modern.
   ============================================================ */

:root {
  --bg: #0b0d12;
  --bg-2: #10131b;
  --card: #151824;
  --card-2: #1b1f2d;
  --card-3: #232838;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .16);
  --ink: #edf0f7;
  --ink-2: #c8ceda;
  --muted: #93a0b5;
  --muted-2: #6f7c92;
  --amber: #ffb020;
  --amber-2: #ff8a00;
  --red: #f04438;
  --green: #22c55e;
  --blue: #38bdf8;
  --violet: #a78bfa;
  --grad: linear-gradient(135deg, #ffb020, #ff7a00);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .85);
  --mono: 'Chakra Petch', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.theme-dark {
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(255, 176, 32, .10), transparent 60%),
    radial-gradient(760px 480px at 92% -6%, rgba(240, 68, 56, .09), transparent 62%),
    linear-gradient(180deg, #0b0d12 0%, #0c0f16 60%, #0b0d12 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffc857; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.2px; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
hr { border: none; border-top: 1px solid var(--line); margin: 14px 0; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.num, .text-right { text-align: right; }
.text-center { text-align: center; }
.text-ok { color: var(--green); }
.text-bad { color: #ff7a70; }
.text-warn { color: var(--amber); }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.hide { display: none !important; }

/* ---------------- Topbar ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 13, 18, .88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px -24px #000;
}
.topbar-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 9px 18px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; order: 1; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #241505;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 20px -8px rgba(255, 145, 0, .8);
  letter-spacing: -.5px;
}
.brand-mark.brand-admin { background: linear-gradient(135deg, #f04438, #b42318); color: #fff; box-shadow: 0 8px 20px -8px rgba(240, 68, 56, .8); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: var(--mono); font-size: 16px; letter-spacing: .3px; text-transform: uppercase; }
.brand-txt small { color: var(--muted); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; }
.brand-tut {
  order: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--ink-2);
  background: rgba(255, 255, 255, .03);
}
.brand-tut:hover { border-color: var(--amber); color: var(--amber); }
.topbar-right { order: 3; margin-left: auto; display: flex; align-items: center; gap: 8px; }

.branch-switch select, .ws-switch select, .sel-mini {
  font: inherit; font-size: 12.5px; color: var(--ink);
  background: var(--card-2); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 10px; max-width: 210px;
  appearance: none; cursor: pointer;
}
/* pemilih cabang: pil amber agar beda dari pemilih bengkel (admin pusat) */
.branch-switch select { border-color: rgba(255,176,32,.45); color: var(--amber); max-width: 180px; }
.branch-chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .28);
  border-radius: 999px; padding: 6px 11px; max-width: 190px; overflow: hidden; text-overflow: ellipsis;
}
/* akun yang TERIKAT satu cabang: chip dibuat lebih tegas (tidak ada pemilih) */
.branch-chip.branch-chip-fixed { color: var(--amber); border-color: rgba(255, 176, 32, .45); }
@media (max-width: 640px) {
  /* di ponsel nama cabang tetap tampil, hanya lebih kecil & boleh dipotong */
  .branch-chip { font-size: 10.5px; padding: 5px 8px; max-width: 130px; }
}
.pill-role {
  font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 176, 32, .12); color: var(--amber); border: 1px solid rgba(255, 176, 32, .3);
  white-space: nowrap;
}
.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink);
  font-size: 16px; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--card-3); }
.bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 10px;
  font-weight: 700; display: grid; place-items: center; padding: 0 4px;
  border: 2px solid var(--bg);
}
.bell-wrap, .user-wrap { position: relative; }
.bell-panel, .user-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 330px; max-width: 92vw;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px; display: none; z-index: 60;
}
.bell-panel.open, .user-panel.open { display: block; animation: popIn .14s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bp-head { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted-2); padding: 8px 10px 6px; font-weight: 700; }
.bp-list { display: flex; flex-direction: column; }
.bp-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; color: var(--ink); position: relative; }
.bp-item:hover { background: var(--card-2); color: var(--ink); }
.bp-t { font-size: 12.5px; font-weight: 600; }
.bp-s { font-size: 11.5px; color: var(--muted); }
.bp-d { position: absolute; right: 10px; top: 9px; font-size: 10.5px; font-weight: 700; color: var(--amber); }
.bp-empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 13px; }

.user-btn {
  display: flex; align-items: center; gap: 8px; background: var(--card-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px;
  color: var(--ink); cursor: pointer; font: inherit;
}
.user-btn:hover { border-color: var(--line-strong); }
.u-ava {
  width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #241505;
  display: grid; place-items: center; font-weight: 800; font-size: 12px; font-family: var(--mono);
}
.u-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.u-txt b { font-size: 12.5px; }
.u-txt small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.u-caret { font-size: 10px; color: var(--muted); }
.user-panel a { display: block; padding: 9px 11px; border-radius: 9px; color: var(--ink-2); font-size: 13px; }
.user-panel a:hover { background: var(--card-2); color: var(--ink); }
.up-head { padding: 9px 11px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.up-head b { font-size: 13.5px; }
.up-head small { color: var(--muted); font-size: 11px; }
.up-logout { color: #ff8f86 !important; }
.up-logout:hover { background: rgba(240, 68, 56, .12) !important; }

/* ---------------- Navigasi ---------------- */

/* Navigasi: SEMUA menu harus selalu terlihat. Dulu `overflow-x:auto` dengan
 * scrollbar disembunyikan membuat menu terakhir (📑 Laporan) terpotong tanpa
 * jejak — diukur: 1440px sudah terpotong 32px, 1024px 5 menu terpotong. */
.nav {
  order: 4; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 2px;
  overflow: visible; padding: 4px 0 6px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 7px 8px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.nav-link:hover { background: var(--card-2); color: var(--ink); }
.nav-link .ni { font-size: 14px; opacity: .95; }
.nav-link.active { background: rgba(255, 176, 32, .13); color: var(--amber); border-color: rgba(255, 176, 32, .28); }

/* ---------------- Layout isi ---------------- */

.wrap { max-width: 1480px; margin: 0 auto; padding: 18px 18px 40px; }
.foot {
  max-width: 1480px; margin: 0 auto; padding: 14px 18px 26px; color: var(--muted-2);
  font-size: 11.5px; display: flex; gap: 8px; flex-wrap: wrap;
}
.foot-dot { opacity: .5; }

.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { display: flex; align-items: center; gap: 9px; }
.page-head .ph-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.page-head .ph-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- Kartu ---------------- */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h3 { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.card-head .ch-sub { color: var(--muted); font-size: 11.5px; }
.card-head .spacer { flex: 1; }
.card.pad-0 { padding: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 14px 16px 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid > * { min-width: 0; }

.stat {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.stat-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 176, 32, .12); font-size: 19px; flex: none;
  border: 1px solid rgba(255, 176, 32, .2);
}
.stat-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; }
.stat-val { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -.3px; margin-top: 2px; }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.stat-ok .stat-ico { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .22); }
.stat-bad .stat-ico { background: rgba(240, 68, 56, .12); border-color: rgba(240, 68, 56, .22); }
.stat-info .stat-ico { background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .22); }

/* ---------------- Tombol ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 9px 15px; border-radius: 10px; border: 1px solid transparent;
  background: var(--card-3); color: var(--ink); transition: transform .08s, filter .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #26160a; box-shadow: 0 10px 24px -14px rgba(255, 145, 0, .9); }
.btn-primary:hover { color: #1b0f05; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-danger { background: rgba(240, 68, 56, .14); color: #ff9b93; border-color: rgba(240, 68, 56, .32); }
.btn-danger:hover { background: rgba(240, 68, 56, .24); color: #ffd4d0; }
.btn-ok { background: rgba(34, 197, 94, .14); color: #7ee2a8; border-color: rgba(34, 197, 94, .3); }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-xs { padding: 4px 7px; font-size: 11.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }

/* ---------------- Form ---------------- */

label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=number], input[type=password], input[type=date], input[type=month], input[type=time],
input[type=email], input[type=tel], input[type=search], input[type=file], select, textarea {
  font: inherit; font-size: 13px; color: var(--ink);
  background: #0f121a; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 9px 11px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(255, 176, 32, .65); box-shadow: 0 0 0 3px rgba(255, 176, 32, .12); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 14px center, right 9px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
textarea { min-height: 78px; resize: vertical; }
input[type=file] { padding: 7px 9px; }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field .hint { font-size: 11px; color: var(--muted-2); font-weight: 400; }
.req { color: var(--amber); }
.inline-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.inline-check input { width: 16px; height: 16px; accent-color: var(--amber); }
.need { border-color: var(--amber) !important; box-shadow: 0 0 0 3px rgba(255, 176, 32, .14) !important; }
/* kolom wajib yang belum diisi (form work order): ditandai kuning, form TIDAK ditutup */
.need-box { border: 1px dashed rgba(255, 176, 32, .8); background: rgba(255, 176, 32, .07); border-radius: 12px; padding: 6px; }
.need-label > label { color: var(--amber) !important; }
.need-label { color: var(--amber); }

.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.filter-bar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar .fb-item { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 150px; }
.filter-bar .fb-item.narrow { flex: 0 0 auto; min-width: 0; }
.filter-bar .fb-item > label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.sel-filter { max-width: 190px; }
.searchbar { position: relative; display: flex; align-items: center; gap: 6px; }
.searchbar input { padding-left: 32px; }
.searchbar::before { content: '🔍'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12.5px; opacity: .7; }
.searchbar.has-scan input { padding-right: 42px; }
.scan-btn { display: none; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: rgba(255, 176, 32, .15); color: var(--amber); border-radius: 7px; padding: 5px 7px; cursor: pointer; font-size: 13px; }
.scan-btn:hover { background: rgba(255, 176, 32, .28); }
/* tombol scan di luar .searchbar (mis. kolom SKU form) */
.scan-wrap { position: relative; display: block; }
.scan-wrap .scan-btn { right: 6px; }
.scan-wrap input { padding-right: 42px; }
/* jendela kamera */
.modal.scan-modal { width: 460px; }
.scan-video { width: 100%; border-radius: 12px; overflow: hidden; background: #000; min-height: 240px; }
.scan-video video, .scan-video canvas { width: 100% !important; height: auto !important; display: block; }
.scan-status { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: center; }
.scan-status.error { color: #ff9b93; }
.scan-hint { margin-top: 6px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.55; }
.modal.scan-modal .modal-body { padding: 14px 16px 6px; }

/* ---------------- Tabel ---------------- */

.table-wrap { overflow-x: auto; border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.8px; }
table.tbl th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--muted); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .02); white-space: nowrap;
}
table.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.tbl tfoot td { background: rgba(255, 176, 32, .06); font-weight: 700; border-top: 1px solid rgba(255, 176, 32, .22); }
.actions-cell { display: flex; gap: 5px; flex-wrap: wrap; }
table.tbl .actions-cell { white-space: nowrap; }
/* Gambar sparepart: SELURUH gambar harus terlihat (permintaan user: "icon sparepart
   supaya terlihat seluruh gambar") → object-fit: contain, bukan cover yang memotong. */
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: var(--card-3); display: inline-grid; place-items: center; font-size: 18px; padding: 2px; }
.thumb-empty { width: 44px; height: 44px; border-radius: 8px; background: var(--card-3); display: inline-grid; place-items: center; color: var(--muted-2); }
.table-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.table-tools .spacer { flex: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.badge-ok { background: rgba(34, 197, 94, .13); color: #6ee7a0; border-color: rgba(34, 197, 94, .28); }
.badge-warn { background: rgba(255, 176, 32, .13); color: var(--amber); border-color: rgba(255, 176, 32, .3); }
.badge-bad { background: rgba(240, 68, 56, .14); color: #ff9b93; border-color: rgba(240, 68, 56, .3); }
.badge-info { background: rgba(56, 189, 248, .13); color: #7dd3fc; border-color: rgba(56, 189, 248, .28); }
.badge-muted { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: var(--line); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ink-2); }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .em-ico { font-size: 34px; display: block; margin-bottom: 8px; opacity: .8; }

/* ---------------- Tabs ---------------- */

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); border: 1px solid transparent; border-bottom: none; border-radius: 9px 9px 0 0; background: transparent; cursor: pointer;
}
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.tab.active { color: var(--amber); background: rgba(255, 176, 32, .1); border-color: rgba(255, 176, 32, .25); }

/* ---------------- Notifikasi ---------------- */

#notif-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 90; width: 420px; max-width: calc(100vw - 24px); }
.notif {
  position: relative; display: flex; gap: 11px; align-items: flex-start;
  background: rgba(24, 28, 40, .96); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 13px 40px 15px 13px;
  box-shadow: 0 24px 50px -20px #000; animation: notifIn .22s ease-out; overflow: hidden;
}
@keyframes notifIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.notif-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: rgba(255, 255, 255, .06); flex: none; }
.notif-ok .notif-ico { background: rgba(34, 197, 94, .16); }
.notif-error .notif-ico { background: rgba(240, 68, 56, .18); }
.notif-warn .notif-ico { background: rgba(255, 176, 32, .16); }
.notif-info .notif-ico { background: rgba(56, 189, 248, .16); }
.notif-body { min-width: 0; }
.notif-title { font-size: 12.5px; font-weight: 700; letter-spacing: .2px; }
.notif-msg { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; word-wrap: break-word; }
.notif-msg b { color: #fff; }
.notif-x { position: absolute; top: 8px; right: 9px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; }
.notif-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); animation: shrink 7s linear forwards; }
@keyframes shrink { from { width: 100%; } to { width: 0; } }

.subs-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-size: 12.5px;
  border: 1px solid rgba(255, 176, 32, .3); background: rgba(255, 176, 32, .08); color: #ffe0a3;
}
.subs-banner.subs-bad { border-color: rgba(240, 68, 56, .35); background: rgba(240, 68, 56, .1); color: #ffc4bf; }
.subs-txt { flex: 1; min-width: 200px; }

/* ---------------- Modal ---------------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center;
  background: rgba(4, 6, 10, .72); backdrop-filter: blur(4px); padding: 34px 16px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 560px; max-width: 100%; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 16px; box-shadow: 0 30px 70px -24px #000; animation: popIn .16s ease-out;
}
.modal.modal-wide { width: 820px; }
.modal.modal-print { width: 840px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal-head h3 { flex: 1; font-size: 14.5px; }
.modal-head .mh-actions { display: flex; gap: 7px; }
.modal-body { padding: 16px; max-height: calc(100vh - 190px); overflow-y: auto; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal .form-grid { margin-bottom: 2px; }

/* ---------------- Dasbor ---------------- */

.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 6px 2px 0; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart .bar { width: 100%; max-width: 46px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, rgba(255, 176, 32, .95), rgba(255, 122, 0, .35)); min-height: 3px; position: relative; }
.chart .bar-val { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.chart .bar-lbl { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .4px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.quick-links a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 13px 8px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025);
  color: var(--ink-2); font-size: 12px; font-weight: 600; text-align: center;
}
.quick-links a span:first-child { font-size: 20px; }
.quick-links a:hover { border-color: var(--amber); color: var(--amber); background: rgba(255, 176, 32, .07); }

/* ---------------- Kasir / POS ---------------- */

.pos-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.pos-left .pos-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-left .searchbar { width: 300px; max-width: 100%; }
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-tabs .cat-chip {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink-2); white-space: nowrap;
}
.cat-tabs .cat-chip.active { background: var(--grad); color: #241505; border-color: transparent; }
.pos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 11px;
  max-height: calc(100vh - 270px); overflow-y: auto; padding: 2px; align-content: start;
}
.pos-item {
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  border: 1px solid var(--line); border-radius: 12px; padding: 9px; display: flex; flex-direction: column; gap: 5px;
  transition: border-color .12s, transform .08s;
}
.pos-item:hover { border-color: rgba(255, 176, 32, .55); transform: translateY(-1px); }
.pos-item:disabled, .pos-item.out { opacity: .55; }
/* stok habis (0) → tetap bisa diklik untuk melihat alasannya, tapi ditandai jelas */
.pos-item.out { cursor: not-allowed; border-style: dashed; border-color: rgba(240, 68, 56, .35); }
.pos-item.out:hover { border-color: rgba(240, 68, 56, .5); transform: none; }
.pos-item.out .p-price { color: var(--muted); }
.p-img {
  height: 88px; border-radius: 9px; background: var(--card-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; overflow: hidden; color: var(--muted);
}
/* foto katalog (Kasir & Pembelian): SELURUH gambar terlihat, tidak dipotong.
 * Catatan penting: dulu `.p-img` memakai display:grid sehingga `height:100%`
 * pada <img> diabaikan (tinggi mengikuti rasio asli → gambar terpotong oleh
 * overflow:hidden). Dengan flex, persentase tinggi mengikuti tinggi kotak. */
.p-img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.p-name { font-size: 12.2px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 31px; }
.p-meta { font-size: 10.5px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 6px; }
.p-price { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--amber); }
.pos-item.is-service .p-img { background: rgba(56, 189, 248, .1); color: #7dd3fc; }

.pos-cart { position: sticky; top: 92px; }
.pos-cart .card-head { margin-bottom: 8px; }
.cart-items { display: flex; flex-direction: column; gap: 7px; max-height: 44vh; overflow-y: auto; padding-right: 2px; }
.cart-row {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; background: rgba(255, 255, 255, .025);
  display: flex; flex-direction: column; gap: 6px;
}
.cart-row .cr-top { display: flex; align-items: flex-start; gap: 8px; }
.cart-row .cr-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.cart-row .cr-tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: .4px; color: #7dd3fc; border: 1px solid rgba(56, 189, 248, .3); padding: 1px 5px; border-radius: 5px; margin-left: 5px; }
.cart-row .cr-rm { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.cart-row .cr-rm:hover { color: #ff8f86; }
.cart-row .cr-fields { display: grid; grid-template-columns: 62px minmax(0, 1fr) 92px; gap: 7px; align-items: center; }
.cart-row .cr-fields input { padding: 6px 8px; font-size: 12px; text-align: right; font-family: var(--mono); width: 100%; }
.cart-row .cr-price { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--ink-2); }
.cart-row .cr-sub { font-family: var(--mono); font-size: 12px; text-align: right; font-weight: 700; }
.cart-legend { display: grid; grid-template-columns: 62px minmax(0, 1fr) 92px; gap: 7px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted-2); padding: 0 10px 5px; text-align: right; }
.cart-sum { margin-top: 12px; border-top: 1px dashed var(--line-strong); padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; }
.sum-row .sr-val { font-family: var(--mono); font-weight: 600; }
.sum-row.total { font-size: 14px; }
.sum-row.total .sr-val { font-size: 21px; color: var(--amber); font-weight: 700; }
.sum-input { display: flex; gap: 7px; }
.sum-input input { text-align: right; font-family: var(--mono); }
.pos-actions { display: flex; gap: 8px; margin-top: 10px; }
.pos-actions .btn { flex: 1; }
.pos-msg { display: none; gap: 9px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 11px; font-size: 12.5px; border: 1px solid rgba(240, 68, 56, .35); background: rgba(240, 68, 56, .1); }
.pos-msg.show { display: flex; }
.pos-msg .pm-ico { font-size: 16px; }
.pos-msg b { display: block; margin-bottom: 2px; }

/* ---------------- Service ---------------- */

.wo-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.wo-card {
  border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  display: flex; flex-direction: column; gap: 8px;
}
.wo-card .wo-top { display: flex; align-items: center; gap: 8px; }
.wo-card .wo-no { font-family: var(--mono); font-size: 12px; color: var(--amber); font-weight: 700; }
.wo-card .wo-plate { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.wo-card .wo-veh { font-size: 11.5px; color: var(--muted); }
.wo-card .wo-what { font-size: 12px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wo-card .wo-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.wo-card .wo-total { font-family: var(--mono); font-weight: 700; font-size: 13.5px; }
.wo-items { display: flex; flex-direction: column; gap: 9px; }
.wo-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 64px 110px 30px; gap: 8px; align-items: center; }
.wo-row input, .wo-row select { padding: 7px 9px; font-size: 12.5px; }
.wo-total-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; background: rgba(255, 176, 32, .04); }
/* KEMBALIAN pada modal "Selesaikan & Bayar" Work Order: hanya tampilan angka */
.fin-change {
  padding: 8px 11px; border-radius: 10px; text-align: right;
  font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--green);
  background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3);
}
.fin-change.kurang { color: #ff9b93; background: rgba(240, 68, 56, .1); border-color: rgba(240, 68, 56, .34); }
.wo-total-box .wr { display: flex; justify-content: space-between; font-size: 12.5px; }
.wo-total-box .wr b { font-family: var(--mono); }
.wo-total-box .wr.big { font-size: 14px; }
.wo-total-box .wr.big b { color: var(--amber); font-size: 18px; }

/* ---------------- Dokumen cetak ---------------- */

.print-body { background: #e9ebf1; padding: 18px; }
.receipt {
  background: #fff; color: #111; max-width: 302px; margin: 0 auto; padding: 12px 13px 16px;
  font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.45; border-radius: 4px;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .5);
}
.receipt .r-brand { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.receipt .r-sub { text-align: center; font-size: 10.5px; color: #444; }
.receipt .r-line { border-top: 1px dashed #999; margin: 7px 0; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 8px; }
.receipt .r-row span:last-child { text-align: right; }
.receipt .r-small { font-size: 11px; color: #333; }
.receipt .r-item { margin-top: 4px; font-weight: 700; font-size: 11.5px; }
.receipt .r-tag { font-size: 9px; border: 1px solid #777; padding: 0 3px; border-radius: 3px; }
.receipt .r-total { font-weight: 700; font-size: 14px; margin-top: 2px; }
/* label panjang (Tutup Toko) tetap satu baris di kertas 80 mm */
.receipt .r-sisa { font-size: 11px; white-space: nowrap; }
.receipt .r-sisa span:first-child { letter-spacing: -.2px; }
.receipt .r-note { margin-top: 4px; border: 1px dashed #888; padding: 3px 5px; text-align: center; font-weight: 700; }
.receipt .r-thanks { text-align: center; font-size: 10.5px; margin-top: 6px; }
.receipt .r-mini { margin-top: 5px; font-size: 9px; color: #777; }

.inv-sheet {
  background: #fff; color: #14161d; max-width: 780px; margin: 0 auto; padding: 25px 27px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 12.0px; line-height: 1.45;
  border-radius: 5px; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .5);
}
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 12px; border-bottom: 3px solid #ffb020; }
.doc-brand { display: flex; gap: 11px; align-items: center; }
.doc-logo {
  width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(135deg, #ffb020, #ff7a00);
  color: #241505; display: grid; place-items: center; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 16px;
}
.doc-name { font-family: 'Chakra Petch', 'Inter', sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.doc-sub { font-size: 10.8px; color: #555b69; }
.doc-titlebar { display: flex; justify-content: space-between; gap: 18px; margin: 14px 0 12px; align-items: flex-start; }
.doc-titlebar h2 { font-size: 16px; letter-spacing: 1.4px; color: #b06a00; text-transform: uppercase; }
.doc-meta { display: grid; gap: 3px; min-width: 230px; }
.doc-meta > div { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; }
.doc-meta span { color: #6b7280; }
.doc-meta b { font-weight: 700; }
table.doc-items { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.doc-items th { background: #fff4e0; color: #7a4a00; text-align: left; padding: 6px 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #f0c987; }
table.doc-items td { padding: 5px 7px; border-bottom: 1px solid #eceef3; vertical-align: top; }
table.doc-items .num { text-align: right; white-space: nowrap; }
.tag-jasa { font-size: 8.5px; border: 1px solid #b98a2a; color: #8a5c00; padding: 0 3px; border-radius: 3px; vertical-align: middle; }
.doc-empty { text-align: center; color: #888; padding: 14px; }
.doc-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; align-items: flex-start; }
.doc-note { flex: 1; min-width: 0; font-size: 11px; color: #444a56; }
.doc-mini { margin-top: 6px; font-size: 10.5px; color: #555; }
.doc-sum { width: 250px; border: 1px solid #eceef3; border-radius: 8px; padding: 9px 11px; background: #fafbfd; }
.ds-row { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; padding: 2px 0; }
.ds-row b { font-family: 'Chakra Petch', monospace; }
.ds-total { border-top: 1px solid #e3e6ec; margin-top: 4px; padding-top: 6px; font-size: 13px; }
.ds-total b { font-size: 15px; color: #b06a00; }
.ds-due b { color: #b42318; }
.doc-sign { display: flex; justify-content: space-between; gap: 30px; margin-top: 26px; }
.doc-sign-3 { gap: 20px; }
.doc-sign > div { flex: 1; text-align: center; font-size: 10.5px; color: #444; }
.doc-sign span { display: block; margin-bottom: 40px; }
.doc-sign i { display: block; border-top: 1px solid #9aa1ad; padding-top: 4px; font-style: normal; font-size: 10.5px; min-height: 14px; }
.doc-foot { margin-top: 16px; padding-top: 8px; border-top: 1px dashed #d6dae2; font-size: 10px; color: #6b7280; text-align: center; }
.wo-sheet .doc-items th { background: #eef4ff; color: #22437a; border-bottom-color: #c3d4f0; }
/* 🏪 Laporan Tutup Toko (cetak A4) */
.tt-sheet .tt-items { font-size: 13px; }
.tt-sheet .tt-items td { padding: 9px 10px; border-bottom: 1px solid #e8ebf1; }
.tt-sheet .tt-items td.num { font-family: 'Chakra Petch', monospace; font-size: 14px; }
.tt-sheet .tt-items td.b { font-weight: 700; }
.tt-sheet .tt-items tr.tt-total td { background: #fff7e8; font-weight: 700; border-top: 1px solid #f0c987; border-bottom: 1px solid #f0c987; }
.tt-sheet .tt-items tr.tt-gap td { border: none; height: 10px; padding: 0; }
.tt-sheet .tt-items tr.tt-final td { background: #fff1d6; color: #8a4b00; font-size: 15px; font-weight: 800; border-top: 2px solid #ffb020; border-bottom: 2px solid #ffb020; }
.tt-sheet .tt-items td:first-child { text-transform: uppercase; letter-spacing: .4px; font-size: 11.5px; }
/* rincian pengeluaran tunai (untuk apa uangnya keluar) */
.tt-sheet .tt-items tr.tt-sub td { background: #f7f8fb; border-bottom: none; padding-top: 7px; padding-bottom: 3px;
  text-transform: none; font-size: 10.5px; color: #6b7280; letter-spacing: .3px; }
.tt-sheet .tt-items tr.tt-detail td { border-bottom: 1px dashed #eceef3; padding: 3px 10px 3px 22px;
  font-size: 11.5px; text-transform: none; letter-spacing: 0; color: #333a46; }
.tt-sheet .tt-items tr.tt-detail td.num { font-size: 12px; }
.tt-sheet .tt-items tr.tt-detail .tt-cat { color: #8b93a1; font-size: 10.5px; }
.tt-sheet .tt-items tr.tt-detail-total td { border-bottom: 1px solid #e8ebf1; font-weight: 700; color: #1f2430; }
.wo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 16px; margin-bottom: 12px; }
.wo-grid > div { display: flex; flex-direction: column; font-size: 11px; }
.wo-grid span { color: #6b7280; font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; }
.wo-grid b { font-size: 12px; }
.wo-note { font-size: 11px; background: #f7f8fb; border-left: 3px solid #ffb020; padding: 7px 9px; margin-bottom: 9px; white-space: pre-line; }
/* ⚠️ .wo-note / .wo-grid di atas adalah gaya KERTAS PUTIH (dipakai juga di dalam
   dokumen cetak Surat Perintah Kerja). Di HALAMAN aplikasi (tema gelap) gaya itu
   membuat tulisan putih di atas latar putih sehingga keluhan TIDAK TERBACA
   (keluhan user 29 Okt 2026: "bagian keluhan tulisannya tidak kelihatan karena
   background putih dan tulisan putih"). Karena itu tampilan di dalam .card
   (halaman, BUKAN dokumen cetak) diberi versi gelapnya di sini. */
.card .wo-note {
  font-size: 12.5px; line-height: 1.5; color: var(--ink);
  background: rgba(255, 176, 32, .10); border-left: 3px solid var(--amber);
  border-radius: 0 9px 9px 0; padding: 9px 11px;
}
.card .wo-note b { color: var(--amber); }
.card .wo-grid span { color: var(--muted-2); }
.card .wo-grid b { color: var(--ink); }

/* ---------------- 💰 Komisi Saya (peran MEKANIK, diutamakan HP) ----------------
   Tampilan SENGAJA sederhana: satu angka besar total komisi di atas, daftar
   pekerjaan hari itu di bawah. Jangan menambah tabel lebar — halaman ini dibuka
   dari ponsel oleh teknisi. */
.mc-wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.mc-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.mc-head h1 { font-size: 19px; }
.mc-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mc-date { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.mc-date form { display: flex; }
.mc-date input { padding: 6px 8px; font-size: 12px; }

.mc-total {
  border-radius: 16px; padding: 18px 18px 16px;
  background: linear-gradient(135deg, rgba(255,176,32,.16), rgba(255,122,0,.06));
  border: 1px solid rgba(255,176,32,.32); box-shadow: var(--shadow);
}
.mc-total-lbl { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--amber); font-weight: 700; }
/* angka komisi dibuat BESAR supaya langsung terbaca dari HP */
.mc-total-val {
  font-family: var(--mono); font-size: 34px; font-weight: 700; line-height: 1.15;
  margin: 6px 0 8px; color: #fff; word-break: break-word;
}
.mc-total-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--ink-2); }
.mc-total-note { margin-top: 7px; font-size: 10.5px; color: var(--muted); }
.mc-total-note b { color: var(--amber); }
.mc-note-line { font-size: 11px; color: var(--muted); padding: 2px 3px; }

.mc-sec { display: flex; flex-direction: column; gap: 9px; }
.mc-sec-h { font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .5px; }
.mc-item {
  border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px;
  background: rgba(255,255,255,.028); display: flex; flex-direction: column; gap: 3px;
}
.mc-item-run { opacity: .85; border-style: dashed; }
.mc-item-top { display: flex; align-items: center; gap: 8px; }
.mc-wo { font-family: var(--mono); font-size: 12px; letter-spacing: .3px; }
.mc-kom { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--amber); }
.mc-plate { font-size: 14px; font-weight: 700; letter-spacing: .3px; }
.mc-veh { font-size: 11.5px; color: var(--muted); }
.mc-item-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 11px; color: var(--muted-2); }
.mc-time { font-family: var(--mono); }
.mc-sum {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line-strong); padding: 11px 2px 2px; font-size: 13px;
}
.mc-sum b { font-family: var(--mono); font-size: 16px; color: var(--amber); }
.mc-empty { border: 1px dashed var(--line-strong); border-radius: 13px; padding: 20px 14px; text-align: center; color: var(--muted); font-size: 12.5px; }
.mc-card { border-radius: 14px; padding: 16px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); }
.mc-warn { border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.08); }
.mc-warn-t { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.mc-warn-p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }
@media (max-width: 430px) {
  .mc-total-val { font-size: 30px; }
  .mc-date { margin-left: 0; }
}

/* ---------------- Landing / login ---------------- */

.lp body, body.lp-body { background: #08090d; }
.lp-nav { max-width: 1180px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.lp-brand .brand-mark { width: 36px; height: 36px; font-size: 14px; }
.lp-brand small { display: block; font-family: 'Inter'; font-size: 9.5px; letter-spacing: 1.4px; color: #8b94a7; text-transform: uppercase; font-weight: 600; }
.lp-nav .spacer { flex: 1; }
.lp-actions { display: flex; gap: 8px; }
.lp-shell { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 42px 0 30px; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255, 176, 32, .3);
  background: rgba(255, 176, 32, .08); padding: 6px 12px; border-radius: 999px;
}
.lp-hero h1 { font-family: var(--mono); font-size: clamp(30px, 4.4vw, 50px); line-height: 1.06; margin: 16px 0 14px; text-transform: uppercase; letter-spacing: -.5px; }
.lp-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p.lead { color: #a9b2c4; font-size: 15px; max-width: 520px; line-height: 1.65; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.lp-cta .btn { padding: 12px 20px; font-size: 14px; }
.lp-stats { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.lp-stats div b { display: block; font-family: var(--mono); font-size: 20px; color: #fff; }
.lp-stats div span { font-size: 11px; color: #8b94a7; text-transform: uppercase; letter-spacing: .8px; }
.lp-shot {
  position: relative; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, #1a1e29, #10131b); padding: 10px;
  box-shadow: 0 40px 80px -40px #000, 0 0 0 1px rgba(255, 176, 32, .08);
}
.lp-shot .shot-bar { display: flex; gap: 5px; padding: 2px 4px 8px; align-items: center; }
.lp-shot .shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #363c4c; display: block; }
.lp-shot .shot-bar span { margin-left: 6px; font-size: 10px; color: #6d768a; }
.lp-shot img { display: block; width: 100%; border-radius: 10px; }
.lp-shot .shot-tag { position: absolute; bottom: -14px; left: 18px; background: var(--grad); color: #241505; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: 0 10px 22px -12px rgba(255, 145, 0, .9); }
.lp-section { padding: 46px 0 10px; }
.lp-section h2 { font-family: var(--mono); font-size: 26px; text-transform: uppercase; letter-spacing: .3px; }
.lp-section .lp-sub { color: #97a0b3; font-size: 13.5px; margin: 8px 0 24px; max-width: 620px; }
.lp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-feat {
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
}
.lp-feat .fi { font-size: 22px; }
.lp-feat b { display: block; margin: 9px 0 5px; font-size: 13.5px; }
.lp-feat span { font-size: 12px; color: #97a0b3; line-height: 1.55; }
.lp-paket { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lp-plan {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  position: relative;
}
.lp-plan.featured { border-color: rgba(255, 176, 32, .45); background: linear-gradient(180deg, rgba(255, 176, 32, .1), rgba(255, 176, 32, .02)); }
.lp-plan .pl-tag { position: absolute; top: -11px; right: 18px; background: var(--grad); color: #241505; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; padding: 4px 10px; border-radius: 999px; }
.lp-plan h3 { font-family: var(--mono); font-size: 20px; text-transform: uppercase; letter-spacing: .5px; }
.lp-plan .pl-price { font-family: var(--mono); font-size: 15px; color: var(--amber); margin: 8px 0 14px; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.lp-plan li { font-size: 12.5px; color: #b6bfd0; display: flex; gap: 8px; align-items: flex-start; }
.lp-plan li::before { content: '✔'; color: var(--amber); font-size: 11px; margin-top: 2px; }
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-step { border: 1px dashed rgba(255, 255, 255, .14); border-radius: 14px; padding: 16px; }
.lp-step b { font-family: var(--mono); color: var(--amber); font-size: 12px; letter-spacing: 1px; }
.lp-step p { font-size: 12.5px; color: #a9b2c4; margin: 6px 0 0; }
.lp-cta-band {
  margin-top: 44px; border-radius: 20px; padding: 30px; text-align: center;
  background: radial-gradient(600px 200px at 50% 0%, rgba(255, 176, 32, .18), transparent 70%), linear-gradient(180deg, #171b26, #0e1118);
  border: 1px solid rgba(255, 176, 32, .22);
}
.lp-cta-band h2 { font-family: var(--mono); font-size: 26px; text-transform: uppercase; }
.lp-cta-band p { color: #a9b2c4; margin: 8px 0 18px; font-size: 13.5px; }
.lp-foot { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 46px; padding: 22px 0; display: flex; gap: 12px; flex-wrap: wrap; color: #7b8496; font-size: 11.5px; }
.lp-link { background: none; border: none; color: var(--amber); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 0; }
.lp-modal {
  position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center;
  background: rgba(3, 5, 9, .78); backdrop-filter: blur(6px); padding: 20px; overflow-y: auto;
}
.lp-modal.open { display: flex; }
.lp-card {
  width: 430px; max-width: 100%; background: #12151e; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px; padding: 22px; box-shadow: 0 40px 80px -30px #000; position: relative;
}
.lp-card h3 { font-family: var(--mono); font-size: 18px; text-transform: uppercase; letter-spacing: .6px; }
.lp-card p.lc-sub { color: #97a0b3; font-size: 12.5px; margin: 6px 0 16px; }
.lp-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: #8b94a7; font-size: 22px; cursor: pointer; }
.lp-card .field { margin-bottom: 12px; }
.lp-card .hint { font-size: 11px; color: #7b8496; }
.wa-box { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.wa-box .wa-num { font-family: var(--mono); font-size: 20px; font-weight: 700; color: #6ee7a0; letter-spacing: .5px; }
.wa-steps { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.wa-steps div { font-size: 12.5px; color: #b6bfd0; display: flex; gap: 9px; }
.wa-steps b { color: var(--amber); font-family: var(--mono); }

/* ---------------- Responsif ---------------- */

@media (max-width: 1180px) {
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .pos-wrap { grid-template-columns: minmax(0, 1fr); }
  .pos-cart { position: static; }
  .cart-items { max-height: none; }
  .pos-grid { max-height: none; }
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 24px; }
  .lp-paket, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wo-row { grid-template-columns: minmax(0, 1fr) 60px 100px 28px; }
}
@media (max-width: 760px) {
  .wrap { padding: 14px 12px 34px; }
  .topbar-inner { padding: 8px 12px 0; }
  /* Semua menu harus TERLIHAT di ponsel — dulu nav hanya bisa digeser ke samping
     sehingga menu terakhir (mis. Laporan) tampak "tidak ada". */
  .nav { flex-wrap: wrap; overflow-x: visible; }
  .nav-link { padding: 6px 9px; font-size: 12px; }
  .brand-txt b { font-size: 14px; }
  .brand-tut .tut-txt { display: none; }
  .brand-tut { padding: 6px 8px; }
  .u-txt { display: none; }
  .ws-switch select { max-width: 130px; font-size: 11.5px; }
  .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4, .grid-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-left .searchbar { width: 100%; }
  .pos-left .pos-tools { width: 100%; margin-left: 0; }
  .lp-features, .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .stat-val { font-size: 17px; }
  .page-head .ph-actions { width: 100%; }
  .filter-bar .fb-item { flex: 1 1 100%; }
  .sel-filter { max-width: 100%; }
  .wo-row { grid-template-columns: minmax(0, 1fr) 54px 92px 28px; gap: 5px; }
  .doc-bottom { flex-direction: column; }
  .doc-sum { width: 100%; }
  .block-mobile { display: block; width: 100%; }
  .modal-backdrop { padding: 14px 10px; }
  .modal-body { max-height: calc(100vh - 150px); }
}
@media (max-width: 460px) {
  .grid-4, .grid-auto { grid-template-columns: minmax(0, 1fr); }
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-txt small { display: none; }
}

/* ---------------- Cetak langsung dari aplikasi ---------------- */
@media print {
  body.theme-dark { background: #fff !important; color: #111; }
  .topbar, .foot, .nav, #notif-wrap, .subs-banner, .no-print, .modal-head, .modal-foot { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .modal-backdrop { position: static; display: block !important; background: #fff; padding: 0; }
  .modal { width: auto; max-width: none; border: none; box-shadow: none; background: #fff; }
  .modal-body { max-height: none; overflow: visible; padding: 0; }
  .print-body { background: #fff; padding: 0; }
  .receipt, .inv-sheet { box-shadow: none; border-radius: 0; max-width: none; }
  @page { margin: 10mm; }
}
