.technician-calendar-section,.technician-work-section{--tc-border:#dbe6ef;--tc-soft:#f5f8fb;--tc-text:#18344d}
.tc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.tc-head h1{margin:3px 0 4px;color:var(--tc-text)}.tc-head p{margin:0;color:#6b8194}.tc-kicker{font-size:11px;font-weight:800;letter-spacing:.13em;color:#1b73b8}
.tc-toolbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;background:#fff;border:1px solid var(--tc-border);border-radius:15px;padding:12px 14px;margin-bottom:14px}.tc-view-switch,.tc-nav{display:flex;align-items:center;gap:6px}.tc-view-switch button,.tc-nav button{border:1px solid var(--tc-border);background:#fff;border-radius:9px;padding:8px 11px;cursor:pointer}.tc-view-switch button.active{background:#173e5f;color:#fff;border-color:#173e5f}.tc-nav{justify-content:center}.tc-nav strong{text-transform:capitalize;min-width:180px;text-align:center;color:var(--tc-text)}.tc-center-filter{display:flex;align-items:center;gap:7px}.tc-center-filter label{font-size:12px;font-weight:700;color:#60778b}.tc-center-filter select{min-height:38px;border:1px solid var(--tc-border);border-radius:9px;background:#fff;padding:0 10px}
.tc-weekdays{display:grid;grid-template-columns:repeat(7,1fr);padding:0 5px}.tc-weekdays span{text-align:center;font-size:11px;font-weight:800;color:#72879a;padding:8px}.tc-month-grid{display:grid;grid-template-columns:repeat(7,1fr);background:#fff;border:1px solid var(--tc-border);border-radius:15px;overflow:hidden}.tc-day-cell{min-height:120px;padding:8px;border-right:1px solid var(--tc-border);border-bottom:1px solid var(--tc-border)}.tc-day-cell:nth-child(7n){border-right:0}.tc-day-cell.muted{background:#f8fafc;color:#9aabba}.tc-day-cell.today .tc-day-number{background:#173e5f;color:#fff}.tc-day-number{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800}.tc-day-events{display:flex;flex-direction:column;gap:4px;margin-top:5px}
.tc-event{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;border:0;border-left:4px solid var(--event-color,#287bb9);background:#edf5fb;border-radius:7px;padding:5px 6px;text-align:left;cursor:pointer;color:#173e5f;overflow:hidden}.tc-event span{font-size:10px;font-weight:800}.tc-event b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.tc-event small{font-size:10px;color:#647c90}.tc-event.done{opacity:.65;border-left-color:#678}
.tc-week-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:8px;overflow:auto}.tc-week-column{min-height:430px;background:#fff;border:1px solid var(--tc-border);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:7px}.tc-week-head{display:flex;justify-content:space-between;padding:4px 3px 9px;border-bottom:1px solid var(--tc-border);text-transform:capitalize}.tc-empty-mini,.tc-empty{color:#7890a3;text-align:center;padding:24px 12px}.tc-day-list{display:flex;flex-direction:column;gap:9px}.tc-day-item{display:grid;grid-template-columns:240px 1fr;gap:14px;align-items:center;background:#fff;border:1px solid var(--tc-border);border-radius:13px;padding:12px}.tc-day-item>div{display:flex;flex-direction:column;gap:4px;color:#657c90}
.tc-modal-overlay{position:fixed;inset:0;background:rgba(11,27,41,.54);z-index:10100;display:grid;place-items:center;padding:20px}.tc-modal{width:min(720px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.28);padding:20px}.tc-modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.tc-modal-head h2{margin:3px 0;color:var(--tc-text)}.tc-modal-head button{border:0;background:#eef3f7;width:34px;height:34px;border-radius:50%;font-size:20px;cursor:pointer}.tc-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tc-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:#526b80}.tc-form label.full{grid-column:1/-1}.tc-form input,.tc-form select,.tc-form textarea{border:1px solid var(--tc-border);border-radius:10px;padding:10px 11px;font:inherit;background:#fff;color:#203a50}.tc-form textarea{min-height:90px;resize:vertical}.tc-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}
.technician-assignment-field{border:1px solid #dce8f1;background:#f7fafc;border-radius:12px;padding:12px}.technician-assignment-field small{display:block;margin-top:5px;color:#71879a}.technician-assignment-field select{width:100%}
.my-work-tabs{display:flex;gap:7px;margin-bottom:13px}.my-work-tabs button{border:1px solid var(--tc-border);background:#fff;border-radius:9px;padding:8px 13px;cursor:pointer}.my-work-tabs button.active{background:#173e5f;color:#fff}.my-work-list{display:flex;flex-direction:column;gap:9px}.my-work-card{display:grid;grid-template-columns:110px 1fr auto;gap:14px;align-items:center;background:#fff;border:1px solid var(--tc-border);border-radius:13px;padding:13px}.my-work-type{font-size:11px;font-weight:900;text-transform:uppercase;color:#1c72b2}.my-work-main{display:flex;flex-direction:column;gap:3px}.my-work-main strong{color:#18344d}.my-work-main span,.my-work-main small{color:#6a8195}
@media(max-width:850px){.tc-toolbar{grid-template-columns:1fr}.tc-nav{justify-content:flex-start}.tc-center-filter{justify-content:flex-start}.tc-month-grid{min-width:760px}.technician-calendar-section #tcCalendarBody{overflow:auto}.tc-form{grid-template-columns:1fr}.tc-form label.full{grid-column:auto}.my-work-card{grid-template-columns:1fr}.tc-day-item{grid-template-columns:1fr}.tc-week-grid{grid-template-columns:repeat(7,170px)}}
.tc-head-actions{display:flex;gap:8px;align-items:center}.tc-editor-sections{display:flex;flex-direction:column;gap:13px}.tc-editor-block{border:1px solid var(--tc-border);border-radius:14px;padding:14px;background:#fbfdff}.tc-editor-block h3{margin:0 0 12px;color:#27445d;font-size:14px}.tc-color-field{display:flex;align-items:center;gap:10px;min-height:42px}.tc-color-field input[type=color]{width:56px;height:40px;padding:3px;border:1px solid var(--tc-border);border-radius:9px;background:#fff}.tc-color-field span{font-family:monospace;color:#61788c}.tc-type-list{display:flex;flex-direction:column;gap:8px}.tc-type-row{display:grid;grid-template-columns:1.4fr 1fr 70px 90px;gap:8px;align-items:center;padding:9px;border:1px solid var(--tc-border);border-radius:11px;background:#f8fafc}.tc-type-row input,.tc-type-row select{min-height:40px;border:1px solid var(--tc-border);border-radius:8px;background:#fff;padding:7px}.tc-type-row input[type=color]{padding:3px;width:100%}.tc-active{font-size:12px;color:#526b80}.tc-type-actions{flex-wrap:wrap}
@media(max-width:700px){.tc-head{flex-direction:column}.tc-head-actions{width:100%;flex-wrap:wrap}.tc-type-row{grid-template-columns:1fr 1fr}.tc-modal{padding:15px}}

.tc-date-jump{display:flex;gap:5px;margin-left:7px}.tc-date-jump select{border:1px solid var(--tc-border);border-radius:8px;background:#fff;padding:7px;text-transform:capitalize}.tc-client-search{position:relative}.tc-client-matches{position:absolute;left:0;right:0;top:100%;z-index:20;background:#fff;border:1px solid var(--tc-border);border-radius:10px;box-shadow:0 12px 30px rgba(20,45,65,.18);max-height:260px;overflow:auto}.tc-client-matches button{width:100%;border:0;border-bottom:1px solid #edf2f6;background:#fff;padding:10px 12px;text-align:left;display:flex;flex-direction:column;gap:2px;cursor:pointer}.tc-client-matches button:hover{background:#f2f7fb}.tc-client-matches small{color:#72879a}.tc-settings-center{display:flex;align-items:center;gap:10px;margin-bottom:12px}.tc-settings-center select{min-height:40px;border:1px solid var(--tc-border);border-radius:9px;padding:0 10px}.tc-type-row{grid-template-columns:72px 1.3fr 1fr 65px 90px 80px}.tc-order{display:flex;gap:4px}.tc-order button{width:31px;height:34px;border:1px solid var(--tc-border);border-radius:7px;background:#fff;cursor:pointer}.tc-preferred{font-size:11px;color:#526b80}
@media(max-width:900px){.tc-date-jump{width:100%;margin-left:0}.tc-type-row{grid-template-columns:70px 1fr 1fr}.tc-type-row .tc-preferred,.tc-type-row .tc-active{grid-column:auto}}

/* V1.1.7.9.51 - colore pieno appuntamenti, palette e cliente/veicolo */
.tc-event{
  background:var(--event-color,#287bb9)!important;
  border:1px solid var(--event-color,#287bb9)!important;
  border-left:1px solid var(--event-color,#287bb9)!important;
  color:var(--event-text,#fff)!important;
  box-shadow:0 2px 7px rgba(20,45,65,.12);
}
.tc-event span,.tc-event b,.tc-event small{color:var(--event-text,#fff)!important}
.tc-event:hover{filter:brightness(.96)}
.tc-event.done{opacity:.62}
.tc-color-choice{display:flex;flex-direction:column;gap:10px}
.tc-palette{display:flex;flex-wrap:wrap;gap:7px}
.tc-palette button{width:30px;height:30px;padding:0;border:2px solid #fff;border-radius:9px;background:var(--palette-color);box-shadow:0 0 0 1px #ccd9e4;cursor:pointer}
.tc-palette button.active{box-shadow:0 0 0 3px #173e5f;transform:scale(1.05)}
.tc-color-custom{display:flex;align-items:center;gap:9px;color:#667d92;font-size:11px}
.tc-color-custom input[type=color]{width:48px;height:36px;padding:2px;border:1px solid var(--tc-border);border-radius:8px;background:#fff}
.tc-color-custom b{font-family:monospace;color:#425d74}
.tc-vehicle-picker{display:flex;flex-direction:column;gap:8px}
.tc-vehicle-picker button{display:flex;flex-direction:column;gap:4px;text-align:left;padding:13px 14px;border:1px solid var(--tc-border);border-radius:11px;background:#fff;cursor:pointer}
.tc-vehicle-picker button:hover{background:#f2f7fb;border-color:#a9c8de}
.tc-vehicle-picker strong{color:#173e5f}
.tc-vehicle-picker span{font-size:12px;color:#6e8498}
.tc-editor-block label small{font-weight:400;color:#75899b;margin-top:3px}


/* V1.1.7.9.52 - popup sopra header e maggiore risalto appuntamenti */
.tc-modal-overlay{
  z-index:250000!important;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-top:24px;
  padding-bottom:24px;
}
.tc-modal{
  position:relative;
  z-index:250001!important;
  margin:auto;
}
.tc-event{
  border-left:5px solid color-mix(in srgb,var(--event-color,#287bb9) 55%,white 45%)!important;
}
.tc-event small{
  display:block;
  margin-top:2px;
  font-weight:700;
  opacity:.94;
}


/* V1.1.7.9.53 - ambienti lavoro e ricerca pratica */
.tc-environment-row{
  grid-template-columns:72px minmax(170px,1fr) 72px minmax(130px,160px) 115px 85px!important;
}
.tc-practice-search{position:relative}
.tc-practice-matches{
  position:absolute;left:0;right:0;top:100%;z-index:45;
  background:#fff;border:1px solid var(--tc-border);border-radius:10px;
  box-shadow:0 14px 34px rgba(20,45,65,.2);max-height:300px;overflow:auto
}
.tc-practice-matches button{
  width:100%;border:0;border-bottom:1px solid #edf2f6;background:#fff;
  padding:10px 12px;text-align:left;display:flex;flex-direction:column;gap:3px;cursor:pointer
}
.tc-practice-matches button:hover{background:#f2f7fb}
.tc-practice-matches strong{color:#193b57}
.tc-practice-matches small{color:#71879a;font-weight:500}
@media(max-width:760px){
  .tc-environment-row{grid-template-columns:62px minmax(0,1fr) 64px!important}
  .tc-environment-row [data-service-mode]{grid-column:1/-1;min-height:40px}
  .tc-environment-row .tc-preferred,.tc-environment-row .tc-active{grid-column:auto}
}


/* V1.1.7.9.54 - impostazioni calendario complete */
.tc-settings-block{
  margin-top:14px;padding:14px;border:1px solid var(--tc-border);
  border-radius:14px;background:#fbfdff
}
.tc-settings-block-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px
}
.tc-settings-block-head h3{margin:0 0 3px;color:#24435d}
.tc-settings-block-head p{margin:0;color:#74899b;font-size:12px}
.tc-worktype-row{
  display:grid;grid-template-columns:72px minmax(0,1fr) auto auto;
  gap:8px;align-items:center;padding:9px;border:1px solid var(--tc-border);
  border-radius:11px;background:#f8fafc
}
.tc-worktype-add{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.tc-worktype-add input{flex:1 1 180px;min-width:0}
.tc-worktype-row input[data-name],.tc-worktype-add input{
  box-sizing:border-box;min-width:0;
  min-height:40px;border:1px solid var(--tc-border);border-radius:8px;
  background:#fff;padding:7px
}
@media(max-width:700px){
  .tc-settings-block-head{flex-direction:column}
  .tc-worktype-row{grid-template-columns:70px 1fr}
  .tc-worktype-row .tc-active,.tc-worktype-delete{grid-column:2;justify-self:start}
}


/* V1.1.7.9.55 - rendering calendario e ricerca */
.tc-calendar-search{
  display:flex;align-items:center;gap:8px;
  margin:0 0 14px;padding:9px 11px;
  background:#fff;border:1px solid var(--tc-border);
  border-radius:12px;box-shadow:0 2px 8px rgba(31,63,88,.04)
}
.tc-calendar-search .tc-search-icon{
  color:#60798d;font-size:20px;line-height:1
}
.tc-calendar-search input{
  flex:1;min-width:0;border:0!important;outline:0!important;
  background:transparent!important;padding:3px 0!important;
  font:inherit;color:#18344d
}
.tc-calendar-search input::placeholder{color:#8799a9}
.tc-calendar-search button{
  width:30px;height:30px;border:0;border-radius:8px;
  background:#eef3f7;color:#5f7689;font-size:18px;cursor:pointer
}
.tc-calendar-search button:hover{background:#e2ebf2}


/* V1.1.7.9.56 - tecnici, colore ambiente e sincronizzazione immediata */
.tc-environment-select-wrap{
  display:grid;grid-template-columns:28px 1fr;align-items:center;gap:8px
}
.tc-environment-select-wrap select{width:100%}
.tc-environment-color{
  width:26px;height:26px;border-radius:8px;
  background:var(--environment-color,#2563eb);
  border:2px solid #fff;box-shadow:0 0 0 1px #cbd8e4,0 2px 5px rgba(31,55,75,.12)
}


/* V1.1.7.9.57 - palette appuntamento e assegnazione multipla tecnici */
.tc-appointment-palette{margin-top:8px;padding:10px;border:1px solid var(--tc-border);border-radius:11px;background:#f8fbfd}
.tc-palette-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:9px}
.tc-custom-color{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;font-size:11px!important;font-weight:700!important;color:#5f7689!important}
.tc-custom-color input[type=color]{width:42px;height:32px;padding:2px;border:1px solid var(--tc-border);border-radius:8px;background:#fff}
.tc-reset-color{border:1px solid var(--tc-border);background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer;color:#36536b;font-weight:700}
.tc-reset-color:hover{background:#edf4f8}
.tc-tech-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.tc-tech-choice{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:9px 10px;border:1px solid var(--tc-border);border-radius:10px;background:#fff;cursor:pointer}
.tc-tech-choice input{width:17px;height:17px;flex:0 0 auto}
.tc-tech-choice span{font-size:12px;font-weight:700;color:#294760}
.tc-tech-choice:has(input:checked){background:#eef6fb;border-color:#7eb4d8}
.tc-no-tech{padding:10px 12px;border:1px dashed #c8d6e1;border-radius:10px;background:#f8fafc;color:#6c8294;font-size:12px}
@media(max-width:650px){.tc-tech-grid{grid-template-columns:1fr}}


/* V1.1.7.9.58 - selettore Tecnici, anteprima appuntamenti, nome cliente opzionale */
.tc-tech-dropdown{position:relative}
.tc-tech-dropdown-trigger{
  width:100%;min-height:42px;display:flex;align-items:center;justify-content:space-between;
  gap:10px;border:1px solid var(--tc-border);border-radius:10px;background:#fff;
  padding:9px 11px;text-align:left;cursor:pointer;color:#36536b
}
.tc-tech-dropdown-trigger.has-selection{border-color:#76add2;background:#f4f9fc}
.tc-tech-dropdown-trigger [data-tech-summary]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-tech-chevron{font-size:18px;color:#6c8193}
.tc-tech-dropdown-panel{
  position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:90;
  background:#fff;border:1px solid var(--tc-border);border-radius:11px;
  box-shadow:0 14px 35px rgba(21,46,65,.2);padding:8px
}
.tc-tech-search-wrap{padding:2px 2px 8px}
.tc-tech-search-wrap input{
  width:100%;min-height:38px;border:1px solid var(--tc-border);border-radius:8px;
  padding:8px 10px;background:#fff
}
.tc-tech-options{display:flex;flex-direction:column;gap:5px;max-height:230px;overflow:auto}
.tc-tech-choice{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:9px 10px;border:1px solid var(--tc-border);border-radius:9px;background:#fff;cursor:pointer}
.tc-tech-choice:hover{background:#f2f7fb}
.tc-tech-choice:has(input:checked){background:#eaf5fb;border-color:#72abd2}
.tc-tech-choice input{width:17px;height:17px}
.tc-tech-choice span{font-size:12px;font-weight:700;color:#294760}
.tc-customer-name-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.tc-show-customer{display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;white-space:nowrap;padding:8px 10px;border:1px solid var(--tc-border);border-radius:9px;background:#f8fafc;cursor:pointer}
.tc-show-customer input{width:16px;height:16px}
.tc-show-customer span{font-size:11px;font-weight:700;color:#526b80}
.tc-event{gap:2px!important}
.tc-event-vehicle{font-size:11px!important;font-weight:900!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tc-event-time{font-size:10px!important;font-weight:800!important;line-height:1.2}
.tc-event-customer{font-size:10px!important;font-weight:800!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tc-event-work{font-size:10px!important;font-weight:700!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media(max-width:700px){
  .tc-customer-name-row{grid-template-columns:1fr}
  .tc-show-customer{justify-content:flex-start}
}


/* V1.1.7.9.59 - ricerca risultati, mese affiancato, timeline settimana, drag & drop */
.tc-calendar-search-wrap{position:relative}
.tc-calendar-search-results{
  position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:120;
  background:#fff;border:1px solid var(--tc-border);border-radius:12px;
  box-shadow:0 16px 38px rgba(20,45,65,.22);max-height:360px;overflow:auto;padding:6px
}
.tc-calendar-search-results button{
  width:100%;border:0;border-bottom:1px solid #edf2f6;background:#fff;
  padding:10px 12px;text-align:left;display:grid;grid-template-columns:1.1fr 1fr auto;
  gap:8px;align-items:center;cursor:pointer;border-radius:8px
}
.tc-calendar-search-results button:hover{background:#eef6fb}
.tc-calendar-search-results strong{color:#173e5f}
.tc-calendar-search-results span{color:#49657a;font-size:12px}
.tc-calendar-search-results small{color:#72879a;font-size:11px;text-align:right}
.tc-search-no-result{padding:14px;color:#71879a;text-align:center}

.tc-day-events-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px!important;align-content:start
}
.tc-day-events-grid .tc-event{min-width:0;width:100%;padding:5px 6px!important}
.tc-more-events{grid-column:1/-1}

.tc-week-timeline{
  display:grid;
  grid-template-columns:60px repeat(7,minmax(130px,1fr));
  grid-template-rows:auto 1fr;
  min-width:1030px;
  border:1px solid var(--tc-border);
  border-radius:12px;
  overflow:hidden;
  background:#fff
}
.tc-week-time-head{grid-column:1;grid-row:1;background:#f5f8fa;border-right:1px solid var(--tc-border);border-bottom:1px solid var(--tc-border)}
.tc-week-day-head{
  padding:9px 6px;text-align:center;background:#f5f8fa;border-right:1px solid var(--tc-border);
  border-bottom:1px solid var(--tc-border);display:flex;gap:5px;justify-content:center;align-items:center
}
.tc-week-day-head b{text-transform:capitalize;color:#294760}.tc-week-day-head span{font-weight:900;color:#173e5f}
.tc-week-times{grid-column:1;grid-row:2;position:relative;background:#fbfcfd;border-right:1px solid var(--tc-border)}
.tc-week-times span{position:absolute;right:7px;transform:translateY(-50%);font-size:10px;color:#71879a}
.tc-week-day-track{position:relative;grid-row:2;border-right:1px solid var(--tc-border);background:#fff}
.tc-hour-line{position:absolute;left:0;right:0;height:1px;background:#edf2f6;pointer-events:none}
.tc-timeline-event{
  position:absolute;left:4px;right:4px;z-index:4;
  border:0;border-left:5px solid color-mix(in srgb,var(--event-color,#287bb9) 55%,white 45%);
  border-radius:8px;background:var(--event-color,#287bb9);color:var(--event-text,#fff);
  padding:5px 7px;text-align:left;overflow:hidden;cursor:pointer;
  display:flex;flex-direction:column;gap:1px;box-shadow:0 2px 6px rgba(20,45,65,.12)
}
.tc-timeline-event b,.tc-timeline-event span,.tc-timeline-event strong,.tc-timeline-event small{color:var(--event-text,#fff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-timeline-event b{font-size:11px}.tc-timeline-event span,.tc-timeline-event strong,.tc-timeline-event small{font-size:9px}

.tc-event[draggable="true"],.tc-timeline-event[draggable="true"]{cursor:grab}
.tc-event[draggable="true"]:active,.tc-timeline-event[draggable="true"]:active{cursor:grabbing}
.tc-dragging{opacity:.42!important;transform:scale(.98)}
.tc-drop-target{background:rgba(0,136,255,.13)!important;box-shadow:inset 0 0 0 3px rgba(0,104,196,.88),inset 0 0 28px rgba(0,122,220,.18)!important}
.tc-drop-target::before{content:'';position:absolute;left:2px;right:2px;top:var(--tc-drop-slot-top,0px);height:var(--tc-drop-slot-height,26px);border-radius:10px;background:rgba(0,136,255,.34);border:3px solid rgba(0,86,190,.98);box-shadow:0 0 0 2px rgba(255,255,255,.78),0 0 20px rgba(0,112,214,.4),inset 0 0 0 1px rgba(255,255,255,.65);pointer-events:none;z-index:3}
.tc-drop-target::after{content:'';position:absolute;left:2px;right:2px;top:calc(var(--tc-drop-slot-top,0px) - 1px);border-top:4px solid rgba(0,75,166,.98);pointer-events:none;z-index:3}
.tc-event-focus,.tc-timeline-event.tc-event-focus{
  outline:3px solid #ffd54a!important;outline-offset:2px;
  animation:tcFocusPulse .7s ease-in-out 3
}
@keyframes tcFocusPulse{50%{filter:brightness(1.18);transform:scale(1.02)}}
#tcCalendarBody{overflow-x:auto}

@media(max-width:900px){
  .tc-calendar-search-results button{grid-template-columns:1fr}
  .tc-calendar-search-results small{text-align:left}
  .tc-day-events-grid{grid-template-columns:1fr}
}

/* V1.1.7.9.60 - appuntamenti sovrapposti e badge pratica */
.tc-month-event-row{display:grid;grid-template-columns:1fr;gap:4px;min-width:0}
.tc-month-event-row.paired{grid-template-columns:repeat(2,minmax(0,1fr))}
.tc-month-event-row .tc-event{width:100%;min-width:0;margin:0!important}
.tc-practice-status-badge{display:inline-flex;align-items:center;align-self:flex-start;max-width:100%;padding:2px 6px;border-radius:999px;font-size:8px!important;font-style:normal;font-weight:900!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(255,255,255,.9);color:#36536b!important}
.tc-practice-status-badge.done{background:#dcfce7;color:#166534!important}
.tc-practice-status-badge.working{background:#dbeafe;color:#1d4ed8!important}
.tc-practice-status-badge.waiting{background:#fef3c7;color:#92400e!important}
.tc-practice-status-badge.cancelled{background:#fee2e2;color:#b91c1c!important}
.tc-practice-status-badge.neutral{background:#e5e7eb;color:#374151!important}
.tc-timeline-event .tc-practice-status-badge{position:absolute;right:4px;top:4px;max-width:52%;z-index:2}


/* V1.1.7.9.61 - sovrapposizioni settimana e creazione da calendario */
.tc-week-day-track[data-drop-day],
.tc-day-cell[data-drop-day]{cursor:crosshair}
.tc-week-day-track .tc-timeline-event,
.tc-day-cell .tc-event{cursor:pointer}
.tc-timeline-event{
  min-width:0;
}
.tc-week-day-track .tc-timeline-event[draggable="true"]{cursor:grab}
.tc-week-day-track .tc-timeline-event[draggable="true"]:active{cursor:grabbing}


/* V1.1.7.9.62 - stato visibile, tipo lavorazione settimana */
.tc-event,.tc-timeline-event{position:relative}
.tc-status-dot{
  position:absolute;top:5px;right:5px;
  width:10px;height:10px;border-radius:999px;
  border:2px solid rgba(255,255,255,.92);
  box-shadow:0 0 0 1px rgba(20,45,65,.18),0 1px 3px rgba(20,45,65,.2);
  z-index:5;background:#94a3b8
}
.tc-status-dot.done{background:#22c55e}
.tc-status-dot.working{background:#3b82f6}
.tc-status-dot.waiting{background:#f59e0b}
.tc-status-dot.cancelled{background:#ef4444}
.tc-status-dot.neutral{background:#94a3b8}
.tc-timeline-work{
  display:block;
  padding-right:14px;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:var(--event-text,#fff)!important
}


/* V1.1.7.9.63 - stati appuntamento */
.tc-status-dot.todo{background:#111827}
.tc-status-dot.working{background:#f59e0b}
.tc-status-dot.confirmed{background:#22c55e}
.tc-status-dot.cancelled{background:#ef4444}
.tc-status-dot.completed{
  background:#2563eb;
  border-color:#fff;
}
.tc-status-dot.completed::after{
  content:'✓';
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-56%);
  font-size:8px;
  line-height:1;
  font-weight:1000;
  color:#22c55e;
  text-shadow:0 0 1px #fff,0 0 2px #fff;
}


/* V1.1.7.9.64 - spunta completato più leggibile */
.tc-status-dot.completed{
  width:15px;height:15px;
}
.tc-status-dot.completed::after{
  font-size:13px;
  font-weight:1000;
  transform:translate(-50%,-58%);
  color:#22c55e;
  text-shadow:0 0 1px #fff,0 0 3px #fff,0 1px 1px rgba(0,0,0,.25);
}

/* V1.1.7.9.67 - ricerca tecnico pratica */
.technician-search-input{width:100%;min-height:40px;margin:0 0 7px;border:1px solid #cbd8e4;border-radius:9px;padding:8px 11px;background:#fff;color:#20384d}


/* V1.1.7.9.69 - vista Settimana leggibile */
.tc-week-timeline{
  grid-template-columns:62px repeat(7,minmax(150px,1fr));
  min-width:1180px;
}
.tc-week-day-track{min-width:150px}
.tc-timeline-event{
  padding:6px 8px;
  border-left-width:4px;
  box-shadow:0 2px 7px rgba(20,45,65,.16);
}
.tc-timeline-event b{font-size:10px!important;padding-right:14px}
.tc-timeline-event span,
.tc-timeline-event strong,
.tc-timeline-event small{font-size:8.5px!important}
.tc-timeline-work{font-size:8.5px!important;font-weight:800!important}


/* V1.1.7.9.70 */
.tc-delete-event-btn{margin-right:auto}
.tc-modal-actions-spacer{flex:1}
.technician-search-wrap{position:relative}
.technician-search-results{position:absolute;left:0;right:0;top:calc(100% + 3px);z-index:120;background:#fff;border:1px solid #cbd8e4;border-radius:9px;box-shadow:0 10px 28px rgba(20,45,65,.18);padding:5px;max-height:220px;overflow:auto}
.technician-search-results button{display:block;width:100%;border:0;background:#fff;text-align:left;padding:9px 10px;border-radius:7px;cursor:pointer;color:#20384d;font-weight:700}
.technician-search-results button:hover{background:#eef6fb}
.technician-search-empty{padding:10px;color:#71879a;font-size:12px}


/* V1.1.7.9.71 - settimana stile Google Calendar */
.tc-week-day-track{overflow:visible}
.tc-timeline-event{
  transition:box-shadow .12s ease,opacity .12s ease;
}
.tc-timeline-event:hover,.tc-timeline-event.tc-event-pointer-front{
  z-index:10000!important;
  box-shadow:0 7px 20px rgba(20,45,65,.32);
}



/* V1.1.7.9.72 - FIX CRITICO timeline settimanale */
.tc-week-day-track .tc-timeline-event{
  position:absolute!important;
  margin:0!important;
}
.tc-month-grid .tc-event{
  position:relative;
}


/* V1.1.7.9.73 - collisioni confinate + appuntamenti multi-giorno */
.tc-week-day-track{overflow:hidden}
.tc-week-day-track .tc-timeline-event{
  max-width:calc(100% - 2px);
}
.tc-timeline-event.tc-multiday-segment{
  border-top-style:dashed;
  border-bottom-style:dashed;
}
.tc-timeline-event.tc-multiday-first{border-top-style:solid}
.tc-timeline-event.tc-multiday-last{border-bottom-style:solid}


/* V1.1.7.9.74 - pratica/calendario e area tecnico */
.practice-appointment-badge{
 display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:999px;
 background:#e7f7ee;color:#17653b;font-size:10px;font-weight:800;white-space:nowrap
}
.practice-calendar-btn{font-weight:800}
.practice-calendar-action-box{
 margin:12px 0;padding:12px 14px;border:1px solid #cfe0ed;border-radius:12px;
 background:#f7fbfe;display:flex;align-items:center;justify-content:space-between;gap:12px
}
.practice-calendar-action-box>div{display:flex;flex-direction:column;gap:3px}
.practice-calendar-action-box strong{color:#173e5f}
.practice-calendar-action-box small{color:#6d8396}

/* V1.1.7.9.75 - profilo Tecnico e collegamento pratica appuntamento */
.practice-readonly-badge,.inventory-readonly-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#eef3f7;color:#53697a;font-size:10px;font-weight:800;white-space:nowrap}


/* V1.1.7.9.76 */
.practice-calendar-action-box[style*="display: none"]{display:none!important}
.practice-calendar-action-box{width:100%;box-sizing:border-box}


/* V1.1.7.9.77 - riepilogo e paginazione pratiche */
.practice-archive-stats{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:14px
}
.practice-archive-stat{
 background:#fff;border:1px solid #d8e4ed;border-radius:14px;padding:14px 16px;
 box-shadow:0 2px 8px rgba(20,45,65,.04);display:flex;flex-direction:column;gap:5px
}
.practice-archive-stat span{font-size:11px;color:#6e8294;font-weight:700}
.practice-archive-stat strong{font-size:25px;color:#132f49;line-height:1}
.practice-results-toolbar{
 display:flex;justify-content:space-between;align-items:center;gap:12px;
 margin:12px 0 10px;padding:9px 12px;border-radius:10px;background:#f5f9fc
}
.practice-results-count{font-weight:800;color:#294963}
.practice-page-size{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#64798c}
.practice-page-size select{min-width:82px;border:1px solid #ccdbe6;border-radius:8px;padding:7px 9px;background:#fff}
.practice-pagination{
 display:flex;align-items:center;justify-content:center;gap:14px;margin-top:15px
}
.practice-pagination span{min-width:180px;text-align:center;font-size:12px;font-weight:800;color:#526b80}
@media(max-width:900px){
 .practice-archive-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .practice-archive-stat:first-child{grid-column:1/-1}
 .practice-results-toolbar{align-items:stretch;flex-direction:column}
}


/* V1.1.7.9.78 - contatori pratiche compatti + RIPCALENDAR */
.practice-archive-stats{
 display:flex!important;
 flex-wrap:nowrap!important;
 gap:8px!important;
 margin-bottom:10px!important;
}
.practice-archive-stat{
 flex:1 1 0!important;
 min-width:0!important;
 padding:9px 12px!important;
 border-radius:11px!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:space-between!important;
 gap:8px!important;
}
.practice-archive-stat span{
 font-size:10.5px!important;
 line-height:1.15!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
}
.practice-archive-stat strong{
 font-size:20px!important;
 flex:0 0 auto!important;
}
.dashboard-action.ripcalendar{
 background:#0b5c8e;
 color:#fff;
 border-color:#0b5c8e;
 font-weight:800;
 letter-spacing:.02em;
}
.dashboard-action.ripcalendar:hover{filter:brightness(.95)}
@media(max-width:900px){
 .practice-archive-stats{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 .practice-archive-stat:first-child{grid-column:1/-1!important}
 .practice-archive-stat{flex-direction:row!important}
}


/* V1.1.7.9.79 - RIPCALENDAR giallo + contatori pratiche cliccabili */
.dashboard-action.ripcalendar{
 background:#f4c542!important;
 color:#16324a!important;
 border-color:#d5a91d!important;
 box-shadow:0 2px 7px rgba(160,120,0,.16);
}
.dashboard-action.ripcalendar:hover{
 background:#ffd65a!important;
 filter:none!important;
}
.practice-archive-stat{
 appearance:none;
 font:inherit;
 text-align:left;
 cursor:pointer;
 color:inherit;
 transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease,background .14s ease;
}
.practice-archive-stat:hover{
 border-color:#8bb8d8!important;
 box-shadow:0 4px 12px rgba(20,70,105,.10)!important;
 transform:translateY(-1px);
}
.practice-archive-stat.active{
 background:#edf7fd!important;
 border-color:#1485c2!important;
 box-shadow:inset 0 0 0 1px rgba(20,133,194,.16),0 3px 10px rgba(20,70,105,.08)!important;
}
.practice-archive-stat.active span{color:#115b88!important}
.practice-archive-stat:focus-visible{outline:3px solid rgba(20,133,194,.22);outline-offset:2px}


/* V1.1.7.9.80 - conteggi I miei lavori */
.my-work-stats{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:10px;
 margin:14px 0 12px;
}
.my-work-stat{
 border:1px solid #d4e2ec;
 border-radius:12px;
 background:#fff;
 min-height:66px;
 padding:10px 14px;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:10px;
 cursor:pointer;
 text-align:left;
 color:#24445e;
}
.my-work-stat span{font-size:11px;font-weight:800}
.my-work-stat strong{font-size:24px;color:#123d60}
.my-work-stat:hover{border-color:#86b9d8;background:#f5fbff}
.my-work-stat.active{border-color:#17679b;background:#eaf5fc;box-shadow:0 0 0 1px #17679b inset}
@media(max-width:800px){
 .my-work-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* V1.1.7.9.81 - I miei lavori: card conteggio stile gestionale */
.my-work-stats{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:12px!important;
 margin:16px 0 18px!important;
}
.my-work-stat{
 position:relative!important;
 min-height:92px!important;
 padding:15px 17px!important;
 border:1px solid #d7e4ed!important;
 border-radius:15px!important;
 background:linear-gradient(180deg,#ffffff 0%,#f7fbfe 100%)!important;
 box-shadow:0 4px 14px rgba(22,58,84,.07)!important;
 display:flex!important;
 flex-direction:column!important;
 align-items:flex-start!important;
 justify-content:center!important;
 gap:7px!important;
 overflow:hidden!important;
 color:#264a64!important;
}
.my-work-stat::before{
 content:""!important;
 position:absolute!important;
 left:0!important;
 top:0!important;
 bottom:0!important;
 width:4px!important;
 background:#8ebbd7!important;
}
.my-work-stat span{
 font-size:11px!important;
 font-weight:800!important;
 letter-spacing:.02em!important;
 color:#657f92!important;
}
.my-work-stat strong{
 font-size:29px!important;
 line-height:1!important;
 font-weight:900!important;
 color:#173e5f!important;
}
.my-work-stat:hover{
 transform:translateY(-1px)!important;
 border-color:#9fc6dd!important;
 box-shadow:0 6px 18px rgba(22,58,84,.10)!important;
}
.my-work-stat.active{
 border-color:#5aa3ce!important;
 background:linear-gradient(180deg,#f4fbff 0%,#eaf6fd 100%)!important;
 box-shadow:0 0 0 1px rgba(58,145,196,.18),0 6px 18px rgba(22,58,84,.09)!important;
}
.my-work-stat.active::before{background:#2f91c7!important}

/* RIPCALENDAR azzurro, distinto dalle altre azioni */
.dashboard-action.ripcalendar{
 background:#69bde8!important;
 border-color:#69bde8!important;
 color:#103b55!important;
 box-shadow:0 3px 10px rgba(58,145,196,.18)!important;
}
.dashboard-action.ripcalendar:hover{
 background:#59b3df!important;
 border-color:#59b3df!important;
 filter:none!important;
}
@media(max-width:800px){
 .my-work-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* V1.1.7.9.82 - RIPCALENDAR stile card I miei lavori */
.dashboard-action.ripcalendar{
 position:relative!important;
 min-height:46px!important;
 padding:10px 16px 10px 20px!important;
 border:1px solid #9fc6dd!important;
 border-radius:12px!important;
 background:linear-gradient(180deg,#f4fbff 0%,#eaf6fd 100%)!important;
 color:#173e5f!important;
 box-shadow:0 4px 14px rgba(22,58,84,.08)!important;
 font-weight:900!important;
 overflow:hidden!important;
}
.dashboard-action.ripcalendar::before{
 content:""!important;
 position:absolute!important;
 left:0!important;
 top:0!important;
 bottom:0!important;
 width:4px!important;
 background:#2f91c7!important;
}
.dashboard-action.ripcalendar:hover{
 transform:translateY(-1px)!important;
 background:linear-gradient(180deg,#f8fdff 0%,#e3f3fc 100%)!important;
 border-color:#7eb6d6!important;
 box-shadow:0 6px 18px rgba(22,58,84,.11)!important;
}

/* Le card sono l'unico filtro di I miei lavori */
.my-work-tabs{display:none!important}


/* V1.1.7.9.83 - RIPCALENDAR: card bianca con linea blu e stato selezionato */
.dashboard-action.ripcalendar{
 position:relative!important;
 min-height:48px!important;
 padding:11px 17px 11px 21px!important;
 background:#ffffff!important;
 color:#173e5f!important;
 border:1px solid #d5e3ec!important;
 border-radius:14px!important;
 box-shadow:
   0 0 0 2px rgba(47,145,199,.13) inset,
   0 3px 10px rgba(22,58,84,.08)!important;
 font-weight:900!important;
 overflow:hidden!important;
 transform:translateY(1px)!important;
}
.dashboard-action.ripcalendar::before{
 content:""!important;
 position:absolute!important;
 left:0!important;
 top:0!important;
 bottom:0!important;
 width:5px!important;
 background:#2f91c7!important;
 border-radius:14px 0 0 14px!important;
}
.dashboard-action.ripcalendar:hover,
.dashboard-action.ripcalendar:focus{
 background:#ffffff!important;
 color:#173e5f!important;
 border-color:#b8d4e5!important;
 box-shadow:
   0 0 0 2px rgba(47,145,199,.18) inset,
   0 2px 7px rgba(22,58,84,.08)!important;
 transform:translateY(2px)!important;
}
.dashboard-action.ripcalendar:active{
 transform:translateY(3px)!important;
 box-shadow:
   0 0 0 2px rgba(47,145,199,.22) inset,
   0 1px 4px rgba(22,58,84,.07)!important;
}


/* V1.1.7.9.85 - matrice ruoli e permessi */
.employee-role-legend-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.employee-role-legend-item.technician-manager .employee-role-icon{background:#e8f3fb;color:#17689b}
.employee-role-legend-item.technician .employee-role-icon{background:#eef2f5;color:#435c70}
.role-permissions-tabs{display:flex;flex-wrap:wrap;gap:8px}
.role-permission-group{border:1px solid #dce7ee;border-radius:13px;padding:12px 14px;margin:10px 0;background:#fbfdff}
.role-permission-group h4{margin:0 0 8px;color:#173e5f}
.role-permission-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 4px;border-top:1px solid #edf2f5}
.role-permission-row:first-of-type{border-top:0}
.role-permission-row input{width:18px;height:18px;accent-color:#2f91c7}
@media(max-width:1100px){.employee-role-legend-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* V1.1.7.9.106 - popup Calendario senza scrollbar visibili */
.tc-modal,
.tc-modal-overlay,
#tcCalendarBody,
.tc-tech-dropdown-panel,
.tc-practice-matches,
.tc-client-matches{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.tc-modal::-webkit-scrollbar,
.tc-modal-overlay::-webkit-scrollbar,
#tcCalendarBody::-webkit-scrollbar,
.tc-tech-dropdown-panel::-webkit-scrollbar,
.tc-practice-matches::-webkit-scrollbar,
.tc-client-matches::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}


/* V1.1.7.9.107 - RIPCalendar stile box I miei lavori */
.dashboard-action.ripcalendar{
  position:relative!important;
  min-height:54px!important;
  padding:10px 18px 10px 22px!important;
  border:1px solid #78b9df!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#f7fcff 0%,#eaf6fd 100%)!important;
  color:#123f61!important;
  box-shadow:
    inset 0 0 0 1px rgba(38,137,196,.08),
    0 4px 12px rgba(24,86,126,.08)!important;
  font-weight:900!important;
  letter-spacing:.015em!important;
  overflow:hidden;
  transition:
    transform .14s ease,
    box-shadow .14s ease,
    border-color .14s ease,
    background .14s ease!important;
}
.dashboard-action.ripcalendar::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:#55b7e8;
  border-radius:12px 0 0 12px;
}
.dashboard-action.ripcalendar:hover,
.dashboard-action.ripcalendar:focus-visible{
  background:#e2f3fd!important;
  border-color:#238bc8!important;
  color:#0d5078!important;
  box-shadow:
    inset 0 0 0 1px rgba(35,139,200,.22),
    0 6px 16px rgba(24,86,126,.12)!important;
  transform:translateY(-1px);
  filter:none!important;
}
.dashboard-action.ripcalendar:active{
  transform:translateY(0);
  background:#d9effb!important;
  box-shadow:
    inset 0 0 0 2px rgba(35,139,200,.20),
    0 2px 7px rgba(24,86,126,.10)!important;
}



/* V1.1.7.9.108 - tipografia adattiva SOLO in vista Settimana */
.tc-timeline-event{
  container-type:size;
}
.tc-timeline-event > b{
  font-size:11px!important;
  line-height:1.12!important;
}
.tc-timeline-event > span{
  font-size:9.5px!important;
  line-height:1.14!important;
}
.tc-timeline-event > small{
  font-size:9px!important;
  line-height:1.14!important;
}
.tc-timeline-event .tc-timeline-work{
  font-weight:800!important;
}
@container (min-width:120px) and (min-height:52px){
  .tc-timeline-event > b{font-size:12.5px!important;line-height:1.14!important}
  .tc-timeline-event > span{font-size:10.5px!important;line-height:1.16!important}
  .tc-timeline-event > small{font-size:10px!important}
}
@container (min-width:140px) and (min-height:78px){
  .tc-timeline-event > b{font-size:14px!important;line-height:1.16!important}
  .tc-timeline-event > span{font-size:11.5px!important;line-height:1.18!important}
  .tc-timeline-event > small{font-size:11px!important}
}
@container (min-width:150px) and (min-height:115px){
  .tc-timeline-event > b{font-size:15.5px!important;line-height:1.16!important}
  .tc-timeline-event > span{font-size:12.5px!important;line-height:1.2!important}
  .tc-timeline-event > small{font-size:12px!important;line-height:1.18!important}
  .tc-timeline-event .tc-timeline-work{font-size:13px!important}
}
@container (min-width:155px) and (min-height:180px){
  .tc-timeline-event > b{font-size:17px!important}
  .tc-timeline-event > span{font-size:13.5px!important}
  .tc-timeline-event > small{font-size:12.5px!important}
  .tc-timeline-event .tc-timeline-work{font-size:14px!important}
}

/* Forza Giorno e Mese alle dimensioni originali e senza size containment */
.tc-day-item .tc-event,
.tc-month-grid .tc-event{
  container-type:normal!important;
}
.tc-day-item .tc-event span,
.tc-month-grid .tc-event span{
  font-size:10px!important;
  line-height:normal!important;
}
.tc-day-item .tc-event b,
.tc-month-grid .tc-event b{
  font-size:11px!important;
  line-height:normal!important;
}
.tc-day-item .tc-event small,
.tc-month-grid .tc-event small{
  font-size:10px!important;
  line-height:normal!important;
}


/* V1.1.7.9.109 - Archivio appuntamenti e audit */
.tc-event-audit{
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  margin-top:8px;
  padding:8px 10px;
  border:1px solid #d7e5ef;
  border-radius:9px;
  background:#f4f9fc;
  color:#536b7c;
  font-size:12px;
}
.tc-event-audit b{color:#173d5b}
.tc-deleted-events{
  display:grid;
  gap:10px;
  padding:4px 2px 8px;
}
.tc-deleted-event{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 15px;
  border:1px solid #dce7ef;
  border-left:5px solid #8ba7ba;
  border-radius:12px;
  background:#fff;
}
.tc-deleted-event-main{
  min-width:0;
  display:grid;
  gap:3px;
}
.tc-deleted-event-main strong{
  font-size:14px;
  color:#173d5b;
}
.tc-deleted-event-main span,
.tc-deleted-event-main small{
  color:#63798a;
}
@media(max-width:700px){
  .tc-deleted-event{align-items:stretch;flex-direction:column}
}


/* V1.1.7.9.110 - Appuntamenti eliminati */
.tc-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.tc-head-actions button{
  white-space:nowrap;
}
.tc-deleted-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:2px 0 12px;
  padding:10px 12px;
  border:1px solid #d9e6ee;
  border-radius:11px;
  background:#f7fbfd;
}
.tc-deleted-select-all{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:#173d5b;
  cursor:pointer;
}
.tc-deleted-select-all input,
.tc-deleted-check input{
  width:17px;
  height:17px;
  accent-color:#146c9e;
}
.tc-deleted-toolbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.tc-deleted-event{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center!important;
}
.tc-deleted-check{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px;
  cursor:pointer;
}
.tc-deleted-event-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
@media(max-width:850px){
  .tc-head-actions{flex-wrap:wrap}
  .tc-deleted-toolbar{align-items:stretch;flex-direction:column}
  .tc-deleted-event{
    grid-template-columns:auto minmax(0,1fr)!important;
  }
  .tc-deleted-event-actions{
    grid-column:1 / -1;
    justify-content:flex-end;
  }
}
@media(max-width:600px){
  .tc-deleted-event-actions{
    justify-content:stretch;
  }
  .tc-deleted-event-actions .btn{
    flex:1 1 100%;
  }
}


/* V1.1.7.9.113 - tecnici assegnati e navigazione mobile */
.tc-period-button{border:0!important;background:transparent!important;color:var(--tc-text)!important;font:inherit;font-weight:850;text-transform:capitalize;min-width:180px;text-align:center;padding:7px 9px!important;border-radius:9px!important;cursor:default}
.tc-mobile-date-picker{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tc-assigned-technicians-summary{margin-bottom:8px;padding:9px 11px;border:1px solid #cfe1ed;border-left:4px solid #3aa7df;border-radius:10px;background:#f4faff;color:#244b68;font-size:13px;font-weight:800;line-height:1.35}
@media(max-width:700px){
 .tc-date-jump{display:none!important}
 .tc-nav{display:grid!important;grid-template-columns:auto auto auto minmax(0,1fr)!important;gap:5px!important;width:100%;position:relative}
 .tc-period-button{min-width:0!important;width:100%!important;font-size:12px!important;line-height:1.15!important;background:#f3f8fb!important;border:1px solid #d7e4ed!important;cursor:pointer!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .tc-period-button::after{content:'  📅';font-size:11px}
 .tc-center-filter{width:100%!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important}.tc-center-filter select{width:100%!important;min-width:0!important}
 .tc-week-timeline{grid-template-columns:42px repeat(7,132px)!important;min-width:966px!important}
 .tc-week-time-head,.tc-week-times{width:42px!important;min-width:42px!important}.tc-week-times span{font-size:8px!important;right:4px!important}
 .tc-week-day-head{min-width:132px!important;padding:6px 3px!important}.tc-week-day-head b{font-size:10px!important}.tc-week-day-head span{font-size:11px!important}.tc-week-day-track{min-width:132px!important}
 .technician-calendar-section #tcCalendarBody{overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.tc-week-day-track{scroll-snap-align:start}.tc-timeline-event{min-width:0!important;padding:5px 6px!important}
}


/* V1.1.7.9.114 - navigazione mobile Giorno/Settimana stile Google Calendar */
.tc-event-technicians,
.tc-timeline-tech{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:800!important;
}

@media(max-width:700px){
  /* Oggi sopra; sotto freccia - data cliccabile - freccia */
  .technician-calendar-section .tc-nav{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr) 48px!important;
    grid-template-areas:
      "today today today"
      "prev period next"!important;
    gap:7px!important;
    width:100%!important;
    align-items:center!important;
  }
  .technician-calendar-section #tcToday{
    grid-area:today!important;
    width:100%!important;
    min-height:38px!important;
    font-weight:900!important;
    background:#fff!important;
  }
  .technician-calendar-section #tcPrev{
    grid-area:prev!important;
  }
  .technician-calendar-section #tcNext{
    grid-area:next!important;
  }
  .technician-calendar-section #tcPrev,
  .technician-calendar-section #tcNext{
    width:48px!important;
    min-width:48px!important;
    height:46px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    font-size:31px!important;
    line-height:1!important;
    font-weight:900!important;
    color:#173e5f!important;
    background:#f5f9fc!important;
    border:1px solid #cddde8!important;
    border-radius:11px!important;
  }
  .technician-calendar-section #tcPeriod{
    grid-area:period!important;
    min-height:46px!important;
    width:100%!important;
    min-width:0!important;
    padding:8px 8px!important;
    font-size:12px!important;
    font-weight:900!important;
    text-align:center!important;
    cursor:pointer!important;
    background:#eef7fc!important;
    border:1px solid #bcd9e9!important;
  }

  /* Settimana mobile: colonna orari sempre visibile mentre scorri i giorni. */
  .technician-calendar-section #tcCalendarBody{
    position:relative!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-snap-type:x proximity!important;
  }
  .technician-calendar-section .tc-week-timeline{
    grid-template-columns:42px repeat(7,104px)!important;
    min-width:770px!important;
    overflow:visible!important;
  }
  .technician-calendar-section .tc-week-time-head{
    position:sticky!important;
    left:0!important;
    z-index:30!important;
    width:42px!important;
    min-width:42px!important;
    background:#f5f8fa!important;
    box-shadow:2px 0 4px rgba(30,64,90,.08);
  }
  .technician-calendar-section .tc-week-times{
    position:sticky!important;
    left:0!important;
    z-index:29!important;
    width:42px!important;
    min-width:42px!important;
    background:#fbfcfd!important;
    box-shadow:2px 0 4px rgba(30,64,90,.08);
  }
  .technician-calendar-section .tc-week-times span{
    right:4px!important;
    font-size:8px!important;
  }
  .technician-calendar-section .tc-week-day-head,
  .technician-calendar-section .tc-week-day-track{
    min-width:104px!important;
    width:104px!important;
  }
  .technician-calendar-section .tc-week-day-head{
    padding:6px 2px!important;
    scroll-snap-align:start!important;
  }
  .technician-calendar-section .tc-week-day-head b{
    font-size:9px!important;
  }
  .technician-calendar-section .tc-week-day-head span{
    font-size:11px!important;
  }
  .technician-calendar-section .tc-week-day-track{
    scroll-snap-align:start!important;
  }
  .technician-calendar-section .tc-timeline-event{
    padding:4px 5px!important;
  }
  .technician-calendar-section .tc-timeline-tech{
    font-size:8px!important;
    line-height:1.12!important;
  }

  /* Anche nella vista Giorno mantiene la stessa organizzazione data/frecce. */
  .technician-calendar-section[data-calendar-view="day"] .tc-nav,
  .technician-calendar-section[data-calendar-view="week"] .tc-nav{
    width:100%!important;
  }
}


/* V1.1.7.9.115 - data cliccabile desktop + tecnici in I miei lavori */
.tc-period-button{
  cursor:pointer!important;
  background:#f5f9fc!important;
  border:1px solid #d4e2eb!important;
  transition:background .14s ease,border-color .14s ease,box-shadow .14s ease!important;
}
.tc-period-button:hover,
.tc-period-button:focus-visible{
  background:#eaf5fb!important;
  border-color:#84b8d5!important;
  box-shadow:0 0 0 3px rgba(61,148,198,.10)!important;
}
.tc-period-button::after{
  content:"  📅";
  font-size:.9em;
}
.my-work-technicians{
  display:block!important;
  margin-top:3px!important;
  padding-top:4px!important;
  border-top:1px solid #e7eef3;
  color:#315e7b!important;
  font-weight:800!important;
}
@media(max-width:700px){
  .my-work-technicians{
    font-size:10px!important;
    line-height:1.25!important;
  }
}


/* V1.1.7.9.116 - nome cliente più leggibile negli appuntamenti */
.tc-event .tc-event-customer{
  font-size:13px!important;
  line-height:1.16!important;
  font-weight:900!important;
  letter-spacing:.01em;
}
.tc-timeline-event > strong{
  font-size:13px!important;
  line-height:1.16!important;
  font-weight:900!important;
}
@container (min-width:140px) and (min-height:78px){
  .tc-timeline-event > strong{font-size:14.5px!important}
}
@container (min-width:150px) and (min-height:115px){
  .tc-timeline-event > strong{font-size:16px!important}
}
@container (min-width:155px) and (min-height:180px){
  .tc-timeline-event > strong{font-size:17px!important}
}
@media(max-width:700px){
  .tc-timeline-event > strong{
    font-size:10px!important;
    line-height:1.14!important;
  }
  .tc-event .tc-event-customer{
    font-size:11px!important;
  }
}


/* V1.1.7.9.117 - Settimana mobile: giorno sempre fuori dalla timeline fissa */
@media(max-width:700px){
  .technician-calendar-section #tcCalendarBody{
    scroll-padding-left:42px!important;
  }
  .technician-calendar-section .tc-week-day-head,
  .technician-calendar-section .tc-week-day-track{
    scroll-margin-left:42px!important;
  }
  .technician-calendar-section .tc-week-time-head,
  .technician-calendar-section .tc-week-times{
    box-sizing:border-box!important;
    border-right:1px solid #d9e5ed!important;
    background:#fbfcfd!important;
  }
}


/* V1.1.7.9.118 - riepilogo appuntamento */
.tc-event-summary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.tc-event-summary-item{
  display:grid;
  gap:4px;
  min-width:0;
  padding:12px 13px;
  border:1px solid #d8e6ef;
  border-radius:11px;
  background:#f8fbfd;
}
.tc-event-summary-item span{
  color:#658094;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.tc-event-summary-item strong{
  color:#173d5b;
  font-size:15px;
  line-height:1.25;
  word-break:break-word;
}
.tc-event-summary-main{
  grid-column:1 / -1;
}
.tc-event-summary-main strong{
  font-size:19px;
}
.tc-summary-plate{
  font-size:18px!important;
  letter-spacing:.05em;
}

/* Targa più leggibile in tutte le viste */
.tc-event-plate{
  display:block!important;
  font-size:11.5px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
}
.tc-timeline-event .tc-event-plate{
  font-size:11px!important;
}
@container (min-width:140px) and (min-height:78px){
  .tc-timeline-event .tc-event-plate{font-size:12px!important}
}
@container (min-width:150px) and (min-height:115px){
  .tc-timeline-event .tc-event-plate{font-size:13px!important}
}

/* Mobile: il vero input date copre la data visibile.
   Il tap apre direttamente il calendario nativo. */
@media(max-width:700px){
  .technician-calendar-section .tc-nav{
    position:relative!important;
  }
  .technician-calendar-section #tcMobileDatePicker{
    position:absolute!important;
    grid-area:period!important;
    left:55px!important;
    right:55px!important;
    bottom:0!important;
    width:auto!important;
    height:46px!important;
    opacity:.001!important;
    pointer-events:auto!important;
    z-index:25!important;
    cursor:pointer!important;
  }
  .technician-calendar-section #tcPeriod{
    position:relative!important;
    z-index:20!important;
    pointer-events:none!important;
  }
  .tc-event-summary-grid{
    grid-template-columns:1fr!important;
  }
  .tc-event-summary-main{
    grid-column:auto;
  }
  .tc-event-summary-main strong{
    font-size:17px;
  }
  .tc-event-plate,
  .tc-timeline-event .tc-event-plate{
    font-size:10px!important;
  }
}


/* V1.1.7.9.119 - popup Calendario realmente fissi su mobile */
body.tc-modal-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.tc-modal-overlay{
  overflow:hidden!important;
  overscroll-behavior:contain!important;
  touch-action:pan-y!important;
}
.tc-modal{
  box-sizing:border-box!important;
  max-width:calc(100vw - 40px)!important;
  margin:0 auto!important;
  overscroll-behavior:contain!important;
  overflow-x:hidden!important;
}
.tc-event-summary-work{
  grid-column:1 / -1;
}
.tc-event-summary-work strong{
  font-size:16px;
}

@media(max-width:700px){
  html,
  body{
    max-width:100vw!important;
    overflow-x:hidden!important;
  }
  body.tc-modal-open{
    position:fixed!important;
    inset:0!important;
    width:100%!important;
  }
  .tc-modal-overlay{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    padding:10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    touch-action:pan-y!important;
  }
  .tc-modal{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - 20px)!important;
    margin:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    box-sizing:border-box!important;
  }
  .tc-event-summary-work{
    grid-column:auto!important;
  }
}


/* V1.1.7.9.120 - targa anche nel titolo del riepilogo appuntamento */
.tc-summary-title-plate{
  font-size:.78em;
  font-weight:900;
  letter-spacing:.04em;
  white-space:nowrap;
}
@media(max-width:700px){
  .tc-summary-title-plate{
    display:block;
    margin-top:2px;
    font-size:.72em;
  }
}

/* V1.0.12 - desktop: timeline settimana scrollabile senza zoom browser */
@media (min-width: 901px){
  .technician-calendar-section[data-calendar-view="week"] #tcCalendarBody{
    height:clamp(430px,calc(100dvh - 330px),760px);
    max-height:calc(100dvh - 300px);
    overflow:auto!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable both-edges;
    border-radius:12px;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline{
    overflow:visible;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-week-time-head,
  .technician-calendar-section[data-calendar-view="week"] .tc-week-day-head{
    position:sticky;
    top:0;
    z-index:30;
    box-shadow:0 1px 0 var(--tc-border);
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-week-time-head{
    left:0;
    z-index:40;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-week-times{
    position:sticky;
    left:0;
    z-index:20;
  }
  .technician-calendar-section[data-calendar-view="week"] #tcCalendarBody::-webkit-scrollbar{
    width:11px;
    height:11px;
  }
  .technician-calendar-section[data-calendar-view="week"] #tcCalendarBody::-webkit-scrollbar-thumb{
    background:#b8c8d5;
    border:3px solid #f7fafc;
    border-radius:999px;
  }
  .technician-calendar-section[data-calendar-view="week"] #tcCalendarBody::-webkit-scrollbar-track{
    background:#f7fafc;
  }
}

/* V1.0.13 - appuntamenti multi-veicolo, multi-lavorazione e servizio mobile */
.tc-inline-check{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:800;color:#29475f}
.tc-inline-check input{width:18px;height:18px;accent-color:#1269a6}
.tc-mobile-service-toggle{padding:10px 12px;border:1px solid #d8e6ef;border-radius:11px;background:#f7fbfe}
.tc-vehicles-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.tc-vehicles-title h3{margin:0 0 3px!important}.tc-vehicles-title p{margin:0;color:#71869a;font-size:12px}
#tceVehiclesEditor{display:flex;flex-direction:column;gap:12px}
.tc-vehicle-editor{border:1px solid #d7e5ee;border-radius:13px;padding:13px;background:#fff;box-shadow:0 2px 8px rgba(25,67,96,.04)}
.tc-vehicle-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px;color:#173e5f}
.tc-remove-vehicle{border:0;background:#fff0f0;color:#b52c2c;border-radius:8px;padding:6px 9px;font-size:11px;font-weight:800;cursor:pointer}
.tc-vehicle-work{margin-top:12px;padding-top:12px;border-top:1px dashed #d9e5ed}
.tc-work-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}
.tc-work-add label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:#526b80}
.tc-work-add select{border:1px solid var(--tc-border);border-radius:10px;padding:10px 11px;background:#fff;color:#203a50}
.tc-work-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.tc-work-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;border-radius:999px;background:#eaf5fc;color:#174f75;font-size:11px;font-weight:800;border:1px solid #c9e1ef}
.tc-work-chip button{border:0;background:transparent;color:#7d1f1f;font-size:16px;line-height:1;cursor:pointer;padding:0}
.tc-event-mobile{display:block;font-weight:900!important;font-size:10px!important}
.tc-summary-vehicles{display:flex;flex-direction:column;gap:9px;margin-top:10px}
.tc-summary-vehicle-card{padding:12px 13px;border:1px solid #d8e6ef;border-radius:11px;background:#fbfdff}
.tc-summary-vehicle-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#173d5b}
.tc-summary-vehicle-head>b{text-align:right}
.tc-summary-vehicle-meta{display:flex;flex-wrap:wrap;gap:12px;margin-top:7px;color:#61798d;font-size:11px}
.tc-summary-work-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.tc-summary-work-list span{padding:5px 8px;border-radius:999px;background:#edf6fb;color:#235d82;font-size:11px;font-weight:800}
@media(max-width:700px){.tc-vehicles-title{flex-direction:column}.tc-vehicles-title .btn{width:100%}.tc-work-add{grid-template-columns:1fr}.tc-work-add .btn{width:100%}.tc-summary-vehicle-head{align-items:flex-start;flex-direction:column}.tc-summary-vehicle-head>b{text-align:left}}

/* V1.0.79 — editor appuntamento moderno + scroll-lock affidabile */
.tc-appointment-editor-overlay{
  background:rgba(5,24,42,.64)!important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  padding:22px!important;
  align-items:center!important;
}
.tc-appointment-editor-modal{
  --tc-editor-blue:#0f4c81;
  --tc-editor-blue-2:#1678b8;
  --tc-editor-ink:#17344c;
  --tc-editor-muted:#6d8294;
  --tc-editor-line:#dce7ef;
  width:min(980px,calc(100vw - 44px))!important;
  max-width:980px!important;
  max-height:calc(100dvh - 44px)!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:24px!important;
  background:#f5f8fb!important;
  box-shadow:0 36px 110px rgba(3,27,47,.34)!important;
  overflow:auto!important;
  scrollbar-gutter:stable;
}
.tc-appointment-editor-modal .tc-editor-hero{
  position:sticky;
  top:0;
  z-index:80;
  display:flex;
  align-items:flex-start;
  gap:18px;
  margin:0!important;
  padding:22px 24px 20px;
  background:linear-gradient(135deg,#ffffff 0%,#f6fbff 62%,#eaf6fd 100%);
  border-bottom:1px solid var(--tc-editor-line);
  box-shadow:0 8px 22px rgba(24,69,98,.05);
}
.tc-appointment-editor-modal .tc-editor-heading{display:flex;align-items:flex-start;gap:15px;min-width:0;flex:1}
.tc-appointment-editor-modal .tc-editor-title-icon{
  width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;
  border-radius:15px;background:linear-gradient(145deg,#0f4c81,#1685c8);
  box-shadow:0 10px 24px rgba(15,76,129,.24)
}
.tc-appointment-editor-modal .tc-editor-title-icon svg{width:25px;height:25px;fill:#fff}
.tc-appointment-editor-modal .tc-editor-eyebrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:1px 0 4px}
.tc-appointment-editor-modal .tc-kicker{color:#0f6fa7;font-size:10px;letter-spacing:.15em}
.tc-appointment-editor-modal .tc-editor-context{display:inline-flex;align-items:center;min-height:23px;padding:4px 9px;border-radius:999px;background:#e7f4fb;border:1px solid #c5e3f3;color:#0b6798;font-size:10px;font-weight:850}
.tc-appointment-editor-modal .tc-modal-head h2{margin:0!important;color:#112f47!important;font-size:23px!important;letter-spacing:-.35px}
.tc-appointment-editor-modal .tc-modal-head p{margin:6px 0 0;color:#6c8294;font-size:12px;line-height:1.45;max-width:660px}
.tc-appointment-editor-modal .tc-modal-head>button{
  width:40px!important;height:40px!important;flex:0 0 40px;border:1px solid #dce7ef!important;
  border-radius:12px!important;background:#fff!important;color:#486379!important;font-size:22px!important;
  box-shadow:0 4px 12px rgba(31,69,95,.07);transition:.16s ease
}
.tc-appointment-editor-modal .tc-modal-head>button:hover{background:#eef7fc!important;color:#0f4c81!important;transform:translateY(-1px)}
.tc-appointment-editor-modal .tc-event-audit{margin-top:9px;display:flex;gap:8px;flex-wrap:wrap}
.tc-appointment-editor-modal .tc-event-audit span{padding:5px 8px;border-radius:8px;background:#fff;border:1px solid #e1eaf0;color:#708596;font-size:10px}
.tc-appointment-editor-modal .tc-editor-sections{padding:18px 20px 8px;gap:14px}
.tc-appointment-editor-modal .tc-editor-block{
  position:relative;padding:18px!important;border:1px solid #dce7ef!important;border-radius:18px!important;
  background:#fff!important;box-shadow:0 6px 20px rgba(23,58,83,.045)
}
.tc-appointment-editor-modal .tc-editor-block h3{
  display:flex;align-items:center;gap:9px;margin:0 0 15px!important;color:#183c58!important;font-size:14px!important;letter-spacing:-.1px
}
.tc-appointment-editor-modal .tc-editor-block h3::before{
  content:"";width:7px;height:7px;border-radius:50%;background:#1995cf;box-shadow:0 0 0 5px #eaf7fd
}
.tc-appointment-editor-modal .tc-form{gap:13px 14px}
.tc-appointment-editor-modal .tc-form label{gap:7px;color:#4b6579;font-size:11px;letter-spacing:.01em}
.tc-appointment-editor-modal .tc-form input:not([type="checkbox"]),
.tc-appointment-editor-modal .tc-form select,
.tc-appointment-editor-modal .tc-form textarea,
.tc-appointment-editor-modal .tc-work-add select{
  min-height:44px;border:1px solid #d4e1ea!important;border-radius:12px!important;padding:10px 12px!important;
  background:#fbfdff!important;color:#17364e!important;box-shadow:inset 0 1px 1px rgba(12,47,72,.02);
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease
}
.tc-appointment-editor-modal .tc-form textarea{min-height:96px}
.tc-appointment-editor-modal .tc-form input:not([type="checkbox"]):focus,
.tc-appointment-editor-modal .tc-form select:focus,
.tc-appointment-editor-modal .tc-form textarea:focus,
.tc-appointment-editor-modal .tc-work-add select:focus{
  outline:0;border-color:#62add5!important;background:#fff!important;box-shadow:0 0 0 4px rgba(29,139,197,.11)!important
}
.tc-appointment-editor-modal .tc-date-field{position:relative}
.tc-appointment-editor-modal .tc-date-field input{font-weight:750;color:#153a55;background:#f5fbff!important;border-color:#bcdceb!important}
.tc-appointment-editor-modal .tc-date-field input:focus{background:#fff!important}
.tc-appointment-editor-modal .tc-environment-select-wrap{border-radius:12px;overflow:hidden}
.tc-appointment-editor-modal .tc-assigned-technicians-summary{border-radius:12px;background:#f1f9fe;border-color:#c9e4f2;border-left:4px solid #269bd2;padding:10px 12px}
.tc-appointment-editor-modal .tc-tech-dropdown-trigger{min-height:44px;border-radius:12px;border-color:#d4e1ea;background:#fbfdff}
.tc-appointment-editor-modal .tc-tech-dropdown-panel{border-radius:14px;border-color:#d7e4ec;box-shadow:0 18px 45px rgba(11,49,76,.16)}
.tc-appointment-editor-modal .tc-mobile-service-toggle{padding:11px 12px;border:1px solid #dde8ef;border-radius:13px;background:#f8fbfd}
.tc-appointment-editor-modal .tc-inline-check{color:#1e455f}
.tc-appointment-editor-modal .tc-client-matches,
.tc-appointment-editor-modal .tc-practice-matches{border-radius:13px;box-shadow:0 18px 46px rgba(9,42,65,.16)}
.tc-appointment-editor-modal .tc-show-customer{border-radius:10px;background:#f4f8fb}
.tc-appointment-editor-modal .tc-vehicle-editor{border-radius:15px;border-color:#dbe7ef;background:#fbfdff;box-shadow:none}
.tc-appointment-editor-modal .tc-vehicle-editor-head strong{font-size:12px;color:#1b4968}
.tc-appointment-editor-modal .tc-work-chip{background:#eaf6fc;border-color:#c7e5f4;color:#0f5f8e;padding:7px 10px}
.tc-appointment-editor-modal .tc-appointment-palette{padding:10px 11px;border-radius:13px;background:#f8fbfd;border:1px solid #e1eaf0}
.tc-appointment-editor-modal .tc-modal-actions{
  position:sticky;bottom:0;z-index:75;margin:10px 0 0!important;padding:15px 20px calc(15px + env(safe-area-inset-bottom));
  border-top:1px solid #dce7ef;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:0 -9px 24px rgba(14,48,72,.07)
}
.tc-appointment-editor-modal .tc-modal-actions .btn{min-height:42px;border-radius:11px!important;font-weight:800;padding:10px 16px}
.tc-appointment-editor-modal .tc-modal-actions .btn-primary{background:linear-gradient(135deg,#0f4c81,#147ab7)!important;box-shadow:0 8px 18px rgba(15,76,129,.20)}
.tc-appointment-editor-modal .tc-modal-actions .btn-primary:hover{background:linear-gradient(135deg,#123e65,#0f6da6)!important;transform:translateY(-1px)}
.tc-appointment-editor-modal .tc-modal-actions .btn-light{background:#f5f8fa!important;border:1px solid #dce5ec!important;color:#405b70!important}
.tc-appointment-editor-modal .tc-delete-event-btn{background:#fff1f1!important;border:1px solid #ffd2d2!important;color:#b13232!important}

@media(max-width:700px){
  .tc-appointment-editor-overlay{padding:0!important;align-items:flex-end!important}
  .tc-appointment-editor-modal{
    width:100%!important;max-width:100%!important;max-height:94dvh!important;margin:0!important;
    border-radius:24px 24px 0 0!important;border-bottom:0!important
  }
  .tc-appointment-editor-modal .tc-editor-hero{padding:17px 16px 15px}
  .tc-appointment-editor-modal .tc-editor-title-icon{width:42px;height:42px;flex-basis:42px;border-radius:13px}
  .tc-appointment-editor-modal .tc-editor-title-icon svg{width:22px;height:22px}
  .tc-appointment-editor-modal .tc-modal-head h2{font-size:20px!important}
  .tc-appointment-editor-modal .tc-modal-head p{font-size:11px}
  .tc-appointment-editor-modal .tc-editor-sections{padding:13px 12px 6px}
  .tc-appointment-editor-modal .tc-editor-block{padding:14px!important;border-radius:15px!important}
  .tc-appointment-editor-modal .tc-form{grid-template-columns:1fr!important}
  .tc-appointment-editor-modal .tc-form label.full{grid-column:auto!important}
  .tc-appointment-editor-modal .tc-modal-actions{padding:12px;gap:7px;flex-wrap:wrap}
  .tc-appointment-editor-modal .tc-modal-actions-spacer{display:none}
  .tc-appointment-editor-modal .tc-modal-actions .btn{flex:1 1 130px}
  .tc-appointment-editor-modal .tc-delete-event-btn{order:3;flex-basis:100%!important}
}

/* V1.0.80 — selettore data/ora moderno + fine automatica a +30 minuti */
.tc-appointment-editor-modal .tc-date-field{gap:7px}
.tc-datetime-trigger{
  width:100%;min-height:48px;display:flex;align-items:center;gap:10px;padding:9px 12px;
  border:1px solid #bcdceb;border-radius:12px;background:#f5fbff;color:#153a55;
  font:inherit;font-weight:800;text-align:left;cursor:pointer;transition:.16s ease;
  box-shadow:inset 0 1px 1px rgba(12,47,72,.02)
}
.tc-datetime-trigger:hover{background:#fff;border-color:#7ec0df;box-shadow:0 0 0 4px rgba(29,139,197,.08)}
.tc-datetime-trigger:focus-visible{outline:0;background:#fff;border-color:#62add5;box-shadow:0 0 0 4px rgba(29,139,197,.12)}
.tc-datetime-trigger-icon{
  width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;
  background:#e5f4fb;font-size:15px
}
.tc-datetime-trigger [data-tc-datetime-label]{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-datetime-trigger-arrow{font-size:22px;color:#6b8aa0;transform:rotate(90deg);line-height:1}
.tc-datetime-picker-layer{
  position:fixed;inset:0;z-index:260500!important;display:flex;align-items:center;justify-content:center;padding:24px;
  background:rgba(4,26,43,.32);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)
}
.tc-datetime-picker-card{
  width:min(620px,calc(100vw - 40px));max-height:min(690px,calc(100dvh - 40px));overflow:hidden;
  border:1px solid rgba(255,255,255,.78);border-radius:22px;background:#fff;
  box-shadow:0 30px 90px rgba(2,29,48,.32);color:#17364e
}
.tc-datetime-picker-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px 14px;border-bottom:1px solid #e1ebf2;background:linear-gradient(135deg,#fff,#f0f9fe)}
.tc-datetime-picker-head h4{margin:3px 0 0;font-size:19px;color:#143a56;letter-spacing:-.2px}
.tc-datetime-kicker{font-size:9px;font-weight:900;letter-spacing:.16em;color:#1178ae}
.tc-datetime-close{width:36px;height:36px;border:1px solid #d9e7ef;border-radius:11px;background:#fff;color:#48677d;font-size:22px;cursor:pointer}
.tc-datetime-close:hover{background:#eef8fd;color:#0e6392}
.tc-datetime-picker-body{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:0;min-height:390px}
.tc-datetime-calendar{padding:18px 20px 15px;border-right:1px solid #e5edf3}
.tc-datetime-monthbar{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;margin-bottom:13px}
.tc-datetime-monthbar strong{text-align:center;text-transform:capitalize;font-size:14px;color:#173b56}
.tc-datetime-monthbar button{width:38px;height:38px;border:1px solid #dce8ef;border-radius:11px;background:#f8fbfd;color:#315b77;font-size:24px;line-height:1;cursor:pointer}
.tc-datetime-monthbar button:hover{background:#eaf6fc;border-color:#b7dceb;color:#0d6d9f}
.tc-datetime-weekdays,.tc-datetime-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.tc-datetime-weekdays{margin-bottom:6px}
.tc-datetime-weekdays span{text-align:center;color:#8195a5;font-size:10px;font-weight:850;text-transform:uppercase}
.tc-datetime-days button{
  aspect-ratio:1/1;min-width:0;border:0;border-radius:10px;background:transparent;color:#29485f;
  font-size:12px;font-weight:750;cursor:pointer;position:relative
}
.tc-datetime-days button:hover{background:#eaf6fc;color:#0c6494}
.tc-datetime-days button.is-outside{color:#b6c2cb;font-weight:650}
.tc-datetime-days button.is-today::after{content:"";position:absolute;left:50%;bottom:4px;width:4px;height:4px;border-radius:50%;background:#1d91c8;transform:translateX(-50%)}
.tc-datetime-days button.is-selected{background:linear-gradient(145deg,#0f5f93,#188bc6);color:#fff;box-shadow:0 7px 15px rgba(15,95,147,.24)}
.tc-datetime-days button.is-selected::after{background:#fff}
.tc-datetime-today{margin-top:12px;border:0;background:transparent;color:#0f75aa;font-size:11px;font-weight:850;cursor:pointer;padding:6px 2px}
.tc-datetime-time{padding:18px 15px;background:#f8fbfd;min-width:0}
.tc-datetime-time-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}
.tc-datetime-time-title span{font-size:11px;font-weight:850;color:#667f92}
.tc-datetime-time-title strong{font-size:17px;color:#0f5f8f}
.tc-datetime-time-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tc-datetime-time-columns>div>small{display:block;margin:0 0 6px;text-align:center;color:#8a9ba9;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.tc-datetime-scroll{height:295px;overflow:auto;display:flex;flex-direction:column;gap:5px;padding:2px 3px;scrollbar-width:thin;scrollbar-color:#bdd1de transparent}
.tc-datetime-scroll button{min-height:34px;border:1px solid transparent;border-radius:9px;background:transparent;color:#456276;font-size:12px;font-weight:800;cursor:pointer}
.tc-datetime-scroll button:hover{background:#e7f4fb;color:#0d6696}
.tc-datetime-scroll button.is-active{background:#dff2fc;border-color:#aad9ee;color:#0b6798;box-shadow:0 4px 10px rgba(19,119,168,.09)}
.tc-datetime-picker-actions{display:flex;justify-content:flex-end;gap:9px;padding:13px 18px;border-top:1px solid #e3edf3;background:#fff}
.tc-datetime-picker-actions .btn{min-height:40px;border-radius:10px!important;font-weight:850;padding:9px 16px}
.tc-datetime-picker-actions .btn-primary{background:linear-gradient(135deg,#0f4c81,#147ab7)!important;color:#fff!important}

@media(max-width:700px){
 .tc-datetime-picker-layer{padding:0;align-items:flex-end;background:rgba(4,26,43,.42)}
 .tc-datetime-picker-card{width:100%;max-height:92dvh;border-radius:22px 22px 0 0;border-bottom:0;overflow:auto}
 .tc-datetime-picker-head{position:sticky;top:0;z-index:2;padding:15px 16px 12px}
 .tc-datetime-picker-body{grid-template-columns:1fr;min-height:0}
 .tc-datetime-calendar{padding:15px 14px 12px;border-right:0;border-bottom:1px solid #e5edf3}
 .tc-datetime-days{gap:3px}
 .tc-datetime-days button{aspect-ratio:auto;min-height:38px;border-radius:9px}
 .tc-datetime-time{padding:13px 14px}
 .tc-datetime-scroll{height:128px}
 .tc-datetime-picker-actions{position:sticky;bottom:0;z-index:2;padding:11px 12px calc(11px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}
 .tc-datetime-picker-actions .btn{flex:1}
}
.tc-datetime-trigger:disabled{opacity:.58;cursor:not-allowed;background:#f3f6f8;border-color:#dce5eb;box-shadow:none}
.tc-datetime-auto-note{display:block;margin-top:1px;color:#7890a2!important;font-size:9.5px!important;font-weight:650;line-height:1.35}


/* V1.0.81 — picker sopra il modal + campi appuntamento riequilibrati */
.tc-datetime-picker-layer{
  isolation:isolate;
}
.tc-datetime-picker-card{
  position:relative;
  z-index:1;
}
.tc-appointment-editor-modal .tc-form{
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:16px;
  row-gap:14px;
}
.tc-appointment-editor-modal .tc-form>label{
  min-width:0;
}
.tc-appointment-editor-modal .tc-form input:not([type="checkbox"]):not([type="color"]),
.tc-appointment-editor-modal .tc-form select,
.tc-appointment-editor-modal .tc-form textarea,
.tc-appointment-editor-modal .tc-datetime-trigger{
  width:100%;
  box-sizing:border-box;
}
.tc-appointment-editor-modal .tc-form input:not([type="checkbox"]):not([type="color"]),
.tc-appointment-editor-modal .tc-form select{
  min-height:48px;
}
.tc-appointment-editor-modal .tc-datetime-trigger{
  min-height:50px;
  padding-left:14px;
  padding-right:14px;
}
.tc-appointment-editor-modal .tc-date-field .tc-datetime-auto-note{
  min-height:13px;
}
@media(max-width:820px){
  .tc-appointment-editor-modal .tc-form{grid-template-columns:1fr!important}
  .tc-appointment-editor-modal .tc-form label.full{grid-column:auto!important}
}

/* V1.0.82 — layout editor corretto + picker unico Inizio/Fine e scroll isolato */
body.tc-datetime-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.tc-datetime-picker-layer{
  overscroll-behavior:none!important;
  touch-action:none;
}
.tc-datetime-picker-card{
  display:flex;
  flex-direction:column;
  min-height:0;
}
.tc-datetime-picker-head{
  flex:0 0 auto;
}
.tc-datetime-range-tabs{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:12px 18px;
  background:#f8fbfd;
  border-bottom:1px solid #e3edf3;
}
.tc-datetime-range-tab{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 12px;
  border:1px solid #dbe7ef;
  border-radius:12px;
  background:#fff;
  color:#668095;
  text-align:left;
  cursor:pointer;
  transition:.16s ease;
}
.tc-datetime-range-tab span{
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.tc-datetime-range-tab strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  color:#294b63;
}
.tc-datetime-range-tab:hover{
  border-color:#acd7ea;
  background:#f3faff;
}
.tc-datetime-range-tab.is-active{
  border-color:#50a7d2;
  background:#eaf7fd;
  box-shadow:0 0 0 3px rgba(35,145,198,.09);
}
.tc-datetime-range-tab.is-active span,
.tc-datetime-range-tab.is-active strong{
  color:#0c6697;
}
.tc-datetime-picker-body{
  flex:1 1 auto;
  min-height:0!important;
  overflow:auto;
  overscroll-behavior:contain;
  touch-action:pan-y;
  scrollbar-gutter:stable;
}
.tc-datetime-calendar,
.tc-datetime-time{
  min-height:0;
}
.tc-datetime-scroll{
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.tc-datetime-picker-actions{
  flex:0 0 auto;
}
.tc-datetime-time-title b{
  color:#0f75aa;
  font-weight:900;
}

/* Il markup Stato della V1.0.81 lasciava i campi successivi annidati nella colonna destra.
   Con la chiusura corretta della label, questa griglia torna realmente bilanciata. */
.tc-appointment-editor-modal .tc-form > label.full{
  grid-column:1 / -1;
}
.tc-appointment-editor-modal .tc-form > .tc-date-field{
  grid-column:auto;
}
.tc-appointment-editor-modal .tc-assigned-technicians-summary,
.tc-appointment-editor-modal .tc-tech-dropdown,
.tc-appointment-editor-modal .tc-tech-dropdown-trigger{
  width:100%;
  box-sizing:border-box;
}

@media(max-width:700px){
  .tc-datetime-picker-layer{touch-action:none}
  .tc-datetime-picker-card{overflow:hidden!important}
  .tc-datetime-picker-body{overflow:auto!important;touch-action:pan-y!important}
  .tc-datetime-range-tabs{padding:10px 12px;gap:7px}
  .tc-datetime-range-tab{padding:9px 10px}
  .tc-datetime-range-tab strong{font-size:10px}
}


/* V1.0.83 — navigazione calendario con picker moderno */
body.tc-calendar-jump-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.technician-calendar-section .tc-period-button{
  cursor:pointer!important;
  min-width:210px!important;
  min-height:40px;
  padding:8px 13px!important;
  border:1px solid #bed9e8!important;
  background:linear-gradient(180deg,#ffffff,#f4faff)!important;
  color:#153b57!important;
  border-radius:11px!important;
  box-shadow:0 2px 7px rgba(22,72,105,.05);
  transition:.16s ease;
}
.technician-calendar-section .tc-period-button:hover{
  border-color:#7dbddd!important;
  background:#f0f9fe!important;
  box-shadow:0 0 0 4px rgba(31,143,198,.08);
}
.technician-calendar-section .tc-period-button::after{
  content:'  ▾';
  color:#4d86a8;
  font-size:11px;
}
.tc-calendar-jump-layer{
  z-index:260700!important;
}
.tc-calendar-jump-card{
  width:min(470px,calc(100vw - 34px))!important;
  max-height:min(650px,calc(100dvh - 34px))!important;
}
.tc-calendar-jump-card .tc-datetime-picker-head{
  align-items:flex-start;
}
.tc-calendar-jump-selected{
  display:block;
  margin-top:5px;
  color:#637f93;
  font-size:11px;
  font-weight:750;
  text-transform:capitalize;
}
.tc-calendar-jump-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.tc-calendar-jump-card .tc-datetime-calendar{
  border-right:0!important;
  padding:19px 20px 17px;
}
.tc-calendar-jump-card .tc-datetime-days button{
  min-height:43px;
}
.tc-calendar-jump-card .tc-datetime-picker-actions{
  position:relative;
  z-index:2;
}
@media(max-width:700px){
  .technician-calendar-section .tc-period-button{min-width:0!important}
  .technician-calendar-section .tc-period-button::after{content:'  📅';font-size:11px}
  .tc-calendar-jump-layer{align-items:flex-end!important;padding:0!important}
  .tc-calendar-jump-card{width:100%!important;max-width:none!important;max-height:88dvh!important;border-radius:22px 22px 0 0!important;border-bottom:0!important}
  .tc-calendar-jump-card .tc-datetime-picker-head{position:sticky;top:0;z-index:3}
  .tc-calendar-jump-card .tc-datetime-calendar{padding:15px 14px 12px}
  .tc-calendar-jump-card .tc-datetime-picker-actions{position:sticky;bottom:0;padding-bottom:calc(11px + env(safe-area-inset-bottom))}
}

/* V1.0.84 — calendario desktop compatto, mini-calendario laterale e navigazione mese/anno */
.tc-calendar-jump-calendar{position:relative}
.tc-calendar-jump-card .tc-jump-month-title{
  flex:1 1 auto;
  min-height:38px;
  border:0!important;
  background:transparent!important;
  border-radius:10px!important;
  color:#153b57!important;
  font:inherit;
  font-size:14px!important;
  font-weight:900!important;
  text-transform:capitalize;
  cursor:pointer;
  padding:7px 10px!important;
}
.tc-calendar-jump-card .tc-jump-month-title:hover,
.tc-calendar-jump-card .tc-jump-month-title[aria-expanded="true"]{
  background:#eef7fc!important;
  color:#0b6ea9!important;
}
.tc-calendar-jump-card .tc-jump-month-title::after{content:'  ▾';font-size:10px;color:#5f8eaa}
.tc-jump-monthyear-panel[hidden]{display:none!important}
.tc-jump-monthyear-panel{
  position:absolute;
  z-index:12;
  left:14px;
  right:14px;
  top:62px;
  padding:14px;
  border:1px solid #d7e5ee;
  border-radius:15px;
  background:#fff;
  box-shadow:0 18px 44px rgba(17,54,79,.20);
}
.tc-jump-year-row{display:grid;grid-template-columns:38px 1fr 38px;gap:8px;align-items:end;margin-bottom:12px}
.tc-jump-year-row>button{
  height:40px;border:1px solid #d5e2eb;border-radius:10px;background:#f7fafc;color:#173e5f;font-size:24px;font-weight:800;cursor:pointer
}
.tc-jump-year-row label{display:grid;gap:4px;font-size:10px;font-weight:900;letter-spacing:.05em;color:#6a8091;text-transform:uppercase}
.tc-jump-year-row input{width:100%;height:40px;border:1px solid #cbdce7;border-radius:10px;padding:0 10px;background:#fff;color:#173e5f;font:inherit;font-weight:900;text-align:center}
.tc-jump-month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.tc-jump-month-grid button{min-height:38px;border:1px solid #dbe6ee;border-radius:10px;background:#f8fbfd;color:#274b65;font-weight:800;text-transform:capitalize;cursor:pointer}
.tc-jump-month-grid button:hover{background:#eef7fc;border-color:#9bc8df}
.tc-jump-month-grid button.is-active{background:#0f79b6;color:#fff;border-color:#0f79b6;box-shadow:0 4px 12px rgba(15,121,182,.18)}
.tc-calendar-jump-today{
  width:100%!important;
  min-height:46px!important;
  margin-top:13px!important;
  border:1px solid #acd2e6!important;
  border-radius:12px!important;
  background:#eef8fd!important;
  color:#096ca5!important;
  font-size:14px!important;
  font-weight:900!important;
  text-align:center!important;
  cursor:pointer!important;
}
.tc-calendar-jump-today:hover{background:#e1f3fc!important;border-color:#75b8da!important}

.technician-calendar-section .tc-head-compact{align-items:center;margin-bottom:10px}
.technician-calendar-section .tc-head-compact h1{font-size:25px;line-height:1.1;margin:2px 0 2px}
.technician-calendar-section .tc-head-compact p{font-size:12px}
.technician-calendar-section .tc-create-event-btn{min-width:112px;min-height:42px;border-radius:11px!important;font-weight:900!important;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.technician-calendar-section .tc-create-event-btn>span{font-size:21px;line-height:1}
.tc-calendar-workspace{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:14px;align-items:start;min-width:0}
.tc-calendar-main{min-width:0}
.tc-calendar-side{
  position:sticky;
  top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.tc-side-mini-calendar{
  padding:12px;
  border:1px solid #d9e5ed;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 18px rgba(20,54,78,.06);
}
.tc-side-calendar-head{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:5px;align-items:center;margin-bottom:8px}
.tc-side-calendar-head>button{height:34px;border:0;border-radius:9px;background:#f4f8fb;color:#173e5f;font-size:19px;font-weight:900;cursor:pointer}
.tc-side-calendar-head>button:hover{background:#eaf4fa}
.tc-side-calendar-head #tcSideCalendarMonth{font-size:12px;text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-side-calendar-head #tcSideCalendarMonth::after{content:' ▾';font-size:9px;color:#6c91a8}
.tc-side-weekdays,.tc-side-calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.tc-side-weekdays{margin-bottom:3px}
.tc-side-weekdays span{text-align:center;font-size:9px;font-weight:900;color:#8194a3;padding:3px 0}
.tc-side-calendar-days button{
  aspect-ratio:1/1;
  min-width:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#29475d;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.tc-side-calendar-days button:hover{background:#eef6fb}
.tc-side-calendar-days button.is-outside{color:#b3c0ca}
.tc-side-calendar-days button.is-today{box-shadow:inset 0 0 0 1px #68add2;color:#0b6fa8}
.tc-side-calendar-days button.is-selected{background:#0e78b5!important;color:#fff!important;box-shadow:0 4px 10px rgba(14,120,181,.20)!important}
.tc-side-today{width:100%;margin-top:9px;min-height:34px;border:1px solid #d4e4ed;border-radius:9px;background:#f7fbfd;color:#0f6fa6;font-weight:900;cursor:pointer}
.tc-side-today:hover{background:#edf8fd;border-color:#9dcee5}
.tc-side-tools{display:flex;justify-content:center;gap:9px;padding:9px;border:1px solid #d9e5ed;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(20,54,78,.05)}
.tc-side-tool{
  position:relative;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border:1px solid #d7e3eb;
  border-radius:12px;
  background:#f7fafc;
  color:#31536b;
  cursor:pointer;
  transition:.14s ease;
}
.tc-side-tool svg{width:23px;height:23px;fill:currentColor}
.tc-side-tool:hover,.tc-side-tool.active{background:#eaf6fc;border-color:#8ac2df;color:#0878b5;transform:translateY(-1px)}
.tc-side-tool::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translate(-50%,4px);
  z-index:50;
  padding:6px 8px;
  border-radius:7px;
  background:#15364e;
  color:#fff;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:.12s ease;
}
.tc-side-tool:hover::after,.tc-side-tool:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.tc-side-search-panel{padding:9px;border:1px solid #d9e5ed;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(20,54,78,.06)}
.tc-side-search-panel[hidden]{display:none!important}
.tc-side-search-panel .tc-calendar-search{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.tc-side-search-panel .tc-calendar-search input{min-height:42px!important;padding-left:34px!important;border:1px solid #d4e3ec!important;border-radius:10px!important;background:#f9fbfc!important}
.tc-side-search-panel .tc-calendar-search .tc-search-icon{left:11px!important}
.tc-side-search-panel .tc-calendar-search-results{position:static!important;margin-top:7px;max-height:260px!important;box-shadow:none!important;border-radius:10px!important}
.tc-side-search-panel .tc-calendar-search-results button{grid-template-columns:1fr!important;gap:3px!important}
.tc-side-search-panel .tc-calendar-search-results small{text-align:left!important}

@media(min-width:1051px){
  .technician-calendar-section .tc-toolbar{
    grid-template-columns:auto minmax(360px,1fr) auto!important;
    gap:10px!important;
    padding:8px 10px!important;
    margin-bottom:8px!important;
    border-radius:13px!important;
  }
  .technician-calendar-section .tc-view-switch button,
  .technician-calendar-section .tc-nav>button:not(.tc-period-button){padding:7px 10px!important;min-height:36px!important}
  .technician-calendar-section .tc-nav{gap:5px!important}
  .technician-calendar-section .tc-period-button{min-width:195px!important;min-height:36px!important;padding:6px 10px!important}
  .technician-calendar-section .tc-center-filter select{min-height:36px!important}
  .technician-calendar-section #tcCalendarBody{
    height:calc(100dvh - 292px)!important;
    min-height:560px!important;
    max-height:760px!important;
    overflow:auto!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    border-radius:13px;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-week-time-head,
  .technician-calendar-section[data-calendar-view="week"] .tc-week-day-head{
    position:sticky!important;
    top:0!important;
    z-index:24!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-week-time-head{z-index:25!important}
  .technician-calendar-section .tc-week-day-head{padding:7px 5px!important}
  .technician-calendar-section .tc-week-times span{font-size:9px!important}
}

@media(max-width:1200px) and (min-width:1051px){
  .tc-calendar-workspace{grid-template-columns:minmax(0,1fr) 222px;gap:10px}
  .tc-side-mini-calendar{padding:9px}
  .tc-side-calendar-days button{font-size:9px}
}

@media(max-width:1050px){
  .tc-calendar-workspace{display:flex;flex-direction:column;gap:9px}
  .tc-calendar-side{position:static;order:-1;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;width:100%}
  .tc-side-mini-calendar{display:none!important}
  .tc-side-tools{grid-column:2;padding:6px;margin:0;border-radius:12px;box-shadow:none}
  .tc-side-tool{width:42px;height:42px}
  .tc-side-tool svg{width:20px;height:20px}
  .tc-side-search-panel{grid-column:1/-1;width:100%;box-sizing:border-box}
  .technician-calendar-section .tc-head-compact{flex-direction:row!important}
  .technician-calendar-section .tc-head-compact p{display:none}
}
@media(max-width:700px){
  .technician-calendar-section .tc-head-compact h1{font-size:20px}
  .technician-calendar-section .tc-head-compact .tc-kicker{font-size:9px}
  .technician-calendar-section .tc-create-event-btn{min-width:88px;min-height:38px;padding:0 10px!important}
  .tc-side-tools{width:100%;grid-column:1/-1;justify-content:flex-end}
  .tc-calendar-jump-card .tc-jump-month-title{font-size:13px!important}
  .tc-jump-monthyear-panel{left:8px;right:8px;top:58px;padding:11px}
  .tc-jump-month-grid{gap:5px}
  .tc-jump-month-grid button{min-height:36px;font-size:11px}
}
.tc-calendar-jump-card .tc-datetime-monthbar .tc-jump-month-title{width:auto!important;height:auto!important;line-height:1.2!important}

/* V1.0.85 — mini calendario a sinistra, indicatori appuntamenti e comandi principali più evidenti */
@media(min-width:1051px){
  .tc-calendar-workspace{
    grid-template-columns:248px minmax(0,1fr)!important;
  }
  .tc-calendar-side{
    grid-column:1!important;
    grid-row:1!important;
  }
  .tc-calendar-main{
    grid-column:2!important;
    grid-row:1!important;
  }
  .technician-calendar-section .tc-create-event-btn{
    min-width:150px!important;
    min-height:48px!important;
    padding:0 20px!important;
    border-radius:13px!important;
    font-size:14px!important;
    box-shadow:0 7px 18px rgba(12,94,143,.18)!important;
  }
  .technician-calendar-section .tc-create-event-btn>span{
    font-size:25px!important;
    margin-top:-1px;
  }
  .technician-calendar-section #tcToday{
    min-width:86px!important;
    min-height:42px!important;
    padding:0 17px!important;
    border:1px solid #0b6fa8!important;
    border-radius:11px!important;
    background:linear-gradient(180deg,#1383bd,#0d6fa7)!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:900!important;
    box-shadow:0 5px 13px rgba(13,111,167,.18)!important;
  }
  .technician-calendar-section #tcToday:hover{
    background:linear-gradient(180deg,#0f77b0,#0a6397)!important;
    transform:translateY(-1px);
  }
}

.tc-side-calendar-days button{
  position:relative;
  overflow:visible;
}
.tc-side-event-dot{
  position:absolute;
  left:50%;
  bottom:2px;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--tc-day-dot,#1684bd);
  transform:translateX(-50%);
  box-shadow:0 0 0 1px rgba(255,255,255,.85);
  pointer-events:none;
}
.tc-side-calendar-days button.is-selected .tc-side-event-dot{
  background:#fff;
  box-shadow:0 0 0 1px rgba(11,91,136,.28);
}
.tc-side-calendar-days button.is-outside .tc-side-event-dot{
  opacity:.5;
}

.tc-side-search-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.tc-side-search-head strong{
  color:#173e5f;
  font-size:12px;
  font-weight:900;
}
.tc-side-search-head button{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 30px;
  border:1px solid #d6e3eb;
  border-radius:9px;
  background:#f7fafc;
  color:#476377;
  font-size:19px;
  line-height:1;
  font-weight:700;
  cursor:pointer;
}
.tc-side-search-head button:hover{
  background:#eef6fb;
  border-color:#aacfe2;
  color:#0b74ad;
}

@media(max-width:1200px) and (min-width:1051px){
  .tc-calendar-workspace{
    grid-template-columns:222px minmax(0,1fr)!important;
  }
}

@media(max-width:1050px){
  .tc-calendar-main,
  .tc-calendar-side{
    grid-column:auto!important;
    grid-row:auto!important;
  }
}

/* V1.0.86 — titolo e comandi nella colonna sinistra, calendario operativo più alto, mobile rifinito */
.tc-side-brand{
  padding:2px 4px 0;
  min-width:0;
}
.tc-side-brand .tc-kicker{
  display:block;
  margin-bottom:3px;
  font-size:10px;
  letter-spacing:.14em;
}
.tc-side-brand h1{
  margin:0;
  color:#173e5f;
  font-size:21px;
  line-height:1.08;
  letter-spacing:-.02em;
}
.tc-side-brand p{
  margin:5px 0 0;
  color:#6b8194;
  font-size:11px;
  line-height:1.35;
}
.tc-side-create{width:100%}
.tc-side-create .tc-create-event-btn{
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  padding:0 14px!important;
  border-radius:13px!important;
  font-size:13px!important;
  box-shadow:0 7px 18px rgba(12,94,143,.16)!important;
}
.tc-side-create .tc-create-event-btn>span{font-size:23px!important}

@media(min-width:1051px){
  .technician-calendar-section .tc-calendar-workspace{
    grid-template-columns:248px minmax(0,1fr)!important;
    gap:14px!important;
    align-items:start!important;
  }
  .technician-calendar-section .tc-calendar-side{
    top:8px!important;
    gap:9px!important;
  }
  .technician-calendar-section .tc-calendar-main{
    padding-top:0!important;
  }
  .technician-calendar-section .tc-toolbar{
    margin-top:0!important;
    margin-bottom:8px!important;
  }
  .technician-calendar-section #tcCalendarBody{
    height:calc(100dvh - 228px)!important;
    min-height:610px!important;
    max-height:calc(100dvh - 214px)!important;
  }
}

@media(max-width:1200px) and (min-width:1051px){
  .technician-calendar-section .tc-calendar-workspace{
    grid-template-columns:222px minmax(0,1fr)!important;
  }
  .tc-side-brand h1{font-size:19px}
  .tc-side-brand p{font-size:10px}
}

/* Tablet: titolo e azioni compatti sopra al calendario operativo. */
@media(max-width:1050px){
  .technician-calendar-section .tc-calendar-workspace{
    display:flex!important;
    flex-direction:column!important;
    gap:9px!important;
  }
  .technician-calendar-section .tc-calendar-side{
    order:-1!important;
    position:static!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "brand brand"
      "create tools"
      "search search"!important;
    gap:8px!important;
    align-items:center!important;
  }
  .technician-calendar-section .tc-side-brand{
    grid-area:brand!important;
    padding:0 2px!important;
  }
  .technician-calendar-section .tc-side-brand p{display:none!important}
  .technician-calendar-section .tc-side-mini-calendar{display:none!important}
  .technician-calendar-section .tc-side-create{
    grid-area:create!important;
    width:min(310px,100%)!important;
  }
  .technician-calendar-section .tc-side-tools{
    grid-area:tools!important;
    width:auto!important;
    grid-column:auto!important;
    justify-content:flex-end!important;
    padding:5px!important;
    margin:0!important;
  }
  .technician-calendar-section .tc-side-search-panel{
    grid-area:search!important;
    grid-column:auto!important;
    width:100%!important;
  }
  .technician-calendar-section .tc-toolbar{
    margin-top:0!important;
  }
}

/* Smartphone: niente sovrapposizioni, comandi grandi e calendario subito operativo. */
@media(max-width:700px){
  .technician-calendar-section{
    padding-top:8px!important;
  }
  .technician-calendar-section .tc-calendar-workspace{gap:8px!important}
  .technician-calendar-section .tc-calendar-side{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-areas:
      "brand"
      "create"
      "tools"
      "search"!important;
    gap:7px!important;
  }
  .technician-calendar-section .tc-side-brand{
    display:flex!important;
    align-items:baseline!important;
    gap:7px!important;
    min-width:0!important;
    padding:0 1px!important;
  }
  .technician-calendar-section .tc-side-brand .tc-kicker{
    flex:0 0 auto!important;
    margin:0!important;
    font-size:8px!important;
    letter-spacing:.10em!important;
  }
  .technician-calendar-section .tc-side-brand h1{
    min-width:0!important;
    margin:0!important;
    font-size:18px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .technician-calendar-section .tc-side-create{
    width:100%!important;
  }
  .technician-calendar-section .tc-side-create .tc-create-event-btn{
    width:100%!important;
    min-height:46px!important;
    font-size:13px!important;
  }
  .technician-calendar-section .tc-side-tools{
    width:100%!important;
    justify-content:space-between!important;
    gap:7px!important;
    padding:6px!important;
  }
  .technician-calendar-section .tc-side-tool{
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    height:44px!important;
  }
  .technician-calendar-section .tc-side-tool::after{display:none!important}
  .technician-calendar-section .tc-toolbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding:9px!important;
    margin-bottom:7px!important;
    border-radius:13px!important;
  }
  .technician-calendar-section .tc-view-switch{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:5px!important;
    width:100%!important;
  }
  .technician-calendar-section .tc-view-switch button{
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    padding:6px 4px!important;
    font-size:12px!important;
  }
  .technician-calendar-section .tc-nav{
    grid-template-columns:44px minmax(0,1fr) 44px!important;
    grid-template-areas:
      "today today today"
      "prev period next"!important;
    gap:6px!important;
  }
  .technician-calendar-section #tcToday{
    min-height:40px!important;
    border:1px solid #0b6fa8!important;
    border-radius:10px!important;
    background:linear-gradient(180deg,#1383bd,#0d6fa7)!important;
    color:#fff!important;
    box-shadow:0 4px 11px rgba(13,111,167,.16)!important;
  }
  .technician-calendar-section #tcPrev,
  .technician-calendar-section #tcNext{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    border-radius:10px!important;
  }
  .technician-calendar-section #tcPeriod{
    min-height:44px!important;
    font-size:12px!important;
  }
  .technician-calendar-section .tc-center-filter{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:7px!important;
    width:100%!important;
  }
  .technician-calendar-section .tc-center-filter select{width:100%!important}
  .technician-calendar-section #tcCalendarBody{
    width:100%!important;
    min-height:58dvh!important;
    max-height:none!important;
    border-radius:12px!important;
  }
}

/* V1.0.87 — responsive mobile reale del Calendario; desktop invariato */
@media(max-width:700px){
  /* Nessun figlio deve poter allargare la pagina oltre il viewport. */
  .technician-calendar-section,
  .technician-calendar-section .tc-calendar-workspace,
  .technician-calendar-section .tc-calendar-main,
  .technician-calendar-section .tc-calendar-side,
  .technician-calendar-section .tc-toolbar{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .technician-calendar-section{
    overflow-x:hidden!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }
  .technician-calendar-section .tc-calendar-workspace,
  .technician-calendar-section .tc-calendar-main{
    overflow:visible!important;
  }

  /* Testata laterale trasformata in testata mobile compatta. */
  .technician-calendar-section .tc-side-brand{
    width:100%!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:6px!important;
    padding:1px 2px!important;
  }
  .technician-calendar-section .tc-side-brand .tc-kicker{
    font-size:7.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  .technician-calendar-section .tc-side-brand h1{
    width:100%!important;
    min-width:0!important;
    font-size:16px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* Crea e strumenti sempre dentro il viewport. */
  .technician-calendar-section .tc-side-create,
  .technician-calendar-section .tc-side-tools,
  .technician-calendar-section .tc-side-search-panel{
    min-width:0!important;
    max-width:100%!important;
  }
  .technician-calendar-section .tc-side-create .tc-create-event-btn{
    min-height:43px!important;
    border-radius:11px!important;
  }
  .technician-calendar-section .tc-side-tools{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  /* Barra principale: tre viste sempre visibili e nessuna uscita laterale. */
  .technician-calendar-section .tc-toolbar{
    overflow:hidden!important;
    padding:7px!important;
    gap:7px!important;
  }
  .technician-calendar-section .tc-view-switch{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .technician-calendar-section .tc-view-switch button{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  /* Oggi + frecce + periodo: il testo lungo non forza più la larghezza. */
  .technician-calendar-section .tc-nav{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    gap:5px!important;
  }
  .technician-calendar-section #tcPrev,
  .technician-calendar-section #tcNext{
    width:40px!important;
    min-width:40px!important;
    height:42px!important;
  }
  .technician-calendar-section #tcPeriod{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:42px!important;
    min-height:42px!important;
    padding:7px 5px!important;
    font-size:11px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .technician-calendar-section #tcPeriod::after{font-size:9px!important}
  .technician-calendar-section #tcToday{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:39px!important;
  }
  .technician-calendar-section .tc-center-filter{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-template-columns:36px minmax(0,1fr)!important;
  }
  .technician-calendar-section .tc-center-filter label{
    font-size:10px!important;
  }
  .technician-calendar-section .tc-center-filter select{
    min-width:0!important;
    max-width:100%!important;
    font-size:11px!important;
  }

  /* Il corpo usa la larghezza disponibile; solo la Settimana scorre orizzontalmente. */
  .technician-calendar-section #tcCalendarBody{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .technician-calendar-section:not([data-calendar-view="week"]) #tcCalendarBody{
    overflow-x:hidden!important;
    scroll-snap-type:none!important;
  }
  .technician-calendar-section[data-calendar-view="week"] #tcCalendarBody{
    overflow-x:auto!important;
  }

  /* Vista Mese: tutti e 7 i giorni stanno nello schermo. */
  .technician-calendar-section[data-calendar-view="month"] .tc-weekdays,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-weekdays{
    padding:0 1px!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-weekdays span{
    min-width:0!important;
    padding:5px 0!important;
    font-size:8px!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-day-cell{
    min-width:0!important;
    min-height:70px!important;
    padding:3px!important;
    overflow:hidden!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-day-number{
    width:22px!important;
    height:22px!important;
    font-size:9px!important;
    margin:0 auto!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-day-events{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:flex-start!important;
    justify-content:center!important;
    align-content:flex-start!important;
    gap:3px!important;
    margin-top:4px!important;
    min-width:0!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-event-row,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-event-row.paired{
    display:contents!important;
  }
  /* Su mobile un appuntamento mensile è un punto toccabile: evita testo illeggibile. */
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event{
    display:block!important;
    flex:0 0 10px!important;
    width:10px!important;
    min-width:10px!important;
    max-width:10px!important;
    height:10px!important;
    min-height:10px!important;
    max-height:10px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:999px!important;
    background:var(--event-color,#287bb9)!important;
    box-shadow:0 0 0 1px rgba(255,255,255,.88),0 1px 3px rgba(16,55,80,.18)!important;
    overflow:hidden!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event > *{
    display:none!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-more-events{
    flex:0 0 100%!important;
    width:100%!important;
    margin-top:1px!important;
    text-align:center!important;
    font-size:7px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* Giorno: niente card più larghe del telefono. */
  .technician-calendar-section[data-calendar-view="day"] .tc-day-list,
  .technician-calendar-section[data-calendar-view="day"] .tc-day-item{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .technician-calendar-section[data-calendar-view="day"] .tc-day-item{
    padding:9px!important;
    gap:8px!important;
  }

  /* Settimana: scorrimento confinato alla griglia, senza allargare toolbar/pagina. */
  .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline{
    width:max-content!important;
    max-width:none!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-week-day-head,
  .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track{
    width:100px!important;
    min-width:100px!important;
  }
}

@media(max-width:390px){
  .technician-calendar-section .tc-side-brand h1{font-size:14px!important}
  .technician-calendar-section .tc-side-brand .tc-kicker{font-size:7px!important}
  .technician-calendar-section .tc-nav{grid-template-columns:37px minmax(0,1fr) 37px!important}
  .technician-calendar-section #tcPrev,
  .technician-calendar-section #tcNext{width:37px!important;min-width:37px!important}
  .technician-calendar-section #tcPeriod{font-size:10px!important}
  .technician-calendar-section[data-calendar-view="week"] .tc-week-day-head,
  .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track{width:94px!important;min-width:94px!important}
}


/* V1.0.88 — mese mobile leggibile + picker data mobile moderno */
@media(max-width:700px){
  /* La data centrale deve ricevere direttamente il tap: disattiviamo il vecchio overlay date nativo. */
  .technician-calendar-section #tcMobileDatePicker{
    display:none!important;
    pointer-events:none!important;
  }
  .technician-calendar-section #tcPeriod{
    position:relative!important;
    z-index:30!important;
    pointer-events:auto!important;
    cursor:pointer!important;
    touch-action:manipulation!important;
  }

  /* Vista Mese: mini-card informative al posto dei soli pallini. */
  .technician-calendar-section[data-calendar-view="month"] .tc-day-cell{
    min-height:96px!important;
    padding:3px 2px 4px!important;
    overflow:hidden!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-day-events{
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:2px!important;
    margin-top:3px!important;
    width:100%!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-event-row,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-event-row.paired{
    display:contents!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event{
    display:block!important;
    position:relative!important;
    flex:0 0 auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:25px!important;
    max-height:none!important;
    padding:2px 3px!important;
    margin:0!important;
    border:0!important;
    border-radius:5px!important;
    background:var(--event-color,#287bb9)!important;
    color:var(--event-text,#fff)!important;
    box-shadow:0 1px 2px rgba(16,55,80,.14)!important;
    overflow:hidden!important;
    text-align:left!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event > *{
    display:none!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event::before,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event::after{
    display:block!important;
    width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:inherit!important;
    pointer-events:none!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event::before{
    content:attr(data-month-time)!important;
    font-size:6.8px!important;
    line-height:1.05!important;
    font-weight:950!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event::after{
    content:attr(data-month-work)!important;
    margin-top:1px!important;
    font-size:6.4px!important;
    line-height:1.05!important;
    font-weight:800!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-more-events{
    flex:0 0 auto!important;
    width:100%!important;
    margin-top:1px!important;
    font-size:7px!important;
    line-height:1.05!important;
  }
}

@media(max-width:390px){
  .technician-calendar-section[data-calendar-view="month"] .tc-day-cell{min-height:92px!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event{min-height:23px!important;padding:2px!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event::before{font-size:6.2px!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event::after{font-size:5.9px!important}
}

/* V1.0.89 — mese mobile completo, picker alto e indicatori appuntamenti condivisi */
.tc-month-mobile-details{display:none!important}

/* Indicatori appuntamento comuni a mini-calendario e picker. */
.tc-date-day-number{position:relative;z-index:2}
.tc-date-event-dots{
  position:absolute;
  left:50%;
  bottom:3px;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  max-width:calc(100% - 4px);
  transform:translateX(-50%);
  pointer-events:none;
}
.tc-date-event-dot{
  width:4px;
  height:4px;
  flex:0 0 4px;
  border-radius:50%;
  background:var(--tc-dot-color,#1684bd);
  box-shadow:0 0 0 1px rgba(255,255,255,.92);
}
.tc-date-event-more{
  min-width:9px;
  height:9px;
  padding:0 2px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#173e5f;
  color:#fff;
  font-size:6px;
  line-height:1;
  font-weight:950;
  box-shadow:0 0 0 1px rgba(255,255,255,.9);
}
.tc-datetime-days button.has-events{padding-bottom:10px}
.tc-datetime-days button.is-today::after{
  left:auto!important;
  right:3px!important;
  top:3px!important;
  bottom:auto!important;
  transform:none!important;
  width:4px!important;
  height:4px!important;
}
.tc-datetime-days button.is-selected .tc-date-event-dot{
  box-shadow:0 0 0 1px rgba(255,255,255,.98),0 0 0 2px rgba(12,86,130,.20);
}
.tc-datetime-days button.is-selected .tc-date-event-more{background:#fff;color:#0d6696}
.tc-side-calendar-days button .tc-date-event-dots{bottom:1px;gap:1px}
.tc-side-calendar-days button .tc-date-event-dot{width:3px;height:3px;flex-basis:3px}
.tc-side-calendar-days button .tc-date-event-more{min-width:8px;height:8px;font-size:5px;padding:0 1px}
.tc-side-calendar-days button.is-selected .tc-date-event-more{background:#fff;color:#0d6696}

@media(max-width:700px){
  /* Il picker di navigazione parte dall'alto: niente bottom-sheet troppo basso. */
  .tc-calendar-jump-layer{
    align-items:flex-start!important;
    justify-content:center!important;
    padding:max(10px,env(safe-area-inset-top)) 8px 8px!important;
    overflow:auto!important;
  }
  .tc-calendar-jump-card{
    width:100%!important;
    max-width:520px!important;
    max-height:calc(100dvh - max(20px,env(safe-area-inset-top)))!important;
    margin:0 auto!important;
    border-radius:18px!important;
    border:1px solid rgba(199,218,230,.95)!important;
    overflow:auto!important;
  }
  .tc-calendar-jump-card .tc-datetime-picker-head{
    position:sticky!important;
    top:0!important;
    z-index:20!important;
    padding:12px 14px 10px!important;
  }
  .tc-calendar-jump-card .tc-datetime-picker-actions{
    position:sticky!important;
    bottom:0!important;
    z-index:20!important;
  }
  .tc-calendar-jump-card .tc-datetime-calendar{padding:12px 10px 10px!important}
  .tc-calendar-jump-card .tc-datetime-days button{min-height:39px!important}
  .tc-calendar-jump-card .tc-date-event-dots{bottom:3px!important}

  /* Vista mensile: mostra tutte le informazioni utili realmente disponibili. */
  .technician-calendar-section[data-calendar-view="month"] .tc-day-cell{
    min-height:154px!important;
    padding:3px 2px 5px!important;
    overflow:hidden!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-day-events{
    gap:3px!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:1px!important;
    width:100%!important;
    min-height:74px!important;
    padding:3px 3px 4px!important;
    border-radius:6px!important;
    overflow:hidden!important;
    line-height:1.05!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event::before,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event::after{
    display:none!important;
    content:none!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event > *{
    max-width:100%!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-vehicle,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-time,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-customer,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-work,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-technicians,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-plate,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-month-mobile-details{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    color:inherit!important;
    font-style:normal!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-vehicle{font-size:6.8px!important;font-weight:950!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-time{font-size:6.3px!important;font-weight:900!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-customer{font-size:6.2px!important;font-weight:900!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-work{font-size:6.1px!important;font-weight:850!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-technicians,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-plate{font-size:5.7px!important;font-weight:800!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-status-dot{
    display:block!important;
    position:absolute!important;
    top:3px!important;
    right:3px!important;
    width:5px!important;
    height:5px!important;
    margin:0!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-month-mobile-details{
    font-size:5.5px!important;
    line-height:1.05!important;
    font-weight:750!important;
    opacity:.96!important;
  }
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-month-mobile-details span{
    display:block!important;
    width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:inherit!important;
    line-height:inherit!important;
    color:inherit!important;
  }
}

@media(max-width:390px){
  .technician-calendar-section[data-calendar-view="month"] .tc-day-cell{min-height:146px!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event{min-height:70px!important;padding:2px 3px 3px!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-vehicle{font-size:6.3px!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-time,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-customer,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-work{font-size:5.8px!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-technicians,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-event-plate,
  .technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event .tc-month-mobile-details{font-size:5.2px!important}
}

/* V1.0.100 — comunicazioni cliente appuntamenti */
.tc-summary-messages{margin:14px 0 4px;padding:14px;border:1px solid #dce7ef;border-radius:14px;background:#fbfdff}
.tc-message-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#27445d}
.tc-message-history-head strong{font-size:13px}.tc-message-history-head span{font-size:11px;color:#708699;font-weight:800}
.tc-message-history-empty{padding:12px;border:1px dashed #cedbe5;border-radius:11px;color:#788d9d;font-size:12px;text-align:center;background:#fff}
.tc-message-history-list{display:grid;gap:7px}.tc-message-history-row{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:9px 10px;border:1px solid #dce6ed;border-radius:11px;background:#fff}
.tc-message-history-row .tc-message-history-state{grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 8px;border-radius:9px;font-size:10px;font-weight:900;background:#eef6fb;color:#196b99}
.tc-message-history-row.sent .tc-message-history-state{background:#e9f8ee;color:#188746}.tc-message-history-row strong{font-size:11px;color:#253f53}.tc-message-history-row small{font-size:10px;color:#758a99}
.tc-message-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:16px;padding:16px 18px 6px;max-height:68dvh;overflow:auto}
.tc-message-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}.tc-message-template{appearance:none;text-align:left;padding:12px;border:1px solid #dce6ed;border-radius:13px;background:#fff;cursor:pointer;color:#254156;transition:.15s}.tc-message-template:hover{border-color:#9fc8df;background:#f8fcff}.tc-message-template.active{border-color:#1688c2;background:#eff9fe;box-shadow:0 0 0 2px rgba(22,136,194,.08)}.tc-message-template strong,.tc-message-template small{display:block}.tc-message-template strong{font-size:12px;margin-bottom:4px}.tc-message-template small{font-size:10px;line-height:1.35;color:#718695;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tc-message-editor{display:grid;gap:7px;font-size:12px;font-weight:850;color:#29475d}.tc-message-editor textarea{width:100%;min-height:125px;resize:vertical;border:1px solid #cfdde6;border-radius:12px;padding:11px;font:inherit;font-weight:450;line-height:1.45;background:#fff}.tc-message-editor small{font-size:10px;font-weight:500;color:#758a99}.tc-message-send-state{display:grid;gap:6px;margin-top:10px;padding:11px 12px;border:1px solid #bfe1ca;border-radius:12px;background:#f0fbf4}.tc-message-send-state strong{color:#187c42;font-size:12px}.tc-message-send-state span{font-size:10px;color:#587769}.tc-message-send-state .btn{justify-self:start;margin-top:3px}.tc-message-history{border-left:1px solid #e0e9ef;padding-left:15px;min-width:0}
.tc-message-settings-list{display:grid;gap:10px}.tc-message-setting-row{display:grid;gap:7px;padding:11px;border:1px solid #dce6ed;border-radius:12px;background:#fbfdff}.tc-message-setting-head{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.tc-message-setting-row input[data-title],.tc-message-setting-row textarea{width:100%;border:1px solid #cfdae3;border-radius:9px;padding:9px 10px;background:#fff;font:inherit}.tc-message-setting-row input[data-title]{font-weight:850}.tc-message-setting-row textarea{resize:vertical;line-height:1.4}.tc-message-settings-vars{display:block;margin-top:8px;color:#708699;font-size:10px}.tc-communications-block .tc-message-history-list{max-height:230px;overflow:auto}.tc-event-phone{font-size:10px;font-weight:750;opacity:.94}
@media(max-width:760px){.tc-message-layout{grid-template-columns:1fr;max-height:72dvh;padding:12px}.tc-message-template-grid{grid-template-columns:1fr}.tc-message-history{border-left:0;border-top:1px solid #e0e9ef;padding-left:0;padding-top:12px}.tc-message-history-row{grid-template-columns:1fr}.tc-message-history-row .tc-message-history-state{grid-row:auto;justify-self:start}.tc-message-setting-head{grid-template-columns:1fr}.tc-summary-messages{padding:11px}.tc-message-history-head{align-items:flex-start;flex-direction:column;gap:3px}}


/* V1.0.103 — riepilogo appuntamento mobile proporzionato */
@media(max-width:700px){
  .tc-summary-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    align-items:stretch!important;
  }
  .tc-summary-actions .tc-modal-actions-spacer{display:none!important}
  .tc-summary-actions .btn{
    width:100%!important;
    min-height:48px!important;
    margin:0!important;
    padding:10px 8px!important;
    border-radius:11px!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:normal!important;
    text-align:center!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .tc-summary-actions .tc-summary-close{grid-column:1 / -1;order:4;min-height:42px!important}
  .tc-summary-actions .tc-summary-edit{grid-column:1 / -1;order:3;font-size:13px!important}
  .tc-summary-actions #tcSummaryReady{order:1}
  .tc-summary-actions #tcSummaryMessage{order:2}
}


/* V1.0.110 — mobile timeline current day/time + natural scroll chaining */
.tc-week-day-head.is-today{background:#e7f5fc!important;box-shadow:inset 0 -3px 0 #1590c8}.tc-week-day-head.is-today b,.tc-week-day-head.is-today span{color:#0f5c91!important}.tc-week-day-track{position:relative}.tc-now-line{position:absolute;left:0;right:0;height:2px;background:#e5484d;z-index:30;pointer-events:none}.tc-now-line i{position:absolute;left:-4px;top:-4px;width:9px;height:9px;border-radius:50%;background:#e5484d}
@media(max-width:1050px){.technician-calendar-section #tcCalendarBody{overscroll-behavior:auto!important;-webkit-overflow-scrolling:touch!important}.technician-calendar-section[data-calendar-view="week"] #tcCalendarBody,.technician-calendar-section[data-calendar-view="day"] #tcCalendarBody{overscroll-behavior:auto!important;touch-action:pan-x pan-y!important}}

@media(max-width:1050px){
 .tc-timeline-event.is-tiny{padding:3px 5px!important;gap:1px!important;overflow:hidden!important}
 .tc-timeline-event.is-tiny>strong,.tc-timeline-event.is-tiny .tc-timeline-tech,.tc-timeline-event.is-tiny .tc-event-mobile{display:none!important}
 .tc-timeline-event.is-tiny>b,.tc-timeline-event.is-tiny>span,.tc-timeline-event.is-tiny>small{font-size:8px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .tc-timeline-event.is-tiny .tc-timeline-work,.tc-timeline-event.is-tiny .tc-event-plate{display:block!important}
 .tc-timeline-event.is-small>strong,.tc-timeline-event.is-small .tc-timeline-tech{display:none!important}
}

/* V1.0.111 — mobile calendar stability */
@media(max-width:700px){
  .technician-calendar-section .tc-week-times{position:sticky!important;left:0!important;z-index:12!important;background:#f8fbfd!important;box-shadow:3px 0 0 rgba(218,231,239,.75)!important}
  .technician-calendar-section .tc-week-day-head,.technician-calendar-section .tc-week-time-head{position:sticky!important;top:0!important;z-index:16!important;background:#f7fbfe!important}
  .technician-calendar-section .tc-week-day-head.is-today{background:#e7f5fc!important}
  .technician-calendar-section .tc-timeline-event.is-tiny{padding:4px 5px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:1px!important}
  .technician-calendar-section .tc-timeline-event.is-tiny>b{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:7.5px!important;line-height:1.05!important;padding-right:10px!important}
  .technician-calendar-section .tc-timeline-event.is-tiny>span{font-size:7px!important;line-height:1.05!important}
  .technician-calendar-section .tc-timeline-event.is-tiny .tc-timeline-work{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal!important;overflow:hidden!important;font-size:7px!important;line-height:1.03!important}
  .technician-calendar-section .tc-timeline-event.is-tiny .tc-event-plate{display:block!important;font-size:7px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:auto!important}
  .technician-calendar-section .tc-timeline-event.is-tiny>strong,.technician-calendar-section .tc-timeline-event.is-tiny .tc-timeline-tech,.technician-calendar-section .tc-timeline-event.is-tiny .tc-event-mobile{display:none!important}
}


/* V1.0.113 — mobile card hierarchy and anchored calendar grid */
@media(max-width:1050px){
 .technician-calendar-section[data-calendar-view="week"] #tcCalendarBody,
 .technician-calendar-section[data-calendar-view="day"] #tcCalendarBody{
   background-color:#fff!important;
   background-image:repeating-linear-gradient(to bottom,rgba(218,231,239,.72) 0,rgba(218,231,239,.72) 1px,transparent 1px,transparent 52px)!important;
   background-attachment:local!important;
 }
 .technician-calendar-section .tc-week-day-track{background:transparent!important}
 .technician-calendar-section .tc-hour-line{opacity:.35!important}
 .technician-calendar-section .tc-timeline-event.is-tiny,
 .technician-calendar-section .tc-timeline-event.is-small{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:2px!important;padding:4px 5px!important;overflow:hidden!important}
 .technician-calendar-section .tc-timeline-event .tc-mobile-vehicle{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:9px!important;line-height:1.08!important;font-weight:900!important;padding-right:12px!important;order:1}
 .technician-calendar-section .tc-timeline-event .tc-mobile-time{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:8px!important;line-height:1.05!important;font-weight:900!important;order:2}
 .technician-calendar-section .tc-timeline-event .tc-timeline-work{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;overflow:hidden!important;font-size:7.5px!important;line-height:1.05!important;order:3}
 .technician-calendar-section .tc-timeline-event .tc-event-plate{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:7.5px!important;line-height:1.05!important;font-weight:900!important;margin-top:auto!important;order:4}
 .technician-calendar-section .tc-timeline-event.is-tiny>strong,.technician-calendar-section .tc-timeline-event.is-tiny .tc-timeline-tech,.technician-calendar-section .tc-timeline-event.is-small>strong,.technician-calendar-section .tc-timeline-event.is-small .tc-timeline-tech{display:none!important}
}


/* V1.0.114 — mobile: niente cambio settimana con swipe e niente molleggio della sezione */
@media(max-width:1050px){
  #technicianCalendar:not([hidden]){height:calc(100dvh - var(--app-header-height,72px))!important;min-height:0!important;overflow:hidden!important;overscroll-behavior:none!important}
  #technicianCalendar:not([hidden]) .tc-calendar-workspace,
  #technicianCalendar:not([hidden]) .tc-calendar-main{height:100%!important;min-height:0!important;overflow:hidden!important}
  #technicianCalendar:not([hidden]) .tc-calendar-main{display:flex!important;flex-direction:column!important}
  #technicianCalendar:not([hidden]) .tc-toolbar{flex:0 0 auto!important;position:relative!important;z-index:30!important}
  #technicianCalendar:not([hidden]) #tcCalendarBody{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:none!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important}
}


/* V1.0.115 — mobile calendar cards, fixed canvas, month FAB */
@media(max-width:1050px){
  body:has(#technicianCalendar:not([hidden])){overflow:hidden!important;overscroll-behavior:none!important}
  #technicianCalendar:not([hidden]){overflow:hidden!important;overscroll-behavior:none!important}
  #technicianCalendar:not([hidden]) .tc-calendar-workspace,#technicianCalendar:not([hidden]) .tc-calendar-main{overflow:hidden!important}
  #technicianCalendar:not([hidden]) #tcCalendarBody{overscroll-behavior:none!important}
  .technician-calendar-section .tc-period-button::after{content:''!important;display:inline-block!important;width:13px;height:13px;margin-left:5px;vertical-align:-2px;background:center/13px 13px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f4c81' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2Zm11 8H6v10h12V10ZM6 6v2h12V6H6Z'/%3E%3C/svg%3E")!important}
  .technician-calendar-section .tc-timeline-event .tc-mobile-vehicle{order:1!important;font-size:9px!important;line-height:1.08!important;font-weight:950!important}
  .technician-calendar-section .tc-timeline-event .tc-event-plate{order:2!important;margin-top:0!important;font-size:7.7px!important;line-height:1.05!important;font-weight:900!important}
  .technician-calendar-section .tc-timeline-event .tc-mobile-time{order:3!important;font-size:8.4px!important;line-height:1.08!important;font-weight:950!important;margin-top:1px!important}
  .technician-calendar-section .tc-timeline-event .tc-timeline-work{order:4!important}
  .tc-mobile-fab{display:none!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-mobile-fab{display:grid!important;place-items:center;position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:190;width:58px;height:58px;border:0;border-radius:18px;background:#0f5c91;color:#fff;font-size:34px;font-weight:400;line-height:1;box-shadow:0 10px 26px rgba(15,76,129,.3);cursor:pointer}
}
\n\n/* V1.0.116 — mobile event hierarchy, time pill, axis-locked timeline, floating create */\n.tc-main-calendar-fab{display:none}\n@media(max-width:1050px){\n  #technicianCalendar #tcCalendarBody{touch-action:none!important}\n  #technicianCalendar .tc-timeline-event{justify-content:flex-start!important;align-content:flex-start!important;gap:2px!important}\n  #technicianCalendar .tc-timeline-event>*{margin-top:0!important;margin-bottom:0!important}\n  #technicianCalendar .tc-timeline-event .tc-mobile-vehicle{font-size:9.5px!important;line-height:1.08!important;font-weight:950!important;max-height:2.2em!important}\n  #technicianCalendar .tc-timeline-event .tc-event-plate{font-size:8px!important;line-height:1.05!important;font-weight:950!important;margin-top:1px!important}\n  #technicianCalendar .tc-timeline-event .tc-mobile-time{display:inline-flex!important;align-self:flex-start!important;background:rgba(255,255,255,.22)!important;border:1px solid rgba(255,255,255,.38)!important;border-radius:6px!important;padding:2px 5px!important;margin-top:2px!important;font-size:8px!important;line-height:1!important;font-weight:950!important;white-space:nowrap!important}\n  #technicianCalendar[data-calendar-view="day"] .tc-status-dot{width:13px!important;height:13px!important;border-width:2px!important;right:7px!important;top:7px!important}\n  body:has(#technicianCalendar.active) .tc-main-calendar-fab{display:grid!important;place-items:center!important;position:fixed!important;right:18px!important;bottom:calc(18px + env(safe-area-inset-bottom))!important;z-index:240!important;width:60px!important;height:60px!important;border:0!important;border-radius:18px!important;background:#0f5c91!important;color:#fff!important;font-size:36px!important;line-height:1!important;box-shadow:0 10px 26px rgba(15,76,129,.3)!important}\n}\n

/* V1.0.118 — native momentum scrolling / no manual axis interception */
@media(max-width:1050px){
  .technician-calendar-section #tcCalendarBody,
  #technicianCalendar #tcCalendarBody{
    touch-action:pan-x pan-y!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-behavior:auto!important;
    scroll-snap-type:none!important;
  }
  .technician-calendar-section .tc-week-day-track,
  #technicianCalendar .tc-week-day-track{scroll-snap-align:none!important}
}

/* V1.0.131 — mobile calendar compact controls + single vertical page scroll */
.tc-mobile-command-row,.tc-mobile-popover{display:none}
@media(max-width:700px){
  /* Una sola sorgente di scroll verticale: la pagina. La timeline conserva solo lo scroll orizzontale. */
  html,body{overscroll-behavior-y:auto!important}
  body:has(#technicianCalendar:not([hidden])){overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:auto!important}
  #technicianCalendar:not([hidden]){height:auto!important;min-height:0!important;overflow:visible!important;overscroll-behavior:auto!important}
  #technicianCalendar:not([hidden]) .tc-calendar-workspace,
  #technicianCalendar:not([hidden]) .tc-calendar-main{height:auto!important;min-height:0!important;overflow:visible!important}
  #technicianCalendar:not([hidden]) .tc-calendar-main{display:block!important}
  #technicianCalendar:not([hidden]) #tcCalendarBody{
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow-x:auto!important;overflow-y:visible!important;
    overscroll-behavior-x:contain!important;overscroll-behavior-y:auto!important;
    -webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important;
  }
  #technicianCalendar[data-calendar-view="week"] .tc-week-timeline,
  #technicianCalendar[data-calendar-view="day"] .tc-day-timeline{height:auto!important;max-height:none!important}

  /* Titolo compatto: niente pulsante Crea largo e niente triple icone. */
  #technicianCalendar .tc-calendar-side{grid-template-areas:"brand" "search"!important;gap:4px!important}
  #technicianCalendar .tc-side-create,#technicianCalendar .tc-side-tools{display:none!important}
  #technicianCalendar .tc-side-brand{padding:0 2px 2px!important}
  #technicianCalendar .tc-side-brand .tc-kicker{font-size:7px!important}
  #technicianCalendar .tc-side-brand h1{font-size:15px!important}

  /* Toolbar ridotta: Vista + Strumenti su una sola riga. */
  #technicianCalendar .tc-toolbar{position:relative!important;display:grid!important;grid-template-columns:1fr!important;gap:6px!important;padding:7px!important;margin-bottom:5px!important}
  #technicianCalendar .tc-view-switch{display:none!important}
  #technicianCalendar .tc-mobile-command-row{display:grid!important;grid-template-columns:minmax(0,1fr) 46px;gap:7px;position:relative;z-index:90}
  #technicianCalendar .tc-mobile-command{height:42px;border:1px solid #cfe0ea;border-radius:11px;background:#fff;color:#173e5f;font:800 12px/1.1 Inter,Arial,sans-serif;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;box-shadow:0 2px 8px rgba(20,54,78,.05)}
  #technicianCalendar .tc-mobile-command svg{width:19px;height:19px;fill:currentColor}
  #technicianCalendar .tc-mobile-command-square{width:46px;padding:0}
  #technicianCalendar .tc-mobile-command-caret{font-size:14px;color:#6b8194;margin-left:1px}
  #technicianCalendar .tc-mobile-popover{position:absolute;top:48px;left:0;right:53px;z-index:120;padding:6px;border:1px solid #d5e3ec;border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(20,54,78,.18)}
  #technicianCalendar .tc-mobile-popover[hidden]{display:none!important}
  #technicianCalendar .tc-mobile-popover:not([hidden]){display:grid!important;gap:4px}
  #technicianCalendar .tc-mobile-tools-popover{left:auto;right:0;width:min(260px,calc(100vw - 28px))}
  #technicianCalendar .tc-mobile-popover button{min-height:42px;border:0;border-radius:9px;background:transparent;color:#173e5f;font:800 12px/1.2 Inter,Arial,sans-serif;text-align:left;padding:9px 11px;display:flex;align-items:center;gap:10px}
  #technicianCalendar .tc-mobile-popover button:hover,#technicianCalendar .tc-mobile-popover button.active{background:#eaf6fc;color:#0b6fa8}
  #technicianCalendar .tc-mobile-popover button svg{width:19px;height:19px;fill:currentColor;flex:0 0 auto}

  /* Navigazione resta sempre disponibile ma occupa meno altezza. */
  #technicianCalendar .tc-nav{grid-template-columns:42px minmax(0,1fr) 42px!important;grid-template-areas:"today today today" "prev period next"!important;gap:5px!important}
  #technicianCalendar #tcToday{min-height:36px!important;height:36px!important}
  #technicianCalendar #tcPrev,#technicianCalendar #tcNext{width:42px!important;min-width:42px!important;height:40px!important}
  #technicianCalendar #tcPeriod{min-height:40px!important;height:40px!important}
  #technicianCalendar .tc-center-filter{gap:5px!important}
  #technicianCalendar .tc-center-filter select{min-height:38px!important}

  /* Search apre sotto la barra compatta. */
  #technicianCalendar .tc-side-search-panel{margin:0 0 4px!important;padding:7px!important;border-radius:11px!important}

  /* Floating create stile Google Calendar: unico pulsante mobile. */
  #technicianCalendar .tc-mobile-fab{display:grid!important;place-items:center!important;position:fixed!important;right:18px!important;bottom:calc(18px + env(safe-area-inset-bottom))!important;z-index:260!important;width:54px!important;height:54px!important;border:0!important;border-radius:17px!important;background:#0f5c91!important;color:#fff!important;font-size:32px!important;font-weight:400!important;line-height:1!important;box-shadow:0 10px 25px rgba(15,76,129,.30)!important;cursor:pointer!important}
  #technicianCalendar .tc-mobile-fab:active{transform:scale(.96)}
  .tc-main-calendar-fab{display:none!important}

  /* Il calendario inizia subito dopo i controlli compatti. */
  #technicianCalendar #tcCalendarBody{border-radius:11px!important;margin-top:0!important}
}

@media(max-width:700px){#technicianCalendar .tc-mobile-popover button[hidden],#technicianCalendar .tc-mobile-fab[hidden]{display:none!important}}

/* V1.0.132 — mobile toolbar a tre blocchi + scorrimento timeline separato */
.tc-timeline-scroll{width:100%;max-width:100%;overflow:visible}
@media(max-width:700px){
  /* Barra comandi: vista compatta a sinistra, Oggi centrale, strumenti a destra. */
  #technicianCalendar .tc-mobile-command-row{
    grid-template-columns:minmax(116px,128px) minmax(86px,1fr) 46px!important;
    align-items:center!important;
    gap:7px!important;
  }
  #technicianCalendar .tc-mobile-view-command{
    width:100%!important;
    min-width:0!important;
    justify-content:flex-start!important;
    padding:0 8px 0 9px!important;
    gap:5px!important;
  }
  #technicianCalendar .tc-mobile-view-command .tc-mobile-command-icon{
    display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
  }
  #technicianCalendar #tcMobileViewLabel{
    min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;flex:1 1 auto!important;text-align:left!important;
  }
  #technicianCalendar .tc-mobile-command-caret{
    width:26px!important;height:26px!important;min-width:26px!important;margin:0!important;border-radius:8px!important;
    display:grid!important;place-items:center!important;flex:0 0 26px!important;background:#eaf5fb!important;color:#0f5c91!important;
    box-shadow:inset 0 0 0 1px #c6dfec!important;
  }
  #technicianCalendar .tc-mobile-command-caret svg{width:17px!important;height:17px!important;fill:currentColor!important}
  #technicianCalendar .tc-mobile-view-command[aria-expanded="true"] .tc-mobile-command-caret{background:#0f5c91!important;color:#fff!important}
  #technicianCalendar .tc-mobile-today{
    width:100%!important;min-width:0!important;padding:0 10px!important;background:#118bc2!important;border-color:#118bc2!important;color:#fff!important;font-weight:900!important;
    box-shadow:0 3px 9px rgba(17,139,194,.18)!important;
  }

  /* Il vecchio Oggi della riga periodo rimane disponibile su desktop ma sparisce sul mobile. */
  #technicianCalendar .tc-nav{
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    grid-template-areas:"prev period next"!important;
  }
  #technicianCalendar #tcToday{display:none!important}

  /* La pagina governa il verticale; questa fascia governa soltanto il trascinamento dei giorni. */
  #technicianCalendar #tcCalendarBody{
    overflow:visible!important;
    touch-action:pan-y!important;
    overscroll-behavior:auto!important;
  }
  #technicianCalendar[data-calendar-view="week"] .tc-timeline-scroll{
    width:100%!important;max-width:100%!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;overscroll-behavior-y:auto!important;
    touch-action:pan-x pan-y!important;
    scrollbar-width:thin;
  }
  #technicianCalendar[data-calendar-view="week"] .tc-week-timeline{max-width:none!important}
}
@media(max-width:390px){
  #technicianCalendar .tc-mobile-command-row{grid-template-columns:minmax(108px,120px) minmax(76px,1fr) 44px!important;gap:6px!important}
  #technicianCalendar .tc-mobile-command-square{width:44px!important}
  #technicianCalendar .tc-mobile-view-command{padding-left:7px!important;padding-right:6px!important}
}


/* V1.0.133 — menu mobile sopra timeline, picker compatto e long-press move */
@media(max-width:700px){
  /* I popover devono stare sempre sopra intestazioni sticky e timeline. */
  #technicianCalendar .tc-calendar-main{position:relative!important;z-index:1!important}
  #technicianCalendar .tc-toolbar{position:relative!important;z-index:5000!important;overflow:visible!important;isolation:isolate!important}
  #technicianCalendar .tc-mobile-command-row{z-index:5010!important}
  #technicianCalendar .tc-mobile-popover{z-index:5090!important;box-shadow:0 16px 34px rgba(13,45,68,.26)!important}
  #technicianCalendar #tcCalendarBody{position:relative!important;z-index:1!important}
  #technicianCalendar .tc-week-day-head,#technicianCalendar .tc-week-time-head{z-index:20!important}

  /* Selettore data/ora appuntamento: su telefono è una scheda chiara a colonna singola. */
  .tc-datetime-picker-card:not(.tc-calendar-jump-card){max-height:94dvh!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-picker-head{padding:11px 13px 9px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-picker-head h4{font-size:16px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-range-tabs{padding:7px 10px!important;gap:6px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-range-tab{padding:7px 8px!important;border-radius:10px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-picker-body{display:block!important;padding:0!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-calendar{padding:9px 10px 8px!important;border:0!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-monthbar{margin-bottom:5px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-weekdays{margin-bottom:2px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-days button{min-height:35px!important;height:35px!important;font-size:11px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-today{min-height:34px!important;margin-top:5px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-time{padding:8px 10px 9px!important;border-top:1px solid #e2ecf2!important;border-left:0!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-time-title{margin-bottom:6px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-time-columns{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-scroll{height:102px!important;max-height:102px!important;border-radius:9px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-scroll button{min-height:34px!important;padding:6px 8px!important}
  .tc-datetime-picker-card:not(.tc-calendar-jump-card) .tc-datetime-picker-actions{padding-top:8px!important}
}

/* Feedback visivo durante lo spostamento touch. */
body.tc-touch-moving{user-select:none!important;-webkit-user-select:none!important}
.tc-touch-drag-ghost{position:fixed!important;z-index:390000!important;pointer-events:none!important;opacity:.84!important;transform:scale(.96)!important;box-shadow:0 14px 30px rgba(8,39,61,.3)!important;max-width:160px!important}
.tc-touch-move-badge{position:fixed!important;z-index:390010!important;left:50%!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;max-width:calc(100vw - 30px)!important;padding:9px 13px!important;border-radius:999px!important;background:#123f5f!important;color:#fff!important;font:900 11px/1.2 Inter,Arial,sans-serif!important;box-shadow:0 9px 24px rgba(7,37,58,.28)!important;pointer-events:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#technicianCalendar .tc-touch-drop-target{background:rgba(16,151,210,.10)!important;box-shadow:inset 0 0 0 2px #1097d2!important}
#technicianCalendar .tc-touch-moving{opacity:.45!important}

/* V1.0.134 — griglia oraria mobile, vista giorno e note lavorazione condivise */
.tc-half-hour-line{position:absolute;left:0;right:0;border-top:1px dashed rgba(148,163,184,.22);pointer-events:none;z-index:0}
.tc-summary-work-notes{margin-top:14px;border:1px solid #dbe7ef;border-radius:14px;background:#f9fcfe;padding:12px}
.tc-work-note-history{display:grid;gap:8px;margin-top:9px}.tc-work-note-entry{border:1px solid #d9e6ee;border-radius:11px;background:#fff;padding:9px 10px}.tc-work-note-entry.is-deleted{opacity:.72;background:#f8fafc}.tc-work-note-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:#61788c}.tc-work-note-meta strong{color:#173e5f}.tc-work-note-entry p{margin:5px 0!important;white-space:pre-wrap}.tc-work-note-entry small{display:block;color:#6c8192;font-size:10px}.tc-work-note-empty{margin-top:8px;color:#6c8192;font-size:11px}
@media(max-width:1050px){
  .technician-calendar-section[data-calendar-view="day"] .tc-day-item .tc-event-time{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:flex-start!important;
    margin:5px 0 6px!important;padding:5px 9px!important;border-radius:8px!important;background:rgba(255,255,255,.28)!important;
    border:1px solid rgba(255,255,255,.5)!important;font-size:12px!important;line-height:1!important;font-weight:950!important;letter-spacing:.01em!important
  }
  .technician-calendar-section[data-calendar-view="day"] .tc-day-item .tc-status-dot{
    width:18px!important;height:18px!important;right:12px!important;top:12px!important;border-width:3px!important
  }
  .technician-calendar-section[data-calendar-view="day"] .tc-day-item .tc-event{padding:12px 42px 12px 12px!important}
  .tc-touch-drop-target .tc-half-hour-line{border-top-color:rgba(14,116,144,.38)!important}
}


/* V1.0.135 — vista Giorno unificata con Calendario Tecnico */
.tc-day-unified{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(160px,.48fr)!important;gap:10px!important;align-items:stretch!important;padding:0!important;border:1px solid #dce6ed!important;border-radius:14px!important;background:#fff!important;overflow:hidden!important}
.tc-day-event-card{position:relative;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;width:100%!important;min-width:0!important;border:0!important;border-radius:0!important;background:var(--event-color)!important;color:var(--event-text)!important;padding:13px 44px 13px 14px!important;text-align:left!important;cursor:pointer!important}
.tc-day-event-card>*{color:var(--event-text)!important}
.tc-day-customer{font-size:15px!important;font-weight:950!important;line-height:1.1!important}
.tc-day-work{font-size:12px!important;font-weight:850!important;line-height:1.2!important}
.tc-day-tech,.tc-day-phone,.tc-day-center{font-size:10.5px!important;font-weight:780!important;line-height:1.15!important;opacity:.97!important}
.tc-day-event-card .tc-status-dot{width:18px!important;height:18px!important;right:13px!important;top:13px!important;border-width:3px!important}
.tc-day-meta{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:6px!important;padding:12px 14px!important;min-width:0!important;background:#fff!important;color:#173e5f!important}
.tc-day-meta strong{font-size:13px!important;font-weight:950!important;line-height:1.15!important;color:#173e5f!important}
.tc-day-meta-plate{font-size:11px!important;font-weight:850!important;color:#516b7d!important}
.tc-day-time-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:6px 10px!important;border-radius:8px!important;background:#e8f5fc!important;border:1px solid #b9dff0!important;color:#0b648f!important;font-size:12px!important;font-weight:950!important;white-space:nowrap!important}
@media(max-width:1050px){
  .tc-day-unified{grid-template-columns:minmax(0,1fr) minmax(116px,.52fr)!important;gap:0!important}
  .tc-day-event-card{padding:12px 42px 12px 12px!important}
  .tc-day-customer{font-size:13px!important}.tc-day-work{font-size:11px!important}.tc-day-tech,.tc-day-phone,.tc-day-center{font-size:9.5px!important}
  .tc-day-meta{padding:10px!important;gap:5px!important}.tc-day-meta strong{font-size:11px!important}.tc-day-meta-plate{font-size:9.5px!important}.tc-day-time-pill{font-size:10.5px!important;padding:5px 7px!important}
}


/* Vista Giorno: veicolo a sinistra e lavorazione in evidenza nella scheda cliente. */
.tc-day-unified.tc-day-appointment{
  grid-template-columns:minmax(160px,.48fr) minmax(0,1fr)!important;
}
.tc-day-appointment .tc-day-work-highlight{
  max-width:100%;
  box-sizing:border-box;
  padding:4px 9px;
  border-radius:7px;
  background:#eef7ff;
  color:#123d61!important;
  font-size:13px!important;
}
@media(max-width:1050px){
  .tc-day-unified.tc-day-appointment{
    grid-template-columns:minmax(116px,.52fr) minmax(0,1fr)!important;
  }
  .tc-day-appointment .tc-day-work-highlight{font-size:11px!important}
}

/* V1.0.136 — stato e riepiloghi unificati */
.tc-status-dot.completed{background:#2563eb!important;width:17px!important;height:17px!important;border-color:#fff!important}
.tc-status-dot.completed::after{content:'✓'!important;font-size:15px!important;font-weight:1000!important;color:#22c55e!important;text-shadow:0 0 1px #fff,0 0 4px #fff,0 1px 1px rgba(0,0,0,.28)!important;transform:translate(-50%,-58%)!important}
.tc-event-summary-status strong{display:flex!important;align-items:center!important;gap:9px!important}.tc-event-summary-status .tc-status-dot{position:relative!important;left:auto!important;right:auto!important;top:auto!important;flex:0 0 auto!important}
.tc-day-meta-vehicles{display:flex!important;flex-direction:column!important;gap:7px!important;width:100%!important}.tc-day-meta-vehicle{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important}.tc-day-meta-vehicle+.tc-day-meta-vehicle{padding-top:6px!important;border-top:1px solid #e6eef3!important}


/* V1.0.137 — vista Giorno: card appuntamento colorata con angoli arrotondati */
.tc-day-event-card{border-radius:13px!important;overflow:hidden!important}

/* V1.0.139 — icone operative SVG professionali */
.tc-inline-svg,.tech-svg-icon{width:15px;height:15px;flex:0 0 15px;fill:currentColor;display:inline-block;vertical-align:-2px}
.tc-day-tech,.tc-day-phone,.tc-day-center{display:flex!important;align-items:center!important;gap:6px!important}

/* V1.0.140 · tracciabilità appuntamenti */
.tc-summary-audit-meta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin-top:8px;font-size:12px;color:#5d7387}.tc-summary-audit-meta span{display:inline-flex;gap:4px;align-items:center}.tc-audit-badge{border:1px solid #9ecdea;background:#e9f7ff;color:#0f5f8d;border-radius:999px;padding:5px 9px;display:inline-flex;align-items:center;gap:6px;font:800 11px/1 inherit;cursor:pointer;box-shadow:0 2px 7px rgba(15,95,141,.12)}.tc-audit-badge b{min-width:20px;height:20px;border-radius:999px;background:#0f75ad;color:#fff;display:inline-grid;place-items:center;font-size:10px}.tc-audit-created{display:flex;flex-wrap:wrap;gap:8px 18px;padding:12px 14px;margin:0 0 12px;border:1px solid #dbe9f3;background:#f7fbfe;border-radius:14px;color:#405b70;font-size:13px}.tc-audit-history{display:grid;gap:10px}.tc-audit-row{border:1px solid #dbe7ef;background:#fff;border-radius:14px;padding:12px}.tc-audit-row-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px}.tc-audit-row-head strong{color:#123f60}.tc-audit-row-head span{font-size:12px;color:#6f8494}.tc-audit-changes{display:grid;gap:7px}.tc-audit-changes>div{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.6fr);gap:8px;padding-top:7px;border-top:1px solid #edf3f7}.tc-audit-changes b{font-size:12px;color:#31536b}.tc-audit-changes span{font-size:12px;color:#5f7280;overflow-wrap:anywhere}.tc-audit-empty{padding:18px;text-align:center;color:#718494;border:1px dashed #cadbe7;border-radius:14px}
@media(max-width:700px){.tc-summary-audit-meta{font-size:11px;gap:5px 8px}.tc-audit-changes>div{grid-template-columns:1fr}.tc-audit-row-head{align-items:flex-start;flex-direction:column;gap:2px}}

/* V1.0.144 — badge audit pulito + appuntamenti mese affiancati */
.tc-audit-badge b,.tc-audit-badge .tc-audit-count{min-width:auto!important;width:auto!important;height:auto!important;border-radius:6px!important;padding:3px 6px!important;background:#0f75ad!important;color:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:9px!important;line-height:1!important}
@media(max-width:700px){
 .technician-calendar-section[data-calendar-view="month"] .tc-day-events{display:flex!important;flex-direction:column!important;gap:3px!important}
 .technician-calendar-section[data-calendar-view="month"] .tc-month-event-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:2px!important;width:100%!important}
 .technician-calendar-section[data-calendar-view="month"] .tc-month-event-row.paired{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2px!important}
 .technician-calendar-section[data-calendar-view="month"] .tc-month-event-row .tc-event{width:100%!important;min-width:0!important;max-width:100%!important}
}


/* V1.0.145 — popup storico, stato rapido, notifiche calendario, mese compatto */
.tc-modal-overlay-stacked{z-index:10450!important;background:rgba(8,26,40,.48)!important;backdrop-filter:blur(1.5px)}
.tc-audit-badge{-webkit-tap-highlight-color:transparent!important;position:relative!important;overflow:hidden!important;outline:none!important}
.tc-audit-badge::before,.tc-audit-badge::after{content:none!important;display:none!important}
.tc-audit-badge:active{transform:none!important;box-shadow:0 2px 7px rgba(15,95,141,.12)!important}
.tc-summary-status-button{appearance:none;-webkit-appearance:none;width:100%;text-align:left;font:inherit;cursor:pointer;transition:.15s ease}
.tc-summary-status-button:hover,.tc-summary-status-button:focus-visible{border-color:#8dc4e2!important;background:#f3faff!important;box-shadow:0 0 0 3px rgba(29,145,200,.08)}
.tc-quick-status-list{display:grid;gap:8px}.tc-quick-status-list>button{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:10px;border:1px solid #dce8f0;background:#fff;border-radius:13px;padding:12px 13px;text-align:left;color:#24465f;font-weight:850;cursor:pointer}.tc-quick-status-list>button.active{border-color:#79bde0;background:#f2faff}.tc-quick-status-list .tc-status-dot{position:relative!important;left:auto!important;right:auto!important;top:auto!important;width:15px!important;height:15px!important}.tc-quick-status-list small{font-size:10px;color:#668096}
.tc-notification-wrap{position:relative;display:flex;align-items:center}.tc-notification-bell{position:relative;width:42px;height:42px;border:1px solid rgba(255,255,255,.28);border-radius:12px;background:rgba(255,255,255,.96);color:#0f4c81;display:grid;place-items:center;cursor:pointer}.tc-notification-bell svg{width:21px;height:21px}.tc-notification-bell>span{position:absolute;right:-5px;top:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#e53935;color:#fff;font:900 10px/19px Arial;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.18)}.tc-notification-bell.has-unread svg{animation:tcBellPulse .9s ease-in-out 2}@keyframes tcBellPulse{25%{transform:rotate(-10deg)}50%{transform:rotate(10deg)}75%{transform:rotate(-5deg)}}
.tc-notification-panel{position:absolute;right:0;top:48px;width:min(390px,92vw);max-height:70vh;overflow:hidden;background:#fff;border:1px solid #dbe7ef;border-radius:16px;box-shadow:0 18px 48px rgba(10,40,62,.24);z-index:10600}.tc-notification-head{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid #e7eef3}.tc-notification-head>div{display:grid;gap:2px}.tc-notification-head small{color:#718595}.tc-notification-head>button{border:0;background:#eef4f8;width:30px;height:30px;border-radius:50%;font-size:19px}.tc-notification-list{display:grid;max-height:58vh;overflow:auto}.tc-notification-item{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;padding:11px 13px;border:0;border-bottom:1px solid #edf2f5;background:#fff;text-align:left;cursor:pointer}.tc-notification-item.is-unread{background:#f1f9fe}.tc-notification-item .tc-notification-type{grid-row:1/4;align-self:start;margin-top:2px;padding:4px 6px;border-radius:7px;background:#e5f5fd;color:#0f6390;font-size:9px;font-weight:900;text-transform:uppercase}.tc-notification-item strong{font-size:12px;color:#173e59}.tc-notification-item small{font-size:10px;color:#718595}.tc-notification-empty{padding:20px;text-align:center;color:#708596}
.technician-calendar-section[data-calendar-view="month"] .tc-month-event-row.paired{display:flex!important;gap:0!important;align-items:flex-start!important;overflow:visible!important}.technician-calendar-section[data-calendar-view="month"] .tc-month-event-row.paired .tc-event{flex:0 0 56%!important;width:56%!important;max-width:56%!important}.technician-calendar-section[data-calendar-view="month"] .tc-month-event-row.paired .tc-event+ .tc-event{margin-left:-12%!important;margin-top:7px!important;z-index:3!important;box-shadow:0 4px 10px rgba(0,0,0,.16)!important}
@media(max-width:700px){.tc-notification-panel{position:fixed;right:8px;top:66px;width:calc(100vw - 16px);max-height:74dvh}.technician-calendar-section[data-calendar-view="month"] .tc-month-event-row.paired .tc-event{flex-basis:58%!important;width:58%!important;max-width:58%!important}.technician-calendar-section[data-calendar-view="month"] .tc-month-event-row.paired .tc-event+ .tc-event{margin-left:-16%!important;margin-top:6px!important}}

/* V1.0.146 — popup secondari sempre sopra + badge modifiche pulito */
.tc-modal-overlay-stacked,.tc-quick-status-overlay{z-index:999999!important}
.tc-audit-badge{border:0!important;background:transparent!important;box-shadow:none!important;padding:2px 0!important;border-radius:0!important;gap:7px!important}.tc-audit-badge>span{font-weight:900;color:#0f5f8d}.tc-audit-badge b,.tc-audit-count{min-width:22px!important;height:20px!important;border-radius:7px!important;padding:0 6px!important;background:#0f75ad!important;color:#fff!important;display:inline-grid!important;place-items:center!important}
.internal-calendar-activity{position:relative;padding:0!important;display:grid!important;grid-template-columns:1fr auto!important;gap:0!important}.internal-calendar-open{border:0;background:transparent;text-align:left;padding:13px 10px 13px 15px;display:flex;gap:11px;align-items:center;min-width:0}.internal-calendar-delete{border:0;background:transparent;color:#b42318;font-size:20px;padding:0 13px}.internal-clear-calendar{width:auto!important;padding:0 10px!important;font-size:11px!important}


/* V1.0.147 — badge Modificato leggibile e popup secondari sopra */
.tc-summary-audit-meta .tc-audit-badge{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;white-space:nowrap!important}
.tc-summary-audit-meta .tc-audit-label{display:inline!important;position:static!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;color:#0f5f8d!important;font-weight:900!important;line-height:20px!important}
.tc-summary-audit-meta .tc-audit-count{display:inline-grid!important;place-items:center!important;position:static!important;min-width:24px!important;height:20px!important;padding:0 7px!important;border-radius:7px!important;background:#0f75ad!important;color:#fff!important;font-size:10px!important;line-height:20px!important}
.tc-summary-audit-meta .tc-audit-badge::before,.tc-summary-audit-meta .tc-audit-badge::after{display:none!important;content:none!important}
.tc-modal-overlay-stacked,.tc-quick-status-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;background:rgba(5,22,35,.58)!important;display:grid!important;place-items:center!important;padding:18px!important}
.tc-modal-overlay-stacked .tc-modal,.tc-quick-status-overlay .tc-modal{position:relative!important;z-index:2147483001!important;max-height:calc(100dvh - 36px)!important;overflow:auto!important}


/* V1.0.148 — storico modifiche più leggibile */
.tc-audit-row.is-latest{border:2px solid #1b87c9;background:#f4fbff;box-shadow:0 5px 16px rgba(27,135,201,.12)}
.tc-audit-latest-label{display:inline-flex;margin-bottom:8px;padding:4px 8px;border-radius:7px;background:#0f75ad;color:#fff;font-size:9px;font-weight:950;letter-spacing:.08em}
.tc-audit-changes>div.is-status-change{background:#eef8ff;border:1px solid #c6e5f8;border-radius:10px;padding:9px 10px;margin-top:4px}
.tc-audit-changes>div.is-status-change span{font-weight:850;color:#123f60}.tc-audit-changes em{font-style:normal;font-weight:950;color:#0f75ad;padding:0 3px}
.tc-audit-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.tc-audit-actions .btn{font-size:11px;padding:7px 10px}.tc-audit-voided{margin-top:8px;padding:7px 9px;border-radius:9px;background:#fff3f2;color:#9b3d34;font-size:10px;font-weight:750}.tc-audit-row.is-voided{opacity:.68}

/* V1.0.149 — riepilogo mobile e gestione note */
.tc-work-note-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.tc-work-note-delete{color:#b42318!important;border-color:#f0c9c4!important;background:#fff7f6!important}
@media(max-width:700px){
 .tc-modal-head>button[data-close]{width:44px!important;height:44px!important;min-width:44px!important;border-radius:13px!important;font-size:28px!important;line-height:1!important;display:grid!important;place-items:center!important}
}


/* V1.0.163 — multi-giorno compatto sopra timeline + respiro timeline */
.technician-calendar-section .tc-week-timeline.has-multiday{grid-template-rows:auto auto 1fr}
.technician-calendar-section .tc-week-timeline.has-multiday .tc-week-times,
.technician-calendar-section .tc-week-timeline.has-multiday .tc-week-day-track{grid-row:3}
.technician-calendar-section .tc-week-multiday-lane{grid-column:2/9;grid-row:2;position:relative;background:#f8fbfd;border-bottom:1px solid #d9e6ef;overflow:hidden;min-height:44px}
.technician-calendar-section .tc-week-multiday-label{position:absolute;left:6px;top:6px;font-size:9px;font-weight:900;color:#6f8798;z-index:1;pointer-events:none}
.technician-calendar-section .tc-week-multiday-event{position:absolute;min-width:0;height:32px;border:0;border-radius:10px;background:var(--event-color);color:var(--event-text);padding:5px 10px;text-align:left;display:flex;align-items:center;gap:8px;overflow:hidden;box-shadow:0 2px 7px rgba(23,62,95,.16);z-index:3;cursor:pointer}
.technician-calendar-section .tc-week-multiday-event strong{font-size:11px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52%}
.technician-calendar-section .tc-week-multiday-event span{font-size:10px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
@media(max-width:700px){
 .technician-calendar-section .tc-week-multiday-event{height:25px;padding:3px 6px;gap:5px;border-radius:8px}
 .technician-calendar-section .tc-week-multiday-event strong,.technician-calendar-section .tc-week-multiday-event span{font-size:8px}
}

/* V1.0.164 — multi-day desktop più leggibile */
@media(min-width:1051px){
 .technician-calendar-section .tc-week-multiday-lane{min-height:54px!important;}
 .technician-calendar-section .tc-week-multiday-event{height:38px!important;padding:7px 12px!important;border-radius:11px!important;}
 .technician-calendar-section .tc-week-multiday-event strong{font-size:12px!important;max-width:58%!important;}
 .technician-calendar-section .tc-week-multiday-event span{font-size:11px!important;}
}

/* V1.0.178 - drag desktop: badge riposizionato e fascia oraria evidenziata */
.tc-desktop-drag-badge{position:fixed;z-index:400020;pointer-events:none;min-width:150px;max-width:260px;padding:9px 12px;border-radius:10px;background:#0f4c81;color:#fff;font:800 12px/1.2 Inter,Arial,sans-serif;box-shadow:0 10px 26px rgba(15,42,61,.28);white-space:nowrap;text-align:center;transform:translate(-50%,-100%);margin-top:-20px}
.tc-desktop-drag-badge.is-below{transform:translate(-50%,0);margin-top:0}

/* V1.0.182 — riepilogo compatto + selezione multipla lavorazioni */
.tc-event-summary-grid-compact{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
}
.tc-event-summary-grid-compact .tc-summary-col-2{grid-column:span 2}
.tc-event-summary-grid-compact .tc-summary-col-3{grid-column:span 3}
.tc-summary-lower-grid{margin-top:10px}
.tc-event-summary-grid-compact .tc-event-summary-item{min-height:76px}
.tc-event-summary-grid-compact .tc-event-summary-status{min-height:76px}
.tc-summary-vehicle-compact{display:grid;gap:6px;margin-top:2px}
.tc-summary-vehicle-compact>div{display:grid;gap:2px;padding:6px 0;border-top:1px solid #e6eef4}
.tc-summary-vehicle-compact>div:first-child{border-top:0;padding-top:0}
.tc-summary-vehicle-compact strong{font-size:13px!important;color:#173d5b!important}
.tc-summary-vehicle-compact span{font-size:11px!important;text-transform:none!important;letter-spacing:0!important;color:#637b8e!important}
.tc-summary-empty{font-size:12px;color:#71879a;padding-top:5px}
.tc-summary-panel{align-content:start;min-height:150px!important}
.tc-summary-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.tc-summary-panel-head>span{margin:0;color:#658094;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.tc-summary-panel-head>b{font-size:10px;color:#60798d;white-space:nowrap}
.tc-summary-panel-body{min-height:0}
.tc-summary-panel-actions{display:flex;justify-content:flex-end;margin-top:9px}
.tc-summary-general-note{margin:0 0 9px;padding:9px 10px;border:1px solid #d8e6ef;border-radius:10px;background:#fff}
.tc-summary-general-note small{display:block;margin-bottom:4px;color:#698195;font-size:10px;font-weight:900;text-transform:uppercase}
.tc-summary-general-note p{margin:0;white-space:pre-wrap;color:#1f4059;font-size:12px;line-height:1.35}
.tc-summary-panel .tc-work-note-history,.tc-summary-panel .tc-message-history-list{margin-top:5px}
.tc-summary-panel .tc-message-history-row{padding:7px 8px}
.tc-summary-panel .tc-message-history-empty,.tc-summary-panel .tc-work-note-empty{padding:8px 0;margin:0}

.tc-work-multi{position:relative;border:1px solid #cfdde7;border-radius:11px;background:#fff;overflow:visible}
.tc-work-multi>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;cursor:pointer;font-weight:850;color:#173e5f}
.tc-work-multi>summary::-webkit-details-marker{display:none}
.tc-work-multi>summary::after{content:'⌄';font-size:17px;color:#3e6c8d;margin-left:auto}
.tc-work-multi[open]>summary::after{transform:rotate(180deg)}
.tc-work-multi>summary b{font-size:10px;color:#71879a;font-weight:800;white-space:nowrap}
.tc-work-options{display:grid;gap:3px;padding:7px;border-top:1px solid #e4edf3;max-height:240px;overflow:auto}
.tc-work-option{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;padding:8px 9px!important;border-radius:8px!important;color:#294d68!important;font-size:12px!important;cursor:pointer}
.tc-work-option:hover{background:#f1f7fb}
.tc-work-option input{width:17px;height:17px;margin:0;accent-color:#0f6fa7;flex:0 0 auto}
.tc-work-option span{font-weight:750}
.tc-work-options-empty{padding:10px;color:#74899a;font-size:11px}
.tc-vehicle-work>.tc-work-multi{margin-bottom:8px}

@media(max-width:900px){
  .tc-event-summary-grid-compact{grid-template-columns:1fr!important}
  .tc-event-summary-grid-compact .tc-summary-col-2,.tc-event-summary-grid-compact .tc-summary-col-3{grid-column:auto!important}
  .tc-summary-panel{min-height:0!important}
}

/* V1.0.184 — solo testo: geometria e scorrimento timeline invariati */
.technician-calendar-section .tc-timeline-event:not(.is-tiny):not(.is-small) .tc-timeline-work{
 display:block!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
 -webkit-line-clamp:unset!important;max-height:none!important;line-height:1.15!important;
}
.technician-calendar-section .tc-day-work{white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}

/* V1.0.183 — box settimana adattive: essenziali sempre leggibili */
.tc-timeline-event.tc-event-adaptive{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:2px!important;
  padding:5px 6px!important;
  overflow:hidden!important;
}
.tc-timeline-event.tc-event-adaptive .tc-event-essential{
  display:flex!important;
  align-items:flex-start!important;
  gap:5px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  color:var(--event-text,#fff)!important;
}
.tc-timeline-event.tc-event-adaptive .tc-event-auto{
  justify-content:space-between!important;
  line-height:1.05!important;
}
.tc-timeline-event.tc-event-adaptive .tc-event-auto>b{
  min-width:0!important;
  flex:1 1 auto!important;
  font-size:10px!important;
  line-height:1.05!important;
  font-weight:950!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  padding:0!important;
}
.tc-timeline-event.tc-event-adaptive .tc-event-auto>small{
  flex:0 0 auto!important;
  font-size:8.5px!important;
  line-height:1.05!important;
  font-weight:950!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.tc-timeline-event.tc-event-adaptive .tc-event-job{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:start!important;
  column-gap:5px!important;
  line-height:1.05!important;
}
.tc-timeline-event.tc-event-adaptive .tc-event-job>b{
  font-size:8.5px!important;
  line-height:1.05!important;
  font-weight:950!important;
  white-space:nowrap!important;
  overflow:visible!important;
  padding:0!important;
}
.tc-timeline-event.tc-event-adaptive .tc-event-job>span{
  font-size:8.5px!important;
  line-height:1.05!important;
  font-weight:850!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  display:block!important;
  min-width:0!important;
}
.tc-timeline-event.tc-event-adaptive .tc-event-optional{
  margin:0!important;
  font-size:8px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.tc-timeline-event.tc-event-adaptive.is-tiny,
.tc-timeline-event.tc-event-adaptive.is-small{
  padding:4px 5px!important;
  gap:1px!important;
}
.tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-auto>b,
.tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-job>b,
.tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-job>span{font-size:7.5px!important;line-height:1.02!important}
.tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-auto>small{font-size:7px!important;line-height:1.02!important}
.tc-timeline-event.tc-event-adaptive.is-small .tc-event-auto>b{font-size:8.7px!important}
.tc-timeline-event.tc-event-adaptive.is-small .tc-event-job>b,
.tc-timeline-event.tc-event-adaptive.is-small .tc-event-job>span{font-size:8px!important}
@media(min-width:1051px){
 .tc-timeline-event.tc-event-adaptive:not(.is-tiny):not(.is-small) .tc-event-auto>b{font-size:11px!important}
 .tc-timeline-event.tc-event-adaptive:not(.is-tiny):not(.is-small) .tc-event-auto>small,
 .tc-timeline-event.tc-event-adaptive:not(.is-tiny):not(.is-small) .tc-event-job>b,
 .tc-timeline-event.tc-event-adaptive:not(.is-tiny):not(.is-small) .tc-event-job>span{font-size:9px!important}
}

/* V1.0.187 — ordine verticale dati essenziali nelle box settimana */
.tc-timeline-event.tc-event-adaptive .tc-event-core{
  display:block!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
  color:var(--event-text,#fff)!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.tc-timeline-event.tc-event-adaptive .tc-event-vehicle{font-size:10px!important;font-weight:950!important}
.tc-timeline-event.tc-event-adaptive .tc-event-plate{font-size:9px!important;font-weight:950!important}
.tc-timeline-event.tc-event-adaptive .tc-event-time{font-size:8.8px!important;font-weight:950!important}
.tc-timeline-event.tc-event-adaptive .tc-event-work{font-size:8.8px!important;font-weight:850!important;white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}
.tc-timeline-event.tc-event-adaptive.is-tiny{gap:0!important;padding:4px 5px!important}
.tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-core{font-size:7.3px!important;line-height:1.02!important;white-space:nowrap!important;-webkit-line-clamp:1!important}
.tc-timeline-event.tc-event-adaptive.is-small .tc-event-vehicle{font-size:8.7px!important}
.tc-timeline-event.tc-event-adaptive.is-small .tc-event-plate,
.tc-timeline-event.tc-event-adaptive.is-small .tc-event-time,
.tc-timeline-event.tc-event-adaptive.is-small .tc-event-work{font-size:7.8px!important}


/* V1.0.188 — Front Desk/Titolare: box sovrapposte più ampie e stato sempre visibile */
@media(min-width:1051px){
 .technician-calendar-section .tc-timeline-event.tc-event-adaptive{min-width:0!important;}
 .technician-calendar-section .tc-timeline-event.tc-event-adaptive .tc-status-dot{position:absolute!important;right:5px!important;top:5px!important;width:10px!important;height:10px!important;border-width:2px!important;z-index:4!important;}
 .technician-calendar-section .tc-timeline-event.tc-event-adaptive .tc-event-vehicle{padding-right:15px!important;}
 .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-status-dot{right:3px!important;top:3px!important;width:9px!important;height:9px!important;}
 .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-vehicle{padding-right:12px!important;}
}


/* V1.0.189 — Front Desk/Titolare: box piccole più leggibili e spazio interno sfruttato */
@media(min-width:1051px){
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny{
    padding:3px 4px!important;
    gap:1px!important;
    justify-content:flex-start!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-core{
    font-size:8.25px!important;
    line-height:1.08!important;
    letter-spacing:-.05px!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-vehicle{
    font-size:8.9px!important;
    line-height:1.08!important;
    padding-right:13px!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-plate{
    font-size:8.45px!important;
    line-height:1.08!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-time{
    font-size:8.35px!important;
    line-height:1.08!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-work{
    font-size:8.25px!important;
    line-height:1.08!important;
    -webkit-line-clamp:1!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-small{
    padding:4px 5px!important;
    gap:2px!important;
    justify-content:flex-start!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-small .tc-event-vehicle{
    font-size:10px!important;
    line-height:1.1!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-small .tc-event-plate,
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-small .tc-event-time{
    font-size:9.2px!important;
    line-height:1.1!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-small .tc-event-work{
    font-size:9px!important;
    line-height:1.1!important;
    -webkit-line-clamp:2!important;
  }
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-optional,
  .technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-small .tc-event-optional{
    margin-top:1px!important;
  }
}

/* V1.0.190 - orario manuale nel picker */
.tc-datetime-manual-wrap{display:flex;align-items:center;gap:7px;margin-left:auto}.tc-datetime-manual-pair{display:inline-flex;align-items:center;gap:3px}.tc-datetime-manual-pair b{color:#54738b;font-weight:900}.tc-datetime-manual-wrap input{width:38px;height:34px;border:1px solid #bed4e4;border-radius:9px;background:#fff;color:#0f4c81;font:900 14px/1 Inter,Arial,sans-serif;text-align:center;outline:none;padding:5px 4px}.tc-datetime-manual-wrap input:focus{border-color:#1684c5;box-shadow:0 0 0 3px rgba(22,132,197,.12)}.tc-datetime-manual-wrap input.is-invalid{border-color:#d33;background:#fff5f5}.tc-datetime-manual-wrap small{font-size:9px;color:#7890a2;font-weight:800;white-space:nowrap}
@media(max-width:700px){.tc-datetime-manual-wrap{gap:4px}.tc-datetime-manual-wrap input{width:36px;height:32px;font-size:13px}.tc-datetime-manual-wrap small{display:none}}

/* V1.0.191 - giorno selezionato mini calendario */
.tc-side-calendar-days button.is-selected{background:#0b78b7!important;color:#fff!important;font-weight:900!important}


/* V1.0.192 - giorno selezionato diverso da oggi nella vista grande */
.tc-week-day-head.is-selected-day{background:#fff3d6!important;box-shadow:inset 0 -3px 0 #e79a13!important}
.tc-week-day-head.is-selected-day b,.tc-week-day-head.is-selected-day span{color:#8a4f00!important}
.tc-week-day-track.is-selected-day{background:linear-gradient(rgba(255,245,218,.62),rgba(255,250,237,.42))!important;box-shadow:inset 2px 0 0 rgba(231,154,19,.42),inset -2px 0 0 rgba(231,154,19,.42)}

/* V1.0.193 — oggi più trasparente + giorno selezionato anche in vista mese */
.tc-week-day-head.is-today{background:rgba(21,144,200,.075)!important;box-shadow:inset 0 -2px 0 rgba(21,144,200,.28)!important}
.tc-week-day-head.is-today b,.tc-week-day-head.is-today span{color:#3f789b!important}
.tc-week-day-track:not(.is-selected-day):has(+ *){}
.tc-day-cell.today{background:rgba(21,144,200,.045)!important}
.tc-day-cell.today .tc-day-number{background:rgba(21,144,200,.16)!important;color:#236b95!important;box-shadow:inset 0 0 0 1px rgba(21,144,200,.24)!important}
.tc-day-cell.selected-day{background:linear-gradient(rgba(255,243,208,.72),rgba(255,249,233,.5))!important;box-shadow:inset 0 0 0 2px rgba(231,154,19,.48)!important}
.tc-day-cell.selected-day .tc-day-number{background:#e79a13!important;color:#fff!important;box-shadow:0 3px 9px rgba(231,154,19,.22)!important}

.tc-week-day-track.is-today:not(.is-selected-day){background:rgba(21,144,200,.035)!important;box-shadow:inset 1px 0 0 rgba(21,144,200,.10),inset -1px 0 0 rgba(21,144,200,.10)!important}


/* V1.0.195 — tipografia più leggibile, Ferie/Permessi e azienda prioritaria */
.technician-calendar-section .tc-timeline-event,.technician-calendar-section .tc-event,.tc-modal{font-weight:500}
.technician-calendar-section .tc-timeline-event b,.technician-calendar-section .tc-timeline-event strong,.technician-calendar-section .tc-event b,.technician-calendar-section .tc-event strong,.tc-modal strong,.tc-modal label{font-weight:650}
.tc-event-company{display:block;max-width:100%;font-size:11px;line-height:1.12;font-weight:750!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--event-text,#fff)}
.tc-entry-type-switch{display:flex;gap:8px;padding:0 16px 12px;margin-top:-4px}.tc-entry-type-switch label{flex:1;cursor:pointer}.tc-entry-type-switch input{position:absolute;opacity:0;pointer-events:none}.tc-entry-type-switch span{display:flex;justify-content:center;align-items:center;min-height:42px;border:1px solid #cfe0eb;border-radius:11px;background:#f7fbfd;color:#36556e;font-weight:650}.tc-entry-type-switch input:checked+span{background:#0f5c91;color:#fff;border-color:#0f5c91}.tc-entry-type-switch.is-existing{opacity:.8}
.tc-leave-editor{padding:0 16px 4px}.tc-leave-editor[hidden],#tceAppointmentEditorFields[hidden]{display:none!important}.tc-leave-event{justify-content:flex-start!important;align-items:flex-start!important}.tc-leave-event .tc-event-company{font-size:12px}.tc-leave-event .tc-event-work{font-weight:500!important;white-space:normal!important;line-height:1.2}

/* V1.0.197 — special entries, lighter calendar cards, drag lock */
.technician-calendar-section .tc-timeline-event,
.technician-calendar-section .tc-event{font-weight:400!important;letter-spacing:0!important}
.technician-calendar-section .tc-timeline-event b,
.technician-calendar-section .tc-timeline-event strong,
.technician-calendar-section .tc-event b,
.technician-calendar-section .tc-event strong{font-weight:500!important}
.technician-calendar-section .tc-timeline-event .tc-event-core,
.technician-calendar-section .tc-event span,
.technician-calendar-section .tc-event small{font-weight:400!important}
.technician-calendar-section .tc-event-company{font-weight:500!important}

.tc-entry-type-switch{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;padding:14px 20px!important;margin:0!important;background:#f7fafc;border-bottom:1px solid #e4edf3}
.tc-entry-type-switch span{font-weight:600!important;min-height:40px!important}
.tc-appointment-editor-modal.tc-special-entry-mode{width:min(760px,96vw)!important;max-height:none!important;overflow:visible!important}
.tc-appointment-editor-overlay:has(.tc-special-entry-mode){overflow:auto!important;align-items:center!important}
.tc-special-entry-mode .tc-editor-hero{margin-bottom:0!important}
.tc-special-entry-mode .tc-leave-editor{padding:16px 20px 4px!important}
.tc-special-entry-mode .tc-special-entry-block{padding:16px!important}
.tc-special-entry-mode .tc-special-entry-block .tc-form{grid-template-columns:1fr 1fr!important;gap:12px 14px!important}
.tc-special-entry-mode .tc-special-entry-block textarea{min-height:88px!important;max-height:120px!important;resize:vertical}
.tc-special-palette{margin-top:0!important}
.tc-special-entry-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tc-special-entry-settings label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #dce8ef;border-radius:12px;background:#fbfdff;color:#36546b;font-size:12px;font-weight:600}
.tc-special-entry-settings input[type=color]{width:64px;height:38px;padding:3px;border:1px solid #cfdee8;border-radius:9px;background:#fff}
.tc-drag-lock-row{padding:10px 12px;border:1px solid #dce8ef;border-radius:12px;background:#f8fbfd}
.tc-drag-lock-row .tc-inline-check{font-weight:600!important}

.tc-date-event-more{display:none!important}
.tc-date-event-dots{gap:2px!important}
.tc-date-event-dot:nth-child(n+3){display:none!important}

@media(max-width:700px){
 .tc-entry-type-switch{grid-template-columns:1fr!important;padding:10px 12px!important}
 .tc-special-entry-mode .tc-special-entry-block .tc-form{grid-template-columns:1fr!important}
 .tc-special-entry-settings{grid-template-columns:1fr}
 .tc-appointment-editor-modal.tc-special-entry-mode{max-height:none!important;overflow:visible!important}
}


/* V1.0.198 — Nota/Ferie: titolo multilinea + estratto descrizione */
.technician-calendar-section .tc-leave-event .tc-event-company{white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;font-weight:500!important;line-height:1.15!important}
.technician-calendar-section .tc-leave-event .tc-event-work{white-space:normal!important;overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;font-weight:400!important;line-height:1.15!important;margin-top:2px!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event{gap:2px!important;padding:5px 7px!important}
.technician-calendar-section .tc-week-multiday-event.tc-leave-event strong{white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
.technician-calendar-section .tc-week-multiday-event.tc-leave-event span{white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}

/* V1.0.198 — righe adattive per Nota/Ferie */
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tiny .tc-event-company{-webkit-line-clamp:1!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tiny .tc-event-work{-webkit-line-clamp:1!important;font-size:9px!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-medium .tc-event-company{-webkit-line-clamp:2!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-medium .tc-event-work{-webkit-line-clamp:2!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tall .tc-event-company{-webkit-line-clamp:3!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tall .tc-event-work{-webkit-line-clamp:3!important}

/* V1.0.199 — contenuti box adattivi per altezza */
.technician-calendar-section .tc-special-time{
  display:block!important;
  flex:0 0 auto;
  font-size:10px!important;
  line-height:1.1!important;
  font-weight:600!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:var(--event-text,#fff)!important;
}
.technician-calendar-section .tc-timeline-event.tc-leave-event{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
}
.technician-calendar-section .tc-timeline-event.tc-leave-event .tc-event-company{
  flex:0 0 auto!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  font-weight:500!important;
  line-height:1.12!important;
}
.technician-calendar-section .tc-timeline-event.tc-leave-event .tc-event-work{
  min-height:0!important;
  overflow:hidden!important;
  white-space:normal!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  font-weight:400!important;
  line-height:1.18!important;
}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tiny .tc-event-company{font-size:9.5px!important;-webkit-line-clamp:2!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tiny .tc-special-time{font-size:8.5px!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tiny .tc-event-work{font-size:8.5px!important;-webkit-line-clamp:1!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-medium .tc-event-company{font-size:11.5px!important;-webkit-line-clamp:3!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-medium .tc-special-time{font-size:9.8px!important;margin-top:1px!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-medium .tc-event-work{font-size:9.5px!important;-webkit-line-clamp:2!important;margin-top:2px!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tall .tc-event-company{font-size:13px!important;-webkit-line-clamp:5!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tall .tc-special-time{font-size:10.8px!important;margin-top:2px!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-tall .tc-event-work{font-size:10.5px!important;-webkit-line-clamp:4!important;margin-top:3px!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-xl .tc-event-company{font-size:14px!important;display:block!important;overflow:hidden!important;max-height:none!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-xl .tc-special-time{font-size:11.5px!important;margin-top:3px!important}
.technician-calendar-section .tc-timeline-event.tc-leave-event.is-xl .tc-event-work{font-size:11px!important;-webkit-line-clamp:6!important;margin-top:4px!important}

.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-core{font-size:9.7px!important;line-height:1.08!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-time,
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-work{font-size:10.4px!important;line-height:1.12!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tall .tc-event-core{font-size:10.8px!important;line-height:1.1!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tall .tc-event-time{font-size:12px!important;font-weight:650!important;line-height:1.12!important;margin-top:2px!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tall .tc-event-work{font-size:12px!important;font-weight:600!important;line-height:1.15!important;-webkit-line-clamp:3!important;margin-top:2px!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-xl .tc-event-core{font-size:11.8px!important;line-height:1.12!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-xl .tc-event-time{font-size:13.4px!important;font-weight:650!important;line-height:1.15!important;margin-top:3px!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-xl .tc-event-work{font-size:13px!important;font-weight:600!important;line-height:1.18!important;-webkit-line-clamp:4!important;margin-top:3px!important}

.technician-calendar-section .tc-event.tc-leave-event .tc-special-time{font-size:9px!important;margin-top:1px!important}
.technician-calendar-section[data-calendar-view="month"] .tc-event.tc-leave-event .tc-event-company{white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-height:1.08!important}
.technician-calendar-section[data-calendar-view="month"] .tc-event.tc-leave-event .tc-event-work{white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important;line-height:1.08!important}

@media(max-width:1050px){
  .technician-calendar-section .tc-timeline-event.tc-leave-event.is-medium .tc-event-company{-webkit-line-clamp:4!important}
  .technician-calendar-section .tc-timeline-event.tc-leave-event.is-tall .tc-event-company{-webkit-line-clamp:7!important}
  .technician-calendar-section .tc-timeline-event.tc-leave-event.is-tall .tc-event-work{-webkit-line-clamp:2!important}
  .technician-calendar-section .tc-timeline-event.tc-leave-event.is-xl .tc-event-company{display:block!important;white-space:normal!important;overflow:hidden!important;max-height:none!important}
  .technician-calendar-section .tc-timeline-event.tc-leave-event.is-xl .tc-event-work{-webkit-line-clamp:3!important}
}


/* V1.0.200 — riordino orizzontale + tipografia adattiva */
.tc-reorder-toggle{min-height:36px;padding:0 13px;border:1px solid #c9dbe7;border-radius:10px;background:#fff;color:#24506f;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap}
.tc-reorder-toggle.active{background:#0f6599;color:#fff;border-color:#0f6599}
.tc-reorder-active .tc-reorder-item{cursor:ew-resize!important;outline:1px dashed rgba(15,101,153,.35);outline-offset:-2px}
.tc-reorder-active .tc-reorder-item.is-reordering{opacity:.72!important;z-index:999!important;box-shadow:0 8px 22px rgba(9,60,94,.28)!important;transition:none!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tall .tc-event-vehicle,
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-xl .tc-event-vehicle{white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;text-overflow:clip!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-xl .tc-event-vehicle{-webkit-line-clamp:3!important}
@media(max-width:1050px){
 .tc-reorder-toggle{display:none!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive{padding:4px 5px!important;gap:1px!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive .tc-event-core{font-size:7.4px!important;line-height:1.04!important;font-weight:500!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;margin:0!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive .tc-event-time{font-size:7.6px!important;font-weight:600!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive .tc-event-work{font-size:7.4px!important;font-weight:500!important;white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive .tc-event-optional{display:none!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-leave-event{padding:4px 5px!important;gap:1px!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-leave-event .tc-event-company{font-size:8.5px!important;line-height:1.05!important;font-weight:550!important;-webkit-line-clamp:4!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-leave-event .tc-special-time{font-size:7.5px!important;line-height:1.05!important;font-weight:600!important;order:2!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-leave-event .tc-event-work{display:none!important}
}

/* V1.0.201 — Riordina inline, priorità box corte e mobile adattivo */
.technician-calendar-section .tc-view-actions{display:flex;align-items:center;gap:8px;min-width:0}
.technician-calendar-section .tc-reorder-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;height:34px;padding:0 10px;border:1px solid #c9dbe7;border-radius:9px;background:#f8fbfd;color:#24506f;font-size:10.5px;font-weight:650;cursor:pointer;white-space:nowrap;box-shadow:none}
.technician-calendar-section .tc-reorder-toggle svg{width:19px;height:15px;fill:none;flex:0 0 auto;overflow:visible}
.technician-calendar-section .tc-reorder-toggle .tc-reorder-arrow{fill:none;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}
.technician-calendar-section .tc-reorder-toggle .tc-reorder-arrow-left{stroke:#1688d4}
.technician-calendar-section .tc-reorder-toggle .tc-reorder-arrow-right{stroke:#23a65d}
.technician-calendar-section .tc-reorder-toggle.active .tc-reorder-arrow-left{stroke:#bfe7ff}
.technician-calendar-section .tc-reorder-toggle.active .tc-reorder-arrow-right{stroke:#bff3d2}
.technician-calendar-section .tc-reorder-toggle:hover{background:#eef7fc;border-color:#9cc8e2}
.technician-calendar-section .tc-reorder-toggle.active{background:#0f6599;color:#fff;border-color:#0f6599}
.technician-calendar-section .tc-reorder-active .tc-reorder-item{cursor:ew-resize!important}
.technician-calendar-section .tc-reorder-active .tc-reorder-item *{pointer-events:none!important}
@media(max-width:1050px){
 .technician-calendar-section .tc-view-actions{display:none!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-vehicle,
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-tall .tc-event-vehicle,
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-xl .tc-event-vehicle,
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-company,
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-tall .tc-event-company,
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-xl .tc-event-company{white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:clip!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-vehicle,
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-company{-webkit-line-clamp:2!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-tall .tc-event-vehicle,
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-tall .tc-event-company{-webkit-line-clamp:3!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-xl .tc-event-vehicle,
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive.is-xl .tc-event-company{-webkit-line-clamp:4!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-leave-event.is-medium .tc-event-work{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-leave-event.is-tall .tc-event-work{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-leave-event.is-xl .tc-event-work{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important}
}

/* V1.0.202 — timeline stabile, hover in primo piano e riordino a livelli */
@media(min-width:1051px){
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track{contain:layout style!important;}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event{backface-visibility:hidden;will-change:auto;}
 .technician-calendar-section .tc-reorder-active .tc-reorder-item{touch-action:none!important;}
}


/* V1.0.203 — stabilità finale calendario, riordino e densità desktop */
/* In Riordina: micro-movimento appena percettibile, disattivato durante il drag reale. */
@keyframes tcReorderNudge{0%,100%{transform:translateX(0)}50%{transform:translateX(1.5px)}}
.technician-calendar-section .tc-reorder-active .tc-reorder-item:not(.is-reordering){animation:tcReorderNudge .72s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){.technician-calendar-section .tc-reorder-active .tc-reorder-item{animation:none!important}}

/* Timeline stabile: nessuna transizione geometrica durante scroll/hover. */
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event{transition:none!important;transform-origin:center center}
.technician-calendar-section[data-calendar-view="week"] .tc-event-pointer-front,
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event:hover{z-index:99999!important}

/* Separatore verticale sempre visibile tra tutte le colonne (compreso Gio/Ven). */
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-track{border-right:1px solid #cfdce5!important;box-shadow:inset -1px 0 0 rgba(207,220,229,.95)}

/* Circa 1 ora: sfrutta l'altezza su desktop, senza mostrare il tecnico nella box. */
@media(min-width:1051px){
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish{padding:5px 7px!important;gap:1px!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-vehicle,
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-plate{font-size:10.4px!important;line-height:1.08!important;font-weight:500!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-time{font-size:11.8px!important;line-height:1.1!important;font-weight:650!important;margin-top:1px!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-work{font-size:11.2px!important;line-height:1.12!important;font-weight:600!important;white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
}

/* Il tecnico assegnato resta nel riepilogo, non nelle box del calendario. */
.technician-calendar-section .tc-event-technicians,
.technician-calendar-section .tc-timeline-tech,
.technician-calendar-section .tc-day-tech{display:none!important}


/* V1.0.204 — clipping intestazione settimana + uso completo altezza box */
/* L'intestazione dei giorni resta sempre sopra gli eventi durante lo scroll. */
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-head,
.technician-calendar-section[data-calendar-view="week"] .tc-week-time-head{
  position:sticky!important;
  top:0!important;
  z-index:200000!important;
  background:#f5f8fa!important;
  isolation:isolate!important;
}
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-head.is-today{background:rgba(21,144,200,.075)!important}
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-head.is-selected-day{background:#fff3d6!important}
/* Gli eventi non possono dipingere sopra la fascia data anche con hover/z-index elevato. */
.technician-calendar-section[data-calendar-view="week"] .tc-week-timeline{isolation:isolate!important}
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-track{z-index:1!important;overflow:visible!important}

@media(min-width:1051px){
  /* 1 ora / poco più: quattro dati principali leggibili, sfruttando tutta la box. */
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish{
    padding:4px 6px!important;
    gap:0!important;
    justify-content:flex-start!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-vehicle{
    font-size:9.6px!important;
    line-height:1.02!important;
    font-weight:600!important;
    white-space:normal!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-plate{
    font-size:8.8px!important;
    line-height:1.02!important;
    font-weight:500!important;
    white-space:nowrap!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-time{
    font-size:9.8px!important;
    line-height:1.04!important;
    font-weight:650!important;
    margin:1px 0 0!important;
    white-space:nowrap!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-work{
    font-size:9.2px!important;
    line-height:1.04!important;
    font-weight:600!important;
    white-space:normal!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    margin:1px 0 0!important;
  }

  /* 1h30 circa: prima cadeva in una fascia senza stile adattivo e lasciava spazio vuoto. */
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-medium{
    padding:5px 7px!important;
    gap:1px!important;
    justify-content:flex-start!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-company,
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-vehicle{
    font-size:10.8px!important;
    line-height:1.06!important;
    font-weight:600!important;
    white-space:normal!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-plate{
    font-size:9.7px!important;
    line-height:1.06!important;
    font-weight:500!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-time{
    font-size:11.2px!important;
    line-height:1.08!important;
    font-weight:650!important;
    margin-top:1px!important;
  }
  .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-medium .tc-event-work{
    font-size:10.5px!important;
    line-height:1.08!important;
    font-weight:600!important;
    white-space:normal!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    overflow:hidden!important;
    margin-top:1px!important;
  }
}

/* V1.0.205 — one opaque sticky layer for all eight header cells. */
.technician-calendar-section .tc-week-head-row{
 grid-column:1 / -1;grid-row:1;display:grid;grid-template-columns:subgrid;
 position:sticky;top:0;z-index:200000;background:#f5f8fa;isolation:isolate;
}
.technician-calendar-section .tc-week-head-row .tc-week-day-head,
.technician-calendar-section .tc-week-head-row .tc-week-time-head{
 position:relative!important;top:auto!important;grid-row:1;z-index:1!important;
 background:#f5f8fa!important;
}
.technician-calendar-section .tc-week-head-row .tc-week-day-head.is-today{background:#e7f3f8!important}
.technician-calendar-section .tc-week-head-row .tc-week-day-head.is-selected-day{background:#fff3d6!important}
@media(min-width:1051px){
 .technician-calendar-section .tc-week-day-track .tc-timeline-event[data-text-fitted]{gap:0!important;overflow:hidden!important;justify-content:flex-start!important}
 .technician-calendar-section .tc-week-day-track .tc-timeline-event[data-text-fitted] .tc-event-core{
  flex:0 0 auto!important;min-height:0!important;max-height:none!important;
  display:block!important;-webkit-line-clamp:unset!important;
  white-space:normal!important;overflow-wrap:anywhere;line-height:1.06!important;
  margin-top:0!important;margin-bottom:0!important;
 }
 .technician-calendar-section .tc-week-day-track .tc-timeline-event[data-text-fitted] .tc-event-time,
 .technician-calendar-section .tc-week-day-track .tc-timeline-event[data-text-fitted] .tc-event-plate{white-space:nowrap!important;overflow-wrap:normal}
}

/* V1.0.206 — tall desktop cards wrap complete words at a moderate size. */
@media(min-width:1051px){
 .technician-calendar-section .tc-week-day-track .tc-timeline-event[data-text-fitted].is-tall .tc-event-core,
 .technician-calendar-section .tc-week-day-track .tc-timeline-event[data-text-fitted].is-xl .tc-event-core{
  overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
 }
}

/* V1.0.207 — complete clock on its own row at every viewport size. */
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-clock-fitted] .tc-event-time,
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-clock-fitted] .tc-special-time{
 display:block!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;
 min-width:0!important;min-height:1.08em!important;max-height:none!important;
 white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
 -webkit-line-clamp:unset!important;word-break:normal!important;overflow-wrap:normal!important;
 margin:0!important;padding:0!important;line-height:1.08!important;
}
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-time-priority] .tc-event-time,
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-time-priority] .tc-special-time{order:-1!important}

/* V1.0.208 — hover cannot hide a shorter card under the pointer. */
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event:hover{z-index:var(--tc-base-z,4)!important}
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event.tc-event-pointer-front{z-index:99999!important}

/* V1.0.209 — combine identity only when measured width permits it on desktop. */
.technician-calendar-section .tc-week-day-track .tc-event-identity{display:contents}
@media(min-width:1051px){
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-identity-inline] .tc-event-identity{
  display:flex!important;align-items:baseline!important;gap:2px!important;
  flex:0 0 auto!important;min-width:0!important;width:100%!important;padding-right:14px!important;box-sizing:border-box!important;
 }
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-identity-inline] .tc-event-identity .tc-event-core{
  width:auto!important;max-width:none!important;min-width:0!important;flex:0 0 auto!important;
  white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
  padding:0!important;word-break:normal!important;overflow-wrap:normal!important;
 }
}
@media(max-width:1050px){.technician-calendar-section .tc-week-day-track .tc-event-identity{display:contents!important}}

@media(min-width:1051px){
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-identity-inline] .tc-event-plate::before{content:"· "}
}

/* V1.0.210 — directly editable values, shared by create/edit and special entries. */
.tc-appointment-editor-modal .tc-date-field .tc-native-datetime{
 display:block!important;width:100%!important;min-height:46px!important;padding:10px 12px!important;
 font:600 15px/1.3 Arial,sans-serif!important;color:#153a55!important;background:#f5fbff!important;
 border:1px solid #bcdceb!important;border-radius:10px!important;box-sizing:border-box!important;
}

/* V1.0.210 — alternate compact metadata row and measured special-entry text. */
@media(min-width:1051px){
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-metadata-inline] .tc-event-metadata{
  display:flex!important;align-items:baseline!important;gap:8px!important;flex:0 0 auto!important;min-width:0!important;width:100%!important;
 }
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-metadata-inline] .tc-event-metadata .tc-event-core{
  display:block!important;width:auto!important;max-width:none!important;min-width:0!important;flex:0 0 auto!important;
  white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;padding:0!important;
 }
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event.tc-leave-event[data-special-fitted] .tc-event-company,
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event.tc-leave-event[data-special-fitted] .tc-special-time,
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event.tc-leave-event[data-special-fitted] .tc-event-work{
  display:block!important;flex:0 0 auto!important;min-height:0!important;max-height:none!important;
  -webkit-line-clamp:unset!important;line-height:1.08!important;margin:0!important;
 }
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event.tc-leave-event[data-special-fitted] .tc-event-company,
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event.tc-leave-event[data-special-fitted] .tc-event-work{white-space:normal!important;overflow-wrap:anywhere!important}
}

/* V1.0.211 — narrow 60/90 minute desktop cards keep the vehicle on one line. */
@media(min-width:1051px){
 .technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event[data-text-fitted][data-vehicle-single-line] .tc-event-vehicle{
  display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  -webkit-line-clamp:unset!important;word-break:normal!important;overflow-wrap:normal!important;flex:0 0 auto!important;
 }
}
/* V220: editor scrolls inside the dialog; header and actions remain available. */
.tc-modal.tc-appointment-editor-modal{display:flex!important;flex-direction:column!important;max-height:calc(100dvh - 44px)!important;overflow:hidden!important;min-height:0!important}
.tc-appointment-editor-modal>.tc-editor-hero,.tc-appointment-editor-modal>.tc-modal-actions{flex:0 0 auto!important;position:relative!important}
.tc-appointment-editor-modal>.tc-editor-sections{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.tc-appointment-editor-modal>.tc-editor-sections[hidden]{display:none!important}
.tc-appointment-editor-modal>.tc-modal-actions{padding:14px 20px!important;background:#fff;border-top:1px solid #dce7ef}
.tc-appointment-editor-modal>.tc-editor-sections>*{flex-shrink:0!important}
.tc-appointment-editor-modal>#tceLeaveEditor{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
.tc-appointment-editor-modal>#tceLeaveEditor[hidden]{display:none!important}

/* V221: the mobile ghost has the same top edge used by the time calculation. */
.tc-touch-drag-ghost{transform:none!important;max-width:none!important;transform-origin:top left!important}

.tc-week-readable-preview{position:fixed;z-index:2147482000;pointer-events:none;display:flex;flex-direction:column;gap:7px;width:260px;max-width:calc(100vw - 24px);padding:16px;background:#fff;color:#163d5c;border:2px solid #2b8fc2;border-radius:13px;box-shadow:0 10px 35px #123b5c33;font:500 14px/1.4 Arial,sans-serif;overflow-wrap:anywhere;box-sizing:border-box}.tc-week-readable-preview strong{font-size:16px}

/* V225 — servizi aggiuntivi, catalogo e selezione accettazione. */
.irp-service-editor{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:14px;padding:18px;margin:16px 0;border:1px solid #cddfeb;border-radius:16px;background:#f5faff;color:#173e5c}
.irp-service-editor label{display:flex;flex-direction:column;gap:7px;font-weight:650;min-width:0}.irp-service-editor label:first-child,.irp-service-editor label:nth-child(2){grid-column:1/-1}
.irp-service-editor input:not([type=checkbox]),.irp-service-editor textarea{width:100%;box-sizing:border-box;border:1px solid #bdd6e6;border-radius:11px;padding:12px;font:inherit;color:#173e5c;background:#fff}
.irp-service-check{justify-content:center}.irp-service-check input,.irp-service-option input{appearance:none!important;-webkit-appearance:none!important;position:static!important;width:24px!important;height:24px!important;min-width:24px!important;padding:0!important;flex-shrink:0!important;background-size:100% 100%!important;background-repeat:no-repeat!important;opacity:1!important;margin:0!important;border:2px solid #9bbbd0!important;border-radius:7px!important;background:#fff!important;cursor:pointer}
.irp-service-check input:checked,.irp-service-option input:checked{background:#0f74ad!important;border-color:#0f74ad!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4 10-10' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")!important}
.irp-service-option input:focus-visible,.irp-service-check input:focus-visible{outline:3px solid #56bdf1;outline-offset:3px}
.irp-claim-services{grid-column:1/-1;width:100%;min-width:0}.irp-service-picker{border:1px solid #c5deed;border-radius:15px;overflow:hidden;background:#f5faff;margin:16px 0;color:#173e5c}
.irp-service-picker summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px;cursor:pointer;list-style:none;font-weight:700}.irp-service-picker summary::-webkit-details-marker{display:none}.irp-service-picker summary span{display:flex;flex-wrap:wrap;gap:10px}.irp-service-picker summary b{font-size:12px;border-radius:20px;background:#dceefa;padding:4px 9px}.irp-service-picker[open] summary i{transform:rotate(180deg)}
.irp-service-options{padding:0 14px 14px;display:grid;gap:10px}.irp-service-option{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;padding:14px!important;border:1px solid #d4e4ef;border-radius:12px;background:#fff;cursor:pointer;min-width:0}
.irp-service-option:has(input:checked){background:#e5f5ff;border-color:#1485bc}.irp-service-option>span{display:grid;gap:5px;flex:1;min-width:0;overflow-wrap:anywhere}.irp-service-option small{font-size:13px;line-height:1.4;font-weight:400;color:#526e82}.irp-service-option>b{white-space:nowrap;font-size:14px}.irp-service-total{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #cddfeb;padding:15px 2px 0;font-weight:600}
@media(max-width:600px){.irp-service-editor{grid-template-columns:1fr}.irp-service-editor label{grid-column:1/-1}.irp-service-option{gap:9px!important;padding:12px!important}.irp-service-option>b{font-size:13px}}

/* V226 — schede catalogo compatte, modifica esplicita e disponibilità. */
.irp-service-editor{display:block}.irp-service-editor-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.irp-service-editor-head>div{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}.irp-service-editor-head small{color:#536f83}.irp-service-editor-head button{flex-shrink:0}
.irp-service-fields{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:14px;margin-top:18px}.irp-service-fields[hidden]{display:none!important}.irp-service-fields label:first-child,.irp-service-fields label:nth-child(2){grid-column:1/-1}.irp-service-fields .irp-service-check{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;grid-column:1/-1;gap:10px}
.irp-service-availability{color:#147343!important;font-weight:650!important}.irp-service-availability.is-unavailable{color:#9a4034!important}.irp-service-option:has(input:disabled){background:#f0f3f6;color:#667c8c;cursor:default}.irp-service-option input:disabled{background:#e5eaf0!important;border-color:#b3c0cd!important}
#tcAdditionalServices,#tcVehicleConditions{display:block;margin-top:12px}
@media(max-width:600px){.irp-service-fields{grid-template-columns:1fr}.irp-service-editor-head{align-items:flex-start}.irp-service-editor-head button{font-size:13px;padding:9px}}

/* V227 — risposte alternative e lettura rapida mobile. */
.irp-service-fields select{padding:12px;border:1px solid #bdd6e6;border-radius:11px;background:#fff;color:#173e5c;font:inherit;max-width:100%}.irp-service-fields [data-condition-options-label][hidden]{display:none!important}
.irp-condition-choice{border:1px solid #c8deed;border-radius:13px;margin:0;padding:14px;display:grid;gap:9px;min-width:0}.irp-condition-choice legend{font-weight:750;color:#173e5c;padding:0 6px}.irp-condition-choice p{font-size:13px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 5px;color:#526e82}.irp-condition-choice input[type=radio]{border-radius:50%!important}.irp-condition-choice .btn{justify-self:start}
.irp-reading-settings{display:grid;gap:15px;padding:20px 0}.irp-reading-settings label.irp-service-check{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;padding:12px;border:1px solid #cddfeb;background:#f5faff;border-radius:12px}
#tcMobileReadingSettings{display:block;margin-top:12px}
.irp-mobile-reading-overlay{position:fixed;inset:0;background:rgba(7,29,47,.55);z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box;overscroll-behavior:contain}
.irp-mobile-reading-sheet{width:100%;max-width:540px;max-height:85dvh;display:flex;flex-direction:column;overflow:hidden;border-radius:22px;background:#fff;color:#173e5c;box-shadow:0 15px 60px #071d2f66;padding-bottom:env(safe-area-inset-bottom)}
.irp-mobile-reading-sheet header{display:flex;align-items:flex-start;gap:14px;justify-content:space-between;padding:20px;border-bottom:1px solid #dfebf3}.irp-mobile-reading-sheet header>div{min-width:0}.irp-mobile-reading-sheet h2{font:750 22px/1.25 Arial,sans-serif;margin:7px 0 0;overflow-wrap:anywhere}.irp-mobile-reading-sheet small{font-size:12px;color:#648095}.irp-mobile-reading-sheet header button{background:#edf5fa;border:0;border-radius:12px;width:44px;height:44px;flex:0 0 44px;color:#157cb6;font-size:27px;cursor:pointer}
.irp-mobile-reading-content{overflow:auto;overscroll-behavior:contain;padding:18px 20px;display:grid;gap:16px}.irp-mobile-reading-content>div{display:grid;gap:5px}.irp-mobile-reading-content strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}.irp-mobile-reading-sheet footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 20px;border-top:1px solid #dfebf3;flex-shrink:0}.irp-mobile-reading-sheet footer button{min-height:44px}
/* V228 — accettazione leggibile e dettagli notifica. */
.irp-note-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:14px}
.irp-acceptance-card{display:grid;gap:13px;font:400 14px/1.45 Arial,sans-serif;color:#173e5c}.irp-acceptance-card h4{font-size:16px;margin:0;padding:10px 12px;background:#eaf6fd;border-radius:10px;color:#105984}.irp-acceptance-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.irp-acceptance-card dl>div{background:#f5faff;border:1px solid #d3e5f1;padding:12px;border-radius:10px}.irp-acceptance-card dt{font-size:11px;color:#637f91}.irp-acceptance-card dd{margin:5px 0 0;font-size:16px;font-weight:700;overflow-wrap:anywhere}.irp-acceptance-card h5{margin:0 0 8px;font-size:13px;color:#32627f}.irp-acceptance-card section{padding:12px;border:1px solid #dce8f0;border-radius:11px}.irp-acceptance-card p{margin:4px 0!important;font:400 13px/1.5 Arial,sans-serif!important;white-space:pre-wrap;overflow-wrap:anywhere}.irp-acceptance-card ul{list-style:none;margin:0;padding:0;display:grid;gap:11px}.irp-acceptance-card li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #e7eff5;padding-bottom:9px;overflow-wrap:anywhere}.irp-acceptance-card li>div{min-width:0}.irp-acceptance-card li>b{flex-shrink:0;font-size:13px}.irp-condition-answer{background:#eaf6fd;color:#0f668e;padding:4px 8px;border-radius:7px;max-width:40%;white-space:normal}.irp-acceptance-total{display:flex;justify-content:space-between;gap:10px;padding-top:12px;font-weight:600}.tc-audit-changes span,.tc-audit-changes small{white-space:pre-wrap;overflow-wrap:anywhere}
.tc-modal:has(.irp-acceptance-card){width:min(1080px,calc(100vw - 24px));max-width:1080px}.tc-summary-lower-grid:has(.irp-acceptance-card){grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)!important}.tc-summary-lower-grid:has(.irp-acceptance-card)>.tc-summary-panel{grid-column:auto!important}
.irp-notification-facts{display:grid!important;gap:6px;margin-top:8px;font-size:12px;font-weight:400;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.irp-notification-facts>span{display:block!important}.irp-notification-facts b{font-weight:700}
@media(max-width:700px){.tc-summary-lower-grid:has(.irp-acceptance-card){grid-template-columns:1fr!important}.irp-acceptance-card dl{grid-template-columns:1fr}.irp-acceptance-card section{padding:10px}}

/* Keep the current time above cards, with the sticky day header above both. */
.technician-calendar-section .tc-week-day-track .tc-now-line{z-index:100000!important;pointer-events:none}
.tc-event-summary-grid-compact .tc-summary-facts{
  grid-column:1 / -1;display:grid;gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(min(100%, 118px),1fr));
}
.tc-event-summary-grid-compact .tc-summary-facts-wide{
  grid-template-columns:repeat(auto-fit,minmax(min(100%, 145px),1fr));
}
.tc-event-summary-grid-compact .tc-summary-facts > .tc-event-summary-item{
  grid-column:auto!important;min-width:0;min-height:60px;overflow-wrap:anywhere;
}

@media (min-width:701px) and (max-width:1050px), (min-width:701px) and (max-width:1366px) and (pointer:coarse){
  #technicianCalendar .tc-calendar-workspace,
  #technicianCalendar .tc-calendar-main,
  #technicianCalendar #tcCalendarBody{
    min-width:0!important;max-width:100%!important;width:100%!important;
  }
  #technicianCalendar:not([hidden]) .tc-toolbar{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;
  }
  #technicianCalendar .tc-view-actions{display:flex!important;flex-wrap:wrap;gap:6px}
  #technicianCalendar .tc-view-switch{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    flex:1 1 230px;width:auto!important;min-width:0;
  }
  #technicianCalendar .tc-nav{
    display:grid!important;grid-template-columns:36px minmax(52px,auto) 36px minmax(0,1fr)!important;
    grid-template-areas:"prev today next period"!important;min-width:0;gap:6px!important;
  }
  #technicianCalendar .tc-nav button{min-width:0!important}
  #technicianCalendar .tc-center-filter{min-width:0;justify-content:start}
  #technicianCalendar[data-calendar-view="week"] #tcCalendarBody{
    overflow:auto!important;touch-action:pan-x pan-y!important;
    -webkit-overflow-scrolling:touch!important;scroll-snap-type:none!important;
  }
  #technicianCalendar[data-calendar-view="week"] .tc-timeline-scroll{
    overflow:visible!important;touch-action:pan-x pan-y!important;
  }
  #technicianCalendar[data-calendar-view="week"] .tc-week-timeline{
    min-width:966px!important;grid-template-columns:42px repeat(7,minmax(132px,1fr))!important;
  }
}

.tc-week-readable-preview .tc-readable-note-label{
  border-top:1px solid #d8e6ef;
  padding-top:6px;
  font-size:12px;
}
.tc-week-readable-preview .tc-readable-note{
  white-space:pre-wrap;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:7;
  overflow:hidden;
}
@media (max-width:600px){
  .tc-event-summary-grid-compact .tc-summary-facts:not(.tc-summary-facts-wide){
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }
  .tc-event-summary-grid-compact .tc-summary-facts:not(.tc-summary-facts-wide) > .tc-event-summary-item{
    padding:7px 6px;
    gap:4px;
    min-height:54px;
    align-content:start;
  }
  .tc-summary-facts:not(.tc-summary-facts-wide) > .tc-event-summary-item > span{
    font-size:10px;
    letter-spacing:0;
  }
  .tc-summary-facts:not(.tc-summary-facts-wide) > .tc-event-summary-item > strong{
    font-size:clamp(10px,3.2vw,14px);
  }
}

/* Keep horizontal swipes inside either calendar, without rubber-band at the edges. */
@media(max-width:1050px), (max-width:1366px) and (pointer:coarse){
  :is(#technicianCalendar,#techCalendarPage) :is(#tcCalendarBody,.tc-timeline-scroll){
    overscroll-behavior-x:none!important;
  }
  :is(#technicianCalendar,#techCalendarPage) .tc-week-head-row .tc-week-time-head{
    position:sticky!important;
    left:0;
    z-index:2!important;
  }
}


.tc-day-list .tc-day-band{
  box-sizing:border-box;display:grid;gap:.55rem;min-width:0;
  margin:.55rem 0 .1rem;padding:.75rem .85rem;
  border:1px solid #ccdfed;border-inline-start:4px solid #0f78aa;border-radius:12px;
  background:linear-gradient(115deg,#eaf5fc,#f6faff);color:#173f5e;
}
.tc-day-band h3{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .7rem;margin:0;font-size:1.06rem}
.tc-day-band-hours,.tc-day-band-counts span{
  display:inline-block;padding:.22rem .45rem;border:1px solid #c5dceb;border-radius:7px;
  background:#fff;color:#235273;font-size:.75rem;font-weight:700;line-height:1.3;
}
.tc-day-band-hours{background:#dceefa;font-variant-numeric:tabular-nums}
.tc-day-band-counts{display:flex;flex-wrap:wrap;gap:.3rem}
[data-day-bands],.tc-day-band-inputs label{min-width:0}
.tc-day-band-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.tc-day-band-inputs label{display:grid;gap:.25rem}
[data-day-bands] .tc-day-band-inputs input[type="time"],[data-day-bands] select{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
}
[data-day-bands] .tc-day-band-flag{display:flex;align-items:center;gap:.55rem;margin:.65rem 0}
[data-day-bands] .tc-day-band-flag input[type="checkbox"]{
  flex:0 0 1.125rem;
  width:1.125rem;
  height:1.125rem;
  margin:0;
}
@media(max-width:360px){.tc-day-band-inputs{grid-template-columns:1fr}}
[data-day-bands] input[type="time"]::-webkit-date-and-time-value{min-width:0;margin:0}
@media(max-width:700px){
  .tc-day-list,.tc-day-list .tc-day-unified,.tc-day-list .tc-day-unified>*{
    box-sizing:border-box;min-width:0;max-width:100%;
  }
  .tc-day-list .tc-day-unified{overflow-wrap:anywhere}
}

.tc-day-list .tc-day-band-morning{
 border-color:#b9dfcd;border-inline-start-color:#2e9468;
 background:linear-gradient(115deg,rgba(111,202,155,.24),rgba(205,240,220,.24));
}
.tc-day-band-morning .tc-day-band-hours{
 background:rgba(145,214,175,.26);border-color:#b9dfcd;color:#205b43;
}
.technician-calendar-section[data-calendar-view="week"] .tc-week-head-row .tc-week-day-head.is-today{
 background:linear-gradient(135deg,#b6e0f5,#d5edfb)!important;
 box-shadow:inset 0 -3px 0 #218abc!important;
}
.technician-calendar-section .tc-week-day-head.is-today :is(b,span){color:#164e75!important}
.technician-calendar-section .tc-week-day-track.is-today:not(.is-selected-day){
 background:linear-gradient(180deg,rgba(47,155,214,.18),rgba(47,155,214,.10))!important;
 box-shadow:inset 1px 0 0 rgba(33,138,188,.30),inset -1px 0 0 rgba(33,138,188,.30)!important;
}
.technician-calendar-section .tc-day-cell.today:not(.selected-day){
 background:linear-gradient(135deg,rgba(47,155,214,.19),rgba(47,155,214,.09))!important;
}

/* Use the same grid tracks for the week header and the timeline, including Sunday. */
@media(max-width:1050px), (max-width:1366px) and (pointer:coarse){
 :is(#technicianCalendar,#techCalendarPage)[data-calendar-view="week"] #tcCalendarBody{
  background-image:none!important;
 }
 :is(#technicianCalendar,#techCalendarPage)[data-calendar-view="week"] .tc-week-timeline{
  box-sizing:border-box;width:100%!important;min-width:968px!important;
  grid-template-columns:42px repeat(7,minmax(132px,1fr))!important;
 }
 :is(#technicianCalendar,#techCalendarPage)[data-calendar-view="week"] :is(.tc-week-day-head,.tc-week-day-track){
  box-sizing:border-box;width:auto!important;min-width:0!important;
 }
}
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-day-cell.today{
 background:linear-gradient(135deg,#cbe8fa,#e4f3fc)!important;
 box-shadow:inset 0 0 0 1px #80b9dc!important;
}
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-day-cell.selected-day{
 background:linear-gradient(135deg,#ffe9af,#fff5dc)!important;
 box-shadow:inset 0 0 0 1px #e4b451!important;
}
[data-day-bands] .tc-day-band-inputs{
 grid-template-columns:repeat(2,minmax(0,9rem));
}
[data-day-bands] .tc-day-band-inputs label{
 grid-template-columns:minmax(0,1fr);
}
[data-day-bands] .tc-day-band-inputs input[type="time"]{
 display:block;appearance:none;-webkit-appearance:none;
 margin:0!important;padding:0 8px!important;height:44px!important;min-height:44px!important;
 font-size:16px;text-align:center;
}
[data-day-bands] .tc-day-band-inputs input[type="time"]::-webkit-date-and-time-value{
 text-align:center;
}

:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="day"] #tcCalendarBody{background-image:none!important}
.tc-day-band [data-day-work]{
 display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;width:100%;min-height:44px;
 border:0;padding:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;
}
.tc-day-band [data-day-work]>span:last-child{margin-inline-start:auto}
.tc-day-work-dialog{
 box-sizing:border-box;width:min(520px,calc(100% - 24px));max-height:85dvh;
 padding:18px;border:1px solid #c2d9e8;border-radius:16px;color:#173f5e;background:#fff;
}
.tc-day-work-dialog::backdrop{background:#102c49a6}
.tc-day-work-dialog h2{font-size:20px;margin:0 0 16px}
.tc-day-work-groups section{padding:12px;margin:0 0 10px;border-radius:10px;background:#edf6fc}
.tc-day-work-groups h3{font-size:16px;margin:0 0 8px}
.tc-day-work-groups h3 b{display:inline-block;padding:3px 8px;border-radius:6px;background:#12669b;color:#fff}
.tc-day-work-groups ul{padding:0;margin:0;list-style:none}
.tc-day-work-groups li,.tc-day-work-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.tc-day-work-groups li{padding:5px 0;overflow-wrap:anywhere}
.tc-day-work-groups time{white-space:nowrap}

.tc-day-list .tc-day-band{padding:.4rem .7rem;gap:.18rem}
.tc-day-band [data-day-work]{min-height:34px;gap:.35rem}
.tc-day-band-counts span{padding:.12rem .35rem}
.tc-day-work-pulse{
 margin-inline-start:auto;margin-inline-end:4px;flex:none;width:9px;height:9px;
 border-radius:50%;background:#1479a6;box-shadow:0 0 0 3px #1479a633;
 animation:tc-day-work-pulse 1.8s ease-in-out infinite;
}
.tc-day-band-morning .tc-day-work-pulse{background:#248362;color:#248362}
@keyframes tc-day-work-pulse{
 0%,100%{box-shadow:0 0 0 2px #1479a644}
 50%{box-shadow:0 0 0 6px #1479a612}
}
@media(prefers-reduced-motion:reduce){.tc-day-work-pulse{animation:none}}
.tc-day-work-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tc-day-work-groups ul{overflow-x:auto}
.tc-day-work-groups .tc-day-work-vehicle{
 display:grid;grid-template-columns:minmax(max-content,1fr) max-content max-content;
 white-space:nowrap;min-width:max-content;font-size:.86rem;
}
.tc-day-work-groups li small{flex-basis:100%;white-space:pre-wrap}

.tc-appointment-editor-modal>.tc-editor-scroll-body{
 min-height:0;overflow:auto;overscroll-behavior:contain;flex:1 1 auto;
}
.tc-editor-scroll-body .tc-delete-event-btn{margin:12px 16px}
.tc-editor-scroll-body .tc-entry-type-switch{
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:6px!important;
}
.tc-editor-scroll-body .tc-entry-type-switch span{font-size:clamp(11px,3.3vw,15px);text-align:center;padding:4px}
.tc-day-work-dialog .tc-day-work-date{margin:-10px 0 14px;text-transform:capitalize;color:#46657b}
.tc-day-work-note{flex:1 0 100%;display:flex;align-items:start;gap:6px}
.tc-day-work-note>div{flex:1;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.tc-day-work-note.is-expanded>div{display:block}
.tc-day-work-note small{display:block}
.tc-day-work-note button{border:0;background:transparent;color:inherit;min-width:32px;min-height:32px;cursor:pointer}
.tc-day-work-note.is-expanded button{transform:rotate(180deg)}
.tc-undo-feedback{
 position:fixed;z-index:2147483647;top:calc(env(safe-area-inset-top) + 12px);left:50%;
 transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;
 padding:10px 14px;border-radius:10px;background:#164767;color:white;
 box-shadow:0 4px 16px #0004;white-space:pre-line;pointer-events:none;font-size:14px;
}

.tc-undo-count{
 margin-inline-start:auto;flex:none;display:inline-grid;place-items:center;
 min-width:1.65rem;height:1.65rem;padding:0 .32rem;border-radius:999px;
 background:#dbeffc;color:#12476a;font-size:.78rem;font-weight:800;
}
.tc-move-proposal{
 margin:12px 16px;padding:12px;border:1px solid #c4ddeb;border-radius:12px;
 background:#f0f8fc;display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
.tc-move-proposal>strong,.tc-move-proposal>p{flex-basis:100%;margin:0}
.tc-move-proposal>p:empty{display:none}
.tc-move-proposal input{max-width:100%;font:inherit}

.tc-week-day-head:has([data-week-day-summary]){padding:0!important}
.tc-week-day-head [data-week-day-summary]{
 display:flex;align-items:center;justify-content:center;gap:6px;width:100%;
 min-height:32px;padding:4px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;
}
.tc-week-day-head [data-week-day-summary]:focus-visible{outline:2px solid #1479a6;outline-offset:-3px}
.tc-week-summary-band{margin-bottom:14px}
.tc-week-summary-band>h3{padding:7px 0;border-bottom:1px solid #c4ddeb}
.tc-move-proposal-compact{background:transparent;border:0;padding:0}
.tc-move-proposal-compact [hidden]{display:none!important}
.tc-move-proposal-dialog form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tc-move-proposal-dialog form>label{display:grid;gap:4px;min-width:0}
.tc-move-proposal-dialog form>label:first-child,.tc-move-proposal-dialog footer,.tc-move-proposal-dialog [role=status]{grid-column:1/-1}
.tc-move-proposal-dialog input{box-sizing:border-box;min-width:0;width:100%;font:inherit}
.tc-move-proposal-dialog [role=status]:empty{display:none}

.tc-day-work-header{
 position:sticky;top:-18px;z-index:2;display:flex;align-items:flex-start;
 justify-content:space-between;gap:8px;background:#fff;padding:8px 0;
}
.tc-day-work-header .tc-day-work-close{
 flex:none;width:36px;height:36px;border:0;border-radius:10px;
 background:#eaf4fa;color:#164767;font-size:24px;cursor:pointer;
}
.tc-touch-drag-ghost{max-height:96px!important;overflow:hidden!important}

.tc-touch-move-badge{
 left:clamp(120px,var(--tc-touch-badge-x,50vw),calc(100vw - 120px))!important;
 top:var(--tc-touch-badge-y,80px)!important;bottom:auto!important;
 transform:translate(-50%,calc(-100% - 8px))!important;
}
.tc-touch-slot-visible::after{
 content:'';position:absolute;left:0;right:0;top:var(--tc-touch-slot-top);
 border-top:3px solid #087bb3;box-shadow:0 0 0 1px #fff;
 z-index:20000;pointer-events:none;
}
.tc-undo-feedback{top:50%;transform:translate(-50%,-50%);text-align:center}

/* Completed month cards retain their solid color and status badge. */
.technician-calendar-section[data-calendar-view="month"] .tc-month-grid .tc-event.done{opacity:1}
.tc-claim-notification-snapshot{margin-bottom:12px}
.tc-claim-notification-snapshot>small{display:block;margin-bottom:6px;color:#36556e;font-weight:700}

/* Main calendar month: one shared seven-column geometry and a real scroll viewport. */
#technicianCalendar[data-calendar-view="month"] .tc-side-mini-calendar{display:none!important}
#technicianCalendar[data-calendar-view="month"] .tc-calendar-workspace{display:flex!important;flex-direction:column!important;gap:10px!important;width:100%!important}
#technicianCalendar[data-calendar-view="month"] .tc-calendar-main{width:100%!important;min-width:0!important;grid-column:auto!important;grid-row:auto!important}
#technicianCalendar[data-calendar-view="month"] #tcCalendarBody{
 height:var(--tc-month-viewport-height,calc(100dvh - 290px))!important;min-height:160px!important;max-height:none!important;
 overflow:auto!important;scrollbar-width:thin!important;scrollbar-gutter:stable;scroll-snap-type:none!important;touch-action:pan-x pan-y!important;overscroll-behavior:contain!important;
}
#technicianCalendar[data-calendar-view="month"] #tcCalendarBody::-webkit-scrollbar{display:block!important;width:8px!important;height:8px!important}
#technicianCalendar[data-calendar-view="month"] #tcCalendarBody::-webkit-scrollbar-thumb{background:#a8c6d9;border-radius:8px}
#technicianCalendar[data-calendar-view="month"] :is(.tc-weekdays,.tc-month-grid){
 display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;column-gap:0!important;
}
#technicianCalendar[data-calendar-view="month"] .tc-weekdays{position:sticky;top:0;z-index:8;background:#edf4f9;padding:0!important;border-left:1px solid transparent;border-right:1px solid transparent}
#technicianCalendar[data-calendar-view="month"] .tc-weekdays span{min-width:0;box-sizing:border-box}
#technicianCalendar[data-calendar-view="month"] .tc-day-cell{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
@media(min-width:1051px){
 #technicianCalendar[data-calendar-view="month"] .tc-calendar-side{display:flex!important;flex-flow:row wrap!important;align-items:center!important;gap:10px!important;width:100%!important;grid-column:auto!important;grid-row:auto!important}
 #technicianCalendar[data-calendar-view="month"] .tc-side-brand{flex:1 1 280px}
 #technicianCalendar[data-calendar-view="month"] .tc-side-create{flex:0 0 180px}
 #technicianCalendar[data-calendar-view="month"] .tc-side-tools{flex:0 0 auto}
 #technicianCalendar[data-calendar-view="month"] .tc-side-search-panel:not([hidden]){flex:1 0 100%}
}
@media(min-width:1051px){
 #technicianCalendar[data-calendar-view="month"] .tc-side-tool::after{left:auto!important;right:0!important;transform:translateY(4px)!important}
}

/* Month overflow opens the complete day instead of creating an appointment. */
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-more-events{display:inline-flex;align-items:center;justify-content:center;min-height:28px;width:fit-content;max-width:100%;border:1px solid #b8d7e9;border-radius:7px;background:#edf7fd;color:#155c87;padding:3px 7px;font:inherit;font-size:11px;font-weight:750;cursor:pointer;text-align:left}
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-more-events:hover{background:#dcedf8}
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-more-events:focus-visible{outline:2px solid #0b78b7;outline-offset:2px}

#tcDeleteAllWorkTypes{margin-top:10px;color:#9e2632}
.tc-settings-block .tc-active{display:inline-flex;align-items:center;gap:6px}
.tc-settings-block .tc-active input[type="checkbox"]{width:1.125rem;height:1.125rem;margin:0;border-radius:50%}

.tc-settings-block .tc-environment-row{
  grid-template-columns:auto minmax(0,1fr) 54px minmax(0,125px) auto auto auto!important;
}
.tc-environment-row input[data-name],.tc-environment-row select[data-service-mode]{
  min-width:0;
  width:100%;
  box-sizing:border-box;
}
.tc-settings-block .tc-environment-row :is(.tc-preferred,.tc-active){
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.tc-settings-block .tc-environment-row :is(input[data-preferred],input[data-active]){
  flex:0 0 18px;
  width:18px;
  height:18px;
  min-width:18px;
  min-height:18px;
  margin:0;
  padding:0;
  border-radius:50%;
}
.tc-environment-delete{color:#9e2632}
@media(max-width:760px){
  .tc-settings-block .tc-environment-row{grid-template-columns:auto minmax(0,1fr) auto!important}
  .tc-settings-block .tc-environment-row [data-service-mode]{grid-column:1/-1}
  .tc-environment-delete{justify-self:end}
}

/* Vista Giorno: il gesto orizzontale cambia data, il verticale resta nativo. */
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="day"] #tcCalendarBody{
 touch-action:pan-y pinch-zoom!important;
}

/* Controlli circolari dell'editor, indipendenti dall'altezza degli altri campi. */
.tc-appointment-editor-modal :is(#tceMobileService,#tceShowCustomer,#tceDragLocked,#tceSpecialDragLocked,#teMobileService){
 flex:0 0 20px;
 width:20px!important;
 height:20px!important;
 min-height:20px!important;
 padding:0!important;
 margin:0;
 border-radius:50%!important;
}

@media(max-width:700px){
 :is(#technicianCalendar,#techCalendarPage)[data-calendar-view="day"] #tcPeriod{
  font-size:clamp(13px,3.8vw,16px)!important;
  line-height:1.2!important;
  height:auto!important;
  white-space:normal!important;
 }
 :is(#technicianCalendar,#techCalendarPage)[data-calendar-view="day"] #tcPeriod::after{
  content:none!important;
  display:none!important;
 }
 :is(#technicianCalendar,#techCalendarPage)[data-calendar-view="day"] .tc-day-meta :is(strong,.tc-day-meta-plate){
  font-size:13px!important;
  font-weight:950!important;
  color:#173e5f!important;
 }
 :is(#technicianCalendar,#techCalendarPage)[data-calendar-view="day"] .tc-day-time-pill{
  font-size:12px!important;
  padding-inline:6px!important;
 }
 .tech-text-large #techCalendarPage[data-calendar-view="day"] .tc-day-time-pill{
  font-size:clamp(13px,4vw,17px)!important;
 }
}

.tc-appointment-editor-modal .tc-datetime-trigger{
 min-height:58px;
 gap:12px;
}
.tc-datetime-trigger .tc-datetime-trigger-icon{
 width:36px;
 height:36px;
 flex-basis:36px;
 color:#12618e;
}
.tc-datetime-trigger-icon svg{width:22px;height:22px}
.tc-datetime-trigger [data-tc-datetime-label]{
 display:flex;
 align-items:center;
 justify-content:space-between;
 flex-wrap:wrap;
 column-gap:10px;
 row-gap:2px;
 font-size:clamp(14px,2vw,17px);
 line-height:1.25;
 white-space:normal;
 overflow:visible;
}
.tc-datetime-trigger [data-tc-datetime-label] strong{
 font-size:1.15em;
 font-variant-numeric:tabular-nums;
 white-space:nowrap;
}

@media(max-width:700px){
 :is(#technicianCalendar,#techCalendarPage)[data-calendar-view="day"] .tc-day-meta{
  padding-inline:7px!important;
 }
 :is(#technicianCalendar,#techCalendarPage)[data-calendar-view="day"] .tc-day-meta-plate{
  max-width:100%;
  white-space:nowrap!important;
  overflow:hidden;
  text-overflow:ellipsis;
 }
}

.tc-appointment-editor-modal .tc-form :is(#teStart,#teEnd){
 font-size:clamp(16px,2vw,18px);
 font-weight:750;
 font-variant-numeric:tabular-nums;
 min-height:56px;
}

.tc-appointment-editor-modal .tc-editor-field-title,
.tc-appointment-editor-modal .tc-assigned-technicians-summary{
 display:flex;
 align-items:center;
 gap:8px;
}
.tc-appointment-editor-modal .tc-editor-field-title{
 font-size:14px;
 font-weight:750;
 color:#244b68;
}
.tc-appointment-editor-modal .tc-form :is(#tceCenter,#tceStatus,#teCenter,#teStatus){
 font-size:16px;
 font-weight:650;
}
.tc-appointment-editor-modal .tc-assigned-technicians-summary{
 font-size:16px;
}
.tc-appointment-editor-modal :is(.tc-mobile-service-toggle .tc-inline-check,.tech-mobile-toggle > span){
 font-size:16px;
 font-weight:750;
 color:#1e455f;
}
.tc-appointment-editor-modal :is(.tc-editor-field-title,.tc-assigned-technicians-summary,.tc-mobile-service-toggle,.tech-mobile-toggle) svg{
 width:18px;
 height:18px;
 flex:0 0 18px;
 color:#12618e;
}
.tc-appointment-editor-modal :is(#tceMobileService,#teMobileService){
 width:22px!important;
 height:22px!important;
 min-height:22px!important;
 flex-basis:22px;
 border:2px solid #527d9a!important;
}
.tc-appointment-editor-modal :is(#tceMobileService,#teMobileService):checked{
 border-color:#1269af!important;
 background-color:#1269af;
}

.tc-appointment-editor-modal .tc-editor-environment{
 grid-column:1 / -1;
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:10px 16px;
}
.tc-appointment-editor-modal .tc-form .tc-environment-field{
 flex:1 1 220px;
 min-width:0;
 font-size:14px;
 font-weight:750;
}
.tc-appointment-editor-modal .tc-environment-field select{
 min-width:0;
 font-size:16px;
 font-weight:700;
}
.tc-appointment-editor-modal .tc-editor-environment :is(.tc-appointment-palette,.tech-color-palette){
 flex:0 1 auto;
 max-width:100%;
 box-sizing:border-box;
 margin-top:0;
}
.tc-appointment-editor-modal .tc-editor-environment .tc-palette{
 gap:5px;
}
.tc-appointment-editor-modal .tc-editor-environment .tc-palette button{
 width:25px;
 height:25px;
}
.tc-appointment-editor-modal .tc-editor-environment :is(#tceCustomColor,#teColor){
 width:44px;
 min-height:34px;
 padding:4px!important;
}

.tc-appointment-editor-modal .tc-editor-block h3.tc-editor-section-title{
 font-size:18px!important;
}
.tc-appointment-editor-modal h3.tc-editor-section-title::before{
 content:none;
}
.tc-appointment-editor-modal .tc-editor-section-title svg{
 width:20px;
 height:20px;
 flex-basis:20px;
 color:#12618e;
}
.tc-appointment-editor-modal :is(.tc-editor-client,.tc-vehicles-block) .tc-form label,
.tc-appointment-editor-modal .tc-vehicle-editor-head strong{
 font-size:14px;
}
.tc-appointment-editor-modal :is(.tc-editor-client,.tc-vehicles-block) .tc-form :is(input:not([type="checkbox"]),select){
 font-size:16px;
}
.tc-appointment-editor-modal .tc-editor-client .tc-client-search{
 grid-column:1 / -1;
 min-width:0;
}
.tc-appointment-editor-modal #tceCustomerLabelText{
 margin-bottom:7px;
}
.tc-appointment-editor-modal .tc-show-customer span{
 font-size:13px;
 color:#244b68;
}
.tc-appointment-editor-modal #tceShowCustomer{
 width:22px!important;
 height:22px!important;
 min-height:22px!important;
 flex:0 0 22px;
 padding:0;
 margin:0;
 border:2px solid #527d9a!important;
}
.tc-appointment-editor-modal #tceShowCustomer:checked{
 border-color:#1269af!important;
 background-color:#1269af;
}

@media(max-width:600px){
 .tc-appointment-editor-modal .tc-form .tc-environment-field{
  flex-basis:100%;
 }
}

.tc-modal .tc-appointment-notes .tc-editor-field-title,
.tc-appointment-editor-modal .tc-drag-lock-row .tc-inline-check{
 display:flex;
 align-items:center;
 gap:8px;
 color:#244b68;
 font-size:16px;
 font-weight:750!important;
}
.tc-modal .tc-appointment-notes textarea{
 box-sizing:border-box;
 width:100%;
 min-height:132px;
 font-size:16px;
 line-height:1.5;
 resize:vertical;
}
.tc-modal .tc-appointment-notes svg,
.tc-appointment-editor-modal .tc-drag-lock-row svg{
 width:20px;
 height:20px;
 flex:0 0 20px;
 color:#12618e;
}
.tc-appointment-editor-modal .tc-drag-lock-row small{
 font-size:12px;
}
.tc-appointment-editor-modal #tceDragLocked{
 box-sizing:border-box;
 width:22px!important;
 height:22px!important;
 min-height:22px!important;
 flex:0 0 22px;
 padding:0;
 margin:0;
 border:2px solid #527d9a!important;
}
.tc-appointment-editor-modal #tceDragLocked:checked{
 border-color:#1269af!important;
 background-color:#1269af;
}

.tc-modal .tc-acceptance-edit > label input,
.tc-modal .tc-acceptance-edit > label textarea{
 font-size:16px;
}
.tc-modal .tc-acceptance-edit > label textarea{
 min-height:112px;
}
.tc-modal .tc-acceptance-edit .irp-service-picker{
 margin:0;
}
.tc-modal .tc-acceptance-edit .tc-claim-error{
 grid-column:1/-1;
 color:#b42318;
}

/* OFFIGLASS v0.6.5 — fluid calendar on medium desktop / small laptop */
@media(min-width:901px) and (max-width:1500px){
 #technicianCalendar,#technicianCalendar .tc-layout,#technicianCalendar .tc-main,#technicianCalendar .tc-calendar-main{min-width:0!important;max-width:100%!important}
 #technicianCalendar .tc-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;max-width:100%!important}
 #technicianCalendar .tc-toolbar>*{min-width:0!important}
 #technicianCalendar .tc-period-button{min-width:0!important;max-width:100%!important}
 #technicianCalendar #tcCalendarBody{min-width:0!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain}
 #technicianCalendar[data-calendar-view="week"] .tc-week-timeline{min-width:560px!important;max-width:none!important}
}
@media(min-width:901px) and (max-width:1180px){
 #technicianCalendar .tc-head-compact h1{font-size:21px!important}
 #technicianCalendar .tc-toolbar button,#technicianCalendar .tc-toolbar select{font-size:12px!important}
}

/* OFFIGLASS V0.10.2: adaptive desktop calendar, mobile-only plus */
@media(min-width:901px){
 #technicianCalendar #tcMobileFab,#technicianCalendar .tc-mobile-fab,body:has(#technicianCalendar.active) .tc-main-calendar-fab{display:none!important}
 #technicianCalendar,#technicianCalendar .tc-layout,#technicianCalendar .tc-main,#technicianCalendar .tc-calendar-main,#technicianCalendar #tcCalendarBody{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 #technicianCalendar[data-calendar-view="week"] .tc-timeline-scroll{width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:hidden!important}
 #technicianCalendar[data-calendar-view="week"] .tc-week-timeline{width:100%!important;min-width:0!important;max-width:100%!important;grid-template-columns:42px repeat(7,minmax(0,1fr))!important;box-sizing:border-box!important}
 #technicianCalendar[data-calendar-view="week"] :is(.tc-week-day-head,.tc-week-day-track){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 #technicianCalendar[data-calendar-view="week"] .tc-week-day-head{overflow:hidden!important;white-space:nowrap!important}
}
@media(max-width:900px){#technicianCalendar[data-calendar-view="week"] #tcCalendarBody{overflow-x:auto!important;-webkit-overflow-scrolling:touch}}


/* OFFIGLASS V0.11.3 — Riepilogo: etichette e note leggibili */
.tc-event-summary-grid .tc-event-summary-item > span,
.tc-event-summary-grid .tc-summary-panel-head > span {
  color:#17212e !important;
  font-size:12.5px !important;
  font-weight:600 !important;
  letter-spacing:.015em !important;
  line-height:1.45 !important;
}
.tc-event-summary-grid .tc-event-summary-item > span svg,
.tc-event-summary-grid .tc-event-summary-item > span .offi-summary-icon {
  width:19px !important;
  height:19px !important;
  flex-shrink:0;
  vertical-align:middle;
}
.tc-event-summary-grid .tc-summary-general-note small {
  color:#263746 !important;
  font-size:12px !important;
  font-weight:600 !important;
  letter-spacing:.01em !important;
  line-height:1.5 !important;
}
.tc-event-summary-grid .tc-summary-general-note p {
  color:#172b3e !important;
  font-size:14px !important;
  line-height:1.55 !important;
  overflow-wrap:anywhere;
}
@media(max-width:700px){
  .tc-event-summary-grid .tc-event-summary-item > span {font-size:12px !important;}
  .tc-event-summary-grid .tc-summary-general-note p {font-size:13.5px !important;}
}

/* V0.11.7: duplicate and edit form a compact aligned action group. */
.irp-service-editor-head .irp-service-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0}
.irp-service-editor-head .irp-service-head-actions button{min-width:82px;white-space:nowrap}
@media(max-width:520px){.irp-service-editor-head .irp-service-head-actions{gap:5px}.irp-service-editor-head .irp-service-head-actions button{min-width:auto;padding:9px 10px}}

.offi-settings-actions{display:flex;align-items:stretch;gap:10px;flex-wrap:nowrap;margin-top:12px}.offi-settings-actions>.btn{flex:1;min-width:0;white-space:normal;text-align:center}.offi-condition-btn{background:#f5c542!important;color:#302600!important;border:1px solid #e4b22c!important}.offi-reading-btn{background:#18834b!important;color:#fff!important;border:1px solid #14703f!important}@media(max-width:550px){.offi-settings-actions{gap:5px}.offi-settings-actions>.btn{font-size:11px;padding:9px 4px}}/* OFFIGLASS V0.12.0 — solo pannello impostazioni calendario */
.offi-fold{margin:10px 0;overflow:visible}
.offi-fold>summary{list-style:none;cursor:pointer;padding:14px 16px;border:1px solid #d4e3ef;border-radius:11px;background:#eef6fd;color:#124a75;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:space-between}
.offi-fold>summary::-webkit-details-marker{display:none}
.offi-fold>summary:after{content:'⌄';font-size:19px}
.offi-fold[open]>summary:after{content:'⌃'}
.offi-fold[open]>summary{margin-bottom:12px}
.offi-color-control{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.offi-color-palette{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.offi-color-swatch{width:20px;height:20px;border:2px solid white;border-radius:6px;box-shadow:0 0 0 1px #b7cad9;cursor:pointer;padding:0;flex:none}
.offi-color-swatch:focus-visible{outline:2px solid #0a5795;outline-offset:2px}
.tc-message-setting-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tc-message-setting-head [data-reset-message]{white-space:nowrap}

/* OFFIGLASS V0.12.1: rifiniture chirurgiche impostazioni calendario */
.offi-action-section{margin-top:0!important}
.offi-fold>summary{font-size:17px;font-weight:750;min-height:55px}
.offi-fold>summary:after{content:'+';font-size:25px;font-weight:600;line-height:1}
.offi-fold[open]>summary:after{content:'−'}
.offi-fold-label{display:inline-flex;align-items:center;gap:11px}
.offi-fold-label svg,.offi-confirm-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tc-settings-center{background:#eaf4ff;border:1px solid #9ac8ee;border-radius:11px;padding:10px 13px;margin-bottom:10px}
.tc-settings-center label{font-weight:750;color:#114b78}
.tc-settings-center select{flex:1;min-width:0;background:#fff;border-color:#8cbce5;font-weight:750;color:#103d64}
.tc-environment-row{grid-template-columns:72px minmax(110px,1.3fr) minmax(110px,1fr) 100px 90px 80px;row-gap:8px}
.tc-environment-row .offi-color-control{grid-column:2/-1;grid-row:2;display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:8px 0 5px}
.tc-environment-row .offi-color-palette{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
.tc-environment-row .offi-color-swatch{width:27px;height:27px;border-radius:7px}
.offi-custom-color{font-size:12px;font-weight:650;display:flex;align-items:center;gap:9px;color:#3e617b}
.offi-custom-color input{width:38px;height:30px;cursor:pointer}
.offi-confirm-backdrop{position:fixed;inset:0;background:rgba(7,29,50,.58);display:flex;align-items:center;justify-content:center;z-index:2147483640;padding:18px}
.offi-confirm-dialog{width:min(440px,100%);background:#fff;border:1px solid #cbddea;border-radius:17px;box-shadow:0 24px 75px rgba(4,28,54,.28);padding:25px;color:#122d46}
.offi-confirm-icon{display:flex;align-items:center;justify-content:center;width:43px;height:43px;background:#eaf4ff;border-radius:12px;color:#15588e;margin-bottom:12px}
.offi-confirm-dialog h3{margin:0 0 9px;font-size:20px}.offi-confirm-dialog p{line-height:1.5;margin:0 0 22px;color:#536d83}
.offi-confirm-actions{display:flex;justify-content:flex-end;gap:10px}
@media(max-width:700px){.tc-environment-row{grid-template-columns:repeat(2,minmax(0,1fr))}.tc-environment-row .offi-color-control{grid-column:1/-1;grid-row:auto}.offi-fold>summary{font-size:16px}}

/* OFFIGLASS V0.12.3 TEST: solo dimensioni controlli ambienti lavoro.
   Basato su V0.12.1 approvata; non modificare SVG, accordion o selettore centro. */
@media (min-width:761px){
  .tc-settings-block .tc-environment-row{
    grid-template-columns:72px minmax(130px,1.15fr) minmax(175px,1.4fr) 86px 76px 76px!important;
    column-gap:7px;
  }
  .tc-settings-block .tc-environment-row select[data-service-mode]{
    min-width:0;width:100%;max-width:none;
  }
  .tc-settings-block .tc-environment-row .tc-preferred{justify-self:end;white-space:nowrap}
  .tc-settings-block .tc-environment-row .tc-active{justify-self:start;white-space:nowrap}
}
.tc-settings-block .tc-environment-row .offi-custom-color input[type=color]{
  width:78px!important;height:44px!important;min-width:78px;
  box-sizing:border-box;padding:3px;border:1px solid #b7cad9;
  border-radius:8px;background:#fff;cursor:pointer;
}

/* OFFICALENDAR: sticky days and timeline share one native week scrollport. */
#technicianCalendar[data-calendar-view="week"] #tcCalendarBody{
 overflow:auto!important;
 position:relative!important;
 min-width:0!important;
 max-width:100%!important;
 scroll-behavior:auto!important;
 scroll-snap-type:none!important;
 overscroll-behavior:contain!important;
 touch-action:pan-x pan-y!important;
 -webkit-overflow-scrolling:touch;
}
#technicianCalendar[data-calendar-view="week"] #tcCalendarBody > .tc-timeline-scroll{
 overflow:visible!important;
 touch-action:pan-x pan-y!important;
}
@media(max-width:900px){
 html:has(#technicianCalendar.active:not([hidden])),
 body:has(#technicianCalendar.active:not([hidden])){
  overflow:hidden!important;overscroll-behavior:none!important;
 }
 body:has(#technicianCalendar.active:not([hidden])){position:fixed;inset:0;width:100%}
 #managementApp #technicianCalendar.active:not([hidden]){
  position:fixed!important;
  inset:calc(var(--app-header-height,72px) + env(safe-area-inset-top,0px) + 10px)
    9px 4px!important;
  width:auto!important;max-width:none!important;
  height:calc(100dvh - var(--app-header-height,72px) - env(safe-area-inset-top,0px) - 14px)!important;
  min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;
  overflow:hidden!important;overscroll-behavior:none!important;
 }
 #managementApp #technicianCalendar.active:not([hidden]) .tc-calendar-workspace{
  display:flex!important;flex-direction:column;align-items:stretch;height:100%!important;overflow:hidden!important;
 }
 #managementApp #technicianCalendar.active:not([hidden]) .tc-calendar-main{
  display:flex!important;flex:1 1 0;height:auto!important;min-height:0;overflow:hidden!important;
 }
 #managementApp #technicianCalendar.active:not([hidden]) #tcCalendarBody{
  flex:1 1 0!important;height:0!important;min-height:0!important;
  overflow:auto!important;overscroll-behavior:none!important;overflow-anchor:none;
 }
 #managementApp #technicianCalendar[data-calendar-view="week"] #tcCalendarBody[data-axis-scroll]{
  touch-action:none!important;
 }
 #managementApp #technicianCalendar[data-calendar-view="day"] #tcCalendarBody{
  touch-action:pan-y!important;overflow-x:hidden!important;
 }
}
@media(max-width:700px){
 #managementApp #technicianCalendar .tc-toolbar{
  padding:8px!important;gap:7px!important;background:#fff!important;
  border:1px solid #d8e2ed!important;border-radius:15px!important;box-shadow:0 4px 12px #1939550c;
 }
 #managementApp #technicianCalendar .tc-mobile-command-row{
  grid-template-columns:minmax(112px,1fr) auto 40px!important;gap:6px!important;
 }
 #managementApp #technicianCalendar :is(.tc-mobile-command,#tcPrev,#tcNext,#tcPeriod){
  min-height:40px!important;height:40px!important;border-radius:10px!important;
  box-shadow:none!important;border:1px solid #d8e2ed!important;
  background:#f2f7fb!important;color:#163956!important;font-size:13px!important;
 }
 #managementApp #technicianCalendar #tcMobileViewToggle{justify-content:space-between!important;padding-inline:9px!important}
 #managementApp #technicianCalendar #tcMobileViewToggle .tc-mobile-command-icon{display:none!important}
 #managementApp #technicianCalendar #tcMobileViewLabel{overflow:visible!important;text-overflow:clip!important}
 #managementApp #technicianCalendar .tc-mobile-command-caret{
  background:transparent!important;box-shadow:none!important;color:inherit!important;
  flex-basis:18px!important;width:18px!important;min-width:18px!important;
 }
 #managementApp #technicianCalendar #tcMobileToday{
  background:#e6f2ee!important;border-color:#cde4db!important;color:#1b5a46!important;padding-inline:14px!important;
 }
 #managementApp #technicianCalendar #tcMobileToolsToggle{width:40px!important}
 #managementApp #technicianCalendar .tc-nav{grid-template-columns:40px minmax(0,1fr) 40px!important;gap:6px!important}
 #managementApp #technicianCalendar :is(#tcPrev,#tcNext){width:40px!important;min-width:40px!important;font-size:19px!important}
 #managementApp #technicianCalendar #tcPeriod{background:#eaf2fb!important;padding-inline:6px!important}
 #managementApp #technicianCalendar .tc-center-filter{
  padding:0!important;display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:8px;
 }
 #managementApp #technicianCalendar #tcCenterFilter{
  min-width:0;min-height:35px!important;border-radius:9px!important;background:#fff!important;font-size:16px!important;
 }
}
@media (min-width:901px) and (max-width:1050px), (min-width:901px) and (max-width:1366px) and (pointer:coarse){
 #technicianCalendar[data-calendar-view="week"] #tcCalendarBody{
  max-height:calc(100dvh - var(--app-header-height,72px) - 120px)!important;
 }
}
@media(max-width:1050px), (max-width:1366px) and (pointer:coarse){
 #technicianCalendar[data-calendar-view="week"] #tcCalendarBody .tc-week-times{
  position:sticky!important;left:0;z-index:12!important;background:#f8fbfd!important;
 }
}

.tc-work-multi > summary{list-style:none;display:flex;align-items:center;gap:8px}
.tc-work-multi > summary::-webkit-details-marker{display:none}
.tc-appointment-editor-modal .tc-work-multi > summary::after{
  content:"+";display:inline-grid;place-items:center;min-width:24px;height:24px;margin-inline-start:auto;transform:none!important;
  border:1px solid #c7dcea;border-radius:7px;color:#17658e;background:#f1f8fb;font-weight:700;
}
.tc-work-multi > summary::marker{content:""}
.tc-tech-dropdown-trigger .tc-tech-chevron{transform:none;color:#17658e;font-size:18px;font-weight:700}

/* Keep appointment details readable at every lane width and duration. */
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive{
 display:flex!important;flex-flow:column nowrap!important;justify-content:flex-start!important;
 align-items:stretch!important;gap:0!important;padding:2px 5px!important;overflow:hidden!important;
}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive > .tc-event-core{
 display:block!important;flex:0 0 auto!important;min-width:0!important;max-width:100%!important;
 font-size:12px!important;line-height:12px!important;letter-spacing:0!important;
 margin:0!important;padding:0!important;text-align:left!important;
}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive > :is(.tc-event-vehicle,.tc-event-company){
 padding-inline-end:12px!important;font-weight:700!important;
}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive > :is(.tc-event-vehicle,.tc-event-company,.tc-event-plate){
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive > .tc-event-time{
 white-space:nowrap!important;font-size:11.5px!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive > .tc-event-work{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 white-space:normal!important;overflow-wrap:anywhere!important;overflow:hidden!important;
}
body.tech-text-large .technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive > .tc-event-core{
 font-size:14px!important;line-height:15px!important;
}

.tc-summary-vehicle-compact>div{
 display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 10px;
}
.tc-summary-vehicle-details{display:grid;gap:3px;flex:1 1 95px;min-width:0;overflow-wrap:anywhere}
.tc-summary-vehicle-compact .tc-summary-plate{
 display:inline-grid;grid-template-columns:14px minmax(0,1fr) 12px;align-items:stretch;
 max-width:100%;min-height:35px;flex:0 1 auto;
 border:1px solid #101820;border-radius:5px;background:#fff;
 overflow:hidden;box-shadow:0 1px 2px #142d4733;
}
.tc-summary-plate .tc-summary-plate-band{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 background:#154bb4;color:#fff!important;font:700 9px/1 Arial,sans-serif!important;
}
.tc-summary-plate-band svg{width:12px;height:12px}
.tc-summary-plate .tc-summary-plate-number{
 align-self:center;padding:2px 5px;color:#161a20!important;
 font:800 20px/1.15 Arial,sans-serif!important;letter-spacing:.065em!important;
 font-variant-numeric:tabular-nums!important;text-transform:uppercase!important;overflow-wrap:anywhere;
}
.irp-service-picker summary .offiglass-picker-toggle{flex:0 0 16px;width:16px;height:16px}
.irp-service-picker[open] .offiglass-picker-toggle .offiglass-picker-plus{display:none}


/* Separate the days with soft corners in month view. */
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-month-grid{
 gap:4px;padding:4px;background:#eaf2f8;
}
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-day-cell{
 border:1px solid #d9e6ef;border-radius:9px;background:#fff;
}
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-day-cell.muted{
 background:#f4f8fb;
}

/* Keep the selection ring and the event colors independently visible. */
:is(.tc-side-calendar-days,.tc-datetime-days) button.is-selected{
 outline:2px solid #29c96f!important;
 outline-offset:2px!important;
 box-shadow:0 0 0 1px #fff!important;
}
:is(.tc-side-calendar-days,.tc-datetime-days) button.has-events{
 padding-bottom:8px;
}
:is(.tc-side-calendar-days,.tc-datetime-days) button .tc-date-event-dots{
 bottom:2px;gap:3px;
}
:is(.tc-side-calendar-days,.tc-datetime-days) button .tc-date-event-dot{
 width:5px;height:5px;flex-basis:5px;
}

:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-day-cell.is-current-date{
 background:#edf8f2!important;border-color:#8dc9a7!important;
}
:is(#technicianCalendar,#techCalendarPage)[data-calendar-view="month"] .tc-day-cell.is-current-date > .tc-day-number{
 background:#167349!important;color:#fff!important;box-shadow:none!important;
}

.tc-summary-overlay{
 background:rgba(11,27,41,.45)!important;
 -webkit-backdrop-filter:blur(5px);
 backdrop-filter:blur(5px);
}
body > #techModalHost > .tc-tech-summary-overlay{
 position:fixed!important;inset:0!important;box-sizing:border-box;
 width:100%!important;height:100dvh!important;max-height:none!important;
 display:grid!important;place-items:center;z-index:2147483100!important;
 padding:max(14px,env(safe-area-inset-top)) 12px max(14px,env(safe-area-inset-bottom))!important;
}
body > #techModalHost > .tc-tech-summary-overlay > .tc-modal{
 width:min(720px,100%)!important;max-width:100%!important;max-height:100%!important;
 display:block!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y;
}
.tc-tech-summary-overlay :is(.tc-modal-head,.tc-summary-actions){position:static!important}
.tc-tech-summary-overlay [hidden]{display:none!important}
@media(max-width:700px){
 body > #techModalHost > .tc-tech-summary-overlay{
  padding:calc(64px + max(8px,env(safe-area-inset-top))) 10px max(12px,env(safe-area-inset-bottom))!important;
 }
 .tc-tech-summary-overlay .tc-modal-head{padding:12px 0!important}
 .tc-tech-summary-overlay .tc-summary-actions{margin-top:8px!important}
}

html body.tc-modal-open #mobileMenuTrigger.mobile-menu-trigger{
 z-index:0!important;pointer-events:none!important;
}

.offi-release-card{color:#172f47}
#managementUpdateDialog.offi-release-card{padding:0;border-radius:20px;width:min(480px,calc(100% - 32px))}
#managementUpdateDialog.offi-release-card::backdrop{background:#102637a6;backdrop-filter:blur(4px)}
.offi-release-head{display:flex;gap:14px;align-items:center;padding:22px;background:#edf5fc;border-bottom:1px solid #dbe8f4}
.offi-release-icon{width:44px;height:44px;border-radius:13px;background:#124b77;color:#fff;display:grid;place-items:center;flex:none}
.offi-release-icon svg{width:23px;height:23px}
.offi-release-head small{font-size:11px;font-weight:800;letter-spacing:.14em;color:#245881}
.offi-release-head h2{margin:3px 0 0;font-size:clamp(17px,4vw,22px);line-height:1.2}
.offi-release-head [data-close]{margin-left:auto;align-self:start}
.offi-release-body{padding:16px 22px}
.offi-release-version{display:inline-block;margin:0 0 10px;padding:4px 9px;border-radius:12px;background:#e1f3e9;color:#155336;font-size:12px;font-weight:750}
.offi-release-body h3{margin:0 0 10px;font-size:15px}
.offi-release-body ul{padding-left:1.2em;margin:0;line-height:1.55}
.offi-release-body li+li{margin-top:5px}
.offi-release-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 22px;border-top:1px solid #dbe8f4}
.offi-release-actions [hidden]{display:none!important}
@media(max-width:480px){.offi-release-actions .btn{flex:1 1 auto;min-height:44px}}

.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive.is-half-hour {
 padding-block:2px!important;gap:0!important;
}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive.is-half-hour > .tc-event-core {
 font-size:9px!important;line-height:9px!important;
}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive.is-half-hour > .tc-event-work {
 display:block!important;white-space:nowrap!important;text-overflow:ellipsis!important;
}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive.is-half-hour > .tc-event-company {
 display:none!important;
}

.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive.is-half-hour > .tc-event-plate {
 display:block!important;white-space:nowrap!important;
}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive.is-half-hour > .tc-event-vehicle {order:1!important}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive.is-half-hour > .tc-event-plate {order:2!important;margin:0!important}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive.is-half-hour > .tc-event-time {order:3!important}
.technician-calendar-section #tcCalendarBody .tc-week-day-track button.tc-timeline-event.tc-event-adaptive.is-half-hour > .tc-event-work {order:4!important}

.tc-work-catalog {display:grid;gap:3px}
.tc-custom-work {padding:6px 9px;border-top:1px solid #e4edf3}
.tc-custom-work>summary {cursor:pointer;font-weight:650}
.tc-custom-work label {display:grid;gap:5px;margin-block:8px}
.tc-custom-work input {width:100%;box-sizing:border-box}

:is(.dashboard-glass-works,.tc-work-catalog) .tc-work-option input[type="checkbox"] {
 appearance:none;display:grid;place-content:center;background:#fff;border:1.5px solid #779ab6;
 border-radius:50%;width:18px;height:18px;padding:0;
}
:is(.dashboard-glass-works,.tc-work-catalog) .tc-work-option input[type="checkbox"]:checked {background:#2455a4;border-color:#2455a4}
:is(.dashboard-glass-works,.tc-work-catalog) .tc-work-option input[type="checkbox"]:checked::before {
 content:'';width:8px;height:4px;border:solid white;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg);
}
:is(.dashboard-glass-works,.tc-work-catalog) .tc-work-option input[type="checkbox"]:focus-visible {outline:2px solid #2455a4;outline-offset:2px}

.tc-calendar-jump-layer .tc-calendar-jump-card{
 background:#f3f7fb;border-radius:22px!important;box-shadow:0 18px 60px #0c294c38;
}
.tc-calendar-jump-layer .tc-datetime-picker-head{background:#fff!important;color:#163956}
.tc-calendar-jump-layer .tc-calendar-jump-selected{display:block;color:#4b6781;font-weight:650;margin-top:3px}
.tc-calendar-jump-layer .tc-calendar-jump-calendar{background:transparent;border:0}
.tc-month-picker .tc-datetime-monthbar{
 display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;
}
.tc-month-picker .tc-datetime-monthbar button{
 width:100%!important;min-height:40px;border-radius:10px!important;border:1px solid #d8e2ed!important;background:#fff!important;color:#163956!important;
}
.tc-month-picker .tc-datetime-monthbar :is(.tc-jump-month-title,strong){
 display:grid;place-items:center;border-radius:10px;color:#163956;
 background:#e7f0f8!important;font-weight:800;text-transform:capitalize;
}
.tc-month-picker .tc-datetime-days{gap:4px}
.tc-month-picker .tc-datetime-days button{border-radius:9px!important;background:#fff!important;border:1px solid #e1e9f1!important}
.tc-month-picker .tc-datetime-days button.is-outside{background:transparent!important;color:#5f7286!important}
.tc-month-picker .tc-datetime-days button.is-today{border-color:#4183a9!important}
.tc-month-picker .tc-datetime-days button.is-selected{background:#134f77!important;color:#fff!important;border-color:#134f77!important}
.tc-calendar-jump-layer .tc-datetime-picker-actions{background:#fff!important;border-top:1px solid #d8e2ed}
@media(max-width:700px){
 .tc-calendar-jump-layer{
  align-items:center!important;touch-action:pan-y!important;
  padding:calc(8px + env(safe-area-inset-top,0px)) 10px calc(8px + env(safe-area-inset-bottom,0px))!important;
 }
 .tc-calendar-jump-layer .tc-calendar-jump-card{
  max-height:100%!important;overflow:auto!important;overscroll-behavior:contain;touch-action:pan-y;
 }
 .tc-calendar-jump-layer .tc-datetime-picker-actions .btn{min-height:42px}
}
@media(max-width:700px){
 #managementApp #technicianCalendar #tcPeriod{
  background:#fff!important;color:#163956!important;
  border-color:#c7d9e9!important;box-shadow:inset 0 -2px #e9f1fa!important;
 }
}

.tc-month-picker {background:#f3f7fb!important}
.tc-month-picker .tc-datetime-today {
 width:100%;border:1px solid #bcd8e8!important;border-radius:10px!important;
 background:#edf7fb!important;color:#155479!important;text-align:center;
}
@media(max-width:900px){
 html:has(:is(#managementApp,#techApp)), body:has(:is(#managementApp,#techApp)) {
  overscroll-behavior-y:none!important;
 }
 .offiglass-pull-refresh:not([hidden]) {
  position:fixed;left:50%;top:calc(var(--app-header-height,68px) + env(safe-area-inset-top,0px) + 10px);
  transform:translateX(-50%);z-index:50000;padding:8px 14px;max-width:90%;
  border-radius:999px;background:#124e75;color:#fff;box-shadow:0 3px 12px #082f5250;
  font-size:13px;font-weight:750;pointer-events:none;white-space:nowrap;
 }
 #technicianCalendar[data-calendar-view="week"] #tcCalendarBody{padding-block-end:0!important}
 #technicianCalendar[data-calendar-view="week"] .tc-week-times span:last-child{transform:translateY(-100%)}
}
@media(max-width:700px){
 :is(#managementApp,#techApp) :is(#technicianCalendar,#techCalendarPage) #tcPeriod {
  display:flex!important;align-items:center;justify-content:flex-start!important;gap:8px;
  background:linear-gradient(110deg,#e0edf9,#ecf5fb)!important;
  color:#133c5b!important;border-color:#c5d9ea!important;min-height:47px!important;
  padding-inline:8px!important;text-align:left;
 }
 :is(#managementApp,#techApp) :is(#technicianCalendar,#techCalendarPage) #tcPeriod::after {display:none!important}
 :is(#technicianCalendar,#techCalendarPage) .tc-period-icon {
  display:grid;place-items:center;flex:0 0 31px;height:31px;border-radius:9px;
  background:#165780;color:white;
 }
 :is(#technicianCalendar,#techCalendarPage) .tc-period-copy {display:grid;gap:2px;min-width:0;line-height:1.15}
 :is(#technicianCalendar,#techCalendarPage) .tc-period-copy small {color:#385c75;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
 :is(#technicianCalendar,#techCalendarPage) .tc-period-copy strong {font-size:clamp(11px,3.1vw,14px);font-weight:800}
 :is(#managementApp,#techApp) :is(#technicianCalendar,#techCalendarPage) .tc-center-filter {
  padding:2px 0!important;color:#385c75;
 }
 :is(#managementApp,#techApp) :is(#technicianCalendar,#techCalendarPage) :is(#tcCenterFilter,#techCenterSelect) {
  background:#f4f8fc!important;border:1px solid #d5e1ec!important;color:#163956!important;
 }
}
@media(min-width:701px){
 :is(#technicianCalendar,#techCalendarPage) .tc-period-icon,:is(#technicianCalendar,#techCalendarPage) .tc-period-copy small{display:none}
}

#managementApp img,#techApp img,#irpCriticalBoot img {
 -webkit-touch-callout:none;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;
}
@media(max-width:900px),(pointer:coarse){
 .offiglass-pull-refresh:not([hidden]){
  position:fixed;display:flex;align-items:center;gap:8px;z-index:50000;left:50%;
  top:calc(var(--app-header-height,68px) + env(safe-area-inset-top,0px));
  transform:translate(-50%,var(--pull-offset,0px));padding:9px 13px;
  border-radius:999px;background:#124e75;color:white;pointer-events:none;
  box-shadow:0 3px 12px #082f5250;font-size:13px;font-weight:750;white-space:nowrap;
 }
 .offiglass-pull-refresh svg{transform:rotate(var(--pull-angle,0deg));flex:none}
 .offiglass-pull-refresh.is-reloading svg{animation:offiglass-pull-spin .75s linear infinite}
}
@keyframes offiglass-pull-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.offiglass-pull-refresh.is-reloading svg{animation:none}}

.tc-month-picker .tc-datetime-monthbar .tc-jump-month-title {
 display:flex;justify-content:space-between;align-items:center;gap:7px;min-width:0;
 padding-inline:12px!important;background:#e9f2fb!important;color:#163956!important;
}
.tc-month-shortcut:not([hidden]) {
 display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr);gap:8px;
}
.tc-month-shortcut label {display:grid;gap:5px;font-weight:700;font-size:.8rem;color:#35546b}
.tc-month-shortcut :is(select,input) {width:100%;min-width:0;font-size:16px}
.tc-month-shortcut>button {grid-column:1/-1}
.tc-calendar-jump-layer .tc-calendar-jump-card {
 max-height:calc(100dvh - 26px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
 overflow:hidden!important;
}
.tc-calendar-jump-layer .tc-calendar-jump-body {flex:1 1 auto;min-height:0;overflow:auto}
.tc-calendar-jump-layer .tc-datetime-picker-actions {flex:none}
.tc-calendar-jump-card .tc-month-picker .tc-datetime-days button {min-height:clamp(31px,5.1dvh,43px)!important}

.tc-month-picker .tc-datetime-monthbar .tc-jump-month-title::after {
 content:"+";display:grid;place-items:center;flex:0 0 25px;height:25px;
 border:1px solid #cadeee;border-radius:8px;background:#fff;color:#165780;
 font-size:17px;font-weight:800;line-height:1;
}
.tc-month-picker .tc-datetime-monthbar .tc-jump-month-title[aria-expanded="true"]::after {
 content:"−";background:#165780;border-color:#165780;color:#fff;
}
.tc-month-picker :is(.tc-month-shortcut,.tc-jump-monthyear-panel):not([hidden]) {
 position:static;margin:8px 0 12px;padding:12px;
 border:1px solid #d5e3ef;border-radius:13px;
 background:linear-gradient(145deg,#fff,#edf5fc);box-shadow:0 5px 16px #16395610;
}
.tc-month-picker :is(.tc-month-shortcut input,.tc-month-shortcut select,.tc-jump-year-row input) {
 box-sizing:border-box;min-height:42px;padding:6px 10px;
 border:1px solid #cbdceb;border-radius:9px;background:white;color:#163956;
 font-size:16px;font-weight:700;
}
.tc-month-picker :is(.tc-jump-year-row button,.tc-jump-month-grid button) {
 background:#fff;border:1px solid #d8e2ed;color:#163956;
}
.tc-month-picker .tc-jump-month-grid button:is(:hover,:focus-visible) {background:#dcebf8}
.tc-month-picker .tc-jump-month-grid button.is-active {
 background:#165780;border-color:#165780;color:#fff;
}
