:root { --bg:#f6f7f9; --card:#fff; --ink:#1d2330; --muted:#5f6b7a; --line:#dde2e8; --accent:#1f6feb; --err:#b42318; }
@media (prefers-color-scheme: dark) { :root { --bg:#12151b; --card:#1b2029; --ink:#e7eaf0; --muted:#9aa4b2; --line:#2c3340; --accent:#4c8dff; --err:#ff8a7a; } }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background:var(--bg); color:var(--ink); }
a { color:var(--accent); }
.top { display:flex; justify-content:space-between; align-items:center; padding:12px 20px; background:var(--card); border-bottom:1px solid var(--line); }
.brand { font-weight:700; text-decoration:none; color:var(--ink); }
nav { display:flex; gap:16px; align-items:center; }
.inline { display:inline; margin:0; }
.page { max-width:1200px; margin:0 auto; padding:24px 16px; }
.narrow { max-width:420px; margin:0 auto; padding:40px 16px; }
.card { display:grid; gap:14px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:20px; }
label { display:grid; gap:6px; font-weight:600; }
input { font:inherit; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--ink); }
button { font:inherit; font-weight:600; padding:10px 14px; border:0; border-radius:8px; background:var(--accent); color:#fff; cursor:pointer; }
button.link { background:none; color:var(--accent); padding:0; font-weight:400; }
small, .muted { color:var(--muted); font-weight:400; }
.error { background:color-mix(in srgb, var(--err) 12%, transparent); color:var(--err); padding:10px 12px; border-radius:8px; }
.qr { background:#fff; padding:12px; border-radius:10px; width:max-content; margin:12px 0; }
.qr svg { display:block; width:200px; height:200px; }
.board { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; }
@media (max-width:800px) { .board { grid-template-columns:1fr; } }
.column { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px; }
.column h2 { font-size:16px; margin:0 0 10px; display:flex; justify-content:space-between; }
.count { color:var(--muted); font-weight:400; }
.order { display:grid; gap:2px; padding:10px; border:1px solid var(--line); border-radius:8px; margin-bottom:8px; }
table { width:100%; border-collapse:collapse; background:var(--card); }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); }
.head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.flash { background:color-mix(in srgb, var(--accent) 12%, transparent); padding:10px 12px; border-radius:8px; }
.row { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.badge { font-size:11px; font-weight:700; padding:2px 6px; border-radius:6px; color:#fff; background:var(--muted); white-space:nowrap; }
.badge-in-ritardo, .badge-annullo-richiesto { background:var(--err); }
.badge-parte-oggi { background:#b54708; }
.items { margin:6px 0 0; padding-left:18px; }
.move { margin-top:6px; }
.move button { padding:6px 10px; font-size:13px; }
.spaced { margin:12px 0 24px; }
.wide { max-width:640px; }
fieldset { border:1px solid var(--line); border-radius:8px; padding:10px; }
.checks { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px,1fr)); gap:6px; }
label.check { display:flex; gap:6px; align-items:center; font-weight:400; }
.prova { background:#b45309; color:#fff; text-align:center; font-weight:600; padding:6px 12px; }
