:root{--ink:#543628;--roux:#9c4527;--papier:#fff9ed;--or:#ca9f52;--bord:#dbc498}
body{color:var(--ink);background-color:#f6e5d1;background-image:repeating-linear-gradient(0deg,transparent 0 13px,#bb63342b 13px 26px),repeating-linear-gradient(90deg,transparent 0 13px,#bb63342b 13px 26px)}
header{justify-content:center;padding:0;background:transparent;height:140px;overflow:hidden}
header img{width:auto;height:100%;max-width:100%;object-fit:contain;background:none;border-radius:0;mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
main{background:var(--papier);max-width:1170px;padding:24px clamp(14px,3vw,40px) 48px;border:5px double var(--or);border-radius:26px;margin:0 auto 30px}
h1,h2{color:var(--roux)}h1{font-style:italic;letter-spacing:-.04em;margin:0 0 14px}h2{font-style:italic}
nav{display:flex;gap:8px;border-bottom:1px solid var(--bord);padding-bottom:13px}button{border-color:var(--bord);color:var(--ink);background:#fffaf0}button:hover:enabled,button:focus-visible,input:focus-visible{outline:2px solid var(--roux);outline-offset:2px}
button[aria-pressed=true],.go{background:var(--roux);color:white;outline:none}nav button{min-width:100px;border-radius:24px;font-weight:650}
.bilan{gap:0;flex-wrap:wrap;background:#f3e7d0;border-block:1px solid var(--bord)}.bilan div{border-radius:0;background:none;min-width:135px}.bilan strong{color:var(--roux);font-variant-numeric:tabular-nums}#guide{font:italic 20px Georgia}
article button{border-radius:48% 48% 10px 10px / 18px 18px 10px 10px;padding:12px 10px 8px;background:#fffcf5;text-align:center;border:1px solid var(--bord);font-weight:bold;overflow:hidden}
article img{display:block;background:#f5eee2;border-radius:inherit;margin:0 0 10px}
article button:disabled{opacity:1;color:#665349;cursor:default}article small{font:13px system-ui;color:#675445}aside{background:#fff4df;border:4px double var(--or);border-radius:28px 28px 12px 12px;position:sticky;top:12px}aside h2{margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid var(--bord)}.row{background:#fffcf6}.row:nth-child(even){background:#f7ecd9}.row input{border:1px solid #aa8966;border-radius:7px;color:var(--ink);background:white}
@media(min-width:850px){h1{float:left}nav{justify-content:flex-end;align-items:center;min-height:77px}#inventory,#checkout{clear:both}}
@media(max-width:720px){header{height:94px}main{margin:0 4px 12px;padding:16px 10px;border-radius:18px}aside{position:static}.bilan div{padding:10px 14px}}
nav{flex-wrap:wrap}#results{clear:both}.report-table{overflow:auto}#results table{width:100%;border-collapse:collapse;background:#fffcf6}#results th,#results td{text-align:left;padding:10px;border-bottom:1px solid var(--bord)}#results th{background:#f3e7d0}
@media(max-width:440px){nav button{min-width:0;flex:1}}
#treasury{clear:both}dialog{border:4px double var(--or);border-radius:18px;background:var(--papier);color:var(--ink);width:min(94vw,540px);max-height:90vh;overflow:auto}dialog::backdrop{background:#40291680}dialog h2{margin-top:0}dialog select,dialog input{font:inherit;padding:8px;max-width:100%}#cashButtons{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:8px}#cashButtons button{padding:7px}#changeInfo{font-weight:bold}nav{clear:both;justify-content:flex-start}
#cashButtons{display:block}#cashButtons h3{margin:12px 0 8px;font:italic 20px Georgia;color:var(--roux)}.cash-group{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:6px}#cashButtons .denom{position:relative;background:var(--shade);color:#392c23;font:bold 17px Georgia;border:3px double #887858;min-height:44px}.bill{width:76px;border-radius:4px}.coin{width:49px;height:49px;border-radius:50%}.denom em{position:absolute;right:-5px;top:-7px;background:#603a24;border-radius:12px;color:white;padding:2px 5px;font:bold 12px system-ui}#receiptDialog{text-align:center;padding:24px}#receiptDialog h2{margin-bottom:4px}#returnTotal{font:bold clamp(52px,12vw,80px) Georgia;color:var(--roux)}#returnDetail{font-size:23px;font-weight:bold;background:#f4e7cd;padding:12px;border-radius:10px}
