/* =========================================================
   POS — sistem tema
   Tema: modern (default) | modern-dark | neon | simple | simple-dark
   Semua warna diambil dari variabel di bawah, tiap tema hanya menimpa variabel.
   ========================================================= */

/* ---------- 1. MODERN (terang, gradasi ungu-biru) ---------- */
:root, [data-theme="modern"] {
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: var(--font);
  --radius: 16px;

  --bg: #f3f4fb;
  --bg-deco: radial-gradient(1200px 600px at 100% -10%, #e7e3ff 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #dff1ff 0%, transparent 60%);
  --card: #ffffff;
  --card-2: #f7f7fc;
  --hover: #faf9ff;
  --text: #1e1b3a;
  --muted: #7a7f9a;
  --label: #5d6180;
  --line: #e9eaf3;
  --input-bg: #fbfbfe;
  --input-border: #e2e3ef;
  --btn-bg: #ffffff;
  --btn-hover: #f7f7fd;
  --qty-bg: #f3f2fb;
  --overlay: rgba(20,16,50,.45);
  --topbar-bg: rgba(255,255,255,.75);
  --card-border: var(--line);

  --primary: #6d4aff;
  --primary-soft: #f1edff;
  --primary-soft-text: #5b4bb7;
  --primary-soft-border: #e2dbff;
  --grad: linear-gradient(135deg, #6d4aff 0%, #4f7cff 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
  --grad-pink: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --grad-orange: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --on-primary: #ffffff;

  --shadow: 0 1px 2px rgba(30,27,58,.04), 0 8px 24px rgba(30,27,58,.06);
  --shadow-lg: 0 20px 50px rgba(45,30,120,.18);
  --glow-primary: 0 6px 16px rgba(109,74,255,.35);
  --glow-success: 0 6px 16px rgba(16,185,129,.35);

  --badge-bg: #eef0f6;   --badge-text: #555a75;
  --green-bg: #d9fbe9;   --green-text: #047857;
  --red-bg: #ffe1e4;     --red-text: #be123c;
  --blue-bg: #e6e4ff;    --blue-text: #4c34d6;
  --yellow-bg: #fff1d1;  --yellow-text: #b45309;

  --sidebar-bg: linear-gradient(180deg, #1f1660 0%, #2c1d8a 55%, #3a2bb0 100%);
  --sidebar-text: #d4d1fa;
  --sidebar-muted: #8c86d9;
  --sidebar-strong: #ffffff;
  --sidebar-hover: rgba(255,255,255,.08);
  --sidebar-active-bg: #ffffff;
  --sidebar-active-text: #3b26c9;
  --sidebar-border: transparent;

  --head-bg: linear-gradient(120deg, #3a1fd1 0%, #6d4aff 50%, #4f7cff 100%);
  --head-text: #ffffff;
  --head-shadow: 0 12px 30px rgba(80,50,220,.3);
  --ghost-bg: rgba(255,255,255,.14);
  --ghost-border: rgba(255,255,255,.22);
  --ghost-hover: rgba(255,255,255,.26);
  --total-bg: linear-gradient(120deg, #1f1660, #3a2bb0);
  --bar: linear-gradient(180deg, #8b6bff, #4f7cff);
  --bar-2: linear-gradient(180deg, #34d399, #10b981);

  --login-bg: linear-gradient(135deg, #2a1b8f 0%, #5b3df5 45%, #3b82f6 100%);
  --login-side-bg: rgba(255,255,255,.1);
  --login-side-text: #ffffff;
  color-scheme: light;
}

/* ---------- 2. MODERN GELAP ---------- */
[data-theme="modern-dark"] {
  --bg: #0e0f1d;
  --bg-deco: radial-gradient(1000px 600px at 100% -10%, rgba(109,74,255,.22) 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(79,124,255,.16) 0%, transparent 60%);
  --card: #171a2e;
  --card-2: #1e2139;
  --hover: #1f2340;
  --text: #e8e9f6;
  --muted: #9094b3;
  --label: #a9acc9;
  --line: #2a2d4a;
  --input-bg: #13152a;
  --input-border: #2f3354;
  --btn-bg: #1e2139;
  --btn-hover: #262a48;
  --qty-bg: #23263f;
  --overlay: rgba(4,4,15,.65);
  --topbar-bg: rgba(14,15,29,.75);
  --primary: #8b6bff;
  --primary-soft: rgba(139,107,255,.16);
  --primary-soft-text: #c8b8ff;
  --primary-soft-border: rgba(139,107,255,.3);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  --badge-bg: #262a45;   --badge-text: #b6b9d4;
  --green-bg: rgba(16,185,129,.16); --green-text: #4ade80;
  --red-bg: rgba(239,68,68,.16);    --red-text: #fb7185;
  --blue-bg: rgba(139,107,255,.18); --blue-text: #b9a6ff;
  --yellow-bg: rgba(245,158,11,.16); --yellow-text: #fbbf24;
  --sidebar-bg: linear-gradient(180deg, #120f33 0%, #1a1550 60%, #241c6e 100%);
  --sidebar-active-bg: var(--grad);
  --sidebar-active-text: #ffffff;
  --total-bg: linear-gradient(120deg, #2a1f7a, #4b36d8);
  color-scheme: dark;
}

/* ---------- 3. NEON (cyberpunk, gelap + glow) ---------- */
[data-theme="neon"] {
  --font-display: "Orbitron", var(--font);
  --bg: #07060f;
  --bg-deco: radial-gradient(800px 500px at 90% -5%, rgba(255,0,230,.18) 0%, transparent 60%),
             radial-gradient(800px 500px at 0% 105%, rgba(0,240,255,.16) 0%, transparent 60%),
             linear-gradient(rgba(0,240,255,.035) 1px, transparent 1px),
             linear-gradient(90deg, rgba(0,240,255,.035) 1px, transparent 1px);
  --card: rgba(16,14,34,.88);
  --card-2: rgba(0,240,255,.05);
  --hover: rgba(0,240,255,.06);
  --text: #eafcff;
  --muted: #8796b8;
  --label: #7fe9ff;
  --line: rgba(0,240,255,.14);
  --card-border: rgba(0,240,255,.22);
  --input-bg: rgba(5,5,16,.8);
  --input-border: rgba(0,240,255,.25);
  --btn-bg: rgba(0,240,255,.06);
  --btn-hover: rgba(0,240,255,.14);
  --qty-bg: rgba(0,240,255,.08);
  --overlay: rgba(2,0,10,.75);
  --topbar-bg: rgba(7,6,15,.8);
  --primary: #00f0ff;
  --primary-soft: rgba(0,240,255,.1);
  --primary-soft-text: #7ff7ff;
  --primary-soft-border: rgba(0,240,255,.35);
  --grad: linear-gradient(135deg, #ff00e6 0%, #00f0ff 100%);
  --grad-green: linear-gradient(135deg, #00ff9d 0%, #00d4ff 100%);
  --grad-pink: linear-gradient(135deg, #ff2e88 0%, #ff00e6 100%);
  --grad-orange: linear-gradient(135deg, #ffe600 0%, #ff6a00 100%);
  --success: #00ff9d;
  --danger: #ff2e88;
  --warning: #ffe600;
  --on-primary: #05040c;
  --shadow: 0 0 0 1px rgba(0,240,255,.05), 0 8px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 0 40px rgba(0,240,255,.18), 0 30px 60px rgba(0,0,0,.6);
  --glow-primary: 0 0 18px rgba(0,240,255,.5), 0 0 40px rgba(255,0,230,.25);
  --glow-success: 0 0 18px rgba(0,255,157,.55);
  --badge-bg: rgba(255,255,255,.06); --badge-text: #b8c6e0;
  --green-bg: rgba(0,255,157,.12);   --green-text: #00ff9d;
  --red-bg: rgba(255,46,136,.14);    --red-text: #ff5ca8;
  --blue-bg: rgba(0,240,255,.12);    --blue-text: #00f0ff;
  --yellow-bg: rgba(255,230,0,.12);  --yellow-text: #ffe600;
  --sidebar-bg: linear-gradient(180deg, #0a0818 0%, #0d0b22 100%);
  --sidebar-text: #b9c4e6;
  --sidebar-muted: #ff4fe8;
  --sidebar-hover: rgba(0,240,255,.08);
  --sidebar-active-bg: rgba(0,240,255,.1);
  --sidebar-active-text: #00f0ff;
  --sidebar-border: rgba(255,0,230,.35);
  --head-bg: linear-gradient(120deg, rgba(20,8,40,.95), rgba(8,18,40,.95));
  --head-shadow: 0 0 0 1px rgba(255,0,230,.45), 0 0 30px rgba(255,0,230,.25), 0 0 60px rgba(0,240,255,.12);
  --ghost-bg: rgba(0,240,255,.08);
  --ghost-border: rgba(0,240,255,.35);
  --ghost-hover: rgba(0,240,255,.2);
  --total-bg: linear-gradient(120deg, #1a0633, #04223a);
  --bar: linear-gradient(180deg, #ff00e6, #00f0ff);
  --bar-2: linear-gradient(180deg, #00ff9d, #00d4ff);
  --login-bg: radial-gradient(900px 600px at 80% 0%, rgba(255,0,230,.35), transparent 60%), radial-gradient(900px 600px at 0% 100%, rgba(0,240,255,.3), transparent 60%), #07060f;
  --login-side-bg: rgba(10,8,25,.6);
  color-scheme: dark;
}

/* ---------- 4. SEDERHANA PUTIH (flat, minimalis) ---------- */
[data-theme="simple"] {
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 8px;
  --bg: #f4f5f7;
  --bg-deco: none;
  --card: #ffffff;
  --card-2: #f8f9fa;
  --hover: #f5f8ff;
  --text: #1f2328;
  --muted: #6b7280;
  --label: #4b5563;
  --line: #e5e7eb;
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --btn-bg: #ffffff;
  --btn-hover: #f3f4f6;
  --qty-bg: #f3f4f6;
  --overlay: rgba(0,0,0,.4);
  --topbar-bg: #ffffff;
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --primary-soft-text: #1d4ed8;
  --primary-soft-border: #bfdbfe;
  --grad: #2563eb;
  --grad-green: #16a34a;
  --grad-pink: #dc2626;
  --grad-orange: #d97706;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --shadow: 0 1px 2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.15);
  --glow-primary: none;
  --glow-success: none;
  --badge-bg: #f3f4f6;   --badge-text: #4b5563;
  --green-bg: #dcfce7;   --green-text: #166534;
  --red-bg: #fee2e2;     --red-text: #991b1b;
  --blue-bg: #dbeafe;    --blue-text: #1e40af;
  --yellow-bg: #fef3c7;  --yellow-text: #92400e;
  --sidebar-bg: #ffffff;
  --sidebar-text: #374151;
  --sidebar-muted: #9ca3af;
  --sidebar-strong: #111827;
  --sidebar-hover: #f3f4f6;
  --sidebar-active-bg: #eff6ff;
  --sidebar-active-text: #1d4ed8;
  --sidebar-border: #e5e7eb;
  --head-bg: #ffffff;
  --head-text: #111827;
  --head-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px #e5e7eb;
  --ghost-bg: #ffffff;
  --ghost-border: #d1d5db;
  --ghost-hover: #f3f4f6;
  --total-bg: #111827;
  --bar: #2563eb;
  --bar-2: #16a34a;
  --login-bg: #f4f5f7;
  --login-side-bg: #2563eb;
  color-scheme: light;
}

/* ---------- 5. SEDERHANA GELAP ---------- */
[data-theme="simple-dark"] {
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 8px;
  --bg: #121212;
  --bg-deco: none;
  --card: #1c1c1e;
  --card-2: #242426;
  --hover: #26262a;
  --text: #e6e6e6;
  --muted: #9a9aa2;
  --label: #b4b4bb;
  --line: #2e2e32;
  --input-bg: #161618;
  --input-border: #3a3a3f;
  --btn-bg: #242426;
  --btn-hover: #2e2e32;
  --qty-bg: #2a2a2e;
  --overlay: rgba(0,0,0,.6);
  --topbar-bg: #1c1c1e;
  --primary: #3b82f6;
  --primary-soft: rgba(59,130,246,.15);
  --primary-soft-text: #93c5fd;
  --primary-soft-border: rgba(59,130,246,.35);
  --grad: #3b82f6;
  --grad-green: #22c55e;
  --grad-pink: #ef4444;
  --grad-orange: #f59e0b;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: none;
  --shadow-lg: 0 10px 30px rgba(0,0,0,.5);
  --glow-primary: none;
  --glow-success: none;
  --badge-bg: #2a2a2e;   --badge-text: #c4c4cc;
  --green-bg: rgba(34,197,94,.15);  --green-text: #4ade80;
  --red-bg: rgba(239,68,68,.15);    --red-text: #f87171;
  --blue-bg: rgba(59,130,246,.15);  --blue-text: #93c5fd;
  --yellow-bg: rgba(245,158,11,.15); --yellow-text: #fbbf24;
  --sidebar-bg: #18181a;
  --sidebar-text: #c4c4cc;
  --sidebar-muted: #6b6b73;
  --sidebar-strong: #ffffff;
  --sidebar-hover: #242426;
  --sidebar-active-bg: rgba(59,130,246,.18);
  --sidebar-active-text: #93c5fd;
  --sidebar-border: #2e2e32;
  --head-bg: #1c1c1e;
  --head-text: #e6e6e6;
  --head-shadow: 0 0 0 1px #2e2e32;
  --ghost-bg: #242426;
  --ghost-border: #3a3a3f;
  --ghost-hover: #2e2e32;
  --total-bg: #0b0b0c;
  --bar: #3b82f6;
  --bar-2: #22c55e;
  --login-bg: #121212;
  --login-side-bg: #1e3a8a;
  color-scheme: dark;
}

/* =========================================================
   KOMPONEN (memakai variabel di atas)
   ========================================================= */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased;
  background-color: var(--bg); background-image: var(--bg-deco); background-attachment: fixed;
}
[data-theme="neon"] body { background-size: auto, auto, 40px 40px, 40px 40px; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
code { font-family: Consolas, monospace; font-size: 12.5px; color: var(--muted); }
.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.hint { margin-top: 8px; font-size: 12.5px; color: var(--primary-soft-text); background: var(--primary-soft); border: 1px solid var(--primary-soft-border); padding: 10px 12px; border-radius: 10px; line-height: 1.5; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 9px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- kartu ---------- */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: center; }
.stat .icon { width: 52px; height: 52px; border-radius: calc(var(--radius) - 2px); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; color: #fff; background: var(--grad); box-shadow: var(--glow-primary); }
.stat.c2 .icon { background: var(--grad-green); box-shadow: var(--glow-success); }
.stat.c3 .icon { background: var(--grad-orange); }
.stat.c4 .icon { background: var(--grad-pink); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--grad); opacity: .07; }
.stat.c2::after { background: var(--grad-green); } .stat.c3::after { background: var(--grad-orange); } .stat.c4::after { background: var(--grad-pink); }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat .value { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 2px 0; letter-spacing: -.02em; }
.stat .muted { font-size: 12px; }
.stat.hero { background: var(--grad); color: #fff; border-color: transparent; }
.stat.hero .label, .stat.hero .muted { color: rgba(255,255,255,.82); }
.stat.hero .icon { background: rgba(255,255,255,.2); box-shadow: none; }
.stat.hero::after { background: #fff; opacity: .1; width: 160px; height: 160px; }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--btn-bg); color: var(--text);
  padding: 9px 16px; border-radius: calc(var(--radius) - 5px); cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit;
  transition: transform .12s, box-shadow .15s, background .15s, filter .15s; white-space: nowrap; }
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: var(--glow-primary); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); }
.btn-success { background: var(--grad-green); border: 0; color: #fff; box-shadow: var(--glow-success); }
.btn-success:hover { background: var(--grad-green); filter: brightness(1.06); }
.btn-danger { background: var(--grad-pink); border: 0; color: #fff; }
.btn-danger:hover { background: var(--grad-pink); filter: brightness(1.06); }
.btn-ghost { background: var(--ghost-bg); border: 1px solid var(--ghost-border); color: var(--head-text); }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: calc(var(--radius) - 7px); }
.btn-lg { padding: 15px 18px; font-size: 17px; width: 100%; justify-content: center; border-radius: calc(var(--radius) - 2px); }

/* ---------- form ---------- */
input, select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--input-border); border-radius: calc(var(--radius) - 5px); font-size: 14px; font-family: inherit; background: var(--input-bg); color: var(--text); transition: border .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input:disabled { opacity: .6; }
input[type=checkbox] { width: auto; accent-color: var(--primary); }
label { display: block; font-size: 12px; font-weight: 700; color: var(--label); margin: 12px 0 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.paper-select { width: auto; min-width: 230px; padding: 7px 10px; font-size: 13px; }

/* ---------- tabel ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--card-2); font-weight: 700; }
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
tr:last-child td { border-bottom: 0; }
table tr:hover td { background: var(--hover); }
.table-wrap { overflow-x: auto; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--badge-bg); color: var(--badge-text); }
.badge.green { background: var(--green-bg); color: var(--green-text); }
.badge.red { background: var(--red-bg); color: var(--red-text); }
.badge.blue { background: var(--blue-bg); color: var(--blue-text); }
.badge.yellow { background: var(--yellow-bg); color: var(--yellow-text); }
.empty { padding: 34px; text-align: center; color: var(--muted); }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; animation: fade .15s ease; }
.modal { background: var(--card); border: 1px solid var(--card-border); color: var(--text); border-radius: calc(var(--radius) + 4px); width: 100%; max-width: 540px; max-height: 92vh; overflow: auto; padding: 24px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2,.9,.3,1.2); }
[data-theme="neon"] .modal { background: #0d0b1d; }
.modal.wide { max-width: 900px; }
.modal-head { display: flex; align-items: center; margin-bottom: 12px; }
.modal-head h3 { margin: 0; flex: 1; font-size: 18px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.x { background: var(--card-2); border: 0; width: 34px; height: 34px; border-radius: 10px; font-size: 20px; cursor: pointer; color: var(--muted); }
.x:hover { background: var(--btn-hover); color: var(--text); }
#toasts { position: fixed; top: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #1e1b3a; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 380px; font-weight: 600; animation: slidein .25s ease; }
.toast.error { background: var(--grad-pink); }
.toast.success { background: var(--grad-green); }
[data-theme="neon"] .toast.success { color: #04130c; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } }
@keyframes float { 50% { transform: translateY(-24px) rotate(8deg); } }
@keyframes bump { 40% { transform: scale(.94); } }

/* ---------- login ---------- */
.login-wrap { position: relative; overflow: hidden; min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--login-bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; animation: float 9s ease-in-out infinite; }
.blob.b1 { width: 380px; height: 380px; background: radial-gradient(circle at 30% 30%, #f472b6, #a21caf00 70%); top: -80px; left: -60px; }
.blob.b2 { width: 460px; height: 460px; background: radial-gradient(circle at 60% 40%, #22d3ee, #0891b200 70%); bottom: -140px; right: -100px; animation-delay: -3s; }
.blob.b3 { width: 220px; height: 220px; background: radial-gradient(circle, #fbbf24, #f59e0b00 70%); top: 18%; right: 14%; animation-delay: -6s; }
.login-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; width: 100%; max-width: 900px; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px rgba(10,5,60,.45); }
.login-side { padding: 44px; color: var(--login-side-text); background: var(--login-side-bg); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.2); border-right: 0; display: flex; flex-direction: column; justify-content: center; }
.login-side .logo { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 32px; margin-bottom: 22px; }
.login-side h1 { font-family: var(--font-display); font-size: 32px; line-height: 1.15; margin-bottom: 12px; }
.login-side p { opacity: .85; line-height: 1.6; margin: 0 0 22px; }
.login-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.login-side li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.login-side li span { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.login-box { background: var(--card); padding: 44px 38px; }
.login-box h2 { font-size: 24px; margin-bottom: 4px; }
.login-box .btn { width: 100%; justify-content: center; margin-top: 22px; padding: 13px; font-size: 15px; }
.input-icon { position: relative; }
.input-icon span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .55; }
.input-icon input { padding-left: 40px; }
.error-msg { color: var(--danger); margin-top: 12px; min-height: 18px; text-align: center; font-weight: 600; }
.theme-fab { position: fixed; right: 18px; bottom: 18px; z-index: 5; }
@media (max-width: 760px) { .login-shell { grid-template-columns: 1fr; } .login-side { display: none; } }

/* ---------- layout admin ---------- */
.layout { display: flex; min-height: 100%; }
.sidebar { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; color: var(--sidebar-text); position: sticky; top: 0; height: 100vh; background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); }
.sidebar .brand { padding: 22px 20px; display: flex; gap: 12px; align-items: center; }
.sidebar .brand .logo { width: 42px; height: 42px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; font-size: 20px; box-shadow: var(--glow-primary); }
.sidebar .brand b { display: block; color: var(--sidebar-strong); font-size: 16px; font-family: var(--font-display); }
.sidebar .brand small { font-size: 12px; color: var(--sidebar-muted); }
.sidebar nav { padding: 6px 12px; flex: 1; overflow-y: auto; }
.sidebar .group { font-size: 10.5px; text-transform: uppercase; color: var(--sidebar-muted); padding: 16px 12px 6px; letter-spacing: .12em; font-weight: 700; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; color: var(--sidebar-text); padding: 10px 12px; border-radius: calc(var(--radius) - 4px); font-weight: 600; margin-bottom: 2px; transition: background .15s, transform .15s; }
.sidebar nav a:hover { background: var(--sidebar-hover); color: var(--sidebar-strong); transform: translateX(3px); }
.sidebar nav a.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.sidebar nav a.pos-link { background: var(--grad-green); color: #fff; margin: 6px 0; box-shadow: var(--glow-success); }
.sidebar .foot { padding: 14px; margin: 12px; border-radius: calc(var(--radius) - 2px); background: var(--sidebar-hover); font-size: 13px; color: var(--sidebar-text); }
.sidebar .foot b { color: var(--sidebar-strong) !important; }
.sidebar .foot .btn { background: var(--sidebar-hover); border-color: color-mix(in srgb, var(--sidebar-text) 20%, transparent); color: var(--sidebar-strong); }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #f472b6, #a78bfa); flex-shrink: 0; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 14px 26px; display: flex; align-items: center; gap: 12px; }
.topbar .title { font-family: var(--font-display); font-weight: 800; font-size: 20px; flex: 1; letter-spacing: -.02em; }
.topbar .date-pill { background: var(--card); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); font-size: 13px; }
/* ---------- indikator online ---------- */
.online-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--green-bg); color: var(--green-text); border: 1px solid color-mix(in srgb, var(--green-text) 25%, transparent); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.online-pill:hover { filter: brightness(1.05); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 1.8s infinite; display: inline-block; flex-shrink: 0; }
.dot.off { background: color-mix(in srgb, var(--muted) 60%, transparent); animation: none; }
.dot.idle { background: var(--warning); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.nav-count { margin-left: auto; background: var(--success); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.nav-count:empty { display: none; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .avatar { position: relative; }
.who-cell .avatar .dot { position: absolute; right: -3px; bottom: -3px; border: 2px solid var(--card); width: 12px; height: 12px; }
.online-list { display: grid; gap: 4px; }
.online-item { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 12px; }
.online-item:hover { background: var(--hover); }

.content { padding: 26px; animation: fade .25s ease; }
.toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar > div { min-width: 150px; }
.toolbar label { margin-top: 0; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; color: var(--muted); font-weight: 600; }
.bars .bar div { width: 100%; max-width: 46px; background: var(--bar); border-radius: 10px 10px 4px 4px; min-height: 4px; transition: filter .15s; }
.bars .bar:hover div { filter: brightness(1.15); }
.bars .bar:last-child div { background: var(--bar-2); }
.bars .bar span { margin-top: 6px; }
.rank { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--primary-soft); color: var(--primary); margin-right: 8px; }
.rank.r1 { background: var(--grad-orange); color: #fff; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; z-index: 40; transition: left .2s; }
  .sidebar.open { left: 0; }
  .menu-btn { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
  .content { padding: 16px; }
}

/* ---------- layout kasir ---------- */
.pos { display: flex; height: 100vh; }
.pos-left { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pos-right { width: 410px; margin: 14px 14px 14px 0; background: var(--card); border: 1px solid var(--card-border); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.pos-head { margin: 14px 14px 0; border-radius: calc(var(--radius) + 4px); padding: 14px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--head-text);
  background: var(--head-bg); box-shadow: var(--head-shadow); position: relative; overflow: hidden; }
.pos-head::after { content: ""; position: absolute; width: 240px; height: 240px; right: 20%; top: -140px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.pos-head .store { font-family: var(--font-display); font-weight: 800; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.pos-head .store .logo { width: 38px; height: 38px; border-radius: 12px; background: var(--ghost-bg); display: grid; place-items: center; font-size: 19px; }
.pos-head .badge { background: var(--ghost-bg); color: var(--head-text); }
.pos-head .who { font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.pos-head .btn-sm { padding: 6px 10px; }
@media (min-width: 961px) { .pos-head { flex-wrap: nowrap; } }
.pos-search { padding: 14px 14px 10px; position: relative; }
.pos-search input { font-size: 16px; padding: 14px 16px 14px 48px; border-radius: calc(var(--radius)); background: var(--card); border-color: var(--card-border); box-shadow: var(--shadow); }
.pos-search::before { content: "🔍"; position: absolute; left: 32px; top: 50%; transform: translateY(-40%); font-size: 17px; opacity: .6; z-index: 1; }
.cats { padding: 0 14px 12px; display: flex; gap: 8px; overflow-x: auto; }
.cats button { white-space: nowrap; border: 1px solid var(--card-border); background: var(--card); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 700; font-family: inherit; color: var(--label); box-shadow: var(--shadow); transition: all .15s; }
.cats button:hover { color: var(--primary); }
.cats button.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow-primary); }
/* daftar produk (tampilan list) */
.products { flex: 1; overflow-y: auto; margin: 0 14px 14px; background: var(--card); border: 1px solid var(--card-border); border-radius: calc(var(--radius) + 2px); box-shadow: var(--shadow); align-content: start; }
.prow { display: grid; grid-template-columns: 42px minmax(0, 1fr) 110px 120px 44px; align-items: center; gap: 14px; padding: 9px 16px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; transition: background .12s; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--hover); }
.prow:active { animation: bump .2s; }
.prow.picked { background: color-mix(in srgb, var(--success) 7%, transparent); }
.prow.out { opacity: .45; cursor: not-allowed; filter: grayscale(.7); }
.prow .pavatar { width: 42px; height: 42px; margin: 0; font-size: 14px; border-radius: 11px; }
.prow .pname { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pmeta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pstock { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: right; }
.prow .pstock.is-low { color: var(--yellow-text); }
.prow .pstock.is-out { color: var(--red-text); }
.prow .pprice { color: var(--primary); font-weight: 800; font-size: 15px; text-align: right; }
.prow .padd { display: flex; justify-content: flex-end; }
.prow .plus { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--primary-soft); color: var(--primary); transition: all .12s; }
.prow:hover .plus { background: var(--grad); color: #fff; }
.prow .incart { position: static; width: 32px; height: 32px; min-width: 32px; padding: 0; border-radius: 10px; }
.products .empty { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .prow { grid-template-columns: 38px minmax(0, 1fr) auto 36px; gap: 10px; padding: 9px 12px; }
  .prow .pstock { display: none; }
}
[data-theme="neon"] .prow:hover { box-shadow: inset 3px 0 0 #00f0ff; }
[data-theme="neon"] .prow .pprice { text-shadow: 0 0 8px rgba(0,240,255,.6); }
[data-theme="neon"] .prow .pavatar { box-shadow: 0 0 12px rgba(255,0,230,.3); filter: saturate(1.35); }
.pcard { background: var(--card); border: 2px solid var(--card-border); border-radius: calc(var(--radius) + 2px); padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; user-select: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.pcard:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.pcard:active { animation: bump .2s; }
.pcard.out { opacity: .45; cursor: not-allowed; filter: grayscale(.7); }
.pavatar { height: 78px; border-radius: calc(var(--radius) - 3px); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: .02em; text-shadow: 0 2px 6px rgba(0,0,0,.15); font-family: var(--font-display); }
.pcard .pname { font-weight: 700; line-height: 1.3; min-height: 36px; font-size: 13.5px; }
.pcard .pprice { color: var(--primary); font-weight: 800; font-size: 15px; }
.pcard .pstock { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pcard .low { position: absolute; top: 18px; right: 18px; background: var(--card); color: var(--yellow-text); font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.incart { position: absolute; top: 6px; left: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--grad-green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 12px; box-shadow: var(--glow-success); z-index: 1; }
.cart-head { padding: 18px 20px 14px; display: flex; align-items: center; border-bottom: 1px dashed var(--line); }
.cart-head h3 { margin: 0; flex: 1; font-size: 17px; }
.cart { flex: 1; overflow-y: auto; padding: 6px 10px; }
.citem { padding: 12px 10px; border-radius: calc(var(--radius) - 2px); display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; animation: slidein .2s ease; }
.citem:hover { background: var(--hover); }
.citem + .citem { border-top: 1px solid var(--line); }
.citem .cname { font-weight: 700; }
.citem .cline { font-weight: 800; text-align: right; }
.qty { display: flex; align-items: center; gap: 4px; background: var(--qty-bg); border-radius: 11px; padding: 3px; width: max-content; }
.qty button { width: 28px; height: 28px; border: 0; background: var(--card); border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 800; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.qty input { width: 46px; text-align: center; padding: 4px; border: 0; background: transparent; font-weight: 700; }
.qty input:focus { box-shadow: none; }
.del-btn { border: 0; background: none; cursor: pointer; font-size: 15px; opacity: .55; }
.del-btn:hover { opacity: 1; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--muted); text-align: center; padding: 30px; }
.cart-empty .big { font-size: 58px; margin-bottom: 8px; filter: grayscale(.2); }
.cart-foot { padding: 16px 18px 18px; background: var(--card-2); border-top: 1px solid var(--line); }
.sumline { display: flex; justify-content: space-between; padding: 3px 2px; color: var(--label); font-weight: 600; }
.total-box { margin-top: 10px; border-radius: calc(var(--radius)); padding: 14px 16px; color: #fff; background: var(--total-bg); display: flex; justify-content: space-between; align-items: center; }
.total-box span:first-child { opacity: .8; font-weight: 700; letter-spacing: .08em; font-size: 12px; }
.total-box span:last-child { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.paymethods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.paymethods button { padding: 12px 4px; border: 2px solid var(--line); background: var(--btn-bg); color: var(--text); border-radius: calc(var(--radius) - 3px); cursor: pointer; font-weight: 700; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .15s; }
.paymethods button i { font-style: normal; font-size: 22px; }
.paymethods button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.quickcash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.quickcash button { padding: 10px; border: 1.5px solid var(--line); background: var(--btn-bg); color: var(--text); border-radius: calc(var(--radius) - 5px); cursor: pointer; font-weight: 700; font-family: inherit; }
.quickcash button:hover { border-color: var(--primary); color: var(--primary); }
.pay-total { text-align: center; padding: 18px; border-radius: var(--radius); background: var(--grad); color: #fff; margin-bottom: 4px; }
.pay-total div:first-child { opacity: .85; font-weight: 600; }
.pay-total div:last-child { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.bigchange { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--success); text-align: center; margin: 12px 0 4px; letter-spacing: -.02em; }
.success-hero { text-align: center; margin-bottom: 16px; }
.success-check { width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 50%; background: var(--grad-green); color: #fff; font-size: 34px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--glow-success); animation: pop .35s cubic-bezier(.2,.9,.3,1.5); }
.shift-lock { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 30; }
.shift-lock .card { border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); animation: pop .25s ease; }
@media (max-width: 960px) {
  .pos { flex-direction: column; height: auto; min-height: 100vh; }
  .pos-right { width: auto; margin: 0 14px 14px; }
  .products { max-height: 55vh; flex: none; }
}

/* ---------- pemilih tema ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-card { border: 2px solid var(--line); border-radius: 14px; padding: 8px; cursor: pointer; background: var(--card-2); text-align: left; font-family: inherit; color: var(--text); transition: all .15s; }
.theme-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.theme-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.theme-card b { display: block; margin-top: 8px; font-size: 13.5px; }
.theme-card small { color: var(--muted); font-size: 11.5px; }
.tprev { height: 78px; border-radius: 9px; display: grid; grid-template-columns: 28% 1fr; overflow: hidden; border: 1px solid rgba(128,128,128,.25); }
.tprev .ts { height: 100%; }
.tprev .tm { padding: 7px; display: grid; gap: 5px; align-content: start; }
.tprev .tb { height: 14px; border-radius: 4px; }
.tprev .tc { height: 32px; border-radius: 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.tprev .tc i { border-radius: 3px; }

/* ---------- efek khusus tema NEON ---------- */
[data-theme="neon"] .card { backdrop-filter: blur(8px); }
[data-theme="neon"] .stat .value, [data-theme="neon"] .total-box span:last-child, [data-theme="neon"] .pay-total div:last-child,
[data-theme="neon"] .bigchange, [data-theme="neon"] .topbar .title, [data-theme="neon"] .pos-head .store { text-shadow: 0 0 10px currentColor; }
[data-theme="neon"] .stat:not(.hero) .value { color: var(--primary); }
[data-theme="neon"] .stat.c2 .value { color: #00ff9d; } [data-theme="neon"] .stat.c3 .value { color: #ffe600; } [data-theme="neon"] .stat.c4 .value { color: #ff4fe8; }
[data-theme="neon"] .stat.hero { box-shadow: 0 0 30px rgba(255,0,230,.35), 0 0 60px rgba(0,240,255,.15); }
[data-theme="neon"] .btn-primary, [data-theme="neon"] .cats button.active, [data-theme="neon"] .pay-total { color: #fff; text-shadow: 0 0 6px rgba(0,0,0,.5); }
[data-theme="neon"] .btn-success { color: #03150d; }
[data-theme="neon"] .pcard:hover { box-shadow: 0 0 22px rgba(0,240,255,.35); }
[data-theme="neon"] .pcard .pprice { text-shadow: 0 0 8px rgba(0,240,255,.6); }
[data-theme="neon"] .pavatar { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 16px rgba(255,0,230,.25); filter: saturate(1.35); }
[data-theme="neon"] .sidebar nav a.active { box-shadow: inset 0 0 0 1px rgba(0,240,255,.55), 0 0 18px rgba(0,240,255,.25); }
[data-theme="neon"] .sidebar .brand b { text-shadow: 0 0 10px rgba(255,0,230,.8); }
[data-theme="neon"] .total-box { box-shadow: inset 0 0 0 1px rgba(0,240,255,.4), 0 0 24px rgba(0,240,255,.2); }
[data-theme="neon"] .bars .bar div { box-shadow: 0 0 14px rgba(255,0,230,.45); }
[data-theme="neon"] .pos-head::after { background: rgba(255,0,230,.12); }
[data-theme="neon"] .login-shell { box-shadow: 0 0 0 1px rgba(0,240,255,.35), 0 0 50px rgba(255,0,230,.3); }
[data-theme="neon"] .login-side { border-color: rgba(255,0,230,.35); }
[data-theme="neon"] input:focus, [data-theme="neon"] select:focus { box-shadow: 0 0 0 3px rgba(0,240,255,.15), 0 0 16px rgba(0,240,255,.3); }

/* ---------- penyederhanaan tema SEDERHANA ---------- */
[data-theme^="simple"] .stat::after, [data-theme^="simple"] .pos-head::after, [data-theme^="simple"] .blob { display: none; }
[data-theme^="simple"] .btn:hover, [data-theme^="simple"] .pcard:hover, [data-theme^="simple"] .sidebar nav a:hover { transform: none; }
[data-theme^="simple"] .pcard:hover { box-shadow: var(--shadow); }
[data-theme^="simple"] .sidebar nav a.active { box-shadow: none; }
[data-theme^="simple"] .pavatar { background-image: none !important; background-color: var(--primary-soft) !important; color: var(--primary) !important; text-shadow: none; }
[data-theme^="simple"] .stat .icon { width: 46px; height: 46px; font-size: 21px; }
[data-theme^="simple"] .login-shell { box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-radius: 12px; }
[data-theme^="simple"] .modal, [data-theme^="simple"] .content, [data-theme^="simple"] .citem { animation: none; }

/* ---------- struk thermal (selalu hitam di atas putih) ---------- */
#print-area { display: none; }
.receipt { width: 72mm; font-family: "Courier New", monospace; font-size: 12px; color: #000; background: #fff; text-shadow: none; }
.receipt.paper-thermal58 { width: 48mm; font-size: 10.5px; }
.receipt .c { text-align: center; }
.receipt .b { font-weight: bold; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.receipt table td { padding: 1px 0; border: 0; font-size: inherit; background: none !important; color: #000; }

/* ---------- nota continuous form 1/2 & 1/2 A4 ---------- */
.invoice { width: 227mm; font-family: "Courier New", Courier, monospace; font-size: 11pt; color: #000; background: #fff; line-height: 1.3; text-shadow: none; }
.invoice.paper-a4_half { width: 194mm; font-size: 10.5pt; }
.invoice table { border-collapse: collapse; border-spacing: 0; }
.invoice td, .invoice th { padding: 1px 4px; border: 0; background: none !important; font-size: inherit; color: #000; text-transform: none; letter-spacing: 0; border-radius: 0 !important; }
.invoice .r { text-align: right; } .invoice .c { text-align: center; }
.inv-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 2px solid #000; }
.inv-name { font-size: 15pt; font-weight: bold; text-transform: uppercase; }
.inv-title { font-size: 12.5pt; font-weight: bold; letter-spacing: .08em; margin-bottom: 2px; }
.inv-meta table td:first-child { padding-left: 0; white-space: nowrap; }
.inv-items { width: 100%; margin-top: 6px; }
.inv-items thead th { border-top: 1px solid #000; border-bottom: 1px solid #000; font-weight: bold; padding: 3px 4px; }
.inv-items tbody td { padding: 2px 4px; }
.inv-items tbody tr:last-child td { border-bottom: 1px solid #000; padding-bottom: 4px; }
.inv-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; }
.inv-left { flex: 1; }
.inv-words { font-size: 10pt; border: 1px dashed #000; padding: 3px 6px; text-transform: capitalize; }
.inv-sign { display: flex; justify-content: space-around; margin-top: 6px; text-align: center; font-size: 10pt; }
.inv-sign .line { margin-top: 30px; }
.inv-total { width: 40%; }
.inv-total td:first-child { padding-left: 0; }
.inv-total .grand td { font-weight: bold; font-size: 12pt; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.inv-foot { margin-top: 6px; text-align: center; font-size: 9.5pt; font-style: italic; }

/* ---------- pratinjau struk ---------- */
.receipt-preview { border-radius: 14px; padding: 18px; background: repeating-linear-gradient(45deg, var(--card-2), var(--card-2) 10px, var(--hover) 10px, var(--hover) 20px); display: flex; justify-content: center; overflow: auto; }
.receipt-preview .paper-sheet { background: #fff; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); border-radius: 4px; }
.receipt-preview table tr:hover td { background: none; }

@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area { display: block; position: absolute; left: 0; top: 0; }
}
