:root{--navy:#132838;--navy2:#0c2030;--blue:#56a6e8;--blue2:#2f8ed7;--line:#d7e1ea;--bg:#eef3f7;--panel:#fff;--text:#102b3f;--muted:#617586;--green:#1d9a57;--red:#dc3545;--amber:#f2b84b;--purple:#8b5cf6;--radius:10px;font-family:"Segoe UI",Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-weight:650}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.app{min-height:100vh}.topbar{height:72px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:sticky;top:0;z-index:100;box-shadow:0 2px 10px #0003}.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:46px;height:46px;background:#fff;border-radius:10px;display:grid;place-items:center;color:#0a416c;font-weight:1000;overflow:hidden}.brand-logo img{max-width:100%;max-height:100%;object-fit:contain}.brand-title b{font-size:26px}.brand-title i{font-style:italic;font-weight:300;color:var(--blue)}.brand-title small{display:block;color:#c7d7e3;margin-top:2px}.top-actions{display:flex;align-items:center;gap:10px}.top-actions a,.top-actions button{color:#fff;text-decoration:none;border:0;background:transparent;padding:9px 12px;border-radius:8px;font-weight:900}.top-actions a:hover,.top-actions button:hover{background:#ffffff18}.layout{display:grid;grid-template-columns:92px minmax(0,1fr);min-height:calc(100vh - 72px)}.side{background:var(--navy2);color:#fff;position:sticky;top:72px;height:calc(100vh - 72px);display:flex;flex-direction:column}.side a{height:82px;color:#fff;text-decoration:none;display:grid;place-items:center;text-align:center;border-bottom:1px solid #ffffff10;font-size:12px;font-weight:1000}.side a span{font-size:25px;line-height:1}.side a.active,.side a:hover{background:var(--blue)}.side .bottom{margin-top:auto}.content{min-width:0;padding:16px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.page-head h1{margin:0;font-size:29px}.page-head p{margin:4px 0 0;color:var(--muted)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 3px 14px #102b3f0b}.panel-pad{padding:16px}.btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px 14px;font-weight:900}.btn:hover{background:#f4f8fb}.btn.primary{background:var(--blue2);border-color:var(--blue2);color:#fff}.btn.green{background:var(--green);border-color:var(--green);color:#fff}.btn.red{background:var(--red);border-color:var(--red);color:#fff}.btn.dark{background:var(--navy);border-color:var(--navy);color:#fff}.btn.purple{background:var(--purple);border-color:var(--purple);color:#fff}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar input,.toolbar select,.field input,.field select,.field textarea{border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px 12px}.toolbar input{flex:1;min-width:240px}.field{display:grid;gap:5px;font-weight:900}.field small{color:var(--muted)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px}.data-table{width:100%;border-collapse:collapse;min-width:820px}.data-table th,.data-table td{padding:11px;border-bottom:1px solid #e7edf2;text-align:left;vertical-align:middle}.data-table th{font-size:12px;text-transform:uppercase;color:var(--muted);background:#f6f9fb}.data-table tr:hover td{background:#f9fcff}.status{display:inline-flex;border-radius:99px;padding:5px 10px;font-size:12px;font-weight:1000;text-transform:uppercase}.status.free{background:#d9f7e5;color:#116b38}.status.occupied{background:#ffe0e0;color:#9c2222}.status.waiting{background:#fff1c8;color:#815900}.status.open{background:#dceeff;color:#145b93}.status.reserved{background:#eee4ff;color:#6a36a8}.status.closed,.status.paid{background:#e8edf2;color:#526576}.empty{padding:50px;text-align:center;color:var(--muted)}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--navy);color:#fff;padding:12px 18px;border-radius:99px;z-index:1000;opacity:0;pointer-events:none;transition:.2s;font-weight:900;max-width:90vw}.toast.show{opacity:1}.modal-back{position:fixed;inset:0;background:#06131db0;display:grid;place-items:center;z-index:1200;padding:18px}.modal{background:#fff;border-radius:14px;max-width:720px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 20px 70px #0005}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0}.modal-body{padding:16px}.modal-foot{padding:14px 16px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.hidden{display:none!important}.pill{border-radius:99px;background:#eef4f8;padding:5px 9px;font-size:12px}.notice{padding:12px;border-radius:9px;background:#eaf6ff;color:#175c8b;border:1px solid #c5e3f8}.danger{background:#fff0f0;color:#952525;border-color:#f2c1c1}.success{background:#e8f8ef;color:#176b3c;border-color:#bce6ce}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}.stat-card{padding:16px}.stat-card small{color:var(--muted)}.stat-card strong{display:block;font-size:30px;margin-top:7px}@media(max-width:980px){.layout{grid-template-columns:1fr}.side{position:fixed;left:0;right:0;bottom:0;top:auto;height:62px;z-index:200;display:flex;flex-direction:row}.side a{height:62px;flex:1;font-size:10px}.side a span{font-size:19px}.side .bottom{margin:0}.content{padding-bottom:78px}.top-actions .hide-mobile{display:none}.grid-2,.grid-3,.form-grid{grid-template-columns:1fr}}@media(max-width:620px){.topbar{padding:0 10px;height:64px}.brand-title b{font-size:20px}.brand-title small{display:none}.brand-logo{width:40px;height:40px}.layout{min-height:calc(100vh - 64px)}.content{padding:10px}.page-head{align-items:flex-start}.page-head h1{font-size:24px}.top-actions{gap:1px}.top-actions a,.top-actions button{padding:8px 6px;font-size:12px}}


/* FULLPOS Touch 2.0.7 - shell compatta e icone piccole */
.nav-icon{width:18px;height:18px;display:grid;place-items:center;flex:0 0 auto}
.nav-icon svg{width:15px;height:15px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.side a em{font-style:normal;font-size:9px;line-height:1.05;letter-spacing:.01em}
@media (min-width:721px){
  .topbar{height:58px;padding:0 12px}
  .brand{gap:8px;min-width:0}
  .brand-logo{width:38px;height:38px;border-radius:8px}
  .brand-title{min-width:0}
  .brand-title b{font-size:21px;white-space:nowrap}
  .brand-title small{font-size:11px;margin-top:0;white-space:nowrap}
  .top-actions{gap:2px}
  .top-actions a,.top-actions button{padding:7px 8px;font-size:13px;border-radius:7px}
  .layout{grid-template-columns:62px minmax(0,1fr);min-height:calc(100vh - 58px)}
  .side{position:sticky;left:auto;right:auto;bottom:auto;top:58px;height:calc(100vh - 58px);display:flex;flex-direction:column;overflow:hidden}
  .side a{height:60px;min-height:48px;flex:0 1 60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px 2px;font-size:9px}
  .side a span{font-size:15px;line-height:1}
  .side .bottom{margin-top:auto}
  .content{padding:10px;padding-bottom:10px}
  .page-head{margin-bottom:8px;min-height:38px}
  .page-head h1{font-size:24px;line-height:1.05}
  .page-head p{font-size:12px;margin-top:2px}
}
@media (min-width:721px) and (max-width:1180px){
  .top-actions .hide-mobile{display:none}
  .top-actions a,.top-actions button{font-size:12px;padding:6px}
}
@media (min-width:721px) and (max-height:700px){
  .topbar{height:52px}
  .brand-logo{width:34px;height:34px}
  .brand-title b{font-size:19px}
  .brand-title small{font-size:10px}
  .layout{min-height:calc(100vh - 52px)}
  .side{top:52px;height:calc(100vh - 52px)}
  .side a{height:53px;min-height:44px;gap:2px}
  .nav-icon{width:16px;height:16px}
  .nav-icon svg{width:14px;height:14px}
  .side a em{font-size:8px}
  .content{padding:7px}
  .page-head{margin-bottom:5px;min-height:34px}
  .page-head h1{font-size:21px}
  .page-head p{font-size:10px}
}
@media (max-width:720px){
  .side{overflow-x:auto;overflow-y:hidden}
  .side a{min-width:60px;height:58px;gap:2px;display:flex;flex-direction:column;align-items:center;justify-content:center}
  .side a em{font-size:8px}
  .nav-icon svg{width:14px;height:14px}
}


/* FULLPOS Touch 2.0.8 - azioni vista compatte */
#pageActions{min-width:0;display:flex;align-items:center;justify-content:flex-end}
@media (min-width:721px){.page-head{min-width:0}.page-head>div:first-child{min-width:0}.page-head h1,.page-head p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
