/* TavoloVivo 5.3 — tema originale Blue / White per lo STAFF.
   Questo foglio è caricato SOLO da staff.html: menu Nunziata e home cliente invariati. */
:root { --tv-blue:#1269f5; --tv-blue-2:#04bce9; --tv-ink:#172746; --tv-muted:#72829e; --tv-line:#e6ecf6; --tv-light:#f7faff; --tv-shade:#edf5ff; }
.staff-ui {font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--tv-ink);background:#f7faff}
.staff-ui button,.staff-ui input,.staff-ui select,.staff-ui textarea {font-family:inherit}
.staff-ui .tv-shell{display:flex;min-height:100vh;width:100%}
.staff-ui .tv-sidebar{position:sticky;top:0;align-self:flex-start;flex:0 0 231px;height:100vh;display:flex;flex-direction:column;padding:32px 17px 22px;background:#fff;border-right:1px solid #e8eef8;box-shadow:4px 0 30px #16387405;z-index:14}
.staff-ui .tv-brand{display:flex;align-items:center;gap:11px;padding:2px 9px 29px;text-decoration:none;color:#0f2350;font-size:23px;font-weight:850;letter-spacing:-.055em;white-space:nowrap}
.staff-ui .tv-brand-vivo{color:#1574ff}
.staff-ui .tv-brand-symbol{width:36px;height:35px;display:inline-flex;align-items:center;justify-content:center;gap:4px;transform:skew(-12deg);flex:0 0 auto}
.staff-ui .tv-brand-symbol i{display:block;width:7px;height:25px;border-radius:7px;background:linear-gradient(160deg,#1470ff,#144df0)}
.staff-ui .tv-brand-symbol i:nth-child(2){height:31px;background:linear-gradient(165deg,#148cff,#02baf5)}
.staff-ui .tv-brand-symbol i:nth-child(3){height:20px;background:linear-gradient(160deg,#11c8f7,#7ae6fa)}
.staff-ui .tv-sidebar-caption{padding:10px 15px 13px;color:#9ba9c2;font-size:10px;font-weight:800;letter-spacing:.13em}
.staff-ui .nav{display:flex;flex-direction:column;align-items:stretch;margin:0;gap:7px}
.staff-ui .nav button{width:100%;min-height:49px;border:0;display:flex;align-items:center;justify-content:flex-start;gap:13px;text-align:left;color:#647594;border-radius:14px;padding:12px 15px;font-size:13px;font-weight:750;background:transparent;transition:background .15s,color .15s,box-shadow .15s}
.staff-ui .nav button:hover{background:#eff5ff;color:#1464ed}
.staff-ui .nav button.active{color:#fff;background:linear-gradient(110deg,#0a65ed,#2b8eff);box-shadow:0 7px 18px #1f78f22f}
.staff-ui .nav button.nav-logout{margin-top:19px;border-top:1px solid #edf2fa;border-radius:0;padding-top:19px;color:#9a5261}
.staff-ui .nav button.nav-logout:hover{background:#fff5f5;color:#bf465b;border-radius:13px}
.staff-ui .tv-nav-icon{flex:0 0 auto}
.staff-ui .tv-sidebar-bottom{font-size:11px;font-weight:750;color:#5f7394;margin-top:auto;padding:16px 12px 5px;border-top:1px solid #ebf1f9;line-height:1.4}
.staff-ui .tv-sidebar-bottom small{display:block;color:#a1b0c8;margin-top:5px;font-size:10px;font-weight:500}
.staff-ui .tv-side-pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:#20bb79;box-shadow:0 0 0 4px #e3f7ee;margin-right:8px}
.staff-ui .tv-stage{display:flex;flex-direction:column;min-width:0;flex:1}
.staff-ui .app-header.tv-topbar{position:sticky;top:0;z-index:12;min-height:81px;height:81px;padding:0 clamp(21px,3vw,46px);border-bottom:1px solid #e9eff8;background:#fff;gap:15px;box-shadow:0 2px 20px #12447705}
.staff-ui .tv-top-context{display:flex;flex-direction:column;gap:4px;margin-right:auto}
.staff-ui .tv-top-kicker{color:#a1afc5;letter-spacing:.145em;font-size:9px;font-weight:850}
.staff-ui #staffRoleLabel{font-size:17px;letter-spacing:-.035em;color:#182b50}
.staff-ui .live-chip{color:#24865a;background:#eefaf4;padding:10px 13px;letter-spacing:.04em;font-size:10px;margin-right:0}
.staff-ui .live-dot{background:#23bd77;box-shadow:0 0 0 3px #d4f4e5}
.staff-ui .tv-user-badge{padding:10px 14px;border:1px solid #e6edfa;background:#f8fbff;color:#506589;font-weight:750;border-radius:30px;font-size:11px;white-space:nowrap}
.staff-ui .tv-user-badge>span{color:#1785f0;margin-right:6px;font-size:9px}
.staff-ui .container{width:100%;max-width:1590px;margin:0 auto;flex:1;padding:37px clamp(19px,3vw,46px) 55px;background:radial-gradient(ellipse 750px 340px at 100% 0%,#e4f3ff80 0%,transparent 70%),#f7faff}
.staff-ui .section-heading{margin-bottom:26px;align-items:center;gap:14px}
.staff-ui .eyebrow{color:#3486eb;letter-spacing:.13em;font-size:10px;margin-bottom:11px}
.staff-ui .eyebrow i{background:linear-gradient(90deg,#1371fc,#28d0f3);width:22px;height:3px;border-radius:5px}
.staff-ui .section-heading h1{font-size:clamp(27px,3vw,41px);font-weight:850;color:#152c58;line-height:1.17;letter-spacing:-.05em}
.staff-ui .section-heading h1 em{color:#1877fa}
.staff-ui .section-heading p{color:#7789a8;font-size:13px;line-height:1.65;margin-top:8px}
.staff-ui .section-chip{border:1px solid #cce5ff;background:#eaf5ff;color:#1879ed;border-radius:30px}
.staff-ui .connection-state{border:1px solid #d4ebdf;box-shadow:0 3px 14px #0ca15c09}
.staff-ui .connection-state.connected{background:#e8f9f0;color:#138457}
.staff-ui .connection-state.offline{background:#fff6e5;color:#98632a;border-color:#f4ddb2}
.staff-ui .stats{gap:14px;margin-bottom:23px}
.staff-ui .stat{min-height:132px;border:1px solid #e4ecf9;border-radius:19px;background:#fff;padding:19px 21px;box-shadow:0 8px 26px #28539108;position:relative;overflow:hidden}
.staff-ui .stat:before{content:"";position:absolute;width:60px;height:60px;right:-17px;top:-21px;background:#eef5ff;border-radius:50%}
.staff-ui .stat>span{color:#667c9e;font-size:12px;font-weight:750;position:relative}
.staff-ui .stat>b{color:#132a58;font-size:35px;font-weight:850;margin-top:8px;position:relative}
.staff-ui .stat small{color:#9baac0;font-size:11px;position:relative}
.staff-ui .stats .stat:nth-child(2){background:#f1f8ff;border-color:#ddecff}
.staff-ui .stats .stat:nth-child(2):before{background:#e1f0ff}
.staff-ui .stats .stat:nth-child(3){background:#fff9ef;border-color:#f6ead6}
.staff-ui .stats .stat:nth-child(3):before{background:#fff0d9}
.staff-ui .stats .stat:nth-child(4){background:#effcf4;border-color:#e0f2e7}
.staff-ui .stats .stat:nth-child(4):before{background:#dff7e9}
.staff-ui .panel,.staff-ui .ticket{border:1px solid #e4ebf7;background:#fff;border-radius:21px;box-shadow:0 10px 34px #294b7b0c}
.staff-ui .panel{padding:25px}
.staff-ui .panel-head h2{color:#172d56;font-size:19px}
.staff-ui .panel-head p{color:#92a0b7}
.staff-ui .soft-chip{color:#196feb;background:#eaf4ff;border-radius:10px;font-size:11px}
.staff-ui .dashboard-layout{grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:20px}
.staff-ui .table-tile{border-color:#e8eef8;border-radius:15px;background:#fcfdff;color:#17355c;transition:transform .12s,border-color .12s,box-shadow .12s}
.staff-ui .table-tile:hover{border-color:#91c8ff;background:#f5faff;transform:translateY(-1px)}
.staff-ui .table-tile.selected{border-color:#257eff;box-shadow:0 0 0 3px #daebff;background:#f1f8ff}
.staff-ui .tile-symbol{background:#eaf4ff;color:#207ef8;font-size:19px}
.staff-ui .table-tile strong{color:#16345f}
.staff-ui .table-tile small,.staff-ui .tile-label{color:#7890af}
.staff-ui .table-tile.ordering .tile-label{color:#168253}
.staff-ui .table-tile.sent .tile-label{color:#c17a14}
.staff-ui .table-tile.completed .tile-label{color:#1769e8}
.staff-ui .table-tile.ordering .status-dot{background:#15b578}
.staff-ui .table-tile.sent .status-dot{background:#ffb24d}
.staff-ui .table-tile.completed .status-dot{background:#1587f4}
.staff-ui .badge{background:#eef3fa;color:#697f9e}
.staff-ui .badge.ordering{background:#e6f9f0;color:#148457}
.staff-ui .badge.sent{background:#fff3d9;color:#a96b14}
.staff-ui .badge.completed{background:#e6f2ff;color:#0b75eb}
.staff-ui .capacity,.staff-ui .ready-box{background:#f3f8ff;border:1px solid #e7effc;border-radius:15px}
.staff-ui .capacity span,.staff-ui .ready-box span{color:#647eaa}
.staff-ui .progress{background:#dfebfb;height:8px}
.staff-ui .progress>span{background:linear-gradient(90deg,#1068ed,#23b7f6)}
.staff-ui .seat-icon{background:#edf4ff;color:#93afd3;border-color:#d4e5fd}
.staff-ui .seat-icon.filled{color:#1878f3;background:#e6f3ff;border-color:#cae2ff}
.staff-ui .seat-icon.ready{background:linear-gradient(145deg,#168af5,#0d6be9);color:#fff}
.staff-ui .seat-name{color:#7890b2}
.staff-ui .capacity-settings select{border-color:#d8e5f9;color:#254975}
.staff-ui .btn{border-radius:12px;transition:background .14s,filter .14s,transform .12s;min-height:44px}
.staff-ui .btn:focus-visible,.staff-ui .nav button:focus-visible,.staff-ui .table-tile:focus-visible,.staff-ui .availability-category:focus-visible{outline:3px solid #46c8fa;outline-offset:3px}
.staff-ui .btn.primary{background:linear-gradient(105deg,#1166ef,#218ffc);color:#fff;box-shadow:0 5px 15px #126bea24}
.staff-ui .btn.primary:not(:disabled):hover{background:linear-gradient(105deg,#0758d8,#087bf3)}
.staff-ui .btn.secondary{background:#eaf4ff;color:#1168e6}
.staff-ui .btn.secondary:not(:disabled):hover{background:#daecff}
.staff-ui .btn.outline{border-color:#cbdffa;color:#2379e6}
.staff-ui .text-btn{color:#1773ed}
.staff-ui .clear-table-box{border:1px solid #d8eafa;background:#f1f8ff;border-radius:15px}
.staff-ui .clear-flag{color:#1675ed}
.staff-ui .qr-area{border-top-color:#edf1f8}
.staff-ui .ticket-grid{gap:17px;grid-template-columns:repeat(2,minmax(0,1fr))}
.staff-ui .ticket{overflow:hidden}
.staff-ui .ticket-head{background:linear-gradient(110deg,#f1f7ff,#fff);padding:21px 22px}
.staff-ui .ticket.ticket-completed{border-color:#cfeede}
.staff-ui .ticket.ticket-completed .ticket-head{background:#effaf4}
.staff-ui .ticket-head small{color:#5383c5;letter-spacing:.1em}
.staff-ui .ticket-head h2{color:#16335e;font-size:23px}
.staff-ui .ticket-head p{color:#8295b2}
.staff-ui .ticket-right b{color:#59789f}
.staff-ui .ticket-progress{background:#e6f1fc;height:5px}
.staff-ui .ticket-progress span{height:5px;background:linear-gradient(90deg,#1879ef,#26b4f4)}
.staff-ui .elapsed-pill{background:#e4f1ff;color:#196add;font-size:10px}
.staff-ui .elapsed-pill.late{background:#fff3d5;color:#9c690f}
.staff-ui .elapsed-pill.very-late{background:#ffe7e7;color:#b44655}
.staff-ui .course-group{padding:0 20px 10px}
.staff-ui .course-group h3{color:#4972a9;border-bottom-color:#edf1f9}
.staff-ui .course-group h3 span{color:#97a9c1}
.staff-ui .dish{border-color:#edf1f7}
.staff-ui .dish-check{background:#eef5ff;color:#2c87ef;border-radius:12px}
.staff-ui .dish.finished .dish-check{background:#e1f7ea;color:#1b9b65}
.staff-ui .dish.finished strong{color:#7d90a9}
.staff-ui .dish strong{color:#203b64;font-size:13px}
.staff-ui .dish small{color:#8094b0}
.staff-ui .kitchen-dish .dish-info{min-width:0;flex:1 1 140px}
.staff-ui .kitchen-actions{min-width:120px;flex:0 0 auto}
.staff-ui .kitchen-actions .btn{border-radius:10px;font-size:11px;white-space:normal}
.staff-ui .kitchen-start{background:#e9f4ff;color:#0d70e9;border:1px solid #cae2ff}
.staff-ui .kitchen-complete{background:linear-gradient(100deg,#13a76b,#2cca90);color:white;border:0}
.staff-ui .kitchen-undo{background:#f3f6fa;color:#667993;border:1px solid #e1e8f2}
.staff-ui .dish-status{background:#eff4fb;color:#617896}
.staff-ui .dish-status.status-preparing{background:#e4f1ff;color:#1976ef}
.staff-ui .dish-status.status-done{background:#e2f7e9;color:#18885c}
.staff-ui .kitchen-note{background:#fff7e5;color:#916521;border:1px solid #faebc7;border-radius:11px}
.staff-ui .kitchen-sound{border-color:#d6e6f9;color:#2872d8;border-radius:12px}
.staff-ui .kitchen-sound.enabled{background:#edf7ff;border-color:#b2d7ff;color:#0e6ade}
.staff-ui .kitchen-tools-title{color:#516e98}
.staff-ui .availability-panel{max-width:1190px}
.staff-ui .availability-categories{border-color:#edf1f8;gap:8px}
.staff-ui .availability-category{background:#f5f9ff;border:1px solid #dce9fc;color:#4c6994;font-family:inherit;font-size:12px;white-space:nowrap}
.staff-ui .availability-category:hover{border-color:#acd6ff;background:#edf7ff}
.staff-ui .availability-category.selected{background:linear-gradient(110deg,#136cf4,#258ffd);color:#fff;border-color:#1374fa;box-shadow:0 3px 12px #1674ee20}
.staff-ui .availability-category.selected small{color:#e9f5ff}
.staff-ui .availability-filters{border-bottom-color:#edf1f8}
.staff-ui .availability-filters label{color:#4e6692;font-family:inherit}
.staff-ui .availability-filters input,.staff-ui .availability-filters select{font-family:inherit;border-color:#dbe6f7;border-radius:12px;color:#19365e;background:#fbfdff}
.staff-ui .availability-filters input:focus,.staff-ui .availability-filters select:focus{outline:3px solid #d4eaff;border-color:#3293ff}
.staff-ui .availability-group h2{color:#173962}
.staff-ui .availability-group h2 span{color:#8094b1}
.staff-ui .availability-item{border-color:#edf1f8}
.staff-ui .availability-item.availability-hidden{background:#fff8f4;border-radius:10px}
.staff-ui .availability-details strong{color:#1b355a}
.staff-ui .availability-details small{color:#7b8fae}
.staff-ui .availability-hidden .availability-details small{color:#c16c36}
.staff-ui .availability-button{border-radius:11px}
.staff-ui .availability-hide{background:#fff8f2;border-color:#f4d9c0;color:#a7612a}
.staff-ui .availability-restore{background:#e8f8ef;color:#16794c;border-color:#c7e9d4}
.staff-ui .admin-item,.staff-ui .admin-course h3{border-color:#e9eff8}
.staff-ui .admin-course h3{background:#f4f8ff;color:#3279c5}
.staff-ui .edit-panel label,.staff-ui .login-card label{color:#526b93}
.staff-ui .edit-panel input,.staff-ui .edit-panel select,.staff-ui .edit-panel textarea,.staff-ui .login-card input,.staff-ui .login-card select{border-color:#dce6f4;color:#1c3864;outline-color:#61aaff}
.staff-ui .toast{border-color:#cde2ff;color:#186bd7;border-radius:15px}
.staff-ui .toast.danger{border-color:#ffd0c9;color:#b65546}
.staff-ui .footer{background:transparent;border-color:#e6ecf6;color:#97a7bf;padding-left:clamp(19px,3vw,46px);padding-right:clamp(19px,3vw,46px)}
.staff-ui .login-shade{background:#162d538a;backdrop-filter:blur(10px)}
.staff-ui .login-card{border-color:#e4edff;box-shadow:0 25px 95px #152d5780;border-radius:26px}
.staff-ui .login-mark{background:#edf7ff;border-radius:18px}
.staff-ui .login-card h1{color:#17305b}
.staff-ui .login-card h1 i{color:#1473ef}
.staff-ui .login-card p,.staff-ui .login-card>small{color:#7184a3}
.staff-ui .loading-card,.staff-ui .empty{background:#fff;border:1px solid #e7eefb;border-radius:20px}
@media(max-width:1250px){
 .staff-ui .tv-sidebar{flex-basis:207px}
 .staff-ui .ticket-grid{grid-template-columns:1fr}
 .staff-ui .dashboard-layout{grid-template-columns:1fr}
 .staff-ui .table-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:830px){
 .staff-ui .tv-sidebar{position:fixed;top:auto;bottom:0;left:0;width:100%;height:auto;min-height:70px;max-height:90px;z-index:25;padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom));background:#fff;border-right:0;border-top:1px solid #dfeafa;box-shadow:0 -6px 24px #193d6b1b}
 .staff-ui .tv-sidebar .tv-brand,.staff-ui .tv-sidebar-caption,.staff-ui .tv-sidebar-bottom{display:none}
 .staff-ui .nav{display:flex;flex-direction:row;justify-content:space-around;gap:4px;width:100%}
 .staff-ui .nav button,.staff-ui .nav button.nav-logout{flex:1 1 0;width:auto;min-width:0;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 3px;margin:0;border:0;border-radius:12px;font-size:10px;font-weight:750;text-align:center;line-height:1.15}
 .staff-ui .nav button.nav-logout:hover{border-radius:12px}
 .staff-ui .nav .tv-nav-icon{width:21px;height:21px}
 .staff-ui .tv-stage{min-width:0;width:100%}
 .staff-ui .app-header.tv-topbar{padding:0 18px;height:69px;min-height:69px}
 .staff-ui .container{padding:26px 16px calc(96px + env(safe-area-inset-bottom))}
 .staff-ui .footer{display:none}
}
@media(max-width:600px){
 .staff-ui .app-header.tv-topbar{gap:8px;padding:0 15px}
 .staff-ui .tv-top-kicker{font-size:8px}
 .staff-ui #staffRoleLabel{font-size:15px}
 .staff-ui .live-chip{font-size:0;padding:10px;width:31px;height:31px;display:flex;align-items:center;justify-content:center}
 .staff-ui .live-dot{margin:0}
 .staff-ui .tv-user-badge{padding:9px 10px;font-size:10px}
 .staff-ui .container{padding:21px 13px calc(100px + env(safe-area-inset-bottom))}
 .staff-ui .section-heading{flex-wrap:wrap;align-items:flex-start;margin-bottom:18px}
 .staff-ui .section-heading h1{font-size:29px}
 .staff-ui .section-heading p{font-size:12px}
 .staff-ui .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .staff-ui .stat{min-height:111px;padding:15px 14px}
 .staff-ui .stat>b{font-size:29px}
 .staff-ui .stat>span{font-size:11px}
 .staff-ui .panel{padding:18px 14px}
 .staff-ui .panel-head{flex-wrap:wrap;margin-bottom:15px}
 .staff-ui .table-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .staff-ui .table-tile{min-height:121px}
 .staff-ui .ticket-head{padding:16px}
 .staff-ui .course-group{padding:0 14px 10px}
 .staff-ui .kitchen-dish{gap:9px}
 .staff-ui .kitchen-actions{min-width:112px}
 .staff-ui .availability-categories{padding:13px 0;margin:0 -4px;gap:8px;scrollbar-width:thin}
 .staff-ui .availability-category{min-height:39px;padding:7px 12px}
 .staff-ui .availability-filters{padding:15px 0;grid-template-columns:1fr}
 .staff-ui .availability-items{padding:8px 0 10px}
 .staff-ui .availability-button{min-width:96px}
 .staff-ui .qr-area{align-items:flex-start;flex-wrap:wrap}
 .staff-ui .qr-area img{max-width:116px}
}
@media(prefers-reduced-motion:reduce){.staff-ui *, .staff-ui *:before,.staff-ui *:after{transition:none!important;animation:none!important}}
/* Scorciatoie rapide alle sezioni originali del menu, senza modificare il menu clienti. */
.staff-ui .tv-kitchen-layout.with-availability{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(265px,.86fr);gap:18px;align-items:start}
.staff-ui .tv-kitchen-layout.with-availability .ticket-grid{grid-template-columns:1fr;gap:16px}
.staff-ui .tv-kitchen-categories{padding:23px 20px 19px;position:sticky;top:98px}
.staff-ui .tv-quick-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.staff-ui .tv-mini-kicker{font-size:9px;font-weight:850;color:#2887f4;letter-spacing:.11em}
.staff-ui .tv-quick-head h2{font-size:18px;letter-spacing:-.04em;color:#18335d;margin-top:5px}
.staff-ui .tv-quick-head p{font-size:11px;color:#8498b6;margin-top:6px;line-height:1.45}
.staff-ui .tv-quick-icon{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:11px;background:#edf6ff;color:#228aff;font-size:24px}
.staff-ui .tv-categories-list{display:flex;flex-direction:column}
.staff-ui .tv-category-row{display:flex;align-items:center;text-align:left;gap:10px;width:100%;background:transparent;border:0;border-bottom:1px solid #edf2fa;color:#425f8b;padding:10px 5px;font-size:12px;font-weight:720;min-height:41px;transition:background .15s}
.staff-ui .tv-category-row:hover{background:#f3f9ff;border-radius:8px;color:#1677ef}
.staff-ui .tv-category-row:focus-visible{outline:3px solid #75c9ff;outline-offset:1px}
.staff-ui .tv-category-marker{background:linear-gradient(135deg,#146aff,#32c9fc);width:8px;height:8px;border-radius:3px;flex:0 0 8px}
.staff-ui .tv-category-row:nth-child(3n) .tv-category-marker{background:linear-gradient(135deg,#ffa747,#ffbf65)}
.staff-ui .tv-category-row:nth-child(4n) .tv-category-marker{background:linear-gradient(135deg,#16b980,#65dca9)}
.staff-ui .tv-category-name{flex:1;min-width:0}
.staff-ui .tv-category-count{white-space:nowrap;color:#8ea4bf;font-size:11px}
.staff-ui .tv-category-count b{color:#bb6c2e;background:#fff3e8;border-radius:7px;padding:5px 7px;font-size:10px}
.staff-ui .tv-cat-arrow{font-size:21px;font-weight:400;color:#a3b7d1}
.staff-ui .tv-all-categories{display:flex;align-items:center;justify-content:space-between;width:100%;border:1px solid #d3e8ff;background:#ecf6ff;color:#126ee7;font-weight:800;font-size:12px;border-radius:12px;padding:13px 15px;margin-top:18px}
.staff-ui .tv-all-categories:hover{background:#dceeff}
@media(max-width:1210px){.staff-ui .tv-kitchen-layout.with-availability{grid-template-columns:1fr}.staff-ui .tv-kitchen-categories{position:static}.staff-ui .tv-kitchen-layout.with-availability .ticket-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:880px){.staff-ui .tv-kitchen-layout.with-availability .ticket-grid{grid-template-columns:1fr}}


/* TavoloVivo 5.4 — Cucina Touch. Solo area staff, menu della Braceria invariato.
   I pulsanti d'azione sono ora separati dal nome del piatto, larghi e comodamente
   azionabili con le dita. Un clic continua a modificare una sola porzione. */
.staff-ui .tv-kitchen-layout .kitchen-dish {
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 13px;
  margin:13px 0 15px;padding:18px;
  border:1px solid #e1eaf7;border-radius:18px;background:#fff;
  box-shadow:0 4px 16px #214f8d0a;
}
.staff-ui .tv-kitchen-layout .kitchen-dish.preparing {border-color:#b9dcff;background:#f7fbff}
.staff-ui .tv-kitchen-layout .kitchen-dish.finished {border-color:#d5eddf;background:#fafffc}
.staff-ui .tv-kitchen-layout .kitchen-dish .dish-check {
  width:43px;height:43px;border-radius:13px;font-size:23px;flex:0 0 43px;
}
.staff-ui .tv-kitchen-layout .kitchen-dish .dish-info {flex:1 1 calc(100% - 60px);padding-top:0;min-width:0}
.staff-ui .tv-kitchen-layout .kitchen-dish .dish-info strong {
  font-size:clamp(15px,1.2vw,18px);line-height:1.35;font-weight:850;letter-spacing:-.015em;
  color:#18365f;text-decoration:none;
}
.staff-ui .tv-kitchen-layout .kitchen-dish .dish-info small {
  font-size:13px;font-weight:650;line-height:1.45;color:#6980a0;margin-top:5px;
}
.staff-ui .tv-kitchen-layout .kitchen-dish.finished .dish-info strong {color:#526d88}
.staff-ui .tv-kitchen-layout .kitchen-dish .dish-status {
  font-size:12px;font-weight:820;padding:8px 13px;margin-top:9px;
}
.staff-ui .tv-kitchen-layout .kitchen-dish .kitchen-note {
  font-size:14px;line-height:1.45;padding:12px 14px;margin:10px 0;
  border:1px solid #f8d98b;background:#fff8e8;color:#754b12;
}
.staff-ui .tv-kitchen-layout .kitchen-dish .kitchen-note b {font-size:12px}
.staff-ui .tv-kitchen-layout .kitchen-actions {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  width:100%;min-width:0;flex:1 0 100%;gap:12px;margin:5px 0 0;
}
.staff-ui .tv-kitchen-layout .kitchen-actions-single {grid-template-columns:minmax(0,1fr)}
.staff-ui .tv-kitchen-layout .kitchen-actions .kitchen-touch-btn {
  display:flex;align-items:center;justify-content:center;gap:10px;
  min-height:70px;width:100%;min-width:0;padding:13px 12px;
  font-size:clamp(14px,1.3vw,17px);font-weight:850;line-height:1.25;
  border-radius:15px;white-space:normal;text-align:center;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
.staff-ui .tv-kitchen-layout .kitchen-touch-symbol {
  display:inline-flex;align-items:center;justify-content:center;
  width:29px;height:29px;flex:0 0 29px;border-radius:9px;
  font-size:20px;font-weight:850;background:#ffffff32;
}
.staff-ui .tv-kitchen-layout .kitchen-start {
  background:#e4f2ff;color:#075fc6;border:2px solid #9dcfff;box-shadow:none;
}
.staff-ui .tv-kitchen-layout .kitchen-start .kitchen-touch-symbol {background:#c4e5ff}
.staff-ui .tv-kitchen-layout .kitchen-complete {
  background:#15976a;color:white;border:2px solid #128a61;
  box-shadow:0 6px 15px #12956821;
}
.staff-ui .tv-kitchen-layout .kitchen-undo {
  background:#f1f5fa;color:#405c7c;border:2px solid #d6e1ee;box-shadow:none;
}
.staff-ui .tv-kitchen-layout .kitchen-undo .kitchen-touch-symbol {background:#e1eaf4}
.staff-ui .tv-kitchen-layout .kitchen-touch-btn:focus-visible,
.staff-ui .availability-panel .availability-button:focus-visible,
.staff-ui .tv-category-row:focus-visible {
  outline:4px solid #29bbf7;outline-offset:3px;
}
.staff-ui .tv-kitchen-layout .kitchen-touch-btn:not(:disabled):active,
.staff-ui .availability-panel .availability-button:not(:disabled):active {transform:scale(.985)}
.staff-ui .kitchen-tools-title .tv-touch-hint {
  display:block;margin-top:6px;color:#7990b1;font-size:12px;font-weight:600;
}
/* La sezione disponibilità è usata dallo chef: controlli grandi anche qui. */
.staff-ui .availability-panel .availability-item {min-height:104px;padding:17px 12px;gap:16px}
.staff-ui .availability-panel .availability-details strong {font-size:16px;line-height:1.35}
.staff-ui .availability-panel .availability-details small {font-size:13px;line-height:1.4}
.staff-ui .availability-panel .availability-button {
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:62px;min-width:176px;padding:12px 18px;border-radius:14px;
  font-size:15px;font-weight:850;touch-action:manipulation;
}
.staff-ui .availability-panel .tv-availability-icon {
  display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;
  background:#0000000c;font-size:21px;line-height:1;
}
.staff-ui .availability-panel .availability-category {
  min-height:51px;padding:11px 16px;font-size:14px;touch-action:manipulation;
}
.staff-ui .tv-category-row {min-height:58px;padding:12px 8px;font-size:14px;gap:12px}
.staff-ui .tv-category-count {font-size:12px}
.staff-ui .tv-all-categories {min-height:58px;font-size:14px}
.staff-ui .kitchen-sound {min-height:52px;padding:12px 18px;font-size:13px}
@media(max-width:600px){
  .staff-ui .tv-kitchen-layout .kitchen-dish {margin:12px 0;padding:14px;gap:9px}
  .staff-ui .tv-kitchen-layout .kitchen-actions {min-width:0;gap:9px}
  .staff-ui .tv-kitchen-layout .kitchen-actions .kitchen-touch-btn {
    min-height:72px;gap:7px;padding:10px 9px;font-size:14px;
  }
  .staff-ui .tv-kitchen-layout .kitchen-touch-symbol {
    width:24px;height:24px;flex-basis:24px;font-size:17px;
  }
  .staff-ui .tv-kitchen-layout .kitchen-dish .dish-info strong {font-size:16px}
  .staff-ui .availability-panel .availability-item {
    flex-direction:column;align-items:stretch;gap:12px;min-height:0;
    padding:16px 12px;margin:4px 0;
  }
  .staff-ui .availability-panel .availability-button {width:100%;min-width:0;min-height:62px}
  .staff-ui .availability-panel .availability-category {min-height:52px;font-size:13px}
  .staff-ui .tv-category-row {min-height:56px}
}
@media(max-width:360px){
  .staff-ui .tv-kitchen-layout .kitchen-actions .kitchen-touch-btn {flex-direction:column;gap:4px;min-height:81px;font-size:13px}
}


/* TavoloVivo 5.5 — Sala Mobile App Style. */
.staff-ui .app-table-grid{gap:14px}
.staff-ui .table-tile.app-like{position:relative;overflow:hidden;isolation:isolate;min-height:168px;padding:18px 16px 17px;border-radius:24px;background:#f5f8fc;border:1px solid #dde7f5;box-shadow:0 12px 28px rgba(31,70,120,.07);color:#17355c;display:flex;flex-direction:column;align-items:flex-start;text-align:left;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease,background .14s ease}
.staff-ui .table-tile.app-like::before{content:"";position:absolute;inset:9px;border-radius:18px;border:1.6px solid #e2eaf6;background:#ffffff;box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 1px 0 rgba(255,255,255,.7);pointer-events:none;transition:border-color .14s ease, background .14s ease, box-shadow .14s ease}
.staff-ui .table-tile.app-like:hover{transform:translateY(-1px);border-color:#d1e0f7;box-shadow:0 14px 32px rgba(31,70,120,.10)}
.staff-ui .table-tile.app-like.selected{border-color:#7db8ff;box-shadow:0 0 0 4px #e5f1ff,0 18px 36px rgba(31,70,120,.11)}
.staff-ui .table-tile.app-like.selected::before{border-color:#7eb7ff}
.staff-ui .table-card-top,.staff-ui .table-main,.staff-ui .tile-label,.staff-ui .tile-helper{position:relative;z-index:1}
.staff-ui .table-card-top{display:flex;width:100%;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.staff-ui .table-number{font-size:42px;line-height:.95;font-weight:880;letter-spacing:-.08em;color:#163d73;margin:0}
.staff-ui .table-state-indicator{width:18px;height:18px;border-radius:50%;background:#ffffff;border:2px solid #d6deea;box-shadow:0 0 0 5px #f5f8fc;flex:0 0 auto;margin-top:4px}
.staff-ui .table-main{margin:auto 0 12px;width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.staff-ui .table-count{font-size:36px;line-height:1;font-weight:900;letter-spacing:-.06em;color:#17335e}
.staff-ui .table-count-label{font-size:12px;font-weight:720;color:#8da0bc;text-transform:none;letter-spacing:.01em}
.staff-ui .table-tile.app-like .tile-label{font-size:13px;font-weight:840;line-height:1.2;margin-top:0}
.staff-ui .tile-helper{font-size:11px;line-height:1.45;color:#92a1b8;margin-top:5px}
.staff-ui .table-tile.app-like.tone-idle{background:linear-gradient(180deg,#f7f9fc 0%,#edf2f7 100%);border-color:#e0e6ef}
.staff-ui .table-tile.app-like.tone-idle::before{border-color:#dfe7f1;background:linear-gradient(180deg,#ffffff,#fdfefe)}
.staff-ui .table-tile.app-like.tone-idle .table-state-indicator{background:#c7d0dc;border-color:#c7d0dc;box-shadow:0 0 0 5px #eef2f7}
.staff-ui .table-tile.app-like.tone-idle .tile-label{color:#73839b}
.staff-ui .table-tile.app-like.tone-ready{background:linear-gradient(180deg,#fff4df 0%,#ffe9c7 100%);border-color:#f2c67e}
.staff-ui .table-tile.app-like.tone-ready::before{border-color:#efc27a;background:linear-gradient(180deg,#fffdfa,#fff8ee)}
.staff-ui .table-tile.app-like.tone-ready .table-state-indicator{background:#ee9b23;border-color:#ee9b23;box-shadow:0 0 0 5px #ffe8bf}
.staff-ui .table-tile.app-like.tone-ready .tile-label,.staff-ui .table-tile.app-like.tone-ready .table-count{color:#bc6d08}
.staff-ui .table-tile.app-like.tone-live{background:linear-gradient(180deg,#e7f9ee 0%,#d3f2df 100%);border-color:#8fd4aa}
.staff-ui .table-tile.app-like.tone-live::before{border-color:#89cca4;background:linear-gradient(180deg,#fdfffd,#f7fff9)}
.staff-ui .table-tile.app-like.tone-live .table-state-indicator{background:#18b46e;border-color:#18b46e;box-shadow:0 0 0 5px #dff7e8}
.staff-ui .table-tile.app-like.tone-live .tile-label,.staff-ui .table-tile.app-like.tone-live .table-count{color:#11885e}
.staff-ui .table-tile.app-like.tone-service{background:linear-gradient(180deg,#e8f4ff 0%,#d8ebff 100%);border-color:#94c8f7}
.staff-ui .table-tile.app-like.tone-service::before{border-color:#8dc4f5;background:linear-gradient(180deg,#fdfeff,#f7fbff)}
.staff-ui .table-tile.app-like.tone-service .table-state-indicator{background:#2190f5;border-color:#2190f5;box-shadow:0 0 0 5px #dff0ff}
.staff-ui .table-tile.app-like.tone-service .tile-label,.staff-ui .table-tile.app-like.tone-service .table-count{color:#1971ca}
.staff-ui .table-tile.app-like.tone-completed::before{border-color:#b9c7db;background:linear-gradient(180deg,#f7f9fc,#fff)}
.staff-ui .table-tile.app-like.tone-completed .table-state-indicator{background:#f6f8fb;border-color:#6b86a8;box-shadow:0 0 0 5px #ecf1f7}
.staff-ui .table-tile.app-like.tone-completed .tile-label,.staff-ui .table-tile.app-like.tone-completed .table-count{color:#536f92}
.staff-ui .legend .white{background:#ffffff;border:1px solid #cad5e6}
.staff-ui .legend .blue{background:#2390f4}
@media(max-width:1070px){.staff-ui .app-table-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:830px){.staff-ui .app-table-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.staff-ui .table-tile.app-like{min-height:160px;padding:16px 14px}.staff-ui .table-number{font-size:38px}.staff-ui .table-count{font-size:33px}}
@media(max-width:600px){.staff-ui .table-grid.app-table-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.staff-ui .table-tile.app-like{min-height:156px;padding:15px 13px 14px;border-radius:22px}.staff-ui .table-tile.app-like::before{inset:8px;border-radius:17px}.staff-ui .table-number{font-size:36px}.staff-ui .table-count{font-size:31px}.staff-ui .table-count-label{font-size:11px}.staff-ui .tile-helper{font-size:10px;line-height:1.35}.staff-ui .legend{gap:13px;font-size:10px}}
@media(max-width:390px){.staff-ui .table-grid.app-table-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.staff-ui .table-tile.app-like{min-height:148px;padding:14px 12px}.staff-ui .table-tile.app-like::before{inset:7px}.staff-ui .table-number{font-size:34px}.staff-ui .table-count{font-size:29px}.staff-ui .table-state-indicator{width:16px;height:16px;box-shadow:0 0 0 4px #f5f8fc}}


/* TavoloVivo 5.6 — Sala: dettagli tavolo più belli e navigazione touch.
   Soltanto nel gestionale staff: le pagine e il menu clienti non cambiano. */
.staff-ui .table-tile.app-like .table-count{font-size:29px;letter-spacing:-.065em}
.staff-ui .table-tile.app-like .table-number{font-size:43px;letter-spacing:-.075em}
.staff-ui .lobby-panel{scroll-margin-top:96px;border-radius:24px;background:linear-gradient(180deg,#fff 0%,#fff 82%,#fafdff 100%);box-shadow:0 15px 40px #2957870a}
.staff-ui .lobby-panel .panel-head{align-items:flex-start;gap:13px;margin-bottom:20px}
.staff-ui .lobby-panel .eyebrow{color:#1978f8;letter-spacing:.14em;font-size:11px}
.staff-ui .lobby-panel .table-head{font-size:clamp(28px,3.3vw,38px)!important;color:#13366b;line-height:1.12}
.staff-ui .lobby-panel .capacity{background:#f4f9ff;border:1px solid #dfebff;border-radius:18px;padding:19px 18px;box-shadow:inset 0 1px 0 #fff}
.staff-ui .lobby-panel .capacity strong{font-size:26px;letter-spacing:-.055em;color:#163b75}
.staff-ui .lobby-panel .capacity strong small{font-size:16px;color:#8fb0d3}
.staff-ui .lobby-panel .progress{height:10px;background:#dfebfc}
.staff-ui .lobby-panel .progress>span{background:linear-gradient(90deg,#1176fe,#5dbefc)}
.staff-ui .lobby-panel .seat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px 8px;padding:23px 0 28px}
.staff-ui .lobby-panel .seat{gap:9px}
.staff-ui .lobby-panel .seat-icon{width:62px;height:62px;border:1.5px solid #d6e7fc;border-radius:20px;background:linear-gradient(145deg,#f5faff,#e8f3ff);box-shadow:0 6px 14px #1b76cb10;color:#5f9ef0;font-size:24px;font-weight:840;display:grid;place-items:center;flex-shrink:0}
.staff-ui .lobby-panel .seat-icon.filled{border-color:#a4d4ff;background:linear-gradient(150deg,#e0f2ff,#d5eaff);color:#126bdd}
.staff-ui .lobby-panel .seat-icon.ready{border-color:#18a971;background:linear-gradient(145deg,#1bbd8c,#13865e);box-shadow:0 6px 18px #11a57520;color:#fff}
.staff-ui .lobby-panel .seat-icon .seat-empty-svg{width:31px;height:31px}
.staff-ui .lobby-panel .seat-name{font-size:12px;font-weight:760;color:#637fa8;max-width:100%}
.staff-ui .lobby-panel .seat-remove{width:25px;height:25px;font-size:20px;top:-7px;right:max(0px,calc(50% - 38px));border:1px solid #ffc6cc;background:#fff2f3}
.staff-ui .lobby-panel .seat-check{font-size:12px;padding:4px 6px;top:44px;right:max(0px,calc(50% - 35px));box-shadow:0 3px 10px #166c3a26}
.staff-ui .lobby-panel .capacity-settings{min-height:63px;gap:12px}
.staff-ui .lobby-panel .capacity-settings select{min-height:49px;border-radius:13px;padding:10px 14px;font-weight:740}
.staff-ui .lobby-panel .btn.primary{min-height:62px;border-radius:16px;font-size:15px}
@media(max-width:830px){
 .staff-ui .lobby-panel{scroll-margin-top:85px}
 .staff-ui .table-tile.app-like .table-count{font-size:27px}
 .staff-ui .table-tile.app-like .table-number{font-size:40px}
}
@media(max-width:600px){
 .staff-ui .lobby-panel .seat-grid{gap:18px 8px;padding:23px 0 27px}
 .staff-ui .lobby-panel .seat-icon{width:60px;height:60px;border-radius:18px}
 .staff-ui .lobby-panel .seat-name{font-size:11px}
 .staff-ui .table-tile.app-like .table-count{font-size:25px}
 .staff-ui .table-tile.app-like .table-number{font-size:39px}
 .staff-ui .lobby-panel .panel-head{margin-bottom:17px}
}
@media(max-width:380px){
 .staff-ui .table-tile.app-like .table-count{font-size:24px}
 .staff-ui .table-tile.app-like .table-number{font-size:37px}
 .staff-ui .lobby-panel .seat-icon{width:54px;height:54px;border-radius:16px}
 .staff-ui .lobby-panel .seat-icon .seat-empty-svg{width:28px;height:28px}
}


/* TavoloVivo 5.7 — Pulsanti grandi nel dettaglio tavolo (solo area Cameriere).
   La zona QR e i comandi di servizio hanno un layout touch con etichette leggibili. */
.staff-ui .lobby-panel .tv-qr-area {gap:18px;align-items:center;margin-top:29px;padding-top:24px;border-top:1px solid #e6edf8}
.staff-ui .lobby-panel .tv-qr-area img {width:132px;height:132px;max-width:100%;padding:10px;flex:0 0 132px;object-fit:contain;border-radius:18px;box-shadow:0 4px 20px #264b8712}
.staff-ui .lobby-panel .tv-qr-info {flex:1 1 170px;min-width:0}
.staff-ui .lobby-panel .tv-qr-info strong {font-size:17px;font-weight:850;color:#172c53;line-height:1.3}
.staff-ui .lobby-panel .tv-qr-info p {font-size:13px;font-weight:560;line-height:1.55;color:#647a98;margin-top:8px}
.staff-ui .lobby-panel .tv-qr-actions,.staff-ui .lobby-panel .tv-table-danger-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin-top:19px}
.staff-ui .lobby-panel .tv-table-action {display:flex;align-items:center;justify-content:flex-start;gap:12px;min-width:0;width:100%;min-height:66px;padding:13px 15px;border:1px solid transparent;border-radius:17px;white-space:normal;text-align:left;line-height:1.3;font-size:14px;font-weight:825;letter-spacing:-.015em;box-shadow:0 5px 14px #1c4b8b0a;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.staff-ui .lobby-panel .tv-table-action > span:nth-child(2){min-width:0;flex:1}
.staff-ui .lobby-panel .tv-action-icon {display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#ffffff36;font-size:22px;font-weight:850;line-height:1}
.staff-ui .lobby-panel .tv-action-arrow {font-size:19px;font-weight:800;margin-left:auto;flex:0 0 auto}
.staff-ui .lobby-panel .tv-table-action-primary{background:linear-gradient(108deg,#1267eb,#2a92ff);color:#fff;border-color:#166eea;box-shadow:0 5px 14px #1a7bff24}
.staff-ui .lobby-panel .tv-table-action-primary .tv-action-icon{background:#ffffff30}
.staff-ui .lobby-panel .tv-table-action-secondary{background:#edf5ff;color:#1767d1;border-color:#cde2ff}
.staff-ui .lobby-panel .tv-table-action-secondary .tv-action-icon{background:#d4e9ff}
.staff-ui .lobby-panel .tv-table-action-reset{background:#fff1f0;color:#b33e40;border-color:#ffd6d2}
.staff-ui .lobby-panel .tv-table-action-reset .tv-action-icon{background:#ffe1df}
.staff-ui .lobby-panel .tv-table-action-warning{background:#fff8e9;color:#986420;border-color:#f7e3b8}
.staff-ui .lobby-panel .tv-table-action-warning .tv-action-icon{background:#ffebc0;font-size:18px}
.staff-ui .lobby-panel .tv-table-action-warning small{display:block;font-size:11px;font-weight:700;line-height:1.25;color:#ad8150;margin-top:2px}
.staff-ui .lobby-panel .tv-table-action:focus-visible{outline:4px solid #49b6ff;outline-offset:3px}
.staff-ui .lobby-panel .tv-table-action:not(:disabled):active{transform:scale(.985)}
.staff-ui .lobby-panel .tv-table-footer {margin-top:17px;display:block}
.staff-ui .lobby-panel .tv-table-footer-note {margin-top:16px;font-size:12px;line-height:1.55;color:#7386a3;padding:0 2px}
.staff-ui .lobby-panel .hint {font-size:13px;line-height:1.5;color:#7486a3;font-weight:590;margin-top:13px}
.staff-ui .lobby-panel .tv-detail-secondary-action {margin-top:16px}
@media(max-width:700px){
 .staff-ui .lobby-panel .tv-qr-actions,.staff-ui .lobby-panel .tv-table-danger-actions{grid-template-columns:minmax(0,1fr);gap:10px}
 .staff-ui .lobby-panel .tv-table-action{min-height:65px;padding:12px 16px;font-size:15px;gap:12px;border-radius:16px}
 .staff-ui .lobby-panel .tv-qr-area{align-items:center;gap:15px}
 .staff-ui .lobby-panel .tv-qr-area img{width:122px;height:122px;flex-basis:122px}
 .staff-ui .lobby-panel .tv-qr-info strong{font-size:16px}
 .staff-ui .lobby-panel .tv-qr-info p{font-size:13px}
}
@media(max-width:380px){
 .staff-ui .lobby-panel .tv-qr-area img{width:113px;height:113px;flex-basis:113px}
 .staff-ui .lobby-panel .tv-table-action{font-size:14px;min-height:65px}
}

/* Le regole legacy .lobby-foot span non devono rimpicciolire i nuovi tasti. */
.staff-ui .lobby-panel .tv-table-footer .tv-table-action > span{color:inherit}
.staff-ui .lobby-panel .tv-table-footer .tv-table-action > span:nth-child(2){font-size:15px}
.staff-ui .lobby-panel .tv-table-footer .tv-table-action .tv-action-icon{font-size:22px}
.staff-ui .lobby-panel .tv-table-footer .tv-table-action .tv-action-arrow{font-size:19px}
.staff-ui .lobby-panel .tv-table-footer .tv-table-action-warning .tv-action-icon{font-size:18px}
@media(max-width:380px){.staff-ui .lobby-panel .tv-table-footer .tv-table-action > span:nth-child(2){font-size:14px}}


/* TavoloVivo 5.8 — Comande per tavolo, senza i quattro riquadri iniziali. */
.staff-ui .ticket-grid-v58{gap:18px}
.staff-ui .ticket.ticket-v58{overflow:hidden;border:1px solid #dfebfb;border-radius:24px;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);box-shadow:0 16px 36px rgba(26,60,111,.08);position:relative}
.staff-ui .ticket.ticket-v58::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;border-radius:24px 0 0 24px;background:#7cb6ff}
.staff-ui .ticket.ticket-v58.ticket-tone-new::before{background:linear-gradient(180deg,#4aa3ff,#277cff)}
.staff-ui .ticket.ticket-v58.ticket-tone-progress::before{background:linear-gradient(180deg,#38b6ff,#0e7bff)}
.staff-ui .ticket.ticket-v58.ticket-tone-preparing::before{background:linear-gradient(180deg,#ffbb54,#f18a21)}
.staff-ui .ticket.ticket-v58.ticket-tone-completed::before{background:linear-gradient(180deg,#44c98a,#16a56a)}
.staff-ui .ticket-head.ticket-head-v58{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;background:linear-gradient(180deg,#f9fbff,#fff);padding:22px 24px 16px}
.staff-ui .ticket-head-main{min-width:0;flex:1 1 auto}
.staff-ui .ticket-head.ticket-head-v58 small{display:block;color:#5c84bd;letter-spacing:.12em;font-weight:800;margin-bottom:7px}
.staff-ui .ticket-head.ticket-head-v58 h2{font-size:clamp(28px,4vw,38px);line-height:1;letter-spacing:-.06em;color:#183763;margin:0 0 13px}
.staff-ui .ticket-meta-pills{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.staff-ui .ticket-mini-pill,.staff-ui .ticket-head.ticket-head-v58 .elapsed-pill{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:760;background:#eef5ff;color:#58779f;border:1px solid #d9e8fb}
.staff-ui .ticket-right.ticket-right-v58{display:flex;flex-direction:column;align-items:flex-end;gap:8px;text-align:right;min-width:175px}
.staff-ui .ticket-right.ticket-right-v58 b{font-size:30px;line-height:1;font-weight:860;color:#183866;letter-spacing:-.05em}
.staff-ui .ticket-right.ticket-right-v58 small{font-size:12px;line-height:1.45;color:#7d90a9;max-width:190px}
.staff-ui .ticket-status-pill{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:850;border:1px solid #d6e4f9;background:#eef6ff;color:#2f7be5}
.staff-ui .ticket-status-pill.ticket-tone-new{background:#edf6ff;border-color:#cfe3ff;color:#1873ea}
.staff-ui .ticket-status-pill.ticket-tone-progress{background:#eef7ff;border-color:#c6e3ff;color:#116fdf}
.staff-ui .ticket-status-pill.ticket-tone-preparing{background:#fff5e8;border-color:#f7ddbb;color:#c17013}
.staff-ui .ticket-status-pill.ticket-tone-completed{background:#e9f8ef;border-color:#ccebd8;color:#148558}
.staff-ui .ticket-progress.ticket-progress-v58{height:7px;background:#eaf2fb}
.staff-ui .ticket-progress.ticket-progress-v58 span{display:block;height:7px;border-radius:0 999px 999px 0;background:linear-gradient(90deg,#1f7fff,#35c2ff)}
.staff-ui .ticket.ticket-v58.ticket-tone-preparing .ticket-progress.ticket-progress-v58 span{background:linear-gradient(90deg,#f0a128,#ffc66b)}
.staff-ui .ticket.ticket-v58.ticket-tone-completed .ticket-progress.ticket-progress-v58 span{background:linear-gradient(90deg,#1cab6a,#4ad28e)}
.staff-ui .course-group.course-group-v58{padding:12px 20px 14px}
.staff-ui .course-group.course-group-v58 + .course-group.course-group-v58{border-top:1px solid #edf1f7}
.staff-ui .course-group.course-group-v58 h3{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid #edf1f9;color:#4c73a8;font-size:14px;font-weight:840;text-transform:none}
.staff-ui .course-group.course-group-v58 h3 span{font-size:12px;font-weight:780;color:#8ea2bd;background:#f1f6fd;padding:5px 9px;border-radius:999px;border:1px solid #e1ebf8}
.staff-ui .ticket.ticket-v58 .dish{border-radius:16px;box-shadow:0 4px 14px rgba(35,67,112,.04)}
.staff-ui .ticket.ticket-v58 .dish + .dish{margin-top:10px}
.staff-ui .ticket.ticket-v58 .dish-info strong{font-size:14px}
.staff-ui .ticket.ticket-v58 .dish-info small{font-size:12px}
.staff-ui .ticket.ticket-v58 .muted{font-weight:720;color:#8fa1bb}
.staff-ui .tv-kitchen-layout:not(.with-availability) .ticket-grid-v58{grid-template-columns:1fr}
@media(max-width:1250px){.staff-ui .ticket-head.ticket-head-v58{padding:19px 20px 14px}.staff-ui .ticket-right.ticket-right-v58{min-width:165px}}
@media(max-width:830px){.staff-ui .ticket-head.ticket-head-v58{flex-direction:column;align-items:flex-start;gap:14px}.staff-ui .ticket-right.ticket-right-v58{align-items:flex-start;text-align:left;min-width:0}.staff-ui .ticket-right.ticket-right-v58 b{font-size:28px}}
@media(max-width:600px){.staff-ui .ticket.ticket-v58{border-radius:22px;box-shadow:0 14px 28px rgba(26,60,111,.08)}.staff-ui .ticket-head.ticket-head-v58{padding:17px 16px 14px}.staff-ui .ticket-head.ticket-head-v58 h2{font-size:24px;margin-bottom:11px}.staff-ui .ticket-mini-pill,.staff-ui .ticket-head.ticket-head-v58 .elapsed-pill{min-height:30px;padding:6px 11px;font-size:11px}.staff-ui .ticket-right.ticket-right-v58{width:100%;gap:6px}.staff-ui .ticket-right.ticket-right-v58 b{font-size:25px}.staff-ui .ticket-status-pill{min-height:34px;padding:7px 12px;font-size:12px}.staff-ui .course-group.course-group-v58{padding:10px 14px 12px}}


/* TavoloVivo 6.0 — stati tavolo a colore pieno. */
.staff-ui .table-tile.app-like.tone-clear{background:linear-gradient(180deg,#ffe8ec 0%,#ffd6dd 100%);border-color:#ee8da0}
.staff-ui .table-tile.app-like.tone-clear::before{border-color:#eb879b;background:linear-gradient(180deg,#fffdfd,#fff7f8)}
.staff-ui .table-tile.app-like.tone-clear .table-state-indicator{background:#e64a5c;border-color:#e64a5c;box-shadow:0 0 0 5px #ffd8de}
.staff-ui .table-tile.app-like.tone-clear .tile-label,.staff-ui .table-tile.app-like.tone-clear .table-count{color:#c42f48}
.staff-ui .table-tile.app-like.tone-clear.selected{border-color:#ea7890;box-shadow:0 0 0 4px #ffe7eb,0 18px 36px rgba(160,41,67,.10)}
.staff-ui .legend .red{background:#e54d63}
.staff-ui .table-tile.app-like.tone-idle.selected::before{border-color:#cfd8e5}
.staff-ui .table-tile.app-like.tone-ready.selected::before{border-color:#eeae4a}
.staff-ui .table-tile.app-like.tone-live.selected::before{border-color:#57bf89}
.staff-ui .table-tile.app-like.tone-service.selected::before{border-color:#56abf4}
.staff-ui .table-tile.app-like.tone-clear.selected::before{border-color:#e06d85}


/* TavoloVivo 6.1 — Gli ordini aggiuntivi sono schede cucina indipendenti. */
.staff-ui .ticket.ticket-v58.tv-ticket-extra{border:2px solid #a6c9f4;box-shadow:0 16px 35px rgba(19,90,170,.13)}
.staff-ui .ticket.tv-ticket-extra .ticket-head-v58{background:linear-gradient(110deg,#ecf7ff,#fff)}
.staff-ui .tv-extra-kicker{display:inline-flex;align-items:center;border-radius:8px;padding:4px 8px;margin-right:4px;background:#e4f0ff;color:#126de3;letter-spacing:.02em;font-weight:900}
.staff-ui .tv-extra-pending-warning{margin:14px 0 16px;padding:15px;background:#fff5e5;border:1px solid #f4d9a9;color:#805521;border-radius:14px;font-size:13px;font-weight:750;line-height:1.55}
.staff-ui .tv-extra-cancel-staff{display:block;width:100%;padding:12px;margin-top:12px;min-height:48px;border-radius:10px;border:1px solid #edc9a4;color:#9d5823;background:#fff;white-space:normal}

/* TavoloVivo 6.2 — bevande assegnate al cameriere, con avviso persistente. */
.staff-ui .nav button.tv-drink-tab-alert,
.staff-ui .nav .tv-drink-tab-alert{background:#fff0f1!important;color:#c82242!important;border-color:#ffbdca!important;box-shadow:inset 0 0 0 2px #ffc2cc!important}
.staff-ui .nav .tv-drink-tab-alert.active{background:linear-gradient(120deg,#e62e48,#b71232)!important;color:#fff!important;box-shadow:0 6px 18px #d32e4d30!important}
.staff-ui .tv-drink-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:99px;padding:2px 6px;font-size:12px;font-weight:900;line-height:1;background:#df2442;color:#fff;margin-left:5px}
.staff-ui .tv-drink-tab-alert.active .tv-drink-badge{background:#fff;color:#bd1836}
.staff-ui .tv-drink-banner{display:flex;align-items:center;gap:13px;background:linear-gradient(120deg,#fff0f2,#ffe7eb);border:2px solid #f3a3b2;border-radius:19px;box-shadow:0 7px 20px #ae30451a;padding:15px 17px;margin:0 0 24px;color:#95243b;}
.staff-ui .tv-drink-banner .tv-drink-bell{font-size:25px;flex:0 0 auto;line-height:1}
.staff-ui .tv-drink-banner>div{display:flex;flex-direction:column;flex:1;min-width:0;gap:4px}
.staff-ui .tv-drink-banner b{font-size:17px;font-weight:900;line-height:1.2}
.staff-ui .tv-drink-banner small{font-size:12px;font-weight:700;color:#a94c60;line-height:1.4}
.staff-ui .tv-drink-open{min-height:48px;border-radius:13px;padding:11px 15px;background:#cf2443;border:0;color:#fff;font-weight:850;font-size:13px;touch-action:manipulation;white-space:nowrap}
.staff-ui .tv-drink-toolbar{background:#fff;border:1px solid #dfe9f8;border-radius:16px;padding:17px 18px;margin-bottom:17px;display:flex;flex-wrap:wrap;gap:7px 16px;justify-content:space-between;align-items:center}
.staff-ui .tv-drink-toolbar b{font-size:16px;color:#15345d}
.staff-ui .tv-drink-toolbar span{font-size:12px;color:#7990ab;font-weight:700}
.staff-ui .tv-drink-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.staff-ui .tv-drink-card{background:#fff;border:2px solid #dae6f6;border-radius:24px;overflow:hidden;box-shadow:0 12px 28px #24467212}
.staff-ui .tv-drink-card-pending{border-color:#ee9aac;box-shadow:0 14px 34px #d42f471a}
.staff-ui .tv-drink-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;background:#f6f9ff}
.staff-ui .tv-drink-card-pending .tv-drink-card-head{background:linear-gradient(120deg,#fff1f2,#fff9fa)}
.staff-ui .tv-drink-card-head small{font-size:11px;letter-spacing:.1em;font-weight:900;color:#c22e48}
.staff-ui .tv-drink-card-head h2{font-size:31px;font-weight:900;letter-spacing:-.05em;margin:5px 0;color:#18375d}
.staff-ui .tv-drink-card-head p{font-size:12px;color:#8ba0b9;font-weight:730}
.staff-ui .tv-drink-count{min-width:51px;height:51px;padding:8px;display:grid;place-items:center;border-radius:16px;background:#ffe0e6;color:#c32a44;font-weight:900;font-size:27px}
.staff-ui .tv-drink-card-delivered .tv-drink-count{background:#e2f7ed;color:#159562}
.staff-ui .tv-drink-items{padding:10px 16px 17px}
.staff-ui .tv-drink-line{padding:14px 8px 18px;border-bottom:1px solid #e8edf6}
.staff-ui .tv-drink-line:last-child{border-bottom:0}
.staff-ui .tv-drink-line-top{display:flex;gap:12px;align-items:center;margin-bottom:15px}
.staff-ui .tv-glass{width:47px;height:47px;flex:0 0 47px;display:grid;place-items:center;background:#edf5ff;border-radius:14px;font-size:23px}
.staff-ui .tv-drink-line-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.staff-ui .tv-drink-line-info strong{font-size:16px;line-height:1.3;color:#17355f;font-weight:850}
.staff-ui .tv-drink-line-info small{font-size:12px;color:#6d89aa;font-weight:720}
.staff-ui .tv-drink-note{font-size:12px;padding:8px;background:#fff6dc;color:#7b561d;border-radius:8px;font-weight:800}
.staff-ui .tv-drink-deliver{display:block;width:100%;min-height:65px;border:0;background:linear-gradient(115deg,#126cec,#2794ff);box-shadow:0 5px 13px #2478e922;border-radius:16px;color:#fff;font-size:16px;font-weight:900;touch-action:manipulation;white-space:normal}
.staff-ui .tv-drink-line-done .tv-drink-line-info strong{color:#8294ad}
.staff-ui .tv-drink-deliver.tv-drink-undo{background:#f1f6fc;color:#486588;border:1px solid #d8e4f3;box-shadow:none;font-size:14px;min-height:50px}
.staff-ui .tv-drink-empty{grid-column:1/-1;padding:36px 22px;background:#fff;border:1px solid #e2eafa;border-radius:20px;text-align:center;color:#768ca8;font-weight:750}
.staff-ui .tv-food-summary{margin:22px 0;background:#fff;border:1px solid #dde7f5;border-radius:16px;padding:17px 20px;color:#385985}
.staff-ui .tv-food-summary summary{font-weight:850;cursor:pointer;min-height:36px}
.staff-ui .tv-food-summary-row{display:flex;justify-content:space-between;gap:16px;padding:13px 3px;border-top:1px solid #edf1f7;font-size:13px}
.staff-ui .tv-food-summary-row span{color:#6d84a5;font-weight:770}
@media(max-width:900px){.staff-ui .tv-drink-list{grid-template-columns:1fr}}
@media(max-width:600px){
 .staff-ui .tv-drink-banner{flex-wrap:wrap;padding:14px;gap:9px;margin-bottom:18px}
 .staff-ui .tv-drink-banner .tv-drink-bell{font-size:22px}
 .staff-ui .tv-drink-banner .tv-drink-open{width:100%;margin-top:5px;min-height:52px}
 .staff-ui .tv-drink-banner b{font-size:15px}
 .staff-ui .tv-drink-card-head{padding:17px}
 .staff-ui .tv-drink-card-head h2{font-size:29px}
 .staff-ui .tv-drink-card{border-radius:20px}
 .staff-ui .tv-drink-items{padding:7px 12px 13px}
 .staff-ui .tv-drink-deliver{min-height:68px;font-size:16px}
 .staff-ui .nav .tv-drink-badge{font-size:11px;min-width:20px;height:20px;position:absolute;top:3px;right:3px}
 .staff-ui .nav .tv-drink-tab-alert{position:relative}
}


/* TavoloVivo 6.3 — completate sempre in fondo, visibili fino allo sparecchio.
   La separazione e' identica per Cameriere e Cucina. */
.staff-ui .tv-orders-divider{
  grid-column:1/-1;display:flex;align-items:center;gap:11px;
  font-size:clamp(13px,1.2vw,15px);font-weight:900;letter-spacing:.01em;
  min-height:47px;padding:7px 2px 10px;color:#2a5488;
}
.staff-ui .tv-orders-divider::after{content:"";height:1px;flex:1;background:#d8e5f5;margin-left:5px}
.staff-ui .tv-orders-divider-icon{display:inline-grid;place-items:center;border-radius:12px;width:30px;height:30px;flex:0 0 30px;background:#e8f2ff;color:#2076dd;font-size:15px}
.staff-ui .tv-orders-divider-done{margin-top:11px;color:#55836b}
.staff-ui .tv-orders-divider-done::after{background:#d9ecdf}
.staff-ui .tv-orders-divider-done .tv-orders-divider-icon{background:#e7f8ed;color:#168b56}
.staff-ui .ticket.ticket-v58.tv-order-moved-down{border-color:#d1e8d9;box-shadow:0 9px 24px rgba(21,92,60,.07)}
.staff-ui .tv-drink-card.tv-drink-card-delivered{border-color:#d3e9dc;box-shadow:0 9px 24px rgba(18,104,64,.07)}
@media(max-width:600px){
 .staff-ui .tv-orders-divider{padding:8px 1px 11px;min-height:45px;font-size:13px;gap:8px}
 .staff-ui .tv-orders-divider-icon{width:27px;height:27px;flex-basis:27px}
}


/* TavoloVivo 6.6 — Cassa privata, sola lettura. */
.staff-ui .tv-cash-page{max-width:1160px;margin:0 auto;display:flex;flex-direction:column;gap:18px;padding-bottom:25px;color:#173350}
.staff-ui .tv-cash-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:4px 0 8px}
.staff-ui .tv-cash-heading h1{font-size:clamp(32px,5vw,48px);color:#173350;letter-spacing:-.06em;margin:6px 0}
.staff-ui .tv-cash-heading p{color:#8091a6;font-size:14px}
.staff-ui .tv-cash-kicker{font-size:11px;letter-spacing:.16em;color:#6793c1;font-weight:850}
.staff-ui .tv-cash-active{border:1px solid #dce9f8;border-radius:18px;background:#f0f7ff;padding:12px 19px;text-align:right;min-width:127px}
.staff-ui .tv-cash-active b{display:block;font-size:26px;color:#197df2}
.staff-ui .tv-cash-active small{font-size:11px;color:#6886a9;font-weight:700}
.staff-ui .tv-cash-panel{padding:23px;border:1px solid #e0eafa;border-radius:23px;background:#fff;box-shadow:0 14px 40px rgba(33,69,110,.065)}
.staff-ui .tv-cash-panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}
.staff-ui .tv-cash-panel-title h2{font-size:20px;font-weight:850;color:#1c416e}
.staff-ui .tv-cash-panel-title span{font-size:12px;font-weight:750;color:#8ba0ba}
.staff-ui .tv-cash-tables{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.staff-ui .tv-cash-table{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:92px;border:1.5px solid #e2eaf6;border-radius:17px;background:#f8faff;color:#778ba8;transition:.15s}
.staff-ui .tv-cash-table b{font-size:27px;line-height:1;font-weight:880;letter-spacing:-.06em;color:#4d698d}
.staff-ui .tv-cash-table span{font-size:12px;font-weight:760;white-space:nowrap}
.staff-ui .tv-cash-table.has-bill{background:#eff6ff;border-color:#d5e5fc;color:#236cba}
.staff-ui .tv-cash-table.has-bill b{color:#194f89}
.staff-ui .tv-cash-table.is-selected{color:#fff;border-color:#1879ed;background:linear-gradient(130deg,#126ce7,#318bf8);box-shadow:0 7px 22px rgba(18,112,236,.2)}
.staff-ui .tv-cash-table.is-selected b{color:white}
.staff-ui .tv-cash-table:focus-visible{outline:3px solid #44b9ff;outline-offset:3px}
.staff-ui .tv-cash-detail{padding:0;overflow:hidden}
.staff-ui .tv-cash-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 23px;border-bottom:1px solid #e8eef7;background:#f9fbff}
.staff-ui .tv-cash-detail-heading h2{font-size:29px;letter-spacing:-.05em;color:#163764;margin-top:4px}
.staff-ui .tv-cash-detail-heading>b{font-size:28px;letter-spacing:-.04em;color:#156fd8;white-space:nowrap}
.staff-ui .tv-cash-batch{padding:20px 23px;border-bottom:1px solid #e6edf7}
.staff-ui .tv-cash-batch-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:14px}
.staff-ui .tv-cash-batch-head strong{display:block;font-size:17px;color:#264e78}
.staff-ui .tv-cash-batch-head small{display:block;color:#92a2b7;font-size:12px;margin-top:4px}
.staff-ui .tv-cash-batch-head>b{font-size:18px;color:#206fbc;white-space:nowrap}
.staff-ui .tv-cash-lines{border:1px solid #e9eef6;border-radius:14px;padding:0 15px}
.staff-ui .tv-cash-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0}
.staff-ui .tv-cash-line+.tv-cash-line{border-top:1px solid #eaf0f8}
.staff-ui .tv-cash-line>span{min-width:0}
.staff-ui .tv-cash-line strong{display:block;font-size:14px;color:#244363;overflow-wrap:anywhere}
.staff-ui .tv-cash-line small{display:block;font-size:12px;color:#889bb2;margin-top:5px;overflow-wrap:anywhere}
.staff-ui .tv-cash-line>b{font-size:14px;white-space:nowrap;color:#173a63}
.staff-ui .tv-cash-empty{padding:36px 24px;color:#8193aa;text-align:center}
.staff-ui .tv-cash-table-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 23px;background:#edf5ff;color:#244e7a;font-weight:820}
.staff-ui .tv-cash-table-total strong{font-size:26px;color:#166fd6}
.staff-ui .tv-cash-footer{border-radius:21px;background:#173b65;padding:20px 24px;color:#fff;box-shadow:0 13px 32px rgba(12,54,98,.16)}
.staff-ui .tv-cash-footer>div{display:flex;align-items:center;justify-content:space-between;gap:14px}
.staff-ui .tv-cash-footer span{font-size:12px;letter-spacing:.075em;font-weight:790;color:#b7d4f2}
.staff-ui .tv-cash-footer strong{font-size:clamp(26px,5vw,38px);white-space:nowrap;letter-spacing:-.04em}
.staff-ui .tv-cash-footer small{display:block;color:#b8d4ef;font-size:11px;margin-top:10px}
@media(max-width:900px){.staff-ui .tv-cash-tables{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.staff-ui .tv-cash-page{gap:14px;padding-bottom:105px}.staff-ui .tv-cash-heading{align-items:center}.staff-ui .tv-cash-active{padding:10px;min-width:95px}.staff-ui .tv-cash-active b{font-size:23px}.staff-ui .tv-cash-active small{font-size:10px}.staff-ui .tv-cash-panel{padding:15px;border-radius:20px}.staff-ui .tv-cash-tables{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.staff-ui .tv-cash-table{min-height:78px;border-radius:14px;gap:6px}.staff-ui .tv-cash-table b{font-size:24px}.staff-ui .tv-cash-table span{font-size:11px}.staff-ui .tv-cash-detail{padding:0}.staff-ui .tv-cash-detail-heading{padding:17px}.staff-ui .tv-cash-detail-heading h2{font-size:23px}.staff-ui .tv-cash-detail-heading>b{font-size:23px}.staff-ui .tv-cash-batch{padding:15px 16px}.staff-ui .tv-cash-batch-head strong{font-size:15px}.staff-ui .tv-cash-lines{padding:0 12px}.staff-ui .tv-cash-table-total{padding:18px 16px}.staff-ui .tv-cash-table-total strong{font-size:23px}.staff-ui .tv-cash-footer{position:sticky;bottom:96px;z-index:4;padding:17px}.staff-ui .tv-cash-footer>div{align-items:baseline}.staff-ui .tv-cash-footer span{font-size:10px;max-width:160px}}


/* Su desktop la gestione categorie resta nella sua consueta colonna. */
.staff-ui .tv-kitchen-category-toggle{display:none}
.staff-ui .tv-kitchen-category-details,.staff-ui .tv-kitchen-category-content{min-width:0}

/* TavoloVivo 6.7 — Cucina Tablet.
   Solo account cucina, nessuna modifica alle pagine cliente / Cassa / Cameriere.
   In verticale: schede una sotto l'altra; in orizzontale: due colonne.
   Dimensione minima degli elementi touch: 56px, azioni >= 74px. */
@media (min-width:700px) and (max-width:1366px){
  .staff-ui[data-staff-role="kitchen"] .tv-stage{min-width:0;width:100%}
  .staff-ui[data-staff-role="kitchen"] .container{width:100%;max-width:none;padding:17px 20px calc(108px + env(safe-area-inset-bottom))}
  .staff-ui[data-staff-role="kitchen"] .section-heading{margin-bottom:14px;align-items:center;gap:16px}
  .staff-ui[data-staff-role="kitchen"] .section-heading h1{font-size:clamp(26px,3.2vw,35px);line-height:1.1}
  .staff-ui[data-staff-role="kitchen"] .section-heading p{font-size:12px;margin-top:4px}
  .staff-ui[data-staff-role="kitchen"] .section-heading .eyebrow{margin-bottom:7px}
  .staff-ui[data-staff-role="kitchen"] .connection-state{font-size:12px;padding:10px 13px;white-space:nowrap}
  .staff-ui[data-staff-role="kitchen"] .kitchen-toolbar{background:#fff;border:1px solid #dfebfb;border-radius:17px;padding:13px 16px;gap:14px;margin-bottom:13px;box-shadow:0 5px 18px rgba(27,74,131,.045)}
  .staff-ui[data-staff-role="kitchen"] .kitchen-tools-title{font-size:15px;font-weight:850;color:#17375f}
  .staff-ui[data-staff-role="kitchen"] .kitchen-tools-title .tv-touch-hint{font-size:11px;margin-top:3px}
  .staff-ui[data-staff-role="kitchen"] .kitchen-sound{min-height:56px;font-size:14px;padding:12px 15px;white-space:normal;text-align:center}

  /* Categorie in una barra scorrevole, non una lunga colonna sotto le comande. */
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout.with-availability{display:flex;flex-direction:column;align-items:stretch;gap:16px;min-width:0}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout.with-availability .tv-kitchen-categories{order:-1;position:static;width:100%;min-width:0;padding:13px 16px;border-radius:18px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-category-toggle{display:flex;align-items:center;gap:12px;min-height:65px;cursor:pointer;color:#1b477b;list-style:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-category-toggle::-webkit-details-marker{display:none}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-category-toggle:focus-visible{outline:3px solid #30a4ff;outline-offset:2px;border-radius:12px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-toggle-symbol{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border-radius:13px;background:#eaf3ff;color:#1978e9;font-size:23px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-category-toggle>span:nth-child(2){display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-category-toggle b{font-size:17px;line-height:1.2}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-category-toggle small{font-size:12px;color:#768da9;font-weight:700}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-toggle-chevron{font-size:24px;color:#6893bd;transition:transform .2s}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-category-details[open] .tv-kitchen-toggle-chevron{transform:rotate(180deg)}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-category-content{padding-top:12px;border-top:1px solid #e7eef9}
  .staff-ui[data-staff-role="kitchen"] .tv-quick-head{display:none}
  .staff-ui[data-staff-role="kitchen"] .tv-quick-head{margin-bottom:9px}
  .staff-ui[data-staff-role="kitchen"] .tv-quick-head h2{font-size:17px;margin-top:2px}
  .staff-ui[data-staff-role="kitchen"] .tv-quick-head p{display:none}
  .staff-ui[data-staff-role="kitchen"] .tv-quick-icon{width:34px;height:34px}
  .staff-ui[data-staff-role="kitchen"] .tv-categories-list{display:flex;flex-direction:row;gap:9px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:thin;padding:3px 1px 9px}
  .staff-ui[data-staff-role="kitchen"] .tv-category-row{flex:0 0 auto;width:auto;min-width:140px;max-width:215px;min-height:58px;padding:9px 12px;gap:8px;border:1px solid #dce9fa;border-radius:13px;background:#f7faff;scroll-snap-align:start}
  .staff-ui[data-staff-role="kitchen"] .tv-category-name{font-size:13px;white-space:normal;line-height:1.2}
  .staff-ui[data-staff-role="kitchen"] .tv-category-count{font-size:11px}
  .staff-ui[data-staff-role="kitchen"] .tv-cat-arrow{display:none}
  .staff-ui[data-staff-role="kitchen"] .tv-all-categories{min-height:52px;margin-top:2px;font-size:13px;padding:11px 15px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout.with-availability>.ticket-grid{order:0;width:100%;min-width:0;align-items:start;gap:16px}
  .staff-ui[data-staff-role="kitchen"] .ticket-grid-v58 .tv-orders-divider{grid-column:1/-1;min-height:40px;padding:5px 2px;font-size:15px}
  .staff-ui[data-staff-role="kitchen"] .ticket.ticket-v58{min-width:0;border-radius:20px;box-shadow:0 12px 26px rgba(23,63,112,.10)}
  .staff-ui[data-staff-role="kitchen"] .ticket-head.ticket-head-v58{padding:17px 17px 13px;gap:12px}
  .staff-ui[data-staff-role="kitchen"] .ticket-head.ticket-head-v58 h2{font-size:clamp(26px,2.7vw,33px);margin:5px 0 10px;white-space:nowrap}
  .staff-ui[data-staff-role="kitchen"] .ticket-head.ticket-head-v58 small{font-size:11px;overflow-wrap:anywhere}
  .staff-ui[data-staff-role="kitchen"] .ticket-right.ticket-right-v58{min-width:0;gap:6px}
  .staff-ui[data-staff-role="kitchen"] .ticket-right.ticket-right-v58 small{display:none}
  .staff-ui[data-staff-role="kitchen"] .ticket-right.ticket-right-v58 b{font-size:25px}
  .staff-ui[data-staff-role="kitchen"] .ticket-status-pill{font-size:12px;min-height:34px;white-space:nowrap}
  .staff-ui[data-staff-role="kitchen"] .course-group.course-group-v58{padding:10px 14px 12px}
  .staff-ui[data-staff-role="kitchen"] .course-group.course-group-v58 h3{font-size:14px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-dish{padding:14px;margin:9px 0 12px;gap:9px 11px;border-radius:16px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-dish .dish-info strong{font-size:17px;line-height:1.3;overflow-wrap:anywhere}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-dish .dish-info small{font-size:13px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-dish .dish-status{font-size:12px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-dish .kitchen-note{font-size:14px;padding:11px 12px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:7px 0 0}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-actions-single{grid-template-columns:1fr}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-actions .kitchen-touch-btn{min-height:74px;padding:11px 9px;font-size:15px;gap:7px;border-radius:15px}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-touch-symbol{width:27px;height:27px;flex-basis:27px;font-size:19px}

  /* Anche la schermata Disponibilità resta comoda da toccare sul tablet. */
  .staff-ui[data-staff-role="kitchen"] .availability-panel{max-width:none}
  .staff-ui[data-staff-role="kitchen"] .availability-category{min-height:56px}
  .staff-ui[data-staff-role="kitchen"] .availability-item{min-height:96px}
  .staff-ui[data-staff-role="kitchen"] .availability-button{min-height:64px}
}
/* Su iPad e tablet Android anche in landscape la navigazione resta sempre a portata di dito. */
@media (min-width:831px) and (max-width:1366px){
  .staff-ui[data-staff-role="kitchen"] .tv-sidebar{position:fixed;top:auto;bottom:0;left:0;width:100%;height:auto;min-height:76px;max-height:112px;z-index:25;padding:8px max(16px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));background:#fff;border-right:0;border-top:1px solid #dfeafa;box-shadow:0 -6px 24px #193d6b1b}
  .staff-ui[data-staff-role="kitchen"] .tv-sidebar .tv-brand,.staff-ui[data-staff-role="kitchen"] .tv-sidebar-caption,.staff-ui[data-staff-role="kitchen"] .tv-sidebar-bottom{display:none}
  .staff-ui[data-staff-role="kitchen"] .nav{display:flex;flex-direction:row;justify-content:center;gap:14px;width:100%}
  .staff-ui[data-staff-role="kitchen"] .nav button,.staff-ui[data-staff-role="kitchen"] .nav button.nav-logout{flex:0 1 250px;width:auto;min-width:0;min-height:60px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;padding:12px 18px;margin:0;border:0;border-radius:14px;font-size:15px;font-weight:820;text-align:center}
  .staff-ui[data-staff-role="kitchen"] .nav .tv-nav-icon{width:24px;height:24px}
  .staff-ui[data-staff-role="kitchen"] .app-header.tv-topbar{height:66px;min-height:66px;padding:0 22px}
}
/* Tablet verticale: una scheda grande per riga, impossibile confondere le comande. */
@media (min-width:700px) and (max-width:959px){
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout.with-availability .ticket-grid-v58{grid-template-columns:minmax(0,1fr)}
  .staff-ui[data-staff-role="kitchen"] .ticket-head.ticket-head-v58{flex-direction:row;align-items:flex-start}
  .staff-ui[data-staff-role="kitchen"] .ticket-right.ticket-right-v58{align-items:flex-end;text-align:right}
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-actions .kitchen-touch-btn{font-size:17px;min-height:78px}
}
/* Tablet orizzontale: comande affiancate, separate da bordi e ombre. */
@media (min-width:960px) and (max-width:1366px){
  .staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout.with-availability .ticket-grid-v58{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:700px) and (max-width:1100px){
  .staff-ui[data-staff-role="kitchen"] .ticket-head.ticket-head-v58{flex-direction:column;align-items:flex-start}
  .staff-ui[data-staff-role="kitchen"] .ticket-right.ticket-right-v58{width:100%;flex-direction:row;align-items:center;justify-content:space-between;text-align:left}
}


/* TavoloVivo 6.8 — Sala nello stile originale scelto, raffinata come app.
   Solo Cameriere/Sala: NON modifica Cucina Tablet, Cassa e menu cliente. */
.staff-ui[data-staff-role="waiter"] .tv-sala-page{--tv-hairline:#dfe8f6;--tv-sky:#197df7;--tv-navy:#162f58;display:block;min-width:0}
.staff-ui .tv-sala-top-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid #e5ecf8;border-radius:24px;background:linear-gradient(120deg,#fff,#f8fbff);box-shadow:0 9px 26px rgba(29,65,124,.09);padding:15px 8px;margin-bottom:18px}
.staff-ui .tv-sala-metric{display:grid;grid-template-columns:35px auto;grid-template-rows:auto auto;align-content:center;align-items:center;justify-content:center;column-gap:8px;min-width:0;position:relative;color:#267edf}
.staff-ui .tv-sala-metric+.tv-sala-metric:before{content:"";position:absolute;left:0;top:10px;bottom:10px;border-left:1px solid #dce6f5}
.staff-ui .tv-sala-metric>svg{grid-row:1/3;width:27px;height:27px;stroke:#2682e5}
.staff-ui .tv-sala-metric>strong{font-size:32px;letter-spacing:-.05em;line-height:1.15;color:#152e57;font-weight:880}
.staff-ui .tv-sala-metric>span:last-child{font-size:12px;line-height:1.15;font-weight:680;color:#6b809d;white-space:nowrap}
.staff-ui .tv-sala-meter{grid-row:1/3;position:relative;display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:conic-gradient(#167bf1 var(--tv-percent),#dde9f9 0)}
.staff-ui .tv-sala-meter:after{content:"";width:21px;height:21px;border-radius:50%;background:#fff}
.staff-ui .tv-sala-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px}
.staff-ui .tv-sala-filter{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:49px;border:1px solid #e5ecf7;border-radius:17px;background:linear-gradient(180deg,#fff,#fbfdff);font-size:13px;font-weight:800;color:#334b70;box-shadow:0 5px 15px rgba(30,66,118,.075);cursor:pointer;touch-action:manipulation}
.staff-ui .tv-sala-filter svg{flex:0 0 auto;stroke:#2386e7}
.staff-ui .tv-sala-filter.is-active{background:linear-gradient(110deg,#126cf1,#328cfa);color:#fff;border-color:#136bf0;box-shadow:0 8px 18px rgba(20,111,238,.23)}
.staff-ui .tv-sala-filter.is-active svg{stroke:#fff}
.staff-ui .tv-sala-filter:focus-visible,.staff-ui .tv-sala-card:focus-visible{outline:3px solid #54b5ff;outline-offset:3px}
.staff-ui .tv-sala-attention{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 18px;font-size:12px;color:#637e9b;font-weight:730}
.staff-ui .tv-sala-attention>span{display:inline-flex;align-items:center;gap:6px}
.staff-ui .tv-sala-attention b{font-size:13px;color:#126ef0}
.staff-ui .tv-sala-attention>span:nth-child(2) b{color:#d83d5a}
.staff-ui .tv-sala-attention svg{stroke:#5088ce}
.staff-ui .dashboard-layout.tv-sala-layout{align-items:start;grid-template-columns:minmax(0,1fr) minmax(330px,.78fr);gap:18px}
.staff-ui .tv-sala-grid-panel{padding:14px;background:transparent;border:0;box-shadow:none}
.staff-ui .table-grid.app-table-grid.tv-sala-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.staff-ui .table-tile.app-like.tv-sala-card{display:flex;align-items:stretch;flex-direction:column;text-align:left;position:relative;isolation:isolate;min-width:0;min-height:214px;padding:20px 18px 16px;border-radius:26px;border:1px solid #e3eaf5;background:linear-gradient(160deg,#fff 7%,#f9fbff 100%);box-shadow:0 9px 22px rgba(32,69,128,.11);color:#173663;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease;cursor:pointer}
.staff-ui .table-tile.app-like.tv-sala-card::before{display:none}
.staff-ui .table-tile.app-like.tv-sala-card:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(32,69,128,.16)}
.staff-ui .table-tile.app-like.tv-sala-card.selected{border-color:#2190ff;background:linear-gradient(150deg,#fafdff,#eaf4ff);box-shadow:0 0 0 2px #aedaff,0 12px 25px rgba(23,104,207,.14)}
.staff-ui .tv-sala-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;z-index:1}
.staff-ui .tv-sala-card-number{display:flex;align-items:center;gap:12px;min-width:0}
.staff-ui .tv-sala-card-number>svg{width:24px;height:24px;stroke:#607b9c;flex:0 0 auto}
.staff-ui .tv-sala-card-number .table-number{font-size:clamp(34px,3.5vw,44px);font-weight:890;line-height:1;letter-spacing:-.065em;margin:0;color:#142e57}
.staff-ui .tv-sala-card-head .table-state-indicator{display:block;flex:0 0 auto;width:18px;height:18px;min-width:18px;border:2px solid #fff;border-radius:100%;background:#c9d3e0;box-shadow:0 0 0 3px #edf1f7,0 1px 5px rgba(28,62,109,.18);margin:0 2px 0 auto}
.staff-ui .tv-sala-card-people.table-main{display:flex;flex-direction:row;align-items:center;gap:10px;margin:18px 0 14px;width:100%;z-index:1}
.staff-ui .tv-sala-people-icon{width:32px;height:32px;min-width:32px;display:grid;place-items:center;background:#f0f5fc;color:#567696;border-radius:12px}
.staff-ui .tv-sala-people-data{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.staff-ui .table-tile.app-like.tv-sala-card .table-count{font-size:25px;font-weight:830;letter-spacing:-.035em;line-height:1;color:#193b6c}
.staff-ui .tv-sala-card .table-count-label{font-size:11px;line-height:1.25;color:#7388a2;font-weight:640;letter-spacing:0}
.staff-ui .table-tile.app-like.tv-sala-card .tv-sala-card-status.tile-label{display:inline-flex;align-items:center;align-self:flex-start;justify-content:center;gap:7px;max-width:100%;min-height:35px;padding:8px 13px;margin:0 0 14px;border-radius:999px;border:1px solid #beeccb;background:#e1f8e8;color:#167748;font-size:12px;line-height:1.2;font-weight:820}
.staff-ui .tv-sala-card-status>svg{flex:0 0 auto;width:16px;height:16px}
.staff-ui .tv-sala-card-status b{min-width:0;overflow-wrap:anywhere}
.staff-ui .tv-sala-card-foot.tile-helper{display:flex;align-items:center;gap:8px;min-width:0;margin-top:auto;color:#788da8;font-size:11px;line-height:1.3;z-index:1}
.staff-ui .tv-sala-card-foot svg{flex:0 0 auto;color:#688ab6}
.staff-ui .table-tile.app-like.tv-sala-card.tone-idle .table-state-indicator{background:#c4cfdd;border-color:#fff;box-shadow:0 0 0 3px #eff2f7}
.staff-ui .table-tile.app-like.tv-sala-card.tone-ready{border-color:#f3c47b;background:linear-gradient(145deg,#fffdfa,#fff2df)}
.staff-ui .table-tile.app-like.tv-sala-card.tone-ready .table-state-indicator{background:#ee9b23;box-shadow:0 0 0 3px #ffe9c4}
.staff-ui .table-tile.app-like.tv-sala-card.tone-ready .tv-sala-card-status{background:#fff0d4;border-color:#f9d4a3;color:#a8680d}
.staff-ui .table-tile.app-like.tv-sala-card.tone-live{border-color:#9ddbc0;background:linear-gradient(145deg,#fff,#e9f9f0)}
.staff-ui .table-tile.app-like.tv-sala-card.tone-live .table-state-indicator{background:#17b574;box-shadow:0 0 0 3px #d7f6e5}
.staff-ui .table-tile.app-like.tv-sala-card.tone-live .tv-sala-card-status{background:#daf9e8;border-color:#a8e9c7;color:#137c55}
.staff-ui .table-tile.app-like.tv-sala-card.tone-service{border-color:#8cbefa;background:linear-gradient(145deg,#fff,#eaf4ff)}
.staff-ui .table-tile.app-like.tv-sala-card.tone-service .table-state-indicator{background:#2789ff;box-shadow:0 0 0 3px #dcecff}
.staff-ui .table-tile.app-like.tv-sala-card.tone-service .tv-sala-card-status{background:#e0f0ff;border-color:#b0d4ff;color:#135bbd}
.staff-ui .table-tile.app-like.tv-sala-card.tone-clear{border-color:#f2a5b2;background:linear-gradient(145deg,#fff,#fff0f3)}
.staff-ui .table-tile.app-like.tv-sala-card.tone-clear .table-state-indicator{background:#e34a67;box-shadow:0 0 0 3px #ffe0e7}
.staff-ui .table-tile.app-like.tv-sala-card.tone-clear .tv-sala-card-status{background:#ffe5ea;border-color:#f6afbd;color:#bd2c4d}
.staff-ui .tv-sala-no-matches{grid-column:1/-1;border:1px dashed #cddbf0;background:#fff;border-radius:21px;text-align:center;padding:35px 15px;color:#587394;font-weight:750}
@media(max-width:1250px){.staff-ui .dashboard-layout.tv-sala-layout{grid-template-columns:1fr}.staff-ui .table-grid.app-table-grid.tv-sala-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.staff-ui .tv-sala-grid-panel{padding:8px}}
@media(max-width:830px){.staff-ui .table-grid.app-table-grid.tv-sala-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.staff-ui .tv-sala-grid-panel{padding:3px}}
@media(max-width:600px){
 .staff-ui .tv-sala-top-summary{border-radius:20px;padding:13px 5px;margin:0 0 15px}
 .staff-ui .tv-sala-metric{grid-template-columns:21px auto;column-gap:5px}
 .staff-ui .tv-sala-metric>svg{width:19px;height:19px}
 .staff-ui .tv-sala-meter{width:22px;height:22px}
 .staff-ui .tv-sala-meter:after{width:14px;height:14px}
 .staff-ui .tv-sala-metric>strong{font-size:21px}
 .staff-ui .tv-sala-metric>span:last-child{font-size:9px}
 .staff-ui .tv-sala-filters{gap:8px}
 .staff-ui .tv-sala-filter{min-height:47px;padding:8px 4px;gap:6px;border-radius:15px;font-size:11px}
 .staff-ui .tv-sala-filter svg{width:16px;height:16px}
 .staff-ui .tv-sala-attention{gap:12px;font-size:10px;margin-bottom:15px}
 .staff-ui .tv-sala-attention b{font-size:11px}
 .staff-ui .table-grid.app-table-grid.tv-sala-grid{gap:12px}
 .staff-ui .table-tile.app-like.tv-sala-card{min-height:201px;padding:15px 12px 13px;border-radius:22px}
 .staff-ui .tv-sala-card-number{gap:7px}
 .staff-ui .tv-sala-card-number>svg{width:20px;height:20px}
 .staff-ui .tv-sala-card-number .table-number{font-size:37px}
 .staff-ui .tv-sala-card-people.table-main{gap:7px;margin:16px 0 13px}
 .staff-ui .tv-sala-people-icon{width:27px;height:27px;min-width:27px;border-radius:9px}
 .staff-ui .tv-sala-people-icon svg{width:19px;height:19px}
 .staff-ui .table-tile.app-like.tv-sala-card .table-count{font-size:24px}
 .staff-ui .tv-sala-card .table-count-label{font-size:10px}
 .staff-ui .table-tile.app-like.tv-sala-card .tv-sala-card-status.tile-label{padding:7px 9px;min-height:32px;font-size:11px;margin-bottom:11px}
 .staff-ui .tv-sala-card-status>svg{width:15px;height:15px}
 .staff-ui .tv-sala-card-foot.tile-helper{font-size:10px;gap:6px}
}
@media(max-width:370px){.staff-ui .tv-sala-filter{font-size:10px}.staff-ui .tv-sala-metric>strong{font-size:19px}.staff-ui .tv-sala-metric>span:last-child{font-size:8px}.staff-ui .tv-sala-card-number .table-number{font-size:34px}.staff-ui .table-tile.app-like.tv-sala-card{padding:13px 10px 12px}}

/* Tavoli con almeno un ospite, in attesa del cameriere: arancione, mai verde "Vuoto". */
.staff-ui .table-tile.app-like.tv-sala-card.tone-waiting{border-color:#f3cb98;background:linear-gradient(145deg,#fff,#fff8f0)}
.staff-ui .table-tile.app-like.tv-sala-card.tone-waiting .table-state-indicator{background:#eea443;box-shadow:0 0 0 3px #fff0dd}
.staff-ui .table-tile.app-like.tv-sala-card.tone-waiting .tv-sala-card-status{background:#fff0db;border-color:#f7d6b0;color:#a86819}


/* TavoloVivo 6.9 — Solo Cucina e Cassa, stessa famiglia visiva della Sala 6.8.
   Tutte le regole nuove sono limitate ai rispettivi ruoli. */
.staff-ui[data-staff-role="kitchen"],.staff-ui[data-staff-role="cashier"]{--v69-primary:#1679f4;--v69-navy:#183763;--v69-sub:#6981a0}
.staff-ui[data-staff-role="kitchen"] .tv-v69-headline,.staff-ui[data-staff-role="cashier"] .tv-v69-headline{margin:0 0 10px}
.staff-ui .tv-v69-kicker{display:block;font-weight:900;letter-spacing:.15em;font-size:11px;color:#8a9cb9;margin-bottom:8px}
.staff-ui .tv-v69-headline h1{color:#17345d;letter-spacing:-.055em;font-size:clamp(27px,3.3vw,40px);line-height:1.12}
.staff-ui .tv-v69-headline p{font-size:13px;color:#8094af;font-weight:650;margin-top:8px;line-height:1.4}
.staff-ui .tv-v69-statbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e0eafa;border-radius:23px;background:linear-gradient(115deg,#fff,#f8fbff);box-shadow:0 10px 26px #1b4c8a11;overflow:hidden;padding:14px 10px;margin:15px 0 17px}
.staff-ui .tv-v69-statbar>div{position:relative;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:center;min-width:0;gap:2px;text-align:center;color:#173c68}
.staff-ui .tv-v69-statbar>div+div:before{content:"";position:absolute;top:15px;bottom:15px;left:0;width:1px;background:#d6e2f2}
.staff-ui .tv-v69-stat-icon{color:#197ffc;display:grid;place-items:center;min-height:25px;margin-bottom:3px}
.staff-ui .tv-v69-stat-icon .tv-nav-icon{width:23px;height:23px}
.staff-ui .tv-v69-statbar b{font-size:clamp(20px,2.5vw,31px);line-height:1.1;letter-spacing:-.04em;font-weight:950;white-space:nowrap}
.staff-ui .tv-v69-statbar small{font-size:12px;line-height:1.25;color:#7187a6;font-weight:760}
.staff-ui .tv-v69-filters{display:flex;gap:10px;margin-bottom:18px;overflow-x:auto;scrollbar-width:none;padding:3px 1px 6px;overscroll-behavior-x:contain}
.staff-ui .tv-v69-filters::-webkit-scrollbar{display:none}
.staff-ui .tv-v69-filters button{flex:1 0 auto;min-height:53px;white-space:nowrap;padding:11px 18px;background:#fff;border:1px solid #dce7f6;border-radius:18px;color:#496383;font-size:13px;font-weight:850;font-family:inherit;box-shadow:0 7px 18px #244e8510;touch-action:manipulation;cursor:pointer}
.staff-ui .tv-v69-filters button.active{background:linear-gradient(120deg,#126ef1,#258dff);color:#fff;border-color:#157cf2;box-shadow:0 9px 22px #1375f32b}
.staff-ui .tv-v69-filters button:focus-visible,.staff-ui .tv-v69-cash-open:focus-visible{outline:3px solid #3bb2ff;outline-offset:3px}
.staff-ui[data-staff-role="kitchen"] .tv-v69-kitchen-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.staff-ui[data-staff-role="kitchen"] .tv-v69-kitchen-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.staff-ui[data-staff-role="kitchen"] .tv-v69-kitchen-tools .kitchen-sound{min-height:50px;font-size:12px;padding:10px 13px}
.staff-ui[data-staff-role="kitchen"] .tv-v69-ticket{border-radius:24px;box-shadow:0 12px 30px #214d8115;border:1px solid #dbe7f7}
.staff-ui[data-staff-role="kitchen"] .tv-v69-ticket .tv-v69-ticket-head{background:#fff;padding:17px 20px 13px;gap:12px}
.staff-ui[data-staff-role="kitchen"] .tv-v69-ticket .ticket-head-v58 h2{font-size:clamp(27px,3.1vw,36px);letter-spacing:-.05em}
.staff-ui[data-staff-role="kitchen"] .tv-v69-ticket .ticket-status-pill{font-size:12px;padding:8px 14px;border-radius:999px}
.staff-ui[data-staff-role="kitchen"] .tv-v69-ticket .course-group-v58{padding:11px 17px 14px}
.staff-ui[data-staff-role="kitchen"] .tv-v69-ticket .dish{background:#f9fbff;border:1px solid #e4ecf8;border-radius:14px}
.staff-ui[data-staff-role="kitchen"] .tv-v69-ticket .dish-info strong{color:#17355b}
.staff-ui[data-staff-role="kitchen"] .tv-v69-ticket .ticket-right-v58 small{display:none}
.staff-ui[data-staff-role="kitchen"] .tv-kitchen-layout.with-availability>.ticket-grid{order:0}
.staff-ui[data-staff-role="kitchen"] .tv-v69-ticket .kitchen-touch-btn{touch-action:manipulation}
/* Cassa: la panoramica e' consultiva, i prezzi sono quelli delle comande. */
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-page{max-width:1160px;margin:0 auto;padding-bottom:32px}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-list{display:grid;grid-template-columns:1fr;gap:15px;margin-bottom:20px}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-card{border:1.5px solid #dce8f8;border-radius:23px;background:linear-gradient(130deg,#fff,#fbfdff);padding:20px;box-shadow:0 12px 32px #194a8710;min-width:0}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-card.is-selected{border-color:#9bc7f9;box-shadow:0 0 0 3px #e8f2ff,0 12px 32px #194a8714}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-card-top{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:13px}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-title{display:flex;gap:12px;align-items:center;color:#5f789c;min-width:0}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-title h2{font-size:clamp(21px,3vw,30px);letter-spacing:-.05em;color:#193c69;white-space:nowrap}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-total{font-size:clamp(21px,2.8vw,28px);font-weight:920;letter-spacing:-.05em;color:#146ad3;white-space:nowrap}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 15px;margin-bottom:14px}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-meta>span:first-child{display:flex;align-items:center;gap:6px;color:#7288a6;font-size:12px;font-weight:730}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-status{display:inline-flex;align-items:center;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:800;border:1px solid #e3ecf7;background:#f2f6fc;color:#687d99}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-status.active{color:#1b75df;background:#e7f2ff;border-color:#cde4ff}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-status.ready{color:#118c5a;background:#e7f8ef;border-color:#cdeedb}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-preview{background:#f5f8fd;border:1px solid #eaf0f9;border-radius:15px;min-height:62px;padding:11px 14px;margin-bottom:12px}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-product{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0;font-size:13px;color:#233d5f;font-weight:690}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-product b{color:#778bab;font-size:12px}
.staff-ui[data-staff-role="cashier"] .tv-v69-more,.staff-ui[data-staff-role="cashier"] .tv-v69-empty-preview{display:block;color:#879bb4;font-size:12px;font-weight:690;margin-top:5px}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-open{width:100%;min-height:54px;border:1px solid #cbdff7;border-radius:14px;background:#edf5ff;color:#2164b5;font-weight:880;font-size:14px;touch-action:manipulation;cursor:pointer}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-open span{margin-left:8px}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-detail{scroll-margin-top:94px;margin-bottom:20px}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-grand{display:flex;align-items:center;justify-content:space-between;gap:13px;border-radius:20px;background:#fff;border:1px solid #dce8f7;box-shadow:0 12px 28px #194a8710;padding:19px 21px}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-grand span{font-size:clamp(16px,3vw,23px);color:#183860;font-weight:900}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-grand strong{font-size:clamp(23px,4vw,33px);color:#0f376e;white-space:nowrap;letter-spacing:-.04em}
.staff-ui[data-staff-role="cashier"] .tv-v69-cash-disclaimer{font-size:11px;color:#8b9bb0;margin:10px 6px 0}
@media(min-width:1070px){.staff-ui[data-staff-role="cashier"] .tv-v69-cash-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:830px){.staff-ui[data-staff-role="kitchen"] .tv-v69-kitchen-head{align-items:flex-start;flex-direction:column}.staff-ui[data-staff-role="kitchen"] .tv-v69-kitchen-tools{width:100%;justify-content:space-between}}
@media(max-width:600px){
  .staff-ui .tv-v69-statbar{border-radius:21px;margin:12px 0 13px;padding:13px 4px}
  .staff-ui .tv-v69-statbar b{font-size:21px}
  .staff-ui .tv-v69-statbar small{font-size:10px}
  .staff-ui .tv-v69-stat-icon svg{width:20px;height:20px}
  .staff-ui .tv-v69-filters{gap:8px}
  .staff-ui .tv-v69-filters button{flex:0 0 auto;min-height:51px;font-size:12px;padding:10px 12px;border-radius:14px}
  .staff-ui[data-staff-role="kitchen"] .tv-v69-ticket .tv-v69-ticket-head{padding:16px}
  .staff-ui[data-staff-role="cashier"] .tv-v69-cash-card{padding:16px;border-radius:20px}
  .staff-ui[data-staff-role="cashier"] .tv-v69-cash-title h2{font-size:21px}
  .staff-ui[data-staff-role="cashier"] .tv-v69-cash-total{font-size:20px}
  .staff-ui[data-staff-role="cashier"] .tv-v69-cash-grand{padding:18px}
  .staff-ui[data-staff-role="cashier"] .tv-v69-cash-grand span{font-size:16px}
  .staff-ui[data-staff-role="cashier"] .tv-v69-cash-grand strong{font-size:23px}
}

/* TavoloVivo 7.0: avvisi operativi e pagamenti, senza cambiare le schede 6.8/6.9 */
.tv-v70-alert,.tv-v70-pickup,.tv-v70-payment-form,.tv-v70-guest-list,.tv-v70-payments,.tv-v70-cash-history{border:1px solid #dbe7f4;background:#fff;border-radius:19px;padding:18px;margin:15px 0;box-shadow:0 6px 21px #123e6a0c;color:#203a55}
.tv-v70-alert{border-color:#f3c79d;background:#fff8f1}
.tv-v70-alert>strong,.tv-v70-pickup h2{font-weight:850;display:block;font-size:18px;margin-bottom:10px;color:#243c57}
.tv-v70-alert-line,.tv-v70-pickup-line,.tv-v70-paid-line,.tv-v70-guest-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #e8edf5;font-size:14px}
.tv-v70-alert-line button,.tv-v70-pickup-line button,.tv-v70-cash-history button{cursor:pointer;border:0;border-radius:11px;padding:13px 15px;font-size:13px;font-weight:750;background:#1b72c7;color:white;white-space:nowrap;min-height:44px}
.tv-v70-ready-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 19px;background:#f0f8ff;border:1px solid #b9d8f5;border-radius:16px;margin:13px 0;color:#16588e;font-weight:850}
.tv-v70-ready-bar button{border:0;color:#155e9b;background:transparent;font-weight:850;cursor:pointer;min-height:40px}
.tv-v70-pickup>p{color:#647b96;font-size:13px;line-height:1.45;margin:0 0 13px}
.tv-v70-pickup-line>div,.tv-v70-guest-total>span{min-width:0;display:flex;flex-direction:column;gap:4px}
.tv-v70-pickup-line small,.tv-v70-guest-total small,.tv-v70-paid-line small{display:block;color:#7388a0;font-size:12px}
.tv-v70-pickup-empty{padding:15px 20px;border-radius:13px;border:1px solid #dcecf1;background:#f5fafc;margin-bottom:18px;color:#546f82}
.tv-v70-allergy{font-weight:850!important;border:2px solid #e75b51;background:#fff0ee;color:#a82020!important;padding:10px 12px;margin:9px 0!important;border-radius:9px;line-height:1.45}
.tv-v70-cash-paid{padding:8px 16px;color:#255d85;font-size:13px}
.tv-v70-guest-list h3,.tv-v70-payment-form h3,.tv-v70-payments h3{font-size:17px;margin:0 0 12px}
.tv-v70-cash-balances{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 0;color:#245176;font-size:15px}
.tv-v70-payment-form{background:#f5f9ff;box-shadow:none}
.tv-v70-payment-form label{display:block;margin-bottom:12px;font-size:12px;color:#45617d;font-weight:750}
.tv-v70-payment-form input,.tv-v70-payment-form select{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:13px;border:1px solid #ccdced;border-radius:11px;background:#fff;color:#1b395a;font-size:16px;min-height:48px}
.tv-v70-payment-form .btn{min-height:52px;margin:14px 0 9px}
.tv-v70-payment-form>small{display:block;color:#6d8090;line-height:1.5}
.tv-v70-splits{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#607794}
.tv-v70-splits button{border:1px solid #c8dcef;border-radius:9px;background:white;color:#1669b6;padding:8px 15px;font-weight:750;min-height:41px;cursor:pointer}
.tv-v70-paid-complete{background:#e8f7f0;color:#166746;padding:15px;border-radius:12px;font-weight:800;margin:13px 0}
.tv-v70-paid-line{font-size:13px}
.tv-v70-cash-history summary{font-weight:800;cursor:pointer;margin-bottom:9px}
@media(max-width:580px){.tv-v70-alert-line,.tv-v70-pickup-line{align-items:stretch;flex-direction:column}.tv-v70-alert-line button,.tv-v70-pickup-line button{width:100%}.tv-v70-ready-bar{flex-wrap:wrap}.tv-v70-alert,.tv-v70-pickup,.tv-v70-payment-form{padding:14px}}

.tv-v70-picked-label{color:#19744c!important;font-weight:800;padding:5px 0}
.tv-v69-cash-status.done{background:#e0f5ea!important;color:#137445!important}

/* TavoloVivo 7.1 - Modulo gestionale, senza alterare le schede 6.8/6.9 */
.tv-v71-page{max-width:1180px;margin:0 auto;padding:12px 0 36px;color:#153254}
.tv-v71-head{margin:0 0 24px}.tv-v71-head small{font-weight:800;letter-spacing:.13em;color:#377ad4}
.tv-v71-head h1{font-size:clamp(26px,3.5vw,39px);margin:8px 0 8px;line-height:1.1}
.tv-v71-head p{color:#6b809a;line-height:1.5;margin:0}
.tv-v71-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.tv-v71-panel{background:#fff;border:1px solid #dae6f4;border-radius:20px;box-shadow:0 8px 25px #17477209;padding:22px;min-width:0}
.tv-v71-panel h2{font-size:19px;margin:0 0 18px}
.tv-v71-panel label{display:block;font-size:14px;font-weight:700;margin:12px 0;color:#27425f}
.tv-v71-panel label>input:not([type=checkbox]),.tv-v71-panel label>select{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #cbdcef;border-radius:11px;font:inherit;color:#173352;background:#faffff;box-sizing:border-box;min-height:46px}
.tv-v71-panel .tv-v71-check{display:flex;gap:10px;align-items:center}.tv-v71-panel .tv-v71-check input{width:20px;height:20px}
.tv-v71-two{display:grid;grid-template-columns:1fr 2fr;gap:10px}
.tv-v71-panel .btn{margin-top:12px;min-height:48px}
.tv-v71-line{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e8eef5;padding:11px 0;min-width:0;font-size:14px}
.tv-v71-line>div:first-child,.tv-v71-line>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.tv-v71-line small{display:block;font-size:12px;font-weight:400;color:#7891a9;padding-top:3px}
.tv-v71-line button{border:1px solid #ccdcec;border-radius:9px;background:#fff;color:#b33240;min-width:36px;min-height:36px;font-size:20px}
.tv-v71-total{display:flex;justify-content:space-between;gap:16px;margin:15px 0;font-size:19px}
.tv-v71-empty{color:#7086a0;padding:18px 0}
.tv-v71-panel>small{display:block;color:#73899f;margin-top:10px;line-height:1.5}
.tv-v71-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0 20px}
.tv-v71-metrics>div{border:1px solid #dfebf8;border-radius:17px;background:#fff;padding:19px;box-shadow:0 6px 24px #10487a08}
.tv-v71-metrics small{display:block;color:#607d99;margin-bottom:7px}.tv-v71-metrics strong{font-size:clamp(20px,2.1vw,30px)}
.tv-v71-report-date{padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.tv-v71-report-date label{margin:0}.tv-v71-report-date input{max-width:200px}
.tv-v71-report-date small{color:#7790aa}.tv-v71-fiscal{padding:13px;background:#fff8e7;border-radius:12px;color:#6b5020;font-size:13px}
@media(max-width:850px){.tv-v71-order-grid{grid-template-columns:1fr}.tv-v71-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-v71-panel{padding:17px}.tv-v71-report-date{display:block}}

/* TavoloVivo 7.2: TV cucina a distanza, attese, correzioni e impostazioni locale. */
#serviceConnectionWarning:not([hidden]){display:block;position:sticky;top:0;z-index:120;background:#fff0d6;color:#86501d;padding:14px 21px;font-weight:750;line-height:1.45;border-bottom:2px solid #dc9347;box-shadow:0 5px 18px #122d4830}
.staff-ui .tv-v72-late-alert{margin:13px 0;padding:14px 18px;border-radius:14px;background:#fff1d7;border:1px solid #ffc774;color:#814b13;font-weight:700}
.staff-ui .elapsed-pill{transition:background .2s,color .2s}
.staff-ui .elapsed-pill.late{background:#ffe3b4!important;color:#884700!important;border:1px solid #e6a257!important;box-shadow:0 0 0 2px #fff3e8}
.staff-ui .elapsed-pill.very-late{background:#b92c34!important;color:#fff!important;border:1px solid #a92729!important;box-shadow:0 0 0 3px #ff9ca655;animation:tv-v72-pulse 2.8s infinite}
@keyframes tv-v72-pulse{50%{box-shadow:0 0 0 6px #ff9ca622}}
.staff-ui .tv-v72-corrections{border-radius:18px;border:1px solid #d7e4f4;background:white;padding:14px 18px;margin:18px 0;box-shadow:0 7px 22px #203f6d0b}
.staff-ui .tv-v72-corrections>summary{font-weight:800;font-size:16px;color:#214d7c;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px}
.staff-ui .tv-v72-corrections>summary small{color:#70869f;font-weight:500}
.staff-ui .tv-v72-correction-line{padding:11px 0;border-top:1px solid #e8eef6;display:flex;justify-content:space-between;align-items:center;gap:12px}
.staff-ui .tv-v72-correction-line:first-child{margin-top:15px}
.staff-ui .tv-v72-correction-line>div{min-width:0}.staff-ui .tv-v72-correction-line b{font-size:14px;color:#223e60}.staff-ui .tv-v72-correction-line small{display:block;margin-top:3px;color:#7689a1}
.staff-ui .tv-v72-wait{font-size:12px;color:#b47200;background:#fff1d4;border-radius:10px;padding:8px}
.staff-ui .tv-v72-cancel-pending{border:2px solid #f1ba57;background:#fff2d8;color:#755016;border-radius:14px;padding:14px;margin:9px 0}
.staff-ui .tv-v72-cancel-pending p{margin:7px 0 12px;font-size:13px}
.staff-ui .tv-v72-cancel-actions{display:flex;gap:9px;flex-wrap:wrap}.staff-ui .tv-v72-cancel-actions button{min-height:48px}
.staff-ui .tv-v72-tv-toggle{white-space:nowrap;min-height:46px}
.staff-ui .tv-v72-logo-box{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f4f7fc;border-radius:14px;padding:12px;margin:12px 0}
.staff-ui .tv-v72-logo-box label{flex:1;min-width:220px}.staff-ui .tv-v72-logo-box input[type=file]{width:100%;font-size:13px;padding:9px;background:white}
.staff-ui .tv-v72-logo-preview{height:55px;max-width:130px;object-fit:contain}.staff-ui .tv-v72-note{font-size:13px;color:#647d9b;line-height:1.5}
.staff-ui .tv-v72-danger-zone{padding:17px;border:1px solid #f5cabe;background:#fff8f6;border-radius:17px;margin-top:24px}.staff-ui .tv-v72-danger-zone p{font-size:13px;color:#795a54}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-sidebar{display:none!important}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-stage{margin-left:0!important;width:100%!important;max-width:none!important}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .container{width:100%!important;max-width:none!important;padding:20px clamp(15px,2vw,40px)!important}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-kitchen-layout{display:block!important}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-kitchen-layout .tv-kitchen-categories{display:none!important}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-kitchen-layout .ticket-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;width:100%!important;min-width:0!important}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-v69-ticket{min-width:0;margin:0;border-radius:19px}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-v69-kitchen-head{gap:20px}.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-v69-ticket .ticket-head-v58 h2{font-size:clamp(25px,3vw,45px)!important}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-kitchen-layout .kitchen-dish .dish-info strong{font-size:clamp(17px,1.3vw,23px)!important;line-height:1.4}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-v69-ticket .elapsed-pill{font-size:13px;font-weight:800}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-v69-ticket .kitchen-touch-btn{min-height:70px!important;font-size:17px!important}
.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-orders-divider{grid-column:1/-1!important}
@media(min-width:1700px){.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-kitchen-layout .ticket-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:1050px){.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-kitchen-layout .ticket-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.staff-ui.kitchen-tv[data-staff-role="kitchen"] .tv-kitchen-layout .ticket-grid{grid-template-columns:1fr!important}.staff-ui .tv-v72-correction-line{align-items:stretch;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.staff-ui .elapsed-pill.very-late{animation:none}}

/* TavoloVivo 8 - nuove operazioni locali, senza ridisegnare la Sala. */
.tv-v8-remember{display:flex;gap:9px;align-items:center;margin:13px 0;font-size:12px;color:#526885}.tv-v8-remember input{width:17px!important;height:17px!important;min-height:0!important}.tv-v8-add-table{background:#eff6ff;color:#1467d6;border:1px solid #d4e5ff;border-radius:14px;padding:9px 12px;font-weight:750;font-size:13px;margin-left:auto}.tv-v8-add-table:hover{background:#dfefff}@media(max-width:600px){.tv-v8-add-table{flex-basis:100%;}}

/* TavoloVivo 8.1 · accesso unico e selezione reparto, responsive. */
.staff-ui #login[hidden], .staff-ui #roleChoice[hidden],
.staff-ui #loginForm[hidden], .staff-ui #ownerLoginForm[hidden] { display:none!important }
.staff-ui .tv-role-card { max-width:640px; width:min(640px,calc(100% - 24px)); }
.staff-ui .tv-role-choices { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:24px 0; }
.staff-ui .tv-role-choice { appearance:none;background:#f4f8ff;border:2px solid #dce8fa;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:160px;padding:16px 10px;cursor:pointer;color:#163d70;font:inherit;text-align:center;transition:background .14s,border-color .14s; }
.staff-ui .tv-role-choice:hover,.staff-ui .tv-role-choice:focus-visible{background:#e7f2ff;border-color:#4296f8;outline-offset:3px}
.staff-ui .tv-role-choice strong{font-size:16px}
.staff-ui .tv-role-choice small{font-size:12px;color:#617b9f}
.staff-ui .tv-role-emoji{font-size:34px;line-height:1.3}
.staff-ui .tv-access-link{display:block;background:transparent;border:0;text-decoration:underline;color:#326eb2;font:inherit;font-size:13px;font-weight:650;cursor:pointer;margin:15px auto 4px;padding:8px;min-height:34px}
.staff-ui .tv-access-link:hover{color:#0a4d9c}
@media(max-width:540px){.staff-ui .tv-role-choices{grid-template-columns:1fr;gap:9px}.staff-ui .tv-role-choice{min-height:82px;flex-direction:row;gap:10px;justify-content:flex-start;text-align:left}.staff-ui .tv-role-choice small{margin-left:auto}.staff-ui .tv-role-emoji{font-size:25px}}

.staff-ui .tv-chosen-venue {color:#2566aa;font-weight:750;text-align:center;margin:6px 0 16px;font-size:16px}

/* TavoloVivo 8.3 — Cassa completamente ricostruita */
.tv83-cash-page{max-width:1450px;margin:auto}.tv83-layout{display:grid;grid-template-columns:minmax(260px,0.9fr) minmax(0,1.5fr);gap:20px;align-items:start;margin-top:20px}
.tv83-table-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.tv83-table-card{display:flex;flex-direction:column;gap:10px;min-width:0;text-align:left;border:1px solid #d7e3f5;background:white;border-radius:16px;padding:17px;color:#0f2a4d;cursor:pointer;box-shadow:0 3px 12px rgba(12,44,83,.05)}
.tv83-table-card:hover{border-color:#4a91ff;background:#f7fbff}.tv83-table-card.is-selected{border:2px solid #267ef2;background:#eff6ff;padding:16px}
.tv83-table-top,.tv83-table-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center}.tv83-table-top strong{font-size:16px}.tv83-table-top b{white-space:nowrap;color:#125db1}.tv83-table-status{font-size:13px;font-weight:700;color:#3c648b}.tv83-table-bottom{font-size:12px;color:#6680a2}
.tv83-bill{border:1px solid #d9e5f6;border-radius:20px;background:white;padding:23px;min-width:0;box-shadow:0 6px 25px rgba(11,40,82,.05)}.tv83-bill h3{font-size:16px;margin:24px 0 12px;color:#102e54}
.tv83-bill-heading,.tv83-batch-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.tv83-bill-heading{padding-bottom:14px;border-bottom:1px solid #e5edf8}.tv83-bill-heading h2{margin:6px 0}.tv83-bill-heading>strong{font-size:23px;color:#1268bf;white-space:nowrap}
.tv83-batch{border:1px solid #e5edf8;border-radius:12px;padding:15px;margin:10px 0}.tv83-batch-heading h3{margin:0}.tv83-batch-heading{margin-bottom:8px}.tv83-product,.tv83-call,.tv83-totals>div{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #eef3fb}
.tv83-product span,.tv83-call span{display:flex;flex-direction:column;gap:3px}.tv83-product small,.tv83-call small{color:#617b9d;font-size:12px}.tv83-product>strong,.tv83-call>b{white-space:nowrap}.tv83-call>b{font-size:12px;color:#386da9}.tv83-empty{color:#6e83a2}
.tv83-totals{padding:12px 0 16px}.tv83-due{font-size:20px;font-weight:800;color:#115bb0}.tv83-bill .tv-v70-payment-form{margin-top:15px}
@media(max-width:1100px){.tv83-layout{grid-template-columns:1fr}.tv83-table-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.tv83-table-list{grid-template-columns:repeat(2,minmax(0,1fr))}.tv83-bill{padding:15px}.tv83-table-card{padding:12px}.tv83-table-card.is-selected{padding:11px}.tv83-table-top{flex-direction:column;align-items:flex-start}}


/* 8.3.1: la Cassa usa i riquadri della Sala */
.staff-ui .tv83-table-list-sala{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-content:start}
.staff-ui .tv-cash-sala-card .tv-sala-card-foot{font-size:10.5px}
.staff-ui .tv-cash-sala-card .tv-sala-card-status{max-width:100%}
@media(max-width:1100px){.staff-ui .tv83-table-list-sala{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.staff-ui .tv83-table-list-sala{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* TavoloVivo 8.3.2: messaggio esplicito se il QR non arriva, senza rompere la Sala. */
.staff-ui .lobby-panel .tv-qr-area .tv-qr-preview[hidden]{display:none!important}
.staff-ui .lobby-panel .tv-qr-fallback{flex:0 0 132px;max-width:100%;min-height:132px;padding:12px;box-sizing:border-box;border:1px dashed #e8b8a8;background:#fff8f4;color:#925037;border-radius:16px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.staff-ui .lobby-panel .tv-qr-fallback[hidden]{display:none!important}
.staff-ui .lobby-panel .tv-qr-fallback strong{font-size:11px;line-height:1.25}
.staff-ui .lobby-panel .tv-qr-fallback span{font-size:10px;line-height:1.3}
.staff-ui .lobby-panel .tv-qr-fallback button{font-size:11px;padding:7px 10px;min-height:30px}
@media(max-width:700px){.staff-ui .lobby-panel .tv-qr-fallback{flex-basis:122px;min-height:122px}}
@media(max-width:380px){.staff-ui .lobby-panel .tv-qr-fallback{flex-basis:113px;min-height:113px}}
