/* ==========================================================
   TOKO KENAN POS STYLESHEET (100% IDENTIK DENGAN APLIKASI PC)
   Warna & Layout disamakan persis dengan main.py & transaksi.py
   - Warna Header & Sidebar : #007ACC (Biru Khas Toko Kenan)
   - Warna Latar Belakang   : #f9d9a7 (Krem / Peach Hangat PC)
   - Warna Tombol Aksi      : #FF8C42 (Oranye Terang)
   - Warna Tombol Submenu   : #ffd966 (Kuning Emas)
   - Warna Kotak Bayar      : #CDEBCF (Hijau Mint Lembut)
   - Warna POS Online       : #1E3A8A & #F97316
   ========================================================== */

:root {
  --warna-header: #007ACC;
  --warna-header-gelap: #005A9E;
  --warna-sidebar: #007ACC;
  --warna-tombol-oren: #FF8C42;
  --warna-tombol-kuning: #ffd966;
  --warna-mint: #CDEBCF;
  --warna-bg: #f9d9a7;
  --warna-utama: #f9d9a7;
  --warna-panel: #f9d9a7;
  --warna-card: #FFFFFF;
  --warna-garis: #CBD5E1;
  --warna-text: #172033;
  --warna-muted: #64748B;
  --warna-success: #10B981;
  --warna-danger: #EF4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, -apple-system, sans-serif;
  background-color: #f9d9a7;
  color: var(--warna-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================================
   1. HEADER PERSIS SEPERTI PC TRANSAKSI.PY (#007ACC)
   ========================================================== */
.pos-header {
  background-color: #007ACC;
  height: 105px;
  display: grid;
  grid-template-columns: 140px 1fr 280px;
  align-items: center;
  padding: 6px 18px;
  color: #FFFFFF;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.header-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  max-height: 80px;
  max-width: 120px;
  object-fit: contain;
}

.header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.store-title {
  font-family: "Segoe UI Black", "Segoe UI", Arial, sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #FFFFFF;
}

.store-tagline {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: 2px;
}

.header-datetime-strip {
  font-size: 11px;
  color: #E0F2FE;
  margin-top: 4px;
  font-weight: 600;
}

.header-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
}

.header-session {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-db-indicator {
  background-color: #10B981;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

.header-border-line {
  height: 4px;
  background-color: #005A9E;
  width: 100%;
}

.header-spacer-strip {
  height: 6px;
  background-color: #f9d9a7;
  width: 100%;
}

/* ==========================================================
   2. CONTAINER UTAMA (SIDEBAR + MAIN CONTENT)
   ========================================================== */
.pos-container {
  display: flex;
  flex: 1;
  background-color: #f9d9a7;
  padding: 8px 14px;
  gap: 12px;
}

/* --- SIDEBAR PERSIS PC MAIN.PY (#007ACC) --- */
.pos-sidebar {
  width: 210px;
  background-color: #007ACC;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-menu-title {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.sidebar-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-menu {
  background: linear-gradient(180deg, #FFB075 0%, #FF8C42 100%) !important;
  color: #111827 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 9px 12px !important;
  border-top: 2px solid #FFD4AD !important;
  border-left: 2px solid #FFD4AD !important;
  border-right: 2px solid #C45500 !important;
  border-bottom: 3.5px solid #8F3700 !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 3px 0 #7A2E00, 0 4px 6px rgba(0, 0, 0, 0.22) !important;
  transition: all 0.08s ease !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-menu:hover {
  background: linear-gradient(180deg, #FFBD8A 0%, #FFA056 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 0 #7A2E00, 0 6px 8px rgba(0, 0, 0, 0.28) !important;
}

.btn-menu:active {
  transform: translateY(2px) !important;
  border-top: 2px solid #7A2E00 !important;
  border-left: 2px solid #7A2E00 !important;
  border-right: 2px solid #FFD4AD !important;
  border-bottom: 2px solid #FFD4AD !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 1px 0 #7A2E00 !important;
}

.btn-menu.active {
  background: #FFFFFF !important;
  color: #075AA8 !important;
  border-top: 2px solid #075AA8 !important;
  border-left: 2px solid #075AA8 !important;
  border-right: 2px solid #93C5FD !important;
  border-bottom: 2px solid #93C5FD !important;
  box-shadow: inset 0 3px 6px rgba(7, 90, 168, 0.25) !important;
  transform: translateY(1px) !important;
}

.btn-menu.btn-exit {
  background: linear-gradient(180deg, #FF7B7B 0%, #E04848 100%) !important;
  color: #FFFFFF !important;
  border-top: 2px solid #FFA8A8 !important;
  border-left: 2px solid #FFA8A8 !important;
  border-right: 2px solid #9E1C1C !important;
  border-bottom: 3.5px solid #6E1212 !important;
  box-shadow: 0 3px 0 #5E0E0E, 0 4px 6px rgba(0, 0, 0, 0.25) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4) !important;
}

.btn-menu.btn-exit:hover {
  background: linear-gradient(180deg, #FF8F8F 0%, #EA5555 100%) !important;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-main-menu {
  background-color: #ffd966 !important;
  color: #111827 !important;
  font-weight: 800 !important;
}

.btn-exit {
  background-color: #ff4d4d !important;
  color: #FFFFFF !important;
  border-color: #DC2626 !important;
}

/* ==========================================================
   3. MAIN CONTENT VIEWS
   ========================================================== */
.pos-panel,
.pos-main-panel {
  flex: 1;
  background-color: #f9d9a7;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

/* TAMPILAN STANDALONE KASIR 100% FULL-SCREEN (IDENTIK DENGAN TRANSAKSI.PY) */
body.pos-cashier-active {
  height: 100vh;
  overflow: hidden;
}

body.pos-cashier-active .pos-sidebar,
body.pos-cashier-active .pos-v-separator {
  display: none !important;
}

body.pos-cashier-active .pos-container {
  padding: 4px 10px;
  gap: 0;
  height: calc(100vh - 143px);
  min-height: 0;
  overflow: hidden;
}

body.pos-cashier-active .pos-panel,
body.pos-cashier-active .pos-main-panel {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.pos-cashier-active #view-pos-cashier {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.content-view {
  display: none !important;
  flex: 1;
  animation: fadeIn 0.15s ease-in-out;
}

.content-view.active {
  display: block !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel-header-card {
  background-color: #FFFFFF;
  border: 1px solid var(--warna-garis);
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.view-title {
  font-size: 18px;
  font-weight: 900;
  color: #007ACC;
}

.view-desc {
  font-size: 11px;
  color: var(--warna-muted);
  margin-top: 2px;
}

.card-box {
  background-color: #FFFFFF;
  border: 1px solid var(--warna-garis);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.submenu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.submenu-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  text-align: left;
}

.submenu-btn:hover {
  border-color: #007ACC;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 122, 204, 0.15);
}

.submenu-btn .s-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.submenu-btn strong {
  font-size: 14px;
  color: #0F172A;
  margin-bottom: 2px;
}

.submenu-btn small {
  font-size: 11px;
  color: #64748B;
}

/* ==========================================================
   4. POS CASHIER SCREEN (100% IDENTIK DENGAN TRANSAKSI.PY)
   3 Kolom: Left Panel Help, Center Transaksi, Right Pembayaran
   ========================================================== */
.pc-cashier-container {
  display: grid;
  grid-template-columns: 215px 1fr 285px;
  gap: 8px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background-color: #f9d9a7;
}

/* --- PANEL KIRI: HELP & QUICK MENUS --- */
.pc-panel-left {
  background-color: #007ACC;
  border-radius: 6px;
  padding: 8px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.pc-help-title {
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 4px;
}

.pc-help-text {
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 4px;
  color: #E0F2FE;
}

.btn-pc-orange {
  background-color: #FF8C42;
  color: #111827;
  font-weight: 800;
  font-size: 11px;
  border: 1px solid #E67329;
  border-radius: 4px;
  padding: 7px 6px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.btn-pc-orange:hover {
  background-color: #FF7722;
}

.btn-pc-yellow {
  background-color: #ffd966;
  color: #111827;
  font-weight: 800;
  font-size: 11px;
  border: 1px solid #E5C358;
  border-radius: 4px;
  padding: 7px 6px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.btn-pc-yellow:hover {
  background-color: #ECC750;
}

.pc-pos-online-title {
  background-color: #1E3A8A;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 11px;
  text-align: center;
  padding: 4px;
  border-radius: 4px;
  margin-top: 6px;
}

.pc-pos-online-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.btn-pc-online {
  background-color: #F97316;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 10px;
  border: none;
  border-radius: 3px;
  padding: 5px 2px;
  cursor: pointer;
  text-align: center;
}
.btn-pc-online:hover {
  background-color: #EA580C;
}

.pc-panel-bottom-nav {
  margin-top: auto;
  padding-top: 8px;
}

/* --- PANEL TENGAH: DAFTAR TRANSAKSI --- */
.pc-panel-center {
  background-color: #f9d9a7;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.pc-transaksi-banner {
  background-color: #FF8C42;
  color: #111827;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  border: 1px solid #E67329;
}

.pc-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background-color: #f9d9a7;
  width: 100%;
}

.pc-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pc-input-group label {
  font-size: 12px;
  font-weight: 800;
  color: #1E293B;
  white-space: nowrap;
}

.pc-input-group input {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background: #FFFFFF;
  outline: none;
}
.pc-input-group input:focus {
  border-color: #007ACC;
  box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.25);
}

#pos-plu-input {
  width: 110px;
}

.pc-input-group.flex-scan {
  flex: 1 1 auto;
  min-width: 200px;
  display: flex;
}
.pc-input-group.flex-scan input {
  flex: 1;
  min-width: 150px;
  width: 100%;
}

.pc-input-group.qty-group {
  flex-shrink: 0;
}
.pc-input-group.qty-group input {
  width: 50px;
  text-align: center;
}

.pc-input-row button {
  width: auto !important;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 16px;
}

.pc-treeview-wrap {
  flex: 1;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pc-tree-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, "Segoe UI", sans-serif;
}

.pc-tree-table th {
  background-color: #E2E8F0;
  color: #0F172A;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 6px;
  border-bottom: 2px solid #CBD5E1;
  border-right: 1px solid #CBD5E1;
  text-align: left;
}

.pc-tree-table td {
  font-size: 12px;
  padding: 5px 8px;
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #F1F5F9;
  color: #1E293B;
}

.pc-tree-table tbody tr:hover {
  background-color: #EFF6FF;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.qty-btn {
  background-color: #E2E8F0;
  border: 1px solid #CBD5E1;
  border-radius: 3px;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #1E293B;
}
.qty-btn:hover {
  background-color: #CBD5E1;
}

.qty-input {
  width: 38px;
  height: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid #CBD5E1;
  border-radius: 3px;
  padding: 0;
}

.btn-del-item {
  background-color: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
  border-radius: 3px;
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.btn-del-item:hover {
  background-color: #DC2626;
  color: #FFFFFF;
}

.pc-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #475569;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

/* --- PANEL KANAN: PEMBAYARAN --- */
.pc-panel-right {
  background-color: #007ACC;
  border-radius: 6px;
  padding: 6px 8px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.pc-pay-title {
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}

.pc-pay-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pc-pay-item label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #E0F2FE;
}

.pc-mint-box {
  background-color: #CDEBCF;
  color: #0F172A;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-align: right;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #A3D8A6;
}

.pc-mint-total {
  font-size: 16px;
  font-weight: 900;
  color: #065F46;
  background-color: #BDE4BF;
  border: 2px solid #86EFAC;
}

.pc-white-box {
  background-color: #FFFFFF;
  color: #0F172A;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  padding: 3px 6px;
  border-radius: 4px;
  border: 2px solid #38BDF8;
  outline: none;
  width: 100%;
}
.pc-white-box:focus {
  border-color: #FF8C42;
  box-shadow: 0 0 0 2px rgba(255, 140, 66, 0.3);
}

.pc-quick-cash-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.btn-cash-quick {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 9.5px;
  padding: 2px 1px;
  border-radius: 3px;
  cursor: pointer;
}
.btn-cash-quick:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

.pc-mint-kembali {
  font-size: 13px;
  font-weight: 800;
}

.pc-buttons-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.width-full {
  width: 100%;
}

.btn-large-pay {
  padding: 6px 6px !important;
  font-size: 11px !important;
  letter-spacing: 0.5px;
}

.btn-pc-red {
  background-color: #ff4d4d;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid #DC2626;
  border-radius: 4px;
  padding: 7px 6px;
  cursor: pointer;
  text-align: center;
}
.btn-pc-red:hover {
  background-color: #E11D48;
}

.btn-pc-skyblue {
  background-color: #8FD3FF;
  color: #0F172A;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid #60A5FA;
  border-radius: 4px;
  padding: 7px 6px;
  cursor: pointer;
  text-align: center;
}
.btn-pc-skyblue:hover {
  background-color: #60A5FA;
}

.pc-pending-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.btn-pc-lightgreen {
  background-color: #93C47D;
  color: #0F172A;
  font-weight: 700;
  font-size: 10px;
  border: 1px solid #6AA84F;
  border-radius: 4px;
  padding: 7px 4px;
  cursor: pointer;
  text-align: center;
}
.btn-pc-lightgreen:hover {
  background-color: #7BB662;
}

/* ==========================================================
   5. DASHBOARD & QUICK BUTTONS
   ========================================================== */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--warna-garis);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--warna-muted);
}

.stat-val {
  font-size: 22px;
  font-weight: 900;
  color: #007ACC;
  margin: 4px 0;
}

.stat-sub {
  font-size: 10px;
  color: var(--warna-muted);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.quick-btn {
  background-color: #FF8C42;
  border: 1px solid #E67329;
  border-radius: 6px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 800;
}
.quick-btn:hover {
  background-color: #FF7722;
}

/* ==========================================================
   6. STOCK & ADMINISTRASI REPORT TABLES
   ========================================================== */

/* HERO CARD: PENJUALAN HARI INI DI DASHBOARD */
.today-sales-hero-card {
  background: linear-gradient(135deg, #005A9E 0%, #007ACC 60%, #0284C7 100%);
  border-radius: 8px;
  padding: 16px 20px;
  color: #FFFFFF;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.today-sales-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 204, 0.35);
}

.today-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.today-badge {
  background: #FF7722;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.today-date {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.today-hero-body {
  margin: 6px 0 10px 0;
}

.today-hero-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

.today-hero-amount {
  font-size: 32px;
  font-weight: 900;
  color: #FEF08A;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.today-hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.today-trx-count {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 12px;
}

.today-action-hint {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

/* STOCK MANAGEMENT LAYOUT */
.badge-stock-counter {
  background: #007ACC;
  color: #FFFFFF;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.stock-mobile-nav {
  display: none;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-stock-tab {
  flex: 1;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #F1F5F9;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-stock-tab.active {
  background: #007ACC;
  color: #FFFFFF;
  border-color: #007ACC;
}

.stock-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 14px;
  align-items: start;
}

.stock-form-card,
.stock-table-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stock-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E2E8F0;
}

.stock-table-card .table-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.stock-search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.stock-search-box input {
  width: 100%;
  padding: 7px 30px 7px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-size: 12px;
  box-sizing: border-box;
}

.btn-clear-search {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 13px;
  cursor: pointer;
}

.btn-clear-search:hover {
  color: #EF4444;
}

.select-stock-filter,
.btn-stock-refresh {
  padding: 7px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-size: 12px;
  background: #F8FAFC;
}

/* STOCK TABLE & PAGINATION */
.plu-tag {
  background: #E0F2FE;
  color: #0369A1;
  font-family: Consolas, monospace;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}

.barcode-tag {
  background: #F1F5F9;
  color: #475569;
  font-family: Consolas, monospace;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 3px;
}

.category-tag {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.badge-stock {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.stock-ok {
  background: #DCFCE7;
  color: #15803D;
}

.stock-low {
  background: #FEF3C7;
  color: #B45309;
}

.stock-empty {
  background: #FEE2E2;
  color: #B91C1C;
}

.btn-table-edit {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #007ACC;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-table-edit:hover {
  background: #005A9E;
}

.stock-row-selected {
  background: #EFF6FF !important;
}

.stock-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-info {
  font-size: 11.5px;
  color: #475569;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-page {
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background: #F8FAFC;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-page:hover:not(:disabled) {
  background: #007ACC;
  color: #FFFFFF;
  border-color: #007ACC;
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-current-badge {
  padding: 5px 10px;
  background: #007ACC;
  color: #FFFFFF;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11.5px;
}

.select-page-size {
  padding: 5px 6px;
  font-size: 11px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background: #FFFFFF;
  font-weight: 600;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.data-table th {
  background: #E2E8F0;
  color: #0F172A;
  font-weight: 900;
  padding: 8px 10px;
  border-bottom: 2px solid #CBD5E1;
  text-align: left;
}

.data-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #E2E8F0;
}

.data-table tbody tr:hover {
  background-color: #F8FAFC;
}

/* WADAH TABEL DENGAN SCROLL HORIZONTAL (GESER KIRI-KANAN DI HP) */
.data-table-scroll {
  max-height: 520px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  margin-top: 6px;
  position: relative;
  background: #FFFFFF;
}

#stock-table {
  min-width: 840px !important;
  width: 100%;
}

#stock-table th,
#stock-table td {
  white-space: nowrap;
}

#stock-table th:nth-child(4),
#stock-table td:nth-child(4) {
  white-space: normal !important;
  min-width: 260px !important;
  max-width: 400px !important;
  word-break: break-word;
}

#lap-table {
  min-width: 650px !important;
  width: 100%;
}

.table-scroll-hint {
  display: none;
  font-size: 11px;
  color: #0369A1;
  background: #E0F2FE;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
  font-weight: 700;
  text-align: center;
  border: 1px solid #BAE6FD;
}

.report-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.r-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 10px;
}

.r-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
}

.r-val {
  font-size: 16px;
  font-weight: 800;
  color: #007ACC;
  margin-top: 2px;
}

.r-val.highlight {
  color: #10B981;
}

.report-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
}

.report-filter-bar input[type="date"] {
  padding: 4px 8px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-size: 12px;
}

/* ==========================================================
   7. MODAL DIALOGS (STRUK & CARI BARANG F2)
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-overlay[hidden] {
  display: none !important;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: #64748B;
  cursor: pointer;
}
.btn-close-modal:hover {
  color: #EF4444;
}

.receipt-modal-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 340px;
  max-height: 90vh;
}

.receipt-paper {
  background: #FFFBEB;
  border: 1px dashed #D97706;
  border-radius: 4px;
  padding: 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: #1E293B;
  max-height: 60vh;
  overflow-y: auto;
}

.r-center {
  text-align: center;
}

.r-store {
  font-size: 15px;
  font-weight: 900;
}

.r-addr {
  font-size: 9px;
}

.r-line {
  margin: 4px 0;
  overflow: hidden;
}

.r-meta {
  font-size: 10px;
}

.r-row {
  display: flex;
  justify-content: space-between;
}

.r-footer {
  font-size: 9px;
  margin-top: 6px;
}

.receipt-modal-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.search-modal-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 850px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.modal-header-row h3 {
  margin: 0;
  color: #0F172A;
  font-size: 15px;
}

.modal-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-search-bar input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #007ACC;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.search-hint {
  font-size: 11px;
  color: #64748B;
}

.modal-search-table-wrap {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  max-height: 52vh;
}

/* ==========================================================
   8. FOOTER
   ========================================================== */
.pos-footer {
  min-height: 52px;
  height: auto;
  background-color: #0F172A;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  font-size: 11px;
  border-top: 2px solid #007ACC;
  text-align: center;
  gap: 3px;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}

.footer-watermark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: #F8FAFC;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-wrap: wrap;
}

.watermark-brand {
  color: #38BDF8;
}

.watermark-dot {
  color: #64748B;
}

.watermark-sub {
  color: #E2E8F0;
  font-size: 10.5px;
  font-weight: 500;
}

.footer-watermark-dev {
  font-size: 10.5px;
  color: #CBD5E1;
}

.footer-watermark-dev strong {
  color: #F59E0B;
}

.footer-watermark-copy {
  font-size: 9.5px;
  color: #64748B;
}

/* ==========================================================
   9. ATURAN DESKTOP DEFAULT UNTUK ELEMEN MOBILE
   ========================================================== */
#btn-header-cfg {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  color: white;
  padding: 2px 7px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
#btn-header-cfg:hover {
  background: rgba(255, 255, 255, 0.4);
}

.btn-hamburger,
.btn-hamburger-cashier {
  display: none !important;
}
.drawer-backdrop {
  display: none !important;
}
.drawer-header-mobile {
  display: none !important;
}

.mobile-cashier-topbar {
  display: none;
}
.mobile-cart-card-container {
  display: none;
}
.mobile-bottom-paybar {
  display: none;
}
.btn-scan-cam-inline {
  display: none;
}
.mobile-qty-stepper-box .stepper-btn-minus,
.mobile-qty-stepper-box .stepper-btn-plus {
  display: none;
}

/* ==========================================================
   10. RESPONSIVE MOBILE LAYOUT (LAYAR HP & TABLET <= 850px)
   ========================================================== */
@media (max-width: 850px) {
  /* TOMBOL MENU GARIS 3 (HAMBURGER) */
  .btn-hamburger,
  .btn-hamburger-cashier {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .btn-hamburger:active,
  .btn-hamburger-cashier:active {
    background: rgba(255, 255, 255, 0.35);
  }
  .hamburger-bar {
    display: block;
    width: 20px;
    height: 2.5px;
    background-color: #FFFFFF;
    border-radius: 2px;
  }

  /* OVERLAY BACKDROP DRAWER */
  .drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(2px);
    z-index: 99990;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .drawer-backdrop.active {
    display: block !important;
    opacity: 1 !important;
  }

  /* SIDEBAR DI HP BERUBAH MENJADI DRAWER OFF-CANVAS (SLIDE-IN GARIS 3) */
  .pos-sidebar,
  body.pos-cashier-active .pos-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 82vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #007ACC !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .pos-sidebar.drawer-open,
  body.pos-cashier-active .pos-sidebar.drawer-open {
    transform: translateX(0) !important;
    display: flex !important;
  }

  .drawer-header-mobile {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #085a96;
    color: #FFFFFF;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  }
  .drawer-brand {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
  }
  .btn-close-drawer {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pos-sidebar .sidebar-menu-title {
    font-size: 11px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
  }
  .pos-sidebar .sidebar-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding: 10px !important;
  }
  .pos-sidebar .btn-menu {
    width: 100% !important;
    height: 44px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding-left: 14px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
  }
  .pos-sidebar .sidebar-bottom {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 10px !important;
    margin-top: auto !important;
  }
  .pos-sidebar .sidebar-bottom .btn-menu {
    width: 100% !important;
    height: 44px !important;
  }

  /* HEADER MOBILE DENGAN SAFE AREA ANDROID STATUS BAR */
  .pos-header {
    min-height: 54px;
    height: auto;
    padding: 6px 10px;
    padding-top: max(8px, env(safe-area-inset-top, 8px));
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
  }
  .header-logo-box {
    width: 34px;
    height: 34px;
  }
  .header-logo {
    height: 30px;
  }
  .store-title {
    font-size: 15px;
    letter-spacing: 0.5px;
  }
  .store-tagline,
  .header-datetime-strip {
    display: none !important;
  }
  .header-kasir-text {
    font-size: 11px;
  }
  .badge-db-indicator {
    font-size: 10px;
    padding: 2px 6px;
  }
  #btn-header-sync {
    padding: 3px 6px;
    font-size: 10px;
  }
  #btn-header-cfg {
    padding: 3px 6px;
    font-size: 12px;
  }

  /* CONTAINER UTAMA & PANEL DI HP: PRESISI 100% PENUH LAYAR */
  .pos-container {
    display: block !important;
    padding: 10px 8px !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: calc(100vh - 54px) !important;
    box-sizing: border-box !important;
  }
  .pos-v-separator {
    display: none !important;
  }
  .pos-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* DASHBOARD GRID DI HP (PRESISI 2x2 GRID) */
  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .stat-card {
    padding: 8px 10px !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .stat-icon {
    font-size: 22px !important;
  }
  .stat-label {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: #64748B !important;
    letter-spacing: 0.5px !important;
  }
  .stat-value {
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #0F172A !important;
  }
  .stat-sub {
    font-size: 9px !important;
    color: #94A3B8 !important;
  }

  .quick-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .quick-btn {
    height: 48px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  }

  /* SUBMENU SALES DI HP */
  .submenu-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .submenu-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    border: 1.5px solid #FCD34D !important;
    background: #FFFBEB !important;
    text-align: left !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  }
  .submenu-btn:active {
    background: #FEF3C7 !important;
  }
  .submenu-btn.btn-primary-sales {
    background: #EFF6FF !important;
    border: 2px solid #007ACC !important;
    box-shadow: 0 3px 10px rgba(0,122,204,0.2) !important;
  }
  .submenu-btn .s-icon {
    font-size: 26px !important;
    flex-shrink: 0 !important;
  }
  .submenu-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }
  .submenu-text strong {
    font-size: 14px !important;
    color: #0F172A !important;
    font-weight: 800 !important;
  }
  .submenu-btn.btn-primary-sales .submenu-text strong {
    color: #007ACC !important;
    font-size: 15px !important;
  }
  .submenu-text small {
    font-size: 11px !important;
    color: #64748B !important;
  }
  .btn-back-home {
    background: #334155;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  /* ==========================================================
     KASIR TRANSAKSI MOBILE (SUPER TOUCH-FRIENDLY & CEPAT)
     ========================================================== */
  body.pos-cashier-active .pos-header {
    display: none !important; /* Di kasir HP, gunakan mobile topbar khusus yang hemat tempat */
  }
  body.pos-cashier-active .pos-container {
    padding: 0;
    margin: 0;
  }

  /* TOPBAR KASIR MOBILE */
  .mobile-cashier-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: #0F172A;
    color: #FFFFFF;
    padding: 8px 10px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .m-top-left-actions,
  .m-top-right-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .btn-mobile-nav-back {
    background: #334155;
    color: #FFFFFF;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
  }

  /* BANNER DAFTAR TRANSAKSI KHUSUS MOBILE (SESUAI TRANSAKSI.PY) */
  .mobile-transaksi-banner {
    background: linear-gradient(135deg, #FF8C42 0%, #EA580C 100%);
    color: #FFFFFF;
    font-weight: 900;
    font-size: 13px;
    text-align: center;
    padding: 5px;
    letter-spacing: 1px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  }

  /* QUICK ACTION BARIS KHUSUS KASIR HP */
  .mobile-quick-actions-bar {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 6px 8px;
    background: #F1F5F9;
    border-bottom: 1px solid #CBD5E1;
    white-space: nowrap;
  }
  .m-act-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #1E293B;
    cursor: pointer;
    flex-shrink: 0;
  }
  .m-act-btn:active {
    background: #E2E8F0;
  }
  .m-act-danger {
    color: #DC2626;
    border-color: #FCA5A5;
  }
  .mobile-faktur-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
  }
  .m-faktur-code {
    font-weight: 900;
    color: #38BDF8;
    font-family: monospace;
    font-size: 12px;
  }
  .m-kasir-label {
    font-size: 10px;
    color: #94A3B8;
  }
  .btn-mobile-cam-scan {
    background: #0284C7;
    color: #FFFFFF;
    border: none;
    padding: 7px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.4);
  }
  .btn-mobile-search-btn {
    background: #EA580C;
    color: #FFFFFF;
    border: none;
    padding: 7px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
  }

  /* CONTAINER KASIR */
  .pc-cashier-container {
    display: block;
    height: auto;
    padding: 8px;
    padding-bottom: 75px; /* Ruang untuk floating bottom paybar */
    gap: 0;
  }
  .pc-panel-left {
    display: none !important; /* Sembunyikan panel help/pulsa PC */
  }
  .pc-panel-right {
    display: none !important; /* Di HP, pembayaran via Bottom Sheet */
  }
  .pc-treeview-wrap {
    display: none !important; /* Di HP diganti kartu touch-friendly */
  }
  .pc-transaksi-banner {
    display: none !important;
  }
  .pc-panel-center {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  /* BARIS SCAN / INPUT HP */
  .pc-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #FFFFFF;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
  }
  .pc-input-group.plu-group {
    display: none; /* Kolom scan HP bisa scan barcode maupun ketik PLU */
  }
  .pc-input-group.flex-scan {
    flex: 1 1 100%;
    margin-bottom: 0;
  }
  .pc-input-group.flex-scan label {
    display: none;
  }
  .scan-input-wrapper {
    display: flex;
    position: relative;
    width: 100%;
  }
  #pos-barcode-input {
    width: 100%;
    height: 44px;
    font-size: 15px;
    border: 2px solid #0284C7;
    border-radius: 6px;
    padding: 0 45px 0 12px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  }
  .btn-scan-cam-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    background: #0284C7;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
  }
  .pc-input-group.qty-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }
  .pc-input-group.qty-group label {
    font-size: 13px;
    font-weight: 700;
  }
  .mobile-qty-stepper-box {
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .mobile-qty-stepper-box .stepper-btn-minus,
  .mobile-qty-stepper-box .stepper-btn-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #E2E8F0;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    color: #1E293B;
    cursor: pointer;
  }
  #pos-qty-input {
    width: 45px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
  }
  .btn-add-item-main {
    flex: 1;
    height: 40px;
    font-size: 14px;
    font-weight: 800;
    margin: 0;
  }

  /* STATUS BAR */
  .pc-status-bar {
    margin-top: 10px;
    font-size: 11px;
    background: #E2E8F0;
  }

  /* ==========================================================
     KARTU KERANJANG KHUSUS HP (TOUCH-FRIENDLY CARDS)
     ========================================================== */
  .mobile-cart-card-container {
    display: block;
    margin-top: 6px;
  }
  .mobile-cart-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-cart-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 4px solid #007ACC;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .m-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .m-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    flex: 1;
    margin-right: 8px;
  }
  .m-card-btn-del {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .m-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748B;
  }
  .m-card-plu {
    font-family: monospace;
    font-weight: 600;
  }
  .m-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px dashed #E2E8F0;
  }
  .m-card-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .m-btn-step {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    font-size: 16px;
    font-weight: bold;
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .m-card-qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
  }
  .m-card-subtotal {
    font-size: 16px;
    font-weight: 900;
    color: #059669;
    font-family: monospace;
  }

  /* EMPTY STATE KERANJANG HP */
  .mobile-cart-empty-box {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 30px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-top: 6px;
  }
  .m-empty-icon {
    font-size: 44px;
    margin-bottom: 8px;
  }
  .m-empty-title {
    font-size: 16px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 4px;
  }
  .m-empty-desc {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 14px;
  }
  .m-empty-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
  }

  /* ==========================================================
     FLOATING BOTTOM PAYBAR (HP / TABLET)
     ========================================================== */
  .mobile-bottom-paybar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    background: #0F172A;
    color: #FFFFFF;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.25);
    border-top: 2px solid #007ACC;
  }
  .mobile-paybar-info {
    display: flex;
    flex-direction: column;
  }
  .mobile-paybar-label {
    font-size: 10px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .mobile-paybar-total {
    font-size: 19px;
    font-weight: 900;
    color: #38BDF8;
    font-family: monospace;
  }
  .btn-mobile-pay-trigger {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
  }

  /* ==========================================================
     BOTTOM SHEET PEMBAYARAN MOBILE
     ========================================================== */
  .mobile-pay-sheet {
    background: #FFFFFF;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: fixed;
    bottom: 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
    animation: slideUpMobile 0.25s ease-out;
  }
  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .mobile-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #E2E8F0;
  }
  .sheet-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
  }
  .mobile-sheet-body {
    padding: 16px;
  }
  .mobile-pay-total-card {
    background: #ECFDF5;
    border: 2px solid #A7F3D0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
  }
  .mobile-pay-total-card .pay-label {
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
  }
  .mobile-pay-total-card .pay-amount {
    font-size: 26px;
    font-weight: 900;
    color: #065F46;
    font-family: monospace;
    margin: 4px 0;
  }
  .mobile-pay-total-card .pay-sub {
    font-size: 11px;
    color: #059669;
  }
  .mobile-pay-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-pay-input-group label {
    font-size: 11px;
    font-weight: 800;
    color: #334155;
  }
  .mobile-input-cash {
    width: 100%;
    height: 48px;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    border: 2px solid #007ACC;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
  }
  .mobile-quick-cash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0;
  }
  .btn-chip-cash {
    height: 38px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    color: #1E293B;
    cursor: pointer;
  }
  .btn-chip-cash:active {
    background: #CBD5E1;
  }
  .mobile-kembali-card {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }
  .kembali-label {
    font-size: 12px;
    font-weight: 800;
    color: #1E40AF;
  }
  .kembali-amount {
    font-size: 20px;
    font-weight: 900;
    color: #1D4ED8;
    font-family: monospace;
  }
  .mobile-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .btn-mobile-checkout-submit {
    width: 100%;
    height: 50px;
    background: #16A34A;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
  }
  .btn-mobile-cancel {
    width: 100%;
    height: 38px;
    background: #F1F5F9;
    color: #64748B;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
  }

  /* MODAL SCANNER KAMERA HP */
  .scanner-modal-card {
    background: #000000;
    border-radius: 12px;
    width: 95%;
    max-width: 450px;
    overflow: hidden;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
  }
  .scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #1E293B;
    font-weight: bold;
    font-size: 13px;
  }
  .scanner-viewport-box {
    position: relative;
    width: 100%;
    height: 320px;
    background: #000;
    overflow: hidden;
  }
  #scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .scanner-viewfinder {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
  }
  .scanner-laser-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #EF4444;
    box-shadow: 0 0 8px #EF4444;
    animation: laserSweep 1.8s infinite alternate ease-in-out;
  }
  @keyframes laserSweep {
    from { top: 5%; }
    to { top: 95%; }
  }
  .scanner-tip {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px;
  }
  .scanner-controls {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #1E293B;
  }
  .scanner-controls button {
    flex: 1;
  }

  /* ATURAN MOBILE KHUSUS STOCK MANAGEMENT */
  .stock-mobile-nav {
    display: flex !important;
  }
  .stock-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    gap: 12px !important;
  }
  .stock-form-card,
  .stock-table-card,
  #stock-table-card,
  #stock-form-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .stock-mobile-table-active #stock-form-card {
    display: none !important;
  }
  .stock-mobile-table-active #stock-table-card {
    display: block !important;
  }
  .stock-mobile-form-active #stock-form-card {
    display: block !important;
  }
  .stock-mobile-form-active #stock-table-card {
    display: none !important;
  }

  .stock-table-card .table-search-row {
    flex-wrap: wrap !important;
  }
  .stock-search-box {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  .select-stock-filter {
    flex: 1 !important;
  }
  .btn-stock-refresh {
    flex: 0 0 auto !important;
  }

  .stock-pagination-bar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .pagination-actions {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  /* HINT SCROLL TABEL HORIZONTAL DI HP */
  .table-scroll-hint {
    display: block !important;
  }

  /* FOOTER MOBILE SAFE AREA AGAR TIDAK TERTUTUP NAVIGATION BAR ANDROID */
  .pos-footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
  }
}

/* FULFILLMENT METHOD STYLES (PICKUP VS DELIVERY) */
.mobile-fulfillment-options {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.fulfillment-radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  border: 2px solid #CBD5E1;
  background: #F8FAFC;
  color: #1E293B;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fulfillment-radio-label input {
  display: none;
}

.fulfillment-radio-label.active {
  border-color: #0284C7;
  background: #E0F2FE;
  color: #0369A1;
}

.mobile-delivery-box {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
}

.mobile-delivery-box label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  display: block;
  margin-top: 6px;
  margin-bottom: 2px;
}

.mobile-delivery-box label:first-child {
  margin-top: 0;
}

.mobile-input-text {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 13px;
  background: #FFFFFF;
  box-sizing: border-box;
}


