:root{font:16px/1.5 system-ui,sans-serif;color:#17332e;background:#edf2ef}
*{box-sizing:border-box}
body{margin:0}
header{display:flex;align-items:center;gap:1rem;padding:1rem max(1.25rem,calc((100% - 1120px)/2));background:#112e29;color:white}
header strong{font-size:1.4rem;margin-inline-end:auto}
header button{background:#e4efe9}
main{max-width:1160px;margin:auto;padding:1.25rem;display:grid;grid-template-columns:1.25fr 1fr;gap:1rem;align-items:start}
section{background:#fff;padding:1.25rem;border:1px solid #d6e2da;border-radius:1rem}
h1,h2{line-height:1.2;margin:0 0 1rem}h1{font-size:2rem}h2{font-size:1.25rem}
.row,.total,li{display:flex;gap:.6rem;align-items:center}
input,button{font:inherit;color:inherit;border:1px solid #a5b9ad;border-radius:.55rem;min-height:44px;padding:.45rem .75rem}
input{min-width:0;flex:1;background:#fff}
button{cursor:pointer;background:#eff5f1;font-weight:600}
button:disabled{opacity:.55;cursor:default}
:focus-visible{outline:3px solid #12825e;outline-offset:2px}
label{display:block;margin-bottom:.35rem}
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.65rem}
.products button{text-align:start}.products small{display:block}
ul{list-style:none;padding:0;margin:0}
li,.total{justify-content:space-between;padding:.65rem 0;border-bottom:1px solid #d6e2da}
li span:first-child{flex:1}
.total{font-size:1.25rem;margin-bottom:.75rem}
.basket>button{width:100%;margin-top:.4rem}
.primary{background:#125740;color:#fff}
.sync{grid-column:1/-1}
#retry,#camera{margin-top:.6rem}
#preview{width:100%;max-height:260px;margin-top:.6rem}
#receipt{display:none}
@media(max-width:720px){main{grid-template-columns:1fr}}
@page{margin:3mm}
@media print{
 body{color:#000;background:#fff}header,main{display:none}
 #receipt{display:block;width:100%;max-width:72mm;margin:auto;font:11px/1.4 system-ui,sans-serif;direction:ltr;overflow-wrap:anywhere}
 #receipt h1{font-size:16px;text-align:center}
 #receipt table{width:100%;border-collapse:collapse;text-align:start}
 #receipt th,#receipt td{padding:3px 1px;text-align:start;border-bottom:1px solid #ccc}
 #receipt tr{break-inside:avoid}
}
