/* ==========================================================================
   ALICE BAKERY POS - KASIR STYLING (UKURAN & POSISI PERSIS kasir.html / kasir.css)
   ========================================================================== */

body.is-kasir-pos-active,
.pos-app-wrapper,
#overlayRoot {
  --bg-outer: #E2E8F0;
  --phone-bg: #F8FAFC;
  --phone-border: #CBD5E1;
  --card-bg: #FFFFFF;
  --card-border: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --accent-primary: #2B8CBE;
  --accent-jual: #2A8C7E;
  --accent-jual-light: #4EB3A2;
  --accent-jual-dark: #1C695E;
  --accent-kas: #EA580C;
  --placeholder-bg: #F1F5F9;
  --placeholder-border: #CBD5E1;
  --nav-bg: #FFFFFF;
}

html.dark body.is-kasir-pos-active,
html.dark .pos-app-wrapper,
html.dark #overlayRoot {
  --bg-outer: #0B0F17;
  --phone-bg: #111827;
  --phone-border: #1F2937;
  --card-bg: #1E293B;
  --card-border: #334155;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --accent-primary: #2B8CBE;
  --accent-jual: #2A8C7E;
  --accent-jual-light: #4EB3A2;
  --accent-jual-dark: #1C695E;
  --accent-kas: #EA580C;
  --placeholder-bg: #162032;
  --placeholder-border: #334155;
  --nav-bg: #0F172A;
}

/* SAAT MODE JUAL CEPAT AKTIF: FULL-VIEWPORT FRAME 440PX PERSIS kasir.html */
body.is-kasir-pos-active {
  background: var(--bg-outer) !important;
  overflow: hidden !important;
}
body.is-kasir-pos-active > header,
body.is-kasir-pos-active > nav {
  display: none !important;
}
body.is-kasir-pos-active #mainContainer {
  max-width: 100% !important;
  width: 100% !important;
  height: 100vh;
  height: 100dvh;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.pos-app-wrapper {
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  background: var(--phone-bg);
  border: 1px solid var(--phone-border);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .pos-app-wrapper {
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* HEADER KASIR */
.pos-header {
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 10;
}
.pos-header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pos-btn-back {
  width: 34px; height: 34px; border-radius: 12px;
  background: var(--placeholder-bg); border: 1px solid var(--card-border);
  color: var(--accent-jual); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; transition: transform 0.15s; flex-shrink: 0;
}
.pos-btn-back:active { transform: scale(0.92); }
.pos-brand-logo-wrap {
  width: 34px; height: 34px; border-radius: 12px;
  background: var(--placeholder-bg); border: 1px solid var(--card-border);
  padding: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pos-brand-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.pos-brand { min-width: 0; }
.pos-brand h1 { font-size: 13.5px; font-weight: 900; color: var(--text-main); line-height: 1.15; margin: 0; letter-spacing: -0.2px; }
.pos-brand span { font-size: 10px; font-weight: 700; color: var(--accent-jual); display: flex; align-items: center; gap: 4px; }
.pos-header-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pos-btn-theme, .pos-btn-header-tool {
  height: 32px; padding: 0 10px; border-radius: 11px;
  background: var(--placeholder-bg); border: 1px solid var(--card-border);
  color: var(--text-main); display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; cursor: pointer; transition: transform 0.15s;
}
.pos-btn-theme:active, .pos-btn-header-tool:active { transform: scale(0.92); }
.pos-btn-header-tool.is-jual {
  background: var(--accent-jual); color: #ffffff; border-color: var(--accent-jual);
  box-shadow: 0 2px 8px rgba(42, 140, 126, 0.3);
}

@media (max-width: 380px) {
  .pos-header {
    padding: max(8px, env(safe-area-inset-top)) 8px 8px;
    gap: 6px;
  }
  .pos-btn-back { width: 30px; height: 30px; }
  .pos-brand-logo-wrap { width: 30px; height: 30px; }
  .pos-brand h1 { font-size: 12px; }
  .pos-brand span { font-size: 9px; }
  .pos-btn-theme { padding: 0 8px; }
  .pos-btn-header-tool.is-jual .pos-tool-btn-text { display: none; }
  .pos-btn-header-tool { padding: 0 9px; }
}

/* TOOLBAR PENCARIAN & TAB */
.pos-toolbar {
  padding: 8px 12px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}
.pos-search-box { position: relative; width: 100%; }
.pos-search-box i {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 12px;
}
.pos-search-input {
  width: 100%; height: 36px; padding: 0 30px 0 32px;
  border-radius: 12px; background: var(--placeholder-bg);
  border: 1px solid var(--card-border); color: var(--text-main);
  font-size: 12px; font-weight: 700; outline: none; transition: border-color 0.2s;
}
.pos-search-input:focus { border-color: var(--accent-jual); }
.pos-category-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.pos-category-tabs::-webkit-scrollbar { display: none; }
.pos-category-tab {
  padding: 6px 12px; border-radius: 10px; border: 1px solid var(--card-border);
  background: var(--placeholder-bg); color: var(--text-muted);
  font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: all 0.2s;
}
.pos-category-tab.is-active {
  background: var(--accent-jual); color: #ffffff; border-color: var(--accent-jual);
  box-shadow: 0 2px 6px rgba(42, 140, 126, 0.25);
}

/* KATALOG PRODUK GRID (RESPONSIF HP: 3 KOLOM DI 360-390PX, 2 KOLOM DI LEBAR <= 340PX) */
.pos-catalog-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  background: var(--placeholder-bg);
}
.pos-grid-toel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 340px) {
  .pos-catalog-container {
    padding: 8px 8px;
  }
  .pos-grid-toel {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* KARTU PRODUK */
.pos-card-product {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; cursor: pointer; transition: all 0.15s ease; user-select: none;
}
.pos-card-product:active { transform: scale(0.97); }
.pos-card-product.in-cart {
  border-color: var(--accent-jual);
  background: rgba(42, 140, 126, 0.05);
  box-shadow: 0 4px 12px rgba(42, 140, 126, 0.15);
}
.pos-card-emoji { font-size: 26px; margin-bottom: 2px; line-height: 1; }
.pos-card-name {
  font-size: 10.5px; font-weight: 850; color: var(--text-main);
  line-height: 1.25; margin-bottom: 2px; width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 26px;
  word-break: break-word;
}
.pos-card-price { font-size: 11.5px; font-weight: 900; color: var(--accent-jual); line-height: 1; }
.pos-card-stock { font-size: 8.5px; font-weight: 700; color: var(--text-muted); margin-top: 2px; }
.pos-card-badge-qty {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent-jual); color: #ffffff;
  font-size: 9.5px; font-weight: 900; min-width: 24px; height: 24px; padding: 2px 5px;
  border-radius: 9999px; box-shadow: 0 2px 6px rgba(42, 140, 126, 0.4);
  border: 2px solid var(--card-bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.pos-card-minus-btn {
  position: absolute; top: -6px; left: -6px; width: 28px; height: 28px;
  border-radius: 50%; background: #ef4444; color: #ffffff;
  border: 2px solid var(--card-bg); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; cursor: pointer;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
  z-index: 5;
}
.pos-card-minus-btn::after {
  content: ''; position: absolute; inset: -6px;
}
.pos-card-gramasi-btn {
  margin-top: 4px; padding: 3px 8px; border-radius: 8px;
  border: 1px solid rgba(42, 140, 126, 0.35);
  background: rgba(42, 140, 126, 0.1); color: var(--accent-jual);
  font-size: 9.5px; font-weight: 850; cursor: pointer;
  display: inline-flex; align-items: center; gap: 3px;
  min-height: 24px;
}

/* HERO CARD ROTI BAKAR BANDUNG (SPAN 2 KOLOM) */
.pos-card-product.is-hero-roti {
  grid-column: span 2; padding: 10px; align-items: stretch; text-align: left;
  border-color: rgba(42, 140, 126, 0.4);
  background: linear-gradient(to bottom, var(--card-bg), rgba(42, 140, 126, 0.04));
}
@media (max-width: 340px) {
  .pos-card-product.is-hero-roti {
    grid-column: span 2;
  }
}
.hero-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hero-title-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero-title-emoji {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--placeholder-bg); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-title-emoji img { width: 100%; height: 100%; object-fit: contain; }
.hero-title-text { font-size: 12.5px; font-weight: 900; color: var(--text-main); line-height: 1.2; }
.hero-stock-pill {
  font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
  background: var(--placeholder-bg); border: 1px solid var(--card-border);
  color: var(--accent-jual); white-space: nowrap;
}
.hero-controls-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--card-border);
}
.hero-wide-box {
  display: flex; align-items: center; background: var(--placeholder-bg);
  border: 1px solid var(--card-border); border-radius: 10px; padding: 4px 6px; gap: 3px;
  min-width: 0;
}
.hero-wide-prefix, .hero-wide-unit { font-size: 9.5px; font-weight: 800; color: var(--text-muted); flex-shrink: 0; }
.hero-wide-input {
  width: 100%; min-width: 0; border: none; background: transparent;
  font-size: 12px; font-weight: 900; color: var(--text-main); outline: none;
}
.hero-wide-input.is-qty { color: var(--accent-jual); }

/* FLOATING CART BAR (MENEMPEL PERSIS DI DASAR .pos-app-wrapper SEPERTI kasir.html) */
.pos-floating-bar {
  padding: 8px 12px max(10px, env(safe-area-inset-bottom, 10px));
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 20;
  flex-shrink: 0;
  gap: 8px;
}
.pos-floating-info { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.pos-floating-icon-wrap {
  width: 36px; height: 36px; border-radius: 12px;
  background: rgba(42, 140, 126, 0.12); color: var(--accent-jual);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; position: relative; flex-shrink: 0;
}
.pos-floating-pill-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent-kas); color: #ffffff;
  font-size: 9px; font-weight: 900; padding: 1px 5px; border-radius: 9999px;
}
.pos-floating-texts { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pos-floating-subtext { font-size: 9.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-floating-total { font-size: 15px; font-weight: 950; color: var(--accent-jual); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-floating-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pos-btn-bayar {
  height: 42px; padding: 0 16px; border-radius: 14px;
  background: linear-gradient(135deg, #4EB3A2 0%, #2A8C7E 50%, #1C695E 100%);
  color: #ffffff; border: none; font-size: 13px; font-weight: 900;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 16px rgba(42, 140, 126, 0.35); cursor: pointer; transition: transform 0.15s;
}
.pos-btn-bayar:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

@media (max-width: 360px) {
  .pos-floating-bar { padding: 6px 8px max(8px, env(safe-area-inset-bottom, 8px)); gap: 6px; }
  .pos-floating-icon-wrap { width: 32px; height: 32px; font-size: 13px; }
  .pos-floating-total { font-size: 13.5px; }
  .pos-floating-actions { gap: 5px; }
  .pos-btn-bayar { height: 38px; padding: 0 12px; font-size: 12px; border-radius: 11px; }
}

/* CHECKOUT SHEET (MENEMPEL DI BAWAH 440PX PERSIS kasir.html) */
.pos-checkout-sheet {
  width: 100%; max-width: 440px; max-height: 94vh; max-height: 94dvh;
  background: var(--phone-bg); color: var(--text-main);
  border-top-left-radius: 24px; border-top-right-radius: 24px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}
.pos-sheet-header {
  padding: 12px 14px 10px; background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.pos-sheet-title h3 { font-size: 13.5px; font-weight: 900; color: var(--text-main); margin: 0; }
.pos-sheet-title span { font-size: 9.5px; font-weight: 700; color: var(--text-muted); }
.pos-sheet-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--placeholder-bg); border: 1px solid var(--card-border);
  color: var(--text-main); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; cursor: pointer;
}
.pos-sheet-body {
  flex: 1; overflow-y: auto; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.pos-cust-single-row {
  background: var(--card-bg); border: 1.5px solid rgba(234, 88, 12, 0.45);
  border-radius: 12px; padding: 6px 10px;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.pos-cust-label-inline {
  font-size: 11px; font-weight: 900; color: var(--accent-kas);
  white-space: nowrap; display: flex; align-items: center; gap: 4px;
}
.pos-cust-top-field { flex: 1; position: relative; display: flex; align-items: center; }
.pos-cust-top-input {
  width: 100%; height: 36px; padding: 0 44px 0 8px; border-radius: 8px;
  background: var(--placeholder-bg); border: 1px solid var(--card-border);
  color: var(--text-main); font-size: 13px; font-weight: 800; outline: none;
}
.pos-cust-top-input:focus { border-color: var(--accent-kas); }
.pos-cust-badge-khusus {
  position: absolute; right: 28px; font-size: 8px; font-weight: 900;
  background: #fef08a; color: #854d0e; padding: 1px 5px; border-radius: 4px;
  border: 1px solid #fde047; white-space: nowrap;
}
.pos-cust-clear-btn {
  position: absolute; right: 4px; width: 28px; height: 28px; border-radius: 50%;
  background: #cbd5e1; color: #334155; border: none; font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
html.dark .pos-cust-clear-btn {
  background: #475569; color: #f8fafc;
}
.pos-cust-dropdown-list {
  position: absolute; top: 38px; left: 0; right: 0;
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: 12px; max-height: 180px; overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); z-index: 60;
}
.pos-cust-dropdown-item {
  padding: 8px 10px; font-size: 11.5px; font-weight: 800; color: var(--text-main);
  border-bottom: 1px solid var(--card-border); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.pos-cust-dropdown-item:hover { background: rgba(42, 140, 126, 0.1); }
.pos-items-box {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 8px 10px;
}
.pos-items-box-header {
  display: flex; justify-content: space-between; font-size: 10.5px;
  font-weight: 800; color: var(--text-muted); margin-bottom: 4px;
}
.pos-items-scroll { max-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.pos-item-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; padding: 2px 0; border-bottom: 1px dashed var(--card-border);
}

/* TOMBOL KUANTITAS NOTA CEKOUT */
.pos-item-qty-btn {
  width: 28px; height: 28px; border-radius: 7px;
  font-size: 14px; font-weight: 900; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.1s;
}
.pos-item-qty-btn:active { transform: scale(0.92); }
.pos-item-qty-btn.is-minus {
  border: 1px solid var(--card-border);
  background: var(--placeholder-bg);
  color: var(--text-main);
}
.pos-item-qty-btn.is-plus {
  border: none;
  background: var(--accent-jual);
  color: #ffffff;
}

.pos-total-banner {
  background: rgba(42, 140, 126, 0.1); border: 1px solid rgba(42, 140, 126, 0.3);
  border-radius: 12px; padding: 6px 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.pos-total-banner-label { font-size: 11px; font-weight: 850; color: var(--text-muted); }
.pos-total-banner-val { font-size: 16px; font-weight: 950; color: var(--accent-jual); }
.pos-pay-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: var(--placeholder-bg); padding: 4px; border-radius: 12px;
}
.pos-pay-tab {
  padding: 8px 0; border-radius: 9px; border: none; background: transparent;
  color: var(--text-muted); font-size: 11px; font-weight: 850; cursor: pointer;
}
.pos-pay-tab.is-active {
  background: var(--accent-jual); color: #ffffff;
  box-shadow: 0 2px 6px rgba(42, 140, 126, 0.3);
}
@media (max-width: 360px) {
  .pos-pay-tabs { gap: 2px; padding: 2px; }
  .pos-pay-tab { font-size: 10px; padding: 6px 1px; }
}

.pos-cash-input-wrap { display: flex; flex-direction: column; gap: 6px; }
.pos-cash-input {
  width: 100%; height: 42px; border-radius: 12px;
  background: var(--placeholder-bg); border: 1.5px solid var(--card-border);
  color: var(--text-main); font-size: 16px; font-weight: 950; padding: 0 12px; outline: none;
}
.pos-change-box {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 6px 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; font-weight: 800;
}
.pos-change-box strong { font-size: 14px; font-weight: 950; color: var(--accent-jual); }
.pos-excess-cash-box {
  background: rgba(42, 140, 126, 0.08); border: 1px solid rgba(42, 140, 126, 0.35);
  border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px;
}
.pos-excess-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; font-weight: 850; color: var(--accent-jual);
}
.pos-excess-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pos-excess-btn {
  padding: 8px 8px; border-radius: 9px; border: 1px solid var(--card-border);
  background: var(--card-bg); color: var(--text-main);
  font-size: 11px; font-weight: 850;
  display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.pos-excess-btn.is-active {
  background: var(--accent-jual); color: #ffffff; border-color: var(--accent-jual);
}
.pos-numpad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pos-numpad-btn {
  height: 42px; border-radius: 11px; border: 1px solid var(--card-border);
  background: var(--card-bg); color: var(--text-main);
  font-size: 16px; font-weight: 900; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pos-numpad-btn.is-action { background: var(--placeholder-bg); color: var(--accent-kas); font-size: 13.5px; }
.pos-numpad-btn.is-submit {
  grid-row: span 2; height: 100%; min-height: 89px;
  background: linear-gradient(135deg, #4EB3A2, #2A8C7E); color: #ffffff;
  font-size: 16px; font-weight: 950; box-shadow: 0 4px 12px rgba(42, 140, 126, 0.35);
}
.pos-split-panel {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--placeholder-bg); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 8px 10px;
}
.pos-split-row {
  display: flex; align-items: center; gap: 6px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 4px 8px;
}
.pos-split-label {
  width: 65px; font-size: 10.5px; font-weight: 850; color: var(--text-main);
  display: flex; align-items: center; gap: 4px;
}
.pos-split-input {
  flex: 1; border: none; background: transparent;
  font-size: 12.5px; font-weight: 900; color: var(--text-main); outline: none;
}
.pos-split-fill-btn {
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--card-border);
  background: var(--placeholder-bg); font-size: 10px; font-weight: 800;
  color: var(--text-main); cursor: pointer;
}

/* BANNER & NOTICE ADAPTIF DARK MODE */
.pos-notice-orange {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 12px;
}
html.dark .pos-notice-orange {
  background: rgba(234, 88, 12, 0.14) !important;
  border-color: rgba(234, 88, 12, 0.38) !important;
  color: #fdba74 !important;
}
.pos-notice-orange-btn {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}
html.dark .pos-notice-orange-btn {
  background: #1e293b !important;
  border-color: rgba(234, 88, 12, 0.4) !important;
  color: #fdba74 !important;
}
.pos-mode-edit-banner {
  background: #ffedd5;
  border-bottom: 1.5px solid #fdba74;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9a3412;
  flex-shrink: 0;
}
html.dark .pos-mode-edit-banner {
  background: #1e1b18 !important;
  border-bottom-color: rgba(234, 88, 12, 0.4) !important;
  color: #fdba74 !important;
}
  background: var(--placeholder-bg); font-size: 9.5px; font-weight: 800;
  color: var(--text-main); cursor: pointer;
}
.pos-btn-finish {
  width: 100%; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, #4EB3A2 0%, #2A8C7E 50%, #1C695E 100%);
  color: #ffffff; border: none; font-size: 13px; font-weight: 950;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 6px 18px rgba(42, 140, 126, 0.35); cursor: pointer;
}
.pos-modal-gramasi {
  width: 92%; max-width: 340px; margin: auto;
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: 20px; padding: 16px; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  display: flex; flex-direction: column; gap: 10px;
}
.pos-table-jurnal-wrap {
  width: 100%; overflow-x: auto; border: 1px solid var(--card-border);
  border-radius: 14px; background: var(--card-bg);
}
.pos-table-jurnal { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 10.5px; }
.pos-table-jurnal th {
  padding: 8px 6px; background: var(--placeholder-bg); color: var(--text-muted);
  font-weight: 850; text-transform: uppercase; border-bottom: 1px solid var(--card-border); white-space: nowrap;
}
.pos-table-jurnal td { padding: 7px 6px; border-bottom: 1px solid var(--card-border); color: var(--text-main); vertical-align: middle; }
.pos-table-jurnal tr:hover { background: rgba(42, 140, 126, 0.05); cursor: pointer; }
.pos-jurnal-badge-lunas { background: #dcfce7; color: #166534; padding: 2px 6px; border-radius: 5px; font-weight: 900; font-size: 9px; }
.pos-jurnal-badge-bon { background: #ffedd5; color: #9a3412; padding: 2px 6px; border-radius: 5px; font-weight: 900; font-size: 9px; }

/* ==========================================================================
   DEEP UI POLISH: TACTILE SPRING PHYSICS & SHARP INPUT CONTRAST
   ========================================================================== */
.pos-card-product {
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 8px 18px -6px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.2s ease !important;
}
.pos-card-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.pos-card-product:active {
  transform: scale(0.96) translateY(0) !important;
  transition-duration: 0.12s !important;
}
#overlayRoot input:not([type="checkbox"]):not([type="radio"]),
#overlayRoot select,
#overlayRoot textarea {
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
#overlayRoot input:not([type="checkbox"]):not([type="radio"]):focus,
#overlayRoot select:focus,
#overlayRoot textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.nav-tab-btn {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease;
}
.nav-tab-btn:active {
  transform: scale(0.94);
  transition-duration: 0.1s;
}

/* ==========================================================================
   ATELIER WARM SCOPE & PRESS-AND-HOLD LIST ROW EFFECT (SCALE + SLOW SWAY)
   ========================================================================== */
@keyframes atelierHoldSway {
  0%   { transform: scale(1.018) rotate(0deg); }
  25%  { transform: scale(1.02) rotate(-0.45deg); }
  50%  { transform: scale(1.018) rotate(0deg); }
  75%  { transform: scale(1.02) rotate(0.45deg); }
  100% { transform: scale(1.018) rotate(0deg); }
}

.press-hold-row {
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.press-hold-row.is-hold-active {
  position: relative;
  z-index: 15;
  animation: atelierHoldSway 1.15s ease-in-out infinite;
  box-shadow: 0 10px 26px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.press-hold-row.is-hold-active > td {
  background-color: #ECFDF5 !important;
}

html.dark .press-hold-row.is-hold-active > td {
  background-color: #1E293B !important;
}

.atelier-warm-scope input:not([type="checkbox"]):not([type="radio"]):focus,
.atelier-warm-scope select:focus,
.atelier-warm-scope textarea:focus {
  border-color: #10B981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

/* BINGKAI PRODUKSI AKSEN WARNA BERJALAN (SMOOTH FLOWING BORDER) */
@keyframes produksiBorderSpin {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.produksi-ring-wrap {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(16, 185, 129, 0.28), 0 4px 12px -4px rgba(15, 23, 42, 0.1);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.produksi-ring-wrap:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px -10px rgba(16, 185, 129, 0.36), 0 6px 16px -4px rgba(245, 158, 11, 0.2);
}

.produksi-ring-wrap:active {
  transform: scale(0.97);
}

.produksi-ring-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240%;
  height: 240%;
  background: conic-gradient(
    from 0deg,
    #10B981 0deg,
    #34D399 70deg,
    #F59E0B 150deg,
    #6366F1 240deg,
    #10B981 360deg
  );
  animation: produksiBorderSpin 5s linear infinite;
  z-index: 0;
}

.produksi-ring-inner {
  position: relative;
  z-index: 1;
  border-radius: 9999px;
  background: #FFFFFF;
}

html.dark .produksi-ring-inner {
  background: #0F172A;
}

/* LOGO HEADER BINGKAI WARNA BERJALAN (RINGAN, PUTIH BERSIH, SERASI DENGAN RING PRODUKSI) */
.logo-ring-wrap {
  position: relative;
  display: inline-flex;
  padding: 2.5px;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 6px 18px -6px rgba(16, 185, 129, 0.28), 0 2px 6px -2px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.logo-ring-wrap:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 22px -6px rgba(16, 185, 129, 0.36), 0 4px 10px -2px rgba(245, 158, 11, 0.2);
}

.logo-ring-wrap:active {
  transform: scale(0.95);
}

.logo-ring-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240%;
  height: 240%;
  background: conic-gradient(
    from 0deg,
    #10B981 0deg,
    #34D399 70deg,
    #F59E0B 150deg,
    #6366F1 240deg,
    #10B981 360deg
  );
  animation: produksiBorderSpin 5s linear infinite;
  z-index: 0;
}

.logo-ring-inner {
  position: relative;
  z-index: 1;
  border-radius: 9999px;
  background: #FFFFFF;
}

html.dark .logo-ring-inner {
  background: #0F172A;
}

@keyframes aliceLogoFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-1.8px); }
}

.alice-logo-svg-float {
  animation: aliceLogoFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 3px 5px rgba(16, 185, 129, 0.34));
}

.alice-brand-float {
  display: inline-block;
  background: linear-gradient(105deg, #D97706 0%, #F59E0B 45%, #10B981 78%, #6366F1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.28));
  letter-spacing: -0.025em;
}

html.dark .alice-brand-float {
  background: linear-gradient(105deg, #FBBF24 0%, #F59E0B 45%, #34D399 78%, #818CF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
}
