.pos-shell {--pos-green:#164a37;--pos-gold:#eabc52;--pos-paper:#fffdf4;--pos-border:#ddd3b9}
.pos-shell > .main {padding:14px;max-width:none}
.pos-shell .topbar,.pos-shell .heading {display:none}
.pos-shell .sidebar {padding:16px 12px}
.pos-shell .sidebar .brand {margin-bottom:13px}
.pos-header {display:grid;grid-template-columns:minmax(110px,1fr) auto minmax(160px,1fr);gap:14px;align-items:center;
  background:var(--pos-gold);padding:11px 15px;border-radius:15px;color:#193e30}
.pos-header > img {width:min(100%,185px);height:52px;object-fit:contain;object-position:left}
.pos-header time {font-size:clamp(15px,2vw,28px);font-variant-numeric:tabular-nums;font-weight:850;color:#16372a}
.pos-shift {display:flex;gap:12px;justify-content:flex-end;align-items:center;min-width:0;text-align:right}
.pos-shift > div {min-width:0}
.pos-shift strong,.pos-shift small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pos-shift small {font-size:12px;margin-top:3px}
.pos-shift .btn {white-space:nowrap;padding:9px 12px;min-height:39px}
.pos-nav {display:none}
.pos-alert,.pos-pending {background:#fff0c8;color:#644900;padding:10px 13px;border-radius:8px;margin:9px 0}
.pos-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(335px,37%);align-items:start;gap:12px;margin-top:12px}
.pos-menu,.pos-order {background:#f9f5e8;border:1px solid var(--pos-border);border-radius:15px;min-width:0}
.pos-menu {padding:16px;min-height:460px}
.pos-menu-header {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.pos-menu h1,.pos-order h2 {font:800 clamp(20px,2vw,25px)/1.13 system-ui,sans-serif;letter-spacing:-.035em;margin:0}
.pos-search {display:flex;align-items:center;gap:8px;flex:1 1 180px;max-width:300px;border:1px solid var(--pos-border);
  border-radius:10px;background:var(--pos-paper);padding:0 11px;min-height:44px}
.pos-search span {font-size:21px}
.pos-search input {background:transparent;border:0;min-width:0;width:100%;padding:8px 3px;color:#16372a}
.pos-filters {display:flex;gap:7px;overflow-x:auto;padding:1px 2px 10px;scrollbar-width:thin}
.pos-filters button {flex:0 0 auto;min-height:38px;border:1px solid #859580;border-radius:22px;padding:5px 13px;background:transparent;color:#244035}
.pos-filters button[aria-pressed=true] {background:var(--pos-green);border-color:var(--pos-green);color:white}
.pos-products {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,151px),1fr));gap:10px;padding:4px 0}
.pos-card {position:relative;display:flex;flex-direction:column;text-align:left;padding:0;min-width:0;overflow:hidden;
  border:2px solid #e9e0c8;border-radius:13px;background:var(--pos-paper);color:#1a3428}
.pos-card:hover {border-color:#a5ae91}
.pos-card.selected {background:#ffe6a0;border-color:#bf8c22}
.pos-card:disabled {opacity:1;cursor:default}
.pos-photo {position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1.40;overflow:hidden;
  color:#315a44;background:radial-gradient(circle at 35% 30%,#f8edca,#e1d7aa)}
.pos-photo img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pos-thumb {width:49px;height:49px;aspect-ratio:1;border-radius:8px;flex:none}
.pos-thumb svg {width:29px;height:29px}
.pos-count {position:absolute;right:8px;top:8px;background:var(--pos-green);color:#fff;border-radius:20px;
  min-width:28px;height:28px;display:grid;place-items:center;padding:0 5px;font-weight:800}
.pos-card-body {padding:9px 10px 10px;display:grid;gap:3px;width:100%;flex:1}
.pos-card-body strong {font-weight:780;overflow-wrap:anywhere;line-height:1.22}
.pos-card-body small,.pos-line-text small {color:#4e6358;font-size:11px}
.pos-card-body b {text-align:right;font-size:16px;align-self:end}
.pos-order {position:sticky;top:12px;padding:13px;background:var(--pos-paper)}
.pos-order-header {display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:9px}
.pos-order-header h2 small {font:650 11px system-ui;white-space:nowrap;background:#f7ead0;border-radius:12px;padding:4px 8px;margin-left:3px}
.pos-clear {min-height:35px;background:transparent;color:#853728;border-radius:8px;padding:4px 7px;text-decoration:underline}
.pos-cart-items {border-block:1px solid #eee6d2;max-height:min(33vh,320px);overflow:auto;min-height:54px}
.pos-empty {grid-column:1/-1;color:#55655b;text-align:center;margin:0;padding:17px 8px;font-size:13px}
.pos-line {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:3px 8px;align-items:center;padding:8px 0}
.pos-line:not(:first-child) {border-top:1px solid #eee6d2}
.pos-line .pos-thumb {grid-row:span 2}
.pos-line-text {display:grid;gap:2px;font-size:13px;overflow-wrap:anywhere}
.pos-line-sum {font-size:13px;white-space:nowrap;text-align:right}
.pos-qty {grid-column:2/-1;display:flex;justify-content:flex-end;align-items:center;gap:9px}
.pos-qty output {font-weight:750;min-width:18px;text-align:center}
.pos-qty button {width:40px;min-height:36px;border-radius:8px;background:var(--pos-green);color:#fff;font-size:20px;line-height:1}
.pos-totals {display:grid;gap:4px;margin:8px 0 9px;font-size:13px}
.pos-totals > div,.pos-change {display:flex;justify-content:space-between;gap:10px;align-items:center}
.pos-totals > .pos-grand {padding:8px 9px;background:#f5d778;border-radius:8px;font-size:16px;font-weight:800}
.pos-grand strong {font-size:clamp(17px,2vw,22px)}
.pos-payments,.pos-cash-quick {display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}
.pos-payments button {background:#f0ece0;color:#254a39;border:1px solid #bfc8b4;border-radius:8px;font-weight:760;min-height:46px}
.pos-payments button span {margin-right:4px}
.pos-payments button[aria-pressed=true] {background:var(--pos-green);color:#fff;border-color:var(--pos-green)}
.pos-tender {display:grid;grid-template-columns:1fr minmax(90px,56%);gap:7px;margin:9px 0;align-items:center;font-size:13px}
.pos-tender input {width:100%;min-height:40px}
.pos-cash-quick,.pos-change {grid-column:1/-1}
.pos-cash-quick button {min-height:36px;background:#f4eddb;color:#193e30;border-radius:8px;font-weight:650;font-size:11px;padding:3px}
.pos-change output {font-weight:800}
.pos-verify {display:flex;align-items:center;gap:8px;font-size:13px;padding:9px 0}
.pos-verify input {width:22px;height:22px;accent-color:var(--pos-green)}
.pos-checkout {width:100%;background:var(--pos-green);color:white;min-height:49px;font-size:16px;border-radius:9px}
.pos-mobile-cart {display:none}
@media (min-width:1101px) {
  .pos-shell {grid-template-columns:176px minmax(0,1fr)}
}
@media (max-width:1100px) {
  .pos-shell {display:block}
  .pos-shell > .sidebar {display:none}
  .pos-nav {display:block;position:relative;z-index:5}
  .pos-nav summary {cursor:pointer;list-style:none;border-radius:8px;padding:7px 10px;background:#f7d982;font-weight:750}
  .pos-nav summary::-webkit-details-marker {display:none}
  .pos-nav nav {position:absolute;right:0;top:calc(100% + 8px);width:183px;background:var(--pos-paper);
    border:1px solid var(--pos-border);border-radius:9px;box-shadow:0 7px 24px #22382b25;padding:6px}
  .pos-nav nav button {display:block;width:100%;text-align:left;min-height:41px;background:transparent;border-radius:6px;padding:7px 9px;color:#193e30}
  .pos-nav nav button:hover {background:#f1e8d3}
}
@media (max-width:700px) {
  .pos-shell > .main {padding:8px 8px 68px}
  .pos-header {gap:7px;padding:8px;grid-template-columns:minmax(86px,1fr) auto minmax(112px,1fr)}
  .pos-header > img {height:38px}
  .pos-shift {gap:5px;flex-wrap:wrap}
  .pos-shift > div {width:100%;line-height:1.2}
  .pos-shift small {font-size:10px}
  .pos-nav summary,.pos-shift .btn {padding:6px;min-height:30px;font-size:11px}
  .pos-layout {grid-template-columns:1fr}
  .pos-menu {padding:11px;min-height:0}
  .pos-products {grid-template-columns:repeat(2,minmax(0,1fr))}
  .pos-order {position:static;scroll-margin-top:8px}
  .pos-cart-items {max-height:285px}
  .pos-mobile-cart:not([hidden]):not(.cart-visible) {display:block;position:fixed;z-index:3;left:10px;right:10px;
    bottom:max(8px,env(safe-area-inset-bottom));min-height:49px;background:var(--pos-green);color:white;border-radius:10px;font-weight:800;padding:7px}
}
@media print {
  .pos-shell .pos-screen {display:none}
}
@media (min-width:701px) {
  .pos-filters {flex-wrap:wrap;overflow:visible}
}
@media (pointer:coarse) {
  .pos-qty button {width:44px;min-height:44px}
}
