@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --acc:#6C63FF;--acc-light:#EEF0FF;--acc-dark:#4A43D4;
  --bg:#F4F5FA;--surface:#FFFFFF;--surface2:#F8F8FC;
  --txt:#1A1D2E;--txt2:#6B7280;--txt3:#9CA3AF;
  --green:#00C48C;--green-l:#E6FAF4;--green-d:#007A57;
  --amber:#FFB020;--amber-l:#FFF4DC;--amber-d:#8A6000;
  --red:#FF5C5C;--red-l:#FFEEEE;--red-d:#A83030;
  --blue:#3B82F6;--blue-l:#EBF2FF;--blue-d:#1D4ED8;
  --radius:16px;--radius-xs:8px;--shadow-sm:0 1px 4px rgba(0,0,0,.07);
}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--txt)}
.auth-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#6C63FF 0%,#4A43D4 100%)}
.auth-card{background:var(--surface);border-radius:24px;padding:36px 32px;width:380px;max-width:95vw;box-shadow:0 24px 64px rgba(0,0,0,.18)}
.auth-logo{display:flex;align-items:center;gap:10px;margin-bottom:28px}
.auth-logo-icon{width:44px;height:44px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;border:1px solid #EEE;overflow:hidden}
.auth-logo-icon i{font-size:22px;color:#fff}
.auth-logo-icon img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.auth-logo h1{font-size:20px;font-weight:700}.auth-logo p{font-size:12px;color:var(--txt3)}
.auth-tabs{display:flex;background:var(--bg);border-radius:10px;padding:3px;margin-bottom:24px}
.auth-tab{flex:1;padding:8px;text-align:center;font-size:13px;font-weight:600;color:var(--txt3);cursor:pointer;border-radius:8px;transition:all .15s}
.auth-tab.active{background:var(--surface);color:var(--acc);box-shadow:var(--shadow-sm)}
.fg{margin-bottom:14px}
.fg label{display:block;font-size:11px;font-weight:600;color:var(--txt3);margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}
.fg input{width:100%;padding:11px 13px;border:1.5px solid #E5E7EB;border-radius:var(--radius-xs);font-size:16px;font-family:'Inter',sans-serif;background:var(--surface2);color:var(--txt);outline:none;transition:border .15s}
.fg textarea{width:100%;padding:11px 13px;border:1.5px solid #E5E7EB;border-radius:var(--radius-xs);font-size:13px;font-family:'Inter',sans-serif;background:var(--surface2);color:var(--txt);outline:none;resize:vertical;line-height:1.45}
.fg input:focus{border-color:var(--acc)}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.btn-full{width:100%;padding:12px;border-radius:var(--radius-xs);border:none;font-size:14px;font-weight:700;cursor:pointer;font-family:'Inter',sans-serif;background:var(--acc);color:#fff;box-shadow:0 4px 14px rgba(108,99,255,.35);margin-top:4px;transition:all .15s}
.btn-full:hover{background:var(--acc-dark)}.btn-full:disabled{opacity:.6;cursor:not-allowed}
.auth-err{font-size:12px;color:var(--red-d);background:var(--red-l);padding:8px 12px;border-radius:8px;margin-bottom:12px;display:none}
.auth-err.show{display:block}
.auth-note{font-size:11px;color:var(--txt3);text-align:center;margin-top:14px}
.app{display:none;height:100vh;min-height:640px}
.app.visible{display:flex}
.sidebar{width:220px;min-width:220px;background:var(--surface);border-right:1px solid #EBEBF0;display:flex;flex-direction:column;padding:20px 0 16px}
.logo-wrap{padding:0 20px 20px;border-bottom:1px solid #EBEBF0;margin-bottom:8px}
.logo-icon{width:100%;height:auto;aspect-ratio:1/1;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:12px;border:1px solid #EEE;overflow:hidden}
.logo-icon i{font-size:20px;color:#fff}
.logo-icon img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.logo-wrap h1{font-size:15px;font-weight:700}.logo-wrap p{font-size:11px;color:var(--txt3);margin-top:1px}
.booking-mobile-logo{display:none}
.user-chip{margin:0 12px 10px;padding:9px 12px;background:var(--acc-light);border-radius:10px;display:flex;align-items:center;gap:8px;max-width:calc(100% - 24px);overflow:hidden}
.uc-av{width:28px;height:28px;border-radius:50%;background:var(--acc);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;flex-shrink:0}
.uc-meta{min-width:0;flex:1;overflow:hidden}
.uc-name{font-size:12px;font-weight:600;color:var(--acc);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.uc-role{font-size:10px;color:var(--txt3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.nav-section{padding:8px 12px 4px;font-size:10px;font-weight:600;color:var(--txt3);text-transform:uppercase;letter-spacing:.07em}
.nav{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:13px;font-weight:500;cursor:pointer;color:var(--txt2);border-radius:var(--radius-xs);margin:1px 8px;transition:all .15s}
.nav i{font-size:18px;width:20px;text-align:center}
.nav:hover{background:var(--acc-light);color:var(--acc)}
.nav.active{background:var(--acc);color:#fff;box-shadow:0 4px 14px rgba(108,99,255,.35)}
.nav.active i{color:#fff}
.conn-dot{width:7px;height:7px;border-radius:50%;background:#ccc;margin-left:auto;flex-shrink:0}
.conn-dot.ok{background:var(--green)}.conn-dot.err{background:var(--red)}
.main{flex:1;overflow-y:auto;background:var(--bg)}
.page{display:none;flex-direction:column;gap:18px;padding:24px}
.page.active{display:flex}
.page-header{display:flex;align-items:center;justify-content:space-between}
.page-title{font-size:20px;font-weight:700}.page-sub{font-size:12px;color:var(--txt3);margin-top:1px}
.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:var(--radius-xs);border:none;font-size:13px;font-weight:600;cursor:pointer;font-family:'Inter',sans-serif;transition:all .15s}
.btn-primary{background:var(--acc);color:#fff;box-shadow:0 4px 14px rgba(108,99,255,.3)}.btn-primary:hover{background:var(--acc-dark)}
.btn-ghost{background:var(--surface);color:var(--txt2);border:1.5px solid #E5E7EB}.btn-ghost:hover{background:var(--acc-light);color:var(--acc);border-color:var(--acc)}
.btn-sm{padding:6px 12px;font-size:12px}.btn-icon{width:34px;height:34px;padding:0;justify-content:center;border-radius:var(--radius-xs)}
.btn-danger-ghost{background:transparent;color:var(--red);border:1.5px solid var(--red-l)}.btn-danger-ghost:hover{background:var(--red-l)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.stat-card{background:var(--surface);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-sm)}
.sc-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.sc-icon i{font-size:22px}.sc-val{font-size:26px;font-weight:700}.sc-lbl{font-size:12px;color:var(--txt3);margin-top:2px}
.card{background:var(--surface);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-sm)}
.profile-card{max-width:680px}
.settings-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:14px;align-items:start}
.settings-wide{grid-column:1/-1}
.settings-actions{max-width:100%;margin-top:14px}
.settings-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:-4px}
.settings-tags span{font-size:11px;font-weight:700;color:var(--acc);background:var(--acc-light);border-radius:20px;padding:4px 9px}
.logo-wrap{cursor:pointer;transition:background .15s,border-radius .15s}
.logo-wrap:hover{background:var(--acc-light)}
.logo-wrap p{display:flex;align-items:center;gap:4px}
.info-hero{display:flex;align-items:center;gap:14px;background:var(--surface);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-sm)}
.info-logo{width:58px;height:58px;border-radius:16px;background:var(--acc);display:flex;align-items:center;justify-content:center;flex:0 0 58px}
.info-logo i{font-size:28px;color:#fff}.info-logo img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.info-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.info-card{height:100%}
.info-line{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #F2F2F7}
.info-line:last-of-type{border-bottom:none}.info-line i{width:32px;height:32px;border-radius:10px;background:var(--acc-light);color:var(--acc);display:flex;align-items:center;justify-content:center;font-size:18px;flex:0 0 32px}
.info-line span{display:block;font-size:10px;font-weight:800;color:var(--txt3);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.info-line strong{font-size:13px;line-height:1.35}.info-line a{color:var(--acc);text-decoration:none}
.info-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.info-hour{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #F2F2F7;font-size:13px}
.info-hour:last-child{border-bottom:none}.info-hour span{font-weight:800;color:var(--txt)}.info-hour strong{font-weight:700;color:var(--txt2)}.info-hour.closed strong{color:var(--red)}
.info-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.info-service{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface2);border:1.5px solid #F0F0F5;border-radius:12px;padding:12px}
.info-service strong{display:block;font-size:13px}.info-service span{display:block;font-size:11px;color:var(--txt3);margin-top:2px}.info-service b{font-size:15px;color:var(--acc)}
.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.card-title{font-size:14px;font-weight:700}
.table-scroll{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.table-scroll table{min-width:720px}
table{width:100%;border-collapse:collapse;font-size:13px}
th{text-align:left;padding:8px 10px;color:var(--txt3);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1.5px solid #F0F0F5}
td{padding:11px 10px;border-bottom:1px solid #F7F7FA}
tr:last-child td{border-bottom:none}
tr:hover td{background:#FAFAFA}
.click-row{cursor:pointer}
.click-row:hover td{background:var(--acc-light)}
.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600}
.badge i{font-size:12px}
.b-green{background:var(--green-l);color:var(--green-d)}.b-amber{background:var(--amber-l);color:var(--amber-d)}
.b-blue{background:var(--blue-l);color:var(--blue-d)}.b-gray{background:#F1F2F6;color:#6B7280}.b-red{background:var(--red-l);color:var(--red-d)}
.date-status{display:flex;align-items:center;gap:8px;font-weight:600;white-space:nowrap}.status-dot{width:9px;height:9px;border-radius:50%;flex:0 0 9px;box-shadow:0 0 0 3px rgba(0,0,0,.04)}
.dot-attesa{background:var(--amber)}.dot-confermato{background:var(--green)}.dot-completato{background:var(--green)}.dot-annullato{background:#9CA3AF}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--acc-light);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--acc);flex-shrink:0}
.client-name-with-user{display:inline-flex;flex-direction:column;gap:1px;min-width:0;line-height:1.15}
.client-name-with-user span{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.client-name-with-user small{font-size:11px;font-weight:700;color:var(--txt3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb{display:flex;align-items:center;gap:8px;background:var(--surface);border:1.5px solid #EBEBF0;border-radius:var(--radius-xs);padding:0 12px}
.sb:focus-within{border-color:var(--acc)}.sb i{color:var(--txt3);font-size:16px}
.sb input{border:none;background:transparent;padding:9px 3px;font-size:13px;font-family:'Inter',sans-serif;color:var(--txt);width:100%;outline:none}
.svc-row{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;background:var(--surface);border:1.5px solid #F0F0F5;border-radius:10px;transition:border .15s}
.svc-row:hover{border-color:var(--acc);background:var(--acc-light)}
.svc-row h4{font-size:14px;font-weight:600}.svc-row p{font-size:11px;color:var(--txt3);margin-top:2px}
.svc-price{font-size:18px;font-weight:700;color:var(--acc)}
.notif-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #F7F7FA;cursor:pointer;border-radius:10px;transition:background .15s,padding .15s}
.notif-item:hover{background:var(--acc-light);padding-left:10px;padding-right:10px}
.notif-item:last-child{border-bottom:none}
.notif-toolbar{display:flex;gap:8px;flex-wrap:wrap}
.notif-check{width:18px;height:18px;accent-color:var(--acc);margin-top:1px;flex:0 0 18px}
.ndot{width:9px;height:9px;border-radius:50%;background:var(--acc);margin-top:4px;flex-shrink:0;cursor:pointer}
.ndot.read{background:#E0E0E8}
.ntext{font-size:13px;font-weight:500}.ntime{font-size:11px;color:var(--txt3);margin-top:2px}
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(20,20,40,.5);z-index:1000;align-items:center;justify-content:center}
.modal-overlay.open{display:flex}
.modal{background:var(--surface);border-radius:20px;padding:24px;width:380px;max-width:95vw;box-shadow:0 24px 64px rgba(0,0,0,.22)}
.modal-wide{width:620px}
.modal h3{font-size:16px;font-weight:700;margin-bottom:16px}
.modal .fg input,.modal .fg select,.modal .fg textarea{width:100%;padding:10px 12px;border:1.5px solid #E5E7EB;border-radius:var(--radius-xs);font-size:13px;font-family:'Inter',sans-serif;background:var(--surface2);color:var(--txt);outline:none}
.modal .fg select:focus,.modal .fg input:focus{border-color:var(--acc)}
.modal .frow{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ma{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.client-sheet-modal{width:720px}
.client-sheet-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.client-sheet-avatar{width:48px;height:48px;border-radius:14px;background:var(--acc);color:#fff;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:800;flex:0 0 48px}
.client-sheet-main h4{font-size:17px;font-weight:800}.client-sheet-main p{font-size:12px;color:var(--txt3);margin-top:2px}
.client-sheet-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.client-sheet-stat{background:var(--surface2);border:1.5px solid #F0F0F5;border-radius:12px;padding:10px}
.client-sheet-stat span{display:block;font-size:10px;text-transform:uppercase;font-weight:800;color:var(--txt3);letter-spacing:.04em;margin-bottom:3px}
.client-sheet-stat strong{font-size:17px;font-weight:800;color:var(--txt)}
.client-sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.client-sheet-contact{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:2px 8px;background:var(--surface2);border:1.5px solid #F0F0F5;border-radius:12px;padding:9px 10px;min-width:0}
.client-sheet-contact i{font-size:15px;color:var(--acc);grid-row:1/3;margin-top:1px}.client-sheet-contact span{font-size:10px;font-weight:800;color:var(--txt3);text-transform:uppercase;letter-spacing:.04em}.client-sheet-contact strong{font-size:12px;font-weight:700;color:var(--txt);min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.client-notes-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.client-sheet-section{margin-top:14px}.client-sheet-section h4{font-size:12px;font-weight:800;color:var(--txt2);margin-bottom:8px;text-transform:uppercase;letter-spacing:.04em}
.client-sheet-services{display:flex;gap:8px;flex-wrap:wrap}
.client-service-chip{display:inline-flex;align-items:center;gap:8px;background:var(--acc-light);color:var(--acc);font-size:12px;font-weight:700;padding:8px 10px;border-radius:999px}.client-service-chip b{background:var(--surface);border-radius:999px;padding:2px 6px;font-size:11px}
.empty-inline{font-size:12px;color:var(--txt3);background:var(--surface2);border:1.5px dashed #E5E7EB;border-radius:12px;padding:9px 11px}
.client-history{display:grid;gap:7px}
.client-history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface2);border:1.5px solid #F0F0F5;border-radius:12px;padding:10px 11px}
.client-history-main{display:grid;gap:2px;min-width:0}.client-history-main strong{font-size:13px;font-weight:800}.client-history-main span{font-size:12px;color:var(--txt3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot-pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--acc);margin-bottom:14px;padding:7px 12px;background:var(--acc-light);border-radius:var(--radius-xs)}
.inline-check{display:flex;align-items:center;gap:8px;margin:-2px 0 12px;font-size:13px;font-weight:600;color:var(--txt2);cursor:pointer}
.inline-check input{width:17px;height:17px;accent-color:var(--acc)}
.privacy-check{align-items:flex-start;line-height:1.35;margin:8px 0 4px}
.privacy-note{font-size:11px;text-align:left;margin:0 0 12px}
.booking-request-note{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;padding:10px 12px;border:1px solid #F2B94B;background:#FFF8E8;border-radius:10px;color:#7A4A00}
.booking-request-note i{font-size:18px;margin-top:1px;flex:0 0 auto}
.booking-request-note strong{display:block;font-size:13px;line-height:1.2;margin-bottom:2px}
.booking-request-note span{display:block;font-size:12px;line-height:1.35}
.privacy-text{max-height:58vh;overflow:auto;white-space:pre-line;font-size:13px;line-height:1.55;color:var(--txt2);background:var(--surface2);border:1.5px solid #F0F0F5;border-radius:12px;padding:14px}
.privacy-preview{font-size:13px;line-height:1.5;color:var(--txt2);white-space:pre-line;max-height:260px;overflow:hidden;position:relative}
.privacy-preview:after{content:'';position:absolute;left:0;right:0;bottom:0;height:42px;background:linear-gradient(180deg,rgba(255,255,255,0),var(--surface))}
.privacy-preview.expanded{max-height:none;overflow:visible}
.privacy-preview.expanded:after{display:none}
.stato-select{padding:7px 10px;border:1.5px solid #E5E7EB;border-radius:var(--radius-xs);font-size:13px;font-family:'Inter',sans-serif;font-weight:600;outline:none;cursor:pointer;transition:border .15s}
.stato-select:focus{border-color:var(--acc)}
.stato-attesa{background:var(--amber-l);color:var(--amber-d);border-color:#EFD06A}
.stato-confermato{background:var(--green-l);color:var(--green-d);border-color:#7FD9B8}
.stato-completato{background:var(--green-l);color:var(--green-d);border-color:#7FD9B8}
.stato-annullato{background:#F1F2F6;color:#6B7280;border-color:#D0D3DF}
.cal-tb{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;flex-wrap:wrap;gap:8px}
.cal-tb-title{font-size:15px;font-weight:700;min-width:200px;text-align:center}
.cal-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.cal-actions>.ff{min-width:190px}
.cal-actions>.btn{align-self:stretch;justify-content:center}
.cal-week-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.cal-week-actions .btn{white-space:nowrap}
.client-staff-filter{display:flex;align-items:center;gap:8px;margin:0 0 12px;max-width:320px}
.client-staff-filter label{font-size:12px;font-weight:700;color:var(--txt3)}
.client-staff-filter select{height:36px;border:1.5px solid #EBEBF0;border-radius:10px;background:var(--surface2);padding:0 10px;font-size:13px;font-weight:600;color:var(--txt);outline:none;flex:1;min-width:0}
.wgrid{border-radius:var(--radius);overflow:hidden;background:var(--surface);border:1.5px solid #EBEBF0;box-shadow:var(--shadow-sm)}
.wgrid-inner{display:grid;grid-template-columns:44px repeat(7,minmax(0,1fr))}
.ch{padding:10px 4px;text-align:center;border-bottom:1.5px solid #F0F0F5;border-right:1px solid #F0F0F5;background:var(--surface2)}
.wgrid-inner>.ch:first-child{position:sticky;left:0;z-index:12;box-shadow:4px 0 8px rgba(20,20,40,.06)}
.ch:last-child{border-right:none}
.ch .cdow{font-size:9px;font-weight:700;color:var(--txt3);text-transform:uppercase;letter-spacing:.06em}
.ch .cdom{font-size:16px;font-weight:700;line-height:1.2;margin-top:1px}
.ch.ctoday{background:var(--acc)}.ch.ctoday .cdom,.ch.ctoday .cdow{color:#fff}
.tcol{border-right:1px solid #F0F0F5;background:var(--surface2);position:sticky;left:0;z-index:10;box-shadow:4px 0 8px rgba(20,20,40,.06)}
.tlbl{height:18px;display:flex;align-items:center;justify-content:flex-end;padding-right:6px;font-size:9px;font-weight:600;color:var(--txt3);border-bottom:1px solid #F5F5FA}
.tlbl:last-child{border-bottom:none}.tlbl.half{color:transparent;border-bottom:1px dashed #F0F0F5}
.tlbl.hour-start{color:var(--txt2);border-top:1.5px solid #D8DAE6}
.dcol{position:relative;border-right:1px solid #F2F2F8}.dcol:last-child{border-right:none}
.slot{height:18px;border-bottom:1px dashed #F5F5FA;cursor:pointer;transition:background .1s;position:relative}
.slot.hour-start{border-top:1.5px solid #D8DAE6}
.slot[data-time]:hover::after{content:attr(data-time);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--txt);color:#fff;font-size:10px;font-weight:700;padding:3px 7px;border-radius:6px;white-space:nowrap;z-index:8;box-shadow:0 3px 10px rgba(0,0,0,.18);pointer-events:none}
.slot:hover{background:#F0EFFF}.slot:last-child{border-bottom:none}
/* slot colorati per cliente */
.slot-free{background:#F8F8FF;cursor:pointer}.slot-free:hover{background:#EEEDFE}
.slot-free.slot-filtered{background:#EAF8EF;border-bottom-color:#D4EBDD}.slot-free.slot-filtered:hover{background:#DDF3E5}
.slot-has-filter{overflow:hidden}
.slot-filter-seg{position:absolute;left:0;right:0;background:#DDF3E5;border-top:1px solid rgba(22,163,74,.12);border-bottom:1px solid rgba(22,163,74,.12);pointer-events:none}
.slot-booked-seg{position:absolute;left:0;right:0;background:#FFEEEE;border-top:1px solid rgba(220,38,38,.16);border-bottom:1px solid rgba(220,38,38,.16);pointer-events:none;z-index:2;display:flex;align-items:center;justify-content:center}
.slot-booked-time{position:absolute;left:3px;right:3px;top:50%;transform:translateY(-50%);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:8px;font-weight:800;line-height:1;color:#9B1C1C;pointer-events:none;z-index:3}
.slot-staff{position:absolute;left:3px;right:3px;top:50%;transform:translateY(-50%);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:8px;font-weight:700;line-height:1;color:#52B788;pointer-events:none;z-index:3}
.slot-request-count{position:absolute;top:2px;right:2px;min-width:14px;height:14px;padding:0 4px;border-radius:999px;background:#7A4A00;color:#fff;font-size:9px;font-weight:800;line-height:14px;text-align:center;box-shadow:0 1px 3px rgba(122,74,0,.24);pointer-events:none;z-index:4}
.timepick-btn{position:relative}
.timepick-count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#7A4A00;color:#fff;font-size:10px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 2px 6px rgba(122,74,0,.24);pointer-events:none}
.slot-pending{background:#FFF4DC !important;cursor:not-allowed !important}
.slot-request-pending{background:#FFF4DC !important;border-color:#F2B94B !important;color:#7A4A00 !important}
.slot-confirmed{background:#FFEEEE !important;cursor:not-allowed !important}
.slot-confirmed-available{background:#FFEEEE !important;border-color:#F4A3A3 !important;color:#8B1E1E !important}
.slot-own-confirmed{background:#E6FAF4 !important;cursor:not-allowed !important}
.slot-past{background:#F5F5F8 !important;cursor:not-allowed !important}
.ev{position:absolute;border-radius:8px;padding:3px 5px;overflow:hidden;cursor:pointer;z-index:3;border:1px solid rgba(255,255,255,.55)}
.ev .et{font-size:9px;font-weight:600;opacity:.9}.ev .en{font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev .es{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}
.ev-attesa{background:#FFB020;color:#fff}.ev-confermato{background:#00C48C;color:#fff}
.ev-completato{background:#00C48C;color:#fff}.ev-annullato{background:#C8C8D8;color:#fff;opacity:.65}
.cal-tooltip{position:fixed;display:none;z-index:3000;pointer-events:none;background:var(--txt);color:#fff;border-radius:8px;padding:8px 10px;box-shadow:0 8px 24px rgba(0,0,0,.22);font-size:12px;line-height:1.35;max-width:230px}
.cal-tooltip.show{display:block}
.cal-tooltip strong{display:block;font-size:13px;margin-bottom:2px}
.legend{display:flex;gap:14px;flex-wrap:wrap}
.li{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:var(--txt2)}
.ld{width:10px;height:10px;border-radius:3px}
select.ff{padding:8px 12px;border:1.5px solid #E5E7EB;border-radius:var(--radius-xs);font-size:12px;font-family:'Inter',sans-serif;background:var(--surface);color:var(--txt);font-weight:500;outline:none;cursor:pointer}
.chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:600;background:var(--acc-light);color:var(--acc)}
.check-list{display:flex;flex-direction:column;gap:4px;max-height:220px;overflow:auto;padding:8px;background:var(--surface2);border:1.5px solid #E5E7EB;border-radius:var(--radius-xs)}
.check-actions{display:flex;gap:6px;margin-bottom:4px}
.check-actions button{flex:1;padding:6px 8px;border:1.5px solid #E5E7EB;border-radius:7px;background:var(--surface);color:var(--txt2);font-family:'Inter',sans-serif;font-size:11px;font-weight:700;cursor:pointer}
.check-actions button:hover{background:var(--acc-light);border-color:var(--acc);color:var(--acc)}
.check-row{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:30px;padding:4px 6px;border-radius:7px;background:transparent;font-size:13px;font-weight:600;color:var(--txt2);cursor:pointer;user-select:none;text-align:left;direction:ltr}
.check-row:hover{background:rgba(108,99,255,.08);color:var(--txt)}
.check-row input{width:18px;height:18px;accent-color:var(--acc);margin:0;align-self:center;justify-self:start}
.check-row label{display:block;margin:0;text-transform:none;letter-spacing:0;color:inherit;font-size:13px;font-weight:600;line-height:18px;min-width:0;cursor:pointer;text-align:left;white-space:normal}
.day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.day-card{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1.5px solid #E5E7EB;border-radius:10px;background:var(--surface2);font-size:12px;font-weight:700;color:var(--txt2)}
.day-card.work-on{background:var(--green-l);border-color:#7FD9B8;color:var(--green-d)}
.day-card.work-off{background:var(--red-l);border-color:#F5A0A0;color:var(--red-d)}
.day-card input{accent-color:var(--acc)}
.schedule-list{display:flex;flex-direction:column;gap:8px}
.schedule-row{display:grid;grid-template-columns:88px 128px 104px 104px;gap:8px;align-items:center;padding:9px 10px;border:1.5px solid #E5E7EB;border-radius:10px;background:var(--surface2)}
.schedule-row.closed{background:var(--red-l);border-color:#F5A0A0}
.schedule-day{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--txt2)}
.schedule-row select{width:100%;min-width:0;padding:8px 9px;border:1.5px solid #E5E7EB;border-radius:8px;font-family:'Inter',sans-serif;font-size:13px;background:#fff;color:var(--txt)}
.schedule-row .time-start,.schedule-row .time-end{font-variant-numeric:tabular-nums;text-align:center}
.dcol.closed-day{background:repeating-linear-gradient(135deg,#F5F5F8 0,#F5F5F8 8px,#EFEFF4 8px,#EFEFF4 16px)}
.ch.closed-day{background:var(--red-l)}
.ch.closed-day .cdom,.ch.closed-day .cdow{color:var(--red-d)}
.empty{text-align:center;padding:24px;color:var(--txt3);font-size:13px;font-weight:500}
.loading-row{text-align:center;padding:20px;color:var(--txt3);font-size:13px}
.toast{display:none;position:fixed;bottom:24px;right:24px;background:var(--txt);color:#fff;padding:10px 18px;border-radius:var(--radius-xs);font-size:13px;font-weight:500;z-index:2000;box-shadow:0 4px 20px rgba(0,0,0,.25)}
.toast.show{display:block}
.cli-book-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.svc-pick{border:1.5px solid #E5E7EB;border-radius:12px;padding:14px;cursor:pointer;transition:all .15s;background:var(--surface)}
.svc-pick:hover,.svc-pick.sel{border-color:var(--acc);background:var(--acc-light)}
.svc-pick h4{font-size:14px;font-weight:600}.svc-pick p{font-size:12px;color:var(--txt3);margin-top:3px}
.svc-pick .sp{font-size:16px;font-weight:700;color:var(--acc);margin-top:6px}
.cli-empty-state{text-align:center;padding:40px 20px}
.cli-empty-state i{font-size:48px;color:var(--txt3);display:block;margin-bottom:12px}
.cli-empty-state h3{font-size:16px;font-weight:600;color:var(--txt2);margin-bottom:6px}
.cli-empty-state p{font-size:13px;color:var(--txt3)}
.split-label{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--txt3);cursor:pointer;margin-left:4px;white-space:nowrap;}
.split-label input{cursor:pointer;}
.split-fields select{margin-left:4px;}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
