:root{color-scheme:light;--ink:#423624;--gold:#caa44f;--border:#dfd2b3;--paper:#fffdf8;--bg:#faf7ed;font-family:system-ui,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{display:flex;gap:12px;align-items:center;background:var(--paper);border-bottom:1px solid var(--border);padding:12px 4%;}header img{width:110px;max-height:65px;object-fit:contain}header small,small{display:block;color:#77684c}header button{margin-left:auto}main{max-width:1100px;margin:auto;padding:20px 14px}h1{font:600 32px Georgia,serif;margin:6px 0 16px}h2{font-size:20px;margin:0 0 10px}.panel,.stat{background:var(--paper);border:1px solid var(--border);border-radius:12px;padding:18px;margin-bottom:14px}.login{max-width:420px;margin:30px auto}label{display:block;font-size:14px;font-weight:600}input,button{font:inherit;border:1px solid var(--border);border-radius:8px;padding:11px;background:white;color:var(--ink)}input{width:100%;min-width:0;margin:6px 0 13px}button{cursor:pointer;min-height:44px}button:disabled{opacity:.5;cursor:not-allowed}.gold{background:var(--gold);font-weight:650}.login button{width:100%}.date,.title,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between}.date label{flex:1}.date input{margin:4px 0 0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stat{margin:0 0 14px;border-top:3px solid var(--border)}.stat strong{display:block;font-size:24px;margin:6px 0}.stat small{font-size:13px}.customer{display:grid;grid-template-columns:24px 1.5fr 1fr 1fr 1fr auto;gap:12px;align-items:center;border-top:1px solid var(--border);padding:13px 0}.customer input[type=checkbox]{width:20px;height:20px;margin:0}.customer input[type=number]{margin:4px 0}.customer strong{overflow-wrap:anywhere}.muted{color:#77684c;font-size:13px}#status,#login-status{white-space:pre-wrap;font-size:14px}#status:not(:empty){padding:10px;background:#f4ebd5;border-radius:6px;margin:8px 0}footer{text-align:center;font-size:12px;color:#77684c;padding:20px}dialog{border:1px solid var(--border);border-radius:12px;max-width:90vw;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#0007}@media(max-width:700px){.stats{grid-template-columns:repeat(2,1fr)}.stat strong{font-size:20px}.customer{grid-template-columns:24px 1fr 1fr}.customer strong{grid-column:span 2}.customer button{grid-column:span 3}.customer label{grid-column:span 1}.title #identity{font-size:12px;overflow-wrap:anywhere}header img{width:85px}.panel{padding:13px}}
