/* NOVA HOTEL POS v1.1 — kiosk Lenovo 1920x1080 / skalowanie Windows 125% = ok. 1536x864 CSS px.
   Bez zewnętrznych fontów. Zachowany wygląd NOVA: granat, morski, jasne karty. */
:root {
  --navy:#163147;--navy-2:#213d51;--teal:#087e75;--teal-dark:#08695f;
  --paper:#f2f5f4;--line:#d7e0df;--ink:#172e3e;--muted:#607483;
  --red:#a92836;--radius:16px;
}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;font-family:Arial,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper)}
body{overscroll-behavior:none}
button,input,textarea{font:inherit}
button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;
  min-height:58px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);
  font-weight:700;padding:11px 18px;transition:background-color .15s,border-color .15s}
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:#fff;border-color:var(--teal)}
button.primary:active{background:var(--teal-dark)}
button.danger{color:var(--red);background:#fff4f3;border-color:#efd0d0}
button.quiet{background:transparent}
.shell{height:100dvh;min-height:590px;display:flex;flex-direction:column}
.topbar{height:76px;flex:none;padding:0 28px;background:var(--navy);color:#fff;display:flex;align-items:center;gap:28px}
.brand{font-size:28px;font-weight:800;letter-spacing:-.7px;line-height:1.07;white-space:nowrap}
.brand small{font-size:12px;font-weight:600;display:block;letter-spacing:2px;opacity:.75;margin-top:5px}
.step{font-size:15px;color:#d3e4e7;font-weight:600;white-space:nowrap}
.topbar-end{display:flex;align-items:center;gap:14px;margin-left:auto;min-width:0}
.sync-status{display:flex;align-items:center;gap:9px;font-size:14px;color:#e1f4eb;white-space:nowrap;font-weight:600}
.sync-dot{display:inline-block;flex:none;width:10px;height:10px;background:#79d69d;border-radius:50%;box-shadow:0 0 0 3px #ffffff12}
.sync-error{color:#ffdfc2}.sync-error .sync-dot{background:#f0a469}
.sync-warning{color:#ffdfc2}.sync-warning .sync-dot{background:#f0be69}
.sync-pending{color:#ccd8dc}.sync-pending .sync-dot{background:#b6cbd5}
.sync-button{min-width:44px;min-height:44px;padding:0;background:#ffffff13;border:1px solid #ffffff2c;color:white;border-radius:10px;font-size:28px;font-weight:400;line-height:1}
.sync-button:active{background:#ffffff40}
.clock{font-size:22px;font-weight:700;white-space:nowrap;padding-left:12px;border-left:1px solid #ffffff33}
.content{flex:1;min-height:0;overflow:auto;padding:18px 28px;display:flex;flex-direction:column;gap:13px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none;min-height:56px}
.section-head h1{font-size:30px;margin:0;letter-spacing:-.7px;line-height:1.15}
.section-head p{margin:5px 0 0;color:var(--muted);font-size:16px}
.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);font-weight:800;margin-bottom:5px}
.section-head button[data-action="search"]{background:#fff;min-width:240px;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;padding-left:22px;font-size:17px}
.section-head button[data-action="search"]:before{content:'⌕';font-size:29px;line-height:0;vertical-align:-3px;margin-right:11px;font-weight:400}
.categories{display:flex;gap:10px;flex:none;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#a4bab7 transparent;padding:2px 1px 5px}
.categories button{padding:8px 19px;min-height:55px;font-size:16px;white-space:nowrap;flex:1 0 auto;max-width:280px;border-radius:12px}
.categories .selected{background:var(--navy);color:#fff;border-color:var(--navy)}
.product-layout{display:grid;grid-template-columns:minmax(0,1fr) 385px;gap:18px;flex:1;min-height:0}
.product-list{overflow:auto;overscroll-behavior:contain;padding:2px 5px 8px 2px;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:min-content;gap:13px;align-content:start;scrollbar-width:thin}
.product-card{min-width:0;min-height:119px;display:flex;flex-direction:column;align-items:start;text-align:left;padding:16px;position:relative;border-radius:15px;box-shadow:0 2px 8px #122f3908}
.product-name{font-size:18px;line-height:1.22;padding-right:8px;overflow-wrap:anywhere;font-weight:750}
.product-unit{font-size:15px;color:var(--muted);margin-top:auto;padding-top:10px;font-weight:500}
.product-card .badge{position:absolute;right:10px;bottom:10px;min-width:35px;height:35px;padding:0 7px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--teal);color:#fff;font-size:17px}
.product-card.in-cart{border:2px solid var(--teal);background:#edf9f5}
.empty-stock{color:#9b5a19}
.basket{background:#fff;border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;min-height:0;overflow:hidden;box-shadow:0 3px 14px #1631470b}
.basket-title{font-size:22px;font-weight:800;padding:20px 20px 17px;border-bottom:1px solid var(--line);flex:none;background:#fbfdfc}
.basket-items{overflow:auto;overscroll-behavior:contain;flex:1;padding:0 17px;scrollbar-width:thin}
.basket-row{padding:14px 0 16px;border-bottom:1px solid #e6edeb}
.basket-row:last-child{border-bottom:0}
.basket-row.short-stock{background:#fff4f1;margin:0 -9px;padding-left:9px;padding-right:9px;border-radius:10px}
.basket-name{font-size:17px;font-weight:800;line-height:1.3}
.basket-stock{font-size:13px;color:var(--muted);margin-top:4px}
.short-stock .basket-stock{color:var(--red);font-weight:700}
.qty-controls{display:flex;gap:9px;align-items:center;margin-top:10px}
.qty-controls button{padding:5px;min-height:54px;min-width:54px;font-size:25px}
.qty-controls .number{flex:1;font-size:21px}
.qty-controls .number small{font-size:13px}
.basket-bottom{padding:14px 18px;background:#f7faf9;font-size:14px;color:var(--muted);border-top:1px solid var(--line);text-align:center}
.empty{padding:28px 15px;font-size:17px;line-height:1.5;color:var(--muted);text-align:center}
.footer{padding:12px 28px;border-top:1px solid var(--line);background:#fff;display:flex;align-items:center;gap:14px;flex:none;min-height:88px;box-shadow:0 -4px 14px #16314708}
.footer .push{margin-left:auto}
.footer .primary{min-width:285px;font-size:22px;min-height:64px}
.footer button:not(.primary){min-width:145px;font-size:17px}
.footer-info{font-size:16px;color:var(--muted)}.footer-info strong{display:block;color:var(--ink);font-size:20px;margin-bottom:4px}
.confirm-layout{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:24px;flex:1;min-height:0}
.summary{min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.summary h2{margin:0;padding:21px 23px;background:#e8f1ee;font-size:26px}
.summary-items{overflow:auto;flex:1;padding:0 23px}
.summary-row{display:flex;justify-content:space-between;gap:18px;padding:19px 0;border-bottom:1px solid var(--line);font-size:20px;line-height:1.32}
.summary-row strong{white-space:nowrap}
.summary-row.short-stock{color:var(--red)}
.summary-note{margin:13px 18px;padding:14px 16px;border-radius:11px;background:#f3f6f5;white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;max-height:112px;overflow:auto}
.note-button{margin:0 19px 19px;text-align:left;min-height:58px}
.pin-panel{display:flex;flex-direction:column;gap:12px;max-width:440px;width:100%;margin:0 auto}
.pin-title{text-align:center;margin:8px 0 0;font-size:23px}
.pin-dots{height:55px;display:flex;align-items:center;justify-content:center;gap:18px}
.pin-dot{width:18px;height:18px;border-radius:50%;border:2px solid #849a9e;background:#fff}
.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:70px;font-size:30px;background:#fff}
.keypad .small{font-size:18px}
.pin-hint{text-align:center;color:var(--muted);font-size:15px;line-height:1.4;margin:0}
.alert{padding:13px 18px;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:690px;width:100%;padding:35px;background:#fff;border:1px solid var(--line);border-radius:24px;text-align:center}
.center-card h1{font-size:34px;margin:11px 0}.center-card p{font-size:19px;line-height:1.45}
.center-card button.primary{min-width:220px}
.success-mark{display:flex;width:82px;height:82px;border-radius:50%;background:#deefe6;color:var(--teal);font-size:46px;align-items:center;justify-content:center;margin:0 auto 18px}
.receipt-name{font-size:27px;font-weight:700}
.receipt-lines{margin:18px 0;text-align:left;font-size:18px;max-height:230px;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:#11283bdc;z-index:10;display:flex;align-items:center;justify-content:center;padding:18px}
.dialog{background:var(--paper);border-radius:22px;width:600px;max-width:calc(100vw - 35px);max-height:calc(100dvh - 36px);overflow:auto;padding:24px;box-shadow:0 20px 80px #0004}
.dialog h2{margin:0 0 12px;font-size:26px}
.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:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:14px;min-height:65px}
.text-dialog{width:1000px;padding:20px}
.text-entry{width:100%;height:85px;resize:none;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:22px;background:#fff}
.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:53px;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(min-width:1700px){
  .product-list{grid-template-columns:repeat(5,minmax(0,1fr))}
  .product-layout{grid-template-columns:minmax(0,1fr) 430px}
}
@media(max-width:1230px){
  .topbar{gap:18px;padding:0 20px}.sync-status{font-size:12px}.content{padding:16px 20px}
  .product-layout{grid-template-columns:minmax(0,1fr) 330px;gap:14px}
  .product-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .product-name{font-size:17px}.product-card{min-height:114px;padding:13px}
  .footer{padding-left:20px;padding-right:20px}.confirm-layout{grid-template-columns:minmax(0,1fr) 365px}
}
@media(max-width:900px){
  .topbar{height:68px}.brand{font-size:23px}.brand small{font-size:10px}.step{display:none}
  .product-layout{grid-template-columns:minmax(0,1fr) 290px}
  .product-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .categories button{min-height:50px;font-size:14px}
  .confirm-layout{grid-template-columns:minmax(0,1fr) 300px;gap:15px}
  .keypad button{min-height:61px}.pin-title{font-size:19px}
  .sync-status{font-size:12px}.clock{font-size:18px}
}
@media(max-width:620px){
  .shell{height:auto;min-height:100dvh}.topbar{height:70px;padding:0 14px;gap:10px}
  .brand{font-size:20px}.brand small{letter-spacing:1px}
  .sync-status{display:none}.clock{font-size:15px;padding-left:8px}.topbar-end{gap:7px}
  .content{min-height:calc(100dvh - 155px);padding:14px;gap:10px}
  .section-head h1{font-size:23px}.section-head button[data-action="search"]{min-width:0;max-width:50%;font-size:14px;padding:9px}
  .product-layout,.confirm-layout{display:flex;flex-direction:column;min-height:0}
  .product-list{max-height:42dvh;min-height:230px}.basket{max-height:280px;min-height:135px}
  .summary{max-height:350px;min-height:210px}
  .footer{flex-wrap:wrap;position:sticky;bottom:0;z-index:2;padding:10px 14px;min-height:76px}
  .footer .primary{min-width:0;flex:1;font-size:17px;min-height:58px}.footer button:not(.primary){min-width:0}
  .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:380px;width:100%;align-self:center}
}
@media(max-height:740px) and (min-width:900px){
  .topbar{height:64px}.content{padding-top:12px;padding-bottom:12px;gap:9px}
  .footer{min-height:73px;padding-top:8px;padding-bottom:8px}.footer .primary{min-height:55px}
  .categories button{min-height:47px}.product-card{min-height:105px}
  .keypad button{min-height:54px}.pin-dots{height:44px}.pin-panel{gap:7px}
}
