/* Rest-N-Book: CSS unito da tools/bundle-css.ps1. Non modificare: la sorgente e' css/rnb-refactored.css con i suoi file. */
/* == css/app/00-design-tokens.css == */
/* Rest-N-Book v4 — centralized global design tokens.
   Values are migrated unchanged from the original :root blocks.
   Keep this file first in rnb-refactored.css. */

:root {
  --now: #8E1B2B; /* bordeaux del locale: «adesso» e ciò che chiede attenzione (1.267.36) */
  /* Migrated from css/app/20-theme-and-shared.css */
  color-scheme: light;
  --bg: #F4F2EE;
  --panel: #FFFFFF;
  --panel2: #F8F6F2;
  --line: #E4DFD6;
  --text: #1C2228;
  --muted: #5B6168;
  --gold: #1F6F8B;
  --green: #1F6F8B;
  --red: #1F6F8B;
  --purple: #1F6F8B;
  --reorg: #1F6F8B;
  --control-bg: #FFFFFF;
  --control-fill: #F8F6F2;
  --control-border: #DDD7CC;
  --control-text: #2A3138;
  --font-brand: "Segoe UI Variable","Segoe UI",system-ui,-apple-system,sans-serif;
  /* Migrated from css/app/30-polish-layer.css */
  --glass: #FFFFFF;
  --glass-strong: #FFFFFF;
  --glass-edge: rgba(255,255,255,.75);
  --veil: rgba(32,28,22,.45);
  --azure: #1F6F8B;
  --azure-2: #2A86A6;
  --azure-ink: #17607A;
  --ink: #1C2228;
  --sh-sm: 0 1px 3px rgba(40,32,24,.06);
  --sh-md: 0 8px 24px rgba(40,32,24,.09);
  --sh-lg: 0 24px 70px rgba(40,32,24,.20);
  --ok: #2E8A5B;
  --warn: #B7791F;
  --bad: #C2414F;
  --chart-1: #087DBF; --chart-2: #26A69A; --chart-3: #F0A33A; --chart-4: #7A6CE0; --chart-5: #E56B6F; --chart-6: #4F9D69; --chart-7: #D47CB0; --chart-8: #687C91; --chart-9: #9AA8B2;
  --violet: #7A6FD0;
  /* Migrated from css/app/40-uniform-base.css */
  --ctl-h: 38px;
  --r-ctl: 0;
  /* Migrated from css/ui/00-shared-controls.css */
  --ui-h: 34px;
  --ui-h-sm: 28px;
  --ui-r: 0;
  --ui-r-sm: 0;
  --ui-r-item: 0;
  --ui-line: #DDD7CC;
  --ui-line-hover: #BFB6A8;
  --ui-ink: #2A3138;
  --ui-azure: #1F6F8B;
  --ui-azure-dark: #17607A;
  --ui-tint: #E5EFF2;
  --ui-tint-ink: #17607A;
  --on-accent: #FFFFFF;
  /* riquadri informativi al passaggio del mouse (56-shared-ui-foundation.css) */
  --box-bg: #FFFFFF;
  --box-bg-2: #F8F6F2;
  --box-line: #E4DFD6;
  --box-sh: 0 1px 2px rgba(40,32,24,.06);
  --kpi-hover-bg: #FFFFFF;
  --kpi-hover-line: #BFB6A8;
  --kpi-hover-sh: 0 12px 26px -8px rgba(40,32,24,.22);
  --kpi-active-sh: 0 4px 10px -4px rgba(40,32,24,.2);
  --font-display: "Iowan Old Style","Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
  --card-r: 0;
  --card-pad: 20px;
  --card-gap: 16px;
  /* Distanze minime uniche (1.274.0): etichetta-campo, tra controlli, tra campi sulla riga, tra righe di campi */
  --gap-label: 4px;
  --gap-ctl: 8px;
  --gap-field: 14px;
  --gap-row: 12px;
  --card-sh: 0 1px 2px rgba(40,32,24,.05), 0 4px 16px -8px rgba(40,32,24,.10);
  --sep: 1px solid var(--line);
  --row-pad: 12px;
  /* Piante dei tavoli e Floor plan: colori che sono informazione (stati e caratteristiche) */
  --fp-free-bg: #F1FAF5;
  --fp-free-line: #BFE6CF;
  --fp-free-ink: #17703E;
  --fp-booked-line: #A9D3EE;
  --fp-soon-bg: #FDEFD6;
  --fp-soon-line: #F2C77E;
  --fp-soon-ink: #9A6212;
  --fp-arrived-bg: #FFF5E6;
  --fp-arrived: #E39A1E;
  --fp-seated-bg: #E7F6EE;
  --fp-seated: #2BA86A;
  --fp-finished: #8DA2B2;
  --fp-walkin-bg: #F3EEFC;
  --fp-walkin: #8E6BD8;
  --fp-blocked-bg: #FDECEE;
  --fp-blocked-line: #E8B4AE;
  --fp-blocked-ink: #A42635;
  --fp-blocked-stripe: #E3E8EC;
  --fp-feat-bg: #FFF6E3;
  --fp-feat-ink: #8A5A00;
  --fp-undo-bg: #FFF6E5;
  --fp-undo-ink: #7A4E07;
}

/* Modalità scura (18 nov 2026): data-theme="dark" su <html>, messo dallo script in testa a index.html
   (scelta in Account › Aspetto, chiave rnb_theme_v1: light | dark | auto). Il file scuro è 57-dark-auto.css (generato da tools/make-dark.ps1). */
html[data-theme="dark"] {
  --now: #F08A98;
  color-scheme: dark;
  --bg: #121416;
  --panel: #1B1E21;
  --panel2: #22262A;
  --line: #30353A;
  --text: #E6E8EA;
  --muted: #A4AAB0;
  --gold: #3A93B0;
  --green: #3A93B0;
  --red: #3A93B0;
  --purple: #3A93B0;
  --reorg: #3A93B0;
  --control-bg: #191C1F;
  --control-fill: #24282C;
  --control-border: #3D4349;
  --control-text: #DADDE0;
  --glass: #1C1F22;
  --glass-strong: #1C1F22;
  --glass-edge: rgba(255,255,255,.06);
  --veil: rgba(0,0,0,.62);
  --azure: #2A7C98;
  --azure-2: #3A93B0;
  --azure-ink: #7CC3DB;
  --ink: #E6E8EA;
  --sh-sm: 0 2px 8px rgba(0,0,0,.30);
  --sh-md: 0 10px 30px rgba(0,0,0,.38);
  --sh-lg: 0 24px 70px rgba(0,0,0,.55);
  --ok: #4CC487;
  --warn: #F0B54A;
  --bad: #F06B7A;
  --chart-1: #4DB3E6; --chart-2: #4CC4B8; --chart-3: #F0B54A; --chart-4: #9D92F0; --chart-5: #F08A8D; --chart-6: #6FC38C; --chart-7: #E69CC8; --chart-8: #8FA3B7; --chart-9: #B4BFC8;
  --violet: #A69CF0;
  --ui-line: #33383D;
  --ui-line-hover: #4E555C;
  --ui-ink: #DADDE0;
  --ui-azure: #2A7C98;
  --ui-azure-dark: #3A93B0;
  --ui-tint: #1F3138;
  --ui-tint-ink: #8FD0E6;
  --on-accent: #FFFFFF;
  --ok-ink: #6FD6A0;
  --bad-ink: #F59AA4;
  --box-bg: #26292D;
  --box-bg-2: #303439;
  --box-line: #3B4147;
  --box-sh: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.35);
  --kpi-hover-bg: #2D3135;
  --kpi-hover-line: #525A62;
  --kpi-hover-sh: 0 12px 26px -8px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07);
  --kpi-active-sh: 0 4px 10px -4px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  --card-sh: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px -8px rgba(0,0,0,.6);
  --fp-free-bg: #1C2D25;
  --fp-free-line: #2F5A44;
  --fp-free-ink: #6FD6A0;
  --fp-booked-line: #2F5568;
  --fp-soon-bg: #3A2E1A;
  --fp-soon-line: #6B5326;
  --fp-soon-ink: #F0C77A;
  --fp-arrived-bg: #3A2E1A;
  --fp-arrived: #F0B54A;
  --fp-seated-bg: #1D3328;
  --fp-seated: #4CC487;
  --fp-finished: #6B757E;
  --fp-walkin-bg: #2A2540;
  --fp-walkin: #A69CF0;
  --fp-blocked-bg: #3A2327;
  --fp-blocked-line: #6B3A40;
  --fp-blocked-ink: #F59AA4;
  --fp-blocked-stripe: #30353A;
  --fp-feat-bg: #3A3020;
  --fp-feat-ink: #F0C77A;
  --fp-undo-bg: #3A2E1A;
  --fp-undo-ink: #F0C77A;
}

/* Colori fissi portati a token (1.295.0): chiaro = valore di prima, scuro = valore che generava make-dark.
   Cosi' il file scuro generato non deve piu' ricopiare le regole. sh = ombra, bg = fondo, fg = testo, ln = bordo. */
:root{--dk-sh1:#0008;--dk-sh2:#0004;--dk-sh3:#0005;--dk-sh4:#000B;--dk-sh5:#173B5510;--dk-sh6:#173B550D;--dk-sh7:rgba(23,59,85,.07);--dk-sh8:rgba(23,59,85,.10);--dk-bg1:#000;--dk-bg2:rgba(255,255,255,.28);--dk-fg1:#2A1A00;--dk-bg3:rgba(213,73,90,.10);--dk-bg4:rgba(213,73,90,.18);--dk-bg5:rgba(213,73,90,.06);--dk-bg6:rgba(213,73,90,.13);--dk-sh9:rgba(16,50,74,.08);--dk-sh10:rgba(16,50,74,.30);--dk-sh11:rgba(16,50,74,.18);--dk-sh12:rgba(16,50,74,.28);--dk-sh13:rgba(16,50,74,.32);--dk-sh14:rgba(0,0,0,.12);--dk-bg7:#E4DFD6;--dk-bg8:#FFFFFF;--dk-bg9:#F4F2EE;--dk-bg10:#30353A;--dk-bg11:#1B1E21;--dk-bg12:#121416;--dk-bg13:#9AA0A6;--dk-sh15:rgba(0,0,0,.18)}
html[data-theme="dark"]{--dk-sh1:rgba(0,0,0,0.6);--dk-sh2:rgba(0,0,0,0.587);--dk-sh3:rgba(0,0,0,0.6);--dk-sh4:rgba(0,0,0,0.6);--dk-sh5:rgba(0,0,0,0.138);--dk-sh6:rgba(0,0,0,0.112);--dk-sh7:rgba(0,0,0,0.154);--dk-sh8:rgba(0,0,0,0.22);--dk-bg1:#2e2e2e;--dk-bg2:rgba(31,33,35,0.28);--dk-fg1:#f8e6cb;--dk-bg3:rgba(174,40,56,0.1);--dk-bg4:rgba(174,40,56,0.18);--dk-bg5:rgba(174,40,56,0.06);--dk-bg6:rgba(174,40,56,0.13);--dk-sh9:rgba(0,0,0,0.176);--dk-sh10:rgba(0,0,0,0.6);--dk-sh11:rgba(0,0,0,0.396);--dk-sh12:rgba(0,0,0,0.6);--dk-sh13:rgba(0,0,0,0.6);--dk-sh14:rgba(0,0,0,0.264);--dk-bg7:#302b21;--dk-bg8:#1f2123;--dk-bg9:#1c1b19;--dk-bg10:#383e44;--dk-bg11:#31373c;--dk-bg12:#2f3439;--dk-bg13:#3d4145;--dk-sh15:rgba(0,0,0,0.396)}

/* == css/app/00-core-layout.css == */
/* Rest-N-Book Â· foglio di stile unico.
   Generato da tools/unify-css.ps1 unendo: app.css, assistant.css, polish.css, uniform.css.
   L'ordine delle regole Ã¨ quello originale: la cascata Ã¨ invariata. Le sezioni sotto indicano il file di provenienza. */

/* ===== app.css ===== */
*{box-sizing:border-box}
body{margin:0;font:14px var(--font-brand)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app{display:grid}
aside{grid-column:1;grid-row:1;display:flex;flex-direction:column}
main{grid-column:2;grid-row:1}
.logo{font-size:21px;font-weight:bold}
.logo span{color:var(--gold)}

main{min-width:0}
.top{display:flex;justify-content:space-between;align-items:center;gap:15px}
h2{margin:0 0 13px}
.muted,.sub,small{color:var(--muted)}
.btn:disabled{opacity:.4;cursor:not-allowed}
.search-field{margin:10px 0}
.search-field input{width:100%}
.search-field:before{content:"⌕";position:absolute;left:13px;top:8px;font-size:20px;color:var(--muted)}
.reorg-modal{width:min(1040px,100%);padding:28px}
.reorg-kicker{font-size:12px;letter-spacing:2px;text-transform:uppercase}
.reorg-title{font-size:30px;margin:7px 0 6px}
.reorg-intro{font-size:15px;color:var(--muted);margin:0 0 20px}
.reorg-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}
.reorg-metric{border:1px solid var(--line);padding:16px}
.reorg-metric strong{display:block;font-size:30px;margin-bottom:5px}
.reorg-metric span{font-size:12px;color:var(--muted)}
.reorg-change-list{display:grid;gap:9px}
.reorg-change{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:center;padding:15px;border:1px solid var(--line);border-left:4px solid var(--gold)}
.reorg-booking strong{display:block;font-size:15px}
.reorg-booking small{display:block;margin-top:4px;font-size:12px}
.reorg-arrow{font-size:22px}
.reorg-assignment{font-weight:700;font-size:17px}
.reorg-empty{padding:22px;border:1px dashed var(--line);border-radius:0;color:var(--muted);text-align:center}
.reorg-action{background:var(--azure);border-color:var(--azure);color:var(--on-accent);font-size:14px;font-weight:800;padding:12px 16px}

.undo-booking{font-weight:700;border-radius:0}
.undo-booking:not(:disabled){border-color:var(--azure);color:var(--text);background:var(--panel)}


.date-navigation button.today,.date-navigation button.day-shortcut{font-weight:700}
.date-navigation button:hover{filter:brightness(1.12)}
.mini-calendar{position:absolute;left:0;top:34px;border:1px solid var(--azure);z-index:10}
.mini-calendar-head{display:flex;justify-content:space-between;align-items:center}
.mini-calendar-head strong{font-size:14px;}
.mini-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.mini-calendar-grid .weekday{font-size:10px;padding:5px 0}
.mini-calendar-grid button{margin:auto}
.mini-calendar-grid button.other-month{opacity:.45}
.mini-calendar-grid button.selected{font-weight:800}
.smart-log-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}
.smart-log-row:last-child{border:0}
.smart-log-row small{white-space:nowrap}
.stats{display:grid;margin-bottom:15px}
.stat small{display:block}
.stat strong{display:block}
.layout{display:grid;grid-template-columns:1.1fr .9fr}
.table-grid{display:grid;grid-template-columns:repeat(4,minmax(70px,1fr))}
.table-card{text-align:center}
.table-card strong{display:block;margin-bottom:5px}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:5px}
.table-card.table-card-blocked{border:2px solid var(--azure)!important}



.floor-controls{grid-template-columns:minmax(200px,1fr) minmax(180px,.9fr) minmax(220px,1.1fr);}
.timeline-scroll{overflow:auto}
.timeline{min-width:900px}
.timeline-head,.timeline-row{display:grid}
.timeline-head{position:sticky;top:0;z-index:2}
.timeline-label{border-bottom:1px solid var(--line)}
.timeline-hours{position:relative;height:38px;border-bottom:1px solid var(--line)}
.timeline-hours span{position:absolute;top:9px;transform:translateX(-50%);font-size:10px;color:var(--muted);white-space:nowrap}
.timeline-track{position:relative;border-bottom:1px solid var(--line);cursor:crosshair;isolation:isolate}
.timeline-window{display:none;position:absolute;top:0;bottom:0;pointer-events:none;z-index:0}
.timeline-window:before{content:"";position:absolute;left:0;top:-38px;bottom:0;width:2px}
.timeline-booking{position:absolute;min-width:52px;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;cursor:grab;z-index:1}
.timeline-booking:active{cursor:grabbing}
.timeline-booking.dragging{opacity:.4}
.timeline-booking.selected{z-index:2}
.timeline-empty{padding:18px;color:var(--muted)}
.booking{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}
.booking:last-child{border:0}
.booking strong{display:block;margin-bottom:5px}
.tag{display:inline-block;padding:4px 8px;margin:4px 4px 0 0}
.field label{display:block}
.field input,.field select,.field textarea{width:100%}
.form-grid{display:grid;grid-template-columns:1fr 1fr}
.notice{padding:12px;font-size:12px;line-height:1.55;margin:12px 0}
.duration{border:1px solid var(--line);}
.hidden{display:none!important}
.modal-backdrop{position:fixed;inset:0;display:none;align-items:center;justify-content:center;}
.modal{border:1px solid var(--line)}
.candidate,.result{border:1px solid var(--line);margin:8px 0}
.candidate{display:flex;justify-content:space-between;gap:10px;align-items:center}
.candidate small{display:block;margin-top:5px}
table{width:100%;font-size:12px}
th,td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line);vertical-align:top}
td input,td select,td textarea{width:100%;min-width:65px}
td textarea{min-width:130px}
.scroll{overflow:auto}
@media(max-width:850px){
 aside{grid-column:1;grid-row:auto;border:0;border-bottom:1px solid var(--line)}
 main{grid-column:1;grid-row:auto}
 .layout{grid-template-columns:1fr}
 .reorg-metrics{grid-template-columns:1fr}
 .reorg-change{grid-template-columns:1fr auto 1fr}
}
@media(max-width:520px){
 .top{align-items:flex-start;flex-direction:column}
 .form-grid{grid-template-columns:1fr}
 .table-grid{grid-template-columns:repeat(2,1fr)}
}
.brand-logo{display:flex;justify-content:center;margin:2px auto 8px;}

.version{text-align:center;font-size:9px;margin:4px 0 24px}


.timeline-window:before{box-shadow:0 0 11px var(--ui-tint)}

.duration{background:var(--panel2);border-color:var(--ui-line);}

.reorg-arrow,.reorg-kicker,.reorg-metric strong{color:var(--azure)}
.settings-heading{display:grid}
.settings-heading>div:first-child{align-self:center}
.settings-location{margin:0}
.settings-tabs{border-top:1px solid var(--line);}
.experience-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.experience-heading h2{margin-bottom:4px}



.settings-location select{width:100%}
button,.btn{transition:background-color .16s,border-color .16s,color .16s,transform .16s,box-shadow .16s}
.btn.primary,.btn.reorg-action{box-shadow:none}
.btn.primary:not(:disabled):hover,.btn.reorg-action:not(:disabled):hover{box-shadow:var(--sh-sm)}
.date-navigation button,.mini-calendar button{border-radius:0;transition:background-color .16s,border-color .16s,color .16s}
.settings-tabs .btn.active{background:var(--ui-tint);border-color:var(--gold);color:var(--gold)}
@media(max-width:540px){
 .experience-heading{flex-direction:column}
 
 
}
.service-card{margin:10px 0}
.service-card-head{display:flex;align-items:center;justify-content:space-between}
.service-card-head h3{margin:0}
.service-enabled{display:flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--line);border-radius:0;font-weight:700}
.service-weekdays{display:flex;align-items:center;flex-wrap:wrap;margin:10px 0}
.weekday-options{display:flex;flex-wrap:wrap}
.weekday-options label{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);background:var(--panel);font-size:11px;cursor:pointer}
.service-date-panel{margin-top:14px}
.service-date-panel>.top{align-items:flex-start}
.service-date-panel .top h3{margin:0 0 4px}
.service-empty{margin:8px 0;font-size:12px}
@media(max-width:540px){
 .service-card-head{align-items:flex-start;flex-direction:column}
 .service-date-panel>.top{flex-direction:column}
}
.shift-value{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.shift-buttons .btn:disabled{opacity:.42;cursor:not-allowed}
.timeline-area-row{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border-top:1px solid var(--azure);border-bottom:1px solid var(--line);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.timeline-area-row span{text-transform:none;letter-spacing:0}
.timeline-booking.followed-by-booking{font-weight:700}
.timeline-table-label{display:flex;align-items:center;justify-content:space-between;gap:5px}
.timeline-table-label .btn{padding:3px 6px;font-size:9px}
.timeline-lock-button{color:var(--azure)}
.field input[type="date"]{width:132px;min-width:116px;max-width:132px;min-height:34px;padding:5px 27px 5px 8px;border-radius:0;background:var(--panel);border-color:var(--ui-line)}
.date-navigation{position:relative}
.date-navigation input[type="date"]{flex:0 1 132px}
.date-navigation input[type="date"]::-webkit-calendar-picker-indicator{opacity:.9;width:20px;cursor:pointer;filter:invert(78%) sepia(53%) saturate(604%) hue-rotate(5deg) brightness(91%)}
.dashboard-system-actions{justify-content:flex-start}
.timeline-actions{justify-content:flex-end;margin-bottom:12px}
.timeline-actions .btn{white-space:nowrap}
.settings-tabs{grid-column:1/-1;justify-content:flex-start}
.field input[type="date"][readonly]{opacity:.82;cursor:default}
.stats{grid-template-columns:repeat(6,minmax(0,1fr))}
.dashboard-arrival{align-items:center}
.dashboard-arrival-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.dashboard-arrival-actions .btn{min-width:86px}
.seating-fields{grid-template-columns:minmax(140px,.7fr) minmax(210px,1.3fr);align-items:end}
.seating-fields .field{margin-bottom:0}


@media(max-width:540px){
 .seating-fields{grid-template-columns:1fr}
}
@media(max-width:1150px){
 .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1050px){
 .timeline-actions{grid-column:1/-1;justify-content:flex-start;margin-bottom:0}
}
@media(max-width:850px){
 .settings-heading{grid-template-columns:1fr}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .floor-controls{grid-template-columns:1fr 1fr}
 .floor-controls .field:last-child{grid-column:1/-1}
}
@media(max-width:540px){
 .floor-controls{grid-template-columns:1fr}
 .floor-controls .field:last-child{grid-column:1}
 .timeline-actions{grid-column:1}
}
.modal-actions{margin-top:20px;padding-top:16px;border-top:var(--sep,1px solid var(--line))}


.smart-log-row{align-items:flex-start;gap:8px;padding:7px 0;font-size:11px}
.smart-log-row span{display:-webkit-box;min-width:0;flex:1;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.35}
.smart-log-row small{font-size:9px}
@media(max-width:540px){
 .modal-backdrop{align-items:flex-end}
 .modal-actions .btn{flex:1 1 120px}


}
.timeline-criterion{display:grid;gap:6px;margin:0 0 10px;padding:11px 13px;border:1px solid var(--line);border-radius:0;background:var(--panel2)}
.timeline-criterion-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.timeline-criterion-copy{display:grid;gap:2px;min-width:0}
.timeline-criterion-copy strong{font-size:12px}
.timeline-criterion-copy small{font-size:11px}
.timeline-criterion-head output{flex:0 0 auto;color:var(--gold);font-size:12px;font-weight:800;text-align:right}
.timeline-criterion-slider{display:block;accent-color:var(--gold);cursor:pointer;touch-action:pan-y}
.timeline-criterion-stops{display:grid;}
.timeline-criterion-stop{min-width:0;padding:3px 2px;border-radius:0;color:var(--muted);font-size:10px;line-height:1.2;text-align:center}
.timeline-criterion-stop.active{background:var(--ui-tint);color:var(--gold);font-weight:800}
.timeline-criterion-status{min-height:13px;color:var(--muted);font-size:10px;line-height:1.3}
.timeline-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px;border-top:1px solid var(--line)}
.timeline-preview-actions>span{font-size:11px;font-weight:700;color:var(--text)}
.timeline-preview-buttons{display:flex;align-items:center;gap:6px}
.timeline-preview-buttons .btn{min-height:32px;padding:5px 10px;font-size:11px}
.timeline-booking.timeline-preview-change{font-weight:800}
.timeline-booking.timeline-preview-change:hover{z-index:3}


@media(max-width:540px){
 .timeline-criterion{padding:9px}
 .timeline-criterion-head{align-items:flex-start;flex-direction:column;gap:3px}
 .timeline-criterion-head output{text-align:left}
 .timeline-criterion-stop{font-size:9px}
 .timeline-preview-actions{align-items:flex-start;flex-direction:column}
 .timeline-preview-buttons{width:100%}
 .timeline-preview-buttons .btn{flex:1}
}
.revenue-inputs{grid-template-columns:minmax(220px,.7fr) minmax(240px,1fr);}
.revenue-breakdown{padding:14px}
.revenue-breakdown h3{margin:0 0 8px}
.revenue-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;padding:9px 2px;border-bottom:1px solid var(--line);align-items:center}
.revenue-line:last-child{border-bottom:0}
.revenue-line strong{text-align:right}
.revenue-negative{color:var(--bad)!important}
.revenue-positive{color:var(--ok)!important}
@media(max-width:560px){
 .revenue-inputs{grid-template-columns:1fr}
 .revenue-line{gap:7px;font-size:12px}
}
.revenue-progress-wrap{margin:12px 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:0;background:var(--panel2)}
.revenue-progress-wrap>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.revenue-progress-wrap strong{color:var(--text);font-size:14px}
.revenue-progress-wrap span{color:var(--muted);font-size:12px}
.revenue-progress{height:14px;overflow:hidden;border-radius:999px;background:var(--line)}
.revenue-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--azure-2),var(--azure-ink));transition:width .25s ease}
.revenue-suggestion{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;padding:11px 2px;border-bottom:1px solid var(--line);align-items:center}
.revenue-suggestion>div:first-child{display:grid;gap:3px}
.revenue-suggestion small{color:var(--muted)}
.revenue-mix-controls{grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px;margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:0;background:var(--panel2)}
.revenue-mix-controls label{display:grid;gap:8px;min-width:0}
.revenue-mix-controls label>span{display:flex;justify-content:space-between;gap:12px;font-size:12px;font-weight:700;color:var(--text)}
.revenue-mix-controls output{color:var(--azure-ink);font-variant-numeric:tabular-nums}
.revenue-mix-controls input[type=range]{width:100%;height:7px;accent-color:var(--azure);cursor:pointer}
.revenue-cover-plan{margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:0;background:var(--panel2)}
.revenue-cover-summary{display:grid;gap:5px;margin-bottom:8px}
.revenue-cover-summary>span,.revenue-cover-plan p{font-size:12px;color:var(--muted)}

.revenue-cover-plan>p{margin:8px 0 0}
.revenue-model-note{margin-top:12px}
@media(max-width:760px){
 .revenue-suggestion{gap:6px}
 .revenue-mix-controls{grid-template-columns:1fr}


}


/* == css/app/10-assistant-legacy.css == */
/* ===== assistant.css ===== */

/* Assistente, barra live, heatmap, inserimento rapido (prima dentro js/assistant.js) */
.rnb-hint{min-height:20px;font-size:12px;color:var(--muted);margin:0 4px 10px;display:flex;flex-wrap:wrap;gap:6px}
.rnb-chip{border-radius:0;padding:3px 10px;font-size:11px}
.rnb-live{display:grid;grid-template-columns:1.1fr 1.5fr 1fr 1fr;gap:12px;margin:10px 0 14px}

:where(#rnbLive) .rnb-card small{display:block;text-transform:uppercase}
:where(#rnbLive) .rnb-card strong{display:block;margin:6px 0 3px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rnb-card span{font-size:12px;color:var(--muted)}
:where(#rnbLive) .rnb-card.clock strong{color:var(--gold);font-size:32px;letter-spacing:1px}
:where(#rnbLive) .rnb-card.alert{border-color:var(--bad)}
.rnb-heat h2{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.rnb-heat h2 small{font-weight:400;color:var(--muted)}
.rnb-shift>b{font-size:12px;color:var(--gold);letter-spacing:1px;text-transform:uppercase}
.rnb-shift>b span{color:var(--muted);font-weight:400;letter-spacing:0;text-transform:none;margin-left:8px}
.rnb-cells,.rnb-labels{display:grid}


.rnb-labels span{color:var(--muted);white-space:nowrap;overflow:visible}


html body .set-list.rnb-area-preferences:not(#_){grid-template-columns:minmax(0,1fr)!important;margin:0 0 12px}
.rnb-area-pref input[type=range]{display:block;margin:0;width:100%;accent-color:var(--azure)}

.dashboard-overview-row{display:grid;margin:0 0 12px}
.dashboard-overview-meta{min-width:0}
.dashboard-overview-meta>.field{margin:0 0 8px}
.dashboard-overview-meta>.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.dashboard-overview-meta .stat{margin:0;padding:11px 13px}
.dashboard-overview-meta .stat strong{font-size:22px}
.dashboard-overview-meta .stat .shift-detail{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.45;white-space:pre-line}
.dashboard-floor-preview .top{align-items:flex-start}
.dashboard-floor-preview .top .btn{white-space:nowrap}
.dashboard-upcoming{min-width:0}

.dashboard-upcoming .booking{padding:9px 0}
.dashboard-floor-preview{align-self:start}
.dashboard-floor-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}
.dashboard-floor-slice{min-width:0;border:1px solid var(--line);border-radius:0}
.dashboard-floor-slice>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dashboard-floor-slice strong{font-size:12px;color:var(--gold)}
.dashboard-floor-slice span{font-size:11px;color:var(--muted);text-align:right}
.dashboard-floor-empty{color:var(--muted);font-size:12px}
#seatingValidation.invalid{border-color:var(--bad);background:var(--box-bg);color:var(--text)}
#seatingValidation:not(.invalid){border-color:var(--ui-line)}
.dashboard-overview-row .auto-smart-panel{width:100%;max-width:none;min-width:0;box-sizing:border-box;justify-self:stretch;margin:0;overflow:auto;padding:12px 16px}
.dashboard-overview-row .auto-smart-panel h2{margin:0;font-size:16px}
.dashboard-overview-row .auto-smart-panel h3{margin:8px 0 3px;font-size:13px;color:var(--gold)}
.dashboard-overview-row .smart-log-row{padding:7px 0;font-size:12px}
.dashboard-system-actions{margin:8px 0 12px;padding:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.rnb-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px}
.rnb-tbl{display:inline-block;background:var(--box-bg-2);color:var(--text);border-radius:0;padding:1px 7px;font-size:11px;margin-left:6px}


.rnb-toast{position:fixed;right:18px;bottom:18px;max-width:380px;z-index:1250;}


.rnb-why{display:block;margin-top:6px;color:var(--warn);font-size:11px;line-height:1.5}
.rnb-bk{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 12px;margin:10px 0 4px;border:1px solid var(--ui-line);border-radius:0;font-size:12px}
.rnb-bk span{flex:1;min-width:210px}
.rnb-assist-backup:empty{display:none}
.rnb-backup-panel{margin-top:14px}
.rnb-backup-panel>summary{cursor:pointer;color:var(--gold);font-weight:700}
.rnb-backup-panel[open]>summary{margin-bottom:10px}
.dashboard-main-grid{margin:0 0 16px}
.dashboard-left-column,.dashboard-right-column{display:grid;min-width:0;align-content:start}
.dashboard-left-column>.rnb-assist,.dashboard-left-column>.panel,.dashboard-right-column>.panel{margin:0;min-width:0}
.dashboard-left-column>.rnb-assist{padding:clamp(16px,1.5vw,23px)}
.dashboard-right-column>.dashboard-upcoming #upcoming{max-height:460px;overflow:auto;padding-right:3px}
.dashboard-left-column>.dashboard-floor-preview{align-self:start}
.dashboard-right-column>.dashboard-floor-preview{align-self:start}
.dashboard-main-grid .rnb-assist h2{font-size:19px;letter-spacing:-.02em;margin:0 0 10px}
.dashboard-main-grid .rnb-assist>p{line-height:1.55}
.dashboard-main-grid .booking .actions{gap:7px}
.dashboard-main-grid .dashboard-upcoming .booking{gap:12px}
.dashboard-main-grid .top{min-height:0;margin-bottom:12px;padding-bottom:11px}
.dashboard-main-grid h2{font-size:18px;letter-spacing:-.02em}


#rnbTop{grid-template-columns:minmax(0,1fr);align-items:start;gap:10px;margin:0}
#rnbTop .rnb-live{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:9px}
#rnbTop .rnb-card{padding:13px 15px}
#rnbTop .rnb-card strong{font-size:23px}
#rnbTop .rnb-heat{padding:13px}
.dashboard-overview-row .auto-smart-panel{height:auto;max-height:220px;min-height:0}
.dashboard-main-grid{margin-bottom:0}
.dashboard-left-column,.dashboard-right-column{gap:10px}

.timeline-controls{grid-template-columns:minmax(210px,1fr) minmax(170px,.8fr) auto;}
.timeline-controls>.field{margin:0;min-width:0}
.timeline-controls>.timeline-actions{align-self:end;min-height:38px;max-width:100%;padding-bottom:1px}
.timeline-search{margin:8px 0 12px}
.timeline-scroll{min-height:0}
.timeline-label{padding:9px 10px}

@media(max-width:850px){
 
 .dashboard-right-column{grid-template-columns:1fr}
 .dashboard-right-column>.dashboard-upcoming #upcoming{max-height:380px}
 #rnbTop{grid-template-columns:1fr}
 .timeline-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .timeline-controls>.timeline-actions{grid-column:1/-1;}
 .rnb-live{grid-template-columns:repeat(2,1fr)}
 .dashboard-overview-row .auto-smart-panel{height:auto;max-height:220px}
 .dashboard-overview-meta>.stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:520px){
 .dashboard-overview-meta>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* == css/app/20-theme-and-shared.css == */
/* Refined white and azure palette. */
html{scroll-behavior:smooth;scroll-padding-top:20px}
.app{grid-template-columns:248px minmax(0,1fr);}
aside{position:sticky;top:0;height:100dvh;min-height:0;padding:24px 15px;}
.brand-logo img{box-shadow:0 8px 28px var(--dk-sh1)}
.version{letter-spacing:1.4px}
main{padding:clamp(18px,2.2vw,34px);max-width:1800px;width:100%;margin:0 auto}
.top{min-height:64px;margin-bottom:22px;padding-bottom:14px;}
h1{margin:0 0 5px}
.panel,.stat,.rnb-card{border:1px solid var(--line);border-radius:0}
.stat{margin:0;min-height:88px}
.stat small,.rnb-card small{letter-spacing:.06em;font-weight:600}
.stat strong{letter-spacing:-.04em;margin-top:8px}
.stats{gap:10px}
.btn{border:1px solid var(--ui-line)}

.btn.primary,.btn.reorg-action{font-weight:700}
.field label{font-weight:650;letter-spacing:.035em}
.field input,.field select,.field textarea,.search-field input,td input,td select,td textarea{min-height:42px;padding:10px 13px;border:1px solid var(--ui-line);border-radius:0;background:var(--panel);color:var(--text);transition:border-color .16s,box-shadow .16s,background .16s}
.field input:focus,.field select:focus,.field textarea:focus,.search-field input:focus,td input:focus,td select:focus,td textarea:focus{outline:none;border-color:var(--azure);box-shadow:0 0 0 3px var(--ui-tint);background:var(--panel)}
.duration,.tag,.candidate,.result{border-radius:0}
.candidate,.result{padding:14px}
.candidate.best,.result.best{box-shadow:0 0 0 1px var(--azure)}
.layout{gap:16px}
.table-grid{gap:10px}
.table-card{min-height:84px;padding:15px 9px;border-radius:0;}
.booking{padding:14px 0;align-items:center}
.booking strong{font-size:14px}
.search-field input{border-radius:0}
.date-navigation button.day-shortcut{min-width:34px}
.timeline-scroll{border:1px solid var(--line);border-radius:0}
.timeline-head{border-radius:0}


.timeline-booking:hover{filter:brightness(1.15);z-index:3}
.timeline-area-row{border-radius:0}
.modal-backdrop{-webkit-backdrop-filter:blur(6px);}

:where(#rnbLive) .rnb-card strong{letter-spacing:-.035em}
.auto-smart-panel{border-radius:0}
.reorg-metric,.reorg-change{border-radius:0}
table{border-collapse:separate;border-spacing:0}
th{color:var(--muted);font-weight:650}
td,th{border-color:var(--line)}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--azure);outline-offset:3px}
@media(max-width:850px){
 .app{grid-template-columns:1fr}
 aside{position:fixed;top:auto;bottom:0;left:0;right:0;height:76px;min-height:0;z-index:20;display:flex;flex-direction:row;align-items:center;gap:0;padding:7px 10px calc(7px + env(safe-area-inset-bottom));}
 .brand-logo,aside .version{display:none}
 .nav{display:flex;flex:1;gap:5px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .nav::-webkit-scrollbar{display:none}
 main{padding:20px 20px calc(var(--rnb-bar-h) + 24px + env(safe-area-inset-bottom))}
}
@media(max-width:560px){
 aside{height:72px;padding:6px 7px calc(6px + env(safe-area-inset-bottom))}
 .nav{gap:3px}
 main{padding:14px 12px calc(var(--rnb-bar-h) + 24px + env(safe-area-inset-bottom))}
 .top{margin-bottom:16px;padding-bottom:12px}
 .panel{border-radius:0}
 .stats{gap:8px}
 .dashboard-overview-meta>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rnb-live{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .timeline{min-width:800px}
}

/* Shared control rhythm across dashboard, forms, settings and service calendar. */
button,.btn,.nav button,input[type=button],input[type=submit]/* Shared control rhythm across dashboard,forms,settings and service calendar. */
button,.btn,input[type=button],input[type=submit]{font-family:Inter,"Avenir Next",var(--font-brand),Arial,sans-serif;font-weight:600;line-height:1.15;letter-spacing:.005em;text-align:center;vertical-align:middle}
button:not(.nav button),.btn,input[type=button],input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.btn{flex:0 0 auto}
.btn.small{border-radius:0}
button svg,.btn svg,button .icon,.btn .icon{display:block;flex:0 0 auto;margin-inline:auto}
.actions,.modal-actions,.settings-actions,.settings-tabs,.timeline-actions,.shift-buttons{display:flex;align-items:center;gap:var(--gap-ctl);flex-wrap:nowrap;min-width:0}
.actions,.modal-actions,.settings-actions,.settings-tabs,.timeline-actions{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:var(--ui-line) transparent}
.actions>.btn,.modal-actions>.btn,.settings-actions>.btn,.settings-tabs>.btn,.timeline-actions>.btn,.shift-buttons>.btn{margin:0;flex:0 0 auto}
.modal-actions{justify-content:flex-end}
.panel>.top{margin-bottom:14px;padding-bottom:11px}
.panel>.top>.actions{justify-content:flex-end}
.settings-heading{align-items:center;gap:10px 14px}
.settings-tabs{gap:6px;padding:10px 0 2px;scrollbar-width:thin}
.settings-tabs .btn{min-height:34px;padding:6px 11px;font-size:11px;border-radius:0}
.settings-heading .field{margin:0}
.settings-location select{min-height:36px;padding:7px 10px}
.experience-heading,.service-card-head,.service-date-panel>.top{gap:12px}
.experience-heading .actions,.service-card-head .actions{align-items:center}
.date-navigation{display:flex;align-items:center;margin-top:7px}
.date-navigation input[type=date]{height:35px;border-radius:0;border-color:var(--ui-line);background:var(--panel)}
.date-navigation input[type=date]::-webkit-calendar-picker-indicator{display:none!important;opacity:0!important;width:0!important;height:0!important}
.date-navigation input[type=date]::-webkit-inner-spin-button{display:none!important}
.date-navigation button{flex:0 0 auto;min-width:32px;border:1px solid var(--ui-line);font-weight:650}
.date-navigation button.tomorrow{min-width:43px}
.date-history-controls{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin-top:6px}
.date-history-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:29px;padding:5px 9px;border-radius:0;white-space:nowrap}
.date-history-button span{font-size:15px;line-height:1}
.date-history-button:disabled{cursor:not-allowed;transform:none!important}
.mini-calendar{width:min(290px,calc(100vw - 34px));padding:13px;border-radius:0;}
.mini-calendar-head{gap:8px;margin-bottom:10px}
.mini-calendar-head button{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border-radius:0}
.mini-calendar-grid{gap:3px}
.mini-calendar-grid button{display:inline-flex;align-items:center;justify-content:center;border-radius:0}
.mini-calendar-grid button.selected,.mini-calendar-grid button.selected:hover{background:var(--azure);color:var(--on-accent);border-color:var(--azure)}
.mini-calendar-grid button.is-today{outline:1px solid var(--azure);outline-offset:-2px}
.date-navigation .mini-calendar{z-index:50}
.timeline-actions{gap:var(--gap-ctl)}
.timeline-actions .btn{min-height:34px;padding:6px 9px;font-size:11px}
.service-weekdays,.weekday-options{gap:6px}
.weekday-options label{min-height:30px;padding:5px 8px;border-radius:0;line-height:1.15}
.booking .actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:thin}
.booking .actions .btn{min-height:30px;padding:5px 8px;font-size:10px}



.timeline-booking.followed-by-booking{box-shadow:inset 0 0 0 1px var(--panel)}
.stats,.form-grid,.layout{align-items:stretch}
.panel,.stat{margin-bottom:14px}
@media(max-width:850px){
 .settings-tabs{grid-column:1/-1}
 .actions,.modal-actions,.settings-actions,.timeline-actions{gap:var(--gap-ctl)}
 .settings-tabs{gap:6px}
 
}
@media(max-width:560px){
 
 .settings-tabs .btn{min-height:32px;padding:5px 9px;font-size:10px}
 .date-navigation input[type=date]{font-size:11px}
 .date-navigation button{min-width:28px;}
 .date-navigation button.tomorrow{min-width:38px}
 .booking .actions{justify-content:flex-start}
}
@media(max-width:540px){
 .timeline-controls{grid-template-columns:1fr}
 .timeline-controls>.timeline-actions{grid-column:1;}
 .timeline-controls>.timeline-actions .btn{font-size:10px;padding:5px 7px}
 #rnbTop{gap:10px}
 #rnbTop .rnb-live{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Dashboard alignment fixes guided by the marked screenshot. */
.dashboard-overview-row{gap:12px;align-items:stretch;margin-bottom:12px}
.dashboard-overview-row>.auto-smart-panel{align-self:stretch;width:100%;height:100%;max-height:none;min-height:100%;overflow:auto}
.dashboard-overview-meta>#rnbLive{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 0}
.dashboard-overview-meta>#rnbLive .rnb-card{padding:9px 11px;border-radius:0}
.dashboard-overview-meta>#rnbLive .rnb-card small{font-size:10px;letter-spacing:.04em}
.dashboard-overview-meta>#rnbLive .rnb-card strong{font-size:16px;margin:5px 0 2px}
.dashboard-overview-meta>#rnbLive .rnb-card span{font-size:10px;line-height:1.35}
#rnbTop{display:block}
#rnbTop .rnb-heat{margin:0;min-width:0}
@media(max-width:850px){
 .dashboard-overview-row{align-items:stretch}
 .dashboard-overview-row>.auto-smart-panel{height:auto;min-height:0;max-height:none}
 .dashboard-overview-meta>#rnbLive{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.rnb-heat{padding:18px 20px}
.rnb-heat h2{font-size:18px;margin-bottom:14px}
.rnb-heat h2 small{font-size:11px}
.rnb-shift{margin:14px 0 18px}
.rnb-cells{gap:3px;margin-top:9px}
.rnb-cell{height:44px;}

.rnb-labels{gap:3px;margin-top:5px}
.rnb-labels span{font-size:11px}
@media(max-width:560px){
 .rnb-heat{padding:14px}
 .rnb-cell{height:34px}
 .rnb-labels span{font-size:9px}
}
.rnb-assist h2{margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.timeline-head,.timeline-row{grid-template-columns:200px minmax(0,1fr)!important}
.timeline-table-label{flex-wrap:nowrap}
.timeline-table-label>span{min-width:0;flex:1 0 auto;white-space:nowrap}
.timeline-table-label .btn{flex:0 0 auto;white-space:nowrap}
.timeline-label{white-space:nowrap}
@media(max-width:560px){
 .timeline-head,.timeline-row{grid-template-columns:190px minmax(0,1fr)!important}
}

/* White and azure application theme */
/* Design tokens moved to css/app/00-design-tokens.css (v4). */
body{color:var(--text)!important}
aside{border-color:var(--line)!important;}
.version,.stat small,.rnb-card small{color:var(--muted)!important}
.top{border-color:var(--line)!important}
.panel,.stat,.rnb-card,.auto-smart-panel,.rnb-assist,.dashboard-floor-slice,.rnb-bk,.candidate,.result,.service-card,.table-card,.timeline-scroll,.timeline-head,.timeline-label,.timeline-area-row{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:0 6px 20px var(--dk-sh6)!important}
.field label,.service-enabled,.booking small{color:var(--muted)!important}
.muted,.sub,.service-weekdays>strong{color:var(--muted)!important}
.btn{color:var(--control-text)!important;border-color:var(--control-border)!important}
.btn:not(:disabled):hover{border-color:var(--azure)!important;color:var(--azure-ink)!important;background:var(--ui-tint)!important}
.date-navigation button,.mini-calendar,.mini-calendar-grid button,.reorg-metric,.reorg-change,.service-weekdays label{background:var(--panel2)!important;color:var(--control-text)!important;border-color:var(--line)!important}
.date-navigation button:hover,.mini-calendar-grid button:hover{background:var(--ui-tint)!important;border-color:var(--azure)!important;color:var(--azure-ink)!important}
.date-history-button:disabled{opacity:.45!important}
.reservation-import-panel{padding:0!important;overflow:hidden}
.reservation-import-panel>summary{cursor:pointer;list-style:none;color:var(--azure-ink);font-weight:700}
.reservation-import-panel>summary::-webkit-details-marker{display:none}
.reservation-import-panel>summary:after{content:"＋";margin-left:auto;color:var(--azure-ink);font-size:17px}
.reservation-import-panel[open]>summary:after{content:"−"}


.timeline-booking,.timeline-table-label .btn{background:var(--ui-tint)!important;color:var(--ui-tint-ink)!important;border-color:var(--azure)!important}
.timeline-booking.followed-by-booking{border-color:var(--azure-ink)!important}
.timeline-window,.free,.rnb-cell{border-color:var(--azure)!important}
.timeline-window:before{background:var(--azure)!important}
.timeline-label,.timeline-area-row span,.timeline-booking small{color:var(--muted)!important}
.tag,.tag.red{background:var(--ui-tint)!important;color:var(--ui-tint-ink)!important;border-color:var(--ui-line)!important}
.tag.red{color:var(--ui-tint-ink)!important}
.notice{background:var(--box-bg-2,var(--panel2))!important;border:1px solid var(--box-line,var(--line))!important;border-radius:0!important;color:var(--text)!important}
.notice.error,.notice.is-error,.notice.bad{border-left:4px solid var(--bad)!important}
.notice.ok,.notice.is-ok{border-left:4px solid var(--ok)!important}
.notice.warn,.notice.is-warn{border-left:4px solid var(--warn)!important}


.candidate.best,.result.best{background:var(--ui-tint)!important;border-color:var(--azure)!important}
.timeline-track-blocked{background:repeating-linear-gradient(135deg,var(--panel2),var(--panel2) 8px,var(--ui-tint) 8px,var(--ui-tint) 16px)!important}
.table-card.table-card-blocked{border-color:var(--azure-ink)!important;box-shadow:0 0 0 2px var(--ui-tint)!important}
.timeline-track{border-color:var(--line)!important}


.dashboard-system-actions,.rnb-assist h2,.modal-actions{border-color:var(--line)!important}
.smart-log-row,.booking{border-color:var(--line)!important}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline-color:var(--azure)!important}


/* Clear, readable typography with a modern system sans */
/* Design tokens moved to css/app/00-design-tokens.css (v4). */
html{font-size:15px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body,*{font-family:"Segoe UI Variable","Segoe UI",system-ui,-apple-system,sans-serif!important}
body{font-size:15px!important;line-height:1.5!important;letter-spacing:0!important}
h1{font-size:30px!important;line-height:1.2!important;letter-spacing:-.025em!important;font-weight:700!important}
h2{font-size:21px!important;line-height:1.3!important;letter-spacing:-.015em!important;font-weight:650!important}
h3{font-size:16px!important;line-height:1.35!important;font-weight:650!important}
p,.muted,.sub{font-size:14px!important;line-height:1.5!important}
label,.field label,.service-weekdays>strong{font-size:13px!important;line-height:1.4!important}
th,td,.booking small,.timeline-label,.timeline-area-row span,.tag,.stat small,.rnb-card small,.date-history-button,.date-navigation button,.mini-calendar-grid button{font-size:12px!important;line-height:1.4!important}
.stat strong,:where(#rnbLive) .rnb-card strong{font-size:26px!important;line-height:1.15!important}








/* Keep Floor Plan filters in a single aligned row; table cards remain untouched. */
#floorPage #floorAvailabilityFilter{width:100%;min-width:0}


.reservation-import-panel>summary{letter-spacing:.01em}


.app-confirm-backdrop{z-index:1200!important;background:var(--veil)!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.app-confirm-modal{width:min(480px,100%)!important}
.app-confirm-message{color:var(--muted);line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.app-toast-region{position:fixed;z-index:1250;top:18px;right:18px;display:grid;gap:9px;width:min(430px,calc(100vw - 36px));pointer-events:none}
.app-toast,.rnb-toast{padding:13px 16px;border:1px solid var(--line);border-left:4px solid var(--azure);border-radius:0;background:var(--panel);color:var(--text);box-shadow:var(--sh-md);font-size:14px;line-height:1.45;opacity:1;transform:translateY(0);transition:opacity .2s,transform .2s}
.app-toast.dismissed{opacity:0;transform:translateY(-5px)}
@media(max-width:560px){
 .app-confirm-backdrop{align-items:center!important;padding:14px!important}
 .app-toast-region{top:10px;right:10px;width:calc(100vw - 20px)}
}

/* Stable assistant controls and readable quick-entry text */
@media(max-width:760px){
 .rnb-area-preferences{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){
 .rnb-area-preferences{grid-template-columns:minmax(0,1fr)}
}

/* Shared controls: one light style, three button variants */
*,*::before,*::after{text-shadow:none!important}
:is(button,input[type=button],input[type=submit],input[type=reset],.btn,.nav button,.table-lock-action,.date-navigation button,.mini-calendar-grid button,.rnb-seg button){border:1px solid var(--control-border)!important;border-radius:0!important;background:var(--control-fill)!important;color:var(--control-text)!important;font-family:inherit!important;font-weight:600!important;box-shadow:none!important;text-shadow:none!important;transition:background-color .16s,border-color .16s,color .16s!important;transform:none!important}
:is(button,input[type=button],input[type=submit],input[type=reset],.btn,.nav button,.table-lock-action,.date-navigation button,.mini-calendar-grid button,.rnb-seg button):not(:disabled):hover{background:var(--ui-tint)!important;border-color:var(--gold)!important;color:var(--azure-ink)!important;transform:none!important;box-shadow:none!important}
:is(button,input[type=button],input[type=submit],input[type=reset],.btn):disabled{opacity:.48;cursor:not-allowed;box-shadow:none!important}
input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=button],[type=submit],[type=reset]),select,textarea{min-height:38px;padding:8px 10px;border:1px solid var(--control-border)!important;border-radius:0!important;background:var(--control-bg)!important;color:var(--control-text)!important;font-family:inherit!important;font-size:13px!important;line-height:1.35!important;box-shadow:none!important;transition:background-color .16s,border-color .16s,color .16s!important}
input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=button],[type=submit],[type=reset]):focus,select:focus,textarea:focus{outline:0!important;border-color:var(--gold)!important;box-shadow:0 0 0 3px var(--ui-tint)!important;background:var(--panel)!important}
input[type=file]::file-selector-button{margin-right:8px;padding:6px 10px;border:1px solid var(--control-border);border-radius:0;background:var(--control-fill);color:var(--control-text);font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer}
input[type=checkbox],input[type=radio]{accent-color:var(--gold)!important}
input[type=range]{accent-color:var(--gold)!important}
.btn{font-size:13px!important;line-height:1.25!important}
.btn.small{min-height:32px!important;padding:5px 9px!important;font-size:12px!important}
.btn.primary,.btn.reorg-action,.date-navigation button.today,.date-navigation button.day-shortcut,.mini-calendar-grid button.selected{background:var(--gold)!important;border-color:var(--gold)!important;color:var(--on-accent)!important}
.btn.primary:not(:disabled):hover,.btn.reorg-action:not(:disabled):hover,.date-navigation button.today:not(:disabled):hover,.date-navigation button.day-shortcut:not(:disabled):hover,.mini-calendar-grid button.selected:not(:disabled):hover{background:var(--azure-ink)!important;border-color:var(--azure-ink)!important;color:var(--on-accent)!important}
.date-navigation button{min-height:31px!important;padding:4px 8px!important}
.date-navigation input[type=date]{min-height:34px!important;padding:5px 27px 5px 8px!important}
.mini-calendar-grid button{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important}
.field textarea,textarea{min-height:72px}

/* Regular spacing and compact, centered dialogs */
.panel,.stat,.rnb-card,.auto-smart-panel,.rnb-assist,.dashboard-floor-slice,.service-card{padding:16px!important}
.modal,.app-confirm-modal{padding:20px!important}
.panel>.top,.service-card-head,.experience-heading,.modal-actions{gap:10px!important}
.form-grid{gap:var(--gap-row) var(--gap-field)!important;}
.field{margin-bottom:var(--gap-row)!important}
.field label{margin-bottom:0!important}
.btn{padding:8px 12px!important}
.modal-backdrop{padding:14px!important}
.modal,.app-confirm-modal{width:min(720px,100%);max-height:calc(100vh - 28px);overflow:auto;margin:auto!important;border-radius:0!important}
.modal>h2,.app-confirm-modal h2{margin:0 0 16px!important;padding-bottom:12px;border-bottom:var(--sep,1px solid var(--line));color:var(--text)}
.modal>p,.app-confirm-modal p{text-align:left}
html body .modal>h2:not(#_),html body .app-confirm-modal h2:not(#_){font-size:16px!important;font-weight:650!important;line-height:1.3!important;text-align:left!important}
.modal>.actions,.modal .modal-actions,.app-confirm-modal .modal-actions{justify-content:space-between!important}
.modal>.actions>:last-child,.modal .modal-actions>:last-child,.app-confirm-modal .modal-actions>:last-child{margin-left:auto!important}
@media(max-width:560px){
 .panel,.stat,.rnb-card,.auto-smart-panel,.rnb-assist,.dashboard-floor-slice,.service-card,.modal,.app-confirm-modal{padding:12px!important}
 .modal-backdrop{padding:8px!important}
 .modal,.app-confirm-modal{max-height:calc(100vh - 16px)}
}

.reorg-change.experience-change{background:var(--box-bg)!important;border-color:var(--box-line)!important;border-left-color:var(--bad)!important}
.vip-tag{color:var(--bad)!important}
.booking.vip-booking{border:1px solid var(--bad)!important;border-left:4px solid var(--bad)!important;background:var(--box-bg)!important}
.booking.vip-booking strong,.booking.vip-booking small{color:var(--text)!important}
.tag.vip-tag{display:inline-flex;margin-left:6px;padding:2px 7px;border:1px solid var(--bad)!important;border-radius:999px;background:var(--box-bg)!important;color:var(--bad)!important;font-weight:800}
.timeline-booking.vip-booking,.timeline-booking.followed-by-booking.vip-booking{font-weight:800}
main>.top{position:relative;top:auto;z-index:auto;padding-top:8px}
#settingsPage .settings-tabs{grid-column:1/-1}
#headerContextActions{flex:0 0 auto;overflow:visible!important;max-width:64%}
#headerContextActions .global-location{display:grid;grid-template-columns:1fr;gap:3px;width:min(260px,36vw);min-width:190px;margin:0}
#headerContextActions .global-location label{margin:0;color:var(--muted)!important;font-size:11px!important;line-height:1.2}
#headerContextActions .global-location select{width:100%;min-width:0;min-height:36px;padding:6px 30px 6px 10px;background:var(--panel)!important;color:var(--text)!important;border-color:var(--control-border)!important}
.settings-actions.hidden{display:none!important}
@media(max-width:850px){
 #settingsPage .settings-heading{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:560px){
 main>.top{align-items:flex-start;gap:8px}
 
 #headerContextActions .global-location{}
 #headerContextActions .global-location select{font-size:11px!important;padding:5px 22px 5px 7px}
}


/* == css/app/30-polish-layer.css == */
/* ===== polish.css ===== */

/* Livello estetico vetro azzurro (prima dentro js/ui-layer.js) */
/* Design tokens moved to css/app/00-design-tokens.css (v4). */

::selection{background:var(--ui-tint)}
*{scrollbar-width:thin;scrollbar-color:var(--ui-line-hover) transparent}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-thumb{background:var(--ui-line-hover);border-radius:0;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:var(--muted);background-clip:padding-box;border:2px solid transparent}

/* Sidebar traslucida */
body aside{background:var(--panel)!important;border-right:1px solid var(--glass-edge)!important;box-shadow:6px 0 34px var(--dk-sh7)!important}

/* Superfici di vetro */
body :is(.panel,.stat,.rnb-card,.rnb-assist,.auto-smart-panel,.rnb-arrivals,.dashboard-floor-slice,.service-card,.rnb-proposal-group,.table-config-chip,.booking-timeline-item>.booking,.timeline-scroll){background:var(--glass)!important;border:1px solid var(--glass-edge)!important;outline:1px solid var(--line);outline-offset:-1px;box-shadow:var(--sh-md)!important}
body :is(.panel,.stat,.rnb-card,.booking-timeline-item>.booking){transition:box-shadow .2s,transform .2s,border-color .2s}
body :is(.stat,.rnb-card):hover{transform:none!important}
body .stat strong,body :where(#rnbLive) .rnb-card.clock strong{background:linear-gradient(135deg,var(--azure-ink),var(--azure-2));-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}
body :where(#rnbLive) .rnb-card.alert{border-color:var(--bad)!important;background:var(--box-bg)!important}
body :where(#rnbLive) .rnb-card.alert strong{background:none;-webkit-text-fill-color:var(--bad);color:var(--bad)!important}
body .top{border-bottom:1px solid var(--line)!important}

body h1{background:linear-gradient(135deg,var(--text) 30%,var(--azure-ink));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* Pulsanti */
body .btn:not(:disabled):hover{transform:translateY(-1px)!important;box-shadow:var(--sh-sm)!important}
body .btn:not(:disabled):active{transform:translateY(0)!important;box-shadow:none!important}
body .btn{background:var(--panel)!important;}
body :is(.btn.primary,.btn.reorg-action,.rnb-assist-reorganize,.rnb-seg button.on,.date-navigation button.today,.date-navigation button.day-shortcut,.mini-calendar-grid button.selected){background:var(--azure)!important;border-color:var(--azure)!important;color:var(--on-accent)!important}
body :is(.btn.primary,.btn.reorg-action,.rnb-assist-reorganize):not(:disabled):hover{background:var(--azure-ink)!important;box-shadow:var(--sh-sm)!important;color:var(--on-accent)!important}
body .btn.small,body .btn{transition:transform .16s,box-shadow .16s,background-color .16s,border-color .16s,color .16s!important}

/* Campi */
body :is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=button],[type=submit],[type=reset]),select,textarea){background:var(--panel)!important;}
body :is(input,select,textarea):focus{background:var(--panel)!important;box-shadow:0 0 0 4px var(--ui-tint)!important}
body .rnb-chip{background:var(--ui-tint)!important;color:var(--azure-ink)!important;border:1px solid var(--ui-line)}
body .rnb-chip.warn{background:var(--box-bg-2)!important;color:var(--warn)!important;border-color:var(--ui-line)}

/* Modali: vetro + blur forte */
body .modal-backdrop{background:var(--veil)!important;backdrop-filter:blur(9px) saturate(120%);-webkit-backdrop-filter:blur(9px) saturate(120%);}
body :is(.modal,.app-confirm-modal,.rnb-pal){background:var(--panel)!important;border:1px solid var(--line)!important;box-shadow:var(--sh-lg)!important}

body :is(.app-toast,.rnb-toast){background:var(--glass-strong)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--glass-edge)!important;border-left:4px solid var(--azure)!important;color:var(--ink)!important;box-shadow:var(--sh-md)!important}
body .mini-calendar{background:var(--glass-strong)!important;box-shadow:var(--sh-lg)!important}

/* Floor plan: tavoli e stati leggibili */
body .table-card{background:var(--glass)!important;border:1px solid var(--glass-edge)!important;box-shadow:var(--sh-sm)!important;transition:transform .18s,box-shadow .18s,border-color .18s!important}

body .table-card.table-card-blocked{background:var(--azure)!important;color:var(--on-accent)!important}
body .table-card-blocked small{color:var(--on-accent)!important}
body .free{background:var(--ok)!important}
body .busy{background:var(--bad)!important}
body .dot.soon{background:var(--warn)!important;box-shadow:0 0 0 3px var(--ui-tint)!important}
body .dot.over{background:var(--bad)!important;box-shadow:0 0 0 3px var(--ui-tint)!important}







/* Heatmap: i colori fissi var(--azure) azzeravano l'intensità per cella → ripristino la gradazione */
body .rnb-cell{background:linear-gradient(180deg,rgba(42,163,230,calc(.08 + var(--p)*.85)),rgba(31,111,139,calc(.10 + var(--p)*.85)))!important;border:1px solid var(--line)!important;border-radius:0;transition:transform .15s}
body .rnb-cell:hover{transform:scaleY(1.08)}
body .rnb-cell.hot{border-color:var(--bad)!important;box-shadow:inset 0 0 0 1px var(--bad)!important}
body .rnb-cell.now{outline:2px solid var(--ink)!important;outline-offset:2px}

/* Pallini di stato prenotazione: distinguibili di nuovo */
body .rnb-dot{background:var(--muted)!important}
body .rnb-dot.Expected{background:var(--muted)!important}
body .rnb-dot.Reconfirmed{background:var(--azure)!important}
body .rnb-dot.Arrived{background:var(--warn)!important}
body .rnb-dot.Seated{background:var(--ok)!important}
body .rnb-dot.Finished{background:var(--ui-line-hover)!important}
body .rnb-dot.No-show,body .rnb-dot.Cancelled{background:var(--bad)!important;box-shadow:none!important}
body .rnb-dot.Walk-in{background:var(--violet)!important}

/* Timeline */
body .timeline-head{background:var(--panel)!important;}
body .timeline-track::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:repeating-linear-gradient(to right,transparent 0 calc(var(--timeline-step) - 1px),var(--line) calc(var(--timeline-step) - 1px) var(--timeline-step))}
body .timeline-booking{height:var(--tlb-h,42px)!important;display:flex;align-items:center;box-sizing:border-box;padding:4px 7px!important;line-height:1.2!important}
body .timeline-row{min-height:58px!important}
body .timeline-booking{top:var(--tlb-top,8px)!important}
body .timeline-booking{background:var(--ui-tint)!important;border:1px solid var(--azure)!important;border-radius:0!important;box-shadow:var(--sh-sm)!important;transition:transform .15s,box-shadow .15s,filter .15s}

body .timeline-booking.followed-by-booking{background:var(--azure)!important;color:var(--on-accent)!important}
body .timeline-booking.vip-booking,body .timeline-booking.followed-by-booking.vip-booking{background:var(--bad)!important;border-color:var(--bad)!important;color:var(--on-accent)!important}
body .timeline-booking.timeline-preview-change{background:var(--ui-tint)!important;border:2px dashed var(--azure)!important;color:var(--ui-tint-ink)!important}
body .timeline-booking.selected{outline:2px solid var(--ok)!important}
body .timeline-window{background:var(--ui-tint)!important;border-left:1px solid var(--azure)!important}
body .timeline-area-row{background:var(--ui-tint)!important;color:var(--azure-ink)!important}


/* Animazioni leggere */
@keyframes rnbFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes rnbPop{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@keyframes rnbToast{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
main>section:not(.hidden){animation:rnbFade .28s ease both}
.modal-backdrop[style*="flex"] .modal{animation:rnbPop .22s cubic-bezier(.2,.8,.2,1) both}
.app-toast,.rnb-toast{animation:rnbToast .25s ease both}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important}
}

/* Mobile: barra di navigazione in basso, più vetro */
@media(max-width:850px){
 body aside{background:var(--panel)!important;border-top:1px solid var(--glass-edge)!important;border-right:0!important;box-shadow:0 -8px 28px var(--dk-sh8)!important}
 body .nav button.active{box-shadow:inset 0 -3px 0 var(--azure)!important}
}



/* == css/app/40-uniform-base.css == */
/* ===== uniform.css ===== */

/* ===== v1.7 · uniformità di design: un solo ritmo per controlli, griglie e pannelli ===== */
/* Design tokens moved to css/app/00-design-tokens.css (v4). */

/* controlli: stessa altezza e raggio ovunque */
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),body select{height:var(--ctl-h)!important;min-height:var(--ctl-h)!important;box-sizing:border-box;border-radius:0}
body textarea{min-height:88px;box-sizing:border-box;resize:vertical}
body .btn,body .shift-buttons .btn,body .date-navigation button{min-height:var(--ctl-h);height:var(--ctl-h);box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;line-height:1;border-radius:0}
body .btn.small,body .booking .btn{min-height:32px;height:32px;padding:0 11px}

/* campi: etichetta sempre sopra, spaziatura costante, niente colonne che si schiacciano */
body .form-grid{align-items:end}
body .field{margin:0}
body .field>label{min-height:16px;line-height:16px}
body .field>.date-navigation,body .field>.shift-buttons{margin:0}
body .date-navigation{flex-wrap:wrap;max-width:100%}
body .date-navigation input[type=date]{flex:1 1 130px;width:auto;min-width:118px;max-width:150px}
body .shift-buttons{flex-wrap:wrap}
body .shift-buttons .btn{min-width:84px}

/* barre filtri: a capo ordinato invece di sovrapporsi */
body .timeline-controls,body .floor-controls,body .revenue-inputs{display:flex!important;flex-wrap:wrap;gap:var(--gap-row) var(--gap-field);align-items:flex-end;max-width:none}
body .timeline-controls>.field,body .floor-controls>.field,body .revenue-inputs>.field{flex:0 0 auto}
body .floor-controls>.field:last-child{flex:1 1 220px;min-width:200px}
body .timeline-controls>.timeline-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}

/* intestazioni di pannello: i pulsanti vanno a capo, non vengono tagliati */
body .panel>.top,body .modal>.top{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-start;justify-content:space-between}
body .panel>.top .actions,body .panel>.top>.actions{flex-wrap:wrap}

/* durata automatica: stesso tema chiaro degli altri campi */
body .duration{height:var(--ctl-h);display:flex;align-items:center;padding:0 12px;box-sizing:border-box;border-radius:0;background:color-mix(in srgb,var(--azure) 8%,transparent);border:1px solid color-mix(in srgb,var(--azure) 28%,transparent);color:var(--azure-ink);font-weight:700}

/* card statistiche: stessa altezza, testo lungo a capo anziché troncato */
body .rnb-live,body #rnbTop .rnb-live{align-items:stretch}
body :where(#rnbLive) .rnb-card strong{white-space:normal;font-size:clamp(17px,1.9vw,23px);line-height:1.15;overflow-wrap:anywhere}
body .stats .stat{display:flex;flex-direction:column;justify-content:flex-start}

/* timeline: etichette orarie leggibili sopra le linee guida */
body .timeline-hours span{background:var(--panel,#fff);padding:0 5px;border-radius:0;z-index:1}

/* mobile: la barra in basso non copre più i contenuti */
@media(max-width:850px){
 body{padding-bottom:88px}
 body .timeline-controls>.field,body .floor-controls>.field,body .revenue-inputs>.field{flex:1 1 100%}
 body .timeline-controls>.timeline-actions{margin-left:0;justify-content:flex-start}
}

/* nei moduli la barra data è più compatta per stare su una riga */
body .modal .date-navigation button{min-width:28px;padding:0 6px}
body .modal .date-navigation input[type=date]{flex:1 1 108px;min-width:100px}
@media(max-width:540px){
 body .date-navigation button{min-width:28px;}
 body .date-navigation input[type=date]{flex:1 1 100px;min-width:96px}
}
body .actions>.btn,body .rnb-card .btn{white-space:nowrap}

/* ---- v1.8 ---- */
body #headerContextActions{align-items:flex-start!important}
body #headerContextActions>.timeline-import-shortcut{margin-top:24px}
body .timeline-import-shortcut{height:var(--ctl-h)!important;min-height:var(--ctl-h)!important;padding:0 14px!important;display:inline-flex!important;align-items:center;gap:7px;font-size:13px!important}
.ico{flex:0 0 auto;display:block}
body .date-navigation button.today{min-width:36px;padding:0 8px}
body .date-navigation button .ico{width:16px;height:16px}

/* slider criteri: i 4 punti sono centrati sulle 4 etichette */
.timeline-criterion-slider{-webkit-appearance:none;appearance:none;background:transparent;height:24px;width:calc(75% + 18px);margin:0 0 0 calc(12.5% - 9px)!important}
.timeline-criterion-slider::-webkit-slider-runnable-track{height:6px;border-radius:0;background:linear-gradient(90deg,var(--ui-tint),var(--azure))}
.timeline-criterion-slider::-moz-range-track{height:6px;border-radius:0;background:linear-gradient(90deg,var(--ui-tint),var(--azure))}
.timeline-criterion-slider::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border-radius:50%;background:var(--azure);border:3px solid var(--panel);box-shadow:var(--sh-sm)}
.timeline-criterion-slider::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:var(--azure);border:3px solid var(--panel);box-shadow:var(--sh-sm)}
body .timeline-criterion-stops{grid-template-columns:repeat(4,1fr);gap:0}
body button.timeline-criterion-stop{border:0!important;background:transparent!important;box-shadow:none!important;height:auto!important;min-height:26px!important;padding:4px 2px!important;font:inherit;font-size:11px!important;line-height:1.2;color:var(--muted)!important;cursor:pointer;border-radius:0!important;white-space:normal!important}
body button.timeline-criterion-stop:hover{background:var(--ui-tint)!important}
body button.timeline-criterion-stop.active{background:var(--ui-tint)!important;color:var(--ui-tint-ink)!important;font-weight:800}

/* popup prenotazione / trova tavolo */
.modal-head{margin:0 0 14px}
.modal-head h2{margin:0 0 3px;text-align:left!important;font-size:20px}
.modal-head p{margin:0;font-size:13px}


#bookingModal .modal-actions,#hypModal .modal-actions{position:sticky;bottom:-20px;margin:14px -20px -20px;padding:16px 20px;background:var(--panel);justify-content:flex-end;border-radius:0}
#hypSearchButton{width:100%;margin-top:12px}
@media(max-width:540px){
 #bookingModal .modal,#hypModal .modal{padding:16px}
 #bookingModal .modal-actions,#hypModal .modal-actions{margin:12px -16px -16px;padding:12px 16px;bottom:-16px}
}
.revenue-cover-summary{margin-top:14px}
.revenue-cover-summary:first-child{margin-top:0}
@media(max-width:700px){
 body #headerContextActions>.timeline-import-shortcut{margin-top:22px}
}
.hyp-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:0 0 auto}
.hyp-side .btn{height:32px;min-height:32px;padding:0 14px}

/* ---- dashboard interattiva ---- */
.dash-click{cursor:pointer;transition:transform .15s,box-shadow .15s,outline-color .15s}

.dash-click:focus-visible{outline:2px solid var(--azure);outline-offset:2px}
#dashboardPage .stat.dash-click,#dashboardPage .rnb-card.dash-click{position:relative}
#dashboardPage .stat.dash-click::after,#dashboardPage .rnb-card.dash-click::after{content:"›";position:absolute;top:8px;right:12px;color:var(--azure-ink);font-weight:800;font-size:18px;opacity:.55}
#dashboardPage .rnb-cell.dash-click:hover{transform:none;box-shadow:none;outline:2px solid var(--azure)}
#dashboardPage .dashboard-floor-slice.dash-click:hover{transform:none}
.dash-modal{width:min(720px,100%)!important;padding:22px 24px}
.dash-chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.dash-chip{padding:9px 14px;border-radius:0;background:var(--ui-tint);min-width:96px}
.dash-chip small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.dash-chip strong{font-size:20px;color:var(--azure-ink)}
.dash-h{margin:18px 0 8px;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--azure-ink)}
.dash-rows{display:grid;gap:6px}
.dash-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 12px;border-radius:0;border:1px solid var(--line);background:var(--panel);cursor:pointer;font:inherit;color:inherit;height:auto!important;min-height:0!important;white-space:normal!important}
.dash-row.static{cursor:default}

.dash-row>b{min-width:48px;color:var(--azure-ink)}
.dash-row>span{flex:1;min-width:0}
.dash-row>span strong{display:block}
.dash-row small{display:block;color:var(--muted);font-size:12px;line-height:1.4}
.dash-bar{display:grid;grid-template-columns:150px 1fr 90px;gap:10px;align-items:center;margin:6px 0;font-size:13px}
.dash-bar>div{height:8px;border-radius:0;background:var(--ui-tint);overflow:hidden}
.dash-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--azure-2),var(--azure))}
.dash-bar b{text-align:right}
.dash-tags{display:flex;flex-wrap:wrap;gap:6px}
.dash-tag{padding:6px 10px;border-radius:0;background:var(--ui-tint);font-size:12px}
.dash-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
@media(max-width:540px){
 .dash-bar{grid-template-columns:96px 1fr 70px}
 .dash-modal{padding:16px}
}

/* ---- walk-in ---- */
.tag.walkin-tag{background:var(--box-bg)!important;color:var(--warn)!important;border:1px solid var(--warn)!important}
.booking.walkin-booking{border-left:3px solid var(--warn)}
body .timeline-booking.walkin-booking{background:var(--box-bg)!important;border:1px dashed var(--warn)!important;color:var(--text)!important;box-shadow:none!important}
.revenue-line.walkin-line{background:var(--box-bg);border-radius:0;padding-left:8px;padding-right:8px;color:var(--text)}
.type-filter{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}

/* ---- accesso ---- */
#loginGate{position:fixed;inset:0;z-index:100;padding:20px;background:var(--bg)}
.login-card{width:min(400px,100%);display:grid;gap:14px;padding:30px 28px;border-radius:0;background:var(--panel);box-shadow:var(--sh-lg);border:1px solid var(--line)}
.login-card img{width:120px;height:auto;margin:0 auto;border-radius:0;background:var(--dk-bg1)}
.login-card h1{margin:4px 0 0;font-size:24px;text-align:center}
.login-card>p{margin:0;text-align:center}
.login-card .field{margin:0}
.login-keep{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.login-error{min-height:18px;color:var(--bad);font-size:13px;text-align:center}
.login-submit{width:100%;height:42px}
.login-note{text-align:center;color:var(--muted)}
body #headerContextActions>.account-btn,body #headerContextActions>.settings-gear{margin-top:24px;height:var(--ctl-h)!important;min-height:var(--ctl-h)!important;padding:0 14px!important;display:inline-flex!important;align-items:center;gap:7px;font-size:13px!important}
@media(max-width:700px){
 body #headerContextActions>.account-btn,body #headerContextActions>.settings-gear{margin-top:22px}
}

/* ===== v1.9: griglia dashboard allineata, prossimi arrivi, importatore ===== */
body .dashboard-main-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-auto-rows:auto;gap:16px!important;align-items:stretch!important}
body .dashboard-main-grid>*{margin:0!important;min-width:0}
body .dashboard-main-grid>.rnb-assist{padding:clamp(16px,1.5vw,22px)}
body .dashboard-upcoming #upcoming{max-height:460px;overflow:auto}
body .dashboard-main-grid>.dashboard-floor-preview,body .dashboard-main-grid>#rnbTop{display:flex;flex-direction:column}
body .dashboard-floor-preview .dashboard-floor-quick{flex:1}
@media(max-width:1180px){
 body .dashboard-main-grid{grid-template-columns:1fr!important}
 
 body .dashboard-overview-row .auto-smart-panel{height:auto!important;min-height:0!important;max-height:240px!important}
 body .dashboard-upcoming #upcoming{max-height:440px!important;overflow:auto}
}

/* card prossimi arrivi */
.dashboard-upcoming .top{padding-bottom:12px;border-bottom:1px solid var(--panel2);margin-bottom:10px}
.dashboard-upcoming #upcoming{display:flex;flex-direction:column;gap:8px;padding:2px 3px 2px 0}
.up-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--ui-tint);border-left:4px solid var(--azure);border-radius:0;background:var(--panel);box-shadow:var(--sh-sm);transition:box-shadow .15s,transform .15s}

.up-card.soon{border-left-color:var(--warn)}
.up-card.late{border-left-color:var(--bad)}
.up-card.is-walkin{border-left-color:var(--violet)}
.up-card.is-done{opacity:.55;border-left-color:var(--line);background:var(--panel2)}
.up-time{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 4px;border-radius:0;background:var(--ui-tint);color:var(--azure-ink);text-align:center}
.up-time b{font-size:17px;line-height:1.1;font-weight:800;letter-spacing:-.01em}
.up-time small{font-size:10.5px;font-weight:700;color:var(--muted);white-space:nowrap}
.up-card.soon .up-time{background:var(--box-bg-2);color:var(--warn)}
.up-card.soon .up-time small{color:var(--warn)}
.up-card.late .up-time{background:var(--box-bg-2);color:var(--bad)}
.up-card.late .up-time small{color:var(--bad)}
.up-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.up-main strong{font-size:14.5px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up-meta{font-size:12px;color:var(--muted)}
.up-tags{display:flex;flex-wrap:wrap;gap:4px}
.up-tags .tag{margin:0;padding:2px 7px}
.up-side{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.up-side .rnb-tbl{margin:0;font-weight:800}
.up-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.up-actions .btn.small{padding:6px 11px;font-size:12px;white-space:nowrap}
.up-more-actions{position:relative;flex:none}
.up-more-actions>summary{display:flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border:1px solid var(--box-line,var(--ui-tint));border-radius:0;background:var(--box-bg);color:var(--muted);font-size:12px;font-weight:650;list-style:none;cursor:pointer;user-select:none}
.up-more-actions>summary::-webkit-details-marker{display:none}
.up-more-actions>summary::after{content:"⌄";margin-left:5px}
.up-more-actions[open]>summary::after{content:"⌃"}
.up-more-list{position:absolute;top:calc(100% + 5px);right:0;z-index:5;display:flex;flex-direction:column;gap:4px;min-width:150px;padding:5px;border:1px solid var(--box-line,var(--ui-tint));border-radius:0;background:var(--box-bg);box-shadow:var(--sh-md)}
.up-more-list .btn{width:100%;justify-content:flex-start;text-align:left}
.up-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:34px 16px;border:1.5px dashed var(--line);border-radius:0;background:var(--box-bg-2);text-align:center;color:var(--muted);font-size:12.5px}
.up-empty b{font-size:14px;color:var(--azure-ink)}
@media(max-width:520px){
 .up-card{grid-template-columns:54px minmax(0,1fr)}
 .up-side{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}
 .up-more-actions>summary{min-height:40px;padding-inline:12px}
 .up-more-list .btn{min-height:42px}
}

/* importatore PDF */
.reservation-import-panel{border:1px solid var(--ui-tint)}
.reservation-import-panel>summary{display:flex!important;align-items:center;gap:12px;min-height:60px!important;padding:12px 18px!important;font-size:14px!important}

.imp-sum{display:flex;flex-direction:column;gap:1px}
.imp-sum b{color:var(--text);font-size:14.5px}
.imp-sum small{color:var(--muted);font-weight:500;font-size:12px}


#importBatches>p.muted,#importBatches>.muted:only-child{margin:0;padding:22px 12px;border:1.5px dashed var(--line);border-radius:0;background:var(--box-bg-2);text-align:center;font-size:12.5px}

/* allineamento colonne panoramica = griglia principale */
@media(min-width:1181px){
 body .dashboard-overview-row{gap:16px!important;margin-bottom:16px!important}
}
body .dashboard-main-grid>.dashboard-floor-preview,body .dashboard-main-grid>#rnbTop{align-self:stretch!important}


body .dashboard-main-grid>#rnbTop,body .dashboard-main-grid>#rnbTop>*{width:100%!important;max-width:none!important;box-sizing:border-box}


/* == css/app/41-floor-settings-and-late-fixes.css == */
/* ===== v1.10: floor plan dashboard ===== */
.dashboard-floor-preview .top{padding-bottom:12px;border-bottom:1px solid var(--panel2);margin-bottom:12px}
#dashboardFloorQuick.dashboard-floor-quick{display:flex!important;flex-direction:column;gap:12px}
.dfq-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.dfq-tab{display:flex;flex-direction:column;gap:1px;cursor:pointer;font:inherit;transition:border-color .15s,box-shadow .15s}

.dfq-tab span{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.dfq-tab span em{font-style:normal;margin-left:4px;padding:1px 6px;border-radius:99px;background:var(--bad);color:var(--on-accent);font-size:9.5px}
.dfq-tab b{font-size:14px;color:var(--text)}
.dfq-tab small{font-size:11px;color:var(--muted)}

.dfq-tab.on span,.dfq-tab.on b,.dfq-tab.on small{color:var(--on-accent)}
.dfq-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.dfq-kpi{padding:8px 10px;border-radius:0;background:var(--box-bg);border:1px solid var(--box-line)}
.dfq-kpi b{display:block;font-size:19px;line-height:1.15;color:var(--azure-ink);font-weight:800}
.dfq-kpi b i{font-style:normal;font-size:12px;color:var(--muted);font-weight:600}
.dfq-kpi small{font-size:11px;color:var(--muted)}
.dfq-kpi.hi{background:var(--fp-free-bg);border-color:var(--fp-free-line)}
.dfq-kpi.hi b{color:var(--fp-free-ink)}
.dfq-map{display:flex;flex-direction:column;gap:10px}
.dfq-area-h{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:5px}
.dfq-area-h span{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--azure-ink)}
.dfq-area-h small{font-size:11px;color:var(--muted)}
.dfq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:6px}
.dfq-t{position:relative;border:1px solid var(--fp-free-line);cursor:pointer;font:inherit;overflow:hidden;transition:transform .12s,box-shadow .12s}

.dfq-id{font-size:14px;font-weight:800;color:var(--text);line-height:1.1}
.dfq-cap{top:5px;right:6px;font-size:10px;font-weight:700;color:var(--muted)}
.dfq-t small{font-size:10px;line-height:1.2;color:var(--fp-free-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

.dfq-t.s-booked small{color:var(--azure-ink)}

.dfq-t.s-soon small{color:var(--fp-soon-ink)}

.dfq-t.s-seated .dfq-id,.dfq-t.s-seated .dfq-cap,.dfq-t.s-seated small{color:var(--on-accent)}

.dfq-t.s-blocked small,.dfq-t.s-blocked .dfq-id{color:var(--muted)}
.dfq-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:auto;padding-top:6px;font-size:11px;color:var(--muted)}
.dfq-legend span{display:inline-flex;align-items:center;gap:5px}
.dfq-legend i{width:11px;height:11px;border-radius:0;border:1px solid var(--fp-free-line);background:var(--fp-free-bg)}
.dfq-legend i.s-booked{background:var(--ui-tint);border-color:var(--fp-booked-line)}
.dfq-legend i.s-soon{background:var(--fp-soon-bg);border-color:var(--fp-soon-line)}
.dfq-legend i.s-seated{background:var(--azure);border-color:var(--azure)}
.dfq-legend i.s-blocked{background:var(--fp-blocked-stripe);border-color:var(--ui-line)}
@media(max-width:520px){
 .dfq-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dfq-grid{grid-template-columns:repeat(auto-fill,minmax(56px,1fr))}
}
body .dfq-tab,body .dfq-t{text-align:left!important;justify-content:flex-start!important;align-items:stretch!important;box-shadow:none;color:inherit;width:auto;height:auto;min-width:0}
body .dfq-tab{padding:8px 11px!important}
body .dfq-tab.on{box-shadow:var(--sh-sm)!important}
body .dfq-t{padding:5px 7px!important;min-height:60px;gap:1px!important;display:flex!important;flex-direction:column!important}
body .dfq-t.s-free{background:var(--fp-free-bg)!important}




.dfq-row{display:flex;align-items:baseline;justify-content:space-between;gap:3px;width:100%}
.dfq-cap{position:static!important}
.dfq-t small{margin:0!important;display:block}
.dfq-t small:nth-of-type(1){margin-top:auto!important}
.dfq-t small b{font-weight:800}
body .dashboard-main-grid>#rnbTop{display:flex!important;flex-direction:column}
body .dashboard-main-grid>#rnbTop>#rnbHeat{flex:1 1 auto;margin:0!important}
@media(min-width:1181px){
 body .dashboard-main-grid>#rnbTop>#rnbHeat{display:flex!important;flex-direction:column;justify-content:flex-start}
 body #rnbHeat .rnb-shift{flex:1 1 0;display:flex;flex-direction:column;margin:10px 0 4px!important}
 body #rnbHeat .rnb-cells{flex:1 1 auto;align-items:stretch;min-height:44px}
 body #rnbHeat .rnb-cell{height:auto!important;min-height:44px}
}

/* Safari / iOS: altezza reale del viewport (barre dinamiche) e niente zoom automatico sui campi */
@supports (height:100dvh){
 .modal,.app-confirm-modal{max-height:calc(100dvh - 28px)}
 @media(max-width:560px){.modal,.app-confirm-modal{max-height:calc(100dvh - 16px)}}
}
@supports (-webkit-touch-callout:none){
 body :is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden]),select,textarea){font-size:max(16px,1em)}
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Editor sale e tavoli (Impostazioni › Tavoli) */
.floor-summary{margin:0 0 10px}

.floor-was{position:absolute;right:30px;top:50%;transform:translateY(-50%);font-size:10px;font-weight:600;color:var(--azure-ink);background:var(--ui-tint);border-radius:0;padding:1px 5px;pointer-events:none}
.btn.small.floor-icon{width:32px;min-width:32px;height:32px;padding:0;display:inline-grid;place-items:center;font-size:14px;line-height:1}
.btn.small.floor-icon:disabled{opacity:.35;cursor:default}


/* Mappa e caratteristiche (Impostazioni › Tavoli) */
.fm-bar{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;margin-bottom:6px}
.fm-tabs,.fm-tools{display:flex;flex-wrap:wrap;gap:var(--gap-ctl);align-items:center}
.fm-tools-label{font-size:11.5px;font-weight:600;color:var(--muted);margin-right:2px}
.fm-tab,.fm-tool{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:0;border:1px solid var(--line);background:var(--panel);color:var(--control-text);font:inherit;font-size:12.5px;cursor:pointer}
.fm-tab.is-active{background:var(--azure);border-color:var(--azure);color:var(--on-accent)}
.fm-tool.is-active{border-color:var(--azure);box-shadow:0 0 0 2px var(--ui-tint);color:var(--azure-ink);font-weight:600}
.fm-hint{margin:2px 0 10px;font-size:12.5px}
.fm-wrap{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px;align-items:start}
.fm-grid{display:grid;grid-template-columns:repeat(var(--fm-cols),minmax(0,1fr));gap:4px;padding:8px;border-radius:0;background:repeating-linear-gradient(0deg,var(--panel2),var(--panel2) 1px,transparent 1px,transparent 100%),var(--panel2);border:1px dashed var(--line)}
.fm-cell{aspect-ratio:1;border-radius:0;background:var(--panel);display:grid;place-items:stretch;min-width:0}
.fm-token{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;height:100%;min-height:40px;padding:2px;border-radius:0;border:1.5px solid var(--ui-line);background:var(--panel);color:var(--text);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;font:inherit;box-shadow:var(--sh-sm)}
.fm-token b{font-size:13px;line-height:1.1}.fm-token small{font-size:10px;color:var(--muted)}
.fm-token.is-high{border-style:dashed}
.fm-token.is-selected{border-color:var(--azure);box-shadow:0 0 0 3px var(--ui-tint)}
.fm-token.is-on{background:var(--ui-tint);border-color:var(--azure)}
.fm-token.is-dragging{z-index:5;cursor:grabbing;box-shadow:var(--sh-md);opacity:.92}
.fm-dots{position:absolute;top:3px;right:3px;display:flex;gap:2px}
.fm-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}
.fm-c0{background:var(--azure)}
.fm-tray{border:1px solid var(--line);border-radius:0;padding:10px;background:var(--panel);display:grid;gap:8px;align-content:start}
.fm-tray strong{font-size:12.5px}
.fm-tray-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.fm-tray-list .fm-token{height:46px}







@media(max-width:760px){.fm-wrap{grid-template-columns:1fr}.fm-grid{gap:2px;padding:4px}.fm-token b{font-size:11px}.fm-token small{display:none}}
/* Richieste dell'ospite nel modulo prenotazione */
.bk-requests{margin-top:2px}
.bk-chips{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 4px}
.bk-chip{height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--control-text);font:inherit;font-size:12.5px;cursor:pointer}
.bk-chip.is-on{background:var(--azure);border-color:var(--azure);color:var(--on-accent)}
.bk-chip:disabled{opacity:.45;cursor:default}
.bk-requests small.muted{display:block;font-size:11.5px}
/* specificità: le regole generali dei pulsanti usano !important */
html body #floorMapEditor .fm-tab,html body #floorMapEditor .fm-tool{background:var(--panel)!important;color:var(--control-text)!important;border:1px solid var(--line)!important;box-shadow:none!important;min-height:0!important;height:32px!important;padding:0 12px!important;border-radius:0!important}
html body #floorMapEditor .fm-tab.is-active{background:var(--azure)!important;border-color:var(--azure)!important;color:var(--on-accent)!important}
html body #floorMapEditor .fm-tool.is-active{border-color:var(--azure)!important;box-shadow:0 0 0 2px var(--ui-tint)!important;color:var(--azure-ink)!important;font-weight:600!important}
html body #floorMapEditor .fm-token{background:var(--panel)!important;border:1.5px solid var(--ui-line)!important;color:var(--text)!important;padding:2px!important;min-height:40px!important;height:100%!important;border-radius:0!important;box-shadow:var(--sh-sm)!important}
html body #floorMapEditor .fm-token.is-high{}
html body #floorMapEditor .fm-token.is-selected{border-color:var(--azure)!important;box-shadow:0 0 0 3px var(--ui-tint)!important}
html body #floorMapEditor .fm-token.is-on{background:var(--ui-tint)!important;border-color:var(--azure)!important}
html body #floorMapEditor .fm-token.is-dragging{box-shadow:var(--sh-md)!important}
html body #floorMapEditor .fm-tray-list .fm-token{height:46px!important}
/* mappa più leggibile: numeri grandi, vicini evidenziati, legenda e riepilogo della sala */
html body #floorMapEditor .fm-token b{font-size:16px!important;font-weight:700}
html body #floorMapEditor .fm-token small{font-size:11px!important;font-weight:600}
html body #floorMapEditor .fm-token.is-near{border-color:var(--ok)!important;background:var(--fp-seated-bg)!important;box-shadow:0 0 0 3px var(--fp-seated-bg)!important}
html body #floorMapEditor .fm-tab small{margin-left:4px;padding:1px 6px;border-radius:999px;background:var(--ui-tint);font-size:11px}
html body #floorMapEditor .fm-tab.is-active small{background:var(--dk-bg2)}
html body #floorMapEditor .fm-lock{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:0;border:1px solid var(--line);background:var(--panel);color:var(--control-text);font:inherit;font-size:12.5px;cursor:pointer;margin-right:8px}
html body #floorMapEditor .fm-lock.is-locked{background:var(--fp-seated-bg);border-color:var(--ok);color:var(--fp-free-ink);font-weight:600}
html body #floorMapEditor .fm-token.is-high{border-style:dashed!important}
.fm-wrap.is-locked .fm-token{cursor:pointer}
.fm-legend{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin:0 0 10px;font-size:12px;color:var(--muted)}
.fm-legend>span{display:inline-flex;align-items:center;gap:6px}
.fm-lg-t{display:inline-block;width:18px;height:14px;border:1.5px solid var(--ui-line);border-radius:0;background:var(--panel)}.fm-lg-t.is-high{border-style:dashed}
.fm-lg-sum{margin-left:auto}.fm-lg-sum b{color:var(--fp-soon-ink)}
html body #bookingModal .bk-chip{background:var(--panel)!important;color:var(--control-text)!important;border:1px solid var(--line)!important;height:30px!important;min-height:0!important;padding:0 12px!important;border-radius:999px!important;box-shadow:none!important}
html body #bookingModal .bk-chip.is-on{background:var(--azure)!important;border-color:var(--azure)!important;color:var(--on-accent)!important}
/* ingranaggio delle Impostazioni in alto a destra */
body #headerContextActions>.settings-gear{padding:0 10px!important;justify-content:center}
body #headerContextActions>.settings-gear.active{background:var(--ui-tint)!important;color:var(--azure-ink)!important;border-color:var(--azure)!important}
/* telefono: in testa Importa, account e ingranaggio su una riga, la location sotto a tutta larghezza */
@media(max-width:560px){
 #headerContextActions{max-width:none!important;width:100%;display:flex;gap:8px}
 #headerContextActions .global-location{order:9;flex:1 1 100%;width:auto;min-width:0}
 body #headerContextActions>.account-btn,body #headerContextActions>.settings-gear,body #headerContextActions>.timeline-import-shortcut{margin:0!important}
}

/* == css/features/assistant-panel.css == */
/* Assistente prenotazioni (dashboard) · elenco unico per urgenza.
   Usa i token del tema azzurro definiti in polish.css. Classi ax-* nuove: nessuna regola vecchia le tocca. */
/* Dashboard: numeri in alto a tutta larghezza, subito sotto assistente e prossimi arrivi; il registro va in fondo */
body .dashboard-overview-row{grid-template-columns:1fr!important}
body .dashboard-main-grid>.dashboard-log{grid-column:1/-1;max-height:none!important}
#rnbAssist{gap:14px}
.ax-head{display:flex;justify-content:space-between;align-items:center;gap:10px 16px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line)}
.ax-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ax-head-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ax-status{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}
.ax-status.ax-bad{background:color-mix(in srgb,var(--bad) 12%,transparent);color:var(--bad)}
.ax-status.ax-tip{background:color-mix(in srgb,var(--azure) 12%,transparent);color:var(--azure-ink)}
.ax-status.ax-ok{background:color-mix(in srgb,var(--ok) 13%,transparent);color:var(--ok)}
.ax-status.ax-off{background:color-mix(in srgb,var(--muted) 13%,transparent);color:var(--muted)}
.ax-mode{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
#rnbAssist .ax-mode button{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;font:600 12px var(--font-brand);padding:6px 11px!important;border-radius:7px!important;min-height:30px;transform:none!important}
#rnbAssist .ax-mode button.on{background:var(--azure)!important;color:var(--on-accent)!important;box-shadow:var(--sh-sm)!important}
#rnbAssist .ax-mode button:not(.on):hover{color:var(--azure-ink)!important;background:color-mix(in srgb,var(--azure) 8%,transparent)!important}
.ax-mode button:focus-visible,.ax-rules-btn:focus-visible{outline:2px solid var(--azure);outline-offset:2px}
.ax-rules-btn{display:inline-flex!important;align-items:center;gap:6px}
.ax-quick{display:grid;gap:var(--gap-label)}
.ax-quick .rnb-quick-row>input{flex:1 1 auto;min-width:0;width:auto}
.ax-quick .rnb-hint:empty{display:none}
.ax-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ax-actions .btn{width:100%;white-space:nowrap;justify-content:center}
.ax-mode-text{margin:0;font-size:13px;color:var(--muted)}
.ax-list{display:grid;gap:14px}
.ax-list:empty{display:none}
.ax-sec{display:grid;gap:8px}
.ax-sec h3{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ax-sec h3::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ax-c,var(--azure))}
.ax-sec h3 span{font-size:11px;padding:1px 7px;border-radius:999px;background:color-mix(in srgb,var(--muted) 12%,transparent);color:var(--muted);letter-spacing:0}
.ax-sec-fix{--ax-c:var(--bad)}.ax-sec-now{--ax-c:var(--warn)}.ax-sec-tip{--ax-c:var(--azure)}.ax-sec-check{--ax-c:var(--muted)}
#rnbAssist{container-type:inline-size}
/* heatmap occupazione: celle oltre la capienza */
body .rnb-cell.over{background:var(--bad)!important;box-shadow:0 0 0 1px var(--now) inset!important}
.ax-item{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px 12px;align-items:start;padding:11px 12px;border:1px solid var(--line);border-left:4px solid var(--ax-c,var(--azure));border-radius:12px;background:var(--panel)}
.ax-item.ax-fix{--ax-c:var(--bad)}.ax-item.ax-now{--ax-c:var(--warn)}.ax-item.ax-tip{--ax-c:var(--azure)}.ax-item.ax-check{--ax-c:var(--muted)}
.ax-time{display:grid;gap:1px;text-align:center}
.ax-time b{font-size:15px;font-variant-numeric:tabular-nums;color:var(--ink)}
.ax-time small{font-size:11px;color:var(--muted)}
.ax-body{min-width:0}
.ax-body strong{display:block;font-size:14px;color:var(--ink);line-height:1.3}
.ax-body p{margin:3px 0 0;font-size:12.5px;line-height:1.45;color:var(--muted)}
.ax-acts{grid-column:2;display:flex;gap:6px;flex-wrap:wrap}
.ax-time{padding-top:1px}
.ax-acts .btn{white-space:nowrap}
.ax-footer{display:flex;justify-content:flex-end}
.ax-empty{display:grid;gap:3px;padding:18px;text-align:center;border:1px dashed color-mix(in srgb,var(--ok) 45%,transparent);border-radius:12px;background:color-mix(in srgb,var(--ok) 6%,transparent)}
.ax-empty b{color:var(--ok)}
.ax-empty span{font-size:13px;color:var(--muted)}
#rnbAssist .rnb-assist-backup:empty{display:none}

/* Registro assistente: azioni per voce */
#smartReorgLog .smart-log-row{align-items:center}
#smartReorgLog .smart-log-row>span:first-child{min-width:0;flex:1}
.log-side{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.log-acts{display:flex;gap:6px}
.log-acts .btn{height:30px;padding:0 10px!important;font-size:12px!important}
.log-undone{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:color-mix(in srgb,var(--muted) 13%,transparent);color:var(--muted)}
#smartReorgLog .smart-log-row.is-undone>span:first-child{color:var(--muted);text-decoration:line-through}

/* Finestra «Avvisa l'ospite» (js/notices.js) */
body .nt-modal{width:min(620px,100%)!important;padding:22px!important;display:grid;gap:12px;text-align:left}
.nt-head{display:grid;gap:4px}
.nt-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--azure-ink)}
.nt-head h2{margin:0;font-size:20px}
.nt-to{font-size:13px;color:var(--muted)}
.nt-warn{color:var(--bad);font-weight:700}
.nt-field{display:grid;gap:5px;font-size:12px;font-weight:700;color:var(--muted)}
.nt-field input,.nt-field textarea{width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid var(--line);border-radius:10px;font:14px/1.5 var(--font-brand);color:var(--ink);background:var(--panel)}
.nt-field textarea{resize:vertical;min-height:200px}
.nt-actions{display:flex;gap:8px;flex-wrap:wrap}
.nt-actions .btn{height:38px;padding:0 16px}
body .nt-actions .nt-done{margin-left:auto;background:transparent!important;border-color:transparent!important;color:var(--muted)!important}
body .nt-modal .nt-reject{justify-self:start;border:0;background:none;padding:0;font:600 12.5px var(--font-brand);color:var(--bad);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
body .nt-modal .nt-reject[hidden]{display:none}
body .nt-modal .nt-note{margin:0;font-size:12px;color:var(--muted);text-align:left!important}

/* Regole: finestra dedicata */
.ax-rules-modal{width:min(720px,100%)!important}
.ax-rules{display:grid;gap:14px}
.ax-note{color:var(--muted);font-size:12px}
.ax-crit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ax-crit-opt{display:flex;gap:9px;align-items:flex-start;padding:10px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.ax-crit-opt:has(input:checked){border-color:var(--azure);background:color-mix(in srgb,var(--azure) 7%,transparent)}
.ax-crit-opt input{margin-top:3px;accent-color:var(--azure)}
.ax-crit-opt b{display:block;font-size:13px}
.ax-crit-opt small{display:block;font-size:11.5px;color:var(--muted);line-height:1.4;margin-top:2px}
.ax-toggle{display:flex;gap:8px;align-items:center;font-size:13px}

@container (max-width:620px){.ax-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:380px){.ax-item{grid-template-columns:1fr}.ax-time{display:flex;gap:8px;align-items:baseline;text-align:left}.ax-acts{grid-column:1}}
@media(max-width:760px){.ax-crit{grid-template-columns:1fr}}

/* == css/features/communication.css == */
/* Sezione Comunicazione: elenco dei messaggi a sinistra, richiesta e risposta a destra */
.cm-wrap{display:grid;grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:16px;align-items:start}
.cm-list{display:grid;gap:0;align-content:start;max-height:78vh;overflow:auto;background-color:var(--panel)}
.cm-empty{font-size:13px;margin:8px 2px}
html body #commsPage .cm-row{display:grid;gap:2px;text-align:left;width:100%;height:auto;min-height:0;padding:9px 11px;border-radius:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;box-shadow:none}
html body #commsPage .cm-row.is-active{background:var(--panel2);box-shadow:inset 3px 0 0 var(--now)}
.cm-row-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.cm-row-top b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-row-sub{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-st{flex:none;padding:1px 8px;border-radius:0;font-size:11px;font-weight:600;background:var(--panel2);color:var(--muted)}
.cm-st.is-new{color:var(--warn)}.cm-st.is-checked{color:var(--azure-ink)}
.cm-st.is-booked{color:var(--ok)}.cm-st.is-replied{color:var(--azure-ink)}
.cm-main{min-width:0}
.cm-detail{display:grid;gap:12px}
.cm-detail h4{margin:6px 0 0;font-size:13.5px}.cm-detail h4 small{font-weight:400}
.cm-body{margin:0;padding:12px 14px;border-radius:0;border:1px solid var(--box-line);background:var(--box-bg-2);font:inherit;font-size:13px;line-height:1.45;white-space:pre-wrap;word-break:break-word;max-height:240px;overflow:auto}
.cm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.cm-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cm-field{display:grid;gap:4px;min-width:0}
.cm-field input,.cm-field select{width:100%;min-width:0}
.cm-miss{color:var(--warn);font-weight:600}
.cm-field.is-missing input,.cm-field.is-missing select{border-color:var(--warn)!important}
.cm-miss-note{margin:8px 0 0!important;font-size:12.5px!important;color:var(--warn)}
.cm-mail{display:grid;gap:4px;padding:10px 12px;border-radius:0;border:1px solid var(--box-line);background:var(--box-bg-2);font-size:12.5px;color:var(--text)}
.cm-mail.is-on{border-color:var(--box-line);background:var(--box-bg-2);color:var(--text)}
.cm-mail b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-mail .btn{justify-self:start;margin-top:4px}
.cm-other{margin-top:6px;font-size:12.5px}.cm-other summary{cursor:pointer;color:var(--muted);padding:4px 2px}
.cm-other .cm-row{margin-top:6px;opacity:.8}
.cm-st.is-other{background:var(--panel2);color:var(--muted)}
.cm-set{margin-top:8px;padding:8px 10px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg);font-size:12.5px}
.cm-set summary{cursor:pointer;font-weight:600;color:var(--control-text)}
.cm-set .cm-field{margin-top:8px}.cm-set p{margin:8px 0 0;font-size:12px}
.cm-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cm-result{padding:10px 12px;border-radius:0;border:1px solid var(--box-line);background:var(--box-bg-2)}
.cm-result p{margin:0;font-size:13px}
.cm-ok{color:var(--ok);font-weight:600}.cm-warn{color:var(--warn);font-weight:600;margin:0;font-size:13px}
.cm-alts{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px;font-size:12.5px}
.cm-reply-kind{display:flex;flex-wrap:wrap;gap:6px}
.cm-reply{width:100%;min-height:150px;padding:8px 10px;border-radius:0;border:1px solid var(--line);font:inherit;font-size:14px;line-height:1.45;resize:vertical;box-sizing:border-box}
.cm-att{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.cm-att-row{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg-2);font-size:13px;cursor:pointer;min-width:0}
.cm-att-row.is-missing{opacity:.6;cursor:default}
.cm-att-row span{display:grid;gap:2px;min-width:0}.cm-att-row span small.muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:900px){.cm-att{grid-template-columns:1fr}}
@media(max-width:900px){.cm-wrap{grid-template-columns:1fr}.cm-list{max-height:none}.cm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* == css/features/floor.css == */
/* Timeline tavoli: maniglie per anticipare/ritardare inizio e fine (js/timeline-resize.js) */
.tl-handle{position:absolute;top:0;bottom:0;width:9px;z-index:3;cursor:ew-resize;touch-action:none}
.tl-handle-start{left:0}.tl-handle-end{right:0}
body .timeline-booking.resizing{overflow:visible}
.tl-handle::after{content:"";position:absolute;top:28%;bottom:28%;left:3px;width:3px;border-radius:2px;background:var(--azure);opacity:0;transition:opacity .15s}
.timeline-booking:hover .tl-handle::after,.timeline-booking.resizing .tl-handle::after{opacity:.85}
.timeline-booking.resizing{z-index:5;box-shadow:0 0 0 2px var(--azure)!important}
.timeline-booking.resizing::after{content:attr(data-resize-label);position:absolute;left:0;top:-24px;padding:2px 8px;border-radius:6px;background:var(--ink);color:var(--bg);font-size:11px;font-weight:700;white-space:nowrap}
.tl-actual{color:var(--azure-ink)}
/* pulsantini del flusso sui blocchi (Arrivato → Accomoda → Annulla per 2 minuti) */
.tl-flow{position:absolute;right:4px;bottom:4px;z-index:4;display:flex;gap:4px}
/* quadrati arrotondati: passo successivo pieno azzurro, annulla in ambra */
html body #timelineContent .timeline-booking .tl-flow-btn{display:inline-grid!important;place-items:center;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;color:var(--on-accent)!important;cursor:pointer;transition:transform .12s,box-shadow .12s}
html body #timelineContent .timeline-booking .tl-flow-btn:hover{transform:translateY(-1px);box-shadow:var(--sh-sm)!important}
html body #timelineContent .timeline-booking .tl-flow-btn:active{transform:none}
html body #timelineContent .timeline-booking .tl-flow-btn.is-locked{color:var(--on-accent)!important;box-shadow:none!important;cursor:not-allowed}
html body #timelineContent .timeline-booking .tl-flow-btn.is-undo{box-shadow:var(--sh-sm)!important}
.tl-flow-btn svg{display:block}
.tl-flow-btn:hover{background:var(--azure);color:var(--on-accent)}
.tl-flow-btn:focus-visible{outline:2px solid var(--azure);outline-offset:1px}
.tl-flow-btn.is-undo{border-color:var(--warn);color:var(--fp-undo-ink);background:var(--fp-undo-bg)}
.tl-flow-btn.is-undo:hover{background:var(--warn);color:var(--dk-fg1)}

/* scambio veloce tra tavoli adiacenti (colonna dei tavoli) */
.tl-swap{display:inline-flex;flex-direction:column;gap:2px;margin-left:auto;margin-right:6px}
html body #timelineContent .tl-swap-btn{display:grid!important;place-items:center;min-width:0!important;min-height:0!important;padding:0!important;box-shadow:none!important;cursor:pointer}
html body #timelineContent .tl-swap-btn:hover{}
html body #timelineContent .tl-swap-btn:focus-visible{outline:2px solid var(--azure);outline-offset:1px}

/* problemi sui blocchi della Timeline */
body .timeline-booking.tl-issue-hard{border:2px solid var(--bad)!important;background:repeating-linear-gradient(135deg,var(--dk-bg3) 0 6px,var(--dk-bg4) 6px 12px)!important}
body .timeline-booking.tl-issue-soft{border:2px dashed var(--warn)!important}
.tl-issue-badge{display:inline-block;margin-right:5px;padding:0 5px;border-radius:5px;font-size:10px;font-weight:800;background:var(--bad);color:var(--on-accent);vertical-align:1px}
.tl-issue-soft .tl-issue-badge{background:var(--warn);color:var(--dk-fg1)}
body .timeline-booking.tl-over-cap{box-shadow:inset 0 -3px 0 var(--bad)!important}
.tl-issues-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;padding:9px 12px;border-radius:10px;border-left:4px solid var(--warn);background:var(--fp-soon-bg);color:var(--fp-undo-ink);font-size:13px;font-weight:600}
.tl-issues-bar.is-hard{border-left-color:var(--bad);background:var(--fp-blocked-bg);color:var(--fp-blocked-ink)}
.tl-issues-bar span{flex:1 1 240px}

/* Mappa tavoli: un tavolo/fascia con prenotazione è un collegamento alla prenotazione */
.dfq-t.is-link{cursor:pointer}
.dfq-t.is-link:hover small:last-child{text-decoration:underline;text-underline-offset:2px}
#infoModal .ts-booking span small{color:var(--muted);font-size:11.5px}

/* Accomodamento: griglia di tavoli compatibili */
#seatingModal .seat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}
body #seatingModal .seat-tile{position:relative;display:flex!important;flex-direction:column;align-items:center!important;justify-content:center!important;gap:1px;min-height:0!important;padding:8px 4px!important;border:1.5px solid var(--line)!important;border-radius:12px!important;background:var(--panel)!important;color:var(--ink)!important;cursor:pointer;text-align:center;box-shadow:none!important;transition:border-color .12s,background .12s}
#seatingModal .seat-tile b{line-height:1.1;font-variant-numeric:tabular-nums}
#seatingModal .seat-tile span{font-size:12px;font-weight:600}
#seatingModal .seat-tile small{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#seatingModal .seat-tile em{top:4px;left:50%;font-style:normal;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--azure-ink)}
#seatingModal .seat-tile.is-roomy em{color:var(--fp-feat-ink)}
body #seatingModal .seat-tile:hover{border-color:var(--azure)!important}
body #seatingModal .seat-tile.is-selected{border-color:var(--azure)!important;background:var(--azure)!important;color:var(--on-accent)!important}
#seatingModal .seat-tile.is-selected small,#seatingModal .seat-tile.is-selected em{color:var(--on-accent)}
#seatingModal .seat-tile:focus-visible{outline:2px solid var(--azure);outline-offset:2px}

/* Fatturato: quanti coperti mancano all'obiettivo */
.revenue-need{display:grid;gap:5px;padding:14px 16px;border-radius:12px;border-left:4px solid var(--azure);background:var(--ui-tint);font-size:13px;color:var(--muted)}
.revenue-need strong{font-size:16px;color:var(--ink)}
.revenue-need b{color:var(--ink)}
.revenue-need.is-hard{border-left-color:var(--warn);background:var(--fp-soon-bg)}
.revenue-need.is-ok{border-left-color:var(--ok);background:var(--fp-seated-bg)}

/* Popup «Nuovo in timeline» (fillTimelineCreate in core.js) */
body .tc-modal{width:min(480px,100%)!important;padding:22px!important;display:grid;gap:14px}
.tc-head{display:grid;gap:4px}
.tc-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--azure-ink)}
.tc-head h2{margin:0;font-size:24px;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.tc-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.tc-meta span{font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--ui-tint);color:var(--muted)}
.tc-meta span:first-child::first-letter{text-transform:uppercase}
.tc-free{font-size:13px;font-weight:600;line-height:1.45;padding:10px 12px;border-radius:10px;border-left:4px solid}
.tc-ok{background:var(--fp-seated-bg);border-color:var(--ok);color:var(--fp-free-ink)}
.tc-warn{background:var(--fp-soon-bg);border-color:var(--warn);color:var(--fp-undo-ink)}
.tc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tc-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body .tc-choice{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;gap:10px;min-height:118px;padding:16px!important;text-align:left;border:1px solid var(--line)!important;border-radius:0!important;background:var(--panel)!important;color:var(--ink)!important;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
body .tc-choice svg{color:var(--ui-tint-ink);align-self:flex-start;margin:0!important}
body .tc-choice span{display:grid;gap:3px}
body .tc-choice b{font-size:15px}
body .tc-choice small{font-size:12px;font-weight:500;color:var(--muted);line-height:1.35}
body .tc-choice:not(:disabled):hover{border-color:var(--azure)!important;box-shadow:var(--sh-md)!important;transform:translateY(-1px)}
body .tc-choice:focus-visible{outline:2px solid var(--azure);outline-offset:2px}
body .tc-choice.tc-primary{background:linear-gradient(135deg,var(--azure-2),var(--azure))!important;border-color:var(--azure)!important;color:var(--on-accent)!important}
body .tc-choice.tc-primary svg,body .tc-choice.tc-primary small{color:var(--on-accent)}
body .tc-choice:disabled{opacity:.45;cursor:not-allowed}
body .tc-modal .tc-note{margin:0;font-size:12px;color:var(--muted);text-align:left!important}
.tc-modal,.tc-head{text-align:left}
@media(max-width:420px){.tc-choices{grid-template-columns:1fr}body .tc-choice{min-height:0;flex-direction:row;align-items:center!important}}

/* Scheda tavolo aperta dalla mappa in Dashboard (tableSheet in core.js) */
.ts{display:grid;gap:12px}
.ts-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.ts-state{font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px}
.ts-free{background:var(--fp-seated-bg);color:var(--fp-free-ink)}
.ts-booked{background:var(--ui-tint);color:var(--azure-ink)}
.ts-blocked{background:var(--panel2);color:var(--muted)}
.ts-part{font-size:14px;font-weight:700;color:var(--ink)}
.ts-list{display:grid;gap:6px}
.ts-booking{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;text-align:left;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--panel);font:inherit;color:var(--ink);cursor:pointer}
.ts-booking:hover{border-color:var(--azure)}
.ts-booking b{font-variant-numeric:tabular-nums}
.ts-booking span{min-width:0;font-size:13px}
.ts-booking small{font-size:11px;color:var(--muted)}
.ts-empty{margin:0}
.ts-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:4px;border-top:1px solid var(--line)}
.ts-actions .btn{flex:1 1 140px}
body .ts-actions .btn.ts-lock{color:var(--muted)!important}
#infoModal .modal{width:min(520px,100%)}

/* ===== TIMELINE · stile unico (bottoni uniformi, prenotazioni squadrate) ===== */
html body #timelinePage{--tlb-h:34px;--tlb-r:8px;--tlb-line:var(--line);--tlb-ink:var(--control-text);--tlb-azure:var(--azure)}
/* bottoni della barra: data, turno, azioni, criterio */
html body #timelinePage :is(.btn,.date-navigation button,.shift-buttons button){height:var(--tlb-h)!important;min-height:var(--tlb-h)!important;padding:0 14px!important;border-radius:var(--tlb-r)!important;border:1px solid var(--tlb-line)!important;background:var(--panel)!important;color:var(--tlb-ink)!important;font-size:12.5px!important;font-weight:600!important;line-height:1!important;box-shadow:none!important;background-image:none!important;transform:none!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;transition:background .12s,border-color .12s,color .12s}
html body #timelinePage :is(.btn,.date-navigation button,.shift-buttons button):hover:not(:disabled){background:var(--panel2)!important;border-color:var(--ui-line-hover)!important}
html body #timelinePage :is(.btn.primary,.shift-buttons button.primary,.shift-buttons button.active,.shift-buttons button[aria-pressed="true"]){background:var(--tlb-azure)!important;border-color:var(--tlb-azure)!important;color:var(--on-accent)!important}
html body #timelinePage :is(.btn.primary,.shift-buttons button.primary):hover:not(:disabled){background:var(--azure-ink)!important;border-color:var(--azure-ink)!important}
html body #timelinePage :is(.btn,.date-navigation button,.shift-buttons button):disabled{opacity:.45!important;cursor:default}
html body #timelinePage .date-navigation{align-items:center}
html body #timelinePage .date-navigation button:not(.day-shortcut){width:var(--tlb-h)!important;padding:0!important}
html body #timelinePage .date-navigation input{height:var(--tlb-h)!important;min-height:var(--tlb-h)!important;border-radius:var(--tlb-r)!important;border:1px solid var(--tlb-line)!important;box-shadow:none!important}
html body #timelinePage .shift-buttons button{min-width:84px}
html body #timelinePage .timeline-actions{gap:var(--gap-ctl)!important}
html body #timelinePage .timeline-search input{height:var(--tlb-h)!important;min-height:var(--tlb-h)!important;border-radius:var(--tlb-r)!important}
html body :is(#timelinePage,#dashboardPage) .timeline-criterion-stop{height:28px!important;min-height:28px!important;border-radius:6px!important;font-size:12px!important;font-weight:600!important;border:1px solid transparent!important;box-shadow:none!important}
html body :is(#timelinePage,#dashboardPage) .timeline-criterion-stop.active{background:var(--ui-tint)!important;border-color:var(--ui-line-hover)!important;color:var(--azure-ink)!important}
html body #timelinePage .timeline-preview-buttons .btn{height:30px!important;min-height:30px!important}
/* colonna dei tavoli: nome · scambio · blocco, sempre allineati */
html body #timelineContent .timeline-table-label{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;padding-right:8px!important}
html body #timelineContent .timeline-table-label .tl-table-name{display:flex;flex-direction:column;min-width:0;line-height:1.2}html body #timelineContent .tl-table-name b{font-weight:700;color:var(--tlb-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}html body #timelineContent .tl-table-name small{color:var(--muted);white-space:nowrap}
html body #timelineContent .tl-swap{display:flex!important;flex-direction:row!important;gap:4px!important;margin:0!important;justify-content:flex-end}
html body #timelineContent .tl-swap-btn{width:24px!important;height:24px!important;border-radius:6px!important;border:1px solid var(--tlb-line)!important;background:var(--panel)!important;color:var(--tlb-ink)!important}
html body #timelineContent .tl-swap-btn:hover{background:var(--tlb-azure)!important;border-color:var(--tlb-azure)!important;color:var(--on-accent)!important}
html body #timelineContent .timeline-table-label .btn{display:inline-grid!important;place-items:center;border-radius:6px!important;font-size:11.5px!important;font-weight:600!important;border:1px solid var(--tlb-line)!important;background:var(--panel)!important;color:var(--tlb-ink)!important;box-shadow:none!important}
html body #timelineContent .timeline-table-label .btn:hover{background:var(--panel2)!important;border-color:var(--ui-line-hover)!important}
html body #timelineContent .timeline-table-label .btn.is-blocked{background:var(--fp-blocked-bg)!important;border-color:var(--fp-blocked-line)!important;color:var(--fp-blocked-ink)!important}
/* prenotazioni: blocchi squadrati con banda di stato a sinistra */
html body #timelineContent .timeline-booking{--st:var(--azure);--st-bg:var(--ui-tint);border-radius:3px!important;background:var(--st-bg)!important;background-image:none!important;border:1px solid var(--box-line)!important;border-left:4px solid var(--st)!important;box-shadow:none!important;color:var(--text)!important;padding:0 6px 0 8px!important;gap:6px;font-size:11.5px!important;font-weight:500!important;transform:none!important}
html body #timelineContent .timeline-booking:hover{box-shadow:var(--sh-sm)!important;z-index:3}
html body #timelineContent .timeline-booking .tl-text{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #timelineContent .timeline-booking :is(.tl-time,.tl-actual){font-weight:700;font-variant-numeric:tabular-nums}
html body #timelineContent .timeline-booking .tl-name{font-weight:600}
html body #timelineContent .timeline-booking .tl-meta{color:var(--muted);font-weight:500}
html body #timelineContent .timeline-booking .tl-tag{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--azure-ink)}
html body #timelineContent .timeline-booking.tl-st-reconfirmed{--st:var(--azure-ink)}
html body #timelineContent .timeline-booking.tl-st-arrived{--st:var(--fp-arrived);--st-bg:var(--fp-arrived-bg);border-color:var(--box-line)!important}
html body #timelineContent .timeline-booking.tl-st-seated{--st:var(--fp-seated);--st-bg:var(--fp-seated-bg);border-color:var(--box-line)!important}
html body #timelineContent .timeline-booking.tl-st-finished{--st:var(--fp-finished);--st-bg:var(--panel2);border-color:var(--line)!important;color:var(--muted)!important}
html body #timelineContent .timeline-booking.walkin-booking{--st:var(--fp-walkin);--st-bg:var(--fp-walkin-bg);border:1px dashed var(--fp-walkin)!important;border-left:4px solid var(--st)!important}
html body #timelineContent .timeline-booking.followed-by-booking{box-shadow:inset -3px 0 0 var(--ui-line)!important}
html body #timelineContent .timeline-booking.vip-booking{--st:var(--bad);font-weight:500!important}
html body #timelineContent .timeline-booking.vip-booking .tl-meta{color:var(--fp-blocked-ink);font-weight:700}
html body #timelineContent .timeline-booking.tl-issue-hard{--st:var(--bad);--st-bg:var(--fp-blocked-bg);border:1px solid var(--bad)!important;border-left:4px solid var(--bad)!important;background-image:repeating-linear-gradient(135deg,var(--dk-bg5) 0 6px,var(--dk-bg6) 6px 12px)!important}
html body #timelineContent .timeline-booking.tl-issue-soft{border:1px dashed var(--warn)!important;border-left:4px solid var(--warn)!important}
html body #timelineContent .timeline-booking.tl-over-cap{box-shadow:inset 0 -3px 0 var(--bad)!important}
html body #timelineContent .timeline-booking.timeline-preview-change{--st-bg:var(--ui-tint);border:1px dashed var(--tlb-azure)!important;border-left:4px solid var(--tlb-azure)!important}
html body #timelineContent .timeline-booking.selected{outline:2px solid var(--azure-ink)!important;outline-offset:1px}
html body #timelineContent .timeline-booking .tl-issue-badge{border-radius:3px!important}
/* bottoni dentro la prenotazione: quadrati, stessa famiglia */
html body #timelineContent .timeline-booking .tl-flow{display:inline-flex;gap:4px;flex:none}
html body #timelineContent .timeline-booking .tl-flow-btn{width:24px!important;height:24px!important;border-radius:4px!important;background:var(--tlb-azure)!important;background-image:none!important;box-shadow:none!important;transform:none!important}
html body #timelineContent .timeline-booking .tl-flow-btn:hover{background:var(--azure-ink)!important}
html body #timelineContent .timeline-booking .tl-flow-btn.is-locked{background:var(--ui-line)!important}
html body #timelineContent .timeline-booking .tl-flow-btn.is-undo{background:var(--fp-arrived)!important;color:var(--on-accent)!important}
/* tempo concesso oltre il menu (fino alla prossima prenotazione meno la pausa del criterio) */
html body #timelineContent .tl-granted{position:absolute;box-sizing:border-box;z-index:0;pointer-events:none;border:1px dashed var(--azure);border-left:0;border-radius:0 3px 3px 0;background:repeating-linear-gradient(135deg,var(--panel2) 0 6px,var(--ui-tint) 6px 12px);display:flex;align-items:center;justify-content:flex-end;padding:0 6px;overflow:hidden}
html body #timelineContent .tl-granted span{font-weight:600;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
/* «Sposta → nome» nel popup della Timeline: riga intera sopra Prenotazione e Walk-in */
.tc-choices .tc-move{grid-column:1/-1}

/* Tessere dei tavoli: etichetta nel flusso, numeri su una riga, tessere alte uguali (1.268.13) */
#seatingModal .seat-grid{grid-auto-rows:1fr}
#seatingModal .seat-tile{aspect-ratio:auto!important;}
#seatingModal .seat-tile em{position:static;transform:none;order:-1;white-space:nowrap;min-height:12px;margin-bottom:4px}
#seatingModal .seat-tile b{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:clamp(15px,1.5vw,20px)}

/* Zone e caratteristiche: rinomina sul posto (doppio clic) */
html body #floorMapEditor .fm-chip small{margin-left:2px;padding:1px 6px;border-radius:999px;background:var(--ui-tint);font-size:11px}
html body #floorMapEditor .fm-chip.is-active small{background:var(--panel)}
html body #floorMapEditor .fm-x{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:2px;border-radius:0;font-size:14px;line-height:1;color:var(--muted);cursor:pointer}
html body #floorMapEditor .fm-x:hover{background:var(--panel2);color:var(--ink,#1d2b36)}
html body #floorMapEditor .fm-chip-add{min-width:32px;padding:0 10px!important;font-weight:700!important;color:var(--azure-ink)!important}
html body #floorMapEditor .fm-rename-input{height:32px!important;min-height:32px!important;width:150px;max-width:100%;padding:0 10px;border:1px solid var(--azure)!important;border-radius:0!important;background:var(--box-bg,#fff);color:var(--control-text);font:inherit;font-size:12.5px;font-weight:600;box-shadow:0 0 0 2px var(--ui-tint)}
html body #floorMapEditor .fm-combo{margin-top:12px}
@media(max-width:640px){html body #floorMapEditor .fm-rename-input{height:40px!important;min-height:40px!important;font-size:16px}}

/* Tavoli e combinazioni della zona scelta, affiancati (da 1100 px) */
html body #settingsTables .floor-split{display:grid;grid-template-columns:1fr;gap:var(--gap,16px);align-items:stretch;margin-top:var(--gap,16px)}

html body #settingsTables .floor-split-card{display:flex;flex-direction:column;min-width:0;margin:0}
html body #settingsTables .floor-split-card>.rnb-card-body{flex:1 1 auto}
html body #settingsTables .floor-split .rnb-card-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}

/* Strumento «Combina» */
html body #floorMapEditor .fm-token.is-combo{border-color:var(--azure)!important;background:var(--ui-tint)!important;box-shadow:0 0 0 3px var(--ui-tint)!important}
html body #floorMapEditor .fm-token.is-hi{border-color:var(--azure)!important;box-shadow:0 0 0 3px var(--ui-tint)!important;background:var(--ui-tint)!important}
html body #floorMapEditor .fm-combo-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--azure);background:var(--ui-tint);border-radius:0}
html body #floorMapEditor .fm-combo-sel{font-size:13px;font-weight:600;color:var(--azure-ink)}
html body #floorMapEditor .fm-combo-btns{display:flex;gap:8px;flex:1 1 100%;justify-content:space-between}
html body #floorMapEditor .fm-combo-btns .btn:disabled{opacity:.5;cursor:not-allowed}

/* Pulsanti «+» (aggiungi tavolo, combinazione, sala) al posto dei pulsanti con testo */

html body #floorMapEditor .fm-tab.fm-plus:not(#_){justify-content:center;width:32px;min-width:32px;padding:0!important;font-size:16px;font-weight:700;color:var(--azure-ink)!important}
@media(max-width:640px){html body #floorMapEditor .fm-tab.fm-plus:not(#_){width:44px;min-width:44px;height:44px}}

/* == css/features/nav.css == */
/* Navigazione principale: voci come link (#sezione), raggruppate, con icona, badge e scorciatoia.
   Classi rnb-nav-* nuove: i vecchi stili ".nav button" non le toccano. */
.rnb-nav{display:flex;flex-direction:column;gap:2px}
.rnb-nav-group{margin:16px 10px 6px;font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.rnb-nav-group:first-child{margin-top:4px}
.rnb-nav-item{position:relative;display:flex;align-items:center;gap:10px;min-height:40px;padding:8px 10px 8px 12px;border-radius:10px;color:var(--muted);text-decoration:none;font:600 13.5px var(--font-brand);transition:background-color .15s,color .15s}
.rnb-nav-item svg{flex:none;opacity:.8}
.rnb-nav-item span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rnb-nav-item kbd{font:600 10px var(--font-brand);color:var(--muted);opacity:0;transition:opacity .15s;border:1px solid var(--line);border-radius:5px;padding:1px 4px;background:var(--panel2)}
.rnb-nav-item:hover{background:color-mix(in srgb,var(--azure) 5%,transparent);color:var(--control-text)}
.rnb-nav-item:hover kbd,.rnb-nav-item:focus-visible kbd{opacity:1}
.rnb-nav-item:focus-visible{outline:2px solid var(--azure);outline-offset:1px}
.rnb-nav-item.active,.rnb-nav-item.active:hover{background:color-mix(in srgb,var(--azure) 14%,transparent);color:var(--azure-ink);font-weight:700}
.rnb-nav-item.active svg{opacity:1}
.rnb-nav-item.active::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--azure)}
.rnb-nav-badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--bad);color:var(--on-accent);font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.rnb-nav-badge[hidden]{display:none}

/* Menu laterale compatto (computer): logo più piccolo, voci più basse, così tutte le sezioni stanno in uno schermo da 768 px */
@media(min-width:851px){
 body aside{padding:16px 12px!important;overflow-y:auto}
 body aside .brand-logo{margin:0 auto 4px}
 body aside .brand-logo img{width:60px;height:60px;border-radius:17px}
 .rnb-nav{gap:1px}
 .rnb-nav-group{margin:12px 10px 4px}
 .rnb-nav-group:first-child{margin-top:2px}
 .rnb-nav-item{min-height:34px;padding:6px 10px 6px 12px;font-size:13px}
 .rnb-nav-item.active::before{top:7px;bottom:7px}
}
/* schermi bassi (portatili piccoli, finestra ridotta): ancora più stretto */
@media(min-width:851px) and (max-height:700px){
 body aside .brand-logo img{width:44px;height:44px;border-radius:13px}
 .rnb-nav-group{margin:8px 10px 2px}
 .rnb-nav-item{min-height:30px;padding:4px 10px 4px 12px}
}

/* Barra data: il pulsante «Oggi» ha l'icona mirino; l'icona calendario sta nel campo data, dove si apre il mini calendario */
body .date-navigation input[type=date]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23168BD2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3Cpath d='M8 14h.01M12 14h.01M16 14h.01M8 17.5h.01M12 17.5h.01'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 7px center!important;background-size:16px 16px!important;padding-right:30px!important}

/* Mini calendario: mese e iniziali dei giorni erano grigio chiaro (resto del vecchio tema scuro) */
body .mini-calendar-head strong{color:var(--ink)!important;text-transform:capitalize}
body .mini-calendar-grid .weekday{color:var(--muted)!important;font-weight:700}

/* Telefono e tablet: barra in basso (la posizione la dà già lo stile esistente di aside) */
@media(max-width:850px){
 .rnb-nav{flex-direction:row;gap:2px}
 .rnb-nav-group,.rnb-nav-item kbd{display:none}
 .rnb-nav{width:100%;overflow:visible!important}
 .rnb-nav-item{flex:1 1 0;min-width:0;flex-direction:column;justify-content:center;gap:3px;min-height:52px;padding:6px 1px;font-size:11px;text-align:center}
 .rnb-nav-item span{flex:none;max-width:100%}
}
@media(max-width:420px){
 .rnb-nav-item{font-size:9.5px;letter-spacing:-.01em}
 .rnb-nav-item.active::before{left:25%;right:25%;top:auto;bottom:2px;width:auto;height:3px}
 .rnb-nav-badge{position:absolute;top:3px;right:calc(50% - 22px);min-width:17px;height:17px;font-size:10px;padding:0 4px}
}

/* == css/features/reservations.css == */
/* Prenotazioni · timeline verticale del servizio (js/reservations.js) */
.rv{container-type:inline-size}
.rv-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:12px var(--card-pad);border-bottom:var(--sep);min-width:0}
.rv-body{padding:0}
.rv-bar .field,.rv-bar .search-field{margin:0}
.rv-search{flex:1 1 220px;min-width:0}
.rv-bar .type-filter{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.rv-bar-actions{display:flex;gap:8px}

.rv-scroll{position:relative;max-height:max(380px,calc(100vh - 250px));overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:44px}
.rv-scroll:focus-visible{outline:2px solid var(--azure);outline-offset:2px}
.rv-past-head{padding:10px 14px 2px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.rv-hour{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;padding:6px 14px;background:var(--panel2);border-bottom:var(--sep);font-size:12px;font-weight:800;color:var(--azure-ink);font-variant-numeric:tabular-nums}
.rv-hour::after{content:"";flex:1;height:1px;background:var(--line)}

.rv-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:6px 14px;align-items:center;padding:11px var(--card-pad);border-bottom:var(--sep)}
.rv-time{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink)}
.rv-main{min-width:0;display:grid;gap:3px}
.rv-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rv-name strong{font-size:15px;color:var(--ink)}
.rv-table{font-size:11.5px;font-weight:800;padding:2px 7px;background:var(--ui-tint);color:var(--azure-ink)}
.rv-meta{font-size:12.5px;color:var(--muted)}
.rv-extra{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.rv-extra:empty{display:none}
.rv-hint{font-size:12px;font-weight:700;color:var(--azure-ink)}
.rv-hint-late{color:var(--bad)}
.rv-hint-ok{color:var(--ok)}
.rv-hint-off{color:var(--muted)}
body #reservationsPage .rv-acts .btn.is-locked{opacity:.45;cursor:not-allowed}
.rv-tag{font-size:11px;font-weight:700;padding:2px 7px;background:var(--panel2);color:var(--muted)}
.rv-tag-vip{color:var(--text)}
.rv-tag-warn{color:var(--warn)}
.rv-acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.rv-acts .btn{white-space:nowrap}
.rv-primary-action{display:flex;min-width:0}
.rv-more-actions{position:relative;flex:none}
.rv-more-actions>summary{display:flex;align-items:center;justify-content:center;min-height:var(--ui-h-sm);padding:0 12px;border:1px solid var(--line);border-radius:0;background:var(--box-bg);color:var(--ink);font-size:12.5px;font-weight:650;list-style:none;cursor:pointer;user-select:none}
.rv-more-actions>summary::-webkit-details-marker{display:none}
.rv-more-actions>summary::after{content:"⌄";margin-left:6px;font-size:13px}
.rv-more-actions[open]>summary::after{content:"⌃"}
.rv-more-actions[open]{flex-basis:100%}
.rv-more-actions-list{position:static;display:flex;flex-direction:column;gap:4px;min-width:156px;margin-top:4px;padding:5px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg);box-shadow:var(--box-sh)}
.rv-more-actions-list .btn{width:100%;justify-content:flex-start;text-align:left}
body .rv-acts .btn.rv-ghost{background:transparent!important;border-color:transparent!important;color:var(--muted)!important}
body .rv-acts .btn.rv-ghost:hover{color:var(--azure-ink)!important;border-color:var(--line)!important}

/* già gestiti: più discreti */
.rv-done{opacity:.78;padding-block:8px}
.rv-done .rv-time{font-size:14px;color:var(--muted)}
.rv-done .rv-name strong{font-size:14px;font-weight:600}
.rv-state{font-size:11px;font-weight:800;padding:2px 8px;background:var(--ui-tint);color:var(--azure-ink)}
.rv-st-finished .rv-state,.rv-st-cancelled .rv-state{background:var(--panel2);color:var(--muted)}
.rv-st-noshow .rv-state{background:var(--panel2);color:var(--bad)}
.rv-st-cancelled .rv-name strong{text-decoration:line-through}
.rv-done:hover{opacity:1}

/* linea «Sei qui» */
.rv-marker{position:relative;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0;padding:10px 14px;background:var(--ui-tint);border-top:2px solid var(--azure);border-bottom:2px solid var(--azure)}
.rv-marker-label{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:3px 9px;background:var(--azure);color:var(--bg)}
.rv-clock{font-size:18px;font-variant-numeric:tabular-nums;color:var(--ink)}
.rv-marker-status{font-size:13px;font-weight:600;color:var(--azure-ink)}

/* spazio sotto i prossimi: la linea «Sei qui» può sempre salire in alto, anche a fine servizio */
.rv-future{min-height:calc(max(380px,100vh - 250px) - 160px)}

/* prossimo da accomodare */
.rv-next{background:var(--panel2);box-shadow:inset 4px 0 0 var(--azure)}
.rv-next .rv-time{color:var(--azure-ink)}

.rv-empty{display:grid;gap:4px;padding:36px 16px;text-align:center}

/* ---- Modulo prenotazione: 1 Quando e servizio · 2 Chi · 3 Il resto ---- */
body #bookingModal .bk-modal{width:min(760px,100%)!important;text-align:left}
#bookingModal form{display:grid;gap:12px}
#bookingModal .bk-sec{display:grid;gap:10px;padding:14px 16px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg)}
#bookingModal .bk-sec h3{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--azure-ink)}
#bookingModal .bk-step{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:0;background:var(--azure);color:var(--bg);font-size:11px;letter-spacing:0}
#bookingModal .bk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
/* riga 1: data | turno · riga 2: orario | ospiti | menu (largo) | durata */
#bookingModal .bk-grid-when{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2.2fr) minmax(0,1fr)}
#bookingModal .bk-grid-when .bk-date,#bookingModal .bk-grid-when .bk-shift{grid-column:span 2}
#bookingModal .bk-grid .field,#bookingModal .bk-sec>.field{margin:0!important;min-width:0}
/* selettore data compatto: solo campo con calendario e pulsante «Oggi» (niente settimana prima/dopo, Ieri, Domani) */
#bookingModal .bk-date .date-navigation{display:flex;flex-wrap:nowrap;margin:0!important}
#bookingModal .bk-date .date-navigation>button:not(.today){display:none!important}
#bookingModal .bk-date .date-navigation input[type=date]{order:1;flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;height:var(--ui-h)!important;min-height:var(--ui-h)!important}
#bookingModal .bk-date .date-navigation button.today{order:2;flex:none;width:var(--ui-h)!important;min-width:var(--ui-h)!important;height:var(--ui-h)!important;padding:0!important}
#bookingModal .bk-table{display:grid;gap:4px;padding-top:10px;border-top:1px solid var(--line)}
#bookingModal .bk-table p{margin:0;font-size:12.5px}
#bookingModal .bk-sec .notice{margin:0}
@media(max-width:640px){
 
 #bookingModal .bk-grid-when .bk-date,#bookingModal .bk-grid-when .bk-shift,#bookingModal .bk-grid-when .bk-exp{grid-column:1/-1}
}

/* ---- Importatore PDF: una scheda, un'area per il file, stato in una riga ---- */
body #reservationsPage .reservation-import-panel{padding:0!important}
body #reservationsPage .reservation-import-panel>summary{padding:16px var(--card-pad);display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}
body #reservationsPage .reservation-import-panel>summary::-webkit-details-marker{display:none}
body #reservationsPage .reservation-import-panel>summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
body #reservationsPage .reservation-import-panel[open]>summary::after{transform:rotate(-135deg)}
#reservationsPage .imp-sum{display:grid;gap:2px}
#reservationsPage .imp-sum b{font-size:15px;color:var(--ink)}
#reservationsPage .imp-sum small{font-size:12.5px;color:var(--muted)}
#reservationsPage .imp{display:grid;gap:10px;padding:var(--card-pad);border-top:var(--sep)}
#reservationsPage .imp-drop{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:76px;padding:14px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg);color:var(--azure-ink);font-size:14px;cursor:pointer;transition:background .15s,border-color .15s}
#reservationsPage .imp-drop:hover,#reservationsPage .imp-drop.is-over{background:var(--ui-tint);border-color:var(--azure)}
#reservationsPage .imp-drop.has-file{border-color:var(--azure);background:var(--box-bg-2)}
#reservationsPage .imp-drop span{color:var(--ink)}
#reservationsPage .imp-drop b{color:var(--azure-ink)}
/* il campo file copre tutta l'area: clic e trascinamento funzionano senza codice in più */
#reservationsPage .imp-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#reservationsPage .imp-status{margin:0;font-size:13px;color:var(--muted)}
#reservationsPage .imp-status[data-state="ok"]{color:var(--ok);font-weight:600}
#reservationsPage .imp-status[data-state="error"]{color:var(--bad);font-weight:600}
#reservationsPage #previewPanel{display:grid;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
#reservationsPage #previewPanel.hidden{display:none!important}
#reservationsPage .imp-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#reservationsPage .imp-preview-head h3{margin:0;font-size:16px;color:var(--ink)}
#reservationsPage .imp-preview-actions{display:flex;gap:8px}
#reservationsPage .imp-warnings{margin:0;font-size:12.5px;color:var(--warn)}
#reservationsPage .imp-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
#reservationsPage .imp-bulk select{min-width:220px}
#reservationsPage .imp-table{border:1px solid var(--line);border-radius:0}
#reservationsPage .imp-table th{color:var(--muted)!important;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;position:sticky;top:0}
#reservationsPage .imp-table td{padding:5px 4px!important;vertical-align:middle}
#reservationsPage .imp-table textarea{resize:vertical;min-width:140px}
#reservationsPage .imp-table td:has(.imp-auto){position:relative}
#reservationsPage .imp-auto{position:absolute;top:1px;right:6px;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--warn);background:var(--panel2);padding:0 4px}
#reservationsPage .imp-history{font-size:13px}
#reservationsPage .imp-history>summary{cursor:pointer;color:var(--azure-ink);font-weight:600}
#reservationsPage .imp-batch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
#reservationsPage .imp-batch:last-child{border-bottom:0}

/* ---- Misure uniformi nella sezione Prenotazioni ----
   Barra: tutti i controlli alti 38px, testo 13px, raggio 10px, allineati al centro su una riga.
   Righe: tutti i pulsanti alti 32px, testo 12.5px, larghezza minima uguale così le colonne si allineano. */
#reservationsPage .rv-date{display:flex;align-items:center;margin:0!important}
#reservationsPage .rv-date>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#reservationsPage .rv-bar .date-navigation{margin:0!important;flex-wrap:nowrap}
#reservationsPage .rv-bar .search-field{margin:0!important;padding:0!important;display:flex;align-items:center;align-self:center}
/* pulsanti delle righe: .btn.small standard (28 px dalle regole comuni) */
#reservationsPage .rv-acts .btn{min-width:104px;justify-content:center}

/* schermi stretti: la barra data occupa tutta la riga, il campo si restringe, spariscono «settimana prima/dopo» */
@container (max-width:560px){
 #reservationsPage .rv-date{flex:1 1 100%;min-width:0}
 #reservationsPage .rv-bar .date-navigation{width:100%;min-width:0}
 #reservationsPage .rv-bar .date-navigation input[type=date]{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important}
 #reservationsPage .rv-bar .date-navigation>button:first-child,#reservationsPage .rv-bar .date-navigation>button:last-of-type{display:none}
 #reservationsPage .rv-bar .type-filter{flex:1 1 100%}
 #reservationsPage .rv-bar .type-filter .btn{flex:1 1 0}
 #reservationsPage .rv-bar-actions{flex:1 1 100%}
 #reservationsPage .rv-bar-actions .btn{flex:1 1 0}
 #reservationsPage .rv-acts .btn{min-width:0;flex:1 1 auto}
}
#reservationsPage .rv{min-width:0}
@container (max-width:640px){
 .rv-row{grid-template-columns:48px minmax(0,1fr)}
 .rv-acts{grid-column:2;justify-content:flex-start;align-items:center;gap:7px}
 .rv-acts .rv-primary-action .btn{min-width:0;min-height:40px;padding-inline:12px!important}
 .rv-more-actions>summary{min-height:40px;padding-inline:12px}
 .rv-more-actions-list{min-width:0;width:100%;box-sizing:border-box}
 .rv-more-actions-list .btn{min-height:42px!important}
 .rv-secondary-meta{display:none}
 .rv-bar-actions{margin-left:0}
}
@media(max-width:850px){.rv-scroll{max-height:calc(100vh - 300px)}}

/* Safari / iOS: altezza reale del viewport */
@supports (height:100dvh){
 .rv-scroll{max-height:max(380px,calc(100dvh - 250px))}
 .rv-future{min-height:calc(max(380px,100dvh - 250px) - 160px)}
 @media(max-width:850px){.rv-scroll{max-height:calc(100dvh - 300px)}}
}

/* == css/ui/00-shared-controls.css == */

/* ==========================================================
   STILE UNICO DEI CONTROLLI · VERSIONE OTTIMIZZATA
   Bottoni 34px · piccoli 28px · angoli 8/6px
   Caricato per ultimo
   ========================================================== */

/* ---------- BOTTONI ---------- */

html body :is(main,.modal-backdrop) :is(.btn,.date-navigation button,.shift-buttons button):not(#_){
  height:var(--ui-h)!important;
  min-height:var(--ui-h)!important;
  padding:0 14px!important;
  border-radius:var(--ui-r)!important;
  border:1px solid var(--ui-line)!important;
  background:var(--panel)!important;
  background-image:none!important;
  color:var(--ui-ink)!important;
  font-size:12.5px!important;
  font-weight:600;
  line-height:1!important;
  box-shadow:none;
  transform:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  transition:background .12s,border-color .12s,color .12s;
}

html body :is(main,.modal-backdrop) :is(.btn,.date-navigation button,.shift-buttons button):not(#_):hover:not(:disabled){
  background:var(--panel2);
  border-color:var(--ui-line-hover);
}

html body :is(main,.modal-backdrop) .btn.small:not(#_){
  height:var(--ui-h-sm)!important;
  min-height:var(--ui-h-sm)!important;
  padding:0 10px!important;
  border-radius:var(--ui-r-sm)!important;
  font-size:12px!important;
}

html body :is(main,.modal-backdrop) :is(.btn.primary,.shift-buttons button.primary):not(#_){
  background:var(--ui-azure)!important;
  border-color:var(--ui-azure)!important;
  color:var(--on-accent)!important;
}

html body :is(main,.modal-backdrop) :is(.btn.primary,.shift-buttons button.primary):not(#_):hover:not(:disabled){
  background:var(--ui-azure-dark);
  border-color:var(--ui-azure-dark);
}

/* Stato selezionato */
html body :is(main,.modal-backdrop) :is(.btn.active,.btn[aria-pressed="true"],.btn[aria-selected="true"]):not(.primary):not(#_){
  background:var(--ui-tint)!important;
  border-color:var(--ui-line-hover)!important;
  color:var(--ui-tint-ink)!important;
}

/* Schede gestione */
html body main .inv-tab:not(#_){
  background:var(--panel);
  border-color:var(--ui-line);
  color:var(--ui-ink);
}

html body main .inv-tab:not(#_):hover{
  background:var(--panel2);
  border-color:var(--ui-line-hover);
}

html body main .inv-tab.is-active:not(#_){
  background:var(--ui-tint);
  border-color:var(--ui-line-hover);
  color:var(--ui-tint-ink);
}

html body main .inv-tab.is-active small{
  color:var(--ui-tint-ink);
}

/* Disabilitati e pericolo */
html body :is(main,.modal-backdrop) :is(.btn,.date-navigation button,.shift-buttons button):not(#_):disabled{
  opacity:.45;
  cursor:default;
}

html body :is(main,.modal-backdrop) .btn.is-danger:not(#_){
  color:var(--bad);
  border-color:var(--bad);
}


/* ---------- NAVIGAZIONE DATA E TURNO ---------- */

html body main .date-navigation:not(#_){
  gap:6px!important;
  align-items:center;
}

html body main .date-navigation button:not(.day-shortcut):not(#_){
  width:var(--ui-h)!important;
  padding:0!important;
}

html body main .date-navigation input:not(#_){
  height:var(--ui-h)!important;
  min-height:var(--ui-h)!important;
  border-radius:var(--ui-r)!important;
  border:1px solid var(--ui-line)!important;
  box-shadow:none!important;
}

html body main .shift-buttons:not(#_){
  gap:6px;
}

html body main .shift-buttons button:not(#_){
  min-width:84px;
}


/* ---------- GRUPPI SEGMENTATI ---------- */

html body main :is(.ax-mode,.type-filter):not(#_){
  display:inline-flex!important;
  gap:2px!important;
  padding:3px!important;
  height:var(--ui-h)!important;
  box-sizing:border-box;
  border:1px solid var(--ui-line)!important;
  border-radius:var(--ui-r)!important;
  background:var(--panel)!important;
  box-shadow:none!important;
}

html body main :is(.ax-mode,.type-filter) button:not(#_){
  height:calc(var(--ui-h) - 8px)!important;
  min-height:0!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:var(--ui-r-sm)!important;
  background:transparent!important;
  color:var(--ui-ink)!important;
  font-size:12px!important;
  font-weight:600!important;
  box-shadow:none!important;
}

html body main :is(.ax-mode,.type-filter) button:not(#_):hover{
  background:var(--panel2);
}

html body main :is(.ax-mode button.on,.type-filter button.active,.type-filter button.primary,.type-filter button[aria-pressed="true"]):not(#_){
  background:var(--ui-azure);
  color:var(--on-accent);
}

/* Gruppi segmentati nelle finestre */
html body .modal :is(.ax-mode,.type-filter):not(#_){
  display:inline-flex!important;
  gap:2px!important;
  padding:3px!important;
  height:var(--ui-h)!important;
  box-sizing:border-box;
  border:1px solid var(--ui-line)!important;
  border-radius:var(--ui-r)!important;
  background:var(--panel)!important;
  box-shadow:none!important;
}

html body .modal :is(.ax-mode,.type-filter) button:not(#_){
  height:calc(var(--ui-h) - 8px)!important;
  min-height:0!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:var(--ui-r-sm)!important;
  background:transparent!important;
  color:var(--ui-ink)!important;
  font-size:12px!important;
  font-weight:600!important;
  box-shadow:none!important;
}

html body .modal :is(.ax-mode,.type-filter) button:not(#_):hover{
  background:var(--panel2);
}

html body .modal-backdrop .modal :is(.ax-mode button.on,.type-filter button.active,.type-filter button.primary,.type-filter button[aria-pressed="true"]):not(.rnb-x):not(#_){
  background:var(--ui-azure)!important;
  color:var(--on-accent)!important;
}


/* ---------- RICERCA E SELEZIONE ---------- */

html body main :is(.search-field input,.rv-search input):not(#_){
  height:var(--ui-h);
  min-height:var(--ui-h);
  border-radius:var(--ui-r);
}


/* ---------- SCHEDE E TESSERE ---------- */

/* Dashboard */
html body #dashboardPage .dfq-tab:not(#_){
  border-radius:var(--ui-r-sm);
}

html body #dashboardPage .dfq-t:not(#_){
  border-radius:var(--ui-r-item);
  box-shadow:none;
}

/* Floor plan */
html body #floorPage .table-card:not(#_){
  border-radius:var(--ui-r-sm);
}

/* Prenotazioni */
html body #reservationsPage :is(.rv-table,.rv-state,.rv-tag):not(#_),
html body #reservationsPage .rv-marker-label:not(#_){
  border-radius:var(--ui-r-item);
}

/* Finestre */
html body .modal-backdrop .seat-tile:not(#_),
html body .modal-backdrop .candidate:not(#_){
  border-radius:var(--ui-r-sm);
}

html body .modal-backdrop .bk-chip:not(#_){
  height:var(--ui-h-sm)!important;
  border-radius:var(--ui-r-sm)!important;
}

/* Impostazioni */
html body #settingsPage :is(.fm-tab,.fm-tool):not(#_){
  height:var(--ui-h-sm);
  border-radius:var(--ui-r-sm);
}

html body #settingsPage .btn.small.floor-icon:not(#_){
  width:var(--ui-h-sm);
  min-width:var(--ui-h-sm);
  padding:0;
}

html body #settingsPage .fm-token:not(#_){
  border-radius:var(--ui-r-item);
}


/* ---------- ECCEZIONI TIMELINE ---------- */

html body #timelinePage #timelineContent .timeline-table-label .btn:not(#_){
  height:24px;
  min-height:24px;
  width:24px;
  min-width:24px;
  padding:0;
  border-radius:6px;
  display:inline-grid;
  place-items:center;
}

html body #timelinePage #timelineContent .timeline-table-label .btn.is-blocked:not(#_){
  background:var(--panel2);
  border-color:var(--bad);
  color:var(--bad);
}




/* ---------- INTESTAZIONE E LOCATION ---------- */

html body #headerContextActions:not(#_){
  min-width:0;
  flex-wrap:wrap;
  justify-content:flex-end;
}

html body #headerContextActions .settings-location:not(#_){
  min-width:0;
  flex:0 1 190px;
}

html body #headerContextActions .settings-location select:not(#_){
  width:100%;
  min-width:0;
}


/* ---------- ELEMENTI NASCOSTI ---------- */

html body :is(main,.modal-backdrop) :is(.btn,button).hidden:not(#_):not(#__),
html body :is(main,.modal-backdrop) .hidden :is(.btn,button):not(#_):not(#__){
  display:none!important;
}

html body :is(main,.modal-backdrop) :is(.btn,button)[hidden]:not(#_):not(#__){
  display:none;
}

html body :is(main,.modal-backdrop) :is(.btn,button):is([style*="display: none"],[style*="display:none"]):not(#_):not(#__){
  display:none;
}


/* ---------- PERSONALE IN SALA ---------- */

html body :is(#timelinePage,#dashboardPage) .timeline-staff{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  margin:10px 0 2px;
  padding:8px 10px;
  border:1px solid var(--ui-line);
  border-radius:var(--ui-r);
  background:var(--panel);
}

html body :is(#timelinePage,#dashboardPage) .timeline-staff.hidden{
  display:none;
}

html body :is(#timelinePage,#dashboardPage) .timeline-staff-label{
  font-size:12.5px;
  font-weight:700;
  color:var(--ui-ink);
}

html body :is(#timelinePage,#dashboardPage) .timeline-staff-stepper{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

html body :is(#timelinePage,#dashboardPage) .timeline-staff-stepper .btn:not(#_){
  width:var(--ui-h-sm)!important;
  min-width:var(--ui-h-sm)!important;
  padding:0!important;
  font-size:15px!important;
}

html body :is(#timelinePage,#dashboardPage) .timeline-staff-stepper output{
  min-width:22px;
  text-align:center;
  font-size:15px;
  font-weight:700;
  color:var(--ui-ink);
  font-variant-numeric:tabular-nums;
}

html body :is(#timelinePage,#dashboardPage) .timeline-staff-ref{
  color:var(--muted);
}

html body :is(#timelinePage,#dashboardPage) .timeline-staff-state{
  padding:3px 8px;
  border-radius:var(--ui-r-item);
  background:var(--panel2);
  color:var(--ok);
  font-weight:600;
}

html body :is(#timelinePage,#dashboardPage) .timeline-staff-state.is-short{
  background:var(--panel2);
  color:var(--warn);
}

html body :is(#timelinePage,#dashboardPage) .timeline-staff-state.is-extra{
  background:var(--ui-tint);
  color:var(--ui-tint-ink);
}


/* ---------- IMPOSTAZIONI · GRIGLIA ---------- */

html body #settingsPage .buffer-grid:not(#_){
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
}


/* ---------- TAVOLI DIVISIBILI ---------- */

html body #settingsPage .btn.small.floor-split-btn:not(#_){
  font-size:11px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--muted);
  background:var(--panel);
  border:1px solid var(--ui-line);
}

html body #settingsPage .btn.small.floor-split-btn.is-on:not(#_){
  background:var(--ui-tint);
  border-color:var(--ui-azure);
  color:var(--ui-azure-dark);
}


/* ---------- RIMOZIONE RIGHE ---------- */

html body .btn.small.row-x:not(#_):not(#__){
  display:inline-grid;
  place-items:center;
  width:var(--ui-h-sm);
  min-width:var(--ui-h-sm);
  height:var(--ui-h-sm);
  min-height:var(--ui-h-sm);
  padding:0;
  font-size:14px;
  line-height:1;
  color:var(--muted);
}

html body .btn.small.row-x:not(#_):not(#__):hover{
  color:var(--bad);
  border-color:var(--bad);
  background:var(--panel2);
}

/* == css/ui/10-floor-plan.css == */

/* ===== FLOOR PLAN · VERSIONE OTTIMIZZATA ===== */

/* Header */
html body #floorPage .fp-head-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

/* Legenda */
html body #floorPage .fp-legend{
  display:flex;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}

html body #floorPage .fp-legend span{
  display:inline-flex;
  align-items:center;
  gap:5px;
}

html body #floorPage .fp-dot{
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:2px;
}

html body #floorPage .fp-dot.is-free{
  border:1px dashed var(--ui-line);
  background:var(--panel);
}

html body #floorPage .fp-dot.is-booked{
  background:var(--ui-tint);
  border-left:3px solid var(--ui-azure);
}

html body #floorPage .fp-dot.is-blocked{
  background:repeating-linear-gradient(135deg,var(--fp-blocked-bg) 0 3px,var(--panel) 3px 6px);
  border:1px solid var(--fp-blocked-line);
}

/* Aree */
/* Griglia tavoli */
html body #floorPage .fp-grid:not(#_){
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:12px;
  align-items:stretch;
}

/* Schede tavoli */
html body #floorPage .fp-card:not(#_){
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
  padding:12px;
  gap:10px;
  border:1px solid var(--ui-line);
  border-radius:8px;
  background:var(--panel);
  box-shadow:none;
  transform:none;
  text-align:left;
  cursor:pointer;
}

html body #floorPage .fp-card:not(#_):hover{
  border-color:var(--ui-line-hover);
  box-shadow:var(--sh-sm);
}

html body #floorPage .fp-card.table-card-blocked:not(#_){
  background:repeating-linear-gradient(135deg,var(--fp-blocked-bg) 0 8px,var(--panel) 8px 16px);
  border-color:var(--fp-blocked-line);
}

/* Intestazione scheda */
html body #floorPage .fp-card-head{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  row-gap:4px;
  min-height:30px;
}

html body #floorPage .fp-card-head strong{
  font-size:24px;
  font-weight:800;
  color:var(--text);
  line-height:1;
}

html body #floorPage .fp-cap{
  font-size:13.5px;
  color:var(--muted);
  font-weight:600;
}

html body #floorPage .fp-tag{
  font-size:12px;
  font-weight:700;
  padding:2px 8px;
  border-radius:var(--ui-r-item);
  background:var(--panel2);
  color:var(--muted);
}

html body #floorPage .fp-feat{
  font-size:12px;
  font-weight:600;
  color:var(--fp-feat-ink);
  background:var(--fp-feat-bg);
  padding:2px 6px;
  border-radius:4px;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Pulsante blocco */
html body #floorPage .fp-lock:not(#_){
  margin-left:auto;
  display:inline-grid;
  place-items:center;
  height:30px;
  border:1px solid var(--ui-line);
  border-radius:var(--ui-r-sm);
  background:var(--panel);
  color:var(--ui-ink);
  cursor:pointer;
}

html body #floorPage .fp-lock:not(#_):hover{
  background:var(--panel2);
  border-color:var(--ui-line-hover);
}



@media (hover:hover){
  html body #floorPage .fp-card .fp-lock:not(.is-blocked){
    opacity:0;
    transition:opacity .12s;
  }

  html body #floorPage .fp-card:hover .fp-lock,
  html body #floorPage .fp-card:focus-within .fp-lock{
    opacity:1;
  }
}

/* Servizi */
html body #floorPage .fp-service{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}

html body #floorPage .fp-service b{
  font-size:15px;
  font-weight:800;
  color:var(--text);
}

html body #floorPage .fp-service span{
  font-size:15px;
  font-weight:600;
  color:var(--ui-ink);
  font-variant-numeric:tabular-nums;
}

html body #floorPage .fp-service small{
  font-size:13px;
  color:var(--muted);
}

/* Stati prenotazioni */
html body #floorPage .fp-dot.fp-st-expected,
html body #floorPage .fp-dot.fp-st-reconfirmed{
  background:var(--ui-tint);
  border-left:3px solid var(--ui-azure);
}

html body #floorPage .fp-dot.fp-st-arrived{
  background:var(--fp-arrived-bg);
  border-left:3px solid var(--fp-arrived);
}

html body #floorPage .fp-dot.fp-st-seated{
  background:var(--fp-seated-bg);
  border-left:3px solid var(--fp-seated);
}

/* Elenco prenotazioni */
html body #floorPage .fp-rows{
  display:flex;
  flex-direction:column;
  gap:6px;
}

html body #floorPage .fp-row:not(#_){
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:40px;
  padding:6px 10px;
  border:1px solid var(--box-line);
  font:inherit;
  text-align:left;
  cursor:pointer;
  box-shadow:none;
}

html body #floorPage .fp-row b{
  font-size:15px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}

html body #floorPage .fp-row .fp-name{
  font-size:14px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

html body #floorPage .fp-row .fp-name em{
  font-style:normal;
  font-size:11px;
  font-weight:800;
  color:var(--bad);
  margin-left:4px;
}

html body #floorPage .fp-row .fp-pax{
  font-size:13px;
  font-weight:600;
  color:var(--muted);
  white-space:nowrap;
}

html body #floorPage .fp-row.fp-st-arrived:not(#_){
  border-color:var(--box-line);
}

html body #floorPage .fp-row.fp-st-seated:not(#_){
  border-color:var(--box-line);
}





/* Nessuna prenotazione */
html body #floorPage .fp-none{
  margin:0;
  padding:10px 0;
  font-size:14px;
  color:var(--muted);
}

/* Aggiunta prenotazione */
html body #floorPage .fp-add-btn:not(#_){
  margin-top:auto;
  align-self:flex-start;
  height:30px;
  border:1px dashed var(--ui-line);
  border-radius:6px;
  background:var(--panel);
  color:var(--ui-tint-ink);
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

html body #floorPage .fp-add-btn:not(#_):hover{
  border-style:solid;
  background:var(--panel2);
}

@media (hover:hover){
  html body #floorPage .fp-card .fp-add-btn{
    opacity:0;
    transition:opacity .12s;
  }

  html body #floorPage .fp-card:hover .fp-add-btn,
  html body #floorPage .fp-card:focus-within .fp-add-btn{
    opacity:1;
  }
}

/* Tavolo bloccato */
html body #floorPage .fp-blocked-line{
  display:flex;
  align-items:center;
  gap:8px;
  height:40px;
  padding:0 10px;
  border-radius:6px;
  background:var(--fp-blocked-bg);
  color:var(--fp-blocked-ink);
  font-size:14px;
  font-weight:600;
}

/* Tavolo diviso */
html body #floorPage .fp-split:not(#_){
  margin-left:auto!important;
  font-size:10.5px!important;
  font-weight:800!important;
  letter-spacing:-.02em;
  line-height:1;
}

html body #floorPage .fp-split+.fp-lock:not(#_){
  margin-left:6px!important;
}

html body #floorPage .fp-split.is-split:not(#_){
  background:var(--ui-tint)!important;
  border-color:var(--ui-azure)!important;
  color:var(--ui-azure-dark)!important;
}

@media (hover:hover){
  html body #floorPage .fp-card .fp-split.is-split{
    opacity:1;
  }
}

/* Timeline */
html body #timelinePage .tl-split-btn:not(#_){
  flex:none;
  font-size:11px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ui-ink);
}

html body #timelinePage .tl-split-btn.is-split:not(#_){
  background:var(--ui-tint)!important;
  border-color:var(--ui-azure)!important;
  color:var(--ui-azure-dark);
}

html body #timelineContent .tl-icons{
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:none;
}

html body #timelineContent .timeline-table-label .btn:not(#_):not(#__){
  height:24px!important;
  min-height:24px!important;
  width:24px!important;
  min-width:24px!important;
  padding:0!important;
}

/* == css/ui/30-documents-and-inventory-core.css == */
/* ===== DOCUMENTI E INVENTARIO ===== */

html body #documentsPage .doc-card{flex-direction:column;border:1px solid var(--ui-line);border-radius:8px;background:var(--panel)}
html body #documentsPage .doc-card header{display:flex;gap:12px;align-items:flex-start}
html body #documentsPage .doc-card h3{margin:0 0 2px;font-size:17px;color:var(--text)}
html body #documentsPage .doc-card header p{margin:0;font-size:13px;word-break:break-word}
html body #documentsPage .doc-ico{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:var(--ui-tint);color:var(--ui-tint-ink)}
html body #documentsPage .doc-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}

html body #documentsPage .doc-link label{font-size:12.5px;font-weight:600;color:var(--muted)}
html body #documentsPage .doc-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
html body #documentsPage a.btn.is-disabled{opacity:.45;pointer-events:none}
/* Schede tutte uguali: due colonne; i menu con due lingue occupano la riga intera con i due riquadri affiancati,
   carta dei vini e dei drink mezza riga ciascuna. Così ogni riquadro (un file) ha sempre la stessa dimensione. */

html body #documentsPage .doc-card.is-multi{grid-column:1/-1}
html body #documentsPage .doc-slots{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;flex:1}
html body #documentsPage .doc-card.is-multi .doc-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:46px} /* 14 di spazio + 2 × 16 di margine delle schede sotto: i riquadri restano larghi uguali e in colonna */
html body #documentsPage .doc-slot-head>span{line-height:22px}
html body #documentsPage .doc-slot-head small{white-space:nowrap;}
html body #documentsPage .doc-remove.is-empty{visibility:hidden}
@media(max-width:760px){html body #documentsPage .doc-grid,html body #documentsPage .doc-card.is-multi .doc-slots{grid-template-columns:minmax(0,1fr);gap:14px}html body #documentsPage .doc-card.is-multi{grid-column:auto}}
html body #documentsPage .doc-slot{display:flex;flex-direction:column;gap:10px}
html body #documentsPage .doc-slot-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:13.5px;font-weight:600;color:var(--text)}
html body #documentsPage .doc-slot-head small{flex-basis:100%;font-weight:400;font-size:12.5px;word-break:break-word}
html body #documentsPage .doc-lang{display:inline-grid;place-items:center;min-width:30px;height:22px;padding:0 6px;border-radius:6px;background:var(--ui-tint);color:var(--ui-tint-ink);font-size:11.5px;letter-spacing:.04em}
html body .doc-remove{align-self:flex-start}
html body .modal.doc-viewer{width:min(1000px,100%);height:min(92vh,900px);max-height:92vh;display:flex;flex-direction:column;padding:12px;gap:10px}
html body .doc-viewer-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
html body .doc-viewer-bar strong{font-size:14px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 200px}
html body .doc-viewer-actions{display:flex;gap:6px;flex-wrap:wrap}
html body .doc-viewer-body{flex:1;min-height:0;border:1px solid var(--ui-line);border-radius:6px;background:var(--panel2);overflow:auto;display:flex;justify-content:center}
html body .doc-viewer-body iframe{width:100%;height:100%;border:0;background:var(--panel)}
html body .doc-viewer-body img{max-width:100%;height:auto;align-self:flex-start}


html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-bar{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;margin:12px 0 10px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage,#staffPage) .inv-tabs{display:flex;gap:6px;flex-wrap:wrap}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-tab{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:1px solid var(--ui-line);border-radius:8px;background:var(--panel);color:var(--ui-ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-tab small{color:var(--muted);font-weight:600}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-tab em{font-style:normal;font-size:11.5px;font-weight:700;padding:1px 7px;border-radius:4px;background:var(--panel2);color:var(--warn)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-tab.is-active{background:var(--ui-azure);border-color:var(--ui-azure);color:var(--on-accent)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-tab.is-active small{color:var(--ui-tint)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table{width:100%;border-collapse:collapse;font-size:14px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table th{text-align:left;font-size:12px;font-weight:700;color:var(--muted);padding:6px 8px;white-space:nowrap}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table td{padding:6px 8px;vertical-align:middle}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table input,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table select,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-add input,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-add select,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-order-opts input{height:34px;min-height:34px;padding:0 8px;border:1px solid var(--ui-line);border-radius:6px;background:var(--panel);font:inherit;font-size:14px;color:var(--text);box-sizing:border-box;width:100%}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-num{width:78px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-unit{width:64px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table-wrap{}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-step{display:inline-flex;align-items:center;gap:4px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-step input{width:70px;text-align:center;font-weight:700}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-step .btn{width:32px;min-width:32px;padding:0}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-chip{display:inline-block;padding:3px 9px;border-radius:4px;font-size:12.5px;font-weight:700;white-space:nowrap}
/* Analisi: schede per categoria con barre (preferiti / meno preferiti), stesso stile delle schede della gestione */
#analysisPage .inv-kpi{cursor:default}
#analysisPage .inv-kpi.is-ok{border-color:var(--box-line);background:var(--box-bg)}
#analysisPage .inv-kpi.is-ok b{color:var(--ok)}
#analysisPage .top .actions .inv-chip{font-size:12.5px}
.an-stats{display:flex;flex-wrap:wrap;gap:6px}
.an-stats span{color:var(--muted);font-size:12.5px;font-weight:600}
.an-stats b{color:var(--text)}
.an-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px}
.an-bars{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.an-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(70px,1fr) auto;align-items:center;gap:10px;font-size:13.5px;color:var(--ui-ink)}
.an-row.is-link{cursor:pointer;padding:3px 6px;margin:0 -6px;border-radius:6px}
.an-row.is-link:hover,.an-row.is-link:focus-visible{background:var(--panel2);outline:none}
.an-row-name{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0}
.an-row-name>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.an-row-name .inv-chip{font-size:11px;padding:1px 6px}
.an-track{position:relative;height:10px;border-radius:5px;background:var(--panel2)}
.an-fill{position:absolute;left:0;top:0;bottom:0;border-radius:5px;background:var(--ui-azure)}
.an-fill.is-top{background:var(--ok)}
.an-fill.is-low{background:var(--warn)}
.an-med{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:1px;background:var(--text);opacity:.45}
.an-row-val{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:96px;font-variant-numeric:tabular-nums}
.an-row-val b{color:var(--text)}
.an-row-val .inv-chip{min-width:44px;text-align:center}

.an-empty{margin:2px 0;padding:10px 12px;border-radius:6px;background:var(--panel2);color:var(--muted);font-size:13px}
.an-rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:12px 0}
.an-rule-grid p{margin:0;font-size:13px;line-height:1.45;color:var(--muted)}




@media (max-width:900px){.an-grid{grid-template-columns:1fr}}
@media (max-width:560px){.an-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}.an-track{grid-column:1/-1;grid-row:2}}
.price-sugg{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px;font-size:12.5px;color:var(--muted,#667)}
.price-sugg b{color:var(--text,inherit);font-weight:600}
.price-sugg .btn.small{padding:2px 10px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-chip.is-ok{background:var(--panel2);color:var(--ok)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-chip.is-low{background:var(--panel2);color:var(--warn)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-chip.is-out{background:var(--panel2);color:var(--bad)}
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .inv-chip.is-off{background:var(--panel2);color:var(--muted)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-row.is-out td:first-child{border-left:4px solid var(--bad)}
html body :is(#inventoryPage,#invItemsPanel) .inv-row.is-off td:first-child{border-left:4px solid var(--ui-line-hover)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-row.is-low td:first-child{border-left:4px solid var(--warn)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-empty{text-align:center;padding:20px 8px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-add{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(70px,.7fr)) minmax(70px,.6fr) minmax(130px,1fr) auto;gap:10px;align-items:end;margin-top:14px;padding-top:14px;border-top:1px dashed var(--line)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-add .field{margin:0}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-order-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:10px 0 14px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-ok{padding:12px 14px;border-radius:6px;background:var(--panel2);color:var(--ok);font-weight:600}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-group{margin-top:14px;padding:14px;border:1px solid var(--ui-line);border-radius:8px;background:var(--panel)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-group-head{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin-bottom:8px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-group-head strong{font-size:16px;color:var(--text)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-lines{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-lines li{display:grid;grid-template-columns:minmax(160px,1.4fr) minmax(0,1.6fr) 84px auto;gap:8px 12px;align-items:center;padding:6px 8px;border-radius:6px;background:var(--panel2)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-lines label{display:flex;gap:8px;align-items:center;font-weight:600;color:var(--text)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-lines label input{width:auto;height:auto}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-unit-txt{font-size:13px;color:var(--muted)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-msg{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--ui-line);border-radius:6px;font:inherit;font-size:14px;line-height:1.45;color:var(--text);resize:vertical}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-send{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
@media(max-width:900px){html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-add{grid-template-columns:1fr 1fr}html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-lines li{grid-template-columns:1fr 84px auto}html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-lines li small{grid-column:1/-1;order:3}html body #documentsPage .doc-actions{grid-template-columns:1fr}}
@media print{html body .doc-viewer-bar{display:none}}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-hint{margin:0 0 8px;font-size:12.5px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-name{min-width:210px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-name .inv-alt{margin-top:4px;height:28px;min-height:28px;font-size:12.5px;color:var(--muted);font-style:italic;border-style:dashed}

html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table td.num,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table th.num{text-align:right;font-variant-numeric:tabular-nums}




html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) #invUsage .service-enabled{display:flex;align-items:center;gap:8px;font-size:13.5px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-lines li.needs-pack{grid-template-columns:minmax(160px,1.4fr) minmax(0,1.6fr);background:var(--panel2);border:1px solid var(--warn)}


html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-pack-fam{display:flex;align-items:center;gap:6px;font-weight:500;font-size:13px;color:var(--muted)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-pack-fam input{width:auto;height:auto}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-warn{margin:0 0 10px;padding:8px 12px;border-radius:6px;background:var(--panel2);color:var(--warn);font-size:13.5px;font-weight:600}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table input.is-missing{border-color:var(--warn);background:var(--panel2)}

/* Inventario v2: panoramica, ubicazioni, conteggio */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpi{display:flex;flex-direction:column;gap:2px;align-items:flex-start;padding:12px 14px;border:1px solid var(--ui-line);border-radius:8px;background:var(--box-bg);color:var(--ui-ink);font:inherit;text-align:left;cursor:pointer}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpi:disabled{cursor:default;opacity:1}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpi b{font-size:26px;line-height:1.1;font-weight:700;color:var(--text)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpi span{font-size:12.5px;color:var(--muted);font-weight:600}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpi.is-warn{border-color:var(--box-line);background:var(--box-bg)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpi.is-warn b{color:var(--warn)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpi.is-info{border-color:var(--ui-line-hover);background:var(--panel2)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpi.is-info b{color:var(--ui-tint-ink)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-kpi.is-total{cursor:default;background:var(--panel2)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-places{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin:0 0 14px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--ui-line);border-radius:8px;background:var(--box-bg)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place.is-active{border-color:var(--ui-azure);box-shadow:0 0 0 2px var(--ui-tint)}

html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place-name{font:inherit;font-size:15px;font-weight:700;color:var(--text);border:0;border-bottom:1px dashed transparent;background:transparent;padding:0;height:auto;width:100%}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) input.inv-place-name:hover,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) input.inv-place-name:focus{border-bottom-color:var(--ui-line);outline:none}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place-num{font-size:13px;color:var(--ui-ink)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place-st{font-size:12.5px;color:var(--muted)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place-st b{color:var(--warn)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place-st .ok{color:var(--ok)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place-act{display:flex;gap:6px;margin-top:4px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place-add{align-items:center;justify-content:center;border-style:dashed;background:transparent;color:var(--ui-tint-ink);font:inherit;font-weight:600;cursor:pointer;min-height:90px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-toggle{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--ui-ink);cursor:pointer}

html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-addbox{margin-top:12px;border:1px solid var(--ui-line);border-radius:8px;background:var(--panel);padding:0 14px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-addbox>summary{cursor:pointer;padding:12px 0;font-weight:600;color:var(--ui-tint-ink)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-addbox .inv-add{margin:0 0 14px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-countpanel{margin:12px 0;padding:14px;border:1px solid var(--ui-azure);border-radius:8px;background:var(--panel)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-countpanel .inv-num{width:84px;text-align:right}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-delta{font-weight:700;white-space:nowrap}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-delta.is-neg{color:var(--bad)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-delta.is-pos{color:var(--ok)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-deliv{margin-bottom:16px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place input.inv-place-name:not(#_){border:0;border-bottom:1px dashed transparent;border-radius:0;background:transparent;box-shadow:none;padding:0;height:auto;min-height:0;font-size:15px;font-weight:700;color:var(--text)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place input.inv-place-name:not(#_):hover,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place input.inv-place-name:not(#_):focus{border-bottom-color:var(--ui-line-hover);outline:none}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place input.inv-place-name{border:0!important;border-bottom:1px dashed transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;height:auto!important;min-height:0!important}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place input.inv-place-name:hover,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place input.inv-place-name:focus{border-bottom-color:var(--ui-line-hover)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-round{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;margin:0 0 12px;padding:10px 14px;border:1px solid var(--ui-line);border-radius:8px;background:var(--panel)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-round.is-due{border-color:var(--ui-line-hover);background:var(--panel2)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-round-main{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-round-act{display:flex;flex-wrap:wrap;gap:6px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-round-days{display:flex;gap:var(--gap-ctl)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place.is-due{box-shadow:inset 0 0 0 1px var(--ui-line-hover)}

html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-note{margin:0 0 12px;padding:14px;border:1px solid var(--ui-line);border-radius:8px;background:var(--panel)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-note-img{display:block;max-width:100%;max-height:320px;margin-top:10px;border-radius:8px;border:1px solid var(--ui-line)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-note-img.is-small{max-height:140px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-count-note{margin:6px 0 0;color:var(--ui-ink);font-weight:600}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-hist{margin-top:12px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-hist>summary{cursor:pointer;font-weight:600;color:var(--ui-tint-ink);padding:6px 0}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-docs{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-doc{display:inline-flex;align-items:center;gap:2px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-doc-x{width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:16px;line-height:1;cursor:pointer}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-doc-x:hover{background:var(--panel2);color:var(--bad)}

/* Inventario: correzioni di layout (intestazioni che vanno a capo, conteggio scorrevole, colonna nome più larga) */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .top{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:space-between;align-items:flex-start}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .top>div:first-child{flex:1 1 320px;min-width:0}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .top .actions{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-countpanel .inv-table-wrap{max-height:68vh;overflow:auto}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-countpanel .inv-table thead th{position:sticky;top:0;background:var(--panel);z-index:1}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table td.inv-name{width:34%;min-width:240px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-place-name:not(input){display:block;font-size:15px;font-weight:700;color:var(--text)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-group-head .btn{margin-left:auto}



/* Documenti › Checklist di servizio (editor delle liste) */


html body #settingsPage .ck-ed header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin-bottom:10px}
html body #settingsPage .ck-ed .ck-ed-name{flex:1 1 200px;min-width:0;font-weight:700;color:var(--text)}

html body #settingsPage .ck-ed-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
html body #settingsPage .ck-ed-list li.ck-edit{display:flex;align-items:center;gap:6px}
html body #settingsPage .ck-ed-list li.ck-edit input{flex:1 1 auto;min-width:0}
html body #settingsPage .ck-ed-list .ck-day{flex:none;font-size:11.5px;color:var(--muted)}
html body #settingsPage .ck-ed-list .ck-edit-act{display:inline-flex;gap:var(--gap-ctl);flex:none}
html body #settingsPage .ck-ed-foot{margin-top:10px}
html body #settingsPage .ck-ed .ck-hist{margin-top:10px;font-size:12.5px}
html body #settingsPage .ck-ed .ck-hist ul{list-style:none;margin:6px 0;padding:0;display:grid;gap:2px}
html body #settingsPage .ck-ed .ck-hist li{display:flex;gap:10px;align-items:baseline}
html body #settingsPage .ck-ed .ck-hist .ck-miss{color:var(--warn)}
html body #settingsPage .ck-ed .ck-hist .ck-full{color:var(--ok)}
@media(max-width:560px){html body #settingsPage .ck-ed-list li.ck-edit{flex-wrap:wrap}html body #settingsPage .ck-ed-list li.ck-edit input{flex-basis:100%}}

/* == css/ui/40-today-and-service.css == */
/* Pagina Oggi */







html body #todayPage .td-bar{display:block;background:var(--ui-tint);overflow:hidden}
html body #todayPage .td-bar i{display:block;height:100%;background:var(--ui-azure);border-radius:3px}





html body #todayPage .td-chip{vertical-align:middle;}


.rv-tag.rv-tag-allergy{background:var(--box-bg-2);color:var(--bad);font-weight:700}
.allergy-line{color:var(--bad)}
html body #todayPage .td-allergy{font-size:14px}


/* Costo bevande (Fatturato) */
html body #revenueCostsPanel .top{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:space-between;align-items:flex-start}
html body #revenueCostsPanel .top .actions{display:flex;align-items:center;gap:8px}
html body #revenueCostsPanel .cost-target{font-size:13px;font-weight:600;color:var(--muted)}
html body #revenueCostsPanel .inv-num{width:70px;height:34px;padding:0 8px;border:1px solid var(--ui-line);border-radius:6px;text-align:right}
html body #revenueCostsPanel .cost-cols{display:grid;gap:16px;margin-top:12px}

html body #revenueCostsPanel .is-low-margin{color:var(--bad)}
html body #revenueCostsPanel .td-list{list-style:none;margin:0 0 10px;padding:0}
html body #revenueCostsPanel .td-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid var(--panel2)}
html body #revenueCostsPanel .inv-warn{margin:8px 0;padding:10px 12px;border-radius:8px;background:var(--box-bg);color:var(--warn);font-size:13.5px}
html body #revenueCostsPanel .inv-ok{margin:8px 0;padding:12px 14px;border-radius:8px;background:var(--panel2);color:var(--text)}

/* Timeline: orari e scritte più leggibili, tavoli bloccati in rosso, riassetto in arancione */
html body #timelineContent .timeline-hours span:not(#_){font-size:13px;font-weight:600;color:var(--muted)}
html body #timelineContent .timeline-hours:not(#_){height:42px}
html body #timelineContent .timeline-hours span:not(#_){top:11px}
html body #timelineContent .timeline-booking :is(.tl-time,.tl-actual,.tl-name,.tl-meta):not(#_){font-size:13px}
html body #timelineContent .tl-table-name b:not(#_){font-size:14px}
html body #timelineContent .tl-table-name small:not(#_){font-size:12px}
html body #timelineContent .timeline-area-row strong:not(#_){font-size:13px}
html body #timelineContent .timeline-area-row span:not(#_){font-size:12.5px}
html body #timelineContent .tl-granted span:not(#_){font-size:11.5px}
html body #timelineContent .timeline-track-blocked:not(#_){background:repeating-linear-gradient(135deg,var(--panel2) 0 8px,color-mix(in srgb,var(--bad) 18%,var(--panel2)) 8px 16px)}
html body #timelineContent .tl-reset{position:absolute;box-sizing:border-box;z-index:0;pointer-events:none;border:1px dashed color-mix(in srgb,var(--warn) 65%,transparent);border-radius:3px;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--warn) 16%,transparent) 0 6px,color-mix(in srgb,var(--warn) 30%,transparent) 6px 12px);display:flex;align-items:center;justify-content:center;}
html body #timelineContent .tl-reset span{font-size:11.5px;font-weight:700;color:var(--warn);white-space:nowrap;font-variant-numeric:tabular-nums}
html body #timelineContent .tl-reset:not(#_){overflow:visible}
html body #timelineContent .tl-reset span:not(#_){position:relative;z-index:1;padding:0 3px;border-radius:3px;background:var(--panel)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-group-row td{padding:10px 8px 6px;background:var(--panel2);border-bottom:1px solid var(--line);color:var(--text);font-size:13.5px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-group-row .muted{margin-left:6px;font-size:12.5px}


/* Dopo il servizio: tre passi (chiusura, rapporto, personale) */

html body #todayPage .td-step:last-child{margin-bottom:0}
html body #todayPage .sr-grid{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:700px){html body #todayPage .sr-grid{grid-template-columns:1fr 1fr}}
html body #todayPage .sr-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
html body #todayPage .sr-actions .muted{margin-right:auto;font-size:13px}

/* == css/ui/41-inventory-and-orders.css == */
/* Inventario v3: in arrivo, scadenze, consegne fornitori, ordine minimo, conteggio veloce */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-chip.is-incoming{background:var(--ui-tint);color:var(--azure-ink)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-row.is-incoming td:first-child{border-left:4px solid var(--azure)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-exp{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-exp.is-warn{color:var(--warn);font-weight:700}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-exp.is-out{color:var(--bad);font-weight:700}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-countpanel .inv-exp{display:inline;margin-left:6px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table input.inv-date{width:140px}


html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .sup-next{color:var(--muted)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .sup-next.is-urgent,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .inv-deadline.is-urgent{color:var(--warn);font-weight:700}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-deadline{font-size:13px;color:var(--muted);font-weight:600}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-deadline.is-late{color:var(--bad);font-weight:700}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-minorder{margin:8px 0}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-okline{margin:8px 0;font-size:13px;color:var(--ok);font-weight:600}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-suggest{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-suggest small{color:var(--muted);font-weight:600;margin-left:4px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .cnt-tools{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:4px 0 10px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .cnt-tools .search-field{flex:1 1 260px}

html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .cnt-step{display:inline-flex;align-items:center;gap:4px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .cnt-step .btn{width:30px;min-width:30px;padding:0}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-countpanel .cnt-step .inv-num{width:70px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-countpanel tr.cnt-row.is-done td:first-child{color:var(--ok)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-countpanel tr.cnt-row.is-done{background:var(--panel2)}
html body #todayPage .td-urgent{color:var(--warn);font-weight:700}
/* giorni selezionati (giro di controllo, consegne fornitori): sempre ben visibili */
html body main .inv-round-days:not(#_){display:inline-flex;flex-wrap:wrap;gap:var(--gap-ctl)}
html body main .inv-daychip:not(#_):not(#__){height:28px;min-height:0;min-width:38px;padding:0 8px;border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel)!important;color:var(--text)!important;font-size:12.5px!important;font-weight:600!important;box-shadow:none!important}
html body main .inv-daychip.is-on:not(#_):not(#__){background:var(--ui-tint)!important;border-color:var(--ui-azure)!important}

/* Rotture e scarti */
html body #invBreakPanel .top{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:space-between;align-items:flex-start}
html body #invBreakPanel .top>div:first-child{flex:1 1 320px;min-width:0}
html body #invBreakPanel .brk-date{display:flex;align-items:center;gap:8px}
html body #invBreakPanel .brk-date label{font-size:13px;font-weight:600;color:var(--muted)}
html body #invBreakPanel .brk-date input{height:34px;padding:0 8px;border:1px solid var(--ui-line);border-radius:0}


html body #invBreakPanel .cnt-step{display:inline-flex;align-items:center;gap:4px}
html body #invBreakPanel .cnt-step .btn{width:32px;min-width:32px;padding:0}
html body #invBreakPanel .cnt-step .inv-num{width:64px;height:34px;padding:0 8px;border:1px solid var(--ui-line);border-radius:0;text-align:center}
html body #invBreakPanel .brk-note input{width:100%;height:34px;padding:0 10px;border:1px solid var(--ui-line);border-radius:0}


html body #invBreakPanel .inv-hist{margin-top:10px}
html body #invBreakPanel .inv-hist>summary{cursor:pointer;font-weight:600;color:var(--ui-tint-ink);padding:6px 0}


html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-row-act{display:flex;gap:6px;align-items:center}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-waste-row td{background:var(--panel2);border-bottom:1px solid var(--line)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .waste-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:13px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .waste-form label{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-weight:600}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .waste-form select{width:auto}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-archived .inv-table{width:100%}

/* Listino prezzi */
html body #invPricePanel .top{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:space-between;align-items:flex-start}
html body #invPricePanel .top>div:first-child{flex:1 1 320px;min-width:0}
html body #invPricePanel .price-text{width:100%;box-sizing:border-box;margin-top:12px;font:13px/1.45 ui-monospace,Consolas,monospace;resize:vertical}


html body #invPricePanel .price-val{text-align:right}





html body #invPricePanel .price-cat{min-width:0;width:100%;box-sizing:border-box;font-size:12px}

html body #invPricePanel .price-num{font-size:13px;text-align:right;white-space:nowrap}
html body #invPricePanel .price-num small{color:var(--muted)}
html body #invPricePanel .price-item.is-none{border-style:dashed}
html body #invPricePanel .price-div,html body #invPricePanel .price-vat{text-align:right}


html body .inv-margin{display:block;font-size:12px;color:var(--muted)}
/* Inventario più compatto: pannelli secondari comprimibili, tabelle con scorrimento interno e righe più basse */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-collapsible .top h2,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-collapsible .top h3{cursor:pointer;user-select:none}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-collapsible .top h2::before,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-collapsible .top h3::before{content:"▾";display:inline-block;width:1.1em;color:var(--muted)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-collapsible.is-collapsed .top h2::before,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-collapsible.is-collapsed .top h3::before{content:"▸"}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-collapsible.is-collapsed .top ~ *,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-collapsible.is-collapsed .top p.muted{display:none !important}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-collapsible.is-collapsed{padding-top:10px;padding-bottom:10px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table-wrap{max-height:68vh;overflow:auto}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table-wrap thead th{position:sticky;top:0;z-index:2;background:var(--panel2)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table td{padding-top:3px !important;padding-bottom:3px !important}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table input:not([type=checkbox]),html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table select{height:30px !important;min-height:30px !important;padding-top:0 !important;padding-bottom:0 !important;font-size:13px !important}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .btn.small{height:26px !important;min-height:26px !important;padding:0 10px !important}


html body #invPricePanel .price-more{margin:8px 0 0}
/* Dettagli dell'inventario: i campi secondari vanno in una seconda riga, senza scorrimento orizzontale */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-det-row td{padding:2px 8px 8px;}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-det{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:flex-end}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-f{display:flex;flex-direction:column;gap:2px;font-size:11px;color:var(--muted)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-f span{font-weight:600}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-f input,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-f select{width:86px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-f-wide input,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-f-wide select{width:140px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-f.inv-orderable input{width:auto;height:20px;min-height:0}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-det .inv-row-act{margin-left:auto;display:flex;gap:6px;align-items:center}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table-wrap{overflow-x:hidden}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main{table-layout:fixed}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main tr.inv-row td:nth-child(n+5):nth-child(-n+8) .inv-num{width:100%;min-width:0;padding:0 5px;text-align:right}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(n+5):nth-child(-n+8){text-align:right;white-space:normal;line-height:1.15}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-cost .inv-num{font-weight:700;color:var(--azure-ink)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(1){}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-step input{min-width:0;flex:0 0 64px;padding:0 4px;text-align:center;-moz-appearance:textfield}
html body .inv-table .inv-step input::-webkit-inner-spin-button,html body .inv-table .inv-step input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-step .btn{flex:0 0 22px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main td select{padding:0 2px;text-overflow:ellipsis;min-width:0}html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(n+5):nth-child(-n+8){font-size:10.5px;padding-left:3px;padding-right:3px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-cost .is-missing{border-color:var(--warn);background:var(--panel2)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-step{gap:3px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-step input{width:52px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-step .btn{width:28px;min-width:28px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-chip{white-space:normal}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table td{overflow:hidden}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table td.inv-name small{display:block;white-space:normal}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-name input{min-width:0}
/* Listino: due righe per voce{min-width:0;grid-template-columns:60px minmax(0,1fr) 128px 72px 54px auto;grid-template-areas:"id name cat val vat act" ". item item div sold sold";row-gap:3px;padding:5px 0}
html body #invPricePanel .price-id{grid-area:id}
html body #invPricePanel .price-name{grid-area:name}
html body #invPricePanel .price-cat{grid-area:cat}
html body #invPricePanel .price-val{grid-area:val}
html body #invPricePanel .price-vat{grid-area:vat}
html body #invPricePanel .price-item{grid-area:item}
html body #invPricePanel .price-div{grid-area:div}
html body #invPricePanel .price-num{grid-area:sold}
html body #invPricePanel .price-act{grid-area:act}



/* ===== Stile globale dell'app per le sezioni nuove (Listino, Costi, Dettagli): vetro,raggi ampi,html body .cost-stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:14px 0}
html body .cost-stats .stat{margin:0;padding:14px 16px}
html body .cost-stats .stat strong{font-size:26px}
html body .cost-stats .stat.is-warn strong{background:none;-webkit-text-fill-color:var(--warn);color:var(--warn)}
html body .fc-pill{display:inline-block;padding:2px 9px;border-radius:0;font-size:12.5px;font-weight:700;white-space:nowrap}
html body .fc-pill.is-ok{background:var(--panel2);color:var(--ok)}
html body .fc-pill.is-warn{background:var(--panel2);color:var(--warn)}
html body .fc-pill.is-high{background:var(--panel2);color:var(--bad)}
html body #revenueCostsPanel .cost-chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}
html body #revenueCostsPanel h4{margin:18px 0 6px;font-size:14px;font-weight:700;color:var(--control-text)}











html body #invPricePanel .price-name{font-weight:650}
html body #invPricePanel .price-recipe{background:var(--panel);border:1px solid var(--ui-line);border-left:4px solid var(--ui-azure);border-radius:0;box-shadow:none;padding:14px 16px} /* come i riquadri della gestione (angoli 8 px, senza ombra); il bordo azzurro lega l'editor alla sua voce */
html body #invPricePanel .recipe-head strong{font-size:15px;color:var(--text)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-det-row td{background:var(--panel2);border-bottom:1px solid var(--line)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-f span{text-transform:uppercase;letter-spacing:.04em;font-size:10.5px}
html body #pricelistPage .inv-tab{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:1px solid var(--ui-line);border-radius:0;background:var(--panel);color:var(--ui-ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
html body #pricelistPage .inv-tab small{color:var(--muted);font-weight:600}
html body #pricelistPage .inv-tab.is-active{background:var(--ui-azure);border-color:var(--ui-azure);color:var(--on-accent)}
html body #pricelistPage .inv-tab.is-active small{color:var(--ui-tint)}
html body #pricelistPage .inv-warn{padding:6px 10px;border-radius:0;background:var(--panel2);color:var(--warn);font-size:13px;font-weight:600}
html body #pricelistPage .inv-num{width:100%}
html body #revenueCostsPanel .cost-chips{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:8px 0}




html body #revenueCostsPanel .cost-sort{margin-left:auto;font-size:13px}
html body #revenueCostsPanel .cost-detail .inv-table{width:100%;}html body #revenueCostsPanel .cost-detail .inv-table th,html body #revenueCostsPanel .cost-detail .inv-table td{padding:6px 7px;font-size:12.5px}html body #revenueCostsPanel .cost-cols{grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr))}html body #revenueCostsPanel .inv-table-wrap{overflow-x:hidden}html body #revenueCostsPanel .inv-table td,html body #revenueCostsPanel .inv-table th{padding:6px 7px}
html body #revenueCostsPanel .cost-detail thead th{position:sticky;top:0;}
html body #invPricePanel .price-act{display:flex;gap:6px;justify-content:flex-end}
html body #invPricePanel .price-act .is-on{border-color:var(--azure);color:var(--azure-ink)}
html body #invPricePanel .price-recipe{margin:2px 0 10px;padding:12px 14px;border-radius:0;min-width:0}
html body #invPricePanel .recipe-head{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
html body #invPricePanel .recipe-line{display:grid;grid-template-columns:minmax(180px,1fr) 72px 64px 150px 84px;gap:10px;align-items:center;padding:3px 0}
.recipe-line .recipe-unit{align-self:center;line-height:1.2}
html body #invPricePanel .recipe-line .price-num{text-align:right}
html body #invPricePanel .recipe-line input{min-width:0;width:100%;box-sizing:border-box}
/* il costo dell'ingrediente resta in fondo alla riga (la regola della tabella gli dava l'area «sold») */
html body #invPricePanel .recipe-line .price-num{grid-area:auto}
html body #invPricePanel .recipe-line .recipe-qty{width:100%}
html body #invPricePanel .recipe-item.is-pending{border-style:dashed;border-color:var(--warn);background:var(--panel2)}
html body #invPricePanel .recipe-size{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap}
html body #invPricePanel .recipe-size input{width:64px}
html body #invPricePanel .recipe-unit{font-size:12px;color:var(--muted)}
html body #invPricePanel .recipe-foot{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:8px;font-size:13px}
.recipe-acts{display:flex;gap:8px;margin-left:auto}
@media(max-width:900px){html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table-wrap{overflow-x:auto}html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table{table-layout:auto}html body #invPricePanel .price-cat,html body #invPricePanel .price-vat,html body #invPricePanel .price-item,html body #invPricePanel .price-div,html body #invPricePanel .price-num{display:none}}
html body #revenueCostsPanel .cost-goals>summary{list-style:none;display:inline-flex;align-items:center;cursor:pointer}
html body #revenueCostsPanel .cost-goals{}

html body #revenueCostsPanel .rec-up{color:var(--azure-ink)}
html body #revenueCostsPanel .rec-delta{color:var(--warn);font-weight:700}
html body #revenueCostsPanel .rec-cell{white-space:normal}

/* Inventario: righe bloccate (si legge come testo) e riga in modifica evidenziata */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr:not(.is-editing) input:disabled,html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr:not(.is-editing) select:disabled{border-color:transparent;background:transparent;box-shadow:none;color:var(--control-text);-webkit-text-fill-color:var(--control-text);opacity:1;cursor:default;appearance:none;-webkit-appearance:none;padding-left:2px;text-overflow:ellipsis}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr.inv-row:not(.is-editing) .inv-step .btn:disabled{display:none !important}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr.inv-row:not(.is-editing) .inv-step input:disabled{font-weight:700;text-align:left;width:auto;flex:1 1 auto}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr.inv-row:not(.is-editing) .inv-name input{font-weight:650}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr.inv-row:not(.is-editing) .inv-alt{display:none}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr:not(.is-editing) input.is-missing:disabled{background:var(--panel2);border-color:var(--warn)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr.is-editing td{background:color-mix(in srgb,var(--azure) 7%,transparent)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr.is-editing td:first-child{box-shadow:inset 4px 0 0 var(--ui-azure)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr.is-editing+tr.inv-det-row td{background:color-mix(in srgb,var(--azure) 7%,transparent)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-state{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:4px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-edit-actions{display:inline-flex;gap:6px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-edit-btn{opacity:.85}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr.inv-row:hover .inv-edit-btn{opacity:1;border-color:var(--ui-azure);color:var(--ui-tint-ink)}html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-name-text{display:block;line-height:1.25;padding:4px 2px;word-break:break-word}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-ro{display:block;padding:4px 2px;font-size:13px;line-height:1.25;color:var(--control-text);word-break:break-word}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-ro.is-ph{color:var(--muted);font-style:italic}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-ro.is-missing{color:var(--warn);font-weight:700}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-step .inv-ro{font-weight:700;font-size:14px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table td.inv-cost .inv-ro{font-weight:700;color:var(--azure-ink)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main tr.inv-row td:nth-child(n+5):nth-child(-n+8) .inv-ro{text-align:right}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-det .inv-ro{min-width:60px;padding:6px 2px}


html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-col-bar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between;margin:6px 0 8px;padding:10px 14px;border-radius:0;font-size:13px;color:var(--control-text)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-col-actions{display:inline-flex;gap:8px}html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table thead th{white-space:normal;vertical-align:bottom;line-height:1.2}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table thead .th-in{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:5px;min-height:26px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main thead th:nth-child(n+5):nth-child(-n+8) .th-in{align-items:flex-end}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main thead th:nth-child(n+5):nth-child(-n+8) .th-in>span{text-align:right}


/* ===== Secondo giro di stile: le sezioni nuove come Dashboard e Timeline (titoli, schede bianche con barra a sinistra, nomi in azzurro) ===== */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .panel .top h3,html body #pricelistPage .panel .top h3,html body #revenueCostsPanel .top h3{font-size:21px !important;font-weight:650 !important;letter-spacing:-.315px;color:var(--text) !important;margin:0 0 6px !important}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .panel h4,html body #pricelistPage .panel h4,html body #revenueCostsPanel h4{font-size:15px;font-weight:700;color:var(--text);letter-spacing:-.1px;margin:18px 0 8px}



html body #invPricePanel .price-recipe{background:var(--panel);border:0;border-left:4px solid var(--ui-azure);box-shadow:var(--sh-sm),0 0 0 1px var(--line)}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .inv-name-text{color:var(--azure-ink);font-weight:800;font-size:14px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-col-bar{background:var(--panel);border:0;box-shadow:var(--sh-md),0 0 0 1px var(--line)}
html body #revenueCostsPanel .cat-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin:6px 0 4px}
html body #revenueCostsPanel .cat-card{display:grid;gap:6px;padding:11px 12px;background:var(--panel);}
html body #revenueCostsPanel .cat-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
html body #revenueCostsPanel .cat-head b{font-size:15px;font-weight:800;color:var(--azure-ink)}
html body #revenueCostsPanel .cat-meta{font-size:12px;color:var(--muted)}
html body #revenueCostsPanel .cat-nums{display:flex;gap:16px}
html body #revenueCostsPanel .cat-nums span{display:grid;gap:1px}
html body #revenueCostsPanel .cat-nums small{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
html body #revenueCostsPanel .cat-nums strong{font-size:16px;font-weight:800;color:var(--text)}
html body #revenueCostsPanel .cat-card[data-cat="aperitivi"]{}

/* Mix delle bevande: risultato in diretta, ambito delle modifiche, valori concreti */
html body .revenue-mix-live{position:sticky;top:8px;z-index:3;display:grid;grid-template-columns:repeat(3,minmax(0,auto)) minmax(0,1fr);gap:10px 22px;margin:12px 0 0;padding:12px 16px;border:1px solid color-mix(in srgb,var(--azure) 28%,transparent);border-radius:0;background:var(--panel);box-shadow:var(--sh-sm)}
html body .revenue-mix-live>div{display:flex;flex-direction:column;gap:2px;min-width:0}
html body .revenue-mix-live small{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
html body .revenue-mix-live strong{font-size:18px;font-variant-numeric:tabular-nums;color:var(--text)}
html body .revenue-mix-live span{font-size:12px}
html body .revenue-mix-live .rv-live-goal span{font-size:14px}
html body .revenue-mix-live .is-gap b{color:var(--bad)}
html body .revenue-mix-live .is-ok b{color:var(--ok)}
html body .revenue-mix-controls{display:block}
html body .revenue-mix-controls .rv-mix-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-bottom:12px}
html body .revenue-mix-controls .rv-mix-scope{display:inline-flex;gap:4px;padding:3px;border-radius:0;background:color-mix(in srgb,var(--azure) 8%,transparent)}
html body .revenue-mix-controls .rv-mix-scope .btn{border:0;background:transparent;box-shadow:none;color:var(--muted)}
html body .revenue-mix-controls .rv-mix-scope .btn.is-active{background:var(--panel);color:var(--azure-ink);box-shadow:var(--sh-sm)}
html body .revenue-mix-controls .rv-mix-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
html body .revenue-mix-controls .rv-mix-hint{font-size:12px}
html body .revenue-mix-controls .rv-mix-note{flex-basis:100%;margin:0;font-size:12px}
html body .revenue-mix-controls .rv-mix-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:16px 18px}
html body .revenue-mix-controls .rv-mix-grid label{display:grid;gap:var(--gap-label);min-width:0}
html body .revenue-mix-controls .rv-mix-grid input[type=range]{margin:0}
html body .revenue-mix-controls .rv-mix-grid label>span{display:flex;justify-content:space-between;gap:12px;font-size:13px}
html body .revenue-mix-controls output.is-day{padding:0 6px;border-radius:0;background:var(--panel2);color:var(--warn)}
html body .revenue-mix-controls .rv-mix-info{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
@media(max-width:900px){html body .revenue-mix-controls .rv-mix-grid{grid-template-columns:1fr}}
html body .rv-price-table input.rv-price-in{width:110px!important;max-width:110px;text-align:right}
html body .rv-price-table td small{font-weight:400;margin-left:6px}
/* Impostazioni › Fornitori: schede come «Orari», etichetta sopra ogni campo */
html body #invSuppliers>h2{margin:0 0 4px}
html body #invSuppliers>p.muted{margin:0 0 14px;max-width:820px}
html body #invSuppliers .sup-card{padding:16px 18px;margin:12px 0}
html body #invSuppliers .sup-card .service-card-head h3{font-size:17px}
html body #invSuppliers .sup-grid{gap:12px 14px;align-items:start}
html body #invSuppliers .sup-grid .field{min-width:0;margin:0}
html body #invSuppliers .sup-grid .field label{font-size:12.5px;font-weight:650;color:var(--muted);margin-bottom:0}
html body #invSuppliers .sup-grid input,html body #invSuppliers .sup-grid select{width:100%;min-width:0;box-sizing:border-box}
html body #invSuppliers .sup-hint{display:block;margin-top:4px;font-size:11.5px;color:var(--muted);line-height:1.3}
html body #invSuppliers .sup-min{display:flex;gap:var(--gap-ctl)}
html body #invSuppliers .sup-min input{flex:1 1 auto}
html body #invSuppliers .sup-min select{flex:0 0 84px;width:84px}
html body #invSuppliers .service-weekdays{margin:2px 0 12px}
html body #invSuppliers .service-weekdays strong{display:block;font-size:12.5px;color:var(--muted);margin-bottom:6px}
html body #invSuppliers .sup-next{margin:12px 0 0;padding:8px 12px;border-radius:0;background:color-mix(in srgb,var(--azure) 7%,transparent);font-size:13px;color:var(--muted)}
html body #invSuppliers .sup-next.is-urgent{background:var(--panel2);color:var(--warn)}
@media(max-width:600px){html body #invSuppliers .sup-card .service-card-head .actions{flex-wrap:wrap}}
@media(max-width:900px){html body #invSuppliers .sup-grid{}html body #invSuppliers .sup-card .service-card-head .actions{flex-wrap:wrap}}
html body #invSuppliers .sup-grid{grid-template-columns:repeat(4,minmax(0,1fr))}


@media(max-width:900px){html body #invSuppliers .sup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html body #invSuppliers .sup-grid{grid-template-columns:minmax(0,1fr)}}
/* Rotture collegate al magazzino: stato verso il riordino,allerta{display:block;font-size:11.5px;font-weight:400;color:var(--muted);margin-top:2px}


html body #invBreakPanel .brk-alert{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin:10px 0;padding:10px 14px;border:1px solid var(--warn);border-radius:0;background:var(--panel2)}
html body #invBreakPanel .brk-alert>div{display:flex;flex-direction:column;gap:2px;min-width:0}
html body #invBreakPanel .brk-alert strong{color:var(--warn)}
html body #invBreakPanel .brk-alert span{font-size:13px;color:var(--text)}
html body .rv-losses{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 14px;margin:10px 0 4px;padding:10px 14px;border-radius:0;background:var(--panel2);border:1px solid var(--bad);font-size:13px;color:var(--text)}
html body .rv-losses strong{font-variant-numeric:tabular-nums;color:var(--bad)}
/* Rotture e scarti nello stile delle tabelle inventario */
html body #invBreakPanel .inv-kpis{margin:10px 0 12px}
html body #invBreakPanel .brk-alert{padding:8px 12px;margin:0 0 10px}
html body #invBreakPanel .brk-table td,html body #invBreakPanel .brk-table th{vertical-align:middle}
html body #invBreakPanel .brk-table input.inv-num{width:78px}
html body #invBreakPanel .brk-table .cnt-step input.inv-num{width:64px}
html body #invBreakPanel .brk-note{margin:12px 0 4px;max-width:520px}

/* Listino nello stile inventario */
html body #invPricePanel .inv-kpis{margin:12px 0}
html body #invPricePanel .price-add-box{margin:12px 0;padding:12px 14px;border:1px solid color-mix(in srgb,var(--azure) 22%,transparent);border-radius:0;background:color-mix(in srgb,var(--azure) 4%,transparent)}
html body #invPricePanel .price-add-box label{display:block;font-size:12.5px;color:var(--muted);margin-bottom:6px}
html body #invPricePanel .price-add-box .actions{margin-top:8px}
html body #invPricePanel .price-tbl td{vertical-align:middle}
html body #invPricePanel .price-tbl .price-id-c{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
html body #invPricePanel .price-tbl .price-name-c{font-weight:600;color:var(--text)}
html body #invPricePanel .price-tbl .price-act{white-space:nowrap;text-align:right}
html body #invPricePanel .price-tbl .price-act .btn{margin-left:4px}
html body #invPricePanel .price-tbl tr.is-editing td{background:color-mix(in srgb,var(--azure) 5%,transparent)}
html body #invPricePanel .price-tbl tr.is-editing input,html body #invPricePanel .price-tbl tr.is-editing select{width:100%;min-width:0;box-sizing:border-box}
html body #invPricePanel .price-tbl tr.is-editing .price-id{width:96px}

html body #invPricePanel .price-tbl tr.is-editing .price-val{width:84px}
html body #invPricePanel .price-tbl tr.is-editing .price-vat,html body #invPricePanel .price-tbl tr.is-editing .price-div{width:62px}
html body #invPricePanel .price-tbl tr.is-editing .price-item{min-width:180px}
html body #invPricePanel .price-recipe-row td{background:color-mix(in srgb,var(--azure) 3%,transparent)}
html body #invPricePanel .price-more{margin-top:10px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tbody tr:not(.inv-group-row):not(.is-editing):hover td{background:color-mix(in srgb,var(--azure) 5%,transparent)}

/* Tabelle dati: un solo aspetto per Inventario, Listino e Fatturato (regola finale, vince sulle varianti) */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table th{padding-left:8px!important;padding-right:8px!important;border-bottom:1px solid var(--line)!important}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table td{padding-left:8px!important;padding-right:8px!important;border-bottom:1px solid var(--line)!important}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table tr.inv-group-row td{border-bottom-color:var(--line)}
html body #invPricePanel .price-tbl td.price-id-c{color:var(--muted);font-size:12px}


/* Tabella inventario: riga su una linea, matita di riga e di colonna discrete (v1.93) */
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line{display:flex;gap:8px;min-width:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line>input,html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line>.inv-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line .inv-chip{flex:none;white-space:nowrap;font-size:11px;padding:1px 7px}

html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line .inv-name-text{display:block}


html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main tr.is-editing .inv-state{margin-top:6px}
/* intestazioni: titolo e matita sulla stessa riga */
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main thead .th-in{flex-direction:row;align-items:center;justify-content:flex-start;gap:4px;min-height:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main thead th:nth-child(n+5):nth-child(-n+8) .th-in{justify-content:flex-end}


html body :is(#inventoryPage,#invItemsPanel) .inv-table thead th:has(.inv-col-edit.is-on){background:var(--ui-tint);color:var(--azure-ink)}
/* ubicazione e fornitore: una riga, senza spezzare le parole */
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main td:nth-child(3) .inv-ro,html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main td:nth-child(9) .inv-ro{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal}
/* Venduto della settimana: barra compatta in cima al Magazzino */
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-strip{margin:10px 0 4px}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:8px 12px;border:1px solid var(--line);border-radius:0;background:var(--panel2)}

html body :is(#inventoryPage,#invItemsPanel) .inv-usage-info{font-size:12.5px;color:var(--muted);flex:1 1 auto;min-width:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-warn{color:var(--warn)}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-act{margin-left:auto}


/* Ubicazioni simmetriche: stessa altezza, stesse righe, tre pulsanti della stessa larghezza in basso */
html body :is(#inventoryPage,#invItemsPanel) .inv-places{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));align-items:stretch}
html body :is(#inventoryPage,#invItemsPanel) .inv-place{height:100%;box-sizing:border-box;border:1px solid var(--ui-line)!important;gap:3px!important}


html body :is(#inventoryPage,#invItemsPanel) .inv-place-name,html body :is(#inventoryPage,#invItemsPanel) .inv-place-num,html body :is(#inventoryPage,#invItemsPanel) .inv-place-st{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-place-act{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:auto;padding-top:6px}
html body :is(#inventoryPage,#invItemsPanel) .inv-place-act .btn{width:100%;min-width:0;padding-left:4px;padding-right:4px}
html body :is(#inventoryPage,#invItemsPanel) .inv-place-act .btn.has-note{color:var(--ui-tint-ink)}
html body :is(#inventoryPage,#invItemsPanel) .inv-place-add{min-height:0}html body :is(#inventoryPage,#invItemsPanel) .inv-places{grid-auto-rows:1fr}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line{align-items:flex-start}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line .inv-name-text{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.3}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line .inv-chip{margin-top:-1px}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main td.inv-name{overflow:visible}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line{flex-wrap:wrap;row-gap:3px}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line>.inv-name-text,html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line>input{flex:1 1 auto}

/* Nome articolo sempre leggibile per intero: colonna più larga e nome che va a capo invece di tagliarsi */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(1){}
/* nove colonne: Articolo | Stato | Ubicazione | Giacenza | Obiettivo | Pz/collo | Prezzo collo | Costo | Fornitore */
/* 1.298.0: qui sopra c'era una graffa chiusa in più, che nel browser annullava la regola seguente (prima colonna al 26%).
   Tolta la graffa e tolta la regola, mai applicata, per non cambiare l'aspetto: le colonne seguono il contenuto (regola unica in 56). */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(2){}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(3){width:9%}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(4){width:14%}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(5){width:6%}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(6){width:6%}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(7){width:8%}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(8){width:8%}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(9){width:11%}
/* Stato: colonna a sé, allineata alla prima riga del nome, mai a capo */
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main td.inv-name,html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main td.inv-status{vertical-align:top}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main td.inv-status{white-space:nowrap;overflow:hidden}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main td.inv-status .inv-chip{white-space:nowrap;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top;margin-top:4px;font-size:11.5px}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main .inv-name-line .inv-name-text{padding-top:3px}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table.inv-main th:nth-child(2){width:122px}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main td.inv-status .inv-chip{padding:2px 8px}

/* Ordine ai fornitori: riquadri dei messaggi pronti, tabella unica, popup */
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table th.ord-check,html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table td.ord-check{text-align:center;width:64px}
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table td.ord-check input{width:18px;height:18px;min-height:0;accent-color:var(--ui-azure)}
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table td .inv-num{width:64px}
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table .ord-unit{margin-left:6px;font-size:12px;color:var(--muted);white-space:nowrap}
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table tr.ord-row.is-off td{color:var(--muted)}
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table tr.ord-row.is-off td:first-child{text-decoration:line-through}
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table tr.needs-pack td{background:var(--panel2)}
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table .ord-pack-ask{white-space:nowrap}
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .ord-table .ord-pack-ask>*{vertical-align:middle;margin-right:6px}
html body .order-msg-modal{width:min(620px,94vw);max-height:88vh;overflow:auto}
html body .order-msg-modal .ord-msg-label{display:block;margin:14px 0 6px;font-size:12.5px;font-weight:650;color:var(--muted)}
html body .order-msg-modal textarea{width:100%;box-sizing:border-box;font:13px/1.45 ui-monospace,Consolas,monospace}
html body .order-msg-modal .inv-send{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
html body .order-msg-modal .modal-actions{display:flex;justify-content:flex-end}

/* == css/ui/42-today-and-personnel.css == */
/* Oggi: obiettivo del giorno e sezioni per momento della giornata */
html body #todayPage .td-goal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 16px;align-items:end;margin:12px 0 4px;border:1px solid var(--line);}
html body #todayPage .td-goal small{display:block;font-size:11.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
html body #todayPage .td-goal b{font-variant-numeric:tabular-nums;color:var(--text)}
html body #todayPage .td-goal.is-gap>div:nth-child(3) b,html body #todayPage .td-goal.is-gap>div:nth-child(4) b{color:var(--warn)}
html body #todayPage .td-goal.is-ok>div:nth-child(3) b{color:var(--ok)}
html body #todayPage .td-goal .td-goal-bar{grid-column:1/-1}
html body #todayPage .td-goal.is-empty{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted)}
html body #todayPage .td-phase-title{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:15px;font-weight:700;color:var(--text)}
html body #todayPage .td-phase.is-later .td-phase-title{font-size:13px;color:var(--muted)}
html body #todayPage .td-phase{}
html body #todayPage .td-phase.is-later .td-row{padding-top:6px;padding-bottom:6px}
@media(max-width:900px){html body #todayPage .td-goal{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Checklist di servizio (pagina Oggi) */
html body #todayPage .ck-card .ck-head-act{display:flex;gap:6px;flex-wrap:wrap}
html body #todayPage .ck-card .ck-bar{display:block;margin:6px 0 8px}
html body #todayPage .ck-card.is-late{border-color:var(--warn);box-shadow:inset 4px 0 0 var(--warn)}
html body #todayPage .ck-card.is-complete .ck-bar i{background:var(--ok)}
html body #todayPage .ck-card .ck-late{color:var(--warn)}
html body #todayPage .ck-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
html body #todayPage .ck-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 6px;border-radius:0}
html body #todayPage .ck-list li:hover{background:color-mix(in srgb,var(--azure) 5%,transparent)}
html body #todayPage .ck-list label{display:flex;align-items:center;gap:10px;cursor:pointer;flex:1 1 auto;min-width:0;font-size:13.5px;color:var(--text)}
html body #todayPage .ck-list label input{width:18px;height:18px;min-height:0;flex:none;accent-color:var(--ok)}
html body #todayPage .ck-list li.is-done label span{color:var(--muted);text-decoration:line-through}
html body #todayPage .ck-list .ck-time{flex:none;font-size:12px;color:var(--ok);font-variant-numeric:tabular-nums}
html body #todayPage .ck-list li.ck-edit input{flex:1 1 auto;min-width:0}
html body #todayPage .ck-list .ck-edit-act{display:inline-flex;gap:var(--gap-ctl);flex:none}
html body #todayPage .ck-hist{margin-top:8px;font-size:12.5px}
html body #todayPage .ck-hist summary{cursor:pointer;color:var(--muted)}
html body #todayPage .ck-hist ul{list-style:none;margin:6px 0;padding:0;display:grid;gap:2px}
html body #todayPage .ck-hist li{display:flex;gap:10px;align-items:baseline}
html body #todayPage .ck-hist .ck-miss{color:var(--warn)}
html body #todayPage .ck-hist .ck-full{color:var(--ok)}html body #todayPage .ck-list .ck-day{margin-left:6px;padding:1px 6px;border-radius:0;background:var(--ui-tint);color:var(--azure-ink);font-size:11px;font-weight:600;text-decoration:none;display:inline-block}

/* ===== Rapporto di servizio (pagina Oggi) ===== */
html body #todayPage .sr-card{display:grid;gap:10px;align-content:start}
html body #todayPage .sr-card .td-card-head{margin-bottom:0}
html body #todayPage .sr-top{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:10px;align-items:end}
html body #todayPage .sr-field{display:grid;gap:4px;min-width:0}
html body #todayPage .sr-field input,html body #todayPage .sr-field textarea{width:100%;min-width:0}
html body #todayPage .sr-field textarea{resize:vertical}
html body #todayPage .sr-auto{display:block;padding:6px 9px;border-radius:0;background:var(--ui-tint);color:var(--azure-ink);font-size:12.5px;line-height:1.4}
@media (max-width:640px){html body #todayPage .sr-top{grid-template-columns:1fr}}
/* ===== Personale: elenco (Impostazioni) e lista presenze (Oggi) ===== */
html body .st-table{width:100%;border-collapse:collapse;font-size:13.5px}
html body .st-table th{text-align:left;font-weight:700;color:var(--muted);padding:6px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
html body .st-table td{padding:5px 8px;border-bottom:1px solid var(--panel2);vertical-align:middle}
html body .st-table tr.st-group th{text-transform:none;letter-spacing:0;font-size:13px;color:var(--text);background:var(--panel2);border-bottom:1px solid var(--line)}
html body .st-table input,html body .st-table select{width:100%;min-width:0;box-sizing:border-box;font:inherit;font-size:13.5px;color:var(--text);border:1px solid var(--ui-line);border-radius:0;background:var(--panel);padding:5px 8px;min-height:32px;height:32px}
html body .st-table input:focus,html body .st-table select:focus{outline:2px solid color-mix(in srgb,var(--azure) 35%,transparent);border-color:var(--azure)}
html body .st-table .st-act{width:1%;white-space:nowrap;text-align:right}
html body #staffSettings .st-table{margin:12px 0 16px}
html body #staffSettings .st-pos{max-width:640px}
html body #todayPage .st-card{grid-column:1/-1}
html body #todayPage .st-scroll{overflow-x:auto}
html body #todayPage .st-sheet{min-width:860px;table-layout:fixed}
html body #todayPage .st-sheet th:nth-child(1){width:30px}html body #todayPage .st-sheet th:nth-child(3),html body #todayPage .st-sheet th:nth-child(6){width:104px}
html body #todayPage .st-sheet th:nth-child(4),html body #todayPage .st-sheet th:nth-child(5){width:74px}html body #todayPage .st-sheet th:nth-child(7){width:58px}
html body #todayPage .st-sheet th:nth-child(8){width:72px}html body #todayPage .st-sheet th:nth-child(9),html body #todayPage .st-sheet th:nth-child(10){width:150px}html body #todayPage .st-sheet th:nth-child(11){width:84px}
html body #todayPage .st-sheet .st-n{color:var(--muted);font-variant-numeric:tabular-nums}
/* orari previsti dal planning, non ancora confermati */
html body #todayPage .st-sheet tr.is-est input[type="time"],html body #todayPage .st-sheet tr.is-est .st-h{font-style:italic;color:var(--muted)}
html body #todayPage .st-est{margin:4px 0 0;font-size:.85em;color:var(--muted)}
html body #todayPage .st-sheet .st-h{font-weight:700;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
/* ===== Personale: planning settimanale ===== */
html body #staffPage .st-scroll{overflow-x:auto}

html body #staffPage .st-plan th,html body #staffPage .st-plan td{text-align:center;}
html body #staffPage .st-plan .st-name{text-align:left;text-transform:none;letter-spacing:0;font-size:13.5px;font-weight:600;color:var(--text);white-space:nowrap;border-bottom:1px solid var(--panel2)}
html body #staffPage .st-plan thead .st-name{font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
html body #staffPage .st-plan .st-tot{font-weight:700;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
html body #staffPage .st-plan .st-day{font-size:12.5px}
html body #staffPage .st-plan .st-sv{font-size:11px;}
html body #staffPage .st-plan .st-sv small{display:block;font-weight:500;text-transform:none;letter-spacing:0;color:var(--muted)}


html body #staffPage .st-plan tr.st-group th{text-align:left}
html body #staffPage .st-cell{display:block;width:100%;height:30px;min-height:0;padding:0 2px;border:1px dashed var(--ui-line);border-radius:0;background:transparent;color:transparent;font:inherit;font-size:11.5px;font-weight:600;cursor:pointer;white-space:nowrap;overflow:hidden}
html body #staffPage .st-cell:hover{border-color:var(--azure);background:color-mix(in srgb,var(--azure) 6%,transparent)}
html body #staffPage .st-cell.is-on{border:1px solid var(--azure);background:var(--azure);color:var(--on-accent)}
html body #staffPage .st-cell.is-off{border:1px solid var(--warn);background:var(--box-bg);color:var(--warn)}
html body #staffPage .st-cell:focus-visible{outline:2px solid color-mix(in srgb,var(--azure) 50%,transparent);outline-offset:1px}
html body #staffPage .st-foot td,html body #staffPage .st-foot th{font-size:12.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
html body #staffPage .st-foot small{color:var(--muted);font-size:10.5px}
html body #staffPage .st-foot .is-under{font-weight:700}

html body #staffSettings .st-rules{display:grid;margin-bottom:10px}
html body #staffSettings .st-rules input{width:100%;box-sizing:border-box}
html body #todayPage .td-duty{margin:8px 0 0;font-size:12.5px;color:var(--muted);line-height:1.4}
@media (max-width:900px){html body #staffPage .st-kpis,html body #staffSettings .st-rules{grid-template-columns:repeat(2,minmax(0,1fr))}}html body #staffPage .top .actions{flex-wrap:wrap;overflow:visible;justify-content:flex-end;gap:6px}
html body #staffPage .st-plan .st-cell{box-shadow:none!important}



/* ===== Personale: pianificato ed effettivo ===== */
html body #todayPage .st-cmp{margin-top:12px;padding:10px 12px}
html body #todayPage .st-cmp-head{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin-bottom:6px;font-size:13px;color:var(--muted)}
html body #todayPage .st-cmp-head b{color:var(--text);font-size:13.5px}
html body #todayPage .st-cmp ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
html body #todayPage .st-cmp li{display:grid;grid-template-columns:minmax(0,1fr) 130px 150px 80px;gap:10px;align-items:center;padding:4px 0;border-top:1px solid var(--panel2);font-size:13px;color:var(--text);font-variant-numeric:tabular-nums}
html body #todayPage .st-cmp li span:last-child{text-align:right;font-weight:700}
html body #todayPage .st-cmp-n{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #todayPage .st-chip{display:inline-block;padding:1px 7px;border-radius:0;background:var(--ui-tint);color:var(--azure-ink);font-size:11px;font-weight:600}
html body #todayPage .st-chip.is-warn{background:var(--box-bg);color:var(--warn)}
html body #todayPage .st-good{color:var(--ok)}html body #todayPage .st-bad{color:var(--bad)}
@media (max-width:640px){html body #todayPage .st-cmp li{grid-template-columns:minmax(0,1fr) auto auto auto}}
/* ===== Personale: budget e consigli ===== */
html body #staffPage .st-mini{display:inline-block;min-height:0;height:auto;padding:1px 7px;font:inherit;font-size:11px;font-weight:600;cursor:pointer;vertical-align:baseline}

html body #staffSettings .st-check{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:13.5px;color:var(--text)}

/* ===== Avviso con «Annulla» (5 s) ===== */
.app-toast.has-undo{display:flex;align-items:center;gap:12px;position:relative;overflow:hidden;padding-right:10px}
.app-toast.has-undo .undo-msg{flex:1 1 auto;min-width:0}
.app-toast.has-undo .undo-btn{flex:none;font-weight:700;color:var(--azure-ink);background:var(--panel);border:1px solid var(--ui-line)}
.app-toast.has-undo .undo-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--azure);transform-origin:left;animation:rnbUndoBar linear forwards}
@keyframes rnbUndoBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.app-toast.has-undo .undo-bar{animation:none;opacity:.5}}
/* controllo scadenze bibite */
.inv-expcheck-opts{display:grid;gap:8px;margin:10px 0}.inv-expcheck-opts small{font-weight:400}.inv-expcheck .inv-table td{vertical-align:middle}
/* telefono: la testata dei pannelli va in colonna, la base di 320 px del titolo diventava un'altezza (spazio vuoto) */
@media(max-width:520px){html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#ordersPage) .top>div:first-child{flex:0 0 auto}}
/* Riquadri dei numeri uniformi (Dashboard, Fatturato, Personale): stesso aspetto dei riquadri della gestione (.inv-kpi):
   numero sopra, etichetta sotto, dettaglio piccolo; angoli 8 px, bordo sottile, fondo bianco, niente ombra né sfumature. */
html body :is(#dashboardPage) :is(.stat,:where(#rnbLive) .rnb-card):not(#_){display:flex!important;flex-direction:column;justify-content:flex-start;gap:2px;min-height:0!important;margin:0;padding:12px 14px!important;border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel)!important;box-shadow:none!important;transform:none!important}
html body :is(#dashboardPage) :is(.stat,:where(#rnbLive) .rnb-card):not(#_)>:is(strong,b){order:0;display:block;margin:0!important;font-size:26px!important;font-weight:700!important;line-height:1.1!important;letter-spacing:0!important;color:var(--text)!important;background:none!important;-webkit-text-fill-color:currentColor!important;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
html body :is(#dashboardPage) :is(.stat,:where(#rnbLive) .rnb-card):not(#_)>small{order:1;display:block;font-size:12.5px!important;font-weight:600!important;line-height:1.35!important;letter-spacing:0!important;text-transform:none!important;color:var(--muted)!important}
html body :is(#dashboardPage) :is(.stat,:where(#rnbLive) .rnb-card):not(#_)>span{order:2;display:block;margin-top:2px;font-size:12px;line-height:1.4;color:var(--muted)}
html body :is(#dashboardPage) :is(.stat,:where(#rnbLive) .rnb-card):not(#_)>span:empty{display:none}
/* cliccabili (Dashboard): stesso passaggio del mouse dei riquadri della gestione */
html body #dashboardPage :is(.stat,:where(#rnbLive) .rnb-card).dash-click:not(#_){cursor:pointer}
html body #dashboardPage :is(.stat,:where(#rnbLive) .rnb-card).dash-click::after{top:8px;right:10px}
/* stati */
html body #dashboardPage .rnb-card.alert:not(#_){border-color:var(--bad);background:var(--box-bg)}
html body #dashboardPage .rnb-card.alert:not(#_)>strong{color:var(--bad)}
html body :is(#revenuePage,#costsPage) .stat.is-warn:not(#_){border-color:var(--warn)!important;background:var(--box-bg)!important}
html body :is(#revenuePage,#costsPage) .stat.is-warn:not(#_)>strong{color:var(--warn)!important}
/* Prenotazioni su telefono: la colonna del pannello non si allarga oltre lo schermo; filtri e pulsanti vanno a capo */
html body #reservationsPage .panel.rv{grid-template-columns:minmax(0,1fr)}
html body #reservationsPage .rv-bar>*{min-width:0}
html body #reservationsPage :is(.type-filter,.rv-bar-actions){flex-wrap:wrap}
/* barra della data su telefono: la data su una riga intera (prima si leggeva solo «11/»), i pulsanti sotto */
@media(max-width:420px){html body main .date-navigation:not(#_){flex-wrap:wrap;}html body main .date-navigation:not(#_) input[type=date]{order:-1;flex:1 1 100%;width:auto;min-width:0;max-width:none}html body main .date-navigation:not(#_)>button{flex:1 1 auto}}
/* Analisi: da sostituire o eliminare */
.an-rep-note{margin:0 0 10px;font-size:13px;line-height:1.45;color:var(--muted)}
.an-rep-row .an-row-name{flex-direction:column;align-items:flex-start;gap:0}
.an-rep-row .an-row-name small{font-size:12px}
.an-rep-hint{font-size:12.5px;line-height:1.4;color:var(--muted)}
.an-rep-row{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;align-items:center;padding:6px 0;border-bottom:1px solid var(--panel2)}
.an-rep-row .an-row-val{min-width:0}
.an-more{margin-top:10px}
@media (max-width:560px){.an-rep-hint{grid-column:1/-1;grid-row:2}}
/* Analisi: colonne fisse, così barre, numeri ed etichette si allineano in tutte le righe e in tutte le schede */
#analysisPage .an-row{grid-template-columns:minmax(110px,38%) minmax(80px,1fr) 104px;column-gap:12px}
#analysisPage .an-row-val{min-width:0;width:104px;gap:6px}
#analysisPage .an-row-val>b{flex:1;text-align:right}
#analysisPage .an-row-val>.inv-chip{flex:none;width:50px;min-width:0;padding:2px 0;text-align:center}
/* panoramica per categoria: pezzi e ricavo in due colonne a destra */




/* da sostituire: nome | suggerimento allineato a sinistra | etichetta e «Tieni» a larghezza fissa */

#analysisPage .an-rep-row .an-row-val{width:168px;justify-content:flex-end}
#analysisPage .an-rep-row .an-row-val>.inv-chip{width:96px}
#analysisPage .an-rep-hint{text-align:left}
@media (max-width:560px){
 #analysisPage .an-row{grid-template-columns:minmax(0,1fr) auto}
 #analysisPage .an-row-val{width:auto}
 
 #analysisPage .an-rep-row .an-row-val{width:auto}
}
/* Ordine: motivo di ogni riga e articoli rimandati al prossimo ordine */
.ord-why{display:block;margin-top:2px;font-size:12px;font-weight:600;color:var(--muted)}
.ord-why.is-risk{color:var(--warn)}




/* Personale › Orari operativi: campi raggruppati e giornata tipo a barre */


#staffSettings .st-ops-scale,#staffSettings .st-ops-row{display:grid;grid-template-columns:200px minmax(0,1fr);gap:12px;align-items:center}
#staffSettings .st-ops-ticks{position:relative;height:16px;border-bottom:1px solid var(--ui-line)}
#staffSettings .st-ops-ticks span{position:absolute;top:0;transform:translateX(-50%);font-size:11px;color:var(--muted)}
#staffSettings .st-ops-dept{margin-top:10px}
#staffSettings .st-ops-head{display:flex;gap:10px;align-items:baseline;margin-bottom:4px;font-size:13.5px;color:var(--text)}
#staffSettings .st-ops-head span{font-size:12.5px;color:var(--muted);font-weight:600}
#staffSettings .st-ops-row{margin:4px 0}
#staffSettings .st-ops-lab{font-size:12.5px;color:var(--muted);line-height:1.25}
#staffSettings .st-ops-lab small{display:block;color:var(--muted)}
#staffSettings .st-ops-track{position:relative;height:24px;border-radius:0;background:var(--panel2)}
#staffSettings .st-ops-track i{position:absolute;top:2px;bottom:2px;border-radius:0;background:var(--ui-azure);color:var(--on-accent);font-style:normal;font-size:11.5px;font-weight:700;line-height:20px;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:4px}
#staffSettings .st-ops-track i.is-primi{background:var(--azure-ink)}
#staffSettings .st-ops-track i.is-ponte{background:var(--warn)}
#staffSettings .st-ops-track i.is-pulizie{background:var(--ok)}
#staffSettings .st-ops-note{margin:12px 0 0;font-size:12.5px}
#staffSettings .st-ops-empty{margin:0;color:var(--muted)}
@media (max-width:640px){#staffSettings .st-ops-scale,#staffSettings .st-ops-row{grid-template-columns:110px minmax(0,1fr);gap:8px}}
/* planning: nelle caselle in turno compare l'orario (passo 2) */
.st-cell.is-on{font-size:10.5px;letter-spacing:-.01em;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
/* Passo 4: giornata del personale (timeline pianificato / reale) e contratto contro ore lavorate */
.st-tl{margin-top:16px;padding:14px 16px;border:1px solid var(--ui-line);border-radius:0;background:var(--panel)}
.st-tl-card .st-tl{margin-top:0;border:0;padding:0}
.st-tl-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 16px;margin-bottom:10px}
.st-tl-days{display:flex;flex-wrap:wrap;gap:4px}
.st-tl-row{display:grid;grid-template-columns:170px minmax(0,1fr) 150px;gap:12px;align-items:center;margin:5px 0}
.st-tl-lab{font-size:13px;font-weight:600;color:var(--ui-ink);line-height:1.25;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-tl-lab small{display:block;font-size:11.5px;font-weight:500;color:var(--muted)}
.st-tl-track{position:relative;height:26px;border-radius:0;background:var(--panel2)}
.st-tl-track i{position:absolute;border-radius:0;font-style:normal}
.st-tl-track i.is-plan{top:2px;bottom:2px;background:var(--ui-tint);border:1px solid var(--azure)}
.st-tl-track i.is-real{top:8px;bottom:8px;background:var(--ok)}
.st-tl-track i.is-real.is-over{background:var(--warn)}
.st-tl-curve .st-tl-track{height:34px;background:transparent;border-bottom:1px solid var(--ui-line);border-radius:0}
.st-tl-curve .st-tl-track i{bottom:0;background:var(--ui-line-hover);border-radius:0}
.st-tl-scale{margin-bottom:0}
.st-tl-ticks{position:relative;height:16px;border-bottom:1px solid var(--ui-line)}
.st-tl-ticks span{position:absolute;top:0;transform:translateX(-50%);font-size:11px;color:var(--muted)}
.st-tl-val{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:2px 8px;font-size:12.5px;font-variant-numeric:tabular-nums;text-align:right}
.st-tl-val b{color:var(--text)}
.st-tl-val small{color:var(--muted)}
.st-tl-val em{font-style:normal;font-weight:700;flex-basis:100%}
.st-tl-tot{display:flex;flex-wrap:wrap;gap:6px 22px;justify-content:flex-end;margin-top:10px;padding-top:10px;border-top:1px solid var(--ui-line);font-size:13px;color:var(--muted)}
.st-tl-tot b{color:var(--text)}
.st-gap-table .num{text-align:right}
.st-warn-txt{color:var(--warn)}
@media (max-width:640px){.st-tl-row{grid-template-columns:96px minmax(0,1fr);gap:8px}.st-tl-val{grid-column:1/-1;justify-content:flex-start;text-align:left}.st-tl-scale .st-tl-val,.st-tl-curve .st-tl-val{display:none}}
.st-tl{min-width:0;max-width:100%;box-sizing:border-box}
.st-tl-head>div{min-width:0}
/* Passo 5: correzioni agli orari operativi dalle presenze reali */
html body #staffPage .st-info{margin:0 0 12px;font-size:13px}
#staffSettings .st-learn-act{display:flex;gap:6px;justify-content:flex-end}
@media (max-width:760px){#staffSettings .st-learn-act{grid-column:1/-1;justify-content:flex-start}}

/* Impostazioni › Personale: aree di competenza (di base fisse, altre aggiungibili e togliibili) */
html body #staffSettings .st-areas{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 14px}
html body #staffSettings .st-chip{display:inline-flex;align-items:center;gap:6px;height:var(--ui-h-sm);padding:0 12px;border-radius:0;border:1px solid var(--ui-line);background:var(--panel2);color:var(--control-text);font-size:13px;font-weight:600;box-sizing:border-box}
html body #staffSettings .st-chip.is-custom{padding:0 3px 0 12px;background:var(--panel)}
html body #staffSettings .st-chip .row-x{width:22px;min-width:22px;height:22px;min-height:22px;border:0;background:none}
html body #staffSettings .st-chip .btn.small.row-x:not(#_):not(#__){width:22px;min-width:22px;height:22px;min-height:22px;border:0;background:none}

/* == css/ui/50-shared-controls-and-settings-overrides.css == */
/* ===== Stile unico preso dalle parti mature (Prenotazioni «Tutte / Prenotazioni / Walk-in», Dashboard) =====
   1) Schede e filtri come gruppo segmentato: riquadro bianco con bordo, voci trasparenti, la voce attiva piena in azzurro.
      Vale per le schede della gestione (Inventario, Listino, Analisi), delle Impostazioni e per la scelta del giorno nel Personale. */
html body main :is(.inv-tabs,.settings-tabs,.st-tl-days):not(#_){display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px;padding:3px;margin:0;min-height:var(--ui-h);height:auto;box-sizing:border-box;border:1px solid var(--ui-line);border-radius:0;background:var(--panel);box-shadow:none;max-width:100%}
/* Le schede Impostazioni vanno a capo: non ereditare lo scorrimento delle barre di azione. */
html body main .settings-tabs:not(#_){overflow:visible;overscroll-behavior:auto;scrollbar-width:none}
html body main :is(.inv-tabs,.settings-tabs,.st-tl-days) :is(.inv-tab,.btn):not(#_){display:inline-flex;align-items:center;gap:6px;height:calc(var(--ui-h) - 8px)!important;min-height:0!important;padding:0 10px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ui-ink)!important;font-size:12.5px!important;font-weight:600!important;box-shadow:none!important;white-space:nowrap}
html body main :is(.inv-tabs,.settings-tabs,.st-tl-days) :is(.inv-tab,.btn):not(#_):hover:not(:disabled){background:var(--panel2)}
html body main :is(.inv-tabs,.settings-tabs,.st-tl-days) :is(.inv-tab.is-active,.btn.active,.btn[aria-pressed="true"],.inv-tab[aria-selected="true"]):not(#_):not(#__){background:var(--ui-azure)!important;color:var(--on-accent)!important}
html body main :is(.inv-tabs,.settings-tabs,.st-tl-days) :is(.inv-tab,.btn) small{color:var(--muted);font-weight:600}
html body main :is(.inv-tabs,.settings-tabs,.st-tl-days) :is(.inv-tab.is-active,.btn.active,.btn[aria-pressed="true"]) small{color:var(--ui-tint)}
html body main :is(.inv-tabs,.settings-tabs,.st-tl-days) .inv-tab.is-active em{background:color-mix(in srgb,var(--on-accent) 22%,transparent)!important;color:var(--on-accent)!important}
html body main :is(.inv-tabs,.settings-tabs,.st-tl-days) .btn:disabled{opacity:.4}
/* 2) Pulsanti in testa ai pannelli a grandezza normale, come «Apri elenco» in Dashboard (i piccoli restano dentro tabelle e righe) */
html body main .top>.actions:not(#headerContextActions) .btn.small:not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;padding:0 14px!important;border-radius:0!important;font-size:12.5px!important}
/* 3) Intestazioni delle tabelle del Personale come quelle della gestione: niente maiuscolo */
html body .st-table th{text-transform:none;letter-spacing:0;font-size:12px}/* giorni del giro di controllo: stesso gruppo segmentato; voce attiva = giorno scelto */
/* barre degli strumenti (filtri, ricerca, esportazioni): pulsanti alti come i campi accanto */
html body main :is(.inv-tools,.rv-bar-actions,.st-ops-bar) .btn.small:not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;padding:0 12px!important;border-radius:0!important;font-size:12.5px!important}
html body main .inv-tools :is(input,select):not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;border-radius:0!important}
/* Impostazioni › Personale: nome e reparto leggibili per intero */


/* telefono: tabella del personale scorrevole */
#staffSettings .st-scroll{overflow-x:auto;max-width:100%}
/* planning: nota sulle ore pagate e la pausa non pagata */
html body #staffPage .st-note{margin:0 0 10px;padding:2px 0 2px 12px;border-radius:0;background:none;border:0;border-left:3px solid var(--line);color:var(--muted);font-size:12.5px}
html body #staffPage .st-note b{color:var(--text)}

/* ===== Pulsanti con una classe propria (12 nov 2026) =====
   La regola generale di app.css da' a OGNI <button> fondo azzurrino e angoli da 10 px con !important: i pulsanti con uno stile proprio
   scritto senza !important lo perdevano (link in forma di scatola, righe del Floor plan senza i colori di stato, riquadri cliccabili tutti uguali).
   Qui ogni tipo riprende il suo aspetto, con le misure comuni (--ui-h, --ui-r, --ui-line). */
/* link dentro il testo */
html body .nt-reject:not(#_){display:inline;width:auto;height:auto!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;font:inherit!important;font-weight:600!important;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
html body .nt-reject:not(#_):hover{background:none!important;}
html body .nt-reject:not(#_),html body .nt-reject:not(#_):hover{color:var(--bad)!important}
html body .doc-remove:not(#_){color:var(--bad)}
html body a.btn{text-decoration:none!important}
/* Oggi: pulsanti in testa ai riquadri a grandezza normale, come nei pannelli della Dashboard; i piccoli restano nelle righe */
html body main :is(.td-card-head,.td-goal) .btn.small:not(#_),html body main .rv-actual-actions .btn.small:not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;padding:0 14px!important;border-radius:0!important;font-size:12.5px!important}
/* mini pulsanti dentro tabelle e celle */
html body main :is(.st-mini,.inv-doc-x):not(#_){display:inline-flex;align-items:center;justify-content:center;height:24px!important;min-height:0!important;padding:0 8px!important;border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel)!important;color:var(--ui-ink)!important;font-size:11.5px!important;font-weight:600!important}
html body main .st-cell:not(#_){border-radius:0!important}
/* riquadri cliccabili dei numeri: stessi colori dei riquadri non cliccabili */
html body main button.inv-kpi:not(#_){border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel)!important;color:var(--ui-ink)!important;font-weight:400!important}
html body main button.inv-kpi.is-warn:not(#_){border-color:var(--warn)!important;background:var(--box-bg)!important}
html body main button.inv-kpi.is-info:not(#_){border-color:var(--ui-line-hover)!important;background:var(--panel2)!important}
html body main button.inv-kpi:disabled{opacity:1!important;cursor:default}
html body main .inv-place-add:not(#_){border:1px dashed var(--ui-line-hover)!important;border-radius:0!important;background:var(--panel)!important;color:var(--ui-tint-ink)!important}
/* righe cliccabili (messaggi, dettagli, prenotazioni del tavolo): bianche, angoli 8 */
html body :is(.dash-row,.ts-booking):not(#_){border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel)!important;color:var(--text)!important;font-weight:400!important}
html body :is(.dash-row:not(.static),.ts-booking):not(#_):hover{border-color:var(--ui-azure)!important;background:var(--panel2)!important;color:var(--text)!important}
/* Floor plan: le righe delle prenotazioni riprendono i colori di stato della legenda */
html body #floorPage .fp-row:not(#_){border:1px solid color-mix(in srgb,var(--azure) 25%,transparent)!important;border-left:4px solid var(--ui-azure)!important;border-radius:0!important;background:var(--ui-tint)!important;color:var(--text)!important;font-weight:400!important}
html body #floorPage .fp-row.fp-st-arrived:not(#_){background:var(--box-bg)!important;border-color:color-mix(in srgb,var(--warn) 35%,transparent)!important;border-left-color:var(--warn)!important}
html body #floorPage .fp-row.fp-st-seated:not(#_){background:var(--box-bg)!important;border-color:color-mix(in srgb,var(--ok) 35%,transparent)!important;border-left-color:var(--ok)!important}
html body #floorPage .fp-row.fp-st-finished:not(#_){background:var(--panel2)!important;border-color:var(--line)!important;border-left-color:var(--muted)!important;color:var(--muted)!important}
html body #floorPage .fp-row.is-vip:not(#_){border-left-color:var(--bad)!important}
html body #floorPage .fp-row:not(#_):hover{filter:brightness(.97)}
html body #floorPage :is(.fp-lock,.fp-add-btn):not(#_){height:var(--ui-h-sm)!important;min-height:0!important;border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel)!important;color:var(--ui-ink)!important;font-size:12px!important}
html body #floorPage .fp-lock:not(#_){width:var(--ui-h-sm)!important;padding:0!important}
html body #floorPage .fp-add-btn:not(#_){padding:0 10px!important}
html body #floorPage :is(.fp-lock,.fp-add-btn):not(#_):hover{background:var(--panel2)!important;border-color:var(--ui-line-hover)!important}
html body #floorPage .fp-lock.is-blocked:not(#_){background:var(--panel2)!important;border-color:var(--bad)!important;color:var(--bad)!important}
/* editor della pianta: blocco come un pulsante normale, verde quando la pianta e' bloccata */
html body .fm-lock:not(#_){height:var(--ui-h)!important;min-height:0!important;padding:0 14px!important;border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel)!important;color:var(--ui-ink)!important}
html body .fm-lock.is-locked:not(#_){background:var(--panel2)!important;border-color:var(--ok)!important;color:var(--ok)!important}
/* altri gruppi di scelte come gruppo segmentato (Fatturato «Tutti i giorni / Solo oggi», tipo di risposta in Comunicazione) */
html body main :is(.rv-mix-scope,.cm-reply-kind):not(#_){display:inline-flex!important;flex-wrap:wrap;align-items:center;gap:2px!important;padding:3px!important;border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel)!important;box-shadow:none!important}
html body main :is(.rv-mix-scope,.cm-reply-kind) .btn:not(#_){height:calc(var(--ui-h) - 8px)!important;min-height:0!important;padding:0 10px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ui-ink)!important;font-size:12.5px!important;box-shadow:none!important}
html body main :is(.rv-mix-scope,.cm-reply-kind) .btn:not(#_):hover{background:var(--panel2)!important}
/* il gruppo segmentato dentro una barra resta della sua misura */
html body main .st-ops-bar :is(.inv-tabs,.st-tl-days) .btn.small:not(#_):not(#__){height:calc(var(--ui-h) - 8px)!important;min-height:0!important;padding:0 10px!important;border-radius:0!important}
/* barre con pulsanti e campi sulla stessa riga: campi alti come i pulsanti (come la data della Dashboard) */
html body main :is(.rv-bar,.floor-controls) :is(input:not([type=checkbox]):not([type=radio]),select):not(.shift-value):not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;border-radius:0!important}
html body main .cost-chips{align-items:center}
html body main .cost-chips .cost-sort:not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;border-radius:0!important}
/* accesso */
html body .login-submit:not(#_){border-radius:0!important}
/* Impostazioni › Personale › Partite e aree */
#staffSettings .st-posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin:8px 0 14px}
#staffSettings .st-posts>div{padding:12px 14px;border:1px solid var(--ui-line);border-radius:0;background:var(--panel);min-width:0}
#staffSettings .st-posts h4{margin:0 0 8px;font-size:13.5px;color:var(--text)}
#staffSettings .st-posts .actions{margin-top:8px}
#staffSettings .st-posts .st-table td input[type=number]{width:84px}
#staffSettings .st-area-default{margin-top:10px;max-width:240px}
#staffSettings .st-chk{font-weight:600;color:var(--ui-ink);white-space:nowrap;cursor:pointer}
#staffSettings .st-chk input{margin:0}
#staffSettings .st-posts .st-table td:first-child input{min-width:120px}
#staffSettings .st-posts .st-table td.st-act{white-space:nowrap}

/* Biancheria (tovaglioli di stoffa) */
#invLinen .lin-form{flex-wrap:wrap;}


#invLinen .lin-alert{margin:10px 0}
#invLinen .lin-tbl{margin-top:8px}
#invLinen .inv-table-wrap{margin-top:8px}
/* Impostazioni › Tavoli e combinazioni: distanze ridotte, campi da 28 px nelle righe (come tabelle di Inventario e Listino) */
html body #settingsTables:not(#_) .floor-summary{margin:0 0 8px!important}


html body #settingsTables:not(#_) .fm-bar{margin-bottom:4px!important}
/* Account: accesso e codice manager */

/* Impostazioni: testata senza titolo ripetuto, experience e orari quattro in linea */
html body #settingsHours .service-card .form-grid input:not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;padding:4px 10px!important;font-size:13px!important;border-radius:0!important}
html body #settingsHours .service-card .form-grid:not(#_){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--gap-row) var(--gap-field)!important}
html body #settingsHours .service-card .form-grid .field label:not(#_){min-height:0!important;font-size:11.5px!important;margin:0!important}

@media(max-width:900px){
 html body #settingsHours .service-card .form-grid:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #settingsPage .settings-heading:not(#_){grid-template-columns:minmax(0,1fr)!important}
}

/* Experience: disponibilità e percentuali di vendita in una tabella (una riga per giorno e servizio) */
#settingsExperiences .exp-tbl th{white-space:normal;line-height:1.2;vertical-align:bottom}
#settingsExperiences .exp-tbl td{padding-top:3px;padding-bottom:3px}
#settingsExperiences .exp-cell{display:flex;align-items:center;margin:0}
html body #settingsExperiences .exp-cell input[type=checkbox]:not(#_){width:16px;height:16px;min-height:0!important;flex:0 0 auto;margin:0}
html body #settingsExperiences .exp-pct:not(#_){min-width:0;height:var(--ui-h-sm)!important;min-height:var(--ui-h-sm)!important;padding:2px 6px!important;font-size:13px!important;border-radius:0!important;text-align:right}
html body #settingsExperiences .exp-pct:disabled:not(#_){opacity:.4}
html body #settingsExperiences .exp-tbl select:not(#_){height:var(--ui-h-sm)!important;min-height:var(--ui-h-sm)!important;padding:2px 24px 2px 8px!important;font-size:13px!important;border-radius:0!important;}
html body #settingsExperiences .exp-tbl th:not(#_),html body #settingsExperiences .exp-tbl td:not(#_){padding-left:6px!important;padding-right:6px!important}
html body #settingsExperiences .exp-pct:not(#_){width:48px!important}
html body #settingsExperiences .exp-cell:not(#_){gap:4px}
html body #settingsExperiences .exp-tbl select:not(#_){min-width:0;max-width:112px}
#settingsExperiences .exp-tbl tr.is-closed td{opacity:.55}
/* Personale › settimana: la tabella sta nel riquadro (niente scroll orizzontale a 100%) e le celle sono allineate al centro in verticale */

html body #staffPage .st-plan .st-name:not(#_){}
html body #staffPage .st-plan th:not(#_),html body #staffPage .st-plan td:not(#_){vertical-align:middle!important}
html body #staffPage .st-plan .st-tot:not(#_){width:72px!important}

/* Personale › settimana: contatore dei giorni lavorati accanto al nome */
html body #staffPage .st-plan .st-name:not(#_){width:170px!important}
html body #staffPage .st-plan .st-days:not(#_){float:right;margin:0 0 0 6px;padding:1px 6px;border-radius:0;background:var(--ui-tint);color:var(--azure-ink);font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums;white-space:nowrap}
html body #staffPage .st-plan .st-days.st-bad:not(#_){background:var(--panel2);color:var(--bad)}

/* Personale › settimana: Sala e Cucina con in turno / consigliata e Riorganizza allineati ai giorni */
html body #staffPage .st-plan tr.st-group-n td:not(#_),html body #staffPage .st-plan tr.st-group-act td:not(#_){background:var(--panel2);border-left:1px solid var(--panel2);font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap}
html body #staffPage .st-plan tr.st-group-n .is-under:not(#_){color:var(--bad);font-weight:700}
html body #staffPage .st-plan tr.st-group-n th small:not(#_){font-size:10.5px;font-weight:500;color:var(--muted)}
html body #staffPage .st-plan tr.st-group-act th:not(#_){font-size:11.5px;font-weight:500;color:var(--muted);padding-top:0;padding-bottom:4px;border-top:0}
html body #staffPage .st-plan tr.st-group-act td:not(#_){padding-top:0;padding-bottom:4px}
html body #staffPage .st-plan tr.st-group-n td.is-closed:not(#_),html body #staffPage .st-plan tr.st-group-act td.is-closed:not(#_){background:repeating-linear-gradient(135deg,var(--panel2) 0 6px,color-mix(in srgb,var(--line) 50%,var(--panel2)) 6px 12px)}

/* Personale: chiusura del locale e lavapiatti a pranzo/cena */






/* Personale: colonna Mise en place nei giorni senza servizio */
html body #staffPage .st-plan th.st-prep:not(#_){background:var(--panel2);color:var(--ok)}
html body #staffPage .st-plan th.st-prep small:not(#_){color:var(--ok)}

/* Impostazioni › Personale: stessi campi, tabelle e titoli di Inventario, Listino e delle altre schede */
html body #staffSettings input:not([type=checkbox]):not([type=radio]):not(#_),html body #staffSettings select:not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;padding:4px 10px!important;font-size:13px!important;border-radius:0!important}
html body #staffSettings .st-table input:not([type=checkbox]):not(#_),html body #staffSettings .st-table select:not(#_){height:var(--ui-h-sm)!important;min-height:var(--ui-h-sm)!important;padding:2px 8px!important;border-radius:0!important}
html body #staffSettings input[type=checkbox]:not(#_){width:16px!important;height:16px!important;min-height:0!important;padding:0!important;margin:0!important;flex:0 0 auto}
html body #staffSettings .st-table td:not(#_),html body #staffSettings .st-table th:not(#_){padding-top:3px!important;padding-bottom:3px!important;vertical-align:middle}
html body #staffSettings .st-table td.st-close-c:not(#_){text-align:center}
html body #staffSettings .st-rules:not(#_){grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:8px 12px!important}
html body #staffSettings .st-rules .field:not(#_),html body #staffSettings .st-pos:not(#_){margin:0!important}
html body #staffSettings .field label:not(#_){font-size:12px!important;margin:0!important}
html body #staffSettings .st-chk-row:not(#_){display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;min-height:var(--ui-h)}
html body #staffSettings .st-chk:not(#_){display:inline-flex;align-items:center;gap:6px;font-size:13px;margin:0}
html body #staffSettings p.muted:not(#_){font-size:12.5px!important;line-height:1.4!important;margin:0 0 10px!important}

/* Timeline: criterio predefinito o scelto solo per questo servizio */
.timeline-criterion-scope{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:6px 0 2px;font-size:12px;color:var(--muted)}
.timeline-criterion-scope .tcs-tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:0;background:var(--panel2);color:var(--muted);font-weight:600;font-size:11.5px}
.timeline-criterion-scope .tcs-tag.is-own{background:var(--panel2);color:var(--warn)}

/* Impostazioni › Swap: strumenti intelligenti, stesso linguaggio visivo del resto dell'app */
/* schede delle strategie */
#settingsSwap .swap-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px}
html body #settingsSwap .swap-card:not(#_){display:flex!important;flex-direction:column;align-items:flex-start;gap:6px;height:auto!important;min-height:0!important;padding:12px 12px 10px!important;text-align:left;white-space:normal!important;background:var(--panel)!important;border:1px solid var(--ui-line,var(--line))!important;border-radius:0!important;color:var(--text)!important;box-shadow:none!important;cursor:pointer;transition:border-color .15s,box-shadow .15s}
html body #settingsSwap .swap-card.is-active:not(#_){border-color:var(--azure)!important;background:var(--ui-tint)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--azure) 14%,transparent)!important}
#settingsSwap .swap-card b{font-size:14px;color:var(--text)}
#settingsSwap .swap-card span{font-size:12.5px;line-height:1.4;color:var(--muted);font-weight:400}
#settingsSwap .swap-card small{margin-top:auto;padding:2px 8px;border-radius:0;background:var(--panel2);color:var(--muted);font-size:11.5px;font-weight:600}

#settingsSwap .swap-select{max-width:280px;margin:0}
/* campi uniformi */
html body #settingsSwap input:not([type=checkbox]):not([type=range]):not([type=radio]):not(#_),html body #settingsSwap select:not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;padding:4px 10px!important;font-size:13px!important;border-radius:0!important}
html body #settingsSwap .field label:not(#_){font-size:12px!important;margin:0!important}
#settingsSwap .buffer-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
#settingsSwap .buffer-grid .field{margin:0}
#settingsSwap .swap-staff{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 20px;margin:0 0 10px}
#settingsSwap .swap-staff .field{margin:0;min-width:240px}
#settingsSwap .swap-staff .service-enabled{min-height:var(--ui-h);display:inline-flex;align-items:center;gap:8px}
/* modalità dell'assistente come gruppo segmentato */
#settingsSwap .swap-mode{display:inline-flex;gap:0;padding:3px;border:1px solid var(--ui-line,var(--line));border-radius:0;background:var(--panel);margin:0 0 6px}
html body #settingsSwap .swap-mode button:not(#_){height:28px!important;min-height:28px!important;padding:0 16px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--muted)!important;font-weight:600;box-shadow:none!important}
html body #settingsSwap .swap-mode button.on:not(#_){background:var(--azure)!important;color:var(--on-accent)!important}
#settingsSwap .ax-mode-text{margin:0;font-size:12.5px}
#settingsSwap .ax-rules fieldset{border-radius:0}
@media(max-width:900px){#settingsSwap .swap-cards,#settingsSwap .buffer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){#settingsSwap .swap-cards,#settingsSwap .buffer-grid{grid-template-columns:minmax(0,1fr)!important}}



/* Impostazioni › Personale: colonne più strette (reparto, contratto, costo orario...) così la croce resta visibile senza scorrere */
html body #staffSettings .st-table thead th:not(#_):not(#__){white-space:normal;line-height:1.2;vertical-align:bottom}
html body #staffSettings .st-table select:not(#_):not(#__){min-width:0;}
html body #staffSettings .st-table td:first-child input:not(#_):not(#__){min-width:130px}
html body #staffSettings .st-table :is(th,td):nth-child(2):not(#_):not(#__){width:100px}
html body #staffSettings .st-table :is(th,td):nth-child(3):not(#_):not(#__){width:116px}
html body #staffSettings .st-table :is(th,td):nth-child(4):not(#_):not(#__){width:92px}
html body #staffSettings .st-table :is(th,td):nth-child(5):not(#_):not(#__){width:86px}
html body #staffSettings .st-table :is(th,td):nth-child(7):not(#_):not(#__){width:72px}
html body #staffSettings .st-table :is(th,td):is(:nth-child(8),:nth-child(9)):not(#_):not(#__){width:74px}

/* == css/ui/51-revenue-today-and-analysis-overrides.css == */

/* Oggi: gerarchia più chiara per la lettura rapida dei servizi */











html body #todayPage .td-bar{height:8px;border-radius:99px}



html body #todayPage .td-goal{padding:16px 18px;border-radius:0;background:var(--panel)}
html body #todayPage .td-goal b{font-size:22px}
@media(max-width:600px){html body #todayPage .td-goal{gap:10px;padding:13px}}

/* Checklist Oggi: una sola attività attiva, con avanzamento sequenziale */
html body #todayPage .ck-card .ck-sequence{margin:10px 0 4px}
html body #todayPage .ck-card .ck-sequence>li:not(.ck-finished){padding:12px 14px;border:1px solid var(--line);border-radius:0;background:var(--panel2)}
html body #todayPage .ck-card .ck-sequence label{gap:12px;font-size:15px;font-weight:600;line-height:1.4}
html body #todayPage .ck-card .ck-sequence label input{width:22px;height:22px}







html body #todayPage .ck-card .ck-finished{display:flex;flex-direction:column;gap:3px;padding:11px 13px;border-radius:0;background:var(--box-bg);color:var(--ok)}
html body #todayPage .ck-card .ck-finished span{font-size:12px}

/* Controllo incrociato della chiusura precedente nella starting list */
html body #todayPage .ck-audit{margin:10px 0 12px;padding:11px 12px;border:1px solid var(--warn);border-radius:0;background:var(--box-bg)}
html body #todayPage .ck-audit-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;margin-bottom:5px;color:var(--text);font-size:12.5px}
html body #todayPage .ck-audit-head small{color:var(--muted)}
html body #todayPage .ck-audit ul{list-style:none;margin:0;padding:0}
html body #todayPage .ck-audit li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;padding:7px 0;border-top:1px solid var(--line);font-size:12.5px;color:var(--text)}
html body #todayPage .ck-audit li:first-child{border-top:0}
html body #todayPage .ck-audit-actions{display:flex;gap:5px}
html body #todayPage .ck-audit-actions button{min-height:29px;padding:3px 8px;border:1px solid var(--ui-line);border-radius:0;background:var(--panel);color:var(--muted);font:inherit;font-weight:600;cursor:pointer}
html body #todayPage .ck-audit-actions button.is-selected{border-color:var(--ok);background:var(--box-bg);color:var(--ok)}
html body #todayPage .ck-audit-actions button.is-issue{border-color:var(--bad);background:var(--box-bg);color:var(--bad)}


/* Hub Importa: accesso diretto ai flussi già presenti */






.is-import-target{outline:3px solid color-mix(in srgb,var(--azure) 30%,transparent)!important;outline-offset:4px!important;scroll-margin:100px}


@media(max-width:700px){html body :is(#inventoryPage,#invItemsPanel) .inv-usage-info{flex:1 1 100%;order:4}html body :is(#inventoryPage,#invItemsPanel) .inv-usage-act{margin-left:auto}}



html body #invPricePanel button.price-inv-text-link{display:inline;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ui-tint-ink)!important;font:inherit!important;font-weight:600!important;text-align:left;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--azure) 45%,transparent);text-underline-offset:2px;cursor:pointer;box-shadow:none!important}
html body #invPricePanel button.price-inv-text-link:hover{color:var(--azure-ink)!important;text-decoration-color:currentColor}
html body #invPricePanel button.price-inv-text-link:focus-visible{outline:2px solid color-mix(in srgb,var(--azure) 40%,transparent);outline-offset:2px}


/* Checklist in Oggi: attività da fare e successiva */
html body #todayPage .ck-card .ck-sequence>li.ck-next{display:flex;justify-content:flex-start;align-items:baseline;gap:10px;padding:4px 14px;border:0;background:transparent;color:var(--muted);font-size:13.5px}
html body #todayPage .ck-card .ck-sequence>li.ck-next:hover{background:transparent}
html body #todayPage .ck-card .ck-sequence>li.ck-next small{flex:none;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}

/* == css/ui/52-food-cost-inventory-and-analysis-overrides.css == */
/* Food cost: pannelli e controlli allineati ai componenti standard dell’app */













html body #revenueCostsPanel .cat-card{border:1px solid var(--ui-line);border-radius:0;box-shadow:none}


/* Food cost per voce: area stabile, scorre solo l’elenco quando cambia categoria */
html body #revenueCostsPanel .cost-detail{height:clamp(300px,54vh,560px);min-height:300px;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
html body #revenueCostsPanel .cost-detail .inv-table{table-layout:auto}

/* Ubicazioni multiple per articolo: selezione rapida direttamente dalla riga inventario. */
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-picker{display:block;min-width:0;width:100%}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-picker>summary{display:block;max-width:100%;cursor:pointer;white-space:normal;overflow-wrap:anywhere;line-height:1.35;color:var(--text);font-size:14px;font-weight:600;list-style:none}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-picker>summary::-webkit-details-marker{display:none}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-picker>summary:after{content:"⌄";padding-left:5px;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-options{display:grid;gap:7px;padding:10px 6px;min-width:155px}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-options label{display:flex;align-items:center;gap:9px;min-height:32px;white-space:normal;color:var(--text);font-size:14px;line-height:1.3;font-weight:500;cursor:pointer}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-options input{width:12px!important;height:12px!important;min-width:12px!important;min-height:12px!important;flex:0 0 12px!important;padding:0!important;margin:0!important;accent-color:var(--azure)}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-targets{display:grid;gap:7px;min-width:205px;margin:5px 0 2px;padding:10px 8px 5px;border-top:1px solid var(--ui-line)}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-targets>strong{color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-targets label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text);font-size:12px;font-weight:600}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-targets label span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-targets label small{color:var(--muted);font-size:10px;font-weight:500}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-targets input{width:68px;min-width:68px;min-height:32px;padding:5px 7px;text-align:right}
html body :is(#inventoryPage,#invItemsPanel) .inv-loc-targets>.muted{font-size:11px;line-height:1.4}
html body #settingsStock .inv-area-settings{margin:0 0 22px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body #settingsStock .inv-area-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:0 0 12px;border-bottom:1px solid var(--ui-line)}
html body #settingsStock .inv-area-head h3{margin:0 0 4px;color:var(--ui-ink);font-size:17px;font-weight:650;letter-spacing:-.15px}
html body #settingsStock .inv-area-head p{max-width:640px;margin:0;line-height:1.45}
html body #settingsStock .inv-area-count{flex:0 0 auto;padding:4px 9px;border:1px solid var(--ui-line);border-radius:0;background:var(--panel);color:var(--muted);font-size:12px;font-weight:600}
html body #settingsStock .inv-area-list{display:grid;}
html body #settingsStock .inv-area-row{display:grid;transition:background .15s}

html body #settingsStock .inv-area-order{display:flex;align-items:center;gap:9px}
html body #settingsStock .inv-area-order>span{min-width:24px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;font-weight:600}
html body #settingsStock .inv-area-order>div{display:flex;gap:var(--gap-ctl)}
html body #settingsStock .inv-area-move{width:30px;min-width:30px;height:30px;min-height:30px;padding:0!important;border-radius:0!important;font-size:14px!important;line-height:1!important}
html body #settingsStock .inv-area-move:disabled{opacity:.35;cursor:default}
html body #settingsStock .inv-area-field{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:9px;color:var(--muted);font-size:12px;font-weight:600}
html body #settingsStock .inv-area-row input{width:100%;min-width:0;min-height:var(--ui-h);padding:6px 10px;border:1px solid var(--ui-line);border-radius:0;background:var(--panel);color:var(--ui-ink);font:inherit;font-size:13px;transition:border-color .15s,box-shadow .15s}
html body #settingsStock .inv-area-row input:focus{outline:0;border-color:var(--ui-azure);box-shadow:0 0 0 2px color-mix(in srgb,var(--azure) 14%,transparent)}
html body #settingsStock .inv-area-delete{color:var(--muted)}
html body #settingsStock .inv-area-settings>.btn{margin-top:2px}

html body #settingsStock .inv-area-categories>summary{display:flex;align-items:center;gap:7px;color:var(--ui-ink);font-size:12.5px;font-weight:600;cursor:pointer;list-style:none}
html body #settingsStock .inv-area-categories>summary::-webkit-details-marker{display:none}
html body #settingsStock .inv-area-categories>summary:before{content:"▸";color:var(--ui-tint-ink)}
html body #settingsStock .inv-area-categories[open]>summary:before{content:"▾"}
html body #settingsStock .inv-area-categories>summary small{color:var(--muted);font-size:11.5px;font-weight:500}
html body #settingsStock .inv-area-cat-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:5px 12px;max-width:760px;margin:9px 0 4px;padding:0}
html body #settingsStock .inv-area-cat-list label{display:flex;align-items:center;gap:8px;min-height:30px;color:var(--ui-ink);font-size:12.5px;cursor:pointer}
html body #settingsStock .inv-area-cat-list input{width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;margin:0!important;accent-color:var(--ui-azure)}
html body #settingsStock .inv-area-cat-list>.btn{justify-self:start;margin-top:3px}
@media(max-width:600px){html body #settingsStock .inv-area-head{gap:10px}html body #settingsStock .inv-area-order{grid-column:1;grid-row:1}html body #settingsStock .inv-area-field{grid-column:1/-1;grid-row:2}html body #settingsStock .inv-area-delete{grid-column:2;grid-row:1}html body #settingsStock .inv-area-head p{font-size:13px}}
/* Inventario: più spazio al nome dell’ubicazione e giacenza compatta; a selettore aperto i valori restano in alto. */
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(1){width:22%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(2){width:12%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(3){width:15%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(4){width:12%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(5){width:6%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(6){width:5%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(7){width:7%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(8){width:9%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(9){width:12%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main tr:has(.inv-loc-picker[open])>td{vertical-align:top!important}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main td.inv-stock{vertical-align:top}
@media(max-width:820px){html body :is(#inventoryPage,#invItemsPanel) .inv-table-wrap:has(.inv-main){overflow-x:auto!important}html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main{min-width:980px}}
html body #revenueCostsPanel .cost-detail thead{position:sticky;top:0;z-index:2;background:var(--panel2)}
html body #revenueCostsPanel .cost-detail thead th{background:var(--panel2)}
@media(max-width:650px){html body #revenueCostsPanel .cost-detail{height:clamp(260px,48vh,440px);min-height:260px}}
html body #revenueCostsPanel button.cost-price-link{display:inline;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ui-tint-ink)!important;font:inherit!important;font-weight:650!important;text-align:left;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--azure) 40%,transparent);text-underline-offset:2px;cursor:pointer;box-shadow:none!important}
html body #revenueCostsPanel button.cost-price-link:hover{color:var(--azure-ink)!important;text-decoration-color:currentColor}
html body #revenueCostsPanel button.cost-price-link:focus-visible{outline:2px solid color-mix(in srgb,var(--azure) 40%,transparent);outline-offset:2px}
/* Simulatore di porzioni in Analisi */
html body #analysisPage .an-sim-controls{display:grid;grid-template-columns:2fr 2fr 1fr;gap:12px;align-items:end}
html body #analysisPage .an-sim-controls.an-sim-edit{grid-template-columns:minmax(0,2fr) auto auto;margin-top:12px}
html body #analysisPage .an-sim-controls.an-sim-glass{}
html body #analysisPage .an-sim-controls:not(.an-sim-edit):not(.an-sim-glass){grid-template-columns:minmax(150px,1fr) minmax(0,2fr) minmax(130px,1fr) minmax(120px,1fr)}
html body #analysisPage .an-sim-controls.an-sim-glass{grid-template-columns:minmax(140px,1fr) minmax(0,2fr) minmax(140px,1fr)}
html body #analysisPage .an-sim-glass-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:var(--sep)}
html body #analysisPage .an-sim-controls.an-sim-edit:has(input){grid-template-columns:minmax(0,2fr) minmax(120px,1fr) auto}
html body #analysisPage .an-sim-controls.an-sim-alt-edit{grid-template-columns:minmax(0,2fr) minmax(120px,1fr) auto auto}
html body #analysisPage .an-sim-controls.an-sim-edit>.btn{align-self:end}
html body #analysisPage .an-sim-results{margin-top:14px}
html body #analysisPage .an-sim-note{margin:10px 0 0;color:var(--muted);font-size:12px}
html body #analysisPage .an-sim-projection{margin-top:14px}
html body #analysisPage .an-sim-projection svg{display:block;width:100%;height:auto;max-height:230px;margin-top:6px;overflow:visible}
html body #analysisPage .an-sim-projection svg text{fill:var(--text);font:600 12px system-ui,sans-serif}
html body #analysisPage .an-sim-projection svg text.an-sim-xlabel{fill:var(--muted);font-weight:500}
html body #analysisPage .an-sim-projection .an-sim-zero{stroke:var(--line);stroke-width:1;stroke-dasharray:4 4}
html body #analysisPage .an-sim-saved-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
html body #analysisPage .an-sim-saved-card{min-width:0;padding:14px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg)}
html body #analysisPage .an-sim-saved-card{display:flex;height:100%;box-sizing:border-box;flex-direction:column}
html body #analysisPage .an-sim-saved-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
html body #analysisPage .an-sim-saved-head h4{margin:0;color:var(--text);font-size:15px}
html body #analysisPage .an-sim-saved-card ul{display:grid;gap:4px;margin:10px 0;padding:0;list-style:none}
html body #analysisPage .an-sim-saved-card li{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid var(--box-line);color:var(--muted);font-size:13px}
html body #analysisPage .an-sim-saved-card li span{white-space:nowrap;color:var(--text);font-weight:600}
html body #analysisPage .an-sim-saved-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px}
@media(max-width:760px){html body #analysisPage .an-sim-controls,html body #analysisPage .an-sim-controls.an-sim-edit,html body #analysisPage .an-sim-controls.an-sim-edit:has(input),html body #analysisPage .an-sim-controls.an-sim-glass{grid-template-columns:1fr 1fr}html body #analysisPage .an-sim-controls label:first-child{grid-column:1/-1}html body #analysisPage .an-sim-results{grid-template-columns:1fr 1fr}}
@media(max-width:430px){html body #analysisPage .an-sim-controls{grid-template-columns:1fr}html body #analysisPage .an-sim-controls label:first-child{grid-column:auto}}
html body #revenuePage .revenue-inputs{grid-template-columns:repeat(3,minmax(0,1fr));border-radius:0;}

/* == css/ui/54-global-late-overrides.css == */
/* ===== Ordine e leggibilità di tutta l'app (16 nov 2026) =====
   1) Campi alla stessa altezza dei pulsanti (34 px, angoli 8) fuori dalle tabelle: campi e pulsanti sulla stessa riga si allineano. */
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not(.inv-place-name),select):not(table *):not(#_){height:var(--ui-h)!important;min-height:var(--ui-h)!important;border-radius:0!important;padding-top:0!important;padding-bottom:0!important;box-sizing:border-box!important;line-height:normal}
html body textarea:not(#_){border-radius:0!important}

/* 2) Griglie di numeri e schede: righe piene e simmetriche, nessuna casella sola in fondo.
      Colonne scelte dal numero di caselle (2 → 2, 3/5/6/9 → 3, 4/7/8 → 4, 10 → 5); l'ultima riga si allarga a tutta la larghezza. */
html body main :is(.stats,.inv-kpis,.st-kpis,.rv-kpis,.cat-cards,.goal-grid,.inv-places,.rnb-live):not(#_){display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:stretch!important;grid-template-columns:none!important}
html body main :is(.stats,.inv-kpis,.st-kpis,.rv-kpis,.cat-cards,.goal-grid,.inv-places,.rnb-live)>*:not(#_){--k:4;flex:1 1 calc((100% - (var(--k) - 1) * 10px) / var(--k))!important;min-width:150px!important;max-width:none!important;margin:0!important;box-sizing:border-box!important}
html body main :is(.stats,.inv-kpis,.st-kpis,.rv-kpis,.cat-cards,.goal-grid,.inv-places,.rnb-live)>:is(:first-child:nth-last-child(2),:first-child:nth-last-child(2)~*):not(#_){--k:2}
html body main :is(.stats,.inv-kpis,.st-kpis,.rv-kpis,.cat-cards,.goal-grid,.inv-places,.rnb-live)>:is(:first-child:nth-last-child(3),:first-child:nth-last-child(3)~*,:first-child:nth-last-child(5),:first-child:nth-last-child(5)~*,:first-child:nth-last-child(6),:first-child:nth-last-child(6)~*,:first-child:nth-last-child(9),:first-child:nth-last-child(9)~*):not(#_){--k:3}
html body main :is(.stats,.inv-kpis,.st-kpis,.rv-kpis,.cat-cards,.goal-grid,.inv-places,.rnb-live)>:is(:first-child:nth-last-child(10),:first-child:nth-last-child(10)~*):not(#_){--k:5}
@media(max-width:640px){html body main :is(.stats,.inv-kpis,.st-kpis,.rv-kpis,.cat-cards,.goal-grid,.inv-places,.rnb-live)>*:not(#_){min-width:132px!important}}

/* 3) Intestazione di un riquadro con molti pulsanti: i pulsanti vanno sotto il titolo, allineati a sinistra, invece di ammucchiarsi a destra. */
html body main .top:has(>.actions>:nth-child(5)):not(#_){flex-wrap:wrap!important}
html body main .top>.actions:has(>:nth-child(5)):not(#_){flex:1 1 100%!important;justify-content:flex-start!important;margin-left:0!important}


/* 5) Leggibilità: intestazioni di tabella scure (prima gialle su bianco nelle Impostazioni), testi minimi a 11 px, link più scuri. */
html body main th:not(#_){color:var(--muted)}
html body main :is(.st-chip,.rec-delta,output,.timeline-criterion-status,th small,.st-foot small,.cost-chips small):not(#_){font-size:11px!important}
html body main :is(summary,.an-edit-name,.cost-price-link,.price-inv-text-link,a:not(.btn)):not(#_){color:var(--ui-tint-ink)}
html body main .an-pie-legend button:not(#_){border-radius:0!important}
html body main .an-pie-legend button:not(#_):not(#__){background:transparent!important}
html body main .cost-chips select:not(#_):not(#__){height:var(--ui-h-sm)!important;min-height:var(--ui-h-sm)!important;border-radius:0!important}
html body main #settingsExperiences .inv-table-wrap:not(#_){overflow-x:auto!important;max-width:100%}
@media(max-width:640px){html body #analysisPage .an-sim-controls:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))!important}html body #analysisPage .an-sim-controls>label:first-child:not(#_){grid-column:1/-1}}

/* ===== Biancheria: moduli in colonne uguali, giorni come pastiglie (16 nov 2026) ===== */
html body #invLinen .lin-form:not(#_){display:grid;grid-template-columns:repeat(3,minmax(0,180px)) max-content;gap:10px 12px;align-items:end;margin:12px 0}
html body #invLinen .lin-form label:not(#_){display:flex;flex-direction:column;gap:var(--gap-label);min-width:0;font-size:12px;font-weight:600;color:var(--muted)}
html body #invLinen .lin-form input:not(#_){width:100%!important;min-width:0}
html body #invLinen .lin-form>.btn:not(#_){justify-self:start;white-space:nowrap}
html body #invLinen .lin-settings h4:not(#_){margin:16px 0 0;font-size:13px;color:var(--text)}
html body #invLinen .lin-settings h4:first-of-type:not(#_){margin-top:12px}
html body #invLinen .lin-days:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:14px 0}
html body #invLinen .lin-days>span:not(#_){font-size:12px;font-weight:600;color:var(--muted)}
html body #invLinen .lin-visit:not(#_){margin-left:6px;vertical-align:1px}
@media(max-width:640px){html body #invLinen .lin-form:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))}html body #invLinen .lin-form>.btn:not(#_){grid-column:1/-1;justify-self:stretch}}

/* ===== Intestazione delle pagine: Importa, account e impostazioni alti come la scelta del locale (34 px), allineati in basso ===== */
html body main .top>.actions:has(#location):not(#_){align-items:flex-end!important}
html body main .top>.actions:has(#location)>.btn:not(#_):not(#__){height:var(--ui-h)!important;min-height:var(--ui-h)!important;border-radius:0!important;padding:0 12px!important;font-size:13px!important}
html body main .top>.actions:has(#location)>:is(.account-btn,.settings-gear):not(#_):not(#__){width:var(--ui-h)!important;min-width:var(--ui-h)!important;padding:0!important;justify-content:center}
html body main .top>.actions>.global-location:not(#_):not(#__){margin:0!important}
html body #revenueCosts tr.is-excluded td:not(#_){color:var(--muted)}
html body #invLinen .lin-form input.lin-auto:not(#_){background:var(--panel2)!important;color:var(--muted)!important}
html body #invLinen .lin-form input.is-over:not(#_){border-color:var(--bad)!important}
html body #invLinen .lin-pair-note:not(#_){margin:6px 0 0;font-size:12.5px}
html body #invLinen .lin-bag:not(#_){margin:-4px 0 8px;font-size:12.5px;min-height:1em}
html body #invLinen .lin-back:not(#_){height:var(--ui-h-sm)!important;min-height:var(--ui-h-sm)!important;border-radius:0!important;width:150px}


html body #revenuePage :is(button,.btn,label.btn):not(table *):not(#_){white-space:nowrap}
@media(max-width:640px){
 
 html body #revenuePage .revenue-inputs .date-navigation>input:not(#_){order:-1;}
 html body #revenuePage .revenue-inputs .date-navigation>button:not(#_){flex:1 1 0!important;min-width:0!important;padding:0 6px!important}
 html body #revenuePage :is(button,.btn,label.btn):not(table *):not(#_){white-space:normal}
}
@media(max-width:640px){html body #revenuePage .rv-tabs:not(#_):not(#__){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%}html body #revenuePage .rv-tabs>.btn:not(#_):not(#__){justify-content:center;}}
@media(max-width:640px){html body #revenuePage .rv-tabs>.btn:not(#_):not(#__):not(#___){white-space:normal!important;overflow:visible;text-overflow:clip;height:auto!important;min-height:34px!important;line-height:1.2!important;text-align:center;padding:4px 6px!important}}
@media(max-width:640px){html body #revenuePage .rv-tabs:not(#_):not(#__):not(#___){align-items:stretch!important}}

/* ===== Menu per categorie (16 nov 2026) =====
   Computer: le categorie sono i soliti titoletti, le voci restano in colonna. Sotto 850 px: barra in basso con le 6 categorie,
   l'elenco delle voci si apre sopra la barra (js/nav-groups.js). */
html body .rnb-nav-sec:not(#_),html body .rnb-nav-list:not(#_){display:contents}
html body .rnb-nav-head:not(#_){display:block!important;width:auto;height:auto!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;text-align:left;cursor:default;pointer-events:none}
html body .rnb-nav-head:not(#_)>svg,html body .rnb-nav-head:not(#_)>.rnb-nav-badge{display:none!important}
@media(max-width:850px){
 html body .rnb-nav-sec:not(#_){display:flex!important;flex:1 1 0;min-width:0}
 html body .rnb-nav-list:not(#_){display:none!important}
 html body .rnb-nav-sec.open>.rnb-nav-list:not(#_){display:flex!important;flex-direction:column;gap:2px;position:fixed;left:8px;right:8px;bottom:calc(var(--rnb-bar-h) + env(safe-area-inset-bottom) + 8px);z-index:60;max-height:60vh;overflow:auto;padding:6px;background:var(--panel);border:1px solid var(--ui-line);border-radius:0;box-shadow:var(--sh-md)}
 html body .rnb-nav-head:not(#_):not(#__){position:relative;display:flex!important;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-width:0;min-height:52px!important;margin:0!important;padding:6px 2px!important;border-radius:0!important;color:var(--muted)!important;font:600 11px var(--font-brand)!important;letter-spacing:0!important;text-transform:none!important;text-align:center;cursor:pointer;pointer-events:auto}
 html body .rnb-nav-head:not(#_):not(#__)>svg{display:block!important;flex:none;opacity:.85}
 html body .rnb-nav-head>span:not(#_){max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html body .rnb-nav-sec.has-active>.rnb-nav-head:not(#_):not(#__){background:color-mix(in srgb,var(--azure) 12%,transparent)!important;color:var(--azure-ink,var(--azure-ink))!important}
 html body .rnb-nav-sec.open>.rnb-nav-head:not(#_):not(#__){background:color-mix(in srgb,var(--azure) 20%,transparent)!important}
 html body .rnb-nav-head:not(#_):not(#__)>.rnb-nav-badge:not([hidden]){display:inline-flex!important;position:absolute;top:3px;right:calc(50% - 24px);min-width:17px;height:17px;padding:0 4px;font-size:10px}
 html body .rnb-nav-list .rnb-nav-item:not(#_):not(#__){flex:none!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;min-height:44px!important;padding:8px 12px!important;font-size:14px!important;letter-spacing:0!important;text-align:left!important}
 html body .rnb-nav-list .rnb-nav-item>span:not(#_){flex:1 1 auto!important}
 html body .rnb-nav-list .rnb-nav-item.active:not(#_)::before{left:0!important;right:auto!important;top:10px!important;bottom:10px!important;width:3px!important;height:auto!important}
 html body .rnb-nav-list .rnb-nav-item .rnb-nav-badge:not(#_){position:static!important}
}
@media(min-width:851px){
 html body .rnb-nav-head:not(#_):not(#__){margin:12px 10px 4px!important;font:800 10.5px var(--font-brand)!important;letter-spacing:.12em!important;text-transform:uppercase!important}
 html body .rnb-nav-sec:first-child>.rnb-nav-head:not(#_):not(#__){margin-top:2px!important}
}
@media(min-width:851px) and (max-height:700px){html body .rnb-nav-sec:not(:first-child)>.rnb-nav-head:not(#_):not(#__){margin:8px 10px 2px!important}}

/* ===== Intestazione e categoria Impostazioni su telefono (16 nov 2026) =====
   Computer e tablet largo: Importa, account, location e ingranaggio restano un blocco unico sulla stessa riga;
   se non c'è posto accanto al titolo, il blocco intero va sotto il titolo, allineato a destra (mai l'ingranaggio da solo). */
@media(min-width:851px){
 html body main .top:has(>#headerContextActions):not(#_){flex-wrap:wrap!important;row-gap:10px;column-gap:16px}
 html body main .top>#headerContextActions:not(#_):not(#__){flex-wrap:nowrap!important;margin-left:auto!important;flex:0 0 auto!important}
 
}
@media(max-width:850px){
 /* telefono: logo fisso in alto a sinistra (porta a Oggi) e titolo della sezione centrato */
 html body>.brand-logo:not(#_):not(#__){display:block!important;position:fixed!important;left:12px;z-index:40;width:36px!important;max-width:36px!important;margin:0!important;cursor:pointer}
 html body>.brand-logo img:not(#_):not(#__){display:block;width:36px!important;border-radius:0!important;box-shadow:var(--sh-sm)!important}
 html body main .top:has(>#headerContextActions):not(#_):not(#__){padding-left:56px!important;padding-right:56px!important;text-align:center;justify-content:center}
 html body main .top:has(>#headerContextActions)>div:not(#_):not(#__){flex:1 1 100%;text-align:center}
 html body main .top:has(>#headerContextActions) :is(h1,h2,p):not(#_):not(#__){text-align:center!important;margin-left:auto!important;margin-right:auto!important}
 /* barra fissa in alto: logo a sinistra, titolo della sezione centrato; il sottotitolo resta nella pagina */
 html body::before{content:"";position:fixed;top:0;left:0;right:0;height:52px;background:var(--panel);border-bottom:1px solid var(--ui-line);z-index:35;pointer-events:none}
 html body>.brand-logo:not(#_):not(#__){top:8px!important}
 html body #pageTitle:not(#_):not(#__){position:fixed!important;top:0;left:56px;right:56px;height:52px;margin:0!important;display:flex;align-items:center;justify-content:center;z-index:38;font-size:19px!important;line-height:1.1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html body main:not(#_):not(#__){padding-top:66px!important}
 html body main .top:has(>#headerContextActions):not(#_):not(#__){padding-top:0!important;padding-bottom:6px;min-height:0}
 html body #pageSubtitle:not(#_):not(#__){display:none!important}
 html body main #headerContextActions:not(#_)>:is(.account-btn,.settings-gear,.global-location,.timeline-import-shortcut){display:none!important}
 html body .rnb-nav-loc:not(#_){padding:6px 12px 8px;border-bottom:1px solid var(--ui-line);margin-bottom:4px}
 html body .rnb-nav-loc .global-location:not(#_):not(#__){display:flex!important;flex-direction:column;gap:5px;margin:0!important;padding:0!important;border:0!important;background:transparent!important;width:100%}
 html body .rnb-nav-loc .global-location label:not(#_){font-size:12px!important;font-weight:600!important;color:var(--muted)!important;text-transform:none!important;letter-spacing:0!important}
 html body .rnb-nav-loc select:not(#_):not(#__){width:100%!important;font-size:15px!important}
 html body .rnb-nav-list button.rnb-nav-item:not(#_):not(#__){width:100%;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;font:600 14px var(--font-brand)!important;cursor:pointer}
}
@media(max-width:480px){html body .rnb-nav-sec[data-group="impostazioni"]:not(#_):not(#__){flex:1.35 1 0!important}html body .rnb-nav-head:not(#_):not(#__):not(#___){font-size:10.5px!important}}
/* account nell'intestazione: solo l'icona (il nome non ci stava); il nome resta nel suggerimento e nella finestra dell'account */
html body main #headerContextActions .account-btn>span:not(#_){display:none!important}



/* ===== Larghezza media (851–1599 px): sidebar trasformata in barra superiore ===== */
@media (min-width:851px) and (max-width:1599px) {

  html body .app:not(#_) {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto 1fr;
  }

  /* SOLO sidebar principale dell'applicazione */
  html body .app > aside:not(#_):not(#__) {
    position:sticky!important;
    top:0!important;
    z-index:30;
    flex-direction:row!important;
    gap:12px!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    border-right:0!important;
    border-bottom:1px solid var(--ui-line)!important;
    
  }

  html body .app > aside .brand-logo:not(#_) {
    width:34px!important;
    max-width:34px!important;
    flex:0 0 34px!important;
  }

  

  html body .app > aside .version:not(#_) {
    display:none!important;
  }

  html body .app > aside .rnb-nav:not(#_):not(#__) {
    flex:1 1 auto!important;
    width:auto!important;
    max-width:none!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center;
    gap:4px!important;
    min-width:0;
  }

  html body .app > aside .rnb-nav-sec:not(#_):not(#__):not(#___) {
    display:block!important;
    position:relative;
    flex:none;
  }

  html body .app > aside .rnb-nav-head:not(#_):not(#__):not(#___) {
    position:relative;
    display:inline-flex!important;
    align-items:center;
    gap:6px;
    width:auto;
    height:var(--ui-h)!important;
    min-height:0!important;
    margin:0!important;
    padding:0 10px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--muted)!important;
    font:600 13px var(--font-brand)!important;
    letter-spacing:0!important;
    text-transform:none!important;
    cursor:pointer;
    pointer-events:auto;
  }

  html body .app > aside .rnb-nav-head > svg {
    display:block!important;
    width:17px;
    height:17px;
    flex:none;
    opacity:.85;
  }

  html body .app > aside .rnb-nav-sec:not([data-one]) > .rnb-nav-head::after {
    content:"";
    width:6px;
    height:6px;
    margin-left:2px;
    border-right:1.6px solid currentColor;
    border-bottom:1.6px solid currentColor;
    transform:translateY(-2px) rotate(45deg);
    opacity:.7;
  }

  html body .app > aside .rnb-nav-sec.open > .rnb-nav-head::after {
    transform:translateY(1px) rotate(-135deg);
  }

  html body .app > aside .rnb-nav-head:hover {
    background:var(--panel2)!important;
  }

  html body .app > aside .rnb-nav-sec.has-active > .rnb-nav-head {
    background:color-mix(in srgb,var(--azure) 12%,transparent)!important;
    color:var(--azure-ink,var(--azure-ink))!important;
  }

  html body .app > aside .rnb-nav-sec.open > .rnb-nav-head {
    background:color-mix(in srgb,var(--azure) 18%,transparent)!important;
  }

  html body .app > aside .rnb-nav-head > .rnb-nav-badge:not([hidden]) {
    display:inline-flex!important;
    position:static;
    min-width:18px;
    height:18px;
    padding:0 5px;
    font-size:10.5px;
  }

  html body .app > aside .rnb-nav-list:not(#_):not(#__) {
    display:none!important;
  }

  html body .app > aside .rnb-nav-sec.open > .rnb-nav-list:not(#_):not(#__) {
    display:flex!important;
    flex-direction:column;
    gap:2px;
    position:absolute;
    top:calc(100% + 6px);
    left:0;
    z-index:60;
    min-width:220px;
    padding:6px;
    background:var(--panel);
    border:1px solid var(--ui-line);
    border-radius:0;
    box-shadow:var(--sh-md);
  }

  html body .app > aside .rnb-nav-sec:last-child.open > .rnb-nav-list {
    left:auto;
    right:0;
  }

  html body .app > aside .rnb-nav-list .rnb-nav-item:not(#_):not(#__) {
    flex:none!important;
    flex-direction:row!important;
    gap:10px!important;
    min-height:38px!important;
    padding:6px 10px!important;
    border-radius:0!important;
    font-size:13.5px!important;
    text-align:left!important;
    white-space:nowrap;
  }

  html body .app > aside .rnb-nav-list .rnb-nav-item > span {
    flex:1 1 auto!important;
  }

  html body .app > aside .rnb-nav-item kbd {
    display:none!important;
  }

  html body .app > aside .rnb-nav-list .rnb-nav-item.active::before {
    left:0!important;
    right:auto!important;
    top:9px!important;
    bottom:9px!important;
    width:3px!important;
    height:auto!important;
  }

  html body .app > aside .rnb-nav-item .rnb-nav-badge {
    position:static!important;
    min-width:18px;
    height:18px;
    font-size:10.5px;
    padding:0 5px;
  }

  html body .app > main:not(#_) {
    padding-top:18px!important;
  }

  /* Posizionamento dei due elementi principali nella griglia */
  html body .app > aside:not(#_):not(#__):not(#___) {
    grid-column:1/-1!important;
    grid-row:1!important;
    width:100%!important;
    box-sizing:border-box;
  }

  html body .app > main:not(#_):not(#__) {
    grid-column:1/-1!important;
    grid-row:2!important;
  }
}

/* Barra strumenti: nascosta fuori dal layout medio */
html body .rnb-bar-tools:not(#_) {
  display:none;
}

/* Selettore location */
@media (min-width:851px) {

  html body :is(#headerContextActions,.rnb-bar-tools) .global-location:not(#_):not(#__) {
    display:flex!important;
    align-items:center;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    width:auto!important;
    min-width:0!important;
    flex:0 0 auto!important;
  }

  html body :is(#headerContextActions,.rnb-bar-tools) .global-location label:not(#_) {
    position:absolute!important;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
  }

  html body :is(#headerContextActions,.rnb-bar-tools) .global-location select:not(#_):not(#__) {
    width:clamp(160px,17vw,210px)!important;
    min-width:0!important;
    height:var(--ui-h)!important;
    min-height:0!important;
    margin:0!important;
    padding:0 24px 0 10px!important;
    font-size:13px!important;
    text-overflow:ellipsis;
  }
}

/* Barra stretta: 851–1050 px */
@media (min-width:851px) and (max-width:1050px) {

  html body .app > aside {
    gap:6px!important;
    padding:6px 10px!important;
  }

  html body .app > aside .rnb-nav {
    gap:0!important;
    overflow:visible!important;
  }

  html body .app > aside .rnb-nav-head {
    padding:0 7px!important;
    gap:4px!important;
    font-size:13px!important;
  }

  html body .rnb-bar-tools:not(#_) {
    gap:5px;
  }
}

/* Strumenti a destra nella barra superiore */
@media (min-width:851px) and (max-width:1599px) {

  html body .rnb-bar-tools:not(#_) {
    display:flex;
    align-items:center;
    gap:8px;
    flex:none;
    margin-left:auto;
  }

  html body .rnb-bar-tools :is(.account-btn,.settings-gear):not(#_):not(#__) {
    flex:none;
  }

  html body .rnb-bar-tools .account-btn:not(#_):not(#__) {
    order:-1;
  }

  html body main #headerContextActions .timeline-import-shortcut:not(#_):not(#__):not(#___) {
    display:none!important;
  }
}



/* Oggi è la pagina iniziale: sul computer e a larghezza media ci si arriva dal logo, quindi non è ripetuta nel menu (sul telefono resta in Servizio) */
@media(min-width:851px){html body .rnb-nav-item[data-page="today"]:not(#_):not(#__){display:none!important}html body aside .brand-logo:not(#_){cursor:pointer}html body aside .brand-logo:focus-visible:not(#_){outline:2px solid var(--ui-azure);outline-offset:3px;border-radius:0}}
@media(min-width:851px){html body .rnb-nav-sec.rnb-nav-mobile-only:not(#_):not(#__):not(#___):not(#____){display:none!important}}
@media(min-width:851px){html body .rnb-nav-sec.open>.rnb-nav-list:not(#_):not(#__):not(#___){bottom:auto!important;height:auto!important}}

/* ===== Voorraadtelling (Inventario) ===== */
html body #invTelling .tel-form:not(#_){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;margin:12px 0}
html body #invTelling .tel-form label:not(#_){display:flex;flex-direction:column;gap:var(--gap-label);font-size:12px;font-weight:600;color:var(--muted);min-width:0}
html body #invTelling .tel-form :is(input,select):not(#_){width:100%!important;min-width:0}
html body #invTelling .inv-kpis:not(#_){margin:4px 0 10px}
html body #invTelling .tel-actions:not(#_){display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}

html body #invTelling .tel-preview>summary:not(#_){cursor:pointer;font-weight:600;color:var(--ui-tint-ink);margin:6px 0}
html body #invTelling tfoot td:not(#_){border-top:1px solid var(--ui-line)}
@media(max-width:640px){html body #invTelling .tel-form:not(#_){grid-template-columns:1fr}html body #invTelling .tel-actions>.btn:not(#_){flex:1 1 100%}}
/* Inventario: giacenza per ubicazione sotto il totale; elenco ubicazioni filtrato per categoria */
html body :is(#invMain,#invItems) .inv-locq:not(#_){display:flex;flex-direction:column;gap:1px;margin-top:4px;font-size:11.5px;line-height:1.3;color:var(--muted)}
html body :is(#invMain,#invItems) .inv-locq>span:not(#_){display:flex;justify-content:space-between;align-items:baseline;gap:10px;white-space:normal;min-width:0;overflow-wrap:anywhere;line-height:1.3}
html body :is(#invMain,#invItems) .inv-locq>span>b:not(#_){flex:0 0 auto;margin-left:auto;padding-left:4px;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
/* qui c'erano quattro graffe chiuse in più che annullavano la regola seguente (.inv-locq min-width:150px); tolte insieme
   alla regola, che anche attiva non avrebbe effetto: nelle righe la copre min-width:0 di 61-page-inventory.css (provato il 25 nov 2026) */
html body :is(#invMain,#invItems) .inv-locq>span.is-zero:not(#_){color:var(--muted)}


/* Campi giacenza e conteggio: spazio per 4-5 cifre, senza le frecce del browser (ci sono già − e +) */
html body :is(:is(#inventoryPage,#invItemsPanel),#ordersPage) .inv-countpanel .cnt-step .inv-num:not(#_){width:84px !important;padding:0 6px !important;text-align:center;-moz-appearance:textfield}
html body :is(.cnt-step,.inv-step) input[type=number]::-webkit-inner-spin-button,html body :is(.cnt-step,.inv-step) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html body :is(.cnt-step,.inv-step) input[type=number]{-moz-appearance:textfield}
/* ===== Avviso «Locale chiuso» (Dashboard, Floor plan, Timeline) ===== */
.rnb-closed-host:empty{display:none}
.rnb-closed{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 16px;border:1px solid var(--warn);border-radius:0;background:var(--box-bg);color:var(--text)}
.rnb-closed-ico{flex:none;width:10px;height:10px;border-radius:50%;background:var(--warn);font-size:0}
.rnb-closed-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
.rnb-closed-text strong{font-size:15px;font-weight:800}
.rnb-closed-text span{font-size:13px;color:var(--muted)}
html body .rnb-closed-go:not(#_){flex:none}
@media (max-width:600px){.rnb-closed{flex-wrap:wrap}.rnb-closed-text{flex-basis:calc(100% - 22px)}html body .rnb-closed-go:not(#_){margin-left:22px}}
/* ===== Personale · riga «Obiettivo di incasso»: etichetta su due righe, valore e pulsante «Dai costi» uno sotto l'altro (niente troncature) ===== */
html body #staffPage .st-foot th.st-name:not(#_){white-space:normal;line-height:1.2;min-width:150px}
html body #staffPage .st-foot th.st-name small:not(#_){display:block;margin-top:1px;font-size:11px!important;font-weight:500;color:var(--muted);text-transform:none;letter-spacing:0}
html body #staffPage .st-foot td .st-goal:not(#_){display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;white-space:normal;line-height:1.2;min-width:0}
html body #staffPage .st-goal b:not(#_){font-weight:700;color:var(--text)}
html body #staffPage .st-goal small:not(#_){font-size:11px!important;color:var(--muted);white-space:nowrap}
html body #staffPage .st-goal .st-mini:not(#_){white-space:nowrap}
html body #staffPage .st-foot.st-goal-row td:not(#_){vertical-align:middle;text-align:center;padding-top:6px!important;padding-bottom:6px!important}

/* ===== Voorraadtelling: elenchi del gruppo ===== */
.tel-lists{margin:10px 0 4px;font-size:13px}
.tel-lists summary{cursor:pointer;font-weight:700;color:var(--azure-ink)}
.tel-lists-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:8px}
.tel-lists-grid label{display:flex;flex-direction:column;gap:4px}
.tel-lists-grid span{font-weight:600;color:var(--muted)}
.tel-lists-grid textarea{width:100%;box-sizing:border-box;border:1px solid var(--ui-line,var(--line));border-radius:0;padding:6px 8px;font:inherit}

/* ===== Magazzino: categorie dell'inventario (di gruppo) ===== */
.inv-cat-settings{margin:18px 0}

/* ===== Tipi di location: voci e schede non previste per Production e Warehouse ===== */
html body .rnb-off:not(#_){display:none!important}
html body aside .rnb-nav .rnb-nav-sec.rnb-off:not(#_):not(#__){display:none!important}
@media (min-width:851px){html body aside .rnb-nav .rnb-nav-sec.rnb-only-today:not(#_):not(#__){display:none!important}}

/* ===== Personale di Production e Warehouse: turno di giornata ===== */
.st-dayshift{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:10px 0}
.st-dayshift label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--muted)}
.st-dayshift input{height:34px;border:1px solid var(--ui-line,var(--line));border-radius:0;padding:0 8px;font:inherit;color:var(--text)}
.st-dayshift .muted{padding-bottom:8px;color:var(--muted)}
html body .st-dayplan .st-dp:not(#_){width:100%;min-width:84px;height:28px!important;min-height:0!important;padding:0 6px!important;border:1px solid var(--ui-line,var(--line))!important;border-radius:0!important;background:var(--panel)!important;color:var(--muted)!important;font-size:12px!important;font-weight:600!important}
html body .st-dayplan .st-dp-on:not(#_){background:var(--ui-tint)!important;border-color:var(--azure)!important;color:var(--azure-ink)!important}
html body .st-dayplan .st-dp-off:not(#_){background:var(--box-bg)!important;border-color:var(--warn)!important;color:var(--warn)!important}
html:is([data-loc-type=production],[data-loc-type=warehouse]) .st-sheet :is(th,td):nth-child(9),html:is([data-loc-type=production],[data-loc-type=warehouse]) .st-sheet :is(th,td):nth-child(10){display:none}
html:is([data-loc-type=production],[data-loc-type=warehouse]) #staffSettings > .st-scroll:first-of-type .st-table :is(th,td):is(:nth-child(8),:nth-child(9),:nth-child(10)){display:none}

/* ===== Account › Amministrazione: location del gruppo (1.280.0: righe .set-list, regole in 61-page-account.css) ===== */
.adm-badge{flex:none;border-radius:0;background:var(--ui-tint);color:var(--azure-ink);font-size:11px;font-style:normal;font-weight:700}
/* Production e Warehouse: la biancheria (tovaglioli per coperto) è solo dei ristoranti */
html:is([data-loc-type=production],[data-loc-type=warehouse]) #invLinen{display:none!important}
html body #accAdminSection .adm-loc-input:not(#_){width:100%;min-width:0;height:34px!important;padding:0 10px!important;border:1px solid var(--ui-line,var(--line))!important;border-radius:0!important;font-weight:650;color:var(--text)}
.adm-loc-id{font-size:11px;font-weight:500;color:var(--muted);font-family:ui-monospace,Consolas,monospace}
.adm-badge{padding:0 8px;line-height:18px}

/* Impostazioni › Experience: aggiungere o togliere un menu */
.exp-add{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 14px}
.exp-add .muted{color:var(--muted);margin-right:4px}

/* ===== Inventario in schede e tabella a blocchi ===== */
html body .inv-sec-off:not(#_){display:none!important}
.inv-sections{margin:0 0 14px}
.inv-more-row td{padding:10px 8px!important;text-align:center;background:var(--panel2)}
.inv-more-row td>*{margin:0 6px}
.inv-more-row .muted{color:var(--muted)}

/* ===== Pagine lunghe in schede (Analisi, Food cost, Ordini, Personale) ===== */
html body .pg-sec-off:not(#_){display:none!important}
.page-sections{margin:0 0 14px}

/* ===== Schede delle pagine: stessa barra e stesse distanze in tutta l'app (Fatturato, Inventario, Analisi, Food cost, Ordini, Personale) ===== */
html body :is(.inv-sections,.page-sections,#revenuePage .rv-tabs):not(#_):not(#__){margin:0 0 14px!important;padding:3px!important} /* stesso stacco sotto ogni barra di schede delle pagine (Fatturato compreso, 1.267.9) */
html body .page-sections.rnb-off:not(#_){display:none!important}
/* titolo della sezione aperta: stesso stacco sopra e sotto in ogni scheda */
html body :is(:is(#inventoryPage,#invItemsPanel),#analysisPage,#costsPage,#ordersPage,#staffPage) :is(.top,.st-tl-head) h2:not(#_),html body :is(:is(#inventoryPage,#invItemsPanel),#analysisPage,#costsPage,#ordersPage,#staffPage) :is(.top,.st-tl-head) h3:not(#_){margin:0 0 4px!important}
/* ===== Niente contenuti chiusi: i <details> sono sezioni sempre aperte, il <summary> è un titolo (js/open-sections.js) ===== */
html body details.rnb-open:not(#_){display:block;margin:16px 0 0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body details.rnb-open>summary:not(#_){display:block;list-style:none;cursor:default;margin:0 0 8px!important;padding:0!important;min-height:0!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--text)!important;font-size:15px!important;font-weight:750!important;letter-spacing:0;text-transform:none}
html body details.rnb-open>summary::-webkit-details-marker{display:none}
html body details.rnb-open>summary::marker{content:""}
html body details.rnb-open>summary:not(#_)::before,html body details.rnb-open>summary:not(#_)::after{display:none!important;content:none!important}
/* ===== Analisi › Da sostituire: regole della location ===== */
.an-rep-rules{margin-top:18px;padding-top:14px;border-top:1px solid var(--ui-line,var(--line))}
.an-rep-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:10px 0}
.an-rep-in{display:flex;align-items:center;gap:var(--gap-ctl)}
.an-rep-in input{width:90px;height:34px;border:1px solid var(--ui-line,var(--line));border-radius:0;padding:0 8px;font:inherit;color:var(--text)}
.an-rep-in small{font-weight:500;color:var(--muted)}
.an-rep-check{display:inline-flex;align-items:center;gap:6px;margin:4px 14px 4px 0;font-size:13px;color:var(--text)}
.an-rep-skip{display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;margin-top:6px}
.an-rep-skip>span{flex-basis:100%;font-size:12px;font-weight:600;color:var(--muted)}
/* ===== Vini al calice (Analisi, 17 nov 2026) ===== */
.an-glass-block{margin-top:16px}
.an-glass-block>h4{margin:0 0 4px;font-size:15px;color:var(--text)}
.an-glass-block>h4 small{font-weight:500;color:var(--muted);font-size:12px;margin-left:4px}
#analysisPage .an-glass .an-rep-row .an-row-val{flex-direction:column;align-items:flex-end;gap:4px}
#analysisPage .an-glass .an-rep-row .an-row-val>.inv-chip{width:110px;justify-content:center}
select.an-glass-type{height:28px;border:1px solid var(--ui-line,var(--line));border-radius:0;padding:0 6px;font:inherit;font-size:12px;color:var(--text);background:var(--panel);margin-top:4px;max-width:100%}
.an-glass-untyped{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px 16px}
.an-glass-untyped li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid var(--panel2);font-size:13px;color:var(--text);min-width:0}
.an-glass-untyped li>span{min-width:0;overflow-wrap:anywhere}
.an-glass-untyped select.an-glass-type{margin-top:0;flex:none}



/* Altezza minima: sotto i 600 px di altezza la finestra non comprime più il layout, la pagina scorre */
html body:not(#_){min-height:600px;min-width:360px}
html body .app:not(#_){min-height:max(100vh,600px)}


/* Barra data (Ieri · Oggi · Domani, « »): al passaggio del mouse il testo diventava bianco su fondo chiaro; fondo azzurro e testo scuro leggibile */
html body :is(main,.modal-backdrop) .date-navigation button:not(:disabled):not(#_):not(#__):hover{background:var(--ui-tint)!important;border-color:var(--azure)!important;color:var(--azure-ink)!important;filter:none!important}

/* Accesso responsive: la schermata scorre se lo schermo è basso (telefono in orizzontale, tastiera aperta) e su telefono è più compatta */
html body #loginGate:not(#_){display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;min-height:0;height:100dvh;padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
html body #loginGate .login-card:not(#_){margin:auto;box-sizing:border-box;width:min(400px,100%);min-width:0}
html body #loginGate .login-card input:not([type=checkbox]):not(#_){width:100%;box-sizing:border-box;min-width:0;font-size:16px}
html body #loginGate .login-card input[type=checkbox]:not(#_){width:16px;height:16px;flex:none;margin:0}
html body #loginGate .login-card .login-submit:not(#_){height:var(--ui-h,42px);min-height:42px}
@media(max-width:480px){
 html body #loginGate .login-card:not(#_){gap:12px;padding:22px 18px;border-radius:0}
 
 html body #loginGate .login-card h1:not(#_){font-size:21px}
}
@media(max-height:560px){
 html body #loginGate .login-card:not(#_){gap:8px;padding:16px 18px}
 
 html body #loginGate .login-card h1:not(#_){font-size:18px;margin:0}
 html body #loginGate .login-card .login-note:not(#_){display:none}
}


/* Fatturato › Come raggiungere: i valori del riepilogo in tempo reale (Previsto, Bevande, Rispetto allo storico, Obiettivo) sono incolonnati sulla stessa riga, con etichette e numeri allineati in alto */
html body .revenue-mix-live:not(#_){align-items:start}
html body .revenue-mix-live>div:not(#_){justify-content:flex-start}
html body .revenue-mix-live small:not(#_){line-height:1.25;min-height:2.5em;display:flex;align-items:flex-end}
@media(max-width:900px){
 html body .revenue-mix-live:not(#_){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
 html body .revenue-mix-live .rv-live-goal:not(#_){grid-column:1/-1;padding-top:10px;border-top:1px solid var(--ui-line)}
 html body .revenue-mix-live .rv-live-goal small:not(#_){min-height:0}
}



/* Cornice fantasma: il vecchio stile «vetro» (30-polish-layer) dava a pannelli e riquadri un contorno (outline) oltre al bordo.
   Dove il pannello è stato reso piatto (bordo tolto) restava una cornice sottile con il testo a filo: si toglie ovunque, il bordo basta. */
html body :is(.panel,.stat,.rnb-card,.rnb-assist,.auto-smart-panel,.rnb-arrivals,.dashboard-floor-slice,.service-card,.rnb-proposal-group,.table-config-chip,.booking-timeline-item>.booking,.timeline-scroll):not(:focus-visible):not(#_){outline:0}




/* Gruppi segmentati in tutta l'app (schede e filtri): aspetto del gruppo invariato, voci separate da una sottile linea verticale.
   La linea sparisce accanto alla voce attiva (il suo colore pieno basta) e all'inizio di ogni riga quando il gruppo va a capo (classe seg-row-start, js/seg-dividers.js). */
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg)>:is(button,a):not(#_){position:relative}
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg)>:is(button,a)~:is(button,a):not(.seg-row-start):not(#_)::before{content:"";position:absolute;left:-2px;top:22%;bottom:22%;width:1px;background:var(--line);pointer-events:none}
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg)>:is(.active,.primary,.on,.is-active,[aria-selected="true"],[aria-pressed="true"]):not(#_)::before,
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg)>:is(.active,.primary,.on,.is-active,[aria-selected="true"],[aria-pressed="true"])+:is(button,a):not(#_)::before,
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg)>[hidden]+:is(button,a):not(#_)::before{display:none}

/* Oggi: servizio senza personale pianificato. «Sala in turno» mostra un'etichetta ambra cliccabile; sotto, un avviso con il pulsante «Pianifica i turni» (come «Imposta obiettivo») */



html body .td-duty.td-duty-empty:not(#_){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0 0;padding:10px 12px;border:1px solid var(--box-line);border-left:3px solid var(--warn);border-radius:0;background:var(--box-bg);color:var(--text);font-size:13px;line-height:1.4}
html body .td-duty.td-duty-empty>span:not(#_){flex:1 1 200px;min-width:0}

/* Riquadri informativi (numero + etichetta) centrati in tutta l'app: Dashboard, Fatturato, Food cost, Personale, Inventario, Ordini, Analisi */
html body main :is(.stat,.inv-kpi,:where(#rnbLive) .rnb-card):not(#_):not(#__){text-align:center!important;align-items:center!important;justify-content:center!important}
html body main :is(.stat,.inv-kpi,:where(#rnbLive) .rnb-card):not(#_):not(#__)>*{text-align:center!important;margin-left:auto;margin-right:auto}

/* Dashboard › Floor plan: turni e tavoli sono pulsanti con una classe propria; app.css li copriva con il fondo azzurrino e angoli da 10 px. Si ripristinano i loro colori di stato */
html body .dfq-tab:not(#_){border:1px solid var(--ui-tint)!important;border-radius:0!important;background:var(--panel)!important;box-shadow:none!important}
html body .dfq-tab:not(#_):hover{border-color:var(--azure)!important}
html body .dfq-tab.on:not(#_){background:var(--azure)!important;border-color:var(--azure)!important}
html body .dfq-t:not(#_){border:1px solid color-mix(in srgb,var(--ok) 40%,var(--box-line))!important;border-radius:0!important;background:var(--box-bg)!important}
html body .dfq-t.s-booked:not(#_){background:var(--ui-tint)!important;border-color:var(--azure)!important}
html body .dfq-t.s-soon:not(#_){background:var(--box-bg)!important;border-color:var(--warn)!important}
html body .dfq-t.s-seated:not(#_){background:var(--azure)!important;border-color:var(--azure)!important}
html body .dfq-t.s-blocked:not(#_){background:repeating-linear-gradient(135deg,var(--panel2) 0 6px,var(--line) 6px 12px)!important;border-color:var(--line)!important}

/* Impostazioni › Magazzino: ruolo dell'ubicazione (primaria / secondaria) nella riga dell'area */

html body #settingsStock .inv-area-role select:not(#_){width:100%;min-width:0;height:var(--ui-h);border-radius:0}

/* Riempimento delle ubicazioni primarie: card nella checklist (Oggi) e da fare nella Dashboard */
html body .rf-card .rf-table:not(#_){min-width:520px}
html body .rf-card .rf-table td:not(#_){vertical-align:top}
html body .rf-card .rf-table td small.rf-order:not(#_){display:block;margin-top:2px;color:var(--warn);font-size:12px}
html body .rf-card .rf-table tr.rf-short td:not(#_){color:var(--muted)}
html body .rf-card .rf-q:not(#_){width:72px;height:28px;padding:2px 6px;text-align:right}
html body #dashRefill.rf-dash:not(#_){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:12px 14px;border:1px solid var(--box-line);border-left:3px solid var(--warn);border-radius:0;background:var(--box-bg);color:var(--text)}
html body #dashRefill.rf-dash>div:not(#_){display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 240px}
html body #dashRefill.rf-dash strong:not(#_){color:var(--text)}
html body #dashRefill.rf-dash span:not(#_){font-size:13px}

/* ===== Impostazioni › Magazzino nel design dell'app =====
   Tre sezioni (Ubicazioni, Categorie, Controllo scadenze) separate dalla linea spessa come nel Fatturato.
   Ogni categoria è un riquadro chiuso; le ubicazioni sono una lista a righe (vedi sotto, 1.269.4). */
html body #settingsStock .inv-area-list:not(#_){gap:0!important;margin:12px 0 14px!important}
/* 1.269.5: ubicazioni come lista a righe (n° con frecce, nome, ruolo, categorie, ✕), linea sotto ogni riga; niente menu «Altro» nelle Impostazioni */
html body #settingsStock .inv-area-row:not(#_):not(#__){grid-template-columns:auto minmax(120px,1fr) minmax(150px,200px) max-content auto!important;align-items:end;gap:6px 14px;max-width:none;padding:8px 0!important;border:0!important;border-bottom:1px solid var(--ui-line)!important;border-radius:0;background:transparent}
html body #settingsStock .inv-area-row:focus-within:not(#_){background:transparent}
html body #settingsStock .inv-area-order:not(#_){align-self:end;height:var(--ui-h)}
html body #settingsStock .inv-area-row .inv-area-categories:not(#_):not(#__):not(#___){grid-column:auto;align-self:end;margin:0;padding:0 0 9px!important;border-top:0!important}
html body #settingsStock .inv-area-row .inv-area-categories>summary:not(#_){white-space:nowrap}
html body .inv-area-count:not(#_){padding:0;border:0;background:transparent}
html body #settingsStock .inv-area-row .inv-area-categories[open]:not(#_):not(#__):not(#___){grid-column:1/-1;grid-row:2}
html body #settingsStock .inv-area-row .inv-area-field:not(#_):not(#__){display:flex!important;flex-direction:column;align-items:stretch;gap:4px}
html body #settingsStock .inv-area-row .inv-area-field>span:not(#_){font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
html body #settingsStock .inv-area-categories:not(#_):not(#__){grid-column:1/-1;margin-top:4px;padding:8px 0 0!important;border-top:1px dashed var(--ui-line)!important}
html body #settingsStock .inv-expcheck-opts:not(#_){gap:8px}
html body #settingsStock .inv-expcheck-opts>label:not(#_){display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid var(--ui-line);border-radius:0;background:var(--panel)}
@media(max-width:700px){
 html body #settingsStock .inv-area-row:not(#_):not(#__){grid-template-columns:minmax(0,1fr) auto!important;align-items:start;row-gap:var(--gap-field,14px)}
 html body #settingsStock .inv-area-order:not(#_){grid-column:1;grid-row:1;align-self:center}
 html body #settingsStock .inv-area-row .inv-area-delete:not(#_):not(#__):not(#___){grid-column:2;grid-row:1;align-self:center;margin:0}
 html body #settingsStock .inv-area-row .inv-area-name:not(#_):not(#__){width:100%;min-width:0}
 html body #settingsStock .inv-area-row .inv-area-categories:not(#_):not(#__):not(#___){grid-column:1/-1;grid-row:4}
 html body #settingsStock .inv-area-row>.inv-area-field:not(.inv-area-role):not(#_){grid-column:1/-1;grid-row:2}
 html body #settingsStock .inv-area-role:not(#_):not(#__){grid-column:1/-1;grid-row:3}
}

/* Regola di stile delle liste a righe: l'etichetta di ogni campo compare una volta sola, sulla prima riga, come intestazione di colonna.
   Nelle righe seguenti resta solo per i lettori di schermo. Su telefono le righe vanno in colonna e ogni riga tiene le sue etichette. */
@media(min-width:701px){
 html body .inv-area-list>.inv-area-row:not(:first-child) .inv-area-field>span:not(#_):not(#__){position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 html body .inv-area-list>.inv-area-row:not(:first-child) .inv-area-field:not(#_):not(#__){gap:0}
}

/* ===== Impostazioni: stile comune a tutte le schede =====
   Titolo della scheda (h2 del primo pannello) grande; titoli delle sezioni interne tutti uguali (17 px, scuri);
   sotto-gruppi (h4) come etichette piccole in maiuscolo; descrizioni brevi e grigie; sezioni interne come riquadri bianchi senza ombra;
   etichette dei campi piccole in maiuscolo, come nel Magazzino e nel Fatturato. */
html body #settingsPage :is(.panel .panel h2,.panel h3):not(#_):not(#__){margin:0 0 4px!important;font-size:17px!important;font-weight:650!important;line-height:1.3!important;letter-spacing:-.01em!important;color:var(--text)!important;text-transform:none!important}
html body #settingsPage .panel h4:not(#_):not(#__){margin:14px 0 8px!important;font-size:11px!important;font-weight:700!important;letter-spacing:.05em!important;text-transform:uppercase!important;color:var(--muted)!important}
html body #settingsPage :is(p.muted):not(#_):not(#__){max-width:760px;font-size:13px!important;line-height:1.45!important;color:var(--muted)!important}
html body #settingsPage .field>label:not(#_):not(#__){font-size:12.5px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:var(--muted)!important;line-height:1.3!important}
html body #settingsPage .form-grid:not(#_):not(#__){align-items:end!important}

/* ===== Selettori dell'app (js/rnb-select.js) =====
   Tendina chiusa: freccia dell'app al posto di quella del browser. Menu aperto: come i menu a tendina della barra in alto. */
html body select:not([multiple]):not([size]):not(#_){-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F6B80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 9px center!important;background-size:14px 14px!important;padding-right:30px!important;cursor:pointer}
html body select:not([multiple]):not([size]):disabled:not(#_){cursor:default;opacity:.65}
html body select.rnb-sel-open:not(#_){border-color:var(--ui-azure,var(--azure))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--azure) 15%,transparent)!important}
html body .rnb-sel-pop:not(#_){position:fixed;z-index:2000;display:flex;flex-direction:column;gap:1px;max-width:min(420px,calc(100vw - 16px));overflow-y:auto;overscroll-behavior:contain;padding:5px;background:var(--panel);border:1px solid var(--ui-line);border-radius:0;box-shadow:var(--sh-md);font:500 13.5px var(--font-brand,inherit)}
html body .rnb-sel-pop .rnb-sel-opt:not(#_){display:block!important;width:100%!important;height:auto!important;min-height:34px!important;padding:7px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--control-text)!important;font:inherit!important;text-align:left!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transform:none!important}
html body .rnb-sel-pop .rnb-sel-opt.is-cur:not(#_){background:var(--panel2)!important}
html body .rnb-sel-pop .rnb-sel-opt.is-sel:not(#_){background:color-mix(in srgb,var(--azure) 12%,transparent)!important;color:var(--azure-ink)!important;font-weight:650!important}
html body .rnb-sel-pop .rnb-sel-opt:disabled:not(#_){color:var(--muted)!important;cursor:default}
html body .rnb-sel-pop .rnb-sel-group:not(#_){padding:8px 12px 3px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
html body .rnb-sel-pop .rnb-sel-empty:not(#_){padding:8px 12px;color:var(--muted)}

/* Ordini › Consegne in arrivo: Annulla, Allega, Conferma, Arrivato tutti uguali (34 px, stessa larghezza minima, etichette corte) */
html body .rnb-del-actions:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html body .rnb-del-actions :is(.btn,label.btn):not(#_):not(#__){display:inline-flex!important;align-items:center;justify-content:center;height:var(--ui-h)!important;min-height:var(--ui-h)!important;min-width:96px;padding:0 14px!important;border-radius:0!important;font-size:13px!important;white-space:nowrap}
html body .rnb-del-actions>span:not(#_){display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}

/* Menu a tendina dell'app (details.rnb-menu): pulsante come gli altri, elenco come i menu della barra in alto.
   Inventario: «Download» (Excel, CSV) e «Modifica tutto» in blu, in fondo a destra della barra. */
html body details.rnb-menu:not(#_){position:relative;display:inline-block}
html body details.rnb-menu>summary:not(#_){list-style:none;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
html body details.rnb-menu>summary:not(#_)::-webkit-details-marker{display:none}
html body details.rnb-menu>summary:not(#_)::after{content:"";width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-2px) rotate(45deg);opacity:.7}
html body details.rnb-menu[open]>summary:not(#_)::after{transform:translateY(1px) rotate(-135deg)}
html body details.rnb-menu>.rnb-menu-list:not(#_){position:absolute;right:0;top:calc(100% + 6px);z-index:60;display:flex;flex-direction:column;gap:2px;min-width:160px;padding:5px;background:var(--panel);border:1px solid var(--ui-line);border-radius:0;box-shadow:var(--sh-md)}
html body details.rnb-menu .rnb-menu-item:not(#_){display:block!important;width:100%!important;height:auto!important;min-height:34px!important;padding:7px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--control-text)!important;font:500 13.5px var(--font-brand,inherit)!important;text-align:left!important;cursor:pointer;transform:none!important}
html body details.rnb-menu .rnb-menu-item:not(#_):hover{background:var(--panel2)!important}
html body details.inv-dl:not(#_){margin-left:auto}
html body :is(#inventoryPage,#invItemsPanel) .inv-bar>.inv-tools:has(.inv-dl):not(#_){flex:1 1 100%}

/* Inventario › Aggiungi articolo: stessi campi della tabella (riga principale + dettagli), salvataggio automatico */
html body :is(#inventoryPage,#invItemsPanel) .inv-add.inv-add-v2:not(#_):not(#__){display:flex!important;flex-direction:column;gap:12px;align-items:stretch}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v2 :is(.inv-add-grid,.inv-add-det):not(#_){display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px 12px;align-items:start}

html body :is(#inventoryPage,#invItemsPanel) .inv-add-v2 .inv-add-name:not(#_){grid-column:span 2}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v2 .field:not(#_){margin:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v2 .field>label:not(#_){display:block;margin:0;font-size:12.5px;font-weight:600;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v2 :is(input,select):not([type=checkbox]):not(#_){width:100%;min-width:0;height:var(--ui-h);border-radius:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v2 .inv-add-check:not(#_){display:flex;align-items:center;gap:8px;align-self:end;height:var(--ui-h);font-size:13px;color:var(--control-text)}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v2 .inv-add-status:not(#_){margin:0;font-size:13px}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v2 .inv-add-status.is-ok:not(#_){color:var(--ok)}
@media(max-width:560px){html body :is(#inventoryPage,#invItemsPanel) .inv-add-v2 .inv-add-name:not(#_){grid-column:1/-1}}

/* ===== Timeline: riga della sala con gli orari e apri/chiudi (1.265.2) ===== */
html body #timelineContent .timeline-area-row.has-hours:not(#_){display:grid!important;grid-template-columns:200px minmax(0,1fr)!important;align-items:stretch;padding:0!important;overflow:hidden}
@media(max-width:560px){html body #timelineContent .timeline-area-row.has-hours:not(#_){grid-template-columns:190px minmax(0,1fr)!important}}
html body #timelineContent .timeline-area-toggle:not(#_){justify-content:flex-start!important;gap:2px 8px;min-width:0;min-height:40px!important;padding:6px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
html body #timelineContent .timeline-area-toggle:not(#_):hover{background:color-mix(in srgb,var(--azure) 9%,transparent)!important}
html body #timelineContent .timeline-area-toggle:not(#_):focus-visible{outline:2px solid var(--azure-ink)!important;outline-offset:-2px}
html body #timelineContent .timeline-area-toggle>span:not(#_){flex:1 1 auto;margin-left:auto;text-align:right;}
html body #timelineContent .timeline-area-row.is-closed .timeline-area-toggle>span:not(#_){flex-basis:100%;margin-left:17px;text-align:left}
html body #timelineContent .timeline-area-hours span:first-child:not(#_){transform:translate(4px,-50%)}
html body #timelineContent .timeline-area-toggle .tl-area-chev:not(#_){display:block;flex:none;background:none!important;padding:0!important;border-radius:0!important;width:7px;height:7px;margin:0 2px 3px 0;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .18s ease;font-size:0!important}
html body #timelineContent .timeline-area-row.is-closed .tl-area-chev:not(#_){transform:rotate(-45deg);margin-bottom:0}
html body #timelineContent .timeline-area-hours:not(#_){position:relative;min-height:40px;overflow:hidden;border-left:1px solid color-mix(in srgb,var(--azure) 25%,transparent)}
html body #timelineContent .timeline-area-hours span:not(#_){position:absolute;top:50%;transform:translate(-50%,-50%);background:none!important;border:0!important;padding:0!important;font-size:12px!important;font-weight:600;color:var(--azure-ink)!important;letter-spacing:0;text-transform:none;white-space:nowrap}
@media (prefers-reduced-motion:reduce){html body #timelineContent .timeline-area-toggle .tl-area-chev:not(#_){transition:none}}

/* ===== Floor plan: periodo di apertura della sala (1.266.0) ===== */
html body .floor-area-season:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap-label) var(--gap-ctl);margin:0;font-size:13px}
html body .floor-area-season>label:not(#_){margin:0;font-size:12px;font-weight:700;color:var(--muted)}
html body .floor-area-season select:not(#_){width:auto;min-width:0;height:var(--ui-h);padding:0 28px 0 10px}
html body .floor-season-range:not(#_){display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}

/* ===== Timeline: intestazione con gli ospiti in arrivo e conteggio sui turni (1.266.0) ===== */
html body #timelineContent .tl-guests-head .timeline-label:not(#_){display:flex;flex-direction:column;justify-content:center;gap:1px;line-height:1.2}
html body #timelineContent .tl-guests-head .timeline-label span:not(#_){font-size:12.5px;font-weight:700;color:var(--ui-ink)}
html body #timelineContent .tl-guests-head .timeline-label small:not(#_){font-size:11.5px;color:var(--muted)}
html body #timelineContent .tl-guests span:not(#_){font-size:14px!important;font-weight:800!important;color:var(--azure-ink)!important;font-variant-numeric:tabular-nums}
html body #timelineContent .tl-guests span.is-zero:not(#_){font-weight:600!important;color:var(--muted)!important;opacity:.6}
html body .shift-buttons .shift-count:not(#_){display:inline-block;min-width:20px;margin-left:7px;padding:0 6px;border-radius:999px;background:color-mix(in srgb,var(--azure) 14%,transparent);color:inherit;font-size:11.5px;font-weight:700;line-height:18px;text-align:center;font-variant-numeric:tabular-nums}
html body .shift-buttons .btn.primary .shift-count:not(#_){background:color-mix(in srgb,var(--on-accent) 25%,transparent)}

/* ===== Ordini › Consegne in arrivo: «Arrivato» in alto a destra della consegna (1.266.2) ===== */
html body .inv-deliv .inv-group-head:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
html body .inv-deliv .inv-group-head .rnb-card-actions:not(#_):not(#__){margin-left:auto}
html body .inv-deliv .rnb-del-actions:not(#_){justify-content:flex-start}
html body .inv-deliv .rnb-del-actions>.btn:last-child:not(#_){margin-left:auto}
/* ===== Inventario › Aggiungi articolo a sezioni (1.266.7) ===== */
html body :is(#inventoryPage,#invItemsPanel) .inv-add.inv-add-v3:not(#_):not(#__){gap:0!important}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-intro:not(#_){margin:0 0 6px;font-size:13px;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-req:not(#_){margin-left:4px;color:var(--azure-ink);font-weight:800}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-sec:not(#_){display:grid;grid-template-columns:170px minmax(0,1fr);gap:10px 20px;padding:14px 0;border-top:1px solid var(--ui-line)}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-sec-head:not(#_){display:flex;flex-direction:column;gap:2px;padding-top:2px}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-sec-head h5:not(#_){margin:0;font-size:14px;font-weight:700;color:var(--ui-ink)}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-sec-head small:not(#_){font-size:12px;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-sec-head .inv-add-check:not(#_){margin-top:8px;height:auto;align-self:flex-start;font-size:13px;font-weight:600}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-row:not(#_){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;align-items:start}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-name:not(#_){grid-column:span 2}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-name input:not(#_){font-weight:600}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-more .field>label:not(#_){font-weight:500}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3.no-order .inv-buy:not(#_){opacity:.55}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3.no-order .inv-buy .inv-req:not(#_){visibility:hidden}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-status:not(#_){margin:6px 0 0!important;padding:9px 12px;border-radius:0;background:var(--box-bg);border:1px solid var(--box-line);color:var(--muted);font-size:13px}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-status.is-missing:not(#_){background:color-mix(in srgb,var(--warn) 10%,var(--panel));border-color:color-mix(in srgb,var(--warn) 40%,var(--box-line));color:var(--text)}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-status.is-wait:not(#_){background:color-mix(in srgb,var(--azure) 8%,var(--panel));border-color:color-mix(in srgb,var(--azure) 35%,var(--box-line));color:var(--azure-ink)}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-status.is-ok:not(#_){background:color-mix(in srgb,var(--ok) 10%,var(--panel));border-color:color-mix(in srgb,var(--ok) 40%,var(--box-line));color:var(--ok-ink,#15803D)}
@media(max-width:900px){html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-sec:not(#_){grid-template-columns:1fr;gap:8px}html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-sec-head:not(#_){flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 10px}html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-sec-head .inv-add-check:not(#_){margin:0 0 0 auto}}
@media(max-width:560px){html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-row:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))}html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-name:not(#_){grid-column:1/-1}}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-check:not(#_){white-space:nowrap}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 .inv-add-check input[type=checkbox]:not(#_):not(#__){width:18px!important;height:18px!important;min-width:18px;margin:0;flex:none}
html body :is(#inventoryPage,#invItemsPanel) .inv-add-v3 input[type=date]:not(#_):not(#__){width:100%!important;max-width:none!important}


/* Listino, riga in modifica (1.267.1): i campi stanno nelle stesse colonne del testo delle righe normali.
   La cella dei pulsanti resta una cella di tabella (era flex: non seguiva l'altezza della riga); campi con 6 px di rientro
   in celle da 2 px, così il testo comincia dove comincia nelle altre righe; «Dal» con il selettore del mese compatto. */
html body #invPricePanel .price-tbl td.price-act:not(#_){display:table-cell!important;white-space:nowrap;text-align:right;vertical-align:middle}
html body #invPricePanel .price-tbl td.price-act .btn:not(#_){margin:0 0 0 4px}
html body #invPricePanel .price-tbl td.price-act .btn:first-child:not(#_){margin-left:0}
html body #invPricePanel .price-tbl tr.is-editing td:has(>input,>select):not(#_){padding-left:2px!important;padding-right:2px!important}
html body #invPricePanel .price-tbl tr.is-editing :is(input,select):not(#_){width:100%;min-width:0;height:30px;padding-left:6px;padding-right:6px;border-radius:0;font-size:12.5px;box-sizing:border-box}
html body #invPricePanel .price-tbl tr.is-editing select.price-cat:not(#_){padding-right:24px;min-width:158px}
html body #invPricePanel .price-tbl tr.is-editing .price-name:not(#_){margin:0;font-weight:600}
html body #invPricePanel .price-tbl td.price-cat-c:not(#_){color:var(--muted);font-size:12px;white-space:nowrap}
html body #invPricePanel .price-tbl tr.is-editing .price-intro:not(#_){width:124px;padding-right:2px}
html body #invPricePanel .price-tbl td.price-intro-c:not(#_){white-space:nowrap;color:var(--muted)}

/* Pulsanti uniformi (1.267.3): nelle tabelle tutti i pulsanti piccoli sono da 28 px (--ui-h-sm), Salva compreso (prima 26 nel Listino,
   negli Ordini e nelle ricette, 28 nell'Inventario); «Salva modifiche» e «Annulla» delle Impostazioni come gli altri pulsanti fuori
   dalle tabelle (34 px, angoli 8: prima 26 px e angoli 6 come le schede vicine). */
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .btn.small:not(.row-x):not(#_):not(#__){height:var(--ui-h-sm)!important;min-height:var(--ui-h-sm)!important;padding:0 10px!important;border-radius:0!important}
html body :is(:is(#inventoryPage,#invItemsPanel),#pricelistPage,#analysisPage,#costsPage,#revenuePage,#ordersPage) .inv-table .btn.small.row-x:not(#_):not(#__){width:var(--ui-h-sm)!important;min-width:var(--ui-h-sm)!important;height:var(--ui-h-sm)!important;min-height:var(--ui-h-sm)!important;padding:0!important}

/* Barra in alto (851–1599 px), 1.267.5: la categoria in cui ci si trova è piena in azzurro con testo bianco (come le voci attive dei gruppi
   segmentati); quella sotto il mouse o con la tendina aperta ha un fondo grigio chiaro neutro, così le due non si confondono. */
@media(min-width:851px) and (max-width:1599px){
 html body .rnb-nav-sec:not(.has-active)>.rnb-nav-head:not(#_):not(#__):not(#___):hover,html body .rnb-nav-sec.open:not(.has-active)>.rnb-nav-head:not(#_):not(#__):not(#___){background:var(--panel2)!important;color:var(--text)!important;box-shadow:inset 0 0 0 1px var(--ui-line-hover)!important}
 html body .rnb-nav-sec.has-active>.rnb-nav-head:not(#_):not(#__):not(#___),html body .rnb-nav-sec.has-active>.rnb-nav-head:not(#_):not(#__):not(#___):hover{background:var(--ui-azure,var(--azure))!important;color:var(--on-accent)!important;box-shadow:none!important}
 html body .rnb-nav-sec.has-active.open>.rnb-nav-head:not(#_):not(#__):not(#___){background:var(--azure-ink)!important;color:var(--on-accent)!important}
 html body .rnb-nav-sec.has-active>.rnb-nav-head:not(#_):not(#__):not(#___)>svg{opacity:1}
}
/* Listino (1.267.5): il pulsante Ricetta ha sempre la stessa larghezza («Ricetta» e «Ricetta · 4» uguali), così Modifica è allineato su tutte le righe */
html body #invPricePanel .price-tbl .price-act .btn.price-rec-btn:not(#_):not(#__):not(#___){width:96px!important;min-width:96px!important;justify-content:center;text-align:center}

/* Barra in alto (851–1599 px): fondo chiaro */
@media(min-width:851px) and (max-width:1599px){
  html body .app > aside:not(#_):not(#__){
    display:flex!important;
    align-items:center!important;
    padding:9px 16px!important;
    background:var(--panel)!important;
    
    
    border-bottom:1px solid color-mix(in srgb,var(--azure) 16%,transparent)!important;
    box-shadow:var(--sh-sm)!important;
  }

  html body .app > aside .brand-logo:not(#_):not(#__){
    display:flex!important;
    align-items:center;
    justify-content:center;
    height:34px!important;
    margin:0 6px 0 0!important;
    line-height:0;
  }

  html body .app > aside .brand-logo img:not(#_):not(#__){
    display:block;
    width:34px!important;
    height:34px!important;
    border-radius:0!important;
    box-shadow:var(--sh-sm);
  }
}

/* Intestazione della pagina (1.267.8): il titolo parte dove parte il testo dei pannelli (.panel, rientro di 16 px), non dal loro bordo */
@media(min-width:851px){
 html body main>.top:not(#_):not(#__){padding-left:16px!important}
}

/* Barre di schede delle pagine (Fatturato, Analisi, Food cost, Ordini, Personale, Inventario), 1.267.10: partono dalla stessa colonna
   del titolo della pagina e del testo dei pannelli (16 px dentro il bordo dei pannelli), come le barre dentro i pannelli */
@media(min-width:851px){
 html body :is(.inv-sections,.page-sections,#revenuePage .rv-tabs):not(#_):not(#__):not(#___){margin-left:6px!important;max-width:calc(100% - 6px)} /* 1.267.11: senza riquadro conta il testo: 6 px + 10 di rientro del pulsante = colonna del titolo */
}

/* Barre di schede delle pagine (1.267.11): niente riquadro né contorno; una linea sottile sopra e una sotto, azzurre al centro e
   sfumate verso le estremità. La voce attiva resta piena in azzurro. */
html body :is(.inv-sections,.page-sections,#revenuePage .rv-tabs):not(#_):not(#__):not(#___){border:0!important;border-radius:0!important;box-shadow:none!important;background-color:transparent!important;background-image:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--azure) 50%,transparent) 22%,color-mix(in srgb,var(--azure) 50%,transparent) 78%,transparent 100%),linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--azure) 50%,transparent) 22%,color-mix(in srgb,var(--azure) 50%,transparent) 78%,transparent 100%)!important;background-size:100% 1px,100% 1px!important;background-position:0 0,0 100%!important;background-repeat:no-repeat!important;padding:7px 0!important;}

/* Passaggio del mouse uniforme (1.267.12), come le categorie della barra in alto: fondo grigio chiaro neutro, testo scuro, filo di
   contorno grigio, niente sollevamento né ombra. Vale per pulsanti normali, schede e gruppi segmentati; restano come sono il pulsante
   principale (azzurro più scuro), le voci attive o selezionate, la ✕ (rossa) e i pulsanti disattivati. */
html body :is(.btn,.inv-tab,.type-filter button,.ax-mode button,.shift-buttons button,.date-navigation button,.settings-tabs>button,.rnb-nav-item):not(.primary):not(.active):not(.is-active):not(.on):not(.is-on):not(.selected):not(.row-x):not(.danger):not(.reorg-action):not([aria-selected="true"]):not([aria-pressed="true"]):not(.is-cancel):not(:disabled):not(#_):not(#__):not(#___):hover{background:var(--panel2)!important;color:var(--text)!important;border-color:var(--ui-line-hover)!important;box-shadow:inset 0 0 0 1px var(--ui-line-hover)!important;transform:none!important;filter:none!important}
/* Annulla al passaggio del mouse: rosso chiaro come la ✕; il principale (Salva, Conferma) resta l'unico azzurro */
html body :is(.btn,button).is-cancel:not(:disabled):not(#_):not(#__):not(#___):hover{background:var(--panel2)!important;color:var(--bad)!important;border-color:var(--bad)!important;box-shadow:inset 0 0 0 1px var(--bad)!important;transform:none!important;filter:none!important}
html body :is(.btn.primary,button.primary):not(:disabled):not(#_):not(#__):not(#___):hover{transform:none!important}

/* Impostazioni (1.267.13): la barra delle schede come quelle delle altre pagine. Il pannello che la conteneva diventa trasparente;
   la barra non ha riquadro, ha le linee sfumate sopra e sotto e il testo della prima scheda sulla colonna del titolo.
   «Annulla» e «Salva modifiche» (quando compaiono) restano in fondo alla barra. */




/* Livelli (1.267.18): finestre e popup sempre sopra le barre (in alto 30, laterale e in basso 20, intestazione del telefono 35–40,
   tendine del menu 60). Ordine: finestre e calendario 1000 < conferme 1200 < avvisi 1250 < tendine dei campi 2000. */
html body .modal-backdrop:not(#_):not(#__){z-index:1000!important}
html body :is(.mini-calendar,.date-navigation .mini-calendar):not(#_):not(#__){z-index:1000!important}


/* Oggi › Personale e presenze (1.267.19): colonna del nome non più larga di quanto serve (lo spazio in più va alle postazioni);
   «Pianificato ed effettivo» con le intestazioni di colonna una volta sola, numeri allineati a destra come la differenza. */
html body #todayPage .st-sheet th:nth-child(2):not(#_){width:240px}
html body #todayPage .st-cmp li.st-cmp-th:not(#_){border-top:0;padding:0 0 2px;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
html body #todayPage .st-cmp li:not(#_)>span:nth-child(2),html body #todayPage .st-cmp li:not(#_)>span:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}
html body #todayPage .st-cmp li.st-cmp-th:not(#_)>span:last-child{font-weight:700}
@media(max-width:640px){html body #todayPage .st-cmp li.st-cmp-th:not(#_){display:none}}

/* Oggi › Personale e presenze (1.267.20), solo aspetto: dentro le schede, linea del tempo, lista presenze e «Pianificato ed effettivo»
   stanno in riquadri come quelli delle altre sezioni (riquadro dentro un riquadro: --box-bg-2, --box-line, angoli 10). Barre con più
   contrasto: traccia grigio-azzurra visibile sul fondo, turno pianificato azzurro con bordo, orario reale verde più deciso. */
html body #todayPage .st-cmp:not(#_):not(#__){border:1px solid var(--box-line)!important;border-radius:0!important;background:var(--box-bg-2)!important}
html body #todayPage .st-tl-track:not(#_){background:var(--panel2);box-shadow:inset 0 0 0 1px var(--ui-line)}
html body #todayPage .st-tl-track i.is-plan:not(#_){background:color-mix(in srgb,var(--azure) 30%,var(--panel));border-color:var(--azure)}
html body #todayPage .st-tl-track i.is-real:not(#_){background:var(--ok);top:7px;bottom:7px}
html body #todayPage .st-tl-track i.is-real.is-over:not(#_){background:var(--warn)}
html body #todayPage .st-tl-val small:not(#_){color:var(--muted)}


html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(1):not(#_){width:20%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(3):not(#_){width:13%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(4):not(#_){width:17%}
html body :is(#inventoryPage,#invItemsPanel) .inv-table.inv-main th:nth-child(9):not(#_){width:11%}

/* == css/ui/55-ui-enrichment.css == */
/* ============================================================
   REST-N-BOOK · UI ENRICHMENT V8
   Micro-interazioni, gerarchia visiva e accessibilità.
   Solo presentazione: nessuna modifica a HTML, JS o logica.
   ============================================================ */
:root {
  --rnb-ease: cubic-bezier(.2,.75,.25,1);
  --rnb-focus: 0 0 0 3px color-mix(in srgb,var(--azure) 17%,transparent);
  --rnb-card-hover: var(--sh-md);
}

/* Superfici condivise: feedback leggero, senza cambiare il layout. */
html body main :is(.doc-card,.td-card,.service-card,.rnb-card,.stat,.inv-kpi,.cat-card) {
  transition: border-color .18s var(--rnb-ease), box-shadow .18s var(--rnb-ease);
}


/* KPI: numeri più leggibili e allineati durante la scansione. */
html body main :is(.stats,.inv-kpis,.st-kpis,.rv-kpis) > * {
  font-variant-numeric: tabular-nums;
}
html body main :is(.stat,.inv-kpi) :is(strong,b,output) {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}

/* Focus tastiera ben visibile, senza alterare lo stato normale. */
html body main :is(button,a,input,select,textarea,[tabindex]):focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
  box-shadow: var(--rnb-focus);
}
html body main :is(input,select,textarea):focus-visible {
  border-color: var(--azure);
}

/* Tabelle: evidenziazione riga più morbida. */
html body main table tbody tr:not(.is-ignored):not(.rv-closed):hover > td,
html body main table tbody tr:not(.is-ignored):not(.rv-closed):hover > th {
  background-color: color-mix(in srgb,var(--azure) 5%,transparent);
}
html body main table tbody tr {
  transition: background-color .14s ease;
}

/* Etichette e chip: numeri allineati e focus accessibile. */
html body main :is(.st-chip,.cm-st,.rv-tag,.rv-state,.rnb-nav-badge) {
  font-variant-numeric: tabular-nums;
}
html body main :is(.st-chip,.rv-tag,.rv-state):focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
}

/* Navigazione: transizione più fluida tra le sezioni. */
html body aside :is(.rnb-nav-item,.nav button) {
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

/* Barre strumenti: spaziatura coerente quando vanno a capo. */
html body main :is(.inv-tools,.rv-bar-actions,.st-ops-bar,.ax-head-tools) {
  row-gap: 8px;
}
html body main :is(.inv-tools,.rv-bar-actions,.st-ops-bar,.ax-head-tools) .btn:focus-visible {
  position: relative;
  z-index: 1;
}

/* Rispetto delle preferenze di movimento del sistema. */
@media (prefers-reduced-motion: reduce) {
  html body main *,
  html body aside * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Layout KPI: evita schede troppo strette su viewport intermedi. */
@media (max-width: 760px) {
  html body main :is(.stats,.inv-kpis,.st-kpis,.rv-kpis) {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 420px) {
  html body main :is(.stats,.inv-kpis,.st-kpis,.rv-kpis) {
    grid-template-columns: minmax(0,1fr);
  }
}

/* == css/ui/56-shared-ui-foundation.css == */
/* ============================================================
   REST-N-BOOK · SHARED UI FOUNDATION V10
   Corrections verified against the first modular baseline (V1).
   CSS only: no markup, JavaScript or application logic changes.
   ============================================================ */

/* Semantic aliases for gradual shared-component migration.
   Values follow the current visual language. */
:root {
  --rnb-space-1: 4px;
  --rnb-space-2: 8px;
  --rnb-space-3: 12px;
  --rnb-space-4: 16px;
  --rnb-space-5: 20px;
  --rnb-space-6: 24px;
  --rnb-radius-control: var(--ui-r,0);
  --rnb-radius-card: 0;
  --rnb-radius-panel: 0;
  --rnb-border-subtle: var(--ui-line, var(--line));
  --rnb-surface: var(--panel);
  --rnb-surface-soft: var(--panel2);
  --rnb-text-primary: var(--ui-ink, var(--control-text));
  --rnb-text-muted: var(--muted);
  --rnb-accent: var(--ui-azure, var(--azure));
  --rnb-shadow-card: var(--card-sh);
}

/* Settings > Personal: original V1 toolbar layout.
   No forced full-width button, no flex-grow/shrink override. */
#staffSettings .st-ops-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
#staffSettings .st-ops-bar .inv-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* Dashboard > Today: restore the original V1 "ADESSO" marker.
   This selector was present in V1 and missing from V5–V9. */
html body #todayPage .td-now {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ui-azure);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Timeline › Risolvi / Vedi soluzioni: l'assistente in cima alla pagina lampeggia quando ci si arriva (1.265.0) */
@keyframes rnbFlash{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--azure) 55%,transparent)}100%{box-shadow:0 0 0 16px transparent}}
#rnbAssist.rnb-flash{animation:rnbFlash 1.1s ease-out 2}
@media (prefers-reduced-motion:reduce){#rnbAssist.rnb-flash{animation:none}}

/* Riquadri dentro i pannelli: fondo un po' diverso dal pannello e bordo visibile, in chiaro e in scuro (1.263.3).
   Token --box-* (00-design-tokens.css). I riquadri di stato (is-warn, is-info, is-ok, is-bad, is-good) tengono le loro tinte.
   Un nuovo tipo di riquadro va aggiunto a questi elenchi. */
html[data-theme] body :is(.stat,.inv-kpi,.cat-card,.inv-place,.td-card,.td-service,.td-goal,.import-hub-card,.doc-slot,.rnb-card,.doc-card,.service-card):where(:not(.is-warn,.is-info,.is-ok,.is-bad,.is-good)):not(#_):not(#_):not(#__){
  background:var(--box-bg)!important;border-color:var(--box-line)!important;border-style:solid!important}
html[data-theme] body :is(.stat,.inv-kpi,.cat-card,.td-card,.td-service,.import-hub-card,.doc-slot,.rnb-card,.doc-card,.service-card):not(#_):not(#_):not(#__){
  box-shadow:var(--box-sh)!important}
/* Fatturato: la regola della pagina ha quattro id */
/* riquadro dentro un riquadro (es. lingue di un documento): un gradino sopra */
html[data-theme] body :is(.doc-card,.td-card,.td-service,.rnb-card,.service-card) :is(.doc-slot,.stat,.inv-kpi):where(:not(.is-warn,.is-info,.is-ok,.is-bad,.is-good)):not(#_):not(#_):not(#__){background:var(--box-bg-2)!important}
/* riquadri di stato in chiaro: tinta leggera (in scuro: 57-dark-auto.css, generato) */
html[data-theme="light"] body :is(.stat,.inv-kpi,.cat-card,.inv-place).is-warn:not(#_):not(#_):not(#__){
  background:color-mix(in srgb,var(--warn) 9%,var(--panel))!important;border-color:color-mix(in srgb,var(--warn) 40%,var(--box-line))!important}
html[data-theme="light"] body :is(.stat,.inv-kpi,.cat-card,.inv-place).is-info:not(#_):not(#_):not(#__){
  background:color-mix(in srgb,var(--azure) 7%,var(--panel))!important;border-color:color-mix(in srgb,var(--azure) 35%,var(--box-line))!important}
html[data-theme="light"] body :is(.stat,.inv-kpi,.cat-card,.inv-place):is(.is-ok,.is-good):not(#_):not(#_):not(#__){
  background:color-mix(in srgb,var(--ok) 8%,var(--panel))!important;border-color:color-mix(in srgb,var(--ok) 35%,var(--box-line))!important}
html[data-theme="light"] body :is(.stat,.inv-kpi,.cat-card,.inv-place).is-bad:not(#_):not(#_):not(#__){
  background:color-mix(in srgb,var(--bad) 7%,var(--panel))!important;border-color:color-mix(in srgb,var(--bad) 35%,var(--box-line))!important}

/* Riquadri informativi: passaggio del mouse uguale in chiaro e in scuro (1.263.3).
   Cliccabili: si sollevano con ombra e bordo azzurro; gli altri schiariscono solo il bordo.
   Colori dai token --kpi-hover-* (00-design-tokens.css). */
html[data-theme] body :is(.stat,.inv-kpi,.cat-card,.inv-place):not(#_):not(#_):not(#__){
  transition:transform .18s cubic-bezier(.2,.7,.3,1),box-shadow .18s ease,border-color .18s ease,background-color .18s ease!important}
html[data-theme] body :is(.stat,.inv-kpi,.cat-card):is(.dash-click,[onclick],[role=button],[tabindex],button,a):not(#_):not(#_):not(#__):focus-visible{
  outline:2px solid var(--azure-ink)!important;outline-offset:2px!important}
@media (prefers-reduced-motion:reduce){
  html[data-theme] body :is(.stat,.inv-kpi,.cat-card,.inv-place):not(#_):not(#_):not(#__){transition:none!important;transform:none!important}
}

/* Pagine senza riquadro esterno (1.267.32): il pannello che avvolge tutta la pagina non ha fondo, bordo, ombra né margini interni;
   i riquadri del contenuto diventano il primo livello. Restano col fondo Timeline e Floor plan (griglia e pianta). */
html[data-theme] body main > section:not(#timelinePage):not(#floorPage) > .panel:not(#_):not(#_):not(#__){
  background:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important;
  padding:0!important;border-radius:0!important;}
@media (min-width:851px){
  html[data-theme] body main > .top:not(#_):not(#_){padding-left:0!important}
}
/* Ubicazioni da contare (1.267.33): pulsanti neutri, allineati a sinistra sotto il testo della riga (Oggi) e nell'Inventario. */
html body .td-row:has(> .td-places):not(#_){flex-wrap:wrap!important;align-items:flex-start!important}
html body .td-places:not(#_):not(#_){flex:1 0 100%!important;display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:6px!important;margin-top:8px!important}
html body .inv-round-act:not(#_){flex-wrap:wrap!important;justify-content:flex-start!important;gap:6px!important}
html body .td-places > .btn:not(#_):not(#_){width:auto!important;flex:0 0 auto!important}

/* Riquadri dei numeri (1.267.34): fondo e bordo sempre neutri; il colore resta solo sul numero quando c'è da agire (avviso, problema). */
html[data-theme] body :is(.inv-kpi,.stat):is(.is-ok,.is-good,.is-bad,.is-warn,.is-info,.is-total):not(:hover):not(#_):not(#_):not(#__){
  background-color:var(--box-bg)!important;background-image:none!important;border-color:var(--box-line)!important}
html[data-theme] body .inv-kpi.is-info:not(#_):not(#_) b{color:var(--ui-ink,var(--text))!important}
/* Oggi su telefono (1.267.34): con un solo pulsante la riga resta una: testo a sinistra, pulsante piccolo a destra. */
/* Rapporto di servizio dentro Oggi: il titolo è già quello del passaggio numerato. */
html body #todayPage .td-step .sr-card .td-card-head h3:not(#_){display:none!important}
/* Timeline in primo piano (1.267.35): l'assistente è compatto, la griglia sale.
   Criterio e sala in turno si aprono dal pulsante; con tutto in ordine basta l'etichetta accanto al titolo; azioni alla loro larghezza. */
html body #rnbAssist:not(.ax-crit-open) .ax-criterion:not(#_){display:none!important}
html body #rnbAssist .ax-list:has(> .ax-empty:only-child):not(#_){display:none!important}
html body #rnbAssist .ax-actions:not(#_){display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important}
html body #rnbAssist .ax-actions > .btn:not(#_):not(#_){flex:0 0 auto!important;width:auto!important}
html body #rnbAssist.ax-crit-open .ax-crit-btn:not(#_):not(#_){background:var(--box-bg-2)!important;border-color:var(--azure-ink)!important}
/* ===== Oggi come foglio del turno (1.267.36) =====
   In alto la giornata: un blocco per servizio con il numero dei coperti, la striscia degli arrivi per mezz'ora e la linea di «adesso».
   Il bordeaux del locale (--now) è l'unico accento per «adesso»; i riquadri delle sezioni diventano titoli con una linea sottile. */
html body #todayPage .td-day:not(#_){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))!important;gap:28px 40px!important;margin:6px 0 28px!important}
html body #todayPage .td-sv:not(#_){padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body #todayPage .td-sv header:not(#_){display:flex!important;align-items:baseline!important;gap:10px!important;flex-wrap:wrap!important;margin:0 0 4px!important}
html body #todayPage .td-sv h3:not(#_){font-size:20px!important;font-weight:700!important;margin:0!important;letter-spacing:-.01em!important}
html body #todayPage .td-sv-time:not(#_){color:var(--muted)!important;font-variant-numeric:tabular-nums!important;font-size:14px!important}
html body #todayPage .td-sv-state:not(#_){margin-left:auto!important;font-size:13px!important;color:var(--muted)!important}
html body #todayPage .td-sv.is-in-corso .td-sv-state:not(#_){color:var(--now)!important;font-weight:700!important}
html body #todayPage .td-sv-num:not(#_){display:flex!important;align-items:baseline!important;gap:8px!important;margin:2px 0 10px!important}
html body #todayPage .td-sv-num b:not(#_){font-size:56px!important;line-height:1!important;font-weight:700!important;letter-spacing:-.03em!important;font-variant-numeric:tabular-nums!important}
html body #todayPage .td-sv-num span:not(#_){font-size:15px!important;color:var(--muted)!important}
html body #todayPage .td-strip:not(#_){margin:0 0 10px!important}
html body #todayPage .td-strip-cols:not(#_){position:relative!important;display:flex!important;align-items:flex-end!important;gap:3px!important;height:64px!important;border-bottom:1px solid var(--box-line)!important}
html body #todayPage .td-strip-cols i:not(#_){flex:1 1 0!important;position:relative!important;height:var(--h)!important;min-height:0!important;background:color-mix(in srgb,var(--azure-ink,var(--azure-ink)) 55%,transparent)!important;border-radius:0!important}
html body #todayPage .td-strip-cols i em:not(#_){position:absolute!important;bottom:100%!important;left:0!important;right:0!important;text-align:center!important;font-style:normal!important;font-size:11px!important;font-weight:700!important;line-height:16px!important;font-variant-numeric:tabular-nums!important}
html body #todayPage .td-strip-now:not(#_){position:absolute!important;top:-6px!important;bottom:-4px!important;width:2px!important;margin-left:-1px!important;background:var(--now)!important;border-radius:0!important}
html body #todayPage .td-strip-axis:not(#_){position:relative!important;height:18px!important;font-size:11px!important;color:var(--muted)!important;font-variant-numeric:tabular-nums!important}
html body #todayPage .td-strip-axis span:not(#_){position:absolute!important;top:3px!important;transform:translateX(-50%)!important}
html body #todayPage .td-strip-axis span:first-child:not(#_){transform:none!important}
html body #todayPage .td-sv-facts:not(#_){margin:0!important;font-size:14px!important;color:var(--ui-ink,var(--text))!important}
html body #todayPage .td-sv .td-duty:not(#_){margin:6px 0 0!important;padding:0!important;background:none!important;border:0!important;font-size:14px!important;display:flex!important;gap:8px!important;align-items:baseline!important;flex-wrap:wrap!important}
html body #todayPage .td-sv .td-duty-empty span:not(#_){color:var(--now)!important}
/* Link-pulsante: regola unica (audit A12). Testo 13px/600, nessun fondo né bordo, sottolineatura al passaggio; altezza non forzata (i file mobile e il planning del Personale la regolano). */
html body .td-link:not(#_):not(#__){background:none!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;color:var(--azure-ink,var(--azure))!important;font-family:inherit!important;font-weight:600!important;text-decoration:none!important;text-underline-offset:3px!important;cursor:pointer!important}
html body .td-link:not(#_):not(#__):not([class*="st-plan"] *){font-size:13px!important}
html body .td-link:not(#_):not(#__):hover{text-decoration:underline!important}
/* sezioni: titolo con «adesso» in bordeaux, niente pillola */
/* card delle sezioni senza scatola: titolo, linea sottile, contenuto */
/* «Da fare ora» (1.267.37): una sola lista delle urgenze sotto i servizi, segnata dal bordeaux; da dove viene ogni voce in piccolo sopra il titolo */
/* ===== Dashboard come sala dal vivo (1.267.38) =====
   In alto: data e una riga di stato (adesso, prossimo arrivo, tavoli liberi, coperti) senza riquadri; via gli 11 numeri ripetuti.
   Sotto: pianta dei tavoli larga con gli arrivi accanto; occupazione e registro in fondo. L'assistente resta solo nella Timeline. */
html body #dashboardPage #rnbAssist:not(#_){display:none!important}
html body #dashboardPage .dashboard-overview-meta .stats:not(#_){display:none!important}
html body #dashboardPage .dfq-kpis:not(#_){display:none!important}
html body #dashboardPage #dashboardFloorQuick *:not(#_){text-transform:none!important;letter-spacing:normal!important}
/* 1.267.39: riga di stato allineata a sinistra; nella pianta i tavoli liberi sono neutri, il colore resta a prenotati e bloccati */
html[data-theme] body #dashboardPage .dfq-t.s-free:not(#_):not(#_){background:var(--box-bg)!important;border-color:var(--box-line)!important}
html[data-theme] body #dashboardPage .dfq-t.s-free span:not(#_){color:var(--muted)!important}
html[data-theme] body #dashboardPage .dfq-t.s-free .dfq-row:first-child > :first-child:not(#_){color:var(--ui-ink,var(--text))!important}
html[data-theme] body #dashboardPage .dfq-legend .s-free:not(#_){background:var(--box-bg)!important;border-color:var(--box-line)!important}
/* Fasi di Oggi: contenuto consultabile a richiesta, con titolo sempre visibile. */
html body #todayPage .td-phase-disclosure > .td-phase-title::-webkit-details-marker{display:none}
html body #todayPage .td-phase-disclosure > .td-phase-title [role="heading"]{font:inherit}
html body #todayPage .td-phase-content{min-width:0}
/* Conteggio inventario: una sezione alla volta e controlli a misura di telefono. */
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-head:not(#_){display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-head-title:not(#_){min-width:0;flex:1}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-head-title>h3:not(#_){margin:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-head-title>p:not(#_){margin:4px 0 0}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-more:not(#_){position:relative;flex:none}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-more>summary:not(#_){display:flex;align-items:center;justify-content:center;min-height:40px;padding:0 12px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg-2);font-weight:650;list-style:none;cursor:pointer}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-more>summary::-webkit-details-marker{display:none}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-more>div:not(#_){position:absolute;right:0;top:calc(100% + 4px);z-index:8;display:grid;gap:5px;min-width:220px;padding:8px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg);box-shadow:var(--box-sh)}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-work:not(#_){display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:end;padding:10px;margin-bottom:10px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg-2)}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-section-select:not(#_){display:grid;gap:5px;min-width:0;font-size:12px;font-weight:650;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-section-select select:not(#_){width:100%;min-width:0;padding-inline:10px}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-overall:not(#_){margin:10px 0 12px}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-overall-label:not(#_){display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px;font-size:12px}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-overall-label>span:not(#_){color:var(--muted);font-variant-numeric:tabular-nums}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-progress-track:not(#_){height:7px;overflow:hidden;border-radius:99px;background:var(--box-line)}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-progress-track>i:not(#_){display:block;height:100%;border-radius:inherit;background:var(--azure-ink,var(--azure-ink));transition:width .16s ease}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-tools:not(#_){margin:8px 0}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-tools .search-field:not(#_){width:100%}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-section-heading:not(#_){display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:12px 0 7px}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-section-heading>strong:not(#_){font-size:16px}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-section-heading>span:not(#_){font-size:12px;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar:not(#_){display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar>span:not(#_){font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar .btn:not(#_){min-height:44px;padding-inline:20px}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar-actions:not(#_){display:flex;align-items:center;gap:8px;min-width:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel #cntNext:not(#_){max-width:260px;min-width:0;overflow:hidden;white-space:nowrap}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel #cntNext>span:not(#_){overflow:hidden;text-overflow:ellipsis;font-weight:500}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel #cntNext[hidden]:not(#_){display:none!important}
html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel #cntSave[hidden]:not(#_){display:none!important}
@media(max-width:640px){
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel:not(#_){padding:12px!important;margin:8px 0!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-head:not(#_){gap:6px;flex-wrap:wrap}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-more[open]:not(#_){flex:1 0 100%}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-more>div:not(#_){position:static;right:auto;left:auto;top:auto;bottom:auto;width:100%;min-width:0;margin-top:6px;box-shadow:none}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-more>div .btn:not(#_){min-height:44px;justify-content:flex-start}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-work:not(#_){grid-template-columns:minmax(0,1fr);grid-template-areas:"select";align-items:center;padding:9px;gap:8px}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-section-select:not(#_){grid-area:select}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-section-select select:not(#_){height:46px!important;min-height:46px!important;font-size:16px!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-overall-label:not(#_){font-size:11.5px}
 /* fine sezione su telefono: avanzamento sopra, poi Esci · Avanti (o Conferma) su una riga che occupa tutta la larghezza */
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar:not(#_){flex-direction:column;align-items:stretch;gap:8px;bottom:calc(64px + env(safe-area-inset-bottom,0px));padding:8px;margin-inline:-4px;border:1px solid var(--box-line);border-radius:0;}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar>span:not(#_){text-align:center}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar-actions:not(#_){display:grid;gap:6px}
 
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel #cntNext:not(#_){max-width:none;justify-content:center}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-tools .search-field input:not(#_){width:100%;height:44px!important;min-height:44px!important;font-size:16px!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table .cnt-step:not(#_){display:flex!important;align-items:center!important;}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table .cnt-step .btn:not(#_){padding:0!important;}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table .cnt-step input.cnt-in:not(#_){height:44px!important;min-height:44px!important;text-align:center!important;font-weight:700!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar:not(#_){position:sticky;bottom:calc(var(--rnb-bar-h) + env(safe-area-inset-bottom) + 8px);z-index:15;margin:12px -12px -12px!important;padding:9px 12px max(9px,env(safe-area-inset-bottom));border-top:1px solid var(--box-line);background:var(--box-bg);box-shadow:0 -6px 16px var(--dk-sh9)}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar .btn:not(#_){flex:1;min-height:48px!important;font-size:14px!important;padding-inline:8px!important;min-width:0}
 /* Conteggio su telefono: niente scorrimento orizzontale (regola dell'utente). Pulsanti − + e campo stretti, prima colonna senza minimo, barra in fondo Esci · Avanti (o Conferma). */
 
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table .cnt-step .btn:not(#_){height:40px!important;min-height:40px!important;font-size:18px!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table .cnt-step input.cnt-in:not(#_){min-width:0!important;padding-inline:4px!important;font-size:16px!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table th:not(#_),html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table td:not(#_){padding-inline:6px!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table tbody td:first-child:not(#_):not(#__):not(#___){min-width:0;overflow-wrap:anywhere}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table:not(#_):not(#__){width:100%!important;min-width:0!important;table-layout:fixed!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table th:not(#_):not(#__):not(#___){font-size:10px!important;letter-spacing:0!important;padding-inline:3px!important;min-width:0!important;white-space:nowrap;overflow:hidden;text-overflow:clip}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table td:not(#_):not(#__):not(#___){padding-inline:3px!important;min-width:0!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table :is(th,td):first-child:not(#_):not(#__):not(#___):not(#____){width:auto!important;min-width:0!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table th:nth-child(2):not(#_){width:44px}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table th:nth-child(3):not(#_){width:112px}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table th:nth-child(4):not(#_){width:74px}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table .cnt-step .btn:not(#_){width:30px!important;min-width:30px!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table .cnt-step input.cnt-in:not(#_){width:44px!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-table .cnt-step:not(#_){gap:2px!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel .cnt-savebar-actions:not(#_){grid-template-columns:auto minmax(0,1fr)}
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel #cntNext:not(#_){overflow:hidden;text-overflow:ellipsis}
 /* 1.299.0: la barra ha due pulsanti, quindi «Avanti» ha spazio per il nome della sezione successiva (prima era nascosto) */
 html body :is(#inventoryPage,#invItemsPanel) .inv-countpanel #cntNext>span:not(#_){min-width:0;white-space:nowrap}
}
/* Vendite: importazione e cronologia raccolte nella loro scheda dell'inventario. */
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-strip:not(#_){margin:0!important}

html body :is(#inventoryPage,#invItemsPanel) .inv-usage-history:not(#_){margin-top:12px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg)}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-history>summary:not(#_){display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;font-weight:700;cursor:pointer;list-style:none}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-history>summary::-webkit-details-marker{display:none}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-history>summary>span:not(#_){display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:99px;background:var(--box-bg-2);font-size:12px}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-history>ol:not(#_){display:grid;gap:0;margin:0;padding:0 12px 8px;list-style:none}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-history>ol>li:not(#_){display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--box-line)}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-history>ol>li>span:first-child:not(#_){display:grid;gap:3px;min-width:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-history>ol small:not(#_){font-size:12px;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-history-empty:not(#_){margin:12px 0;font-size:13px}
/* Ubicazioni dell'Inventario: carosello orizzontale, due schede alla volta (scorrimento a tocco o frecce). */
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-wrap:not(#_){position:relative;margin:0 0 14px}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places:not(#_){display:flex!important;flex-wrap:nowrap!important;gap:10px!important;margin:0!important;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places:not(#_)::-webkit-scrollbar{display:none}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places>*:not(#_){flex:0 0 calc((100% - 10px)/2)!important;min-width:0!important;max-width:none!important;margin:0!important;scroll-snap-align:start}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-nav:not(#_){position:absolute;top:50%;z-index:3;width:34px;height:34px;min-height:34px;padding:0;margin-top:-17px;border-radius:50%;border:1px solid var(--box-line);background:var(--box-bg);color:var(--ink,inherit);box-shadow:var(--box-sh);font-size:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-nav.is-prev:not(#_){left:-6px}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-nav.is-next:not(#_){right:-6px}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-nav[hidden]:not(#_){display:none!important}
/* Barra degli strumenti delle Giacenze: a sinistra ricerca e filtri, a destra le azioni (Modifica tutto in evidenza). */
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-tools:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;width:100%}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-tools>.search-field:not(#_){flex:1 1 260px;min-width:200px;max-width:460px}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-filters:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-actions:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-actions>details.inv-dl:not(#_){margin-left:0}
/* Giacenze mobile: schede leggibili, azioni essenziali e aggiunta su richiesta. */
html body :is(#inventoryPage,#invItemsPanel) .inv-add-mobile-trigger:not(#_){display:none}
@media(max-width:640px){
 html body :is(#inventoryPage,#invItemsPanel) .inv-add-mobile-trigger:not(#_){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;white-space:nowrap}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-bar:not(#_){display:block!important}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-tabs:not(#_){display:flex!important;flex-wrap:wrap!important;overflow:visible;padding:2px 1px 8px;margin:0 -2px 6px}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-tabs>.inv-tab:not(#_){flex:0 0 auto;min-height:40px}
 /* barra degli strumenti: ricerca, filtri affiancati, poi azioni a griglia */
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-tools:not(#_){display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-tools>.search-field:not(#_){width:100%;max-width:none;min-width:0}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-tools>.search-field input:not(#_){height:44px!important;min-height:44px!important;font-size:16px!important}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-filters:not(#_){display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-filters>select:not(#_){width:100%;min-width:0;height:42px!important;min-height:42px!important}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-actions:not(#_){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-left:0}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-actions>.inv-add-mobile-trigger:not(#_){grid-column:1/-1;min-height:46px}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-actions>:is(label.btn,.inv-dl,.inv-edit-all):not(#_){width:100%;min-width:0;min-height:42px;justify-content:center;text-align:center;margin:0}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-actions>.inv-dl>summary:not(#_){width:100%;min-height:42px;justify-content:center}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-actions>.inv-toggle:not(#_){justify-content:center;min-height:42px;border:1px solid var(--box-line);border-radius:0;background:var(--box-bg-2)}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-actions>.inv-dl>.rnb-menu-list:not(#_){left:0;right:auto}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-table.inv-main tr.inv-row>td.inv-stock .inv-step:not(#_){display:flex!important;gap:5px!important;min-width:0}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-table.inv-main tr.inv-row>td.inv-stock .inv-step .btn:not(#_){flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:40px!important;min-height:40px!important;padding:0!important;font-size:19px!important}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-table.inv-main tr.inv-row>td.inv-stock .inv-step input:not(#_){flex:1 1 auto!important;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;text-align:center!important;font-size:16px!important}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-table.inv-main tr.inv-row>td:nth-child(n+5):nth-child(-n+8) .inv-num:not(#_){height:40px!important;min-height:40px!important;text-align:left!important;font-size:15px!important}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-table.inv-main tr.inv-row>td select:not(#_){height:auto!important;min-height:40px!important;width:100%!important;padding:6px 24px 6px 8px!important;font-size:14px!important}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-addbox>summary:not(#_){display:none!important}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-addbox[open]:not(#_){margin-top:10px;padding:0 10px}
 html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-addbox .inv-add:not(#_){margin:0!important}
}

/* Pulsanti dell'intestazione (impostazioni, account): angoli comuni */
html body :is(.settings-gear,.account-btn):not(#_):not(#__){border-radius:0!important}

/* Timeline: colonna dei tavoli stretta e fissa a sinistra; gli orari scorrono in orizzontale sotto di lei (1.267.56).
   Le barre usano posizioni in %, quindi la larghezza della colonna si cambia solo qui (--tl-label). */
html body #timelineContent:not(#_){--tl-label:140px}
/* Larghezza della griglia oraria (1.298.0, scelta dell'utente): almeno --tl-ppm px per minuto di servizio, così anche una
   prenotazione à la carte (75 minuti = 225 px) mostra nome e cognome per intero. --tl-span (minuti del servizio) lo mette renderTimeline.
   Per allargare o stringere la Timeline si cambia solo --tl-ppm. */
html body #timelineContent:not(#_){--tl-ppm:3px;min-width:calc(var(--tl-label) + var(--tl-span,0) * var(--tl-ppm))!important}
html body #timelineContent :is(.timeline-head,.timeline-row,.timeline-area-row,.timeline-area-row.has-hours):not(#_):not(#__){grid-template-columns:var(--tl-label) minmax(0,1fr)!important}
html body #timelineContent :is(.timeline-label,.timeline-area-toggle):not(#_):not(#__){position:sticky!important;left:0;z-index:4;min-width:0;max-width:var(--tl-label);background:var(--box-bg,#fff)!important;box-shadow:1px 0 0 var(--box-line),8px 0 14px -8px var(--dk-sh10),2px 0 3px -2px var(--dk-sh11)!important}
html body #timelineContent .timeline-head>.timeline-label:not(#_):not(#__){z-index:6}
html body #timelineContent .tl-table-name:not(#_){min-width:0;overflow:hidden}
html body #timelineContent .tl-table-name>b:not(#_){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:640px){
 html body #timelineContent:not(#_){--tl-label:88px}
 html body #timelineContent :is(.timeline-label,.timeline-area-toggle):not(#_):not(#__){padding-left:6px!important;padding-right:4px!important;gap:2px!important}
 html body #timelineContent .tl-table-name>b:not(#_){font-size:12.5px}
 html body #timelineContent .tl-table-name>small:not(#_){font-size:12px}
 
 
}@media(max-width:640px){
 /* nome del tavolo sopra, scambio e lucchetto sotto: il nome resta leggibile nella colonna stretta */
 html body #timelineContent .timeline-row>.timeline-label:not(#_):not(#__){display:flex!important;flex-wrap:wrap;justify-content:flex-start;align-items:center;align-content:center;row-gap:3px!important;column-gap:2px!important}
 html body #timelineContent .timeline-label>.tl-table-name:not(#_){flex:0 0 100%}
 html body #timelineContent .timeline-label>.tl-swap:not(#_){display:flex;gap:2px}
 html body #timelineContent .timeline-label>.tl-icons:not(#_){display:flex;gap:2px}
 html body #timelineContent .timeline-label :is(.tl-swap-btn,.timeline-lock-button):not(#_):not(#__):not(#___){width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important}
}
/* Pulsanti tutti uguali (1.267.56): stessa altezza, angoli e carattere in tutta l'app, fuori dalle tabelle.
   Desktop 34 px (--ui-h), telefono 44 px. Esclusi: voci dei menu, comandi dentro le righe della Timeline, frecce del carosello,
   piante dei tavoli e griglie del planning (sono disegni, non pulsanti). */
html body main :is(button,.btn):not(table *):not(.rnb-menu-item):not(.inv-places-nav):not(.tl-swap-btn):not(.timeline-lock-button):not(.timeline-area-toggle):not(.inv-place):not(.inv-kpi):not(.inv-suggest *):not([class*=st-plan] *):not(:is(.set-row,.rnb-row,.td-row,.inv-area-row) .btn.small):not(.row-x):not(.fp-table):not(#_):not(#__):not(#___):not(#____){min-height:var(--ui-h,34px)!important;border-radius:0!important;font-size:13px!important;font-weight:600!important;line-height:1.2!important}
@media(max-width:640px){
 html body main :is(button,.btn):not(table *):not(.rnb-menu-item):not(.inv-places-nav):not(.tl-swap-btn):not(.timeline-lock-button):not(.timeline-area-toggle):not(.inv-place):not(.inv-kpi):not(.inv-suggest *):not([class*=st-plan] *):not(:is(.set-row,.rnb-row,.td-row,.inv-area-row) .btn.small):not(.row-x):not(.fp-table):not(#_):not(#__):not(#___):not(#____){min-height:44px!important;height:auto!important;font-size:14px!important}
}/* effetto 3D: la colonna dei tavoli è sollevata, gli orari scorrono sotto in un piano più basso */
html body #timelineContent :is(.timeline-track,.timeline-hours,.timeline-area-hours):not(#_):not(#__){box-shadow:inset 10px 0 12px -12px var(--dk-sh12)}
html body #timelineContent :is(.timeline-label,.timeline-area-toggle):not(#_):not(#__){transform:translateZ(0)}/* effetto 3D anche per le righe degli orari: in primo piano sopra le barre, con ombra verso il basso */
html body #timelineContent .timeline-head:not(#_):not(#__){z-index:7!important;box-shadow:0 8px 14px -8px var(--dk-sh13),0 2px 3px -2px var(--dk-sh11)!important}
html body #timelineContent .timeline-area-row.has-hours:not(#_):not(#__){position:relative;z-index:5;box-shadow:0 7px 12px -8px var(--dk-sh12)}
html body #timelineContent .timeline-area-row.has-hours>.timeline-area-hours:not(#_):not(#__){background:var(--box-bg,#fff)}
/* Nome della sala sempre leggibile nella colonna stretta (1.267.57): va a capo, niente puntini; conteggio sotto il nome. */
html body #timelineContent .timeline-area-toggle:not(#_):not(#__){display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:start;column-gap:4px;row-gap:2px;flex-wrap:nowrap;height:auto!important;text-align:left}
html body #timelineContent .timeline-area-toggle>.tl-area-chev:not(#_):not(#__){grid-column:1;grid-row:1 / span 2;margin-top:2px}
html body #timelineContent .timeline-area-toggle>strong:not(#_):not(#__){grid-column:2;display:block;min-width:0;max-width:100%;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;hyphens:auto;font-size:13px;line-height:1.2}
html body #timelineContent .timeline-area-toggle>span:not(#_):not(#__){grid-column:2;min-width:0;font-size:12px;line-height:1.2;white-space:normal}/* la riga della sala non deve tagliare: con overflow:hidden il nome della sala non resta fisso a sinistra */
html body #timelineContent .timeline-area-row:not(#_):not(#__):not(#___){overflow:visible!important}@media(max-width:640px){
 /* nome della sala su telefono: niente maiuscolo né spaziatura, così le parole stanno intere; a capo solo tra parole (o con trattino se una parola non entra) */
 html body #timelineContent .timeline-area-toggle strong:not(#_):not(#__):not(#___){text-transform:none!important;letter-spacing:0!important;overflow-wrap:break-word!important;word-break:normal!important;hyphens:auto}
}@media(max-width:640px){
 /* su telefono la freccia lascia tutta la larghezza al nome (la sala si apre e chiude comunque toccandola) */
 html body #timelineContent .timeline-area-toggle:not(#_):not(#__):not(#___){grid-template-columns:minmax(0,1fr)!important}
 html body #timelineContent .timeline-area-toggle>.tl-area-chev:not(#_):not(#__){display:none!important}
 html body #timelineContent .timeline-area-toggle strong:not(#_):not(#__):not(#___):not(#____){font-size:12px!important;grid-column:1!important}
 html body #timelineContent .timeline-area-toggle>span:not(#_):not(#__):not(#___){grid-column:1!important}
}
/* Tacche degli orari nella Timeline: ora, mezz'ora e quarto d'ora (solo quelle consentite dal passo globale) */
html body #timelineContent :is(.timeline-hours,.timeline-area-hours):not(#_):not(#__){position:relative}
html body #timelineContent :is(.timeline-hours,.timeline-area-hours)>i.tl-tick:not(#_):not(#__){position:absolute;bottom:0;width:1px;height:4px;background:var(--muted);opacity:.45;pointer-events:none;transform:translateX(-.5px)}
html body #timelineContent :is(.timeline-hours,.timeline-area-hours)>i.tl-tick.is-30:not(#_):not(#__):not(#___){height:7px;opacity:.55}
html body #timelineContent :is(.timeline-hours,.timeline-area-hours)>i.tl-tick.is-h:not(#_):not(#__):not(#___){height:10px;opacity:.7}

/* Utenti (Impostazioni › Utenti, js/users-panel.js): elenco a righe con intestazioni di colonna una sola volta */
html body #usersPanel .usr-cols:not(#_),html body #usersPanel .usr-row:not(#_){display:grid;grid-template-columns:minmax(130px,1.2fr) 120px minmax(140px,2fr) 52px auto;gap:10px 14px;align-items:center}
html body #usersPanel .usr-cols:not(#_){padding:0 0 6px;border-bottom:1px solid var(--ui-line);font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--muted);text-transform:uppercase}
html body #usersPanel .usr-row:not(#_){padding:8px 0;border-bottom:1px solid var(--ui-line)}
html body #usersPanel .usr-row.off:not(#_){opacity:.6}
html body #usersPanel .usr-name:not(#_){display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
html body #usersPanel .usr-name small:not(#_){font-size:12px}
html body #usersPanel .usr-row select:not(#_){width:100%;height:var(--ui-h);border-radius:0}
html body #usersPanel .usr-chips:not(#_){display:flex;flex-wrap:wrap;gap:6px 14px}
html body #usersPanel .usr-chip:not(#_){display:inline-flex;gap:6px;align-items:center;font-size:13px;cursor:pointer}
html body #usersPanel .usr-acts:not(#_){display:flex;justify-content:flex-end}
html body #usersPanel .usr-del:not(#_){color:var(--bad-ink,#B3261E)!important}
html body #usersPanel .usr-pwline:not(#_){grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;padding-top:4px}
html body #usersPanel .usr-pwline input:is([type=text],[type=password]):not(#_){height:var(--ui-h);border-radius:0;width:100%;min-width:0}
html body #usersPanel .usr-newlocs:not(#_){display:grid;gap:6px}
/* Contatore dentro un chip attivo (Food cost): eredita il bianco del pulsante */
html body :is(.cost-chips,.price-chips,.inv-tabs,main) .btn.primary small:not(#_){color:inherit!important;opacity:.9}
html body .inv-tab.is-active small:not(#_),html body .inv-tabs .btn.active small:not(#_){color:var(--on-accent)!important;opacity:.92}

/* 1.268.3: gruppi segmentati alti quanto i pulsanti accanto (.ax-mode, .type-filter hanno altezza --ui-h):
   le voci riempiono il gruppo invece di uscirne sotto (prima 34 px dentro 28 utili) */
html body main .ax-mode:not(#_):not(#__):not(#___){display:flex;align-items:stretch!important;box-sizing:border-box!important}
@media(max-width:640px){html body main #rnbAssist .ax-mode:not(#_):not(#__):not(#___){height:44px!important}}
html body main .ax-mode>:is(button,a):not(#_):not(#__):not(#___):not(#____):not(#_____){height:auto!important;min-height:0!important;align-self:stretch!important;margin:0!important;border-radius:0!important}
html body main .ax-mode>:is(button,a):not(.is-active,.active,.on,[aria-pressed="true"]):not(#_):not(#__):not(#___):not(#____):not(#_____){box-shadow:none!important}
/* i filtri delle Prenotazioni solo su desktop: su telefono vanno a capo e tengono le regole di 60-mobile-reservations */
@media(min-width:641px){
html body main .type-filter:not(#_):not(#__):not(#___){display:flex;align-items:stretch!important;box-sizing:border-box!important}
html body main .type-filter>:is(button,a):not(#_):not(#__):not(#___):not(#____):not(#_____){height:auto!important;min-height:0!important;align-self:stretch!important;margin:0!important;border-radius:0!important}
html body main .type-filter>:is(button,a):not(.is-active,.active,.on,[aria-pressed="true"]):not(#_):not(#__):not(#___):not(#____):not(#_____){box-shadow:none!important}
}

/* Icona di ricerca: centrata in altezza e il testo non ci passa sopra (1.268.23) */
html body .search-field:not(#_):not(#__){position:relative!important}
html body .search-field:not(#_):not(#__)::before{left:12px!important;top:50%!important;transform:translateY(-50%)!important;line-height:1!important;font-size:18px!important;pointer-events:none;z-index:1}
html body .search-field:not(#_):not(#__) input:not(#_){padding-left:38px!important}

/* categoria del menu senza voci: nascosta (Dati dopo l'unione di Importa con Documenti, 1.268.23) */
html body .rnb-nav-sec:not(:has(.rnb-nav-item)):not(#_){display:none!important}

/* Nuovo logo Rest-N-Book (orizzontale 2,1:1, fondo nero): riquadro largo quanto il logo, niente ritaglio (1.268.30) */
html body .brand-logo:not(#_):not(#__):not(#___){width:auto!important;max-width:none!important;flex:0 0 auto!important;background:transparent!important;border-radius:0!important;padding:0!important;overflow:hidden;box-shadow:none!important}
html body .brand-logo img:not(#_):not(#__):not(#___){width:auto!important;max-width:none!important;height:34px!important;object-fit:contain!important;border-radius:0!important;display:block}
html body>.brand-logo img:not(#_):not(#__):not(#___){height:36px!important}
html body #loginGate .login-card img:not(#_):not(#__){width:min(220px,70%)!important;height:auto!important;object-fit:contain!important;border-radius:0!important;background:transparent;margin:0 auto 8px;display:block}

/* Menu in alto: niente freccia aperto/chiuso accanto alle categorie (1.268.31) */
html body .rnb-nav-head:not(#_):not(#__)::after{display:none!important;content:none!important}
/* Logo: versione chiara (scritte scure, fondo trasparente) nel tema chiaro; originale su fondo nero nel tema scuro (1.268.32) */
html:not([data-theme="dark"]) body .brand-logo img:not(#_):not(#__):not(#___),html:not([data-theme="dark"]) body #loginGate .login-card img:not(#_):not(#__){content:url("../assets/logo-rnb-light.png");box-shadow:none!important}
html[data-theme="dark"] body .brand-logo:not(#_):not(#__):not(#___),html[data-theme="dark"] body #loginGate .login-card img:not(#_):not(#__){background:var(--dk-bg1)!important}

/* Schede e filtri segmentati come la colonna di sezione (1.268.37): voce scelta con fondo tenue, contorno petrolio e barra petrolio sotto; testo scuro, niente blocco pieno */
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg,.sec-tabs,.page-sec-tabs) :is(button,a):not(#_):not(#__):not(#___){color:var(--muted)!important}
/* 24 nov 2026 (scelta dell'utente): stesso aspetto dei rami della colonna di sezione (.sec-tree-item): voce scelta = testo scuro 600 con barra petrolio sotto, senza contorno, e fondo tenue --ui-tint perché i gruppi stanno dentro una tabella/riquadro; voci non scelte in grigio */
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg,.sec-tabs,.page-sec-tabs) :is(button,a):is(.is-active,.active,.on,[aria-pressed="true"],[aria-selected="true"]):not(#_):not(#__):not(#___){background:var(--ui-tint,var(--box-bg))!important;color:var(--text)!important;font-weight:600!important;box-shadow:inset 0 -3px 0 var(--azure)!important}
/* voce scelta a fondo chiaro: contatori leggibili e badge «da ordinare» di nuovo giallo (1.268.39) */
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg) :is(button,a):is(.is-active,.active,[aria-pressed="true"],[aria-selected="true"]):not(#_):not(#__):not(#___) small{color:var(--muted)!important}
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg) :is(button,a):is(.is-active,.active,[aria-pressed="true"],[aria-selected="true"]):not(#_):not(#__):not(#___) :is(span,b,i,strong):not([class*="dot"]){color:inherit!important}
html body :is(.inv-tabs,.settings-tabs,.st-tl-days) .inv-tab:not(#_):not(#__):not(#___) em{background:var(--panel2)!important;color:var(--warn)!important}

/* Numeri dei riquadri: non escono mai dal riquadro (1.268.43). Il numero si rimpicciolisce con la larghezza del riquadro
   (container query) e, se serve, va a capo; le caselle della griglia possono restringersi (min-width:0). */
html body :is(.stat,.inv-kpi,.cat-card,.goal-grid>*,.inv-place,.rv-hist-kpi,.an-kpi,.cost-kpi,.kpi,[class*="-kpi"]):not(#_):not(#__){min-width:0!important;container-type:inline-size;overflow:hidden}
html body :is(.stat,.inv-kpi,.cat-card,.goal-grid>*,.rv-hist-kpi,.an-kpi,.cost-kpi,.kpi,[class*="-kpi"]) :is(strong,b):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){font-size:clamp(13px,11.5cqi,28px)!important;line-height:1.15!important;max-width:100%;white-space:nowrap!important;overflow:hidden;text-overflow:clip}
html body :is(.stats,.inv-kpis,.st-kpis,.rv-kpis,.cat-cards,.goal-grid,.inv-places,[class*="-kpis"]):not(#_):not(#__)>*{min-width:0!important}

/* Campo + pulsante affiancati (1.268.51): il pulsante sta FUORI dal campo, con le misure generali dei pulsanti.
   Modello per ogni riga «campo + azione» (es. prenotazione veloce .rnb-quick-row). */

html body .rnb-quick-row>.btn:not(#_){flex:0 0 auto}

/* didascalia vuota della modalità dell'assistente: non occupa spazio (1.268.52) */
html body :is(.ax-mode-text,#axModeText):empty:not(#_){display:none!important}

/* Nessun cerchio: anche puntini, badge, avatar, interruttori e barre sono squadrati (1.268.55, scelta dell'utente) */
html body *:not(#_):not(#__),html body *:not(#_):not(#__)::before,html body *:not(#_):not(#__)::after{border-radius:0!important}

/* ===== Audit del linguaggio stilistico, regole uniche (1.271.0; vedi docs/audit-stile.md) =====
   A5: i pulsanti piccoli (28 px) valgono solo dentro tabelle e righe (.set-row, .rnb-row): esclusione nella regola «Pulsanti tutti uguali» qui sopra.
   A3 Etichetta di modulo: un solo stile, 13 px/600 grigio, senza maiuscolo. Non vale per le etichette con casella (testo di un'opzione),
      per i pulsanti-etichetta e per label.set-field (lì l'etichetta è lo <span>, intestazione di colonna). */
html body :is(main,.modal,.acct-pane) label:not(.btn):not(.set-field):not(.sr-only):not(:has(input[type=checkbox],input[type=radio])):not(#_):not(#__):not(#___){font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:var(--muted)!important}
html body :is(main,.modal,.acct-pane) :is(.sr-field,.cm-field)>span:first-child:not(#_):not(#__):not(#___){font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:var(--muted)!important}
html body :is(main,.modal,.acct-pane) label :is(input,select,textarea):not(#_):not(#__){font-weight:400;letter-spacing:0;text-transform:none}
@media(min-width:641px){
 /* A4 Intestazione di tabella: un solo stile (escluse le griglie del planning e le piante). */
 html body main table:not(.st-plan):not(.fp-table):not(.mini-calendar) thead th:not(#_):not(#__):not(#___):not(#____){font-size:12px!important;font-weight:600!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:var(--muted)!important;background:var(--panel2)!important;padding-top:10px!important;padding-bottom:10px!important}
 /* A6 Campi dentro una tabella: 28 px ovunque. */
 html body main table:not(.st-plan):not(.fp-table) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select):not(#_):not(#__):not(#___):not(#____){height:28px!important;min-height:28px!important}
}

/* ===== Allineamento dei campi e distanze minime: regole uniche (1.274.0) =====
   Token in app/00-design-tokens.css: --gap-label 4 (etichetta > campo), --gap-ctl 8 (tra controlli affiancati),
   --gap-field 14 (tra campi sulla riga), --gap-row 12 (tra righe di campi); tra le schede resta --card-gap.
   Restano fuori: gruppi segmentati (.type-filter, .inv-tabs, .settings-tabs, .st-tl-days, .rv-mode, .rv-mix-scope, .cm-reply-kind, .ax-mode, .rnb-seg, .sec-seg),
   tacche del selettore (.timeline-criterion-stops), tabelle, planning e piante. Su telefono le colonne le decide 59-mobile-base.css. */
/* 1 Etichetta sopra il campo: un solo passo, senza margini propri */
html body .field:not(#_):not(#__){display:flex;flex-direction:column;gap:var(--gap-label)!important;min-width:0}
html body .field>label:not(#_):not(#__){margin:0!important}
/* 2 Righe di campi: etichette in alto, controlli sul bordo inferiore, distanze uniche; il campo non aggiunge margini alla griglia */
html body :is(.form-grid,.timeline-controls,.floor-controls,.revenue-inputs):not(#_):not(#__){align-items:end!important;gap:var(--gap-row) var(--gap-field)!important}
html body :is(.form-grid,.timeline-controls,.floor-controls,.revenue-inputs)>.field:not(#_):not(#__){margin:0!important}
/* 3 Campo + azione sulla stessa riga: l'azione sta sul bordo inferiore del campo, non al centro dell'insieme etichetta + campo */
html body .rnb-quick-row:not(#_):not(#__){display:flex;align-items:flex-end!important;gap:var(--gap-ctl)!important}
/* 4 Distanza minima tra controlli affiancati: 8 px */
html body :is(.rnb-card-actions,.actions,.modal-actions,.settings-actions,.set-add,.timeline-actions,.ck-edit-act,.inv-round-days,.sup-min,.fm-tabs,.fm-tools,.inv-area-order>div,.date-navigation,.shift-buttons,.st-plan-tools):not(#_):not(#__){gap:var(--gap-ctl)!important}
html body .rnb-card-sub .td-link+.td-link:not(#_):not(#__){margin-left:var(--gap-ctl)}
/* voci una sotto l'altra (legenda dei grafici): metà della distanza minima */
html body .an-pie-legend:not(#_):not(#__){gap:calc(var(--gap-ctl) * .75)!important}

/* ===== Tabelle: spazio per intestazioni e colonne (1.276.0, scelta dell'utente) =====
   Larghezza delle colonne dal contenuto (non più percentuali fisse), intestazioni su una riga, 12 px ai lati di ogni cella,
   prima colonna almeno 220 px; se non ci sta, la tabella scorre nel suo contenitore. Esclusi planning, piante, calendario. */
@media(min-width:641px){
 html body main :is(.inv-table-wrap,.st-scroll) table:not(.st-plan):not(.fp-table):not(.mini-calendar):not(#_):not(#__):not(#___){table-layout:auto!important;width:100%!important;min-width:100%!important}
 html body main table:not(.st-plan):not(.fp-table):not(.mini-calendar) thead th:not(#_):not(#__):not(#___):not(#____){white-space:nowrap!important;padding-left:12px!important;padding-right:12px!important;width:auto!important}
 html body main table:not(.st-plan):not(.fp-table):not(.mini-calendar) tbody td:not(#_):not(#__):not(#___){padding-left:12px!important;padding-right:12px!important}
 html body main table:not(.st-plan):not(.fp-table):not(.mini-calendar) tbody td:first-child:not(#_):not(#__):not(#___){min-width:220px}
 /* colonne di sole caselle o segni (th/td.cell-check): 8 px ai lati invece di 12 */
 html body main table:not(.st-plan):not(.fp-table):not(.mini-calendar) :is(th,td).cell-check:not(#_):not(#__):not(#___):not(#____):not(#_____){padding-left:8px!important;padding-right:8px!important}
 html body main table .inv-loc-picker>summary:not(#_):not(#__){white-space:nowrap}
 html body main :is(.inv-table-wrap,.st-scroll):not(#_):not(#__):not(#___){overflow-x:auto!important}
}
/* Allergeni (1.282): chip a scelta (articolo di magazzino, aggiunte manuali di una voce di listino); attivo = fondo tenue, contorno petrolio e barra sotto, come i gruppi segmentati; tratteggiato = presente dagli ingredienti */
html body .alg-chips:not(#_){display:flex;flex-wrap:wrap;gap:var(--gap-ctl,8px);margin-top:var(--gap-label,4px)}
html body .alg-chip:not(#_):not(#__){display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;height:28px!important;min-height:0!important;padding:0 10px!important;border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel)!important;color:var(--text)!important;font-size:12px!important;font-weight:600!important;line-height:1;white-space:nowrap;cursor:pointer;box-shadow:none!important}
html body .alg-chip.is-from:not(#_):not(#__){border-style:dashed!important}
html body .alg-chip.is-active:not(#_):not(#__){background:var(--ui-tint)!important;border-color:var(--azure)!important;border-style:solid!important;box-shadow:inset 0 -2px 0 var(--azure)!important;font-weight:700!important}
html body .inv-det .inv-alg:not(#_){flex:1 1 100%;min-width:0}
/* Casella di scelta in una cella di tabella (allergeni in modifica, 1.290): 16 px centrata, proposta = contorno tratteggiato; su telefono area di tocco 40 px senza alzare la riga */
html body .alg-hit:not(#_){display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer}
html body .alg-cb:not(#_):not(#__){width:16px!important;height:16px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;flex:none;cursor:pointer}
html body .alg-cb:disabled:not(#_):not(#__){cursor:default}
html body .alg-cb.is-proposed:not(#_):not(#__){outline:1px dashed var(--azure);outline-offset:2px}
@media(max-width:640px){
 html body .alg-hit:not(#_){width:100%;min-width:40px;height:40px;margin:-12px 0}
 html body .alg-cb:not(#_):not(#__){width:22px!important;height:22px!important}
}

/* Chip degli allergeni dal testo delle prenotazioni (rnbAllergyChips, js/core-timeline.js): righe di tag, distanza tra controlli */
html body .alg-tags:not(#_){display:flex;flex-wrap:wrap;gap:var(--gap-ctl);max-width:100%;margin:0;padding-top:var(--gap-ctl)}
html body .alg-tags .rv-tag:not(#_){max-width:100%;overflow-wrap:anywhere}

/* Timeline: l'ombra tratteggiata di una prenotazione (tempo concesso `.tl-granted`, riassetto `.tl-reset`) fa parte della sua grafica e ne segue la posizione e l'altezza.
   Una sola misura per tutti e tre, nei token --tlb-*: mai top/height propri sull'ombra o sulla prenotazione (1.284.1). */
html body #timelineContent:not(#_){--tlb-top:8px;--tlb-h:42px;--tlb-min:0px}
html body #timelineContent .tl-granted:not(#_),html body #timelineContent .tl-reset:not(#_){top:var(--tlb-top)!important;height:var(--tlb-h)!important;min-height:var(--tlb-min)!important;bottom:auto!important}
@media(max-width:640px){html body #timelineContent:not(#_){--tlb-top:10px;--tlb-h:calc(100% - 20px);--tlb-min:44px}}

/* Finestra di conferma: nessuna linea blu attorno ai pulsanti (Annulla ha il fuoco all'apertura) (1.284.4) */
html body #appConfirmModal .modal-actions .btn:not(#_):focus,html body #appConfirmModal .modal-actions .btn:not(#_):focus-visible{outline:0!important;outline-offset:0!important}
/* Telefono con icona: un tocco chiama (rnbPhoneLink in core.js) */
html body a.rnb-tel:not(#_){display:inline-flex;align-items:center;gap:var(--gap-label);color:var(--azure-ink);font-weight:600;text-decoration:none;white-space:nowrap}
html body a.rnb-tel:not(#_):hover{text-decoration:underline}
html body a.rnb-tel svg{flex:none}
/* corpo di scheda a blocchi impilati (stato, riquadri dei numeri, campi, elenco): distanza standard tra i blocchi */
html body .rnb-card-body.rnb-stack:not(#_){display:grid;gap:var(--gap-row);align-content:start}
html body .rnb-card-body.rnb-stack>p:not(#_){margin:0}

/* Card dei tavoli del Floor plan: fondo tenue, bordo e ombra leggera dei riquadri (il bordo di vetro era bianco su scheda bianca); niente backdrop-filter, solo colori pieni (25 nov 2026) */
html body #floorPage .table-card.fp-card:not(#_):not(#__):not(#___){background:var(--panel2)!important;border:1px solid var(--box-line)!important;box-shadow:var(--box-sh)!important}
html body #floorPage .table-card.fp-card:not(.table-card-blocked):not(#_):not(#__):not(#___):hover{border-color:var(--ui-line-hover)!important}

/* Distanze tra schede, regola unica su ogni pagina (25 nov 2026, scelta dell'utente): un contenitore di schede (.set-stack, anche con i riquadri dei numeri .inv-kpis) è una colonna con --card-gap tra una scheda e l'altra; mai margini propri tra schede sorelle; l'intestazione di scheda tiene titolo a sinistra e dato/azioni a destra sulla stessa riga */
html body main .set-stack:not(#_):not(#__){display:flex;flex-direction:column;gap:var(--card-gap,16px);min-width:0}
html body main .set-stack>:not(#_):not(#__){margin-top:0;margin-bottom:0;min-width:0}
html body main section.rnb-card>header.rnb-card-head:not(#_):not(#__){display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:var(--gap-ctl,8px) var(--gap-field,14px)}
html body main section.rnb-card>header.rnb-card-head>:is(.set-count,.rnb-card-actions):not(#_):not(#__){margin-left:auto}
html body main section.rnb-card>header.rnb-card-head:has(>.set-count):not(#_):not(#__):not(#___){flex-direction:row!important;align-items:center!important;text-align:left}
html body main section.rnb-card>header.rnb-card-head:has(>.set-count)>.rnb-card-title:not(#_):not(#__):not(#___){text-align:left!important}

/* Icone nei pulsanti, classi comuni (regole «Stile delle icone», 1.299.0): .rnb-ic = SVG di 18 px, .rnb-bt = testo del pulsante.
   Da 641 px si vede solo il testo; fino a 640 px solo l'icona e il testo resta per i lettori di schermo. */
html body .rnb-ic:not(#_){display:none}
@media(max-width:640px){
 html body .rnb-ic:not(#_){display:block;width:18px;height:18px;flex:none}
 html body .rnb-bt:not(#_){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
}

/* Titoli delle schede sempre a sinistra, a ogni larghezza (1.299.3, scelta dell'utente): nessuna intestazione centrata */
html body main .rnb-card>header.rnb-card-head:not(#_):not(#__):not(#___):not(#____){text-align:left!important}
html body main .rnb-card>header.rnb-card-head>.rnb-card-title:not(#_):not(#__):not(#___):not(#____),html body main .rnb-card>header.rnb-card-head>div:first-child:not(#_):not(#__):not(#___):not(#____){align-self:flex-start!important;text-align:left!important;margin-left:0!important;margin-right:auto!important}

/* Finestre: linguaggio delle schede (1.300.0). Titolo a sinistra con linea sotto, padding 20, angoli 0, piede con Annulla a sinistra e principale a destra. Escluse le finestre con disegno proprio (account, nuovo in timeline, visore documenti). */
html body .modal:not(.acct-modal):not(.tc-modal):not(.doc-viewer):not(#_):not(#__){border-radius:0!important;padding:20px!important;background:var(--panel)!important;border:1px solid var(--line)!important}
html body .modal:not(.acct-modal):not(.tc-modal):not(.doc-viewer)>:is(h2,.modal-head):first-child:not(#_):not(#__),html body .modal:not(.acct-modal):not(.tc-modal):not(.doc-viewer)>.reorg-kicker+h2:not(#_):not(#__){margin:-20px -20px 16px!important;padding:16px 20px!important;border-bottom:1px solid var(--line)!important;text-align:left!important}
html body .modal:not(.acct-modal):not(.tc-modal):not(.doc-viewer) :is(.modal-head>h2,>h2):not(#_):not(#__){font-family:inherit!important;font-size:16px!important;font-weight:650!important;letter-spacing:0!important;text-transform:none!important;color:var(--text)!important;text-align:left!important;margin-bottom:0}
html body .modal:not(.acct-modal):not(.tc-modal):not(.doc-viewer)>.modal-head>h2:not(#_):not(#__){margin:0!important}
html body .modal:not(.acct-modal):not(.tc-modal):not(.doc-viewer)>.modal-head:not(#_):not(#__){display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--gap-ctl)!important}
html body .modal .modal-actions:not(:empty):not(#_):not(#__){display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;margin:20px -20px -20px!important;padding:16px 20px!important;border-top:1px solid var(--line)!important}
html body .modal .modal-actions:empty:not(#_):not(#__){display:none!important}
html body .modal .modal-actions>.btn:not(.primary):first-child:not(#_):not(#__){margin-right:auto!important}
/* Icone nelle finestre (modal-icons.js): da 641 px solo testo, su telefono solo icona con title e aria-label. */
html body .modal .btn .rnb-ic:not(#_){width:18px;height:18px;flex:none}
@media(max-width:640px){html body .modal .modal-actions:not(#_):not(#__){flex-wrap:nowrap!important}html body .modal .modal-actions>.btn:has(.rnb-ic):not(#_):not(#__){flex:1 1 0!important;min-width:0!important}html body .modal :is(.modal-actions,.actions)>.btn:not(#_):not(#__){min-height:44px!important;height:44px!important}}

/* 1.305.4: navigazione dei giorni come gruppo segmentato; «Oggi» staccato */
html body .date-navigation:not(#_):not(#__):not(#___):not(#____){gap:0!important}
html body .date-navigation>*:not(#_):not(#__)+*:not(#_):not(#__){margin-left:-1px!important}
html body .date-navigation>.today:not(#_):not(#__){margin-left:var(--gap-ctl)!important;margin-right:var(--gap-ctl)!important}
html body .date-navigation>.today+*:not(#_):not(#__){margin-left:0!important}

/* 1.305.5: Floor plan, tavolo libero = riga breve in grigio */
html body #floorPage .fp-card .fp-none:not(#_){padding:4px 0!important;margin:0!important;font-size:12px!important;color:var(--muted)!important}

/* 1.305.6: su schermi a tocco «+ Prenota» delle card del Floor plan sempre visibile */
@media(hover:none),(max-width:640px){html body #floorPage .fp-card .fp-add-btn:not(#_):not(#__){opacity:1!important;visibility:visible!important}}

/* 1.305.7: pulsante lucchetto delle card del Floor plan quadrato */
html body #floorPage .fp-card .fp-lock:not(#_):not(#__){width:34px!important;height:34px!important;min-width:34px!important;min-height:0!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;flex:none}

/* 1.305.8: card dei tavoli del Floor plan colorate come la legenda (vale lo stato più avanzato); caratteristiche della zona senza colore */
html body #floorPage .fp-card:is(:has(.fp-st-expected),:has(.fp-st-reconfirmed)):not(#_):not(#__):not(#___):not(#____){background:var(--ui-tint)!important;border-color:var(--ui-azure)!important;box-shadow:inset 3px 0 0 var(--ui-azure)!important}
html body #floorPage .fp-card:has(.fp-st-arrived):not(#_):not(#__):not(#___):not(#____){background:var(--fp-arrived-bg)!important;border-color:var(--fp-arrived)!important;box-shadow:inset 3px 0 0 var(--fp-arrived)!important}
html body #floorPage .fp-card:has(.fp-st-seated):not(#_):not(#__):not(#___):not(#____){background:var(--fp-seated-bg)!important;border-color:var(--fp-seated)!important;box-shadow:inset 3px 0 0 var(--fp-seated)!important}
html body #floorPage .fp-card:has(.fp-lock.is-blocked):not(#_):not(#__):not(#___):not(#____){background:var(--fp-blocked-bg)!important;border-color:var(--fp-blocked-line)!important;box-shadow:inset 3px 0 0 var(--fp-blocked-line)!important}
html body #floorPage .fp-card .fp-feat:not(#_):not(#__):not(#___):not(#____){background:transparent!important;color:var(--muted)!important;border:0!important;padding:0!important;font-weight:500!important}
/* Utenti (Account › Utenti): azioni a icona sulla riga, stato di accesso sotto il nome */
html body #usersPanel .usr-acts:not(#_){gap:var(--gap-ctl);align-items:center;flex-wrap:wrap}
html body #usersPanel .usr-ic:not(#_){width:28px!important;min-width:28px!important;height:28px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}
html body #usersPanel .usr-state:not(#_){display:block;margin-top:2px;font-size:12px}
html body #usersPanel .usr-warn:not(#_){color:var(--warn-ink,var(--bad-ink))}
html body #usersPanel .usr-pwline:not(#_){align-items:end}
html body #usersPanel .usr-pwline .usr-f:not(#_){display:flex;flex-direction:column;gap:var(--gap-label);flex:1 1 200px;min-width:0}
html body #usersPanel .usr-shown code:not(#_){font-size:14px;font-weight:600;user-select:all}
html body #usersPanel .usr-pwline .usr-f>span:not(#_){font-size:13px;font-weight:600;color:var(--muted)}

/* Pulsante principale disattivato leggibile (1.309.1): niente petrolio sbiadito, fondo neutro e testo grigio */
html body :is(.btn.primary,button.primary):disabled:not(#_){opacity:1!important;background:var(--panel2)!important;color:var(--muted)!important;border-color:var(--ui-line)!important;box-shadow:none!important}
/* Testo e icona dentro un pulsante: sempre il colore del pulsante (la regola .rnb-card span lo rendeva grigio sul petrolio) */
html body :is(button,.btn) :is(.rnb-bt,.rnb-ic,.tl-bt,.ax-long):not(#_){color:inherit!important}

/* == css/ui/59-mobile-base.css == */
/* Telefono (≤640 px): regole comuni a tutte le pagine, dal modello dell'Inventario (1.267.55).
   Comandi grandi da toccare, niente scorrimento orizzontale né barre di scorrimento visibili.
   Le regole di ogni pagina stanno nei file 60-mobile-*.css. Eccezione voluta: il carosello delle ubicazioni dell'Inventario. */
@media(max-width:640px){
 /* niente pagina più larga dello schermo */
 html body main:not(#_){overflow-x:clip}
 /* niente barre di scorrimento visibili (lo scorrimento resta dove serve) */
 html body main *:not(#_){scrollbar-width:none}
 html body main *::-webkit-scrollbar{display:none}
 /* pulsanti: 44 px fuori dalle tabelle, 40 px i piccoli */
 html body main .btn:not(.small):not(table *):not(.rnb-menu-item):not(#_):not(#__):not(#___){min-height:44px!important}
 html body main .btn.small:not(table *):not(.row-x):not(.rnb-menu-item):not(#_):not(#__):not(#___){min-height:40px!important}
 /* campi: 44 px e testo 16 px (su iPhone niente zoom quando si scrive) */
 html body main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]),select):not(table *):not(.set-row *):not(.inv-place-name):not(#_):not(#__){height:44px!important;min-height:44px!important;font-size:16px!important}
 /* schede e filtri segmentati: vanno a capo invece di scorrere */
 html body main :is(.type-filter,.inv-tabs,.settings-tabs,.rv-tabs,.page-sec-bar,#invSections):not(#_){flex-wrap:wrap!important;overflow:visible!important;white-space:normal}
 html body main :is(.type-filter,.inv-tabs,.settings-tabs,.rv-tabs,.page-sec-bar,#invSections)>*:not(#_){min-height:40px}
 html body main :is(.type-filter,.inv-tabs,.settings-tabs,.rv-tabs,.page-sec-bar,#invSections)>:is(button,.btn,a):not(#_):not(#__):not(#___){min-height:40px!important;height:auto!important}
 /* scorciatoie della data (« Ieri Oggi Domani ») */
 html body main .day-shortcut:not(#_):not(#__):not(#___){min-height:44px!important}
 /* contenitori delle tabelle: nessuna altezza fissa, altrimenti le righe diventate card escono e si sovrappongono a quello che segue */
 html body main .inv-table-wrap:not(#_):not(#__){height:auto!important;max-height:none!important}
}
/* Tabelle su telefono: tutte come la tabella della Biancheria (Inventario). Intestazione una volta sola, una riga per record,
   numeri a destra, righe separate da una linea sottile; la tabella scorre in orizzontale dentro il suo contenitore, senza barra.
   Eccezioni: planning del Personale (.st-plan) e piante dei tavoli (.fp-table). Niente card, niente data-label. */
@media(max-width:640px){
 html body main :is(.inv-table-wrap,.st-scroll,.rv-sales-table,.table-wrap,div:has(>table)):not(.st-card-plan>.st-scroll):not(#_):not(#__){max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 html body main table:not(.st-plan):not(.fp-table):not(#_):not(#__){display:table!important;width:max-content!important;min-width:100%!important;max-width:none!important;table-layout:auto!important;border-collapse:collapse;border:0!important;font-size:13px}
 html body main table:not(.st-plan):not(.fp-table)>thead:not(#_):not(#__){display:table-header-group!important;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;clip-path:none!important}
 html body main table:not(.st-plan):not(.fp-table)>tbody:not(#_):not(#__){display:table-row-group!important;gap:0!important}
 html body main table:not(.st-plan):not(.fp-table) tr:not(#_):not(#__){display:table-row!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
 html body main table:not(.st-plan):not(.fp-table) :is(th,td):not(#_):not(#__){display:table-cell!important;width:auto;min-width:0;padding:8px 10px!important;border:0!important;border-bottom:1px solid var(--box-line)!important;text-align:left;vertical-align:middle;white-space:nowrap;font-size:13px!important;line-height:1.3}
 html body main table:not(.st-plan):not(.fp-table) :is(th,td):first-child:not(#_):not(#__){white-space:normal;min-width:110px;max-width:200px}
 html body main table:not(.st-plan):not(.fp-table) :is(th,td):not(#_):not(#__)::before{content:none!important;display:none!important}
 html body main table:not(.st-plan):not(.fp-table) thead th:not(#_):not(#__){padding:8px 10px!important;font-size:11px!important;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);vertical-align:bottom;background:transparent}
 html body main table:not(.st-plan):not(.fp-table) :is(.num,td.num,th.num,.inv-num-cell):not(#_):not(#__){text-align:right!important;font-variant-numeric:tabular-nums}
 html body main table:not(.st-plan):not(.fp-table) tr:is(.inv-group-row,.inv-det-row)>td:not(#_):not(#__){display:table-cell!important;white-space:normal}
}

/* prima colonna delle tabelle su telefono: al massimo 160 px, il testo va a capo (1.268.72) */
@media(max-width:640px){
 html body main table:not(.st-plan):not(.fp-table) :is(td,th):first-child:not(#_):not(#__):not(#___){width:160px!important;min-width:110px!important;max-width:160px!important;white-space:normal!important;overflow-wrap:anywhere}
 html body main table:not(.st-plan):not(.fp-table) :is(td,th):first-child *:not(#_):not(#__):not(#___){white-space:normal!important;max-width:100%!important;min-width:0!important}
}

/* Riquadri dei numeri su telefono: al massimo 2 per riga (scelta dell'utente, 1.273.1); se sono dispari l'ultimo occupa la riga intera. */
@media(max-width:640px){
 html body main :is(.inv-kpis,.rnb-live,.st-kpis):not(#_):not(#__):not(#___):not(#____){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body main :is(.inv-kpis,.rnb-live,.st-kpis)>*:not(#_):not(#__):not(#___){min-width:0!important;width:auto!important;max-width:none!important;flex:none!important;margin:0!important}
 html body main :is(.inv-kpis,.rnb-live,.st-kpis)>:last-child:nth-child(odd):not(#_):not(#__):not(#___){grid-column:1/-1}
}

/* Pulsanti che portano solo a un'altra sezione (classe td-nav): su telefono c'è la barra in basso, non si mostrano (scelta dell'utente). Un nuovo pulsante di sola navigazione prende la classe td-nav. */
@media(max-width:640px){
 html body .td-nav:not(#_):not(#__){display:none!important}
}
/* Telefono: ✕ e campi nelle righe delle Impostazioni con la misura standard di tabella (28 px); log dell'assistente su una riga */
@media(max-width:640px){
 html body main .set-row :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]),select):not(#_):not(#__){height:var(--ui-h-sm)!important;min-height:var(--ui-h-sm)!important;padding:0 8px!important;font-size:12px!important}
 html body main .btn.small.row-x:not(#_):not(#__):not(#___){width:var(--ui-h-sm)!important;min-width:var(--ui-h-sm)!important;height:var(--ui-h-sm)!important;min-height:var(--ui-h-sm)!important;padding:0!important}
 html body main #smartReorgLog .smart-log-row:not(#_):not(#__){flex-wrap:nowrap;align-items:center}
 html body main #smartReorgLog .smart-log-row>span:first-child:not(#_):not(#__){-webkit-line-clamp:1;white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}
 html body main #smartReorgLog .log-side:not(#_):not(#__){flex-wrap:nowrap;flex:none}
 html body main #smartReorgLog .log-acts:not(#_):not(#__){flex-wrap:nowrap}
}

/* Schermi a tocco: il passaggio del mouse resta attivo dopo il tocco; i pulsanti di data e turno non restano evidenziati (1.295.4). */
@media(hover:none){html body main :is(.date-navigation button,.shift-buttons>.btn):not(.primary):not([aria-pressed=true]):not(.active):not(.is-active):not(.on):not(:disabled):hover:not(#_):not(#__):not(#___):not(#____){background:var(--panel)!important;border-color:var(--ui-line)!important;color:var(--ui-ink)!important;filter:none!important}html body main :is(.date-navigation button,.shift-buttons>.btn):not(:disabled):active:not(#_):not(#__):not(#___):not(#____){background:var(--ui-tint)!important}}
/* Barra in alto su telefono: solo il logo, centrato; il titolo di pagina non si vede ma resta nel DOM con il suo riquadro (serve a core-timeline.js per lo schermo intero) e non intercetta i tocchi (1.299.5, scelta dell'utente). */
@media(max-width:640px){html body #pageTitle:not(#_):not(#__){opacity:0;pointer-events:none}html body>.brand-logo:not(#_):not(#__){left:50%;transform:translateX(-50%)}}
/* Barra in basso (fino a 850 px): senza padding né spazi, alta come i pulsanti (--rnb-bar-h), 5 voci di pari larghezza che la riempiono da bordo a bordo; l'elenco delle voci, la scheda Conteggio e il fondo di main usano la stessa variabile (1.299.5, scelta dell'utente). */
:root{--rnb-bar-h:60px}
@media(max-width:850px){
 html body .app>aside:not(#_):not(#__){height:calc(var(--rnb-bar-h) + env(safe-area-inset-bottom))!important;min-height:0!important;padding:0 0 env(safe-area-inset-bottom)!important;gap:0!important;align-items:stretch!important;box-sizing:border-box}
 html body .app>aside .rnb-nav:not(#_):not(#__){display:flex!important;flex:1 1 auto;width:100%;height:var(--rnb-bar-h);gap:0!important;align-items:stretch!important;overflow:visible!important}
 html body .app>aside .rnb-nav-sec:not(#_):not(#__):not(#___),html body .app>aside .rnb-nav-sec[data-group="impostazioni"]:not(#_):not(#__){flex:1 1 0!important;min-width:0;height:100%}
 html body .app>aside .rnb-nav-head:not(#_):not(#__):not(#___){height:100%!important;min-height:0!important;margin:0!important;padding:0 2px!important}
}

/* Account su telefono (fino a 850 px): pulsante quadrato con le iniziali dell'utente, in alto a destra nella barra (nav-groups.js; la voce Account non e piu nella barra in basso). 44 px come i pulsanti del telefono. */
html body .rnb-acct-phone:not(#_):not(#__){display:none}
@media(max-width:850px){html body .rnb-acct-phone:not(#_):not(#__){display:flex!important;align-items:center;justify-content:center;position:fixed;top:4px;right:8px;z-index:40;width:44px;height:44px;min-height:0;padding:0;margin:0;border:1px solid var(--ui-line)!important;border-radius:0!important;background:var(--panel2)!important;color:var(--text)!important;box-shadow:none!important;font:700 14px var(--font-brand);letter-spacing:0;cursor:pointer}
 html body .rnb-acct-phone:not(#_):not(#__):active{background:var(--ui-tint)!important}
 html body .rnb-acct-phone svg:not(#_){width:18px;height:18px}}

/* 1.305.2: su telefono la testata di pagina (titolo nascosto) non lascia una fascia vuota con linea */
@media(max-width:850px){html body main>.top:not(#_){border-bottom:0!important;padding-bottom:0!important;margin-bottom:0!important}}

/* 1.305.5: navigazione dei giorni, «Oggi» su una riga propria a tutta larghezza */
@media(max-width:640px){html body:not(.tl-full) main .date-navigation>.today:not(#_):not(#__):not(#___){grid-column:1/-1!important;order:99;margin:var(--gap-ctl) 0 0 0!important}}
/* Barra delle date su telefono, uguale in tutte le pagine (1.311.3): data a tutta riga, poi « Ieri Domani », poi Oggi a tutta riga (fuori la fascia compatta della Dashboard e lo schermo intero della Timeline) */
@media(max-width:640px){
 html body:not(.tl-full) main .date-navigation:not(.dash-date-band .date-navigation):not(#_):not(#__):not(#___):not(#____){display:grid!important;grid-template-columns:44px minmax(0,1fr) minmax(0,1fr) 44px!important;gap:var(--gap-ctl)!important;width:100%!important;align-items:center}
 html body:not(.tl-full) main .date-navigation:not(.dash-date-band .date-navigation)>input:not(#_):not(#__):not(#___):not(#____){grid-column:1/-1!important;grid-row:1!important;order:0!important;width:100%!important;min-width:0!important;margin:0!important}
 html body:not(.tl-full) main .date-navigation:not(.dash-date-band .date-navigation)>button:not(.today):not(#_):not(#__):not(#___):not(#____){grid-row:2!important;grid-column:auto!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:0 4px!important;margin:0!important}
 html body:not(.tl-full) main .date-navigation:not(.dash-date-band .date-navigation)>button.today:not(#_):not(#__):not(#___):not(#____){grid-row:3!important;grid-column:1/-1!important;width:100%!important;margin:0!important;height:44px!important}
}

/* == css/ui/60-mobile-today.css == */
/* Telefono (≤640 px): pagina today. Regole in @media(max-width:640px), selettori con l'id della pagina e :not(#_). */
@media(max-width:640px){
 /* righe «Da fare ora» e simili: testo sopra, pulsanti sotto a tutta larghezza */
 html body #todayPage .td-row:not(#_){display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:stretch!important}
 html body #todayPage .td-row>.btn:not(#_),html body #todayPage .td-row>a.btn:not(#_){width:100%!important;justify-content:center;text-align:center}
 /* intestazioni delle card: titolo sopra, azioni sotto in griglia a 2 colonne */
 html body #todayPage .td-card-head:not(#_){flex-wrap:wrap!important;}
 html body #todayPage .td-card-head>*:not(#_){min-width:0}
 html body #todayPage .td-card-head>.btn:not(#_){flex:1 1 100%}
 /* titolo e azioni sulla stessa riga quando ci stanno: il conteggio o il pulsante non vanno a capo da soli */
 html body #todayPage .td-card-head:not(#_){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:var(--gap-ctl)!important}
 html body #todayPage .td-card-head>.ck-head-act:not(#_){grid-column:1/-1}
 /* piede di una scheda con azioni: ogni pulsante a tutta larghezza, la principale per ultima */
 html body #todayPage .rnb-card-foot>.btn:not(#_){flex:1 1 100%}
 html body #todayPage :is(.ck-head-act,.sr-actions,.td-places):not(#_){display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
 html body #todayPage .ck-head-act>*:not(#_){width:100%!important}
 /* pulsanti: 44 px (piccoli 40 px), anche dentro le card */
 html body #todayPage .btn:not(.small):not(#_){min-height:44px!important;height:auto!important}
 html body #todayPage .btn.small:not(#_){min-height:40px!important;height:auto!important;padding-top:6px!important;padding-bottom:6px!important;white-space:normal;line-height:1.2}
 html body #todayPage :is(.ck-head-act,.sr-actions,.td-places)>.btn:not(#_){width:100%!important;min-height:44px!important;justify-content:center;text-align:center}
 /* azione principale a destra / in fondo: ultima della griglia a tutta larghezza se dispari */
 html body #todayPage :is(.ck-head-act,.sr-actions,.td-places)>.btn:last-child:nth-child(odd):not(#_){grid-column:1/-1}
 /* niente elemento più largo della pagina */
 html body #todayPage :is(.panel,.td-card,.td-row,.td-list,section):not(#_){max-width:100%;min-width:0}
 html body #todayPage :is(strong,span,small):not(#_){overflow-wrap:anywhere}
}
@media(max-width:640px){
 html body #todayPage :is(.td-link,.ck-hist summary):not(#_){display:inline-flex;align-items:center;min-height:44px}
}
@media(max-width:640px){
 html body #todayPage .sr-field textarea:not(#_){min-height:44px!important;font-size:16px!important}
}

/* Pulsanti che aprono solo una sezione: su telefono c'è la barra in basso (1.268.7) */
@media(max-width:640px){html body #todayPage .td-nav:not(#_){display:none!important}}

@media(max-width:640px){
 html body #todayPage .rf-card .rf-table:not(#_):not(#__){min-width:0}
 html body #todayPage .rf-card .rf-qty:not(#_):not(#__){grid-template-columns:64px 56px}
 html body #todayPage .rf-card .rf-q:not(#_):not(#__):not(#___){width:64px}
}

/* == css/ui/60-mobile-dashboard.css == */
/* Telefono (≤640 px): pagina dashboard. Regole in @media(max-width:640px), selettori con l'id della pagina e :not(#_). */
@media(max-width:640px){
 /* data: campo a tutta larghezza, poi i cinque pulsanti in griglia */
 html body #dashboardPage .date-navigation:not(#_){display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:8px!important;width:100%}
 html body #dashboardPage .date-navigation #dashboardDate:not(#_){grid-column:1/-1!important;grid-row:1;width:100%!important}
 html body #dashboardPage .date-navigation>button:not(#_){grid-row:2;min-width:0!important;width:100%!important;min-height:44px!important;height:44px!important;padding:0 4px!important}
 html body #dashboardPage #rnbHeat small:not(#_){font-size:12px!important}
 html body #dashboardPage :is(.panel,.rnb-card,.up-empty):not(#_){max-width:100%;box-sizing:border-box}
}

/* Data compatta in una riga come la Timeline a schermo intero (prova-registro, scelta dell'utente) */
@media(max-width:640px){
 html body #dashboardPage .dash-date-band>label:not(#_):not(#__):not(#___){position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 html body #dashboardPage .dash-date-band .date-navigation:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:36px 36px minmax(0,1fr) 36px 36px 36px!important;gap:6px!important;align-items:center;width:100%}
 html body #dashboardPage .dash-date-band .date-navigation>input:not(#_):not(#__):not(#___){grid-column:3!important;grid-row:1!important;order:0;min-width:0;width:100%!important}
 html body #dashboardPage .dash-date-band .date-navigation>button:nth-of-type(1):not(#_):not(#__):not(#___){grid-column:1!important;grid-row:1!important}
 html body #dashboardPage .dash-date-band .date-navigation>button:nth-of-type(2):not(#_):not(#__):not(#___){grid-column:2!important;grid-row:1!important}
 html body #dashboardPage .dash-date-band .date-navigation>button:nth-of-type(3):not(#_):not(#__):not(#___){grid-column:4!important;grid-row:1!important}
 html body #dashboardPage .dash-date-band .date-navigation>button:nth-of-type(4):not(#_):not(#__):not(#___){grid-column:5!important;grid-row:1!important}
 html body #dashboardPage .dash-date-band .date-navigation>button:nth-of-type(5):not(#_):not(#__):not(#___){grid-column:6!important;grid-row:1!important}
 html body #dashboardPage .dash-date-band .date-navigation>button:not(#_):not(#__):not(#___):not(#____){display:inline-flex!important;align-items:center;justify-content:center;padding:0!important;min-width:0!important;width:100%!important;min-height:38px!important;height:38px!important}
 html body #dashboardPage .dash-date-band .date-navigation>input:not(#_):not(#__):not(#___):not(#____){min-height:38px!important;height:38px!important}
 html body #dashboardPage .dash-date-band .date-navigation>button:is(:nth-of-type(2),:nth-of-type(3),:nth-of-type(4)) .tl-ic:not(#_):not(#__):not(#___):not(#____){display:block!important;width:18px;height:18px}
 html body #dashboardPage .dash-date-band .date-navigation>button:is(:nth-of-type(2),:nth-of-type(3),:nth-of-type(4)) .tl-bt:not(#_):not(#__):not(#___):not(#____){display:none!important}
}

/* Pianta dei tavoli: 6 card per riga; filtri del Registro (Attivita): Periodo a tutta larghezza, poi Giorno, Persona, Area su 3 colonne */
@media(max-width:640px){
 html body #dashboardPage #dashboardFloorQuick .dfq-grid:not(#_):not(#__){grid-template-columns:repeat(6,minmax(0,1fr))!important}
 html body #dashboardPage .act-filters:not(#_):not(#__){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:var(--gap-row,12px) var(--gap-field,14px)!important}
 html body #dashboardPage .act-filters>.field:not(#_):not(#__){min-width:0!important;width:100%!important;margin:0!important}
 html body #dashboardPage .act-filters>.field:has(.type-filter):not(#_):not(#__){grid-column:1/-1!important;order:-1}
 html body #dashboardPage .act-filters :is(input,select):not(#_):not(#__){width:100%!important;min-width:0!important;max-width:100%!important;padding:0 6px!important;font-size:13px!important}
}

/* == css/ui/60-mobile-timeline.css == */
/* Telefono (≤640 px): pagina timeline. Regole in @media(max-width:640px), selettori con l'id della pagina e :not(#_). */
@media(max-width:640px){
 /* ---- date: campo data a tutta larghezza, poi « Ieri Oggi Domani » ---- */
 html body :is(#timelinePage,#floorPage) .date-navigation:not(#_){display:grid!important;grid-template-columns:44px 1fr 1fr 1fr 44px;gap:8px;width:100%}
 html body :is(#timelinePage,#floorPage) .date-navigation>input:not(#_){grid-column:1/-1;order:-1;width:100%!important;max-width:none!important}
 html body :is(#timelinePage,#floorPage) .date-navigation>button:not(#_){min-height:44px!important;height:44px!important;min-width:0;padding:0 6px!important;font-size:14px!important}
 /* ---- Pranzo / Cena affiancati ---- */
 html body :is(#timelinePage,#floorPage) .shift-buttons:not(#_){display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}
 html body :is(#timelinePage,#floorPage) .shift-buttons>.btn:not(#_){min-height:44px!important;height:44px!important;min-width:0;width:100%}
 /* ---- barra delle azioni della Timeline: 2 colonne, principale a tutta larghezza a destra ---- */
 html body #timelinePage .timeline-actions:not(#_){display:grid!important;grid-template-columns:1fr 1fr;width:100%}
 html body #timelinePage .timeline-actions>.btn:not(#_){min-height:44px!important;width:100%;min-width:0;margin:0}
 html body #timelinePage .timeline-actions>.btn.primary:not(#_){grid-column:1/-1;min-height:46px!important}
 /* ---- ricerca e filtri a tutta larghezza ---- */
 html body :is(#timelinePage,#floorPage) :is(.timeline-search,.search-field,.field):not(#_){width:100%;min-width:0}
 html body :is(#timelinePage,#floorPage) :is(.timeline-controls,.floor-controls):not(#_){gap:10px}
 /* ---- assistente: modalità a tutta larghezza, Criterio e Regole in 2 colonne ---- */
 /* intestazione in colonna: il titolo non tiene la base di 220 px della riga (diventerebbe alto 220 px) */
 html body #rnbAssist .ax-title:not(#_):not(#__){flex:0 0 auto}
 html body #rnbAssist .ax-head-tools>.btn>svg:not(#_):not(#__){margin:0!important}
 html body #rnbAssist .ax-head-tools:not(#_){display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}
 html body #rnbAssist .ax-mode:not(#_){grid-column:1/-1;display:grid!important;grid-template-columns:1fr 1fr 1fr;width:100%}
 html body #rnbAssist .ax-mode>button:not(#_){min-height:40px!important;height:auto!important;margin:0!important;min-width:0;padding:0 6px!important}
 html body #rnbAssist .ax-head-tools>.btn:not(#_){min-height:44px!important;width:100%;min-width:0;display:inline-flex!important;align-items:center;justify-content:center!important;gap:8px}
 /* prenotazione veloce: campo + Crea */
 html body #rnbAssist #rnbQuickGo:not(#_){min-height:44px!important;height:44px!important;min-width:64px;flex:none}
 /* azioni dell'assistente: « Prenota » a tutta larghezza, le altre in griglia a 2 colonne */
 html body #rnbAssist .ax-actions:not(#_){display:grid!important;grid-template-columns:1fr 1fr;width:100%}
 html body #rnbAssist .ax-actions>.btn:not(#_){min-height:44px!important;min-width:0;margin:0}
 /* pulsanti piccoli dell'assistente e dell'avviso «Locale chiuso» */
 html body :is(#rnbAssist,#timelinePage,#floorPage) .btn.small:not(table *):not(#_){min-height:40px!important}
 html body :is(#rnbAssist,#timelinePage) :is(.ax-list,.ax-card,.ax-item) .btn:not(#_){min-height:40px}
 html body #rnbAssist :is(.ax-card,.ax-item,.ax-sug) :is(.ax-btns,.ax-row-actions,.actions):not(#_){display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}
 /* ---- griglia oraria: scorre dentro il suo contenitore (calendario), senza barra visibile ---- */
 html body #timelinePage .timeline-scroll:not(#_){max-width:100%;overflow-x:auto!important;overflow-y:visible;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 /* Floor plan: elementi in colonna dentro il contenitore */
 html body #floorPage :is(#tableGridFull,.table-grid,.floor-grid):not(#_){max-width:100%;min-width:0}
}

/* Barra della prenotazione su telefono (1.268.49): centrata nella riga con margini uguali, più alta, testo su due righe */
@media(max-width:640px){
 html body #timelinePage .timeline-booking:not(#_):not(#__):not(#___){top:var(--tlb-top)!important;bottom:auto!important;height:var(--tlb-h)!important;min-height:var(--tlb-min);padding:6px 10px!important;align-items:center!important;border-width:2px!important;box-shadow:0 2px 6px var(--dk-sh14)!important}
 html body #timelinePage .timeline-booking .tl-text:not(#_):not(#__){display:block!important;flex:1 1 auto;min-width:0;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;line-height:1.25!important}
 html body #timelinePage .timeline-booking .tl-time:not(#_):not(#__),html body #timelinePage .timeline-booking .tl-name:not(#_):not(#__){font-size:15px!important;font-weight:700!important;color:var(--text)!important}
 html body #timelinePage .timeline-booking .tl-meta:not(#_):not(#__){display:block!important;font-size:13px!important;color:var(--muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html body #timelinePage .timeline-booking .tl-tag:not(#_):not(#__){align-self:flex-start;flex:0 0 auto;min-width:22px;height:22px;line-height:22px;padding:0 5px!important;font-size:12px!important;text-align:center}
}

/* Assistente su telefono (25 nov 2026, scelta dell'utente): una riga di 4 strumenti con icona (Criterio, Regole, Trova, Riorganizza), poi Walk-in e Prenota affiancati, poi il campo veloce. Intestazione, corpo e azioni si "aprono" (display:contents) e i pulsanti diventano figli della scheda */
@media(max-width:640px){
 html body #rnbAssist:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap-ctl,8px);padding:16px var(--card-pad,16px)!important;align-content:start}
 html body #rnbAssist>*:not(#_):not(#__){grid-column:1/-1;min-width:0}
 html body #rnbAssist :is(.ax-head,.ax-head-tools,.ax-main,.ax-actions):not(#_):not(#__){display:contents!important}
 html body #rnbAssist .ax-title:not(#_):not(#__){order:1;grid-column:1/-1}
 html body #rnbAssist .ax-mode:not(#_):not(#__){order:2;grid-column:1/-1}
 html body #rnbAssist .ax-crit-btn:not(#_):not(#__){order:3}
 html body #rnbAssist .ax-rules-btn:not(#_):not(#__){order:4}
 html body #rnbAssist .ax-actions>.btn:nth-child(3):not(#_):not(#__){order:5}
 html body #rnbAssist .ax-actions>.btn:nth-child(4):not(#_):not(#__){order:6}
 html body #rnbAssist .ax-actions>.btn:nth-child(1):not(#_):not(#__){order:7;grid-column:span 2}
 html body #rnbAssist .ax-actions>.btn:nth-child(2):not(#_):not(#__){order:8;grid-column:span 2}
 html body #rnbAssist .ax-quick:not(#_):not(#__){order:9;grid-column:1/-1}
 html body #rnbAssist :is(.ax-mode-text,.ax-criterion):not(#_):not(#__){order:10;grid-column:1/-1}
 html body #rnbAssist :is(.ax-crit-btn,.ax-rules-btn,.ax-actions>.btn:nth-child(n+3)):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){display:flex!important;flex-direction:column;align-items:center;justify-content:center!important;gap:2px;height:auto!important;min-height:56px!important;padding:6px 2px!important;font-size:11px!important;line-height:1.15;text-align:center;white-space:normal!important}
 html body #rnbAssist :is(.ax-crit-btn,.ax-rules-btn,.ax-actions>.btn:nth-child(n+3))>svg:not(#_):not(#__){display:block!important;width:18px;height:18px;margin:0!important}
 html body #rnbAssist .ax-long:not(#_):not(#__){display:none}
}
@media(min-width:641px){html body #rnbAssist .ax-btn-ic:not(#_),html body #rnbAssist .ax-actions>.btn>svg.ax-ic:not(#_),html body #rnbAssist .ax-crit-btn>svg.ax-ic:not(#_){display:none}}

/* Barra della Timeline su telefono: Elimina selezionata e Scambio manuale in una riga */
@media(max-width:640px){
 html body #timelinePage .tl-grid-card .timeline-actions:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #timelinePage .tl-grid-card .timeline-actions>.btn:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){grid-column:auto!important;min-height:44px!important;height:auto!important;padding:4px 4px!important;font-size:12px!important;line-height:1.15;white-space:normal!important}
}

/* Righe più basse e schermo intero della Timeline su telefono (25 nov 2026, prova) */
@media(max-width:640px){
 /* righe: da 64 px a 48 px; la barra della prenotazione resta di 36 px con testo a due righe */
 html body #timelineContent:not(#_):not(#__){--tlb-top:6px;--tlb-h:calc(100% - 12px);--tlb-min:36px}
 html body #timelineContent .timeline-row:not(#_):not(#__){min-height:48px!important}
 html body #timelinePage .timeline-booking:not(#_):not(#__):not(#___):not(#____){padding:3px 8px!important}
 html body #timelinePage .timeline-booking .tl-time:not(#_):not(#__):not(#___),html body #timelinePage .timeline-booking .tl-name:not(#_):not(#__):not(#___){font-size:13px!important}
 html body #timelinePage .timeline-booking .tl-meta:not(#_):not(#__):not(#___){font-size:11px!important}
 html body #timelinePage .timeline-booking .tl-text:not(#_):not(#__):not(#___){line-height:1.15!important}
 html body #timelinePage .timeline-booking .tl-tag:not(#_):not(#__):not(#___){height:18px;line-height:18px;min-width:18px;font-size:11px!important}
 /* schermo intero: la scheda della griglia copre la pagina, sopra la barra in basso e sotto le finestre (1000) */
 /* la scheda dei controlli diventa una barra compatta in alto (vedi in fondo) */
 html body.tl-full #timelinePage>.tl-grid-card:not(#_):not(#__){position:fixed;inset:var(--tlfull-top,0px) 0 0 0;z-index:900;margin:0!important;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}
 html body.tl-full #timelinePage .tl-grid-card>.rnb-card-head:not(#_):not(#__){display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;flex:none}
 html body.tl-full #timelinePage .tl-grid-card .rnb-card-actions:not(#_):not(#__){flex:1 1 100%}
 html body.tl-full #timelinePage .tl-grid-card>.rnb-card-body:not(#_):not(#__){flex:1 1 auto;min-height:0;padding:0!important;display:flex;flex-direction:column}
 html body.tl-full #timelinePage .timeline-scroll:not(#_):not(#__){flex:1 1 auto;min-height:0;max-height:none!important;overflow:auto!important;padding-bottom:env(safe-area-inset-bottom)}
}
/* etichetta del tavolo più bassa: nome e posti sulla stessa riga, poi scambio e lucchetto (da 78 a circa 52 px) */
@media(max-width:640px){
 html body #timelineContent .timeline-table-label:not(#_):not(#__):not(#___){padding:4px 4px 4px 6px!important;gap:2px}
 html body #timelineContent .timeline-table-label .tl-table-name:not(#_):not(#__):not(#___){flex-direction:row!important;align-items:baseline;gap:5px;line-height:1.2}
 html body #timelineContent .timeline-table-label .tl-table-name small:not(#_):not(#__):not(#___){font-size:10px}
}
/* nome e posti del tavolo centrati sopra la coppia di pulsanti */
@media(max-width:640px){
 html body #timelineContent .timeline-row>.timeline-label:not(#_):not(#__):not(#___){justify-content:center!important}
 html body #timelineContent .timeline-label .tl-table-name:not(#_):not(#__):not(#___){justify-content:center!important;text-align:center}
 html body #timelineContent .timeline-label .tl-table-name>b:not(#_):not(#__):not(#___){text-align:center}
}
@media(max-width:640px){html body.tl-full #timelinePage>#rnbAssist:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:none!important}}
/* la pagina ha un transform (animazione d'ingresso) che renderebbe «fixed» relativo a lei: in schermo intero si toglie */
@media(max-width:640px){html body.tl-full #timelinePage:not(#_):not(#__):not(#___){transform:none!important;animation:none!important;filter:none!important}}
/* schermo intero: intestazione compatta, titolo e «Esci» sulla stessa riga, poi i tre pulsanti in una riga */
@media(max-width:640px){
 html body #timelinePage .tl-grid-card>.rnb-card-head:not(#_):not(#__):not(#___){display:flex!important;align-items:center;gap:var(--gap-ctl,8px)}
 html body.tl-full #timelinePage .tl-grid-card>.rnb-card-head:not(#_):not(#__):not(#___){padding:6px 12px!important}
 html body #timelinePage .tl-grid-card .rnb-card-actions:not(#_):not(#__):not(#___){flex:1 1 100%;width:100%}
 html body.tl-full #timelinePage .tl-grid-card .timeline-actions>.btn:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){min-height:38px!important;font-size:12px!important}
 html body.tl-full #timelinePage .tl-grid-card .rnb-card-title:not(#_):not(#__):not(#___){display:none!important}
 html body.tl-full #timelinePage .tl-grid-card>.rnb-card-head>div:not(.rnb-card-actions):not(#_):not(#__):not(#___){display:none}
}

/* Pulsanti della Timeline con icona (25 nov 2026): su telefono solo icona (testo nel title e in aria-label), da 641 px solo testo */
@media(min-width:641px){html body #timelinePage .tl-ic:not(#_):not(#__){display:none!important}}
@media(max-width:640px){
 html body #timelinePage .timeline-actions>.btn:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:inline-flex!important;align-items:center;justify-content:center;gap:5px}
 html body #timelinePage .timeline-actions .tl-bt:not(#_):not(#__):not(#___){display:none}
 html body #timelinePage .timeline-actions .tl-ic:not(#_):not(#__):not(#___){display:block;width:18px;height:18px;flex:none}
 html body #timelinePage .timeline-actions .tl-cnt:not(#_):not(#__){position:absolute;top:3px;right:6px;font-size:11px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums;color:var(--muted)}
 html body #timelinePage .timeline-actions>.btn:not(#_):not(#__):not(#___){position:relative}
}

/* Schermo intero: barra compatta sotto la barra del logo. Riga 1: Â« Ieri Data Oggi Domani Â»; riga 2: Pranzo / Cena e ricerca */
html body .date-navigation .tl-ic:not(#_):not(#__):not(#___){display:none!important}
html body #tlFullBtn:not(#_):not(#__):not(#___){display:none!important}
@media(max-width:640px){
 html body:has(#timelinePage:not(.hidden)) #tlFullBtn:not(#_):not(#__):not(#___):not(#____){display:inline-flex!important;position:fixed;top:4px;right:10px;z-index:950;width:44px;height:44px;min-height:44px;padding:0!important;align-items:center;justify-content:center}
 html body #tlFullBtn .tl-bt:not(#_):not(#__):not(#___){display:none!important}
 html body #tlFullBtn .tl-ic:not(#_):not(#__):not(#___){display:block;width:18px;height:18px;flex:none}
 html body #tlFullBtn .tl-ic-out:not(#_):not(#__):not(#___):not(#____){display:none}
 html body.tl-full #tlFullBtn .tl-ic-in:not(#_):not(#__):not(#___):not(#____){display:none}
 html body.tl-full #tlFullBtn .tl-ic-out:not(#_):not(#__):not(#___):not(#____){display:block}
 html body.tl-full #timelinePage>.tl-grid-card:not(#_):not(#__){inset:var(--tlfull-top,104px) 0 0 0}
 html body.tl-full #timelinePage .tl-controls:not(#_):not(#__):not(#___){position:fixed;top:var(--tlfull-bar,52px);left:0;right:0;z-index:901;margin:0!important;border-width:0 0 1px;background:var(--bg);box-shadow:none}
 html body.tl-full #timelinePage .tl-controls>.tl-none:not(#_):not(#__):not(#___),html body.tl-full #timelinePage .tl-controls .timeline-criterion:not(#_):not(#__):not(#___){display:none!important}
 html body.tl-full #timelinePage .tl-controls:not(#_):not(#__):not(#___){padding:8px 12px!important;display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:6px 8px;align-items:center}
 html body.tl-full #timelinePage .tl-controls .timeline-controls:not(#_):not(#__):not(#___){display:contents!important}
 html body.tl-full #timelinePage .tl-controls .timeline-controls>.field:not(#_):not(#__):not(#___){margin:0;min-width:0}
 html body.tl-full #timelinePage .tl-controls .timeline-controls>.field:nth-of-type(1):not(#_):not(#__):not(#___){grid-column:1/-1;grid-row:1}
 html body.tl-full #timelinePage .tl-controls .timeline-controls>.field:nth-of-type(2):not(#_):not(#__):not(#___){grid-column:1;grid-row:2}
 html body.tl-full #timelinePage .tl-controls .timeline-search:not(#_):not(#__):not(#___){display:block!important;grid-column:2;grid-row:2;margin:0;min-width:0}
 html body.tl-full #timelinePage .tl-controls .timeline-search input:not(#_):not(#__):not(#___){width:100%;height:38px!important;min-height:38px!important}
 html body.tl-full #timelinePage .tl-controls .field>label:not(#_):not(#__):not(#___){display:none}
 html body.tl-full #timelinePage .tl-controls .date-navigation:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:36px 36px minmax(0,1fr) 36px 36px 36px!important;gap:6px;align-items:center}
 html body.tl-full #timelinePage .tl-controls .date-navigation>input:not(#_):not(#__):not(#___){grid-column:3;grid-row:1;order:0;min-width:0}
 html body.tl-full #timelinePage .tl-controls .date-navigation>button:nth-of-type(1):not(#_):not(#__):not(#___){grid-column:1;grid-row:1}
 html body.tl-full #timelinePage .tl-controls .date-navigation>button:nth-of-type(2):not(#_):not(#__):not(#___){grid-column:2;grid-row:1}
 html body.tl-full #timelinePage .tl-controls .date-navigation>button:nth-of-type(3):not(#_):not(#__):not(#___){grid-column:4;grid-row:1}
 html body.tl-full #timelinePage .tl-controls .date-navigation>button:nth-of-type(4):not(#_):not(#__):not(#___){grid-column:5;grid-row:1}
 html body.tl-full #timelinePage .tl-controls .date-navigation>button:nth-of-type(5):not(#_):not(#__):not(#___){grid-column:6;grid-row:1}
 html body.tl-full #timelinePage .tl-controls .date-navigation>button:not(#_):not(#__):not(#___):not(#____){display:inline-flex!important;align-items:center;justify-content:center;padding:0!important;min-width:0}
 html body.tl-full #timelinePage .tl-controls .date-navigation>button:is(:nth-of-type(2),:nth-of-type(3),:nth-of-type(4)) .tl-ic:not(#_):not(#__):not(#___):not(#____){display:block!important;width:18px;height:18px}
 html body.tl-full #timelinePage .tl-controls .date-navigation>button:is(:nth-of-type(2),:nth-of-type(3),:nth-of-type(4)) .tl-bt:not(#_):not(#__):not(#___):not(#____){display:none!important}
 html body.tl-full #timelinePage .tl-controls :is(.date-navigation>input,.date-navigation>button,.shift-buttons>.btn):not(#_):not(#__):not(#___):not(#____){min-height:38px!important;height:38px!important}
}
/* Walk-in e Prenota non servono su telefono (25 nov 2026, scelta dell'utente): resta la prenotazione veloce */
@media(max-width:640px){html body #rnbAssist .ax-actions>.btn:is(:nth-child(1),:nth-child(2)):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:none!important}}

/* Trova tavolo e Riorganizza servizio: solo in schermo intero su telefono (altrove c'è l'assistente), 5 icone in una riga */
html body #timelinePage .tl-fs-only:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________):not(#_________){display:none!important}
@media(max-width:640px){
 html body.tl-full #timelinePage .tl-grid-card .timeline-actions:not(#_):not(#__):not(#___):not(#____){grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html body.tl-full #timelinePage .tl-grid-card .timeline-actions>.tl-fs-only:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________):not(#_________):not(#__________){display:inline-flex!important}
}

/* Riga strumenti (1.303.x): voci di pari larghezza, 44 px, con 5 voci la riga scorre; Esci solo a schermo intero, in fondo */
@media(max-width:640px){
 html body #timelinePage .tl-grid-card.tl-has-sel>.timeline-actions.tl-tools:not(#_):not(#__):not(#___),html body.tl-full #timelinePage .tl-grid-card>.timeline-actions.tl-tools:not(#_):not(#__):not(#___){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;padding:8px 12px;margin:0;border-bottom:var(--sep)}
 html body #timelinePage .tl-grid-card>.timeline-actions.tl-tools::-webkit-scrollbar:not(#_){display:none}
 html body #timelinePage .tl-grid-card>.timeline-actions.tl-tools>.btn:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________):not(#_________):not(#__________):not(#___________){flex:1 0 56px!important;width:auto;min-width:56px;min-height:44px!important;height:44px!important}
 html body.tl-full #timelinePage .tl-grid-card>.timeline-actions.tl-tools>.btn:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________):not(#_________):not(#__________):not(#___________){min-height:44px!important;height:44px!important;font-size:12px!important}
 html body.tl-full #timelinePage .tl-grid-card>.timeline-actions.tl-tools>.btn.tl-fs-only:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________):not(#_________):not(#__________):not(#___________){display:inline-flex!important}
 html body.tl-full #timelinePage .tl-grid-card>.rnb-card-head:not(#_):not(#__):not(#___){display:none!important}
 /* a schermo intero l'angolo in alto a destra torna all'Account */
 html body.tl-full #tlFullBtn:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________):not(#_________):not(#__________):not(#___________){display:none!important}
}
@media(min-width:641px){html body #timelinePage .timeline-actions.tl-tools>.tl-exit:not(#_):not(#__):not(#___){display:none!important}}
@media(max-width:640px){html body #timelinePage .tl-grid-card>.timeline-actions.tl-tools:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){flex:0 0 auto!important;width:auto}}
/* 1.303.1: fuori dallo schermo intero il pulsante per entrarci sta a sinistra dell'Account */
@media(max-width:640px){
html body:not(.tl-full) #tlFullBtn:not(#_):not(#__){right:calc(8px + 44px + var(--gap-ctl,8px))!important;left:auto!important}
}

/* 1.305.5: stato dell'assistente come quadratino colorato su telefono (testo nel title) */
@media(max-width:640px){html body #rnbAssist #axStatus:not(#_){width:10px!important;height:10px!important;min-width:0!important;padding:0!important;overflow:hidden;font-size:0!important;line-height:0!important;background:currentColor!important;flex:none}}

/* == css/ui/60-mobile-reservations.css == */
/* Telefono (≤640 px): pagina reservations. Regole in @media(max-width:640px), selettori con l'id della pagina e :not(#_). */
@media(max-width:640px){
 /* barra degli strumenti: azioni a due colonne, grandi da toccare */
 html body #reservationsPage .rv-bar .type-filter>.btn:not(#_){min-height:40px!important;height:40px!important}
 /* righe: pulsanti a griglia, azione principale a tutta larghezza accanto ad Altro */
 html body #reservationsPage .rv-acts:not(#_){display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%;align-items:stretch}
 html body #reservationsPage .rv-acts .rv-primary-action:not(#_){grid-column:1}
 html body #reservationsPage .rv-acts .rv-primary-action:only-child:not(#_){grid-column:1/-1}
 html body #reservationsPage .rv-acts .rv-primary-action .btn:not(#_){width:100%;min-height:44px!important;height:44px!important}
 html body #reservationsPage .rv-more-actions:not(#_){grid-column:2;min-width:0}
 html body #reservationsPage .rv-more-actions>summary:not(#_){min-height:44px!important;height:44px;width:100%;box-sizing:border-box}
 html body #reservationsPage .rv-more-actions[open]:not(#_){grid-column:1/-1}
 html body #reservationsPage .rv-more-actions-list:not(#_){display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
 html body #reservationsPage .rv-more-actions-list .btn:not(#_){min-height:44px!important;height:44px!important;justify-content:center;text-align:center}
 /* modulo di nuova prenotazione e importazione */
 html body #bookingModal .bk-grid:not(#_){grid-template-columns:1fr!important}
 html body #bookingModal .bk-grid-when:not(#_){grid-template-columns:1fr 1fr!important}
 html body #bookingModal .modal-actions:not(#_){display:grid;grid-template-columns:1fr 1fr;gap:8px}
 html body #bookingModal .btn:not(#_){min-height:46px!important}
 html body #reservationsPage .imp-preview-actions:not(#_){display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
 html body #reservationsPage .imp-preview-actions .btn:not(#_){min-height:46px!important}
 html body #reservationsPage .imp-bulk:not(#_){display:grid;grid-template-columns:1fr;gap:8px}
 html body #reservationsPage .imp-bulk .btn:not(#_){min-height:44px!important;width:100%}
 html body #bookingModal :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select):not(#_):not(#__){height:44px!important;min-height:44px!important;font-size:16px!important}
 html body #bookingModal textarea:not(#_){font-size:16px!important}
 html body #bookingModal :is(.day-shortcut,.bk-chip):not(#_){min-height:40px!important}
}

/* Ieri, Oggi, Domani nascosti su telefono (1.268.8) */
@media(max-width:640px){html body #reservationsPage .date-navigation .day-shortcut:not(#_){display:none!important}}

/* Riga comandi e pannello a richiesta (1.268.47). Fuori dal telefono la lente non c'è e il pannello è trasparente. */
html body #reservationsPage .rv-lens:not(#_){display:none!important}
html body #reservationsPage .rv-tools:not(#_){display:contents}
.rv-n{font:inherit;color:inherit}
@media(max-width:640px){
 html body #reservationsPage .rv-bar:not(#_){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end}
 html body #reservationsPage .rv-lens:not(#_){display:inline-flex!important;position:relative;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px!important;height:44px!important;padding:0!important}
 html body #reservationsPage .rv-lens.has-filter:not(#_)::after{content:"";position:absolute;top:7px;right:7px;width:8px;height:8px;border-radius:50%;background:var(--azure)}
 html body #reservationsPage .rv-tools:not(#_){display:none}
 html body #reservationsPage .rv-tools.is-open:not(#_){display:block;grid-column:1/-1;width:100%}
 html body #reservationsPage .rv-tools .rv-search:not(#_){width:100%;margin-bottom:8px}
 html body #reservationsPage .rv-tools .type-filter:not(#_){display:flex;flex-wrap:nowrap;width:100%}
 html body #reservationsPage .rv-tools .type-filter>.btn:not(#_){flex:1 1 0;min-width:0;padding-left:4px!important;padding-right:4px!important;white-space:nowrap}
 html body #reservationsPage .rv-tools .type-filter .rv-n:not(#_){display:none}
}

/* Pagina vuota compatta su telefono (1.268.47) */
@media(max-width:640px){html body #reservationsPage #allBookings .rv-empty:not(#_):not(#__){padding:20px 12px}}

/* Allineamento allo stile generale (scheda senza padding proprio, azioni in intestazione a icone, lente a tratto) */
@media(max-width:640px){
 html body #reservationsPage section.rnb-card.rv:not(#_):not(#__){padding:0!important}
 html body #reservationsPage .rv>header.rnb-card-head:not(#_):not(#__){flex-wrap:nowrap}
 html body #reservationsPage .rv-bar-actions:not(#_):not(#__){display:grid!important;grid-template-columns:repeat(2,44px);gap:var(--gap-ctl);width:auto;margin-left:auto;flex-wrap:nowrap}
 html body #reservationsPage .rv-bar-actions .btn:not(#_):not(#__){width:44px;min-width:44px;height:44px!important;min-height:44px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}
 html body #reservationsPage .rv-bar:not(#_):not(#__){border-top:0;border-bottom:0;column-gap:var(--gap-ctl);padding-top:var(--gap-row)}
 html body #reservationsPage .rv-body:not(#_):not(#__){border-top:0}
 html body #reservationsPage .rv-lens .rnb-ic:not(#_):not(#__){display:block;width:18px;height:18px}
 html body #reservationsPage .rv-empty b:not(#_):not(#__){font-weight:400;color:var(--muted)}
}

/* 1.305.3: titolo e azioni della scheda Prenotazioni sulla stessa riga */
@media(max-width:640px){html body #reservationsPage header.rnb-card-head:not(#_){flex-direction:row!important;align-items:center!important;justify-content:space-between!important}
 html body #reservationsPage header.rnb-card-head>.rnb-card-actions:not(#_){width:auto!important;flex:0 0 auto!important;margin:0 0 0 auto!important}
 html body #reservationsPage header.rnb-card-head .rnb-card-title:not(#_){margin:0!important}}

/* == css/ui/60-mobile-comms.css == */
/* Telefono (≤640 px): pagina comms. Regole in @media(max-width:640px), selettori con l'id della pagina e :not(#_). */
@media(max-width:640px){
 /* elenco e dettaglio in colonna, senza altezze fisse */
 html body #commsPage .cm-wrap:not(#_){grid-template-columns:minmax(0,1fr)!important}
 html body #commsPage .cm-list:not(#_){max-height:none!important;overflow:visible!important;padding-right:0!important;gap:8px!important}
 /* righe dei messaggi: bersaglio da toccare, testo leggibile */
 html body #commsPage .cm-row:not(#_){min-height:56px!important;padding:10px 12px!important;border-radius:0!important}
 html body #commsPage .cm-st:not(#_){font-size:12px!important}
 html body #commsPage .cm-row-sub:not(#_){font-size:12px!important}
 html body #commsPage .cm-row-sub.muted:not(#_){color:var(--muted)!important}
 /* testata della richiesta: stato e menu «Altro» in griglia */
 html body #commsPage .cm-card>.rnb-card-head .rnb-card-actions:not(#_){display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;width:100%!important;justify-content:stretch}
 html body #commsPage .cm-card>.rnb-card-head .rnb-card-actions>*:not(#_){min-width:0!important}
 /* pulsanti: 44 px (piccoli 40) anche con le regole proprie della pagina */
 html body #commsPage .btn:not(#_){min-height:44px!important}
 html body #commsPage .btn.small:not(#_){min-height:40px!important}
 /* azioni: griglia a 2 colonne, la principale a tutta larghezza e per ultima */
 html body #commsPage .cm-actions:not(#_){display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
 html body #commsPage .cm-actions .btn:not(#_){width:100%!important;min-height:44px!important}
 html body #commsPage .cm-actions .btn.primary:not(#_){grid-column:1/-1;order:9;min-height:46px!important}
 html body #commsPage .cm-reply-kind:not(#_){display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
 html body #commsPage .cm-reply-kind .btn:not(#_){width:100%!important}
 html body #commsPage .cm-alts:not(#_){display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
 html body #commsPage .cm-alts .btn:not(#_){width:100%!important}
 html body #commsPage .cm-alts>:not(.btn):not(#_){grid-column:1/-1}
 html body #commsPage .cm-mail .btn:not(#_){justify-self:stretch!important;width:100%!important}
 /* dati estratti: 2 colonne come sul modello, campi 44 px */
 html body #commsPage .cm-grid:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html body #commsPage .cm-field input:not(#_),html body #commsPage .cm-field select:not(#_){width:100%!important}
 /* testi lunghi: niente sforamenti */
 html body #commsPage .cm-body:not(#_){max-height:none!important;background:var(--box-bg-2,var(--box-bg))!important;border-color:var(--box-line)!important;overflow-wrap:anywhere}
 html body #commsPage .cm-reply:not(#_){min-height:180px!important;font-size:16px!important;background:var(--box-bg)!important;border-color:var(--box-line)!important;color:var(--ink)!important}
 /* allegati: una colonna, riga da toccare */
 html body #commsPage .cm-att:not(#_){grid-template-columns:minmax(0,1fr)!important}
 html body #commsPage .cm-att-row:not(#_){min-height:48px;background:var(--box-bg)!important;border-color:var(--box-line)!important;align-items:center}
 html body #commsPage .cm-miss-note:not(#_){font-size:12px!important}
 /* riquadri con colori da token */
 html body #commsPage .cm-result:not(#_),html body #commsPage .cm-set:not(#_){background:var(--box-bg)!important;border-color:var(--box-line)!important}
 html body #commsPage .cm-mail:not(#_){border-radius:0!important}
 html body #commsPage .cm-other summary:not(#_),html body #commsPage .cm-set summary:not(#_){min-height:44px;display:flex;align-items:center}
}

/* Preventivi (ramo di Comunicazione), telefono */
@media(max-width:640px){
 html body #commsPage #quotesPane .qt-grid:not(#_):not(#__){grid-template-columns:minmax(0,1fr)!important}
 html body #commsPage #quotesPane .qt-grid .qt-wide:not(#_):not(#__){grid-column:auto!important}
 html body #commsPage #quotesPane .qt-sup:not(#_){grid-template-columns:28px minmax(0,1fr) 72px!important}
 html body #commsPage #quotesPane .qt-sup .qt-amt:not(#_){grid-column:2/-1;text-align:left}
 html body #commsPage #quotesPane .rnb-card-head:not(#_){flex-wrap:wrap}
 html body #commsPage #quotesPane .rnb-card-actions:not(#_){width:100%;display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px}
 html body #commsPage #quotesPane .rnb-card-head>.rnb-card-actions>.btn.primary:not(#_){width:100%}
 html body #commsPage #quotesPane .cm-actions .btn:not(#_){display:inline-flex;justify-content:center;align-items:center}
 html body #commsPage #quotesPane .type-filter:not(#_){width:100%}
 html body #commsPage #quotesPane .type-filter .btn:not(#_){flex:1 1 0;min-width:0;padding-left:2px!important;padding-right:2px!important;font-size:12px!important}
 html body #commsPage #quotesPane .qt-table td.td-act>*:not(#_){margin-right:4px}
}

/* 1.305.2: piede di Nuovo messaggio su una riga: Annulla | Carica | Leggi */
@media(max-width:640px){html body #commsPage .cm-card>.rnb-card-foot:not(#_){display:grid!important;grid-template-columns:1fr 1fr;gap:var(--gap-ctl)}
 html body #commsPage .cm-card>.rnb-card-foot>.rnb-card-actions:not(#_){display:contents}
 html body #commsPage .cm-card>.rnb-card-foot>.rnb-card-actions>.btn.primary:not(#_){grid-column:1/-1}}

/* Preventivi su telefono: richiesta in griglia compatta, intestazione su due righe, quantità dei supplementi */
@media(max-width:640px){
 html body #commsPage #quotesPane .qt-grid:not(#_):not(#__){grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:var(--gap-row) var(--gap-ctl)!important}
 html body #commsPage #quotesPane .qt-grid>.set-field:not(#_):not(#__){grid-column:span 3!important;min-width:0}
 html body #commsPage #quotesPane .qt-grid>.qt-f-name:not(#_):not(#__){grid-column:1/-1!important}
 html body #commsPage #quotesPane .qt-grid>.qt-f-time:not(#_):not(#__),html body #commsPage #quotesPane .qt-grid>.qt-f-guests:not(#_):not(#__),html body #commsPage #quotesPane .qt-grid>.qt-f-lang:not(#_):not(#__){grid-column:span 2!important}
 html body #commsPage #quotesPane .qt-grid input:not(#_),html body #commsPage #quotesPane .qt-grid select:not(#_){width:100%!important;max-width:none!important;min-width:0;padding-left:8px;padding-right:8px;font-size:14px!important}
 html body #commsPage #quotesPane .rnb-card-head.qt-head:not(#_){display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center}
 html body #commsPage #quotesPane .qt-head .qt-back:not(#_){width:44px;min-width:44px;height:44px;padding:0}
 html body #commsPage #quotesPane .qt-head .rnb-card-actions:not(#_){grid-column:1/-1;margin-left:0;display:block!important}
 html body #commsPage #quotesPane .qt-sup:not(#_){grid-template-columns:28px minmax(0,1fr) 104px!important}
}

/* == css/ui/60-mobile-finance.css == */
/* Telefono (≤640 px): pagine Fatturato, Food cost e Analisi. Regole in @media(max-width:640px), selettori con l'id della pagina e :not(#_). */
@media(max-width:640px){
 /* ===== Fatturato: schede, data, obiettivi ===== */
 html body #revenuePage :is(.rv-tabs,.page-sec-bar,.type-filter.rv-mode,.date-navigation):not(#_){min-width:0}
 html body #revenuePage .rv-tabs>.btn:not(#_),html body #revenuePage .settings-tabs>.btn:not(#_),html body #revenuePage .type-filter.rv-mode>*:not(#_){min-height:44px!important;height:auto!important}
 html body #revenuePage .date-navigation:not(#_):not(#__):not(#___):not(#____){display:grid!important;grid-template-columns:44px minmax(0,1fr) minmax(0,1fr) 44px!important;gap:var(--gap-ctl,8px)!important;width:100%!important;max-width:none!important;align-items:stretch}
 html body #revenuePage .date-navigation>input:not(#_):not(#__):not(#___){grid-column:1/-1!important;grid-row:1;order:-1;width:100%!important;min-width:0!important;max-width:none!important}
 html body #revenuePage .date-navigation>button:not(#_):not(#__){grid-row:2;min-height:44px!important;height:44px!important;min-width:0!important;width:100%!important;padding:0 4px!important;font-size:14px!important}
 html body #revenuePage .revenue-inputs:not(#_){grid-template-columns:minmax(0,1fr)!important}
 html body #revenuePage .rv-month-row:not(#_){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 html body #revenuePage .rv-month-row>.btn:not(#_){width:100%!important;min-height:46px!important}
 html body #revenuePage .rv-period-tools:not(#_){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body #revenuePage .rv-period-tools>*:not(#_){min-height:44px!important;width:100%!important}
 html body #revenuePage .rv-mix-scope:not(#_){display:flex!important;flex-wrap:wrap!important;gap:6px!important}
 html body #revenuePage .rv-mix-scope>.btn:not(#_){flex:1 1 40%!important;min-height:40px!important}
 html body #revenuePage input[type=range]:not(#_){height:28px!important;min-height:28px!important;padding:0!important}
 html body #revenuePage .revenue-sales .actions:not(#_){display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important}
 html body #revenuePage .revenue-sales .actions .btn:not(#_){width:100%!important;min-height:46px!important;display:flex;align-items:center;justify-content:center}
 html body #revenuePage :is(.panel,.revenue-actuals,.revenue-breakdown,.revenue-recommendations)>*:not(#_){min-width:0;overflow-wrap:anywhere}


 /* ===== Food cost: filtri, comandi, riquadri ===== */
 html body #costsPage :is(.btn.small,.inv-tab):not(table *):not(#_){min-height:40px!important}
 html body #costsPage :is(.actions,.cat-cards,.cost-filters,.type-filter,.inv-tabs):not(#_){min-width:0;max-width:100%}
 html body #costsPage :is(.panel,#revenueCosts)>*:not(table):not(#_){min-width:0;overflow-wrap:anywhere}
 html body #costsPage button.doc-remove:not(#_){min-height:40px!important;min-width:44px!important}
 html body #costsPage .top>.actions:not(:has(input)):not(#_){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
 html body #costsPage .top>.actions:not(:has(input))>*:not(#_){width:100%!important;min-height:42px!important}

 /* ===== Analisi ===== */
 html body #analysisPage :is(.inv-tab,.an-rev-filter>.btn,.an-rev-filter button,.settings-tabs>.btn,.page-sec-bar>*):not(#_){min-height:40px!important;height:auto!important}
 html body #analysisPage .an-rev-filter:not(#_){display:flex!important;flex-wrap:wrap!important;gap:6px!important}
 html body #analysisPage .an-rev-filter>*:not(#_){flex:1 1 40%!important}
 
 html body #analysisPage .an-row-name>span:not(#_){max-width:100%;overflow-wrap:anywhere;white-space:normal}
 html body #analysisPage .an-row-name>.an-edit-name:not(#_){min-height:32px!important;padding:6px 4px!important}
 html body #analysisPage .an-row-val .btn:not(#_),html body #analysisPage .an-more:not(#_){min-height:40px!important}
 html body #analysisPage .an-pie-legend button:not(#_){min-height:40px!important}
 html body #analysisPage .an-sim-controls:not(#_){display:grid!important;gap:8px!important;width:100%!important}
 html body #analysisPage .an-sim-controls>.btn:not(#_){width:100%!important;min-height:44px!important}
 html body #analysisPage .an-sim-controls>.btn.primary:not(#_){grid-column:1/-1;min-height:46px!important}
 html body #analysisPage .an-rep-check input[type=checkbox]:not(#_){width:22px!important;height:22px!important}
 html body #analysisPage .an-stats:not(#_){flex-wrap:wrap!important;min-width:0}
 html body #analysisPage .an-grid:not(#_){grid-template-columns:minmax(0,1fr)!important}

 /* schede di pagina e comandi sciolti, su tutte e tre le pagine */
 html body :is(#revenuePage,#costsPage,#analysisPage) :is(.page-sections,.settings-tabs)>.btn:not(#_){min-height:44px!important;height:auto!important}
 html body :is(#revenuePage,#costsPage,#analysisPage) label.btn:not(#_){min-height:44px!important;display:flex;align-items:center;justify-content:center}
 html body :is(#revenuePage,#costsPage,#analysisPage) button.td-link:not(#_){min-height:40px!important}
 html body main :is(#revenuePage,#costsPage,#analysisPage) :is(.rv-tabs,.page-sections,.settings-tabs)>.btn:not(#_):not(#__):not(#___):not(#____){min-height:44px!important;height:auto!important}
 html body main :is(#revenuePage,#costsPage,#analysisPage) label.btn:not(#_):not(#__):not(#___){min-height:46px!important;height:auto!important}
 html body #costsPage .top>.actions:has(input):not(#_){display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important}
 html body #costsPage .top>.actions:has(input) input:not(#_):not(#__){width:90px!important;flex:0 0 90px!important;text-align:center!important}

 /* Food cost: misure telefono (1.268.81): due riquadri per riga, campi 44 px/16 px con 88 px di larghezza (6 cifre) */
 html body #costsPage .cost-stats>.stat:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){min-width:132px!important;padding:12px}
 html body #costsPage .cost-stats .stat strong:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){font-size:20px!important}
 html body #costsPage :is(.cost-vat>input):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){width:88px!important}

 html body #costsPage .cost-chips .cost-sort:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){width:100%;margin-left:0}
}

/* Costi fissi (Conto economico) su telefono: ogni costo è un blocco compatto, nome e ✕ sulla prima riga, poi Importo · Tipo · Periodo affiancati; etichette di modulo (12/600 grigio, senza maiuscolo) - applica le regole generali dei campi e usa meglio lo spazio (25 nov 2026) */
@media(max-width:640px){
 html body #pnlPage .pnl-fixed .set-list>.set-row:not(#_):not(#__):not(#___):not(#____){display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr)!important;gap:var(--gap-label,4px) var(--gap-ctl,8px)!important;align-items:end;padding:var(--gap-row,12px) 0}
 html body #pnlPage .pnl-fixed .set-row>:first-child:not(#_):not(#__):not(#___):not(#____){grid-row:1;grid-column:1/3!important}
 html body #pnlPage .pnl-fixed .set-row>:last-child:not(#_):not(#__):not(#___):not(#____){grid-row:1;grid-column:3!important;justify-self:end}
 html body #pnlPage .pnl-fixed .set-row>.set-field:nth-child(3):not(#_):not(#__):not(#___):not(#____){order:1;grid-column:auto!important}
 html body #pnlPage .pnl-fixed .set-row>.set-field:nth-child(2):not(#_):not(#__):not(#___):not(#____){order:2;grid-column:auto!important}
 html body #pnlPage .pnl-fixed .set-row>.set-field:nth-child(4):not(#_):not(#__):not(#___):not(#____){order:3;grid-column:auto!important}
 html body #pnlPage .pnl-fixed .set-row>:first-child.set-field:not(#_):not(#__):not(#___):not(#____){order:0;grid-column:1/3!important}
 html body #pnlPage .pnl-fixed .set-row>.set-row-text:not(#_):not(#__):not(#___):not(#____){min-height:0;font-size:14px;font-weight:600}
 html body #pnlPage .pnl-fixed .set-row .set-field>span:first-child:not(#_):not(#__):not(#___):not(#____){font-size:12px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--muted)}
 html body #pnlPage .pnl-fixed .set-row .set-field :is(input,select):not(#_):not(#__):not(#___){padding:0 8px}
}

/* == css/ui/60-mobile-stock.css == */
/* Telefono (≤640 px): Ordini, Listino e ricette, Documenti, Importa. Regole in @media(max-width:640px), selettori con l'id della pagina e :not(#_):not(#__):not(#___). */
@media(max-width:640px){
 html body #ordersPage table.inv-table td input[type=checkbox]:not(#_):not(#__):not(#___){width:24px;height:24px}
 html body #ordersPage table.inv-table td .inv-num:not(#_):not(#__):not(#___){width:84px;max-width:100%}
 /* suggerimenti «+ articolo» per il minimo d'ordine */
 html body #ordersPage .inv-suggest:not(#_):not(#__):not(#___){display:grid;gap:8px}
 html body #ordersPage .inv-suggest>.muted:not(#_):not(#__):not(#___){grid-column:1/-1}
 html body #ordersPage .inv-suggest .btn:not(#_):not(#__):not(#___){width:100%!important;height:auto!important;text-align:left;white-space:normal;justify-content:space-between!important;gap:10px;padding:8px 12px!important;line-height:1.3!important}
 html body #ordersPage .inv-suggest .btn>small:not(#_):not(#__):not(#___){white-space:nowrap;flex:none}
 html body #ordersPage .inv-suggest:not(#_):not(#__):not(#___):not(#____){grid-template-columns:minmax(0,1fr)}
 /* schede Da ordinare / Consegne: a griglia */
 html body #ordersPage .page-sections:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 /* Consegne in arrivo: testata e righe in colonna */
 html body #ordersPage .inv-group-head:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:minmax(0,1fr);gap:6px}
 html body #ordersPage .inv-group-head>.btn:not(#_):not(#__):not(#___){width:100%!important;min-height:44px!important}
 html body #ordersPage .inv-lines>li:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:var(--gap-label,4px) var(--gap-ctl,8px);align-items:center}
 html body #ordersPage .inv-lines>li>label:not(#_):not(#__):not(#___){grid-column:1/-1;overflow-wrap:anywhere}
 html body #ordersPage .inv-lines>li .inv-num:not(#_):not(#__):not(#___){width:84px}
 html body #ordersPage .rnb-del-actions:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 html body #ordersPage .rnb-del-actions>.btn:not(#_):not(#__):not(#___),html body #ordersPage .rnb-del-actions .inv-docs:not(#_):not(#__):not(#___),html body #ordersPage .rnb-del-actions .inv-docs .btn:not(#_):not(#__):not(#___){width:100%!important;min-height:44px!important;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
 html body #ordersPage .rnb-del-actions .inv-docs:not(#_):not(#__):not(#___){grid-column:1/-1;order:3}
 html body #ordersPage .rnb-del-actions>.btn:last-of-type:not(#_):not(#__):not(#___){order:2}
 /* ---- Listino: schede categoria e barra strumenti ---- */
 html body #pricelistPage .inv-tabs:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 html body #pricelistPage .inv-tabs>.inv-tab:not(#_):not(#__):not(#___){min-height:40px!important;white-space:normal;text-align:center}
 html body #pricelistPage :is(.inv-toolbar,.price-bar,.inv-filters,.actions):not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 html body #pricelistPage :is(.inv-toolbar,.price-bar,.inv-filters,.actions)>:is(input[type=search],input[type=text]):not(#_):not(#__):not(#___){grid-column:1/-1}
 html body #pricelistPage :is(.inv-toolbar,.price-bar,.inv-filters,.actions)>.btn:not(#_):not(#__):not(#___){width:100%!important;min-height:44px!important}
 /* ---- Documenti e Importa ---- */
 html body :is(#documentsPage,#documentsPage) :is(.actions,.row,.doc-actions,.import-actions):not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 html body :is(#documentsPage,#documentsPage) .btn.primary:not(#_):not(#__):not(#___){grid-column:1/-1;min-height:46px!important}
 html body :is(#documentsPage,#documentsPage) .btn:not(.primary):not(#_):not(#__):not(#___){min-height:44px!important;width:100%;box-sizing:border-box}
 html body :is(#documentsPage,#documentsPage) .btn:not(#_):not(#__):not(#___){white-space:normal;height:auto!important}
 html body :is(#documentsPage,#documentsPage) .doc-remove:not(#_):not(#__):not(#___){min-width:40px;min-height:40px!important}
 /* schede di sezione (Da ordinare / Consegne in arrivo) e pulsanti piccoli fuori dalle card */
 html body #ordersPage .page-sections>.btn:not(#_):not(#__):not(#___){min-height:44px!important;height:auto!important}
 html body #ordersPage .btn.small:not(#_):not(#__):not(#___){min-height:40px!important;height:auto!important}
 html body #pricelistPage .btn.small:not(#_):not(#__):not(#___){min-height:40px!important;height:auto!important}
 html body #ordersPage table.inv-table td input.inv-num:not(#_):not(#__):not(#___){height:40px!important;min-height:40px!important;font-size:16px!important}
 html body #pricelistPage button.price-inv-text-link:not(#_):not(#__):not(#___){display:inline-flex;align-items:center;min-height:40px!important;padding:0 4px;text-align:left}
 /* righe di modifica delle liste (Documenti): campo + pulsanti a lato, mai oltre la pagina */
 html body #settingsPage .ck-edit:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
 html body #settingsPage .ck-edit-act:not(#_):not(#__):not(#___){display:flex!important;gap:6px}
 html body #settingsPage .ck-edit-act>.btn:not(#_):not(#__):not(#___){width:44px!important;min-width:44px;padding:0!important}
}
@media(max-width:640px){
 /* Checklist (Dati › Documenti): voce = campo a tutta larghezza, sotto la riga «giorno a sinistra, ↑ ↓ ✕ a destra»; altezza che segue le righe, le oltre 10 restano dietro «Mostra tutte» */
 html body #docsChecklists .ck-ed-list:not(#_):not(#__):not(#___){height:auto!important;overflow:visible!important;gap:var(--gap-row,12px)!important}
 html body #docsChecklists .ck-ed:not(.is-all) .ck-ed-list>li.ck-edit:nth-child(n+11):not(#_):not(#__):not(#___):not(#____){display:none!important}
 html body #docsChecklists .ck-ed-list>li.ck-edit:not(#_):not(#__):not(#___):not(#____){display:flex!important;flex-wrap:wrap;align-items:center;gap:var(--gap-ctl,8px)}
 html body #docsChecklists .ck-ed-list>li.ck-edit>input:not(#_):not(#__):not(#___){flex:1 1 100%;width:100%;min-width:0}
 html body #docsChecklists .ck-ed-list>li.ck-edit>.ck-day:not(#_):not(#__):not(#___){flex:0 0 auto;margin-right:auto}
 html body #docsChecklists .ck-ed-list>li.ck-edit>.ck-edit-act:not(#_):not(#__):not(#___){display:flex!important;gap:var(--gap-ctl,8px);margin-left:auto}
 html body #docsChecklists .ck-ed-list>li.ck-edit>.ck-edit-act>.btn:not(#_):not(#__):not(#___){min-height:44px!important;height:44px!important}
 html body :is(#inventoryPage,#invItemsPanel) .inv-filters select:not(#_){height:44px!important;min-height:44px!important}
 html body :is(#inventoryPage,#invItemsPanel) textarea:not(#_){font-size:16px!important}
}

/* Listino › Allergeni (1.282): barra filtri a capo, chip da 40 px, tabella che scorre nel proprio contenitore */
@media(max-width:640px){
 html body #pricelistPage .alg-card .inv-bar:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:minmax(0,1fr)}
 html body #pricelistPage .alg-card .type-filter:not(#_):not(#__):not(#___){flex-wrap:wrap;height:auto!important}
 html body #pricelistPage .alg-card .type-filter>button:not(#_):not(#__):not(#___){flex:1 1 auto}
 html body #pricelistPage .alg-card .inv-tools:not(#_):not(#__):not(#___),html body #pricelistPage .alg-card .inv-tools .search-field:not(#_):not(#__):not(#___),html body #pricelistPage .alg-card .inv-tools select:not(#_):not(#__):not(#___),html body #pricelistPage .alg-card .inv-tools input:not(#_):not(#__):not(#___){width:100%;max-width:none}
 html body .alg-chip:not(#_):not(#__):not(#___){height:40px!important}
}

/* Telefono: nella tabella degli articoli la giacenza si scrive nel campo, senza i pulsanti − e + */
@media(max-width:640px){
 html body #invItems td.inv-stock .inv-step>button:not(#_):not(#__):not(#___):not(#____){display:none!important}
}

/* Telefono, scheda degli articoli (1.299.0, scelta dell'utente): tre righe compatte al posto di schede e pulsanti impilati.
   1) Categoria e Mostra affiancate (Regione, quando c'è, a tutta larghezza)  2) ricerca  3) cinque pulsanti con sola icona, il principale a destra. */
@media(max-width:640px){
 html body #invItems .inv-bar>.inv-tabs:not(#_):not(#__):not(#___):not(#____){display:none!important}
 html body #invItems .inv-card-items .inv-tools>.inv-filters:not(#_):not(#__):not(#___):not(#____){order:-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--gap-ctl,8px)!important}
 html body #invItems .inv-card-items .inv-filters>select:not(#_):not(#__):not(#___):not(#____){display:block;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important}
 html body #invItems .inv-card-items .inv-filters>select:nth-of-type(3):not(#_):not(#__):not(#___):not(#____){grid-column:1/-1}
 html body #invItems .inv-card-items .inv-actions:not(#_):not(#__):not(#___):not(#____){display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:var(--gap-ctl,8px)!important;margin:0!important}
 html body #invItems .inv-card-items .inv-actions>:is(button,label,details):not(#_):not(#__):not(#___):not(#____){grid-column:auto!important;display:flex!important;align-items:center;justify-content:center;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important}
 html body #invItems .inv-card-items .inv-actions>.inv-dl>summary:not(#_):not(#__):not(#___):not(#____){display:flex;align-items:center;justify-content:center;gap:4px;width:100%;height:44px!important;min-height:44px!important;padding:0!important}
 /* Dettagli: la casella diventa un pulsante con icona; attivo = fondo tenue e barra petrolio, come le voci scelte */
 html body #invItems .inv-card-items .inv-actions>.inv-toggle:not(#_):not(#__):not(#___):not(#____){position:relative;cursor:pointer;color:var(--text);border:1px solid var(--ui-line);background:var(--panel)}
 html body #invItems .inv-card-items .inv-actions>.inv-toggle>input:not(#_):not(#__):not(#___):not(#____){position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;margin:0;opacity:0;cursor:pointer}
 html body #invItems .inv-card-items .inv-actions>.inv-toggle:has(input:checked):not(#_):not(#__):not(#___):not(#____){background:var(--ui-tint);box-shadow:inset 0 -3px 0 var(--azure)}
 html body #invItems .inv-card-items .inv-actions>.inv-toggle:has(input:focus-visible):not(#_):not(#__):not(#___):not(#____){outline:2px solid var(--ui-azure);outline-offset:2px}
}

/* Telefono, tabella degli articoli (1.299.0, scelta dell'utente): colonna «Articolo» stretta (170 px) con il nome che va a capo,
   così accanto si vedono subito stato e ubicazione. Le altre colonne sono larghe quanto il contenuto (niente percentuali). */
@media(max-width:640px){
 html body #invItems table.inv-main:not(#_):not(#__):not(#___):not(#____):not(#_____){width:max-content!important;min-width:100%!important}
 html body #invItems table.inv-main thead th:not(#_):not(#__):not(#___):not(#____):not(#_____){width:auto!important}
 html body #invItems table.inv-main tr:not(.inv-group-row)>:is(th,td):first-child:not(#_):not(#__):not(#___):not(#____):not(#_____){width:170px!important;min-width:170px!important;max-width:170px!important}
 html body #invItems table.inv-main td.inv-name .inv-name-text:not(#_):not(#__):not(#___):not(#____){white-space:normal!important;overflow-wrap:anywhere}
}
/* la colonna Giacenza resta di 84 px come prima (il campo, senza percentuali, prenderebbe la larghezza predefinita del browser) */
@media(max-width:640px){
 html body #invItems table.inv-main tr:not(.inv-group-row)>:is(th,td):nth-child(4):not(#_):not(#__):not(#___):not(#____):not(#_____){width:84px!important;min-width:84px!important;max-width:84px!important}
}
/* Download su telefono: icona al centro del pulsante, freccetta della tendina a 12 px dal bordo destro (prima toccava quasi il bordo) */
@media(max-width:640px){
 html body #invItems .inv-card-items .inv-actions>.inv-dl>summary:not(#_):not(#__):not(#___):not(#____):not(#_____){position:relative}
 html body #invItems .inv-card-items .inv-actions>.inv-dl>summary:not(#_):not(#__):not(#___):not(#____):not(#_____)::after{position:absolute;right:12px;top:50%;margin-top:-3px}
}

/* Telefono, Inventario › Giacenze (1.299.1, scelta dell'utente): le ubicazioni stanno in colonna, una sotto l'altra (niente carosello
   orizzontale né frecce), e la scheda «Consumi dalla cassa» non si vede (il venduto si carica da Documenti › Importa). */
@media(max-width:640px){
 html body #inventoryPage #invMain .inv-places-wrap:not(#_):not(#__):not(#___):not(#____){display:block!important}
 html body #inventoryPage #invMain .inv-places:not(#_):not(#__):not(#___):not(#____){display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:var(--gap-ctl,8px)!important;overflow:visible!important;scroll-snap-type:none!important;padding:0!important}
 html body #inventoryPage #invMain .inv-places>*:not(#_):not(#__):not(#___):not(#____){flex:0 0 auto!important;width:100%!important}
 html body #inventoryPage #invMain .inv-places-nav:not(#_):not(#__):not(#___):not(#____){display:none!important}
 html body #inventoryPage #invUsagePanel:not(#_):not(#__):not(#___):not(#____){display:none!important}
}

/* Ordini › Da ordinare su telefono (1.301.0, scelta dell utente; eccezione a "le tabelle restano tabelle"): intestazione con fornitore e totale, righe a griglia fissa
   (spunta, articolo, colli), piede con riepilogo e tre azioni a sola icona. Da 641 px gli elementi aggiunti non si vedono. */
@media(min-width:641px){
 html body #ordersPage .ord-card :is(.ord-tot,.ord-meta,.ord-foot-acts):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:none!important}
}
@media(max-width:640px){
 html body #ordersPage .ord-card .rnb-card-head:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px var(--gap-ctl,8px)}
 html body #ordersPage .ord-card .rnb-card-head>div:first-child:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:contents!important}
 html body #ordersPage .ord-card .rnb-card-head .rnb-card-title:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){grid-column:1;grid-row:1;min-width:0}
 html body #ordersPage .ord-card .rnb-card-head .ord-tot:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){grid-column:2;grid-row:1;font-size:16px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap}
 html body #ordersPage .ord-card .rnb-card-head .rnb-card-sub:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){grid-column:1/-1;grid-row:2;display:block!important}
 html body #ordersPage .ord-card .rnb-card-head .rnb-card-actions:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:none!important}
 html body #ordersPage .ord-card .rnb-card-sub .ord-cs:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________),html body #ordersPage .ord-card .rnb-card-sub .ord-sep:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________),html body #ordersPage .ord-card .rnb-card-sub .ord-late:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:none!important}
 html body #ordersPage .ord-card .rnb-card-sub :is(.ord-d1,.ord-d2):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:block;font-size:12px;color:var(--muted)}
 html body #ordersPage .ord-card .inv-table-wrap:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){padding:0!important;overflow:visible!important}
 html body #ordersPage .ord-card table.ord-table:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________),html body #ordersPage .ord-card table.ord-table tbody:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:block;width:100%;min-width:0}
 html body #ordersPage .ord-card table.ord-table thead:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:none!important}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:grid!important;grid-template-columns:44px minmax(0,1fr) 72px!important;column-gap:var(--gap-ctl,8px)!important;align-items:center!important;padding:8px var(--card-pad,20px)!important;border-top:var(--sep);background:transparent;box-shadow:none}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row:first-child:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){border-top:0}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:block;padding:0!important;border:0!important;background:transparent;min-width:0;text-align:left}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:nth-child(2):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________),html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________),html body #ordersPage .ord-card table.ord-table tbody tr.ord-row:not(.needs-pack)>td:nth-child(6):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:none!important}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td.ord-check:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){grid-column:1;grid-row:1/3;display:flex;align-items:center;justify-content:center;min-height:44px}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td.ord-check input:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){width:22px;height:22px;min-height:0;margin:0}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:first-child:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){grid-column:2;grid-row:1/3;display:flex;flex-direction:column;gap:2px;font-size:13px}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:first-child .ord-nm:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){order:1;font-size:13px;font-weight:500;color:var(--text)}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:first-child small.muted:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:none!important}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:first-child .ord-meta:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){order:2;display:block;font-size:12px;color:var(--muted)}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:first-child .ord-why:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){order:3;margin-top:0}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td.num:nth-child(5):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){grid-column:3;grid-row:1/3;display:flex;flex-direction:column;align-items:center;gap:2px}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td.num:nth-child(5) input:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){width:64px!important;min-width:0;height:44px;text-align:center}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td.num:nth-child(5) .ord-unit:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:none}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td.num:nth-child(5)::after{content:"colli";font-size:11px;color:var(--muted)}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td.ord-pack-ask:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){grid-column:1/-1;grid-row:3;display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap-ctl,8px);padding-top:8px!important}
 html body #ordersPage .ord-card table.ord-table tbody tr.ord-row.needs-pack>td:nth-child(5)::after{content:none}
 html body #ordersPage .ord-card .ord-foot:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap-ctl,8px)}
 html body #ordersPage .ord-card .ord-foot>b:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){margin-left:auto}
 html body #ordersPage .ord-card .ord-foot .ord-foot-acts:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){flex:1 0 100%;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:var(--gap-ctl,8px)}
 html body #ordersPage .ord-card .ord-foot .ord-foot-acts .btn:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){min-height:44px!important;height:44px!important;justify-content:center}
}
@media(max-width:640px){
html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:nth-child(5):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________){display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:2px!important;padding:0!important;min-width:0!important;overflow:visible!important;white-space:nowrap}
html body #ordersPage .ord-card table.ord-table tbody tr.ord-row>td:nth-child(5)>:not(input):not(#_){font-size:12px;color:var(--muted)}
}

@media(max-width:640px){
 html body #inventoryPage #invBreakPanel .brk-table :is(th,td):nth-child(1):not(#_):not(#__){width:36%}
 html body #inventoryPage #invBreakPanel .brk-table :is(th,td):nth-child(2):not(#_):not(#__){width:46%;padding-inline:4px}
 html body #inventoryPage #invBreakPanel .brk-table :is(th,td):nth-child(3):not(#_):not(#__){width:18%;padding-inline:6px}
 html body #inventoryPage #invBreakPanel .brk-table .cnt-step:not(#_):not(#__){gap:4px}
 html body #inventoryPage #invBreakPanel .brk-table .cnt-step .btn:not(#_):not(#__){width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important}
 html body #inventoryPage #invBreakPanel .brk-table .cnt-step input.inv-num:not(#_):not(#__){width:44px!important;min-width:0!important;height:44px!important;padding:0 2px!important}
 html body #inventoryPage #invBreakPanel .brk-table .inv-chip:not(#_):not(#__){padding-inline:4px;white-space:normal;text-align:right}
}

/* 1.307.0: tabella delle rotture dentro la scheda su telefono */
@media(max-width:640px){html body #inventoryPage #invBreakPanel table.brk-table:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){table-layout:fixed!important;width:100%!important;min-width:0!important}
 html body #inventoryPage #invBreakPanel table.brk-table th:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){min-width:0!important}}
@media(max-width:640px){html body #inventoryPage #invBreakPanel table.brk-table th:nth-child(1):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:auto!important}
 html body #inventoryPage #invBreakPanel table.brk-table th:nth-child(2):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:144px!important}
 html body #inventoryPage #invBreakPanel table.brk-table th:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:60px!important}
 html body #inventoryPage #invBreakPanel table.brk-table td.num:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){padding-left:4px!important;padding-right:6px!important}}
@media(max-width:640px){html body #inventoryPage #invBreakPanel table.brk-table th:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){padding-left:2px!important;padding-right:6px!important;white-space:nowrap!important;overflow-wrap:normal!important}}

/* == css/ui/60-mobile-staff.css == */
/* Telefono (≤640 px): pagina staff. Regole in @media(max-width:640px), selettori con l'id della pagina e :not(#_). */
@media(max-width:640px){
 /* barra degli strumenti del planning: azione principale in alto a tutta larghezza, settimana precedente/corrente/successiva, poi le azioni secondarie a 2 colonne */
 html body #staffPage .rnb-card-actions:not(#_){display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:8px 0 0!important}
 html body #staffPage .rnb-card-actions>.btn:not(#_){grid-column:span 3!important;width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;margin:0!important;padding:8px 10px!important;white-space:normal!important;line-height:1.2!important;justify-content:center!important;text-align:center!important}
 html body #staffPage .rnb-card-actions>.btn.primary:not(#_){grid-column:1/-1!important;order:-1!important;min-height:46px!important}
 html body #staffPage .rnb-card-actions>.btn:nth-child(1):not(#_),html body #staffPage .rnb-card-actions>.btn:nth-child(3):not(#_){grid-column:span 1!important}
 html body #staffPage .rnb-card-actions>.btn:nth-child(2):not(#_){grid-column:span 4!important}
 /* riquadri dei numeri e note */
 html body #staffPage .page-sections:not(#_){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body #staffPage .page-sections>.btn:not(#_){min-height:44px!important;height:auto!important;white-space:normal!important;justify-content:center!important;text-align:center!important;padding:8px 10px!important}
 html body #staffPage .page-sections>.btn:last-child:nth-child(odd):not(#_){grid-column:1/-1!important}
 html body #staffPage .st-kpis:not(#_){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body #staffPage :is(.st-note,.st-warn,.st-tips):not(#_){font-size:13px!important}
 html body #staffPage .td-link:not(#_){min-height:40px!important;display:inline-flex!important;align-items:center!important;padding:0 6px!important}
 /* planning: la griglia scorre in orizzontale dentro il suo contenitore, senza barra visibile */
 html body #staffPage .st-scroll:not(#_){max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 html body #staffPage .st-plan:not(#_){font-size:12px!important}
 html body #staffPage .st-plan :is(small,.st-sv small):not(#_){font-size:12px!important}
 /* giornata: giorni a griglia, righe con nome e ore sopra la barra */
 html body :is(#staffPage,#todayPage) .st-tl-days:not(#_){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
 html body :is(#staffPage,#todayPage) .st-tl-days>.btn:not(#_){width:100%!important;min-width:0!important;min-height:40px!important;height:auto!important;padding:6px 4px!important}
 html body :is(#staffPage,#todayPage) .st-tl-head:not(#_){flex-direction:column!important;align-items:stretch!important}
 /* la riga dei giorni occupa tutta la larghezza della scheda: batte la griglia a 2 colonne delle azioni di #staffPage (riga 4) con una classe in più */
 html body #staffPage .st-tl-head>.rnb-card-actions:not(#_){display:block!important;width:100%!important}
 html body :is(#staffPage,#todayPage) .st-tl-row:not(#_){grid-template-columns:minmax(50%,1fr) minmax(0,auto)!important;gap:4px 10px!important;margin:10px 0!important;padding:10px!important;background:var(--box-bg)!important;border:1px solid var(--box-line)!important;border-radius:0!important;box-shadow:var(--box-sh)!important}
 html body :is(#staffPage,#todayPage) .st-tl-row .st-tl-lab:not(#_){grid-column:1!important;white-space:normal!important;font-size:14px!important}
 html body :is(#staffPage,#todayPage) .st-tl-row .st-tl-lab small:not(#_){font-size:12px!important;color:var(--muted)!important}
 html body :is(#staffPage,#todayPage) .st-tl-row .st-tl-val:not(#_){grid-column:2!important;grid-row:1!important;justify-content:flex-end!important;text-align:right!important;font-size:13px!important;max-width:100%;white-space:normal!important}
 html body :is(#staffPage,#todayPage) .st-tl-row .st-tl-val small:not(#_){font-size:12px!important;color:var(--muted)!important}
 html body :is(#staffPage,#todayPage) .st-tl-row .st-tl-track:not(#_){grid-column:1/-1!important;grid-row:2!important}
 html body :is(#staffPage,#todayPage) .st-tl-scale:not(#_){display:block!important;margin:6px 0 0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
 html body :is(#staffPage,#todayPage) .st-tl-scale .st-tl-lab:not(#_),html body :is(#staffPage,#todayPage) .st-tl-scale .st-tl-val:not(#_){display:none!important}
 html body :is(#staffPage,#todayPage) .st-tl-scale .st-tl-ticks:not(#_){display:block;width:100%}
 html body :is(#staffPage,#todayPage) .st-tl-curve:not(#_){display:block!important}
 html body :is(#staffPage,#todayPage) .st-tl-curve .st-tl-lab:not(#_){display:block!important;margin-bottom:4px}
 html body :is(#staffPage,#todayPage) .st-tl-curve .st-tl-val:not(#_){display:none!important}
 html body :is(#staffPage,#todayPage) .st-tl-tot:not(#_){justify-content:flex-start!important;flex-direction:column!important;gap:6px!important;font-size:13px!important}
 /* planning come la Timeline: colonna persone stretta e fissa, giorni più stretti, senza barra visibile */
 html body #staffPage:not(#_):not(#__){--st-label:104px;--st-day-w:72px;--st-closed-w:44px}
 html body #staffPage .st-card-plan>.st-scroll:not(#_):not(#__){max-height:72vh!important;scrollbar-width:none;-ms-overflow-style:none}
 html body #staffPage .st-card-plan>.st-scroll:not(#_):not(#__)::-webkit-scrollbar{display:none;width:0;height:0}
 html body #staffPage .st-plan th.st-name:not(#_):not(#__):not(#___){padding:6px 6px 6px 8px!important;font-size:12.5px;line-height:1.2}
 html body #staffPage .st-plan tr.st-group th:not(#_):not(#__):not(#___){padding-left:8px!important}
 html body #staffPage .st-plan td.st-c:not(#_):not(#__):not(#___){padding-left:2px;padding-right:2px}
 html body #staffPage .st-plan .st-cell:not(#_):not(#__):not(#___){min-height:40px!important;padding:0 2px!important;font-size:11.5px!important}
}

/* == css/ui/60-mobile-settings.css == */
/* Telefono (≤640 px): Impostazioni, Account e Amministrazione. Regole in @media(max-width:640px), selettori con l'id della pagina e :not(#_). */
@media(max-width:640px){
 /* intestazione: location a tutta larghezza, schede a capo (griglia a 2 colonne), Annulla e Salva affiancati */
 html body #settingsPage .settings-heading:not(#_){display:flex!important;flex-direction:column;align-items:stretch;gap:10px}
 html body #settingsPage .settings-location:not(#_){width:100%}
 html body #settingsPage .settings-heading .settings-tabs:not(#_){display:grid!important;grid-template-columns:1fr 1fr;gap:6px;padding:3px;box-sizing:border-box;height:auto!important}
 html body #settingsPage .settings-tabs>.btn:not(#_){height:auto!important;min-height:42px!important;width:100%;font-size:13px!important;white-space:normal;justify-content:center;text-align:center}
 /* testi minimi leggibili */
 html body #settingsPage :is(small,.fm-tools-label,.sup-hint,.st-chip):not(#_){font-size:12px!important}
 /* pulsanti e campi nei pannelli: a griglia a 2 colonne, non stretti in fila */
 html body #settingsPage :is(.panel,.rnb-card) .actions:not(.settings-tabs):not(.settings-actions):not(#_){display:grid!important;grid-template-columns:1fr 1fr;gap:8px;overflow:visible!important;width:100%}
 html body #settingsPage :is(.panel,.rnb-card) .actions:not(.settings-tabs):not(.settings-actions)>.btn:not(#_){width:100%;min-height:44px!important;height:auto!important;white-space:normal}
 html body #settingsPage :is(.panel,.rnb-card) .btn:not(.settings-tabs>.btn):not(.small):not(table *):not(#_){min-height:44px;height:auto}
 html body #settingsPage :is(.panel,.rnb-card) .btn.small:not(table *):not(#_){min-height:40px;height:auto}
 /* campi numerici stretti: abbastanza larghi da leggere il valore */
 html body #settingsPage input:is([type=number],[type=time],[type=text],[type=date]):not(table *):not(#_){min-width:64px}
 html body #settingsPage :is(input,select,textarea):not(table *):not([type=checkbox]):not([type=radio]):not(#_){max-width:100%;box-sizing:border-box}
 html body #settingsPage :is(.panel,.rnb-card,.field,.grid):not(#_){min-width:0}
 /* tabelle larghe: scorrono dentro il loro contenitore, la pagina no */
 html body #settingsPage table:not(#_){max-width:100%}
 html body #settingsPage :is(.st-scroll,.inv-table-wrap):not(#_){max-width:100%;overflow-x:auto}
 /* pulsanti piccoli (anche con !important altrove), selettori e caselle */
 html body #settingsPage .btn.small:not(table *):not(#_):not(#__){min-height:40px!important;height:auto!important}
 html body #settingsPage :is(.ax-mode,.swap-mode)>button:not(#_):not(#__){min-height:40px!important;height:auto!important}
 html body #settingsPage input:is([type=checkbox],[type=radio]):not(table *):not(#_){width:22px!important;height:22px!important;min-width:22px;min-height:22px}
 html body #settingsPage input[type=range]:not(#_):not(#__){min-height:32px!important;height:32px!important;font-size:16px}
 html body #settingsPage :is(.rnb-area-pref-head strong,.rnb-area-pref-head output,.rnb-area-pref-scale span,.inv-area-field span,h4):not(#_):not(#__){font-size:12px!important}
}
/* Account e Amministrazione (finestra fuori da main) */
@media(max-width:640px){
 html body #accAdminSection .adm-loc-input:not(#_):not(#__){height:44px!important;font-size:16px!important}
 /* pulsanti rimasti bassi (+ Aggiungi…, strumenti della pianta, giorni) */
 html body #settingsPage :is(.top,.inv-area-settings)>.btn:not(table *):not(#_):not(#__){min-height:44px!important;height:auto!important}
 html body #settingsPage :is(.fm-tab,.fm-tool,.fm-lock,.inv-daychip):not(#_):not(#__){min-height:40px!important;height:auto!important}
}

/* Utenti (js/users-panel.js): ogni utente diventa una card a 2 colonne, etichetta sopra il valore */
@media(max-width:640px){
 html body #usersPanel .usr-cols:not(#_){display:none}
 html body #usersPanel .usr-row:not(#_){grid-template-columns:1fr 1fr;gap:10px;padding:12px 0}
 html body #usersPanel .usr-row>[data-label]:not(#_)::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:4px}
 html body #usersPanel .usr-row>.usr-name:not(#_),html body #usersPanel .usr-row>[data-label="Location"]:not(#_){grid-column:1/-1}
 html body #usersPanel .usr-acts:not(#_){grid-column:1/-1;justify-content:stretch}
 html body #usersPanel .usr-acts details:not(#_),html body #usersPanel .usr-acts summary:not(#_){width:100%}
 html body #usersPanel .usr-pwline .actions:not(#_){width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}

 html body #usersPanel>.top .actions .btn:not(#_){width:100%}
}

/* Disponibilità e vendite abituali (Impostazioni › Experience) su telefono (24 nov 2026, scelta dell'utente): resta una tabella che scorre dentro il suo contenitore, ma la colonna «Giorno» e i titoli «Pranzo/Cena» restano fermi a sinistra, le colonne sono più strette e i bordi mostrano l'ombra di scorrimento */
@media(max-width:640px){
 html body #settingsExperiences .exp-tbl :is(th,td):first-child:not(#_):not(#__){position:sticky;left:0;z-index:2;background:var(--panel);box-shadow:1px 0 0 var(--ui-line);min-width:82px;max-width:92px;white-space:normal}
 html body #settingsExperiences .exp-tbl thead th:first-child:not(#_):not(#__){background:var(--panel2);z-index:3}
 html body #settingsExperiences .exp-tbl tr.is-closed td:not(#_):not(#__){opacity:1}
 html body #settingsExperiences .exp-tbl tr.is-closed td:first-child:not(#_):not(#__){color:var(--muted)}
 html body #settingsExperiences .exp-tbl tr.is-closed .exp-cell:not(#_):not(#__){opacity:.55}
 html body #settingsExperiences .exp-day small:not(#_){display:block;line-height:1.2}
 html body #settingsExperiences .exp-tbl .inv-group-row td strong:not(#_):not(#__){position:sticky;left:10px}
 html body #settingsExperiences .exp-tbl thead th:not(:first-child):not(#_):not(#__){min-width:104px;max-width:120px}
 html body #settingsExperiences .inv-table-wrap:not(#_):not(#__){background:linear-gradient(to right,var(--panel) 30%,transparent) left center/26px 100% no-repeat local,linear-gradient(to left,var(--panel) 30%,transparent) right center/26px 100% no-repeat local,linear-gradient(to right,color-mix(in srgb,var(--text) 18%,transparent),transparent) left center/10px 100% no-repeat scroll,linear-gradient(to left,color-mix(in srgb,var(--text) 18%,transparent),transparent) right center/10px 100% no-repeat scroll}
}
@media(max-width:640px){
 html body #usersPanel .usr-acts:not(#_){justify-content:flex-start}
 html body #usersPanel .usr-ic:not(#_){width:44px!important;min-width:44px!important;height:44px!important}
}

/* == css/ui/58-schede.css == */
/* Stile «Cantina» (1.268.0): schede, titoli di pagina, fondo, gruppi segmentati.
   Solo token, nessun colore fisso. Specifica: .superdesign/design-system.md.
   Nota: .rnb-card esisteva già per le tessere «clock» e «alert» della Dashboard (#rnbLive):
   le regole qui sotto le escludono e la Dashboard le ridefinisce con le sue regole. */

/* ---- Fondo pagina ---- */
html body:not(#_){background:var(--bg)!important;background-image:none!important;background-attachment:scroll!important}
html body main:not(#_){background:transparent}

/* ---- Titoli di pagina ---- */
html body main>.top:not(#_){border-bottom:var(--sep);margin-bottom:24px;padding-bottom:16px;background:transparent!important}
html body main>.top h1:not(#_){font-family:var(--font-display)!important;font-size:30px!important;font-weight:600!important;letter-spacing:-.01em;line-height:1.15;color:var(--text)!important;background:none!important;-webkit-text-fill-color:currentColor!important;-webkit-background-clip:border-box!important;background-clip:border-box!important}
html body main>.top .sub:not(#_){font-size:13px;color:var(--muted)}

/* ---- Scheda ---- */
.rnb-card{display:block;min-width:0;overflow:visible;border:1px solid var(--line);border-radius:0;}
.rnb-card.is-now{border-left:3px solid var(--now)}
.rnb-card.is-flat{background:var(--panel2);box-shadow:none}
.rnb-card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px var(--card-pad);border-bottom:var(--sep);min-width:0}
.rnb-card-head>div:first-child{min-width:0;flex:1 1 220px}
.rnb-card-title{margin:0;font-family:var(--font-brand);font-size:16px;font-weight:650;line-height:1.3;color:var(--text);overflow-wrap:anywhere}
/* Titolo di scheda: una sola misura in tutta l'app (audit A2, 1.271.0); nessuna misura nei file di pagina */
html body .rnb-card-head .rnb-card-title:not(#_):not(#__):not(#___){font-size:16px!important;font-weight:650!important;line-height:1.3!important}
.rnb-card-sub{margin:2px 0 0;font-size:13px;line-height:1.4;color:var(--muted)}
.rnb-card-actions{margin-left:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.rnb-card-body{padding:var(--card-pad);min-width:0}
.rnb-rows{list-style:none;margin:0;padding:0}
.rnb-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:var(--row-pad) var(--card-pad);min-width:0}
.rnb-row+.rnb-row{border-top:var(--sep)}
.rnb-row>*{min-width:0;overflow-wrap:anywhere}
.rnb-card-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;padding:12px var(--card-pad);border-top:var(--sep)}

/* ---- Griglie di schede ---- */
.rnb-cards{display:grid;gap:var(--card-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));min-width:0}
@media(min-width:900px){.rnb-cards.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- Intestazione di pagina e separatore di gruppo ---- */



.rnb-sep-title{display:flex;align-items:center;gap:12px;margin:28px 0 12px;}
.rnb-sep-title::after{content:"";flex:1;border-top:var(--sep)}

/* ---- Gruppi segmentati ---- */
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg):not(#_):not(#__){background:var(--panel2)!important;border:1px solid var(--line)!important;border-radius:0!important;padding:3px!important}
html body :is(.type-filter,.inv-tabs,.settings-tabs,.st-tl-days,.rv-mode,.rv-mix-scope,.cm-reply-kind,.ax-mode,.rnb-seg)>:is(.active,.primary,.on,.is-active,[aria-selected="true"],[aria-pressed="true"]):not(#_):not(#__){background:var(--azure)!important;border-color:var(--azure)!important;color:var(--on-accent)!important}

/* ---- Telefono ---- */
@media(max-width:640px){
  :root{--card-pad:16px;--card-gap:12px}
  html body main>.top h1:not(#_){font-size:24px!important}

  .rnb-card-head{flex-direction:column;align-items:stretch}
  .rnb-card-head>div:first-child{flex:0 0 auto}
  .rnb-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}
  .rnb-cards,.rnb-cards.cols-2{grid-template-columns:minmax(0,1fr)}
}

/* Schede affiancate sempre alte uguali, in tutte le griglie .rnb-cards (1.268.57, regola standard) */
html body .rnb-cards:not(#_):not(#__){align-items:stretch!important}
html body .rnb-cards>.rnb-card:not(#_):not(#__){height:auto!important;align-self:stretch!important}

/* Riquadro dei numeri: modello unico, audit A8 (1.271.1).
   Markup: <div class="inv-kpi [is-warn|is-info|is-bad|is-good|is-total]"><b>numero</b><span>etichetta</span><small>nota facoltativa</small></div>.
   Fondo e bordo dai token --box-* (regola in 56), angoli 0, padding 14/16; lo stato si dice solo col colore del numero.
   Stessa altezza minima per tutti; le griglie (.inv-kpis ecc., elenco in 54) li allineano in altezza. Nessuna copia nei file di pagina. */
html body .inv-kpi:not(#_):not(#__):not(#___){position:relative;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:4px;min-width:0;min-height:84px!important;margin:0;padding:14px 16px!important;text-align:left!important;background:var(--panel);border:1px solid var(--line);border-radius:0!important;box-shadow:none;transform:none!important;color:var(--text);font:inherit}
html body .inv-kpi:not(#_):not(#__):not(#___)>*{margin:0!important;text-align:left!important;min-width:0}
html body .inv-kpi:not(#_):not(#__):not(#___)>b{order:2;font-size:26px;font-weight:650!important;line-height:1.1!important;font-variant-numeric:tabular-nums;color:var(--text)!important;background:none!important;-webkit-text-fill-color:currentColor!important}
html body .inv-kpi:not(#_):not(#__):not(#___)>span{order:1;font-size:11.5px!important;font-weight:600!important;letter-spacing:.06em!important;text-transform:uppercase!important;line-height:1.3!important;color:var(--muted)!important;overflow-wrap:anywhere}
html body .inv-kpi:not(#_):not(#__):not(#___)>small{order:3;display:block!important;font-size:12.5px!important;font-weight:400!important;letter-spacing:0!important;text-transform:none!important;line-height:1.4!important;color:var(--muted)!important;overflow-wrap:anywhere}
html body .inv-kpi.is-warn:not(#_):not(#__):not(#___)>b{color:var(--warn)!important}
html body .inv-kpi.is-bad:not(#_):not(#__):not(#___)>b{color:var(--bad)!important}
html body .inv-kpi:is(.is-good,.is-ok):not(#_):not(#__):not(#___)>b{color:var(--ok)!important}
html body .inv-kpi.clock:not(#_):not(#__):not(#___)>b{color:var(--now)!important}
html body button.inv-kpi:not(:disabled):not(#_):not(#__):not(#___):hover{border-color:var(--azure)!important}

/* Titolo di gruppo: una sola misura qualunque sia il tag (h3, h4, div): le regole generali di h3/h4 non lo cambiano (audit B, 1.272.0) */
html body .rnb-sep-title:not(#_):not(#__):not(#___){font-size:12px!important;font-weight:600!important;line-height:1.3!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:var(--muted)!important}
/* Piede con due azioni: la secondaria a sinistra, la principale a destra (pannello Account, riempimento delle ubicazioni in Oggi). Un piede nuovo con due azioni si aggiunge a questo elenco. */
html body :is(.acct-pane,.rf-card) .rnb-card-foot:has(>:nth-child(2)):not(#_){justify-content:space-between}

/* == css/ui/61-page-today.css == */
/* Stile «Cantina» (1.268.0): pagina today. Solo token, regole comuni in 58-schede.css.
   Markup: today.js aggiunge rnb-card / rnb-card-head / rnb-rows / rnb-row / rnb-cards ai blocchi esistenti. */

/* ---- Schede: intestazione, righe, azioni ---- */
html body #todayPage .td-card.rnb-card:not(#_),
html body #todayPage .td-todo.rnb-card:not(#_),
html body #todayPage .td-closed.rnb-card:not(#_){padding:0!important;margin:0;text-align:left;border:1px solid var(--line);border-radius:0!important;background:var(--panel);box-shadow:var(--card-sh)}
html body #todayPage .td-todo.rnb-card.is-now:not(#_){border-left:3px solid var(--now)}
html body #todayPage .td-card-head.rnb-card-head:not(#_){margin:0;align-items:center;text-align:left}
html body #todayPage .td-card-head .rnb-card-title:not(#_){margin:0;text-align:left}
html body #todayPage .td-card-head .rnb-card-sub:not(#_){font-size:13px;margin:2px 0 0;color:var(--muted);text-align:left}
html body #todayPage .td-list.rnb-rows:not(#_){margin:0;padding:0;list-style:none}
html body #todayPage .td-row.rnb-row:not(#_){display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:flex-end;padding:var(--row-pad) var(--card-pad);margin:0;text-align:left;border-top:0}
html body #todayPage .td-row.rnb-row+.td-row.rnb-row:not(#_){border-top:var(--sep)}
html body #todayPage .td-row.rnb-row>div:not(#_){display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;flex:1 1 240px;text-align:left}
html body #todayPage .td-row.rnb-row>div strong:not(#_){font-size:14.5px!important;font-weight:650!important;color:var(--text);overflow-wrap:anywhere;margin:6px 0 3px;letter-spacing:-.035em;line-height:1.15!important}
html body #todayPage .td-row.rnb-row>div .muted:not(#_){font-size:13px;color:var(--muted);overflow-wrap:anywhere}
html body #todayPage .td-row.rnb-row>.btn:not(#_){margin:0}
html body #todayPage .td-row.rnb-row>.td-places:not(#_){margin:0;flex:1 0 100%;justify-content:flex-start}
html body #todayPage .td-places:not(#_){display:flex;flex-wrap:wrap;gap:8px}
html body #todayPage .td-from:not(#_){font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html body #todayPage .td-ok:not(#_){margin:0;padding:var(--row-pad) var(--card-pad);border-radius:0;background:transparent;color:var(--ok);font-size:14px;font-weight:600;text-align:left}
html body #todayPage .td-chip:not(#_){display:inline-block;margin:0 0 0 6px;padding:2px 8px;border-radius:0;font-size:11.5px;font-weight:650;line-height:1.4}
html body #todayPage .td-chip.is-vip:not(#_),html body #todayPage .td-chip.is-maybe:not(#_){background:var(--panel2);color:var(--text);border:1px solid var(--line)}
html body #todayPage .td-chip.is-allergy:not(#_){background:var(--panel2);color:var(--bad);border:1px solid var(--bad)}
html body #todayPage .td-allergy:not(#_){color:var(--bad);font-weight:650}
/* Chip degli allergeni riconosciuti dal testo delle allergie (rnbAllergyChips, core-timeline.js): riga che va a capo, mai oltre il contenitore */

/* ---- Da fare ora ---- */
html body #todayPage .td-card>.td-card-body:not(#_),html body #todayPage .td-todo>.td-card-body:not(#_){padding:0}
html body #todayPage .td-todo-n:not(#_){display:inline-block;color:var(--on-accent)!important;min-width:22px;padding:1px 8px;border-radius:0;background:var(--now);color:var(--on-accent);font-size:12px;font-weight:650;text-align:center}
html body #todayPage .td-todo.is-empty .td-ok:not(#_){padding:var(--card-pad)}

/* ---- Locale chiuso: scheda piatta e compatta ---- */
html body #todayPage .td-closed.rnb-card.is-flat:not(#_){margin:0 0 var(--card-gap);box-shadow:none}

/* ---- Fasi a tendina: titolo di gruppo con linea ---- */
html body #todayPage .td-phase-disclosure:not(#_){margin:28px 0 0}
html body #todayPage .td-phase-disclosure>.td-phase-title:not(#_){display:flex!important;align-items:center!important;gap:12px!important;min-height:0;margin:0 0 12px!important;padding:0!important;border:0!important;font-family:var(--font-brand);font-size:11.5px!important;font-weight:600;letter-spacing:.06em!important;text-transform:uppercase;color:var(--muted)!important;cursor:pointer}
html body #todayPage .td-phase-disclosure>.td-phase-title:not(#_)>[role="heading"]{font:inherit;letter-spacing:inherit;text-transform:inherit}
html body #todayPage .td-phase-disclosure.is-now>.td-phase-title:not(#_){color:var(--text)!important}
html body #todayPage .td-phase-disclosure>.td-phase-title:not(#_)::after{content:"⌄";order:3;margin-left:0;font-size:16px;font-weight:500;letter-spacing:0;color:var(--muted)}
html body #todayPage .td-phase-disclosure[open]>.td-phase-title:not(#_)::after{content:"⌃"}
html body #todayPage .td-phase-disclosure>.td-phase-title:not(#_)::before{content:"";order:2;flex:1;border-top:var(--sep)}
html body #todayPage .td-phase-title .td-now:not(#_){order:1;margin:0!important;padding:0!important;background:none!important;border:0!important;font-size:11.5px!important;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--now)!important}
html body #todayPage .td-phase-content:not(#_){padding:0;margin:0}

/* ---- Griglie di schede ---- */
html body #todayPage .td-grid.rnb-cards:not(#_){display:grid;gap:var(--card-gap);align-items:start;min-width:0;margin:0}
html body #todayPage .td-grid.rnb-cards>*:not(#_){min-width:0;margin:0}
html body #todayPage .td-grid.rnb-cards:has(>:only-child):not(#_){grid-template-columns:minmax(0,1fr)}
html body #todayPage .td-step:not(#_){display:grid;gap:12px;margin:0 0 var(--card-gap)}
html body #todayPage .td-step>.rnb-sep-title:not(#_){margin:0}

/* ---- Personale della giornata e Lista presenze (markup da staff.js) ---- */
html body #todayPage .st-tl-card:not(#_){grid-column:1/-1;min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
html body #todayPage .st-tl-card>.st-tl.rnb-card:not(#_):not(#__){margin:0;padding:0!important;text-align:left;border:1px solid var(--line)!important;border-radius:0!important;background:var(--panel)!important;box-shadow:var(--card-sh)}
html body #todayPage .st-sheet-card .rnb-card-body>.td-ok:not(#_){padding:0}
html body #todayPage .st-sheet-card .st-scroll:not(#_){margin:0;padding:0;border:0;border-radius:0;background:transparent}
html body #todayPage .st-sheet-card>.st-cmp:not(#_){margin:var(--card-pad)}

/* ---- Rapporto di servizio (markup da service-report.js) ---- */
html body #todayPage .sr-card>.sr-body:not(#_){display:grid;gap:14px;margin:0;padding:var(--card-pad)}
html body #todayPage .sr-card .sr-top:not(#_),html body #todayPage .sr-card .sr-grid:not(#_){margin:0}
html body #todayPage .sr-card .sr-top:not(#_):not(#__){gap:var(--gap-field,14px)}
html body #todayPage .sr-card .sr-grid:not(#_):not(#__){gap:var(--gap-row,12px) var(--gap-field,14px)}
html body #todayPage .sr-card .sr-field:not(#_):not(#__){display:grid;gap:var(--gap-label,4px);align-content:start}
html body #todayPage .sr-card .sr-field>.sr-auto:not(#_):not(#__){margin:0}
html body #todayPage .sr-card>.sr-actions.rnb-card-foot:not(#_):not(#__){display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0;padding:12px var(--card-pad);border-top:var(--sep)}
html body #todayPage .sr-card>.sr-actions>.muted:not(#_){margin-right:auto;color:var(--muted)}

/* ---- Telefono ---- */
@media(max-width:640px){
  html body #todayPage .td-row.rnb-row:not(#_){display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  html body #todayPage .td-row.rnb-row>div:not(#_){flex:none}
  html body #todayPage .td-grid.rnb-cards:not(#_){grid-template-columns:minmax(0,1fr)}
}

/* Data e orologio in cima a Oggi (1.268.6) */
html body #todayPage .top:not(#_){border:0!important;padding:0!important;margin:0 0 18px!important}
/* Scheda della data: Oggi (.td-hero) e Personale (.st-week, in 61-page-staff.css solo margine e telefono) usano le stesse regole */
html body #todayPage h2.td-hero:not(#_),html body #staffPage .st-week:not(#_){display:flex;align-items:flex-end;justify-content:space-between;gap:var(--card-gap);padding:18px 22px;background:var(--panel);border:1px solid var(--line);border-left:4px solid var(--azure)}
html body #todayPage h2.td-hero:not(#_){margin:0;font:inherit;width:100%;box-sizing:border-box}
html body #todayPage .td-hero-date:not(#_),html body #staffPage .st-week-d:not(#_){display:flex;flex-direction:column;gap:2px;min-width:0}
html body #todayPage .td-hero-date small:not(#_),html body #staffPage .st-week-d small:not(#_){font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--azure)}
html body #todayPage .td-hero-date b:not(#_),html body #staffPage .st-week-d b:not(#_){font-family:var(--font-display);font-size:30px;font-weight:600;line-height:1.1;color:var(--text)}
html body #todayPage .td-hero-date em:not(#_),html body #staffPage .st-week-d em:not(#_){font-style:normal;font-size:13px;color:var(--muted)}
html body #todayPage .td-hero-clock:not(#_){font-family:var(--font-display);font-size:52px;font-weight:600;line-height:1;color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:-.02em;white-space:nowrap}
html body #todayPage .td-hero-clock i:not(#_){font-style:normal;color:var(--now);animation:tdBlink 2s steps(1) infinite;padding:0 1px}
@keyframes tdBlink{50%{opacity:.25}}
@media(max-width:640px){html body #todayPage h2.td-hero:not(#_),html body #staffPage .st-week:not(#_){padding:14px 16px}html body #todayPage .td-hero-date b:not(#_),html body #staffPage .st-week-d b:not(#_){font-size:24px}html body #todayPage .td-hero-clock:not(#_){font-size:40px}}
@media(prefers-reduced-motion:reduce){html body #todayPage .td-hero-clock i:not(#_){animation:none}}
html body #todayPage .top>div:not(#_){flex:1 1 auto;width:100%;min-width:0}
/* firma della checklist completata: nome e pulsante sulla stessa riga */
html body #todayPage .ck-sign-row:not(#_){display:flex;align-items:center;gap:var(--gap-ctl);margin-top:var(--gap-label)}
html body #todayPage .ck-sign-row input:not(#_){flex:1;min-width:0}
/* verifica della chiusura di ieri: discrepanze in evidenza */
html body #todayPage .ck-audit.has-issues:not(#_){border-color:var(--bad);border-left-width:4px}
html body #todayPage .ck-audit li.is-issue:not(#_){color:var(--bad)}
html body #todayPage .ck-audit.is-flash:not(#_){outline:2px solid var(--azure)}
html body #todayPage .ck-audit .ck-miss:not(#_){color:var(--bad)}
html body #docsChecklists .ck-verify:not(#_){display:inline-flex;align-items:center;gap:var(--gap-ctl);font-size:12px;color:var(--muted);margin-right:var(--gap-ctl)}

/* Controllo chiusura di ieri (25 nov 2026, scelta dell'utente): riga leggibile, voce in primo piano, «non spuntata ieri» piccolo sotto, ✓ e ✕ al posto delle parole */
html body #todayPage .ck-audit-head strong:not(#_):not(#__){font-size:14px;font-weight:650}
html body #todayPage .ck-audit-head small:not(#_):not(#__){font-size:12px;font-weight:500;color:var(--muted)}
html body #todayPage .ck-audit li:not(#_):not(#__){flex-wrap:nowrap;gap:12px;padding:8px 0;color:var(--text)}
html body #todayPage .ck-audit li.is-issue:not(#_):not(#__){color:var(--text)}
html body #todayPage .ck-audit .ck-audit-txt:not(#_):not(#__){display:flex;flex-direction:column;gap:1px;min-width:0;flex:1 1 auto;font-size:14px;font-weight:500;line-height:1.3;color:var(--text)}
html body #todayPage .ck-audit .ck-audit-txt .ck-day:not(#_):not(#__){font-size:12px;font-weight:600;color:var(--bad);letter-spacing:0}
html body #todayPage .ck-audit .ck-audit-actions:not(#_):not(#__){flex:0 0 auto;gap:8px}
html body #todayPage .ck-audit .ck-audit-actions button:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0!important;color:var(--muted)!important}
html body #todayPage .ck-audit .ck-audit-actions button.is-selected:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){color:var(--ok)!important;border-color:var(--ok)!important}
html body #todayPage .ck-audit .ck-audit-actions button.is-issue:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){color:var(--bad)!important;border-color:var(--bad)!important}
@media(max-width:640px){html body #todayPage .ck-audit .ck-audit-actions button:not(#_):not(#__):not(#___){width:44px;min-width:44px;height:44px;min-height:44px}}

/* Scheda «Riempimento ubicazioni»: campo e unità in colonne fisse (campo allineato in ogni riga, unità a larghezza fissa) */
html body #todayPage .rf-card .rf-table td.num:not(#_):not(#__){white-space:nowrap}
html body #todayPage .rf-card .rf-qty:not(#_):not(#__){display:inline-grid;grid-template-columns:72px 64px;column-gap:var(--gap-ctl,8px);align-items:center;justify-content:end}
html body #todayPage .rf-card .rf-qty small:not(#_):not(#__):not(#___){display:block;text-align:left;overflow-wrap:anywhere;white-space:normal}

/* Presenze dentro il rapporto di servizio: blocco con titolo di gruppo sopra il piede */
html body #todayPage .sr-card .st-sheet-inline:not(#_):not(#__){display:flex;flex-direction:column;gap:var(--gap-row,12px);border-top:1px solid var(--line)}
html body #todayPage .sr-card .st-sheet-inline .st-sheet-sum:not(#_):not(#__){margin:0}
html body #todayPage .sr-card .st-sheet-inline .rnb-card-actions:not(#_):not(#__){display:flex;gap:var(--gap-ctl,8px);justify-content:flex-end}
html body #todayPage .sr-card .st-scroll:not(#_):not(#__){margin:0;padding:0;border:0;border-radius:0;background:none}
html body #todayPage .sr-card>.st-cmp:not(#_):not(#__){margin:var(--card-pad)}
html body #todayPage .sr-card .st-sheet-inline .td-ok:not(#_):not(#__){padding:0}

/* 1.305.9: servizi del giorno in una scheda come le altre; turno mancante in grigio */
html body #todayPage .td-day:not(#_):not(#__){background:var(--panel)!important;border:1px solid var(--line)!important;padding:16px 20px!important;margin-bottom:var(--card-gap)!important}
html body #todayPage .td-duty-empty>span:not(#_):not(#__){color:var(--muted)!important;font-weight:400!important}
/* 1.307.1: tabella del riempimento delle ubicazioni dentro la colonna, senza scorrimento */
html body table.rf-table:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){table-layout:fixed!important;width:100%!important;min-width:0!important}
html body table.rf-table :is(th,td):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){min-width:0!important;padding-left:6px!important;padding-right:6px!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body table.rf-table th:nth-child(1):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:34%!important}
html body table.rf-table th:nth-child(2):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______),html body table.rf-table th:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:23%!important}
html body table.rf-table th:nth-child(4):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:20%!important}
html body table.rf-table .rf-qty:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){display:flex!important;flex-direction:column;align-items:flex-end;gap:2px}
html body table.rf-table .rf-q:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:100%!important;max-width:56px!important;min-width:0!important}
/* 1.307.2: riempimento delle ubicazioni a tutta larghezza nella griglia della chiusura */
html body #todayPage .td-grid>.rf-card:not(#_):not(#__):not(#___){grid-column:1/-1!important;width:auto!important;max-width:none!important}
html body table.rf-table th.num:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){text-align:right!important}
/* 1.307.2: righe compatte; quantità e unità sulla stessa riga, colonne Da e A strette */
html body table.rf-table td:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){vertical-align:middle!important;padding-top:6px!important;padding-bottom:6px!important}
html body table.rf-table th:nth-child(1):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:auto!important}
html body table.rf-table th:nth-child(2):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______),html body table.rf-table th:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:24%!important}
html body table.rf-table th:nth-child(4):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:132px!important}
html body table.rf-table .rf-qty:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:var(--gap-ctl)!important}
html body table.rf-table .rf-qty small:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){min-width:44px;text-align:left;color:var(--muted)}
@media(max-width:640px){html body table.rf-table th:nth-child(2):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______),html body table.rf-table th:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:22%!important}
 html body table.rf-table th:nth-child(4):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:72px!important}
 html body table.rf-table .rf-qty:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){flex-direction:column!important;align-items:flex-end!important;gap:2px!important}
 html body table.rf-table .rf-qty small:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){min-width:0;text-align:right}}
/* Apri lista (Oggi): la lista scelta si vede sotto la barra e lampeggia col contorno */
html body #todayPage .ck-card:not(#_){scroll-margin-top:90px}
html body #todayPage .ck-card.is-flash:not(#_){outline:2px solid var(--azure);outline-offset:-2px}

/* == css/ui/61-page-dashboard.css == */
/* Stile «Cantina» (1.268.0): pagina Dashboard (#dashboardPage). Solo token, regole comuni in 58-schede.css.
   Schede: Servizio del giorno (data + 4 numeri), Floor plan, Prossimi arrivi, Occupazione, Registro assistente.
   Telefono (≤640 px) in fondo, selettori con l'id della pagina e :not(#_). */

/* ---- Spazi tra i blocchi ---- */
html body #dashboardPage>.rnb-closed-host:not(#_):not(#__){margin:0 0 var(--card-gap)!important}
html body #dashboardPage>.rnb-closed-host:empty:not(#_):not(#__){display:none!important}
html body #dashboardPage #dashboardOverviewRow:not(#_):not(#__){margin:0 0 var(--card-gap)!important}
html body #dashboardPage #dashRefill:not(#_):not(#__){margin:0 0 var(--card-gap)!important}

/* ---- Avviso «Locale chiuso»: scheda compatta con barretta di stato a sinistra ---- */
html body #dashboardPage .rnb-closed:not(#_):not(#__){display:flex!important;align-items:center!important;gap:12px!important;margin:0!important;padding:12px var(--card-pad)!important;background:var(--panel)!important;border:1px solid var(--line)!important;border-left:3px solid var(--warn)!important;border-radius:0!important;box-shadow:var(--card-sh)!important;color:var(--text)!important}
html body #dashboardPage .rnb-closed-ico:not(#_):not(#__){background:var(--warn)!important}
html body #dashboardPage .rnb-closed-text strong:not(#_):not(#__){font-size:15px!important;font-weight:650!important;color:var(--text)!important}
html body #dashboardPage .rnb-closed-text span:not(#_):not(#__){font-size:13px!important;color:var(--muted)!important;overflow-wrap:anywhere}

/* ---- Schede: Servizio del giorno, Floor plan, Prossimi arrivi, Occupazione, Registro ---- */
html body #dashboardPage :is(.dashboard-overview-meta,.dashboard-upcoming,.dashboard-floor-preview,.dashboard-log):not(#_):not(#__),html body #dashboardPage #rnbTop:not(#_):not(#__){min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:0!important;box-shadow:var(--card-sh)!important;color:var(--text)!important}
html body #dashboardPage .dashboard-overview-meta>.rnb-card-head>div:first-child:not(#_):not(#__){min-width:0;flex:1 1 220px}

/* corpo delle schede */
html body #dashboardPage #upcoming:not(#_):not(#__){padding:var(--card-pad)!important;min-width:0}
html body #dashboardPage #dashboardFloorQuick:not(#_):not(#__){padding:var(--card-pad)!important;min-width:0;min-height:0!important}
html body #dashboardPage .dashboard-floor-empty:not(#_):not(#__){min-height:0!important;margin:0!important;padding:0!important;font-size:13px;color:var(--muted)!important}
html body #dashboardPage #upcoming .up-empty:not(#_):not(#__){display:flex;flex-direction:column;gap:2px;min-height:0!important;margin:0!important;padding:14px 16px!important;text-align:left;background:var(--panel2)!important;border:1px solid var(--line)!important;border-radius:0;box-shadow:none!important}
html body #dashboardPage #upcoming .up-empty b:not(#_):not(#__){font-size:14px;font-weight:650;color:var(--text)!important}
html body #dashboardPage #upcoming .up-empty span:not(#_):not(#__){font-size:13px;color:var(--muted)!important}

/* registro assistente */
html body #dashboardPage .dashboard-log .rnb-sep-title:not(#_):not(#__){margin:0 0 12px}
html body #dashboardPage #smartReorgLog:not(#_):not(#__){padding:0;min-width:0}
html body #dashboardPage #smartReorgLog>p:not(#_):not(#__){margin:0!important}

/* occupazione per fascia oraria */
html body #dashboardPage #rnbHeat>.rnb-card-head .rnb-card-title:not(#_):not(#__){display:flex!important;flex-wrap:wrap;align-items:baseline!important;justify-content:space-between!important;gap:4px 12px!important}
html body #dashboardPage #rnbHeat>.rnb-card-head .rnb-card-title small:not(#_):not(#__){font-size:13px!important;font-weight:400!important;color:var(--muted)!important}
html body #dashboardPage #rnbHeat>.rnb-card-body:not(#_):not(#__){display:flex;flex-direction:column;flex:1 1 auto;padding:0!important;min-width:0}
html body #dashboardPage #rnbHeat .rnb-shift:not(#_):not(#__){padding:var(--card-pad)!important;margin:0!important;min-width:0}
html body #dashboardPage #rnbHeat .rnb-shift+.rnb-shift:not(#_):not(#__){border-top:var(--sep)!important}

/* ---- Servizio del giorno: titolo e data in testata, 4 numeri sotto ---- */
html body #dashboardPage .dashboard-overview-meta:not(#_):not(#__){display:grid!important;grid-template-columns:minmax(0,1fr) auto}
html body #dashboardPage .dashboard-overview-meta>.rnb-card-head:not(#_):not(#__){display:block!important;grid-column:1;grid-row:1;margin:0!important;padding:16px 0 16px var(--card-pad)!important;border:0!important;border-bottom:var(--sep)!important;background:transparent!important;min-width:0}
html body #dashboardPage .dashboard-overview-meta>.field:not(#_):not(#__){display:flex!important;flex-wrap:wrap;align-items:center;gap:var(--gap-label,4px) var(--gap-ctl,8px);grid-column:2;grid-row:1;margin:0!important;padding:12px var(--card-pad) 12px 12px!important;border-bottom:var(--sep)!important;min-width:0}
html body #dashboardPage .dashboard-overview-meta>.field>label:not(#_):not(#__){margin:0!important;font-size:11.5px!important;font-weight:600!important;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)!important}
html body #dashboardPage .dashboard-overview-meta .date-navigation:not(#_):not(#__){margin:0!important;flex-wrap:wrap}
html body #dashboardPage .dashboard-overview-meta>.stats:not(#_):not(#__){display:none!important}
html body #dashboardPage #rnbLive:not(#_):not(#__){grid-column:1/-1;grid-row:2;margin:0!important;padding:var(--card-pad)!important;border:0!important;background:transparent!important;min-width:0}

/* ---- Floor plan (2fr) e Prossimi arrivi (1fr) ---- */
html body #dashboardPage .dashboard-main-grid:not(#_):not(#__){display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;gap:var(--card-gap)!important;align-items:start!important;margin:0!important}
html body #dashboardPage .dashboard-main-grid>.dashboard-floor-preview:not(#_):not(#__){grid-column:1!important;grid-row:1!important;order:0!important}
html body #dashboardPage .dashboard-main-grid>.dashboard-upcoming:not(#_):not(#__){grid-column:2!important;grid-row:1!important;order:0!important}
html body #dashboardPage .dashboard-main-grid>:is(#rnbTop,.dashboard-log):not(#_):not(#__){grid-column:1/-1!important;grid-row:auto!important;order:0!important;min-width:0}
@media(max-width:900px){
 html body #dashboardPage .dashboard-main-grid:not(#_):not(#__){grid-template-columns:minmax(0,1fr)!important}
 html body #dashboardPage .dashboard-main-grid>:is(.dashboard-floor-preview,.dashboard-upcoming):not(#_):not(#__){grid-column:1!important;grid-row:auto!important}
 html body #dashboardPage .dashboard-main-grid>.dashboard-floor-preview:not(#_):not(#__){order:-1!important}
 html body #dashboardPage .dashboard-overview-meta:not(#_):not(#__){grid-template-columns:minmax(0,1fr)}
 html body #dashboardPage .dashboard-overview-meta>.rnb-card-head:not(#_):not(#__){grid-column:1;padding:16px var(--card-pad)!important}
 html body #dashboardPage .dashboard-overview-meta>.field:not(#_):not(#__){grid-column:1;grid-row:2;padding:12px var(--card-pad)!important}
 html body #dashboardPage #rnbLive:not(#_):not(#__){grid-row:3}
}

/* ---- Telefono (≤640 px) ---- */
@media(max-width:640px){
 html body #dashboardPage .rnb-closed:not(#_):not(#__){flex-wrap:wrap!important;padding:12px var(--card-pad)!important}
 html body #dashboardPage .rnb-closed-text:not(#_):not(#__){flex-basis:calc(100% - 22px)}
 html body #dashboardPage .dashboard-overview-meta .date-navigation:not(#_):not(#__){width:100%}
 html body #dashboardPage .dashboard-overview-meta>.field:not(#_):not(#__){flex-direction:column;align-items:stretch}
 html body #dashboardPage #rnbHeat>.rnb-card-head .rnb-card-title:not(#_):not(#__){flex-direction:column;align-items:flex-start!important}
 html body #dashboardPage :is(.panel,.up-empty,.dashboard-overview-meta,#rnbHeat):not(#_):not(#__){max-width:100%;box-sizing:border-box}
}

/* altezza naturale: niente schede alte e vuote */
html body #dashboardPage :is(.dashboard-upcoming,.dashboard-floor-preview,.dashboard-log):not(#_):not(#__){display:block!important;height:auto!important;min-height:0!important;align-self:start!important}
html body #dashboardPage :is(#upcoming,#dashboardFloorQuick):not(#_):not(#__){flex:none!important;height:auto!important;min-height:0!important}

/* Floor plan e Prossimi arrivi alla stessa altezza: decide il Floor plan, l'elenco degli arrivi scorre dentro (1.268.12) */
@media(min-width:641px){
html body #dashboardPage .dashboard-main-grid:not(#_):not(#__):not(#___){align-items:stretch!important}
html body #dashboardPage .dashboard-main-grid>.dashboard-upcoming:not(#_):not(#__):not(#___),html body #dashboardPage .dashboard-main-grid>.dashboard-floor-preview:not(#_):not(#__):not(#___){align-self:stretch!important;display:flex!important;flex-direction:column!important;min-height:260px}
html body #dashboardPage .dashboard-upcoming>:last-child:not(#_):not(#__):not(#___){flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important}
}

/* Occupazione per fascia oraria e arrivi di Oggi a montagna (25 nov 2026, scelta dell'utente): curva liscia al posto delle celle, colore più saturo salendo; sulla Dashboard sopra l'obiettivo di occupazione vira al rosso del locale, la linea tratteggiata è l'obiettivo, le celle restano come aree sensibili (titolo, clic, «adesso») */
html body :is(#dashboardPage,#todayPage) .td-ridge:not(#_):not(#__){position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
html body :is(#dashboardPage,#todayPage) .td-ridge .td-r0{stop-color:var(--azure);stop-opacity:.16}
html body :is(#dashboardPage,#todayPage) .td-ridge .td-r1{stop-color:var(--azure);stop-opacity:.62}
html body :is(#dashboardPage,#todayPage) .td-ridge .td-r2{stop-color:var(--azure-ink,var(--azure));stop-opacity:1}
html body :is(#dashboardPage,#todayPage) .td-ridge .td-rh{stop-color:var(--bad);stop-opacity:.6}
html body :is(#dashboardPage,#todayPage) .td-ridge .td-rx{stop-color:var(--bad);stop-opacity:1}
html body :is(#dashboardPage,#todayPage) .td-ridge-line{stroke:var(--azure-ink,var(--azure));stroke-width:1.6;stroke-linejoin:round}
html body :is(#dashboardPage,#todayPage) .td-ridge-target{stroke:var(--bad);stroke-width:1;stroke-dasharray:4 3;opacity:.8}
html body #dashboardPage .rnb-cells:not(#_):not(#__){position:relative;gap:0!important;height:76px;min-height:76px;margin-top:12px;border-bottom:1px solid var(--box-line)}
html body #dashboardPage .rnb-cells .rnb-cell:not(#_):not(#__):not(#___){position:relative;height:100%!important;min-height:0!important;background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important;transform:none!important}
html body #dashboardPage .rnb-cells .rnb-cell:hover:not(#_):not(#__):not(#___){background:color-mix(in srgb,var(--azure) 10%,transparent)!important}
html body #dashboardPage .rnb-cells .rnb-cell.now:not(#_):not(#__):not(#___){background:color-mix(in srgb,var(--now) 12%,transparent)!important;box-shadow:inset 2px 0 0 var(--now)!important}
html body #dashboardPage .rnb-cells .rnb-cell.over:not(#_):not(#__):not(#___){box-shadow:inset 0 3px 0 var(--bad)!important}
html body #todayPage .td-strip-cols:not(#_):not(#__){height:72px!important}
html body #todayPage .td-strip-cols i:not(#_):not(#__):not(#___){background:transparent!important}
html body #todayPage .td-strip-cols i:hover:not(#_):not(#__):not(#___){background:color-mix(in srgb,var(--azure) 10%,transparent)!important}
html body #todayPage .td-strip-cols i.is-peak em:not(#_):not(#__){color:var(--azure-ink,var(--azure))}

/* Data del servizio come prima fascia della scheda Floor plan; i riquadri restano soli in «Servizio del giorno» (prova-registro, scelta dell'utente) */
html body #dashboardPage .dashboard-overview-meta:not(#_):not(#__){grid-template-columns:minmax(0,1fr)}
html body #dashboardPage .dashboard-overview-meta>.rnb-card-head:not(#_):not(#__){grid-column:1/-1;padding-right:var(--card-pad)!important}
html body #dashboardPage .dashboard-floor-preview>.dash-date-band:not(#_):not(#__){display:flex!important;flex-wrap:wrap;align-items:center;gap:var(--gap-label,4px) var(--gap-ctl,8px);margin:0!important;padding:16px var(--card-pad,20px)!important;border-bottom:var(--sep)!important;min-width:0}
html body #dashboardPage .dashboard-floor-preview>.dash-date-band>label:not(#_):not(#__){margin:0!important;font-size:11.5px!important;font-weight:600!important;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)!important}
html body #dashboardPage .dashboard-floor-preview>.dash-date-band .date-navigation:not(#_):not(#__){margin:0!important;flex-wrap:wrap}

/* Occupazione = fascia della scheda Floor plan, sotto la data e sopra la pianta (fascia senza riquadro proprio) */
html body #dashboardPage .dashboard-floor-preview>#rnbHeat:not(#_):not(#__){display:block;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-bottom:var(--sep)!important;min-width:0}
html body #dashboardPage #rnbHeat .heat-title:not(#_):not(#__){display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--gap-label,4px) 12px;margin:0!important;padding:var(--card-pad) var(--card-pad) 0!important}
html body #dashboardPage #rnbHeat .heat-title small:not(#_):not(#__){font-size:13px!important;font-weight:400!important;text-transform:none;letter-spacing:normal;color:var(--muted)!important}
html body #dashboardPage #rnbTop:not(#_):not(#__):empty,html body #dashboardPage #rnbTop:not(#_):not(#__):not(:has(*)){display:none!important}
/* Registro dell'assistente = scheda Â«AssistenteÂ» del ramo AttivitÃ ; le schede del ramo senza il padding delle schede della Dashboard */
html body #dashboardPage .act-pane>.rnb-card:not(#_):not(#__){padding:0!important;margin:0!important;max-width:100%;box-sizing:border-box}
html body #dashboardPage .act-pane>.auto-smart-panel:not(#_):not(#__){max-height:none!important;height:auto!important;min-height:0!important;overflow:visible!important}

/* ---- Dashboard a colpo d'occhio (1.305.11): Servizio del giorno (testata, data, riquadri, occupazione, assistente), Prossimi arrivi, Sala ---- */
html body #dashboardPage .dashboard-overview-meta>*:not(#_):not(#__):not(#___){grid-column:1/-1!important;grid-row:auto!important}
html body #dashboardPage .dashboard-overview-meta>.rnb-card-head:not(#_):not(#__):not(#___){display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:12px;padding:16px var(--card-pad)!important}
html body #dashboardPage .dashboard-overview-meta>.rnb-card-head>.rnb-card-title:not(#_):not(#__):not(#___){margin:0!important;text-align:left!important}
html body #dashboardPage .dashboard-overview-meta>.rnb-card-head>.set-count:not(#_):not(#__):not(#___){margin-left:auto;flex:0 0 auto;color:var(--muted);font-size:12px;font-weight:600}
html body #dashboardPage .dashboard-overview-meta>.dash-date-band:not(#_):not(#__):not(#___){display:flex!important;flex-wrap:wrap;align-items:center;gap:var(--gap-label,4px) var(--gap-ctl,8px);margin:0!important;padding:12px var(--card-pad)!important;border-bottom:var(--sep)!important;min-width:0}
html body #dashboardPage .dashboard-overview-meta>.dash-date-band>label:not(#_):not(#__){margin:0!important;font-size:11.5px!important;font-weight:600!important;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)!important}
html body #dashboardPage .dashboard-overview-meta>.dash-date-band .date-navigation:not(#_):not(#__){margin:0!important;flex-wrap:wrap}
html body #dashboardPage #rnbLive .inv-kpi.dash-click:not(#_):not(#__){position:relative;cursor:pointer}
html body #dashboardPage #rnbLive .inv-kpi.dash-click:not(#_):not(#__)::after{content:"›";position:absolute;top:8px;right:10px;color:var(--muted);font-weight:700;font-size:16px;line-height:1}
html body #dashboardPage .dashboard-overview-meta>#rnbHeat:not(#_):not(#__){display:block;margin:0!important;padding:0 0 var(--card-pad)!important;background:transparent!important;border:0!important;box-shadow:none!important;border-top:var(--sep)!important;min-width:0}
html body #dashboardPage #rnbHeat .heat-title:not(#_):not(#__){padding-top:var(--card-pad)!important}
html body #dashboardPage .dash-ax-row:not(#_):not(#__){display:flex;align-items:center;gap:var(--gap-ctl,8px);padding:12px var(--card-pad);border-top:var(--sep);cursor:pointer;min-width:0}
html body #dashboardPage .dash-ax-row:hover:not(#_):not(#__){background:var(--panel2)}
html body #dashboardPage .dash-ax-dot:not(#_):not(#__){flex:0 0 10px;width:10px;height:10px;background:var(--muted)}
html body #dashboardPage .dash-ax-dot.ax-bad:not(#_):not(#__){background:var(--bad)}
html body #dashboardPage .dash-ax-dot.ax-tip:not(#_):not(#__){background:var(--azure)}
html body #dashboardPage .dash-ax-dot.ax-ok:not(#_):not(#__){background:var(--ok)}
html body #dashboardPage .dash-ax-text:not(#_):not(#__){flex:1 1 auto;min-width:0;font-size:13px;font-weight:600;color:var(--text)}
html body #dashboardPage .dash-ax-link:not(#_):not(#__){flex:0 0 auto;font-size:13px;font-weight:600;color:var(--muted)}
/* Prossimi arrivi: massimo 5 righe, poi «Tutti ›»; Sala: una riga per zona */
html body #dashboardPage #upcoming .up-more:not(#_):not(#__){display:flex;justify-content:flex-end;margin-top:var(--gap-row,12px)}
html body #dashboardPage #dashboardFloorQuick:not(#_):not(#__):not(#___){padding:0!important}
html body #dashboardPage #dashboardFloorQuick>.dashboard-floor-empty:not(#_):not(#__):not(#___){padding:var(--card-pad)!important}
html body #dashboardPage #dashboardFloorQuick .dfq-zone:not(#_):not(#__){cursor:pointer}
html body #dashboardPage #dashboardFloorQuick .dfq-zone:hover td:not(#_):not(#__){background:var(--panel2)}
html body #dashboardPage #dashboardFloorQuick td.num:not(#_):not(#__),html body #dashboardPage #dashboardFloorQuick th.num:not(#_):not(#__){text-align:right;font-variant-numeric:tabular-nums}
html body #dashboardPage #dashboardFloorQuick td.dfq-go:not(#_):not(#__){width:28px;text-align:right;color:var(--muted);font-weight:700}
html body #dashboardPage .dashboard-main-grid>.dashboard-upcoming:not(#_):not(#__):not(#___){grid-column:1!important}
html body #dashboardPage .dashboard-main-grid>.dashboard-floor-preview:not(#_):not(#__):not(#___){grid-column:2!important}
@media(max-width:900px){
 html body #dashboardPage .dashboard-main-grid>:is(.dashboard-upcoming,.dashboard-floor-preview):not(#_):not(#__):not(#___){grid-column:1!important;grid-row:auto!important;order:0!important}
}
html body #dashboardPage #rnbLive .inv-kpi:not(#_):not(#__):not(#___){justify-content:flex-start!important}
html body #dashboardPage #rnbLive .inv-kpi>b:not(#_):not(#__):not(#___){font-size:24px!important;line-height:1.1!important;font-weight:700!important;color:var(--text)!important;background:none!important;-webkit-text-fill-color:currentColor!important}
html body #dashboardPage #rnbLive .inv-kpi.is-bad>b:not(#_):not(#__):not(#___){color:var(--bad)!important}
@media(min-width:901px){
 html body #dashboardPage .dashboard-main-grid:not(#_):not(#__):not(#___){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
}


/* == css/ui/61-page-inventory.css == */
/* Stile «Cantina» (1.268.0): pagina inventory (:is(#inventoryPage,#invItemsPanel)). Solo token, regole comuni in 58-schede.css.
   Struttura: riquadri dei numeri (.inv-kpis), poi schede .rnb-card.inv-card (Ubicazioni, Articoli, Vendite, Rotture, Conteggio, Biancheria).
   Le schede dell'inventario hanno il corpo senza padding laterale: i blocchi di testo prendono il margine, le tabelle vanno a filo. */

/* ---- Titolo della scheda aperta ---- */
html body :is(#inventoryPage,#invItemsPanel) .inv-sec-head:not(#_){margin:20px 0 16px}
html body :is(#inventoryPage,#invItemsPanel) .inv-sec-head h2:not(#_){margin:0;font-family:var(--font-brand);font-size:18px;font-weight:650;line-height:1.3;color:var(--text);text-align:left}
html body :is(#inventoryPage,#invItemsPanel) .inv-sec-head p:not(#_){margin:4px 0 0;font-size:13px;line-height:1.45;color:var(--muted);text-align:left}

/* ---- Colonna di schede ---- */
html body :is(#inventoryPage,#invItemsPanel) :is(:is(#invMain,#invItems),#invUsage,#invBreak,#invTelling,#invLinen):not(#_){display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
html body :is(#inventoryPage,#invItemsPanel) :is(:is(#invMain,#invItems),#invUsage,#invBreak,#invTelling,#invLinen)>:not(#_){margin-top:0;margin-bottom:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card:not(#_){margin:0;min-width:0;padding:0!important}

html body :is(#inventoryPage,#invItemsPanel) .inv-card>.rnb-card-body:not(#_){display:flex;flex-direction:column;gap:14px;padding:var(--card-pad) 0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card>.rnb-card-body>:not(.inv-table-wrap):not(.inv-bar):not(#_){margin-inline:var(--card-pad);margin-block:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .rnb-card-head .rnb-card-title:not(#_){text-align:left}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .rnb-card-sub:not(#_){text-align:left;margin:2px 0 0}

/* ---- Riquadri dei numeri ---- */

/* ---- Ubicazioni: carosello dentro la scheda ---- */
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-places>.rnb-card-body:not(#_):not(#__){padding:var(--card-pad)}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-wrap:not(#_):not(#__){position:static;margin:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:0}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-wrap>.inv-places:not(#_):not(#__){grid-column:2;grid-row:1;gap:12px!important;padding:2px 0}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places>*:not(#_):not(#__){flex:0 0 calc((100% - 24px)/3)!important}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-nav:not(#_):not(#__){position:static;margin:0;grid-row:1;flex:none;box-shadow:none;background:var(--panel2);border:1px solid var(--line)}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-nav.is-prev:not(#_):not(#__){grid-column:1;margin-right:12px}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-nav.is-next:not(#_):not(#__){grid-column:3;margin-left:12px}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-nav:hover:not(#_):not(#__){border-color:var(--azure);color:var(--azure-ink)}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-place:not(#_):not(#__){display:flex!important;flex-direction:column;align-items:stretch;gap:2px;padding:14px 16px 0!important;text-align:left!important;background:var(--panel2)!important;border:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;min-height:0}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-place.is-active:not(#_):not(#__){border-color:var(--azure)!important}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-place.is-due:not(#_):not(#__){border-left:3px solid var(--warn)!important}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-place-name:not(#_):not(#__){text-align:left;font-size:13px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--text)}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-place-num:not(#_):not(#__){font-size:13px;color:var(--text);text-align:left}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-place-st:not(#_):not(#__){font-size:12.5px;color:var(--muted);text-align:left}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-place-act:not(#_):not(#__){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 0!important;padding:12px 0 14px;border-top:var(--sep)}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-place-add:not(#_):not(#__){align-items:center;justify-content:center;padding:14px 16px!important;border-style:dashed!important;background:transparent!important;color:var(--azure-ink);font-weight:600}

/* ---- Articoli: intestazione, barra strumenti, tabella, piede ---- */
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-bar:not(#_):not(#__){display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;padding:var(--card-pad);border-bottom:var(--sep)}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-bar .inv-tabs:not(#_):not(#__){align-self:flex-start;max-width:100%}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-tools:not(#_):not(#__){width:100%;gap:10px 12px}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-col-bar:not(#_):not(#__){margin:0;padding:10px var(--card-pad);border:0;border-bottom:var(--sep);border-radius:0;background:var(--panel2)}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card .inv-table-wrap:not(#_):not(#__){margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items>.inv-table-wrap:not(#_):not(#__){border-radius:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-table thead th:not(#_):not(#__){padding:10px 12px;background:var(--panel2);border-bottom:var(--sep);font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-table tbody td:not(#_):not(#__){padding:9px 12px;border-top:var(--sep);border-bottom:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-table tbody tr:first-child td:not(#_):not(#__){border-top:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-table tbody tr:hover>td:not(#_):not(#__){background:var(--panel2)}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-table tr.inv-group-row>td:not(#_):not(#__){padding:8px 12px;background:var(--panel2);border-top:var(--sep);border-bottom:var(--sep);font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-table tr.inv-group-row>td strong:not(#_):not(#__){display:inline!important;font-size:13px!important;font-weight:650;letter-spacing:.04em;color:var(--text)}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-table tr.inv-group-row>td .muted:not(#_):not(#__){margin-left:8px;font-size:11.5px;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-table tr.inv-group-row:hover>td:not(#_):not(#__){background:var(--panel2)}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-foot:not(#_):not(#__){justify-content:space-between;margin:0;padding:12px var(--card-pad);border-top:var(--sep);background:transparent}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-foot>span:last-child:not(#_):not(#__){display:flex;gap:8px}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-addbox:not(#_):not(#__){margin:0;padding:12px var(--card-pad) var(--card-pad);border:0;border-top:var(--sep);border-radius:0 0 var(--card-r) var(--card-r);background:transparent;box-shadow:none}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-archived:not(#_):not(#__){display:flex;flex-direction:column;gap:12px;padding:var(--card-pad) 0}
html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-archived>.inv-hint:not(#_):not(#__){margin:0 var(--card-pad)}

html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-addbox>summary:not(#_):not(#__){justify-content:flex-start;text-align:left}

/* ---- Vendite ---- */
html body :is(#inventoryPage,#invItemsPanel) .inv-usage-strip:not(#_):not(#__){padding:0;background:transparent;border:0;box-shadow:none}
html body :is(#inventoryPage,#invItemsPanel) .inv-card-usage .rnb-card-actions.inv-usage-bar:not(#_):not(#__){margin:0;padding:0;border:0;background:transparent;gap:12px}
html body :is(#inventoryPage,#invItemsPanel) .inv-card-usage .inv-usage-act:not(#_):not(#__){margin:0;display:flex;gap:8px}
html body :is(#inventoryPage,#invItemsPanel) .inv-card-usage .inv-usage-info:not(#_):not(#__){margin-top:0;text-align:left;font-size:13px;color:var(--muted)}
html body :is(#inventoryPage,#invItemsPanel) .inv-card-usage .inv-usage-history:not(#_):not(#__){margin-top:0;background:var(--panel2);border-color:var(--line)}

/* ---- Rotture, Conteggio per il gruppo, Biancheria ---- */
html body :is(#inventoryPage,#invItemsPanel) .inv-card .brk-date:not(#_):not(#__){margin:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .brk-alert:not(#_):not(#__){margin-block:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-hist:not(#_):not(#__){margin-inline:var(--card-pad);border:0;border-top:var(--sep);border-radius:0;background:transparent;padding-top:10px}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-hist .inv-table-wrap:not(#_):not(#__){margin-inline:calc(0px - 0px)}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .tel-form:not(#_):not(#__),html body :is(#inventoryPage,#invItemsPanel) .inv-card .lin-form:not(#_):not(#__){margin-block:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-kpis:not(#_):not(#__){margin-block:0}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .actions.tel-actions:not(#_):not(#__){justify-content:flex-end}
html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-addbox:not(#_):not(#__){margin-inline:var(--card-pad)}

/* ---- Telefono (≤640 px): schede a tutta larghezza, tabelle in card (le regole di 60-mobile-stock.css restano il modello) ---- */
@media(max-width:640px){
  html body :is(#inventoryPage,#invItemsPanel) .inv-sec-head:not(#_){margin:14px 0 12px}
  html body :is(#inventoryPage,#invItemsPanel) .inv-card .rnb-card-head>div:first-child:not(#_):not(#__){flex:0 0 auto}
  html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places>*:not(#_):not(#__){flex:0 0 86%!important}
  html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-places-nav:not(#_):not(#__){display:none!important}
  html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-bar:not(#_):not(#__){padding:var(--card-pad)}
  html body :is(#inventoryPage,#invItemsPanel) :is(#invMain,#invItems) .inv-card-items .inv-foot:not(#_):not(#__){justify-content:space-between}
  html body :is(#inventoryPage,#invItemsPanel) .inv-card .inv-table tbody td:not(#_):not(#__){border-top:0}
  html body :is(#inventoryPage,#invItemsPanel) .inv-main tbody tr:not(.inv-group-row)>td:first-child:not(#_):not(#__){width:100%!important;max-width:none!important;justify-self:stretch}
}

/* ---- Allineamento a sinistra nelle schede (le vecchie regole centravano titoli e note) ---- */
html body :is(#inventoryPage,#invItemsPanel) .inv-card:not(#_):not(#__),html body :is(#inventoryPage,#invItemsPanel) .inv-card :is(.muted,.field,.field label,.brk-note,.brk-waste-hint,.tel-note,.lin-pair-note,.inv-warn,.inv-kpi b,.inv-kpi span):not(#_):not(#__){text-align:left}

html body :is(#inventoryPage,#invItemsPanel) .inv-card .field.brk-note:not(#_):not(#__){align-items:flex-start}
html body :is(#inventoryPage,#invItemsPanel) .inv-card :is(summary,label,.tel-form span,.lin-form span):not(#_):not(#__){text-align:left;justify-content:flex-start}
/* Rotture snella (1.268.90): tabella a 3 colonne, dettagli sotto il nome, costi in una scheda propria */
html body #invBreakPanel .brk-meta:not(#_){display:block;font-size:12px;color:var(--muted);margin-top:2px}
html body #invBreakPanel .brk-table:not(#_){width:100%}
html body #invBreakPanel :is(.brk-hist,.brk-waste,.brk-costs):not(#_){margin-top:16px}
html body #invBreakPanel .brk-costs .rnb-row:not(#_){display:flex;justify-content:space-between;align-items:center;gap:12px}
html body #invBreakPanel .brk-costs .inv-num:not(#_){width:96px;height:34px}

/* Aggiungi articolo: pulsante «+ Aggiungi articolo» sotto la lista, form sotto di lui quando è aperto */
html body .inv-addbar:not(#_){padding:12px var(--card-pad,20px) 16px}
html body .inv-addbar .set-add:not(#_){margin-top:0}
html body .inv-addbox:not(#_){margin:0;border-left:0;border-right:0;border-radius:0}

/* Articoli: nomi delle ubicazioni nella cella Ubicazione e le rispettive giacenze nella cella Giacenza, riga per riga sulla stessa linea */
html body #invItems tr.inv-row>td:not(#_){vertical-align:top}
html body #invItems tr.inv-row .inv-loc-picker:not(#_){min-height:26px;display:flex;flex-direction:column;justify-content:center}
html body #invItems tr.inv-row .inv-locq.is-names:not(#_),html body #invItems tr.inv-row .inv-locq.is-nums:not(#_){display:flex;flex-direction:column;gap:0;min-width:0;font-size:12px;line-height:20px}
html body #invItems tr.inv-row .inv-locq>span:not(#_){white-space:nowrap;overflow:visible}

html body #invItems th:nth-child(4):not(#_),html body #invItems td.inv-stock:not(#_){text-align:right}
html body #invItems td.inv-stock .inv-step:not(#_){justify-content:flex-end}
html body #invItems tr.inv-row .inv-locq.is-nums:not(#_){align-items:flex-end}
html body #invItems tr.is-editing td.inv-stock:not(#_){min-width:190px}
html body #invItems tr.is-editing td.inv-stock .inv-step input:not(#_){min-width:64px;width:64px;text-align:right}
/* campi per ubicazione nella cella Giacenza, sulla riga del nome dell'ubicazione */
html body #invItems tr.inv-row .inv-locq>span:not(#_){height:28px;display:flex;align-items:center}
html body #invItems tr.inv-row .inv-locq.is-nums:not(#_){margin-top:6px}
html body #invItems tr.inv-row .inv-locq.is-names:not(#_){margin-top:6px}
html body #invItems tr.inv-row .inv-locq.is-nums input:not(#_){width:64px;min-width:64px;height:24px;padding:0 6px;text-align:right;font-size:12px}
html body #invItems td.inv-stock:not(#_),html body #invItems th:nth-child(4):not(#_){min-width:150px}
html body #invItems td.inv-stock .inv-step .inv-ro:not(#_){min-width:32px;text-align:center;white-space:nowrap}
html body #invItems td.inv-stock .inv-step:not(#_){flex-wrap:nowrap}
html body #invItems td.inv-stock .inv-step input:not(#_){width:64px;min-width:64px;height:28px;text-align:right}

/* tendina delle categorie: si vede solo su telefono (60-mobile-stock.css), da 641 px restano le schede */
html body #invItems .inv-filters>.inv-cat-select:not(#_):not(#__){display:none}

/* Scheda degli articoli compatta da 641 px (1.299.2, scelta dell'utente): le nove colonne stanno sempre nella larghezza della scheda,
   senza scorrere in orizzontale: tabella a larghezza fissa con colonne in percentuale, 6 px tra le colonne, nome e intestazioni a capo.
   Fino a 1280 px (schermi medi) ricerca, filtri e azioni stanno su una riga: le azioni sono pulsanti con sola icona (eccezione dichiarata
   alla regola «icone solo su telefono») e la giacenza si scrive nel campo, senza − e +. Da 1281 px tornano i testi e i pulsanti − +. */
@media(min-width:641px){
 html body #invItems .inv-card-items table.inv-main:not(#_):not(#__):not(#___):not(#____):not(#_____){table-layout:fixed!important;width:100%!important;min-width:0!important}
 html body #invItems .inv-card-items table.inv-main :is(th,td):not(#_):not(#__):not(#___):not(#____):not(#_____){padding-inline:6px!important;min-width:0!important}
 html body #invItems .inv-card-items table.inv-main thead th:not(#_):not(#__):not(#___):not(#____):not(#_____){font-size:10px!important;letter-spacing:0!important;white-space:normal!important;line-height:1.2}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(1):not(#_):not(#__):not(#___):not(#____):not(#_____){width:20%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(2):not(#_):not(#__):not(#___):not(#____):not(#_____){width:11%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____){width:13%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(4):not(#_):not(#__):not(#___):not(#____):not(#_____){width:14%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(5):not(#_):not(#__):not(#___):not(#____):not(#_____){width:9%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(6):not(#_):not(#__):not(#___):not(#____):not(#_____){width:7%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(7):not(#_):not(#__):not(#___):not(#____):not(#_____){width:9%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(8):not(#_):not(#__):not(#___):not(#____):not(#_____){width:8%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(9):not(#_):not(#__):not(#___):not(#____):not(#_____){width:9%!important}
 html body #invItems .inv-card-items table.inv-main td.inv-name .inv-name-text:not(#_):not(#__):not(#___):not(#____):not(#_____){white-space:normal!important;overflow-wrap:anywhere}
 html body #invItems .inv-card-items table.inv-main td.inv-status .inv-chip:not(#_):not(#__):not(#___):not(#____):not(#_____){white-space:normal!important;padding-inline:6px!important;font-size:11px!important;line-height:1.25}
 html body #invItems .inv-card-items table.inv-main td:is(.inv-pack,.inv-packcost,.inv-cost) .inv-ro:not(#_):not(#__):not(#___):not(#____):not(#_____){white-space:nowrap}
 html body #invItems .inv-card-items table.inv-main td:last-child .inv-ro:not(#_):not(#__):not(#___):not(#____):not(#_____){white-space:normal;overflow-wrap:anywhere}
 html body #invItems .inv-card-items table.inv-main td.inv-stock .inv-step input:not(#_):not(#__):not(#___):not(#____):not(#_____){min-width:0!important}
}
@media(min-width:641px) and (max-width:1280px){
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(1):not(#_):not(#__):not(#___):not(#____):not(#_____){width:22%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(2):not(#_):not(#__):not(#___):not(#____):not(#_____){width:12%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____){width:13%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(4):not(#_):not(#__):not(#___):not(#____):not(#_____){width:10%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(9):not(#_):not(#__):not(#___):not(#____):not(#_____){width:10%!important}
 html body #invItems .inv-card-items table.inv-main td.inv-stock .inv-step>button:not(#_):not(#__):not(#___):not(#____):not(#_____){display:none!important}
 html body #invItems .inv-card-items table.inv-main td.inv-stock .inv-step input:not(#_):not(#__):not(#___):not(#____):not(#_____){width:100%!important}
 html body #invItems .inv-card-items .inv-bar:not(#_):not(#__):not(#___):not(#____):not(#_____){padding:12px 16px!important;gap:8px!important}
 html body #invItems .inv-card-items .inv-tools:not(#_):not(#__):not(#___):not(#____):not(#_____){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:var(--gap-ctl,8px)!important}
 html body #invItems .inv-card-items .inv-tools>.search-field:not(#_):not(#__):not(#___):not(#____):not(#_____){flex:1 1 160px!important;min-width:120px!important;width:auto!important}
 html body #invItems .inv-card-items .inv-tools>.inv-filters:not(#_):not(#__):not(#___):not(#____):not(#_____){flex:0 1 auto!important;display:flex!important;flex-wrap:nowrap!important;gap:var(--gap-ctl,8px)!important}
 html body #invItems .inv-card-items .inv-filters>select:not(.inv-cat-select):not(#_):not(#__):not(#___):not(#____):not(#_____){width:auto!important;max-width:150px!important;min-width:0!important}
 html body #invItems .inv-card-items .inv-actions:not(#_):not(#__):not(#___):not(#____):not(#_____){flex:0 0 auto!important;display:flex!important;flex-wrap:nowrap!important;gap:var(--gap-ctl,8px)!important;margin:0!important}
 html body #invItems .inv-card-items .inv-actions .rnb-ic:not(#_):not(#__):not(#___):not(#____):not(#_____){display:block!important;width:18px;height:18px;flex:none}
 html body #invItems .inv-card-items .inv-actions .rnb-bt:not(#_):not(#__):not(#___):not(#____):not(#_____){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 html body #invItems .inv-card-items .inv-actions>:is(button,label,details):not(#_):not(#__):not(#___):not(#____):not(#_____){display:flex!important;align-items:center;justify-content:center;width:38px!important;min-width:38px!important;height:34px!important;min-height:34px!important;padding:0!important;margin:0!important}
 html body #invItems .inv-card-items .inv-actions>.inv-add-mobile-trigger:not(#_):not(#__):not(#___):not(#____):not(#_____){display:none!important}
 html body #invItems .inv-card-items .inv-actions>details.inv-dl:not(#_):not(#__):not(#___):not(#____):not(#_____){width:58px!important;min-width:58px!important}
 html body #invItems .inv-card-items .inv-actions>.inv-dl>summary:not(#_):not(#__):not(#___):not(#____):not(#_____){position:relative;display:flex;align-items:center;justify-content:flex-start;width:100%;height:34px!important;min-height:34px!important;padding:0 0 0 12px!important}
 html body #invItems .inv-card-items .inv-actions>.inv-dl>summary:not(#_):not(#__):not(#___):not(#____):not(#_____)::after{position:absolute;right:11px;top:50%;margin-top:-3px}
 html body #invItems .inv-card-items .inv-actions>.inv-toggle:not(#_):not(#__):not(#___):not(#____):not(#_____){position:relative;cursor:pointer;color:var(--text);border:1px solid var(--ui-line);background:var(--panel)}
 html body #invItems .inv-card-items .inv-actions>.inv-toggle>input:not(#_):not(#__):not(#___):not(#____):not(#_____){position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;margin:0;opacity:0;cursor:pointer}
 html body #invItems .inv-card-items .inv-actions>.inv-toggle:has(input:checked):not(#_):not(#__):not(#___):not(#____):not(#_____){background:var(--ui-tint);box-shadow:inset 0 -3px 0 var(--azure)}
 html body #invItems .inv-card-items .inv-actions>.inv-toggle:has(input:focus-visible):not(#_):not(#__):not(#___):not(#____):not(#_____){outline:2px solid var(--ui-azure);outline-offset:2px}
}
/* schermi medi, rifinitura: colonne ribilanciate, intestazioni più piccole, ubicazione a capo, campo della giacenza largo quanto la colonna */
@media(min-width:641px) and (max-width:1280px){
 html body #invItems .inv-card-items table.inv-main :is(th,td):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){padding-inline:4px!important}
 html body #invItems .inv-card-items table.inv-main :is(th,td):first-child:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){padding-left:10px!important}
 html body #invItems .inv-card-items table.inv-main thead th:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){font-size:9.5px!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(1):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:21%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(2):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:11%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:14%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(4):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:9%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(5):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:9%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(6):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:8%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(7):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:9%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(8):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:8%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(9):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){width:11%!important}
 html body #invItems .inv-card-items table.inv-main td.inv-stock .inv-step:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){display:flex!important;min-width:0!important;width:100%}
 html body #invItems .inv-card-items table.inv-main td.inv-stock .inv-step input:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){flex:1 1 0!important;width:100%!important;min-width:0!important;max-width:100%!important;padding-inline:4px!important}
 html body #invItems .inv-card-items table.inv-main td .inv-loc-picker>summary:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){white-space:normal!important;overflow-wrap:anywhere;font-size:12px!important;line-height:1.25}
}
@media(min-width:641px) and (max-width:1280px){
 html body #invItems .inv-card-items table.inv-main thead th:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){font-size:9px!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(1):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){width:20%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(2):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){width:12%!important}
 html body #invItems .inv-card-items table.inv-main td.inv-status .inv-chip:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){display:inline-block;max-width:100%!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere;font-size:10.5px!important;padding-inline:5px!important}
}
@media(min-width:641px) and (max-width:1280px){
 html body #invItems .inv-card-items table.inv-main thead th :is(.th-in,.th-in>span):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){font-size:9px!important;letter-spacing:0!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(3):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){width:13%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(4):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){width:10%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(5):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){width:10%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(6):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){width:9%!important}
 html body #invItems .inv-card-items table.inv-main thead th:nth-child(9):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){width:9%!important}
}
@media(min-width:641px) and (max-width:1280px){
 html body #invItems .inv-card-items table.inv-main td:last-child .inv-ro:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){font-size:11px!important;overflow-wrap:break-word!important}
}

/* Rotture e scarti: tabella sempre dentro la scheda, senza scorrimento orizzontale */
html body #inventoryPage #invBreakPanel .brk-table:not(#_):not(#__){table-layout:fixed;width:100%;min-width:0}
html body #inventoryPage #invBreakPanel .brk-table :is(th,td):not(#_):not(#__){white-space:normal;overflow-wrap:anywhere}
html body #inventoryPage #invBreakPanel .brk-table :is(th,td):nth-child(1):not(#_):not(#__){width:46%}
html body #inventoryPage #invBreakPanel .brk-table :is(th,td):nth-child(2):not(#_):not(#__){width:30%;text-align:right}
html body #inventoryPage #invBreakPanel .brk-table :is(th,td):nth-child(3):not(#_):not(#__){width:24%;text-align:right}
html body #inventoryPage #invBreakPanel .brk-table td small:not(#_):not(#__){display:block}
html body #inventoryPage #invBreakPanel .brk-table .cnt-step:not(#_):not(#__){justify-content:flex-end}
html body #inventoryPage #invBreakPanel .brk-table .inv-chip:not(#_):not(#__){white-space:nowrap}

/* == css/ui/61-page-account.css == */
/* Stile «Cantina»: finestra Account (js/auth.js, accountModal). Solo token, regole comuni in 58-schede.css.
   1.280.0 (riprogettazione sui criteri di CLAUDE.md): la finestra è una scheda (intestazione con linea sotto, piede con Esci
   a sinistra e Chiudi a destra); a sinistra il menu delle sezioni con la voce attiva .is-active (fondo --ui-tint, barra
   petrolio, testo scuro in grassetto); a destra ogni sezione è una colonna di schede come le Impostazioni:
     .acct-pane.set-stack > section.rnb-card.set-card > header.rnb-card-head (h3.rnb-card-title + .set-count o .rnb-card-actions)
                                                      > .rnb-card-body (campi in .form-grid.acc-grid, gruppi con .rnb-sep-title, liste .set-list)
                                                      > footer.rnb-card-foot (secondaria a sinistra, principale a destra)
   Mai titoli h3/h4 sciolti, mai riquadri dentro una scheda. */

/* ===== Finestra ===== */
html body #accountModal.modal-backdrop:not(#_){padding:24px!important}
html body .acct-modal:not(#_){width:min(920px,100%)!important;max-width:100%!important;height:min(660px,calc(100vh - 48px));max-height:calc(100vh - 48px);padding:0!important;display:flex!important;flex-direction:column;overflow:hidden;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:0!important;box-shadow:var(--card-sh)!important;box-sizing:border-box}
.acct-head{display:flex;align-items:center;gap:14px;padding:16px var(--card-pad,20px);border-bottom:var(--sep,1px solid var(--line));flex:none}
.acct-avatar{flex:none;width:40px;height:40px;border-radius:0;display:inline-flex;align-items:center;justify-content:center;background:var(--ui-tint);color:var(--ui-tint-ink);font-size:15px;font-weight:650;letter-spacing:.02em}
.acct-who{flex:1;min-width:0}
html body .acct-modal .acct-name:not(#_){margin:0;font-family:var(--font-display,inherit);font-size:20px;font-weight:600;color:var(--text);overflow-wrap:anywhere;line-height:1.2}
.acct-meta{margin:2px 0 0;font-size:13px;color:var(--muted)}
html body .acct-x:not(#_){flex:none;width:34px;height:34px;min-height:34px;padding:0!important;border-radius:0!important;background:transparent!important;border:1px solid transparent!important;color:var(--muted)!important;font-size:22px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
html body .acct-x:not(#_):hover{background:var(--panel2)!important;color:var(--text)!important}
.acct-body{flex:1;min-height:0;display:grid;grid-template-columns:160px minmax(0,1fr)}

/* ===== Menu delle sezioni: come la colonna di sezione (62-section-nav.css) ===== */
.acct-nav{display:flex;flex-direction:column;gap:2px;padding:16px 0;border-right:var(--sep,1px solid var(--line));background:var(--panel2);overflow:auto}
html body .acct-nav button:not(#_):not(#__):not(#___){display:flex;align-items:center;width:100%;height:var(--ui-h,34px);min-height:var(--ui-h,34px);padding:0 16px!important;border-radius:0!important;border:0!important;background:transparent!important;color:var(--muted)!important;font-size:13px!important;font-weight:600!important;text-align:left;justify-content:flex-start!important;cursor:pointer;box-shadow:none!important;transition:none!important}
html body .acct-nav button:not(.is-active):not(#_):not(#__):not(#___):hover{background:var(--panel)!important;color:var(--text)!important}
html body .acct-nav button.is-active:not(#_):not(#__):not(#___){background:var(--ui-tint)!important;color:var(--text)!important;font-weight:700!important;box-shadow:inset 3px 0 0 var(--azure)!important}
.acct-nav button[hidden]{display:none!important}

/* ===== Sezioni: colonna di schede ===== */
.acct-panes{min-width:0;overflow:auto;padding:var(--card-pad,20px);background:var(--bg)}
.acct-pane{display:none;min-width:0;margin:0}
.acct-pane.is-on:not([hidden]),.acct-pane #usersPanel.set-stack{display:flex;flex-direction:column;gap:var(--card-gap,16px);min-width:0}
html body .acct-pane .set-card:not(#_):not(#__){margin:0;min-width:0;padding:0!important;overflow:visible}
html body .acct-pane .set-card>.rnb-card-head:not(#_):not(#__){margin:0;padding:16px var(--card-pad,20px)}
html body .acct-pane .set-card .rnb-card-title:not(#_):not(#__){margin:0!important;letter-spacing:0!important;text-transform:none!important;color:var(--text)!important;text-align:left}
html body .acct-pane .set-card>.rnb-card-body:not(#_):not(#__){padding:var(--card-pad,20px);min-width:0}
html body .acct-pane .set-card .rnb-sep-title:not(#_):not(#__){margin:20px 0 12px}
html body #accCodeRemove:disabled:not(#_){visibility:hidden}
.acct-pane .acc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.acct-pane .acc-grid .field{display:flex;flex-direction:column;gap:var(--gap-label,4px);margin:0;min-width:0}
.acct-pane .acc-grid label{margin:0}
.acct-pane .acc-grid label small{font-weight:500}
html body .acct-pane :is(input,select):not([type=checkbox]):not([type=radio]):not(#_){height:var(--ui-h,34px)!important;min-height:var(--ui-h,34px)!important;border-radius:0!important;padding:0 10px!important;width:100%;box-sizing:border-box}
.acct-pane .notice{margin:var(--gap-row,12px) 0 0}

/* ===== Aspetto: tessere del tema (anteprime a colori fissi: eccezione ammessa in docs/audit-stile.md) ===== */
.acct-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html body .acct-theme:not(#_):not(#__){display:flex;flex-direction:column;align-items:stretch;gap:8px;height:auto!important;min-height:0!important;padding:10px!important;border-radius:0!important;background:var(--panel)!important;border:1px solid var(--ui-line,var(--line))!important;color:var(--text)!important;cursor:pointer;box-shadow:none!important;text-align:center}
html body .acct-theme:not(.is-active):not(#_):not(#__):hover{background:var(--panel2)!important}
html body .acct-theme.is-active:not(#_):not(#__){background:var(--ui-tint)!important;border-color:var(--azure)!important;box-shadow:inset 0 -3px 0 var(--azure)!important}
.acct-theme-name{font-size:13px;font-weight:600}
.acct-theme.is-active .acct-theme-name{font-weight:700}
.acct-prev{display:block;height:64px;border-radius:0;border:1px solid var(--line);position:relative;overflow:hidden}
.acct-prev::before{content:"";position:absolute;left:8px;right:8px;top:10px;height:8px;border-radius:0;background:var(--pv-bar,#E4DFD6)}
.acct-prev::after{content:"";position:absolute;left:8px;width:40%;bottom:10px;height:20px;border-radius:0;background:var(--pv-card,#fff);border:1px solid var(--pv-bar,#E4DFD6)}
.acct-prev.is-light{--pv-bar:var(--dk-bg7);--pv-card:var(--dk-bg8);background:var(--dk-bg9)}
.acct-prev.is-dark{--pv-bar:var(--dk-bg10);--pv-card:var(--dk-bg11);background:var(--dk-bg12)}
.acct-prev.is-auto{--pv-bar:var(--dk-bg13);--pv-card:var(--dk-bg8);background:linear-gradient(90deg,var(--dk-bg9) 50%,var(--dk-bg12) 50%)}

/* ===== Amministrazione: righe .set-list (63-settings-model.css) ===== */
html body .adm-list .set-row-text:not(#_):not(#__){gap:8px;justify-content:flex-start;text-align:left}

/* ===== Utenti (js/users-panel.js): la lista scorre in orizzontale dentro la scheda se non ci sta ===== */
html body #usersPanel .usr-list:not(#_){overflow-x:auto;scrollbar-width:none}
html body #usersPanel .usr-list>:is(.usr-cols,.usr-row):not(#_){min-width:640px}
#usersPanel .usr-newlocs .rnb-sep-title{margin-bottom:0}

/* ===== Piede ===== */
.acct-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px var(--card-pad,20px);border-top:var(--sep,1px solid var(--line));flex:none;background:var(--panel)}
html body .acct-foot .btn:not(#_){height:var(--ui-h,34px);min-height:var(--ui-h,34px);border-radius:0!important;font-size:13px!important;font-weight:600}
html body .acct-foot #accLogout:not(#_):not(#__){color:var(--bad)!important}

/* ===== Schermi stretti: menu su una riga orizzontale sopra le schede, come i rami .sec-tree-h; scorre senza barra ===== */
@media(max-width:760px){
 .acct-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
 .acct-nav{flex-direction:row;flex-wrap:nowrap;gap:0;padding:0;border-right:0;border-bottom:var(--sep,1px solid var(--line));overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
 .acct-nav::-webkit-scrollbar{display:none}
 html body .acct-nav button:not(#_):not(#__):not(#___){flex:1 0 auto;width:auto;justify-content:center!important;padding:0 14px!important;white-space:nowrap}
 html body .acct-nav button.is-active:not(#_):not(#__):not(#___){box-shadow:inset 0 -3px 0 var(--azure)!important}
}
@media(max-width:640px){
 html body #accountModal.modal-backdrop:not(#_){padding:0!important;align-items:stretch}
 html body .acct-modal:not(#_){width:100%!important;height:100dvh;max-height:100dvh;border-radius:0!important;border:0!important}
 .acct-head{padding:12px 16px}
 .acct-panes{padding:12px}
 html body .acct-pane .set-card>.rnb-card-head:not(#_):not(#__){padding:12px 16px}
 html body .acct-pane .set-card>.rnb-card-body:not(#_):not(#__){padding:16px}
 .acct-pane .acc-grid{grid-template-columns:1fr}
 .acct-themes{grid-template-columns:1fr;gap:8px}
 html body .acct-theme:not(#_):not(#__){flex-direction:row!important;align-items:center!important;text-align:left!important}
 .acct-prev{width:72px;height:44px;flex:none}
 html body .acct-nav button:not(#_):not(#__):not(#___),html body .acct-x:not(#_),html body .acct-foot .btn:not(#_),html body .acct-pane .btn:not(#_){min-height:44px;height:44px}
 html body .acct-pane :is(input,select):not([type=checkbox]):not([type=radio]):not(#_){height:44px!important;min-height:44px!important;font-size:16px!important}
 html body .acct-pane .rnb-card-foot:not(#_){display:grid;grid-template-columns:1fr 1fr}
 html body .acct-pane .rnb-card-foot>:only-child:not(#_){grid-column:1/-1}
 .acct-foot{padding:10px 16px}
}

/* ===== Utenti, revisione 1.309.2: colonne che stanno nella scheda, avvisi come etichette, azioni Modifica · Password · Altro ===== */
html body #usersPanel .usr-cols:not(#_):not(#__),html body #usersPanel .usr-row:not(#_):not(#__){grid-template-columns:minmax(110px,1fr) 112px minmax(200px,1.8fr) 44px 96px;gap:10px 12px}
html body #usersPanel .usr-list>:is(.usr-cols,.usr-row):not(#_){min-width:600px}
html body #usersPanel .usr-cols>span:nth-child(4):not(#_){text-align:left}
html body #usersPanel .usr-row:not(#_):not(#__){align-items:start;padding:12px 0}
html body #usersPanel .usr-row>:not(.usr-pwline):not(#_){min-height:var(--ui-h);display:flex;flex-direction:column;justify-content:center}
html body #usersPanel .usr-row>.usr-name:not(#_){justify-content:flex-start}
html body #usersPanel .usr-chips:not(#_){gap:4px 14px}
html body #usersPanel .usr-chip:not(#_){white-space:nowrap}
html body #usersPanel .usr-tags:not(#_){display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
html body #usersPanel .usr-tag:not(#_){font-size:11px;font-weight:600;padding:2px 6px;border:1px solid currentColor;line-height:1.3}
html body #usersPanel .usr-tag.is-warn:not(#_){color:var(--warn-ink,var(--bad-ink))}
html body #usersPanel .usr-acts:not(#_):not(#__){flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center}
html body #usersPanel .usr-more:not(#_){position:relative}
html body #usersPanel .usr-more>summary:not(#_){list-style:none;cursor:pointer}
html body #usersPanel .usr-more>summary::-webkit-details-marker{display:none}
html body #usersPanel .usr-more-pop:not(#_){position:absolute;right:0;top:calc(100% + 4px);z-index:8;display:grid;gap:6px;min-width:190px;padding:8px;background:var(--panel);border:1px solid var(--box-line);box-shadow:var(--box-sh)}
html body #usersPanel .usr-more-pop .btn:not(#_){width:100%;justify-content:flex-start}
html body #usersPanel .usr-pwline:not(#_):not(#__){display:grid;grid-template-columns:1fr;gap:var(--gap-row);padding:12px 0 0;justify-content:stretch}
html body #usersPanel .usr-pwline .rnb-quick-row:not(#_){display:flex;gap:var(--gap-ctl)}
html body #usersPanel .usr-pwline .usr-chip:not(#_){white-space:normal}
html body #usersPanel .usr-pwline .actions:not(#_){display:flex;justify-content:space-between;gap:var(--gap-ctl)}
html body #usersPanel .usr-shown>span:not(#_){overflow-wrap:anywhere}
html body .acct-meta:not(#_){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acct-who{min-width:0}
@media(max-width:640px){
 html body #usersPanel .usr-list>:is(.usr-cols,.usr-row):not(#_){min-width:0}
 html body #usersPanel .usr-row:not(#_):not(#__){grid-template-columns:1fr auto;gap:10px 14px}
 html body #usersPanel .usr-row>.usr-name:not(#_):not(#__){grid-column:1}
 html body #usersPanel .usr-row>.usr-acts:not(#_):not(#__){grid-column:2;grid-row:1;justify-content:flex-end}
 html body #usersPanel .usr-row>[data-label="Location"]:not(#_){grid-column:1/-1}
 html body #usersPanel .usr-row>.usr-name:not(#_):not(#__)::before{display:none}
 html body #usersPanel .usr-row>[data-label="Ruolo"]:not(#_):not(#__){grid-column:1;grid-row:2}
 html body #usersPanel .usr-row>[data-label="Attivo"]:not(#_):not(#__){grid-column:2;grid-row:2;justify-content:flex-start}
 html body #usersPanel .usr-chips:not(#_){display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
 html body #usersPanel .usr-chip:not(#_){white-space:normal}
 html body .acct-nav button:not(#_):not(#__):not(#___){flex:1 1 auto;padding:0 10px!important}
}
@media(min-width:641px){html body .acct-modal:not(#_):not(#__){width:min(1080px,100%)!important}}

/* ===== Account, revisione 1.309.3: codice manager dentro Accesso, finestra alta quanto il contenuto, barra a voci pari ===== */
html body .acct-modal:not(#_):not(#__){height:auto}
.acct-body{flex:0 1 auto}
.acct-panes{min-height:0}
.acct-form>.acct-end{display:flex;justify-content:flex-end}
.acct-code{padding-top:var(--gap-row,12px);border-top:var(--sep,1px solid var(--line))}
.acct-code[hidden]{display:none!important}
.acct-code-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--gap-ctl,8px)}
.acct-code-head .rnb-sep-title{margin:0}
.acct-code .rnb-quick-row input{flex:1 1 auto;min-width:0}
@media(max-width:640px){
 html body .acct-modal:not(#_):not(#__){height:100dvh}
 .acct-body{flex:1 1 auto}
 html body .acct-nav button:not(#_):not(#__):not(#___):not(#____){flex:1 1 0;min-width:0;padding:0 6px!important}
 .acct-form>.acct-end .btn{width:100%}
 html body .acct-code .rnb-quick-row:not(#_):not(#__){display:grid!important;grid-template-columns:1fr 1fr;gap:var(--gap-ctl,8px)}
 .acct-code-head{flex-direction:column;align-items:flex-start;gap:2px}
 html body .acct-code .rnb-quick-row input:not(#_):not(#__){grid-column:1/-1;width:100%}
 html body .acct-code .rnb-quick-row .btn:not(#_):not(#__){width:100%}
}

/* == css/ui/61-page-bookings.css == */
/* Stile «Cantina» (1.268.1): pagine bookings (Prenotazioni, Comunicazione). Solo token, regole comuni in 58-schede.css. */

/* ---- Prenotazioni: barra e elenco in una scheda ---- */
html body #reservationsPage>*:not(#_){margin-bottom:var(--card-gap)}
html body #reservationsPage .rv:not(#_){display:block;overflow:visible}
html body #reservationsPage .rv-bar:not(#_){gap:10px 12px;margin:0}
html body #reservationsPage .rv-body:not(#_){padding:0}
html body #reservationsPage .rv-bar>div:first-child:not(#_){flex:0 1 auto}
html body #reservationsPage .rv-bar .rv-search:not(#_){flex:1 1 220px;min-width:0}
html body #reservationsPage .rv-bar-actions:not(#_){margin-left:auto;flex-wrap:wrap}
html body #reservationsPage .rv-scroll:not(#_){border:0;border-radius:0;background:transparent}
html body #reservationsPage .rv-row:not(#_){min-width:0;overflow-wrap:anywhere}
html body #reservationsPage .rv-row:last-child:not(#_){border-bottom:0}
html body #reservationsPage .rv-marker:not(#_){margin:0}
html body #reservationsPage .rv-next:not(#_){box-shadow:inset 3px 0 0 var(--now);background:var(--panel2)}
html body #reservationsPage .rv-empty:not(#_){padding:36px var(--card-pad)}
/* importatore PDF: scheda con titolo separato da linea */
html body #reservationsPage .reservation-import-panel:not(#_){border:1px solid var(--line);border-radius:0;box-shadow:var(--card-sh);background:var(--panel);margin-bottom:var(--card-gap)}
html body #reservationsPage .reservation-import-panel[open]>summary:not(#_){border-bottom:var(--sep)}
html body #reservationsPage .imp-table:not(#_){border-color:var(--line)}
html body #reservationsPage .imp-table th:not(#_){background:var(--panel2)}

/* ---- Comunicazione: tre schede affiancate (messaggi, dati estratti, risposta) ---- */
html body #commsPage .cm-wrap:not(#_){display:grid;grid-template-columns:minmax(0,1fr);gap:var(--card-gap);align-items:start}
html body #commsPage .cm-main:not(#_){min-width:0}
html body #commsPage .cm-detail:not(#_){display:grid;grid-template-columns:minmax(0,1fr);gap:var(--card-gap);align-items:start;min-width:0}
html body #commsPage .cm-col:not(#_){display:grid;gap:var(--card-gap);align-content:start;min-width:0}
html body #commsPage .cm-card>.rnb-card-foot:has(>:nth-child(2)):not(#_){justify-content:space-between}
@media(min-width:1280px){
 html body #commsPage .cm-detail:not(.is-single):not(#_){grid-template-columns:repeat(2,minmax(0,1fr))}
}
html body #commsPage .cm-list:not(#_){display:block;max-height:none;overflow:visible;padding:0;background:var(--panel)}
html body #commsPage .cm-list>.rnb-card-body:not(#_){padding:0;display:block}
html body #commsPage .cm-list .rnb-card-body>*:not(.cm-mail):not(details):not(.cm-row):not(.cm-empty):not(#_){margin:0}
html body #commsPage .cm-list .rnb-card-body>.cm-mail:not(#_){margin:var(--card-pad) var(--card-pad) 0}
html body #commsPage .cm-list .rnb-card-body>.cm-mail+.rnb-rows:not(#_){margin-top:var(--card-pad);border-top:var(--sep)}
html body #commsPage .cm-list .rnb-rows>.cm-row:not(#_){width:100%;margin:0;border:0!important;border-radius:0!important;background:transparent!important;padding:var(--row-pad) var(--card-pad)}
html body #commsPage .cm-list .rnb-rows>.cm-row+.cm-row:not(#_){border-top:var(--sep)!important}
html body #commsPage .cm-list .rnb-rows>.cm-row:hover:not(#_){background:var(--panel2)!important}
html body #commsPage .cm-list .cm-row.is-active:not(#_){background:var(--panel2)!important;box-shadow:inset 3px 0 0 var(--now)!important}
html body #commsPage .cm-list .cm-empty:not(#_){margin:0;padding:var(--card-pad)}
html body #commsPage .cm-other:not(#_),html body #commsPage .cm-set:not(#_){margin:0;padding:0;border:0;border-radius:0;background:transparent;border-bottom:var(--sep)}
html body #commsPage .cm-other>summary:not(#_),html body #commsPage .cm-set>summary:not(#_){padding:12px var(--card-pad)}
html body #commsPage .cm-other .cm-row:not(#_){margin:0;border:0!important;border-radius:0!important;border-top:var(--sep)!important;background:transparent!important;padding:var(--row-pad) var(--card-pad);opacity:1}
html body #commsPage .cm-set>.cm-field:not(#_),html body #commsPage .cm-set>p:not(#_){margin:0;padding:0 var(--card-pad) 12px}
html body #commsPage .cm-card:not(#_){min-width:0}
html body #commsPage .cm-card-body:not(#_){display:grid;gap:12px}
html body #commsPage .cm-body:not(#_){margin:0;max-height:260px}
html body #commsPage .cm-result:not(#_){background:var(--box-bg-2);border-color:var(--box-line)}
html body #commsPage .cm-mail:not(#_){background:var(--box-bg-2);border-color:var(--box-line);color:var(--text)}
html body #commsPage .cm-att-row:not(#_){background:var(--box-bg-2);border-color:var(--box-line)}
html body #commsPage .cm-reply:not(#_){background:var(--panel);border-color:var(--line);color:var(--text)}
html body #commsPage .cm-grid:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))}
html body #commsPage .cm-st:not(#_){background:var(--panel2);color:var(--muted)}
html body #commsPage .cm-st.is-new:not(#_){color:var(--warn)}
html body #commsPage .cm-st.is-checked:not(#_),html body #commsPage .cm-st.is-replied:not(#_){color:var(--azure-ink)}
html body #commsPage .cm-st.is-booked:not(#_){color:var(--ok)}
html body #commsPage :is(.cm-ok):not(#_){color:var(--ok)}
html body #commsPage .cm-card :is(h3,h4,p,span,b):not(#_){overflow-wrap:anywhere}
html body #commsPage .cm-card h4:not(#_){margin:0}

@media(max-width:640px){
 html body #reservationsPage .rv-bar-actions:not(#_){margin-left:0}
 html body #reservationsPage .rv-bar>div:first-child:not(#_){flex:1 1 100%}
 
 html body #commsPage .cm-list>.cm-row:not(#_){min-height:56px}
}
html body #commsPage .cm-wrap:not(#_){text-align:left}
html body #commsPage .cm-wrap :is(.cm-field,.cm-field span,.cm-mail,.cm-empty,.cm-set,.cm-set p,.cm-other):not(#_):not(#__){text-align:left;align-items:start}
html body #commsPage :is(.cm-card,.cm-list,.cm-card *,.cm-list *):not(.btn):not(#_):not(#__){text-align:left}
html body #commsPage .cm-actions:not(#_){justify-content:flex-end}
@media(max-width:640px){
 html body #reservationsPage .rv-bar>*:not(#_){min-width:0;max-width:100%}
 html body #reservationsPage .rv-bar .date-navigation:not(#_){flex-wrap:wrap;width:100%}
 html body #reservationsPage .rv-bar .date-navigation input[type=date]:not(#_){flex:1 1 140px;min-width:0}
}

/* linea «Sei qui» leggibile (1.268.45): la regola generale .rnb-card span la rendeva grigia e piccola */
html body #reservationsPage .rv-marker .rv-marker-label:not(#_):not(#__):not(#___){font-size:12px!important;font-weight:800!important;color:var(--bg)!important;background:var(--azure)!important;padding:4px 10px!important;border-radius:0!important;opacity:1!important}
html body #reservationsPage .rv-marker .rv-clock:not(#_):not(#__):not(#___){font-size:18px!important;font-weight:700!important;color:var(--text)!important}
html body #reservationsPage .rv-marker .rv-marker-status:not(#_):not(#__):not(#___){font-size:14px!important;font-weight:600!important;color:var(--text)!important}

/* In arrivo: lista a filo della scheda (righe allineate a sinistra), impostazioni delle risposte in una scheda sorella */
html body #commsPage .cm-list>.rnb-card-body:not(#_):not(#__){padding:0!important}
html body #commsPage .cm-list .rnb-rows>.cm-row:not(#_):not(#__){display:flex!important;flex-direction:column;align-items:stretch!important;text-align:left!important;gap:2px}
html body #commsPage .cm-list .cm-row-top:not(#_){display:flex;align-items:baseline;justify-content:space-between;gap:var(--gap-ctl)}
html body #commsPage .cm-wrap>*:not(#_):not(#__):not(#___){align-self:stretch!important;width:auto!important;max-width:none!important}

/* == css/ui/61-page-finance.css == */
/* Stile «Cantina» (1.268.1): pagine finance — Fatturato (#revenuePage), Food cost (#costsPage), Analisi (#analysisPage).
   Solo token, regole comuni in 58-schede.css. Ogni blocco è una scheda (.rnb-card: intestazione, corpo, piede);
   i riquadri dei numeri sono solo .inv-kpi (regola unica in 58-schede.css). Le schede interne sono gestite da core-revenue.js
   (Fatturato, classe .rv-off) e page-sections.js (Food cost e Analisi, .pg-sec-off). */

/* ---------- Schede delle pagine finanziarie: fondo e riquadro uguali nei due temi ---------- */
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card:not(.rv-off):not(.pg-sec-off):not(#_):not(#__):not(#___){display:block!important;min-height:0!important;padding:0!important;transform:none!important;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:0!important;box-shadow:var(--card-sh)!important}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card :is(strong,small):not(.inv-kpi *):not(#_):not(#__):not(#___){display:inline;margin:0;white-space:normal;overflow:visible;text-overflow:clip;text-transform:none;letter-spacing:normal;font-size:inherit!important;line-height:inherit!important;background:none;-webkit-text-fill-color:currentColor}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card span:not(#_):not(#__):not(#___){font-size:inherit}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card>:is(.rnb-card-head,.rnb-card-body,.rnb-card-foot):not(#_):not(#__):not(#___){margin-inline:0}
html body #revenuePage .rv-costs-tbl :is(th,td) small:not(.inv-kpi *):not(#_):not(#__):not(#___){display:block}
html body #analysisPage .an-stats :is(span,b):not(#_):not(#__):not(#___){display:inline}


/* ---------- Struttura comune: colonna di schede ---------- */
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage):not(.hidden):not(#_){display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
html body :is(#costsPage,#analysisPage,#pnlPage)>.panel:not(#_){margin:0;padding:0;background:transparent;border:0;box-shadow:none;border-radius:0;min-width:0}
html body :is(#revenueCosts,#analysisBody,#pnlBody):not(#_){display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
html body :is(#revenueCosts,#analysisBody)>:not(#_){margin-top:0;margin-bottom:0;min-width:0}
html body #revenuePage .revenue-planner:not(#_){display:flex;flex-direction:column;gap:var(--card-gap);min-width:0;margin:0;padding:0;background:transparent;border:0;box-shadow:none}
html body #revenuePage .revenue-planner>:not(#_){margin-top:0;margin-bottom:0;min-width:0}
html body #revenuePage .rv-off:not(#_){display:none!important}
html body #revenuePage .rv-tabs:not(#_){margin:0}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card:not(#_){margin:0;overflow:visible}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card-title:not(#_){text-align:left}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card-sub:not(#_){text-align:left;overflow-wrap:anywhere}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card-body :is(.inv-table-wrap,.rv-sales-table,.st-scroll):not(#_){margin-inline:0}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card-body>:is(h4,.muted):not(#_){margin-top:0}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card-body>:not(:last-child):not(#_){margin-bottom:14px}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card-body>:last-child:not(#_){margin-bottom:0}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-cards:not(#_){margin:0}

/* ---------- Riquadri dei numeri (come .inv-kpi) ---------- */
html body #costsPage .rnb-card>.rnb-card-body>.inv-kpis.cost-stats:not(#_){margin:0}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .inv-kpis:not(#_){margin:0}

/* ---------- Fatturato · pianificatore ---------- */
html body #revenuePage .revenue-inputs:not(#_):not(#__){display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:var(--gap-row,12px) var(--gap-field,14px);margin:0;padding:0;border:0;background:transparent}
html body #revenuePage .revenue-inputs .field:not(#_):not(#__){display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap-label,4px);flex:1 1 170px;min-width:0;min-height:0;margin:0;padding:0;border:0;background:transparent}
html body #revenuePage .revenue-inputs .rv-date-field:not(#_):not(#__){flex:0 0 auto;max-width:100%}
html body #revenuePage .revenue-inputs .rv-month-goal:not(#_):not(#__){flex:2 1 24rem}
html body #revenuePage .revenue-inputs .date-navigation:not(#_):not(#__){display:flex!important;flex-wrap:nowrap!important;width:auto!important;max-width:100%;gap:var(--gap-ctl,8px)!important;align-items:center}
html body #revenuePage .revenue-inputs .date-navigation>input:not(#_):not(#__){flex:0 1 150px!important;min-width:130px!important;width:auto!important}
html body #revenuePage .revenue-inputs label:not(#_):not(#__){display:flex;flex-wrap:nowrap;white-space:nowrap;align-items:baseline;gap:4px 6px;min-height:0;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html body #revenuePage .revenue-inputs label .muted:not(#_){font-size:11.5px;font-weight:500;letter-spacing:0;text-transform:none}
html body #revenuePage .revenue-inputs input:not(#_):not(#__){width:100%;min-width:0;height:34px;min-height:34px;padding:0 10px;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;border-radius:0}
html body #revenuePage .revenue-inputs .rv-date-field:not(#_):not(#__){flex-direction:column;align-items:stretch;justify-content:flex-start}
html body #revenuePage .rv-date-field input[type="date"]:not(#_):not(#__){width:100%;max-width:none;flex:none}
html body #revenuePage .rv-month-row:not(#_){display:flex;gap:var(--gap-ctl,8px);align-items:center;min-width:0}
html body #revenuePage .rv-month-row>input:not(#_):not(#__){flex:1 1 0;min-width:0}
html body #revenuePage .rv-month-row .btn:not(#_):not(#__){width:auto;white-space:nowrap}
html body #revenuePage .rv-plan #revenueMonthNote:not(#_){display:block;margin-top:var(--gap-row,12px);font-size:12.5px;line-height:1.4;color:var(--muted)}
html body #revenuePage .revenue-progress-wrap .rnb-card-body:not(#_){display:flex;flex-direction:column;gap:10px}
html body #revenuePage .revenue-progress-line:not(#_){display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-width:0}
html body #revenuePage .revenue-progress-line span:not(#_){font-size:13px;color:var(--muted);overflow-wrap:anywhere}
html body #revenuePage .revenue-historic-line:not(#_){flex:1 1 100%;margin:0;font-size:13px;color:var(--muted)}
html body #revenuePage .revenue-progress:not(#_){height:10px;border-radius:0;background:var(--panel2);border:1px solid var(--line);overflow:hidden}
html body #revenuePage .revenue-progress i:not(#_){display:block;height:100%;border-radius:0;background:var(--azure)}

/* ---------- Fatturato · incasso reale ---------- */
html body #revenuePage .rv-actual-row:not(#_){padding:var(--row-pad) 0;border-top:var(--sep)}
html body #revenuePage .rv-actual-row:first-child:not(#_){padding-top:0;border-top:0}
html body #revenuePage .rv-actual-head:not(#_){display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-bottom:10px;min-width:0}
html body #revenuePage .rv-actual-head strong:not(#_){font-size:15px;font-weight:650}
html body #revenuePage .rv-actual-head span:not(#_){font-size:13px;color:var(--muted);overflow-wrap:anywhere}
html body #revenuePage .rv-actual-result:not(#_){font-weight:650;padding:2px 8px;border-radius:0;background:var(--panel2);border:1px solid var(--line)}
html body #revenuePage .rv-actual-result.is-up:not(#_){color:var(--ok)}
html body #revenuePage .rv-actual-result.is-down:not(#_){color:var(--warn)}
html body #revenuePage .rv-actual-grid:not(#_):not(#__){display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:12px;margin:0}
html body #revenuePage .rv-actual-grid .field:not(#_){margin:0;min-width:0}
html body #revenuePage .rv-actual-actions:not(#_){display:flex;flex-wrap:wrap;gap:8px}
html body #revenuePage .rv-actual-cal:not(#_){margin:12px 0 0;font-size:13px;color:var(--muted)}
html body #revenuePage .rv-losses:not(#_){display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;margin-top:12px;padding-top:12px;border-top:var(--sep);font-size:13px}
html body #revenuePage label.btn:not(#_){cursor:pointer}

/* ---------- Fatturato · previsione, come raggiungere l'obiettivo ---------- */
html body #revenuePage :is(.revenue-mix-controls,.revenue-cover-plan,.revenue-mix-live):not(#_){min-width:0;margin:0;border:0;border-radius:0;background:transparent;padding:0}
/* il riepilogo resta fisso mentre si muovono i cursori: fondo pieno, altrimenti i testi sotto passano attraverso (errore di resa su telefono) */
html body #revenuePage .revenue-mix-live:not(#_):not(#__){background:var(--panel);padding:12px 0;border-bottom:var(--sep)}
@media(max-width:640px){html body #revenuePage .revenue-mix-live:not(#_):not(#__){position:static}} /* su telefono il riepilogo (250 px) coprirebbe un terzo dello schermo: non resta fisso */
html body #revenuePage .revenue-model-note:not(#_){margin:12px 0 0;font-size:13px;color:var(--muted)}
html body :is(#revenuePage,#pnlPage) .rv-price-status:not(#_){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:0;background:var(--panel2);border:1px solid var(--line);color:var(--ok);font-size:13px;margin-bottom:12px}
html body :is(#revenuePage,#pnlPage) .rv-price-status.is-empty:not(#_){color:var(--muted)}
html body #revenuePage .rv-price-pending:not(#_){display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:0;background:var(--ui-tint);color:var(--ui-tint-ink);font-size:13px;margin-bottom:12px}

/* ---------- Fatturato · riepilogo costi, settimana e mese, importazioni ---------- */
html body #revenuePage :is(.rv-costs,.rv-period,.rv-import)>.rnb-card-body:not(#_){display:flex;flex-direction:column;gap:var(--card-gap)}
html body #revenuePage .rv-period .inv-kpis:not(#_){margin:0}
html body #revenuePage .rv-period-tools:not(#_){flex-wrap:wrap;justify-content:flex-end}
html body #revenuePage .rv-costs-tbl th small:not(#_),html body #revenuePage .rv-costs-tbl td small:not(#_){display:block;font-size:11.5px;font-weight:500;color:var(--muted);text-transform:none;letter-spacing:0}
html body #revenuePage .rv-costs-tbl tbody td:first-child:not(#_){text-align:left;font-weight:600;color:var(--text);white-space:nowrap}
html body #revenuePage .rv-costs-tbl td:not(#_){font-variant-numeric:tabular-nums;white-space:nowrap}
html body :is(#revenuePage,#pnlPage) .rv-pct:not(#_){display:inline-block;margin-left:6px;padding:1px 6px;border-radius:0;background:var(--panel2);color:var(--muted);font-size:11.5px;font-weight:600}
html body :is(#revenuePage,#pnlPage) .rv-pct.is-good:not(#_){color:var(--ok)}
html body :is(#revenuePage,#pnlPage) .rv-pct.is-bad:not(#_){color:var(--bad)}
html body :is(#revenuePage,#pnlPage) .rv-pct.is-warn:not(#_){color:var(--warn)}
html body #revenuePage .rv-period-tbl tbody tr:not(.rv-closed):not(#_){cursor:pointer}
html body #revenuePage .rv-period-tbl tbody tr:not(.rv-closed):not(#_):hover td{background:var(--panel2)}
html body #revenuePage .rv-period-tbl tr.is-today td:not(#_){background:var(--ui-tint)}
html body #revenuePage .rv-period-tbl tr.rv-closed td:not(#_){color:var(--muted);background:var(--panel2)}
html body #revenuePage .rv-period-tbl td small:not(#_){color:var(--muted);font-size:11.5px}
html body #revenuePage .rv-period-tbl tfoot :is(th,td):not(#_){font-weight:700;border-top:2px solid var(--line)}

/* ---------- Fatturato · storico vendite e prezzi ---------- */
html body #revenuePage .rv-sales-period:not(#_){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:var(--card-gap);margin:0 0 14px}
html body #revenuePage .rv-sales-pair:not(#_){display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:8px}
html body #revenuePage .rv-sales-pair select:not(#_){min-width:0}
html body #revenuePage .rv-sales-period .field:not(#_){margin:0;min-width:0}
html body #revenuePage .rv-sales-period small:not(#_){display:block;margin-top:4px;font-size:12px;color:var(--muted)}
html body #revenuePage .rv-sales-table:not(#_){overflow-x:auto}
html body #revenuePage .rv-sales-table :is(.rv-price-table td,.rv-price-table th):nth-child(n+3):not(#_){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
html body #revenuePage .rv-sales-table tr.is-ignored td:not(#_){color:var(--muted)}
html body #revenuePage .rv-sales-table select:not(#_){min-width:150px}
html body #revenuePage .rv-sales-legend:not(#_){font-size:13px;color:var(--muted)}

/* ---------- Food cost ---------- */
html body #costsPage .cost-card .rnb-card-actions:not(#_){gap:8px}
html body #costsPage .cost-card .rnb-card-actions input:not(#_){width:72px;text-align:right}
html body #costsPage .cost-target:not(#_){font-size:12.5px;color:var(--muted)}
html body #costsPage .cost-cols:not(#_){align-items:start}
html body #costsPage .cost-cols>.rnb-card:not(#_){min-width:0}
html body #costsPage .rnb-card-body .td-list:not(#_){list-style:none;margin:0;padding:0}
html body #costsPage .rnb-card-body .td-list .td-row:not(#_){display:flex;justify-content:space-between;align-items:center;gap:12px;padding:var(--row-pad) 0;border-top:var(--sep);min-width:0}
html body #costsPage .rnb-card-body .td-list .td-row:first-child:not(#_){border-top:0;padding-top:0}
html body #costsPage .rnb-card-body h4:not(#_){margin:16px 0 8px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html body #costsPage .rnb-card-body>h4:first-child:not(#_){margin-top:0}
html body #costsPage .cost-goals .cost-goals-body:not(#_){display:flex;flex-direction:column;gap:var(--card-gap)}


html body #costsPage .cost-chips:not(#_){display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
html body #costsPage .cost-detail:not(#_){margin:0}
html body #costsPage .cat-cards:not(#_){margin:12px 0 0}

/* ---------- Analisi ---------- */
html body #analysisPage #analysisBody>.top:not(#_){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0 0 var(--card-gap);border-bottom:var(--sep);background:transparent;box-shadow:none}
html body #analysisPage #analysisBody>.top p:not(#_){margin:0;font-size:13px;color:var(--muted)}
html body #analysisPage .an-cat.rnb-card:not(#_):not(#__){margin:0}
html body #analysisPage .an-stats:not(#_){display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;line-height:1.4;color:var(--muted)}
html body #analysisPage .rnb-card-body>*+*:not(#_){margin-top:14px}
html body #analysisPage .rnb-card-body :is(.an-col,.an-glass-block,.an-rep-rules,.an-pie,.an-sim-projection,.an-rule-grid>div)>.rnb-sep-title:first-child:not(#_){margin-top:0}
html body #analysisPage .an-grid:not(#_){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap);align-items:start}
html body #analysisPage .an-col:not(#_){min-width:0}
html body #analysisPage .an-glass-block .rnb-sep-title small:not(#_){font-weight:600;color:var(--muted)}
html body #analysisPage .an-bars:not(#_){list-style:none;margin-block:0;padding:0}
html body #analysisPage .an-bars>.an-row:not(#_){padding:var(--row-pad) 0;min-width:0}
html body #analysisPage .an-bars>.an-row+.an-row:not(#_){border-top:var(--sep)}
html body #analysisPage .an-row-name:not(#_){min-width:0;overflow-wrap:anywhere}
html body #analysisPage .an-rep-row:not(#_){display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,2fr) auto;align-items:center;gap:6px 16px}
html body #analysisPage .an-rep-hint:not(#_){font-size:13px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
html body #analysisPage .an-empty:not(#_),html body #analysisPage .an-rep-note:not(#_){margin-block:0;font-size:13px;line-height:1.45;color:var(--muted)}
html body #analysisPage .an-more:not(#_){margin-top:12px}
html body #analysisPage .an-rev-filter:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html body #analysisPage .an-rev-filter label:not(#_){display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--muted)}
html body #analysisPage .an-rev-filter input:not(#_){width:100px;text-align:right;font-variant-numeric:tabular-nums}
html body #analysisPage .an-pie-grid:not(#_){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap)}
html body #analysisPage .an-pie:not(#_){min-width:0;margin:0}
html body #analysisPage .an-pie figcaption:not(#_){margin:0}
html body #analysisPage .an-pie-content:not(#_){display:grid;grid-template-columns:minmax(130px,.8fr) minmax(180px,1.2fr);align-items:center;gap:12px}
html body #analysisPage .an-pie-content svg:not(#_){display:block;width:min(100%,220px);margin:auto}
html body #analysisPage .an-pie-legend:not(#_){display:grid;max-height:260px;overflow:auto;list-style:none;margin:0;padding:0}
html body #analysisPage .an-pie-legend li>span:not(#_),html body #analysisPage .an-pie-legend li>button:not(#_){display:grid;width:100%;grid-template-columns:10px minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:5px 4px;border:0;background:transparent;color:var(--text);text-align:left}
html body #analysisPage .an-pie-legend li>button:not(#_){cursor:pointer}
html body #analysisPage .an-pie-legend li>button:not(#_):hover{background:var(--ui-tint)}
html body #analysisPage .an-pie-legend i:not(#_){width:9px;height:9px;border-radius:50%;background:var(--pie-color)}
html body #analysisPage .an-pie-name:not(#_){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}
html body #analysisPage .an-pie-legend b:not(#_){font-size:12.5px;white-space:nowrap}
html body #analysisPage .an-pie-legend small:not(#_){color:var(--muted);font-size:11.5px;text-align:right;white-space:nowrap}
/* Da sostituire: le regole stanno in fondo alla scheda, come gruppo con titolo e pulsante secondario a sinistra */
html body #analysisPage .an-rep-rules:not(#_):not(#__){display:block;margin-top:28px;padding:0;border:0;background:transparent;border-radius:0}
html body #analysisPage .an-rep-grid:not(#_){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:var(--card-gap);margin-bottom:14px}
html body #costsPage .cost-links:not(#_):not(#__){display:inline-flex;flex-wrap:wrap;gap:var(--gap-ctl,8px);vertical-align:baseline}
html body #analysisPage .an-rep-in:not(#_){display:flex;align-items:center;gap:var(--gap-ctl,8px)}
html body #analysisPage .an-rep-in input:not(#_){width:100%;min-width:0}
html body #analysisPage .an-rep-in small:not(#_),html body #analysisPage .set-field>small:not(#_){font-size:12px;color:var(--muted)}
html body #analysisPage .an-rep-check:not(#_){display:flex;align-items:center;gap:8px;font-size:13px}
html body #analysisPage .an-rep-skip:not(#_){display:flex;flex-wrap:wrap;gap:8px 16px;margin:14px 0 0}
html body #analysisPage .an-rep-foot:not(#_){display:flex;justify-content:flex-start;margin:var(--card-pad) 0 0;padding-top:12px;border-top:var(--sep)}
html body #analysisPage .an-glass-block:not(#_){min-width:0}
html body #analysisPage .an-glass-block+.an-glass-block:not(#_){margin-top:var(--card-pad);padding-top:var(--card-pad);border-top:var(--sep)}
html body #analysisPage .an-rules:not(#_):not(#__){margin:0;min-width:0}
html body #analysisPage .an-rule-grid:not(#_){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:var(--card-gap)}
html body #analysisPage .an-rule-grid>div:not(#_){background:transparent;padding:0}

html body #analysisPage .an-sim-results b.is-positive:not(#_){color:var(--ok)}
html body #analysisPage .an-sim-results b.is-negative:not(#_){color:var(--bad)}


/* ---------- Tabelle e pulsanti nelle schede ---------- */
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card .inv-table-wrap:not(#_){overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:0}
html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card-foot:not(#_){border-top:var(--sep)}

/* ---------- Telefono ---------- */
@media(max-width:900px){
  html body #analysisPage .an-pie-grid:not(#_){grid-template-columns:minmax(0,1fr)}
  html body #analysisPage .an-rep-row:not(#_){grid-template-columns:minmax(0,1fr) auto}
  html body #analysisPage .an-rep-row .an-rep-hint:not(#_){grid-column:1/-1;grid-row:2}
}
@media(max-width:820px){
  html body #revenuePage .revenue-inputs .rv-date-field:not(#_):not(#__){flex:1 1 100%}
  html body #revenuePage .revenue-inputs .date-navigation:not(#_):not(#__):not(#___){flex-wrap:wrap!important}
  html body #revenuePage .rv-actual-grid:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  html body #revenuePage .revenue-inputs .field:not(#_):not(#__){flex:1 1 100%}


  html body #revenuePage .revenue-inputs label:not(#_):not(#__){flex-wrap:wrap;white-space:normal}
  html body #revenuePage .rv-actual-grid:not(#_):not(#__){grid-template-columns:minmax(0,1fr)}
  html body #revenuePage .rv-actual-actions:not(#_){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  html body #revenuePage .rv-sales-pair:not(#_){grid-template-columns:minmax(0,1fr) 84px}
  
  html body #revenuePage .rv-month-row .btn:not(#_):not(#__){width:100%}
  
  html body #analysisPage .an-rev-filter:not(#_){width:100%}
  html body #analysisPage .an-rev-filter input:not(#_){flex:1 1 0;min-width:0;width:auto}
  html body #analysisPage .an-pie-content:not(#_){grid-template-columns:minmax(0,1fr)}
  html body #analysisPage .an-rep-foot .btn:not(#_){width:100%}
  html body #costsPage .cost-card .rnb-card-actions input:not(#_){width:100%}
  html body #analysisPage .an-cat .an-sim-controls:not(#_):not(#__){grid-template-columns:minmax(0,1fr)!important;min-width:0}
  html body #analysisPage .an-cat .an-sim-controls>*:not(#_):not(#__){min-width:0;max-width:100%}
  html body #analysisPage .an-sim-results:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))}
  html body :is(#revenuePage,#costsPage,#analysisPage,#pnlPage) .rnb-card-actions>*:only-child:not(#_):not(#__){grid-column:1/-1;width:100%}
}

/* Importazione incassi vuota: niente bordo da 2 px (1.268.1) */
html body #revenuePage .rv-import.rnb-card:empty:not(#_):not(#__){display:none!important}

/* Storico: Incasso del periodo in un riquadro grande, gli altri piccoli (1.268.43) */

/* Food cost: scala tipografica unica (1.268.81)
   etichetta 11.5px/600 maiuscolo grigio · numero riquadro 22px/650 · numero scheda categoria 16px/650 · nome 15px/650 · testo 13px · pillola 12.5px/700
   larghezze minime dai contenuti: riquadro numeri 160px (non 1.234.567 € a 22px), scheda categoria 220px (due numeri da 8 caratteri affiancati),
   casella obiettivo 260px (etichetta + campo 80px + «%», oppure «da [80] € [80] %»). Numeri sempre in una riga, nomi a capo tra le parole. */
/* Schede delle categorie */
html body #costsPage .cat-cards>.cat-card:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){min-width:220px!important;display:flex;flex-direction:column;gap:8px;padding:14px 16px;background:var(--panel);border:1px solid var(--line);border-radius:0;box-shadow:none}
html body #costsPage .cat-card .cat-head:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px}
html body #costsPage .cat-card .cat-head>b:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){flex:1 1 auto;min-width:0;font-family:var(--font-brand);font-size:15px!important;font-weight:650;line-height:1.25!important;white-space:normal!important;color:var(--text);overflow-wrap:break-word}
html body #costsPage .cat-card .cat-head .fc-pill:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){flex:none;font-size:12.5px;font-weight:700;line-height:1.3;white-space:nowrap}
html body #costsPage .cat-card .cat-meta:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){font-size:13px;line-height:1.35;color:var(--muted)}
html body #costsPage .cat-card .cat-nums:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:8px;border-top:var(--sep)}
html body #costsPage .cat-card .cat-nums>span:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){display:flex;flex-direction:column;gap:3px;min-width:0}
html body #costsPage .cat-card .cat-nums small:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)!important}
html body #costsPage .cat-card .cat-nums strong:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){font-size:16px!important;font-weight:650;line-height:1.2!important;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text)}
/* Obiettivi di food cost */




/* Impostazioni IVA: griglia etichetta · campo · unità, allineata sulle tre righe */





/* Filtri e ordinamento */
html body #costsPage .cost-chips .cost-sort:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){min-width:200px}
/* Tabelle: numeri in una riga, nomi a capo */
html body #costsPage .inv-table td.num:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______),html body #costsPage .inv-table th.num:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){white-space:nowrap;font-variant-numeric:tabular-nums}
html body #costsPage .inv-table td.rec-cell:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){white-space:nowrap}
html body #costsPage .inv-table td:first-child:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){min-width:150px;overflow-wrap:break-word}
/* Obiettivi di food cost (1.281.6): liste a righe come le Impostazioni (63-settings-model.css); numeri a destra, scarto colorato dal segno */
html body #costsPage .goal-list .set-field input:not(#_):not(#__){text-align:right;font-variant-numeric:tabular-nums}
html body #costsPage .goal-list .set-field:nth-child(n+2) .set-row-text:not(#_):not(#__){justify-content:flex-end;font-variant-numeric:tabular-nums}
html body #costsPage .goal-list .set-field:nth-child(n+2)>span:first-child:not(#_):not(#__):not(#___){text-align:right}
html body #costsPage .goal-gap.is-over:not(#_){color:var(--bad-ink);font-weight:600}
html body #costsPage .goal-gap.is-ok:not(#_){color:var(--ok);font-weight:600}
html body #costsPage .cost-vat-card .set-row:not(#_):not(#__){border-bottom:0}
html body #costsPage .goal-list .set-field>.set-row-text:not(#_):not(#__){align-self:stretch}
html body #costsPage .goal-list .set-row .set-field>span:first-child:not(#_):not(#__):not(#___):not(#____){font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
html body #costsPage .goal-list .set-field:nth-child(1)>span:first-child:not(#_):not(#__):not(#___):not(#____){text-align:left}

/* Conto economico: tabella leggibile (voce in primo piano, nota sotto in piccolo) e, su telefono, periodo a tre voci di pari larghezza con la data a tutta larghezza sotto (25 nov 2026) */
html body #pnlPage .inv-table td:first-child:not(#_):not(#__):not(#___){font-size:13px;font-weight:500;color:var(--text);line-height:1.3}
html body #pnlPage .inv-table td:first-child small:not(#_):not(#__):not(#___):not(#____){display:block!important;margin-top:1px;font-size:11px;font-weight:500;color:var(--muted)}
html body #pnlPage .inv-table td.num:not(#_):not(#__):not(#___){font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
html body #pnlPage .inv-table td.num:nth-child(2):not(#_):not(#__):not(#___){font-weight:600;color:var(--text)}
@media(max-width:640px){
 html body #pnlPage .form-grid:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--gap-row,12px)}
 html body #pnlPage .form-grid .type-filter:not(#_):not(#__):not(#___){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;background:transparent}
 html body #pnlPage .form-grid .type-filter>.btn:not(#_):not(#__):not(#___):not(#____){width:100%;min-width:0;margin:0}
 html body #pnlPage .form-grid input[type=date]:not(#_):not(#__):not(#___){width:100%!important;max-width:none!important}
}

/* Conto economico: scheda del periodo (avviso, riquadri, selettori su una riga), tabella a filo, intestazione senza titolo (25 nov 2026) */
html body #pnlPage .rnb-card-head:has(>.rnb-dup-title)>.set-count:not(#_):not(#__):not(#___){margin-left:auto}
html body #pnlPage .rnb-card-body.is-table:not(#_):not(#__):not(#___){padding-inline:0;padding-bottom:0}
html body #pnlPage .rnb-card-body.is-table .inv-table-wrap:not(#_):not(#__):not(#___):not(#____){border:0;margin:0}
html body #pnlPage .pnl-period .rv-price-status:not(#_):not(#__):not(#___){margin-bottom:0}
html body #pnlPage .pnl-period .inv-kpis:not(#_):not(#__):not(#___){margin:0}
html body #pnlPage .pnl-period .inv-table-wrap:not(#_):not(#__):not(#___):not(#____){border:0;margin:0 calc(var(--card-pad,20px)*-1) calc(var(--card-pad,20px)*-1);max-width:none}
html body #pnlPage .pnl-fixed .set-field>.set-row-text:not(#_):not(#__):not(#___){align-self:stretch}
@media(min-width:641px){
 html body #pnlPage .pnl-period .form-grid:not(#_):not(#__):not(#___){display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:var(--gap-field,14px)}
 html body #pnlPage .pnl-period .form-grid .field:not(#_):not(#__):not(#___){display:flex;flex-direction:column;gap:var(--gap-label,4px);width:auto;flex:0 0 auto}
 html body #pnlPage .pnl-period .form-grid .field label:not(#_):not(#__):not(#___){margin:0}
 html body #pnlPage .pnl-period .form-grid .type-filter:not(#_):not(#__):not(#___){display:inline-flex;width:auto;margin:0}
}

/* == css/ui/61-page-products.css == */
/* Stile «Cantina» (1.268.1): pagine Ordini, Listino e ricette, Documenti, Importa. Solo token, regole comuni in 58-schede.css.
   Ordini: una scheda per fornitore (.ord-card: intestazione con nome, consegna e azioni; tabella; note; piede con totale).
   Listino: una scheda (.price-card) con filtri nell'intestazione e nella barra, tabella a filo.
   Documenti: schede .doc-card in griglia. Importa: schede .import-hub-card in griglia. */

/* ---- Colonne di schede e intestazioni di sezione ---- */
html body #ordersPage #invOrder:not(#_),html body #ordersPage .inv-deliv:not(#_),html body #pricelistPage #invPrices:not(#_){display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
html body :is(#ordersPage,#pricelistPage,#documentsPage,#documentsPage) .panel:not(#_){padding:0;background:transparent;border:0;box-shadow:none}
html body :is(#ordersPage,#documentsPage,#documentsPage) .top:not(#_){display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px;margin:8px 0 4px;padding:0;border:0;background:transparent}
html body :is(#ordersPage,#documentsPage,#documentsPage) .top>div:first-child:not(#_){min-width:0;flex:1 1 260px}
html body :is(#ordersPage,#documentsPage,#documentsPage) .top :is(h2,h3):not(#_){margin:0;font-family:var(--font-brand);font-size:18px;font-weight:650;line-height:1.3;color:var(--text);text-align:left}
html body :is(#ordersPage,#documentsPage,#documentsPage) .top p:not(#_){margin:4px 0 0;font-size:13px;line-height:1.45;color:var(--muted);text-align:left}
html body :is(#ordersPage,#documentsPage,#documentsPage) .top .actions:not(#_){display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
html body #documentsPage .panel+.panel:not(#_){margin-top:28px}
html body #ordersPage .inv-deliv>.top:not(#_){margin-top:0}

/* ---- Tabelle dentro le schede: a filo, intestazione piccola maiuscola ---- */
html body :is(#ordersPage .ord-card,#ordersPage .inv-defer,#ordersPage .inv-hist,#pricelistPage .price-card) .inv-table-wrap:not(#_):not(#__){margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body :is(#ordersPage .ord-card,#ordersPage .inv-defer,#ordersPage .inv-hist,#pricelistPage .price-card) .inv-table thead th:not(#_):not(#__){padding:10px 12px;background:var(--panel2);border-bottom:var(--sep);font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html body :is(#ordersPage .ord-card,#ordersPage .inv-defer,#ordersPage .inv-hist,#pricelistPage .price-card) .inv-table tbody td:not(#_):not(#__){padding:9px 12px;border-top:var(--sep);border-bottom:0}
html body :is(#ordersPage .ord-card,#ordersPage .inv-defer,#ordersPage .inv-hist,#pricelistPage .price-card) .inv-table tbody tr:first-child td:not(#_):not(#__){border-top:0}
html body :is(#ordersPage .ord-card,#ordersPage .inv-defer,#ordersPage .inv-hist,#pricelistPage .price-card) .inv-table tbody tr:hover>td:not(#_):not(#__){background:var(--panel2)}
html body #pricelistPage .price-card .inv-table tr.inv-group-row>td:not(#_):not(#__){padding:8px 12px;background:var(--panel2);border-top:var(--sep);border-bottom:var(--sep);font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html body #pricelistPage .price-card .inv-table tr.inv-group-row>td strong:not(#_):not(#__){font-weight:650;letter-spacing:.04em;color:var(--text)}
html body #pricelistPage .price-card .inv-table tr.inv-group-row>td .muted:not(#_):not(#__){margin-left:8px;font-size:11.5px}
html body #pricelistPage .price-card .inv-table tr.inv-group-row:hover>td:not(#_):not(#__){background:var(--panel2)}
html body #ordersPage .ord-table tr.ord-row.is-off td:not(#_):not(#__){color:var(--muted)}
html body #ordersPage .ord-table tr.needs-pack td:not(#_):not(#__){background:var(--panel2)}

/* ---- Ordini: schede dei fornitori ---- */
html body #ordersPage .ord-cards:not(#_):not(#__){grid-template-columns:minmax(0,1fr);align-items:start}
html body #ordersPage .ord-card:not(#_){margin:0;padding:0}
html body #ordersPage .ord-card .rnb-card-sub:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;text-align:left}
html body #ordersPage .ord-card .rnb-card-actions .ord-noportal:not(#_){font-size:13px}
html body #ordersPage .ord-notes:not(#_){display:flex;flex-direction:column;gap:10px;padding:12px var(--card-pad);border-top:var(--sep)}
html body #ordersPage .ord-notes>*:not(#_){margin:0}
html body #ordersPage .ord-foot:not(#_){justify-content:space-between}
html body #ordersPage .ord-foot b:not(#_){font-size:13px;font-weight:650;color:var(--text)}
html body #ordersPage .ord-card .inv-warn:not(#_):not(#__){margin:0;padding:0;background:transparent;border:0;border-left:3px solid var(--warn);padding-left:10px;border-radius:0;color:var(--text);font-size:13px;font-weight:600;text-align:left}
html body #ordersPage .ord-card .inv-okline:not(#_):not(#__){margin:0;color:var(--ok);font-size:13px;font-weight:600}
html body #ordersPage .ord-card .inv-suggest:not(#_):not(#__){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
html body #ordersPage .ord-card .inv-minorder:not(#_):not(#__){margin:0;display:flex;flex-direction:column;gap:10px}
html body #ordersPage .inv-deadline:not(#_):not(#__){font-size:13px;color:var(--muted);background:transparent;padding:0;border:0}
html body #ordersPage .inv-deadline.is-urgent:not(#_):not(#__){color:var(--now);font-weight:600}
html body #ordersPage .inv-deadline.is-late:not(#_):not(#__){color:var(--bad);font-weight:600}
html body #ordersPage .ord-why:not(#_){display:block;margin-top:2px;font-size:12px;color:var(--muted)}
html body #ordersPage .ord-why.is-risk:not(#_){color:var(--now)}

/* ---- Ordini: nessun articolo, sotto scorta rimandati, storico ---- */
html body #ordersPage .inv-ok:not(#_):not(#__){margin:0;padding:var(--card-pad);background:var(--panel);border:1px solid var(--line);border-radius:0;box-shadow:var(--card-sh);color:var(--text);font-size:14px;text-align:left}
html body #ordersPage :is(.inv-defer,.inv-hist):not(#_):not(#__){margin:0;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:0;box-shadow:var(--card-sh);overflow:visible}
html body #ordersPage :is(.inv-defer,.inv-hist)>summary:not(#_):not(#__){display:flex;align-items:center;gap:8px;margin:0;padding:16px var(--card-pad);font-family:var(--font-brand);font-size:15px;font-weight:650;line-height:1.3;color:var(--text);text-align:left;cursor:default;list-style:none}
html body #ordersPage :is(.inv-defer,.inv-hist)>summary:not(#_):not(#__)::-webkit-details-marker{display:none}


html body #ordersPage :is(.inv-defer,.inv-hist)>.inv-table-wrap:not(#_):not(#__){border-top:var(--sep)}
html body #ordersPage .inv-hist+*:not(#_),html body #ordersPage .inv-warn+.inv-hist:not(#_){margin-top:0}

/* ---- Ordini: consegne in arrivo (una scheda per ordine) ---- */
html body #ordersPage .inv-deliv .inv-group.rnb-card:not(#_):not(#__){margin:0;padding:0}
html body #ordersPage .inv-deliv .inv-group-head:not(#_):not(#__){display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 12px;margin:0;padding:16px var(--card-pad);border-bottom:var(--sep)}
html body #ordersPage .inv-deliv .inv-group-head .rnb-card-actions:not(#_):not(#__){margin-left:auto}
html body #ordersPage .inv-deliv .inv-lines:not(#_):not(#__){margin:0;padding:0;display:block}
html body #ordersPage .inv-deliv .inv-lines>li:not(#_):not(#__){padding:var(--row-pad) var(--card-pad);margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body #ordersPage .inv-deliv .inv-lines>li+li:not(#_):not(#__){border-top:var(--sep)}
/* Colonne uguali su tutte le righe (1.274.1): la lista è la griglia e ogni riga ne eredita le colonne (subgrid), così quantità e unità
   restano incolonnate qualunque sia il testo dopo il campo («pz ricevuti», «colli ricevuti»…). Su telefono valgono le regole di 60-mobile-stock. */
@media(min-width:641px){
 html body #ordersPage .inv-deliv .inv-lines:not(#_):not(#__):not(#___){display:grid;grid-template-columns:minmax(160px,1.4fr) minmax(0,1.6fr) 84px 8rem;column-gap:var(--gap-field);row-gap:0}
 html body #ordersPage .inv-deliv .inv-lines>li:not(#_):not(#__):not(#___){display:grid;grid-template-columns:subgrid;grid-column:1/-1;align-items:center}
 html body #ordersPage .inv-deliv .inv-lines>li>.inv-num:not(#_):not(#__){width:100%}
}
html body #ordersPage .inv-deliv .inv-order-opts:not(#_):not(#__){margin:0;padding:12px var(--card-pad);border-top:var(--sep)}
html body #ordersPage .inv-deliv .inv-send.rnb-del-actions:not(#_):not(#__){justify-content:space-between;margin:0;padding:12px var(--card-pad);border-top:var(--sep)}
html body #ordersPage .inv-deliv>.actions:not(#_){display:flex;justify-content:flex-end}

/* ---- Listino: scheda unica ---- */
html body #pricelistPage .price-card:not(#_){margin:0;padding:0}
html body #pricelistPage .price-card .rnb-card-title:not(#_){text-align:left}
html body #pricelistPage .price-card .rnb-card-sub:not(#_){text-align:left}
html body #pricelistPage .price-card>.price-add-box:not(#_):not(#__){margin:0;padding:var(--card-pad);border:0;border-bottom:var(--sep);border-radius:0;background:transparent;box-shadow:none}
html body #pricelistPage .price-card .price-add-box label:not(#_):not(#__){text-align:left;font-size:13px;color:var(--muted)}
html body #pricelistPage .price-card>.inv-bar:not(#_):not(#__){display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;padding:var(--card-pad);border:0;border-bottom:var(--sep);background:transparent}
html body #pricelistPage .price-card>.inv-bar .inv-tabs:not(#_):not(#__){align-self:flex-start;max-width:100%}
html body #pricelistPage .price-card>.inv-bar .inv-tools:not(#_):not(#__){width:100%;gap:10px 12px}
html body #pricelistPage .price-card>.price-more:not(#_):not(#__){justify-content:space-between;margin:0}
html body #pricelistPage .price-card>.inv-empty:not(#_){padding:var(--card-pad)}
html body #pricelistPage .inv-kpis:not(#_){margin:0}
html body #pricelistPage .inv-kpi:not(#_):not(#__){display:flex!important;flex-direction:column!important;justify-content:center;align-items:flex-start!important;gap:4px;padding:14px 16px!important;text-align:left!important;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important}
html body #pricelistPage .inv-kpi:not(#_):not(#__) b{order:2;font-size:26px;font-weight:650;line-height:1.1;font-variant-numeric:tabular-nums;text-align:left!important}
html body #pricelistPage .inv-kpi:not(#_):not(#__) span{order:1;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;line-height:1.3;color:var(--muted)!important;text-align:left!important}
html body #pricelistPage button.inv-kpi:not(:disabled):not(#_):not(#__):hover{border-color:var(--azure)!important}

/* ---- Documenti: schede ---- */
html body #documentsPage .doc-grid:not(#_):not(#__){display:grid;gap:var(--card-gap);margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
html body #documentsPage .doc-card:not(#_):not(#__){display:block;margin:0;padding:0;gap:0;min-width:0}
html body #documentsPage .doc-card>header.rnb-card-head:not(#_):not(#__){display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:12px}
html body #documentsPage .doc-card>header .rnb-card-title:not(#_):not(#__){margin:0}
html body #documentsPage .doc-card>header .rnb-card-sub:not(#_):not(#__){margin:2px 0 0;font-size:13px;color:var(--muted)}
html body #documentsPage .doc-card>header>div:not(#_):not(#__){min-width:0;flex:1 1 auto}
html body #documentsPage .doc-card .doc-slots.rnb-card-body:not(#_):not(#__){display:grid;gap:var(--card-gap);grid-template-columns:minmax(0,1fr);padding:var(--card-pad)}
html body #documentsPage .doc-card.is-multi .doc-slots.rnb-card-body:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))}
html body #documentsPage .doc-slot:not(#_):not(#__){min-width:0;padding:var(--card-pad);background:var(--panel2);border:1px solid var(--line);border-radius:0;box-shadow:none}
html body #documentsPage .doc-slot-head small:not(#_):not(#__){display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
html body #documentsPage .doc-actions .btn:not(#_):not(#__){height:var(--ui-h);min-height:var(--ui-h);font-size:13px}
html body #documentsPage .doc-actions>.btn:only-child:not(#_):not(#__){grid-column:1/-1} /* una sola azione nella tessera: occupa la riga (Importa, 1.275.0) */
html body #settingsPage .ck-ed-grid:not(#_):not(#__){display:grid;gap:var(--card-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));align-items:start;margin-top:12px}
html body #settingsPage .ck-ed:not(#_):not(#__){min-width:0;padding:var(--card-pad);background:var(--box-bg);border:1px solid var(--line);border-radius:0;box-shadow:var(--card-sh)}

/* ---- Importa: schede ---- */










/* ---- Telefono (≤640 px): schede a tutta larghezza, tabelle in card (60-mobile-stock.css) ---- */
@media(max-width:640px){
  html body :is(#ordersPage,#documentsPage,#documentsPage) .top:not(#_){flex-direction:column;align-items:stretch}
  html body :is(#ordersPage,#documentsPage,#documentsPage) .top>div:first-child:not(#_){flex:0 0 auto}
  html body :is(#ordersPage,#documentsPage,#documentsPage) .top .actions:not(#_){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  html body #ordersPage .ord-card .rnb-card-actions:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))}
  html body #ordersPage .ord-card .rnb-card-actions>.btn.primary:not(#_):not(#__){grid-column:1/-1;order:3}
  html body #ordersPage .ord-card .rnb-card-actions>.ord-noportal:not(#_):not(#__){grid-column:1/-1}
  html body #ordersPage .ord-card .inv-table-wrap:not(#_):not(#__){padding:12px var(--card-pad) 0}
  html body #ordersPage .ord-card table.inv-table tbody tr:not(#_):not(#__):not(#___){box-shadow:none;background:var(--panel2)}
  html body #ordersPage .ord-card table.inv-table tbody td:not(#_):not(#__):not(#___){border-top:0}
  html body #ordersPage .ord-foot:not(#_){justify-content:space-between}
  html body #ordersPage .inv-deliv .inv-group-head .rnb-card-actions:not(#_):not(#__){margin-left:0}
  html body #pricelistPage .price-card .rnb-card-head>div:first-child:not(#_):not(#__){flex:0 0 auto}
  html body #pricelistPage .price-card>.inv-bar:not(#_):not(#__){padding:var(--card-pad)}
  html body #pricelistPage .price-card .inv-table-wrap:not(#_):not(#__){padding:12px var(--card-pad) 0}
  html body #pricelistPage .price-card table.inv-table tbody td:not(#_):not(#__):not(#___){border-top:0}
  html body #pricelistPage .price-card table.inv-table tbody tr:not(.inv-group-row):not(#_):not(#__):not(#___){box-shadow:none;background:var(--panel2)}
  html body #pricelistPage .price-card>.price-more:not(#_):not(#__){flex-direction:column;align-items:stretch}
  html body #documentsPage .doc-grid:not(#_):not(#__),html body #documentsPage .doc-card.is-multi .doc-slots.rnb-card-body:not(#_):not(#__){grid-template-columns:minmax(0,1fr)}
  html body #documentsPage .doc-card>header.rnb-card-head:not(#_):not(#__){flex-direction:row;align-items:center}
  html body #documentsPage .doc-actions .btn:not(#_):not(#__){height:44px;min-height:44px;font-size:14px}
  
}

/* ---- Correzioni: titoli a sinistra, note nelle celle senza maiuscolo ---- */
html body :is(#ordersPage .ord-card,#pricelistPage .price-card,#documentsPage .doc-card,#documentsPage .import-hub-card) .rnb-card-head :is(.rnb-card-title,.rnb-card-sub):not(#_):not(#__){text-align:left;justify-content:flex-start}
html body :is(#ordersPage,#pricelistPage) .inv-table tbody td small:not(#_):not(#__){text-transform:none;letter-spacing:0;font-weight:400;font-size:12px}
html body #ordersPage .ord-table tbody td:first-child:not(#_):not(#__){text-align:left;font-size:13.5px}
html body #pricelistPage .price-card .inv-table tr.inv-group-row>td strong:not(#_):not(#__){display:inline!important;font-size:13px!important}
html body #documentsPage .doc-slot-head:not(#_):not(#__){justify-content:flex-start;text-align:left}
html body #documentsPage .doc-slot-head small:not(#_):not(#__){text-align:left;text-transform:none;letter-spacing:0}
html body #documentsPage .doc-link label:not(#_):not(#__){text-align:left}

/* Documenti: niente spazi vuoti nei riquadri delle lingue (1.268.21) */
html body .doc-slots:not(#_):not(#__){align-items:start!important;gap:10px!important}
html body .doc-slot:not(#_):not(#__){height:auto!important;min-height:0!important;justify-content:flex-start!important;gap:8px!important}
html body .doc-slot>*:not(#_):not(#__){flex:0 0 auto!important;margin-top:0!important;margin-bottom:0!important}
html body .doc-card:not(#_):not(#__){padding:0!important}
html body .doc-grid:not(#_):not(#__){align-items:start!important}

/* Checklist di servizio: liste alte uguali, al massimo 10 voci visibili, le altre scorrono (1.268.24) */
html body #docsChecklists:not(#_):not(#__){align-items:stretch!important}
html body #docsChecklists .ck-ed:not(#_):not(#__){display:flex!important;flex-direction:column!important}
html body #docsChecklists .ck-ed-list:not(#_):not(#__){height:calc(10 * 34px + 9 * 6px)!important;max-height:none!important;overflow:hidden!important;flex:0 0 auto!important}
html body #docsChecklists .ck-ed.is-all .ck-ed-list:not(#_):not(#__){height:auto!important}
html body #docsChecklists .ck-more:not(#_):not(#__){align-self:flex-start;margin:6px 0 var(--gap-ctl,8px)}
html body #docsChecklists .ck-ed-foot:not(#_):not(#__){margin-top:auto!important;display:flex;gap:var(--gap-ctl)}
/* ogni voce è una riga «campo + azioni»: campo che occupa lo spazio, azioni a destra, righe distanti (1.273.x) */
html body #docsChecklists .ck-ed-list:not(#_):not(#__){display:grid!important;gap:6px!important;align-content:start;list-style:none;margin:0;padding:0}
html body #docsChecklists .ck-ed-list>li.ck-edit:not(#_):not(#__){display:flex;align-items:center;gap:var(--gap-ctl,8px);min-width:0;min-height:34px;margin:0;padding:0;position:static}
html body #docsChecklists .ck-ed-list>li.ck-edit>input:not(#_):not(#__){flex:1 1 0;min-width:0;width:auto;margin:0}
html body #docsChecklists .ck-ed-list>li.ck-edit>.ck-day:not(#_):not(#__){flex:0 0 auto;white-space:nowrap}
html body #docsChecklists .ck-ed-list>li.ck-edit>.ck-edit-act:not(#_):not(#__){display:inline-flex;gap:var(--gap-ctl,8px);flex:0 0 auto;margin:0}
html body #docsChecklists .ck-ed>header:not(#_):not(#__):not(#___){position:static;gap:var(--gap-ctl,8px);min-width:0}
html body #docsChecklists .ck-ed .ck-ed-name:not(#_):not(#__):not(#___){position:static;min-width:0;box-sizing:border-box}

/* Evaluations: calendario del mese (verde = rapporto archiviato, arancio = mancante) */
html body #documentsPage .eval-cal:not(#_){display:flex;flex-direction:column;gap:10px;min-width:0}
html body #documentsPage .eval-cal-head:not(#_){display:flex;align-items:center;justify-content:space-between;gap:8px}
html body #documentsPage .eval-cal-head strong:not(#_){font-size:15px;font-weight:700;color:var(--text);text-transform:capitalize}
html body #documentsPage .eval-cal-grid:not(#_){display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;width:100%}
html body #documentsPage .eval-wd:not(#_){text-align:center;font-size:12px;font-weight:600;color:var(--muted)}
html body #documentsPage .eval-day:not(#_){display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;min-height:40px;aspect-ratio:1/1;border:1px solid var(--line);border-radius:0;background:var(--box-bg);color:var(--text);font-size:13px;font-weight:600;line-height:1;padding:0;margin:0;cursor:default}
html body #documentsPage .eval-day.is-empty:not(#_){border-color:transparent;background:transparent}
html body #documentsPage .eval-day.is-today:not(#_){border-color:var(--azure)}
html body #documentsPage .eval-day.is-miss:not(#_){background:color-mix(in srgb,var(--warn) 18%,var(--box-bg));color:var(--text)}
html body #documentsPage button.eval-day.is-done:not(#_){background:color-mix(in srgb,var(--ok) 20%,var(--box-bg));border-color:var(--ok);color:var(--ok-ink,var(--text));cursor:pointer}
html body #documentsPage button.eval-day.is-done.is-sel:not(#_){outline:2px solid var(--text);outline-offset:1px}


@media(max-width:640px){html body #documentsPage .eval-day:not(#_){min-height:36px}}
/* calendario compatto: al massimo 560 px di larghezza (1.268.59) */
html body #documentsPage .eval-cal:not(#_):not(#__){max-width:560px}

/* giorni del calendario: i colori vincono sulla regola generale dei pulsanti (1.268.59) */
html body #documentsPage .eval-day.is-done:not(#_):not(#__):not(#___){background:color-mix(in srgb,var(--ok) 22%,var(--box-bg))!important;border-color:var(--ok)!important;color:var(--text)!important}
html body #documentsPage .eval-day.is-miss:not(#_):not(#__):not(#___){background:color-mix(in srgb,var(--warn) 20%,var(--box-bg))!important;border-color:var(--warn)!important}

/* Dati: il nome della lista di controllo è un campo standard */
/* liste di controllo (1.268.84): nome a tutta larghezza, fase e numero di voci sotto come sottotitolo */
html body #settingsPage .ck-ed>header:not(#_):not(#__):not(#___){display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-bottom:12px}
html body #settingsPage .ck-ed .ck-ed-name:not(#_):not(#__):not(#___){width:100%}
html body #settingsPage .ck-ed .ck-ed-phase:not(#_):not(#__):not(#___){font-size:13px;color:var(--muted)}
/* liste di controllo (1.268.85): da 900 px sempre due colonne */
@media(min-width:900px){html body #settingsPage .ck-ed-grid:not(#_):not(#__):not(#___){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Listino › Allergeni (1.282): tabella voci × 14 allergeni a filo nella scheda; una riga per voce, sigle da 3 lettere, azioni nell'ultima colonna */
html body #pricelistPage .alg-tbl th.alg-cell:not(#_),html body #pricelistPage .alg-tbl td.alg-cell:not(#_){text-align:center}
html body #pricelistPage .alg-mark:not(#_){display:block;margin:0 auto;width:10px;height:10px;box-sizing:border-box;background:var(--azure);border:2px solid var(--azure)}
html body #pricelistPage .alg-mark.is-manual:not(#_){background:transparent}
html body #pricelistPage .alg-tbl .alg-name:not(#_){color:var(--text);font-weight:500;white-space:nowrap}
html body #pricelistPage .alg-tbl .alg-state:not(#_){white-space:nowrap}
html body #pricelistPage .alg-tbl .alg-act:not(#_){width:1%;white-space:nowrap}
html body #pricelistPage .alg-tbl .alg-act-in:not(#_){display:flex;align-items:center;justify-content:flex-end;gap:var(--gap-ctl)}
html body #pricelistPage .alg-none:not(#_){color:var(--muted);font-size:12px}
html body #pricelistPage .alg-card>.inv-bar:not(#_):not(#__){display:flex;flex-direction:column;align-items:stretch;gap:var(--gap-row);margin:0;padding:var(--card-pad);border:0;border-bottom:var(--sep);background:transparent}
html body #pricelistPage .alg-card>.inv-bar .type-filter:not(#_):not(#__){align-self:flex-start;max-width:100%;margin:0}
html body #pricelistPage .alg-card>.inv-bar .inv-tools:not(#_):not(#__){width:100%}
html body #pricelistPage .alg-card>.price-more:not(#_):not(#__){justify-content:space-between;margin:0}
html body #pricelistPage .alg-state .inv-chip:not(#_):not(#__){white-space:nowrap}

/* Allergeni: proposte automatiche da confermare (non dichiarate): bordo tratteggiato, nessun riempimento */
html body .alg-chip.is-proposed:not(#_):not(#__){border-style:dashed!important;border-color:var(--azure)!important;background:transparent!important;color:var(--azure-ink)!important}

html body #pricelistPage .alg-mark.is-proposed:not(#_){background:transparent;border-style:dashed}

html body #ordersPage .ord-top:not(#_) .inv-kpis{margin:0}
html body #ordersPage .ord-top:not(#_)>*+*{margin-top:var(--gap-row,12px)}
html body #ordersPage .ord-top:not(#_){padding:var(--card-pad,20px)}
html body #ordersPage .ord-top:not(#_) p{margin-bottom:0}
/* Ordini: scheda del fornitore a filo, azioni e tabella sullo stesso bordo destro */
html body #ordersPage section.ord-card.rnb-card:not(#_):not(#__):not(#___){padding:0!important}
html body #ordersPage .ord-card .inv-table :is(th,td):first-child:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){padding-left:var(--card-pad,20px)!important}
html body #ordersPage .ord-card .inv-table :is(th,td):last-child:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){padding-right:var(--card-pad,20px)!important}

/* Analisi: riquadro numeri attivo = filtro aperto (1.289.13) */
html body #analysisPage .inv-kpi.is-active:not(#_){border-color:var(--azure);box-shadow:inset 0 -3px 0 var(--azure)}

/* Prova un vino (Analisi › Simulatore, 25 nov 2026): campi in griglia, risultato come le righe dei vini proposti, Azzera a sinistra e Salva a destra */
html body #analysisPage .an-trial-form:not(#_):not(#__){display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:var(--gap-row,12px) var(--gap-field,14px);align-items:end;margin:0 0 var(--gap-row,12px)}
html body #analysisPage .an-trial-foot:not(#_):not(#__){display:flex;justify-content:space-between;gap:var(--gap-ctl,8px);margin:var(--gap-row,12px) 0 0}
html body #analysisPage .an-trial-acts:not(#_):not(#__){display:flex;gap:var(--gap-ctl,8px);margin-top:6px}
html body #analysisPage .an-trial-row:not(#_):not(#__){list-style:none}
@media(max-width:640px){html body #analysisPage .an-trial-form:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))}html body #analysisPage .an-trial-form>.set-field:first-child:not(#_):not(#__){grid-column:1/-1}}
html body #analysisPage .an-trial .rnb-sep-title:not(#_):not(#__){margin-top:var(--card-gap,16px)}

/* Riga di un vino al calice (Prova un vino e Vini al calice, 25 nov 2026): nome e verdetto, una frase, quattro dati; dettagli a comparsa */
html body #analysisPage .an-wine:not(#_):not(#__){list-style:none;display:flex;flex-direction:column;gap:8px;padding:var(--gap-row,12px) 0;min-width:0}
html body #analysisPage .an-wine+.an-wine:not(#_):not(#__){border-top:var(--sep)}
html body #analysisPage .an-wine-head:not(#_):not(#__){display:flex;align-items:flex-start;justify-content:space-between;gap:var(--gap-field,14px)}
html body #analysisPage .an-wine-name:not(#_):not(#__){display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
html body #analysisPage .an-wine-name>span:not(#_):not(#__){font-size:13px;font-weight:600;color:var(--text)}
html body #analysisPage .an-wine-name>small:not(#_):not(#__){font-size:12px!important;font-weight:400!important;color:var(--muted)!important}
html body #analysisPage .an-wine-head>.inv-chip:not(#_):not(#__){flex:none;white-space:nowrap}
html body #analysisPage .an-wine-why:not(#_):not(#__){margin:0;font-size:13px;line-height:1.4;color:var(--ui-ink,var(--text))}
html body #analysisPage .an-wine-stats:not(#_):not(#__){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap-ctl,8px)}
html body #analysisPage .an-wine-stat:not(#_):not(#__){display:flex;flex-direction:column;gap:2px;padding:8px 10px;background:var(--box-bg);border:1px solid var(--box-line);min-width:0}
html body #analysisPage .an-wine-stat>span:not(#_):not(#__){font-size:11px!important;font-weight:400!important;color:var(--muted)!important}
html body #analysisPage .an-wine-stat>b:not(#_):not(#__){font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text)}
html body #analysisPage .an-wine-stat>b.is-positive:not(#_):not(#__){color:var(--ok)}
html body #analysisPage .an-wine-stat>b.is-negative:not(#_):not(#__){color:var(--bad)}
html body #analysisPage .an-wine-more>summary:not(#_):not(#__){cursor:pointer;list-style:none;font-size:12px;font-weight:600;color:var(--muted);padding:4px 0}
html body #analysisPage .an-wine-more>summary::-webkit-details-marker{display:none}
html body #analysisPage .an-wine-more>summary::before{content:"▸ "}
html body #analysisPage .an-wine-more[open]>summary::before{content:"▾ "}
html body #analysisPage .an-wine-more>ul:not(#_):not(#__){margin:4px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:12.5px;line-height:1.45;color:var(--muted)}
html body #analysisPage .an-wine-type:not(#_):not(#__){margin-top:8px}
@media(max-width:640px){html body #analysisPage .an-wine-stats:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))}}
html body #analysisPage .an-today:not(#_):not(#__){margin:0 0 var(--gap-row,12px)}
html body #analysisPage .an-today td.num,html body #analysisPage .an-today th.num:not(#_){text-align:right;font-variant-numeric:tabular-nums}

/* «Calice di oggi» su telefono (1.299.0, scelta dell'utente): le quattro colonne stanno nella larghezza della scheda, senza scorrere:
   tabella larga quanto il contenitore, nessun minimo per la prima colonna, 6 px tra le colonne (10 ai bordi). */
@media(max-width:640px){
 html body #analysisPage .an-today table:not(#_):not(#__):not(#___):not(#____){width:100%!important;min-width:0!important}
 html body #analysisPage .an-today :is(th,td):not(#_):not(#__):not(#___):not(#____){padding-inline:6px!important;min-width:0!important}
 html body #analysisPage .an-today :is(th,td):first-child:not(#_):not(#__):not(#___):not(#____){padding-left:10px!important}
 html body #analysisPage .an-today :is(th,td):last-child:not(#_):not(#__):not(#___):not(#____){padding-right:10px!important}
}

/* Analisi › Vendite, intestazione «Vendite per fatturato» su telefono (1.299.0, scelta dell'utente): i campi Da/A uscivano dalla scheda.
   Titolo, poi nota, poi una riga a griglia: Da e A di pari larghezza con l'etichetta sopra il campo, «Azzera» a destra. */
@media(max-width:640px){
 html body #analysisPage header.rnb-card-head:has(.an-rev-filter):not(#_):not(#__):not(#___):not(#____){align-items:stretch!important}
 html body #analysisPage header.rnb-card-head:has(.an-rev-filter)>.rnb-card-title:not(#_):not(#__):not(#___):not(#____){text-align:left}
 html body #analysisPage header.rnb-card-head:has(.an-rev-filter)>.rnb-card-actions:not(#_):not(#__):not(#___):not(#____){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:var(--gap-ctl,8px)!important;width:100%!important;min-width:0!important}
 html body #analysisPage header.rnb-card-head .an-stats:not(#_):not(#__):not(#___):not(#____){justify-content:flex-start;text-align:left}
 html body #analysisPage .an-rev-filter:not(#_):not(#__):not(#___):not(#____){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;gap:var(--gap-ctl,8px)!important;align-items:end!important;width:100%!important;min-width:0!important}
 html body #analysisPage .an-rev-filter>label:not(#_):not(#__):not(#___):not(#____){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:var(--gap-label,4px)!important;min-width:0!important;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
 html body #analysisPage .an-rev-filter>label>input:not(#_):not(#__):not(#___):not(#____){width:100%!important;min-width:0!important;max-width:none!important}
 html body #analysisPage .an-rev-filter>.btn:not(#_):not(#__):not(#___):not(#____){width:auto!important;min-width:0!important}
}

/* 1.304.0 Importa: tessere e pulsanti mai oltre il riquadro a nessuna larghezza */
html body #documentsPage .doc-slot:not(#_){min-width:0!important}
html body #documentsPage .doc-slot .doc-actions:not(#_){min-width:0!important;max-width:100%!important}
html body #documentsPage .doc-slot .doc-actions .btn:not(#_){max-width:100%!important;min-width:0!important;white-space:normal!important;height:auto!important;min-height:var(--ui-h,34px)!important;text-align:center!important}
html body #documentsPage :is(.doc-grid,#importHub,.doc-card):not(#_){min-width:0!important;max-width:100%!important}
html body #documentsPage .doc-slots:not(#_){grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr))!important}
html body #documentsPage .rnb-card-head:not(#_){flex-wrap:wrap!important;min-width:0!important}
/* Importa: una sola scheda a tutta larghezza (niente colonna vuota) */
html body #documentsPage #importHub .doc-grid:not(#_){grid-template-columns:minmax(0,1fr)!important}
/* Importa: tessere tutte uguali, pulsante in fondo a tutta larghezza */
html body #documentsPage #importHub .doc-slots:not(#_){align-items:stretch!important;grid-auto-rows:1fr!important}
html body #documentsPage #importHub .doc-slot:not(#_){display:flex!important;flex-direction:column!important;height:100%!important}
html body #documentsPage #importHub .doc-slot .doc-actions:not(#_){margin-top:auto!important;padding-top:var(--gap-row,12px)!important}
html body #documentsPage #importHub .doc-slot .doc-actions .btn:not(#_){width:100%!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
/* Telefono (1.311.3): calendario di Evaluations con frecce piccole ai lati e mese al centro; menu di download del Listino allineato a destra */
@media(max-width:640px){
 html body #documentsPage .eval-cal-head:not(#_):not(#__){display:grid!important;grid-template-columns:44px 1fr 44px;align-items:center;gap:var(--gap-ctl);width:100%}
 html body #documentsPage .eval-cal-head>.btn:not(#_):not(#__){width:44px!important;min-width:44px!important;padding:0!important;grid-column:auto!important}
 html body #documentsPage .eval-cal-head>strong:not(#_):not(#__){text-align:center;min-width:0}
 html body #pricelistPage .rnb-menu .rnb-menu-list:not(#_):not(#__){left:auto!important;right:0!important;max-width:calc(100vw - 32px)}
}

/* == css/ui/61-page-staff.css == */
/* Stile «Cantina» (1.268.1): pagina Personale (#staffPage). Solo token, regole comuni in 58-schede.css.
   Struttura: schede .rnb-card (Planning turni, Giornata del personale, Ore e contratti) dentro #staffPlan.
   Il planning scorre in orizzontale dentro .st-scroll, a filo della scheda. */

/* ---- Colonna di schede ---- */
html body #staffPage #staffPlan:not(#_){display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
html body #staffPage #staffPlan>:not(#_){margin-top:0;margin-bottom:0}
html body #staffPage .page-sections:not(#_){margin-bottom:var(--card-gap)}
html body #staffPage .rnb-card .rnb-card-title:not(#_){text-align:left}

/* ---- Planning: corpo (numeri, consigli, avvisi) ---- */
html body #staffPage .st-plan-body:not(#_){display:flex;flex-direction:column;gap:12px}
html body #staffPage .st-plan-body>*:not(#_){margin:0}
html body #staffPage .st-kpis:not(#_):not(#__){margin:0}
html body #staffPage .st-tips:not(#_){padding:0;background:none;border:0;border-radius:0}
html body #staffPage .st-tips .rnb-sep-title:not(#_){margin:0 0 6px}
html body #staffPage .st-tips li:not(#_){border-left-color:var(--azure);color:var(--text);overflow-wrap:anywhere}


html body #staffPage .st-warn:not(#_){padding:2px 0 2px 12px;background:none;border:0;border-left:3px solid var(--warn);border-radius:0;color:var(--text);overflow-wrap:anywhere}
html body #staffPage .st-info:not(#_){padding:10px 14px;background:var(--ui-tint);border:1px solid var(--box-line);border-left:3px solid var(--azure);border-radius:0;color:var(--ui-tint-ink);overflow-wrap:anywhere}
html body #staffPage .st-plan-foot .st-note:not(#_){margin:0;line-height:1.5;color:var(--muted);text-align:left;overflow-wrap:anywhere}
html body #staffPage .st-plan-foot:not(#_){justify-content:flex-start}

/* ---- Turno di giornata (Production e Warehouse) ---- */
html body #staffPage .st-dayshift:not(#_){display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin:0}
html body #staffPage .st-dayshift label:not(#_){display:grid;gap:4px;font-size:12px;font-weight:600;color:var(--muted)}

/* ---- Griglia del planning ---- */
html body #staffPage .st-card-plan>.st-scroll:not(#_){margin:0;border-top:var(--sep);max-width:100%}

html body #staffPage .st-plan th:not(#_),html body #staffPage .st-plan td:not(#_){border-bottom:var(--sep);padding:6px 4px}
html body #staffPage .st-plan thead th:not(#_){font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html body #staffPage .st-plan .st-name:not(#_){padding-left:var(--card-pad);overflow:hidden;text-overflow:ellipsis}
html body #staffPage .st-plan .st-name small:not(#_){font-weight:600;color:var(--muted)}
html body #staffPage .st-plan .st-tot:not(#_){padding-right:var(--card-pad)}
html body #staffPage .st-plan .st-day:not(#_){color:var(--text)}
html body #staffPage .st-plan .st-sv:not(#_){border-left:var(--sep)}
html body #staffPage .st-plan .is-today:not(#_){background:var(--ui-tint)}
html body #staffPage .st-plan .is-closed:not(#_){background:var(--panel2);background-image:none;color:var(--muted)}
html body #staffPage .st-plan tr.st-group th:not(#_){color:var(--text);padding-left:var(--card-pad)}
html body #staffPage .st-plan tbody tr:hover>td:not(#_),html body #staffPage .st-plan tbody tr:hover>th.st-name:not(#_){background:var(--panel2)}
html body #staffPage .st-foot td:not(#_),html body #staffPage .st-foot th:not(#_){background:var(--panel2);border-left:0;color:var(--text)}
html body #staffPage .st-foot .is-under:not(#_){color:var(--bad)}
html body #staffPage .st-good:not(#_){color:var(--ok)}
html body #staffPage .st-bad:not(#_){color:var(--bad)}
html body #staffPage .st-plan .st-cell:not(#_):not(#__){border:1px dashed var(--line)!important;background:transparent!important;color:transparent!important;border-radius:0}
html body #staffPage .st-plan .st-cell:hover:not(#_):not(#__){border-color:var(--azure)!important;background:var(--ui-tint)!important}
html body #staffPage .st-plan .st-cell.is-on:not(#_):not(#__){border:1px solid var(--azure)!important;background:var(--azure)!important;color:var(--on-accent)!important}
html body #staffPage .st-plan .st-cell.is-off:not(#_):not(#__){border:1px solid var(--warn)!important;background:var(--box-bg-2)!important;color:var(--warn)!important}
html body #staffPage .st-mini:not(#_):not(#__){background:transparent;border:1px solid var(--azure);color:var(--azure-ink);border-radius:0}
html body #staffPage .st-mini:hover:not(#_):not(#__){background:var(--ui-tint)}
html body #staffPage .st-dp:not(#_):not(#__){width:100%;min-width:0}

/* ---- Giornata del personale e Ore e contratti: schede ---- */
html body :is(#staffPage,#todayPage) .st-tl.rnb-card:not(#_){margin:0;padding:0;border-radius:0}
html body :is(#staffPage,#todayPage) .st-tl.rnb-card>.st-tl-head:not(#_){margin:0}
html body :is(#staffPage,#todayPage) .st-tl.rnb-card>.st-tl-head .st-tl-days:not(#_){align-self:center}
html body :is(#staffPage,#todayPage) .st-tl-row:not(#_){min-width:0}
html body :is(#staffPage,#todayPage) .st-tl-lab:not(#_){overflow-wrap:anywhere;white-space:normal;color:var(--text)}
/* righe verticali sulla scala degli orari: una per ogni ora (più marcata) e una per ogni mezz'ora (leggera); --tl-h = larghezza di un'ora in % */
html body :is(#staffPage,#todayPage) .st-tl-track:not(#_){background:var(--panel2);
 background-image:linear-gradient(to right,color-mix(in srgb,var(--muted) 45%,transparent) 0,color-mix(in srgb,var(--muted) 45%,transparent) 1px,transparent 1px),linear-gradient(to right,color-mix(in srgb,var(--line) 45%,transparent) 0,color-mix(in srgb,var(--line) 45%,transparent) 1px,transparent 1px);
 background-size:var(--tl-h,8%) 100%,calc(var(--tl-h,8%) / 2) 100%;background-repeat:repeat-x}
/* estremi trascinabili della barra pianificata: si cambia l'orario di arrivo o di uscita */
html body :is(#staffPage,#todayPage) .st-tl-track i.is-plan:not(#_){background:var(--ui-tint);border-color:var(--azure);overflow:visible}
html body :is(#staffPage,#todayPage) .st-tl-track i.is-real:not(#_){background:var(--ok)}
html body :is(#staffPage,#todayPage) .st-tl-track i.is-real.is-over:not(#_){background:var(--warn)}
html body :is(#staffPage,#todayPage) .st-tl-tot:not(#_){border-top:var(--sep);color:var(--muted)}
html body #staffPage .st-ops-empty:not(#_){margin:0;color:var(--muted)}
html body #staffPage .st-gap-avg b:not(#_){color:var(--text)}
html body #staffPage .st-gap-avg.is-warn b:not(#_){color:var(--warn)}
html body #staffPage .st-warn-txt:not(#_){color:var(--warn)}

/* ---- Telefono ---- */
@media(max-width:640px){
  html body #staffPage .st-plan-body:not(#_){gap:10px}
  html body #staffPage .st-dayshift:not(#_){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  html body #staffPage .st-dayshift .muted:not(#_){grid-column:1/-1}
  html body #staffPage .st-dayshift input:not(#_):not(#__){height:44px;min-height:44px;font-size:16px}
  html body :is(#staffPage,#todayPage) .st-tl.rnb-card>.st-tl-head .st-tl-days:not(#_){align-self:stretch}
}


/* Planning: molte azioni, titolo su una riga intera e azioni sotto (1.268.1) */
html body #staffPage .st-card-plan>.rnb-card-head>div:first-child:not(#_){flex-basis:100%}

/* ---- Planning come la Timeline: colonna persone e intestazione fisse, giorni che scorrono sotto ---- */
html body #staffPage:not(#_){--st-label:150px;--st-day-w:96px;--st-closed-w:56px;--st-h1:34px;--st-sep:color-mix(in srgb,var(--text) 24%,var(--panel))}
html body #staffPage .st-card-plan>.st-scroll:not(#_){overflow:auto;max-height:min(78vh,760px);position:relative}
html body #staffPage .st-plan:not(#_):not(#__){table-layout:auto;border-collapse:separate;border-spacing:0;width:100%!important;min-width:calc(var(--st-label) + 7*var(--st-day-w) + 72px)!important}
html body #staffPage .st-plan th.st-name:not(#_):not(#__){position:sticky;left:0;z-index:2;width:var(--st-label)!important;min-width:var(--st-label);max-width:var(--st-label);box-sizing:border-box;background:var(--panel);white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;line-height:1.25;text-align:left;box-shadow:6px 0 10px -6px var(--dk-sh15)}
html body #staffPage .st-plan .st-name small:not(#_):not(#__){display:block;float:none;width:fit-content;margin:3px 0 0;font-size:11px}
html body #staffPage .st-plan .st-name small.st-chip:not(#_):not(#__){display:inline-block;margin:0 0 0 4px}
html body #staffPage .st-plan tr.st-group-n th small:not(#_):not(#__){margin:2px 0 0}
html body #staffPage .st-plan tr.st-group th:not(#_):not(#__){position:sticky;left:0;z-index:2;background:var(--panel2);white-space:normal}
html body #staffPage .st-plan tbody tr:hover>th.st-name:not(#_):not(#__){background:var(--panel)}
html body #staffPage .st-plan tbody tr.st-group:hover>th:not(#_):not(#__){background:var(--panel2)}
/* intestazione fissa in alto */
html body #staffPage .st-plan thead th:not(#_):not(#__){position:sticky;z-index:3;background:var(--panel)}
html body #staffPage .st-plan thead tr:first-child th:not(#_):not(#__){top:0;height:var(--st-h1);box-sizing:border-box}
html body #staffPage .st-plan thead tr:nth-child(2) th:not(#_):not(#__){top:var(--st-h1);box-shadow:0 6px 10px -6px var(--dk-sh15)}
html body #staffPage .st-plan thead th.st-name:not(#_):not(#__){top:0;left:0;z-index:5;box-shadow:6px 0 10px -6px var(--dk-sh15),0 6px 10px -6px var(--dk-sh15);vertical-align:bottom}
html body #staffPage .st-plan thead th.st-tot:not(#_):not(#__){top:0;z-index:4;box-shadow:0 6px 10px -6px var(--dk-sh15)}
/* larghezza dei giorni */
html body #staffPage .st-plan th.st-sv:not(#_):not(#__){min-width:var(--st-day-w)}
html body #staffPage .st-plan th.st-sv.is-closed:not(#_):not(#__){min-width:var(--st-closed-w);width:var(--st-closed-w)}
html body #staffPage .st-plan td.st-c:not(#_):not(#__){min-width:var(--st-day-w);padding-left:3px;padding-right:3px}
html body #staffPage .st-plan td.st-c.is-closed:not(#_):not(#__){min-width:var(--st-closed-w);width:var(--st-closed-w);padding:0}
html body #staffPage .st-plan .st-cell:not(#_):not(#__){width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* separatori tra i giorni e oggi */
html body #staffPage .st-plan .st-day:not(#_):not(#__),html body #staffPage .st-plan th.st-sv:first-child:not(#_):not(#__){border-left:1px solid var(--st-sep)}
html body #staffPage .st-plan td.st-d0:not(#_):not(#__){border-left:1px solid var(--st-sep)}
html body #staffPage .st-plan thead th.is-today:not(#_):not(#__){background:var(--ui-tint);box-shadow:inset 0 3px 0 var(--now),0 6px 10px -6px var(--dk-sh15)}
html body #staffPage .st-plan thead tr:first-child th.is-today:not(#_):not(#__){box-shadow:inset 0 3px 0 var(--now)}
html body #staffPage .st-plan tbody td.is-today:not(#_):not(#__){background:var(--ui-tint)}
html body #staffPage .st-plan tbody tr:hover>td.is-today:not(#_):not(#__){background:var(--ui-tint)}
/* righe per area di lavoro (Cucina, Sala, Altro) sotto una voce delle Finanze */
html body #staffPage .st-foot.st-sub td:not(#_),html body #staffPage .st-foot.st-sub th:not(#_){background:var(--panel);color:var(--muted)}
html body #staffPage .st-foot.st-sub th.st-name:not(#_){padding-left:24px;font-weight:500}
/* settimana mostrata: stessa scheda della data di Oggi, regole comuni in 61-page-today.css (.td-hero); qui solo ciò che cambia */
html body #staffPage .st-week:not(#_){margin:0 0 var(--card-gap)}
html body :is(#staffPage,#todayPage) .st-tl-track i.is-plan.is-manual:not(#_){background:var(--warn);border-color:var(--warn)}
html body :is(#staffPage,#todayPage) .st-grip:not(#_){position:absolute;top:0;bottom:0;width:16px;cursor:ew-resize;touch-action:none;text-decoration:none;z-index:2}
html body :is(#staffPage,#todayPage) .st-grip-l:not(#_){left:-8px}
html body :is(#staffPage,#todayPage) .st-grip-r:not(#_){right:-8px}
html body :is(#staffPage,#todayPage) .st-grip:not(#_)::after{content:"";position:absolute;top:22%;bottom:22%;left:6px;width:4px;background:var(--azure)}
html body :is(#staffPage,#todayPage) .st-tl-track i.is-drag:not(#_){outline:2px solid var(--azure)}
/* azioni del planning: secondarie a sinistra, «Proponi i turni» (principale) a destra; avvisi e nota a 13 px */
html body #staffPage .st-plan-tools:not(#_){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
html body #staffPage .st-plan-tools>.rnb-card-actions:not(#_){display:flex;flex-wrap:wrap}
html body #staffPage .st-week-nav:not(#_){display:flex;flex-wrap:nowrap;align-items:center}
html body #staffPage .st-tips li:not(#_){font-size:13px}
html body #staffPage .st-plan-foot .st-note:not(#_){font-size:12px}
@media(max-width:640px){
 html body #staffPage .st-week:not(#_){flex-direction:column;align-items:stretch}
 html body #staffPage .st-week-nav:not(#_){display:grid;grid-template-columns:auto 1fr auto}
 html body #staffPage .st-plan-tools:not(#_){flex-direction:column;align-items:stretch}
 html body #staffPage .st-plan-tools>.rnb-card-actions:not(#_){display:grid!important;grid-template-columns:1fr 1fr!important}
}
html body :is(#staffPage,#todayPage) .st-tl-ticks:not(#_){background-image:linear-gradient(to right,var(--muted) 0,var(--muted) 1px,transparent 1px);background-size:var(--tl-h,8%) 5px;background-position:0 100%;background-repeat:repeat-x}

/* == css/ui/61-page-settings.css == */
/* Stile «Cantina» (1.268.1): Impostazioni (#settingsPage). Solo token, regole comuni in 58-schede.css.
   Struttura: intestazione (location + schede), poi per ogni scheda della barra una colonna di schede `.set-stack`
   (`.rnb-card.set-card`: intestazione con titolo e descrizione, corpo, piede), infine il piede con Annulla / Salva (`.set-savebar`). */

/* ---- Pagina: colonna; il piede con Salva va sempre in fondo ---- */
html body #settingsPage:not(.hidden):not(#_){display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
html body #settingsPage>:not(#_){margin-top:0;margin-bottom:0;min-width:0}
html body #settingsPage>.set-savebar:not(#_){order:99}

/* ---- Intestazione: location a sinistra, schede a capo ---- */
html body #settingsPage .panel.settings-heading:not(#_):not(#__){display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);align-items:end;gap:12px 16px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html body #settingsPage .settings-heading .settings-tabs:not(#_):not(#__){grid-column:1/-1;justify-self:start;max-width:100%;width:auto;margin:0}
html body #settingsPage .settings-heading .field>label:not(#_){display:block;margin:0 0 4px}

/* ---- Colonna di schede e titolo di scheda aperta ---- */
html body #settingsPage .set-stack:not(#_){display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
html body #settingsPage .set-stack>:not(#_){margin-top:0;margin-bottom:0;min-width:0}
html body #settingsPage .set-intro:not(#_){margin:4px 0 0}
html body #settingsPage .set-intro h2:not(#_):not(#__){margin:0!important;font-family:var(--font-brand);font-size:18px!important;font-weight:650!important;line-height:1.3;color:var(--text)!important;text-align:left}
html body #settingsPage .set-intro p:not(#_):not(#__){margin:4px 0 0!important;max-width:760px;font-size:13px!important;line-height:1.45;color:var(--muted)!important}

/* ---- Scheda ---- */
html body #settingsPage .set-card:not(#_):not(#__){margin:0;min-width:0;padding:0!important;overflow:visible}
html body #settingsPage .set-card>.rnb-card-head:not(#_):not(#__){margin:0;padding:16px var(--card-pad)}
html body #settingsPage .set-card .rnb-card-title:not(#_):not(#__){margin:0!important;letter-spacing:0!important;text-transform:none!important;color:var(--text)!important;text-align:left}
html body #settingsPage .set-card .rnb-card-sub:not(#_):not(#__){margin:2px 0 0!important;max-width:760px;font-size:13px!important;line-height:1.45;color:var(--muted)!important}
html body #settingsPage .set-card>.rnb-card-body:not(#_):not(#__){padding:var(--card-pad);min-width:0}
html body #settingsPage .set-card>.rnb-card-body:empty:not(#_){display:none}
html body #settingsPage .set-card>.rnb-card-foot:not(#_){margin:0}
html body #settingsPage .set-card h4:not(#_):not(#__){margin:18px 0 8px!important;font-size:11.5px!important;font-weight:600!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:var(--muted)!important}
html body #settingsPage .set-card h4:first-child:not(#_):not(#__){margin-top:0!important}

/* Titoli dei blocchi dentro le schede già esistenti (Magazzino, Personale, Experience) */

/* Intestazione con azioni: etichette e interruttori allineati */
html body #settingsPage .rnb-card-actions .service-enabled:not(#_){display:inline-flex;align-items:center;gap:8px;min-height:var(--ui-h);margin:0}
html body #settingsPage .slot-step-box:not(#_){background:var(--panel)}

/* ---- Orari ---- */
html body #settingsPage #settingsHours .service-card .form-grid:not(#_):not(#__){grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:12px!important;align-items:end!important;margin-top:16px}
html body #settingsPage #settingsHours .service-weekdays:not(#_){margin:0}
html body #settingsPage #settingsHours .service-flex-panel .set-field:not(#_){max-width:320px}
/* le due schede affiancate (Passo degli orari, Flessibilità di apertura): il controllo di ognuna sta in fondo al corpo, sulla stessa linea, e il gruppo segmentato è alto quanto un campo */
html body #settingsPage #settingsHours :is(.slot-step-box,.service-flex-panel):not(#_):not(#__){display:flex;flex-direction:column}
html body #settingsPage #settingsHours :is(.slot-step-box,.service-flex-panel)>.rnb-card-body:not(#_):not(#__){display:flex;flex:1 1 auto;flex-direction:column;justify-content:flex-end}
html body #settingsPage #settingsHours .slot-step-box .type-filter:not(#_):not(#__){height:var(--ui-h);align-self:flex-start;box-sizing:border-box;margin:0}
html body #settingsPage #settingsHours #hoursStatus:not(#_){margin:0}

/* ---- Experience: la matrice scorre in orizzontale dentro la scheda ---- */
html body #settingsPage #settingsExperiences #experienceSettings:not(#_):not(#__){overflow-x:auto;overflow-wrap:normal}

/* ---- Strategia di sala ---- */
html body #settingsPage #settingsSwap .swap-cards:not(#_){margin:0 0 16px}
html body #settingsPage #settingsSwap .swap-staff:not(#_){margin:0 0 12px}
html body #settingsPage #settingsSwap .swap-mode:not(#_):not(#__){margin:0}

/* ---- Fornitori ---- */
html body #settingsPage #invSuppliers .sup-card:not(#_):not(#__){padding:0!important;margin:0}
html body #settingsPage #invSuppliers .sup-card .service-card-head:not(#_){margin:0}
html body #settingsPage #invSuppliers>.actions:not(#_){display:flex;justify-content:flex-end;margin:0}

/* ---- Magazzino ---- */
html body #settingsPage #settingsStock .inv-area-settings:not(#_):not(#__),html body #settingsPage #settingsStock .inv-cat-settings:not(#_):not(#__),html body #settingsPage #settingsStock .inv-exp-settings:not(#_):not(#__){margin:0!important;padding:0!important;border:1px solid var(--line)!important}
html body #settingsPage #settingsStock .inv-area-head:not(#_):not(#__){margin:0;padding-bottom:16px!important}
html body #settingsPage #settingsStock .set-card .inv-area-list:not(#_):not(#__){margin:0 0 14px!important}

/* ---- Utenti ---- */
html body #settingsPage #usersPanel>.usr-list:not(#_){padding:0}
html body #settingsPage #usersPanel .usr-cols:not(#_){padding:10px var(--card-pad) 8px;background:var(--panel2)}
html body #settingsPage #usersPanel .usr-row:not(#_){padding:12px var(--card-pad);border-bottom:0;border-top:var(--sep)}


/* ---- Piede: Annulla a sinistra, Salva a destra ---- */
html body #settingsPage .set-savebar:not(#_):not(#__){padding:0!important;margin:0;background:var(--panel);border:1px solid var(--line);border-radius:0;box-shadow:var(--card-sh)}
html body #settingsPage .set-savebar .rnb-card-foot:not(#_):not(#__){margin:0;border-top:0;justify-content:flex-end;overflow:visible}
@media(min-width:851px){html body #settingsPage .set-savebar:not(#_):not(#__){position:sticky;bottom:12px;z-index:5}}

/* ---- Telefono ---- */
@media(max-width:640px){
  html body #settingsPage .panel.settings-heading:not(#_):not(#__){grid-template-columns:minmax(0,1fr)}
  html body #settingsPage .set-card>.rnb-card-head:not(#_):not(#__){padding:14px var(--card-pad)}
  html body #settingsPage .set-card>.rnb-card-body:not(#_):not(#__){padding:var(--card-pad)}
  html body #settingsPage .rnb-card-actions .service-enabled:not(#_){min-height:44px}
  html body #settingsPage .rnb-card-actions .type-filter:not(#_):not(#__){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  html body #settingsPage .set-card .rnb-card-head .rnb-card-actions:not(#_):not(#__):not(#___){justify-content:flex-start}
  html body #settingsPage #settingsHours .service-card .form-grid:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body #settingsPage .set-savebar .rnb-card-foot:not(#_):not(#__){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  html body #settingsPage .set-savebar .rnb-card-foot .btn:not(#_):not(#__){width:100%}
}

@media(min-width:641px){html body #settingsPage .set-card>.rnb-card-head:not(#_):not(#__):not(#___){align-items:center;justify-content:space-between}}
@media(max-width:640px){html body #settingsPage .set-card>.rnb-card-head:not(#_):not(#__):not(#___){align-items:stretch;justify-content:flex-start}}
html body #settingsPage .set-card>.rnb-card-foot:not(#_):not(#__):not(#___){justify-content:flex-end;align-items:center}
html body #settingsPage .set-card .rnb-card-actions:not(#_):not(#__):not(#___){justify-content:flex-end}
html body #settingsPage .set-card :is(strong,b):not(.rnb-card-title):not(.swap-card b):not(#_):not(#__){display:inline;margin:0;font-size:inherit!important;line-height:inherit!important;letter-spacing:normal!important;white-space:normal;overflow:visible;text-overflow:clip}
html body #settingsPage .set-card :is(label,.field,p)>small:not(#_):not(#__){display:inline;text-transform:none;letter-spacing:0;font-weight:400}

/* Il piede compare solo quando ci sono modifiche da salvare (updateSettingsActions) */
html body #settingsPage .set-savebar:has(.settings-actions.hidden):not(#_):not(#__){display:none!important}

/* Pause di riassetto: riga del personale con le stesse 4 colonne dei campi sopra */
html body #settingsPage #settingsSwap .swap-staff.buffer-grid:not(#_){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;align-items:end;margin:12px 0}
html body #settingsPage #settingsSwap .swap-staff.buffer-grid .set-field:not(#_){min-width:0}
html body #settingsPage #settingsSwap .swap-staff.buffer-grid .service-enabled:not(#_){min-height:var(--ui-h,34px);display:flex;align-items:center;gap:8px;margin:0!important;align-self:end!important}
html body #settingsPage #settingsSwap .swap-staff.buffer-grid input[type=number]:not(#_){height:var(--ui-h,34px);border-radius:0}
@media(max-width:900px){html body #settingsPage #settingsSwap .swap-staff.buffer-grid:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){html body #settingsPage #settingsSwap .swap-staff.buffer-grid:not(#_){grid-template-columns:minmax(0,1fr)!important}}

/* Passo e Flessibilità affiancati, stessa altezza (1.268.27) */
html body #settingsPage .hours-top-pair:not(#_){align-items:stretch!important;margin-bottom:16px}
html body #settingsPage .hours-top-pair>.rnb-card:not(#_){height:100%!important;margin:0!important}
html body #settingsSwap .swap-card.is-active small:not(#_):not(#__):not(#___){background:var(--azure)!important;color:var(--on-accent)!important}

/* Preventivi per gruppi: campi brevi affiancati nelle schede «Preventivi» (Impostazioni › Experience) */
html body #settingsPage #settingsExperiences .qs-row:not(#_){display:flex;flex-wrap:wrap;align-items:end;gap:var(--gap-row) var(--gap-field);margin-top:var(--gap-row)}
html body #settingsPage #settingsExperiences .qs-row .set-field:not(#_){flex:0 0 88px;min-width:0}
html body #settingsPage #settingsExperiences .qs-row .set-field.qs-wide:not(#_){flex:1 1 220px}
html body #settingsPage #settingsExperiences .qs-row .set-field input:not(#_):not(#__){width:100%;max-width:none}
html body #settingsPage #settingsExperiences .qs-row .set-field input[type=text]:not(#_):not(#__){min-width:0}
html body #settingsPage #settingsExperiences .qs-row .set-field:has(input[type=text]):not(.qs-wide):not(#_){flex:1 1 160px}
html body #settingsPage #settingsExperiences #quoteSettingsCard .rnb-sep-title:not(#_){margin-top:var(--gap-row)}
html body #settingsPage #settingsExperiences #quoteSettingsCard .rnb-sep-title:first-child:not(#_){margin-top:0}

/* Telefono: riga di experience e di supplemento compatta (nome e ✕ sulla prima riga, poi i campi affiancati) */
@media(max-width:640px){
html body #settingsPage #experienceSettings .set-list .set-row:not(#_),
html body #settingsPage #qsSupList .set-row:not(#_){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:var(--gap-row) var(--gap-field)!important;align-items:end}
html body #settingsPage #experienceSettings .set-list .set-row-n:not(#_){display:none!important}
html body #settingsPage #experienceSettings .set-list .set-row>.set-field:first-of-type:not(#_),
html body #settingsPage #qsSupList .set-row>.set-field:first-of-type:not(#_){grid-column:1 / 3;grid-row:1}
html body #settingsPage #experienceSettings .set-list .set-row>.row-x:not(#_),
html body #settingsPage #experienceSettings .set-list .set-row>span:last-child:not(.set-field):not(#_),
html body #settingsPage #qsSupList .set-row>.row-x:not(#_){grid-column:3;grid-row:1;justify-self:end}
}
@media(max-width:640px){
html body #settingsPage #qsSupList .set-row:not(#_){grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body #settingsPage #qsSupList .set-row>.set-field:first-of-type:not(#_){grid-column:1 / 4}
html body #settingsPage #qsSupList .set-row>.row-x:not(#_){grid-column:4}
}
@media(max-width:640px){
html body #settingsPage #experienceSettings .set-list .set-row>.set-field:not(:first-of-type):not(#_):not(#__),
html body #settingsPage #qsSupList .set-row>.set-field:not(:first-of-type):not(#_):not(#__){grid-column:auto!important;grid-row:auto!important}
}

/* == css/ui/61-page-service.css == */
/* Stile «Cantina» (1.268.1): pagine service (Timeline #timelinePage, Floor plan #floorPage). Solo token, regole comuni in 58-schede.css.
   Timeline: avviso, scheda Assistente (#rnbAssist), scheda «Giorno e servizio», scheda della griglia oraria.
   Floor plan: scheda dei filtri, scheda del servizio con la legenda, una scheda per area.
   La griglia oraria (colonna dei tavoli fissa, barre in %, tacche) NON è toccata qui: sta in 56-shared-ui-foundation.css (--tl-label). */

/* ---- Colonna di schede ---- */
html body :is(#timelinePage,#floorPage):not(.hidden):not(#_){display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
html body :is(#timelinePage,#floorPage)>:not(#_){margin-top:0;margin-bottom:0;min-width:0}
html body :is(#timelinePage,#floorPage) .rnb-card:not(#_):not(#__){margin:0;padding:0!important;min-width:0;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:0;box-shadow:var(--card-sh)!important;backdrop-filter:none}
html body :is(#timelinePage,#floorPage) .rnb-card.is-flat:not(#_):not(#__){background:var(--panel2)!important;box-shadow:none!important}
html body :is(#timelinePage,#floorPage) .rnb-card-head h2:not(#_),html body :is(#timelinePage,#floorPage) .rnb-card-head h3:not(#_){margin:0;padding:0;border:0;font-family:var(--font-brand);font-size:15px;font-weight:650;line-height:1.3;color:var(--text);text-align:left}
html body :is(#timelinePage,#floorPage) .rnb-card-sub:not(#_){text-align:left}
html body :is(#timelinePage,#floorPage) .rnb-card-body>:not(#_){margin-top:0;margin-bottom:0}

/* ---- Timeline: assistente ---- */
html body #rnbAssist:not(#_){display:block}
html body #rnbAssist .ax-head:not(#_){padding:16px var(--card-pad);border-bottom:var(--sep);gap:12px}
html body #rnbAssist .ax-title:not(#_){min-width:0;flex:1 1 220px}
html body #rnbAssist .ax-head-tools:not(#_){justify-content:flex-end}
html body #rnbAssist .ax-main:not(#_){display:grid;gap:14px}
html body #rnbAssist .ax-main>:not(#_){min-width:0}

/* ---- Timeline: scheda dei comandi ---- */
html body #timelinePage .tl-controls:not(#_){display:flex;flex-direction:column;gap:14px}
html body #timelinePage .tl-grid-card .timeline-actions:not(#_){flex-wrap:wrap;justify-content:flex-end;overflow:visible;margin:0 0 0 auto;min-height:0;padding:0}
html body #timelinePage .tl-controls .timeline-controls:not(#_){margin:0}
html body #timelinePage .tl-controls .timeline-search:not(#_){margin:0}

/* ---- Timeline: scheda della griglia (scorre dentro il suo contenitore) ---- */
html body #timelinePage .tl-grid-card .rnb-card-body:not(#_){padding:var(--card-pad)}
html body #timelinePage .tl-grid-card .timeline-scroll:not(#_){min-width:0}

/* ---- Floor plan: filtri ---- */
html body #floorPage .fp-controls-card .rnb-card-body:not(#_){display:flex;flex-direction:column;gap:14px}
html body #floorPage .fp-controls-card .floor-controls:not(#_){margin:0}
html body #floorPage .fp-controls-card .search-field:not(#_){margin:0}

/* ---- Timeline e Floor plan: gruppi «etichetta sopra + controllo sotto», etichette sulla stessa linea, controlli allineati in basso ---- */
html body :is(#timelinePage .timeline-controls,#floorPage .floor-controls):not(#_):not(#__){display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:var(--gap-row,12px) var(--gap-field,14px)}
html body :is(#timelinePage .timeline-controls,#floorPage .floor-controls)>.field:not(#_):not(#__){display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap-label,4px);min-width:0;margin:0!important;padding:0}
html body :is(#timelinePage .timeline-controls,#floorPage .floor-controls)>.field>label:not(#_):not(#__){margin:0!important;min-height:16px;line-height:16px}

/* ---- Floor plan: servizio e legenda, schede delle aree ---- */
html body #floorPage #tableGridFull:not(#_){display:flex;flex-direction:column;gap:0;min-width:0}
html body #floorPage .fp-head-row:not(#_){margin:0;padding:14px var(--card-pad);gap:8px 16px}
html body #floorPage .fp-legend:not(#_){gap:8px 16px;min-width:0}
/* Le sale stanno dentro la scheda «Floor plan»: blocchi senza fondo né bordo propri, separati da una linea */
html body #floorPage .fp-area:not(#_){padding:16px var(--card-pad,20px);border-top:1px solid var(--line);background:transparent;display:flex;flex-direction:column;gap:12px;min-width:0}
html body #floorPage .fp-area-title:not(#_){display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:0;padding:0;border:0}
html body #floorPage .fp-area-title .rnb-sep-title:not(#_){margin:0;padding:0}
html body #floorPage .fp-area-info:not(#_){font-size:12px;color:var(--muted)}
html body #floorPage .fp-area .fp-grid:not(#_){margin:0}

/* ---- Telefono ---- */
@media(max-width:640px){
  html body :is(#timelinePage,#floorPage) .rnb-card-actions:not(#_){justify-content:stretch}
  html body #rnbAssist .ax-head:not(#_){padding:16px var(--card-pad)}
  html body #timelinePage .tl-grid-card .timeline-actions:not(#_){display:grid!important;grid-template-columns:1fr 1fr}
  html body #timelinePage .tl-grid-card .rnb-card-body:not(#_){padding:12px}
  html body #floorPage .fp-area:not(#_){padding:12px}
  html body #floorPage .fp-head-row:not(#_){flex-direction:column;align-items:flex-start}
}

/* ---- Assistente e schede della Timeline ---- */
html body #rnbAssist .ax-item .ax-body strong:not(#_):not(#__){font-size:14px!important;text-align:left}
html body #rnbAssist .ax-mode-text:not(#_){text-align:left}
html body #rnbAssist .ax-item .ax-body p:not(#_):not(#__){text-align:left}
html body :is(#timelinePage,#floorPage,#rnbAssist) .rnb-card-head :is(h2,h3):not(#_):not(#__){margin:0!important;padding:0!important;border:0!important;font-size:15px!important;line-height:1.3!important;text-align:left!important}

/* ---- Timeline: prenotazione con orario di inizio spostato: barra arancione ---- */
html body #timelineContent .timeline-booking.tl-time-changed:not(#_){--st:var(--warn);--st-bg:var(--box-bg);border:1px solid var(--warn)!important;border-left:4px solid var(--warn)!important}

/* Giorno e servizio dentro la scheda «Timeline prenotazioni» (1.299.3, scelta dell'utente): non più una scheda a sé, ma la prima fascia
   della scheda, sotto l'intestazione e separata dalla griglia da una linea. In schermo intero su telefono resta la barra compatta in alto. */
html body #timelinePage .tl-grid-card>.tl-controls:not(#_):not(#__){padding:16px var(--card-pad,20px);border-bottom:var(--sep)}

/* Floor plan: «Servizio e filtri» non è più una scheda a sé ma la prima fascia della scheda «Floor plan» (come la Timeline); sotto la fascia
   il servizio con la legenda. Legenda più grande: testo 13 px, segni di colore 14 px. Clic su un tavolo = Timeline sulla riga (evidenziata 1,5 s). */
html body #floorPage .fp-controls-card>.fp-controls:not(#_):not(#__){display:flex;flex-direction:column;gap:14px;padding:16px var(--card-pad,20px);border-bottom:var(--sep)}
html body #floorPage .fp-controls-card>.fp-head-row:not(#_):not(#__){margin:0;padding:14px var(--card-pad,20px);background:transparent;border:0}
html body #floorPage .fp-legend:not(#_):not(#__){font-size:13px;gap:8px 16px}
html body #floorPage .fp-legend span:not(#_):not(#__){gap:6px}
html body #floorPage .fp-dot:not(#_):not(#__){width:14px;height:14px}
html body #timelinePage .timeline-row.tl-flash:not(#_):not(#__){background:var(--ui-tint);outline:2px solid var(--now);outline-offset:-2px;transition:background-color .3s,outline-color .3s}

/* 1.301.0 Floor plan: controlli su una riga da 641 px (vanno a capo interi) */
@media(min-width:641px){
html body #floorPage .fp-controls .floor-controls:not(#_){flex-direction:row!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:var(--gap-row) var(--gap-field)!important}
html body #floorPage .fp-controls .floor-controls>.field:not(#_){flex:0 1 auto!important;width:auto!important;min-width:180px}
html body #floorPage .fp-controls .floor-controls>.search-field:not(#_){flex:1 1 220px!important;width:auto!important}
}
/* ricerca sulla stessa riga di Disponibilita' tavolo */
@media(min-width:641px){
html body #floorPage .fp-controls:not(#_){display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:var(--gap-row) var(--gap-field)!important}
html body #floorPage .fp-controls>.floor-controls:not(#_):not(#__):not(#___){display:contents!important}
html body #floorPage .fp-controls .search-field:not(#_){flex:1 1 220px!important;margin:0!important}
}

/* Timeline: fascia dei comandi su una riga che va a capo a blocchi interi, ricerca in fondo */
@media(min-width:641px){
html body #timelinePage .tl-controls:not(#_):not(#__){display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:var(--gap-row) var(--gap-field)!important}
html body #timelinePage .tl-controls>.timeline-controls:not(#_):not(#__):not(#___){display:contents!important}
html body #timelinePage .tl-controls .timeline-controls>.field:not(#_):not(#__){flex:0 1 auto!important;width:auto!important;min-width:180px}
html body #timelinePage .tl-controls .timeline-search:not(#_):not(#__){flex:1 1 220px!important;width:auto!important;margin:0!important}
}
/* Timeline: intestazione della colonna fissa e nome tavolo, a ogni larghezza */
html body #timelineContent .timeline-head>.timeline-label:not(#_):not(#__):not(#___){overflow:hidden;max-width:var(--tl-label)}
html body #timelineContent .timeline-head>.timeline-label>span:not(#_):not(#__):not(#___){display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
html body #timelineContent .timeline-head>.timeline-label>small:not(#_):not(#__):not(#___){display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
html body #timelineContent .timeline-row>.timeline-label>.tl-table-name:not(#_):not(#__):not(#___):not(#____){display:flex;flex-wrap:wrap;justify-content:center;align-self:center;text-align:center;width:100%;flex:0 0 100%}
html body #timelineContent .timeline-row>.timeline-label>.tl-table-name>b:not(#_):not(#__):not(#___):not(#____){text-align:center}
html body #timelineContent .timeline-row>.timeline-label:not(#_):not(#__):not(#___){justify-content:center}

/* Riga strumenti della Timeline (sotto i filtri, sopra la griglia): Elimina e Scambia solo con una prenotazione selezionata */
html body #timelinePage .tl-grid-card>.timeline-actions.tl-tools:not(#_):not(#__){display:none!important}
html body #timelinePage .tl-grid-card.tl-has-sel>.timeline-actions.tl-tools:not(#_):not(#__){display:flex!important;flex-wrap:nowrap;justify-content:flex-start;margin:0;padding:12px var(--card-pad,20px);border-bottom:var(--sep);gap:var(--gap-ctl)}
html body #timelinePage .tl-grid-card:not(.tl-has-sel)>.timeline-actions.tl-tools>:not(.tl-fs-only):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________):not(#_________):not(#__________){display:none!important}
html body #timelinePage .tl-grid-card>.timeline-actions.tl-tools:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){flex:0 0 auto!important}

/* == css/ui/61-page-haccp.css == */
/* HACCP (registro temperature e lotti): solo token. Lo stato si dice col colore del testo, mai con fondi pieni. */
html body .hc-ok:not(#_){color:var(--ok);font-weight:600}
html body .hc-bad:not(#_){color:var(--bad);font-weight:600}
html body .hc-warn:not(#_){color:var(--warn);font-weight:600}
html body #haccpToday td input:not(#_){min-width:96px;width:100%}
html body #haccpToday td input.hc-need:not(#_){border-color:var(--bad)}
/* schede sorelle in una colonna a --card-gap (la griglia .rnb-cards sceglie da sola le colonne) */
html body #haccpBody .rnb-cards:not(#_):not(#__){grid-template-columns:minmax(0,1fr)}
/* celle delle tabelle: stessa riga bassa delle tabelle di Inventario e Fatturato (la regola per pagina sta in 41-inventory-and-orders.css e non conosce #documentsPage) */
html body #haccpBody .inv-table td:not(#_):not(#__){padding-top:3px;padding-bottom:3px}
/* Storico: filtri su una riga (date strette, apparecchio e stato larghi), etichette in alto e controlli allineati in basso */
html body #haccpHist .hc-form:not(#_):not(#__){display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(150px,170px) minmax(150px,170px) minmax(160px,1fr);gap:var(--gap-field);align-items:end}
html body #haccpHist .hc-form .field:not(#_):not(#__){min-width:0}
html body #haccpHist .hc-form input:not(#_):not(#__),html body #haccpHist .hc-form select:not(#_):not(#__){width:100%;min-width:0}
/* Nuovo lotto: 3 campi per riga */
html body #haccpLotNew .hc-form:not(#_):not(#__){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap-row) var(--gap-field);align-items:end}
html body #haccpLotNew .hc-form .field:not(#_):not(#__){min-width:0}
html body #haccpLotNew .hc-form input:not(#_):not(#__){width:100%;min-width:0}
html body #haccpToday .hc-form input[type="date"]:not(#_):not(#__){min-width:150px}
@media(max-width:640px){
 html body #haccpHist .hc-form:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap-row) var(--gap-field)}
 html body #haccpHist .hc-form .field:nth-child(2):not(#_):not(#__){order:1}
 html body #haccpHist .hc-form .field:nth-child(3):not(#_):not(#__){order:2}
 html body #haccpHist .hc-form .field:nth-child(1):not(#_):not(#__){order:3}
 html body #haccpHist .hc-form .field:nth-child(4):not(#_):not(#__){order:4}
 html body #haccpLotNew .hc-form:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #haccpLotNew .hc-form .field:nth-child(1):not(#_):not(#__),html body #haccpLotNew .hc-form .field:nth-child(6):not(#_):not(#__){grid-column:1/-1}
 html body #haccpHist input[type="date"]:not(#_):not(#__),html body #haccpLotNew input[type="date"]:not(#_):not(#__){min-width:0;padding-left:8px;padding-right:4px;font-size:15px}
}
/* riquadri tutti uguali dentro la scheda (etichetta sopra, numero sotto) */
html body main #documentsPage #haccpPanel #haccpKpis .inv-kpi:not(#_):not(#__):not(#___):not(#____){display:flex!important;flex-direction:column-reverse;justify-content:flex-end;gap:4px}
html body main #documentsPage #haccpPanel #haccpKpis .inv-kpi>b:not(#_):not(#__):not(#___):not(#____){font-size:24px!important;line-height:1.1;font-weight:700}
@media(max-width:640px){
 html body main #documentsPage #haccpPanel .rnb-card>header.rnb-card-head:not(#_):not(#__):not(#___):not(#____){flex-wrap:wrap;row-gap:var(--gap-row)}
 html body main #documentsPage #haccpPanel .rnb-card>header.rnb-card-head>.rnb-card-actions:not(#_):not(#__):not(#___):not(#____){flex:1 0 100%!important;width:100%!important;max-width:none!important;margin:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:var(--gap-ctl)}
 html body main #documentsPage #haccpPanel .rnb-card>header.rnb-card-head>.rnb-card-actions .btn:not(#_):not(#__):not(#___):not(#____){width:100%!important;margin:0!important;grid-column:auto!important}
}

/* == css/ui/61-page-activity.css == */
/* Dashboard › Attività (prova-registro): striscia «Chi ha fatto cosa» con persone in colonna e ore in riga, legenda e colori per
   tipo di attività (prenotazioni petrolio, inventario verde, listino arancione, upload scuro, altro grigio; da controllare =
   contorno bordeaux). Schede, riquadri, tabelle e campi usano le classi comuni. Solo token.
   Le regole con !important servono contro quelle dei pulsanti (56-shared-ui-foundation.css): catena di :not(#_) per vincere. */
html body #dashboardPage .act-strip:not(#_){width:100%;min-width:0}
html body #dashboardPage .act-strip .act-row:not(#_){display:grid;grid-template-columns:44px repeat(var(--act-n),minmax(0,1fr));align-items:stretch;border-bottom:1px solid var(--ui-line)}
html body #dashboardPage .act-strip .act-row:last-child:not(#_){border-bottom:0}
html body #dashboardPage .act-strip .act-hour:not(#_){display:flex;align-items:center;min-height:28px;color:var(--muted);font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
html body #dashboardPage .act-strip .act-h:not(#_){display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:3px;min-width:0;min-height:28px;padding:0 4px;overflow:hidden;border-left:1px solid var(--ui-line)}
html body #dashboardPage .act-strip button.act-who:not(#_):not(#__):not(#___){display:flex;align-items:center;justify-content:flex-start!important;min-height:34px!important;height:auto!important;padding:0 4px!important;background:transparent!important;border:0!important;border-left:1px solid var(--ui-line)!important;box-shadow:none!important;color:var(--text);font-size:13px!important;font-weight:600!important;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #dashboardPage .act-strip button.act-who.is-on:not(#_):not(#__):not(#___){color:var(--azure)!important;box-shadow:inset 0 -3px 0 var(--azure)!important}
html body #dashboardPage .act-mk:not(#_):not(#__):not(#___){display:block;flex:0 0 auto;width:14px!important;min-width:14px!important;height:10px!important;min-height:10px!important;padding:0;border:0;background:var(--muted)!important;align-self:center}
html body #dashboardPage button.act-mk:not(#_):not(#__):not(#___){cursor:pointer}
html body #dashboardPage button.act-mk:hover:not(#_):not(#__):not(#___){opacity:.7}
html body #dashboardPage .act-mk.t-pren:not(#_):not(#__):not(#___){background:var(--azure)!important}
html body #dashboardPage .act-mk.t-inv:not(#_):not(#__):not(#___){background:var(--ok)!important}
html body #dashboardPage .act-mk.t-list:not(#_):not(#__):not(#___){background:var(--warn)!important}
html body #dashboardPage .act-mk.t-up:not(#_):not(#__):not(#___){background:var(--text)!important}
html body #dashboardPage .act-mk.t-altro:not(#_):not(#__):not(#___){background:var(--muted)!important}
html body #dashboardPage .act-mk.is-flag:not(#_):not(#__):not(#___){outline:2px solid var(--now);outline-offset:1px}
html body #dashboardPage .act-legend:not(#_){display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 10px}
html body #dashboardPage .act-legend .act-lg:not(#_){display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:600}
html body #dashboardPage .act-legend .act-mk.is-flag:not(#_):not(#__):not(#___){background:transparent!important}
html body #dashboardPage td.act-flag:not(#_){color:var(--now);font-weight:600}
html body #dashboardPage .act-filters:not(#_){align-items:end}
/* nota sotto la voce: l'area in piccolo grigio a blocco */
html body #dashboardPage .act-pane td small:not(#_){display:block;color:var(--muted);font-size:11px}
@media(max-width:640px){
 html body #dashboardPage .act-strip-wrap:not(#_){overflow-x:hidden}
}

/* Su telefono le regole comuni dei pulsanti (44 px) non valgono per i segni della griglia; numeri dei riquadri grandi come negli altri riquadri */
html body #dashboardPage .act-strip.is-t button.act-mk:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________):not(#_________){width:14px!important;min-width:14px!important;height:10px!important;min-height:10px!important;padding:0!important;align-self:center}
html body #dashboardPage .act-pane .inv-kpi b:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______):not(#________):not(#_________){display:block;font-size:22px!important;font-weight:700!important;line-height:1.2}

/* Registro: la frase dell'azione e il link; persona sotto l'ora solo su telefono */
html body #dashboardPage .act-reg button.act-go:not(#_):not(#__):not(#___){display:inline;height:auto!important;min-height:0!important;text-align:left!important;white-space:normal!important;line-height:1.35}
html body #dashboardPage .act-reg td small.act-who-m:not(#_):not(#__){display:none}

/* Griglia: oltre 8 voci in una cella, un segno per tipo con il numero */
html body #dashboardPage .act-strip .act-grp:not(#_){display:inline-flex;align-items:center;gap:4px;margin-right:6px}
html body #dashboardPage .act-strip .act-grp b:not(#_){color:var(--muted);font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}

/* Scheda Assistente: data, testo che va a capo, azioni a destra sulla stessa riga */
html body #dashboardPage #smartReorgLog .smart-log-row:not(#_):not(#__):not(#___){display:flex;flex-wrap:nowrap;align-items:flex-start;gap:var(--gap-ctl,8px) var(--gap-field,14px)}
html body #dashboardPage #smartReorgLog .smart-log-row .log-side:not(#_):not(#__):not(#___){display:contents}
html body #dashboardPage #smartReorgLog .smart-log-row .log-side>small:not(#_):not(#__):not(#___){order:-1;flex:0 0 auto;width:132px;color:var(--muted);font-size:11px;line-height:1.5}
html body #dashboardPage #smartReorgLog .smart-log-row>span:first-child:not(#_):not(#__):not(#___){order:0;flex:1 1 0;min-width:0;display:block;white-space:normal;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;overflow-wrap:anywhere}
html body #dashboardPage #smartReorgLog .smart-log-row .log-acts:not(#_):not(#__):not(#___),html body #dashboardPage #smartReorgLog .smart-log-row .log-undone:not(#_):not(#__):not(#___){order:1;flex:0 0 auto;margin-left:auto}

@media(max-width:640px){
 /* Registro su due colonne: ora con persona sotto | frase intera */
 html body main #dashboardPage .act-reg table:not(#_):not(#__):not(#___){table-layout:fixed!important;width:100%!important;min-width:0!important}
 html body main #dashboardPage .act-reg :is(th,td).act-col-who:not(#_):not(#__):not(#___){display:none!important}
 html body main #dashboardPage .act-reg :is(th,td):first-child:not(#_):not(#__):not(#___){width:84px!important;min-width:0!important;max-width:none!important}
 html body main #dashboardPage .act-reg td:not(#_):not(#__):not(#___){white-space:normal!important;overflow-wrap:anywhere;vertical-align:top!important}
 html body main #dashboardPage .act-reg td small.act-who-m:not(#_):not(#__):not(#___){display:block!important;color:var(--muted);font-size:11px;white-space:normal}
 /* Assistente: data sopra il testo se la riga è stretta */
 html body #dashboardPage #smartReorgLog .smart-log-row:not(#_):not(#__):not(#___){flex-wrap:wrap}
 html body #dashboardPage #smartReorgLog .smart-log-row .log-side>small:not(#_):not(#__):not(#___){width:100%}
 html body #dashboardPage #smartReorgLog .smart-log-row>span:first-child:not(#_):not(#__):not(#___){flex:1 1 0}
}

/* == css/ui/61-page-quotes.css == */
/* Preventivi per gruppi (ramo di Comunicazione). Solo token; schede e liste dal modello comune.
   Regole nuove: selettore con #commsPage e :not(#_). */
html body #commsPage #quotesPane .qt-grid:not(#_):not(#__){display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));align-items:end;gap:var(--gap-row) var(--gap-field)}
html body #commsPage #quotesPane .qt-grid .qt-wide:not(#_){grid-column:span 2}
html body #commsPage #quotesPane .qt-grid .qt-n input:not(#_){max-width:88px}
html body #commsPage #quotesPane .qt-table td.td-act:not(#_){white-space:nowrap}
html body #commsPage #quotesPane .qt-table td.td-act>*:not(#_){vertical-align:middle;margin-right:var(--gap-ctl)}
html body #commsPage #quotesPane .qt-sup:not(#_){display:grid;grid-template-columns:28px minmax(0,1fr) 88px 96px;align-items:center;gap:var(--gap-field)}
html body #commsPage #quotesPane .qt-nm:not(#_){font-size:13px;font-weight:500}
html body #commsPage #quotesPane .qt-sup .qt-qty:not(#_){width:88px}
html body #commsPage #quotesPane .qt-sup .qt-nm small:not(#_){display:block;color:var(--muted);font-size:12px}
html body #commsPage #quotesPane .qt-amt:not(#_){text-align:right;font-variant-numeric:tabular-nums;font-size:13px}
html body #commsPage #quotesPane .qt-chips:not(#_){display:flex;flex-wrap:wrap;gap:var(--gap-ctl)}
html body #commsPage #quotesPane .qt-chip:not(#_){background:var(--panel2);border:1px solid var(--box-line);padding:4px 10px;font-size:12px;color:var(--text)}
html body #commsPage #quotesPane .qt-edit textarea.cm-reply:not(#_){width:100%;min-height:260px}
html body #commsPage #quotesPane .rnb-card-actions .type-filter:not(#_){display:inline-flex}
html body #commsPage #quotesPane td.num:not(#_),html body #commsPage #quotesPane th.num:not(#_){text-align:right;font-variant-numeric:tabular-nums}
html body #commsPage #quotesPane .rnb-ic:not(#_){width:18px;height:18px}
@media(min-width:641px){html body #commsPage #quotesPane .btn .rnb-ic:not(#_){display:none}}
@media(max-width:640px){html body #commsPage #quotesPane .btn .rnb-bt:not(#_){display:none}}
@media(max-width:640px){html body #commsPage #quotesPane .qt-hm:not(#_):not(#__){display:none!important}}
html body #commsPage #quotesPane td small:not(#_){display:block;color:var(--muted);font-size:12px;font-weight:400}
/* Intestazione Richiesta: freccia a sinistra del titolo, stati a destra */
html body #commsPage #quotesPane .rnb-card-head.qt-head:not(#_){display:flex;align-items:center;gap:var(--gap-ctl)}
html body #commsPage #quotesPane .qt-head .qt-back:not(#_){width:28px;min-width:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
html body #commsPage #quotesPane .qt-head .qt-back .rnb-ic:not(#_),html body #commsPage #quotesPane .qt-head .qt-back svg:not(#_){display:block;width:18px;height:18px}
html body #commsPage #quotesPane .qt-head .rnb-card-title:not(#_){margin-right:auto}
html body #commsPage #quotesPane .qt-head .rnb-card-actions:not(#_){margin-left:auto;display:flex;align-items:center}
/* Riepilogo: motivo sotto il valore */
html body #commsPage #quotesPane .inv-kpi small:not(#_){display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:2px}
/* Supplementi: quantità in colonna fissa con unità */
html body #commsPage #quotesPane .qt-sup:not(#_){grid-template-columns:28px minmax(0,1fr) 112px 96px}
html body #commsPage #quotesPane .qt-sup .qt-q:not(#_){display:flex;align-items:center;gap:6px;min-height:28px}
html body #commsPage #quotesPane .qt-sup .qt-q em:not(#_){font-style:normal;font-size:12px;color:var(--muted)}
html body #commsPage #quotesPane .qt-sup .qt-qty:not(#_){width:72px}
html body main #quotesPane .rnb-card>header.qt-head>.rnb-card-title:not(#_):not(#__):not(#___):not(#____):not(#_____){align-self:center!important}

/* Condizioni (preventivo e Impostazioni): casella su una riga, testo libero a tutta larghezza */
html body .qt-chkline:not(#_){display:flex;align-items:center;gap:var(--gap-ctl);font-size:13px;font-weight:600;color:var(--muted)}
html body :is(#quotesPane .qt-pol,#quoteSettingsCard) textarea:not(#_){width:100%;min-height:72px;padding:10px;font:inherit;font-size:13px;border:1px solid var(--ui-line);resize:vertical}

/* == css/ui/62-section-nav.css == */
/* Navigazione di sezione (js/section-nav.js): elenco laterale da 900 px, filtro segmentato sotto */
html body main .sec-nav{display:none}
html body main .sec-seg{display:none}
@media(max-width:899px){
 html body main.has-sec>.sec-seg{max-width:100%}
}
@media(min-width:900px){
 html body main.has-sec{display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:20px;row-gap:0;grid-auto-rows:auto;align-items:start}
 html body main.has-sec>*{grid-column:2}
 html body main.has-sec>.sec-nav{display:flex;flex-direction:column;grid-column:1;grid-row:1/span 60;position:sticky;top:76px;align-self:start;background:var(--panel);border:1px solid var(--line);border-radius:0;box-shadow:none}
 
 .sec-nav-title{padding:4px 10px 10px;margin-bottom:6px;border-bottom:1px solid var(--line);font-family:var(--font-display,inherit);font-size:18px;font-weight:600;color:var(--text)}
 html body .sec-nav .sec-nav-item{display:flex;align-items:center;gap:10px;min-height:36px;padding:6px 10px;border-radius:0;border:0;background:transparent;color:var(--text);font-size:13px;font-weight:600;text-decoration:none;box-shadow:none;transform:none;transition:background-color .15s,color .15s}
 html body .sec-nav .sec-nav-item:hover{background:var(--box-bg,var(--panel));color:var(--azure);transform:none;box-shadow:none}
 html body .sec-nav .sec-nav-item.active{background:var(--azure);color:var(--on-accent)}
 html body .sec-nav .sec-nav-item[hidden]{display:none}
 .sec-nav .sec-nav-item svg{flex:none}
}

@media(min-width:900px){html body main.has-sec>.sec-seg:not(#_):not(#__){display:none!important}}
@media(max-width:899px){html body main.has-sec>.sec-nav:not(#_):not(#__){display:none!important}}

/* Voci della colonna: testo pieno e leggibile; la voce scelta ha una barra d'accento a sinistra, contorno e fondo tenue (1.268.35) */
@media(min-width:900px){
 html body main.has-sec>.sec-nav:not(#_):not(#__){gap:4px;padding:8px}
 html body main.has-sec .sec-nav .sec-nav-item:not(#_):not(#__){color:var(--text)!important;font-size:14px!important;font-weight:500!important;min-height:40px;padding:8px 10px 8px 12px!important;border:1px solid transparent!important;border-left:4px solid transparent!important;background:transparent!important;opacity:1!important}
 html body main.has-sec .sec-nav .sec-nav-item:not(#_):not(#__) svg{color:var(--muted);stroke:currentColor}
 html body main.has-sec .sec-nav .sec-nav-item:not(#_):not(#__):hover{background:var(--box-bg,var(--panel))!important;border-color:var(--line)!important;border-left-color:var(--line)!important}
 html body main.has-sec .sec-nav .sec-nav-item.active:not(#_):not(#__){color:var(--text)!important;font-weight:700!important;background:var(--ui-tint,var(--box-bg))!important;border-color:var(--azure)!important;border-left-color:var(--azure)!important}
 html body main.has-sec .sec-nav .sec-nav-item.active:not(#_):not(#__) svg{color:var(--azure)}
}

/* Telefono (1.268.38): due livelli ben distinti, ognuno su una riga.
   1) Sezione (Inventario · Ordini · Listino): barra piena a colonne uguali, voce scelta in petrolio pieno.
   2) Schede della pagina (Giacenze · Vendite…): solo testo con sottolineatura, una riga che scorre di lato. */
@media(max-width:899px){
 html body main.has-sec>.sec-seg:not(#_):not(#__):not(#___){display:grid!important;grid-auto-flow:column;grid-auto-columns:1fr;gap:0!important;margin:0 0 10px!important;padding:0!important;background:var(--panel)!important;border:1px solid var(--line)!important;width:100%}
 html body main.has-sec>.sec-seg>:is(button,a):not(#_):not(#__):not(#___){font-size:14px!important;font-weight:600!important;white-space:nowrap;text-overflow:ellipsis;border:0!important;border-left:1px solid var(--line)!important;color:var(--text)!important;box-shadow:none!important}
 html body main.has-sec>.sec-seg>:is(button,a):first-child:not(#_):not(#__):not(#___){border-left:0!important}
 
}
@media(max-width:640px){
 html body main :is(.inv-tabs,.settings-tabs,.rnb-seg,.page-sections,#invSections):not(.sec-seg):not(#_):not(#__){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none;gap:0!important;padding:0!important;margin:0 0 12px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important}
 html body main :is(.inv-tabs,.settings-tabs,.rnb-seg,.page-sections,#invSections):not(.sec-seg):not(#_):not(#__)::-webkit-scrollbar{display:none}
 html body main :is(.inv-tabs,.settings-tabs,.rnb-seg,.page-sections,#invSections):not(.sec-seg) :is(button,a):not(#_):not(#__):not(#___){flex:0 0 auto!important;width:auto!important;font-size:14px!important;font-weight:500!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--muted)!important;white-space:nowrap}
 html body main :is(.inv-tabs,.settings-tabs,.rnb-seg,.page-sections,#invSections):not(.sec-seg) :is(button,a):is(.is-active,.active,[aria-selected="true"],[aria-pressed="true"]):not(#_):not(#__):not(#___){color:var(--text)!important;font-weight:700!important;background:transparent!important;box-shadow:inset 0 -3px 0 var(--azure)!important}
}

/* testo dei pulsanti centrato in altezza e mai tagliato (1.268.40) */
@media(max-width:899px){
 html body main.has-sec>.sec-seg>:is(button,a):not(#_):not(#__):not(#___){display:flex!important;align-items:center!important;justify-content:center!important;height:auto!important;min-height:44px!important;padding:6px!important;line-height:1.2!important;overflow:visible!important}
}
@media(max-width:640px){
 html body main :is(.inv-tabs,.settings-tabs,.rnb-seg,.page-sections,#invSections):not(.sec-seg) :is(button,a):not(#_):not(#__):not(#___){display:inline-flex!important;align-items:center!important;height:auto!important;min-height:44px!important;padding:6px 12px!important;line-height:1.2!important}
}

/* contenitore alto quanto i pulsanti (1.268.41) */
@media(max-width:899px){html body main.has-sec>.sec-seg:not(#_):not(#__):not(#___){height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important}}
@media(max-width:640px){html body main :is(.type-filter,.inv-tabs,.settings-tabs,.rnb-seg,.page-sections,#invSections):not(#_):not(#__):not(#___){height:auto!important;max-height:none!important}}

/* Menu principale (1.268.54): Servizio, Ospiti, Finanza, Prodotti, Dati e Impostazioni (telefono: due pagine, Impostazioni e Documenti) non hanno tendina né elenco a nessuna larghezza;
   la categoria apre la prima pagina e le altre si scelgono nella barra di sezione. La categoria aperta resta evidenziata dalla regola esistente .has-active. */
html body .rnb-nav-sec:is([data-group="servizio"],[data-group="ospiti"],[data-group="finanza"],[data-group="prodotti"],[data-group="dati"],[data-group="impostazioni"]) .rnb-nav-list:not(#_):not(#__){display:none!important}

/* notifiche nella barra e nella colonna di sezione (1.268.55) */
html body .sec-nav .sec-badge:not(#_),html body .sec-seg .sec-badge:not(#_){margin-left:auto;min-width:20px;height:20px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;background:var(--now)!important;color:var(--on-accent)!important}
html body .sec-seg .sec-badge:not(#_){margin-left:6px}

/* Albero nella colonna di sezione (1.268.61, esempio in Prodotti): rami sotto la pagina aperta */
@media(min-width:900px){
 html body main.has-sec .sec-tree:not(#_){display:flex;flex-direction:column;gap:2px;margin:2px 0 6px 22px;padding-left:10px;border-left:1px solid var(--line)}
 html body main.has-sec .sec-tree .sec-tree-item:not(#_):not(#__):not(#___){display:block!important;width:100%!important;min-width:0!important;min-height:32px!important;height:auto!important;padding:6px 10px!important;text-align:left!important;font-size:13px!important;font-weight:500!important;color:var(--muted)!important;background:transparent!important;border:0!important;box-shadow:none!important}
 html body main.has-sec .sec-tree .sec-tree-item:not(#_):not(#__):not(#___):hover{color:var(--text)!important;background:var(--box-bg,var(--panel))!important}
 html body main.has-sec .sec-tree .sec-tree-item.active:not(#_):not(#__):not(#___){box-shadow:inset 3px 0 0 var(--azure)!important}
 
}

/* Albero orizzontale su telefono (1.268.62): riga dei rami attaccata sotto la barra delle pagine */
html body main>.sec-tree-h:not(#_){display:none}
@media(max-width:899px){
 html body main.has-sec>.sec-tree-h:not(#_):not(#__){flex-wrap:nowrap;scrollbar-width:none;gap:0;margin:-10px 0 12px!important;padding:0 0 0 12px!important;background:var(--panel);border:1px solid var(--line);}
 html body main.has-sec>.sec-tree-h::-webkit-scrollbar{display:none}
 html body main.has-sec>.sec-tree-h .sec-tree-item:not(#_):not(#__):not(#___){min-height:44px!important;height:44px!important;font-size:14px!important;font-weight:500!important;color:var(--muted)!important;background:transparent!important;border:0!important;box-shadow:none!important;}
 
}
/* la barra delle schede della pagina, sostituita dall'albero, non si vede a nessuna larghezza */
html body .sec-tree-src:not(#_):not(#__):not(#___){display:none!important}
/* 1.268.62: niente più righe sfumate (trasparenti) sulle barre delle schede, a tutte le larghezze */
html body :is(.settings-tabs,.inv-tabs,.type-filter,.page-sections,.rnb-seg,.sec-seg,#invSections):not(#_):not(#__):not(#___){background-image:none!important}
html body main .sec-tree-src:not(#_):not(#__):not(#___):not(#____):not(#_____){display:none!important}
/* badge dentro la barra delle pagine su telefono: accanto alla scritta, non sopra */
html body main .sec-seg>button:not(#_):not(#__):not(#___){position:relative;gap:6px}
html body main .sec-seg .sec-badge:not(#_):not(#__):not(#___){position:static!important;margin:0 0 0 4px!important;transform:none!important}

/* la riga orizzontale dei rami esiste solo su telefono (1.268.63) */
@media(min-width:900px){html body main>.sec-tree-h:not(#_):not(#__):not(#___){display:none!important}}

/* titoli uguali al ramo scelto nascosti; il contenuto sale (1.268.66) */
html body .rnb-dup-title:not(#_):not(#__):not(#___){display:none!important}

/* spazio liberato dai titoli doppi: il contenuto parte vicino al titolo della pagina (1.268.67) */
@media(min-width:900px){
 html body main.has-sec>.top:not(#_):not(#__){margin-bottom:12px!important;padding-bottom:8px!important}
 html body main.has-sec>section:not(.hidden)>.panel:first-of-type:not(#_):not(#__),html body main.has-sec>section:not(.hidden)>.sec-tree-src+*:not(#_):not(#__){padding-top:0!important;margin-top:0!important}
}

/* niente spazio per il sottotitolo nascosto e per i titoli doppi nascosti (1.268.69) */
html body main>.top:not(#_):not(#__){min-height:0!important}
html body main>.top #pageTitle:not(#_):not(#__){margin-bottom:0!important}
html body :has(>.rnb-dup-title):not(:has(>:not(.rnb-dup-title))):not(#_):not(#__){display:none!important}

/* telefono: riga dei rami senza linee che la collegano alla pagina scelta (1.281.2, scelta dell'utente: tolta la «L» blu
   del 1.268.70–80, niente ::before/::after); la scelta si vede dalla sola sottolineatura del ramo */
@media(max-width:899px){
 html body main.has-sec>.sec-tree-h:not(#_):not(#__):not(#___){position:relative;box-shadow:none!important}
}

/* telefono (1.268.75): un solo segno per la scelta, a tutti i livelli dell'albero = linea petrolio da 3 px.
   Pagina scelta: testo scuro in grassetto con sottolineatura da 3 px (non più il blocco pieno) */
@media(max-width:899px){
 html body main.has-sec>.sec-seg>:is(button,a):is(.is-active,.active,[aria-current],[aria-pressed="true"]):not(#_):not(#__):not(#___){color:var(--text)!important;font-weight:700!important;}
 html body main.has-sec>.sec-seg>:is(button,a):is(.is-active,.active,[aria-current],[aria-pressed="true"]):not(#_):not(#__):not(#___) .sec-badge{color:var(--on-accent)!important}
 html body main.has-sec>.sec-tree-h .sec-tree-item.active:not(#_):not(#__):not(#___){box-shadow:inset 0 -3px 0 var(--azure)!important}
}

/* telefono (1.268.77): pagina scelta non «sollevata» (stesso fondo delle altre) e nessun bordo tra barra delle pagine e rami: la linea è continua */
@media(max-width:899px){
 html body main.has-sec>.sec-seg:not(#_):not(#__):not(#___){margin-bottom:0!important}
 html body main.has-sec>.sec-seg>:is(button,a):not(#_):not(#__):not(#___){background:transparent!important;transform:none!important}
 html body main.has-sec>.sec-seg>:is(button,a):is(.is-active,.active,[aria-current],[aria-pressed="true"]):not(#_):not(#__):not(#___){background:transparent!important;box-shadow:inset 0 -3px 0 var(--azure)!important}
 html body main.has-sec>.sec-tree-h:not(#_):not(#__):not(#___){margin-top:0!important;border-top:0!important}
}
/* telefono (1.268.86, rivisto 1.281.2): con i rami sotto, la pagina scelta non è sottolineata (resta in grassetto):
   una sola linea, sotto il ramo scelto */
@media(max-width:899px){
 html body main.has-sec>.sec-seg:has(+.sec-tree-h .sec-tree-item.active)>:is(button,a):is(.is-active,.active,[aria-current],[aria-pressed="true"]):not(#_):not(#__):not(#___):not(#____){box-shadow:none!important}
}
/* telefono (1.268.87): i rami si allargano fino a riempire la riga (se non ci stanno, la riga scorre come prima) */
@media(max-width:899px){
 html body main.has-sec>.sec-tree-h:not(#_):not(#__):not(#___):not(#____){padding-left:0!important}
 html body main.has-sec>.sec-tree-h .sec-tree-item:not(#_):not(#__):not(#___):not(#____){flex:1 0 auto!important;justify-content:center!important;}
}

/* Niente ripetizioni (1.270.1): categoria con una sola pagina (Impostazioni, Dati). La voce della pagina sparisce dalla colonna
   e dalla barra del telefono; i rami stanno direttamente sotto il titolo della colonna; su telefono resta la sola sottolineatura del ramo. */
html body main.has-sec .sec-nav-item.sec-solo:not(#_):not(#__):not(#___){display:none!important}
html body main.has-sec>.sec-seg.sec-solo:not(#_):not(#__):not(#___){display:none!important}
html body main.has-sec .sec-tree.sec-tree-solo:not(.sec-tree-h):not(#_):not(#__){margin-left:0;padding-left:0;border-left:0}

/* Voce attiva ben visibile (scelta dell'utente, 24 nov 2026): pagina e ramo scelti con fondo tenue e testo scuro in grassetto, le altre in grigio; il ramo tiene anche la barra petrolio */
html body main.has-sec>.sec-seg>:is(button,a):not(#_):not(#__):not(#___):not(#____){color:var(--muted)!important}
html body main.has-sec>.sec-seg>:is(button,a):is(.is-active,.active,[aria-current],[aria-pressed="true"]):not(#_):not(#__):not(#___):not(#____){background:var(--ui-tint,var(--box-bg))!important;color:var(--text)!important;font-weight:700!important}
html body main.has-sec>.sec-tree-h .sec-tree-item.active:not(#_):not(#__):not(#___):not(#____),html body main.has-sec .sec-tree .sec-tree-item.active:not(#_):not(#__):not(#___):not(#____){background:var(--ui-tint,var(--box-bg))!important;color:var(--text)!important;font-weight:700!important}

/* Barre di sezione regolari su telefono (scelta dell'utente, 24 nov 2026): pagine e rami sono due righe uguali, con voci di pari larghezza (testo a capo se serve, centrato) e lo stesso separatore sottile di 54; con 5 o più rami la riga scorre, con voci larghe quanto il testo. */
@media(max-width:899px){
 html body main.has-sec>.sec-tree-h:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);overflow:visible!important}
 html body main.has-sec>.sec-tree-h:has(>:nth-child(5)):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){display:flex!important;overflow-x:auto!important}
 html body main.has-sec>.sec-tree-h .sec-tree-item:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){position:relative;display:flex!important;align-items:center;width:auto!important;min-width:0!important;padding:0 6px!important;white-space:normal!important;line-height:1.15!important;text-align:center!important}
 html body main.has-sec>.sec-tree-h:has(>:nth-child(5)) .sec-tree-item:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){flex:0 0 auto!important;padding:0 12px!important;white-space:nowrap!important}
 html body main.has-sec>.sec-tree-h .sec-tree-item~.sec-tree-item:not(#_):not(#__):not(#___)::before{content:"";position:absolute;left:-2px;top:22%;bottom:22%;width:1px;background:var(--line);pointer-events:none}
}

/* Stacco tra la riga delle pagine e quella dei rami (scelta dell'utente, 24 nov 2026): linea sottile e ombra leggera, la riga delle pagine in primo piano (effetto 3D come la Timeline) */
@media(max-width:899px){
 html body main.has-sec>.sec-seg:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){position:relative;z-index:2;border-bottom:1px solid var(--line)!important;box-shadow:0 5px 7px -5px color-mix(in srgb,var(--text) 40%,transparent)!important}
}


/* Separatori delle righe di sezione: un solo tipo, quello sottile del gruppo (54); il bordo pieno a sinistra delle voci della riga delle pagine e dei gruppi si sommava al separatore e faceva righe doppie e più alte (24 nov 2026) */
@media(max-width:899px){
 html body main.has-sec>.sec-seg>:is(button,a):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){border-left:0!important}
}

/* Off · Suggerisci · Automatico e filtri delle Prenotazioni: anche qui la voce scelta ha la barra petrolio (le regole di altezza le azzeravano) */
html body main :is(.ax-mode,.type-filter)>:is(button,a):is(.is-active,.active,.on,[aria-pressed="true"]):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){box-shadow:inset 0 -3px 0 var(--azure)!important}

/* Albero a due linguaggi su telefono (25 nov 2026, proposta): pagine = gruppo segmentato con fondo tenue; rami = testo con sola sottolineatura, senza fondo né separatori; una tacca sotto la pagina aperta indica da dove nascono i rami */
@media(max-width:899px){
 html body main.has-sec>.sec-tree-h .sec-tree-item:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______)::before{display:none!important}
 html body main.has-sec>.sec-tree-h .sec-tree-item:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){background:transparent!important}
 html body main.has-sec>.sec-tree-h .sec-tree-item.active:not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______):not(#_______){background:transparent!important;color:var(--text)!important;font-weight:700!important}
 html body main.has-sec>.sec-seg>:is(button,a):is(.is-active,.active,[aria-current],[aria-pressed="true"]):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______)::after{content:"";position:absolute;left:50%;bottom:-1px;width:10px;height:10px;background:var(--panel);border-right:1px solid var(--line);border-bottom:1px solid var(--line);transform:translate(-50%,55%) rotate(45deg);z-index:4;pointer-events:none}
}

/* Barre dei rami spente (25 nov 2026): una pagina con meno di due schede disponibili, o un ramo senza blocchi, porta .rnb-off (page-sections.js); le regole dei gruppi segmentati con !important la facevano ricomparire (Analisi con un solo ramo mostrava la barra originale con le sue linee) */
html body :is(.page-sections,.rv-tabs,#invSections,.settings-heading).rnb-off:not(#_):not(#__):not(#___),
html body :is(.page-sections,.rv-tabs,#invSections,.settings-heading) .rnb-off:not(#_):not(#__):not(#___){display:none!important}

/* 1.305.10: riga delle pagine alta 44 px a ogni larghezza (scelta dell'utente) */
html body main.has-sec>.sec-seg>:is(button,a):not(#_):not(#__):not(#___):not(#____):not(#_____):not(#______){height:44px!important;min-height:44px!important}

/* == css/ui/63-settings-model.css == */
/* Modello delle Impostazioni (1.270.0, scelta dell'utente): il disegno di Impostazioni › Magazzino › Ubicazioni
   vale per tutte le sezioni delle Impostazioni. Solo token, nessuna misura per singola sezione.

   Struttura di una sezione:
     .set-stack                     colonna di schede
       .set-intro > h2              titolo della sezione (uguale al ramo: si nasconde da solo)
       section.rnb-card.set-card    una scheda per blocco
         header.rnb-card-head       titolo (h3.rnb-card-title) a sinistra; a destra .set-count (dato) o .rnb-card-actions
         .rnb-card-body
           .set-list                lista a righe; colonne con style="--set-cols:…" sulla lista
             .set-row               una riga per record, linea sotto, niente riquadri
               .set-row-n           numero d'ordine (ed eventuali ↑↓ piccoli)
               label.set-field      <span>etichetta</span> + campo: l'etichetta si vede solo sulla prima riga
               .set-row-text        dato di sola lettura allineato ai campi
               button.btn.small.row-x   ✕ in fondo alla riga (niente menu «Altro»)
           button.btn.set-add       «+ Aggiungi …» sotto la lista, a sinistra
   Gruppi di campi dentro una scheda: titolo .rnb-sep-title, mai un riquadro dentro la scheda. */
html body .set-list:not(#_){display:grid;gap:0;margin:0;min-width:0}
html body .set-row:not(#_){display:grid;grid-template-columns:var(--set-cols,minmax(0,1fr) auto);align-items:end;gap:6px 14px;padding:8px 0;border:0;border-bottom:1px solid var(--ui-line);background:transparent;min-width:0}
html body .set-row>*:not(#_){min-width:0}
html body .set-field:not(#_):not(#__){display:flex;flex-direction:column;align-items:stretch;gap:var(--gap-label);margin:0}
/* etichetta: di modulo (campo sciolto) 13/600 grigio come le etichette generali; dentro una riga di lista (.set-row) è intestazione di colonna, piccola maiuscola (audit A3, 1.272.0) */
html body .set-field>span:first-child:not(#_){font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--muted)}
html body .set-row .set-field>span:first-child:not(#_):not(#__){font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
html body .set-field :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not(#_){width:100%;min-width:0}
html body .set-row-n:not(#_){display:flex;align-items:center;gap:9px;align-self:end;height:var(--ui-h);color:var(--muted);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
html body .set-row-n>div:not(#_){display:flex;gap:4px}
html body .set-row-text:not(#_){display:flex;align-items:center;align-self:end;min-height:var(--ui-h);font-size:13px;color:var(--text)}
/* pulsante piccolo in una riga di campi (✕, 1/2): centrato sul campo da 34 px della stessa riga, anche dentro un .set-field sotto l'etichetta; vale per .set-row e .inv-area-row */
html body :is(.set-row,.inv-area-row)>.btn.small:not(#_):not(#__){align-self:end;margin:0 0 calc((var(--ui-h) - var(--ui-h-sm)) / 2)}
html body :is(.set-row,.inv-area-row)>.set-field>.btn.small:not(#_):not(#__){align-self:flex-start;margin:0 0 calc((var(--ui-h) - var(--ui-h-sm)) / 2)}
html body .set-add:not(#_){margin-top:12px;justify-self:start}
html body .set-count:not(#_){flex:0 0 auto;color:var(--muted);font-size:12px;font-weight:600}
@media(min-width:701px){
 html body .set-list>.set-row:not(:first-child) .set-field>span:first-child:not(#_):not(#__){position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 html body .set-list>.set-row:not(:first-child) .set-field:not(#_):not(#__):not(#___){gap:0}
}
@media(max-width:700px){
 /* telefono (24 nov 2026, scelta dell'utente): numero a sinistra, campi in colonna al centro, ✕ a destra sulla prima riga e allineata al primo campo; senza numero, campi e ✕ come prima */
 html body .set-row:not(#_):not(#__){grid-template-columns:minmax(0,1fr) auto!important;align-items:end;gap:var(--gap-row) var(--gap-ctl);padding:var(--gap-row) 0}
 html body .set-row:has(>.set-row-n):not(#_):not(#__){grid-template-columns:auto minmax(0,1fr) auto!important}
 html body .set-row>.set-field:not(#_),html body .set-row>.set-row-text:not(#_){grid-column:1}
 html body .set-row:has(>.set-row-n)>.set-field:not(#_),html body .set-row:has(>.set-row-n)>.set-row-text:not(#_){grid-column:2}
 html body .set-row>.set-row-n:not(#_){grid-column:1;grid-row:1;min-width:20px;justify-content:center}
 html body .set-row>.btn.small:last-child:not(#_){grid-column:2;grid-row:1;justify-self:end;align-self:end}
 html body .set-row:has(>.set-row-n)>.btn.small:last-child:not(#_){grid-column:3}
}

/* Impostazioni › Sala › Assistente (25 nov 2026): «Assistente prenotazioni» e «Assegnazione tavoli» sono due schede piccole in una riga di pari altezza da 641 px, una sotto l'altra su telefono; la casella dell'assegnazione non ha riquadro */
html body #settingsPage #settingsSwap .swap-pair:not(#_){display:grid;grid-template-columns:1fr;gap:var(--card-gap);min-width:0}
html body #settingsPage #settingsSwap .swap-pair>.rnb-card:not(#_){margin:0}
@media(min-width:641px){
 html body #settingsPage #settingsSwap .swap-pair:not(#_){grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
}
html body #settingsPage #settingsSwap #preferSingleTables:not(#_):not(#__){flex:0 0 auto}
html body #settingsPage #settingsSwap .swap-pair label.service-enabled:not(#_):not(#__){display:flex;align-items:center;gap:8px;min-height:var(--ui-h);margin:0;padding:0;border:0;background:transparent;box-shadow:none;font-size:13px;color:var(--text)}
/* Regole dell'assistente, Limiti: su telefono testo a sinistra e campo a destra (88 px), etichetta «Valore» solo sulla prima riga */
@media(max-width:640px){
 html body #settingsPage #swapAssistantRulesPanel .ax-rules .set-list>.set-row:not(#_):not(#__):not(#___){grid-template-columns:minmax(0,1fr) 88px!important;align-items:end;gap:var(--gap-ctl)}
 html body #settingsPage #swapAssistantRulesPanel .ax-rules .set-list>.set-row>.set-row-text:not(#_):not(#__):not(#___){grid-column:1}
 html body #settingsPage #swapAssistantRulesPanel .ax-rules .set-list>.set-row>.set-field:not(#_):not(#__):not(#___){grid-column:2;gap:var(--gap-label)}
 html body #settingsPage #swapAssistantRulesPanel .ax-rules .set-list>.set-row .set-field input:not(#_):not(#__):not(#___){height:44px;width:100%}
 html body #settingsPage #swapAssistantRulesPanel .ax-rules .set-list>.set-row:not(:first-child) .set-field>span:first-child:not(#_):not(#__):not(#___){position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media(max-width:640px){
 html body #settingsPage #swapAssistantRulesPanel .ax-rules .set-list>.set-row .set-field input:not(#_):not(#__):not(#___){height:44px!important;min-height:44px!important}
 /* la riga vuota del titolo di pagina (nascosto su telefono) lascia solo una linea sopra le schede delle Impostazioni */
 html body main:has(>#settingsPage:not(.hidden))>.top:not(#_):not(#__){display:none!important}
}
html body #settingsPage #swapAssistantRulesPanel .ax-rules>.ax-group:first-child>.rnb-sep-title:first-child:not(#_):not(#__){margin-top:0}
html body #settingsPage #settingsSwap .swap-pair>.rnb-card>.rnb-card-head:not(#_):not(#__){flex-wrap:wrap;row-gap:var(--gap-ctl)}
html body #settingsPage #settingsSwap .swap-pair>.rnb-card>.rnb-card-head>div:first-child:not(#_):not(#__){flex:1 1 auto;min-width:max-content}

/* Impostazioni › Orari, Tavoli, Assistente (25 nov 2026): funzioni affini nella stessa scheda */
html body #settingsPage #settingsHours .hours-book-row:not(#_){display:flex;flex-wrap:wrap;align-items:end;gap:var(--gap-row) var(--gap-field)}
html body #settingsPage #settingsHours .hours-book-row .type-filter:not(#_):not(#__){height:var(--ui-h);margin:0;box-sizing:border-box}
html body #settingsPage #settingsHours .hours-flex:not(#_){width:88px;flex:0 0 88px}
html body #settingsPage #settingsHours .hours-flex input:not(#_):not(#__){width:100%;max-width:none}
html body #settingsPage #settingsHours .svc-cols:not(#_){display:grid;grid-template-columns:minmax(0,1fr);gap:var(--card-pad,20px)}
html body #settingsPage #settingsHours .svc-col:not(#_){min-width:0}
html body #settingsPage #settingsHours .svc-col+.svc-col:not(#_){padding-top:var(--card-pad,20px);border-top:1px solid var(--line)}
html body #settingsPage #settingsHours .svc-col-head:not(#_){display:flex;align-items:center;justify-content:space-between;gap:var(--gap-ctl);margin:0 0 var(--gap-row)}
html body #settingsPage #settingsHours .svc-col-head .rnb-sep-title:not(#_){margin:0}
html body #settingsPage #settingsHours .svc-col .form-grid:not(#_):not(#__){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--gap-row) var(--gap-field)!important;align-items:end;margin-top:var(--gap-row)}
html body #settingsPage #settingsHours .svc-col .service-weekdays:not(#_){margin:0}
@media(min-width:900px){
 html body #settingsPage #settingsHours .svc-cols:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #settingsPage #settingsHours .svc-col+.svc-col:not(#_){padding-top:0;border-top:0;padding-left:var(--card-pad,20px);border-left:1px solid var(--line)}
}
html body #settingsPage #settingsSwap .swap-cards+.swap-select+.rnb-sep-title:not(#_),html body #settingsPage #settingsSwap .swap-cards~.rnb-sep-title:not(#_){margin-top:var(--gap-row)}
html body #settingsPage #settingsTables .floor-sala-card .rnb-sep-title:not(#_){margin-top:0}

/* Impostazioni › Personale (25 nov 2026): «Regole del planning» e «Orari operativi» affiancate da 900 px (regole a sinistra, più strette; orari a destra), una sotto l'altra sotto; «Partite e aree» è una scheda sola con gruppi (.rnb-sep-title) */
html body #settingsPage #staffSettings .st-plan-grid:not(#_){display:grid;grid-template-columns:minmax(0,1fr);gap:var(--card-gap);min-width:0;align-items:start}
html body #settingsPage #staffSettings .st-plan-grid>.rnb-card:not(#_){margin:0;min-width:0}
@media(min-width:900px){
 html body #settingsPage #staffSettings .st-plan-grid:not(#_){grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
}
html body #settingsPage #staffSettings .rnb-card-body.rnb-stack>div>.rnb-sep-title:first-child:not(#_){margin-top:0}
html body #settingsPage #staffSettings .st-posts:not(#_){margin:0}
html body #settingsPage #staffSettings .st-areas:not(#_){margin:0 0 var(--gap-row,12px)}
html body #settingsPage :is(#invStockSettings,#settingsBackup) .rnb-card-body.rnb-stack>div>.rnb-sep-title:first-child:not(#_){margin-top:0}

/* == css/ui/57-dark-auto.css == */
/* GENERATO da tools/make-dark.ps1: non modificare a mano (correzioni: token nei CSS di partenza). */

