[hidden]{display:none!important}
:root{--tech-blue:#0f4c81;--tech-deep:#0a3a63;--tech-line:#d9e6ef;--tech-bg:#edf4f9}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;width:100%;overflow-x:hidden}
body.tech-body{font-family:Inter,Arial,sans-serif;background:var(--tech-bg);color:#162033}
button,input,select{font:inherit}
.tech-login{min-height:100dvh;display:grid;place-items:center;padding:24px;background:linear-gradient(180deg,#eef5fb,#f8fafc)}
.login-card{width:min(420px,calc(100vw - 32px));background:#fff;border:1px solid #d9e3ec;border-radius:24px;padding:28px;box-shadow:0 18px 48px rgba(12,52,84,.10)}
.login-logo-wrap{min-height:72px;display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.login-logo{display:block;max-width:250px;max-height:76px;width:auto;height:auto;object-fit:contain}
.login-card .eyebrow{font-size:11px;font-weight:900;letter-spacing:.14em;color:#0f4c81;margin:10px 0 5px}.login-card h1{font-size:28px;margin:0 0 8px}.login-card .muted{color:#65758a;margin:0 0 18px}.login-card label{display:grid;gap:7px;margin:14px 0;font-weight:800;font-size:13px}.login-card input[type=email],.login-card input[type=password]{height:48px;border:1px solid #d6e1ea;border-radius:11px;padding:0 14px;background:#fbfdff}.login-card .remember{display:flex;align-items:center;gap:8px;font-weight:500}.login-card .remember #techRemember{width:20px;height:20px;flex:0 0 20px;margin:0}.login-card .primary{width:100%;border:0;border-radius:11px;background:#155e96;color:#fff;min-height:46px;font-weight:900;cursor:pointer}.full-app-link{display:block;text-align:center;margin-top:15px;color:#0c4b78;font-weight:800}.error{color:#b42318;background:#fef3f2;padding:10px;border-radius:10px;font-size:12px}
.tech-shell{min-height:100dvh;padding-top:74px;padding-left:198px;background:#eaf2f8}
.tech-header{position:fixed;inset:0 0 auto 0;height:74px;z-index:80;display:grid;grid-template-columns:198px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:0 18px;background:linear-gradient(90deg,#0b4778,#0c3c67);color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.tech-menu-toggle{display:none;width:42px;height:42px;border:0;border-radius:11px;background:rgba(255,255,255,.12);color:#fff;font-size:22px}
.tech-header-brand{display:flex;align-items:center;gap:10px;min-width:0}.tech-header-brand img{width:150px;max-height:52px;object-fit:contain;object-position:left center}.tech-header-brand>div{display:none}.tech-header-status{justify-self:end;display:grid;min-width:124px;padding:9px 13px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);border-radius:13px}.tech-header-status span{font-size:9px;text-transform:uppercase;opacity:.74}.tech-header-status strong{font-size:12px}.tech-header-user{display:flex;align-items:center;gap:9px;padding:7px 10px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);border-radius:13px}.tech-header-user>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.14);font-weight:900}.tech-header-user div{display:grid}.tech-header-user small{font-size:9px;opacity:.7}
.tech-sidebar{position:fixed;top:74px;bottom:0;left:0;width:198px;z-index:70;background:linear-gradient(180deg,#0c4b7f,#0a3a63);padding:16px 12px;color:#fff}.tech-sidebar-close{width:50px;height:42px;margin:0 auto 22px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-size:20px}.tech-nav{display:grid;gap:8px}.tech-nav button{width:100%;display:flex;align-items:center;gap:10px;min-height:48px;border:0;border-radius:12px;background:transparent;color:#fff;text-align:left;padding:0 12px;font-weight:800;cursor:pointer}.tech-nav button.active{background:#1769a4;box-shadow:inset 3px 0 #80d4ff}.tech-nav .nav-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.09)}.tech-nav-logout{margin-top:20px!important}.tech-sidebar-backdrop{display:none}
.tech-main{width:100%;padding:18px 18px 24px;min-width:0}.tech-page{width:100%;min-width:0}.tech-page:not(.active){display:none}.tech-footer{display:flex;justify-content:space-between;color:#71859a;font-size:10px;padding:12px 4px}
.technician-calendar-section .tc-calendar-workspace{grid-template-columns:220px minmax(0,1fr)!important;gap:12px!important}.technician-calendar-section .tc-calendar-side{grid-column:1!important}.technician-calendar-section .tc-calendar-main{grid-column:2!important}.tech-side-note{display:grid;gap:3px;padding:10px 11px;border:1px solid #d9e5ed;border-radius:12px;background:#fff;color:#637789;font-size:10px}.tech-side-note strong{color:#21455f;font-size:10px}.technician-calendar-section #tcCalendarBody{height:calc(100dvh - 166px)!important;min-height:520px!important;max-height:none!important;overflow:auto!important;border-radius:13px;background:#fff}.technician-calendar-section .tc-toolbar{margin-bottom:8px!important}.technician-calendar-section .tc-week-timeline{min-width:850px}.technician-calendar-section .tc-side-brand h1{font-size:24px}.technician-calendar-section .tc-side-brand p{font-size:11px}
.tech-calendar-event{position:relative}.tc-event[data-tech-event],.tc-timeline-event[data-tech-event]{cursor:pointer!important}.tc-timeline-event[draggable="true"],.tc-event[draggable="true"]{cursor:pointer!important}
.tech-work-empty{padding:28px;text-align:center;color:#6d8091;background:#f7fafc;border:1px solid #e1e9ef;border-radius:14px}.my-work-list{display:grid;gap:9px}.my-work-card{display:grid;grid-template-columns:95px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #dce6ed;border-radius:13px;background:#fff;padding:13px}.my-work-type{font-size:10px;font-weight:900;text-transform:uppercase;color:#0b6fa8}.my-work-main{display:grid;gap:3px}.my-work-main span,.my-work-main small{color:#657b8c;font-size:11px}.my-work-stats{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.my-work-stat{border:1px solid #dbe5ec;border-radius:12px;background:#fff;padding:9px 12px;color:#526a7b}.my-work-stat strong{color:#173e5f;font-size:18px;margin-left:5px}
.tech-modal-layer{position:fixed;inset:0;z-index:250;background:rgba(7,30,48,.58);display:grid;place-items:center;padding:18px}.tech-modal-card{width:min(620px,100%);max-height:90dvh;overflow:auto;border-radius:20px;background:#fff;padding:18px;box-shadow:0 24px 70px rgba(0,0,0,.27)}.tech-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.tech-modal-head h2{margin:2px 0}.tech-modal-close{width:38px;height:38px;border:0;border-radius:10px;background:#edf3f6;font-size:20px}.tech-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.tech-detail{border:1px solid #dce7ee;background:#f8fbfd;border-radius:12px;padding:10px}.tech-detail.full{grid-column:1/-1}.tech-detail small{display:block;color:#6d8091;margin-bottom:4px}.tech-vehicle{display:grid;gap:4px}.tech-vehicle em{font-style:normal;font-size:11px;color:#0f4c81}.tech-modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.tech-modal-actions>*{flex:1;min-height:42px;border-radius:10px;text-align:center;display:grid;place-items:center;text-decoration:none;font-weight:900}.tech-modal-actions a{background:#155e96;color:#fff}.tech-modal-actions button{border:1px solid #dbe5ec;background:#fff;color:#173e5f}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:300;background:#102a3d;color:#fff;padding:10px 14px;border-radius:11px}
@media(width < 1051px){.tech-shell{padding-left:0}.tech-header{grid-template-columns:auto minmax(0,1fr) auto auto;padding:0 10px;height:64px}.tech-shell{padding-top:64px}.tech-menu-toggle{display:grid;place-items:center}.tech-header-brand img{width:118px}.tech-header-status{display:none}.tech-sidebar{top:64px;transform:translateX(-105%);transition:.18s ease;width:220px;box-shadow:8px 0 24px rgba(0,0,0,.18)}body.tech-menu-open .tech-sidebar{transform:translateX(0)}.tech-sidebar-backdrop{display:block;position:fixed;inset:64px 0 0 0;background:rgba(0,0,0,.32);z-index:65}.tech-main{padding:10px}.technician-calendar-section .tc-calendar-workspace{display:block!important}.technician-calendar-section .tc-calendar-side{display:none!important}.technician-calendar-section .tc-calendar-main{width:100%!important}.technician-calendar-section #tcCalendarBody{height:calc(100dvh - 154px)!important;min-height:480px!important}.technician-calendar-section .tc-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:8px!important}.technician-calendar-section .tc-view-switch{display:grid!important;grid-template-columns:repeat(3,1fr)!important;width:100%!important}.technician-calendar-section .tc-view-switch button{width:100%!important}.technician-calendar-section .tc-nav{display:grid!important;grid-template-columns:42px 62px 42px minmax(0,1fr)!important;width:100%!important}.technician-calendar-section .tc-period-button{min-width:0!important;width:100%!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.technician-calendar-section .tc-center-filter{display:grid!important;grid-template-columns:auto 1fr!important;width:100%!important;align-items:center}.technician-calendar-section .tc-center-filter select{width:100%!important}.technician-calendar-section .tc-week-timeline{min-width:780px}.technician-calendar-section[data-calendar-view="month"] .tc-month-grid{min-width:0!important;width:100%!important}.technician-calendar-section[data-calendar-view="month"] #tcCalendarBody{overflow-x:hidden!important}.technician-calendar-section[data-calendar-view="month"] .tc-day-cell{min-width:0!important}.tech-header-user div{display:none}.tech-header-user{padding:4px}.tech-header-user>span{width:36px;height:36px}.tech-footer{padding-bottom:calc(10px + env(safe-area-inset-bottom))}}
@media(max-width:520px){.tech-main{padding:6px}.technician-calendar-section #tcCalendarBody{height:calc(100dvh - 146px)!important;border-radius:10px}.technician-calendar-section .tc-toolbar{border-radius:10px!important}.technician-calendar-section .tc-nav{grid-template-columns:36px 58px 36px minmax(0,1fr)!important}.technician-calendar-section .tc-nav>button{min-height:38px!important;padding:5px!important}.technician-calendar-section .tc-period-button{font-size:11px!important}.technician-calendar-section .tc-center-filter label{font-size:10px}.technician-calendar-section .tc-center-filter select{min-height:38px!important;font-size:12px}.technician-calendar-section .tc-week-timeline{min-width:720px}.technician-calendar-section[data-calendar-view="month"] .tc-weekdays span{font-size:8px!important}.technician-calendar-section[data-calendar-view="month"] .tc-day-cell{min-height:78px!important;padding:3px!important}.technician-calendar-section[data-calendar-view="month"] .tc-day-number{font-size:10px!important}.technician-calendar-section[data-calendar-view="month"] .tc-event{min-height:14px!important;padding:2px 3px!important}.technician-calendar-section[data-calendar-view="month"] .tc-event b,.technician-calendar-section[data-calendar-view="month"] .tc-event span{font-size:7px!important}.tech-detail-grid{grid-template-columns:1fr}.tech-detail.full{grid-column:auto}.my-work-card{grid-template-columns:1fr auto}.my-work-type{grid-column:1/-1}.login-card{padding:22px 18px}.login-logo{max-width:220px}.tech-header-brand img{width:102px}}
.tech-day-dot{display:block;width:4px;height:4px;border-radius:50%;background:#1682bd;margin:1px auto 0}.tech-picker-dots{display:flex!important;align-items:center;justify-content:center;gap:2px;height:7px;margin-top:1px}.tech-picker-dots i{width:4px;height:4px;border-radius:50%;background:#1682bd}.tech-picker-dots b{font-size:7px;color:#5d7688}.tc-calendar-jump-layer{z-index:400!important}

/* V1.0.107 */
.tech-new-event{width:100%;min-height:42px;border:0;border-radius:11px;background:#0f5c91;color:#fff;font-weight:900;cursor:pointer}.tc-timeline-event.is-small .tc-event-plate,.tc-timeline-event.is-small strong,.tc-timeline-event.is-tiny .tc-timeline-work,.tc-timeline-event.is-tiny .tc-event-plate,.tc-timeline-event.is-tiny strong{display:none!important}.tc-timeline-event.is-tiny{padding:4px 6px!important;gap:1px!important}.tc-timeline-event.is-tiny b,.tc-timeline-event.is-tiny span{font-size:9px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.my-work-stat{border:1px solid #dbe5ec;cursor:pointer;font:inherit}.my-work-stat.active{border-color:#1590c8;background:#eaf7fd;color:#0f5c91;box-shadow:0 0 0 2px rgba(21,144,200,.08)}.my-work-card.clickable{cursor:pointer;transition:.15s ease}.my-work-card.clickable:hover{border-color:#8ec8e4;box-shadow:0 6px 16px rgba(15,76,129,.08)}.my-work-open{font-weight:900;color:#0f5c91;white-space:nowrap}.tech-editor-vehicle{margin-top:12px;padding:12px;border:1px solid #dbe7ef;border-radius:13px;background:#fbfdff}.tech-editor-vehicle-title{font-weight:900;color:#173e5f;margin-bottom:8px}.tech-add-vehicle{margin-top:10px}
@media(width < 1051px){.technician-calendar-section #tcCalendarBody{height:auto!important;min-height:0!important;max-height:none!important;overflow-y:visible!important}.technician-calendar-section[data-calendar-view="week"] #tcCalendarBody,.technician-calendar-section[data-calendar-view="day"] #tcCalendarBody{overflow-x:auto!important;overflow-y:visible!important;touch-action:pan-x pan-y!important;-webkit-overflow-scrolling:touch}.technician-calendar-section .tc-nav{grid-template-columns:40px minmax(0,1fr) 40px!important;grid-template-areas:"today today today" "prev period next"!important;gap:7px!important}.technician-calendar-section #tcToday{grid-area:today;width:100%!important;min-height:40px!important}.technician-calendar-section #tcPrev{grid-area:prev}.technician-calendar-section #tcPeriod{grid-area:period;min-width:0!important;font-size:12px!important}.technician-calendar-section #tcNext{grid-area:next}}
@media(max-width:520px){body{overflow-x:hidden!important}.tech-main{overflow:visible!important}.technician-calendar-section .tc-toolbar{position:relative!important;overflow:visible!important}.technician-calendar-section .tc-period-button{font-size:12px!important;padding:8px 6px!important}.my-work-stats{display:grid;grid-template-columns:1fr 1fr}.my-work-stat{display:flex;justify-content:space-between;align-items:center}.tc-summary-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.tc-summary-actions .tc-summary-edit{grid-column:1/-1!important}.tc-summary-actions .tc-summary-close{grid-column:auto!important;order:1!important}.tc-summary-actions a.btn{order:2!important}.tech-editor-form{grid-template-columns:1fr!important}}

/* V1.0.108 - area tecnico: card compatte, editor completo e note lavorazione */
.tech-header-brand{cursor:pointer;border-radius:10px;padding:3px 5px;margin-left:-5px}.tech-header-brand:hover{background:rgba(255,255,255,.08)}.tech-header-brand:focus-visible{outline:2px solid #79c8ef;outline-offset:2px}
.tc-event-top,.tc-timeline-primary{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;width:100%}.tc-event-top b,.tc-timeline-primary b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tc-event-top span,.tc-timeline-primary span{flex:0 0 auto;white-space:nowrap}
.tc-timeline-event{box-sizing:border-box!important;overflow:hidden!important}.tc-timeline-event.is-tiny{display:flex!important;align-items:center!important;padding:4px 6px!important}.tc-timeline-event.is-tiny .tc-timeline-primary{height:100%}.tc-timeline-event.is-small{padding:5px 7px!important}.tc-timeline-event.is-small .tc-timeline-primary{margin-bottom:2px}.tc-timeline-event.is-small .tc-timeline-work{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
.tc-event.is-compact{padding:3px 4px!important;gap:2px!important}.tc-event.is-compact .tc-event-work{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tc-event.is-compact .tc-event-top{gap:3px}.tc-event.is-compact .tc-event-top b,.tc-event.is-compact .tc-event-top span{font-size:8px!important}
.tech-full-editor .tc-editor-block{margin-bottom:12px}.tech-color-palette{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:8px}.tech-color-palette>button{width:28px;height:28px;border:2px solid #fff;border-radius:999px;background:var(--c);box-shadow:0 0 0 1px #cbd8e2;cursor:pointer}.tech-color-palette>button.active{box-shadow:0 0 0 3px #0f5c91}.tech-color-palette>label{display:flex;align-items:center;gap:6px;font-size:11px}.tech-color-palette input{width:38px;height:28px;padding:0;border:0}.tech-tech-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:7px}.tech-tech-row{display:flex!important;align-items:center;gap:7px;border:1px solid #dbe7ef;border-radius:10px;padding:9px 10px;background:#f8fbfd;font-weight:800}.tech-tech-row input{width:auto!important}.tech-mobile-toggle>span{display:flex;align-items:center;gap:8px}.tech-search-matches{position:relative;margin-top:4px;border:1px solid #dbe7ef;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(15,76,129,.1);max-height:220px;overflow:auto;z-index:3}.tech-search-matches button{display:grid;width:100%;text-align:left;border:0;border-bottom:1px solid #edf2f5;background:#fff;padding:9px 10px;cursor:pointer}.tech-search-matches button:hover{background:#f0f8fc}.tech-search-matches small{color:#698097;margin-top:2px}.tech-work-notes-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:12px;padding:12px;border:1px solid #dbe7ef;border-radius:13px;background:#fbfdff}.tech-work-notes-summary.has-notes{border-color:#9dd4ed;background:#f2fbff}.tech-work-notes-summary p{margin:4px 0 0;white-space:pre-wrap;color:#3f5870}.tech-work-notes-label{display:flex!important;flex-direction:column;gap:7px}.tech-work-notes-label textarea{min-height:150px}
@media(max-width:700px){.tech-tech-list{grid-template-columns:1fr}.tech-work-notes-summary{display:grid}.tech-work-notes-summary .btn{width:100%}.tc-timeline-event.is-tiny{padding:3px 4px!important}.tc-timeline-event.is-tiny .tc-timeline-primary b,.tc-timeline-event.is-tiny .tc-timeline-primary span{font-size:8px!important}}

/* V1.0.109 — mobile calendar scroll, compact cards, note history, pull-to-refresh */
.tech-pull-refresh{position:fixed;top:-70px;left:50%;transform:translate(-50%,-70px);z-index:500;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #cfe0ec;border-radius:999px;padding:9px 14px;box-shadow:0 8px 24px rgba(15,76,129,.18);color:#0f4c81;transition:transform .18s ease;pointer-events:none}.tech-pull-refresh span{font-size:18px;font-weight:900}.tech-pull-refresh b{font-size:12px}.tech-pull-refresh.show{top:0}.tech-pull-refresh.refreshing span{animation:techSpin .7s linear infinite}@keyframes techSpin{to{transform:rotate(360deg)}}
.tech-note-history{display:grid;gap:8px;margin-top:9px}.tech-note-entry{border:1px solid #d9e6ee;border-radius:11px;background:#fff;padding:9px 10px}.tech-note-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:#61788c}.tech-note-meta strong{color:#173e5f}.tech-note-entry p{margin:5px 0 7px!important;white-space:pre-wrap}.tech-note-edit{min-height:30px!important;padding:5px 9px!important;font-size:10px!important}.tech-note-empty{margin-top:8px;color:#6c8192;font-size:11px}.tech-work-notes-summary>div{min-width:0;flex:1}.tech-work-notes-summary>div>span{display:block;margin-top:3px;color:#60788c;font-size:11px}
.tc-timeline-event.is-tiny .tc-timeline-work{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8px!important;line-height:1.05!important}.tc-timeline-event.is-tiny .tc-timeline-primary{height:auto!important}.tc-timeline-event.is-tiny{display:block!important;padding:3px 5px!important}.tc-timeline-event.is-tiny .tc-timeline-primary b,.tc-timeline-event.is-tiny .tc-timeline-primary span{font-size:8px!important;line-height:1.05!important}
@media(width < 1051px){
  .technician-calendar-section .tc-calendar-main{display:flex!important;flex-direction:column!important;min-height:0!important;height:calc(100dvh - 74px)!important;overflow:hidden!important}
  .technician-calendar-section .tc-toolbar{position:sticky!important;top:0!important;z-index:25!important;flex:0 0 auto!important;background:#f5f9fc!important}
  .technician-calendar-section #tcCalendarBody{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important}
  .technician-calendar-section[data-calendar-view="week"] #tcCalendarBody,.technician-calendar-section[data-calendar-view="day"] #tcCalendarBody{overflow:auto!important}
}
@media(max-width:520px){
  .technician-calendar-section .tc-calendar-main{height:calc(100dvh - 64px)!important}
  .technician-calendar-section .tc-toolbar{padding-top:7px!important}
  .tech-work-notes-summary{display:block}.tech-work-notes-summary>button{width:100%;margin-top:9px}
}


/* V1.0.110 — mobile timeline clarity, current time, auth boot */
.tech-auth-boot{position:fixed;inset:0;z-index:1000;display:grid;place-content:center;justify-items:center;gap:12px;background:#eef5fa;color:#0f4c81}.tech-auth-boot[hidden]{display:none!important}.tech-auth-spinner{--tech-loader-a:#0f5c91;--tech-loader-b:#65c7f1;position:relative;width:72px;height:72px;border-radius:50%;filter:drop-shadow(0 10px 24px rgba(15,76,129,.18));animation:techSpin .92s linear infinite}.tech-auth-spinner:before,.tech-auth-spinner:after{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 10%,var(--tech-loader-a) 15% 38%,transparent 44% 59%,var(--tech-loader-b) 65% 84%,transparent 90% 100%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px));mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 6px))}.tech-auth-spinner:after{inset:12px;background:conic-gradient(from 180deg,transparent 0 18%,#65c7f1 27% 49%,transparent 57% 76%,#fff 84% 96%,transparent 100%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));animation:techSpinReverse .66s linear infinite}@keyframes techSpinReverse{to{transform:rotate(-360deg)}}
.tc-week-day-head.is-today{background:#e7f5fc!important;color:#0f5c91!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:18;pointer-events:none}.tc-now-line i{position:absolute;left:-4px;top:-4px;width:9px;height:9px;border-radius:50%;background:#e5484d}
.tc-timeline-event.is-tiny .tc-event-plate{display:block!important;font-size:7.5px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:1px!important}.tc-timeline-event.is-tiny .tc-timeline-work{font-size:7.5px!important}.tc-timeline-event.is-tiny .tc-timeline-primary b,.tc-timeline-event.is-tiny .tc-timeline-primary span{font-size:7.5px!important}
@media(width < 1051px){.technician-calendar-section #tcCalendarBody{overscroll-behavior:auto!important}.technician-calendar-section[data-calendar-view="week"] #tcCalendarBody,.technician-calendar-section[data-calendar-view="day"] #tcCalendarBody{overscroll-behavior:auto!important}}

/* V1.0.111 — refresh esplicito, login flat, timeline mobile stabile */
.tech-header-refresh{width:38px;height:38px;border:1px solid #cfe0ec;border-radius:10px;background:#fff;color:#0f5c91;font-size:20px;font-weight:900;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}.tech-header-refresh:hover{background:#eef8fd}.tech-header-refresh:active{transform:rotate(20deg)}
.tech-login{display:flex!important;align-items:center!important;justify-content:center!important;min-height:100dvh!important;padding:24px!important;background:linear-gradient(180deg,#eef5fb,#f8fafc)!important}.login-card{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;width:min(420px,calc(100vw - 36px))!important;padding:18px!important}.login-logo-wrap{display:flex;justify-content:center}.login-logo{max-width:250px!important;margin:0 auto 18px!important}
.tech-pull-refresh{display:none!important}
.tc-event,.tc-timeline-event{position:relative}.tc-status-dot{position:absolute!important;right:5px!important;top:5px!important;z-index:4!important;width:8px!important;height:8px!important;border-radius:50%!important;border:1.5px solid rgba(255,255,255,.9)!important;box-shadow:0 0 0 1px rgba(22,58,82,.12)!important}.tc-status-dot.todo{background:#f59e0b!important}.tc-status-dot.confirmed{background:#22c55e!important}.tc-status-dot.working{background:#3b82f6!important}.tc-status-dot.completed{background:#64748b!important}.tc-status-dot.cancelled{background:#ef4444!important}
@media(max-width:700px){
 .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}
 .tc-timeline-event.is-tiny .tc-timeline-primary{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:3px!important;width:100%!important}
 .tc-timeline-event.is-tiny .tc-timeline-primary 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:8px!important}
 .tc-timeline-event.is-tiny .tc-timeline-primary span{font-size:7px!important;line-height:1.05!important;white-space:nowrap!important}
 .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;margin-top:1px!important}
 .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}
 .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}
 .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}
}

/* V1.0.112 — auth visibility hardening: never render hidden login/app/boot together */
.tech-login[hidden],
.tech-shell[hidden],
.tech-auth-boot[hidden],
#techLogin[hidden],
#techApp[hidden],
#techBoot[hidden]{display:none!important}


/* V1.0.113 — gerarchia card mobile + calendario ancorato */
@media(width < 1051px){
  .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 — calendario mobile rigido: scorre solo la timeline */
.tech-header-refresh.is-refreshing{animation:techRefreshSpin .65s linear infinite}
@keyframes techRefreshSpin{to{transform:rotate(360deg)}}
@media(width < 1051px){
  body.tech-calendar-active{overflow:hidden!important;overscroll-behavior:none!important;touch-action:pan-x pan-y}
  body.tech-calendar-active .tech-shell{height:100dvh!important;min-height:0!important;overflow:hidden!important}
  body.tech-calendar-active .tech-main{height:calc(100dvh - 64px)!important;min-height:0!important;overflow:hidden!important;padding-bottom:6px!important}
  body.tech-calendar-active #techCalendarPage{height:100%!important;min-height:0!important;overflow:hidden!important}
  body.tech-calendar-active #techCalendarPage .tc-calendar-workspace,
  body.tech-calendar-active #techCalendarPage .tc-calendar-main{height:100%!important;min-height:0!important;overflow:hidden!important}
  body.tech-calendar-active #techCalendarPage .tc-calendar-main{display:flex!important;flex-direction:column!important}
  body.tech-calendar-active #techCalendarPage .tc-toolbar{flex:0 0 auto!important;position:relative!important;z-index:25!important}
  body.tech-calendar-active #techCalendarPage #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}
  body.tech-calendar-active .tech-footer{display:none!important}
}


/* V1.0.115 — mobile calendar locked shell, readable cards, professional icons, FAB */
.tech-nav .nav-icon svg{width:17px;height:17px;fill:currentColor;display:block}
.toast{top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;max-width:min(320px,calc(100vw - 32px));text-align:center;box-shadow:0 14px 40px rgba(0,0,0,.22)}
.tech-calendar-fab{display:none}
@media(width < 1051px){
  body.tech-calendar-active{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important;overscroll-behavior:none!important}
  body.tech-calendar-active .tech-shell{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;padding-top:64px!important}
  body.tech-calendar-active .tech-main{height:calc(100dvh - 64px)!important;overflow:hidden!important}
  body.tech-calendar-active #techCalendarPage{height:100%!important;overflow:hidden!important}
  body.tech-calendar-active #techCalendarPage .tc-calendar-workspace,
  body.tech-calendar-active #techCalendarPage .tc-calendar-main{height:100%!important;overflow:hidden!important}
  body.tech-calendar-active #techCalendarPage #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}
  .tc-timeline-event .tc-mobile-vehicle{order:1!important;font-size:9px!important;line-height:1.08!important;font-weight:950!important}
  .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}
  .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}
  .tc-timeline-event .tc-timeline-work{order:4!important;font-size:7.5px!important;line-height:1.05!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-event.is-compact{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:1px!important;padding:3px 4px!important;overflow:hidden!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-event.is-compact .tc-event-top{display:block!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-event.is-compact .tc-event-vehicle{font-size:6.7px!important;font-weight:950!important;line-height:1.05!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-event.is-compact .tc-event-plate{font-size:5.8px!important;font-weight:900!important;line-height:1.03!important;display:block!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-event.is-compact .tc-event-time{font-size:5.9px!important;font-weight:900!important;line-height:1.03!important;display:block!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-event.is-compact .tc-event-customer{font-size:5.8px!important;line-height:1.03!important;display:block!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-event.is-compact .tc-event-work{font-size:5.8px!important;line-height:1.03!important;display:block!important}
  .technician-calendar-section[data-calendar-view="month"] .tc-event.is-compact .tc-event-technicians{font-size:5.5px!important;line-height:1.03!important;display:block!important}
  body.tech-calendar-active #techCalendarPage[data-calendar-view="month"] ~ .tech-calendar-fab,
  body.tech-calendar-active .tech-calendar-fab{display:none}
  body.tech-calendar-active:has(#techCalendarPage[data-calendar-view="month"]) .tech-calendar-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}
}


/* V1.0.116 — compact event data, time pill, larger branding/FAB, axis-locked calendar */
.tech-header-brand img{max-width:190px!important;width:auto!important;height:36px!important;object-fit:contain!important}
.tech-calendar-fab{display:none}
@media(width < 1051px){
  body.tech-calendar-active .tech-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:220!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}
  body.tech-calendar-active:has(#techCalendarPage[data-calendar-view="month"]) .tech-calendar-fab{display:grid!important}
  .technician-calendar-section .tc-timeline-event{justify-content:flex-start!important;align-content:flex-start!important;gap:2px!important}
  .technician-calendar-section .tc-timeline-event>*{margin-top:0!important;margin-bottom:0!important}
  .technician-calendar-section .tc-timeline-event .tc-mobile-vehicle{order:1!important;font-size:9.5px!important;line-height:1.08!important;font-weight:950!important;max-height:2.2em!important}
  .technician-calendar-section .tc-timeline-event .tc-event-plate{order:2!important;font-size:8px!important;line-height:1.05!important;font-weight:950!important;margin-top:1px!important}
  .technician-calendar-section .tc-timeline-event .tc-mobile-time{order:3!important;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}
  .technician-calendar-section .tc-timeline-event .tc-timeline-work{order:4!important;font-size:7.6px!important;line-height:1.05!important;margin-top:1px!important}
  .technician-calendar-section[data-calendar-view="day"] .tc-status-dot{width:13px!important;height:13px!important;border-width:2px!important;right:7px!important;top:7px!important}
}


/* V1.0.118 — native momentum scrolling / no manual axis interception */
@media(width < 1051px){
  .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.133 — calendario Tecnico: stesso scorrimento nativo separato del calendario principale */
.tc-timeline-scroll{width:100%;max-width:100%;overflow:visible}
@media(width < 1051px){
  body.tech-calendar-active #techCalendarPage #tcCalendarBody{overflow-y:auto!important;overflow-x:visible!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:auto!important}
  body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-week-timeline{max-width:none!important}
}

/* V1.0.134 — calendario Tecnico allineato al Front Desk */
.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-modal .tc-modal-head{background:#fff!important;border-bottom:1px solid #e3edf4!important;border-radius:16px 16px 0 0!important;padding:14px 16px!important;position:relative!important;z-index:2!important}
.tech-note-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.tech-note-delete{color:#b42318!important;border-color:#f0c9c4!important;background:#fff7f6!important}.tech-note-audit{display:block;color:#6c8192;font-size:9.5px;margin-top:4px}.tech-note-entry.is-deleted{opacity:.72;background:#f8fafc}.tech-note-entry.is-deleted p{color:#7a8793}
.tech-mobile-command-row{display:none}
@media(width < 1051px){
  body.tech-calendar-active #techCalendarPage .tc-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;padding:7px 8px!important}
  .tech-mobile-command-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(92px,.7fr)!important;gap:7px!important;position:relative!important;z-index:55!important}
  .tech-mobile-view-toggle,.tech-mobile-today{height:38px!important;border:1px solid #d8e5ee!important;border-radius:10px!important;background:#fff!important;color:#173e5f!important;font-weight:900!important;font-size:12px!important;box-shadow:0 2px 8px rgba(15,76,129,.06)!important}
  .tech-mobile-view-toggle{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 12px!important}.tech-mobile-view-caret{font-size:18px!important;line-height:1!important;color:#0f5c91!important}.tech-mobile-today{background:#0e8bc1!important;color:#fff!important;border-color:#0e8bc1!important}
  .tech-mobile-view-menu{position:absolute!important;left:0!important;top:44px!important;z-index:400!important;min-width:170px!important;padding:5px!important;border:1px solid #d9e6ee!important;border-radius:11px!important;background:#fff!important;box-shadow:0 16px 34px rgba(15,42,61,.18)!important}
  .tech-mobile-view-menu button{display:block!important;width:100%!important;border:0!important;background:#fff!important;color:#173e5f!important;text-align:left!important;padding:10px 11px!important;border-radius:8px!important;font-weight:850!important}.tech-mobile-view-menu button.active{background:#eaf6fb!important;color:#0876a5!important}
  body.tech-calendar-active #techCalendarPage .tc-view-switch{display:none!important}
  body.tech-calendar-active #techCalendarPage .tc-nav{display:grid!important;grid-template-columns:38px minmax(0,1fr) 38px!important;gap:6px!important;align-items:center!important}
  body.tech-calendar-active #techCalendarPage .tc-nav #tcToday{display:none!important}
  body.tech-calendar-active #techCalendarPage .tc-nav #tcPeriod{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important}
  body.tech-calendar-active #techCalendarPage .tc-nav #tcPrev{grid-column:1!important;grid-row:1!important}body.tech-calendar-active #techCalendarPage .tc-nav #tcNext{grid-column:3!important;grid-row:1!important}
  .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
  }
  .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-drag-ghost{position:fixed!important;z-index:10000!important;pointer-events:none!important;opacity:.9!important;transform:scale(1.03)!important;box-shadow:0 12px 32px rgba(15,42,61,.3)!important}.tc-touch-move-badge{position:fixed!important;left:50%!important;bottom:calc(82px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;z-index:10001!important;background:#0f4c81!important;color:#fff!important;border-radius:999px!important;padding:9px 13px!important;font-size:11px!important;font-weight:900!important;box-shadow:0 8px 24px rgba(15,42,61,.28)!important;white-space:nowrap!important}.tc-touch-drop-target{outline:2px solid rgba(14,139,193,.5)!important;outline-offset:-2px!important;background:rgba(14,139,193,.055)!important}.tc-touch-drop-target .tc-half-hour-line{border-top-color:rgba(14,116,144,.42)!important}
}


/* V1.0.135 — allineamento Calendario Tecnico / Front Desk */
.tc-status-dot.todo{background:#111827!important}
.tc-status-dot.working{background:#f59e0b!important}
.tc-status-dot.confirmed{background:#22c55e!important}
.tc-status-dot.cancelled{background:#ef4444!important}
.tc-status-dot.completed{background:#64748b!important}
.tc-week-day-track .tc-timeline-event{max-width:none!important;box-sizing:border-box!important}
.tc-day-unified{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(138px,.52fr)!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(width < 1051px){
  .tech-mobile-view-toggle{display:grid!important;grid-template-columns:minmax(0,1fr) 34px!important;align-items:center!important;padding:0 4px 0 12px!important;text-align:left!important}
  .tech-mobile-view-caret{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:8px!important;background:#e7f4fb!important;border:1px solid #b9dceb!important;color:#0f5c91!important;font-size:22px!important;font-weight:950!important;line-height:1!important;justify-self:end!important}
  .tc-touch-drag-ghost{transform:translate(-50%,-50%) scale(1.03)!important;opacity:.88!important;transform-origin:center center!important}
  .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}
}


/* V1.0.136 — stati, riepiloghi e freccia vista unificati */
.tc-status-dot.todo{background:#111827!important}.tc-status-dot.working{background:#f59e0b!important}.tc-status-dot.confirmed{background:#22c55e!important}.tc-status-dot.cancelled{background:#ef4444!important}.tc-status-dot.completed{background:#2563eb!important;width:17px!important;height:17px!important;border-color:#fff!important}
.tc-status-dot.completed::after{content:'✓'!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-58%)!important;font-size:15px!important;line-height:1!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}
.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}
@media(width < 1051px){.tech-mobile-view-toggle{grid-template-columns:minmax(0,1fr) 38px!important;padding-right:3px!important}.tech-mobile-view-caret{width:34px!important;height:34px!important;justify-self:center!important;align-self:center!important;font-size:25px!important;border-width:2px!important;background:#dff2fb!important;box-shadow:inset 0 0 0 1px rgba(15,92,145,.06)!important}}


/* V1.0.137 — compattazione card settimana + selettore vista mobile */
@media(width < 1051px){
  .tc-timeline-event .tc-tech-customer,
  .tc-timeline-event .tc-mobile-vehicle,
  .tc-timeline-event .tc-event-plate,
  .tc-timeline-event .tc-timeline-work{margin:0!important;line-height:1.05!important}
  .tc-timeline-event .tc-tech-customer{display:block!important;font-size:10px!important;font-weight:950!important;max-width:calc(100% - 20px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .tc-timeline-event .tc-mobile-vehicle{margin-top:1px!important}
  .tc-timeline-event .tc-event-plate{margin-top:0!important}
  .tc-timeline-event .tc-timeline-work{margin-top:1px!important}
  .tc-timeline-event .tc-mobile-time{margin-top:3px!important}
  .tech-mobile-view-toggle{padding:0 7px 0 11px!important;gap:7px!important}
  .tech-mobile-view-caret{width:29px!important;height:29px!important;min-width:29px!important;flex:0 0 29px!important;display:grid!important;place-items:center!important;margin:0!important;border-radius:8px!important;background:#eaf5fb!important;border:2px solid #b9ddeb!important;color:#0b5c8d!important;font-size:20px!important;font-weight:1000!important;line-height:1!important;box-sizing:border-box!important}
  .tech-mobile-view-toggle[aria-expanded="true"] .tech-mobile-view-caret{background:#0f5c91!important;border-color:#0f5c91!important;color:#fff!important}
}


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


/* V1.0.138 — dati settimana compatti, icone SVG e selettore vista rifinito */
.tech-svg-icon{width:14px;height:14px;flex:0 0 14px;fill:currentColor;display:block}
.tc-day-tech,.tc-day-phone,.tc-day-center,.tc-timeline-tech,.tc-event-mobile{display:flex!important;align-items:center!important;gap:5px!important}
@media(width < 1051px){
  .technician-calendar-section .tc-timeline-event{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;align-content:flex-start!important;gap:1px!important;padding-top:7px!important}
  .technician-calendar-section .tc-timeline-event .tc-tech-customer,
  .technician-calendar-section .tc-timeline-event .tc-mobile-vehicle,
  .technician-calendar-section .tc-timeline-event .tc-event-plate,
  .technician-calendar-section .tc-timeline-event .tc-mobile-time,
  .technician-calendar-section .tc-timeline-event .tc-timeline-work,
  .technician-calendar-section .tc-timeline-event .tc-timeline-tech,
  .technician-calendar-section .tc-timeline-event .tc-event-mobile{margin:0!important;margin-top:0!important;margin-bottom:0!important;line-height:1.06!important;max-width:100%!important}
  .technician-calendar-section .tc-timeline-event .tc-event-plate{order:3!important}
  .technician-calendar-section .tc-timeline-event .tc-mobile-time{order:4!important;margin-top:2px!important}
  .technician-calendar-section .tc-timeline-event .tc-timeline-work{order:5!important}
  .technician-calendar-section .tc-timeline-event .tc-timeline-tech{order:6!important}
  .technician-calendar-section .tc-timeline-event .tc-event-mobile{order:7!important}
  .tech-mobile-view-toggle{grid-template-columns:minmax(0,1fr) 30px!important;padding:0 5px 0 12px!important}
  .tech-mobile-view-caret{width:28px!important;height:28px!important;min-width:28px!important;justify-self:center!important;align-self:center!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;font-size:22px!important;line-height:1!important;border:2px solid #9fd3e8!important;background:#e4f4fb!important;box-sizing:border-box!important;transform:none!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.143 — stato rete PWA Tecnico */
.tech-connectivity-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800;line-height:1;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff;white-space:nowrap}
.tech-connectivity-badge .tech-net-dot{width:8px;height:8px;border-radius:50%;background:#43d17c;box-shadow:0 0 0 3px rgba(67,209,124,.16)}
.tech-connectivity-badge.is-offline{background:#fff3e8;color:#9a3f00;border-color:#ffc58f}
.tech-connectivity-badge.is-offline .tech-net-dot{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.14)}
@media(max-width:760px){.tech-connectivity-badge{position:fixed;z-index:55;right:12px;top:calc(env(safe-area-inset-top,0px) + 76px);padding:7px 10px;box-shadow:0 5px 18px rgba(13,52,82,.14)}.tech-connectivity-badge.is-online{background:#eafaf0;color:#15663a;border-color:#b8e8c8}}

/* V1.0.144 — offline immediato, badge rete in header, popup storico sovrapposto, mese affiancato */
.tech-connectivity-badge{position:static!important;display:grid!important;grid-template-columns:8px auto!important;grid-template-rows:auto auto!important;align-items:center!important;justify-items:start!important;column-gap:6px!important;row-gap:1px!important;padding:5px 8px!important;min-width:58px!important;border-radius:10px!important;box-shadow:none!important}
.tech-connectivity-badge .tech-net-dot{grid-column:1;grid-row:1;width:7px!important;height:7px!important}
.tech-connectivity-badge strong{grid-column:2;grid-row:1;font-size:10px!important;line-height:1!important}
.tech-connectivity-badge small{grid-column:1/-1;grid-row:2;font-size:7.5px!important;line-height:1.05!important;opacity:.8;white-space:nowrap}
@media(width < 1051px){
 .tech-header{grid-template-columns:auto minmax(0,1fr) auto auto auto!important;gap:7px!important}
 .tech-connectivity-badge{position:static!important;right:auto!important;top:auto!important;z-index:auto!important;padding:4px 6px!important;min-width:52px!important}
 .tech-connectivity-badge strong{font-size:9px!important}.tech-connectivity-badge small{font-size:6.8px!important}
}
@media(max-width:520px){.tech-header{gap:5px!important;padding:0 7px!important}.tech-connectivity-badge{min-width:48px!important;padding:4px 5px!important}.tech-header-refresh{width:34px!important;height:34px!important}}
.tc-modal-overlay-stacked{z-index:10020!important;background:rgba(9,29,45,.42)!important;backdrop-filter:blur(1.5px)}
.tc-modal-overlay-stacked .tc-modal{box-shadow:0 24px 70px rgba(8,30,48,.34)!important}
.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}
}
.tech-offline-preview #techNewEvent,.tech-offline-preview #techCalendarFab{opacity:.45;pointer-events:none}


/* V1.0.145 — notifiche, popup stacked e mese sovrapposto */
.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}
.tc-summary-status-button{appearance:none;-webkit-appearance:none;width:100%;text-align:left;font:inherit;cursor:pointer}.tc-summary-status-button:hover,.tc-summary-status-button:focus-visible{border-color:#8dc4e2!important;background:#f3faff!important}
.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}.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}
.tech-notification-wrap{position:relative;display:flex;align-items:center}.tech-notification-bell{position:relative;width:38px;height:38px;border:1px solid #cfe0ec;border-radius:10px;background:#fff;color:#0f5c91;display:grid;place-items:center;cursor:pointer}.tech-notification-bell svg{width:20px;height:20px}.tech-notification-bell>#techCalendarBellBadge{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#e53935;color:#fff;font:900 9px/18px Arial;text-align:center}.tech-notification-bell.has-unread svg{animation:techBellPulse .9s ease-in-out 2}@keyframes techBellPulse{25%{transform:rotate(-10deg)}50%{transform:rotate(10deg)}75%{transform:rotate(-5deg)}}
.tech-notification-panel{position:absolute;right:0;top:44px;width:min(380px,92vw);max-height:70vh;overflow:hidden;background:#fff;border:1px solid #dbe7ef;border-radius:15px;box-shadow:0 18px 48px rgba(10,40,62,.24);z-index:10600}.tech-notification-head{display:flex;justify-content:space-between;align-items:center;padding:12px 13px;border-bottom:1px solid #e7eef3}.tech-notification-head>div{display:grid;gap:2px}.tech-notification-head small{color:#718595}.tech-notification-head>button{border:0;background:#eef4f8;width:30px;height:30px;border-radius:50%;font-size:19px}.tech-notification-list{display:grid;max-height:58vh;overflow:auto}.tech-notification-item{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;padding:11px 12px;border:0;border-bottom:1px solid #edf2f5;background:#fff;text-align:left}.tech-notification-item.is-unread{background:#f1f9fe}.tech-notification-item>span{grid-row:1/4;align-self:start;padding:4px 6px;border-radius:7px;background:#e5f5fd;color:#0f6390;font-size:9px;font-weight:900;text-transform:uppercase}.tech-notification-item strong{font-size:12px;color:#173e59}.tech-notification-item small{font-size:10px;color:#718595}.tech-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 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;z-index:3!important;box-shadow:0 4px 10px rgba(0,0,0,.16)!important}
@media(max-width:700px){.tech-notification-panel{position:fixed;right:8px;top:64px;width:calc(100vw - 16px);max-height:74dvh}}

/* V1.0.146 — profilo nel menu e popup secondari sopra */
.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}.tech-sidebar-user{display:flex;align-items:center;gap:10px;margin:4px 4px 14px;padding:12px;border-radius:14px;background:#eef6fb;color:#173e5f}.tech-sidebar-user>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#0f5c91;color:#fff;font-weight:900}.tech-sidebar-user div{display:grid;gap:2px;min-width:0}.tech-sidebar-user strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tech-sidebar-user small{color:#6d8192}.tech-header-user{display:none!important}
@media(max-width:700px){.tech-header-brand img{max-height:46px!important;width:auto!important}.tech-header-brand>div{display:none!important}.tech-header{grid-template-columns:auto minmax(0,1fr) auto auto auto!important;gap:7px!important}.tech-header-status{min-width:0!important}}


/* V1.0.147 — rifiniture finali header, badge modifiche, crea appuntamento mobile */
.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{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{position:relative!important;z-index:2147483001!important;max-height:calc(100dvh - 36px)!important;overflow:auto!important}
.tech-nav-create{color:#0f5c91!important;background:#eaf7fd!important;border:1px solid #bfe0ef!important;font-weight:900!important}
@media(min-width:1051px){
 .tech-header{grid-template-columns:220px minmax(0,1fr) auto auto auto!important;padding:0 16px!important;gap:10px!important}
 .tech-header-brand{justify-self:start!important;margin:0!important;padding:0!important}
 .tech-header-brand img{width:190px!important;height:48px!important;max-height:48px!important;object-fit:contain!important;object-position:left center!important}
 .tech-header-status{justify-self:end!important;min-width:120px!important;text-align:left!important}
 .tech-notification-wrap,.tech-connectivity-badge,.tech-header-refresh{align-self:center!important;margin:0!important}
}
@media(width < 1051px){
 .tech-header{grid-template-columns:auto minmax(0,1fr) auto auto auto!important;padding:0 8px!important;gap:6px!important}
 .tech-header-brand{min-width:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
 .tech-header-brand img{width:min(150px,36vw)!important;max-width:150px!important;height:44px!important;max-height:44px!important;object-fit:contain!important;object-position:left center!important}
 .tech-connectivity-badge{min-width:44px!important;max-width:58px!important;padding:4px 5px!important;margin:0!important;overflow:hidden!important}
 .tech-connectivity-badge small{max-width:52px!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .tech-notification-bell,.tech-header-refresh{width:36px!important;height:36px!important}
 body.tech-calendar-active .tech-calendar-fab{display:grid!important;place-items:center!important;position:fixed!important;right:16px!important;bottom:calc(16px + env(safe-area-inset-bottom))!important;z-index:10000!important;width:58px!important;height:58px!important;border-radius:18px!important;background:#0f5c91!important;color:#fff!important;font-size:34px!important;box-shadow:0 10px 26px rgba(15,76,129,.32)!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-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 — scorrimento PWA Tecnico e popup più fluidi */
@media(width < 1051px){
  body.tech-calendar-active #techCalendarPage #tcCalendarBody{
    overflow-y:auto!important;
    overflow-x:visible!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
  }
  body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-timeline-scroll{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    touch-action:pan-x pan-y!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;
  }
  .technician-calendar-section .tc-timeline-event{
    touch-action:pan-x pan-y!important;
  }
  #techModalHost .tc-modal-overlay{
    touch-action:pan-y!important;
    overscroll-behavior:contain!important;
  }
  #techModalHost .tc-modal{
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    overscroll-behavior:contain!important;
  }
  #techModalHost .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.150: dropdown vista mobile centrato e stabile */
@media(width < 1051px){
  .tech-mobile-view-toggle{grid-template-columns:minmax(0,1fr) 32px!important;align-items:center!important;padding:0 5px 0 12px!important}
  .tech-mobile-view-caret{width:30px!important;height:30px!important;min-width:30px!important;display:grid!important;place-items:center!important;justify-self:center!important;align-self:center!important;margin:0!important;padding:0!important;border-radius:8px!important;box-sizing:border-box!important}
  .tech-mobile-view-caret svg{width:20px!important;height:20px!important;display:block!important;fill:currentColor!important}
}

.tech-editor-permission-note{margin:0 0 12px;padding:10px 12px;border:1px solid #b8d9ec;border-radius:10px;background:#eef8fd;color:#194766;font-size:12px;font-weight:750;line-height:1.35}
.tech-full-editor input:disabled,.tech-full-editor select:disabled,.tech-full-editor textarea:disabled,.tech-full-editor input[readonly]{opacity:.72;cursor:not-allowed;background:#f3f6f8!important}

/* V1.0.152 — profilo tecnico, I miei lavori dettagliati */
.tech-sidebar-user-button{width:100%;border:0;text-align:left;cursor:pointer;display:flex;align-items:center;gap:10px}.tech-sidebar-user-button .tech-profile-chevron{margin-left:auto;font-size:22px;font-weight:900;color:#7fb7dc}.tech-sidebar-user-button:hover{background:#eef8fd}
.my-work-card .my-work-main{gap:4px}.my-work-vehicle{font-weight:800;color:#173e5f}.my-work-job{display:block;font-weight:900;color:#0f5c91;line-height:1.25}.my-work-schedule{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 2px}.my-work-schedule strong,.my-work-schedule b{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border-radius:9px;background:#e8f6fd;border:1px solid #acd9ee;color:#0f5c91;font-size:12px}.my-work-schedule b{background:#0f5c91;color:#fff;border-color:#0f5c91;font-size:13px}
@media(max-width:700px){.my-work-card .my-work-open{align-self:center}.my-work-schedule{gap:5px}.my-work-schedule strong,.my-work-schedule b{font-size:11px;min-height:28px;padding:4px 7px}}

/* V1.0.154 — profilo operatore stabile nel menu e pagina dedicata */
.tech-sidebar-user.tech-sidebar-user-button{
  box-sizing:border-box!important;
  width:calc(100% - 16px)!important;
  min-height:68px!important;
  margin:8px!important;
  padding:10px 12px!important;
  border:1px solid #cfe2ee!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#123d5d!important;
  box-shadow:0 7px 18px rgba(15,76,129,.08)!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 20px!important;
  align-items:center!important;
  gap:10px!important;
  overflow:hidden!important;
}
.tech-sidebar-user-button>span#techAvatar{width:42px!important;height:42px!important;min-width:42px!important;border-radius:13px!important;display:grid!important;place-items:center!important;background:#0f5c91!important;color:#fff!important;font-weight:900!important}
.tech-sidebar-user-button>div{min-width:0!important;display:block!important}
.tech-sidebar-user-button #techUserName{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#123d5d!important}
.tech-sidebar-user-button small{display:block!important;margin-top:2px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#6d8496!important;font-size:10px!important}
.tech-sidebar-user-button .tech-profile-chevron{justify-self:end!important;margin:0!important;color:#0f5c91!important}
.tech-profile-page[hidden],.technician-work-section[hidden],.technician-calendar-section[hidden]{display:none!important}
@media(width < 1051px){
 .tech-sidebar-user.tech-sidebar-user-button{width:calc(100% - 20px)!important;margin:10px!important;min-height:64px!important}
}

/* V1.0.154 — profilo operatore compatto, storico mensile */
.tech-sidebar-user.tech-sidebar-user-button{
  width:calc(100% - 20px)!important;
  margin:10px!important;
  padding:10px!important;
  min-height:64px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.tech-sidebar-user-button>span#techAvatar{width:38px!important;height:38px!important;min-width:38px!important;border-radius:11px!important;background:#fff!important;color:#0f5c91!important}
.tech-sidebar-user-button>div{flex:1 1 auto!important;min-width:0!important}
.tech-sidebar-user-button #techUserName{color:#fff!important;font-size:13px!important}
.tech-sidebar-user-button small{color:#cbe5f5!important;font-size:9.5px!important;white-space:normal!important;line-height:1.2!important;max-height:24px!important}
.tech-sidebar-user-button .tech-profile-chevron{flex:0 0 20px!important;width:20px!important;height:20px!important;display:grid!important;place-items:center!important;color:#fff!important;font-size:19px!important;border:0!important;background:transparent!important}


/* V1.0.155 — profilo/periodo, logo offline e brand più leggibile */
.tech-sidebar-user.tech-sidebar-user-button{width:calc(100% - 16px)!important;margin:8px!important;padding:10px 11px!important;gap:9px!important;overflow:hidden!important}
.tech-sidebar-user.tech-sidebar-user-button>span#techAvatar{width:40px!important;height:40px!important;min-width:40px!important;flex:0 0 40px!important;border-radius:12px!important;background:#fff!important;color:#0f5c91!important}
.tech-sidebar-user.tech-sidebar-user-button>div{flex:1 1 0!important;min-width:0!important;overflow:hidden!important}
.tech-sidebar-user.tech-sidebar-user-button #techUserName{max-width:100%!important;font-size:13px!important;line-height:1.15!important}
.tech-sidebar-user.tech-sidebar-user-button small{font-size:9px!important;line-height:1.15!important;white-space:normal!important;max-height:none!important}
.tech-sidebar-user.tech-sidebar-user-button>.tech-profile-chevron{flex:0 0 18px!important;width:18px!important;height:28px!important;min-width:18px!important;background:transparent!important;border-radius:0!important;color:#d9f0ff!important;font-size:22px!important;line-height:1!important;box-shadow:none!important}
.tech-header-brand img{width:210px!important;max-width:210px!important;height:52px!important;max-height:52px!important;object-fit:contain!important;object-position:left center!important}
@media(width < 1051px){.tech-sidebar{width:236px!important}.tech-header-brand img{width:min(164px,42vw)!important;max-width:164px!important;height:46px!important;max-height:46px!important}}

/* V1.0.158 — chiusura menu mobile sul bordo destro */
@media(width < 1051px){
  .tech-sidebar{position:fixed!important;}
  .tech-sidebar-close{
    position:absolute!important;
    top:16px!important;
    right:12px!important;
    left:auto!important;
    margin:0!important;
    width:52px!important;
    height:46px!important;
    z-index:3!important;
  }
  .tech-sidebar-user.tech-sidebar-user-button{
    margin-top:74px!important;
  }
}

/* V1.0.160 — appuntamenti multi-giorno stile agenda settimanale */
.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}
.technician-calendar-section .tc-week-multiday-label{position:absolute;left:4px;top:4px;font-size:8px;font-weight:800;color:#7890a2;z-index:1;pointer-events:none}
.technician-calendar-section .tc-week-multiday-event{position:absolute;min-width:0;height:25px;border:0;border-radius:8px;background:var(--event-color);color:var(--event-text);padding:3px 7px;text-align:left;display:flex;align-items:center;gap:5px;overflow:hidden;box-shadow:0 2px 5px rgba(23,62,95,.15);z-index:3;cursor:pointer}
.technician-calendar-section .tc-week-multiday-event strong,.technician-calendar-section .tc-week-multiday-event span{font-size:9px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:520px){.technician-calendar-section .tc-week-multiday-event{height:24px;padding:3px 5px}.technician-calendar-section .tc-week-multiday-event strong,.technician-calendar-section .tc-week-multiday-event span{font-size:8px}}




/* V1.0.172 — sidebar desktop Tecnico: struttura unica e stabile */
@media (min-width:1051px){
  .tech-shell{padding-left:198px!important;}
  .tech-sidebar{
    position:fixed!important;
    top:74px!important;bottom:0!important;left:0!important;
    width:198px!important;
    padding:14px 12px 18px!important;
    overflow:hidden!important;
    transform:none!important;
    box-sizing:border-box!important;
  }
  .tech-sidebar-close{
    position:static!important;
    display:grid!important;place-items:center!important;
    width:42px!important;height:40px!important;min-width:42px!important;
    margin:0 0 12px auto!important;padding:0!important;
    border-radius:11px!important;
    background:rgba(255,255,255,.10)!important;color:#fff!important;
    border:1px solid rgba(255,255,255,.16)!important;
    box-shadow:none!important;
    transform:none!important;
    z-index:auto!important;
  }
  .tech-sidebar-user.tech-sidebar-user-button{
    width:100%!important;max-width:100%!important;
    margin:0 0 12px!important;padding:10px!important;
    overflow:hidden!important;box-sizing:border-box!important;
  }
  .tech-nav{width:100%!important;max-width:100%!important;overflow:hidden!important;}
  .tech-nav button{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0 0 8px!important;padding:0 10px!important;
    box-sizing:border-box!important;overflow:hidden!important;
  }
  .tech-nav button>span:not(.nav-icon){min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}

  body.tech-sidebar-collapsed .tech-shell{padding-left:72px!important;}
  body.tech-sidebar-collapsed .tech-sidebar{
    width:72px!important;padding:14px 10px 18px!important;
    overflow:hidden!important;transform:none!important;
  }
  body.tech-sidebar-collapsed .tech-sidebar-close{
    position:static!important;width:42px!important;height:40px!important;
    margin:0 auto 12px!important;
  }
  body.tech-sidebar-collapsed .tech-sidebar-user{display:none!important;}
  body.tech-sidebar-collapsed .tech-nav button{
    width:52px!important;max-width:52px!important;min-width:52px!important;
    height:48px!important;margin:0 auto 8px!important;padding:0!important;
    justify-content:center!important;font-size:0!important;
  }
  body.tech-sidebar-collapsed .tech-nav button .nav-icon{font-size:18px!important;margin:0!important;}
  body.tech-sidebar-collapsed .tech-nav button>span:not(.nav-icon){display:none!important;}
  body.tech-sidebar-collapsed .tech-menu-toggle{display:none!important;}

  .technician-calendar-section .tc-week-multiday-lane{min-height:44px!important;}
  .technician-calendar-section .tc-week-multiday-event{height:36px!important;padding:6px 10px!important;border-radius:10px!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-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-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.181 - presa in carico e collaborazione Tecnici */
.tc-assignment-state{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:14px 16px;border:1px solid #b9d9ea;border-radius:15px;background:#f3faff;box-shadow:0 5px 16px rgba(15,92,145,.08)}
.tc-assignment-state>div{min-width:0;display:grid;gap:3px}.tc-assignment-state>div>span{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#5f8299}.tc-assignment-state>div>strong{font-size:14px;color:#123f60}.tc-assignment-state>div>small{font-size:11px;color:#6c8292;line-height:1.35}.tc-assignment-state .btn{flex:0 0 auto;min-height:42px;padding:9px 15px;white-space:nowrap}.tc-assignment-state.is-unclaimed{border-color:#9fd2b5;background:#f2fbf6}.tc-assignment-state.is-unclaimed>div>span{color:#2b7a4b}.tc-assignment-state.is-unclaimed .btn{background:#147a49;border-color:#147a49}
@media(max-width:700px){.tc-assignment-state{align-items:stretch;flex-direction:column}.tc-assignment-state .btn{width:100%}}

/* V1.0.182 — riepilogo Tecnico compatto */
.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}
@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}}

/* V1.0.184 — conferma interna al gestionale */
.tech-claim-confirm{position:fixed!important;inset:0!important;z-index:2147483647!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;background:rgba(7,30,48,.58)!important}
.tech-claim-confirm>.tc-modal{width:min(480px,100%)!important;max-height:85dvh!important;overflow:auto!important;border-radius:20px!important;background:#fff!important;padding:22px!important;box-sizing:border-box!important}
.tech-claim-confirm p{color:#244b68;line-height:1.5}.tech-claim-confirm .tc-modal-actions{display:flex;gap:10px;flex-wrap:wrap}.tech-claim-confirm .tc-modal-actions button{flex:1;min-height:44px}

/* V1.0.183 — priorità dati box settimana + accettazione presa in carico */
.technician-calendar-section .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
}
.technician-calendar-section .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}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive .tc-event-auto{justify-content:space-between!important;line-height:1.05!important}
.technician-calendar-section .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}
.technician-calendar-section .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;margin:0!important}
.technician-calendar-section .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}
.technician-calendar-section .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}
.technician-calendar-section .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;margin:0!important}
.technician-calendar-section .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}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny,.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-small{padding:4px 5px!important;gap:1px!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-auto>b,.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-job>b,.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-job>span{font-size:7.5px!important;line-height:1.02!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny .tc-event-auto>small{font-size:7px!important;line-height:1.02!important}
.tc-take-charge-form{display:grid;gap:14px;margin-top:8px}.tc-take-charge-form label{display:grid;gap:7px;font-size:12px;font-weight:900;color:#35556d}.tc-take-charge-form input,.tc-take-charge-form textarea{width:100%;box-sizing:border-box;border:1px solid #cfe0ea;border-radius:12px;background:#fff;color:#173e5f;padding:12px 13px;font:inherit;outline:0}.tc-take-charge-form input:focus,.tc-take-charge-form textarea:focus{border-color:#2488bd;box-shadow:0 0 0 3px rgba(36,136,189,.12)}.tc-take-charge-form textarea{min-height:130px;resize:vertical}.tc-take-charge-hint{margin-top:14px;padding:12px 14px;border-radius:12px;background:#eef8fd;border:1px solid #cfe7f3;color:#48677d;font-size:12px;line-height:1.45}.tc-take-charge-hint b{color:#0f5c91}

/* V1.0.187 — ordine verticale dati essenziali nelle box settimana Tecnico */
.technician-calendar-section .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;
}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive .tc-event-vehicle{font-size:10px!important;font-weight:950!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive .tc-event-plate{font-size:9px!important;font-weight:950!important}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive .tc-event-time{font-size:8.8px!important;font-weight:950!important}
.technician-calendar-section .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}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-tiny{gap:0!important;padding:4px 5px!important}
.technician-calendar-section .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}
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-small .tc-event-vehicle{font-size:8.7px!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,
.technician-calendar-section .tc-timeline-event.tc-event-adaptive.is-small .tc-event-work{font-size:7.8px!important}

/* V1.0.191 - giorno selezionato mini calendario Tecnico */
#tcSideCalendarDays button.is-selected{background:#0b78b7!important;color:#fff!important;box-shadow:0 0 0 1px #fff!important;font-weight:900!important;outline:2px solid #29c96f!important;outline-offset:2px!important}


/* V1.0.192 - giorno selezionato e nuove metriche profilo */
.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, selezione mese e dettagli clienti profilo */
.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-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}.tech-client-detail-card[hidden]{display:none!important}


/* V1.0.195 — notifiche e tipografia Tecnico */
.tech-body,.tech-body button,.tech-body input,.tech-body select,.tech-body textarea{font-weight:500}
.tech-body strong,.tech-body b,.tech-body label{font-weight:650}
.tech-notification-actions{display:flex;gap:8px;padding:9px 11px;border-bottom:1px solid #e8eff4;background:#f8fbfd}.tech-notification-actions button{flex:1;border:1px solid #cfe0eb;border-radius:9px;background:#fff;color:#0f5c91;min-height:34px;font-size:10px;font-weight:650;cursor:pointer}.tech-notification-actions button:last-child{color:#b42318;border-color:#f0c7c3}
.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-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 — lighter calendar cards and compact mini-calendar dots */
.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-vehicle{font-weight:500!important}
.technician-calendar-section .tc-event-plate,
.technician-calendar-section .tc-event-time,
.technician-calendar-section .tc-event-work{font-weight:400!important}
.tech-picker-dots b{display:none!important}
.tech-picker-dots i:nth-child(n+3){display:none!important}


/* V1.0.198 — notifiche Tecnico sincronizzate + azioni gestionali */
.tech-notification-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:10px 11px!important;background:#f7fafc!important;border-bottom:1px solid #e3edf4!important}
.tech-notification-actions button{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:38px!important;padding:7px 10px!important;border:1px solid #c9dce8!important;border-radius:10px!important;background:#fff!important;color:#0e5f93!important;font-size:10px!important;font-weight:600!important;cursor:pointer!important}
.tech-notification-actions button svg{width:15px;height:15px;flex:0 0 auto}.tech-notification-actions button.is-danger{color:#b42318!important;border-color:#efc7c3!important;background:#fffafa!important}
.tech-notification-item{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 36px!important;gap:0!important;padding:0!important;border:0!important;border-bottom:1px solid #eaf0f4!important;background:#fff!important;text-align:left!important}
.tech-notification-item.is-unread{background:#f1f8fd!important;box-shadow:inset 3px 0 0 #1684bd!important}
.tech-notification-open{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:3px 8px!important;width:100%!important;padding:11px 8px 11px 12px!important;border:0!important;background:transparent!important;text-align:left!important;cursor:pointer!important;min-width:0!important}
.tech-notification-open>span{grid-row:1/4!important;align-self:start!important;padding:4px 6px!important;border-radius:7px!important;background:#e5f5fd!important;color:#0f6390!important;font-size:9px!important;font-weight:700!important;text-transform:uppercase!important}.tech-notification-open strong{font-size:12px!important;font-weight:600!important;color:#173e59!important;min-width:0!important}.tech-notification-open small{font-size:10px!important;color:#718595!important}
.tech-notification-delete{align-self:center!important;justify-self:center!important;width:30px!important;height:30px!important;display:grid!important;place-items:center!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#9b4a43!important;cursor:pointer!important}.tech-notification-delete:hover{background:#fff1ef!important;border-color:#f0d0cc!important;color:#b42318!important}.tech-notification-delete svg{width:16px;height:16px}

/* Nota / ferie: titolo e descrizione sfruttano l'altezza disponibile */
.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-timeline-event.tc-leave-event[style*="height:1"] .tc-event-company,
.technician-calendar-section .tc-timeline-event.tc-leave-event[style*="height:2"] .tc-event-company{ -webkit-line-clamp:3!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(width < 1051px){.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 — PWA settimana compatta + notifiche sincronizzate */
.tech-notification-actions button:disabled{opacity:.58!important;cursor:wait!important}
.tech-notification-actions button.is-busy{background:#f4f7f9!important;color:#687e8c!important;border-color:#dbe5eb!important}
@media(width < 1051px){
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive{padding:3px 4px!important;gap:0!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive .tc-event-core{font-size:7px!important;line-height:1.03!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.2px!important;font-weight:600!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-event-adaptive .tc-event-work{font-size:7px!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:3px 4px!important;gap:0!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-leave-event .tc-event-company{font-size:8px!important;line-height:1.04!important;font-weight:550!important;-webkit-line-clamp:5!important}
 .technician-calendar-section .tc-week-timeline .tc-timeline-event.tc-leave-event .tc-special-time{font-size:7px!important;line-height:1.04!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 — mobile: sfrutta altezza disponibile senza perdere densità */
@media(width < 1051px){
 .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.203 — box Tecnico: niente nome tecnico e circa 1 ora più leggibile su desktop */
.technician-calendar-section .tc-event-technicians,
.technician-calendar-section .tc-timeline-tech,
.technician-calendar-section .tc-day-tech{display:none!important}
.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)}
@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}
 .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}
}
.tech-notification-delete.is-busy{opacity:.55!important;pointer-events:none!important}


/* V1.0.204 — header settimana protetto + box medie adattive */
.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}
.technician-calendar-section[data-calendar-view="week"] .tc-week-timeline{isolation:isolate!important}
@media(min-width:1051px){
 .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}
 .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}
 .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;-webkit-line-clamp:2!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-medium{padding:5px 7px!important;gap:1px!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}
 .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;-webkit-line-clamp:3!important}
}

/* V1.0.212 — a dedicated, reachable touch target for personal notification deletion. */
@media(width < 1051px){
 .tech-notification-item{grid-template-columns:minmax(0,1fr) 48px!important}
 .tech-notification-delete{width:44px!important;height:44px!important;min-width:44px!important;touch-action:manipulation!important;pointer-events:auto!important;position:relative!important;z-index:2!important}
 .tech-notification-delete svg{pointer-events:none!important}
}

/* V1.0.213 — errors must be visible above an open modal. */
#techToast{z-index:2147483646!important}
.tc-claim-error{grid-column:1 / -1;padding:10px 12px;background:#fff1f0;color:#a12622;border:1px solid #efb4ad;border-radius:9px;font-size:13px;line-height:1.35}
.tc-claim-error[hidden]{display:none!important}

/* V1.0.214 — personal settings */
.tech-settings-page{max-width:980px;width:100%;margin:0 auto;padding:20px;box-sizing:border-box}
.tech-settings-card{background:#fff;border:1px solid #d1e2ef;border-radius:18px;padding:24px;margin-bottom:20px;box-shadow:0 5px 20px #123d6010}
.tech-settings-card h2{margin:0 0 20px;color:#164a73;font-size:21px}
.tech-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.tech-settings-grid label{display:flex;flex-direction:column;gap:8px;font-weight:700;color:#244b68;min-width:0}
.tech-settings-grid select{width:100%;min-width:0;min-height:48px;background:#f7fbfe;border:1px solid #bfd4e5;border-radius:10px;padding:10px;font:inherit;font-size:16px;color:#173e5f}
.tech-settings-card .muted{line-height:1.55;margin:20px 0}
.tech-settings-info{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:12px;font-size:15px}
.tech-settings-info dt{font-weight:700}.tech-settings-info dd{margin:0;overflow-wrap:anywhere}
#techSettingsFeedback,#techUpdateFeedback{line-height:1.5;color:#174d75;overflow-wrap:anywhere}
.tech-text-large .tc-day-customer{font-size:20px}.tech-text-large .tc-day-work{font-size:17px}.tech-text-large .tc-day-time-pill{font-size:17px}
.tech-text-large .tc-event:not(.tc-timeline-event){font-size:15px}
@media(width < 1051px){
 .tech-settings-page{padding:14px}.tech-settings-card{padding:18px}.tech-settings-grid{grid-template-columns:1fr}
 .tech-settings-info{grid-template-columns:1fr}.tech-settings-info dd{margin-bottom:8px}
 .tech-text-large .tc-week-day-track .tc-event-core{font-size:12px!important}
 .tech-text-large .tc-week-day-track .tc-event-time{font-size:13px!important}
 .tech-text-large .tc-week-day-track .tc-special-time{font-size:12px!important}
}
.tech-text-large .tc-day-customer{font-size:20px!important}.tech-text-large .tc-day-work{font-size:17px!important}.tech-text-large .tc-day-time-pill{font-size:17px!important}
@media(min-width:521px){.tech-text-large .technician-calendar-section[data-calendar-view="month"] .tc-event b,.tech-text-large .technician-calendar-section[data-calendar-view="month"] .tc-event span{font-size:14px!important}}
@media(max-width:520px){.tech-text-large .technician-calendar-section[data-calendar-view="month"] .tc-event b,.tech-text-large .technician-calendar-section[data-calendar-view="month"] .tc-event span{font-size:9px!important}}
.tech-settings-hours{display:flex;align-items:center;gap:8px}.tech-settings-hours select{flex:1;width:0}
.tech-settings-card button{margin-top:8px;max-width:100%;white-space:normal}
.tech-settings-creator-logo{max-width:150px;max-height:100px;object-fit:contain;margin-bottom:15px}
#techUpdateFeedback.tech-update-state{padding:15px 18px;border:1px solid #b9cfe0;border-radius:12px;background:#f3f8fc}
#techUpdateFeedback.is-current{background:#e9f9ef;color:#146b3a;border-color:#9ad6af;font-weight:700}
#techUpdateFeedback.has-update{background:#fff4da;color:#775000;border-color:#e6c473;font-weight:700}
#techUpdateFeedback.is-error{background:#fff0ee;color:#9a302a;border-color:#efb0aa}
/* V1.0.217 — update experience and creator print */
.tech-settings-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.tech-settings-actions button{margin:0;min-height:46px;flex:1 1 180px}
.tech-update-heading{display:flex;gap:14px;align-items:center}.tech-update-heading strong{display:block;font-size:18px;line-height:1.35}.tech-update-heading small{display:block;margin-top:4px;font-weight:400}
.tech-update-symbol{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#ffffffa6;font-size:25px}
.tech-update-state p{margin:14px 0 8px;font-size:14px;line-height:1.6;font-weight:400}.tech-update-state>small{font-weight:400}.tech-update-state ul,.tech-release-notes{padding-left:22px;line-height:1.65;font-weight:400}
.tech-creator-print{background:transparent;border:0;box-shadow:none;padding-top:20px}
.tech-creator-print .tech-settings-creator-logo{display:block;width:180px;max-width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;margin:8px auto 25px;border:0;border-radius:0;background:transparent;box-shadow:none;mix-blend-mode:multiply}
#techProfileMonthLabel{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;padding:0 8px;text-align:center;font-size:14px;font-weight:600;color:#173e5f;pointer-events:none}
@media(max-width:520px){.tech-settings-actions{flex-direction:column}.tech-settings-actions button{flex:auto;width:100%}}
.tech-nav button .tech-work-menu-count{margin-left:auto;min-width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;padding:0 7px;border-radius:999px;background:#fff;color:#105a91;font-size:12px;font-weight:800;flex-shrink:0;box-sizing:border-box}
.tech-nav button .tech-work-menu-count[hidden]{display:none!important}
#techUpdateFeedback.tech-update-state{margin-top:20px!important;margin-bottom:4px!important}
.tech-creator-print .tech-settings-creator-logo{width:140px!important;height:auto!important;max-height:none!important;mix-blend-mode:normal!important;background:transparent!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}
[data-app-update-dialog] .tc-modal-head{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:start!important;gap:16px!important;padding-right:0!important}
[data-app-update-dialog] .tc-modal-head>div{min-width:0}
[data-app-update-dialog] .tc-modal-head>button{position:static!important;inset:auto!important;width:44px!important;height:44px!important;min-width:44px!important;flex:none!important;margin:0!important}
.tech-creator-print .tech-settings-creator-logo{visibility:visible!important;opacity:1!important;display:block!important}

/* V229: equal mobile controls, one center selector shared with desktop. */
@media(width < 1051px){
 body.tech-calendar-active #techCalendarPage .tech-mobile-command-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 .tech-mobile-command-row>*{min-width:0}
 .tech-mobile-command-row .tech-mobile-view-toggle{padding:0 7px!important;gap:3px!important;font-size:11px!important}
 .tech-mobile-command-row .tech-mobile-view-caret{flex:0 0 20px!important;width:20px!important;height:24px!important}
 .tech-mobile-command-row #techMobileViewLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.tech-calendar-active #techCalendarPage .tech-mobile-center-slot .tc-center-filter{display:block!important;margin:0!important;width:100%!important;min-width:0!important}
 .tech-mobile-center-slot .tc-center-filter label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
 body.tech-calendar-active #techCalendarPage .tech-mobile-center-slot #techCenterSelect{box-sizing:border-box!important;height:38px!important;min-height:38px!important;width:100%!important;min-width:0!important;padding:0 5px!important;border:1px solid #d8e5ee!important;border-radius:10px!important;background-color:#fff!important;color:#173e5f!important;font-size:11px!important;font-weight:900!important;text-overflow:ellipsis!important;box-shadow:0 2px 8px rgba(15,76,129,.06)!important}
}



/* Keep iOS rubber-band scrolling from pulling the timeline below the toolbar. */
@media(width < 1051px){
  html:has(body.tech-calendar-active){overflow:hidden;overscroll-behavior:none}
  body.tech-calendar-active #techCalendarPage #tcCalendarBody{
    overscroll-behavior:none!important;
  }
  body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] #tcCalendarBody{
    overscroll-behavior:none!important;
    touch-action:pan-x pan-y!important;
  }
}

/* Month labels and cells use the same seven columns in the same scrollport. */
#techCalendarPage[data-calendar-view="month"] #tcCalendarBody{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  touch-action:pan-y!important;
}
#techCalendarPage[data-calendar-view="month"] :is(.tc-weekdays,.tc-month-grid){
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
}
#techCalendarPage[data-calendar-view="month"] .tc-weekdays{
  position:sticky;
  top:0;
  z-index:5;
  padding:0 1px!important;
  background:#fff;
}
#techCalendarPage[data-calendar-view="month"] .tc-month-grid{
  border-left-width:1px!important;
  border-right-width:1px!important;
}
#techCalendarPage[data-calendar-view="month"] .tc-day-cell{
  min-width:0!important;
  overflow:hidden;
}

.tech-notification-panel:not([hidden]){
  display:flex;
  flex-direction:column;
}
.tech-notification-panel > :is(.tech-notification-head,.tech-notification-actions){flex:none}
.tech-notification-panel .tech-notification-list{
  display:block;
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.tech-notification-panel .tech-notification-open > :is(strong,.irp-notification-facts,small){
  grid-column:2;
  overflow-wrap:anywhere;
}
.tech-notification-panel .tech-notification-open > .irp-notification-facts{
  grid-row:auto!important;
  text-transform:none!important;
  font-size:11px!important;
  font-weight:400!important;
}
@media(width < 1051px){
  body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] #tcCalendarBody{
    scroll-behavior:auto!important;
    background-attachment:scroll!important;
  }
}

/* Keep the final tick inside the grid without adding a blank scroll tail. */
body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] #tcCalendarBody,
body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-timeline-scroll {
 padding-block-end:0!important;
}
body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-week-times > span:last-child {
 transform:translateY(-100%)!important;
}
@media(width < 1051px){
 body.tech-calendar-active .tech-shell,
 body.tech-calendar-active #techApp #techPages {box-sizing:border-box}
 body.tech-calendar-active #techApp #techPages {
  padding-block-end:0!important;
 }
}


@media(width < 1051px){
  body.tech-calendar-active #techCalendarPage[data-calendar-view="day"] #tcCalendarBody{
    overflow-x:hidden!important;
    overflow-y:auto!important;
    touch-action:pan-y!important;
    scroll-behavior:auto!important;
    background-attachment:scroll!important;
  }
}



.login-logo[src="/icons/technician-login-brand.jpeg"]{
 mix-blend-mode:multiply;
}

/* V0.7.1: accesso tecnico, password visibile e logo ufficiale */
.tech-login .tech-password-field{display:flex;align-items:center;position:relative;margin:0 0 12px}
.tech-login .tech-password-field #techPassword{width:100%;min-width:0;padding-right:110px;box-sizing:border-box;margin:0}
.tech-login .tech-password-field button{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:0 8px;border:0;border-radius:8px;background:#e9f2fb;color:#104b7d;font-size:12px;font-weight:800;cursor:pointer}
.tech-login .tech-password-field button svg{width:18px;height:18px;flex-shrink:0}
.tech-login .tech-password-field button:focus-visible{outline:2px solid #1682d0;outline-offset:2px}
.tech-login .login-logo{width:min(290px,100%);height:auto;max-width:290px!important;max-height:90px!important;object-fit:contain}
.tech-login .error:not([hidden]){display:block;margin-top:12px;line-height:1.45;overflow-wrap:anywhere}

/* V0.7.8: testo leggibile negli appuntamenti settimanali, senza ingrandire il blocco orario. */
@media(min-width:1051px){
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-vehicle{font-size:11.5px!important;line-height:1.12!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-plate{font-size:10.5px!important;line-height:1.1!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-time{font-size:11px!important;line-height:1.1!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-hourish .tc-event-work{font-size:10.5px!important;line-height:1.1!important}
}

/* OFFIGLASS V0.7.9 — Editor appuntamento tecnico a pagina intera, come il gestionale.
   Mantiene gli stessi campi, salvataggio e permessi esistenti. */
#techModalHost .tech-editor-page-overlay{position:fixed!important;inset:0!important;z-index:2147482000!important;display:block!important;padding:0!important;margin:0!important;background:#edf4f9!important;overflow:hidden!important;backdrop-filter:none!important}
#techModalHost .tech-editor-page-overlay>.tc-appointment-editor-modal{position:relative!important;display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;background:#edf4f9!important;box-shadow:none!important;overflow:hidden!important}
#techModalHost .tech-editor-page-overlay .tc-editor-scroll-body{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:0 max(18px,calc((100vw - 1200px)/2)) 22px!important}
#techModalHost .tech-editor-page-overlay .tc-editor-hero{position:sticky!important;top:0!important;z-index:3!important;max-width:none!important;margin:0 0 16px!important;padding:20px 26px!important;background:#fff!important;border-bottom:1px solid #dce8f0!important;border-radius:0!important}
#techModalHost .tech-editor-page-overlay .tc-editor-sections{width:100%!important;max-width:1200px!important;margin:0 auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:16px!important}
#techModalHost .tech-editor-page-overlay .tc-editor-block{min-width:0!important;margin:0!important;background:#fff!important;border:1px solid #dce8f0!important;border-radius:16px!important;padding:18px!important}
#techModalHost .tech-editor-page-overlay .tc-editor-block.tc-vehicles-block{grid-column:1/-1!important}
#techModalHost .tech-editor-page-overlay .tc-modal-actions{flex:0 0 auto!important;width:100%!important;margin:0!important;padding:14px max(18px,calc((100vw - 1200px)/2))!important;background:#fff!important;border-top:1px solid #dce8f0!important;display:flex!important;justify-content:flex-end!important;gap:12px!important}
#techModalHost .tech-editor-page-overlay .tc-modal-actions .btn{flex:0 0 auto!important;min-height:42px!important}
@media(max-width:850px){#techModalHost .tech-editor-page-overlay .tc-editor-sections{grid-template-columns:minmax(0,1fr)!important}#techModalHost .tech-editor-page-overlay .tc-editor-block.tc-vehicles-block{grid-column:auto!important}#techModalHost .tech-editor-page-overlay .tc-editor-scroll-body{padding:0 12px 20px!important}#techModalHost .tech-editor-page-overlay .tc-editor-hero{padding:14px 16px!important}#techModalHost .tech-editor-page-overlay .tc-modal-actions{padding:12px!important}}

/* OFFIGLASS V0.8.0 — Ripristino popup come nel calendario aziendale. */
#techModalHost .tech-editor-company-modal{position:fixed!important;inset:0!important;z-index:2147482000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;background:rgba(7,29,51,.65)!important;backdrop-filter:blur(3px)!important;overflow:hidden!important}
#techModalHost .tech-editor-company-modal>.tc-appointment-editor-modal{position:relative!important;display:flex!important;flex-direction:column!important;width:min(100%,950px)!important;max-width:950px!important;height:auto!important;max-height:calc(100dvh - 36px)!important;margin:auto!important;border-radius:22px!important;background:#f3f7fb!important;box-shadow:0 20px 65px rgba(5,27,51,.25)!important;overflow:hidden!important}
#techModalHost .tech-editor-company-modal .tc-editor-hero{flex:0 0 auto!important;position:relative!important;top:auto!important;padding:17px 22px!important;margin:0!important;background:#fff!important;border-bottom:1px solid #dce8f0!important}
#techModalHost .tech-editor-company-modal .tc-editor-sections{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;display:block!important;width:100%!important;padding:18px max(16px,calc((100% - 610px)/2))!important;box-sizing:border-box!important}
#techModalHost .tech-editor-company-modal .tc-editor-block{min-width:0!important;margin:0 0 14px!important;padding:17px!important;background:#fff!important;border:1px solid #dce8f0!important;border-radius:16px!important}
#techModalHost .tech-editor-company-modal .tc-modal-actions{flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;margin:0!important;padding:12px 22px!important;background:#fff!important;border-top:1px solid #dce8f0!important}
@media(max-width:700px){#techModalHost .tech-editor-company-modal{padding:8px!important}#techModalHost .tech-editor-company-modal>.tc-appointment-editor-modal{max-height:calc(100dvh - 16px)!important;border-radius:15px!important}#techModalHost .tech-editor-company-modal .tc-editor-sections{padding:12px!important}#techModalHost .tech-editor-company-modal .tc-editor-hero{padding:12px 15px!important}#techModalHost .tech-editor-company-modal .tc-modal-actions{padding:10px 12px!important}}
/* Settimana desktop: sfrutta la larghezza della card, senza testo microscopico. */
@media(min-width:1051px){
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event{padding:4px 5px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:1px!important;min-width:0!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event .tc-timeline-primary{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:1px!important;width:100%!important;min-width:0!important;height:auto!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event .tc-timeline-primary b,.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event .tc-timeline-primary span{display:block!important;max-width:100%!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:clamp(9px,.7vw,12px)!important;line-height:1.1!important;font-weight:800!important;padding:0!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event .tc-timeline-work,.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event .tc-event-plate{display:block!important;width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:clamp(9px,.64vw,11px)!important;line-height:1.1!important;margin:0!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event .tc-timeline-tech{display:none!important}
}

/* OFFIGLASS V0.8.1 — editor tecnico: popup compatto, contenuto realmente scrollabile. */
#techModalHost .tech-editor-company-modal{padding:12px!important;align-items:center!important;overflow:hidden!important}
#techModalHost .tech-editor-company-modal>.tc-appointment-editor-modal{box-sizing:border-box!important;width:min(820px,100%)!important;max-width:820px!important;height:min(790px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:0!important}
#techModalHost .tech-editor-company-modal .tc-editor-hero{padding:13px 18px!important;flex-shrink:0!important}
#techModalHost .tech-editor-company-modal .tc-editor-sections{display:block!important;flex:1 1 0%!important;min-height:0!important;height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;padding:12px 16px 20px!important;width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box!important}
#techModalHost .tech-editor-company-modal .tc-editor-block{width:100%!important;max-width:none!important;box-sizing:border-box!important;padding:14px!important;margin:0 0 10px!important}
#techModalHost .tech-editor-company-modal .tc-modal-actions{flex:0 0 auto!important;padding:10px 16px!important;margin:0!important}
/* I campi sfruttano tutta la larghezza disponibile, senza colonne vuote laterali. */
#techModalHost .tech-editor-company-modal .tc-form{width:100%!important;max-width:none!important;box-sizing:border-box!important}
@media(max-width:700px){#techModalHost .tech-editor-company-modal{padding:6px!important}#techModalHost .tech-editor-company-modal>.tc-appointment-editor-modal{height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:14px!important}#techModalHost .tech-editor-company-modal .tc-editor-sections{padding:9px!important}#techModalHost .tech-editor-company-modal .tc-editor-block{padding:11px!important}}
/* Settimana: le righe effettive del markup sono tc-event-core, non tc-timeline-primary. */
@media(min-width:1051px){
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive{align-items:stretch!important;justify-content:flex-start!important;gap:0!important;padding:3px 5px!important;overflow:hidden!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-core{box-sizing:border-box!important;display:block!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0 12px 0 0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;line-height:1.12!important;font-weight:650!important;letter-spacing:0!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-vehicle{font-size:11px!important;font-weight:800!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-work{font-size:10px!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}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-tiny>.tc-event-plate,.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-tiny>.tc-event-work{display:none!important}
.technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-small>.tc-event-work{display:none!important}
}


/* OFFIGLASS V0.8.2 — Fix strutturale: prepareCalendarEditor inserisce tc-editor-scroll-body.
   In V0.8.1 lo scroll era applicato erroneamente a tc-editor-sections, suo figlio. */
#techModalHost .tech-editor-company-modal>.tc-appointment-editor-modal{
  display:flex!important;flex-direction:column!important;
  height:min(820px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;
  width:min(920px,100%)!important;max-width:920px!important;
  padding:0!important;overflow:hidden!important;
}
#techModalHost .tech-editor-company-modal .tc-editor-scroll-body{
  display:block!important;flex:1 1 auto!important;min-height:0!important;max-height:none!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;scrollbar-gutter:stable!important;
  padding:0 14px 18px!important;box-sizing:border-box!important;width:100%!important;
}
#techModalHost .tech-editor-company-modal .tc-editor-scroll-body>.tc-editor-hero{
  position:sticky!important;top:0!important;z-index:4!important;
  margin:0 -14px 12px!important;padding:12px 18px!important;
  border-radius:0!important;
}
#techModalHost .tech-editor-company-modal .tc-editor-scroll-body>.tc-editor-sections{
  display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)!important;
  align-items:stretch;gap:14px!important;
  width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;
  flex:none!important;overflow:visible!important;padding:0!important;margin:0!important;
}
.tech-full-editor > .tech-editor-side{
  display:grid;grid-template-rows:auto 1fr;align-content:start;gap:14px;min-width:0;
}
#techModalHost .tech-editor-company-modal .tech-full-editor .tc-editor-block{
  width:100%!important;min-width:0!important;max-width:none!important;
  margin:0!important;padding:clamp(12px,2vw,19px)!important;box-sizing:border-box!important;
}
.tech-full-editor > :is(.tc-vehicles-block,.tech-editor-permission-note){grid-column:1/-1}
.tech-full-editor > .tech-editor-permission-note{margin:0}
.tech-full-editor > .tech-editor-appointment{box-shadow:inset 0 3px #35bd78}
.tech-full-editor .tech-editor-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.tech-full-editor .tech-editor-form > label{min-width:0}
#techModalHost .tech-editor-company-modal .tc-modal-actions{
  flex:0 0 auto!important;position:relative!important;z-index:5!important;
  width:100%!important;margin:0!important;padding:10px 16px!important;
  display:flex!important;justify-content:flex-end!important;
}
@media(max-width:760px){
 #techModalHost .tech-editor-company-modal .tc-editor-scroll-body{padding:0 9px 12px!important}
 #techModalHost .tech-editor-company-modal .tc-editor-scroll-body>.tc-editor-hero{margin:0 -9px 9px!important}
 #techModalHost .tech-editor-company-modal .tc-editor-scroll-body>.tc-editor-sections{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
 .tech-full-editor > .tech-editor-side{gap:9px}
}

@media(max-width:480px){
 .tech-full-editor .tech-editor-form{grid-template-columns:minmax(0,1fr)}
}

/* Appuntamento settimana: gerarchia e peso tipografico del calendario aziendale.
   Le card da 30 minuti devono mostrare lavorazione, non la targa. */
@media(min-width:1051px){
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive{
  padding:3px 5px!important;gap:0!important;align-items:stretch!important;
 }
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-core{
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0 11px 0 0!important;line-height:1.12!important;
  font-family:inherit!important;letter-spacing:0!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
 }
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-vehicle{font-size:10px!important;font-weight:650!important;order:1!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-time{font-size:9px!important;font-weight:500!important;order:2!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-work{
  display:block!important;font-size:9px!important;font-weight:450!important;line-height:1.1!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  -webkit-line-clamp:unset!important;order:3!important;
 }
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-plate{display:none!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-small>.tc-event-work,
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-tiny>.tc-event-work{display:block!important;font-size:9px!important;font-weight:450!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-tiny>.tc-event-vehicle,
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-tiny>.tc-event-time{font-size:9px!important}
}

/* V0.8.3 — date picker esplicito, tipografia calendario e logo desktop */
#techModalHost .tech-editor-company-modal .tech-date-control{display:flex!important;align-items:center!important;gap:6px!important;width:100%!important;min-width:0!important}
#techModalHost .tech-editor-company-modal .tech-date-control input{flex:1 1 auto!important;min-width:0!important;width:100%!important;cursor:pointer!important}
#techModalHost .tech-editor-company-modal .tech-date-picker-button{flex:0 0 42px!important;height:42px!important;border:1px solid #cbddec!important;border-radius:10px!important;background:#edf5fc!important;color:#125d92!important;font-size:22px!important;cursor:pointer!important}
#techModalHost .tech-editor-company-modal .tech-date-picker-button:hover{background:#dceefd!important}
@media(min-width:1051px){
 .tech-header-brand img{width:238px!important;max-width:238px!important;height:60px!important;max-height:60px!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive{padding:2px 4px!important;row-gap:0!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-core{font-weight:400!important;letter-spacing:0!important;line-height:1.08!important;padding-right:8px!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-vehicle{font-size:10.5px!important;font-weight:400!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-time{font-size:9.5px!important;font-weight:400!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive>.tc-event-work{font-size:9.5px!important;font-weight:400!important;line-height:1.1!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-small>.tc-event-vehicle,
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-tiny>.tc-event-vehicle,
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-small>.tc-event-time,
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-tiny>.tc-event-time,
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-small>.tc-event-work,
 .technician-calendar-section[data-calendar-view="week"] .tc-timeline-event.tc-event-adaptive.is-tiny>.tc-event-work{font-weight:400!important;font-size:9px!important}
}

/* V0.8.4: picker identico nell'impostazione al calendario aziendale. */
.tech-company-datetime-layer{z-index:2147483000!important;position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(7,29,51,.57)!important;backdrop-filter:blur(4px)!important;padding:14px!important}
.tech-company-datetime-layer .tc-datetime-picker-card{width:min(600px,100%)!important;max-height:calc(100dvh - 28px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;background:#f8fbfe!important;border-radius:22px!important;box-shadow:0 24px 70px #0a2d4c55!important}
.tech-company-datetime-layer .tc-datetime-picker-head{padding:20px 22px 14px!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;background:#fff!important}
.tech-company-datetime-layer .tc-datetime-picker-head h4{font-size:20px!important;margin:3px 0!important;color:#0a3351!important}
.tech-company-datetime-layer .tc-datetime-kicker{font-size:10px!important;letter-spacing:2px!important;color:#0678b7!important;font-weight:800!important}
.tech-company-datetime-layer .tc-datetime-close{width:36px!important;height:36px!important;border:1px solid #d5e3ed!important;border-radius:10px!important;background:white!important;font-size:23px!important;color:#315673!important}
.tech-company-datetime-layer .tc-datetime-range-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:12px 18px!important;background:#fff!important}
.tech-company-datetime-layer .tc-datetime-range-tab{text-align:left!important;padding:10px!important;border:1px solid #d9e6ee!important;border-radius:11px!important;background:#fff!important;color:#174466!important}
.tech-company-datetime-layer .tc-datetime-range-tab.is-active{background:#e8f6ff!important;border-color:#61b4e4!important}
.tech-company-datetime-layer .tc-datetime-range-tab span{display:block!important;font-size:10px!important;font-weight:700!important}
.tech-company-datetime-layer .tc-datetime-range-tab strong{display:block!important;font-size:11px!important}
.tech-company-datetime-layer .tc-datetime-picker-body{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(0,.65fr)!important;min-height:0!important;overflow:auto!important;flex:1 1 auto!important}
.tech-company-datetime-layer .tc-datetime-calendar{padding:16px!important;min-width:0!important}
.tech-company-datetime-layer .tc-datetime-monthbar{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:14px!important}
.tech-company-datetime-layer .tc-datetime-monthbar button{border:1px solid #d9e6ee!important;background:#fff!important;border-radius:10px!important;width:36px!important;height:36px!important}
.tech-company-datetime-layer .tc-datetime-weekdays,.tech-company-datetime-layer .tc-datetime-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;text-align:center!important}
.tech-company-datetime-layer .tc-datetime-weekdays{font-size:10px!important;font-weight:800!important;color:#7791a6!important}
.tech-company-datetime-layer .tc-datetime-days button{border:0!important;background:transparent!important;min-height:45px!important;border-radius:9px!important;font-size:12px!important;color:#164263!important}
.tech-company-datetime-layer .tc-datetime-days button.is-outside{opacity:.35!important}
.tech-company-datetime-layer .tc-datetime-days button.is-selected{background:#0878b8!important;color:#fff!important}
.tech-company-datetime-layer .tc-datetime-today{border:0!important;background:transparent!important;color:#0077b7!important;font-weight:700!important;margin-top:8px!important}
.tech-company-datetime-layer .tc-datetime-time{padding:16px 10px!important;border-left:1px solid #e0eaf2!important;min-width:0!important}
.tech-company-datetime-layer .tc-datetime-time-title{font-size:12px!important;color:#315c79!important}
.tech-company-datetime-layer .tc-datetime-manual-pair{display:flex!important;align-items:center!important;gap:3px!important}
.tech-company-datetime-layer .tc-datetime-manual-pair input{width:37px!important;padding:7px 2px!important;text-align:center!important;border:1px solid #cbdfea!important;border-radius:7px!important}
.tech-company-datetime-layer .tc-datetime-time-columns{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;margin-top:12px!important}
.tech-company-datetime-layer .tc-datetime-time-columns>div{min-width:0!important}
.tech-company-datetime-layer .tc-datetime-time-columns small{font-size:10px!important}
.tech-company-datetime-layer .tc-datetime-scroll{height:300px!important;overflow-y:auto!important;scrollbar-width:thin!important}
.tech-company-datetime-layer .tc-datetime-scroll button{display:block!important;width:100%!important;padding:10px 1px!important;border:0!important;background:transparent!important;border-radius:7px!important;color:#245474!important}
.tech-company-datetime-layer .tc-datetime-scroll button.is-active{background:#d9f1ff!important;color:#00679f!important;font-weight:800!important}
.tech-company-datetime-layer .tc-datetime-picker-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;padding:12px 18px!important;background:white!important;border-top:1px solid #dfeaf2!important}
@media(max-width:620px){.tech-company-datetime-layer .tc-datetime-picker-body{grid-template-columns:minmax(0,1fr)!important}.tech-company-datetime-layer .tc-datetime-time{border-left:0!important;border-top:1px solid #dfeaf2!important}.tech-company-datetime-layer .tc-datetime-scroll{height:110px!important}}
/* Rimuove la pesantezza residua dei nomi veicolo e targa, anche con classi adattive. */
.technician-calendar-section .tc-timeline-event.tc-event-adaptive>.tc-event-vehicle,.technician-calendar-section .tc-timeline-event.tc-event-adaptive>.tc-event-plate,.technician-calendar-section .tc-timeline-event.tc-event-adaptive>.tc-event-core{font-weight:400!important;letter-spacing:0!important}
.technician-calendar-section[data-calendar-view=week] .tc-timeline-event.tc-event-adaptive{padding:2px 3px!important}
.technician-calendar-section[data-calendar-view=week] .tc-timeline-event.tc-event-adaptive>.tc-event-core{padding-right:5px!important;line-height:1.08!important}

/* V0.8.5 – allineamento area tecnico al calendario aziendale */
@media(min-width:1051px){
 .tech-header-brand img{width:265px!important;max-width:265px!important;height:66px!important;max-height:66px!important;object-fit:contain!important;object-position:left center!important}
 .tech-header-brand{min-width:265px!important}
}
.tech-company-datetime-layer .tc-datetime-close,.tech-company-datetime-layer .tc-datetime-monthbar button{display:inline-flex!important;align-items:center!important;justify-content:center!important}
.tech-company-datetime-layer .tc-datetime-manual-pair input{font-variant-numeric:tabular-nums!important;cursor:text!important;font-size:14px!important;font-weight:600!important;outline-offset:1px!important}
.tech-company-datetime-layer .tc-datetime-manual-pair input:focus{border-color:#0b82c6!important;box-shadow:0 0 0 3px #0b82c62b!important;background:#e8f6ff!important}
.tech-company-datetime-layer .tc-datetime-manual-pair input[aria-invalid=true]{border-color:#c73c42!important}
@media(min-width:701px){
 .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline .tc-timeline-event.tc-event-adaptive{padding:2px 3px!important;gap:0!important;align-content:start!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline .tc-timeline-event.tc-event-adaptive>.tc-event-core{display:block!important;box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;padding:0 5px 0 0!important;font-size:10px!important;font-weight:400!important;letter-spacing:0!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;-webkit-line-clamp:unset!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline .tc-timeline-event.tc-event-adaptive>.tc-event-work{font-size:9.7px!important;font-weight:400!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline .tc-timeline-event.tc-event-adaptive>.tc-event-vehicle,
 .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline .tc-timeline-event.tc-event-adaptive>.tc-event-plate{font-weight:400!important;font-size:10px!important}
}

/* V0.8.6 — niente pulsanti duplicati accanto alle date; il campo apre il picker personalizzato. */
#techModalHost .tech-editor-company-modal .tech-date-control{gap:0!important}
#techModalHost .tech-editor-company-modal .tech-date-control input{width:100%!important;flex:1 1 100%!important}
/* Righe compatte e uniformi: veicolo/targa, orario, lavorazione. */
@media(min-width:701px){
 .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline button.tc-timeline-event.tc-event-adaptive{padding:2px 3px!important;row-gap:0!important;column-gap:0!important;justify-content:flex-start!important;align-content:flex-start!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline button.tc-timeline-event.tc-event-adaptive > span.tc-event-core{font-family:inherit!important;font-weight:400!important;font-size:10.5px!important;line-height:1.12!important;letter-spacing:0!important;white-space:nowrap!important;width:100%!important;max-width:100%!important;padding-right:7px!important;margin:0!important;overflow:hidden!important;text-overflow:clip!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline button.tc-timeline-event.tc-event-adaptive > span.tc-event-work{display:block!important;font-size:10px!important;font-weight:400!important}
 .technician-calendar-section[data-calendar-view="week"] .tc-week-timeline button.tc-timeline-event.tc-event-adaptive > span.tc-event-vehicle{font-weight:400!important;font-size:10.5px!important}
}

/* V0.10.3: explicit read state for technician notifications */
.tech-notification-read-label{grid-column:2;display:inline-flex;width:max-content;max-width:100%;font-size:10px;font-weight:750;border-radius:6px;padding:3px 7px;margin-top:3px}
.tech-notification-read-label.is-read{background:#e5f7ec;color:#167449}
.tech-notification-read-label.is-new{background:#e3f0ff;color:#125a9e}
.tech-notification-panel:not([hidden]){max-height:min(76dvh,680px);display:flex;flex-direction:column}
.tech-notification-panel .tech-notification-list{flex:1 1 auto;min-height:0;overflow-y:auto}

/* V0.10.5: notifications readable and green read indicator */
.tech-notification-open>.tech-notification-read-label.is-read,
.tech-notification-panel .tech-notification-open>.tech-notification-read-label.is-read{grid-column:2!important;grid-row:auto!important;background:#e4f7e9!important;color:#08743b!important;font-weight:850!important;border-radius:7px!important;padding:4px 8px!important;white-space:nowrap!important;text-transform:none!important}
.tech-notification-open>.tech-notification-read-label.is-new{grid-column:2!important;grid-row:auto!important;background:#e3f0ff!important;color:#125a9e!important;text-transform:none!important}
.tech-notification-detail{padding:16px 20px;line-height:1.5;color:#173e59;overflow-wrap:anywhere}
.tech-notification-detail-actor{margin-top:12px;color:#657f91;font-size:12px}
@media(min-width:1051px){
 .tech-sidebar #techProfileOpen{display:none!important}
 .tech-header #techProfileOpen{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:4px 8px!important;border-radius:30px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;border:1px solid rgba(255,255,255,.2)!important;min-width:0;max-width:190px;cursor:pointer}
 .tech-header #techProfileOpen #techAvatar{width:36px!important;height:36px!important;flex:0 0 36px!important;border-radius:50%!important;background:#e7f3fa!important;color:#124e7d!important}
 .tech-header #techProfileOpen strong{color:#fff!important;font-size:12px}
 .tech-header #techProfileOpen small,.tech-header #techProfileOpen .tech-profile-chevron{display:none!important}
 .tech-header{display:flex!important;align-items:center!important;gap:10px!important}
 .tech-header .tech-header-brand{margin-right:auto!important}
 .tech-header .tech-header-status{margin-left:auto!important}}
@media(width < 1051px){.tech-header #techProfileOpen{display:none!important}}

/* OFFIGLASS V0.10.6: profilo compatto e dettaglio notifiche */
@media(min-width:1051px){
.tech-header #techProfileOpen{flex:0 0 auto!important;width:auto!important;max-width:240px!important;min-width:0!important;padding:5px 11px!important;gap:9px!important;border-radius:24px!important}
.tech-header #techProfileOpen>div{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-width:0!important}
.tech-header #techProfileOpen strong{font-size:12px!important;line-height:1.15!important;max-width:155px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.tech-header #techProfileOpen small{display:block!important;font-size:10px!important;color:#d6eaf7!important;line-height:1.15!important;white-space:nowrap!important}
.tech-header #techProfileOpen #techAvatar{width:34px!important;height:34px!important;flex:0 0 34px!important}
}
.tech-notification-detail{padding:18px 4px;line-height:1.5;overflow-wrap:anywhere}
.tech-notification-open{cursor:pointer!important;pointer-events:auto!important}

/* V0.10.7: notification detail must be above the bell popover */
.tc-modal-overlay-stacked{z-index:12050!important}
.tech-notification-open,.tech-notification-delete{pointer-events:auto!important;touch-action:manipulation!important}

/* V0.11.0: pannello notifiche desktop e paginazione */
.tech-notification-panel .tech-notification-item{grid-template-columns:minmax(0,1fr) 38px!important;position:relative!important}
.tech-notification-panel .tech-notification-open{grid-column:1!important;grid-row:1!important;position:relative!important;z-index:1!important}
.tech-notification-panel .tech-notification-delete{grid-column:2!important;grid-row:1!important;position:relative!important;z-index:2!important;align-self:center!important}
.tech-notification-panel .tech-notification-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 12px;border-top:1px solid #dce8f0;background:white}
.tech-notification-footer label,.tech-notification-pages{display:flex;align-items:center;gap:7px;font-size:12px;color:#164b72}
.tech-notification-footer select,.tech-notification-pages button{border:1px solid #d3e2ed;background:#f7fbff;border-radius:7px;padding:6px;min-height:30px;color:#164b72}
.tech-notification-pages button:disabled{opacity:.35}


/* 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;}
}

.staff-operational-page{padding:clamp(14px,4vw,38px);max-width:980px;margin:auto;display:block}.staff-operational-page details{padding:12px;border:1px solid #d6e3ed;background:#fff;border-radius:12px}.staff-operational-page summary{cursor:pointer;font-weight:700}.staff-operational-page .tc-form{margin-top:12px}.staff-dashboard-links{display:flex;flex-wrap:wrap;gap:10px}


/* Settimana: intestazione e griglia usano lo stesso contenitore di scorrimento. */
body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] #tcCalendarBody{
 position:relative!important;
 min-width:0!important;
 min-height:0!important;
 max-width:100%!important;
 overflow:auto!important;
 overscroll-behavior:contain!important;
 touch-action:pan-x pan-y!important;
 -webkit-overflow-scrolling:touch;
 scroll-snap-type:none!important;
}
body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-timeline-scroll{
 width:100%!important;
 min-width:0!important;
 overflow:visible!important;
 touch-action:pan-x pan-y!important;
}
body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] #tcCalendarBody[data-axis-scroll],
body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] #tcCalendarBody[data-axis-scroll] :is(.tc-timeline-scroll,.tc-timeline-event){
 touch-action:none!important;
}
body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-week-head-row{
 position:sticky!important;
 top:0!important;
}
@media(width < 1051px), (max-width:1366px) and (pointer:coarse){
 body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-week-times{
  position:sticky!important;left:0!important;z-index:12!important;background:#f8fbfd;
 }
}
@media(min-width:1051px) and (pointer:fine), (min-width:1367px){
 body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-week-timeline{
  width:100%!important;min-width:0!important;grid-template-columns:42px repeat(7,minmax(0,1fr))!important;
 }
}

.tech-nav .tech-nav-outline .nav-icon svg{fill:none}
.staff-record-header{position:relative;padding:24px 26px;margin-bottom:18px;border:1px solid #d6e3ef;border-radius:20px;background:linear-gradient(120deg,#fff,#f3f8fc)}
.staff-record-header h1{margin:0;color:#103752;font-size:clamp(24px,4vw,34px)}
.staff-record-header p{margin:7px 0 0;color:#456379}
.staff-record-access{display:inline-block;margin-top:13px;padding:5px 10px;border-radius:999px;background:#dceef9;color:#144c72;font-size:.81rem;font-weight:700}
.staff-record-content{display:grid;gap:10px}
.staff-record-status{padding:15px;margin:0;border:1px solid #d6e3ed;border-radius:12px;background:#f8fbfe;color:#37566d}
.staff-record-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px;margin:12px 0 0;padding:12px;background:#f4f8fc;border-radius:10px}
.staff-record-summary dt{color:#446176;font-size:.8rem}
.staff-record-summary dd{margin:4px 0 0;overflow-wrap:anywhere;color:#13364e;font-weight:650}
@media(min-width:1051px) and (pointer:fine){
 body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-week-day-track{
  border-inline-end:1px solid #c4d5e3!important;box-sizing:border-box;
 }
}

.tech-nav button.active{background:#214967;box-shadow:inset 3px 0 #25db78}
.tech-nav button.active .nav-icon{color:#25db78}
.tech-nav .nav-icon svg{color:inherit}
.tech-nav .nav-icon svg[fill="none"]{fill:none}
.tech-nav .tech-nav-outline .nav-icon svg:not([stroke]){fill:currentColor}

/* Read-only archive uses the workspace beside the sidebar. */
#staffOperationalPage.staff-practices-page {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#staffOperationalPage.staff-practices-page > #archive {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
}

.staff-practices-page #archive .filters {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
}

.staff-practices-page #archive .filters > * {
  width: 100%;
  min-width: 0;
}

.staff-practices-page #archive .table-wrap {
  width: 100%;
  overflow-x: auto;
}

.staff-practice-results {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}

.staff-practice-results [hidden] {
  display: none;
}

#staffOperationalPage.staff-read-page{width:100%;max-width:none;margin:0;padding:0}
.staff-read-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px}
.staff-read-card{min-width:0;padding:16px;border:1px solid #d6e3ed;border-radius:14px;background:#fff}
.staff-read-card > h2{margin:0;font-size:1rem;color:#153c59;overflow-wrap:anywhere}
.staff-read-card .staff-record-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr))}
.staff-read-card dd{white-space:pre-wrap}
.staff-display-status{display:inline-block;border-radius:12px;padding:2px 8px;background:#e7eef4;color:#294e6e}
.staff-display-status.is-online{background:#dcf5e7;color:#12683d}


#techProfileOpen #techAvatar{
 width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;
 min-height:36px!important;max-height:36px!important;flex:0 0 36px!important;
 box-sizing:border-box!important;border-radius:50%!important;aspect-ratio:1;
}
body:not(.tech-sidebar-collapsed) .tech-nav button{font-size:13px!important;line-height:1.25!important;gap:8px!important}
body:not(.tech-sidebar-collapsed) .tech-nav button>span:not(.nav-icon):not(.tech-work-menu-count){
 white-space:normal!important;overflow-wrap:anywhere;overflow:visible!important;text-overflow:clip!important;
}
.tech-nav button .nav-icon{flex-shrink:0}

.tech-sidebar{
  display:flex;
  flex-direction:column;
  overflow:hidden!important;
}
.tech-sidebar-close,.tech-sidebar-user,.tech-nav-logout{flex:none}
.tech-sidebar .tech-nav{
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
.tech-sidebar .tech-nav button{
  min-height:42px!important;
  height:auto!important;
  margin:0 0 4px!important;
  padding-block:5px!important;
}
.tech-nav-heading{
  display:block;
  padding:4px 10px 8px;
  color:#b9d6ea;
  font-size:10px;
  letter-spacing:.08em;
  font-weight:800;
}
@media(min-width:1051px){body.tech-sidebar-collapsed .tech-nav-heading{display:none}}
.tech-sidebar > .tech-nav-logout{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  width:100%;
  margin-top:8px;
  border:0;
  border-radius:11px;
  color:#fff;
  background:rgba(255,255,255,.12);
  font-weight:750;
  cursor:pointer;
}
.tech-sidebar > .tech-nav-logout svg{width:18px;height:18px;fill:currentColor}
@media(min-width:1051px){body.tech-sidebar-collapsed .tech-nav-logout>span:last-child{display:none}}
@media(width < 1051px){
 .tech-sidebar > .tech-nav-logout{margin-bottom:max(3px,env(safe-area-inset-bottom))}
}

.tech-header,.tech-sidebar{font-family:Inter,Arial,sans-serif}

/* The vehicle line no longer contains the plate in the weekly technician view. */
.technician-calendar-section[data-calendar-view="week"] .tc-week-day-track .tc-timeline-event.tc-event-adaptive > .tc-event-plate{
 display:block!important;
}


/* Staff header and its mobile layers use the same positioning in both shells. */
#techMenuToggle svg{width:22px;height:22px}
.tech-header #techProfileOpen{
 align-items:center;gap:10px!important;padding:5px 8px 5px 5px!important;
 background:transparent!important;border-color:transparent!important;
 box-shadow:none!important;border-radius:14px!important;
}
.tech-header #techProfileOpen:is(:hover,:focus-visible){
 background:#ffffff12!important;border-color:#ffffff3d!important;
}
.tech-header #techProfileOpen #techAvatar{
 display:grid!important;place-items:center;width:38px!important;height:38px!important;
 flex:0 0 38px!important;border-radius:50%!important;
 color:#0d4267!important;background:linear-gradient(155deg,#fff,#cce5f5)!important;
 box-shadow:0 0 0 1px #ffffff75;
}
.tech-header #techProfileOpen strong{font-size:13px!important;font-weight:750}
.tech-header #techProfileOpen small{color:#c5dce9!important}


.tech-sidebar-brand{display:none}
.tech-header-actions,.tech-desktop-context{display:flex;align-items:center}
.tech-header-actions{gap:10px;flex:none}
.tech-desktop-context{min-width:0;gap:clamp(10px,1.2vw,24px)}
.tech-desktop-context .tech-header-status{display:flex;align-items:center;gap:9px;padding:0;background:none;border:0}
.tech-header-status > div{display:grid;gap:3px;min-width:0}
.tech-header-status > div > span,.tech-header-clock small{color:#b4d1e5;font-size:10px}
.tech-status-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid #ffffff38;border-radius:50%;background:#ffffff15;color:#ffe0a0}
.tech-status-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.tech-data-status .tech-status-icon{color:#9ceac5;background:#68dcaa18}
.tech-data-status strong{color:#a4ecca}
.tech-welcome{font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.tech-header-clock{display:flex;align-items:center;gap:9px;padding:7px 13px 7px 8px;border:1px solid #ffffff40;border-radius:999px;background:#ffffff14;font-variant-numeric:tabular-nums}
.tech-header-clock > div{display:grid;gap:3px;white-space:nowrap}
.tech-clock-face{width:39px;height:39px;flex:none;fill:#f4faff;stroke:#b0d2ef;stroke-width:1.4;stroke-linecap:round}
.tech-clock-face path{stroke:#2871a0;stroke-width:2}
.tech-clock-face #techClockHour{stroke:#122f4a;stroke-width:3}
.tech-clock-face #techClockSecond{stroke:#19a765;stroke-width:1.2}
.tech-notification-bell svg{fill:none;stroke:currentColor}
#techApp .tech-header-actions > .tech-connectivity-badge{flex:none}
#techSidebarClose svg{width:21px;height:21px}
#techSidebarClose.is-mobile-close svg{display:none}
#techSidebarClose.is-mobile-close::after{content:"×";font-size:25px;line-height:1}

@media(min-width:1051px){
 #techApp{--tech-sidebar-width:245px;--tech-header-height:86px;padding:var(--tech-header-height) 0 0 var(--tech-sidebar-width)!important}
 body.tech-sidebar-collapsed #techApp{--tech-sidebar-width:72px}
 #techApp > .tech-header{
  inset:0 0 auto var(--tech-sidebar-width)!important;width:auto!important;height:var(--tech-header-height)!important;
  display:flex!important;justify-content:space-between;gap:10px!important;padding:0 18px!important;
  background:linear-gradient(100deg,#142f56,#103e65 56%,#0b2744);
 }
 #techApp #techSidebar{
  inset:0 auto 0 0!important;width:var(--tech-sidebar-width)!important;
  display:flex!important;visibility:visible!important;background:#0e2c49;
 }
 #techSidebar .tech-sidebar-brand{display:block;margin:5px 0 30px;padding:0 6px}
 #techSidebar .tech-sidebar-brand img{width:100%!important;max-width:100%!important;height:auto!important}
 body.tech-sidebar-collapsed #techSidebar .tech-sidebar-brand{display:none}
 #techApp #techMenuToggle{display:none!important}
 #techApp #techConnectivityBadge{display:none!important}
 #techApp .tech-header-actions .tech-header-control{
  width:43px!important;height:43px!important;border-radius:50%!important;background:#f6faff!important;color:#184368!important;
 }
 #techApp .tech-header #techProfileOpen{
  padding:7px 12px 7px 8px!important;border:1px solid #ffffff40!important;
  border-radius:999px!important;background:#ffffff14!important;
 }
 #techApp .tech-header #techUserName{max-width:135px;color:#fff!important}
 #techApp .tech-header #techAvatar{width:36px!important;height:36px!important;flex-basis:36px!important}
 #techSidebar .tech-nav button.active{background:#1e4667;box-shadow:inset 3px 0 #29c96f,inset 0 0 0 1px #75b7de65}
}
@media(min-width:1051px) and (max-width:1250px){
 #techApp > .tech-header{padding:0 12px!important}
 .tech-header-clock > div{display:none}
 .tech-header-clock{padding:4px}
 .tech-desktop-context{gap:8px}
 .tech-status-icon{width:32px;height:32px;flex-basis:32px}
}
/* Keep navigation items together even when the available height is large. */
#techSidebar .tech-nav{display:grid;align-content:start;grid-auto-rows:max-content;gap:4px!important}
#techSidebar .tech-nav button{min-height:38px!important;height:auto!important;margin:0!important;padding-block:3px!important}
body.tech-sidebar-collapsed #techSidebar .tech-nav button{min-height:38px!important;margin:0 auto!important}

@media(width < 1051px){
 #techApp > .tech-header{
  display:grid!important;height:64px!important;width:100%;box-sizing:border-box;
  grid-template-columns:44px minmax(0,1fr) auto!important;
  align-items:center;gap:6px!important;padding:0 8px!important;overflow:visible;
  z-index:11020;
 }
 #techApp .tech-desktop-context,#techApp .tech-header-clock{display:none}
 #techApp .tech-header-brand{display:flex;margin:0!important;min-width:0!important}
 #techApp .tech-header-brand img{width:min(150px,100%)!important;max-width:100%!important}
 #techApp .tech-header-actions{display:flex;align-items:center;gap:6px;min-width:0}
 #techApp .tech-notification-wrap{flex:none}
 #techApp .tech-header-control{
  display:flex!important;align-items:center;justify-content:center;
  flex:none;width:44px!important;height:44px!important;margin:0;
 }
 #techApp > .tech-header #techMenuToggle,
 #techApp > .tech-header #techCalendarBell{
  visibility:visible;opacity:1;pointer-events:auto;touch-action:manipulation;
 }
 #techApp > .tech-header #techMenuToggle{
  background:transparent;color:#fff;border:0;box-shadow:none;padding:0;
 }
 #techApp .tech-header-actions .tech-header-control{
  box-sizing:border-box;border-radius:50%;padding:0;
 }
 #techApp .tech-header-control svg{display:block;flex:none;width:19px;height:19px}
 #techApp #techCalendarBellPanel{
  position:fixed;inset:64px 8px auto auto;width:min(380px,calc(100vw - 16px));
 }
 #techApp #techSidebar{
  position:fixed!important;inset:64px auto 0 0!important;width:min(82vw,295px)!important;z-index:11019;
 }
 #techApp #techSidebarBackdrop{position:fixed;inset:64px 0 0;z-index:11018;touch-action:none}
 #techApp #techSidebarBackdrop[hidden]{display:none}
 #techApp #techSidebarBackdrop:not([hidden]){display:block}
 body.tech-menu-open #techApp #techSidebar{transform:translateX(0);visibility:visible}
 body:not(.tech-menu-open) #techApp #techSidebar{visibility:hidden}
 #techSidebar .tech-nav,.tech-notification-panel .tech-notification-list,.tech-mobile-view-menu{
  overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y;overscroll-behavior:contain;
 }
}
@media(max-width:350px){
 #techApp #techConnectivityBadge{display:none!important}
}

@media(width < 1051px){
 body > #techModalHost > .tc-modal-overlay:not(.tc-tech-summary-overlay,.tech-editor-company-modal,.tc-modal-overlay-stacked){
  box-sizing:border-box;inset:64px 0 0!important;
  height:calc(100dvh - 64px)!important;z-index:2147483100!important;
  padding:10px 10px max(10px,env(safe-area-inset-bottom))!important;
 }
 body > #techModalHost > .tc-modal-overlay:not(.tc-tech-summary-overlay,.tech-editor-company-modal,.tc-modal-overlay-stacked) > .tc-modal{
  max-height:100%!important;min-height:0;overflow-y:auto!important;
 }
}

#techApp,#techApp>.tech-header {background:#ebf0f5!important;color:#163956!important}
#techApp>.tech-header {box-shadow:none!important;border:0!important}
#techApp .tech-data-status,#techApp .tech-side-note {display:none!important}
#techApp .tech-header #techMenuToggle {color:#163956!important}
#techApp .tech-header :is(.tech-header-clock,#techProfileOpen) {
 background:white!important;border:1px solid #d8e2ed!important;color:#173c5a!important;
}
#techApp .tech-header :is(#techUserName,#techHeaderRole,#techClockDate) {color:#385b75!important}
#techApp #techSidebar {background:#0e2c49!important}
#techApp .tc-view-switch {
 background:#eef4fa;border-radius:12px;padding:4px;gap:4px;
}
#techApp .tc-view-switch button {border:0;border-radius:8px;min-height:34px;background:transparent;color:#234965}
#techApp .tc-view-switch button.active {background:#154f77;color:#fff}
#techApp #tcPeriod {
 background:#e2eef9!important;color:#163956!important;border:1px solid #c9dced;
 border-radius:11px;min-height:44px;padding-inline:10px;
}
#techApp #tcPeriod::after {display:none!important}
#techApp #tcPeriod .tc-period-copy {display:grid;line-height:1.16;gap:3px}
#techApp #tcPeriod small {display:block;color:#43627b;font-size:9px;letter-spacing:.08em;text-transform:uppercase}
#techApp #techCenterSelect {max-width:100%;min-width:0;background:#f4f8fc!important;border:1px solid #d5e1ec!important;color:#163956!important}
@media(min-width:1051px){
 #techApp {--tech-header-height:76px}
 #techApp #techSidebar {
  inset:10px auto 10px 10px!important;
  width:calc(var(--tech-sidebar-width) - 16px)!important;
  border:1px solid #31516b;border-radius:17px;box-shadow:0 6px 24px #102f4920;
 }
 #techApp .tech-desktop-context .tech-header-status {
  min-width:0;background:#fff;border:1px solid #d8e2ed;border-radius:12px;padding:6px 9px;
 }
 #techApp .tech-header-status>div>span {color:#43627b}
 #techApp #techDesktopCenterSlot .tc-center-filter {display:block;margin:0;padding:0}
 #techApp #techDesktopCenterSlot label {display:none}
 #techApp #techCenterSelect {width:clamp(128px,17vw,224px);border-radius:8px}
 #techApp #tcPeriod .tc-period-copy strong {font-size:13px}
 #techApp #techCalendarPage .tc-toolbar {gap:8px;flex-wrap:wrap}
}
#techApp .tech-toolbar-welcome{display:none}
@media(width < 1051px){
 #techApp #techCalendarPage .tech-toolbar-welcome{
  display:block;color:#264e6b;font-size:.8rem;padding:4px 5px;
  min-width:0;overflow-wrap:anywhere;
 }
}

#techApp .tech-status-icon {
 background:#fff0ce;color:#976008;border:1px solid #f0da9c;
 width:36px;height:36px;flex:0 0 36px;
}
#techApp .tech-status-icon svg {width:19px;height:19px}
@media(min-width:1051px){
 #techApp {--tech-header-height:0px}
 #techApp>.tech-header {
  position:relative;inset:auto!important;height:auto!important;min-height:76px;
  padding:12px 20px 4px!important;box-shadow:none!important;
 }
 #techApp .tech-header-actions :is(.tech-header-control,.tech-header-clock,#techProfileOpen) {
  background:#fff!important;border:1px solid #d8e2ed!important;color:#163956!important;
  box-shadow:0 3px 10px #19395512!important;
 }
 #techApp .tech-header-actions .tech-header-control {width:38px!important;height:38px!important}
 #techApp .tech-header-clock {min-height:44px;padding:4px 9px}
 #techApp .tech-clock-face {width:32px;height:32px}
 #techApp .tech-sidebar-brand img {display:block;width:100%!important}
}

@media(min-width:1051px){
 #techApp #techSidebarClose {display:grid!important;place-items:center;color:#fff!important}
 body.tech-sidebar-collapsed #techApp #techSidebar .tech-sidebar-brand {
  display:block;margin:0 auto 14px;padding:0;width:34px;
 }
 body.tech-sidebar-collapsed #techApp .tech-sidebar-brand .tech-header-brand {display:none!important}
 #techApp .tech-desktop-context .tech-data-status {display:flex!important;align-items:center;gap:7px}
 #techApp .tech-data-status .tech-status-icon {
  width:34px;height:34px;flex-basis:34px;background:#dff3ea;color:#08765d;border-color:#b9e6d6;
 }
 #techApp .tech-data-status .tech-status-icon svg {
  fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;
 }
 #techApp .tech-data-status div {display:grid;gap:2px;white-space:nowrap}
 #techApp .tech-data-status div span {font-size:10px;text-transform:uppercase;letter-spacing:.04em}
 #techApp .tech-data-status div strong {color:#116551;font-size:12px}
 body.tech-calendar-active #techApp:not([hidden]) {
  box-sizing:border-box;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;
 }
 body.tech-calendar-active #techApp > .tech-header {flex:none}
 body.tech-calendar-active #techPages {flex:1;min-height:0;padding:12px 20px 0;overflow:hidden}
 body.tech-calendar-active #techCalendarPage,
 body.tech-calendar-active #techCalendarPage .tc-calendar-workspace {height:100%;min-height:0}
 body.tech-calendar-active #techCalendarPage .tc-calendar-workspace {grid-template-rows:minmax(0,1fr);align-items:stretch}
 body.tech-calendar-active #techCalendarPage .tc-calendar-main {
  display:flex;flex-direction:column;height:100%!important;min-height:0;min-width:0;overflow:hidden;
 }
 body.tech-calendar-active #techCalendarPage .tc-toolbar {flex:none}
 body.tech-calendar-active #techCalendarPage #tcCalendarBody {
  flex:1;height:auto!important;min-height:0!important;max-height:none!important;
  overflow:auto!important;overscroll-behavior:contain;
 }
 body.tech-calendar-active #techCalendarPage .tc-calendar-side {min-height:0;overflow:auto}
 body.tech-calendar-active #techApp .tech-footer {display:none}
}
@media(min-width:1051px) and (max-width:1250px){
 #techApp .tech-welcome {max-width:125px;overflow-wrap:anywhere}
 #techApp .tech-data-status .tech-status-icon {display:none}
}
#techApp #techConnectivityBadge {
 background:#e4f7ec;color:#14643b;border:1px solid #a9dec0;
 padding:5px 8px!important;max-inline-size:none!important;border-radius:999px!important;
 flex:none;
}
#techApp #techConnectivityBadge.is-offline {
 background:#fff0d6;color:#83440e;border-color:#efcd9d;
}
#techApp #techConnectivityBadge strong {font-size:12px!important;color:inherit}

#techApp #techSidebar {
 background:#f7fbff!important;color:#163956;border-color:#cfdfec;
}
#techApp #techSidebar :is(#techSidebarClose,.tech-nav-logout,.tech-nav button) {color:#163956!important}
#techApp #techSidebar :is(#techSidebarClose,.tech-nav-logout,.tech-nav .nav-icon) {background:#e8f1f8!important}
#techApp #techSidebar .tech-nav-heading {color:#496881}
#techApp #techSidebar .tech-nav button.active {
 background:#dfedf7!important;box-shadow:inset 3px 0 #139259,inset 0 0 0 1px #b1cfe3;
}
#techApp #techSidebar .tech-nav button .nav-icon {color:#28516e}
#techApp #techSidebar .tech-nav button.active .nav-icon {color:#087749}
#techApp #techSidebar:not(:has(.tech-header-brand)) #techProfileOpen {background:#e1edf7!important;color:#163956!important}
#techApp #techSidebar #techProfileOpen :is(#techUserName,#techHeaderRole,.tech-profile-chevron) {color:#163956!important}
#techApp #techSidebar .tech-sidebar-brand .tech-compact-logo {display:none!important}
@media(min-width:1051px){
 body.tech-sidebar-collapsed #techApp #techSidebar {box-sizing:border-box;padding-inline:6px!important}
 body.tech-sidebar-collapsed #techApp #techSidebar :is(.tech-nav,.tech-nav button) {width:100%!important;min-width:0!important;max-width:100%!important}
 body.tech-sidebar-collapsed #techApp #techSidebar .tech-nav button:not([hidden]) {
  display:grid!important;grid-template-columns:1fr!important;place-items:center;gap:0!important;padding:0!important;
 }
 body.tech-sidebar-collapsed #techApp #techSidebar .tech-nav button .nav-icon {
  margin:0!important;justify-self:center;transform:none!important;
 }
 body.tech-sidebar-collapsed #techApp #techSidebar .tech-sidebar-brand .tech-compact-logo {display:block!important}
}

/* Fit the technician shell to the visible tablet without affecting its inner scroll areas. */
#techApp {inline-size:100%;max-inline-size:100%;min-inline-size:0;box-sizing:border-box}
#techApp :is(#techPages,.tech-main) {min-inline-size:0;max-inline-size:100%}
#techApp #techSidebar .tech-tablet-drawer-logo {display:none!important}
@media(min-width:700px) and (width < 1051px){
 #techApp #techSidebar .tech-sidebar-brand {
  display:flex;flex:none;justify-content:center;margin:0 6px 6px;
 }
 #techApp #techSidebar .tech-sidebar-brand .tech-tablet-drawer-logo {
  display:block!important;width:min(240px,100%);height:64px;object-fit:contain;
 }
}
@media(width < 1051px){
 #techApp > .tech-header {inset-inline:0!important;inline-size:auto!important;max-inline-size:none}
}
@media(min-width:1051px) and (max-width:1366px) and (any-pointer:coarse){
 #techApp #techConnectivityBadge {display:inline-grid!important}
 #techApp > .tech-header {inline-size:100%!important;min-inline-size:0;gap:8px!important;padding-inline:12px!important}
 #techApp .tech-header-actions {gap:6px}
 #techApp .tech-header-actions .tech-header-clock {display:none}
 #techApp .tech-header-actions #techProfileOpen > div {display:none}
 #techApp .tech-header-actions #techProfileOpen {padding:4px!important}
 #techApp .tech-desktop-context :is(.tech-welcome,.tech-header-status) {min-inline-size:0}
 #techApp .tech-welcome {max-inline-size:120px}
}
@media(min-width:900px) and (max-width:1366px) and (orientation:landscape) and (any-pointer:coarse){
 body.tech-calendar-active #techCalendarPage .tc-calendar-main {container:tech-week / inline-size}
}
@container tech-week (min-width:740px){
 body.tech-calendar-active #techCalendarPage[data-calendar-view="week"] .tc-week-timeline {
  width:100%!important;min-width:0!important;grid-template-columns:42px repeat(7,minmax(0,1fr))!important;
 }
}
