:root {
  --dark: #181818;
  --orange: #ff7a00;
  --bg: #f1f3f6;
  --card: #ffffff;
  --text: #1d2330;
  --muted: #6b7280;
  --line: #e5e7eb;
  --ok: #16a34a;
  --bad: #dc2626;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 17px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--dark); color: #fff; padding: 22px 18px; display: flex; flex-direction: column; }
.brand { font-weight: 900; letter-spacing: 1px; font-size: 22px; }
.brand span { color: var(--orange); }
.menu-label { margin: 22px 8px 8px; font-size: 11px; letter-spacing: 1.5px; color: #8a8f98; font-weight: 700; }
.menu-item, .sidebar summary { display: block; padding: 12px 14px; border-radius: 10px; color: #fff; font-size: 15px; }
.menu-item.active { background: var(--orange); }
.sidebar details { margin-bottom: 4px; }
.sidebar summary { cursor: pointer; list-style: none; }
.sidebar summary::-webkit-details-marker { display: none; }
.sidebar summary::after { content: "⌄"; float: right; color: #aaa; }
.sidebar details a { display: block; padding: 8px 14px 8px 26px; color: #d4d4d4; font-size: 14px; }
.sidebar details a.current, .sidebar details a:hover { color: var(--orange); }
.sidebar-foot { margin-top: auto; border-top: 1px solid #333; padding-top: 16px; }
.logout { display: block; margin-top: 12px; color: #fff; }

.main { flex: 1; min-width: 0; }
.topbar { background: #fff; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.badge { background: var(--dark); color: #fff; padding: 6px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.content { padding: 24px 28px; }

/* ---------- Cards & grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.grid-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.grid-charts .card { margin-bottom: 0; padding: 14px 16px; }
.grid-charts h2 { font-size: 15px; margin-bottom: 8px; }
.card { background: var(--card); border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 16px; }
.stat { border-left: 5px solid var(--orange); }
.stat .label { color: var(--muted); font-size: 14px; }
.stat .value { font-size: 24px; font-weight: 800; margin-top: 6px; }
.stat .value.neg { color: var(--bad); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #f7f7f8; font-size: 12px; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; }

/* ---------- Forms & buttons ---------- */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--orange); border-color: transparent; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; cursor: pointer; font: inherit; font-weight: 600; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-danger { color: var(--bad); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; background: #ecfdf3; color: #166534; }
.alert.err { background: #fef2f2; color: #991b1b; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Login ---------- */
.login-body { min-height: 100vh; margin: 0; background: var(--dark); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: "Segoe UI", system-ui, sans-serif; }
.login-body::before { content: ""; position: absolute; inset: 0; background: var(--orange); clip-path: polygon(62% 0, 100% 0, 100% 100%, 40% 100%); }
.login-card { position: relative; background: #fff; width: 380px; padding: 36px 34px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-card .brand { color: var(--dark); }
.login-card .sub { color: var(--muted); margin: 8px 0 22px; font-size: 14px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn-primary { width: 100%; padding: 13px; font-size: 16px; }

/* ---------- Dashboard charts ---------- */
.chart-box { position: relative; height: 190px; }
.chart-box.sm { height: 150px; }

/* ---------- POS (full screen) ---------- */
.pos-body { margin: 0; height: 100vh; overflow: hidden; background: #eef0f3; font-family: "Segoe UI", system-ui, sans-serif; }
.pos-top { background: var(--dark); color: #fff; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.pos-top .brand { font-size: 18px; white-space: nowrap; }
.pos-top input { flex: 1; font-size: 18px; padding: 12px 16px; }
.seg { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid #444; }
.seg button { background: transparent; color: #fff; border: 0; padding: 10px 14px; cursor: pointer; font: inherit; }
.seg button.on { background: var(--orange); }
.pos-top .btn { background: #2a2a2a; color: #fff; border-color: #444; }
.pos-top a.btn { line-height: 1; display: inline-flex; align-items: center; }
.pos-grid { display: grid; grid-template-columns: 1fr 440px; height: calc(100vh - 124px); }
.pos-results { padding: 16px; overflow-y: auto; }
.offer-bar { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); min-height: 60px; }
.offer-chip { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; border: 1px solid var(--orange); background: #fff7ed; color: var(--text); border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit; }
.offer-chip strong { color: var(--orange); }
.offer-chip em { font-style: normal; font-weight: 800; }
.result { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border: 2px solid transparent; }
.result:hover, .result.sel { border-color: var(--orange); }
.result .name { font-weight: 700; font-size: 16px; }
.result .price { font-weight: 800; color: var(--orange); font-size: 18px; }
.pos-cart { background: #fff; display: flex; flex-direction: column; padding: 16px; border-left: 1px solid var(--line); }
.cart-table { flex: 1; overflow-y: auto; }
.qty-btn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.totals { border-top: 2px dashed #ddd; padding-top: 12px; }
.totals .row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 15px; }
.totals .grand { font-size: 26px; font-weight: 900; color: var(--dark); }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.btn-big { padding: 16px; font-size: 18px; width: 100%; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 22px; border-radius: 10px; display: none; z-index: 10; }
#toast.err { background: var(--bad); }

/* ---------- Barcode labels (print) ---------- */
.label-preview { border: 1px dashed #aaa; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 auto; }
.label-preview svg { width: 100%; height: auto; }
.label-grid { display: flex; flex-wrap: wrap; gap: 2mm; }
.label { display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px dotted #bbb; page-break-inside: avoid; padding: 1mm; }
.label .lname { font-size: 8pt; text-align: center; line-height: 1.1; }
.label svg { width: 100%; height: auto; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .label { border: none; }
  @page { margin: 3mm; }
}
@media (max-width: 1000px) {
  .grid-4, .grid-2, .grid-charts, .form-grid { grid-template-columns: 1fr; }
  .pos-grid { grid-template-columns: 1fr; }
}

.offer-tag { display: inline-block; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; border-radius: 6px; font-size: 11px; padding: 1px 6px; margin-top: 3px; }
.cart-table th, .cart-table td { padding: 6px 4px; font-size: 13px; }
.cart-table input { padding: 6px 8px; }

/* =====================================================================
   POS SCREEN (single clean block; replaces earlier POS overrides)
   Left: search results + invoice items.  Right: totals, customer, payment.
   ===================================================================== */
:root { --pos-bg:#f1f3f7; --pos-line:#e6e9ef; --pos-ink:#111827; --pos-mute:#6b7280; --pos-or:#ff7a00; --pos-or-soft:#fff4e8; }
html:has(body.pos-body), body.pos-body { height: 100%; }
.pos-body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: var(--pos-bg); font-size: 14px; color: var(--pos-ink); }

/* Top bar */
.pos-top { flex: none; height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #161616; color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.pos-top .brand { font-size: 17px; font-weight: 900; letter-spacing: 1px; white-space: nowrap; }
.pos-top input { flex: 1; font-size: 16px; padding: 11px 16px; border-radius: 12px; border: 2px solid transparent; background: #fff; }
.pos-top input:focus { outline: none; border-color: var(--pos-or); box-shadow: 0 0 0 4px rgba(255,122,0,.25); }
.pos-top .seg { border: 1px solid #333; border-radius: 10px; overflow: hidden; }
.pos-top .seg button { padding: 10px 16px; font-weight: 600; background: transparent; color: #fff; border: 0; cursor: pointer; }
.pos-top .seg button.on { background: var(--pos-or); }
.pos-top .btn { background: #262626; color: #fff; border: 1px solid #3a3a3a; border-radius: 10px; padding: 9px 14px; }

/* Offer strip */
.offer-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 50px; background: #fff; border-bottom: 1px solid var(--pos-line); overflow-x: auto; }
.offer-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 14px; border-radius: 999px; border: 1px solid #ffd3a8; background: var(--pos-or-soft); color: var(--pos-ink); font: inherit; cursor: pointer; }
.offer-chip strong { color: #c2410c; }
.offer-chip em { font-style: normal; font-weight: 800; }
.offer-chip:hover { box-shadow: 0 4px 10px rgba(255,122,0,.2); }

/* Layout */
.pos-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 370px; }
.pos-main { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.pos-results-box { flex: none; max-height: 27%; overflow-y: auto; }

/* Search results */
.result { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: pointer; }
.result:hover { border-color: var(--pos-or); }
.result .name { font-weight: 700; font-size: 15px; }
.result .price { font-weight: 800; color: var(--pos-or); font-size: 17px; }
.offer-tag { display: inline-block; background: var(--pos-or-soft); color: #c2410c; border: 1px solid #ffd3a8; border-radius: 6px; font-size: 11px; font-weight: 600; padding: 1px 6px; margin-top: 3px; }

/* Invoice items */
.pos-items { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.06); padding: 12px 14px; }
.pos-items-head { flex: none; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pos-items-head h2 { margin: 0; font-size: 16px; }
.pos-items-head #invHead { background: var(--pos-or-soft); color: #c2410c; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.pos-items .cart-table { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.pos-items table { width: 100%; border-collapse: collapse; }
.pos-items thead th { position: sticky; top: 0; z-index: 1; background: #f4f6f9; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--pos-mute); padding: 9px 8px; border-bottom: 2px solid var(--pos-line); }
.pos-items td { padding: 8px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.pos-items tbody tr:hover td { background: var(--pos-or-soft); }
.pos-items td:nth-child(5) { font-weight: 700; }
.pos-items input { width: 86px; padding: 5px 7px; border: 1px solid #d1d5db; border-radius: 6px; text-align: right; }
.qty-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; font-weight: 700; cursor: pointer; }
.qty-btn:hover { border-color: var(--pos-or); background: var(--pos-or-soft); }
#emptyCart { text-align: center; padding: 40px 10px; color: var(--pos-mute); }

/* Right: totals, customer, payment */
.pos-side { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--pos-line); padding: 14px 16px; box-shadow: -4px 0 14px rgba(0,0,0,.04); }
.pos-side .totals { background: #f8fafc; border: 1px solid var(--pos-line); border-radius: 12px; padding: 12px 14px; }
.pos-side .totals .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.pos-side .totals .grand { border-top: 2px dashed #d1d5db; padding-top: 10px; margin-top: 4px; font-size: 22px; font-weight: 900; }
.pos-side .totals .grand span:last-child { color: var(--pos-or); }
.pos-side #invDisc { width: 130px; padding: 6px 10px; border-radius: 8px; border: 1px solid #d1d5db; text-align: right; }
.pos-side label { display: block; font-size: 12px; font-weight: 600; color: #4b5563; margin: 10px 0 5px; }
.pos-side select, .pos-side input#paid { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; background: #fff; }
.pos-side select:focus, .pos-side input:focus { outline: none; border-color: var(--pos-or); box-shadow: 0 0 0 3px rgba(255,122,0,.18); }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-side .balance-row { display: flex; justify-content: space-between; align-items: center; margin: 12px 2px 0; color: var(--pos-mute); }
.pos-side .balance-row strong { color: var(--pos-ink); font-size: 16px; }
#checkoutBtn { width: 100%; padding: 15px; border: 0; border-radius: 12px; background: var(--pos-or); color: #fff; font-size: 17px; font-weight: 800; box-shadow: 0 6px 16px rgba(255,122,0,.35); cursor: pointer; }
#checkoutBtn:hover { box-shadow: 0 8px 22px rgba(255,122,0,.45); }
#clearBtn { width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #d1d5db; border-radius: 12px; background: #fff; font-weight: 600; cursor: pointer; }

/* Smaller screens: tighter spacing so it still fits */
@media (max-height: 800px) {
  .pos-main { padding: 8px; }
  .pos-side { padding: 10px 14px; }
  .pos-side .totals .grand { font-size: 19px; }
  #checkoutBtn { padding: 12px; font-size: 15px; }
}
@media (max-width: 1000px) {
  .pos-body { height: auto; min-height: 100vh; overflow: auto; }
  .pos-grid { grid-template-columns: 1fr; }
  .pos-side { border-left: 0; border-top: 1px solid var(--pos-line); box-shadow: none; }
}

/* =====================================================================
   POS FIT FIX: keep everything inside the browser window (no side cut-off)
   ===================================================================== */
html:has(body.pos-body), body.pos-body { max-width: 100vw; overflow: hidden; }
.pos-top, .pos-top > * { min-width: 0; }
.pos-top { gap: 10px; padding: 0 12px; }
.pos-top input { width: 100%; min-width: 120px; }
.pos-top .seg button { white-space: nowrap; }
.pos-top .btn { white-space: nowrap; }
.pos-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); width: 100%; }
.pos-main, .pos-side, .pos-items, .pos-items .cart-table { min-width: 0; max-width: 100%; }
.pos-items table { table-layout: auto; }
.pos-items td:first-child { word-break: break-word; }
.pos-side input, .pos-side select, .pos-side button { max-width: 100%; }
.pay-row > * { min-width: 0; }
.offer-bar { max-width: 100%; }

@media (max-width: 1280px) {
  .pos-top .brand { font-size: 15px; letter-spacing: .5px; }
  .pos-top .btn { padding: 8px 10px; font-size: 13px; }
  .pos-top .seg button { padding: 8px 10px; font-size: 13px; }
  .pos-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .pos-side { padding: 10px 12px; }
  .pos-items td, .pos-items thead th { padding: 6px 5px; }
  .pos-items input { width: 70px; }
}
@media (max-width: 1100px) {
  .pos-top .brand { display: none; }
}

/* =====================================================================
   POS CROP FIX: pin the POS screen to the browser window (no offset,
   no hidden top/bottom of the panels)
   ===================================================================== */
html:has(body.pos-body) { height: 100%; margin: 0; padding: 0; overflow: hidden; }
body.pos-body {
  position: fixed; inset: 0;
  margin: 0; padding: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  overflow: hidden;
}
.pos-top { flex: 0 0 62px; height: 62px; }
.offer-bar { flex: 0 0 auto; }
.pos-grid { flex: 1 1 0; min-height: 0; height: auto; align-items: stretch; }
.pos-main, .pos-side { height: 100%; min-height: 0; }
.pos-side { overflow-y: auto; justify-content: flex-start; padding-top: 14px; }
.pos-side > .totals { flex: 0 0 auto; margin-top: 0; }
.pos-side > .pay-row,
.pos-side > .balance-row,
.pos-side > div { flex: 0 0 auto; }
.pos-side #checkoutBtn { flex: 0 0 auto; margin-top: auto; }
.pos-side #clearBtn { flex: 0 0 auto; }
.pos-items { min-height: 0; }
@media (max-height: 760px) {
  .pos-side { padding-top: 8px; }
  .pos-side .totals .grand { font-size: 17px; }
  .pos-side .totals .row { margin-bottom: 4px; }
  .pos-side label { margin: 6px 0 3px; }
  #checkoutBtn { padding: 10px; font-size: 14px; }
  #clearBtn { padding: 8px; margin-top: 6px; }
}

/* ---- Paid amount: change line and calculator ---- */
#change { color: #166534; }
.calc { margin-top: 12px; border: 1px solid var(--pos-line); border-radius: 12px; padding: 10px; background: #fafbfc; }
.calc-screen { display: flex; justify-content: space-between; align-items: center; background: #161616; color: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.calc-screen #calcExpr { font-size: 12px; color: #9ca3af; }
.calc-screen #calcVal { font-size: 20px; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.calc-grid button, .quick-cash button, .calc-use { padding: 8px 0; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.calc-grid button:hover, .quick-cash button:hover, .calc-use:hover { border-color: var(--pos-or); background: var(--pos-or-soft); }
.calc-grid [data-k="="] { background: var(--pos-or); color: #fff; border-color: var(--pos-or); }
.calc-grid [data-k="="]:hover { background: #e96a00; }
.calc-use { width: 100%; margin-top: 8px; background: #161616; color: #fff; border-color: #161616; }
.quick-cash { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 8px; }
.quick-cash button { font-size: 12px; padding: 6px 0; }
@media (max-height: 820px) {
  .calc { padding: 6px; margin-top: 8px; }
  .calc-grid button { padding: 5px 0; }
  .calc-use { padding: 6px; }
}

/* ---- POS fit: calculator opens on demand so the panel stays on screen ---- */
.calc { display: none; }
.calc.open { display: block; }
.calc-toggle { width: 100%; margin-top: 10px; padding: 8px; border: 1px dashed #d1d5db; border-radius: 10px; background: #fff; font-weight: 700; color: #374151; cursor: pointer; }
.calc-toggle:hover { border-color: var(--pos-or); color: #c2410c; }
.pos-side { width: 100%; }
.pos-side .totals { padding: 8px 12px; }
.pos-side .totals .row { margin-bottom: 4px; }
.pos-side .totals .grand { font-size: 19px; padding-top: 6px; margin-top: 2px; }
.pos-side label { margin: 6px 0 3px; }
.pos-side select, .pos-side input#paid { padding: 8px 10px; font-size: 14px; }
.pay-row { margin: 6px 0 2px; }
.pos-side .balance-row, .pos-side .row.muted { padding: 2px; margin-top: 2px; }
.quick-cash { margin-top: 6px; }
#checkoutBtn { padding: 12px; font-size: 15px; margin-top: 8px; }
#clearBtn { padding: 9px; margin-top: 6px; }
.pos-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
@media (max-height: 760px) {
  .pos-side { padding: 8px 12px; }
  .pos-side .totals .grand { font-size: 17px; }
  #checkoutBtn { padding: 10px; font-size: 14px; }
}

/* ---- Calculator popup (opened from the top bar) ---- */
.calc-pop { position: fixed; top: 72px; right: 16px; width: 340px; z-index: 50; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.25); padding: 12px; }
.calc-pop[hidden] { display: none; }
.calc-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 8px; color: #111827; }
.calc-x { border: 0; background: #f3f4f6; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-weight: 800; }
.calc-x:hover { background: #fee2e2; color: #b91c1c; }
.calc-pop .calc-screen { margin-bottom: 8px; }
.calc-pop .calc-grid button { padding: 10px 0; font-size: 15px; }
.calc-pop .calc-use { padding: 9px; font-size: 14px; }
/* Keep the old in-panel toggle hidden if it is still in a cached page */
.calc-toggle { display: none; }

/* ---- 1 inch (96px) space between the left and right panels ---- */
.pos-grid { column-gap: 1in; }
.pos-side { border-left: 0; box-shadow: none; }

/* =====================================================================
   POS side spacing: 1 inch (2.54 cm) on the left and right, content centred.
   Scales down on smaller screens so nothing gets cramped.
   ===================================================================== */
:root { --pos-side-space: 1in; }
.pos-grid {
  box-sizing: border-box;
  width: 100%;
  padding-left: var(--pos-side-space);
  padding-right: var(--pos-side-space);
  margin: 0 auto;
}
.offer-bar {
  padding-left: calc(var(--pos-side-space) + 4px);
  padding-right: var(--pos-side-space);
}
@media (max-width: 1280px) {
  :root { --pos-side-space: 0.6in; }
}
@media (max-width: 1000px) {
  :root { --pos-side-space: 14px; }
  .pos-grid { padding-left: var(--pos-side-space); padding-right: var(--pos-side-space); }
  .offer-bar { padding-left: var(--pos-side-space); padding-right: var(--pos-side-space); }
}

/* ---- POS content spacing (wins over older rules and inline styles) ---- */
.pos-grid { padding-left: 1in !important; padding-right: 1in !important; }
@media (max-width: 1280px) {
  .pos-grid { padding-left: 0.6in !important; padding-right: 0.6in !important; }
}
@media (max-width: 1000px) {
  .pos-grid { padding-left: 14px !important; padding-right: 14px !important; }
}

/* ---- Scrolling lists: Reports and Daily P&L ----
   The table scrolls inside its box, and the header row stays visible */
.scroll-card { max-height: calc(100vh - 220px); overflow: auto; }
.scroll-list { max-height: 62vh; overflow: auto; border-radius: 8px; }
.scroll-card thead th, .scroll-list thead th {
  position: sticky; top: 0; z-index: 2;
  background: #f4f6f9;
  box-shadow: 0 1px 0 #e5e7eb;
}