/* DeskZon: grafica approvata da Gianluca il 25/11 (bozza "tutte le pagine"). Solo font di sistema: la CSP non ammette font esterni. */
:root {
  --bg:#F4F6FA; --card:#FFFFFF; --soft:#F8FAFD; --ink:#151B2C; --ink2:#3A4257; --muted:#5A6378; --faint:#6B7489;
  --line:#E3E7EF; --line2:#EEF1F6; --accent:#2457F5; --accent-dark:#1A3FB8; --accent-bg:#EEF2FF;
  --orange:#E07A12; --orange-bg:#FFF6EC; --orange-line:#F6D3AE; --orange-ink:#7A3E00;
  --green:#0E7A43; --green-bg:#E3F6EC; --err:#B42318; --err-bg:#FDECEA; --colbg:#EDF0F6;
}
@media (prefers-color-scheme: dark) { :root {
  --bg:#0F131C; --card:#171C28; --soft:#1C2231; --ink:#E8EBF2; --ink2:#C3C9D6; --muted:#9AA4B6; --faint:#8790A3;
  --line:#2A3142; --line2:#232A3A; --accent:#5B84FF; --accent-dark:#86A5FF; --accent-bg:#1E2847;
  --orange:#F28C28; --orange-bg:#2B2015; --orange-line:#5A3D1E; --orange-ink:#F6C58F;
  --green:#4CC38A; --green-bg:#16301F; --err:#FF8A7A; --err-bg:#3A1C1A; --colbg:#131826;
} }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--ink); }
a { color:var(--accent); } a:hover { color:var(--accent-dark); }
h1, h2, h3 { letter-spacing:-0.01em; }
small, .muted { color:var(--muted); font-weight:400; }
.mono { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:13px; color:var(--muted); }
.inline { display:inline; margin:0; }
.center { text-align:center; }
.prova { background:#B45309; color:#fff; text-align:center; font-weight:600; padding:6px 12px; font-size:14px; }

/* logo */
.brand { text-decoration:none; color:var(--ink); }
.logo { display:inline-flex; align-items:center; gap:10px; }
.logo-mark { width:34px; height:34px; border-radius:9px; background:#151B2C; display:inline-flex; align-items:center; justify-content:center; }
.logo-text { font-size:22px; font-weight:800; letter-spacing:-0.03em; }
.logo-text span { color:var(--orange); }

/* struttura: menu a sinistra, pagina a destra */
.shell { display:flex; min-height:100vh; }
.menu-toggle { display:none; }
.side { flex:0 0 248px; background:var(--card); border-right:1px solid var(--line); padding:20px 14px; display:flex; flex-direction:column; gap:18px; position:sticky; top:0; height:100vh; overflow-y:auto; }
.side .brand { padding:0 8px; }
.shop { display:flex; flex-direction:column; gap:2px; border:1px solid var(--line); background:var(--soft); border-radius:10px; padding:10px 12px; font-size:13px; }
.shop-name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shop-sub { color:var(--muted); font-size:12px; }
.nav-group { display:flex; flex-direction:column; gap:2px; }
.nav-title { font-size:11px; font-weight:700; color:var(--faint); text-transform:uppercase; letter-spacing:.08em; padding:0 12px 6px; }
.nav-item { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; text-align:left; border:0; background:transparent; padding:8px 12px; border-radius:8px; font:inherit; font-size:14px; color:var(--ink2); text-decoration:none; min-height:36px; cursor:pointer; }
.nav-item:hover { background:var(--accent-bg); color:var(--ink); }
.nav-item.on { background:var(--accent-bg); color:var(--accent); font-weight:600; }
.nav-item.soon { color:var(--faint); }
.tag-soon { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); background:var(--line2); border-radius:999px; padding:2px 7px; }
.tag-soon.big { font-size:12px; padding:4px 10px; background:var(--orange-bg); color:var(--orange-ink); }
.logout { margin-top:auto; border-top:1px solid var(--line); padding-top:10px; }
.main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.bar { background:var(--card); border-bottom:1px solid var(--line); padding:14px 28px; display:flex; align-items:center; gap:14px; }
.bar-title { margin-right:auto; display:flex; flex-direction:column; gap:2px; }
.bar-group { font-size:12px; color:var(--muted); min-height:18px; }
.bar h1 { margin:0; font-size:22px; font-weight:700; }
.avatar { width:40px; height:40px; border-radius:50%; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; flex:0 0 auto; }
.burger { display:none; cursor:pointer; color:var(--ink2); padding:6px; border-radius:8px; border:1px solid var(--line); }
.content { padding:24px 28px 40px; display:flex; flex-direction:column; gap:20px; max-width:none; width:100%; }
@media (max-width:900px) {
  .side { position:fixed; left:0; top:0; z-index:20; transform:translateX(-100%); transition:transform .2s; }
  .menu-toggle:checked ~ .side { transform:none; box-shadow:0 10px 40px rgba(0,0,0,.2); }
  .burger { display:inline-flex; }
  .bar { padding:12px 16px; }
  .content { padding:16px 16px 32px; }
}

/* pagine di accesso */
.auth-box { max-width:420px; margin:0 auto; padding:48px 16px; display:flex; flex-direction:column; gap:14px; }
.auth-box .brand { align-self:center; margin-bottom:8px; }
.auth-box h1 { margin:8px 0 0; font-size:26px; text-align:center; }
.auth-box > .muted { text-align:center; margin:0; }

/* elementi comuni */
.card { display:grid; gap:14px; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:22px; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px 20px; display:flex; flex-direction:column; gap:14px; }
.panel h2 { margin:0; font-size:16px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.panel-foot { border-top:1px solid var(--line2); padding-top:12px; margin:0; }
label { display:grid; gap:6px; font-weight:600; font-size:14px; }
input { font:inherit; padding:10px 12px; border:1px solid #D8DDE8; border-radius:10px; background:var(--soft); color:var(--ink); min-height:42px; }
input:focus { outline:2px solid var(--accent); outline-offset:1px; }
.btn, button { font:inherit; font-weight:600; font-size:14px; padding:0 16px; min-height:40px; border:0; border-radius:10px; background:var(--accent); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; gap:6px; }
.btn:hover, button:hover { background:var(--accent-dark); color:#fff; }
button[disabled] { background:var(--line); color:var(--muted); cursor:not-allowed; }
.btn-soft { font:inherit; font-size:14px; font-weight:600; padding:0 14px; min-height:36px; border:1px solid #D8DDE8; border-radius:10px; background:var(--card); color:var(--ink2); cursor:pointer; display:inline-flex; align-items:center; text-decoration:none; }
.btn-soft:hover { background:var(--accent-bg); color:var(--ink); }
.nav-item:hover, .logout .nav-item:hover { background:var(--accent-bg); color:var(--ink); }
.pill { display:inline-block; background:var(--colbg); border-radius:999px; font-size:12px; font-weight:700; padding:2px 10px; color:var(--ink2); }
.error { background:var(--err-bg); color:var(--err); padding:12px 16px; border-radius:12px; margin:0; }
.flash { background:var(--accent-bg); color:var(--ink); padding:12px 16px; border-radius:12px; margin:0; }
.callout { background:var(--orange-bg); border:1px solid var(--orange-line); color:var(--orange-ink); border-radius:12px; padding:12px 16px; font-size:14px; }
.callout a { color:inherit; font-weight:700; }
.qr { background:#fff; padding:12px; border-radius:12px; width:max-content; margin:4px auto; }
.qr svg { display:block; width:200px; height:200px; }
fieldset { border:1px solid var(--line); border-radius:12px; padding:12px; margin:0 0 12px; }
legend { font-weight:700; font-size:13px; padding:0 6px; }
.checks { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px,1fr)); gap:8px; }
label.check { display:flex; gap:8px; align-items:center; font-weight:500; }
label.check input { min-height:auto; }
label.tile { border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:var(--soft); cursor:pointer; }
label.tile:has(input:checked) { border-color:var(--accent); background:var(--accent-bg); }
.wide { max-width:640px; }
details.manual summary { cursor:pointer; font-weight:600; color:var(--muted); }

/* numeri in alto */
.kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px,1fr)); gap:14px; }
.kpi { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 18px; display:flex; flex-direction:column; gap:6px; }
.kpi-label { font-size:13px; color:var(--muted); }
.kpi-value { font-size:26px; font-weight:800; letter-spacing:-0.02em; }

/* bacheca ordini */
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.toolbar h2 { margin:0; font-size:16px; }
.board { display:flex; gap:14px; overflow-x:auto; padding-bottom:6px; }
.column { flex:1 0 270px; background:var(--colbg); border-radius:14px; padding:12px; display:flex; flex-direction:column; gap:10px; }
.column-head { display:flex; align-items:center; justify-content:space-between; padding:2px 4px; }
.column-head h3 { margin:0; font-size:14px; }
.column-head .pill { background:var(--card); }
.order { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px; display:flex; flex-direction:column; gap:8px; }
.row { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.row.small { font-size:12px; }
.ch { font-size:11px; font-weight:700; border-radius:999px; padding:2px 8px; background:#FFF1E0; color:#9A4A00; }
.badge { font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; color:#fff; background:var(--muted); white-space:nowrap; }
.badge-in-ritardo, .badge-annullo-richiesto { background:var(--err); }
.badge-parte-oggi { background:var(--orange); }
.due { color:var(--ink2); font-weight:600; }
.late { color:var(--err); font-weight:700; }
.items { margin:0; padding-left:18px; font-size:14px; }
.move { margin:0; }
.move .btn-soft { width:100%; justify-content:center; min-height:34px; font-size:13px; }
.empty { color:var(--faint); font-size:13px; text-align:center; margin:8px 0; }
.empty-big { text-align:center; padding:20px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.empty-big p { margin:0; }
.empty-big .btn { margin-top:10px; }

/* tabelle */
.table-wrap { overflow-x:auto; margin:0 -20px; }
.tbl { width:100%; border-collapse:collapse; font-size:14px; }
.tbl th { text-align:left; font-weight:600; font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; padding:10px 20px; border-bottom:1px solid var(--line); background:var(--soft); white-space:nowrap; }
.tbl td { padding:12px 20px; border-bottom:1px solid var(--line2); white-space:nowrap; }
.status { font-size:12px; font-weight:700; border-radius:999px; padding:2px 10px; background:var(--line2); color:var(--muted); }
.status-active { background:var(--green-bg); color:var(--green); }
.channels { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:10px; }
.channel { display:flex; justify-content:space-between; align-items:center; border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:var(--soft); }

/* procedura guidata */
.steps { list-style:none; margin:0; padding:0; display:flex; gap:8px; flex-wrap:wrap; }
.step { flex:1 1 160px; display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:10px 14px; font-size:14px; color:var(--muted); }
.step-n { width:26px; height:26px; border-radius:50%; background:var(--line2); color:var(--muted); display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex:0 0 auto; }
.step.now { border-color:var(--accent); color:var(--ink); font-weight:600; }
.step.now .step-n { background:var(--accent); color:#fff; }
.step.done .step-n { background:var(--green-bg); color:var(--green); }
.wizard { max-width:760px; gap:12px; }
.wizard p { margin:0; }
.checklist, .howto { margin:0; padding-left:22px; display:flex; flex-direction:column; gap:8px; }
.wizard-foot { display:flex; justify-content:space-between; gap:10px; margin:8px 0 0; flex-wrap:wrap; }
.soon-panel { max-width:760px; align-items:flex-start; }
.soon-panel p { margin:0; }

/* ===== Rifinitura grafica (25/11 sera) ===== */
:root { --shadow-sm:0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06); --shadow-md:0 4px 16px rgba(16,24,40,.08); }
.ico { flex:0 0 auto; display:block; }
.card, .panel, .kpi, .order, .step { box-shadow:var(--shadow-sm); }
.panel, .kpi { transition:box-shadow .15s; }

/* menu */
.side { gap:16px; }
.nav-item { justify-content:flex-start; gap:10px; position:relative; }
.nav-item .ico { color:var(--faint); }
.nav-item:hover .ico, .nav-item.on .ico { color:var(--accent); }
.nav-label { flex:1 1 auto; min-width:0; }
.nav-item.on::before { content:""; position:absolute; left:-14px; top:6px; bottom:6px; width:3px; border-radius:0 3px 3px 0; background:var(--accent); }
.nav-item.soon .nav-label { color:var(--faint); }
.shop { flex-direction:row; align-items:center; gap:10px; }
.shop-ava { width:32px; height:32px; border-radius:8px; background:linear-gradient(135deg, #2457F5, #6A8BFF); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.shop-txt { display:flex; flex-direction:column; min-width:0; }
.shop-sub { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.logout .nav-item { color:var(--muted); }

/* barra in alto */
.bar { position:sticky; top:0; z-index:5; background:color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter:saturate(1.4) blur(10px); }
.bar-ico { width:42px; height:42px; border-radius:12px; background:var(--accent-bg); color:var(--accent); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.secure { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--green); background:var(--green-bg); border-radius:999px; padding:5px 10px; }
.avatar { background:linear-gradient(135deg, #2457F5, #6A8BFF); box-shadow:0 0 0 3px var(--accent-bg); }
@media (max-width:900px) {
  .secure span, .bar-ico { display:none; }
  .scrim { position:fixed; inset:0; background:rgba(15,19,28,.45); z-index:15; display:none; }
  .menu-toggle:checked ~ .scrim { display:block; }
}

/* bottoni */
.btn, button { box-shadow:0 1px 2px rgba(36,87,245,.25), inset 0 1px 0 rgba(255,255,255,.15); background:linear-gradient(180deg, #3366FF, var(--accent)); }
.btn:hover, button:hover { background:var(--accent-dark); }
.btn-soft, .nav-item, button.nav-item { box-shadow:none; background:transparent; }
.btn-soft { background:var(--card); box-shadow:var(--shadow-sm); }
.btn-soft:hover { background:var(--accent-bg); }
button.nav-item:hover { background:var(--accent-bg); }
button[disabled] { background:var(--line); box-shadow:none; }

/* numeri in alto */
.kpi { flex-direction:row; align-items:center; gap:14px; }
.kpi-ico { width:44px; height:44px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.k-1 { background:#EEF2FF; color:#2457F5; } .k-2 { background:#F3EEFF; color:#6D3FD8; }
.k-3 { background:#FFF1E0; color:#C2620A; } .k-4 { background:#E3F6EC; color:#0E7A43; }
@media (prefers-color-scheme: dark) { .k-1,.k-2,.k-3,.k-4 { background:var(--soft); } }

/* bacheca */
.order { transition:transform .12s, box-shadow .12s; border-left:3px solid var(--accent); }
.order:hover { transform:translateY(-1px); box-shadow:var(--shadow-md); }
.empty { display:flex; align-items:center; justify-content:center; gap:6px; padding:14px 0; border:1px dashed #CBD3E1; border-radius:10px; margin:0; }

/* pagine vuote e in costruzione */
.empty-art { color:var(--ink); margin-bottom:6px; }
.empty-big { padding:28px 20px; gap:6px; }
.soon-panel { flex-direction:row; align-items:center; gap:28px; padding:32px; flex-wrap:wrap; max-width:900px; }
.soon-art .empty-art { width:180px; height:135px; }
.soon-txt { flex:1 1 320px; display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.soon-txt h2 { font-size:22px; margin:0; }
.lead { font-size:17px; color:var(--ink2); }

/* canali */
.channel { justify-content:flex-start; gap:10px; }
.channel .tag-soon { margin-left:auto; }
.ch-logo { width:30px; height:30px; border-radius:8px; color:#fff; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.ch-shopify { background:#5E8E3E; } .ch-ebay { background:#E53238; } .ch-woocommerce { background:#7F54B3; } .ch-etsy { background:#F1641E; }

/* accesso: metà presentazione, metà modulo */
.auth-split { display:flex; min-height:100vh; }
.auth-hero { flex:1 1 50%; background:radial-gradient(1200px 600px at -10% -20%, #2D4BB8 0%, transparent 60%), radial-gradient(800px 500px at 120% 110%, #8A3F06 0%, transparent 55%), #151B2C; color:#E8EBF2; padding:40px 56px; display:flex; flex-direction:column; justify-content:space-between; gap:32px; }
.brand-light { color:#fff; }
.brand-light .logo-mark { background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); }
.hero-body { max-width:520px; display:flex; flex-direction:column; gap:24px; }
.hero-body h2 { font-size:34px; line-height:1.15; margin:0; letter-spacing:-0.025em; color:#fff; }
.hero-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.hero-list li { display:flex; align-items:center; gap:12px; font-size:15px; color:#C9D0DE; }
.hero-list .ico { color:#F28C28; }
.hero-card { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:16px; padding:18px 20px; display:flex; flex-direction:column; gap:8px; backdrop-filter:blur(6px); }
.hero-card-label { font-size:13px; color:#9AA4B6; }
.hero-card-value { font-size:28px; font-weight:800; color:#fff; letter-spacing:-0.02em; }
.hero-card-value .up { font-size:13px; font-weight:700; color:#4CC38A; background:rgba(76,195,138,.12); border-radius:999px; padding:2px 8px; vertical-align:middle; }
.hero-bars { display:flex; align-items:flex-end; gap:6px; height:70px; }
.hb { flex:1; border-radius:4px 4px 0 0; background:linear-gradient(180deg, #5B84FF, #2457F5); }
.hb1{height:30%}.hb2{height:45%}.hb3{height:38%}.hb4{height:60%}.hb5{height:52%}.hb6{height:70%}
.hb7{height:64%}.hb8{height:82%}.hb9{height:74%}.hb10{height:90%}.hb11{height:86%}.hb12{height:100%;background:linear-gradient(180deg,#F6A04D,#E07A12)}
.hero-card-note { font-size:11px; color:#7C869A; }
.hero-foot { display:flex; align-items:center; gap:8px; font-size:13px; color:#9AA4B6; }
.hero-foot .ico { color:#4CC38A; }
.auth-box { flex:1 1 50%; max-width:none; display:flex; flex-direction:column; justify-content:center; align-items:stretch; padding:40px 24px; }
.auth-box > * { width:100%; max-width:400px; margin-left:auto; margin-right:auto; }
.auth-box h1 { text-align:left; font-size:28px; margin:0; }
.auth-box > .muted { text-align:left; }
.brand-mobile { display:none; }
@media (max-width:900px) {
  .auth-hero { display:none; }
  .brand-mobile { display:block; text-align:center; margin-bottom:12px; }
  .auth-box { justify-content:flex-start; padding-top:48px; }
}
.auth-box h1, .auth-box > .muted { margin-left:auto; margin-right:auto; }
.auth-box > .muted { margin-top:-6px; }
.side { flex-basis:256px; }
.nav-item .tag-soon { font-size:0; padding:0; width:6px; height:6px; border-radius:50%; background:#C3CAD8; flex:0 0 auto; }
.nav-legend { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--faint); padding:0 12px; }
.nav-legend::before { content:""; width:6px; height:6px; border-radius:50%; background:#C3CAD8; }

/* cruscotto */
.seg { display:inline-flex; background:var(--colbg); border-radius:10px; padding:3px; gap:2px; }
.seg-item { padding:6px 14px; border-radius:8px; font-size:14px; font-weight:600; color:var(--ink2); text-decoration:none; white-space:nowrap; }
.seg-item:hover { color:var(--ink); }
.seg-item.on { background:var(--card); color:var(--accent); box-shadow:var(--shadow-sm); }
.small-note { font-size:13px; }
.kpi-sub { font-size:12px; margin-top:2px; }
.trend { font-weight:600; }
.trend-up { color:var(--green); } .trend-down { color:var(--err); } .trend-flat { color:var(--muted); font-weight:500; }
.k-5 { background:var(--colbg); color:var(--muted); }
.kpi-wait .kpi-value { color:var(--faint); }
.callout { display:flex; align-items:flex-start; gap:10px; margin:0; }
.callout .ico { margin-top:2px; }
.chart { width:100%; height:160px; display:block; }
.chart-base { stroke:var(--line); stroke-width:1; }
.bar-sales { fill:#C9D6FF; } .bar-sales:hover { fill:var(--accent); }
.bar-today { fill:var(--orange); }
@media (prefers-color-scheme: dark) { .bar-sales { fill:#3A4C80; } }
.chart-axis { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); margin-top:-4px; }
.legend { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.dot { width:10px; height:10px; border-radius:3px; display:inline-block; }
.dot-sales { background:#C9D6FF; } .dot-today { background:var(--orange); margin-left:8px; }
.grid-2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap:20px; }
.grid-2 > .panel { min-width:0; }
.kpis-col .kpi { flex-direction:column; align-items:flex-start; gap:10px; }
.kpis-col .kpi-value { white-space:nowrap; font-size:24px; }
.tbl th.num, .tbl td.num { text-align:right; }
.tbl td.clip { max-width:200px; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:600px) {
  .kpis-col { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
  .kpis-col .kpi { padding:14px; }
  .kpis-col .kpi-value { font-size:20px; }
  .kpis-col .kpi-ico { width:36px; height:36px; }
  .tbl th, .tbl td { padding-left:14px; padding-right:14px; }
  .tbl td.clip { max-width:120px; }
}

/* tabella profitto */
.tbl tfoot td { font-weight:700; border-top:2px solid var(--line); border-bottom:0; background:var(--soft); }
.pill-est { background:#FFF1E0; color:#C2620A; font-size:11px; padding:1px 8px; vertical-align:1px; }
.cur-extra { font-size:12px; }
.note-below { margin:12px 0 0; }
.panel-head .seg { flex-wrap:wrap; }
@media (prefers-color-scheme: dark) { .pill-est { background:var(--soft); } }
.tbl-pl th, .tbl-pl td { padding-left:14px; padding-right:14px; }
.tbl-pl td.clip { max-width:240px; }
@media (max-width:600px) { .panel-head .seg-item { padding:6px 9px; font-size:13px; } .tbl-pl td.clip { max-width:140px; } }
/* schermi molto larghi: la pagina usa tutta la larghezza, testi un po' più grandi */
@media (min-width:1700px) {
  body { font-size:16px; }
  .content { padding:28px 40px 48px; gap:24px; }
  .bar { padding:16px 40px; }
  .kpi-value { font-size:30px; }
  .tbl { font-size:15px; }
}


/* Prodotti */
.search { display:flex; gap:8px; flex:1 1 260px; max-width:440px; }
.search input { flex:1; width:0; min-width:0; min-height:38px; padding:7px 12px; }
.panel-sub { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.panel-sub .seg { flex-wrap:wrap; }
.kpi-of { font-size:14px; font-weight:600; color:var(--muted); letter-spacing:0; }
.kpis-col .kpi-value.kpi-text { font-size:16px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.kpis-col .kpi > div { min-width:0; max-width:100%; }
.row-idle td { color:var(--muted); }
.tbl td .pill { margin:1px 0; white-space:nowrap; }
@media (max-width:600px) { .panel-sub .seg-item { padding:6px 9px; font-size:13px; } .search { max-width:none; flex-basis:100%; } }

/* =====================================================================
   TEMA 26/11 — grafica approvata da Gianluca (disegno ChatGPT, vedi
   /mnt/project-files/grafica/ e docs/grafica/). Barra e menu blu notte,
   arancio come accento, contenuto chiaro. Sovrascrive le regole sopra.
   ===================================================================== */
:root, :root:not(#x) {
  --night:#0F1420; --night2:#171E2E; --night-line:#232C40; --night-ink:#E8ECF4; --night-muted:#98A2B8;
  --orange:#F28C28; --orange-dark:#DB7412; --orange-bg:#FFF3E6; --orange-line:#F8D2A8; --orange-ink:#8A4500;
  --accent:#F28C28; --accent-dark:#DB7412; --accent-bg:#FFF3E6;
  --bg:#F3F4F7; --card:#FFFFFF; --soft:#F8F9FB; --ink:#141A29; --ink2:#384157; --muted:#5E6779; --faint:#8A92A3;
  --line:#E6E8EE; --line2:#EFF1F5; --green:#13894B; --green-bg:#E4F6EC; --err:#D92D20; --err-bg:#FDECEA;
  --blue:#2F6BFF; --blue-bg:#EAF0FF; --violet:#7A4CF0; --violet-bg:#F1ECFF; --colbg:#EEF0F4;
  --shadow-sm:0 1px 2px rgba(16,24,40,.04), 0 2px 6px rgba(16,24,40,.05); --shadow-md:0 6px 20px rgba(16,24,40,.08);
}
body { font-family:ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background:var(--bg); color:var(--ink); }
a { color:var(--orange-dark); }

/* barra in alto */
body.app { display:flex; flex-direction:column; min-height:100vh; }
.topbar { position:sticky; top:0; z-index:30; height:60px; background:var(--night); color:var(--night-ink); display:flex; align-items:center; gap:14px; padding:0 22px; border-bottom:1px solid var(--night-line); }
.topbar .brand { color:#fff; }
.logo { gap:8px; }
.logo-cart { display:block; }
.logo-text { font-size:24px; font-weight:800; letter-spacing:-0.02em; color:inherit; }
.logo-text span { color:var(--orange); }
.top-right { margin-left:auto; display:flex; align-items:center; gap:14px; }
.top-secure { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:#7FE0A8; background:rgba(76,195,138,.12); border-radius:999px; padding:5px 10px; }
.account { position:relative; }
.account summary { list-style:none; display:flex; align-items:center; gap:10px; cursor:pointer; color:var(--night-ink); font-size:14px; font-weight:600; padding:4px 6px; border-radius:10px; }
.account summary::-webkit-details-marker { display:none; }
.account summary:hover { background:var(--night2); }
.ava { width:36px; height:36px; border-radius:50%; background:var(--orange); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; }
.account-menu { position:absolute; right:0; top:calc(100% + 8px); background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-md); min-width:240px; padding:8px; display:flex; flex-direction:column; gap:2px; }
.account-mail { font-size:12px; color:var(--muted); padding:6px 10px 8px; border-bottom:1px solid var(--line2); margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; }
.account-menu a, .menu-link { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; color:var(--ink2); text-decoration:none; font-size:14px; font-weight:500; background:none; box-shadow:none; min-height:0; width:100%; justify-content:flex-start; }
.account-menu a:hover, .menu-link:hover { background:var(--orange-bg); color:var(--ink); }
.account-menu form { margin:0; }
.burger { display:none; color:#fff; border:1px solid var(--night-line); padding:6px; border-radius:8px; cursor:pointer; }

/* menu a sinistra */
.shell { display:flex; flex:1; min-height:0; }
.side { flex:0 0 236px; background:var(--night); border-right:0; padding:14px 10px 24px; gap:4px; position:sticky; top:60px; height:calc(100vh - 60px); overflow-y:auto; scrollbar-color:var(--night-line) transparent; }
.nav-group { border:0; }
.nav-title { list-style:none; display:flex; align-items:center; gap:10px; padding:10px 10px 6px; font-size:15px; font-weight:700; color:#fff; text-transform:none; letter-spacing:0; cursor:pointer; border-radius:8px; }
.nav-title::-webkit-details-marker { display:none; }
.nav-title .ico:first-child { color:var(--orange); }
.nav-title .ico:last-child { margin-left:auto; color:var(--night-muted); transition:transform .15s; }
.nav-group:not([open]) .nav-title .ico:last-child { transform:rotate(-90deg); }
.nav-items { display:flex; flex-direction:column; gap:1px; padding:0 0 8px 20px; }
.nav-item { color:#D5DAE5; font-size:13.5px; padding:6px 10px 6px 18px; min-height:30px; border-radius:8px; gap:8px; }
.nav-item:hover { background:var(--night2); color:#fff; }
.nav-item.on { background:var(--orange); color:#fff; font-weight:700; }
.nav-item.on::before { display:none; }
.nav-item.soon .nav-label { color:#A9B1C3; }
.nav-item .tag-soon { background:#4A5570; }
.nav-legend { color:var(--night-muted); padding:12px 12px 0; margin-top:8px; border-top:1px solid var(--night-line); }
.nav-legend::before { background:#4A5570; }

/* contenuto */
.content { flex:1; min-width:0; padding:26px 30px 44px; gap:20px; max-width:none; }
.page-head { display:flex; align-items:center; gap:16px; }
.page-ico { color:var(--orange); display:inline-flex; }
.page-ico .ico { width:40px; height:40px; stroke-width:2; }
.page-head h1 { margin:0; font-size:30px; font-weight:800; letter-spacing:-0.02em; line-height:1.15; }
.page-sub { margin:2px 0 0; color:var(--muted); font-size:15px; }
.page-sub:empty { display:none; }
.panel, .kpi, .card, .order, .step, .channel-card { background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-sm); }
.panel h2, .toolbar h2 { font-size:18px; font-weight:800; }
.h-sec { margin:0; font-size:20px; font-weight:800; }

/* pulsanti */
.btn, button { background:var(--orange); box-shadow:0 2px 6px rgba(242,140,40,.3); border-radius:10px; font-weight:700; }
.btn:hover, button:hover { background:var(--orange-dark); }
.btn-soft, .menu-link { box-shadow:none; }
.btn-soft { background:var(--card); border:1px solid var(--line); color:var(--ink2); }
.btn-soft:hover { background:var(--orange-bg); color:var(--ink); }
.btn-outline { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 16px; border:1.5px solid var(--orange); color:var(--orange-dark); background:var(--card); border-radius:10px; font-weight:700; font-size:14px; text-decoration:none; cursor:pointer; box-shadow:none; }
.btn-outline:hover { background:var(--orange-bg); color:var(--orange-dark); }
.btn-sm { min-height:30px; padding:0 10px; font-size:12px; }
.btn-big { min-height:50px; font-size:17px; width:100%; }
.seg { background:var(--colbg); }
.seg-item.on { color:var(--orange-dark); }
.flash { background:var(--orange-bg); border:1px solid var(--orange-line); }
.callout { background:var(--orange-bg); border-color:var(--orange-line); color:var(--orange-ink); }

/* numeri in alto */
.kpis { gap:16px; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); }
.kpi { padding:18px 20px; }
.kpi-ico, .k-1, .k-2, .k-3, .k-4, .k-5 { width:48px; height:48px; border-radius:12px; background:var(--orange-bg); color:var(--orange); }
.kpi-ico .ico { width:24px; height:24px; stroke-width:2; }
.kpi-label { font-size:14px; font-weight:700; color:var(--ink2); }
.kpi-value { font-size:28px; font-weight:800; letter-spacing:-0.02em; }
.kpi-wait .kpi-ico { background:var(--colbg); color:var(--faint); }
.trend-up { display:inline-block; color:var(--green); background:var(--green-bg); border-radius:999px; padding:2px 9px; font-size:12px; font-weight:700; }
.trend-down { display:inline-block; color:var(--err); background:var(--err-bg); border-radius:999px; padding:2px 9px; font-size:12px; font-weight:700; }
.bar-sales { fill:#FAD3AA; } .bar-sales:hover { fill:var(--orange); } .bar-today { fill:var(--orange); }
.dot-sales { background:#FAD3AA; }

/* tabelle */
.tbl th { background:var(--soft); color:var(--ink2); font-size:12.5px; font-weight:800; text-transform:none; letter-spacing:0; }
.tbl tbody tr:hover td { background:#FFF9F2; }
.tbl tfoot td { background:var(--orange-bg); color:var(--ink); border-top:0; }
.status { font-weight:700; }
.status-active { background:var(--green-bg); color:var(--green); }
.status-active::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--green); margin-right:6px; vertical-align:1px; }

/* bacheca */
.board { gap:16px; align-items:flex-start; }
.column { flex:1 0 280px; background:transparent; padding:0; gap:12px; }
.column-head { gap:10px; padding:12px 14px; border-radius:12px; justify-content:flex-start; }
.column-head h3 { font-size:17px; font-weight:800; margin:0; }
.column-head .pill { margin-left:auto; color:#fff; font-size:13px; }
.col-ico { display:inline-flex; }
.c-orange .column-head { background:#FDEBD8; } .c-orange .col-ico { color:var(--orange-dark); } .c-orange .pill { background:var(--orange); }
.c-blue .column-head { background:var(--blue-bg); } .c-blue .col-ico { color:var(--blue); } .c-blue .pill { background:var(--blue); }
.c-violet .column-head { background:var(--violet-bg); } .c-violet .col-ico { color:var(--violet); } .c-violet .pill { background:var(--violet); }
.c-green .column-head { background:var(--green-bg); } .c-green .col-ico { color:var(--green); } .c-green .pill { background:var(--green); }
.order { border-left:1px solid var(--line); padding:12px; gap:10px; }
.order-top { display:flex; gap:12px; align-items:flex-start; }
.order-thumb { width:56px; height:56px; border-radius:10px; background:linear-gradient(135deg, #FFF3E6, #FDE0C2); color:var(--orange-dark); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.order-main { display:flex; flex-direction:column; gap:3px; min-width:0; }
.order-title { font-size:14px; line-height:1.25; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.order-id { font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chip-ch { display:inline-flex; align-items:center; gap:4px; width:max-content; font-size:11.5px; font-weight:700; color:var(--ink2); background:var(--soft); border:1px solid var(--line); border-radius:6px; padding:2px 7px; }
.order-lines { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:var(--ink2); }
.order-lines li { display:flex; align-items:center; gap:7px; }
.order-lines .ico { color:var(--faint); }
.order-lines .late { color:var(--err); font-weight:700; }
.order-lines .ok { color:var(--green); font-weight:700; }
.order-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.order-foot .move { margin:0; }
.badge { display:inline-flex; align-items:center; gap:4px; font-size:11.5px; padding:3px 9px; }
.badge-in-ritardo, .badge-annullo-richiesto { background:var(--err-bg); color:var(--err); }
.badge-parte-oggi { background:#FDEBD8; color:var(--orange-dark); }
.badge-spedito { background:var(--green-bg); color:var(--green); }
.badge-normale { background:var(--blue-bg); color:var(--blue); }
.empty { background:var(--card); }

/* canali */
.channels { grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:16px; }
.channel-card { padding:14px 16px; display:flex; flex-direction:column; gap:12px; }
.channel-card.is-on { border-color:#9ED9B6; }
.channel-top { display:flex; align-items:center; gap:12px; }
.channel-name { display:flex; flex-direction:column; min-width:0; flex:1; }
.channel-name strong { font-size:16px; }
.channel-name .muted { font-size:13px; }
.channel-foot { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12.5px; color:var(--muted); border-top:1px solid var(--line2); padding-top:10px; }
.channel-foot .mono { margin-left:auto; font-size:11px; }
.ch-logo { width:42px; height:42px; border-radius:10px; font-size:18px; }
.ch-amazon { background:var(--night); color:var(--orange); }
.connect-cta { flex-direction:row; flex-wrap:wrap; gap:24px; padding:24px; }
.connect-text { flex:1 1 360px; display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.connect-text h2 { display:flex; align-items:center; gap:10px; font-size:22px; }
.trust { flex:0 1 340px; background:linear-gradient(180deg, #FFF6EC, #FFEBD6); border:1px solid var(--orange-line); border-radius:12px; padding:20px; display:flex; flex-direction:column; gap:12px; align-self:flex-start; }
.trust h3 { margin:0; font-size:16px; line-height:1.35; display:flex; gap:10px; align-items:flex-start; }
.trust h3 .ico { color:var(--orange); flex:0 0 auto; }
.trust ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; font-size:13.5px; color:var(--ink2); }
.trust li { display:flex; gap:8px; align-items:flex-start; }
.trust li .ico { color:var(--green); margin-top:2px; }
.trust-art { display:flex; align-items:center; justify-content:center; gap:16px; padding-top:6px; color:var(--orange); }
.trust-art span { font-size:40px; }

/* procedura guidata */
.wizard-wrap { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.wizard-col { flex:1 1 560px; min-width:0; display:flex; flex-direction:column; gap:16px; }
.wizard { max-width:none; }
.steps { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:8px; gap:6px; }
.step { border:0; box-shadow:none; background:transparent; flex:1 1 140px; }
.step.now { background:var(--orange-bg); color:var(--orange-dark); }
.step.now .step-n { background:var(--orange); }
.countries { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px,1fr)); gap:10px; }
.country { position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; padding:14px 8px; border:1.5px solid var(--line); border-radius:12px; background:var(--card); cursor:pointer; font-weight:400; text-align:center; }
.country input { position:absolute; opacity:0; pointer-events:none; }
.country .flag { font-size:26px; line-height:1.1; }
.country strong { font-size:14px; }
.country small { color:var(--muted); font-size:12px; }
.country:hover { border-color:var(--orange-line); }
.country:has(input:checked) { border-color:var(--orange); background:var(--orange-bg); box-shadow:0 0 0 3px rgba(242,140,40,.15); }
.country:has(input:checked)::after { content:"✓"; position:absolute; top:-8px; right:-8px; width:22px; height:22px; border-radius:50%; background:var(--orange); color:#fff; font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.country:has(input:focus-visible) { outline:2px solid var(--orange); outline-offset:2px; }

/* accesso */
.auth-split { min-height:100vh; }
.auth-hero { position:relative; overflow:hidden; background:var(--night); padding:44px 56px; }
.auth-hero::before { content:""; position:absolute; right:-160px; top:-220px; width:520px; height:420px; border-radius:50%; border:46px solid var(--orange); border-left-color:transparent; border-bottom-color:transparent; transform:rotate(18deg); opacity:.95; }
.auth-hero > * { position:relative; }
.auth-hero .brand { color:#fff; }
.auth-hero .logo-text { font-size:32px; }
.auth-hero .logo-cart { width:40px; height:40px; }
.hero-body h2 { font-size:40px; font-weight:800; line-height:1.12; }
.hero-body h2 span { color:var(--orange); }
.hero-body h2::after { content:""; display:block; width:84px; height:4px; background:var(--orange); border-radius:2px; margin-top:18px; }
.hero-list { gap:16px; }
.hero-list li { align-items:flex-start; gap:14px; color:#fff; }
.hero-list li > span:last-child { display:flex; flex-direction:column; gap:1px; }
.hero-list strong { font-size:16px; }
.hero-list small { color:#AEB6C8; font-size:13.5px; }
.hero-ico { width:44px; height:44px; border-radius:10px; background:var(--night2); border:1px solid var(--night-line); color:var(--orange); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.hero-card { background:var(--night2); border-color:var(--night-line); }
.hero-card-label em { font-style:normal; font-size:11px; color:var(--night-muted); border:1px solid var(--night-line); border-radius:999px; padding:1px 7px; margin-left:6px; }
.hb { background:linear-gradient(180deg, #F6A04D, #DB7412); opacity:.85; }
.hb12 { opacity:1; background:#F28C28; }
.hero-foot { display:none; }
.auth-box { background:var(--card); padding:48px 32px; gap:16px; }
.auth-box > * { max-width:440px; }
.auth-box h1 { text-align:center; font-size:32px; font-weight:800; }
.auth-box h1 .z { color:var(--orange); }
.auth-box > .muted.auth-sub, .auth-sub { text-align:center; margin-top:-4px; }
.auth-form { display:flex; flex-direction:column; gap:16px; }
.auth-form label { font-size:15px; font-weight:700; }
.field { display:flex; align-items:center; gap:10px; border:1px solid #D7DBE4; border-radius:10px; padding:0 14px; background:var(--card); min-height:50px; }
.field:focus-within { border-color:var(--orange); box-shadow:0 0 0 3px rgba(242,140,40,.15); }
.field .ico { color:var(--muted); }
.field input { border:0; outline:0; background:transparent; padding:0; min-height:48px; flex:1; font-size:15px; }
.field input:focus { outline:none; }
.code-input { text-align:center; font-size:30px; font-weight:800; letter-spacing:.5em; min-height:64px; border:1.5px solid #D7DBE4; border-radius:12px; background:var(--card); padding-left:.5em; }
.code-input:focus { outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(242,140,40,.15); }
.sr { display:block; font-size:0; }
.sr input { font-size:30px; width:100%; }
.eu-box { display:flex; align-items:center; gap:14px; background:var(--soft); border:1px solid var(--line); border-radius:12px; padding:14px 18px; font-size:14.5px; margin-top:8px; }
.eu-flag { font-size:34px; line-height:1; }
.eu-sep { width:1px; align-self:stretch; background:var(--line); }
.eu-box .ico { color:var(--ink2); flex:0 0 auto; }
.qr { box-shadow:var(--shadow-sm); }

/* telefono e tablet */
@media (max-width:900px) {
  .burger { display:inline-flex; }
  .topbar { padding:0 12px; gap:10px; }
  .top-secure span, .account-name { display:none; }
  .side { position:fixed; left:0; top:60px; z-index:25; height:calc(100vh - 60px); transform:translateX(-100%); transition:transform .2s; box-shadow:none; }
  .menu-toggle:checked ~ .shell .side { transform:none; box-shadow:0 10px 40px rgba(0,0,0,.35); }
  .scrim { position:fixed; inset:60px 0 0 0; background:rgba(15,20,32,.5); z-index:20; display:none; }
  .menu-toggle:checked ~ .shell .scrim { display:block; }
  .content { padding:18px 16px 32px; }
  .page-head h1 { font-size:24px; }
  .page-ico .ico { width:32px; height:32px; }
  .auth-hero { display:none; }
  .auth-box { padding:32px 18px; }
}
@media (min-width:1700px) {
  .content { padding:30px 40px 48px; }
  .side { flex-basis:256px; }
}
/* rifiniture tema 26/11 */
.auth-hero::before { right:-200px; top:-300px; width:620px; height:620px; border:60px solid; border-color:var(--orange) var(--orange) transparent transparent; transform:rotate(25deg); }
.field input { font-weight:400; }
.column { flex:1 0 250px; }
.auth-hero::before { right:-140px; top:-170px; width:480px; height:320px; border:0; border-radius:50%; border-bottom:34px solid var(--orange); transform:rotate(-18deg); opacity:1; }

/* accesso 26/11 pomeriggio: tutto in "em" che cresce con lo schermo (anche 2560 px), come grafica approvata */
.auth-hero { font-size:clamp(13px, min(0.9vw, 1.68vh), 26px); padding:2.2em 3.1em; justify-content:center; gap:1.5em; }
.auth-hero > .brand, .auth-hero > .hero-body { width:100%; max-width:46em; }
.auth-hero .logo-text { font-size:2.3em; }
.auth-hero .logo-cart { width:2.7em; height:2.7em; }
.hero-body { max-width:none; gap:1.5em; }
.hero-body h2 { font-size:2.8em; line-height:1.1; }
.hero-body h2::after { width:3.2em; height:.1em; min-height:3px; margin-top:.45em; }
.hero-list { gap:.8em; }
.hero-list li { gap:1em; font-size:1em; align-items:center; }
.hero-list strong { font-size:1.2em; }
.hero-list small { font-size:.98em; }
.hero-ico { width:2.7em; height:2.7em; border-radius:.6em; }
.hero-ico .ico { width:1.45em; height:1.45em; }
/* striscia arancio in alto a destra */
.auth-hero::before { content:none; }
.hero-wave { position:absolute; top:0; right:0; width:14em; height:9em; z-index:0; }
.auth-hero > * { z-index:1; }
/* portatile con il cruscotto */
.hero-laptop { width:40em; max-width:100%; margin-top:.5em; }
.lap-screen { background:#1B2233; border:.55em solid #2A3245; border-bottom-width:.7em; border-radius:1em 1em .3em .3em; overflow:hidden; box-shadow:0 1.5em 3em rgba(0,0,0,.45); }
.lap-base { height:.75em; margin:0 -2.2em; background:linear-gradient(180deg,#C9CED8,#8E95A3); border-radius:0 0 1.2em 1.2em; position:relative; }
.lap-base::before { content:""; position:absolute; left:50%; top:0; width:6em; height:.3em; margin-left:-3em; background:#7A818E; border-radius:0 0 .4em .4em; }
.lap-top { background:var(--night); padding:.45em .8em; border-bottom:1px solid var(--night-line); }
.lap-top .logo { gap:.3em; }
.lap-top .logo-cart { width:1.15em; height:1.15em; }
.lap-top .logo-text { font-size:.95em; color:#fff; }
.lap-main { display:flex; background:#F3F4F7; }
.lap-side { background:var(--night); display:flex; flex-direction:column; gap:.4em; padding:.6em .4em; }
.lap-side span { width:1.7em; height:1.7em; border-radius:.4em; display:flex; align-items:center; justify-content:center; color:#AEB6C8; }
.lap-side span.on { background:var(--orange); color:#fff; }
.lap-side .ico { width:1em; height:1em; }
.lap-body { flex:1; min-width:0; padding:.8em .9em .9em; display:flex; flex-direction:column; gap:.6em; color:#1A2133; }
.lap-title { font-weight:800; font-size:1.05em; display:flex; align-items:center; gap:.5em; }
.lap-title em { font-style:normal; font-weight:600; font-size:.55em; color:#6B7385; border:1px solid #D7DBE4; border-radius:999px; padding:.05em .6em; }
.lap-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:.5em; }
.lap-kpi { background:#fff; border-radius:.5em; padding:.5em .5em; display:flex; gap:.35em; align-items:flex-start; box-shadow:0 1px 2px rgba(15,20,32,.08); min-width:0; }
.lap-kpi > span:last-child { display:flex; flex-direction:column; min-width:0; }
.lap-ki { color:var(--orange); flex:0 0 auto; }
.lap-ki .ico { width:1.05em; height:1.05em; }
.lap-kpi small { font-size:.52em; color:#6B7385; font-weight:600; }
.lap-kpi b { font-size:.7em; white-space:nowrap; letter-spacing:-.01em; }
.lap-kpi i { font-style:normal; font-size:.5em; color:#1F9D61; font-weight:700; }
.lap-chart { background:#fff; border-radius:.5em; padding:.55em .65em .45em; box-shadow:0 1px 2px rgba(15,20,32,.08); }
.lap-chart-head { display:flex; justify-content:space-between; align-items:center; gap:.5em; margin-bottom:.3em; }
.lap-chart-head small { font-size:.55em; font-weight:700; }
.lap-chart-head span { font-size:.5em; color:#6B7385; display:flex; align-items:center; gap:.4em; white-space:nowrap; }
.lap-chart-head i { width:.7em; height:.7em; border-radius:50%; display:inline-block; }
.lg-b { background:#3B6FE0; }
.lg-o { background:#F28C28; margin-left:.6em; }
.lap-chart svg { display:block; width:100%; height:7.5em; }
/* metà destra: cresce anche lei */
.auth-box { font-size:clamp(15px, min(0.82vw, 1.75vh), 22px); padding:2.5em 2em; gap:1em; }
.auth-box > * { max-width:30em; }
.auth-box h1 { font-size:2.1em; }
.auth-sub { font-size:1em; }
.auth-form { gap:1em; }
.auth-form label { font-size:1em; display:flex; flex-direction:column; gap:.4em; }
.field { min-height:3.3em; border-radius:.65em; padding:0 .9em; gap:.65em; }
.field .ico { width:1.2em; height:1.2em; }
.field input { font-size:1em; min-height:3.1em; }
.auth-box .btn-big { font-size:1.12em; min-height:2.95em; border-radius:.6em; }
.auth-box .btn-big .ico { width:1.1em; height:1.1em; }
.auth-box p { font-size:1em; }
.eu-box { font-size:.98em; padding:1em 1.2em; border-radius:.8em; gap:1em; }
.eu-flag { font-size:2.3em; }
.eu-box .ico { width:1.7em; height:1.7em; }
.code-input { font-size:2em; min-height:2.1em; }
.sr input { font-size:2em; }

/* codice a 6 cifre a quadratini, occhio della password (grafica approvata) */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.eye { border:0; background:none; color:var(--muted); padding:.2em; margin-right:-.2em; cursor:pointer; display:flex; border-radius:.4em; }
.eye:hover, .eye.on { color:var(--orange); }
.eye[hidden] { display:none; }
.eye .ico { width:1.25em; height:1.25em; }
.code-sec { display:flex; flex-direction:column; align-items:center; gap:.35em; text-align:center; }
.auth-form .code-sec { border-top:1px solid var(--line); padding-top:1.1em; margin-top:.3em; }
.code-sec strong { font-size:1.15em; }
.code-sec .muted { font-size:.9em; }
.code-boxes { position:relative; display:flex; gap:.9em; width:max-content; margin:.45em auto 0; overflow:hidden; overflow:clip; font-size:1em; font-weight:400; }
.code-boxes .cb { width:2.7em; height:2.7em; border:1.5px solid #D7DBE4; border-radius:.55em; background:var(--card); transition:border-color .15s; }
.code-boxes:focus-within .cb { border-color:var(--orange); box-shadow:0 0 0 2px rgba(242,140,40,.12); }
.code-boxes input { position:absolute; left:0; top:0; height:100%; width:calc(100% + 4em); border:0; outline:0; background:transparent; padding:0 0 0 .6em; margin:0; font:700 1.5em/1 "Courier New", "Liberation Mono", "DejaVu Sans Mono", monospace; letter-spacing:1.8em; color:var(--ink); caret-color:var(--orange); }
.code-boxes input::placeholder { color:#A3ABBB; font-weight:400; }
.code-boxes input:focus { outline:none; box-shadow:none; }
.auth-form .code-boxes { flex-direction:row; gap:.9em; }
.field .eye { background:none; box-shadow:none; min-height:0; width:auto; }
.auth-box p.center { margin:0 auto; }
.auth-box > .center + .center { margin-top:-.4em; }

/* ===== Interno come grafica approvata (26/11 pomeriggio) ===== */
/* barra in alto: aiuto, campanella, azienda */
.topbar { border-bottom:0; height:60px; }
.top-right { gap:10px; }
.top-btn { position:relative; color:#E6E9F0; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; }
.top-btn:hover { background:var(--night2); color:#fff; }
.bell-dot { position:absolute; top:8px; right:9px; width:9px; height:9px; border-radius:50%; background:var(--orange); border:2px solid var(--night); }
.account summary { font-size:14.5px; }
/* menu scuro compatto */
.shell { background:var(--night); }
.side { flex-basis:232px; padding:8px 10px 24px; gap:2px; }
.nav-title { font-size:15px; padding:8px 10px 4px; gap:10px; }
.nav-title .ico:first-child { width:20px; height:20px; }
.nav-items { padding:0 0 6px 0; gap:0; }
.nav-item { font-size:13.5px; color:#E3E7EF; padding:3px 10px 3px 40px; min-height:24px; border-radius:7px; }
.nav-item.soon .nav-label { color:#E3E7EF; }
.nav-item.on { margin:1px 0; }
/* contenuto: riquadro chiaro con angolo arrotondato */
.content { background:var(--bg); border-top-left-radius:22px; padding:22px 26px 32px; gap:16px; }
.page-head { gap:14px; flex-wrap:wrap; }
.page-titles { flex:1 1 320px; min-width:0; }
.page-head h1 { font-size:30px; }
.page-sub { font-size:14.5px; color:var(--ink2); }
.page-ico .ico { width:42px; height:42px; }
.page-ico-cruscotto .ico { fill:currentColor; stroke:currentColor; stroke-linejoin:round; }
.head-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.period-pick { position:relative; }
.period-pick summary { list-style:none; display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:0 14px; min-height:44px; font-size:14.5px; font-weight:600; color:var(--ink); cursor:pointer; box-shadow:var(--shadow-sm); }
.period-pick summary::-webkit-details-marker { display:none; }
.period-pick summary .ico:first-child { color:var(--ink2); }
.period-pick summary .ico:last-child { color:var(--muted); margin-left:14px; }
.period-menu { position:absolute; right:0; top:calc(100% + 6px); z-index:20; background:var(--card); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-md); padding:6px; min-width:100%; display:flex; flex-direction:column; }
.period-menu a { padding:8px 12px; border-radius:7px; color:var(--ink2); text-decoration:none; font-size:14px; white-space:nowrap; }
.period-menu a:hover { background:var(--orange-bg); }
.period-menu a.on { color:var(--orange-dark); font-weight:700; }
.head-search label { display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:0 14px; min-height:44px; width:300px; max-width:100%; box-shadow:var(--shadow-sm); color:var(--muted); }
.head-search label:focus-within { border-color:var(--orange); }
.head-search input { border:0; outline:0; background:transparent; flex:1; min-width:0; font-size:14.5px; padding:0; min-height:42px; box-shadow:none; }
/* numeri in alto */
.dz-kpis { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
.dz-kpi { background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-sm); padding:14px 16px 6px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.dz-kpi-top { display:flex; align-items:flex-start; gap:14px; }
.dz-kpi-top > div { min-width:0; }
.dz-kpi-ico { width:54px; height:54px; border-radius:12px; background:var(--orange-bg); color:var(--orange); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.dz-kpi-ico .ico { stroke-width:2.2; }
.dz-kpi-label { font-size:15px; font-weight:600; color:var(--ink); margin-top:2px; }
.dz-kpi-value { font-size:28px; font-weight:800; letter-spacing:-.02em; color:var(--ink); line-height:1.15; white-space:nowrap; }
.dz-kpi .trend { margin-left:auto; flex:0 0 auto; font-size:12.5px; font-weight:700; border-radius:999px; padding:3px 9px; white-space:nowrap; text-decoration:none; }
.trend-up { background:var(--green-bg); color:var(--green); }
.trend-down { background:var(--err-bg); color:var(--err); }
.trend-flat { background:var(--colbg); color:var(--muted); }
.trend-wait { background:var(--colbg); color:var(--muted); font-weight:600 !important; }
.trend-wait:hover { color:var(--orange-dark); }
.dz-kpi-note { font-size:12px; color:var(--muted); padding-left:68px; }
.spark { display:block; width:100%; height:38px; margin-top:2px; }
.spark-line { fill:none; stroke:var(--orange); stroke-width:2.2; stroke-linejoin:round; }
.spark-area { fill:var(--orange); fill-opacity:.13; }
.spark-wait { stroke:#D7DBE4; stroke-width:2; stroke-dasharray:5 5; }
/* righe di riquadri */
.dz-row { display:grid; gap:16px; }
.dz-row-a { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
.dz-row-b { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
.dz-panel { padding:16px 20px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.dz-panel .panel-head { margin:0; }
.dz-panel h2 { font-size:19px; font-weight:800; margin:0; display:flex; align-items:center; gap:10px; }
.dz-panel h2 .ico { color:var(--orange); }
.dz-line { display:block; width:100%; height:auto; }
.dz-line .grid { stroke:#E9ECF2; stroke-width:1; }
.dz-line .ax { font-size:12.5px; fill:#4E5668; font-family:inherit; }
.dz-line .ax-y { text-anchor:end; }
.dz-line .ax-x { text-anchor:middle; }
.ln-area { fill:#3E5BC4; fill-opacity:.12; }
.ln-sales { fill:none; stroke:#22336F; stroke-width:2.6; stroke-linejoin:round; }
.ln-dot { fill:#22336F; }
.dz-legend { display:flex; justify-content:center; gap:22px; font-size:13.5px; color:var(--ink2); }
.dz-legend span { display:inline-flex; align-items:center; gap:7px; }
.dz-legend i { width:10px; height:10px; border-radius:50%; display:inline-block; }
.dz-legend small { color:var(--muted); }
.lg-sales { background:#22336F; }
.lg-profit { background:var(--orange); }
/* ciambella mercati */
.dz-donut-wrap { display:flex; align-items:center; gap:22px; flex:1; flex-wrap:wrap; justify-content:center; }
.dz-donut { position:relative; width:170px; height:170px; flex:0 0 auto; }
.dz-donut svg { width:100%; height:100%; transform:rotate(0deg); }
.dz-donut-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.dz-donut-center strong { font-size:17px; font-weight:800; letter-spacing:-.02em; }
.dz-donut-center span { font-size:13px; color:var(--ink2); }
.dz-markets { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; flex:1 1 185px; min-width:0; max-width:380px; }
.dz-markets li { display:grid; grid-template-columns:16px minmax(0,1fr) auto auto; align-items:center; gap:10px; font-size:14.5px; }
.dz-markets i { width:16px; height:16px; border-radius:3px; display:block; }
.dz-mk-name { color:var(--ink); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dz-share { font-size:12px; font-weight:700; background:var(--colbg); color:var(--ink2); border-radius:7px; padding:3px 8px; min-width:52px; text-align:center; }
.mk-0 { background:#1E2B5C; } .mk-1 { background:#F28C28; } .mk-2 { background:#F6C79A; }
.mk-3 { background:#D9DEEA; } .mk-4 { background:#7A8BB5; } .mk-5 { background:#B4541A; }
.dz-markets li:first-child .dz-share { background:var(--green-bg); color:var(--green); }
/* tabella prodotti */
.dz-tbl th { background:var(--soft); font-size:13px; color:var(--ink); font-weight:700; }
.dz-tbl td { font-size:14px; padding-top:8px; padding-bottom:8px; }
.dz-tbl .mono { font-size:13px; color:var(--ink); }
.dz-pill-green { display:inline-block; min-width:44px; text-align:center; background:var(--green-bg); color:var(--green); font-weight:700; font-size:12.5px; border-radius:7px; padding:2px 8px; }
/* da fare oggi */
.dz-count { background:var(--orange-bg); color:var(--orange-dark); font-size:13px; font-weight:700; border-radius:8px; padding:3px 10px; }
.dz-todo { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.dz-todo li + li { border-top:1px solid var(--line2); }
.dz-todo a { display:flex; align-items:center; gap:12px; padding:8px 4px; color:var(--ink); text-decoration:none; font-size:14.5px; }
.dz-todo a:hover { background:var(--soft); }
.dz-todo a > .ico { color:var(--muted); flex:0 0 auto; }
.dz-check { width:18px; height:18px; border:1.5px solid #C2C8D4; border-radius:4px; flex:0 0 auto; }
.dz-todo-text { flex:1; min-width:0; }
.dz-todo-text b { color:var(--orange-dark); }
.dz-prio { font-size:12px; font-weight:700; border-radius:7px; padding:3px 10px; min-width:70px; text-align:center; }
.p-crit { background:#FDECEA; color:#C4321F; }
.p-alta { background:#FFF0DF; color:#B95A08; }
.p-norm { background:#E8EEFF; color:#2D52C4; }
/* piede */
.dz-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; font-size:13.5px; color:var(--ink2); padding:2px 4px; }
.dz-foot span { display:inline-flex; align-items:center; gap:8px; }
.dz-live { width:10px; height:10px; border-radius:50%; background:#2FB86A; display:inline-block; }
.dz-note { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); margin:-8px 4px 0; }
.dz-note .ico { flex:0 0 auto; }
@media (max-width:1200px) {
  .dz-kpis { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .dz-row-a, .dz-row-b { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:900px) {
  .content { border-radius:0; }
  .head-search label { width:100%; }
  .head-tools, .head-search { width:100%; }
}
@media (max-width:560px) {
  .dz-kpis { grid-template-columns:minmax(0,1fr); }
}
/* schermi grandi: tutto il programma cresce in proporzione, come nelle immagini approvate */
body.app { --z:1; }
@media (min-width:1680px) and (min-height:900px) { body.app { --z:1.08; zoom:1.08; } }
@media (min-width:1900px) and (min-height:1020px) { body.app { --z:1.18; zoom:1.18; } }
@media (min-width:2200px) and (min-height:1150px) { body.app { --z:1.3; zoom:1.3; } }
@media (min-width:2500px) and (min-height:1300px) { body.app { --z:1.42; zoom:1.42; } }
body.app { min-height:calc(100vh / var(--z)); }
.side { height:calc(100vh / var(--z) - 60px); }
@media (max-width:900px) { .side { height:calc(100vh - 60px); } }
.dz-kpi-value + .trend-wait { display:inline-block; margin:4px 0 0; }
/* grafico a linea: scritte in HTML, non si deformano */
.dz-chart { display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; padding-top:6px; }
.dz-yaxis { display:flex; flex-direction:column; justify-content:space-between; height:calc(220px + 1.2em); margin-top:-.6em; font-size:12.5px; line-height:1.2em; color:#4E5668; text-align:right; white-space:nowrap; }
.dz-plotwrap { min-width:0; }
.dz-plotwrap svg { display:block; width:100%; height:220px; overflow:visible; }
.dz-plotwrap .grid { stroke:#E9ECF2; stroke-width:1; }
.ln-dots { fill:none; stroke:#22336F; stroke-width:7; stroke-linecap:round; }
.dz-xaxis { display:flex; justify-content:space-between; width:calc(100% * 27 / 29 + 54px); margin:8px 0 0 -27px; }
.dz-xaxis span { width:54px; text-align:center; font-size:12.5px; color:#4E5668; white-space:nowrap; }
.dz-markets li { font-size:14px; gap:8px; }
/* bacheca come grafica approvata */
.board-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.bt-search { display:flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:0 14px; min-height:44px; flex:1 1 280px; max-width:420px; color:var(--muted); box-shadow:var(--shadow-sm); }
.bt-search:focus-within { border-color:var(--orange); }
.bt-search input { border:0; outline:0; background:transparent; flex:1; min-width:0; font-size:14.5px; padding:0; min-height:42px; box-shadow:none; }
.bt-select { display:flex; align-items:center; gap:6px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:0 6px 0 14px; min-height:44px; font-size:14px; font-weight:700; box-shadow:var(--shadow-sm); }
.bt-select select { border:0; background:transparent; font-size:14px; padding:0 4px; min-height:40px; color:var(--ink2); box-shadow:none; }
.bt-select select:focus { outline:none; }
.btn-filter { min-height:44px; }
.bt-space { flex:1; }
.bt-btn { min-height:44px; display:inline-flex; align-items:center; gap:8px; padding:0 18px; font-size:14.5px; text-decoration:none; }
.board-sub { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:-4px; font-size:14px; }
.link-btn { background:none; box-shadow:none; color:var(--orange-dark); border:0; padding:4px 6px; min-height:0; display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:700; cursor:pointer; }
.link-btn:hover { background:var(--orange-bg); }
.order { position:relative; }
.order-top { padding-right:18px; }
.order-more { position:absolute; top:8px; right:6px; }
.order-more summary { list-style:none; cursor:pointer; font-size:18px; line-height:1; color:var(--muted); padding:2px 6px; border-radius:6px; }
.order-more summary::-webkit-details-marker { display:none; }
.order-more summary:hover { background:var(--soft); color:var(--ink); }
.order-more form { position:absolute; right:0; top:calc(100% + 4px); z-index:5; background:var(--card); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-md); padding:6px; min-width:220px; margin:0; }
.order-lines li .badge { margin-left:auto; }
.b-late { background:var(--err-bg); color:var(--err); }
.b-urgent { background:#FDEBE6; color:#D2401E; }
.b-cancel { background:var(--violet-bg); color:var(--violet); }
.b-done { background:var(--green-bg); color:var(--green); }
.move-line { margin:0; display:flex; justify-content:flex-end; }
.move-line .btn-sm { min-height:28px; font-size:12px; }
.distinta .sign { min-width:140px; border-bottom:1px solid var(--line); }
@media print {
  .topbar, .side, .no-print, .prova, .page-ico { display:none !important; }
  body.app { zoom:1 !important; background:#fff; }
  .shell, .content { background:#fff; padding:0; border-radius:0; }
  .panel { box-shadow:none; border:0; }
}
/* tabella profitto come grafica approvata */
.tb-filters { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.tb-lab { font-size:14.5px; font-weight:700; color:var(--ink); }
.tb-lab + .period-pick, .tb-lab + .tb-date { margin-right:8px; }
.tb-date { display:inline-flex; align-items:center; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:0 14px; min-height:44px; font-size:14.5px; font-weight:600; box-shadow:var(--shadow-sm); }
.tb-date .ico { color:var(--ink2); }
.btn-excel { display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 16px; border:1.5px solid #1F8F4E; color:#1F7A45; background:var(--card); border-radius:10px; font-weight:700; font-size:14.5px; text-decoration:none; }
.btn-excel:hover { background:#EAF7EF; }
.btn-excel .xl { width:22px; height:22px; border-radius:4px; background:#1F8F4E; color:#fff; font-size:13px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.tb-kpis { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
.tb-kpi { display:flex; align-items:center; gap:18px; border-radius:12px; padding:18px 20px; border:1px solid transparent; min-width:0; }
.tb-kpi > div { min-width:0; }
.tb-ico { flex:0 0 auto; display:inline-flex; }
.tb-ico .ico { width:46px; height:46px; stroke-width:1.9; }
.tb-label { font-size:15px; font-weight:700; color:var(--ink); }
.tb-value { font-size:28px; font-weight:800; letter-spacing:-.02em; line-height:1.2; white-space:nowrap; }
.tb-sub { font-size:13px; color:var(--ink2); margin-top:2px; }
.tb-sub a { color:var(--muted); }
.t-blue { background:#EAF1FF; border-color:#D7E3FB; } .t-blue .tb-ico { color:#2F6BFF; }
.t-green { background:#E6F6EC; border-color:#CDEBD8; } .t-green .tb-ico { color:#1F9D55; }
.t-orange { background:#FFF1E2; border-color:#FBE0C3; } .t-orange .tb-ico { color:var(--orange); }
.t-violet { background:#F0EDFF; border-color:#E0D9FB; } .t-violet .tb-ico { color:#6B4EE6; }
.tb-panel { padding:6px 0 0; }
.tb-panel .tbl-pl th { font-size:13px; color:var(--ink); font-weight:800; background:var(--card); padding-top:12px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.tb-panel .tbl-pl td { font-size:14px; padding-top:7px; padding-bottom:7px; border-bottom:1px solid var(--line2); }
.tb-panel .tbl-pl td strong { font-weight:600; }
.tb-panel .tbl-pl td:last-child { color:var(--green); font-weight:700; }
.tb-panel .tbl-pl tfoot td { background:#EAF1FF; font-weight:800; font-size:14.5px; padding-top:14px; padding-bottom:14px; border:0; }
.tb-panel .tbl-pl tfoot td:first-child { border-radius:0 0 0 12px; }
.tb-panel .tbl-pl tfoot td:last-child { border-radius:0 0 12px 0; }
@media (max-width:1200px) { .tb-kpis { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:560px) { .tb-kpis { grid-template-columns:minmax(0,1fr); } }
/* canali: primo passo del collegamento direttamente nella pagina (grafica approvata) */
.cc-head { display:flex; align-items:center; gap:14px; }
.cc-head h2 { margin:0; font-size:24px; font-weight:800; }
.cc-head p { margin:2px 0 0; }
.cc-logo { width:52px; height:52px; border-radius:12px; background:var(--orange-bg); color:var(--orange); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.cc-steps { list-style:none; margin:4px 0 0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; }
.cc-steps li { display:flex; align-items:center; gap:10px; background:var(--soft); border:1px solid var(--line); border-radius:999px; padding:6px 14px 6px 6px; font-size:14px; font-weight:700; color:var(--ink2); min-width:0; line-height:1.2; }
.cc-steps li span { width:32px; height:32px; border-radius:50%; border:1.5px solid #C9CED9; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; background:var(--card); font-weight:800; }
.cc-steps li.now { background:var(--orange-bg); border-color:var(--orange-line); color:var(--orange-dark); }
.cc-steps li.now span { background:var(--orange); border-color:var(--orange); color:#fff; }
.cc-box { border:1px solid var(--line); border-radius:12px; padding:16px 18px; display:flex; flex-direction:column; gap:10px; margin-top:4px; }
.cc-box h3 { margin:0; font-size:18px; font-weight:800; }
.cc-box > p { margin:-4px 0 0; }
.cc-countries { grid-template-columns:repeat(5, minmax(0,1fr)); }
.country-more { text-decoration:none; color:var(--ink); }
.cc-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.cc-foot .muted { display:inline-flex; align-items:center; gap:8px; font-size:13.5px; }
.btn-cc { min-height:46px; padding:0 26px; font-size:16px; display:inline-flex; align-items:center; gap:10px; }
.connect-text { display:flex; flex-direction:column; gap:12px; min-width:0; align-items:stretch; flex:1 1 560px; }
.tb-panel .table-wrap { margin:0; border-radius:12px; overflow:auto; }
@media (max-width:1200px) { .cc-countries { grid-template-columns:repeat(3, minmax(0,1fr)); } .cc-steps { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:560px) { .cc-countries { grid-template-columns:repeat(2, minmax(0,1fr)); } }
/* menu a sinistra come le immagini: stretto, fitto, sempre tutto visibile senza scorrere */
.side { flex-basis:212px; padding:6px 8px 10px; --h:clamp(17px, calc((100vh / var(--z) - 60px - 24px) / 38.5), 26px); scrollbar-width:none; }
.side::-webkit-scrollbar { display:none; }
.nav-title { min-height:calc(var(--h) * 1.42); padding:calc(var(--h) * .3) 8px calc(var(--h) * .06); font-size:clamp(12.5px, calc(var(--h) * .66), 15px); gap:9px; }
.nav-title .ico:first-child { width:clamp(15px, calc(var(--h) * .8), 19px); height:clamp(15px, calc(var(--h) * .8), 19px); }
.nav-title .ico:last-child { width:13px; height:13px; }
.nav-items { padding:0 0 calc(var(--h) * .12); }
.nav-item { min-height:var(--h); padding:0 8px 0 34px; font-size:clamp(11.5px, calc(var(--h) * .6), 14px); border-radius:6px; line-height:1.1; display:flex; align-items:center; }
.nav-item.on { margin:1px 0; min-height:calc(var(--h) + 2px); }
@media (max-width:900px) { .side { --h:30px; flex-basis:auto; width:260px; } }
/* tabella: intestazione grigia e riga totale arancio chiaro, come l'immagine */
.tb-panel .tbl-pl th { background:var(--soft); }
.tb-panel .tbl-pl tfoot td { background:#FDF0E2; color:var(--ink); }
.ok-pill { display:inline-flex; align-items:center; gap:6px; background:var(--green-bg); color:var(--green); border-radius:999px; padding:3px 10px; font-weight:600; font-size:13px; }
.dz-foot { justify-content:flex-start; gap:18px; }

/* pagina Ordini: stato di ogni ordine con i colori della bacheca, paginazione */
.tbl td.nowrap { white-space:nowrap; }
.pill-st.st-da_spedire { background:#FDEBD8; color:var(--orange-dark); }
.pill-st.st-stampa { background:var(--blue-bg); color:var(--blue); }
.pill-st.st-imballa { background:var(--violet-bg); color:var(--violet); }
.pill-st.st-spedito { background:var(--green-bg); color:var(--green); }
.pill-st.st-annullato { background:var(--err-bg); color:var(--err); }
.pager { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:12px; }
.pager .muted { margin-right:auto; }
