:root {
  --brand: #c0392b;
  --brand-dark: #962d22;
}

body { background: #f4f5f7; }

/* ---------- Layout staf: sidebar + topbar ---------- */
.staff {
  --sb-width: 248px;
  --sb-mini: 76px;
  --sb-bg: #1d2027;
  --sb-hover: #2a2e37;
  --sb-text: #b9bfca;
  --sb-muted: #6f7684;
  --topbar-h: 62px;
}
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sb-width); background: var(--sb-bg); color: var(--sb-text);
  display: flex; flex-direction: column; z-index: 1040; transition: width .2s ease, transform .25s ease;
}
.sb-brand { display: flex; align-items: center; gap: .75rem; height: var(--topbar-h); padding: 0 1.1rem;
  text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); flex-shrink: 0; overflow: hidden; }
.sb-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: #fff; flex-shrink: 0; }
.sb-logo-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.sb-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sb-brand-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-brand-sub { font-size: .75rem; color: var(--sb-muted); }

.sb-nav { flex: 1; overflow-y: auto; padding: .5rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: #3a3f4a transparent; }
.sb-heading { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sb-muted);
  padding: 1rem .65rem .4rem; white-space: nowrap; }
.sb-link { display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem; margin-bottom: 2px; border-radius: 8px;
  color: var(--sb-text); text-decoration: none; font-size: .925rem; white-space: nowrap; transition: background .15s, color .15s; }
.sb-link i { font-size: 1.1rem; width: 1.3rem; text-align: center; flex-shrink: 0; }
.sb-link:hover { background: var(--sb-hover); color: #fff; }
.sb-link.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(192, 57, 43, .35); }

.sb-collapse-btn { align-items: center; gap: .8rem; margin: .5rem .75rem .9rem; padding: .55rem .7rem; border: 0; border-radius: 8px;
  background: transparent; color: var(--sb-muted); font-size: .85rem; white-space: nowrap; }
.sb-collapse-btn i { width: 1.3rem; text-align: center; transition: transform .2s; }
.sb-collapse-btn:hover { background: var(--sb-hover); color: #fff; }

.app-main { margin-left: var(--sb-width); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .2s ease; }
.topbar { position: sticky; top: 0; z-index: 1030; height: var(--topbar-h); background: #fff; border-bottom: 1px solid #e7e9ee;
  display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; }
.topbar-title { font-weight: 600; color: #495057; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border: 1px solid #e3e5ea; border-radius: 8px; font-size: 1.35rem; line-height: 1; }
.app-clock { align-items: center; gap: .35rem; color: #495057; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-clock b { color: #15213d; }
.gw-badge { font-weight: 600; padding: .45em .8em; }
.gw-badge i { font-size: .55rem; vertical-align: middle; margin-right: .2rem; }
.user-btn { display: flex; align-items: center; gap: .55rem; border: 0; background: transparent; padding: .25rem .4rem; border-radius: 8px; }
.user-btn:hover { background: #f1f3f5; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.user-meta { flex-direction: column; align-items: flex-start; line-height: 1.15; }
.user-name { font-weight: 600; font-size: .875rem; color: #212529; }
.user-role { font-size: .72rem; color: #868e96; }
.content { padding: 1.25rem; flex: 1; }

/* Diciutkan (desktop): ikon saja */
@media (min-width: 992px) {
  .sb-collapsed .sidebar { width: var(--sb-mini); }
  .sb-collapsed .app-main { margin-left: var(--sb-mini); }
  .sb-collapsed .sb-brand { padding: 0 19px; }
  .sb-collapsed .sb-brand-text, .sb-collapsed .sb-link span, .sb-collapsed .sb-collapse-btn span { display: none; }
  .sb-collapsed .sb-heading { font-size: 0; padding: .6rem 0 .3rem; margin: 0 .7rem; border-top: 1px solid rgba(255, 255, 255, .07); }
  .sb-collapsed .sb-heading:first-child { border-top: 0; }
  .sb-collapsed .sb-link, .sb-collapsed .sb-collapse-btn { justify-content: center; padding: .6rem 0; }
  .sb-collapsed .sb-collapse-btn i { transform: rotate(180deg); }
}

/* HP & tablet: sidebar menjadi menu geser */
.sb-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sb-open .sidebar { transform: none; box-shadow: 8px 0 30px rgba(0, 0, 0, .3); }
  .sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1035; }
  .app-main { margin-left: 0; }
  .topbar { padding: 0 .75rem; }
  .content { padding: 1rem .75rem; }
}
.bg-brand { background: var(--brand) !important; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.text-brand { color: var(--brand) !important; }

.card { border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-label { color: #6c757d; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.table td, .table th { vertical-align: middle; }
.menu-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: #eee; }
.queue-no { font-weight: 800; letter-spacing: .03em; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c0392b, #f5a623); }
.login-card { width: 100%; max-width: 380px; }
.login-page { flex-direction: column; gap: 1.25rem; padding: 1rem; }
.login-credit { display: flex; align-items: center; gap: .65rem; color: rgba(255, 255, 255, .92); text-decoration: none; font-size: .82rem;
  line-height: 1.35; padding: .45rem .9rem .45rem .45rem; border-radius: 99px; background: rgba(0, 0, 0, .18); transition: background .15s; }
.login-credit img { width: 36px; height: 36px; border-radius: 50%; }

/* Kredit pengembang di sidebar */
.sb-credit { display: flex; align-items: center; gap: .7rem; margin: .25rem .75rem 0; padding: .6rem .65rem; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); text-decoration: none; color: var(--sb-text);
  transition: background .15s, border-color .15s; flex-shrink: 0; }
.sb-credit img { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.sb-credit-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; white-space: nowrap; }
.sb-credit-text small { font-size: .68rem; color: var(--sb-muted); }
.sb-credit-text b { font-size: .85rem; color: #fff; }
@media (min-width: 992px) {
  .sb-collapsed .sb-credit { justify-content: center; padding: .5rem 0; margin: .25rem .6rem 0; }
  .sb-collapsed .sb-credit-text { display: none; }
}

/* ---------- Kasir ---------- */
.pending-card { cursor: pointer; transition: transform .1s; border-left: 6px solid #ffc107; }
.pending-card:hover { transform: translateY(-2px); }
.pending-card.static { border-left-color: #0dcaf0; }
.pending-card.late { border-left-color: #dc3545; }
.pending-card .queue-no { font-size: 2rem; line-height: 1; }
.cash-quick .btn { min-width: 90px; }
.change-box { font-size: 2rem; font-weight: 800; }

/* ---------- Pesan manual (kasir) ---------- */
.pos-menu { cursor: pointer; }
.pos-menu.sold-out { opacity: .45; pointer-events: none; }
.pos-menu img { height: 90px; object-fit: cover; }

/* ---------- Dapur ---------- */
body.kitchen { background: #1e1f24; color: #eee; }
.kitchen .col-head { font-size: 1.3rem; font-weight: 700; padding: .5rem 1rem; border-radius: .5rem; margin-bottom: .75rem; }
.kitchen .k-col { min-height: calc(100vh - 140px); background: #272830; border-radius: .75rem; padding: .75rem; }
.kitchen .k-card { background: #fff; color: #222; border-radius: .6rem; margin-bottom: .75rem; overflow: hidden; border-top: 8px solid #adb5bd; }
.kitchen .k-card.warn { border-top-color: #ffc107; }
.kitchen .k-card.late { border-top-color: #dc3545; }
.kitchen .k-card .k-head { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; background: #f6f6f6; }
.kitchen .k-card .k-queue { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.kitchen .k-card .k-timer { font-size: 1.1rem; font-weight: 700; padding: .15rem .5rem; border-radius: .4rem; background: #e9ecef; }
.kitchen .k-card.warn .k-timer { background: #ffc107; }
.kitchen .k-card.late .k-timer { background: #dc3545; color: #fff; }
.kitchen .k-card ul { list-style: none; padding: .5rem .75rem; margin: 0; font-size: 1.1rem; }
.kitchen .k-card li + li { border-top: 1px dashed #ddd; }
.kitchen .k-card li { padding: .3rem 0; }
.kitchen .k-card .k-qty { font-weight: 800; color: #c0392b; margin-right: .35rem; }
.kitchen .k-card .k-opt { font-size: .9rem; color: #555; }
.kitchen .k-card .k-note { font-size: .9rem; color: #b02a37; font-weight: 600; }
.kitchen .k-card .k-actions .btn { font-size: 1.1rem; padding: .6rem; }
.kitchen .new-flash { animation: flash 1s ease-in-out 3; }
@keyframes flash { 50% { box-shadow: 0 0 0 6px #ffc107; } }

/* ---------- Halaman pengaturan ---------- */
.set-nav { position: sticky; top: calc(var(--topbar-h, 62px) + 1rem); display: flex; flex-direction: column; gap: .4rem; }
.set-nav-item { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .75rem .85rem; border: 1px solid transparent;
  border-radius: 12px; background: transparent; color: #495057; transition: background .15s, border-color .15s, box-shadow .15s; }
.set-nav-item:hover { background: #fff; }
.set-nav-item.active { background: #fff; border-color: #ece7e5; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); color: #212529; }
.set-nav-icon { width: 40px; height: 40px; border-radius: 10px; background: #e9ecef; color: #6c757d; display: flex; align-items: center;
  justify-content: center; font-size: 1.15rem; flex-shrink: 0; transition: background .15s, color .15s; }
.set-nav-item.active .set-nav-icon { background: var(--brand); color: #fff; }
.set-nav-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.set-nav-text b { font-weight: 600; font-size: .95rem; }
.set-nav-text small { color: #868e96; font-size: .78rem; }
.set-nav-arrow { margin-left: auto; color: #ced4da; font-size: .8rem; }
.set-nav-item.active .set-nav-arrow { color: var(--brand); }
@media (max-width: 991.98px) {
  .set-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
  .set-nav-item { width: auto; flex-shrink: 0; padding: .5rem .75rem; }
  .set-nav-text small, .set-nav-arrow { display: none; }
  .set-nav-icon { width: 32px; height: 32px; font-size: 1rem; }
}

.set-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .03); margin-bottom: 1.25rem; overflow: hidden; }
.set-card-head { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.5rem; border-bottom: 1px solid #f1f3f5;
  background: linear-gradient(180deg, #fff, #fcfcfd); }
.set-card-head h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.set-card-head p { margin: .1rem 0 0; color: #868e96; font-size: .85rem; }
.set-card-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(192, 57, 43, .1); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.set-row { display: grid; grid-template-columns: minmax(180px, 32%) 1fr; gap: 1.5rem; padding: 1.15rem 1.5rem; align-items: start; }
.set-row + .set-row, [data-gw] .set-row:first-child { border-top: 1px solid #f1f3f5; }
.set-label label { display: block; font-weight: 600; color: #343a40; margin-bottom: .15rem; }
.set-label small { display: block; color: #868e96; font-size: .8rem; line-height: 1.4; }
@media (max-width: 767.98px) {
  .set-row { grid-template-columns: 1fr; gap: .6rem; padding: 1rem; }
  .set-card-head { padding: 1rem; }
}
.input-narrow { max-width: 220px; }
.readonly-plain, .readonly-plain:focus { background: #f8f9fa; border-color: #dee2e6; box-shadow: none; color: #6c757d; }
.form-switch-lg .form-check-input { width: 2.6em; height: 1.4em; margin-top: .05em; cursor: pointer; }
.form-switch-lg .form-check-label { padding-left: .4rem; padding-top: .1rem; cursor: pointer; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(192, 57, 43, .5); box-shadow: 0 0 0 .2rem rgba(192, 57, 43, .15); }

/* Kartu pilihan (radio) */
.choice-grid { display: grid; gap: .75rem; }
.choice-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 2px solid #e9ecef; border-radius: 12px;
  cursor: pointer; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; margin: 0; }
.choice:hover { border-color: #dee2e6; background: #fcfcfd; }
.choice b { display: block; font-weight: 600; }
.choice small { display: block; color: #868e96; font-size: .8rem; line-height: 1.4; margin-top: .1rem; }
.choice-icon { width: 36px; height: 36px; border-radius: 10px; background: #f1f3f5; color: #6c757d; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0; transition: background .15s, color .15s; }
.btn-check:checked + .choice { border-color: var(--brand); background: rgba(192, 57, 43, .04); box-shadow: 0 0 0 3px rgba(192, 57, 43, .08); }
.btn-check:checked + .choice .choice-icon { background: var(--brand); color: #fff; }
.btn-check:focus-visible + .choice { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Unggah gambar */
.upload-box { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.upload-preview { width: 112px; height: 112px; border-radius: 14px; border: 2px dashed #dee2e6; background: #f8f9fa repeating-conic-gradient(#f1f3f5 0 25%, #fff 0 50%) 0 0 / 16px 16px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: #adb5bd; font-size: 2rem; flex-shrink: 0; }
.upload-preview img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.upload-preview.qr { width: 150px; height: 150px; background: #fff; }
.upload-actions { min-width: 0; flex: 1; }

/* Pratinjau nomor antrian */
.queue-preview { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.qp-chip { font-weight: 800; letter-spacing: .05em; font-size: 1.15rem; padding: .25rem .7rem; border-radius: 8px; background: #212529; color: #fff; font-family: Arial, sans-serif; }
.qp-chip.muted { background: #e9ecef; color: #495057; }

/* Mini struk */
.mini-receipt { width: 210px; margin: 0 auto; background: #fff; border: 1px solid #e9ecef; border-radius: 4px; padding: .8rem .75rem 1rem;
  font-family: "Courier New", Consolas, monospace; font-size: .72rem; color: #222; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom / 12px 8px repeat-x;
  transition: width .2s; }
.mini-receipt.w58 { width: 160px; }
.mr-biz { font-weight: 700; font-size: .85rem; }
.mr-sep { border-top: 1px dashed #999; margin: .4rem 0; }
.mr-small { font-size: .62rem; }
.mr-queue { font-family: Arial, sans-serif; font-weight: 900; font-size: 1.9rem; line-height: 1; letter-spacing: 1px; }
.mr-line { display: flex; justify-content: space-between; }
.mr-total { font-weight: 700; }
.mr-paid { background: #111; color: #fff; font-weight: 900; letter-spacing: 2px; margin-top: .35rem; padding: .15rem 0; }
.mr-footer { white-space: pre-line; font-size: .64rem; }

/* Simulasi pajak */
.calc-preview { background: #f8f9fa; border-radius: 10px; padding: .75rem 1rem; max-width: 360px; font-size: .9rem; }

/* Tema */
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.preset { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .5rem .25rem; border: 2px solid #e9ecef; border-radius: 10px; background: #fff; }
.preset:hover { border-color: #ced4da; }
.preset.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(192, 57, 43, .1); }
.preset-sw { width: 100%; height: 26px; border-radius: 6px; }
.preset small { font-size: .72rem; color: #495057; }
.color-row { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-top: 1px solid #f1f3f5; }
.color-row .form-control-color { width: 46px; height: 40px; padding: .2rem; border-radius: 10px; flex-shrink: 0; }
.color-hex { font-size: .8rem; color: #6c757d; background: #f1f3f5; padding: .15rem .45rem; border-radius: 6px; }

.kiosk-mock { --p: #c0392b; --s: #f5a623; --b: #fff7ef; border-radius: 16px; overflow: hidden; background: var(--b); border: 6px solid #212529;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18); font-size: .72rem; max-width: 340px; margin: 0 auto; }
.km-head { background: var(--p); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: .55rem .65rem; gap: .4rem; }
.km-head b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-head > span:first-child { border: 1px solid rgba(255, 255, 255, .4); border-radius: 5px; padding: .05rem .35rem; }
.km-badge { background: var(--s); color: #222; border-radius: 5px; padding: .1rem .4rem; font-weight: 700; white-space: nowrap; }
.km-tabs { display: flex; gap: .35rem; padding: .45rem .6rem; background: #fff; }
.km-tabs span { border: 1px solid #ddd; border-radius: 99px; padding: .1rem .6rem; font-weight: 600; color: #555; }
.km-tabs .on { background: var(--p); border-color: var(--p); color: #fff; }
.km-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; padding: .55rem; }
.km-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); display: flex; flex-direction: column; padding-bottom: .35rem; }
.km-img { height: 48px; background: radial-gradient(circle at 50% 60%, #b08968 0 9px, transparent 10px), radial-gradient(circle at 35% 62%, #9c7656 0 7px, transparent 8px),
  radial-gradient(circle at 65% 62%, #9c7656 0 7px, transparent 8px), linear-gradient(#f6d7a7, #f2c48d); margin-bottom: .25rem; }
.km-card b, .km-card span { padding: 0 .4rem; }
.km-card span { color: var(--p); font-weight: 800; }
.km-pay { margin: .2rem .55rem .65rem; background: var(--p); color: #fff; text-align: center; border-radius: 8px; padding: .45rem; font-weight: 800; }

/* Lingkungan Midtrans */
.env-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 99px; }
.env-pill.sandbox { background: #fff4e0; color: #9a6200; }
.env-pill.prod { background: #fde8e6; color: #b02a1c; }

/* Bar simpan menempel di bawah */
.save-bar { position: sticky; bottom: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: .5rem -1.25rem -1.25rem; padding: .8rem 1.25rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  border-top: 1px solid #e9ecef; }
.save-state { color: #868e96; font-size: .9rem; }
.save-bar.dirty .save-state { color: #b8590b; font-weight: 600; }
.save-bar.dirty { box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
@media (max-width: 991.98px) { .save-bar { margin: .5rem -.75rem -1rem; padding: .7rem .75rem; } }

/* ---------- Promo ---------- */
.promo-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .04);
  display: flex; flex-direction: column; height: 100%; transition: opacity .2s, filter .2s; }
.promo-card.off { opacity: .6; filter: grayscale(.6); }
.promo-head { position: relative; height: 110px; background-size: cover; background-position: center; padding: .75rem; color: #fff; }
.promo-head.t-bundle { background-color: #7b4a2a; background-image: linear-gradient(135deg, #c0392b, #e67e22); }
.promo-head.t-menu_discount { background-image: linear-gradient(135deg, #8e44ad, #c0392b); }
.promo-head.t-order_discount { background-image: linear-gradient(135deg, #1f5fbf, #16a085); }
.promo-head[style]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); }
.promo-head > * { position: relative; z-index: 1; }
.promo-type { font-size: .75rem; font-weight: 600; background: rgba(0, 0, 0, .25); padding: .2rem .55rem; border-radius: 99px; }
.promo-badge { position: absolute; left: .75rem; bottom: .6rem; font-size: 1.5rem; font-weight: 900; text-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.promo-switch { position: absolute; top: .55rem; right: .3rem; }
.promo-switch .form-check-input { width: 2.8em; height: 1.5em; cursor: pointer; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.promo-body { padding: 1rem 1.1rem .6rem; flex: 1; }
.promo-body h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .2rem; }
.promo-desc { color: #6c757d; font-size: .85rem; margin-bottom: .5rem; }
.promo-rule { font-size: .88rem; font-weight: 600; color: #343a40; }
.promo-rule i { color: #f0a020; }
.promo-slots { list-style: none; padding: 0; margin: .45rem 0 0; font-size: .85rem; }
.promo-slots li { padding: .15rem 0; }
.promo-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .7rem; font-size: .78rem; color: #6c757d; }
.promo-foot { display: flex; align-items: center; padding: .6rem 1.1rem; border-top: 1px solid #f1f3f5; background: #fcfcfd; }

.menu-pick-cat { font-weight: 700; font-size: .85rem; color: #6c757d; text-transform: uppercase; letter-spacing: .04em; margin: .9rem 0 .5rem; }
.menu-pick-cat:first-child { margin-top: 0; }
.menu-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .55rem; }
.menu-pick { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 2px solid #e9ecef; border-radius: 12px; cursor: pointer; margin: 0; background: #fff; }
.menu-pick img { width: 46px; height: 36px; object-fit: cover; border-radius: 6px; background: #f1f3f5; flex-shrink: 0; }
.menu-pick span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.menu-pick b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-pick small { color: #868e96; font-size: .78rem; }
.mp-after { color: var(--brand); font-weight: 700; }
.menu-pick > i { margin-left: auto; color: #dee2e6; font-size: 1.1rem; }
.btn-check:checked + .menu-pick { border-color: var(--brand); background: rgba(192, 57, 43, .04); }
.btn-check:checked + .menu-pick > i { color: var(--brand); }

.slot-card { border: 2px solid #e9ecef; border-radius: 14px; padding: .8rem; margin-bottom: .8rem; background: #fcfcfd; }
.slot-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.slot-no { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.slot-menus { display: flex; flex-wrap: wrap; gap: .35rem; }
.slot-cat { width: 100%; font-size: .72rem; font-weight: 700; color: #868e96; text-transform: uppercase; margin-top: .3rem; }
.slot-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border: 1px solid #dee2e6; border-radius: 99px; background: #fff; cursor: pointer;
  font-size: .85rem; margin: 0; user-select: none; }
.slot-chip input { display: none; }
.slot-chip small { color: #adb5bd; }
.slot-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot-chip.on small { color: rgba(255, 255, 255, .75); }
.bundle-calc { font-size: .88rem; }

.day-pick { display: flex; flex-wrap: wrap; gap: .35rem; }
.day-pick .btn { min-width: 52px; }
.day-pick .btn-check:checked + .btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.promo-upload { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; width: 100%; border: 2px dashed #ced4da; border-radius: 12px;
  overflow: hidden; cursor: pointer; background: #f8f9fa; text-align: center; margin: 0; }
.promo-upload img { width: 100%; height: 100%; object-fit: cover; }
.promo-upload span { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: #adb5bd; padding: 1rem; }
.promo-upload span i { font-size: 1.8rem; }
.promo-upload span small { font-size: .75rem; line-height: 1.35; }

/* ---------- Lisensi ---------- */
.lic-banner { display: flex; align-items: center; gap: .9rem; padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem; color: #fff; }
.lic-banner > i { font-size: 1.5rem; }
.lic-banner b { display: block; }
.lic-banner span { font-size: .88rem; opacity: .95; }
.lic-banner.t-info { background: linear-gradient(90deg, #15213d, #2b3f6b); }
.lic-banner.t-warning { background: linear-gradient(90deg, #b8590b, #e08a1e); }
.lic-banner.t-danger { background: linear-gradient(90deg, #96241a, #c0392b); }
.lic-status { display: flex; gap: 1.2rem; align-items: center; padding: 1.5rem; border-radius: 16px; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.lic-status.t-success { background: linear-gradient(135deg, #1e8e4e, #16a085); }
.lic-status.t-info { background: linear-gradient(135deg, #15213d, #2b3f6b); }
.lic-status.t-warning { background: linear-gradient(135deg, #b8590b, #e08a1e); }
.lic-status.t-danger { background: linear-gradient(135deg, #96241a, #c0392b); }
.lic-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.lic-title { font-size: 1.35rem; font-weight: 800; }
.lic-msg { opacity: .92; }
.lic-count { margin-top: .4rem; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.machine-code { font-family: Consolas, "Courier New", monospace; font-size: 1.7rem; font-weight: 700; letter-spacing: .08em; text-align: center;
  padding: 1rem; border: 2px dashed #ced4da; border-radius: 12px; background: #f8f9fa; user-select: all; }

.sound-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .75); z-index: 3000; display: flex;
  align-items: center; justify-content: center; }

@media print { .no-print { display: none !important; } }
