/* LOLON BUAH — Design System. Modern Enterprise + Minimalist + Colorful Dashboard. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --emerald: #059669; --emerald-600: #047857; --emerald-50: #ecfdf5; --emerald-100: #d1fae5;
  --lime: #65a30d; --lime-soft: #ecfccb; --orange: #ea580c; --orange-soft: #ffedd5; --yellow: #ca8a04; --yellow-soft: #fef9c3;
  --navy: #0f172a; --red: #dc2626; --red-soft: #fee2e2; --blue: #2563eb; --blue-soft: #dbeafe; --violet: #7c3aed; --violet-soft: #ede9fe;
  --bg: #f6f8f7; --surface: #ffffff; --surface-2: #f1f5f4; --border: #e3e8e6; --text: #0f172a; --text-2: #475569; --text-3: #64748b;
  --primary: var(--emerald); --primary-ink: #ffffff; --focus: 0 0 0 3px rgba(5,150,105,.35);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06); --shadow: 0 4px 16px rgba(15,23,42,.07); --shadow-lg: 0 20px 50px rgba(15,23,42,.18);
  --radius: 14px; --radius-sm: 9px; --sidebar: 252px; --top: 60px;
  --font: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --c1: #059669; --c2: #f97316; --c3: #2563eb; --c4: #ca8a04; --c5: #7c3aed; --c6: #db2777; --c7: #0891b2; --c8: #65a30d;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #111a2b; --surface-2: #17223a; --border: #23314d; --text: #e7edf6; --text-2: #b4c0d3; --text-3: #8b9ab2;
  --emerald-50: #072a22; --emerald-100: #0b3b2f; --lime-soft: #1f2e0b; --orange-soft: #3a1f0d; --yellow-soft: #33290a; --red-soft: #3b1515; --blue-soft: #10224a; --violet-soft: #241a45;
  --primary: #10b981; --emerald: #10b981; --shadow: 0 4px 16px rgba(0,0,0,.35); --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #111a2b; --surface-2: #17223a; --border: #23314d; --text: #e7edf6; --text-2: #b4c0d3; --text-3: #8b9ab2;
    --emerald-50: #072a22; --emerald-100: #0b3b2f; --lime-soft: #1f2e0b; --orange-soft: #3a1f0d; --yellow-soft: #33290a; --red-soft: #3b1515; --blue-soft: #10224a; --violet-soft: #241a45;
    --primary: #10b981; --emerald: #10b981; --shadow: 0 4px 16px rgba(0,0,0,.35); --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-feature-settings: "cv11", "ss01", "tnum" 0; letter-spacing: -0.006em; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
.muted { color: var(--text-3); } .small { font-size: .82rem; } .mono { font-family: var(--mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pos { color: var(--lime); } .neg { color: var(--red); } .warn-t { color: var(--orange); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); padding: 14px 10px 20px; display: flex; flex-direction: column; gap: 4px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 14px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--emerald), #84cc16); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(5,150,105,.35); }
.brand b { display: block; font-size: .98rem; letter-spacing: .02em; } .brand span { font-size: .72rem; color: var(--text-3); }
.nav-group { margin-top: 10px; padding: 0 10px 4px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; font-size: .9rem; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a.active { background: var(--emerald-50); color: var(--primary); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a .badge { margin-left: auto; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .search { flex: 1; max-width: 460px; position: relative; }
.topbar .search input { padding-left: 36px; background: var(--surface-2); border-color: transparent; }
.topbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--text-3); }
.search-results { position: absolute; top: 44px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 60vh; overflow: auto; padding: 6px; }
.search-results a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); } .search-results a:hover, .search-results a.sel { background: var(--surface-2); text-decoration: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); } .icon-btn svg { width: 20px; height: 20px; }
.dot { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--emerald-50); color: var(--primary); }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conn.off { background: var(--red-soft); color: var(--red); } .conn.sync { background: var(--yellow-soft); color: var(--yellow); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #334155); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
:root[data-theme="dark"] .avatar { background: linear-gradient(135deg, #334155, #475569); }
.profile-btn { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 12px; cursor: pointer; border: 0; background: none; color: var(--text); }
.profile-btn:hover { background: var(--surface-2); } .profile-btn small { display: block; color: var(--text-3); font-size: .72rem; text-align: left; }
.content { padding: 22px; max-width: 1480px; width: 100%; margin: 0 auto; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.page-head .title { flex: 1; min-width: 220px; } .page-head .title p { margin: 4px 0 0; color: var(--text-3); }
.crumbs { font-size: .78rem; color: var(--text-3); margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; } .crumbs a { color: var(--text-3); }
.demo-banner { background: repeating-linear-gradient(45deg, #f59e0b, #f59e0b 12px, #fbbf24 12px, #fbbf24 24px); color: #1f1300; text-align: center; font-weight: 800; font-size: .78rem; letter-spacing: .06em; padding: 4px; }
.mobile-nav { display: none; }
.backdrop { position: fixed; inset: 0; background: rgba(2,6,23,.45); z-index: 25; }

/* ---------- Komponen ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px; } .card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { flex: 1; } .card-body { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .label { color: var(--text-3); font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; } .kpi .ico svg { width: 17px; height: 17px; }
.kpi .value { font-size: 1.55rem; font-weight: 750; margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: .78rem; color: var(--text-3); margin-top: 2px; }
.tone-emerald .ico { background: var(--emerald-50); color: var(--emerald); } .tone-orange .ico { background: var(--orange-soft); color: var(--orange); }
.tone-lime .ico { background: var(--lime-soft); color: var(--lime); } .tone-yellow .ico { background: var(--yellow-soft); color: var(--yellow); }
.tone-red .ico { background: var(--red-soft); color: var(--red); } .tone-blue .ico { background: var(--blue-soft); color: var(--blue); } .tone-violet .ico { background: var(--violet-soft); color: var(--violet); }
.trend { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .76rem; padding: 1px 7px; border-radius: 99px; }
.trend.up { background: var(--lime-soft); color: var(--lime); } .trend.down { background: var(--red-soft); color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,.25); } .btn.primary:hover { background: var(--emerald-600); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; } .btn.warn { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: .8rem; border-radius: 8px; } .btn.lg { min-height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; } .btn.block { width: 100%; }
.btn .spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

label.field { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--text-2); }
label.field .hint { font-weight: 400; color: var(--text-3); font-size: .76rem; }
input, select, textarea { width: 100%; font: inherit; font-size: .92rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; min-height: 40px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--primary); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .form-grid .full { grid-column: 1 / -1; }
.err-msg { color: var(--red); font-size: .82rem; font-weight: 600; }
.money-input { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }

.badge { align-self: center; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .73rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.green { background: var(--emerald-50); color: var(--emerald); } .badge.lime { background: var(--lime-soft); color: var(--lime); }
.badge.orange { background: var(--orange-soft); color: var(--orange); } .badge.yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge.red { background: var(--red-soft); color: var(--red); } .badge.blue { background: var(--blue-soft); color: var(--blue); } .badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.est { background: var(--yellow-soft); color: var(--yellow); text-transform: uppercase; letter-spacing: .05em; font-size: .64rem; }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .87rem; }
.tbl th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none; }
.tbl th.sortable { cursor: pointer; } .tbl th.sortable:hover { color: var(--text); } .tbl th .arr { opacity: .6; margin-left: 3px; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; } .tbl tbody tr:hover { background: var(--surface-2); }
.tbl tr.clickable { cursor: pointer; } .tbl tr.total td { font-weight: 750; background: var(--emerald-50); } .tbl tr.head td { font-weight: 800; font-size: .74rem; letter-spacing: .06em; color: var(--text-3); background: var(--surface-2); }
.tbl tfoot td { font-weight: 750; background: var(--surface-2); }
.tbl-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.tbl-tools input[type="search"] { max-width: 260px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 14px; font-size: .82rem; color: var(--text-3); }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font: inherit; font-weight: 600; font-size: .86rem; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.period { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.period select, .period input { width: auto; min-height: 36px; padding: 6px 10px; font-size: .85rem; }

.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty svg { width: 46px; height: 46px; color: var(--emerald); opacity: .6; margin-bottom: 8px; }
.empty b { display: block; color: var(--text-2); font-size: .98rem; margin-bottom: 4px; }
.error-box { border: 1px solid var(--red); background: var(--red-soft); color: var(--red); padding: 14px 16px; border-radius: 12px; display: flex; gap: 10px; align-items: flex-start; }
.info-box { border: 1px solid var(--border); background: var(--surface-2); padding: 12px 14px; border-radius: 12px; font-size: .86rem; color: var(--text-2); display: flex; gap: 10px; }
.info-box.yellow { background: var(--yellow-soft); border-color: transparent; color: var(--text); } .info-box.green { background: var(--emerald-50); border-color: transparent; color: var(--text); }
.info-box.red { background: var(--red-soft); border-color: transparent; color: var(--text); }
.info-box svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.page-enter { animation: rise .28s ease-out both; }
.stagger > * { animation: rise .35s ease-out both; } .stagger > *:nth-child(2) { animation-delay: .04s; } .stagger > *:nth-child(3) { animation-delay: .08s; } .stagger > *:nth-child(4) { animation-delay: .12s; } .stagger > *:nth-child(5) { animation-delay: .16s; } .stagger > *:nth-child(6) { animation-delay: .2s; }
.lift { transition: transform .15s, box-shadow .15s; } .lift:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.modal-bg { position: fixed; inset: 0; background: rgba(2,6,23,.5); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: rise .15s ease-out; }
.modal { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .18s ease-out; }
.modal.wide { width: min(880px, 100%); } .modal.xwide { width: min(1100px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); } .modal-head h2 { flex: 1; font-size: 1.08rem; }
.modal-body { padding: 18px 20px; overflow-y: auto; } .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }

.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(380px, calc(100vw - 36px)); }
.toast { background: var(--navy); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; animation: slideIn .25s ease-out; }
:root[data-theme="dark"] .toast { background: #1e293b; border: 1px solid var(--border); }
.toast.ok { border-left: 4px solid #10b981; } .toast.err { border-left: 4px solid #ef4444; } .toast.warn { border-left: 4px solid #f59e0b; }
.toast b { display: block; }

.dropdown { position: absolute; top: calc(100% + 6px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 240px; z-index: 60; animation: pop .14s ease-out; overflow: hidden; }
.dropdown a, .dropdown button.item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 14px; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; font-size: .88rem; }
.dropdown a:hover, .dropdown button.item:hover { background: var(--surface-2); text-decoration: none; }
.notif-panel { width: min(400px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column; }
.notif-list { overflow-y: auto; }
.notif { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; } .notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--emerald-50) 60%, transparent); }
.notif .pdot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.p-critical { background: #b91c1c; } .p-high { background: var(--red); } .p-normal { background: var(--orange); } .p-low { background: var(--text-3); }

/* ---------- Grafik ---------- */
.chart { width: 100%; position: relative; } .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis text { fill: var(--text-3); font-size: 10.5px; } .chart .grid line { stroke: var(--border); stroke-dasharray: 3 4; }
.chart .bar { transition: opacity .15s; } .chart .bar:hover { opacity: .8; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; padding: 6px 9px; border-radius: 8px; font-size: .76rem; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow); z-index: 5; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--text-2); margin-top: 8px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.draw-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 1.1s ease-out forwards; } @keyframes draw { to { stroke-dashoffset: 0; } }
.grow-bar { transform-origin: bottom; transform-box: fill-box; animation: grow .6s ease-out both; } @keyframes grow { from { transform: scaleY(0); } }
.grow-x { transform-origin: left; transform-box: fill-box; animation: growx .6s ease-out both; } @keyframes growx { from { transform: scaleX(0); } }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; } .progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), #84cc16); border-radius: 99px; transition: width 1s ease-out; }

/* ---------- POS ---------- */
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; height: calc(100vh - var(--top) - 44px); }
.pos-catalog { display: flex; flex-direction: column; min-height: 0; }
.pos-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; }
.chip { border: 1px solid var(--border); background: var(--surface); padding: 7px 14px; border-radius: 99px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap; color: var(--text-2); }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; overflow-y: auto; padding: 2px; align-content: start; }
.prod { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; cursor: pointer; text-align: left; font: inherit; color: var(--text); display: flex; flex-direction: column; gap: 6px; transition: transform .1s, box-shadow .15s, border-color .15s; min-height: 150px; }
.prod:hover { border-color: var(--primary); box-shadow: var(--shadow); } .prod:active { transform: scale(.97); }
.prod .pic { width: 100%; height: 64px; border-radius: 10px; display: grid; place-items: center; font-size: 2rem; background: linear-gradient(135deg, var(--emerald-50), var(--lime-soft)); overflow: hidden; }
.prod .pic img { width: 100%; height: 100%; object-fit: cover; }
.prod .nm { font-weight: 650; font-size: .88rem; line-height: 1.25; } .prod .pr { font-weight: 750; color: var(--primary); }
.prod .st { font-size: .72rem; color: var(--text-3); } .prod.out { opacity: .45; pointer-events: none; }
.cart { display: flex; flex-direction: column; min-height: 0; }
.cart-items { flex: 1; overflow-y: auto; padding: 6px 12px; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 4px; border-bottom: 1px dashed var(--border); animation: rise .2s ease-out; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.1rem; cursor: pointer; } .qty input { width: 52px; min-height: 32px; border: 0; border-radius: 0; text-align: center; padding: 0; }
.cart-sum { padding: 12px 16px; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: .9rem; }
.cart-sum .row { display: flex; justify-content: space-between; } .cart-sum .grand { font-size: 1.35rem; font-weight: 800; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pay-methods button { padding: 14px 10px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pay-methods button.on { border-color: var(--primary); background: var(--emerald-50); color: var(--primary); } .pay-methods svg { width: 22px; height: 22px; }
.quick-cash { display: flex; flex-wrap: wrap; gap: 6px; }
.receipt { font-family: var(--mono); font-size: .82rem; background: #fff; color: #111; padding: 16px; border-radius: 10px; border: 1px dashed #bbb; max-width: 340px; margin: 0 auto; }
.receipt .c { text-align: center; } .receipt .r { display: flex; justify-content: space-between; gap: 8px; } .receipt hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }

/* ---------- Antrean ---------- */
.queue-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.qcard { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--text-3); animation: pop .25s ease-out; transition: border-color .3s; }
.qcard .qn { font-size: 2.2rem; font-weight: 850; letter-spacing: -.03em; }
.qcard.st-queued { border-top-color: var(--blue); } .qcard.st-processing { border-top-color: var(--orange); } .qcard.st-ready { border-top-color: var(--emerald); background: var(--emerald-50); }
.qcard.st-new, .qcard.st-awaiting_confirmation, .qcard.st-awaiting_payment { border-top-color: var(--yellow); } .qcard.st-paid { border-top-color: var(--lime); } .qcard.st-delivering { border-top-color: var(--violet); }
.qcard.late { box-shadow: 0 0 0 2px var(--red); }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { position: relative; padding: 0 0 14px 22px; font-size: .86rem; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 17px; bottom: 0; width: 1px; background: var(--border); } .timeline li:last-child::after { display: none; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: radial-gradient(circle at 20% 20%, #34d399 0, transparent 45%), radial-gradient(circle at 80% 70%, #a3e635 0, transparent 40%), linear-gradient(135deg, #064e3b, #0f172a); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1 { font-size: 2.6rem; font-weight: 850; letter-spacing: -.03em; } .login-art p { opacity: .85; max-width: 440px; font-size: 1.05rem; }
.login-art .feat { display: flex; flex-wrap: wrap; gap: 8px; } .login-art .feat span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; border-radius: 99px; font-size: .82rem; }
.fruit { position: absolute; font-size: 5rem; opacity: .18; animation: float 7s ease-in-out infinite; } @keyframes float { 50% { transform: translateY(-16px) rotate(6deg); } }
.login-form { display: grid; place-items: center; padding: 32px; } .login-form form { width: min(380px, 100%); display: grid; gap: 14px; }

/* ---------- Cetak ---------- */
@media print {
  .sidebar, .topbar, .no-print, .toasts, .demo-banner, .mobile-nav { display: none !important; }
  .shell { display: block; } .content { padding: 0; max-width: none; } body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; } .tbl th { position: static; }
  .modal-bg { position: static; background: none; backdrop-filter: none; } .modal { box-shadow: none; max-height: none; } .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pos-layout { grid-template-columns: minmax(0, 1fr) 330px; } }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .mobile-nav { display: grid; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .66rem; color: var(--text-3); font-weight: 600; padding: 4px; min-height: 48px; justify-content: center; }
  .mobile-nav a.active { color: var(--primary); } .mobile-nav svg { width: 22px; height: 22px; }
  .content { padding: 16px 16px 90px; } .topbar { padding: 0 12px; } .topbar .search { display: none; }
  .g2, .g3 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; }
  .pos-layout { grid-template-columns: 1fr; height: auto; } .prod-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: none; }
  .cart-items { max-height: none; } .pos-mobilebar { display: flex; }
  .login-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .login-art { justify-content: flex-start; } .login-art { padding: 18px 22px; min-height: 0; gap: 10px; } .login-art h1 { font-size: 1.25rem; } .login-art p, .login-art .feat, .fruit { display: none; } .login-form { align-items: start; padding: 22px; }
  .form-grid { grid-template-columns: 1fr; } .profile-btn small, .profile-btn .nm { display: none; }
}
@media (max-width: 560px) { .g4 { grid-template-columns: 1fr 1fr; } .kpi .value { font-size: 1.2rem; } .page-head .btn-row { width: 100%; } .modal { border-radius: 16px 16px 0 0; align-self: end; } .modal-bg { padding: 0; place-items: end center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } .draw-line { stroke-dashoffset: 0; } }

/* Cetak struk saja */
.receipt-print { display: none; }
@media print {
  body.print-receipt #app, body.print-receipt .modal-bg, body.print-receipt .toasts { display: none !important; }
  body.print-receipt .receipt-print { display: block; }
  body.print-receipt .receipt { border: 0; max-width: 80mm; padding: 0; }
}

.pos-mobilebar { display: none; position: fixed; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 35; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.pos-mobilebar b { flex: 1; font-size: 1.05rem; } :root[data-theme="dark"] .pos-mobilebar { background: #1e293b; border: 1px solid var(--border); }
@media (max-width: 920px) { .pos-mobilebar { display: flex; } .pos-mobilebar.empty { display: none; } .pos-layout { padding-bottom: 70px; } }

/* ===================== Kasir: kartu menu sederhana + animasi ===================== */
.prod-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.pcard { position: relative; background: var(--surface); border: 2px solid var(--border); border-radius: 20px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4), border-color .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard:active { transform: scale(.96); }
.pcard.in { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent), var(--shadow); }
.pcard.out { opacity: .45; filter: grayscale(.6); pointer-events: none; }
.ppic { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--lime-soft), var(--emerald-50) 60%, var(--surface-2)); overflow: hidden; }
.ppic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pcard:hover .ppic img, .pcard:hover .emo { transform: scale(1.08); }
.emo { font-size: 3.4rem; transition: transform .35s cubic-bezier(.2,.9,.3,1.4); filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.qbadge { position: absolute; top: 10px; right: 10px; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 99px; background: var(--primary); color: #fff;
  font-weight: 850; font-size: 1rem; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(5,150,105,.45); transform: scale(0); transition: transform .25s cubic-bezier(.2,.9,.3,1.6); }
.pcard.in .qbadge { transform: scale(1); }
.pinfo { padding: 10px 12px 6px; }
.pnm { font-weight: 750; font-size: .95rem; line-height: 1.25; min-height: 2.5em; }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 4px; }
.ppr { font-weight: 850; font-size: 1.05rem; color: var(--primary); }
.sk { font-size: .72rem; color: var(--text-3); font-weight: 600; }
.stepper { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 0 10px; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease; }
.pcard.in .stepper { max-height: 64px; opacity: 1; padding: 6px 10px 12px; }
.st-btn { height: 42px; border-radius: 14px; border: 0; font: inherit; font-size: 1.5rem; font-weight: 800; cursor: pointer; background: var(--surface-2); color: var(--text);
  transition: transform .12s, background .15s; }
.st-btn.plus { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,.35); }
.st-btn:active { transform: scale(.88); }
.stepper .q { min-width: 38px; text-align: center; font-size: 1.25rem; font-weight: 850; font-variant-numeric: tabular-nums; }

/* Animasi */
.bump { animation: bump .42s cubic-bezier(.2,.9,.3,1.5); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(.93); } 65% { transform: scale(1.05); } 100% { transform: scale(1); } }
.q-pop { animation: qpop .35s cubic-bezier(.2,.9,.3,1.8); display: inline-block; }
@keyframes qpop { 0% { transform: scale(1); } 40% { transform: scale(1.6); color: var(--lime); } 100% { transform: scale(1); } }
.shake { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }
.tot-pop { animation: totpop .45s ease; }
@keyframes totpop { 0% { transform: scale(1); } 35% { transform: scale(1.08); color: var(--primary); } 100% { transform: scale(1); } }
.pos-burst { position: fixed; z-index: 300; pointer-events: none; transform: translate(-50%, -50%); font-weight: 900; font-size: 1.7rem; color: #fff;
  background: linear-gradient(135deg, #10b981, #84cc16); padding: 2px 14px; border-radius: 99px; box-shadow: 0 8px 22px rgba(5,150,105,.5);
  animation: burstup .75s cubic-bezier(.2,.8,.3,1) forwards; }
.pos-burst.minus { background: linear-gradient(135deg, #f97316, #ef4444); box-shadow: 0 8px 22px rgba(239,68,68,.45); }
@keyframes burstup { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.4); } 25% { opacity: 1; transform: translate(-50%, -80%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(.9); } }
.pos-spark { position: fixed; z-index: 299; width: 9px; height: 9px; border-radius: 50%; background: #84cc16; pointer-events: none; animation: spark .6s ease-out forwards; }
.pos-spark.minus { background: #f97316; }
.pos-spark:nth-of-type(2n) { background: #10b981; width: 7px; height: 7px; }
@keyframes spark { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2); opacity: 0; } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .emo { font-size: 2.8rem; } .pnm { font-size: .88rem; } }
/* Cegah isi kartu & baris kategori menyusut di kolom katalog yang tingginya tetap */
.pos-cats { flex-shrink: 0; }
.prod-grid { flex: 1; min-height: 0; grid-auto-rows: max-content; }
.pcard > * { flex-shrink: 0; }
/* Kartu habis tetap bisa diketuk untuk menampilkan alasan (bahan apa yang kurang) */
.pcard.out { pointer-events: auto; cursor: help; }
.pcard.out .sk { color: var(--red); font-weight: 700; }

/* ===================== QRIS ===================== */
.qris-box { text-align: center; background: #fff; color: #111; border-radius: 18px; padding: 14px; border: 2px solid #e11d48; animation: pop .25s ease-out; }
.qris-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.qris-head b { font-size: 1.1rem; letter-spacing: .12em; color: #e11d48; }
.qris-head span { font-size: .78rem; color: #555; }
.qris-code svg { width: min(260px, 70vw); height: auto; display: block; margin: 0 auto; }
.qris-sticker { width: min(260px, 70vw); border-radius: 10px; display: block; margin: 0 auto; }
.qris-amt { font-size: 1.8rem; font-weight: 900; margin-top: 8px; color: #111; }
.qris-hint { font-size: .78rem; color: #555; }
.qris-box .info-box { text-align: left; margin-top: 10px; }
.qris-full { position: fixed; inset: 0; z-index: 400; background: rgba(2,6,23,.92); display: grid; place-items: center; padding: 16px; animation: rise .2s ease-out; }
.qris-full-card { background: #fff; color: #111; border-radius: 24px; padding: 22px; text-align: center; width: min(420px, 100%); }
.qris-full-card svg, .qris-full-card img { width: min(340px, 82vw); height: auto; }
.qris-full-card .qris-amt { font-size: 2.4rem; }

/* ---------- Statistik toko ---------- */
.st-wrap { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.st-body { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.st-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; position: sticky; top: 62px; z-index: 5; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--surface) 88%, transparent); }
.st-nav { display: flex; align-items: center; gap: 6px; }
.st-nav .icon-btn { border: 1px solid var(--border); font-size: 1.3rem; line-height: 1; width: 36px; height: 36px; }
.st-range { min-width: 150px; text-align: center; font-size: .95rem; }
.st-muted { color: var(--text-3); font-size: .78rem; font-weight: 500; margin: 0; }
.st-live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--emerald); background: var(--emerald-50); padding: 6px 12px; border-radius: 99px; }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 60%, transparent); animation: st-pulse 1.8s infinite; }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.st-kpi .trend { display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px; border-radius: 99px; font-weight: 700; font-size: .74rem; }
.st-kpi .trend .st-muted { font-weight: 500; }
.st-kpi { animation: st-rise .45s ease-out both; }
.st-kpis > :nth-child(2) { animation-delay: 60ms; } .st-kpis > :nth-child(3) { animation-delay: 120ms; } .st-kpis > :nth-child(4) { animation-delay: 180ms; }
@keyframes st-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.st-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 5px 11px; border-radius: 99px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.st-chip b { font-size: .85rem; color: var(--text); }
.st-chip.on { background: var(--text); color: var(--surface); border-color: var(--text); } .st-chip.on b { color: var(--surface); }
.st-chip.red:not(.on) b { color: var(--red); } .st-chip.orange:not(.on) b { color: var(--orange); } .st-chip.green:not(.on) b { color: var(--emerald); }
.st-health { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); margin: 0 0 14px; gap: 2px; }
.st-stock .card-head { flex-wrap: wrap; }
.st-health i { display: block; transition: flex .6s ease; } .st-health .ok { background: var(--emerald); } .st-health .low { background: var(--orange); } .st-health .out { background: var(--red); }
.st-alert { margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.st-item { border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; display: grid; gap: 9px; background: var(--surface); transition: transform .15s, box-shadow .15s; border-left: 4px solid var(--emerald); }
.st-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.st-item.st-low { border-left-color: var(--orange); } .st-item.st-out { border-left-color: var(--red); background: color-mix(in srgb, var(--red-soft) 45%, var(--surface)); }
.st-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.st-item-name { display: grid; gap: 2px; min-width: 0; } .st-item-name b { font-size: .88rem; line-height: 1.25; } .st-item-name span { font-size: .72rem; color: var(--text-3); }
.st-level { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.st-level i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--emerald), #84cc16); animation: st-grow .8s ease-out both; }
.st-low .st-level i { background: linear-gradient(90deg, var(--orange), #fbbf24); } .st-out .st-level i { background: var(--red); }
@keyframes st-grow { from { width: 0 !important; } }
.st-item-foot { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; color: var(--text-3); flex-wrap: wrap; } .st-item-foot b { color: var(--text); font-size: .8rem; }
.st-out .st-item-foot > span:last-child { color: var(--red); font-weight: 700; }
.st-items { display: inline-block; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; color: var(--text-2); }
@media (max-width: 720px) {
  .st-bar { position: static; flex-direction: column; align-items: stretch; }
  .st-tabs { width: 100%; } .st-tabs button { flex: 1; padding: 7px 4px; font-size: .8rem; }
  .st-nav { justify-content: space-between; } .st-range { flex: 1; min-width: 0; font-size: .85rem; }
  .st-grid { grid-template-columns: 1fr; }
  .st-items { max-width: 160px; }
}

/* Member di dialog pembayaran POS */
.member-box { margin: 0 0 14px; }
.member-row { display: flex; gap: 8px; } .member-row input { flex: 1; min-width: 0; }
.member-card { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--emerald-50), var(--surface)); border: 1px solid var(--emerald-100); }

/* Daftar belanja */
.restock-list { display: grid; gap: 8px; }
.restock-row { display: grid; grid-template-columns: 24px 1fr 120px 150px; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid var(--emerald); border-radius: 12px; }
.restock-row.rs-out { border-left-color: var(--red); background: color-mix(in srgb, var(--red-soft) 40%, var(--surface)); }
.restock-row.rs-low { border-left-color: var(--orange); }
.restock-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--emerald); }
.rs-main { min-width: 0; display: grid; gap: 3px; }
.rs-in { display: grid; gap: 3px; } .rs-in input { width: 100%; }
.restock-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
@media (max-width: 720px) { .restock-row { grid-template-columns: 22px 1fr; } .rs-in { grid-column: 2; } .restock-foot { bottom: 64px; } }

/* Kartu peringatan notifikasi (pojok kanan atas / atas layar HP) */
.alert-stack { position: fixed; top: 70px; right: 16px; z-index: 300; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.alert-card { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--blue); box-shadow: var(--shadow-lg); animation: ac-in .35s cubic-bezier(.2, 1.3, .4, 1); }
.alert-card.out { opacity: 0; transform: translateX(30px); transition: all .25s; }
.alert-card.p-high { border-left-color: var(--orange); }
.alert-card.p-critical { border-left-color: var(--red); background: color-mix(in srgb, var(--red-soft) 55%, var(--surface)); animation: ac-in .35s cubic-bezier(.2, 1.3, .4, 1), ac-shake .5s .35s; }
.ac-body { flex: 1; min-width: 0; display: grid; gap: 3px; } .ac-body b { font-size: .9rem; line-height: 1.3; }
.ac-actions { display: flex; gap: 4px; flex: none; }
@keyframes ac-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes ac-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (max-width: 720px) { .alert-stack { top: 62px; left: 12px; right: 12px; width: auto; } }
.announce-box { display: grid; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.announce-box textarea { min-height: 70px; }
