/* =====================================================
   PharmaPOS — Professional Light Theme
   Fonts: Geist (headings) + Inter (body)
===================================================== */

:root {
  --bg:          #f4f6f9;
  --bg-card:     #ffffff;
  --bg-input:    #f8fafc;
  --bg-hover:    #f0f4f8;
  --border:      #e2e8f0;
  --border2:     #cbd5e1;
  --text:        #0f172a;
  --text2:       #475569;
  --text3:       #94a3b8;
  --blue:        #2563eb;
  --blue-light:  #eff6ff;
  --blue-border: #bfdbfe;
  --blue-dark:   #1d4ed8;
  --green:       #16a34a;
  --green-light: #f0fdf4;
  --amber:       #d97706;
  --amber-light: #fffbeb;
  --red:         #dc2626;
  --red-light:   #fef2f2;
  --purple:      #7c3aed;
  --purple-light:#f5f3ff;
  --sidebar-bg:  #1e293b;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 6px rgba(0,0,0,.07);
  --shadow-lg:   0 10px 25px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
input, select, button, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── App Shell ── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ── */
.sidebar {
  width: 230px; min-width: 230px;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand-icon {
  width: 36px; height: 36px; background: var(--blue);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 18px; color: white; flex-shrink: 0;
}
.brand-text { font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 700; color: #f1f5f9; letter-spacing: -.3px; }
.brand-sub { font-size: 10px; color: #64748b; margin-top: 1px; }
.nav-section-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #475569; padding: 16px 16px 5px; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; margin: 1px 8px;
  border-radius: var(--radius); font-size: 13px; color: #94a3b8;
  cursor: pointer; transition: all .15s;
}
.nav-item:hover { background: #334155; color: #e2e8f0; }
.nav-item.active { background: rgba(59,130,246,.15); color: #93c5fd; border-left: 2px solid #3b82f6; }
.nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-label { flex: 1; }
.nav-badge { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 20px; }
.nav-badge.warn { background: rgba(217,119,6,.2); color: #fbbf24; }
.nav-badge.info { background: rgba(59,130,246,.2); color: #93c5fd; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid rgba(255,255,255,.06); padding: 8px 0; }
.cashier-info {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 4px 8px;
  background: rgba(255,255,255,.04); border-radius: var(--radius);
}
.cashier-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
}
.cashier-name { font-size: 12px; font-weight: 500; color: #e2e8f0; }
.cashier-role { font-size: 10px; color: #64748b; }

/* ── Main Area ── */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  height: 52px; flex-shrink: 0;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; box-shadow: var(--shadow-sm);
}
.page-breadcrumb { font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.status-pill {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--text2); background: var(--bg); padding: 4px 10px;
  border-radius: 20px; border: 1px solid var(--border);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.clock { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }
.page-content { flex: 1; overflow-y: auto; }

/* ── POS Layout ── */
.pos-root { display: grid; grid-template-columns: 1fr 370px; height: calc(100vh - 52px); overflow: hidden; }
.pos-left { display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow: hidden; background: var(--bg); }

/* Search */
.search-wrap { display: flex; flex-direction: column; gap: 4px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0 14px; height: 42px;
  box-shadow: var(--shadow-sm); transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--blue); }
.search-icon { color: var(--text3); font-size: 14px; }
.search-input { flex: 1; border: none; background: none; outline: none; font-size: 13px; color: var(--text); }
.search-input::placeholder { color: var(--text3); }
.search-clear { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 12px; padding: 2px 5px; border-radius: 4px; }
.search-clear:hover { background: var(--bg); color: var(--text); }
.ai-search-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--blue-light); border: 1px solid var(--blue-border);
  color: var(--blue); border-radius: 6px;
  padding: 4px 10px; font-size: 11px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.ai-search-btn:hover:not(:disabled) { background: var(--blue); color: white; }
.ai-search-btn:disabled { opacity: .5; cursor: not-allowed; }
.ai-search-btn.loading { opacity: .6; cursor: wait; }
.search-hint { font-size: 11px; color: var(--text3); }
kbd { background: var(--bg); border: 1px solid var(--border2); border-radius: 4px; padding: 1px 5px; font-size: 10px; color: var(--text2); }

/* Categories */
.cat-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; flex-shrink: 0; }
.cat-strip::-webkit-scrollbar { height: 3px; }
.cat-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--bg-card);
  font-size: 12px; color: var(--text2); cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: all .15s;
}
.cat-pill:hover { border-color: var(--border2); color: var(--text); }
.cat-pill.active { background: var(--blue); border-color: var(--blue); color: white; font-weight: 500; }

.product-stats { font-size: 12px; color: var(--text3); display: flex; gap: 8px; flex-shrink: 0; }
.sep { color: var(--border2); }
.stat-warn { color: var(--amber); }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 8px; overflow-y: auto; align-content: start; }
.product-grid::-webkit-scrollbar { width: 4px; }
.prod-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px; cursor: pointer;
  transition: all .15s; box-shadow: var(--shadow-sm); position: relative;
}
.prod-card:hover:not(.oos) { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); }
.prod-card.in-cart { border-color: var(--blue); background: var(--blue-light); }
.prod-card.oos { opacity: .4; cursor: not-allowed; }
.prod-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.prod-emoji { font-size: 26px; }
.cart-qty-badge { background: var(--blue); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 20px; }
.rx-badge { background: var(--red-light); color: var(--red); font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 4px; border: 1px solid #fecaca; }
.prod-name { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 2px; line-height: 1.3; }
.prod-sku { font-size: 10px; color: var(--text3); margin-bottom: 7px; }
.prod-bottom { display: flex; justify-content: space-between; align-items: center; }
.prod-price { font-size: 14px; font-weight: 700; color: var(--blue); }
.stock-badge { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 500; }
.stock-badge.ok  { background: var(--green-light); color: var(--green); }
.stock-badge.low { background: var(--amber-light); color: var(--amber); }
.stock-badge.out { background: var(--red-light);   color: var(--red);   }
.empty-grid { grid-column: 1/-1; text-align: center; padding: 60px 0; color: var(--text3); }
.empty-icon { font-size: 36px; margin-bottom: 8px; }

/* ── Cart Panel ── */
.pos-right { border-left: 1px solid var(--border); background: var(--bg-card); display: flex; flex-direction: column; overflow: hidden; }
.cart-hdr { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cart-hdr-left { display: flex; align-items: center; gap: 8px; }
.cart-title { font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 600; }
.cart-count { font-size: 11px; background: var(--blue-light); color: var(--blue); padding: 2px 8px; border-radius: 20px; border: 1px solid var(--blue-border); font-weight: 500; }
.btn-hold { background: none; border: 1px solid var(--border2); color: var(--text2); border-radius: var(--radius); padding: 4px 10px; font-size: 11px; cursor: pointer; }
.customer-row { display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.customer-icon { font-size: 14px; color: var(--text3); }
.customer-input { flex: 1; border: none; background: none; outline: none; font-size: 12px; color: var(--text); }
.customer-input::placeholder { color: var(--text3); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px; }
.cart-body::-webkit-scrollbar { width: 3px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 150px; gap: 6px; color: var(--text3); }
.cart-empty-icon { font-size: 34px; opacity: .4; }
.cart-empty-text { font-size: 13px; font-weight: 500; }
.cart-empty-sub { font-size: 11px; }
.cart-item { display: flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 9px; margin-bottom: 5px; }
.cart-item:hover { border-color: var(--border2); }
.ci-emoji { font-size: 18px; flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-unit { font-size: 11px; color: var(--text3); }
.ci-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qty-btn { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border2); background: var(--bg-card); color: var(--text); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .1s; }
.qty-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.qty-val { min-width: 22px; text-align: center; font-size: 13px; font-weight: 600; }
.ci-total { font-size: 13px; font-weight: 600; color: var(--blue); min-width: 58px; text-align: right; }
.ci-del { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 11px; border-radius: 4px; padding: 2px 4px; }
.ci-del:hover { color: var(--red); background: var(--red-light); }

/* AI Recommendations */
.ai-reco-section { margin: 6px 8px; background: linear-gradient(135deg,#eff6ff,#f5f3ff); border: 1px solid var(--blue-border); border-radius: var(--radius); padding: 10px 12px; }
.ai-reco-hdr { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ai-reco-icon { color: var(--blue); font-size: 13px; }
.ai-reco-label { font-size: 11px; font-weight: 600; color: var(--blue); }
.ai-reco-loading { font-size: 10px; color: var(--text3); margin-left: auto; }
.ai-reco-reason { font-size: 11px; color: var(--text2); margin-bottom: 7px; }
.ai-reco-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.ai-reco-chip { display: flex; align-items: center; gap: 4px; background: white; border: 1px solid var(--blue-border); border-radius: 20px; padding: 3px 10px; font-size: 11px; color: var(--text); cursor: pointer; transition: all .15s; }
.ai-reco-chip:hover { background: var(--blue); color: white; border-color: var(--blue); }
.chip-name { font-weight: 500; }
.chip-price { color: var(--blue); font-weight: 600; }
.ai-reco-chip:hover .chip-price { color: rgba(255,255,255,.85); }

/* Cart Totals */
.cart-totals { padding: 10px 13px; border-top: 1px solid var(--border); flex-shrink: 0; }
.totals-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text2); margin-bottom: 5px; }
.totals-row.grand { font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); border-top: 1.5px solid var(--border); padding-top: 9px; margin-top: 4px; margin-bottom: 0; }
.discount-ctrl { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 8px; }
.discount-input { width: 50px; height: 26px; background: var(--bg-input); border: 1px solid var(--border2); border-radius: 6px; text-align: right; font-size: 12px; color: var(--text); padding: 0 6px; outline: none; }
.discount-input:focus { border-color: var(--blue); }
.pct-sign { font-size: 11px; color: var(--text3); }
.discount-val { color: var(--green); font-weight: 500; }

/* Payment */
.pay-section { padding: 9px 13px; border-top: 1px solid var(--border); flex-shrink: 0; }
.pay-label { font-size: 11px; color: var(--text3); margin-bottom: 7px; font-weight: 500; }
.pay-methods { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.pay-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 10px; color: var(--text2); cursor: pointer; transition: all .15s; }
.pay-btn span:first-child { font-size: 16px; }
.pay-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.pay-btn.active { background: var(--blue); border-color: var(--blue); color: white; font-weight: 500; }

/* Cash */
.cash-row { padding: 8px 13px; display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.cash-input-wrap { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cash-input-wrap label { font-size: 10px; color: var(--text3); font-weight: 500; }
.cash-input { height: 36px; background: var(--bg-input); border: 1.5px solid var(--border2); border-radius: var(--radius); padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--text); outline: none; width: 100%; }
.cash-input:focus { border-color: var(--blue); }
.change-display { text-align: center; padding: 5px 10px; border-radius: var(--radius); min-width: 78px; }
.change-display.ok  { background: var(--green-light); }
.change-display.err { background: var(--red-light); }
.change-label { font-size: 10px; color: var(--text3); }
.change-val { font-size: 14px; font-weight: 700; }
.change-display.ok  .change-val { color: var(--green); }
.change-display.err .change-val { color: var(--red); }
.quick-cash { display: flex; gap: 5px; padding: 0 13px 7px; flex-shrink: 0; }
.quick-btn { flex: 1; padding: 5px 0; background: var(--bg); border: 1px solid var(--border2); border-radius: 6px; font-size: 11px; color: var(--text2); cursor: pointer; transition: all .15s; }
.quick-btn:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue-border); }

/* Cart Actions */
.cart-actions { display: flex; gap: 7px; padding: 11px 13px; border-top: 1px solid var(--border); flex-shrink: 0; }
.btn-clear-cart { height: 44px; padding: 0 13px; background: none; border: 1.5px solid var(--border2); border-radius: var(--radius); font-size: 13px; color: var(--text2); cursor: pointer; transition: all .15s; }
.btn-clear-cart:hover:not(:disabled) { border-color: var(--red); color: var(--red); background: var(--red-light); }
.btn-clear-cart:disabled { opacity: .4; cursor: not-allowed; }
.btn-checkout { flex: 1; height: 44px; background: var(--blue); border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: white; cursor: pointer; font-family: 'Geist', sans-serif; transition: all .15s; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.btn-checkout:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }
.btn-checkout:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* ── Modals ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadein .2s ease; backdrop-filter: blur(2px); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; animation: slidein .2s ease; width: 460px; max-width: 96vw; max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
@keyframes slidein { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.modal-title { font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 14px; width: 28px; height: 28px; border-radius: 6px; }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-footer { display: flex; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--border); }
.btn-cancel { flex: 1; height: 40px; background: none; border: 1.5px solid var(--border2); border-radius: var(--radius); font-size: 13px; color: var(--text2); cursor: pointer; }
.btn-cancel:hover { background: var(--bg); }
.btn-confirm { flex: 1; height: 40px; background: var(--blue); border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: white; cursor: pointer; font-family: 'Geist', sans-serif; box-shadow: 0 2px 6px rgba(37,99,235,.3); }
.btn-confirm:hover { background: var(--blue-dark); }
.btn-confirm:disabled { opacity: .5; cursor: not-allowed; }
.btn-print { flex: 1; height: 40px; background: var(--bg); border: 1.5px solid var(--border2); border-radius: var(--radius); font-size: 13px; color: var(--text); cursor: pointer; }
.btn-print:hover { background: var(--bg-hover); }
.form-modal { width: 580px; }

/* Confirm rows — NO nested quotes, just separate classes */
.confirm-summary { display: flex; flex-direction: column; gap: 10px; }
.confirm-row       { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); }
.confirm-row-green { display: flex; justify-content: space-between; font-size: 13px; color: var(--green); }
.confirm-row-total { display: flex; justify-content: space-between; font-family: 'Geist', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); }
.confirm-divider { height: 1px; background: var(--border); }
.method-badge { background: var(--blue-light); color: var(--blue); padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; border: 1px solid var(--blue-border); }

/* Receipt */
.receipt-modal { width: 360px; }
.receipt-print { padding: 20px; font-family: 'Courier New', monospace; font-size: 12px; overflow-y: auto; }
.receipt-logo { font-family: 'Geist', sans-serif; font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 2px; color: var(--blue); }
.receipt-shop { text-align: center; font-size: 13px; font-weight: 600; }
.receipt-addr { text-align: center; font-size: 10px; color: var(--text3); margin-bottom: 6px; }
.receipt-divider { text-align: center; color: var(--text3); margin: 6px 0; font-size: 11px; }
.receipt-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--text2); margin-bottom: 4px; }
.receipt-customer { font-size: 11px; color: var(--text2); margin-bottom: 2px; }
.receipt-item-hdr { display: grid; grid-template-columns: 1fr 30px 60px 60px; font-size: 10px; font-weight: 700; color: var(--text3); margin-bottom: 4px; gap: 4px; }
.receipt-item-row { display: grid; grid-template-columns: 1fr 30px 60px 60px; font-size: 11px; margin-bottom: 3px; gap: 4px; align-items: start; }
.receipt-totals { margin-top: 6px; }
.receipt-total-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text2); margin-bottom: 3px; }
.receipt-total-row.grand { font-size: 14px; font-weight: 700; color: var(--text); border-top: 1px dashed var(--border2); padding-top: 4px; margin-top: 4px; }
.receipt-footer { text-align: center; margin-top: 8px; font-size: 12px; font-weight: 600; }
.receipt-footer.small { font-size: 10px; font-weight: 400; color: var(--text3); }
.receipt-actions { display: flex; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--border); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea { height: 38px; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0 12px; font-size: 13px; color: var(--text); outline: none; width: 100%; }
.form-group textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 70px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }

/* ── AI Chat ── */
.ai-fab-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 500; }
.ai-fab { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); border: none; color: white; font-size: 22px; cursor: pointer; box-shadow: 0 4px 14px rgba(37,99,235,.4); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.ai-fab:hover { transform: scale(1.08); }
.ai-panel { position: fixed; bottom: 24px; right: 24px; width: 360px; height: 580px; max-height: 85vh; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); display: flex; flex-direction: column; z-index: 500; box-shadow: var(--shadow-lg); animation: slidein .2s ease; overflow: hidden; }
.ai-panel-hdr { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--blue), #7c3aed); flex-shrink: 0; }
.ai-panel-title { display: flex; align-items: center; gap: 10px; }
.ai-title-icon { font-size: 18px; color: rgba(255,255,255,.9); }
.ai-title-text { font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 600; color: white; }
.ai-title-sub { font-size: 10px; color: rgba(255,255,255,.7); }
.ai-hdr-actions { display: flex; gap: 4px; }
.ai-hdr-btn { background: rgba(255,255,255,.15); border: none; color: white; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.ai-hdr-btn:hover { background: rgba(255,255,255,.25); }
.ai-context-chips { display: flex; gap: 5px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; overflow-x: auto; }
.ctx-chip { font-size: 10px; padding: 2px 8px; border-radius: 20px; white-space: nowrap; font-weight: 500; }
.ctx-chip.cart  { background: var(--blue-light);   color: var(--blue);  border: 1px solid var(--blue-border); }
.ctx-chip.inv   { background: var(--amber-light);  color: var(--amber); border: 1px solid #fde68a; }
.ctx-chip.sales { background: var(--green-light);  color: var(--green); border: 1px solid #bbf7d0; }
.ai-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-messages::-webkit-scrollbar { width: 3px; }
.ai-welcome { text-align: center; padding: 16px 8px 8px; }
.ai-welcome-icon { font-size: 28px; margin-bottom: 8px; color: var(--blue); }
.ai-welcome-text { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.ai-welcome-sub { font-size: 11px; color: var(--text3); }
.ai-quick-btns { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.ai-quick-btn { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: 12px; color: var(--text2); cursor: pointer; text-align: left; transition: all .15s; }
.ai-quick-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ai-msg — role-based via separate classes, no nested quotes */
.ai-msg { display: flex; align-items: flex-start; gap: 7px; }
.ai-msg.user { flex-direction: row-reverse; }
.ai-msg.assistant { flex-direction: row; }
.ai-msg-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--blue), #7c3aed); display: flex; align-items: center; justify-content: center; font-size: 13px; color: white; }
.ai-msg-bubble { max-width: 82%; padding: 9px 12px; border-radius: var(--radius-lg); font-size: 12px; line-height: 1.6; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-top-left-radius: 4px; }
.ai-msg-bubble p { margin: 0; }
.ai-msg-bubble p + p { margin-top: 4px; }
.ai-msg-bubble.user-bubble { background: var(--blue); color: white; border: none; border-top-left-radius: var(--radius-lg); border-top-right-radius: 4px; }
.ai-msg-bubble.thinking { display: flex; gap: 5px; align-items: center; padding: 12px 16px; }
.ai-msg-bubble.thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); animation: bounce .9s infinite; display: inline-block; }
.ai-msg-bubble.thinking span:nth-child(2) { animation-delay: .15s; }
.ai-msg-bubble.thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
.ai-input-wrap { display: flex; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--border); flex-shrink: 0; background: var(--bg); }
.ai-input { flex: 1; height: 38px; background: var(--bg-card); border: 1.5px solid var(--border2); border-radius: var(--radius); padding: 0 12px; font-size: 12px; color: var(--text); outline: none; }
.ai-input:focus { border-color: var(--blue); }
.ai-input::placeholder { color: var(--text3); }
.ai-input:disabled { opacity: .6; }
.ai-send-btn { width: 38px; height: 38px; background: var(--blue); border: none; color: white; border-radius: var(--radius); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.ai-send-btn:hover:not(:disabled) { background: var(--blue-dark); }
.ai-send-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Dashboard ── */
.dash-page { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); }
.kpi-icon { font-size: 26px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); flex-shrink: 0; }
.kpi-card.blue  .kpi-icon { background: var(--blue-light);   }
.kpi-card.green .kpi-icon { background: var(--green-light);  }
.kpi-card.amber .kpi-icon { background: var(--amber-light);  }
.kpi-card.red   .kpi-icon { background: var(--red-light);    }
.kpi-label { font-size: 12px; color: var(--text3); margin-bottom: 3px; }
.kpi-value { font-family: 'Geist', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); }
.kpi-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.kpi-trend-up   { color: var(--green); font-weight: 500; }
.kpi-trend-down { color: var(--red);   font-weight: 500; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.dash-card.wide { grid-column: 1/-1; }
.card-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 600; }
.card-link { font-size: 12px; color: var(--blue); }

/* AI Insights */
.ai-insights-card { background: var(--bg-card); border: 1px solid var(--blue-border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); grid-column: 1/-1; }
.ai-insights-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ai-insights-title { display: flex; align-items: center; gap: 7px; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 600; color: var(--blue); }
.ai-insights-refresh { background: none; border: 1px solid var(--blue-border); color: var(--blue); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all .2s; }
.ai-insights-refresh:hover { background: var(--blue-light); }
.ai-insights-refresh.spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-insights-loading { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--text3); font-size: 12px; }
.ai-thinking-dots { display: flex; gap: 4px; }
.ai-thinking-dots span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; animation: bounce .9s infinite; }
.ai-thinking-dots span:nth-child(2) { animation-delay: .15s; }
.ai-thinking-dots span:nth-child(3) { animation-delay: .3s; }
.ai-insights-body { display: flex; flex-direction: column; gap: 6px; }
.ai-insight-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text2); }
.ai-bullet { color: var(--blue); font-size: 8px; margin-top: 5px; flex-shrink: 0; }
.ai-insight-text { font-size: 12px; color: var(--text2); line-height: 1.6; }
.ai-insights-empty { text-align: center; padding: 12px 0; }
.ai-insights-cta { background: var(--blue-light); border: 1.5px dashed var(--blue-border); color: var(--blue); border-radius: var(--radius); padding: 10px 20px; font-size: 13px; cursor: pointer; font-family: 'Geist', sans-serif; font-weight: 500; transition: all .15s; }
.ai-insights-cta:hover { background: var(--blue); color: white; }
.ai-insights-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.ai-ask-wrap { display: flex; gap: 8px; }
.ai-ask-input { flex: 1; height: 36px; background: var(--bg-input); border: 1.5px solid var(--border2); border-radius: var(--radius); padding: 0 12px; font-size: 12px; color: var(--text); outline: none; }
.ai-ask-input:focus { border-color: var(--blue); }
.ai-ask-btn { height: 36px; padding: 0 16px; background: var(--blue); border: none; color: white; border-radius: var(--radius); font-size: 12px; font-weight: 500; cursor: pointer; }
.ai-ask-btn:hover:not(:disabled) { background: var(--blue-dark); }
.ai-ask-btn:disabled { opacity: .4; cursor: not-allowed; }
.ai-insights-error { color: var(--red); font-size: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.ai-insights-error button { background: none; border: 1px solid var(--red); border-radius: 4px; color: var(--red); padding: 2px 8px; font-size: 11px; cursor: pointer; }

/* ── Shared Page Components ── */
.page-wrap { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.page-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg-card); padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.toolbar-search { display: flex; align-items: center; gap: 8px; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0 14px; height: 38px; flex: 1; min-width: 180px; transition: border-color .15s; }
.toolbar-search:focus-within { border-color: var(--blue); }
.toolbar-search span { color: var(--text3); }
.toolbar-search input { flex: 1; border: none; background: none; outline: none; font-size: 13px; color: var(--text); }
.toolbar-search input::placeholder { color: var(--text3); }
.toolbar-filters { display: flex; gap: 8px; }
.toolbar-filters select { height: 38px; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0 10px; font-size: 12px; color: var(--text2); cursor: pointer; outline: none; }
.toolbar-filters select:focus { border-color: var(--blue); }
.btn-primary { height: 38px; padding: 0 18px; background: var(--blue); border: none; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: white; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 6px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--blue-dark); }
.stats-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text3); padding: 0 2px; }
.stats-bar .sep   { color: var(--border2); }
.c-green { color: var(--green); font-weight: 500; }
.c-amber { color: var(--amber); font-weight: 500; }
.c-red   { color: var(--red);   font-weight: 500; }
.c-blue  { color: var(--blue);  font-weight: 500; }
.table-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-wrap { overflow-x: auto; overflow-y: auto; max-height: calc(100vh - 220px); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead { position: sticky; top: 0; z-index: 1; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600; color: var(--text3); letter-spacing: .05em; text-transform: uppercase; background: var(--bg); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-hover); }

/* Badges — all separate flat classes, no dynamic nesting needed */
.badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 500; white-space: nowrap; }
.badge.active   { background: var(--green-light); color: var(--green); }
.badge.inactive { background: var(--red-light);   color: var(--red);   }
.badge.out      { background: var(--red-light);   color: var(--red);   }
.badge.low      { background: var(--amber-light); color: var(--amber); }
.badge.ok       { background: var(--green-light); color: var(--green); }
.method-pill { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.method-pill.cash  { background: var(--green-light); color: var(--green); }
.method-pill.card  { background: var(--blue-light);  color: var(--blue);  }
.method-pill.bkash { background: #fdf2f8; color: #be185d; }
.method-pill.nagad { background: var(--amber-light); color: var(--amber); }
.customer-type { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.customer-type.vip       { background: var(--amber-light); color: var(--amber); }
.customer-type.wholesale { background: var(--purple-light); color: var(--purple); }
.customer-type.regular   { background: var(--bg); color: var(--text3); border: 1px solid var(--border2); }

/* Text helpers */
.invoice-no { font-family: monospace; font-size: 12px; color: var(--blue); font-weight: 500; }
.text-muted  { color: var(--text3) !important; }
.text-bold   { font-weight: 600; color: var(--text) !important; }
.text-price  { font-weight: 600; color: var(--text); }
.text-green  { color: var(--green) !important; }
.text-center { text-align: center; }
.sku-badge { background: var(--bg); border: 1px solid var(--border2); border-radius: 4px; padding: 1px 6px; font-size: 11px; font-family: monospace; color: var(--text2); }
.prod-cell { display: flex; align-items: center; gap: 10px; }
.prod-cell-icon { font-size: 20px; }
.prod-cell-name { font-size: 13px; font-weight: 500; color: var(--text); }
.prod-cell-barcode { font-size: 10px; color: var(--text3); font-family: monospace; }

/* Stock bar */
.stock-bar-bg { height: 4px; background: var(--bg); border-radius: 2px; width: 80px; overflow: hidden; }
.stock-bar-fill { height: 4px; border-radius: 2px; transition: width .3s; }
.stock-bar-fill.ok  { background: var(--green); }
.stock-bar-fill.low { background: var(--amber); }
.stock-bar-fill.out { background: var(--red);   }

/* Low stock page */
.stock-val-out { font-size: 15px; font-weight: 700; color: var(--red); }
.stock-val-low { font-size: 15px; font-weight: 700; color: var(--amber); }

/* Action buttons */
.action-btns { display: flex; gap: 4px; }
.act-btn { width: 30px; height: 30px; background: none; border: 1px solid var(--border2); border-radius: 6px; cursor: pointer; font-size: 13px; transition: all .1s; }
.act-btn:hover { background: var(--bg-hover); }
.act-btn.edit:hover { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.empty-table { text-align: center; padding: 50px; color: var(--text3); font-size: 13px; }

/* Dashboard specifics */
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-table th { text-align: left; padding: 8px 12px; font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--bg); }
.dash-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text2); }
.dash-table tr:hover td { background: var(--bg-hover); }
.low-stock-list { display: flex; flex-direction: column; gap: 8px; }
.ls-item { display: flex; align-items: center; gap: 10px; }
.ls-icon { font-size: 20px; }
.ls-info { flex: 1; }
.ls-name { font-size: 12px; font-weight: 500; color: var(--text); }
.ls-sku  { font-size: 10px; color: var(--text3); }
.ls-stock { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.ls-stock.out { background: var(--red-light);   color: var(--red);   }
.ls-stock.low { background: var(--amber-light); color: var(--amber); }
.pay-breakdown { display: flex; flex-direction: column; gap: 10px; }
.pay-br-row { display: flex; align-items: center; gap: 10px; }
.pay-br-label { width: 60px; font-size: 12px; color: var(--text2); }
.pay-br-bar-wrap { flex: 1; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.pay-br-bar { height: 6px; border-radius: 3px; transition: width .5s ease; }
.pay-br-bar.cash  { background: var(--green); }
.pay-br-bar.card  { background: var(--blue);  }
.pay-br-bar.bkash { background: #be185d; }
.pay-br-bar.nagad { background: var(--amber); }
.pay-br-pct { font-size: 11px; color: var(--text3); width: 28px; text-align: right; }
.pay-br-amt { font-size: 12px; font-weight: 500; color: var(--text); width: 72px; text-align: right; }
.top-products { display: flex; flex-direction: column; gap: 8px; }
.top-item { display: flex; align-items: center; gap: 10px; }
.top-rank { font-size: 10px; color: var(--text3); width: 16px; font-weight: 600; }
.top-icon { font-size: 18px; }
.top-info { flex: 1; }
.top-name { font-size: 12px; font-weight: 500; color: var(--text); }
.top-cat  { font-size: 10px; color: var(--text3); }
.top-sales { font-size: 12px; font-weight: 600; color: var(--blue); }

/* Customer */
.cust-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-light); border: 1px solid var(--blue-border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--blue); flex-shrink: 0; }
.loyalty-bar { height: 4px; width: 80px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.loyalty-fill { height: 4px; background: var(--amber); border-radius: 2px; }
.summary-chips { display: flex; gap: 8px; margin-left: auto; }
.chip { background: var(--bg); border: 1px solid var(--border2); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 500; color: var(--text); }

/* Sales detail */
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text3); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
.detail-table th { text-align: left; padding: 6px 8px; font-size: 11px; color: var(--text3); border-bottom: 1px solid var(--border); }
.detail-table td { padding: 8px; border-bottom: 1px solid var(--border); color: var(--text2); }
.detail-totals { display: flex; flex-direction: column; gap: 6px; }
.dt-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); }
.dt-row.grand { font-weight: 700; color: var(--text); font-size: 15px; border-top: 1px solid var(--border); padding-top: 8px; }

/* Print */

/* ═══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════ */

/* ── Hamburger button (hidden on desktop) ── */
.btn-menu {
  display: none;
  background: none; border: 1px solid var(--border2);
  border-radius: var(--radius); width: 34px; height: 34px;
  font-size: 18px; cursor: pointer; color: var(--text2);
  align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199;
}

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w) !important;
    transform: translateX(-100%);
    z-index: 300; transition: transform .3s ease;
    box-shadow: none;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-overlay.visible { display: block; }
  .btn-menu { display: flex; }
  .main-area { width: 100%; }

  /* POS: stack vertically */
  .pos-root {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
  }
  .pos-right { border-left: none; border-top: 2px solid var(--blue); max-height: 48vh; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); }

  /* Dashboard */
  .kpi-row { grid-template-columns: repeat(2,1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card.wide { grid-column: 1; }
  .form-modal { max-width: 100%; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  .status-pill { display: none; }
  .clock { display: none; }

  .pos-root { display: block; height: auto; min-height: calc(100vh - var(--topbar-h)); overflow-y: auto; }
  .pos-left { height: auto; overflow: visible; padding: 10px; }
  .pos-right { border-top: 2px solid var(--blue); max-height: none; }
  .pos-left .product-grid { max-height: 50vh; overflow-y: auto; }

  .cart-actions { flex-direction: column; }
  .btn-clear-cart { width: 100%; }
  .pay-methods { grid-template-columns: repeat(4,1fr); }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .page-wrap { padding: 10px; gap: 10px; }
  .page-toolbar { gap: 6px; }
  .table-wrap { max-height: none; }

  .kpi-row { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .kpi-card { padding: 10px; gap: 8px; }
  .kpi-value { font-size: 16px; }
  .kpi-icon { width: 38px; height: 38px; font-size: 20px; }
  .dash-page { padding: 10px; gap: 10px; }

  .ai-panel { width: calc(100vw - 24px); right: 12px; bottom: 12px; height: min(500px, calc(100vh - 80px)); }
  .ai-fab-wrap { bottom: 12px; right: 12px; }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  :root { --topbar-h: 48px; }
  .page-breadcrumb { font-size: 13px; }
  .search-box { height: 38px; padding: 0 10px; gap: 6px; }
  .ai-search-btn { padding: 3px 8px; font-size: 10px; }
  .cat-pill { padding: 4px 10px; font-size: 11px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 6px; }
  .prod-card { padding: 8px; }
  .prod-emoji { font-size: 20px; }
  .prod-name { font-size: 11px; }
  .prod-sku { font-size: 9px; margin-bottom: 4px; }
  .prod-price { font-size: 12px; }
  .kpi-row { gap: 6px; }
  .kpi-value { font-size: 15px; }
  .kpi-label { font-size: 10px; }
  .kpi-icon { width: 34px; height: 34px; font-size: 18px; }
  .pay-methods { grid-template-columns: repeat(2,1fr); }
  .topbar { padding: 0 10px; }
  .modal-backdrop { padding: 8px; }
  .summary-chips { width: 100%; margin-left: 0; }
}

@media print {
  .sidebar, .topbar, .receipt-actions, .pos-left, .pos-right, .ai-fab-wrap, .ai-panel { display: none !important; }
  .receipt-modal { width: 300px; border: none; box-shadow: none; }
  body { background: white; overflow: auto; height: auto; }
  .app-shell { display: block; height: auto; }
}
