/* KASIR-CSS-VERSI-3KOLOM */
/* =====================================================================
   DESIGN TOKENS
   Identitas: toko material (aluminium/ACP/kaca) - kesan "steel & glass",
   angka bergaya display kasir digital sebagai elemen khas.
===================================================================== */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e3e6eb;
  --text: #1a2028;
  --text-muted: #6b7280;
  --text-faint: #9aa3af;

  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-darker: #115e59;
  --primary-soft: #ecfdfa;

  --sidebar: #0d121c;
  --sidebar-hover: #171e2c;
  --sidebar-border: #1c2434;
  --sidebar-text: #b8c0cc;
  --sidebar-text-dim: #5b6472;

  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --info: #0369a1;
  --info-soft: #f0f9ff;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20,24,32,.05);
  --shadow-md: 0 6px 20px rgba(20,24,32,.08);
  --shadow-modal: 0 20px 50px rgba(10,14,20,.25);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
::selection { background: var(--primary); color: #fff; }

/* Fokus keyboard tetap kelihatan (aksesibilitas) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}

/* Hormati preferensi kurangi animasi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ===== Login page ===== */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, #16202f 0%, #0a0f18 60%);
  padding: 20px;
}
.login-box {
  width: 100%; max-width: 380px; background: #131a26; border: 1px solid #232c3d;
  border-radius: var(--radius-lg); padding: 36px 32px; text-align: center; color: #e2e8f0;
  box-shadow: var(--shadow-modal);
}
.login-logo {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.login-box h1 { font-size: 19px; color: #fff; margin-bottom: 4px; font-weight: 650; letter-spacing: -.01em; }
.login-form { text-align: left; margin-top: 22px; }
.login-form label { display: block; font-size: 12px; color: #8b96a5; margin: 14px 0 5px; font-weight: 500; }
.login-form input {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid #2a3446;
  background: #0d121c; color: #fff; font-size: 14px; transition: border-color .15s var(--ease);
}
.login-form input:focus { border-color: var(--primary); outline: none; }

/* ===== App shell ===== */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 264px; background: var(--sidebar); color: var(--sidebar-text);
  display: flex; flex-direction: column; flex-shrink: 0; border-right: 1px solid var(--sidebar-border);
  transition: width .18s var(--ease);
}
.sidebar-header { padding: 20px 22px; border-bottom: 1px solid var(--sidebar-border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-header-text { min-width: 0; overflow: hidden; }
.store-name { color: #fff; font-weight: 650; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info { color: var(--sidebar-text-dim); font-size: 12px; margin-top: 3px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-toggle {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--sidebar-border);
  background: transparent; color: var(--sidebar-text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .12s var(--ease);
}
.sidebar-toggle:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-toggle svg { transition: transform .18s var(--ease); }

/* ===== Sidebar dalam mode diciutkan (icon-only) ===== */
.sidebar.collapsed { width: 68px; }
.sidebar.collapsed .sidebar-header { justify-content: center; padding: 20px 10px; }
.sidebar.collapsed .sidebar-header-text { display: none; }
.sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar.collapsed .sidebar-label { display: none; }
.sidebar.collapsed .shift-status { text-align: center; padding: 13px 10px; }
.sidebar.collapsed .shift-dot { justify-content: center; }
.sidebar.collapsed .shift-dot::before { margin: 0; }
.sidebar.collapsed .nav-link { justify-content: center; padding: 10px; }
.sidebar.collapsed .sidebar-footer { display: flex; justify-content: center; padding: 14px 10px; }
.sidebar.collapsed .logout-link { justify-content: center; }

/* Di layar kecil, sidebar collapsed dari cookie tetap ditampilkan penuh saat dibuka (mobile pakai mekanisme sendiri) */
@media (max-width: 900px) {
  .sidebar.collapsed { width: 264px; }
  .sidebar.collapsed .sidebar-header-text,
  .sidebar.collapsed .sidebar-label { display: block; }
  .sidebar.collapsed .sidebar-header { justify-content: space-between; padding: 20px 22px; }
  .sidebar.collapsed .shift-status { text-align: left; padding: 13px 22px; }
  .sidebar.collapsed .shift-dot { justify-content: flex-start; }
  .sidebar.collapsed .nav-link { justify-content: flex-start; padding: 9px 12px; }
  .sidebar.collapsed .sidebar-footer { justify-content: flex-start; padding: 14px 22px; }
  .sidebar.collapsed .logout-link { justify-content: flex-start; }
}

.shift-status { display: block; padding: 13px 22px; border-bottom: 1px solid var(--sidebar-border); transition: background .15s var(--ease); }
.shift-status:hover { background: var(--sidebar-hover); }
.shift-dot { font-size: 11px; font-weight: 650; letter-spacing: .03em; display: flex; align-items: center; gap: 6px; }
.shift-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.shift-open::before { background: #34d399; box-shadow: 0 0 6px #34d399; }
.shift-open { color: #34d399; }
.shift-closed::before { background: #f87171; }
.shift-closed { color: #f87171; }
.shift-balance { color: #fff; font-family: var(--font-mono); font-size: 15px; margin-top: 3px; font-weight: 600; }

.sidebar nav { flex: 1; overflow-y: auto; padding: 10px 12px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin-bottom: 1px;
  font-size: 13.5px; color: var(--sidebar-text); border-radius: var(--radius-sm);
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nav-link:hover { background: var(--sidebar-hover); color: #fff; }
.nav-link.active { background: var(--primary-darker); color: #fff; }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; display: flex; }
.nav-link.active .nav-icon, .nav-link:hover .nav-icon { opacity: 1; }

.nav-group-header {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; margin-bottom: 1px;
  font-size: 13.5px; color: var(--sidebar-text); border-radius: var(--radius-sm); background: none; border: none;
  cursor: pointer; transition: background .12s var(--ease), color .12s var(--ease); text-align: left;
}
.nav-group-header:hover { background: var(--sidebar-hover); color: #fff; }
.nav-group-header.has-active { color: #fff; }
.nav-group-header .nav-chevron { margin-left: auto; width: 14px; height: 14px; flex-shrink: 0; opacity: .7; transition: transform .15s var(--ease); }
.nav-group.open .nav-group-header .nav-chevron { transform: rotate(180deg); }
.nav-group-children { max-height: 0; overflow: hidden; transition: max-height .18s var(--ease); }
.nav-group.open .nav-group-children { max-height: 400px; }
.nav-group-children .nav-link { padding-left: 40px; font-size: 13px; }
.sidebar.collapsed .nav-group-header .sidebar-label,
.sidebar.collapsed .nav-group-header .nav-chevron { display: none; }
.sidebar.collapsed .nav-group-header { justify-content: center; padding: 10px; }
.sidebar.collapsed .nav-group-children { display: none; }
@media (max-width: 900px) {
  .sidebar.collapsed .nav-group-header .sidebar-label,
  .sidebar.collapsed .nav-group-header .nav-chevron { display: flex; }
  .sidebar.collapsed .nav-group-header { justify-content: flex-start; padding: 9px 12px; }
  .sidebar.collapsed .nav-group-children { display: block; }
}

.sidebar-footer { padding: 14px 22px; border-top: 1px solid var(--sidebar-border); }
.logout-link { display: flex; align-items: center; gap: 8px; color: var(--sidebar-text-dim); font-size: 13px; transition: color .12s var(--ease); }
.logout-link:hover { color: #fff; }
.mobile-toggle { display: none; }
.main-content { flex: 1; padding: 26px 28px; min-width: 0; overflow-x: hidden; }

@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 40; height: 100vh; transform: translateX(-100%); transition: transform .22s var(--ease); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-modal); }
  .mobile-toggle {
    display: flex; align-items: center; justify-content: center; position: fixed; top: 14px; left: 14px; z-index: 50;
    background: var(--sidebar); color: #fff; border: none; width: 42px; height: 42px; border-radius: 10px;
    box-shadow: var(--shadow-md);
  }
  .main-content { padding: 70px 16px 20px; }
}

/* ===== Typography ===== */
.page-title { font-size: 21px; font-weight: 650; color: var(--text); margin-bottom: 18px; letter-spacing: -.015em; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.text-faint { color: var(--text-faint); }
h3 { font-size: 14.5px; font-weight: 650; color: var(--text); margin-bottom: 10px; }
.text-muted { color: var(--text-muted); }
.text-red { color: var(--danger); }
.text-green { color: var(--success); }
.text-amber { color: var(--warning); }
.small { font-size: 12px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ===== Alerts ===== */
.alert-success, .alert-error {
  padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.alert-success { background: var(--success-soft); color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; }

/* ===== Cards & stat cards ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card { border-radius: var(--radius); padding: 17px 18px; color: #fff; box-shadow: var(--shadow-sm); }
.stat-card.teal { background: linear-gradient(135deg, #0f766e, #0a4744); }
.stat-card.slate { background: linear-gradient(135deg, #303b4d, #171e2c); }
.stat-card.red { background: linear-gradient(135deg, #b91c1c, #6b1414); }
.stat-card.amber { background: linear-gradient(135deg, #b45309, #6b3505); }
.stat-label { font-size: 11.5px; opacity: .8; margin-bottom: 5px; font-weight: 500; }
.stat-value { font-family: var(--font-mono); font-size: 21px; font-weight: 650; letter-spacing: -.01em; }

.row-between { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }

/* ===== "Register display" - elemen khas kasir digital ===== */
.register-display {
  background: #0b1018; border: 1px solid #1c2434; border-radius: var(--radius-sm);
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  margin: 10px 0;
}
.register-label { color: #5b6472; font-size: 10.5px; letter-spacing: .12em; font-weight: 650; }
.register-value {
  font-family: var(--font-mono); color: #2dd4bf; font-size: 23px; font-weight: 650;
  letter-spacing: .01em; text-shadow: 0 0 14px rgba(45,212,191,.4);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 550;
  border: none; cursor: pointer; text-decoration: none; transition: background .12s var(--ease), transform .05s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: var(--primary-darker); }
.btn-secondary { background: #f1f3f6; color: #384252; }
.btn-secondary:hover { background: #e5e8ed; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-amber { background: var(--warning); color: #fff; }
.btn-amber:hover { background: #b45309; }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== Forms ===== */
label.field-label { display: block; font-size: 12px; font-weight: 550; color: var(--text-muted); margin-bottom: 5px; }
input[type=text], input[type=number], input[type=password], input[type=date], input[type=datetime-local],
select, textarea {
  width: 100%; padding: 9px 11px; border-radius: var(--radius-sm); border: 1px solid #d4d9e0;
  font-size: 14px; background: #fff; color: var(--text); font-family: inherit;
  transition: border-color .12s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field { margin-bottom: 13px; }

/* ===== Tables ===== */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: #fafbfc; color: var(--text-muted); text-align: left; }
th { font-weight: 600; font-size: 12px; }
th, td { padding: 11px 15px; }
tbody tr { border-top: 1px solid #f1f3f6; transition: background .1s var(--ease); }
tbody tr:hover { background: #fafbfc; }
.text-right { text-align: right; }
.empty-row { text-align: center; color: var(--text-faint); padding: 36px; }

/* ===== Badges ===== */
.badge { display: inline-block; padding: 2px 9px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.badge-green { background: var(--success-soft); color: #15803d; }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-gray { background: #f1f3f6; color: var(--text-muted); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,14,20,.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn .15s var(--ease);
}
.modal-box {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-modal);
  animation: modalIn .18s var(--ease);
}
.modal-box.wide { max-width: 720px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 17px 22px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 22px; }
.modal-close { color: var(--text-faint); font-size: 16px; background: none; border: none; cursor: pointer; padding: 4px; border-radius: 6px; transition: background .1s, color .1s; }
.modal-close:hover { background: #f1f3f6; color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ===== Print (struk thermal) ===== */
@media print {
  body * { visibility: hidden; }
  #receipt-print, #receipt-print * { visibility: visible; }
  #receipt-print { position: fixed; left: 0; top: 0; width: 100%; font-size: 11px; }
}

/* ===== Halaman Kasir (POS) ===== */
.pos-layout { display: flex; gap: 18px; align-items: flex-start; }
.pos-products { flex: 1; min-width: 0; }
.pos-cart { width: 390px; flex-shrink: 0; position: sticky; top: 16px; }
@media (max-width: 900px) {
  .pos-layout { flex-direction: column; }
  .pos-cart { width: 100%; position: static; }
}
.pos-toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pos-search-wrap { position: relative; flex: 1; min-width: 160px; }
.pos-search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.pos-search { padding-left: 34px !important; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; max-height: 65vh; overflow-y: auto; padding: 2px 4px 2px 2px; }
.product-card {
  text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px; cursor: pointer; font-family: inherit; transition: border-color .12s var(--ease), transform .1s var(--ease), box-shadow .12s var(--ease);
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.product-card:active { transform: translateY(0) scale(.98); }
.product-card .p-name { font-size: 13px; font-weight: 550; color: var(--text); }
.product-card .p-cat { font-size: 11px; color: var(--text-faint); margin: 2px 0 8px; }
.product-card .p-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-card .p-price { font-family: var(--font-mono); color: var(--primary-dark); font-weight: 650; font-size: 13px; }
.product-card .p-stock { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }
.product-card .p-stock.low { color: var(--danger); }
.empty-hint { text-align: center; color: var(--text-faint); padding: 36px; grid-column: 1/-1; }

.cart-list { max-height: 17rem; overflow-y: auto; margin-bottom: 12px; }
.cart-item { border-bottom: 1px solid #f1f3f6; padding: 9px 0; font-size: 13px; }
.cart-item .ci-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.cart-item .ci-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cart-item .ci-remove { color: #f9a8a8; background: none; border: none; cursor: pointer; padding: 2px; border-radius: 4px; transition: color .1s, background .1s; display: flex; }
.cart-item .ci-remove:hover { color: var(--danger); background: var(--danger-soft); }
.cart-item .ci-row { display: flex; gap: 8px; align-items: flex-end; }
.cart-item .ci-price input, .cart-item .ci-qty input { padding: 5px 7px; font-size: 12px; text-align: right; }
.cart-item .ci-price { flex: 1; }
.cart-item .ci-qty { width: 104px; flex-shrink: 0; display: flex; gap: 3px; align-items: center; }
.cart-item .ci-qty button {
  width: 24px; height: 30px; border: 1px solid #d4d9e0; background: #fff; border-radius: 5px; cursor: pointer;
  font-size: 13px; color: var(--text-muted); flex-shrink: 0; transition: background .1s;
}
.cart-item .ci-qty button:hover { background: #f1f3f6; }
.cart-item .ci-line-total { text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.manual-tag { font-size: 9px; background: var(--warning-soft); color: var(--warning); padding: 1.5px 6px; border-radius: 4px; margin-left: 5px; font-weight: 650; vertical-align: middle; }

.paytype-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.paytype-btn { padding: 9px; border-radius: var(--radius-sm); border: none; font-size: 12px; font-weight: 600; cursor: pointer; background: #f1f3f6; color: #475569; transition: background .12s, color .12s; }
.paytype-btn.active-tunai { background: var(--primary-dark); color: #fff; }
.paytype-btn.active-transfer { background: var(--info); color: #fff; }
.paytype-btn.active-campur { background: #4338ca; color: #fff; }
.paytype-btn.active-piutang { background: var(--warning); color: #fff; }

.mode-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-choice { display: block; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); cursor: pointer; transition: border-color .12s, background .12s; }
.mode-choice:hover { border-color: var(--primary); }
.mode-choice.active { border-color: var(--primary); background: var(--primary-soft); }

/* ---------- Toggle harga modal (klik "lihat" untuk buka/tutup) ---------- */
.cost-toggle {
  display: inline-block; min-width: 62px; padding: 3px 9px; border-radius: 5px;
  font-size: 12px; cursor: pointer; user-select: none; text-align: right;
  background: #f1f3f6; color: var(--text-faint); font-style: italic;
  transition: background .12s, color .12s;
}
.cost-toggle:hover { background: #e2e8f0; color: var(--text); }
.cost-toggle.open {
  background: var(--primary-soft); color: var(--primary-darker);
  font-style: normal; font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* ---------- Grafik SVG + tooltip klik ---------- */
.svg-chart { position: relative; }
.svg-chart .chart-hit:hover { fill: rgba(13,148,136,.06); }
.svg-chart [data-mark] { transition: all .1s; }
.svg-chart [data-mark].mark-active { fill: #0f766e; r: 5.5; }
.svg-chart-tip {
  position: absolute; left: 0; top: 0; display: none; pointer-events: none;
  background: #0f172a; color: #fff; padding: 6px 10px; border-radius: 6px;
  font-size: 12px; line-height: 1.45; white-space: nowrap; z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.svg-chart.tip-on .svg-chart-tip { display: block; }
.svg-chart-tip .t-label { display: block; color: #94a3b8; font-size: 11px; }
.svg-chart-tip .t-value { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }

.dtype-btn { padding: 3px 11px; border-radius: 5px; border: none; font-size: 11px; font-weight: 600; cursor: pointer; background: #f1f3f6; color: #475569; transition: background .12s, color .12s; }
.dtype-btn.active { background: var(--primary-dark); color: #fff; }

/* ===== Kasir: layout 3 kolom bergaya tabel ===== */
.pos-3col { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1.15fr) minmax(0,.9fr); gap: 14px; align-items: start; }
@media (max-width: 820px) { .pos-3col { grid-template-columns: 1fr; } }
.pos-col-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.pos-mini-actions { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted);
  transition: all .12s var(--ease); flex-shrink: 0;
}
.icon-btn:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }

.pos-table-scroll { max-height: 60vh; overflow-y: auto; margin: 0 -18px -18px; padding: 0 18px 18px; }
.pos-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pos-table thead th {
  position: sticky; top: 0; background: #fff; text-align: left; padding: 8px 6px; font-size: 10.5px;
  color: var(--text-muted); font-weight: 650; letter-spacing: .03em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); z-index: 1;
}
.pos-table tbody td { padding: 8px 6px; border-bottom: 1px solid #f1f3f6; vertical-align: middle; }
.pos-table tbody tr:hover { background: var(--primary-soft); }
.pos-table tbody tr.row-clickable { transition: background .1s; }
.pos-table tbody tr.row-clickable:hover { background: var(--primary-soft); }
.pos-table tbody tr.row-clickable:hover .row-add-btn { background: var(--primary-dark); color: #fff; }
.pos-table tbody tr.row-clickable:hover .p-name { color: var(--primary-darker); }
.p-name-cell .p-name { font-weight: 550; font-size: 12.5px; color: var(--text); }
.p-name-cell .p-meta { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; }
.p-name-cell .p-meta.low { color: var(--danger); }

.row-add-btn {
  width: 27px; height: 27px; border-radius: 6px; border: none; background: var(--primary-soft); color: var(--primary-dark);
  cursor: pointer; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.row-add-btn:hover { background: var(--primary-dark); color: #fff; }
.row-remove-btn {
  width: 25px; height: 25px; border-radius: 6px; border: none; background: transparent; color: #f0aaaa;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .12s var(--ease);
}
.row-remove-btn:hover { background: var(--danger-soft); color: var(--danger); }
.cart-price-input { width: 86px; padding: 5px 6px; font-size: 12px; text-align: right; }
.qty-stepper { display: flex; align-items: center; gap: 2px; }
.qty-stepper button {
  width: 22px; height: 26px; border: 1px solid #d4d9e0; background: #fff; border-radius: 4px; cursor: pointer;
  font-size: 12px; color: var(--text-muted); transition: background .1s;
}
.qty-stepper button:hover { background: #f1f3f6; }
.qty-stepper input { width: 38px; padding: 5px 2px; text-align: center; font-size: 12px; }

.pos-info-card { position: sticky; top: 16px; }
@media (max-width: 1100px) { .pos-info-card { position: static; } }
.btn-lg { padding: 13px 16px; font-size: 14px; }
.pos-3col .card { padding: 15px; }
.row-clickable { cursor: pointer; }
