/* ===== I AM NUTS — STAFF PORTAL ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --accent: #66bb6a;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --sidebar-bg: #1b2e1e;
  --sidebar-hover: rgba(255,255,255,0.07);
  --sidebar-active: rgba(46,125,50,0.55);
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --sidebar-w: 230px;
}

html, body { height: 100%; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }

/* ===== LOGIN ===== */
.staff-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b2e1e 0%, #2e4d32 100%);
  padding: 24px;
}
.staff-login-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  text-align: center;
}
.staff-login-logo { height: 70px; width: auto; margin: 0 auto 16px; }
.staff-login-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.staff-login-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 6px; }
.staff-badge-pill {
  display: inline-block;
  background: #e8f5e9;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.sform-group { text-align: left; margin-bottom: 16px; }
.sform-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.sform-group input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.92rem; outline: none;
  transition: border-color 0.2s;
}
.sform-group input:focus { border-color: var(--primary); }
.spw-wrap { position: relative; }
.spw-wrap input { padding-right: 42px; }
.spw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem;
}
.slogin-error { color: #c62828; font-size: 0.82rem; font-weight: 600; min-height: 18px; margin-bottom: 10px; }
.sbtn-primary {
  width: 100%; padding: 12px; background: var(--primary); color: #fff;
  border: none; border-radius: 50px; font-family: inherit;
  font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.sbtn-primary:hover { background: var(--primary-dark); }
.staff-login-hint { font-size: 0.78rem; color: var(--muted); margin-top: 16px; }

/* ===== APP LAYOUT ===== */
.staff-app { display: flex; height: 100vh; overflow: hidden; }

/* ===== SIDEBAR ===== */
.staff-sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  transition: transform 0.3s;
  z-index: 200;
}
.staff-sidebar.open { transform: translateX(0); }
.staff-sidebar-brand {
  padding: 20px 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.staff-sidebar-logo { height: 40px; width: auto; border-radius: 8px; }
.staff-sidebar-tags { display: flex; flex-direction: column; gap: 2px; }
.staff-sidebar-name { color: #fff; font-weight: 700; font-size: 0.92rem; }
.staff-sidebar-tag {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  width: fit-content;
}
.staff-sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.ssnav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  background: none; border: none;
  color: rgba(255,255,255,0.7);
  font-family: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; text-align: left; width: 100%;
  transition: all 0.2s;
}
.ssnav-item:hover { background: var(--sidebar-hover); color: #fff; }
.ssnav-item.active { background: var(--sidebar-active); color: #fff; }
.ssnav-icon { font-size: 1.1rem; }
.staff-sidebar-footer { padding: 12px 10px 18px; border-top: 1px solid rgba(255,255,255,0.08); }
.staff-view-store-btn {
  display: block; text-align: center; padding: 9px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8);
  text-decoration: none; border-radius: 8px; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 8px; transition: all 0.2s;
}
.staff-view-store-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.staff-logout-btn {
  width: 100%; padding: 9px; background: rgba(220,80,80,0.15);
  color: #ff8a80; border: none; border-radius: 8px;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.staff-logout-btn:hover { background: rgba(220,80,80,0.3); }

/* ===== MAIN CONTENT ===== */
.staff-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.staff-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.staff-topbar-left { display: flex; align-items: center; gap: 14px; }
.staff-sidebar-toggle {
  background: none; border: none; font-size: 1.3rem;
  cursor: pointer; color: var(--text); display: none;
}
.staff-page-title { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.staff-user-badge {
  background: #e8f5e9;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}
.staff-pages-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.spage { display: none; }
.spage.active { display: block; }

/* ===== BUTTONS ===== */
.sbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; font-family: inherit; transition: all 0.2s;
}
.sbtn-success { background: var(--primary); color: #fff; border: none; }
.sbtn-success:hover { background: var(--primary-dark); transform: translateY(-1px); }
.sbtn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.sbtn-outline:hover { border-color: var(--primary); color: var(--primary); }
.sbtn-danger  { background: #fce4ec; color: #c62828; border: none; }
.sbtn-danger:hover { background: #f8bbd0; }
.sbtn-sm { padding: 6px 14px; font-size: 0.8rem; }
.sbtn-orange { background: #E67E22; color: #fff; border: none; }
.sbtn-orange:hover { background: #ca6f1e; transform: translateY(-1px); }

/* ===== PAGE ACTIONS ===== */
.spage-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.ssearch {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s;
}
.ssearch:focus { border-color: var(--primary); }

/* ===== STAT CARDS ===== */
.sstat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.sstat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.sstat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.sstat-val { font-size: 1.4rem; font-weight: 800; }
.sstat-label { font-size: 0.76rem; color: var(--muted); font-weight: 600; }

/* ===== TABLE ===== */
.stable-wrap { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.stable {
  width: 100%; border-collapse: collapse;
}
.stable thead tr { background: #f8f9fa; }
.stable th {
  padding: 12px 16px; text-align: left;
  font-size: 0.75rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.stable td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.stable tbody tr:last-child td { border-bottom: none; }
.stable tbody tr:hover { background: #fafafa; }

/* ===== POS / NEW SALE ===== */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  height: calc(100vh - 108px);
}
.pos-products {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pos-products-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pos-cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pos-cat-pill {
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
}
.pos-cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pos-product-grid {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  align-content: start;
}
.pos-product-card {
  background: #f8f9fa;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pos-product-card:hover { border-color: var(--primary); background: #f0faf1; transform: translateY(-1px); }
.pos-product-card.out { opacity: 0.45; cursor: not-allowed; }
.pos-product-card.out:hover { transform: none; border-color: var(--border); background: #f8f9fa; }
.pos-p-emoji { font-size: 1.8rem; }
.pos-p-name { font-size: 0.8rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.pos-p-weight { font-size: 0.72rem; color: var(--muted); }
.pos-p-price { font-size: 0.9rem; font-weight: 800; color: var(--primary); margin-top: 4px; }
.pos-p-stock { font-size: 0.68rem; color: var(--muted); }
.pos-add-btn {
  background: var(--primary); color: #fff; border: none;
  border-radius: 6px; padding: 5px 10px;
  font-family: inherit; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; margin-top: 6px; transition: background 0.15s;
}
.pos-add-btn:hover { background: var(--primary-dark); }

/* ===== BILL PANEL ===== */
.pos-bill {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pos-bill-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pos-bill-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pos-customer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s;
}
.pos-input:focus { border-color: var(--primary); }
.pos-bill-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.pos-bill-items { display: flex; flex-direction: column; gap: 8px; }
.pos-bill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 10px;
}
.pos-bi-info { flex: 1; min-width: 0; }
.pos-bi-name { font-size: 0.8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-bi-sub  { font-size: 0.7rem; color: var(--muted); }
.pos-bi-qty  {
  display: flex; align-items: center; gap: 5px;
}
.pos-bi-qty button {
  width: 24px; height: 24px;
  border: 1.5px solid var(--border); border-radius: 50%;
  background: #fff; cursor: pointer; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.pos-bi-qty button:hover { border-color: var(--primary); color: var(--primary); }
.pos-bi-qty span { font-size: 0.88rem; font-weight: 700; min-width: 20px; text-align: center; }
.pos-bi-total { font-size: 0.85rem; font-weight: 800; color: var(--primary); min-width: 52px; text-align: right; }
.pos-bi-remove {
  background: none; border: none; cursor: pointer;
  color: #c62828; font-size: 0.9rem; padding: 2px; border-radius: 4px;
  transition: background 0.15s;
}
.pos-bi-remove:hover { background: #fce4ec; }

.pos-empty-bill {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 32px 0;
}
.pos-empty-bill .big { font-size: 2.5rem; margin-bottom: 8px; }

/* Totals block */
.pos-totals { background: #f8f9fa; border-radius: 8px; padding: 12px 14px; }
.pos-total-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 3px 0; }
.pos-total-row.grand { font-weight: 800; font-size: 1rem; color: var(--primary); padding-top: 8px; border-top: 2px solid var(--border); margin-top: 4px; }

/* Payment mode */
.pos-pay-modes { display: flex; gap: 8px; }
.pos-pay-mode {
  flex: 1; padding: 8px; text-align: center;
  border: 2px solid var(--border); border-radius: 8px;
  background: none; font-family: inherit; font-size: 0.8rem;
  font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.pos-pay-mode.active { border-color: var(--primary); background: #e8f5e9; color: var(--primary); }

/* Discount row */
.pos-disc-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.pos-disc-row label { color: var(--muted); font-weight: 600; white-space: nowrap; }
.pos-disc-input {
  width: 80px; padding: 6px 10px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 0.88rem; text-align: center; outline: none;
}
.pos-disc-input:focus { border-color: var(--primary); }

/* Cash change row */
.pos-cash-block { display: flex; flex-direction: column; gap: 8px; }
.pos-cash-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.pos-cash-row label { color: var(--muted); font-weight: 600; white-space: nowrap; min-width: 90px; }
.pos-cash-val { font-weight: 700; color: var(--primary); }

/* Generate bill button */
.pos-gen-btn {
  width: 100%; padding: 13px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.02em;
}
.pos-gen-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.pos-gen-btn:disabled { background: #aaa; cursor: not-allowed; transform: none; }

/* ===== STOCK STATUS PILLS (for inventory in staff portal) ===== */
.sbadge { display:inline-block; padding:3px 10px; border-radius:50px; font-size:0.76rem; font-weight:700; }
.sbadge-in  { background:#e8f5e9; color:#2e7d32; }
.sbadge-low { background:#fff8e1; color:#f57f17; }
.sbadge-out { background:#fce4ec; color:#b71c1c; }

/* ===== QUICK STOCK INPUT ===== */
.sinv-qty-input {
  width: 70px; border: 1.5px solid var(--border);
  border-radius: 6px; padding: 5px 8px;
  font-size: 0.88rem; font-weight: 700; text-align: center;
  font-family: inherit; outline: none; color: var(--text);
  transition: border-color 0.2s;
}
.sinv-qty-input:focus { border-color: var(--primary); }

/* ===== TOAST ===== */
.staff-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--text); color: #fff;
  padding: 12px 24px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s; z-index: 9999; white-space: nowrap;
}
.staff-toast.show { transform: translateX(-50%) translateY(0); }

/* ===== MODAL ===== */
.smodal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.2s;
  padding: 16px;
}
.smodal-overlay.open { opacity: 1; pointer-events: all; }
.smodal {
  background: var(--surface); border-radius: 16px;
  width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(20px); transition: transform 0.2s;
  overflow: hidden;
}
.smodal-overlay.open .smodal { transform: translateY(0); }
.smodal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.smodal-header h2 { font-size: 1.1rem; font-weight: 800; }
.smodal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.smodal-body { padding: 20px 22px 24px; }
.smodal-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ===== SALES HISTORY ===== */
.sales-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .pos-layout { grid-template-columns: 1fr 320px; }
}
@media (max-width: 900px) {
  .staff-main { margin-left: 0; }
  .staff-sidebar { transform: translateX(-100%); }
  .staff-sidebar.open { transform: translateX(0); }
  .staff-sidebar-toggle { display: block !important; }
  .pos-layout { grid-template-columns: 1fr; height: auto; }
  .pos-bill { height: auto; }
  .sstat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .sstat-row { grid-template-columns: 1fr; }
  .pos-product-grid { grid-template-columns: repeat(2, 1fr); }
  .sales-stat-row { grid-template-columns: 1fr; }
}

/* ===== STAFF PROMOTIONS ===== */

.spromo-how-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #1e1208 0%, #3d2010 100%);
  border-radius: 14px; padding: 18px 22px;
  margin-bottom: 18px; color: #fff;
  flex-wrap: wrap;
}
.spromo-how-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center; font-size: 0.78rem;
  line-height: 1.4; min-width: 110px; flex: 1;
}
.spromo-how-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff;
  font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.spromo-how-arrow { font-size: 1.4rem; color: rgba(255,255,255,0.4); flex-shrink: 0; }

.spromo-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 700px) { .spromo-stat-row { grid-template-columns: repeat(2,1fr); } }

.spromo-layout {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 18px; align-items: start;
}
@media (max-width: 900px) { .spromo-layout { grid-template-columns: 1fr; } }

.spromo-panel {
  background: #fff; border-radius: 12px;
  border: 1.5px solid var(--border);
  padding: 18px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.spromo-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--border);
}
.spromo-panel-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.spromo-panel-sub   { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.spromo-sel-all-wrap { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }

.spromo-search-wrap {
  position: relative; margin-bottom: 10px;
  display: flex; align-items: center;
}
.spromo-search-input {
  width: 100%; padding: 9px 36px 9px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.84rem; outline: none;
}
.spromo-search-input:focus { border-color: var(--primary); }
.spromo-search-clear {
  position: absolute; right: 8px;
  background: none; border: none; cursor: pointer;
  font-size: 0.8rem; color: var(--muted); padding: 4px;
}

.spromo-filter-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.spromo-filter-tab {
  padding: 5px 12px; border-radius: 20px;
  border: 1.5px solid var(--border); background: #f9fafb;
  font-family: inherit; font-size: 0.76rem; font-weight: 600;
  cursor: pointer; color: var(--muted); transition: all 0.15s;
}
.spromo-filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.spromo-customer-list { max-height: 340px; overflow-y: auto; }
.spromo-cust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  transition: background 0.12s; border: 1.5px solid transparent;
}
.spromo-cust-item:hover  { background: #f9fafb; }
.spromo-cust-item.selected { background: #fff8f0; border-color: var(--accent); }
.spromo-cust-item input[type="checkbox"] { accent-color: var(--primary); }
.spromo-cust-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.spromo-cust-name  { font-size: 0.84rem; font-weight: 600; }
.spromo-cust-phone { font-size: 0.74rem; color: var(--muted); }
.spromo-cust-source {
  margin-left: auto; font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.spromo-src-online  { background: #e3f2fd; color: #1565c0; }
.spromo-src-instore { background: #fff8e1; color: #f57f17; }
.spromo-empty-msg { text-align: center; color: var(--muted); font-size: 0.82rem; padding: 24px 12px; }

.spromo-selection-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1.5px solid var(--border);
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
}
.spromo-clear-link { background: none; border: none; cursor: pointer; color: var(--red); font-size: 0.78rem; font-weight: 700; font-family: inherit; }

.spromo-composer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.spromo-char-count { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.spromo-section-label { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

.spromo-templates { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.spromo-tpl-btn {
  padding: 6px 12px; border-radius: 20px;
  border: 1.5px solid var(--border); background: #f9fafb;
  font-family: inherit; font-size: 0.76rem; font-weight: 600;
  cursor: pointer; color: var(--text); transition: all 0.15s;
}
.spromo-tpl-btn:hover { border-color: var(--primary); color: var(--primary); }
.spromo-tpl-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.spromo-editor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 700px) { .spromo-editor-row { grid-template-columns: 1fr; } }

.spromo-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px; font-family: inherit; font-size: 0.84rem;
  resize: vertical; outline: none; transition: border-color 0.2s;
}
.spromo-textarea:focus { border-color: var(--primary); }

.spromo-var-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.spromo-var-label { font-size: 0.72rem; color: var(--muted); }
.spromo-var-chip {
  padding: 3px 10px; border-radius: 12px; background: #fff3e0;
  border: 1px solid #E67E22; font-size: 0.72rem; font-weight: 700;
  color: var(--primary); cursor: pointer; font-family: monospace;
}
.spromo-var-chip:hover { background: var(--primary); color: #fff; }

/* Phone mockup */
.spromo-phone-mockup {
  border-radius: 16px; overflow: hidden;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: #ece5dd; height: 100%;
}
.spromo-phone-topbar {
  background: #075e54; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
}
.spromo-phone-dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.3); flex-shrink: 0; }
.spromo-phone-contact { color: #fff; font-weight: 700; font-size: 0.88rem; }
.spromo-phone-body { padding: 14px; min-height: 120px; }
.spromo-preview-bubble {
  background: #fff; border-radius: 0 10px 10px 10px;
  padding: 10px 12px; font-size: 0.8rem; line-height: 1.6;
  max-width: 90%; white-space: pre-wrap; word-break: break-word;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.spromo-preview-placeholder { color: #aaa; font-style: italic; }
.spromo-preview-time { font-size: 0.66rem; color: #999; margin-top: 6px; text-align: right; }

.spromo-cta-wrap { margin-top: 4px; }
.spromo-send-btn {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px; font-family: inherit;
  transition: opacity 0.2s;
}
.spromo-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.spromo-send-hint { font-size: 0.74rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* Staff Bulk Send Modal */
.sbulk-send-modal {
  max-width: 520px; padding: 0;
  border-radius: 16px; overflow: hidden;
}
.sbulk-modal-top {
  background: linear-gradient(135deg, #25d366, #075e54);
  padding: 18px 22px; display: flex; align-items: center; gap: 14px;
}
.sbulk-modal-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.sbulk-modal-title { color: #fff; font-weight: 800; font-size: 1rem; }
.sbulk-modal-sub   { color: rgba(255,255,255,0.8); font-size: 0.8rem; margin-top: 2px; }

.sbulk-progress-wrap { padding: 16px 22px 0; }
.sbulk-progress-track { height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.sbulk-progress-fill  { height: 100%; background: linear-gradient(90deg,#25d366,#128c7e); border-radius: 3px; transition: width 0.4s ease; }
.sbulk-progress-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.sbulk-customer-card {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 22px 0; background: #f9fafb;
  border-radius: 10px; padding: 12px 16px;
  border: 1.5px solid var(--border);
}
.sbulk-customer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sbulk-customer-name  { font-weight: 700; font-size: 0.88rem; }
.sbulk-customer-phone { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

.sbulk-preview-label { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 22px 4px; }
.sbulk-msg-preview { margin: 0 22px; background: #f9fafb; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 0.8rem; line-height: 1.6; max-height: 100px; overflow-y: auto; white-space: pre-wrap; color: var(--text); }
.sbulk-step-label { margin: 12px 22px; font-size: 0.76rem; color: var(--muted); line-height: 1.6; }
.sbulk-step-num { background: var(--primary); color: #fff; border-radius: 12px; padding: 2px 8px; font-size: 0.68rem; font-weight: 700; margin-right: 4px; }

.sbulk-actions { padding: 14px 22px 22px; }
.sbulk-wa-btn {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; margin-bottom: 10px;
}
.sbulk-secondary-actions { display: flex; gap: 8px; }
.sbulk-sent-btn {
  flex: 1; padding: 10px; background: #e8f5e9; color: #2e7d32;
  border: 1.5px solid #a5d6a7; border-radius: 8px; font-weight: 700;
  font-size: 0.82rem; cursor: pointer; font-family: inherit;
}
.sbulk-skip-btn {
  flex: 1; padding: 10px; background: #fff8e1; color: #f57f17;
  border: 1.5px solid #ffe082; border-radius: 8px; font-weight: 700;
  font-size: 0.82rem; cursor: pointer; font-family: inherit;
}
.sbulk-stop-btn {
  padding: 10px 14px; background: #fce4ec; color: #c62828;
  border: 1.5px solid #ef9a9a; border-radius: 8px; font-weight: 700;
  font-size: 0.82rem; cursor: pointer; font-family: inherit;
}

.sbulk-done-wrap { padding: 36px 28px; text-align: center; }
.sbulk-done-icon  { font-size: 3rem; margin-bottom: 12px; }
.sbulk-done-title { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.sbulk-done-summary { font-size: 0.84rem; color: var(--muted); margin-bottom: 20px; }
.sbulk-done-stats { display: flex; gap: 16px; justify-content: center; margin-bottom: 12px; }
.sbulk-done-stat  { flex: 1; max-width: 120px; border-radius: 12px; padding: 16px 12px; text-align: center; font-size: 0.8rem; font-weight: 600; }
.sbulk-done-val   { font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.sbulk-done-sent     { background: #e8f5e9; color: #2e7d32; }
.sbulk-done-skipped  { background: #fff8e1; color: #f57f17; }

/* ===== STAFF CATALOGUE ===== */

.scat-hero {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #1e1208, #3d2010);
  border-radius: 14px; padding: 22px 26px;
  margin-bottom: 20px; color: #fff;
}
.scat-hero-icon { font-size: 2.4rem; }
.scat-hero-title { font-size: 1.2rem; font-weight: 800; margin: 0; }
.scat-hero-sub { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

.scat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .scat-layout { grid-template-columns: 1fr; } }

.scat-panel {
  background: #fff; border-radius: 12px;
  border: 1.5px solid var(--border); padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.scat-section-label { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

.scat-wa-wrap { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.scat-wa-cc { padding: 10px 12px; background: #f9fafb; border-right: 1.5px solid var(--border); font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
.scat-wa-input { flex: 1; border: none; padding: 10px 12px; font-family: inherit; font-size: 0.9rem; outline: none; }

.scat-hint { font-size: 0.74rem; color: var(--muted); margin-top: 5px; }

.scat-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scat-filter-group { display: flex; flex-direction: column; gap: 4px; }
.scat-filter-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.scat-select {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-family: inherit; font-size: 0.82rem;
  outline: none; background: #fff;
}

.scat-options { display: flex; flex-direction: column; gap: 8px; }
.scat-option { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; cursor: pointer; }
.scat-option input { accent-color: var(--primary); }

.scat-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.scat-actions .sbtn { width: 100%; padding: 12px; font-size: 0.9rem; justify-content: center; }

.sbtn-primary {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 18px; font-family: inherit; font-weight: 700;
  font-size: 0.88rem; cursor: pointer; display: inline-flex;
  align-items: center; gap: 6px; transition: opacity 0.2s;
}
.sbtn-primary:hover { opacity: 0.9; }

.scat-preview-box {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 14px; max-height: 500px; overflow-y: auto;
  background: #fafafa; font-size: 0.82rem;
}
.scat-cat-block { margin-bottom: 16px; }
.scat-cat-title {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: #fff;
  background: var(--primary); padding: 5px 10px; border-radius: 6px;
  margin-bottom: 8px; display: inline-block;
}
.scat-product-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; border-bottom: 1px solid #f0f0f0;
}
.scat-product-row:last-child { border-bottom: none; }
.scat-product-row.scat-row-out { opacity: 0.5; }
.scat-product-emoji { font-size: 1.1rem; flex-shrink: 0; }
.scat-product-name  { flex: 1; font-weight: 500; font-size: 0.82rem; }
.scat-product-unit  { font-size: 0.74rem; color: var(--muted); }
.scat-product-price { font-weight: 700; color: var(--primary); font-size: 0.84rem; }
.scat-product-mrp   { font-size: 0.72rem; color: var(--muted); text-decoration: line-through; }
.scat-product-oos   { font-size: 0.68rem; font-weight: 700; color: #c62828; background: #fce4ec; padding: 2px 7px; border-radius: 10px; }

/* Staff auto-send modal extras */
.sbulk-pause-btn {
  flex: 1; padding: 10px; background: #fff8e1; color: #f57f17;
  border: 1.5px solid #ffe082; border-radius: 8px;
  font-weight: 700; font-size: 0.82rem; cursor: pointer; font-family: inherit;
}

/* ===== COUPON ROLLOUT IN PROMOTIONS ===== */
.spromo-coupon-rollout {
  margin: 16px 0 0;
  border: 1.5px solid #e8f5e9;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
  overflow: hidden;
}
.spromo-coupon-header {
  padding: 12px 16px;
}
.spromo-coupon-toggle-wrap {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-weight: 600; font-size: 0.88rem; color: #2e7d32;
}
.spromo-coupon-toggle-wrap input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: #2e7d32; cursor: pointer;
  flex-shrink: 0;
}
.spromo-coupon-toggle-label { user-select: none; }
.spromo-coupon-body {
  padding: 0 16px 14px;
  border-top: 1px solid #c8e6c9;
}
.spromo-coupon-select-wrap {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap;
}
.spromo-coupon-select {
  flex: 1; min-width: 200px; padding: 9px 12px;
  border: 1.5px solid #a5d6a7; border-radius: 8px;
  background: #fff; font-size: 0.85rem; font-family: inherit;
  color: #1b5e20; cursor: pointer;
  outline: none;
}
.spromo-coupon-select:focus { border-color: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,0.1); }
.spromo-coupon-preview-tag {
  display: flex; align-items: center; gap: 6px;
  background: #1b5e20; color: #fff;
  border-radius: 20px; padding: 5px 12px;
  font-size: 0.78rem; font-weight: 700;
}
.spromo-cpn-code {
  font-size: 0.8rem; letter-spacing: 0.08em;
}
.spromo-cpn-disc {
  background: rgba(255,255,255,0.2);
  padding: 2px 7px; border-radius: 10px; font-size: 0.72rem;
}
.spromo-coupon-hint {
  margin: 8px 0 0; font-size: 0.76rem; color: #388e3c; line-height: 1.4;
}


/* ===== STAFF PRODUCT MODAL FORM ===== */
.sform-row {
  display: flex; gap: 12px;
}
.sform-row .sform-group { flex: 1; }
.spf-input {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.85rem; font-family: inherit; outline: none;
  background: #fff; transition: border-color 0.2s;
  box-sizing: border-box;
}
.spf-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,69,19,0.1); }
.srequired { color: #c62828; font-size: 0.75rem; }
.sform-err {
  color: #c62828; background: #fce4ec; border: 1px solid #ef9a9a;
  border-radius: 8px; padding: 9px 13px; font-size: 0.82rem;
  margin-bottom: 10px;
}
#sProductModalOverlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 3000; padding: 16px;
}

/* ===== POS SYSTEM ===== */
#spage-pos { padding: 0 !important; overflow: hidden !important; }
#spage-pos.active { display: flex !important; flex-direction: column; }
.pos-container { display:flex; flex-direction:column; height:100%; background:#f5f6fa; overflow:hidden; }
.pos-header { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; background:#fff; border-bottom:1.5px solid var(--border); flex-shrink:0; }
.pos-title { font-size:1.05rem; font-weight:800; color:var(--text); margin:0; }
.pos-body { display:flex; flex:1; overflow:hidden; }
.pos-left-panel { flex:1; display:flex; flex-direction:column; border-right:1.5px solid var(--border); background:#fff; overflow:hidden; min-width:0; }
.pos-search-wrap { padding:10px 14px; border-bottom:1px solid var(--border); flex-shrink:0; }
.pos-search-input { width:100%; padding:8px 13px; border:1.5px solid var(--border); border-radius:8px; font-size:0.88rem; outline:none; }
.pos-search-input:focus { border-color:var(--primary); }
.pos-cat-bar { display:flex; gap:6px; padding:8px 14px; border-bottom:1px solid var(--border); overflow-x:auto; flex-shrink:0; }
.pos-cat-bar::-webkit-scrollbar { height:3px; }
.pos-cat-btn { padding:4px 12px; border-radius:20px; border:1.5px solid var(--border); background:#f5f6fa; font-size:0.76rem; font-weight:600; cursor:pointer; white-space:nowrap; color:var(--text); transition:all .15s; }
.pos-cat-btn.active, .pos-cat-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.pos-product-grid { flex:1; overflow-y:auto; padding:12px; display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; align-content:start; }
.pos-product-card { background:#fafafa; border:1.5px solid var(--border); border-radius:10px; padding:12px 8px; cursor:pointer; transition:all .15s; text-align:center; user-select:none; }
.pos-product-card:hover { border-color:var(--primary); background:#f5fff6; transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.08); }
.pos-product-emoji { font-size:1.9rem; line-height:1; }
.pos-product-name { font-size:0.73rem; font-weight:700; color:var(--text); margin:5px 0 2px; line-height:1.3; }
.pos-product-price { font-size:0.82rem; font-weight:800; color:var(--primary); }
.pos-product-weight { font-size:0.67rem; color:var(--muted); }
.pos-no-results { grid-column:1/-1; text-align:center; padding:30px; color:var(--muted); font-size:0.88rem; }
.pos-right-panel { width:360px; display:flex; flex-direction:column; background:#f9f7f5; overflow-y:auto; flex-shrink:0; border-left:1.5px solid var(--border); }
.pos-bill-type-bar { display:flex; gap:18px; padding:9px 14px; background:#fff; border-bottom:1px solid var(--border); flex-shrink:0; }
.pos-bill-type-opt { display:flex; align-items:center; gap:6px; font-size:0.82rem; font-weight:600; color:var(--text); cursor:pointer; }
.pos-section { background:#fff; border-bottom:1px solid var(--border); padding:11px 14px; }
.pos-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.pos-section-label { font-size:0.75rem; font-weight:700; color:var(--text); text-transform:uppercase; letter-spacing:.04em; }
.pos-guest-label { display:flex; align-items:center; gap:5px; font-size:0.75rem; color:var(--muted); cursor:pointer; font-weight:600; }
.pos-customer-fields { display:flex; flex-direction:column; gap:7px; }
.pos-input { width:100%; padding:8px 11px; border:1.5px solid var(--border); border-radius:7px; font-size:0.84rem; outline:none; background:#fafafa; transition:border-color .15s; }
.pos-input:focus { border-color:var(--primary); background:#fff; }
.pos-input.pos-error { border-color:#dc2626; }
.pos-cart-section { flex:1; }
.pos-cart-badge { background:var(--primary); color:#fff; font-size:0.7rem; font-weight:700; padding:2px 8px; border-radius:20px; }
.pos-cart-list { max-height:220px; overflow-y:auto; }
.pos-cart-empty { color:var(--muted); font-size:0.82rem; text-align:center; padding:18px 0; }
.pos-cart-item { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px dashed var(--border); }
.pos-cart-item:last-child { border-bottom:none; }
.pos-cart-item-emoji { font-size:1.2rem; flex-shrink:0; }
.pos-cart-item-info { flex:1; min-width:0; }
.pos-cart-item-name { font-size:0.76rem; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pos-cart-item-price { font-size:0.7rem; color:var(--muted); }
.pos-cart-qty { display:flex; align-items:center; gap:5px; flex-shrink:0; }
.pos-qty-btn { width:22px; height:22px; border-radius:50%; border:1.5px solid var(--border); background:#fff; cursor:pointer; font-size:0.85rem; font-weight:700; display:flex; align-items:center; justify-content:center; transition:all .15s; color:var(--text); }
.pos-qty-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.pos-qty-val { font-size:0.82rem; font-weight:700; min-width:18px; text-align:center; }
.pos-cart-item-total { font-size:0.8rem; font-weight:800; color:var(--primary); min-width:46px; text-align:right; flex-shrink:0; }
.pos-discount-row { display:flex; gap:8px; align-items:center; }
.pos-select { padding:8px 10px; border:1.5px solid var(--border); border-radius:7px; font-size:0.82rem; outline:none; background:#fafafa; font-weight:600; flex-shrink:0; cursor:pointer; }
.pos-select:focus { border-color:var(--primary); }
.pos-coupon-input-row { display:flex; gap:8px; }
.pos-coupon-tag { margin-top:8px; padding:7px 12px; background:#f0fdf4; border:1.5px solid #86efac; border-radius:7px; font-size:0.8rem; color:#15803d; font-weight:600; display:flex; align-items:center; justify-content:space-between; }
.pos-coupon-remove-btn { cursor:pointer; color:#dc2626; font-weight:800; font-size:0.85rem; background:none; border:none; padding:0; }
.pos-totals-box { padding:12px 14px; background:#fff; border-bottom:1px solid var(--border); }
.pos-total-row { display:flex; justify-content:space-between; font-size:0.84rem; padding:3px 0; color:var(--text); }
.pos-grand-row { font-size:1rem; font-weight:800; padding-top:8px; margin-top:5px; border-top:2px solid var(--border); color:var(--primary); }
.pos-disc-val { color:#15803d; font-weight:700; }
.pos-action-bar { display:flex; flex-direction:column; gap:8px; padding:12px 14px; background:#fff; }
.pos-btn { padding:9px 15px; border-radius:8px; border:none; cursor:pointer; font-size:0.84rem; font-weight:700; transition:all .15s; text-align:center; }
.pos-btn-primary { background:var(--primary); color:#fff; }
.pos-btn-primary:hover { filter:brightness(0.88); }
.pos-btn-outline { background:#fff; border:1.5px solid var(--border); color:var(--text); }
.pos-btn-outline:hover { border-color:var(--primary); color:var(--primary); }
.pos-btn-whatsapp { background:#25D366; color:#fff; }
.pos-btn-whatsapp:hover { background:#1da851; }
.pos-btn-ghost { background:transparent; border:1.5px solid #fca5a5; color:#dc2626; }
.pos-btn-ghost:hover { background:#fef2f2; }
.pos-full-btn { width:100%; }
.pos-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:8000; display:flex; align-items:center; justify-content:center; padding:16px; }
.pos-modal { background:#fff; border-radius:14px; max-width:460px; width:100%; max-height:90vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.pos-modal-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1.5px solid var(--border); font-weight:800; font-size:0.95rem; flex-shrink:0; }
.pos-modal-close { background:none; border:none; font-size:1rem; cursor:pointer; color:var(--muted); width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.pos-modal-close:hover { background:#f3f4f6; }
.pos-bill-preview { flex:1; overflow-y:auto; padding:18px; background:#fafafa; }
.pos-modal-footer { display:flex; gap:8px; padding:12px 18px; border-top:1.5px solid var(--border); flex-shrink:0; }
.pos-modal-footer .pos-btn { flex:1; }
