@import url('./pos-catalog.css');
@import url('./pos-orders.css');
@import url('./pos-register.css');

.pos-frame{--pos-border:#d9e5dc;--pos-muted:#567068;min-width:0}
.pos-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}
.pos-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;background:#e6eee7;border-radius:12px}
.pos-tabs button{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:8px;padding:10px 13px;background:transparent;font-size:13px;font-weight:650;color:#456357}
.pos-tabs button[aria-pressed=true]{background:#fff;color:var(--green);box-shadow:0 1px 4px #143e291c}
.pos-tabs .report-icon,.pos-cart-head .report-icon,.pos-empty .report-icon{display:inline-block;width:18px;height:18px}
.pos-day{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:8px;background:#edf3eb;color:#385846;font-size:12px;font-weight:650}
.pos-day::before{content:'';width:7px;height:7px;border-radius:50%;background:#358756}
.pos-day:not([data-state=OPEN]){background:#fff3d6;color:#775717}
.pos-day:not([data-state=OPEN])::before{background:#bb8319}
.pos-notice:not(:empty){padding:12px 16px;background:#e5f3e9;color:#18492e;border:1px solid #bfd8c5;border-radius:9px;margin-bottom:14px}
.pos-notice.error:not(:empty){color:#8c381e;background:#fff0e4;border-color:#eccfb8}
.pos-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:20px;align-items:start}
.pos-menu-pane{min-width:0}
.pos-section-heading,.pos-cart-head{display:flex;gap:10px;align-items:center}
.pos-section-heading{justify-content:space-between;margin:0 0 12px}
.pos-section-heading h2,.pos-cart h2,.pos-quick h2{font-size:19px;letter-spacing:-.035em;margin:0}
.pos-section-heading kbd{font:11px var(--font);color:var(--pos-muted);background:#fff;border:1px solid var(--pos-border);border-bottom-width:2px;padding:1px 6px;border-radius:5px}
.pos-cart{margin:0;position:sticky;top:16px;padding:0;overflow:hidden}
.pos-cart-head{padding:16px 18px;border-bottom:1px solid var(--pos-border)}
.pos-cart-head>span:first-child{height:32px;width:32px;display:grid;place-items:center;background:#e7f2ea;border-radius:9px}
.pos-cart-head [data-count]{margin-left:auto;color:var(--green);background:#f0f5ee;min-width:24px;text-align:center;border-radius:6px;font-weight:650}
.pos-lines{max-height:340px;overflow:auto}
.pos-empty{text-align:center;padding:22px 12px;color:var(--pos-muted)}
.pos-empty .report-icon{width:25px;height:25px;color:#789b85}
.pos-empty p{font-size:14px;font-weight:700;margin:5px 0 2px;color:var(--green)}
.pos-empty small,.pos-line small{font-size:12px}
.pos-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:start;padding:12px 16px;border-bottom:1px solid var(--line)}
.pos-line strong,.pos-line b{font-size:13px}
.pos-line small{display:block;color:var(--pos-muted);overflow-wrap:anywhere}
.pos-line>div:first-child{overflow-wrap:anywhere}
.pos-line>.text-button{justify-self:end;align-self:center;padding:3px}
.pos-line-tools{display:inline-flex;align-items:center;gap:5px;justify-self:start;border:1px solid var(--pos-border);border-radius:8px;overflow:hidden}
.pos-line-tools button{border:0;background:#f5f8f4;height:29px;width:30px}
.pos-line-tools span{min-width:16px;text-align:center;font-size:12px}
.pos-checkout{padding:15px 17px;border-top:1px solid var(--pos-border)}
.pos-checkout label,.pos-manual-form label,.pos-quick label{font-size:12px;margin:0 0 10px}
.pos-checkout label input,.pos-checkout label select,.pos-manual-form input,.pos-quick input,.pos-quick select{display:block;margin-top:4px;min-height:38px;padding:7px 10px;font-weight:450;font-size:13px}
.pos-checkout input,.pos-checkout select,.pos-quick input,.pos-quick select{width:100%}
.pos-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.pos-summary{border-top:1px dashed #cbd9d0;margin:5px 0 12px;padding-top:10px}
.pos-summary>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:2px 0}
.pos-summary .pos-total{align-items:baseline;font-size:16px;color:var(--green);font-weight:700}
.pos-total small{font-weight:500;font-size:10px;color:var(--pos-muted)}
.pos-total strong{font-size:25px;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.pos-change{color:#39694d;font-size:13px}
.pos-operation-hint{font-size:12px;color:var(--pos-muted);margin:6px 0}.pos-operation-hint:empty{display:none}
.pos-manual{margin-top:15px;border-top:1px solid var(--pos-border);padding:12px 0}
.pos-manual summary{color:var(--green);cursor:pointer;font-weight:600;font-size:13px}
.pos-manual-form{background:#fff;border:1px solid var(--pos-border);padding:15px;margin-top:12px;border-radius:10px}
.pos-quick{max-width:600px}.pos-quick>.muted{margin:8px 0 20px}.pos-quick>button{margin-top:8px}
@media(min-width:901px) and (max-width:1150px){.pos-layout{gap:12px;grid-template-columns:minmax(0,1.25fr) minmax(255px,1fr)}}
@media(max-width:760px){.pos-layout{grid-template-columns:minmax(0,1fr)}.pos-cart{position:static}.pos-bar{gap:7px}.pos-tabs button{padding:9px;font-size:12px}.pos-section-heading kbd{display:none}.pos-tabs{max-width:100%}.pos-line-tools button{height:36px;width:36px}}
@media(max-width:425px){.pos-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.pos-tabs button{justify-content:center}}
.pos-review-shortcut{display:none}
@media(max-width:760px){.pos-review-shortcut:not([hidden]){display:block;position:sticky;top:8px;z-index:4;margin:0 0 10px auto;border:1px solid var(--green);background:var(--green);color:white;box-shadow:0 2px 10px #103c342b;padding:9px 13px;border-radius:9px;font-size:13px;font-weight:650}.pos-cart{scroll-margin-top:50px}}
