/* styles.css — interfejs dotykowy 1024 × 768 / 4:3, bez zewnętrznych fontów. */
:root{--navy:#163147;--teal:#087e75;--paper:#f2f5f4;--line:#d7e0df;--ink:#172e3e;--muted:#617381;--red:#a92836;--radius:16px}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;font-family:Arial,sans-serif;color:var(--ink);background:var(--paper)}
button,input,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;min-height:56px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-weight:700;padding:12px 18px}
button:active{background:#e1eeeb;transform:translateY(1px)}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #e6a43c;outline-offset:2px}button:disabled{opacity:.45;cursor:default;transform:none}
button.primary{background:var(--teal);color:white;border-color:var(--teal)}button.danger{color:var(--red);background:#fff4f3;border-color:#efd0d0}button.quiet{background:transparent}
.shell{height:100dvh;min-height:600px;display:flex;flex-direction:column}.topbar{height:66px;flex:none;padding:0 24px;background:var(--navy);color:white;display:flex;align-items:center;gap:16px}.brand{font-size:25px;font-weight:800;letter-spacing:-.6px}.brand small{font-size:14px;font-weight:400;display:block;letter-spacing:0;opacity:.8}.clock{margin-left:auto;font-size:20px;white-space:nowrap}.step{font-size:14px;opacity:.8}
.content{flex:1;min-height:0;overflow:auto;padding:20px 24px;display:flex;flex-direction:column;gap:14px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none}.section-head h1{font-size:27px;margin:0;letter-spacing:-.5px}.section-head p{margin:5px 0 0;color:var(--muted);font-size:16px}.eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);font-weight:700;margin-bottom:6px}
.location-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-content:start;margin-top:5px}.location-card{min-height:112px;padding:20px 12px;font-size:21px;text-align:center;display:flex;align-items:center;justify-content:center;border-bottom:4px solid #ccdbd7;border-radius:var(--radius)}
.footer{padding:14px 24px;border-top:1px solid var(--line);background:white;display:flex;align-items:center;gap:12px;flex:none;min-height:86px}.footer .push{margin-left:auto}.footer .primary{min-width:250px;font-size:21px}.footer-info{font-size:16px;color:var(--muted)}.footer-info strong{display:block;color:var(--ink);font-size:20px;margin-bottom:4px}
.categories{display:flex;gap:8px;flex:none;overflow-x:auto;padding:2px 0}.categories button{padding:10px 12px;min-height:52px;font-size:15px;white-space:nowrap;flex:1}.categories .selected{background:var(--navy);color:white;border-color:var(--navy)}
.product-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;flex:1;min-height:0}.product-list{overflow:auto;padding:2px 4px 8px 2px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}.product-card{min-height:124px;display:flex;flex-direction:column;align-items:start;text-align:left;padding:14px;position:relative}.product-name{font-size:17px;line-height:1.25;padding-right:12px;overflow-wrap:anywhere}.product-unit{font-size:14px;color:var(--muted);margin-top:auto;padding-top:12px;font-weight:400}.badge{position:absolute;right:8px;bottom:9px;min-width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--teal);color:white;font-size:18px}.product-card.in-cart{border:2px solid var(--teal);background:#f3fbf8}.empty-stock{color:#995c13}
.basket{background:white;border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;min-height:0;overflow:hidden}.basket-title{font-size:18px;font-weight:700;padding:15px 16px;border-bottom:1px solid var(--line);flex:none}.basket-items{overflow:auto;flex:1;padding:0 14px}.basket-row{padding:13px 0;border-bottom:1px solid #e6edeb}.basket-row:last-child{border-bottom:0}.basket-name{font-size:15px;font-weight:700;line-height:1.3}.qty-controls{display:flex;gap:6px;align-items:center;margin-top:9px}.qty-controls button{padding:5px;min-height:46px;min-width:46px;font-size:23px}.qty-controls .number{flex:1;font-size:19px}.basket-bottom{padding:10px 14px;background:#f8faf9;font-size:15px;color:var(--muted)}.empty{padding:25px 12px;font-size:16px;line-height:1.5;color:var(--muted);text-align:center}
.confirm-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;flex:1;min-height:0}.summary{min-height:0;display:flex;flex-direction:column;background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.summary h2{margin:0;padding:18px 20px;background:#e8f1ee;font-size:24px}.summary-items{overflow:auto;flex:1;padding:0 20px}.summary-row{display:flex;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid var(--line);font-size:18px;line-height:1.3}.summary-row strong{white-space:nowrap}.summary-note{margin:12px 16px;padding:12px 14px;border-radius:10px;background:#f3f6f5;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;max-height:105px;overflow:auto}.note-button{margin:0 16px 16px;text-align:left;min-height:54px}.pin-panel{display:flex;flex-direction:column;gap:12px}.pin-title{text-align:center;margin:2px 0 0;font-size:21px}.pin-dots{height:52px;display:flex;align-items:center;justify-content:center;gap:18px}.pin-dot{width:17px;height:17px;border-radius:50%;border:2px solid #849a9e;background:white}.pin-dot.filled{background:var(--teal);border-color:var(--teal)}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.keypad button{min-height:68px;font-size:29px}.keypad .small{font-size:15px}.pin-hint{text-align:center;color:var(--muted);font-size:14px;line-height:1.4;margin:0}
.alert{padding:13px 16px;border:1px solid #ecc0bc;border-radius:12px;background:#fff3ef;color:#92372e;font-size:16px;line-height:1.4;flex:none}.alert.info{border-color:#bdd9d4;background:#eaf6f2;color:#235e54}.pending-actions{display:flex;gap:12px;justify-content:center}.center-card{margin:auto;max-width:650px;width:100%;padding:32px;background:white;border:1px solid var(--line);border-radius:24px;text-align:center}.center-card h1{font-size:32px;margin:10px 0}.center-card p{font-size:19px;line-height:1.45}.success-mark{display:flex;width:78px;height:78px;border-radius:50%;background:#deefe6;color:var(--teal);font-size:45px;align-items:center;justify-content:center;margin:0 auto 18px}.receipt-name{font-size:26px;font-weight:700}.receipt-lines{margin:18px 0;text-align:left;font-size:17px;max-height:200px;overflow:auto}.receipt-lines div{padding:6px 0}.boot{padding:80px;text-align:center;font-size:24px}.activation-input{display:block;width:100%;height:64px;margin:20px 0;font-size:24px;border:1px solid var(--line);border-radius:12px;padding:12px;text-align:center}.activation-caption{font-size:15px!important;color:var(--muted)}
.overlay-bg{position:fixed;inset:0;background:#11283bd9;z-index:10;display:flex;align-items:center;justify-content:center;padding:16px}.dialog{background:var(--paper);border-radius:22px;width:580px;max-height:calc(100dvh - 32px);overflow:auto;padding:24px;box-shadow:0 20px 80px #0004}.dialog h2{margin:0 0 12px;font-size:25px}.dialog .dialog-actions{display:flex;gap:12px;margin-top:18px}.dialog-actions button{flex:1}.quantity-value{font-size:32px;text-align:center;padding:12px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:14px;min-height:65px}.text-dialog{width:950px;padding:20px}.text-entry{width:100%;height:85px;resize:none;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:22px;background:white}.keyboard{display:flex;flex-direction:column;gap:8px;margin-top:12px}.keyboard-row{display:flex;gap:7px;justify-content:center}.keyboard-row button{min-width:0;flex:1;min-height:50px;padding:6px;font-size:22px}.keyboard-row .wide{flex:2.2;font-size:16px}.keyboard-row .space{flex:6;font-size:16px}.counter{font-size:13px;color:var(--muted);margin-top:5px}
@media(max-width:900px){.content{padding:16px}.topbar,.footer{padding-left:16px;padding-right:16px}.product-layout{grid-template-columns:minmax(0,1fr) 240px}.product-list{grid-template-columns:repeat(2,minmax(0,1fr))}.location-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.categories button{font-size:13px}.confirm-layout{grid-template-columns:minmax(0,1fr) 280px}.keypad button{min-height:60px}.brand{font-size:22px}}
@media(max-width:620px){.shell{height:auto;min-height:100dvh}.topbar{height:70px}.step{display:none}.clock{font-size:16px}.content{min-height:calc(100dvh - 160px)}.location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.location-card{font-size:18px;min-height:92px}.product-layout,.confirm-layout{display:flex;flex-direction:column;min-height:0}.product-list{max-height:42dvh;min-height:230px}.basket{max-height:260px;min-height:130px}.summary{max-height:350px;min-height:220px}.footer{flex-wrap:wrap;position:sticky;bottom:0;z-index:2}.footer .primary{min-width:0;flex:1;font-size:18px}.footer-info{display:none}.section-head h1{font-size:23px}.keyboard-row{gap:3px}.keyboard-row button{padding:3px;min-height:43px;font-size:17px}.text-dialog{padding:12px}.dialog{padding:16px}.pin-panel{max-width:360px;width:100%;align-self:center}}
