:root{--bg:#061a17;--panel:#0b2924;--panel2:#0e332d;--line:#27655a;--green:#29e3b1;--green2:#0bb889;--text:#f5fffc;--muted:#9ccbc0;--warn:#f2b94b;--danger:#ff6b6b}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at 55% 15%,#0e3a33,#051411 60%);color:var(--text);min-height:100vh}.hidden{display:none!important}.btn{border:1px solid var(--line);background:transparent;color:var(--text);padding:10px 14px;border-radius:10px;cursor:pointer;font-weight:700}.btn.primary{background:linear-gradient(135deg,var(--green),var(--green2));color:#03201a;border:0}.btn.ghost:hover{background:#103a33}.btn.danger{background:#6d2529;border-color:#a94a50}.wide{width:100%}.login-shell{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(430px,95vw);padding:32px;background:rgba(8,35,30,.94);border:1px solid var(--line);border-radius:22px;box-shadow:0 30px 90px #0008}.login-logo{display:block;width:230px;height:130px;object-fit:contain;margin:auto}.login-card label{display:grid;gap:7px;margin:15px 0;color:var(--muted)}input,select,textarea{background:#061d19;border:1px solid #2d665c;color:var(--text);padding:10px;border-radius:8px;min-width:0}.app{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:22px 16px;background:#071b18;border-right:1px solid #28584f;display:flex;flex-direction:column}.client-logo-box{height:120px;border:1px dashed #3e746a;border-radius:14px;display:grid;place-items:center;text-align:center;color:var(--muted);margin-bottom:22px}.client-logo-box strong{display:block;color:var(--green)}nav{display:grid;gap:8px}.nav-btn{border:0;background:transparent;color:#b8d9d1;text-align:left;padding:13px 14px;border-radius:10px;font-weight:700;cursor:pointer}.nav-btn.active,.nav-btn:hover{background:#123b34;color:#fff}.sidebar-bottom{margin-top:auto}.sidebar-bottom #currentUserCard{padding:14px;border:1px solid #39766a;border-radius:12px;margin-bottom:10px}.sidebar-bottom strong{display:block}.main{min-width:0;padding:20px 24px 50px}.topbar{height:92px;display:flex;justify-content:center;align-items:center;position:relative}.brand-logo{width:180px;height:90px;object-fit:contain}.topbar #topbarUser{position:absolute;right:0;color:var(--muted);font-size:13px}.view{display:none}.view.active{display:block}.register-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin:5px 0 16px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#09241f}.register-heading h2{margin:0;text-align:center;letter-spacing:1px}.register-date{font-size:20px;font-weight:900;color:var(--green)}.readonly-note{text-align:right;color:var(--muted);font-size:12px}.panel{background:rgba(8,38,32,.86);border:1px solid var(--line);border-radius:16px;overflow:hidden}.table-wrap{overflow:auto;max-height:calc(100vh - 180px)}table{border-collapse:separate;border-spacing:0;width:100%}th,td{border-right:1px solid #28564e;border-bottom:1px solid #28564e;padding:8px;vertical-align:middle;white-space:nowrap}th{position:sticky;top:0;z-index:6;background:#103a33;color:#dffaf3;font-size:12px;text-transform:uppercase}td{background:#092620;font-size:13px}.register-table input,.register-table select,.register-table textarea{width:100%;min-width:90px;padding:7px}.register-table textarea{resize:vertical;min-height:38px}.row-num{width:46px;min-width:46px;text-align:center}.row-add{display:grid;gap:5px;justify-items:center}.plus-btn{width:29px;height:29px;padding:0;border-radius:50%;font-size:20px}.sticky-col{position:sticky;z-index:4;background:#0b2d27}.sticky-plate{left:46px;min-width:120px}.sticky-model{left:166px;min-width:180px}.register-table th.sticky-col{z-index:8;background:#12423a}.status{display:inline-block;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800}.status.pending{background:#674d16;color:#ffe29a}.status.ok{background:#0d5947;color:#8dffda}.status.bad{background:#6a252b;color:#ffc3c7}.status.info{background:#174f66;color:#bceeff}.signature-box{display:grid;gap:5px;min-width:145px}.signature-name{white-space:normal;font-weight:800;color:#9fffe0}.sig-actions{display:flex;gap:4px}.sig-actions button{padding:6px 7px;font-size:11px}.incomplete-row td{animation:pulseWarn 1.5s infinite}@keyframes pulseWarn{0%,100%{box-shadow:inset 0 0 0 1px transparent}50%{box-shadow:inset 0 0 0 1px var(--warn);background:#352d16}}.page-title{margin:10px 0 18px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{padding:20px;border:1px solid var(--line);border-radius:15px;background:#0a2a24}.stat span{color:var(--muted)}.stat strong{display:block;font-size:38px;margin-top:8px}.stat.warn{border-color:#856b31}.panel-head{padding:14px 16px;border-bottom:1px solid var(--line)}.activity-list>div{padding:12px 16px;border-bottom:1px solid #214b44}.search-panel{padding:16px}.search-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr)) auto;gap:10px;align-items:end}.search-grid label{display:grid;gap:6px;color:var(--muted)}.timeline{display:grid;gap:10px;margin-top:14px}.timeline-item{padding:16px;border:1px solid var(--line);border-radius:13px;background:#0a2a24}.calendar-toolbar{display:flex;justify-content:center;align-items:center;gap:20px;margin-bottom:12px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.calendar-day{min-height:105px;border:1px solid var(--line);border-radius:12px;background:#092620;padding:9px;cursor:pointer}.calendar-day:hover,.calendar-day.selected{border-color:var(--green);background:#0e352e}.calendar-day.muted{opacity:.35}.calendar-day strong{font-size:18px}.calendar-badges{display:grid;gap:4px;margin-top:8px;font-size:11px;color:var(--muted)}.day-registers{margin-top:16px}.modal{position:fixed;inset:0;background:#000b;display:grid;place-items:center;padding:15px;z-index:50}.modal-card{width:min(760px,96vw);max-height:92vh;overflow:auto;background:#0b2924;border:1px solid #3a786d;border-radius:18px;padding:18px}.modal-head{display:flex;justify-content:space-between;align-items:center}.icon-btn{border:0;background:transparent;color:#fff;font-size:30px;cursor:pointer}.modal-actions{display:flex;gap:8px;flex-wrap:wrap}.signature-pad{width:100%;height:220px;background:white;border-radius:10px;touch-action:none}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.keypad button{padding:14px;font-size:18px}.checklist-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.checklist-grid label{padding:9px;border:1px solid var(--line);border-radius:9px}.damage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.damage-grid button.active{background:var(--warn);color:#111}.mini-photo{max-width:180px;max-height:130px;border-radius:8px}.muted{color:var(--muted)}
@media(max-width:900px){.app{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:10px}.client-logo-box{display:none}.sidebar nav{display:flex;overflow:auto}.sidebar-bottom{display:flex;gap:8px;align-items:center}.sidebar-bottom #currentUserCard{margin:0;flex:1}.main{padding:10px}.topbar{height:70px}.register-heading{grid-template-columns:1fr;gap:6px;text-align:center}.register-date,.readonly-note{text-align:center}.stats-grid{grid-template-columns:1fr 1fr}.search-grid{grid-template-columns:1fr 1fr}.calendar-grid{gap:3px}.calendar-day{min-height:78px;padding:5px}.sticky-plate{left:46px}.sticky-model{left:166px}.table-wrap{max-height:none}.checklist-grid{grid-template-columns:1fr}}
/* AutoTrace V3 - registro compatto */
.register-table{table-layout:fixed;min-width:1180px}.register-table th,.register-table td{padding:5px 4px}.register-table input,.register-table select{min-width:0;padding:6px 4px;font-size:12px}.register-table th:nth-child(3),.register-table td:nth-child(3){width:92px}.register-table th:nth-child(5),.register-table td:nth-child(5){width:62px}.register-table th:nth-child(6),.register-table td:nth-child(6){width:104px}.register-table th:nth-child(7),.register-table td:nth-child(7){width:66px}.register-table th:nth-child(8),.register-table td:nth-child(8){width:58px}.register-table th:nth-last-child(3),.register-table td:nth-last-child(3){width:65px}.fuel-cell{display:grid;grid-template-columns:44px 1fr;gap:3px}.touch-plus{width:30px;height:30px;border:1px solid var(--line);background:#0d3b33;color:var(--green);border-radius:7px;font-size:20px;cursor:pointer}.signature-id-input{width:72px!important;min-width:72px!important;text-align:center}.input-error{border-color:var(--danger)!important}.damage-compact{display:grid;grid-template-columns:250px 1fr;gap:14px;align-items:start}.car-map{border:1px solid var(--line);border-radius:12px;padding:10px;background:#071f1b}.car-shape{height:285px;position:relative}.car-body{position:absolute;inset:25px 66px;border:3px solid var(--green);border-radius:55px 55px 42px 42px;opacity:.7}.zone-pin{position:absolute;z-index:2;width:27px;height:27px;border-radius:50%;border:1px solid #b9fff0;background:#103b34;color:#fff;font-weight:800;cursor:pointer}.zone-pin.active{background:var(--warn);color:#111}.zone-pin:nth-child(1){top:5px;left:111px}.zone-pin:nth-child(2){top:45px;left:111px}.zone-pin:nth-child(3){top:60px;left:45px}.zone-pin:nth-child(4){top:105px;left:35px}.zone-pin:nth-child(5){top:160px;left:35px}.zone-pin:nth-child(6){top:210px;left:45px}.zone-pin:nth-child(7){bottom:0;left:111px}.zone-pin:nth-child(8){bottom:35px;left:111px}.zone-pin:nth-child(9){top:210px;right:45px}.zone-pin:nth-child(10){top:160px;right:35px}.zone-pin:nth-child(11){top:105px;right:35px}.zone-pin:nth-child(12){top:60px;right:45px}.zone-pin:nth-child(13){top:125px;left:111px}.zone-pin:nth-child(14){top:75px;left:111px}.zone-pin:nth-child(15){top:195px;left:111px}.damage-row{display:grid;grid-template-columns:155px 145px 1fr 28px;gap:6px;align-items:center;margin-bottom:7px}.damage-row input,.damage-row select{padding:7px}.icon-btn.small{font-size:20px}.damage-legend{font-size:11px;color:var(--muted)}
@media(min-width:1200px){.register-table{min-width:100%;font-size:11px}.table-wrap{overflow-x:hidden}.sticky-col{position:static}.register-table th.sticky-col{position:sticky;top:0}}
@media(max-width:700px){.damage-compact{grid-template-columns:1fr}.damage-row{grid-template-columns:1fr 1fr}.damage-row input{grid-column:1/-1}}


/* v5 overrides */
.register-table{table-layout:fixed;min-width:1320px}
.register-table th,.register-table td{padding:5px 4px}
.register-table input,.register-table select{min-width:0;padding:6px 4px;font-size:12px}
.register-table th:nth-child(3),.register-table td:nth-child(3){width:92px}
.register-table th:nth-child(5),.register-table td:nth-child(5){width:62px}
.register-table th:nth-child(6),.register-table td:nth-child(6){width:88px}
.register-table th:nth-child(7),.register-table td:nth-child(7){width:72px}
.register-table th:nth-child(8),.register-table td:nth-child(8){width:82px}
.register-table th:nth-child(9),.register-table td:nth-child(9){width:64px}
.signature-id-input{width:68px!important;min-width:68px!important;text-align:center}
.field-compact{width:100%}
.damage-compact{display:grid;grid-template-columns:minmax(320px,360px) 1fr;gap:14px;align-items:start}
.car-map{border:1px solid var(--line);border-radius:12px;padding:10px;background:#071f1b}
.car-image-wrap{position:relative;display:inline-block;width:100%}
.car-image-wrap img{display:block;width:100%;height:auto;border-radius:8px;background:#fff}
.zone-pin{position:absolute;z-index:2;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;border:1px solid #b9fff0;background:#103b34;color:#fff;font-weight:800;cursor:pointer;font-size:12px;line-height:24px;text-align:center}
.zone-pin.active{background:var(--warn);color:#111}
.damage-editor{display:grid;gap:10px}
.damage-shortcut{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}
.damage-shortcut label{display:grid;gap:6px;color:var(--muted)}
.damage-row{display:grid;grid-template-columns:minmax(120px,165px) 1fr 28px;gap:6px;align-items:center;margin-bottom:7px}
.damage-legend{font-size:11px;color:var(--muted);line-height:1.6;border:1px dashed #295d53;padding:8px;border-radius:10px}
.cancel-modal{display:grid;gap:16px;padding-top:8px}
.cancel-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.cancel-grid label{display:grid;gap:6px;color:var(--muted);font-weight:700}
.cancel-actions{display:flex;justify-content:flex-end}
#cancelNote{width:100%}
.modal-card{width:min(860px,96vw)}
@media(max-width:860px){.damage-compact{grid-template-columns:1fr}.cancel-grid{grid-template-columns:1fr}.modal-card{width:min(96vw,96vw)}}

/* v6 cancelled rows and damage history */
.cancelled-row td{background:#26181a!important;color:#d9b9bc;position:relative}
.cancelled-row td:not(:last-child)::after{content:"";position:absolute;left:4px;right:4px;top:50%;height:1px;background:rgba(255,105,115,.65);pointer-events:none}
.cancelled-row .status,.cancelled-row button{position:relative;z-index:2}
.cancelled-row .status.bad{background:#8a2530;color:#fff}
.damage-confirm{display:grid;gap:14px}
.damage-existing{padding:12px;border:1px solid var(--line);border-radius:10px;background:#071f1b;color:#9fffe0;font-weight:800}
.cancel-detail{display:grid;gap:8px}


/* v7 fixes */
.register-table th,.register-table td{overflow:hidden;vertical-align:middle}
.register-table .btn.ghost,.register-table .btn.danger,.register-table .btn.primary{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline:10px}
.register-table td:nth-child(8), .register-table th:nth-child(8){width:86px}
.register-table td:nth-child(9), .register-table th:nth-child(9){width:66px}
.register-table td:nth-last-child(2), .register-table th:nth-last-child(2){width:86px}
.register-table td:last-child, .register-table th:last-child{width:86px}
.cancelled-row td{background:#26181a!important;color:#f2d7da}
.cancelled-row td::after{display:none!important}
.cancelled-row .field-value,.cancelled-row .btn,.cancelled-row .status{position:relative;z-index:2}
.cancelled-row .field-value{text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:rgba(255,120,130,.7)}
.cancelled-row .status.bad,.cancelled-row td:last-child .btn{ text-decoration:none }
.field-value{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zone-pin{width:18px;height:18px;transform:translate(-50%,-50%);background:transparent!important;border:none!important;color:transparent!important;box-shadow:none!important;padding:0}
.zone-pin:hover{outline:1px dashed rgba(0,0,0,.45);outline-offset:1px}
.zone-pin.active{outline:2px solid #0b5f53!important;border-radius:50%;background:rgba(11,95,83,.08)!important}
.car-image-wrap img{filter:contrast(1.05)}
.damage-row{grid-template-columns:minmax(120px,150px) 1fr 28px}


/* v8 urgent fixes */
.zone-pin{
  width:24px!important;
  height:24px!important;
  background:rgba(255,255,255,.01)!important;
  border:0!important;
  color:transparent!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  z-index:20!important;
  border-radius:50%!important;
}
.zone-pin:hover{outline:1px solid rgba(11,95,83,.55)!important;outline-offset:-2px!important}
.zone-pin.active{outline:2px solid #0b5f53!important;background:rgba(11,95,83,.12)!important}

/* keep all columns inside the table */
.register-table{min-width:1360px!important}
.register-table th:last-child,.register-table td:last-child{width:78px!important;min-width:78px!important;max-width:78px!important;overflow:hidden!important}
.register-table th:nth-last-child(2),.register-table td:nth-last-child(2){width:92px!important;min-width:92px!important}
.register-table td:last-child .btn{width:100%!important;max-width:100%!important;padding:6px 5px!important;font-size:11px!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* multi-digit fields */
.register-table input[data-field="km"]{min-width:54px!important;width:100%!important}
.register-table input[data-field="ev"]{min-width:44px!important;width:100%!important}


/* v9 definitive compact register */
.app{grid-template-columns:220px minmax(0,1fr)}
.sidebar{padding:16px 10px}
.client-logo-box{height:96px;margin-bottom:14px}
.main{padding:14px 12px 36px}
.topbar{height:74px}.brand-logo{height:70px;width:150px}
.register-heading{margin-bottom:10px;padding:9px 12px}.register-date{font-size:17px}.register-heading h2{font-size:18px}
.table-wrap{overflow-x:hidden!important;width:100%}
.register-table{width:100%!important;min-width:0!important;table-layout:fixed!important;font-size:10.5px}
.register-table th,.register-table td{padding:4px 3px!important;overflow:hidden!important;text-overflow:ellipsis;white-space:nowrap;height:48px}
.register-table th{font-size:9.5px;line-height:1.1;white-space:normal}
.register-table input,.register-table select{width:100%!important;min-width:0!important;padding:5px 3px!important;font-size:11px!important}
.register-table .c-num{width:42px}.register-table .c-ra{width:68px}.register-table .c-plate{width:78px}.register-table .c-model{width:125px}.register-table .c-km{width:56px}.register-table .c-carb{width:72px}.register-table .c-ev{width:48px}.register-table .c-damage{width:76px}.register-table .c-check{width:78px}.register-table .c-notes{width:66px}.register-table .c-sign{width:96px}.register-table .c-status{width:92px}.register-table .c-actions{width:66px}
.signature-id-input{width:100%!important;min-width:0!important;text-align:center;font-size:10.5px!important}
.signature-name{font-size:10px;line-height:1.1}.signature-box{min-width:0!important;gap:2px}.signature-box small{font-size:9px}
.cell-btn{display:block;width:100%!important;max-width:100%!important;padding:5px 3px!important;font-size:10px!important;overflow:hidden;text-overflow:ellipsis}
.status{padding:4px 5px;font-size:9px;white-space:normal;line-height:1.1;text-align:center}
.plus-btn{width:23px;height:23px;font-size:16px}
.cancelled-row td{height:48px!important;background:#26181a!important;color:#f2d7da!important}.cancelled-row td::after{display:none!important}.cancelled-row .field-value{text-decoration:line-through;text-decoration-thickness:1px}.cancelled-row .status,.cancelled-row .cell-btn{text-decoration:none!important}
.damage-compact{grid-template-columns:minmax(310px,350px) minmax(300px,1fr)!important}
.damage-shortcut{grid-template-columns:minmax(150px,220px) auto!important;justify-content:start}
.damage-suggestions{display:flex;flex-wrap:wrap;gap:5px}.damage-suggestion{border:1px solid var(--line);background:#0b302a;color:#fff;border-radius:8px;padding:5px 7px;cursor:pointer;font-weight:800}.damage-suggestion small{font-weight:400;color:var(--muted)}
.damage-list-head,.damage-row{display:grid;grid-template-columns:minmax(170px,1fr) minmax(145px,190px) 28px;gap:6px;align-items:center}.damage-list-head{font-size:10px;color:var(--muted);text-transform:uppercase;margin-top:4px}.damage-row{padding:5px 0;border-bottom:1px solid #204b43}
.zone-pin{width:25px!important;height:25px!important;position:absolute!important;z-index:30!important;transform:translate(-50%,-50%)!important;background:rgba(25,230,177,.03)!important;border:0!important;color:transparent!important;cursor:pointer!important;pointer-events:auto!important;border-radius:50%!important}
.zone-pin:hover{outline:2px solid rgba(11,95,83,.65)!important}.zone-pin.active{outline:2px solid #0b5f53!important;background:rgba(11,95,83,.14)!important}
@media(max-width:1100px){.app{grid-template-columns:190px minmax(0,1fr)}.main{padding-inline:6px}.register-table th,.register-table td{font-size:9.5px}.register-table .c-model{width:110px}.register-table .c-sign{width:88px}}
@media(max-width:850px){.app{grid-template-columns:1fr}.sidebar{position:static;height:auto}.table-wrap{overflow-x:auto!important}.register-table{min-width:1080px!important}.damage-compact{grid-template-columns:1fr!important}}
.topbar-user{display:flex;align-items:center;gap:14px}.topbar-user #syncStatus{font-size:12px;color:#64748b}

/* v11 server update: compact register, stable inputs and signature order */
.app{grid-template-columns:198px minmax(0,1fr)}
.sidebar{padding-left:8px;padding-right:8px}
.main{padding-left:8px;padding-right:8px}
.register-table th,.register-table td{height:53px!important}
.register-table input,.register-table select{height:34px!important;padding:7px 4px!important}
.register-table .c-ra{width:58px!important}
.register-table .c-plate{width:82px!important}
.register-table .c-model{width:122px!important}
.register-table .c-km{width:57px!important}
.register-table .c-carb{width:70px!important}
.register-table .c-ev{width:53px!important}
.register-table .c-damage{width:76px!important}
.register-table .c-notes{width:62px!important}
.register-table .c-sign{width:78px!important}
.register-table .c-status{width:92px!important}
.register-table .c-actions{width:62px!important}
.signature-id-input{height:34px!important;font-size:10px!important;padding-inline:2px!important}
.signature-box{white-space:normal!important;text-align:center}
.signature-name{font-size:9.5px!important;overflow-wrap:anywhere}
.ev-input-wrap{position:relative;width:100%;height:34px}
.ev-input-wrap input{padding-right:16px!important;height:34px!important}
.ev-input-wrap span{position:absolute;right:5px;top:50%;transform:translateY(-50%);font-size:11px;font-weight:800;color:var(--muted);pointer-events:none}

/* clickable pulsing rings over the numbers already printed on the vehicle image */
.zone-pin{width:21px!important;height:21px!important;background:rgba(25,230,177,.04)!important;border:1.5px solid rgba(18,190,151,.72)!important;outline:none!important;box-shadow:0 0 0 0 rgba(18,190,151,.58)!important;animation:damagePinPulse 1.55s ease-out infinite;color:transparent!important}
.zone-pin span{display:none!important}
.zone-pin:hover{border-color:#0b5f53!important;background:rgba(18,190,151,.14)!important;animation:none;box-shadow:0 0 0 3px rgba(18,190,151,.18)!important}
.zone-pin.active{border:2px solid #0b5f53!important;background:rgba(18,190,151,.22)!important;animation:none;box-shadow:0 0 0 3px rgba(11,95,83,.22)!important}
@keyframes damagePinPulse{0%{box-shadow:0 0 0 0 rgba(18,190,151,.55)}70%{box-shadow:0 0 0 6px rgba(18,190,151,0)}100%{box-shadow:0 0 0 0 rgba(18,190,151,0)}}
@media(max-width:1100px){.app{grid-template-columns:180px minmax(0,1fr)}.register-table .c-ra{width:54px!important}.register-table .c-sign{width:72px!important}.register-table .c-model{width:108px!important}}

/* AutoTrace V12 — leggibilità, campi compatti e gestione personale */
@media(min-width:851px){
  .app{grid-template-columns:205px minmax(0,1fr)!important}
  .sidebar{padding:18px 12px!important}
  .main{padding:14px 12px 42px!important}
}
.topbar{height:104px!important}
.brand-logo{width:190px!important;height:100px!important;object-fit:contain!important}
.topbar-user{position:absolute;right:4px;top:50%;transform:translateY(-50%)}

.register-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.register-table th,.register-table td{height:58px!important;padding:5px 4px!important;font-size:12.5px!important}
.register-table th{height:52px!important;font-size:11.5px!important;line-height:1.18!important;letter-spacing:.15px!important;white-space:normal!important}
.register-table input,.register-table select{height:38px!important;padding:8px 6px!important;font-size:13px!important;border-radius:9px!important}
.register-table .field-value{font-size:13px!important}
.register-table .c-num{width:42px!important}
.register-table .c-ra{width:78px!important}
.register-table .c-plate{width:82px!important}
.register-table .c-model{width:116px!important}
.register-table .c-km{width:58px!important}
.register-table .c-carb{width:57px!important}
.register-table .c-ev{width:56px!important}
.register-table .c-damage{width:82px!important}
.register-table .c-check{width:78px!important}
.register-table .c-notes{width:66px!important}
.register-table .c-sign{width:114px!important}
.register-table .c-status{width:94px!important}
.register-table .c-actions{width:68px!important}
.register-table input[data-field="ra"]{letter-spacing:.1px!important}
.register-table select[data-field="carb"]{padding-left:4px!important;padding-right:2px!important;font-size:12.5px!important}
.signature-id-input{width:100%!important;min-width:0!important;max-width:100%!important;height:38px!important;font-size:13px!important;text-align:center!important}
.signature-box{width:100%!important;min-width:0!important;gap:2px!important;text-align:center!important;align-items:center!important}
.signature-name{color:#fff!important;font-size:12.5px!important;line-height:1.15!important;font-weight:900!important;white-space:normal!important;overflow-wrap:anywhere!important;text-shadow:0 1px 2px #000!important}
.signature-box small{font-size:10px!important;color:#d7ebe6!important}
.ev-input-wrap{height:38px!important;border-radius:9px!important}
.ev-input-wrap input{height:36px!important}
.cell-btn{font-size:12px!important}

/* Mappa danni: ogni pallino copre il numero originale e mostra lo stesso numero */
.modal-card{width:min(980px,97vw)!important}
.damage-compact{grid-template-columns:minmax(430px,1.08fr) minmax(340px,.92fr)!important;gap:18px!important}
.car-map{padding:10px!important}
.car-image-wrap{position:relative!important;width:100%!important;line-height:0!important}
.car-image-wrap img{display:block!important;width:100%!important;height:auto!important;border-radius:8px!important}
.zone-pin{position:absolute!important;z-index:30!important;transform:translate(-50%,-50%)!important;width:25px!important;height:25px!important;padding:0!important;border-radius:50%!important;border:2px solid #9bffe5!important;background:#0b332d!important;color:#fff!important;font-size:11px!important;font-weight:900!important;line-height:21px!important;text-align:center!important;cursor:pointer!important;box-shadow:0 0 0 2px rgba(4,23,20,.72),0 0 0 0 rgba(41,227,177,.45)!important;animation:damagePinGlow 1.65s ease-in-out infinite!important}
.zone-pin span{display:block!important;color:#fff!important;line-height:21px!important}
.zone-pin:hover{background:#126b59!important;border-color:#fff!important;animation:none!important;box-shadow:0 0 0 3px rgba(41,227,177,.28)!important}
.zone-pin.active{background:#f2b94b!important;border-color:#fff7d8!important;color:#16120a!important;animation:none!important;box-shadow:0 0 0 3px rgba(242,185,75,.32)!important}
.zone-pin.active span{color:#16120a!important}
@keyframes damagePinGlow{0%,100%{box-shadow:0 0 0 2px rgba(4,23,20,.72),0 0 0 0 rgba(41,227,177,.38)}50%{box-shadow:0 0 0 2px rgba(4,23,20,.72),0 0 0 5px rgba(41,227,177,.12)}}
.damage-editor input,.damage-editor select{font-size:13px!important}
.damage-list-head,.damage-row{font-size:12px!important}

/* Personale e ID */
.users-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important}
.users-title h2{margin-bottom:4px!important}
.users-title p{margin:0!important}
.users-table th,.users-table td{font-size:13px!important}
.user-actions{display:flex;gap:6px;flex-wrap:wrap}
.user-actions .btn{padding:7px 9px;font-size:11px}
.user-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.user-form label{display:grid;gap:6px;color:var(--muted);font-weight:700}
.user-form .wide{grid-column:1/-1;margin-top:4px}
.user-form input,.user-form select{height:42px;font-size:14px}

.login-card input{font-size:15px;height:44px}
@media(max-width:1100px) and (min-width:851px){
  .app{grid-template-columns:195px minmax(0,1fr)!important}
  .register-table th,.register-table td{font-size:11.5px!important;padding-inline:3px!important}
  .register-table th{font-size:10.5px!important}
  .register-table .c-ra{width:72px!important}.register-table .c-model{width:106px!important}.register-table .c-sign{width:105px!important}.register-table .c-status{width:88px!important}
}
@media(max-width:850px){
  .damage-compact{grid-template-columns:1fr!important}
  .user-form{grid-template-columns:1fr!important}
  .user-form .wide{grid-column:auto}
}

/* AutoTrace V13 */
.login-logo{width:260px;height:190px;object-fit:contain;object-position:center;margin:-16px auto 4px;display:block}
.brand-logo{width:150px;height:92px;object-fit:contain;object-position:center;overflow:visible}
.topbar{min-height:104px;overflow:visible}
.signature-id-input{type:password}
.register-table th:nth-child(10),.register-table th:nth-child(11),.register-table td.c-sign{width:160px;min-width:160px;max-width:160px}
.register-table th{font-size:13px;line-height:1.15}.register-table input,.register-table select{font-size:14px;min-height:42px}.signature-name{color:#fff!important;font-size:15px!important;font-weight:800;line-height:1.15}.signature-box small{color:#d7eef0;font-size:11px;display:block;margin-top:3px}
.status{min-width:112px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;text-align:center;padding:5px 9px;line-height:1.05;border-radius:18px;box-sizing:border-box}
.status.ok{background:#1769aa!important;color:white!important}.status.info{background:#f59e0b!important;color:#251400!important}.status.pending{background:#f59e0b!important;color:#251400!important}.status.bad{background:#a92f4a!important;color:white!important}
.carryover-plate{animation:plateBlink 1.1s ease-in-out infinite;font-weight:900;color:#fff;border-radius:7px;padding:4px 7px;background:#7f1d1d}
@keyframes plateBlink{0%,100%{opacity:1;box-shadow:0 0 0 rgba(255,82,82,0)}50%{opacity:.35;box-shadow:0 0 14px rgba(255,82,82,.9)}}
.calendar-day{cursor:pointer;transition:.15s}.calendar-day:hover{transform:translateY(-2px);border-color:#50e3c2;background:rgba(26,132,120,.18)}
.day-tabs{display:flex;gap:8px;margin:12px 0}.day-tabs button.active{background:#25cba5;color:#041b18}.day-table{width:100%;border-collapse:collapse}.day-table th,.day-table td{border:1px solid rgba(91,218,204,.25);padding:8px;text-align:left}.day-table th{color:#c8fff3}
.summary-controls{padding:16px}.report-settings label{display:block}.report-settings input{width:100%;box-sizing:border-box;margin-top:7px;padding:12px;border-radius:10px}
#summaryDetails .panel{padding:16px;margin-top:14px}.summary-total{font-size:30px}.page-title.users-title{position:sticky;top:0;z-index:3;background:linear-gradient(180deg,#091919 75%,transparent);padding-bottom:12px}.users-title #createUserBtn{display:inline-flex!important;visibility:visible!important;opacity:1!important;position:relative;z-index:5}
.damage-map .zone-pin{width:25px!important;height:25px!important;border-radius:50%!important;background:#0b2730!important;color:white!important;border:2px solid #4df5d1!important;font-size:11px!important;font-weight:900!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 0 8px rgba(77,245,209,.7)!important;animation:damagePulse 1.5s ease-in-out infinite!important;transform:translate(-50%,-50%)!important}
.damage-map .zone-pin.active{background:#ffd43b!important;color:#151515!important;border-color:#fff!important;animation:none!important;box-shadow:0 0 16px rgba(255,212,59,.95)!important}
@keyframes damagePulse{0%,100%{box-shadow:0 0 4px rgba(77,245,209,.45)}50%{box-shadow:0 0 13px rgba(77,245,209,1)}}
/* final V13 pin override */
.zone-pin{width:25px!important;height:25px!important;border-radius:50%!important;background:#0b2730!important;color:white!important;border:2px solid #4df5d1!important;font-size:11px!important;font-weight:900!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 0 8px rgba(77,245,209,.7)!important;animation:damagePulse 1.5s ease-in-out infinite!important;transform:translate(-50%,-50%)!important;outline:none!important;padding:0!important}
.zone-pin span{display:block!important;color:white!important;line-height:1!important}
.zone-pin.active{background:#ffd43b!important;color:#151515!important;border-color:#fff!important;animation:none!important;box-shadow:0 0 16px rgba(255,212,59,.95)!important}
.zone-pin.active span{color:#151515!important}

/* ================= AutoTrace V14 final styles ================= */
.login-logo{width:310px!important;height:230px!important;object-fit:contain!important;object-position:center!important;margin:-28px auto -8px!important}
.brand-logo{width:170px!important;height:106px!important;object-fit:contain!important;object-position:center!important}
.topbar{min-height:112px!important}

.calendar-grid{gap:8px!important}.calendar-day{min-height:112px!important;padding:13px!important;background:rgba(6,30,29,.82)!important;border:1px solid rgba(85,231,208,.48)!important;color:#effffb!important}.calendar-day strong{font-size:20px!important;color:#fff!important}.calendar-badges{font-size:13px!important;line-height:1.5!important;color:#d9fff6!important}.calendar-day.muted{opacity:.38!important}
.historical-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;margin-bottom:14px}.historical-header h2{margin:0;color:#fff}.historical-header strong{color:#54e5bd}.historical-header .day-tabs{margin:0}.historical-panel{padding:0!important}.historical-register{table-layout:auto!important;min-width:1180px!important}.historical-register th,.historical-register td{font-size:12px!important;padding:9px 7px!important;vertical-align:middle!important}.historical-value,.historical-damage{display:block;color:#fff;font-weight:700;white-space:normal}.readonly-signature .signature-name{font-size:14px!important}.empty-history,.empty-search{padding:22px!important;color:#c8e9e2!important}

.archive-search-grid{grid-template-columns:1.1fr 1fr .8fr 1fr 1fr auto auto!important;align-items:end!important}.archive-search-grid label{min-width:0}.archive-search-grid small{font-weight:400;color:#90aaa5}

.users-title{position:static!important;display:block!important}.create-user-main{display:inline-flex!important;margin-top:14px!important;min-width:260px!important;justify-content:center!important;font-size:14px!important;padding:11px 16px!important;visibility:visible!important;opacity:1!important}.users-table{min-width:1000px!important}

@media(max-width:1100px){.historical-header{grid-template-columns:1fr}.archive-search-grid{grid-template-columns:1fr 1fr!important}.login-logo{width:270px!important;height:205px!important}}

/* ================= AutoTrace V15 ================= */
.register-table .c-ra{width:62px!important}
.register-table .c-status{width:126px!important}
.register-table .status{width:100%!important;min-width:0!important;max-width:100%!important;padding-inline:6px!important}
.carryover-row td{background:rgba(93,28,38,.18)!important}
.carryover-row .c-plate .field-value,.carryover-row .c-plate input{animation:plateBlink 1.1s ease-in-out infinite!important;background:#8b1f2f!important;color:#fff!important;border-radius:7px!important;font-weight:900!important}
.register-table input.input-error{border-color:#ff607d!important;box-shadow:0 0 0 2px rgba(255,96,125,.22)!important;background:rgba(112,20,42,.35)!important}
@media(max-width:1100px) and (min-width:851px){.register-table .c-ra{width:58px!important}.register-table .c-status{width:118px!important}}

/* ================= AutoTrace V16 ================= */
/* Menu e pagina Crea ID */
.users-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important}
#createUserBtn{display:inline-flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:5!important;margin-top:14px!important}
.user-create-toolbar{display:flex;justify-content:flex-end;margin:0 0 14px}
.user-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.user-form label{display:grid;gap:6px}.user-form .wide{grid-column:1/-1}

/* Calendario: solo mese corrente, compatto e senza scroll */
#view-calendar{min-height:0}
.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-auto-rows:minmax(72px,1fr)!important;gap:6px!important;max-height:calc(100vh - 220px)!important;overflow:hidden!important}
.calendar-weekday{display:flex;align-items:center;justify-content:center;height:28px;font-size:12px;font-weight:900;color:#aee9dc;text-transform:uppercase}
.calendar-empty{border:0;background:transparent;min-height:72px}
.calendar-day{min-height:72px!important;padding:7px!important;border-radius:9px!important;overflow:hidden;text-align:left}
.calendar-day strong{font-size:16px!important}.calendar-badges{font-size:10px!important;line-height:1.25!important;gap:2px!important}
#dayRegisters.full-register-view{margin-top:0!important}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.history-tabs{display:flex;gap:8px}.history-tabs .active{background:linear-gradient(135deg,var(--green),var(--green2));color:#03201a;border-color:transparent}
.history-register .table-wrap{max-height:calc(100vh - 235px)!important;overflow:auto}
.history-register td{background:#092620!important}
.history-register .signature-box{min-width:0!important}
.history-register .field-value{display:block;white-space:normal;overflow-wrap:anywhere}

/* Checklist compatta e senza scroll interno */
.modal-card.checklist-modal-card{width:min(660px,96vw)!important;max-height:none!important;overflow:visible!important;padding:14px!important}
.checklist-compact{display:grid;gap:10px}.checklist-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.checklist-choice button{min-height:44px}.checklist-online-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.checklist-online-grid label{padding:7px;border:1px solid var(--line);border-radius:8px;font-size:12px;white-space:normal}
.checklist-preview-card{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:8px;background:#08231f;cursor:pointer}
.checklist-thumb{width:72px;height:52px;object-fit:cover;border-radius:7px;border:1px solid #4b8b7f}
.checklist-online-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:10px;background:#12483f;font-size:25px}
.checklist-save-row{display:flex;justify-content:flex-end;position:sticky;bottom:0;background:#0b2924;padding-top:6px}
.checklist-save-row .btn{min-width:180px}

/* Colonna RA più stretta, stato più largo */
.register-table .c-ra{width:52px!important;max-width:52px!important}.register-table .c-ra input{min-width:42px!important}
.register-table .c-status{width:138px!important;min-width:138px!important}.register-table .status{white-space:normal;text-align:center;min-width:112px}

@media(max-width:900px){
 .calendar-grid{max-height:none!important;grid-auto-rows:minmax(62px,auto)!important}.calendar-day{min-height:62px!important}.calendar-badges{font-size:9px!important}
 .checklist-online-grid{grid-template-columns:repeat(2,1fr)}.checklist-choice{grid-template-columns:1fr}.user-form{grid-template-columns:1fr}
}

/* ================= AutoTrace V17 ================= */
.c-wash{width:68px;min-width:68px}.wash-select{min-width:58px!important;padding-left:6px!important;padding-right:4px!important}
.checklist-cell-preview{display:flex;align-items:center;justify-content:center;width:100%;height:46px;padding:2px;border:1px solid rgba(93,255,210,.45);border-radius:10px;background:rgba(3,22,25,.35);cursor:pointer;overflow:hidden}.checklist-cell-preview img{width:100%;height:100%;object-fit:cover;border-radius:7px}.checklist-cell-online{font-size:11px;line-height:1.05;text-align:center;font-weight:800;color:#dffef5}
.archive-register-card{margin:0 0 18px;padding:14px}.archive-register-card .archive-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.archive-register-card .table-wrap{overflow-x:auto}.archive-register-card table{min-width:1050px}
.report-section-title{margin:22px 0 10px}.today-stats,.range-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.supplier-list{margin-top:14px}.supplier-car-row{display:grid;grid-template-columns:140px 1fr 180px 180px;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid rgba(93,255,210,.22)}.supplier-total{font-size:38px;font-weight:900}
.plus-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;padding:0!important}
@media(max-width:900px){.today-stats,.range-stats{grid-template-columns:repeat(2,1fr)}.supplier-car-row{grid-template-columns:1fr 1fr}.archive-register-card table{min-width:900px}}

/* V18 dettaglio movimentazione leggibile */
.movement-detail{display:grid;gap:10px;max-height:72vh;overflow:auto;padding-right:4px}.movement-detail-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid rgba(90,255,220,.28);border-radius:14px;background:rgba(4,26,28,.55)}.movement-detail-title h3{margin:0;font-size:20px;color:#fff}.movement-detail-title span{font-weight:800;color:#5dffd4;font-size:12px;letter-spacing:.08em}.movement-detail-row{display:grid;grid-template-columns:minmax(150px,34%) 1fr;gap:14px;align-items:center;padding:10px 12px;border-bottom:1px solid rgba(100,255,225,.14)}.movement-detail-row>span{color:#82d9d0;font-weight:700}.movement-detail-row>strong{color:#fff;font-weight:700;overflow-wrap:anywhere}.movement-photo{display:flex;align-items:center;gap:10px;border:1px solid rgba(100,255,225,.35);background:rgba(0,0,0,.2);color:#fff;border-radius:10px;padding:6px 10px;cursor:pointer}.movement-photo img{width:58px;height:46px;object-fit:cover;border-radius:7px}.detail-online{display:inline-flex;flex-direction:column;gap:3px;color:#65ffd5}.detail-online small{color:#cce8e4;font-weight:500}@media(max-width:700px){.movement-detail-row{grid-template-columns:1fr;gap:5px}.movement-detail{max-height:68vh}}

/* ================= AutoTrace V19 ================= */
/* Check-out più compatto e firme equilibrate */
#view-checkout .register-table .c-km{width:52px!important;min-width:52px!important;max-width:52px!important}
#view-checkout .register-table .c-notes{width:58px!important;min-width:58px!important;max-width:58px!important}
#view-checkout .register-table .c-sign{width:118px!important;min-width:118px!important;max-width:118px!important}

/* Report leggibile e orizzontale */
#summaryCards.stats-grid{display:block!important}
.report-block{margin:18px 0 22px}.report-block>h3{margin:0 0 12px;font-size:20px;color:#fff}
.report-cards{display:grid;gap:14px}
.report-cards-today{grid-template-columns:repeat(4,minmax(180px,1fr))}
.report-cards-range{grid-template-columns:repeat(5,minmax(150px,1fr))}
.report-card{min-height:112px;padding:18px;border:1px solid rgba(93,255,210,.34);border-radius:16px;background:linear-gradient(180deg,rgba(15,57,59,.72),rgba(7,31,34,.74));display:flex;flex-direction:column;justify-content:space-between;gap:12px}
.report-card span{font-size:15px;line-height:1.25;font-weight:800;color:#eafff8;max-width:180px}.report-card strong{font-size:40px;line-height:1;color:#fff}.report-card.warn{border-color:rgba(255,183,79,.55);background:linear-gradient(180deg,rgba(85,52,15,.62),rgba(42,29,10,.68))}
.supplier-report-panel{padding:18px}.supplier-report-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:14px}.supplier-report-head h3{margin:0 0 4px}.supplier-search{display:flex;gap:8px;align-items:center}.supplier-search input{min-width:220px;padding:11px 12px;border-radius:10px;border:1px solid rgba(93,255,210,.4);background:rgba(4,24,26,.72);color:#fff}
.supplier-table-head,.supplier-car-row{display:grid;grid-template-columns:150px 1fr 190px 180px;gap:12px;align-items:center}.supplier-table-head{padding:9px 14px;color:#72e6d5;font-weight:800;border-bottom:1px solid rgba(93,255,210,.28)}
@media(max-width:1150px){.report-cards-today{grid-template-columns:repeat(2,1fr)}.report-cards-range{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.report-cards-today,.report-cards-range{grid-template-columns:1fr 1fr}.supplier-report-head{align-items:stretch;flex-direction:column}.supplier-search{display:grid;grid-template-columns:1fr auto auto}.supplier-search input{min-width:0}.supplier-table-head{display:none}.supplier-car-row{grid-template-columns:1fr 1fr}.report-card{min-height:96px}.report-card strong{font-size:34px}}

/* ================= AutoTrace V20 ================= */
/* Check-in: più spazio ai danni, RA e carburante più compatti, targa centrata. */
#view-checkin .register-table .c-ra{width:92px!important;min-width:92px!important;max-width:92px!important}
#view-checkin .register-table .c-carb{width:64px!important;min-width:64px!important;max-width:64px!important}
#view-checkin .register-table .c-plate{text-align:center;width:105px!important;min-width:105px!important;max-width:105px!important}
#view-checkin .register-table .c-plate input{text-align:center}
#view-checkin .register-table .c-damage{width:155px!important;min-width:155px!important;max-width:155px!important}
#view-checkin .register-table .c-damage .cell-btn{white-space:normal;line-height:1.15}

/* Check-out: KM e note compatti, firme uguali. */
#view-checkout .register-table .c-km{width:64px!important;min-width:64px!important;max-width:64px!important}
#view-checkout .register-table .c-notes{width:68px!important;min-width:68px!important;max-width:68px!important}
#view-checkout .register-table .c-sign{width:132px!important;min-width:132px!important;max-width:132px!important}
#view-checkout .register-table .c-damage{width:118px!important;min-width:118px!important;max-width:118px!important}
#view-checkout .register-table .c-check{width:88px!important;min-width:88px!important;max-width:88px!important}

.transparent-cell-action{width:100%;min-height:36px;padding:7px 8px;border:1px solid rgba(126,235,213,.42);border-radius:10px;background:rgba(4,25,27,.18);color:#effffb;font:inherit;font-weight:800;cursor:pointer;white-space:normal;overflow:hidden;text-overflow:ellipsis}
.transparent-cell-action:hover{border-color:rgba(126,235,213,.8);background:rgba(30,94,84,.2)}
.transparent-cell-action:disabled{opacity:.55;cursor:not-allowed}

/* Miniatura checklist direttamente nella cella. */
.checklist-cell-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:48px;padding:2px;border:1px solid rgba(93,255,210,.45);border-radius:10px;background:rgba(3,22,25,.25);color:#eafff8;cursor:pointer;overflow:hidden}
.checklist-cell-preview img{width:100%;height:100%;object-fit:cover;border-radius:7px}
.checklist-cell-online span{font-size:17px;color:#74efb6}.checklist-cell-online small{font-size:9px;line-height:1.05;text-align:center}

/* Checklist digitale in stile modulo bianco. */
.modal-card.checklist-modal-card{width:min(720px,96vw)!important;max-height:94vh!important;overflow:auto!important;padding:14px!important}
.checklist-v20{display:grid;gap:10px}.checklist-preview-card{border:1px solid rgba(93,255,210,.45);background:#08231f;color:#fff;border-radius:11px;padding:8px;display:flex;align-items:center;gap:10px;cursor:pointer;text-align:left}.checklist-preview-card span{display:grid;gap:3px}.checklist-preview-card small{color:#b5d4cd}.checklist-preview-card.full{width:100%}
.online-check-paper{background:#fff;color:#17222a;border-radius:12px;padding:14px;box-shadow:0 8px 28px #0005}
.online-check-head{display:grid;grid-template-columns:1fr 2fr;gap:14px;padding-bottom:10px;border-bottom:2px solid #1b6a5e}.online-check-head h3{margin:0;color:#174f46;text-transform:uppercase}.online-check-head small{color:#60736f}.online-check-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.online-check-meta span{border:1px solid #cad8d4;border-radius:6px;padding:6px;font-size:12px}.online-check-meta b{display:block;color:#1b6a5e;font-size:10px;text-transform:uppercase;margin-bottom:2px}
.paper-check-list{display:grid;grid-template-columns:1fr 1fr;gap:0 10px;margin-top:10px}.paper-check-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;min-height:34px;padding:5px 6px;border-bottom:1px solid #d8e1df}.paper-check-row.bad{background:#fff0f0}.paper-check-label{font-size:12px;line-height:1.15}.paper-check-actions{display:flex;gap:4px}.paper-choice{width:31px;height:27px;border:1px solid #aabbb7;border-radius:6px;background:white;cursor:pointer;font-weight:900}.paper-choice.ok{color:#168352}.paper-choice.bad{color:#d9323a}.paper-choice.ok.active{background:#168352;color:white;border-color:#168352}.paper-choice.bad.active{background:#d9323a;color:white;border-color:#d9323a}.paper-result{font-size:11px;font-weight:900}.paper-result.ok{color:#168352}.paper-result.bad{color:#d9323a}
.online-checklist-preview-modal{width:min(760px,96vw)!important}
.detail-online.clickable{border:1px solid rgba(93,255,210,.4);background:rgba(5,34,31,.35);color:#fff;border-radius:9px;padding:8px 10px;display:grid;gap:2px;cursor:pointer}.detail-online.clickable small{color:#a9cdc5}

@media(max-width:760px){.online-check-head{grid-template-columns:1fr}.online-check-meta{grid-template-columns:1fr 1fr}.paper-check-list{grid-template-columns:1fr}.modal-card.checklist-modal-card{width:98vw!important;padding:9px!important}.online-check-paper{padding:10px}.checklist-save-row{position:sticky;bottom:0;z-index:4;padding:8px 0;background:#0b2924}}

/* AutoTrace V21 — multi-operatore */
tr.locked-row{background:rgba(255,166,0,.08)}
.status.lock{background:rgba(255,166,0,.2);border-color:rgba(255,166,0,.55);color:#ffd28a;min-width:130px}
.row-lock-note{font-size:11px;color:#ffd28a;display:block;margin-top:3px}
tr.locked-row input,tr.locked-row select{opacity:.65;cursor:not-allowed}

/* AutoTrace V22 */
#checkinBody .c-num,#checkoutBody .c-num{width:34px;min-width:34px;text-align:center}
#checkinBody .c-ra{width:64px;min-width:64px;max-width:64px}
#checkinBody .c-ra input{min-width:0;text-align:center}
#checkinBody .c-carb,#checkoutBody .c-carb{width:58px;min-width:58px;max-width:58px}
#checkinBody .c-km{width:78px;min-width:78px}
#checkoutBody .c-km{width:72px;min-width:72px;max-width:72px}
#checkoutBody .c-notes{width:92px;min-width:92px;max-width:92px}
#checkinBody .c-damage{min-width:150px}
#checkoutBody .c-damage{min-width:180px}
#checkoutBody .c-sign,#checkinBody .c-sign{width:128px;min-width:128px;max-width:128px}
.transparent-cell-action{background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.12)!important;color:#d9e1e8!important;border-radius:7px;min-height:34px;width:100%;padding:5px 7px;white-space:normal;line-height:1.15}
.transparent-cell-action:disabled{opacity:.45}
.damage-two-source{font-size:11px;text-align:left}
.locked-model{display:flex;align-items:center;min-height:34px;padding:5px 7px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.12);border-radius:7px}
.checkout-damage-sources{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-width:min(820px,90vw)}
.checkout-damage-sources section{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:14px}
.readonly-damage-list{display:grid;gap:7px;margin-top:10px}.readonly-damage-list>div{display:flex;justify-content:space-between;gap:12px;padding:8px;border-radius:8px;background:rgba(255,255,255,.04)}
.supplier-damage-summary{margin-top:10px;padding:10px;border:1px solid rgba(255,255,255,.1);border-radius:8px;min-height:38px}
@media(max-width:800px){.checkout-damage-sources{grid-template-columns:1fr;min-width:0}}

/* ================= AutoTrace V23 ================= */
.v23-toast{position:fixed;right:24px;top:24px;z-index:9999;max-width:min(430px,calc(100vw - 32px));padding:13px 16px;border-radius:11px;background:#102d2a;border:1px solid #e0aa45;color:#fff;font-weight:800;box-shadow:0 12px 38px #0009;opacity:0;transform:translateY(-10px);pointer-events:none;transition:.2s}.v23-toast.show{opacity:1;transform:none}.v23-toast.error{border-color:#e25b63;background:#482126}
#view-checkin .register-heading{min-height:88px;padding:15px 18px;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);position:relative;margin-bottom:12px}
#view-checkin .register-heading h2{font-size:21px}.checkin-header-metrics{grid-column:1/-1;display:flex;justify-content:center;gap:10px;margin-top:8px}.checkin-header-metrics span{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:rgba(24,119,94,.25);border:1px solid rgba(87,236,196,.32);font-size:12px;color:#dffcf4}.checkin-header-metrics span.pending{background:rgba(194,128,31,.18);border-color:rgba(255,184,76,.4);color:#ffe0a1}.checkin-header-metrics b{font-size:15px;color:#fff}
#view-checkin .table-wrap{max-height:calc(100vh - 238px)}
.transparent-cell-action{background:rgba(255,255,255,.035)!important;color:#aebbbf!important;border-color:rgba(255,255,255,.13)!important;font-weight:650!important}
.damage-v23-layout{display:grid;grid-template-columns:minmax(440px,1.05fr) minmax(430px,.95fr);gap:18px;align-items:start}.damage-v23-map{background:#fff;border-radius:13px;padding:10px;overflow:hidden}.damage-v23-map .car-image-wrap{position:relative;width:100%;line-height:0}.damage-v23-map img{display:block!important;width:100%!important;height:auto!important;opacity:1!important;visibility:visible!important;filter:none!important}.damage-v23-pins{position:absolute;inset:0}.damage-v23-layout .zone-pin{position:absolute!important;transform:translate(-50%,-50%)!important;width:25px!important;height:25px!important;border-radius:50%!important;background:#0b3440!important;border:2px solid #51e9d0!important;color:#fff!important;box-shadow:0 0 0 2px rgba(255,255,255,.72)!important;animation:none!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;z-index:20!important}.damage-v23-layout .zone-pin span{display:block!important;color:#fff!important;font-size:11px!important;line-height:1!important}.damage-v23-layout .zone-pin.active{background:#f2b94b!important;border-color:#8a5a00!important;box-shadow:0 0 0 3px rgba(242,185,75,.32)!important}.damage-v23-layout .zone-pin.active span{color:#16120a!important}.damage-v23-tools{display:grid;gap:13px}.damage-v23-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.damage-v23-quick,.damage-v23-guided{border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px;background:rgba(255,255,255,.035)}.damage-v23-columns h3,.damage-v23-list h3{margin:0 0 10px;font-size:15px}.damage-v23-entry{display:grid;grid-template-columns:1fr auto;gap:7px}.damage-v23-entry input{width:100%}.damage-v23-help{font-size:11px;color:#afc2bd;margin:8px 0}.damage-v23-legend{display:grid;grid-template-columns:1fr 1fr;gap:5px;font-size:10px;color:#c5d4d1}.damage-v23-guided{display:grid;align-content:start;gap:9px}.selected-zone-label{min-height:38px;padding:9px;border:1px dashed rgba(93,255,210,.36);border-radius:8px;color:#d9ebe7;font-size:12px}.damage-v23-list{border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:11px;min-height:84px}.damage-v23-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px;border-bottom:1px solid rgba(255,255,255,.08)}.damage-v23-row:last-child{border-bottom:0}.damage-v23-row div{display:grid;gap:3px}.damage-v23-row small{color:#9fb5b0}
@media(max-width:980px){.damage-v23-layout{grid-template-columns:1fr}.damage-v23-columns{grid-template-columns:1fr 1fr}}@media(max-width:650px){.damage-v23-columns{grid-template-columns:1fr}.checkin-header-metrics{flex-wrap:wrap}#view-checkin .register-heading{grid-template-columns:1fr}}

/* ================= AutoTrace V25 ================= */
/* Otto righe visibili, ma il registro contiene e salva tutte le righe della giornata. */
#view-checkin .table-wrap{max-height:516px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable}
#view-checkout .table-wrap{max-height:516px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable}
#view-checkin .register-table thead th,#view-checkout .register-table thead th{position:sticky!important;top:0!important;z-index:12!important}
#view-checkin .panel,#view-checkout .panel{overflow:visible}
.checkin-header-metrics{display:flex;gap:12px;justify-content:center;align-items:center;grid-column:1/-1;margin-top:8px}
.checkin-header-metrics span{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border:1px solid rgba(90,255,220,.45);border-radius:999px;background:rgba(4,22,24,.72);color:#dffaf3;font-size:13px;font-weight:700}
.checkin-header-metrics span.pending{border-color:rgba(255,190,63,.55);color:#ffd977}.checkin-header-metrics b{font-size:17px;color:#fff}
.report-card-checkin strong{display:flex!important;align-items:baseline;gap:7px}.report-card-checkin strong em{font-style:normal;font-size:.65em;color:#ffd977}.report-card-checkin small{display:block;margin-top:7px;color:#a8d4cd;font-weight:700}
@media(max-height:800px){#view-checkin .table-wrap,#view-checkout .table-wrap{max-height:calc(100vh - 250px)!important}}

/* ================= AutoTrace V26 ================= */
.transparent-cell-action,.checklist-cell-preview,.checklist-cell-online{
  background:#071112!important;border:1px solid rgba(210,225,225,.16)!important;color:#9aa7aa!important;
  box-shadow:none!important;font-weight:650!important;
}
.transparent-cell-action:hover,.transparent-cell-action:focus,.checklist-cell-preview:hover,.checklist-cell-preview:focus{border-color:rgba(91,232,201,.55)!important;color:#c7d1d3!important;outline:none}
.checklist-cell-preview img{background:#fff;border-radius:5px}
.paper-choice{background:transparent!important;color:#687276!important;border:1px solid #7a8588!important;box-shadow:none!important}
.paper-choice.ok.active{background:#0d6c4c!important;color:#fff!important;border-color:#0d6c4c!important}
.paper-choice.bad.active{background:#c83645!important;color:#fff!important;border-color:#c83645!important}
.report-card.clickable,.report-card.split{cursor:pointer;transition:transform .15s,border-color .15s}.report-card.clickable:hover,.report-card.split:hover{transform:translateY(-2px);border-color:rgba(95,235,205,.65)}
.report-card.split{display:block}.split-values{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:12px}.split-values button{appearance:none;background:transparent;border:0;color:inherit;text-align:left;padding:0;cursor:pointer}.split-values button+button{border-left:1px solid rgba(255,255,255,.15);padding-left:24px}.split-values small{display:block;color:#b8c7c4;font-weight:800;margin-bottom:6px}.split-values strong{font-size:40px;line-height:1;color:#fff}.split-values button:last-child strong{color:#ffd36a}
.report-day-block{margin-top:18px;padding:0;overflow:hidden}.report-day-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;background:rgba(255,255,255,.035);border-bottom:1px solid rgba(255,255,255,.1)}.report-day-head h3{margin:0;text-transform:capitalize}.report-day-head strong{font-size:15px;color:#61e8c8}.report-table-wrap{max-height:440px;overflow:auto}.report-table-wrap .register-table{min-width:1200px}.report-empty{padding:18px;margin-top:18px}
.v23-toast.ok{border-color:#4ee6ba;background:#123a31}

/* ================= AutoTrace V27 — centratura uniforme dei dati ================= */
#view-checkin .register-table td,
#view-checkout .register-table td,
#view-checkin .register-table th,
#view-checkout .register-table th{
  text-align:center!important;
  vertical-align:middle!important;
}
#view-checkin .register-table input,
#view-checkout .register-table input,
#view-checkin .register-table select,
#view-checkout .register-table select,
#view-checkin .field-value,
#view-checkout .field-value,
#view-checkin .locked-model,
#view-checkout .locked-model,
#view-checkin .transparent-cell-action,
#view-checkout .transparent-cell-action,
#view-checkin .checklist-cell-preview,
#view-checkout .checklist-cell-preview,
#view-checkin .checklist-cell-online,
#view-checkout .checklist-cell-online,
#view-checkin .signature-id-input,
#view-checkout .signature-id-input{
  text-align:center!important;
  justify-content:center!important;
  align-items:center!important;
}
#view-checkin .register-table input::placeholder,
#view-checkout .register-table input::placeholder{
  text-align:center!important;
}
#view-checkin .signature-box,
#view-checkout .signature-box{
  width:100%;text-align:center!important;display:flex;flex-direction:column;align-items:center;justify-content:center;
}

/* ================= AutoTrace V28 — check-out libero e report selezionato ================= */
/* Colonne check-out più equilibrate. */
#view-checkout .register-table .c-km{width:62px!important;min-width:62px!important;max-width:62px!important}
#view-checkout .register-table .c-notes{width:72px!important;min-width:72px!important;max-width:72px!important}
#view-checkout .register-table .c-sign{width:126px!important;min-width:126px!important;max-width:126px!important}

/* Danni e Checklist identici agli input Modello/KM/Note: stesso fondo e bordino. */
#view-checkout .transparent-cell-action,
#view-checkout .checklist-cell-preview,
#view-checkout .checklist-cell-online{
  min-height:38px!important;
  width:100%!important;
  border:1px solid rgba(91,232,201,.48)!important;
  border-radius:10px!important;
  background:rgba(10,42,43,.42)!important;
  color:#b7c4c6!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)!important;
  font-weight:650!important;
}
#view-checkout .transparent-cell-action:hover,
#view-checkout .transparent-cell-action:focus,
#view-checkout .checklist-cell-preview:hover,
#view-checkout .checklist-cell-preview:focus{
  border-color:rgba(91,232,201,.88)!important;
  background:rgba(16,58,58,.55)!important;
  outline:none!important;
}

/* Riquadro Report scelto: resta visivamente sollevato. */
#summaryCards .report-card.report-selected,
#summaryCards [data-report-detail].report-selected{
  transform:translateY(-7px)!important;
  border-color:rgba(104,255,220,.9)!important;
  box-shadow:0 10px 22px rgba(0,0,0,.32),0 0 0 2px rgba(85,235,201,.18)!important;
}
#summaryCards .split-values button.report-selected{
  border-radius:10px;
  background:rgba(77,224,193,.12)!important;
  padding:8px!important;
}
/* Annullati: stesso fondo degli altri, solo bordino rosso. */
#summaryCards .report-card.warn{
  background:linear-gradient(180deg,rgba(15,57,59,.72),rgba(7,31,34,.74))!important;
  border-color:rgba(232,79,101,.88)!important;
}
#summaryCards .report-card.warn strong{color:#fff!important}
#summaryDetails{scroll-margin-top:18px}

/* ================= AutoTrace V29 ================= */
#view-checkout .register-table .c-km{width:54px!important;min-width:54px!important;max-width:54px!important}
#view-checkout .register-table .c-notes{width:54px!important;min-width:54px!important;max-width:54px!important}
#view-checkout .register-table .c-sign{width:124px!important;min-width:124px!important;max-width:124px!important}
#view-checkout .transparent-cell-action,
#view-checkout .checklist-cell-preview,
#view-checkout .checklist-cell-online{
  min-height:38px!important;width:100%!important;border:1px solid rgba(91,232,201,.48)!important;
  border-radius:10px!important;background:rgba(10,42,43,.42)!important;color:#aebabc!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)!important;font-weight:650!important;
}
#view-checkout .transparent-cell-action:disabled{opacity:.48!important}
.checklist-paper-mini{position:relative;display:flex!important;flex-direction:column!important;gap:2px!important;padding:3px!important}
.checklist-paper-mini .mini-paper-lines{display:block;width:28px;height:22px;border-radius:3px;background:#fff;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.2)}
.checklist-paper-mini .mini-paper-lines:before{content:"";position:absolute;left:5px;right:5px;top:5px;height:2px;background:#5cc8a8;box-shadow:0 5px 0 #cfd8d6,0 10px 0 #e55d6a}
.checklist-paper-mini small{font-size:9px!important;color:#b8c3c5!important}
#view-checkout .register-table td.c-sign:nth-of-type(11),
#view-checkout .register-table td.c-sign:nth-of-type(12){width:124px!important;min-width:124px!important;max-width:124px!important}

/* V32: riepilogo danni compatto, massimo due righe e nessuna scrollbar. */
#view-checkout .c-damage .transparent-cell-action{
  height:42px!important;min-height:42px!important;max-height:42px!important;
  overflow:hidden!important;padding:3px 6px!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
}
.damage-cell-compact{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;width:100%!important;overflow:hidden!important;font-size:10px!important;line-height:1.05!important;font-weight:800!important;white-space:nowrap!important}
.damage-cell-compact>span{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:clip!important}
.damage-cell-empty{font-size:12px!important;font-weight:700!important}

/* AutoTrace V32 CF1 — solo anteprima/modifica checklist */
.checklist-preview-toolbar{display:flex;justify-content:flex-end;align-items:center;margin:0 0 10px}.checklist-edit-button{font-size:12px;padding:8px 12px}.checklist-signed-lock{padding:8px 12px;border:1px solid #52635f;border-radius:9px;color:#d7e2df;background:#102a25;font-size:12px;font-weight:800}.checklist-direct-preview{display:grid;gap:4px}.checklist-direct-image{display:block;max-width:100%;max-height:75vh;margin:auto;border-radius:12px;object-fit:contain}

/* AutoTrace V32 G2 — solo grafica registro, nessuna logica. */
/* Forza le larghezze sia sulle intestazioni sia sulle celle per evitare la redistribuzione automatica. */
#view-checkout .register-table{table-layout:fixed!important;width:100%!important;}
#view-checkout .register-table th:nth-child(3),
#view-checkout .register-table td:nth-child(3){width:170px!important;min-width:170px!important;max-width:170px!important;}
#view-checkout .register-table th:nth-child(4),
#view-checkout .register-table td:nth-child(4){width:62px!important;min-width:62px!important;max-width:62px!important;}
#view-checkout .register-table th:nth-child(10),
#view-checkout .register-table td:nth-child(10){width:82px!important;min-width:82px!important;max-width:82px!important;}
#view-checkout .register-table th:nth-child(11),
#view-checkout .register-table td:nth-child(11),
#view-checkout .register-table th:nth-child(12),
#view-checkout .register-table td:nth-child(12){width:138px!important;min-width:138px!important;max-width:138px!important;}
#view-checkout .register-table td:nth-child(3) input,
#view-checkout .register-table td:nth-child(4) input,
#view-checkout .register-table td:nth-child(10) input{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}

/* Check-in: RA/NRM calibrato per 12 caratteri con un minimo margine interno. */
#view-checkin .register-table{table-layout:fixed!important;width:100%!important;}
#view-checkin .register-table th:nth-child(2),
#view-checkin .register-table td:nth-child(2){width:118px!important;min-width:118px!important;max-width:118px!important;}
#view-checkin .register-table td:nth-child(2) input{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;padding-left:8px!important;padding-right:8px!important;}


/* AutoTrace V32 G3 — solo restyling grafico calendario + menu laterale. */
/* Menu sinistro più leggibile, grande e in maiuscolo. */
.sidebar nav{gap:10px!important;margin-top:4px!important}
.sidebar .nav-btn{
  display:block!important;
  width:100%!important;
  padding:15px 16px!important;
  font-size:21px!important;
  line-height:1.15!important;
  font-weight:800!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
  color:#e8fffa!important;
  border-radius:14px!important;
}
.sidebar .nav-btn.active,
.sidebar .nav-btn:hover{
  background:linear-gradient(180deg,rgba(99,227,207,.22),rgba(35,91,84,.34))!important;
  box-shadow:inset 0 0 0 1px rgba(101,241,217,.34),0 10px 24px rgba(0,0,0,.16)!important;
}
.sidebar .client-logo-box{padding:10px!important}
.sidebar .client-logo-box span,
.sidebar .client-logo-box strong{
  text-transform:uppercase!important;
}
#logoutBtn{
  font-size:18px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}

/* Calendario registri più leggibile e con box più moderni. */
#view-calendar .page-title h2{
  margin:0 0 6px!important;
  font-size:36px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  color:#f4fffc!important;
}
#view-calendar #calendarBrowse{
  background:linear-gradient(180deg,rgba(8,37,33,.48),rgba(5,22,19,.18))!important;
  border:1px solid rgba(92,239,213,.16)!important;
  border-radius:24px!important;
  padding:18px 18px 16px!important;
}
#view-calendar .calendar-toolbar{
  margin:8px 0 18px!important;
  gap:16px!important;
}
#view-calendar .calendar-toolbar .btn{
  width:46px!important;
  height:46px!important;
  padding:0!important;
  border-radius:14px!important;
  font-size:28px!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(8,35,31,.72)!important;
  border:1px solid rgba(98,231,208,.42)!important;
}
#view-calendar #calendarTitle{
  min-width:230px!important;
  text-align:center!important;
  font-size:28px!important;
  line-height:1.1!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  text-transform:capitalize!important;
  color:#f7fffd!important;
}
#view-calendar .calendar-grid{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  grid-auto-rows:minmax(118px,1fr)!important;
  gap:12px!important;
  max-height:none!important;
  overflow:visible!important;
}
#view-calendar .calendar-day{
  appearance:none!important;
  -webkit-appearance:none!important;
  min-height:118px!important;
  padding:14px 14px 12px!important;
  border-radius:18px!important;
  border:1px solid rgba(109,244,221,.42)!important;
  background:linear-gradient(180deg,rgba(10,40,36,.95),rgba(8,28,26,.96))!important;
  box-shadow:0 10px 22px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.03)!important;
  overflow:hidden!important;
  text-align:left!important;
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease,background .14s ease!important;
}
#view-calendar .calendar-day:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(124,250,228,.82)!important;
  background:linear-gradient(180deg,rgba(14,57,51,.98),rgba(10,37,33,.98))!important;
  box-shadow:0 14px 28px rgba(0,0,0,.22),0 0 0 1px rgba(99,245,220,.10)!important;
}
#view-calendar .calendar-day.selected{
  border-color:rgba(126,255,231,.96)!important;
  background:linear-gradient(180deg,rgba(18,73,64,.98),rgba(11,43,38,.98))!important;
  box-shadow:0 16px 32px rgba(0,0,0,.26),0 0 0 2px rgba(106,243,219,.14)!important;
}
#view-calendar .calendar-day.muted{
  opacity:.48!important;
}
#view-calendar .calendar-day strong{
  display:block!important;
  margin-bottom:10px!important;
  font-size:28px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#ffffff!important;
}
#view-calendar .calendar-badges{
  display:grid!important;
  gap:7px!important;
  margin-top:0!important;
  font-size:14px!important;
  line-height:1.32!important;
  color:#dbfff7!important;
}
#view-calendar .calendar-badges span{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:6px 9px!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.04)!important;
  border:1px solid rgba(255,255,255,.07)!important;
  font-weight:700!important;
}
#view-calendar .day-registers{
  margin-top:18px!important;
}
#view-calendar .day-registers .panel{
  border-radius:20px!important;
  border:1px solid rgba(98,238,213,.22)!important;
  background:linear-gradient(180deg,rgba(10,39,35,.93),rgba(8,28,26,.96))!important;
}
#view-calendar .day-registers h3{
  margin:0 0 14px!important;
  font-size:28px!important;
}
#view-calendar .day-tabs{gap:10px!important;margin-bottom:14px!important}
#view-calendar .day-tabs .btn{
  min-height:44px!important;
  padding:10px 16px!important;
  font-size:15px!important;
  font-weight:800!important;
  border-radius:12px!important;
}
#view-calendar .day-table th,
#view-calendar .day-table td{
  padding:11px 10px!important;
}
#view-calendar .day-table td{
  font-size:14px!important;
}
@media(max-width:1200px){
  .sidebar .nav-btn{font-size:18px!important;padding:14px 14px!important}
  #view-calendar .calendar-grid{gap:10px!important;grid-auto-rows:minmax(104px,1fr)!important}
  #view-calendar .calendar-day{min-height:104px!important;padding:12px 12px 10px!important}
  #view-calendar .calendar-day strong{font-size:24px!important}
}
@media(max-width:900px){
  #view-calendar .page-title h2{font-size:28px!important}
  #view-calendar #calendarTitle{font-size:22px!important;min-width:0!important}
  #view-calendar .calendar-toolbar .btn{width:40px!important;height:40px!important;font-size:24px!important}
  #view-calendar .calendar-grid{gap:8px!important;grid-auto-rows:minmax(92px,1fr)!important}
  #view-calendar .calendar-day{min-height:92px!important;padding:10px!important;border-radius:14px!important}
  #view-calendar .calendar-day strong{font-size:21px!important;margin-bottom:8px!important}
  #view-calendar .calendar-badges{font-size:12px!important;gap:5px!important}
  #view-calendar .calendar-badges span{padding:5px 7px!important}
}


/* AutoTrace V32 G4 — rifiniture grafiche richieste. */
/* Menu laterale: ogni voce resta su un solo rigo, grande ma senza invadere il registro. */
.sidebar .nav-btn{
  padding:14px 12px!important;
  font-size:16px!important;
  line-height:1.15!important;
  letter-spacing:.015em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}

/* Riquadro utente con icona evidente e ordine Nome · Ruolo · Organizzazione. */
.sidebar-bottom #currentUserCard{
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  padding:14px!important;
}
.current-user-icon{
  position:relative!important;
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  border-radius:50%!important;
  background:linear-gradient(135deg,#74eaff,#36a9ff)!important;
  border:2px solid rgba(255,255,255,.72)!important;
  box-shadow:0 0 0 3px rgba(71,205,255,.14),0 7px 16px rgba(0,0,0,.24)!important;
}
.current-user-icon::before{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  top:7px!important;
  width:10px!important;
  height:10px!important;
  border-radius:50%!important;
  background:#06364a!important;
  transform:translateX(-50%)!important;
}
.current-user-icon::after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  bottom:6px!important;
  width:20px!important;
  height:12px!important;
  border-radius:12px 12px 8px 8px!important;
  background:#06364a!important;
  transform:translateX(-50%)!important;
}
.current-user-copy{
  min-width:0!important;
  display:grid!important;
  gap:3px!important;
  line-height:1.12!important;
}
.current-user-copy strong{
  font-size:16px!important;
  white-space:nowrap!important;
  color:#fff!important;
}
.current-user-copy span{
  font-size:13px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  color:#aeeadd!important;
}

/* Calendario: intestazioni settimana subito sopra le caselle. */
#view-calendar .calendar-grid{
  grid-template-rows:32px repeat(6,minmax(118px,1fr))!important;
  grid-auto-rows:minmax(118px,1fr)!important;
  row-gap:10px!important;
}
#view-calendar .calendar-weekday{
  height:32px!important;
  min-height:32px!important;
  align-self:end!important;
  font-size:13px!important;
  line-height:32px!important;
}
@media(max-width:1200px){
  #view-calendar .calendar-grid{
    grid-template-rows:30px repeat(6,minmax(104px,1fr))!important;
    grid-auto-rows:minmax(104px,1fr)!important;
  }
}
@media(max-width:900px){
  .sidebar .nav-btn{font-size:15px!important;padding:12px 11px!important}
  #view-calendar .calendar-grid{
    grid-template-rows:28px repeat(6,minmax(92px,1fr))!important;
    grid-auto-rows:minmax(92px,1fr)!important;
    row-gap:7px!important;
  }
  #view-calendar .calendar-weekday{height:28px!important;min-height:28px!important;line-height:28px!important}
}


/* AutoTrace V32 G5 — solo layout grafico, nessuna logica. */
/* Testata compatta nella sidebar: AutoTrace FOR cliente. */
.app{grid-template-columns:286px minmax(0,1fr)!important}
.sidebar{padding:14px 10px 12px!important}
.sidebar-brand-strip{
  display:grid!important;
  grid-template-columns:72px 36px minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  min-height:84px!important;
  margin-bottom:14px!important;
}
.sidebar-brand-logo{
  display:block!important;
  width:72px!important;
  height:68px!important;
  object-fit:contain!important;
}
.sidebar-brand-for{
  display:block!important;
  text-align:center!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  color:#dffff8!important;
}
.sidebar .client-logo-mini{
  display:grid!important;
  height:68px!important;
  min-height:68px!important;
  margin:0!important;
  padding:7px!important;
  border-radius:11px!important;
  font-size:10px!important;
  line-height:1.1!important;
}
.sidebar .client-logo-mini strong{
  font-size:11px!important;
  line-height:1.08!important;
}

/* Elimina lo spazio verticale del logo centrale e fa salire i registri. */
.topbar{
  height:4px!important;
  min-height:4px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.topbar .brand-logo{display:none!important}
.main{padding:8px 14px 18px!important}
.register-heading{margin:0 0 8px!important;padding:9px 13px!important}
.register-heading h2{font-size:22px!important}
.register-date{font-size:17px!important}
#view-checkin .table-wrap,
#view-checkout .table-wrap{max-height:calc(100vh - 88px)!important}

/* Menu: grande, ma sempre completo su una sola riga. */
.sidebar nav{gap:7px!important}
.sidebar .nav-btn{
  width:100%!important;
  min-width:0!important;
  padding:13px 10px!important;
  font-size:14.5px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:-.015em!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* Riquadro utente perfettamente centrato. */
.sidebar-bottom #currentUserCard{
  justify-content:center!important;
  text-align:left!important;
  min-height:82px!important;
}
.current-user-copy{justify-items:start!important}

/* Stato e Info con la stessa geometria dei campi: rettangolari con angoli morbidi. */
.register-table td.c-status,
.register-table td.c-actions{padding:6px!important}
.register-table td.c-status .status,
.register-table td.c-actions .cell-btn{
  width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 8px!important;
  border-radius:9px!important;
  border:1px solid rgba(91,232,201,.48)!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)!important;
  font-size:11px!important;
  line-height:1.12!important;
  font-weight:850!important;
  text-align:center!important;
  white-space:normal!important;
}
.register-table td.c-actions .cell-btn{
  background:rgba(10,42,43,.42)!important;
  color:#ffffff!important;
}
.register-table td.c-status .status.info{
  background:rgba(10,42,43,.42)!important;
  color:#ffffff!important;
}
.register-table td.c-status .status.pending{
  background:rgba(118,85,18,.42)!important;
  color:#ffe28d!important;
  border-color:rgba(255,209,92,.58)!important;
}
.register-table td.c-status .status.ok{
  background:rgba(14,82,65,.46)!important;
  color:#9dffe0!important;
  border-color:rgba(87,236,195,.62)!important;
}
.register-table td.c-status .status.bad{
  background:rgba(104,37,43,.48)!important;
  color:#ffc9ce!important;
  border-color:rgba(241,105,118,.62)!important;
}

/* Calendario: conserva il restyling e resta alto sotto l'intestazione. */
#view-calendar .page-title{margin:0 0 8px!important}
#view-calendar #calendarBrowse{padding-top:10px!important}

@media(max-width:1150px){
  .app{grid-template-columns:274px minmax(0,1fr)!important}
  .sidebar .nav-btn{font-size:13.6px!important;padding-left:8px!important;padding-right:8px!important}
}
@media(max-width:900px){
  .app{grid-template-columns:1fr!important}
  .sidebar-brand-strip{display:none!important}
  .topbar{height:58px!important;min-height:58px!important;overflow:visible!important}
  .topbar .brand-logo{display:block!important;width:120px!important;height:56px!important}
  .main{padding:10px!important}
  .sidebar .nav-btn{font-size:14px!important}
  #view-checkin .table-wrap,#view-checkout .table-wrap{max-height:none!important}
}

/* AutoTrace V32 G6 — logo unico, sidebar compatta, targhe leggibili, testate e stati. */
.app{grid-template-columns:246px minmax(0,1fr)!important}
.sidebar{padding:10px 8px 10px!important}
.sidebar-brand-only{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:68px!important;
  height:68px!important;
  margin:0 0 8px!important;
}
.sidebar-brand-only .sidebar-brand-logo{
  width:118px!important;
  height:62px!important;
  object-fit:contain!important;
}
.sidebar-brand-for,.sidebar .client-logo-mini{display:none!important}
.sidebar nav{gap:5px!important}
.sidebar .nav-btn{
  padding:11px 8px!important;
  font-size:13.2px!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}
.sidebar-bottom #currentUserCard{min-height:74px!important;padding:10px!important;text-align:center!important}
.sidebar-bottom #currentUserCard .current-user-card-inner,
.sidebar-bottom #currentUserCard>div{justify-content:center!important}
.current-user-copy{justify-items:center!important;text-align:center!important}

/* Testata registri: data a sinistra, titolo e cerca al centro, legenda compatta a destra. */
.register-heading.register-heading-enhanced{
  display:grid!important;
  grid-template-columns:minmax(215px,.9fr) minmax(300px,1.2fr) minmax(300px,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  min-height:78px!important;
  padding:9px 12px!important;
}
.register-date-block{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.register-calendar-icon{
  flex:0 0 38px!important;width:38px!important;height:38px!important;
  display:grid!important;place-items:center!important;border:1px solid rgba(98,230,208,.52)!important;
  border-radius:10px!important;color:#fff!important;font-size:20px!important;background:rgba(9,43,39,.72)!important;
}
.register-date-block .register-date{font-size:16px!important;line-height:1.1!important;white-space:nowrap!important}
.register-date-block .readonly-note{margin-top:3px!important;text-align:left!important;font-size:10px!important;white-space:nowrap!important}
.register-center{display:grid!important;gap:7px!important;justify-items:center!important;min-width:0!important}
.register-center h2{margin:0!important;font-size:21px!important;white-space:nowrap!important}
.register-search{display:flex!important;align-items:center!important;width:min(330px,100%)!important}
.register-search input{
  width:100%!important;min-width:0!important;height:36px!important;padding:7px 40px 7px 12px!important;
  border-radius:10px!important;text-align:center!important;text-transform:uppercase!important;font-weight:800!important;
}
.register-search button{width:38px!important;height:32px!important;margin-left:-40px!important;padding:0!important;border:0!important;font-size:22px!important;background:transparent!important}
.register-search input.register-search-miss{border-color:#ff6675!important;box-shadow:0 0 0 2px rgba(255,102,117,.18)!important}
.register-state-legend{display:flex!important;align-items:stretch!important;justify-content:flex-end!important;gap:7px!important;min-width:0!important}
.register-state-legend .legend-item{
  min-width:132px!important;max-width:170px!important;display:grid!important;
  grid-template-columns:30px 26px 1fr!important;align-items:center!important;gap:5px!important;
  padding:7px 8px!important;border-radius:10px!important;border:1px solid rgba(91,232,201,.38)!important;
  background:rgba(7,31,29,.68)!important;
}
.register-state-legend .legend-item i{
  width:28px!important;height:28px!important;display:grid!important;place-items:center!important;
  border-radius:50%!important;font-style:normal!important;font-size:15px!important;font-weight:900!important;
}
.register-state-legend .legend-item b{font-size:18px!important;color:#fff!important}
.register-state-legend .legend-item small{font-size:9.5px!important;line-height:1.08!important;font-weight:850!important;text-transform:uppercase!important;color:#eafff9!important}
.register-state-legend .waiting{border-color:rgba(255,206,72,.52)!important}.register-state-legend .waiting i{color:#ffdb64!important;border:1px solid rgba(255,206,72,.65)!important}
.register-state-legend .charge{border-color:rgba(84,163,255,.55)!important}.register-state-legend .charge i{color:#8fc7ff!important;border:1px solid rgba(84,163,255,.7)!important}
.register-state-legend .done{border-color:rgba(86,232,175,.55)!important}.register-state-legend .done i{color:#76f0b5!important;border:1px solid rgba(86,232,175,.7)!important}

/* Colonne: numero più stretto e targa adatta ad almeno 9 caratteri. */
#view-checkin .register-table th:nth-child(1),#view-checkin .register-table td:nth-child(1),
#view-checkout .register-table th:nth-child(1),#view-checkout .register-table td:nth-child(1){width:34px!important;min-width:34px!important;max-width:34px!important;padding-left:3px!important;padding-right:3px!important}
#view-checkin .register-table th:nth-child(3),#view-checkin .register-table td:nth-child(3),
#view-checkout .register-table th:nth-child(2),#view-checkout .register-table td:nth-child(2){width:112px!important;min-width:112px!important;max-width:112px!important}
#view-checkin .register-table td:nth-child(3) input,
#view-checkout .register-table td:nth-child(2) input{
  width:100%!important;min-width:0!important;padding-left:5px!important;padding-right:5px!important;
  font-size:12.5px!important;letter-spacing:-.02em!important;text-align:center!important;text-transform:uppercase!important;
}

/* Icone coerenti nello stato delle righe. */
.register-table td.c-status .status{gap:6px!important}
.register-table td.c-status .status:before{
  flex:0 0 20px!important;width:20px!important;height:20px!important;display:grid!important;place-items:center!important;
  border-radius:6px!important;font-weight:950!important;font-size:12px!important;
}
#view-checkin .register-table td.c-status .status.pending:before{content:"⌛";color:#ffdb64!important}
#view-checkin .register-table td.c-status .status.ok:before{content:"P";color:#94c9ff!important;border:1px solid rgba(84,163,255,.7)!important}
#view-checkout .register-table td.c-status .status.pending:before{content:"⌛";color:#ffdb64!important}
#view-checkout .register-table td.c-status .status.ok:before{content:"✓";color:#79efb6!important;border:1px solid rgba(86,232,175,.65)!important}
.register-table tr.register-search-hit td{animation:g6SearchHit .8s ease-in-out 3!important}
@keyframes g6SearchHit{0%,100%{background:#092620}50%{background:#155a4d;box-shadow:inset 0 0 0 2px rgba(104,255,221,.72)}}

@media(max-width:1250px){
  .app{grid-template-columns:232px minmax(0,1fr)!important}
  .sidebar .nav-btn{font-size:12.4px!important;padding-left:6px!important;padding-right:6px!important}
  .register-heading.register-heading-enhanced{grid-template-columns:190px minmax(265px,1fr) minmax(270px,1fr)!important;gap:8px!important}
  .register-state-legend .legend-item{min-width:124px!important;padding:6px!important}
}
@media(max-width:900px){
  .app{grid-template-columns:1fr!important}
  .register-heading.register-heading-enhanced{grid-template-columns:1fr!important;text-align:center!important}
  .register-date-block{justify-content:center!important}.register-date-block .readonly-note{text-align:center!important}
  .register-state-legend{justify-content:center!important;flex-wrap:wrap!important}
}

/* AutoTrace V32 G7 — logo trasparente, header equilibrato, icone pure e ricerca corretta. */
.login-logo,.brand-logo,.sidebar-brand-logo{object-fit:contain!important;background:transparent!important;filter:drop-shadow(0 5px 12px rgba(0,0,0,.28))}
.login-logo{width:310px!important;height:170px!important}
.sidebar-brand-only{height:82px!important;min-height:82px!important;padding:4px 8px!important}
.sidebar-brand-only .sidebar-brand-logo{width:190px!important;height:76px!important}
.topbar{height:34px!important;min-height:34px!important;margin:0!important;padding:0!important}
.topbar .brand-logo{display:none!important}

.register-heading.register-heading-enhanced{
  grid-template-columns:minmax(220px,.92fr) minmax(250px,.9fr) minmax(330px,1.18fr)!important;
  gap:14px!important;min-height:94px!important;padding:12px 14px!important;align-items:center!important;
}
.register-date-block,.register-center,.register-state-legend{height:68px!important;align-self:center!important}
.register-date-block{padding:0 4px!important}
.register-calendar-icon{width:44px!important;height:44px!important;flex:0 0 44px!important;border-radius:12px!important}
.register-calendar-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.register-center{display:grid!important;grid-template-rows:auto 42px!important;align-content:center!important;gap:8px!important}
.register-center h2{font-size:23px!important;line-height:1!important}
.register-search{width:280px!important;max-width:100%!important;height:42px!important;position:relative!important;margin:auto!important}
.register-search input{height:42px!important;padding:8px 46px 8px 14px!important;font-size:14px!important}
.register-search button{position:absolute!important;right:4px!important;top:5px!important;width:34px!important;height:32px!important;margin:0!important;display:grid!important;place-items:center!important}
.register-search button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.register-search-feedback{position:absolute;left:50%;top:47px;transform:translateX(-50%);white-space:nowrap;font-size:10px;font-weight:800;color:#ff9ba5;opacity:0;pointer-events:none;transition:.15s}
.register-search-feedback.show{opacity:1}.register-search-feedback.ok{color:#7ff0c5}
.register-state-legend{display:grid!important;grid-template-columns:repeat(2,minmax(145px,1fr))!important;gap:10px!important;align-items:center!important;justify-content:stretch!important}
.register-state-legend .legend-item{height:58px!important;min-width:0!important;max-width:none!important;grid-template-columns:38px 30px 1fr!important;padding:8px 10px!important;border-radius:12px!important}
.register-state-legend .legend-item i{width:34px!important;height:34px!important;background:transparent!important;border-radius:10px!important}
.register-state-legend .legend-item i svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.register-state-legend .legend-item b{font-size:21px!important}
.register-state-legend .legend-item small{font-size:10px!important;line-height:1.15!important;color:#fff!important}

.register-table td.c-status .status.status-icon-only{
  width:44px!important;height:40px!important;min-height:40px!important;margin:auto!important;padding:5px!important;
  border-radius:10px!important;background:rgba(8,30,29,.7)!important;display:grid!important;place-items:center!important;
}
.register-table td.c-status .status.status-icon-only:before{display:none!important;content:none!important}
.register-table td.c-status .status.status-icon-only svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.register-table td.c-status .status-icon-wait{color:#ffd55e!important;border-color:rgba(255,205,66,.72)!important}
.register-table td.c-status .status-icon-park{color:#79b8ff!important;border-color:rgba(73,151,255,.72)!important}
.register-table td.c-status .status-icon-done{color:#66e7a8!important;border-color:rgba(66,222,145,.72)!important}
.register-table td.c-status .status-icon-bad{color:#ff8d98!important;border-color:rgba(255,97,112,.72)!important}
.register-table th.c-status,.register-table td.c-status{width:64px!important;min-width:64px!important;max-width:64px!important}

.register-table tr.register-search-hit td{animation:g7SearchHit .65s ease-in-out 4!important}
@keyframes g7SearchHit{0%,100%{background:#092620!important}50%{background:#1b6b59!important;box-shadow:inset 0 0 0 2px rgba(121,255,219,.9)!important}}

@media(max-width:1250px){
  .register-heading.register-heading-enhanced{grid-template-columns:205px minmax(235px,.82fr) minmax(305px,1.18fr)!important;gap:8px!important}
  .register-search{width:245px!important}.register-state-legend{gap:6px!important}.register-state-legend .legend-item{padding:7px!important}
}
@media(max-width:900px){
  .topbar{height:0!important;min-height:0!important}.register-heading.register-heading-enhanced{height:auto!important;grid-template-columns:1fr!important}
  .register-date-block,.register-center,.register-state-legend{height:auto!important}.register-state-legend{grid-template-columns:1fr 1fr!important}
}

/* AutoTrace V32 G8 — rifinitura logo, sidebar, legenda compatta e ricerca targa affidabile. */
.app{grid-template-columns:238px minmax(0,1fr)!important}
.sidebar{
  padding:14px 12px!important;
  gap:10px!important;
}
.sidebar-brand-only{
  height:96px!important;
  min-height:96px!important;
  padding:8px 6px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.sidebar-brand-only .sidebar-brand-logo{
  width:100%!important;
  max-width:none!important;
  height:80px!important;
  object-fit:contain!important;
  object-position:center center!important;
}
.sidebar nav{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  margin-top:2px!important;
}
.sidebar .nav-btn{
  min-height:52px!important;
  height:52px!important;
  display:flex!important;
  align-items:center!important;
  padding:0 12px!important;
  border:1px solid rgba(92,232,203,.22)!important;
  border-radius:12px!important;
  background:rgba(7,28,25,.75)!important;
  color:#e8fffa!important;
  font-size:12.6px!important;
  font-weight:850!important;
  line-height:1!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.sidebar .nav-btn.active,.sidebar .nav-btn:hover{
  border-color:rgba(101,241,209,.7)!important;
  background:rgba(17,57,50,.92)!important;
  box-shadow:inset 0 0 0 1px rgba(118,245,217,.22)!important;
}
.sidebar-bottom #currentUserCard{
  min-height:70px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#logoutBtn{min-height:48px!important;text-transform:uppercase!important;font-weight:850!important}

.register-heading.register-heading-enhanced{
  grid-template-columns:minmax(250px,1fr) minmax(210px,.85fr) minmax(245px,.92fr)!important;
  gap:12px!important;
  min-height:92px!important;
  padding:12px 14px!important;
}
.register-date-block,.register-center,.register-state-legend{
  height:64px!important;
}
.register-calendar-icon{
  width:42px!important;height:42px!important;flex:0 0 42px!important;
  font-size:24px!important;line-height:1!important;
  background:rgba(8,30,28,.65)!important;
}
.register-date-block .register-date{
  font-size:20px!important;
  font-weight:900!important;
  color:#62f0d0!important;
  text-transform:uppercase!important;
  letter-spacing:.01em!important;
}
.register-date-block .readonly-note{
  font-size:11px!important;
  font-weight:700!important;
}
.register-center h2{
  font-size:23px!important;
  letter-spacing:.02em!important;
}
.register-search{
  width:238px!important;
  max-width:238px!important;
  height:38px!important;
}
.register-search input{
  height:38px!important;
  font-size:14px!important;
  border-radius:11px!important;
}
.register-search button{
  top:3px!important;
  right:4px!important;
  width:30px!important;
  height:30px!important;
}
.register-state-legend{
  grid-template-columns:repeat(2,minmax(112px,1fr))!important;
  gap:8px!important;
  justify-items:stretch!important;
}
.register-state-legend .legend-item{
  height:50px!important;
  grid-template-columns:24px 24px 1fr!important;
  gap:5px!important;
  padding:6px 8px!important;
  border-radius:11px!important;
}
.register-state-legend .legend-item i{
  width:22px!important;height:22px!important;
  font-size:19px!important;
  line-height:1!important;
  display:grid!important;place-items:center!important;
  border:0!important;
  background:transparent!important;
}
.register-state-legend .legend-item b{
  font-size:17px!important;
}
.register-state-legend .legend-item small{
  font-size:9px!important;
  letter-spacing:0!important;
}
.register-state-legend .legend-item.waiting{border-color:rgba(255,206,72,.45)!important}
.register-state-legend .legend-item.charge{border-color:rgba(84,163,255,.45)!important}
.register-state-legend .legend-item.done{border-color:rgba(86,232,175,.45)!important}

.register-table td.c-status .status.status-icon-only{
  width:38px!important;
  height:38px!important;
  min-height:38px!important;
  border-radius:10px!important;
  font-size:22px!important;
  line-height:1!important;
  padding:0!important;
}
.register-table td.c-status .status.status-icon-only svg{display:none!important}
.register-table td.c-status .status.status-icon-only .status-emoji{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  font-size:22px!important;
  line-height:1!important;
}
.register-table th.c-status,.register-table td.c-status{width:58px!important;min-width:58px!important;max-width:58px!important}
.register-table tr.register-search-hit td{
  animation:g8SearchHit .6s ease-in-out 5!important;
}
@keyframes g8SearchHit{0%,100%{background:#092620!important}50%{background:#216f60!important;box-shadow:inset 0 0 0 2px rgba(147,255,229,.95)!important}}

@media(max-width:1250px){
  .app{grid-template-columns:228px minmax(0,1fr)!important}
  .sidebar .nav-btn{font-size:12px!important;padding:0 10px!important}
  .register-heading.register-heading-enhanced{grid-template-columns:minmax(230px,1fr) minmax(190px,.8fr) minmax(225px,.9fr)!important}
  .register-search{width:220px!important;max-width:220px!important}
}
@media(max-width:900px){
  .app{grid-template-columns:1fr!important}
  .sidebar-brand-only{height:88px!important;min-height:88px!important}
  .sidebar-brand-only .sidebar-brand-logo{height:72px!important}
  .register-heading.register-heading-enhanced{grid-template-columns:1fr!important;height:auto!important}
  .register-date-block,.register-center,.register-state-legend{height:auto!important}
  .register-search{width:min(260px,100%)!important;max-width:100%!important}
}

/* AutoTrace V32 G9 — design fedele al mockup approvato. */
:root{--g9-cyan:#34e6d0;--g9-line:rgba(76,171,168,.28);--g9-green:#42d968;--g9-yellow:#f2bd19;--g9-blue:#3f91ff;--g9-red:#ef4f5f}
.app{grid-template-columns:236px minmax(0,1fr)!important}
.sidebar{padding:8px 8px 12px!important;gap:0!important;background:linear-gradient(180deg,#061419,#071c1d)!important}
.sidebar-brand-only{height:150px!important;min-height:150px!important;padding:4px 10px 8px!important;border-bottom:1px solid var(--g9-line)!important}
.sidebar-brand-only .sidebar-brand-logo{width:100%!important;height:138px!important;max-width:none!important;object-fit:contain!important;object-position:center!important;filter:drop-shadow(0 5px 12px rgba(0,0,0,.3))!important}
.sidebar nav{display:grid!important;grid-template-columns:1fr!important;gap:0!important;margin:0!important;border-bottom:1px solid var(--g9-line)!important}
.sidebar .nav-btn{height:61px!important;min-height:61px!important;padding:0 12px!important;border:0!important;border-bottom:1px solid var(--g9-line)!important;border-radius:0!important;background:transparent!important;color:#f3fbfa!important;font-size:12px!important;font-weight:800!important;letter-spacing:0!important;text-transform:uppercase!important;display:flex!important;align-items:center!important;gap:12px!important;white-space:nowrap!important;overflow:hidden!important;text-align:left!important}
.sidebar .nav-btn .nav-icon{width:28px!important;height:28px!important;flex:0 0 28px!important;display:grid!important;place-items:center!important;color:#ecfffc!important}
.sidebar .nav-btn .nav-icon svg{width:25px!important;height:25px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.sidebar .nav-btn.active{background:linear-gradient(90deg,rgba(8,185,172,.23),rgba(6,55,57,.18))!important;color:#66f3e2!important;box-shadow:inset 3px 0 0 #1ce0cf!important}
.sidebar .nav-btn:hover{background:rgba(23,83,80,.24)!important;color:#fff!important}
.sidebar-bottom{padding:10px 8px 0!important}
.sidebar-bottom #currentUserCard{min-height:74px!important;padding:10px!important;border:1px solid rgba(88,204,193,.3)!important;border-radius:10px!important;background:rgba(8,29,31,.72)!important}
#logoutBtn{min-height:48px!important;border-radius:9px!important}

.topbar{height:0!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important}
.main{padding-top:8px!important}
.register-heading.register-heading-enhanced{position:relative!important;display:grid!important;grid-template-columns:minmax(260px,1fr) minmax(220px,.82fr) minmax(260px,.95fr)!important;align-items:end!important;gap:14px!important;min-height:142px!important;padding:50px 16px 12px!important;margin:0 0 8px!important;border-radius:12px!important;background:linear-gradient(180deg,rgba(7,21,25,.94),rgba(7,28,29,.9))!important}
.register-center{display:contents!important}
.register-center h2{position:absolute!important;top:12px!important;left:50%!important;transform:translateX(-50%)!important;margin:0!important;font-size:25px!important;line-height:1!important;letter-spacing:.025em!important;white-space:nowrap!important;color:#fff!important;text-align:center!important}
.register-date-block{height:58px!important;display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
.register-calendar-icon{width:42px!important;height:42px!important;flex:0 0 42px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--g9-cyan)!important;font-size:0!important}
.register-calendar-icon svg{width:34px!important;height:34px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.register-date-block .register-date{font-size:22px!important;font-weight:900!important;line-height:1.05!important;color:#fff!important;text-transform:uppercase!important;white-space:nowrap!important;letter-spacing:.01em!important}
.register-date-block .readonly-note{font-size:10.5px!important;color:#a9c5c1!important;text-align:left!important;margin-top:4px!important;white-space:nowrap!important}
.register-search{grid-column:2!important;position:relative!important;width:230px!important;max-width:230px!important;height:38px!important;display:flex!important;align-items:center!important;justify-self:center!important;margin:0!important}
.register-search input{width:100%!important;height:38px!important;padding:7px 40px 7px 38px!important;border:1px solid rgba(94,188,186,.45)!important;border-radius:9px!important;background:rgba(5,22,27,.78)!important;color:#fff!important;text-align:left!important;font-size:13px!important;font-weight:700!important;text-transform:uppercase!important;box-shadow:none!important}
.register-search input::placeholder{color:#c6d4d3!important;text-align:left!important}
.register-search-icon{position:absolute!important;left:12px!important;top:10px!important;width:18px!important;height:18px!important;color:#e7ffff!important;z-index:2!important;pointer-events:none!important}
.register-search-icon svg,.register-search button svg{width:100%!important;height:100%!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.register-search button{position:absolute!important;right:4px!important;top:4px!important;width:30px!important;height:30px!important;padding:6px!important;margin:0!important;border:0!important;background:transparent!important;color:#fff!important;display:grid!important;place-items:center!important}
.register-search-feedback{top:42px!important;font-size:10px!important}
.register-state-legend{grid-column:3!important;height:58px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:20px!important;min-width:0!important}
.register-state-legend .legend-item{height:auto!important;min-width:0!important;max-width:none!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;display:grid!important;grid-template-columns:34px auto!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:0!important;align-items:center!important}
.register-state-legend .legend-item i{grid-row:1/3!important;width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:transparent!important;font-style:normal!important}
.register-state-legend .legend-item i svg{width:30px!important;height:30px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.register-state-legend .legend-item b{grid-column:2!important;font-size:18px!important;line-height:1!important;color:#fff!important}
.register-state-legend .legend-item small{grid-column:2!important;font-size:8px!important;line-height:1.1!important;font-weight:800!important;color:#fff!important;white-space:nowrap!important}
.register-state-legend .waiting i{color:var(--g9-yellow)!important}.register-state-legend .charge i{color:var(--g9-blue)!important}.register-state-legend .done i{color:var(--g9-green)!important}

.register-table td.c-status .status.status-icon-only{width:36px!important;height:36px!important;min-height:36px!important;margin:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:grid!important;place-items:center!important}
.register-table td.c-status .status.status-icon-only .status-svg{width:31px!important;height:31px!important;display:block!important}
.register-table td.c-status .status.status-icon-only .status-svg svg{width:100%!important;height:100%!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.register-table td.c-status .status-icon-wait{color:var(--g9-yellow)!important}.register-table td.c-status .status-icon-park{color:var(--g9-blue)!important}.register-table td.c-status .status-icon-done{color:var(--g9-green)!important}.register-table td.c-status .status-icon-bad{color:var(--g9-red)!important}
.register-table td.c-status .status-icon-bad .status-svg svg .x-fill{fill:var(--g9-red)!important;stroke:var(--g9-red)!important}.register-table td.c-status .status-icon-bad .status-svg svg .x-mark{stroke:#fff!important;stroke-width:2.2!important}
.register-table th.c-status,.register-table td.c-status{width:54px!important;min-width:54px!important;max-width:54px!important}

/* Danni resta neutro/grigio come gli altri campi. */
.register-table .transparent-cell-action,.register-table .damage-cell-compact{color:#c7d1d0!important}

.register-table tr.register-search-hit td{animation:g9SearchHit .55s ease-in-out 6!important}
@keyframes g9SearchHit{0%,100%{background:#092620!important}50%{background:#1a6d5c!important;box-shadow:inset 0 0 0 2px rgba(112,255,220,.95)!important}}

@media(max-width:1250px){
  .app{grid-template-columns:226px minmax(0,1fr)!important}
  .sidebar .nav-btn{font-size:11.4px!important;gap:9px!important;padding:0 9px!important}
  .register-heading.register-heading-enhanced{grid-template-columns:minmax(235px,1fr) minmax(205px,.82fr) minmax(235px,.95fr)!important;gap:9px!important}
  .register-date-block .register-date{font-size:19px!important}.register-state-legend{gap:12px!important}.register-search{width:210px!important;max-width:210px!important}
}
@media(max-width:900px){
  .app{grid-template-columns:1fr!important}.sidebar-brand-only{height:120px!important;min-height:120px!important}.sidebar-brand-only .sidebar-brand-logo{height:112px!important}
  .register-heading.register-heading-enhanced{grid-template-columns:1fr!important;padding-top:48px!important;height:auto!important}.register-center{display:contents!important}.register-date-block,.register-state-legend{height:auto!important;justify-content:center!important}.register-search{grid-column:1!important;width:min(250px,100%)!important;max-width:100%!important}.register-state-legend{grid-column:1!important;margin-top:8px!important}
}
/* Allineamento verticale menu con le righe 1–6 del registro. */
.sidebar-brand-only{height:202px!important;min-height:202px!important}
.sidebar-brand-only .sidebar-brand-logo{height:184px!important}

/* AutoTrace V32 G10 — pulizia finale layout registri, logo leggibile, ricerca targa evidente. */
:root{--g10-cyan:#49ead7;--g10-line:rgba(89,204,196,.24);--g10-blue:#4e8cff;--g10-yellow:#f3c63a;--g10-green:#4be07d;--g10-red:#ef4d63}
.app{grid-template-columns:228px minmax(0,1fr)!important}
.sidebar{padding:10px 8px 12px!important;background:linear-gradient(180deg,#061417 0%,#08191d 100%)!important}
.sidebar-brand-only{height:128px!important;min-height:128px!important;padding:8px 10px 10px!important;border-bottom:1px solid var(--g10-line)!important}
.sidebar-brand-only .sidebar-brand-logo{height:110px!important;width:100%!important;object-fit:contain!important;object-position:center!important;filter:drop-shadow(0 4px 10px rgba(0,0,0,.25))!important}
.sidebar nav{gap:8px!important;margin-top:10px!important;border-bottom:0!important}
.sidebar .nav-btn{height:50px!important;min-height:50px!important;padding:0 12px!important;border:1px solid rgba(92,196,188,.22)!important;border-radius:12px!important;background:rgba(5,22,26,.48)!important;box-shadow:none!important;font-size:11.8px!important;font-weight:900!important;letter-spacing:.01em!important;display:flex!important;align-items:center!important;gap:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sidebar .nav-btn .nav-icon{width:22px!important;height:22px!important;flex:0 0 22px!important}
.sidebar .nav-btn .nav-icon svg{width:22px!important;height:22px!important;stroke-width:1.9!important}
.sidebar .nav-btn.active{background:linear-gradient(90deg,rgba(17,127,119,.26),rgba(5,28,30,.85))!important;color:#f7ffff!important;box-shadow:inset 3px 0 0 var(--g10-cyan)!important;border-color:rgba(104,236,222,.45)!important}
.sidebar .nav-btn:hover{background:rgba(18,71,74,.36)!important}
.sidebar-bottom{padding:12px 8px 0!important}
.sidebar-bottom #currentUserCard{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:66px!important;text-align:left!important}
.sidebar-bottom #currentUserCard strong{font-size:16px!important;line-height:1.05!important}
.sidebar-bottom #currentUserCard small,.sidebar-bottom #currentUserCard .muted{font-size:12px!important}
#logoutBtn{min-height:46px!important;font-size:16px!important;font-weight:900!important;border-radius:12px!important}

.main{padding:10px 16px 36px!important}
.register-heading.register-heading-enhanced{grid-template-columns:minmax(260px,1fr) minmax(190px,.88fr) minmax(230px,1fr)!important;align-items:end!important;gap:18px!important;min-height:126px!important;padding:44px 18px 12px!important;margin:0 0 10px!important;border:1px solid var(--g10-line)!important;border-radius:14px!important;background:linear-gradient(180deg,rgba(8,22,27,.96),rgba(9,25,29,.92))!important}
.register-center h2{top:12px!important;font-size:30px!important;letter-spacing:.03em!important}
.register-date-block{height:62px!important;gap:12px!important}
.register-calendar-icon{width:40px!important;height:40px!important;flex:0 0 40px!important;color:var(--g10-cyan)!important}
.register-calendar-icon svg{width:32px!important;height:32px!important}
.register-date-block .register-date{font-size:30px!important;font-weight:900!important;color:var(--g10-cyan)!important;line-height:1!important;text-transform:uppercase!important;white-space:nowrap!important}
.register-date-block .readonly-note{font-size:12px!important;font-weight:700!important;color:#c8d8d5!important;margin-top:6px!important}
.register-search{grid-column:2!important;width:220px!important;max-width:220px!important;height:40px!important;align-self:end!important}
.register-search input{height:40px!important;padding:8px 38px 8px 36px!important;border-radius:10px!important;font-size:13px!important}
.register-search button{right:5px!important;top:5px!important;width:28px!important;height:28px!important}
.register-search-icon{left:12px!important;top:11px!important;width:17px!important;height:17px!important}
.register-search-feedback{top:44px!important;font-size:11px!important;padding:4px 8px!important;background:#07191a!important;border:1px solid rgba(98,207,197,.35)!important;border-radius:8px!important}
.register-state-legend{grid-column:3!important;height:62px!important;justify-content:flex-end!important;gap:18px!important;flex-wrap:nowrap!important}
.register-state-legend .legend-item{display:flex!important;align-items:center!important;gap:8px!important;padding:0!important;background:transparent!important;border:0!important}
.register-state-legend .legend-item i{width:auto!important;height:auto!important;display:block!important;font-style:normal!important;font-size:22px!important;line-height:1!important;color:inherit!important}
.register-state-legend .legend-item b{font-size:20px!important;line-height:1!important;color:#fff!important}
.register-state-legend .legend-item small{font-size:11px!important;line-height:1.1!important;font-weight:900!important;white-space:nowrap!important;color:#eef8f6!important}
.register-state-legend .waiting{color:var(--g10-yellow)!important}.register-state-legend .charge{color:var(--g10-blue)!important}.register-state-legend .done{color:var(--g10-green)!important}.register-state-legend .bad{color:var(--g10-red)!important}

.register-table th,.register-table td{padding:7px 8px!important}
.register-table .row-num,.register-table th.row-num{width:42px!important;min-width:42px!important}
.register-table td.c-status,.register-table th.c-status{width:146px!important;min-width:146px!important;max-width:146px!important}
.register-table td.c-actions,.register-table th.c-actions{width:78px!important;min-width:78px!important}
.register-table td.c-status .status.status-pill{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;min-height:34px!important;padding:6px 10px!important;border-radius:12px!important;background:rgba(7,25,28,.74)!important;border:1px solid rgba(100,199,191,.22)!important;font-size:11px!important;font-weight:900!important;line-height:1.05!important;white-space:normal!important;text-transform:uppercase!important;box-shadow:none!important}
.register-table td.c-status .status .status-emoji{font-size:18px!important;line-height:1!important;display:block!important;flex:0 0 auto!important}
.register-table td.c-status .status .status-text{display:block!important}
.register-table td.c-status .status-pill.status-icon-wait{border-color:rgba(243,198,58,.58)!important;color:#ffe7a1!important}
.register-table td.c-status .status-pill.status-icon-park{border-color:rgba(78,140,255,.62)!important;color:#dce7ff!important}
.register-table td.c-status .status-pill.status-icon-done{border-color:rgba(75,224,125,.58)!important;color:#d6ffdf!important}
.register-table td.c-status .status-pill.status-icon-bad{border-color:rgba(239,77,99,.62)!important;background:rgba(85,12,24,.38)!important;color:#fff1f3!important}

.register-table tr.register-search-hit td{animation:g10SearchHit 1s ease-in-out 3!important}
.register-table tr.register-search-hit td.c-plate,.register-table tr.register-search-hit td:nth-child(2),.register-table tr.register-search-hit td:nth-child(3){box-shadow:inset 0 0 0 2px rgba(104,247,222,.95)!important}
.register-table tr.register-search-hit input,.register-table tr.register-search-hit .field-lock{box-shadow:0 0 0 2px rgba(104,247,222,.95)!important;border-color:rgba(104,247,222,.95)!important}
@keyframes g10SearchHit{0%,100%{background:#092620!important}50%{background:#19685b!important}}

@media(max-width:1280px){
  .app{grid-template-columns:214px minmax(0,1fr)!important}
  .sidebar .nav-btn{font-size:11px!important;padding:0 10px!important}
  .register-heading.register-heading-enhanced{grid-template-columns:minmax(230px,1fr) minmax(180px,.85fr) minmax(215px,1fr)!important;gap:12px!important}
  .register-center h2{font-size:26px!important}.register-date-block .register-date{font-size:26px!important}
  .register-state-legend{gap:12px!important}.register-state-legend .legend-item b{font-size:18px!important}.register-state-legend .legend-item small{font-size:10px!important}
}
@media(max-width:980px){
  .register-heading.register-heading-enhanced{grid-template-columns:1fr!important;padding-top:48px!important;min-height:auto!important}
  .register-state-legend,.register-date-block{justify-content:center!important;height:auto!important}
  .register-search{grid-column:1!important;justify-self:center!important}
}

/* ===== AutoTrace G11 premium registers ===== */
.sidebar-brand-only{height:146px!important;min-height:146px!important;padding:12px 12px 10px!important}
.sidebar-brand-only .sidebar-brand-logo{height:124px!important;object-fit:contain!important;object-position:center top!important}
.brand-logo,.login-logo{object-fit:contain!important}
.sidebar .nav-btn{min-height:52px!important;height:52px!important;padding:0 12px!important;gap:12px!important;border-radius:13px!important;font-size:12px!important;letter-spacing:.01em!important}
.sidebar .nav-btn .nav-icon{width:24px!important;height:24px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#f2fffd!important;opacity:.96!important}
.sidebar .nav-btn .nav-icon svg{width:22px!important;height:22px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.sidebar .nav-btn.active{background:linear-gradient(90deg,rgba(36,156,148,.16),rgba(7,22,27,.72))!important;border-color:rgba(80,224,214,.52)!important;box-shadow:inset 3px 0 0 #4ce2d7!important}

.main{padding-top:12px!important}
.register-heading.register-heading-enhanced,
.register-heading{display:grid!important;grid-template-columns:minmax(310px,1fr) minmax(290px,1fr) minmax(240px,.9fr)!important;align-items:end!important;gap:18px!important;padding:50px 18px 14px!important;min-height:134px!important;border-radius:16px!important}
.register-date-block{align-self:end!important;height:64px!important}
.register-date-block .register-date{font-size:28px!important;letter-spacing:.02em!important}
.register-date-block .readonly-note{font-size:12px!important;margin-top:7px!important}
.register-center{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important}
.register-center h2{position:static!important;transform:none!important;margin:0!important;font-size:32px!important;line-height:1!important;letter-spacing:.03em!important;text-align:center!important}
.register-search{position:relative!important;width:240px!important;max-width:240px!important;height:42px!important;max-height:42px!important}
.register-search input{height:42px!important;border-radius:11px!important;font-size:13px!important;padding:9px 40px 9px 38px!important}
.register-search button{width:28px!important;height:28px!important;top:7px!important;right:6px!important}
.register-search-icon{left:12px!important;top:12px!important;width:16px!important;height:16px!important}
.register-state-legend,
#checkinHeaderMetrics,
#checkoutHeaderMetrics{display:none!important}

.register-table th.c-km,.register-table td.c-km{width:84px!important;min-width:84px!important;max-width:84px!important}
.register-table th.c-ev,.register-table td.c-ev{width:64px!important;min-width:64px!important;max-width:64px!important}
.register-table th.c-notes,.register-table td.c-notes{width:82px!important;min-width:82px!important;max-width:82px!important}
.register-table th.c-actions,.register-table td.c-actions{width:70px!important;min-width:70px!important;max-width:70px!important}
.register-table th.c-status,.register-table td.c-status{width:150px!important;min-width:150px!important;max-width:150px!important}
.register-table th.c-damage,.register-table td.c-damage{min-width:74px!important}
.register-table td.c-status{padding-left:10px!important;padding-right:8px!important}
.register-table td.c-status .status{display:flex!important;align-items:center!important;gap:8px!important;background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;text-transform:none!important;white-space:nowrap!important;font-weight:800!important;font-size:12.4px!important;line-height:1!important;letter-spacing:.01em!important}
.register-table td.c-status .status .status-emoji{font-size:18px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:18px!important}
.register-table td.c-status .status .status-text{display:inline-block!important;color:#f3fbfa!important}
.register-table td.c-status .status-inline-wait .status-emoji{filter:drop-shadow(0 0 5px rgba(243,198,58,.35))}
.register-table td.c-status .status-inline-park .status-emoji{filter:drop-shadow(0 0 5px rgba(78,140,255,.35))}
.register-table td.c-status .status-inline-done .status-emoji{filter:drop-shadow(0 0 5px rgba(75,224,125,.35))}
.register-table td.c-status .status-inline-bad .status-emoji{filter:drop-shadow(0 0 5px rgba(239,77,99,.4))}
.register-table .cell-btn{min-width:56px!important;padding:6px 10px!important}
.register-table input[type="text"],.register-table input[type="number"],.register-table select,.register-table .field-lock{font-size:13px!important}
.register-table tr.register-search-hit td{animation:g11SearchHit 1.2s ease-in-out 3!important}
.register-table tr.register-search-hit td.c-plate,.register-table tr.register-search-hit td.c-plate input,.register-table tr.register-search-hit td.c-plate .field-lock{box-shadow:inset 0 0 0 2px rgba(91,239,218,.92)!important;border-color:rgba(91,239,218,.92)!important}
@keyframes g11SearchHit{0%,100%{background:rgba(7,32,35,.06)}50%{background:rgba(54,176,157,.28)}}

@media(max-width:1300px){
  .register-heading.register-heading-enhanced,.register-heading{grid-template-columns:minmax(270px,1fr) minmax(250px,1fr) minmax(220px,.8fr)!important;gap:14px!important}
  .register-center h2{font-size:28px!important}
  .register-date-block .register-date{font-size:24px!important}
  .register-table th.c-status,.register-table td.c-status{width:142px!important;min-width:142px!important;max-width:142px!important}
}
.register-search-feedback{position:absolute;left:4px;right:4px;bottom:-18px;font-size:11px;line-height:1;color:#e4b345;opacity:0;transition:opacity .18s ease;pointer-events:none;text-align:center}
.register-search-feedback.show{opacity:1}
.register-search-feedback.ok{color:#67dca5}
.register-search input.register-search-miss{border-color:rgba(231,83,103,.82)!important;box-shadow:0 0 0 2px rgba(231,83,103,.18)!important}


/* ===== AutoTrace G12 — premium refinement without logic changes ===== */
:root{
  --g12-bg:#07171c;
  --g12-panel:#0b2026;
  --g12-panel-2:#0d252d;
  --g12-line:rgba(90,203,194,.22);
  --g12-line-strong:rgba(90,203,194,.38);
  --g12-text:#f3fcfa;
  --g12-muted:#a7c6c1;
  --g12-cyan:#49e4d3;
  --g12-green:#59db88;
  --g12-blue:#5a8cff;
  --g12-yellow:#efc156;
  --g12-red:#ef5e73;
}

.app{grid-template-columns:250px minmax(0,1fr)!important;background:linear-gradient(180deg,#06141a,#081d22)!important}
.sidebar{padding:16px 14px 14px!important;background:linear-gradient(180deg,#07171c 0%,#0a2126 100%)!important;border-right:1px solid var(--g12-line)!important;gap:12px!important}
.sidebar-brand-only{height:132px!important;min-height:132px!important;padding:8px 10px 10px!important;border-bottom:0!important;background:transparent!important}
.sidebar-brand-only .sidebar-brand-logo{width:100%!important;height:112px!important;max-width:none!important;object-fit:contain!important;object-position:center center!important;filter:drop-shadow(0 8px 22px rgba(0,0,0,.28))!important}
.sidebar nav{display:grid!important;gap:10px!important;margin:2px 0 0!important;border-bottom:0!important}
.sidebar .nav-btn{height:56px!important;min-height:56px!important;padding:0 14px!important;border:1px solid rgba(103,228,214,.22)!important;border-radius:14px!important;background:rgba(10,28,33,.78)!important;color:var(--g12-text)!important;font-size:14px!important;font-weight:800!important;letter-spacing:.01em!important;text-transform:uppercase!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;text-align:left!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;transition:all .18s ease!important}
.sidebar .nav-btn .nav-icon{width:22px!important;height:22px!important;flex:0 0 22px!important;color:#efffff!important;opacity:.95!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.sidebar .nav-btn .nav-icon svg{width:22px!important;height:22px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.sidebar .nav-btn .nav-label{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.sidebar .nav-btn.active{background:linear-gradient(90deg,rgba(26,173,161,.18),rgba(9,26,31,.92))!important;border-color:rgba(86,232,220,.55)!important;color:#ffffff!important;box-shadow:inset 3px 0 0 var(--g12-cyan),0 0 0 1px rgba(81,226,215,.1)!important}
.sidebar .nav-btn:hover{border-color:rgba(109,240,229,.42)!important;background:rgba(14,36,42,.96)!important}
.sidebar-bottom{padding:8px 0 0!important;margin-top:auto!important}
.sidebar-bottom #currentUserCard{min-height:68px!important;padding:10px 12px!important;border:1px solid rgba(91,211,201,.25)!important;border-radius:14px!important;background:rgba(9,27,31,.84)!important}
#logoutBtn{min-height:50px!important;height:50px!important;border-radius:14px!important;background:rgba(10,28,33,.72)!important;border:1px solid rgba(91,211,201,.25)!important}
#logoutBtn:hover{background:rgba(13,36,41,.92)!important}

.login-logo{max-width:280px!important;width:100%!important;height:120px!important;object-fit:contain!important}
.main{padding:14px 16px 16px!important}
.register-heading.register-heading-enhanced,.register-heading{display:grid!important;grid-template-columns:minmax(300px,1.05fr) minmax(320px,1fr) minmax(240px,.9fr)!important;grid-template-rows:auto auto!important;grid-template-areas:"date title metrics" "date search metrics"!important;align-items:center!important;column-gap:18px!important;row-gap:10px!important;min-height:116px!important;padding:16px 22px 14px!important;margin:0 0 10px!important;border:1px solid rgba(92,198,192,.18)!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(8,25,30,.96),rgba(10,29,34,.92))!important;box-shadow:0 16px 40px rgba(0,0,0,.18)!important}
.register-date-block{grid-area:date!important;display:flex!important;align-items:center!important;gap:14px!important;height:auto!important;align-self:center!important;padding-top:2px!important}
.register-calendar-icon{width:36px!important;height:36px!important;flex:0 0 36px!important;display:grid!important;place-items:center!important;color:var(--g12-cyan)!important}
.register-calendar-icon svg{width:32px!important;height:32px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.9!important}
.register-date-block .register-date{font-size:17px!important;font-weight:900!important;line-height:1.02!important;letter-spacing:.03em!important;color:var(--g12-cyan)!important;text-transform:uppercase!important;white-space:nowrap!important}
.register-date-block .readonly-note{font-size:12px!important;line-height:1.15!important;color:#d2dddd!important;margin-top:6px!important;white-space:nowrap!important}
.register-center{grid-area:title!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important}
.register-center h2{position:static!important;transform:none!important;margin:0!important;font-size:26px!important;line-height:1.02!important;letter-spacing:.02em!important;color:#fff!important;text-align:center!important;text-transform:uppercase!important}
.register-search{grid-area:search!important;justify-self:center!important;align-self:start!important;position:relative!important;width:280px!important;max-width:280px!important;height:42px!important;margin:0!important}
.register-search input{height:42px!important;padding:9px 42px 9px 40px!important;border-radius:12px!important;border:1px solid rgba(101,197,193,.34)!important;background:rgba(6,19,24,.88)!important;color:#fff!important;font-size:13px!important;font-weight:800!important;text-transform:uppercase!important}
.register-search input::placeholder{color:#d3dfdd!important}
.register-search-icon{left:13px!important;top:12px!important;width:16px!important;height:16px!important;color:#ffffff!important}
.register-search button{right:6px!important;top:6px!important;width:28px!important;height:28px!important;color:#f1ffff!important}
.register-state-legend,#checkinHeaderMetrics,#checkoutHeaderMetrics{grid-area:metrics!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:18px!important;align-self:center!important;min-width:0!important;height:auto!important}
.register-state-legend .legend-item,#checkinHeaderMetrics .legend-item,#checkoutHeaderMetrics .legend-item{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;color:#f7fffd!important;white-space:nowrap!important}
.register-state-legend .legend-item i,#checkinHeaderMetrics .legend-item i,#checkoutHeaderMetrics .legend-item i{width:auto!important;height:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:0!important;background:transparent!important;font-style:normal!important;font-size:18px!important;line-height:1!important}
.register-state-legend .legend-item b,#checkinHeaderMetrics .legend-item b,#checkoutHeaderMetrics .legend-item b{font-size:18px!important;line-height:1!important;color:#fff!important}
.register-state-legend .legend-item small,#checkinHeaderMetrics .legend-item small,#checkoutHeaderMetrics .legend-item small{font-size:11px!important;line-height:1!important;font-weight:900!important;color:#eef8f7!important;text-transform:uppercase!important}
.register-state-legend .waiting i,#checkinHeaderMetrics .waiting i,#checkoutHeaderMetrics .waiting i{color:var(--g12-yellow)!important}
.register-state-legend .charge i,#checkinHeaderMetrics .charge i,#checkoutHeaderMetrics .charge i{color:var(--g12-blue)!important}
.register-state-legend .done i,#checkinHeaderMetrics .done i,#checkoutHeaderMetrics .done i{color:var(--g12-green)!important}
.register-state-legend .bad i,#checkinHeaderMetrics .bad i,#checkoutHeaderMetrics .bad i{color:var(--g12-red)!important}

.table-panel{border-radius:18px!important;overflow:hidden!important;border:1px solid rgba(91,197,191,.18)!important;background:linear-gradient(180deg,rgba(9,27,31,.92),rgba(11,31,36,.9))!important}
.table-wrap{border-radius:18px!important}
.register-table thead th{font-size:13px!important;letter-spacing:.01em!important;text-transform:uppercase!important;color:#ecffff!important;background:rgba(10,22,27,.82)!important}
.register-table th,.register-table td{padding:8px 8px!important;border-color:rgba(97,182,180,.18)!important}
.register-table tbody tr:hover td{background:rgba(18,48,52,.18)!important}
.register-table .row-num,.register-table th.row-num,.register-table .c-num{width:40px!important;min-width:40px!important;max-width:40px!important}
.register-table .c-km{width:92px!important;min-width:92px!important;max-width:92px!important}
.register-table .c-ev{width:56px!important;min-width:56px!important;max-width:56px!important}
.register-table .c-notes{width:76px!important;min-width:76px!important;max-width:76px!important}
.register-table .c-actions{width:64px!important;min-width:64px!important;max-width:64px!important}
.register-table .c-wash{width:72px!important;min-width:72px!important;max-width:72px!important}
.register-table .c-status{width:158px!important;min-width:158px!important;max-width:158px!important;padding-left:8px!important;padding-right:8px!important}
.register-table td.c-status .status{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;font-size:12.2px!important;font-weight:800!important;line-height:1.1!important;text-transform:none!important;white-space:normal!important;color:var(--g12-text)!important}
.register-table td.c-status .status .status-emoji{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:18px!important;font-size:17px!important;line-height:1!important;filter:none!important}
.register-table td.c-status .status .status-text{display:inline-block!important;color:#f3fbfa!important}
.register-table td.c-status .status-inline-wait .status-emoji{color:var(--g12-yellow)!important}
.register-table td.c-status .status-inline-park .status-emoji{color:var(--g12-blue)!important}
.register-table td.c-status .status-inline-done .status-emoji{color:var(--g12-green)!important}
.register-table td.c-status .status-inline-bad .status-emoji{color:var(--g12-red)!important}
.register-table .cell-btn{min-width:52px!important;padding:6px 8px!important}
.register-table input[type="text"],.register-table input[type="number"],.register-table select,.register-table .field-lock{font-size:13px!important;border-radius:12px!important;background:rgba(8,24,28,.82)!important;border:1px solid rgba(91,197,191,.22)!important}
.register-table tr.register-search-hit td{animation:g12SearchHit 1.25s ease-in-out 3!important}
.register-table tr.register-search-hit td.c-plate,.register-table tr.register-search-hit td.c-plate input,.register-table tr.register-search-hit td.c-plate .field-lock{box-shadow:inset 0 0 0 2px rgba(88,232,209,.96)!important;border-color:rgba(88,232,209,.96)!important}
@keyframes g12SearchHit{0%,100%{background:rgba(8,27,31,.08)}50%{background:rgba(56,176,159,.32)}}

#currentUserCard{display:flex!important;align-items:center!important;justify-content:center!important;text-align:left!important}
#currentUserCard .user-row{justify-content:center!important}
#currentUserCard .avatar,#currentUserCard .user-avatar{width:34px!important;height:34px!important;min-width:34px!important}

@media(max-width:1360px){
  .app{grid-template-columns:232px minmax(0,1fr)!important}
  .register-heading.register-heading-enhanced,.register-heading{grid-template-columns:minmax(250px,1fr) minmax(250px,1fr) minmax(220px,.9fr)!important}
  .register-center h2{font-size:24px!important}
  .register-search{width:250px!important;max-width:250px!important}
  .register-state-legend,#checkinHeaderMetrics,#checkoutHeaderMetrics{gap:14px!important}
  .register-state-legend .legend-item b,#checkinHeaderMetrics .legend-item b,#checkoutHeaderMetrics .legend-item b{font-size:16px!important}
  .register-state-legend .legend-item small,#checkinHeaderMetrics .legend-item small,#checkoutHeaderMetrics .legend-item small{font-size:10px!important}
}
@media(max-width:1080px){
  .app{grid-template-columns:1fr!important}
  .sidebar{padding:12px!important}
  .register-heading.register-heading-enhanced,.register-heading{grid-template-columns:1fr!important;grid-template-areas:"title" "date" "search" "metrics"!important;row-gap:12px!important}
  .register-date-block,.register-state-legend,#checkinHeaderMetrics,#checkoutHeaderMetrics{justify-content:center!important}
}

/* ===== AutoTrace G13 — consegnata / riconsegnata ===== */
.register-heading.register-heading-enhanced,.register-heading{
  grid-template-columns:minmax(300px,1fr) minmax(360px,1.25fr)!important;
  grid-template-areas:"date title" "date search"!important;
}
.register-state-legend,#checkinHeaderMetrics,#checkoutHeaderMetrics{display:none!important}
.register-table .c-status{width:92px!important;min-width:92px!important;max-width:92px!important;text-align:center!important;padding-left:5px!important;padding-right:5px!important}
.register-table th.c-status{font-size:11.5px!important;line-height:1.05!important;white-space:normal!important}
.register-table td.c-status .status{width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.movement-check{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;border-radius:50%!important;border:1px solid rgba(89,219,136,.5)!important;background:rgba(56,169,102,.12)!important;color:#68e397!important;font-size:0!important;box-shadow:0 0 0 3px rgba(76,208,132,.05)!important}
.movement-check svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.5!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.movement-empty{display:inline-block!important;width:18px!important;height:1px!important;background:rgba(196,220,216,.28)!important;border-radius:2px!important}
.movement-cancelled{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:26px!important;height:26px!important;border-radius:50%!important;border:1px solid rgba(239,94,115,.48)!important;background:rgba(160,37,57,.12)!important;color:#f16b7d!important;font-weight:900!important;font-size:16px!important}
.archive-register-card .movement-check,.report-day-block .movement-check{width:25px!important;height:25px!important}
.archive-register-card .movement-check svg,.report-day-block .movement-check svg{width:15px!important;height:15px!important}
.supplier-report-panel .muted{max-width:760px!important}
@media(max-width:1360px){
  .register-heading.register-heading-enhanced,.register-heading{grid-template-columns:minmax(250px,1fr) minmax(310px,1.15fr)!important}
  .register-table .c-status{width:84px!important;min-width:84px!important;max-width:84px!important}
}
@media(max-width:1080px){
  .register-heading.register-heading-enhanced,.register-heading{grid-template-columns:1fr!important;grid-template-areas:"title" "date" "search"!important}
}

/* ===== AutoTrace G14 — checkout premium refinement, no logic changes ===== */
:root{
  --g14-cell-bg:#081319;
  --g14-cell-bg-2:#0a161c;
  --g14-cell-line:rgba(139,227,213,.24);
  --g14-cell-line-strong:rgba(139,227,213,.38);
  --g14-cell-text:#f4fbfa;
  --g14-cell-muted:#b9ceca;
}

#view-checkin .register-table th.c-km,
#view-checkin .register-table td.c-km,
#view-checkout .register-table th.c-km,
#view-checkout .register-table td.c-km{width:92px!important;min-width:92px!important;max-width:92px!important}
#view-checkout .register-table th.c-ev,
#view-checkout .register-table td.c-ev{width:56px!important;min-width:56px!important;max-width:56px!important}
#view-checkout .register-table th.c-notes,
#view-checkout .register-table td.c-notes{width:74px!important;min-width:74px!important;max-width:74px!important}
#view-checkout .register-table th.c-check,
#view-checkout .register-table td.c-check{width:94px!important;min-width:94px!important;max-width:94px!important}
#view-checkout .register-table th.c-wash,
#view-checkout .register-table td.c-wash{width:86px!important;min-width:86px!important;max-width:86px!important}
#view-checkout .register-table th.c-status,
#view-checkout .register-table td.c-status{width:108px!important;min-width:108px!important;max-width:108px!important}
#view-checkout .register-table th.c-actions,
#view-checkout .register-table td.c-actions{width:64px!important;min-width:64px!important;max-width:64px!important}

#view-checkin .field-value,
#view-checkout .field-value,
#view-checkin .transparent-cell-action,
#view-checkout .transparent-cell-action,
#view-checkin .checklist-cell-preview,
#view-checkout .checklist-cell-preview,
#view-checkin .cell-btn,
#view-checkout .cell-btn,
#view-checkin .signature-box,
#view-checkout .signature-box,
#view-checkin .signature-id-input,
#view-checkout .signature-id-input,
#view-checkin .wash-select,
#view-checkout .wash-select,
#view-checkin .register-table input[type="text"],
#view-checkout .register-table input[type="text"],
#view-checkin .register-table input[type="number"],
#view-checkout .register-table input[type="number"],
#view-checkin .register-table select,
#view-checkout .register-table select{
  background:var(--g14-cell-bg)!important;
  border:1px solid var(--g14-cell-line)!important;
  color:var(--g14-cell-text)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}

#view-checkin .field-value,
#view-checkout .field-value{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:40px!important;
  width:100%!important;
  padding:8px 10px!important;
  text-align:center!important;
}

#view-checkin .transparent-cell-action,
#view-checkout .transparent-cell-action,
#view-checkin .cell-btn,
#view-checkout .cell-btn,
#view-checkin .signature-id-input,
#view-checkout .signature-id-input,
#view-checkin .wash-select,
#view-checkout .wash-select,
#view-checkin .register-table input[type="text"],
#view-checkout .register-table input[type="text"],
#view-checkin .register-table select,
#view-checkout .register-table select{
  min-height:40px!important;
  height:40px!important;
  font-size:13px!important;
  font-weight:700!important;
}

#view-checkout .transparent-cell-action,
#view-checkout .cell-btn,
#view-checkin .transparent-cell-action,
#view-checkin .cell-btn{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

#view-checkin .signature-box,
#view-checkout .signature-box{
  min-height:40px!important;
  padding:6px 8px!important;
  justify-content:center!important;
  background:var(--g14-cell-bg)!important;
}
#view-checkin .signature-name,
#view-checkout .signature-name{color:#ffffff!important;font-size:13px!important}
#view-checkin .signature-box small,
#view-checkout .signature-box small{color:var(--g14-cell-muted)!important;font-size:10px!important}

#view-checkout .checklist-cell-preview{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  width:100%!important;
  min-height:54px!important;
  height:54px!important;
  padding:4px!important;
  overflow:hidden!important;
}
#view-checkout .checklist-cell-preview img{
  width:100%!important;
  height:32px!important;
  object-fit:cover!important;
  border-radius:7px!important;
}
#view-checkout .checklist-cell-preview small{
  font-size:10px!important;
  line-height:1!important;
  color:var(--g14-cell-muted)!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
  text-transform:uppercase!important;
}
#view-checkout .checklist-cell-online .mini-paper-lines{
  width:36px!important;
  height:24px!important;
  border-radius:6px!important;
  border:1px solid var(--g14-cell-line)!important;
  background:linear-gradient(180deg,#f2f3ef,#d8ddd8)!important;
  box-shadow:inset 0 -10px 0 rgba(255,164,64,.78)!important;
}
#view-checkout .checklist-cell-online{color:var(--g14-cell-text)!important}
#view-checkout .checklist-mode-manual small,
#view-checkout .checklist-mode-online small{margin-top:0!important}

#view-checkout .movement-check,
#view-checkin .movement-check,
.archive-register-card .movement-check,
.report-day-block .movement-check{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:26px!important;
  height:26px!important;
  border-radius:9px!important;
  border:1px solid var(--g14-cell-line)!important;
  background:var(--g14-cell-bg)!important;
  box-shadow:none!important;
  color:#ffffff!important;
}
#view-checkout .movement-check svg,
#view-checkin .movement-check svg,
.archive-register-card .movement-check svg,
.report-day-block .movement-check svg{
  width:15px!important;height:15px!important;stroke:#ffffff!important;stroke-width:2.5!important;
}
#view-checkout .movement-empty,
#view-checkin .movement-empty,
.archive-register-card .movement-empty,
.report-day-block .movement-empty{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:26px!important;
  height:26px!important;
  border-radius:9px!important;
  border:1px solid var(--g14-cell-line)!important;
  background:var(--g14-cell-bg)!important;
  font-size:0!important;
}
#view-checkout .movement-empty::before,
#view-checkin .movement-empty::before,
.archive-register-card .movement-empty::before,
.report-day-block .movement-empty::before{
  content:"";
  width:10px;
  height:2px;
  border-radius:2px;
  background:rgba(255,255,255,.38);
}
#view-checkout .movement-cancelled,
#view-checkin .movement-cancelled,
.archive-register-card .movement-cancelled,
.report-day-block .movement-cancelled{
  width:26px!important;height:26px!important;border-radius:9px!important;border:1px solid rgba(239,94,115,.48)!important;background:rgba(101,24,36,.22)!important;color:#fff!important;font-size:16px!important;
}

#view-checkout .c-status,
#view-checkin .c-status{text-align:center!important}
#view-checkout .c-status .status,
#view-checkin .c-status .status{background:transparent!important;border:0!important;padding:0!important}

#view-checkout .register-heading,
#view-checkin .register-heading{align-items:center!important;padding-top:24px!important;min-height:104px!important}
#view-checkout .register-center h2,
#view-checkin .register-center h2{font-size:30px!important}
#view-checkout .register-date-block,
#view-checkin .register-date-block{display:flex!important;flex-direction:column!important;justify-content:center!important}
#view-checkout .register-date-block .register-date,
#view-checkin .register-date-block .register-date{font-size:25px!important;line-height:1.05!important}

#view-checkout .c-damage .damage-cell-compact,
#view-checkout .c-damage .damage-cell-empty{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  width:100%!important;
  min-height:18px!important;
  color:var(--g14-cell-text)!important;
}


/* AutoTrace G15 — rifinitura finale premium */
:root{
  --g15-panel-bg:linear-gradient(180deg,rgba(6,18,23,.96),rgba(9,24,29,.93));
  --g15-border:rgba(91,196,191,.18);
  --g15-title:#ffffff;
  --g15-cyan:#46e6dc;
  --g15-muted:#9fb0b8;
  --g15-field-bg:rgba(8,16,22,.94);
  --g15-field-border:rgba(111,145,163,.26);
  --g15-field-text:#f5fbff;
  --g15-field-placeholder:#95a8b4;
}

.sidebar-brand-only{padding-top:10px!important;padding-bottom:14px!important}
.sidebar-brand-only .sidebar-brand-logo{width:100%!important;height:150px!important;max-width:none!important;object-fit:contain!important;object-position:center center!important;filter:drop-shadow(0 10px 24px rgba(0,0,0,.28))!important}

#view-checkin .register-heading.register-heading-enhanced,
#view-checkout .register-heading.register-heading-enhanced,
#view-checkin .register-heading,
#view-checkout .register-heading{
  display:grid!important;
  grid-template-columns:minmax(285px,1fr) minmax(310px,1fr) minmax(230px,.95fr)!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:"date title meta" "date search meta"!important;
  align-items:center!important;
  column-gap:18px!important;
  row-gap:10px!important;
  min-height:128px!important;
  padding:18px 24px 16px!important;
  border:1px solid var(--g15-border)!important;
  border-radius:18px!important;
  background:var(--g15-panel-bg)!important;
}
#view-checkin .register-date-block,
#view-checkout .register-date-block{grid-area:date!important;display:flex!important;align-items:center!important;gap:14px!important;height:auto!important;padding:0!important;margin:0!important}
#view-checkin .register-calendar-icon,
#view-checkout .register-calendar-icon{width:30px!important;height:30px!important;color:var(--g15-cyan)!important;flex:0 0 30px!important}
#view-checkin .register-date-block .register-date,
#view-checkout .register-date-block .register-date{font-size:23px!important;font-weight:900!important;line-height:1.03!important;letter-spacing:.02em!important;color:var(--g15-cyan)!important;text-transform:uppercase!important;white-space:nowrap!important}
#view-checkin .register-date-block .readonly-note,
#view-checkout .register-date-block .readonly-note{margin-top:4px!important;font-size:11px!important;line-height:1.15!important;color:#cfdbdb!important;text-align:left!important;white-space:nowrap!important}
#view-checkin .register-center,
#view-checkout .register-center{grid-area:title!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important}
#view-checkin .register-center h2,
#view-checkout .register-center h2{position:static!important;transform:none!important;margin:0!important;font-size:28px!important;line-height:1!important;letter-spacing:.03em!important;color:var(--g15-title)!important;text-align:center!important;text-transform:uppercase!important}
#view-checkin .register-search,
#view-checkout .register-search{grid-area:search!important;position:relative!important;justify-self:center!important;align-self:start!important;width:250px!important;max-width:250px!important;height:42px!important;margin:0!important}
#view-checkin .register-search input,
#view-checkout .register-search input{width:100%!important;height:42px!important;padding:9px 40px 9px 38px!important;border-radius:12px!important;border:1px solid rgba(100,166,171,.28)!important;background:rgba(7,17,22,.94)!important;color:#fff!important;font-size:13px!important;font-weight:800!important;text-transform:uppercase!important;box-shadow:none!important}
#view-checkin .register-search input::placeholder,
#view-checkout .register-search input::placeholder{color:#dbe5e7!important}
#view-checkin .register-search-icon,
#view-checkout .register-search-icon{left:12px!important;top:12px!important;width:16px!important;height:16px!important;color:#ffffff!important}
#view-checkin .register-search button,
#view-checkout .register-search button{position:absolute!important;right:6px!important;top:6px!important;width:28px!important;height:28px!important;border:0!important;background:transparent!important;color:#f5ffff!important;margin:0!important;padding:0!important}

#checkinHeaderMetrics,
#checkoutHeaderMetrics{grid-area:meta!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;height:auto!important;min-width:0!important}
.header-user-meta{display:flex!important;align-items:center!important;gap:12px!important;justify-content:flex-end!important;text-align:right!important}
.header-user-icon{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;color:var(--g15-cyan)!important;opacity:.96}
.header-user-icon svg{width:26px!important;height:26px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.header-user-copy{display:grid!important;gap:1px!important;justify-items:end!important}
.header-user-copy small{font-size:10px!important;line-height:1.05!important;font-weight:900!important;letter-spacing:.08em!important;color:#95b1b6!important;text-transform:uppercase!important}
.header-user-copy strong{font-size:15px!important;line-height:1.05!important;color:#ffffff!important}
.header-user-copy span{font-size:11px!important;line-height:1.1!important;color:#c8d6d8!important}

#view-checkout .table-wrap,
#view-checkin .table-wrap{overflow-x:auto!important;overflow-y:auto!important}

#view-checkout .register-table,
#view-checkin .register-table{table-layout:fixed!important;width:100%!important}
#view-checkout .register-table th,
#view-checkout .register-table td,
#view-checkin .register-table th,
#view-checkin .register-table td{vertical-align:middle!important}

/* checkout widths */
#view-checkout .register-table th:nth-child(2),#view-checkout .register-table td:nth-child(2){width:108px!important;min-width:108px!important;max-width:108px!important}
#view-checkout .register-table th:nth-child(3),#view-checkout .register-table td:nth-child(3){width:156px!important;min-width:156px!important;max-width:156px!important}
#view-checkout .register-table th:nth-child(4),#view-checkout .register-table td:nth-child(4){width:68px!important;min-width:68px!important;max-width:68px!important}
#view-checkout .register-table th:nth-child(5),#view-checkout .register-table td:nth-child(5){width:78px!important;min-width:78px!important;max-width:78px!important}
#view-checkout .register-table th:nth-child(6),#view-checkout .register-table td:nth-child(6){width:54px!important;min-width:54px!important;max-width:54px!important}
#view-checkout .register-table th:nth-child(7),#view-checkout .register-table td:nth-child(7){width:82px!important;min-width:82px!important;max-width:82px!important}
#view-checkout .register-table th:nth-child(8),#view-checkout .register-table td:nth-child(8){width:76px!important;min-width:76px!important;max-width:76px!important}
#view-checkout .register-table th:nth-child(9),#view-checkout .register-table td:nth-child(9){width:86px!important;min-width:86px!important;max-width:86px!important}
#view-checkout .register-table th:nth-child(10),#view-checkout .register-table td:nth-child(10){width:74px!important;min-width:74px!important;max-width:74px!important}
#view-checkout .register-table th:nth-child(11),#view-checkout .register-table td:nth-child(11){width:124px!important;min-width:124px!important;max-width:124px!important}
#view-checkout .register-table th:nth-child(12),#view-checkout .register-table td:nth-child(12){width:124px!important;min-width:124px!important;max-width:124px!important}
#view-checkout .register-table th:nth-child(13),#view-checkout .register-table td:nth-child(13){width:84px!important;min-width:84px!important;max-width:84px!important;text-align:center!important}
#view-checkout .register-table th:nth-child(14),#view-checkout .register-table td:nth-child(14){width:74px!important;min-width:74px!important;max-width:74px!important}

/* shared input-like dark style */
#view-checkin .register-table input,
#view-checkout .register-table input,
#view-checkout .register-table select,
#view-checkin .register-table select,
#view-checkout .field-value,
#view-checkin .field-value,
#view-checkout .transparent-cell-action,
#view-checkin .transparent-cell-action,
#view-checkout .checklist-cell-preview,
#view-checkout .checklist-cell-online,
#view-checkout .signature-box,
#view-checkin .signature-box,
#view-checkout .signature-id-input,
#view-checkin .signature-id-input,
#view-checkout td.c-sign > .muted,
#view-checkin td.c-sign > .muted,
#view-checkout .wash-select,
#view-checkout .field-compact,
#view-checkin .field-compact{
  background:var(--g15-field-bg)!important;
  border:1px solid var(--g15-field-border)!important;
  border-radius:11px!important;
  color:var(--g15-field-text)!important;
  box-shadow:none!important;
}
#view-checkin .register-table input::placeholder,
#view-checkout .register-table input::placeholder{color:var(--g15-field-placeholder)!important}
#view-checkout .field-value,
#view-checkin .field-value{display:flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;padding:0 10px!important;text-align:center!important;font-weight:700!important}
#view-checkout td.c-sign > .muted,
#view-checkin td.c-sign > .muted{display:flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;width:100%!important;padding:0 10px!important;color:var(--g15-field-placeholder)!important;font-weight:700!important}
#view-checkout .signature-box,
#view-checkin .signature-box{display:grid!important;align-content:center!important;justify-items:center!important;min-height:40px!important;padding:6px 8px!important}
#view-checkout .signature-name,
#view-checkin .signature-name{font-size:12px!important}
#view-checkout .signature-box small,
#view-checkin .signature-box small{font-size:10px!important;color:#b2c2c8!important}
#view-checkout .signature-id-input,
#view-checkin .signature-id-input{width:100%!important;min-height:40px!important;padding:8px 10px!important;text-align:center!important;font-weight:700!important}

#view-checkout .c-damage .transparent-cell-action,
#view-checkout .c-notes input,
#view-checkout .c-wash select,
#view-checkout .c-check .transparent-cell-action,
#view-checkout .c-actions .cell-btn,
#view-checkin .c-damage .transparent-cell-action,
#view-checkin .c-actions .cell-btn{min-height:40px!important;height:40px!important;width:100%!important;padding:0 8px!important}

#view-checkout .c-damage .transparent-cell-action .damage-cell-empty,
#view-checkout .c-damage .transparent-cell-action .damage-cell-compact,
#view-checkin .c-damage .transparent-cell-action{color:var(--g15-field-placeholder)!important;font-weight:700!important}
#view-checkout .damage-cell-compact{display:flex!important;flex-direction:column!important;gap:2px!important;align-items:center!important;justify-content:center!important;width:100%!important}
#view-checkout .damage-cell-compact span{display:block!important;line-height:1.05!important;color:#e8f1f4!important;font-size:11px!important;font-weight:700!important}

#view-checkout .checklist-cell-preview,
#view-checkout .checklist-cell-online{display:grid!important;place-items:center!important;align-content:center!important;gap:3px!important;min-height:52px!important;height:52px!important;padding:4px!important;overflow:hidden!important}
#view-checkout .checklist-cell-preview img{width:100%!important;height:28px!important;object-fit:cover!important;border-radius:6px!important;background:#fff!important}
#view-checkout .checklist-cell-preview small,
#view-checkout .checklist-cell-online small{font-size:10px!important;line-height:1!important;color:#d9e3e6!important;font-weight:900!important;letter-spacing:.04em!important;text-transform:uppercase!important}
#view-checkout .checklist-cell-online .mini-paper-lines{width:34px!important;height:20px!important;border-radius:5px!important;border:1px solid rgba(0,0,0,.08)!important;background:linear-gradient(180deg,#f1f4ef,#d7ddd8)!important;box-shadow:inset 0 -9px 0 rgba(255,161,52,.82)!important}
#view-checkout .transparent-cell-action,
#view-checkin .transparent-cell-action{display:flex!important;align-items:center!important;justify-content:center!important;color:#d8e1e4!important;font-weight:700!important}
#view-checkout .transparent-cell-action:hover,
#view-checkin .transparent-cell-action:hover,
#view-checkout .checklist-cell-preview:hover,
#view-checkout .checklist-cell-online:hover{border-color:rgba(102,219,208,.48)!important}

#view-checkout .movement-check,
#view-checkout .movement-empty,
#view-checkout .movement-cancelled,
#view-checkin .movement-check,
#view-checkin .movement-empty,
#view-checkin .movement-cancelled{width:22px!important;height:22px!important;border-radius:7px!important}
#view-checkout .movement-empty::before,
#view-checkin .movement-empty::before{width:8px!important}

#view-checkout .c-actions .cell-btn,
#view-checkin .c-actions .cell-btn{font-size:12px!important;font-weight:800!important;border-radius:11px!important;background:var(--g15-field-bg)!important;border:1px solid var(--g15-field-border)!important;color:#f7fbfd!important}
#view-checkout .c-actions .cell-btn:hover,
#view-checkin .c-actions .cell-btn:hover{border-color:rgba(98,217,207,.46)!important}

#view-checkout .register-table td.c-sign,
#view-checkin .register-table td.c-sign{padding-left:6px!important;padding-right:6px!important}
#view-checkout .register-table td.c-status,
#view-checkin .register-table td.c-status{text-align:center!important}

@media (max-width: 1180px){
  #view-checkin .register-heading.register-heading-enhanced,
  #view-checkout .register-heading.register-heading-enhanced,
  #view-checkin .register-heading,
  #view-checkout .register-heading{grid-template-columns:1fr!important;grid-template-areas:"title" "date" "search" "meta"!important;row-gap:12px!important;padding:18px!important}
  #view-checkin .register-date-block,
  #view-checkout .register-date-block,
  #checkinHeaderMetrics,#checkoutHeaderMetrics{justify-content:center!important}
  .header-user-meta,.header-user-copy{justify-items:center!important;text-align:center!important}
}


/* AutoTrace G16 — correzione definitiva layout registri e logo */
.sidebar{padding-top:10px!important}
.sidebar-brand-only{height:190px!important;min-height:190px!important;padding:6px 8px 12px!important;background:transparent!important;overflow:visible!important}
.sidebar-brand-only .sidebar-brand-logo{display:block!important;width:100%!important;height:172px!important;max-width:none!important;object-fit:contain!important;object-position:center center!important;background:transparent!important;filter:drop-shadow(0 8px 20px rgba(0,0,0,.3))!important}
.sidebar-bottom #currentUserCard{display:none!important}

#view-checkin .register-heading.register-heading-enhanced,
#view-checkout .register-heading.register-heading-enhanced{
  grid-template-columns:minmax(315px,1fr) minmax(330px,1fr) minmax(250px,1fr)!important;
  grid-template-areas:"date title meta" "date search meta"!important;
  min-height:126px!important;
  padding:18px 26px 16px!important;
}
#view-checkin .register-center,
#view-checkout .register-center{grid-area:title!important;align-items:center!important;justify-content:center!important}
#view-checkin .register-center h2,
#view-checkout .register-center h2{width:100%!important;text-align:center!important;font-size:29px!important}
#view-checkin .register-search,
#view-checkout .register-search{grid-area:search!important;justify-self:center!important;width:260px!important;max-width:260px!important;margin:0 auto!important}
#view-checkin .register-date-block,
#view-checkout .register-date-block{grid-area:date!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important}
#view-checkin .register-calendar-icon,
#view-checkout .register-calendar-icon{width:40px!important;height:40px!important;flex:0 0 40px!important;display:grid!important;place-items:center!important}
#view-checkin .register-calendar-icon svg,
#view-checkout .register-calendar-icon svg{width:36px!important;height:36px!important}
#checkinHeaderMetrics,#checkoutHeaderMetrics{grid-area:meta!important;display:flex!important;justify-content:flex-end!important;align-items:center!important}

#view-checkin .register-table th:nth-child(5),#view-checkin .register-table td:nth-child(5){width:88px!important;min-width:88px!important;max-width:88px!important}
#view-checkin .register-table th:nth-child(9),#view-checkin .register-table td:nth-child(9),
#view-checkin .register-table th:nth-child(10),#view-checkin .register-table td:nth-child(10){width:136px!important;min-width:136px!important;max-width:136px!important}
#view-checkin .register-table th:nth-child(11),#view-checkin .register-table td:nth-child(11){width:122px!important;min-width:122px!important;max-width:122px!important;text-align:center!important;white-space:nowrap!important}
#view-checkin .register-table th:nth-child(12),#view-checkin .register-table td:nth-child(12){width:72px!important;min-width:72px!important;max-width:72px!important}

#view-checkout .register-table th:nth-child(4),#view-checkout .register-table td:nth-child(4){width:82px!important;min-width:82px!important;max-width:82px!important}
#view-checkout .register-table th:nth-child(8),#view-checkout .register-table td:nth-child(8){width:94px!important;min-width:94px!important;max-width:94px!important}
#view-checkout .register-table th:nth-child(9),#view-checkout .register-table td:nth-child(9){width:106px!important;min-width:106px!important;max-width:106px!important;white-space:nowrap!important}
#view-checkout .register-table th:nth-child(10),#view-checkout .register-table td:nth-child(10),
#view-checkout .register-table th:nth-child(11),#view-checkout .register-table td:nth-child(11){width:134px!important;min-width:134px!important;max-width:134px!important}
#view-checkout .register-table th:nth-child(12),#view-checkout .register-table td:nth-child(12){width:102px!important;min-width:102px!important;max-width:102px!important;text-align:center!important;white-space:nowrap!important}
#view-checkout .register-table th:nth-child(13),#view-checkout .register-table td:nth-child(13){width:72px!important;min-width:72px!important;max-width:72px!important}

#view-checkin th.c-status,#view-checkout th.c-status{font-size:12px!important;letter-spacing:.01em!important}
#view-checkin td.c-status,#view-checkout td.c-status{text-align:center!important}
#view-checkin .movement-check,#view-checkout .movement-check{background:transparent!important;border:0!important;width:22px!important;height:22px!important;border-radius:0!important;color:#fff!important}
#view-checkin .movement-empty,#view-checkout .movement-empty{background:var(--g15-field-bg)!important;border:1px solid var(--g15-field-border)!important}

@media(max-width:1280px){
  #view-checkin .register-heading.register-heading-enhanced,
  #view-checkout .register-heading.register-heading-enhanced{grid-template-columns:minmax(270px,1fr) minmax(300px,1fr) minmax(220px,.9fr)!important}
  .sidebar-brand-only{height:172px!important;min-height:172px!important}
  .sidebar-brand-only .sidebar-brand-logo{height:156px!important}
}


/* AutoTrace G17 — righe riportate con lo stesso stile del registro */
#view-checkin .carryover-row td{background:transparent!important}
#view-checkin .carryover-row .c-plate .field-value,
#view-checkin .carryover-row .c-plate input{animation:none!important;background:transparent!important;color:inherit!important;border-radius:0!important;font-weight:inherit!important}


/* AutoTrace G18 — nessuna differenza grafica per righe riportate */
#view-checkin tr.carryover-row,
#view-checkout tr.carryover-row{background:transparent!important}
#view-checkin tr.carryover-row td,
#view-checkout tr.carryover-row td{background:inherit!important}
#view-checkin tr.carryover-row .field-value,
#view-checkout tr.carryover-row .field-value,
#view-checkin tr.carryover-row input,
#view-checkout tr.carryover-row input,
#view-checkin tr.carryover-row select,
#view-checkout tr.carryover-row select{animation:none!important;opacity:1!important}

/* AutoTrace G19 — scheda danni completa e targa sempre visibile */
.damage-vehicle-id{
  display:grid!important;
  grid-template-columns:auto minmax(120px,auto) 1fr!important;
  align-items:center!important;
  gap:10px 14px!important;
  margin:0 0 16px!important;
  padding:13px 16px!important;
  border:1px solid rgba(94,232,211,.34)!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,rgba(25,78,84,.78),rgba(15,35,43,.92))!important;
  box-shadow:0 8px 24px rgba(0,0,0,.18)!important;
}
.damage-vehicle-id>span{
  font-size:10px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
  color:#9edbd3!important;
}
.damage-vehicle-id>strong{
  font-size:24px!important;
  line-height:1!important;
  letter-spacing:.08em!important;
  color:#fff!important;
}
.damage-vehicle-id>small{
  justify-self:end!important;
  font-size:13px!important;
  font-weight:700!important;
  color:#d8e8e5!important;
}
.checkout-damage-sources h3{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
.checkout-damage-sources h3 em{
  display:inline-grid!important;
  place-items:center!important;
  min-width:27px!important;
  height:27px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:rgba(82,226,207,.15)!important;
  border:1px solid rgba(82,226,207,.34)!important;
  color:#bff8ee!important;
  font-size:12px!important;
  font-style:normal!important;
}
.supplier-damage-full-list{margin-top:10px!important;max-height:330px!important;overflow:auto!important}
.damage-v23-list{max-height:360px!important;overflow:auto!important}
.damage-v23-list h3::after{content:" — elenco completo";font-size:11px;font-weight:600;color:#9fb5b0}
@media(max-width:700px){
  .damage-vehicle-id{grid-template-columns:auto 1fr!important}
  .damage-vehicle-id>small{grid-column:1/-1!important;justify-self:start!important}
}
.damage-v23-list h3{display:flex!important;align-items:center!important;gap:8px!important}
.damage-v23-list h3 em{font-style:normal!important;font-size:11px!important;min-width:23px!important;height:23px!important;display:inline-grid!important;place-items:center!important;border-radius:999px!important;background:rgba(82,226,207,.15)!important;color:#c9fff6!important}
.damage-v23-layout .zone-pin.has-damage:not(.active){background:#17675f!important;border-color:#8bfff0!important;box-shadow:0 0 0 3px rgba(82,226,207,.22)!important}


/* AutoTrace G36 — mappa danni check-out integrata nella stessa scheda */
.modal-card.damage-inline-modal-card{width:min(1220px,98vw)!important}
.checkout-damage-inline{display:grid;grid-template-columns:minmax(260px,.58fr) minmax(620px,1.42fr);gap:16px;align-items:start}
.checkout-damage-inline>section{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:14px;min-width:0}
.checkout-damage-inline h3{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.checkout-damage-inline h3 em{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#17675f;color:#bafff3;font-style:normal;font-size:12px}
.checkout-existing-full-list{max-height:690px;overflow:auto}
.checkout-supplier-editor{display:grid;gap:12px}
.damage-inline-map-layout{display:block!important}
.damage-inline-map-layout .damage-v23-map{width:100%;max-width:760px;margin:0 auto}
.damage-inline-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.supplier-inline-damage-list{max-height:240px;overflow:auto}
@media(max-width:980px){.modal-card.damage-inline-modal-card{width:98vw!important}.checkout-damage-inline{grid-template-columns:1fr}.checkout-existing-full-list{max-height:250px}.damage-inline-controls{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.damage-inline-controls{grid-template-columns:1fr}.checkout-damage-inline>section{padding:10px}}


/* AutoTrace G36 — scheda danni check-out compatta con mappa verticale laterale */
.modal-card.damage-inline-modal-card{width:min(1180px,97vw)!important}
.checkout-damage-g21{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.checkout-damage-g21-main{display:grid;gap:12px;min-width:0}
.checkout-damage-g21-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.checkout-damage-g21-main>section,.checkout-damage-g21-main>.damage-inline-controls,.checkout-damage-g21-map{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:14px;min-width:0}
.checkout-damage-g21-main h3,.checkout-damage-g21-map .checkout-map-mini-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.checkout-damage-g21-main h3 em{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#17675f;color:#bafff3;font-style:normal;font-size:12px}
.checkout-damage-g21 .damage-v23-list{max-height:210px;overflow:auto}
.checkout-damage-g21 .checkout-existing-full-list{max-height:180px;overflow:auto}
.checkout-damage-g21 .damage-v23-map{background:#fff;border-radius:12px;padding:10px}
.checkout-damage-g21-map{padding:12px}
.checkout-map-mini-label{color:#fff;font-size:15px;font-weight:700}
.damage-map-vertical-small{width:100%;max-width:276px;margin:0 auto}
.damage-map-vertical-small .car-image-wrap{width:100%}
.damage-map-vertical-small img{display:block;width:100%;height:auto;max-height:640px;object-fit:contain}
.checkout-damage-g21 .damage-v23-entry{grid-template-columns:1fr auto}
.checkout-damage-g21 .damage-v23-guided{display:grid;align-content:start;gap:9px}
.checkout-damage-g21 #saveDamage{margin-top:2px}
@media(max-width:980px){.checkout-damage-g21{grid-template-columns:1fr}.checkout-damage-g21-map{order:-1}.damage-map-vertical-small{max-width:240px}.checkout-damage-g21-controls{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.checkout-damage-g21-controls{grid-template-columns:1fr}.modal-card.damage-inline-modal-card{width:98vw!important}}


/* AutoTrace G36 — checklist modello Europcar, completa e divisa in sezioni */
.modal-card.checklist-modal-card{width:min(1140px,98vw)!important;max-height:95vh!important}
.modal-card.online-checklist-preview-modal{width:min(1140px,98vw)!important;max-height:95vh!important}
.checklist-europcar{padding:16px 16px 14px;background:#fff;color:#182128;border-radius:12px;box-shadow:0 10px 32px rgba(0,0,0,.18)}
.checklist-europcar-head{grid-template-columns:260px 1fr;gap:16px;padding-bottom:12px;border-bottom:2px solid #29353a}
.checklist-brand-box{display:grid;align-content:start;gap:8px}
.checklist-brand-tag{display:inline-block;background:#f0f3f3;border:2px solid #303a3e;padding:10px 12px;border-radius:6px;font-size:24px;font-weight:900;text-transform:uppercase;letter-spacing:.5px;color:#1b2529}
.checklist-brand-box small{color:#6c7880;font-size:12px;font-weight:700;text-transform:uppercase}
.checklist-europcar-meta{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.checklist-europcar-meta span{min-height:58px;display:flex;flex-direction:column;justify-content:center}
.paper-sections-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:14px;align-items:start}
.paper-sections-column{display:grid;gap:12px;align-content:start}
.paper-section{border:1px solid #b8c3c8;border-radius:10px;overflow:hidden;background:#fafcfc}
.paper-section-title{padding:9px 12px;background:#f3f5f6;color:#203036;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.35px;border-bottom:1px solid #cfd8dc}
.paper-section.danger .paper-section-title{background:#b33a3e;color:#fff;border-bottom-color:#95272d}
.paper-section-body{display:grid}
.paper-check-row{background:#fff;padding:6px 8px;min-height:35px}
.paper-check-row:nth-child(even){background:#fbfbfc}
.paper-check-row.bad{background:#fff0f1}
.paper-check-label{font-size:12px;line-height:1.18;color:#1c262c}
.paper-check-actions{min-width:72px;justify-content:flex-end}
.paper-choice{width:34px;height:28px;border-radius:6px;font-size:14px}
.paper-result{display:inline-flex;min-width:70px;justify-content:center;padding:4px 8px;border-radius:999px;background:#eef6f2;font-size:11px}
.paper-result.bad{background:#fdecee}
.checklist-paper-note{margin-top:14px;padding-top:10px;border-top:1px solid #cad5d9;color:#5f6c74;font-size:12px;font-weight:700;text-align:left}
.checklist-direct-preview .checklist-europcar{margin-top:8px}
@media(max-width:960px){.checklist-europcar-head{grid-template-columns:1fr}.checklist-europcar-meta{grid-template-columns:1fr 1fr}.paper-sections-layout{grid-template-columns:1fr}}
@media(max-width:640px){.checklist-europcar-meta{grid-template-columns:1fr}.checklist-brand-tag{font-size:19px}.paper-check-row{grid-template-columns:1fr}.paper-check-actions{justify-content:flex-start}.modal-card.checklist-modal-card,.modal-card.online-checklist-preview-modal{width:99vw!important;padding:10px!important}}


/* AutoTrace G36 — checklist completa obbligatoria */
.checklist-required-info{padding:10px 12px;border:1px solid rgba(91,232,201,.28);background:rgba(9,46,40,.5);border-radius:10px;color:#d9f8ef;font-size:13px;font-weight:700}
.checklist-total-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#143f38;color:#d6fff1;border:1px solid #2e7467;font-size:12px;font-weight:800;margin-top:2px}


/* AutoTrace G36 — scheda danni più leggibile e checklist con sezioni rosse a sinistra */
.modal-card.damage-inline-modal-card{width:min(1320px,98vw)!important;max-height:95vh!important}
.checkout-damage-g21{grid-template-columns:minmax(0,1fr) 360px;gap:14px}
.checkout-damage-g21-main{gap:10px}
.checkout-damage-g21-controls{grid-template-columns:1.08fr 1.02fr;gap:10px}
.checkout-damage-g21-main>section,.checkout-damage-g21-main>.damage-inline-controls,.checkout-damage-g21-map{padding:12px}
.checkout-damage-g21-main h3,.checkout-damage-g21-map .checkout-map-mini-label{font-size:18px;font-weight:900;margin:0 0 10px}
.checkout-damage-g21 .damage-v23-quick,.checkout-damage-g21 .damage-v23-guided{padding:14px}
.checkout-damage-g21 .damage-v23-entry input,.checkout-damage-g21 .damage-v23-guided select,.checkout-damage-g21 .damage-v23-guided button,.checkout-damage-g21 .damage-v23-entry button{min-height:46px;font-size:17px;border-radius:10px}
.checkout-damage-g21 .damage-v23-entry input{font-size:18px;font-weight:700}
.checkout-damage-g21 .damage-v23-help{font-size:13px;line-height:1.35;margin:10px 0 8px;color:#d0e2dd}
.checkout-damage-g21 .damage-v23-legend{font-size:13px;gap:6px 16px;line-height:1.25}
.checkout-damage-g21 .damage-v23-legend b{font-size:14px}
.checkout-damage-g21 .selected-zone-label{min-height:46px;padding:12px;font-size:15px;font-weight:700}
.checkout-damage-g21 .damage-v23-list{max-height:150px;padding:8px 10px}
.checkout-damage-g21 .checkout-existing-full-list{max-height:110px}
.checkout-damage-g21 .damage-v23-row,.checkout-damage-g21 .readonly-damage-list>div{padding:7px 8px}
.checkout-damage-g21 .damage-v23-row b,.checkout-damage-g21 .readonly-damage-list b{font-size:14px}
.checkout-damage-g21 .damage-v23-row small,.checkout-damage-g21 .readonly-damage-list span{font-size:12px}
.checkout-map-mini-label{font-size:20px!important}
.checkout-damage-g21-map{padding:10px 12px}
.checkout-vehicle-map-portrait{padding:8px!important}
.checkout-vehicle-map-portrait .damage-map-rotate-shell{position:relative;height:560px;overflow:hidden;border-radius:10px}
.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{position:absolute;left:50%;top:50%;width:560px;transform:translate(-50%,-50%) rotate(90deg);transform-origin:center center}
.checkout-vehicle-map-portrait img{width:100%!important;max-height:none!important;display:block}
.checkout-vehicle-map-portrait .zone-pin{transform:translate(-50%,-50%) rotate(-90deg)!important}
.checkout-vehicle-map-portrait .zone-pin span{transform:none!important}
@media(max-width:1180px){.checkout-damage-g21{grid-template-columns:minmax(0,1fr) 320px}.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:500px}.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:500px}}
@media(max-width:980px){.checkout-damage-g21{grid-template-columns:1fr}.checkout-damage-g21-controls{grid-template-columns:1fr 1fr}.checkout-damage-g21-map{order:-1}.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:460px}.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:460px}}
@media(max-width:700px){.checkout-damage-g21-controls{grid-template-columns:1fr}.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:380px}.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:380px}}

.checklist-europcar-head{grid-template-columns:240px 1fr;gap:14px}
.paper-sections-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:12px}
.paper-sections-column{gap:10px}
.paper-section.danger{display:grid;grid-template-columns:118px 1fr;align-items:stretch;background:#fff}
.paper-section.danger .paper-section-title{display:flex;align-items:center;justify-content:center;background:#b33a3e;color:#fff;border-bottom:0;border-right:1px solid #95272d;padding:10px 8px;text-align:center;writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.2px;font-size:14px;line-height:1.05}
.paper-section.danger .paper-section-body{min-height:100%;background:#fff}
.paper-section:not(.danger) .paper-section-title{font-size:14px}
.paper-check-row{grid-template-columns:1fr auto;min-height:36px;padding:6px 8px}
.paper-check-label{font-size:13px;line-height:1.2}
.paper-check-actions{gap:6px;align-items:center}
.paper-choice{width:38px;height:30px;border-radius:999px;font-size:16px;cursor:pointer;pointer-events:auto}
.paper-choice.ok::after{content:"✓"}
.paper-choice.bad::after{content:"✕"}
.paper-choice.ok,.paper-choice.bad{font-size:0}
.paper-choice.ok.active::after,.paper-choice.bad.active::after{font-size:16px}
.paper-choice.ok:not(.active)::after,.paper-choice.bad:not(.active)::after{font-size:16px;color:currentColor}
.paper-result{min-width:84px}
@media(max-width:960px){.paper-sections-layout{grid-template-columns:1fr}.paper-section.danger{grid-template-columns:92px 1fr}.paper-section.danger .paper-section-title{font-size:13px}}


/* AutoTrace G36 — danni orizzontali, carburante pulito, EV leggibile e anteprima checklist compatta */
.checkout-damage-g21 .checkout-supplier-list-panel,.checkout-damage-g21 .checkout-existing-panel{padding:10px 12px!important}
.checkout-damage-g21 .checkout-supplier-list-panel h3,.checkout-damage-g21 .checkout-existing-panel h3{margin-bottom:7px!important;font-size:15px!important}
.checkout-damage-g21 .damage-v23-list,.checkout-damage-g21 .checkout-existing-full-list{max-height:none!important;min-height:34px!important;overflow:visible!important;border:0!important;background:transparent!important;padding:0!important;margin:0!important}
.damage-inline-items{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px 12px!important}
.damage-inline-item{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;color:#dce8e5!important;font-size:13px!important;line-height:1.35!important;white-space:nowrap!important}
.damage-inline-item b{font-size:14px!important;color:#fff!important}
.damage-inline-item:not(:last-child)::after{content:"·";margin-left:8px;color:#6f9189;font-weight:900}
.damage-inline-item.editable button{width:19px;height:19px;padding:0;border:0;border-radius:50%;background:rgba(190,55,65,.25);color:#ffb8bf;font-size:15px;line-height:18px;cursor:pointer;margin-left:2px}
.damage-inline-item.editable button:hover{background:#b53540;color:#fff}
.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:590px!important}
.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:590px!important}

/* Carburante: solo frazioni, EV più largo e percentuale sempre visibile */
#view-checkin .register-table th.c-ev,#view-checkin .register-table td.c-ev,#view-checkout .register-table th.c-ev,#view-checkout .register-table td.c-ev{width:72px!important;min-width:72px!important;max-width:72px!important}
.ev-input-wrap{height:38px!important;min-width:62px!important}
.ev-input-wrap input{height:38px!important;padding-left:8px!important;padding-right:25px!important;color:#fff!important;font-weight:800!important;text-align:center!important}
.ev-input-wrap input::placeholder{color:#82928f!important}
.ev-input-wrap span{right:8px!important;font-size:13px!important;font-weight:900!important;color:#fff!important;z-index:3!important;background:transparent!important}
.ev-input-wrap input:disabled+span{color:#83918f!important}

/* Anteprima checklist salvata: una schermata compatta, completa e leggibile */
.modal-card.checklist-preview-compact{width:min(1040px,96vw)!important;max-height:94vh!important;padding:10px!important;overflow:auto!important}
.checklist-preview-compact .modal-head{min-height:34px!important}
.checklist-preview-compact .checklist-preview-toolbar{margin-bottom:5px!important}
.checklist-preview-compact .checklist-europcar{padding:9px 10px 8px!important}
.checklist-preview-compact .checklist-europcar-head{grid-template-columns:190px 1fr!important;gap:8px!important;padding-bottom:6px!important}
.checklist-preview-compact .checklist-brand-tag{font-size:16px!important;padding:6px 8px!important}
.checklist-preview-compact .checklist-brand-box small,.checklist-preview-compact .checklist-total-badge{font-size:9px!important;padding:3px 6px!important;margin:0!important}
.checklist-preview-compact .checklist-europcar-meta{grid-template-columns:repeat(3,1fr)!important;gap:4px!important}
.checklist-preview-compact .checklist-europcar-meta span{min-height:37px!important;padding:4px!important;font-size:9px!important}
.checklist-preview-compact .checklist-europcar-meta b{font-size:8px!important;margin-bottom:1px!important}
.checklist-preview-compact .paper-sections-layout{gap:6px!important;margin-top:6px!important;grid-template-columns:.92fr 1.08fr!important}
.checklist-preview-compact .paper-sections-column{gap:5px!important}
.checklist-preview-compact .paper-section{border-radius:5px!important}
.checklist-preview-compact .paper-section.danger{grid-template-columns:62px 1fr!important}
.checklist-preview-compact .paper-section-title{padding:4px 6px!important;font-size:9px!important;line-height:1!important}
.checklist-preview-compact .paper-section.danger .paper-section-title{font-size:9px!important;padding:4px!important}
.checklist-preview-compact .paper-check-row{min-height:20px!important;padding:2px 4px!important;gap:4px!important}
.checklist-preview-compact .paper-check-label{font-size:8.5px!important;line-height:1.05!important}
.checklist-preview-compact .paper-result{min-width:49px!important;padding:2px 4px!important;font-size:8px!important}
.checklist-preview-compact .checklist-paper-note{margin-top:5px!important;padding-top:4px!important;font-size:8px!important}
@media(max-width:900px){.checklist-preview-compact .paper-sections-layout{grid-template-columns:1fr!important}.checklist-preview-compact .checklist-europcar-head{grid-template-columns:1fr!important}}


/* AutoTrace G36 — mappa intera, separazione EV/Danni e stampa checklist */
.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:570px!important;overflow:hidden!important}
.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:515px!important}
.checkout-vehicle-map-portrait{overflow:hidden!important}
@media(max-width:1180px){.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:520px!important}.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:470px!important}}
@media(max-width:980px){.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:470px!important}.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:430px!important}}

#view-checkin .register-table th.c-ev,#view-checkin .register-table td.c-ev,#view-checkout .register-table th.c-ev,#view-checkout .register-table td.c-ev{width:82px!important;min-width:82px!important;max-width:82px!important;padding-left:7px!important;padding-right:7px!important;position:relative!important;z-index:2!important}
#view-checkin .register-table th.c-damage,#view-checkin .register-table td.c-damage,#view-checkout .register-table th.c-damage,#view-checkout .register-table td.c-damage{min-width:92px!important;padding-left:7px!important;padding-right:7px!important;position:relative!important;z-index:1!important}
.ev-input-wrap{width:100%!important;min-width:68px!important;overflow:hidden!important}
.ev-input-wrap input{width:100%!important;min-width:0!important;padding-left:7px!important;padding-right:27px!important}
.ev-input-wrap span{right:9px!important;background:#071112!important;padding-left:2px!important}
#view-checkout .c-damage .transparent-cell-action,#view-checkin .c-damage .transparent-cell-action{width:100%!important;min-width:0!important;overflow:hidden!important}

.checklist-preview-toolbar{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
.checklist-print-button{border-color:rgba(91,232,201,.45)!important;color:#dffcf4!important}
.checklist-print-button:hover{background:#12483f!important}


/* AutoTrace G36 — rifinitura mappa danni e spazio EV/Danni/Azioni */
.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:560px!important;overflow:hidden!important}
.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:500px!important;left:48.3%!important;top:50%!important;transform:translate(-50%,-50%) rotate(90deg)!important}
.checkout-vehicle-map-portrait img{object-fit:contain!important}
@media(max-width:1180px){.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:505px!important}.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:458px!important;left:48.2%!important}}
@media(max-width:980px){.checkout-vehicle-map-portrait .damage-map-rotate-shell{height:455px!important}.checkout-vehicle-map-portrait .damage-map-rotate-shell .car-image-wrap{width:418px!important;left:48.2%!important}}

/* Più spazio al campo EV e alla colonna Danni, riducendo leggermente Azioni */
#view-checkout .register-table th.c-ev,#view-checkout .register-table td.c-ev,#view-checkin .register-table th.c-ev,#view-checkin .register-table td.c-ev{width:92px!important;min-width:92px!important;max-width:92px!important;padding-left:8px!important;padding-right:8px!important;overflow:visible!important}
#view-checkout .register-table th.c-damage,#view-checkout .register-table td.c-damage,#view-checkin .register-table th.c-damage,#view-checkin .register-table td.c-damage{width:108px!important;min-width:108px!important;max-width:108px!important;padding-left:7px!important;padding-right:7px!important;overflow:hidden!important}
#view-checkout .register-table th.c-actions,#view-checkout .register-table td.c-actions,#view-checkin .register-table th.c-actions,#view-checkin .register-table td.c-actions{width:56px!important;min-width:56px!important;max-width:56px!important;padding-left:5px!important;padding-right:5px!important}
#view-checkout .register-table td.c-actions .cell-btn,#view-checkin .register-table td.c-actions .cell-btn{min-width:48px!important;padding:6px 6px!important;font-size:11px!important;line-height:1.05!important;border-radius:10px!important}
#view-checkout .register-table td.c-actions .cell-btn{white-space:nowrap!important}

.ev-input-wrap{width:100%!important;min-width:76px!important;display:grid!important;align-items:center!important;overflow:visible!important;position:relative!important}
.ev-input-wrap input{width:100%!important;min-width:0!important;height:38px!important;padding-left:8px!important;padding-right:24px!important;text-align:center!important;color:#fff!important;font-weight:800!important;letter-spacing:.01em!important}
.ev-input-wrap span{position:absolute!important;right:8px!important;top:50%!important;transform:translateY(-50%)!important;display:inline-block!important;min-width:10px!important;text-align:right!important;color:#ffffff!important;font-weight:900!important;font-size:13px!important;line-height:1!important;background:transparent!important;pointer-events:none!important;z-index:4!important}
.ev-input-wrap input:disabled+span{color:#b8c4c0!important;opacity:.92!important}

#view-checkout .c-damage .transparent-cell-action,#view-checkin .c-damage .transparent-cell-action{min-height:36px!important;padding:6px 6px!important;font-size:12px!important;line-height:1.12!important;white-space:normal!important;word-break:break-word!important;overflow:hidden!important}
#view-checkout .c-damage .damage-cell-compact,#view-checkin .c-damage .damage-cell-compact{display:inline-flex!important;flex-direction:column!important;align-items:flex-start!important;gap:1px!important;max-width:100%!important;overflow:hidden!important;font-size:12px!important;line-height:1.05!important}
#view-checkout .c-damage .damage-cell-compact span,#view-checkin .c-damage .damage-cell-compact span{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}


/* AutoTrace G36 — EV contenuto nella colonna e menu laterale leggibile per intero */
@media(min-width:901px){
  .app{grid-template-columns:305px minmax(0,1fr)!important}
  .sidebar{width:305px!important;min-width:305px!important;padding-left:14px!important;padding-right:14px!important}
  .sidebar .nav-btn{width:100%!important;padding-left:14px!important;padding-right:12px!important;gap:12px!important;font-size:13.5px!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
  .sidebar .nav-btn .nav-label{display:block!important;min-width:0!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
}

/* EV: massimo 100%, tutto dentro il proprio riquadro */
#view-checkout .register-table th.c-ev,#view-checkout .register-table td.c-ev,#view-checkin .register-table th.c-ev,#view-checkin .register-table td.c-ev{
  width:78px!important;min-width:78px!important;max-width:78px!important;
  padding-left:5px!important;padding-right:5px!important;
  overflow:hidden!important;position:relative!important;z-index:1!important
}
.ev-input-wrap{
  position:relative!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:38px!important;overflow:hidden!important
}
.ev-input-wrap input{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:38px!important;
  padding:0 21px 0 5px!important;margin:0!important;text-align:center!important;
  color:#fff!important;font-weight:800!important;font-size:13px!important;box-sizing:border-box!important
}
.ev-input-wrap span{
  position:absolute!important;right:6px!important;top:50%!important;transform:translateY(-50%)!important;
  width:10px!important;min-width:10px!important;display:block!important;text-align:center!important;
  color:#fff!important;font-weight:900!important;font-size:12px!important;line-height:1!important;
  background:transparent!important;padding:0!important;margin:0!important;pointer-events:none!important;z-index:3!important
}
.ev-input-wrap input:disabled+span{color:#c5cfcc!important;opacity:.95!important}

/* Mantiene separata la colonna Danni */
#view-checkout .register-table th.c-damage,#view-checkout .register-table td.c-damage,#view-checkin .register-table th.c-damage,#view-checkin .register-table td.c-damage{
  width:112px!important;min-width:112px!important;max-width:112px!important;
  padding-left:7px!important;padding-right:7px!important;overflow:hidden!important;position:relative!important;z-index:1!important
}


/* AutoTrace G36 — header compatto, EV leggibile, sidebar equilibrata */
.app{grid-template-columns:236px minmax(0,1fr)!important}
.sidebar{padding:14px 10px 12px!important}
.sidebar-brand-only{height:122px!important;min-height:122px!important;padding:6px 6px 8px!important}
.sidebar-brand-only .sidebar-brand-logo{height:104px!important}
.sidebar nav{gap:8px!important}
.sidebar .nav-btn{height:54px!important;min-height:54px!important;padding:0 10px!important;font-size:12.6px!important;gap:9px!important;border-radius:13px!important}
.sidebar .nav-btn .nav-icon{width:20px!important;height:20px!important;flex:0 0 20px!important}
.sidebar .nav-btn .nav-icon svg{width:20px!important;height:20px!important}
.sidebar .nav-btn .nav-label{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;letter-spacing:0!important}
#logoutBtn{min-height:48px!important;height:48px!important}

.register-heading.register-heading-enhanced,.register-heading{grid-template-columns:minmax(210px,.9fr) minmax(250px,1fr) minmax(220px,.95fr)!important;grid-template-rows:auto auto!important;grid-template-areas:"date title metrics" "date search metrics"!important;column-gap:14px!important;row-gap:6px!important;min-height:102px!important;padding:18px 18px 12px!important;margin:0 0 10px!important}
.register-date-block{gap:11px!important;align-items:flex-start!important;padding-top:0!important}
.register-calendar-icon{width:30px!important;height:30px!important;flex:0 0 30px!important;margin-top:2px!important}
.register-calendar-icon svg{width:26px!important;height:26px!important}
.register-date-block .register-date{font-size:14px!important;line-height:1!important;letter-spacing:.02em!important;white-space:nowrap!important}
.register-date-block .readonly-note{font-size:10px!important;line-height:1.1!important;margin-top:4px!important;max-width:190px!important;white-space:normal!important}
.register-center{gap:7px!important;transform:translateY(6px)!important}
.register-center h2{font-size:22px!important;line-height:1.02!important;letter-spacing:.015em!important}
.register-search{width:150px!important;max-width:150px!important;height:34px!important;transform:translateY(6px)!important}
.register-search input{height:34px!important;padding:6px 34px 6px 32px!important;border-radius:10px!important;font-size:11.5px!important}
.register-search-icon{left:10px!important;top:9px!important;width:14px!important;height:14px!important}
.register-search button{right:5px!important;top:3px!important;width:26px!important;height:26px!important}
#checkinHeaderMetrics,#checkoutHeaderMetrics,.register-state-legend{justify-content:flex-end!important;align-items:center!important}
.header-user-meta{gap:9px!important}
.header-user-icon{width:28px!important;height:28px!important}
.header-user-icon svg{width:22px!important;height:22px!important}
.header-user-copy{gap:0!important}
.header-user-copy small{font-size:9px!important;letter-spacing:.06em!important}
.header-user-copy strong{font-size:13px!important;line-height:1.05!important}
.header-user-copy span{font-size:10px!important;line-height:1.05!important;white-space:nowrap!important}

/* EV box: contenere chiaramente fino a 100% */
#view-checkout .register-table th.c-ev,#view-checkout .register-table td.c-ev,#view-checkin .register-table th.c-ev,#view-checkin .register-table td.c-ev{width:84px!important;min-width:84px!important;max-width:84px!important;padding-left:4px!important;padding-right:4px!important;overflow:hidden!important}
.ev-input-wrap{width:100%!important;height:36px!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;position:relative!important}
.ev-input-wrap input{width:100%!important;height:36px!important;padding:0 18px 0 5px!important;text-align:right!important;font-size:12.5px!important;font-weight:900!important;letter-spacing:0!important;box-sizing:border-box!important}
.ev-input-wrap span{right:6px!important;width:auto!important;min-width:8px!important;font-size:12px!important;line-height:1!important}
#view-checkout .register-table th.c-damage,#view-checkout .register-table td.c-damage,#view-checkin .register-table th.c-damage,#view-checkin .register-table td.c-damage{width:86px!important;min-width:86px!important;max-width:86px!important;padding-left:5px!important;padding-right:5px!important}
#view-checkout .register-table th.c-actions,#view-checkout .register-table td.c-actions,#view-checkin .register-table th.c-actions,#view-checkin .register-table td.c-actions{width:56px!important;min-width:56px!important;max-width:56px!important}
#view-checkout .register-table td.c-actions .cell-btn,#view-checkin .register-table td.c-actions .cell-btn{min-width:44px!important;padding:6px 4px!important;font-size:11px!important}

/* Consegna / riconsegna visibili meglio */
.register-table th.c-status,.register-table td.c-status{width:118px!important;min-width:118px!important;max-width:118px!important}
.register-table thead th.c-status{white-space:normal!important;line-height:1.05!important;text-align:center!important}
.register-table td.c-status .status{font-size:13px!important;gap:6px!important}
.register-table td.c-status .status .status-emoji{font-size:22px!important;min-width:22px!important}

@media(max-width:1360px){
  .app{grid-template-columns:228px minmax(0,1fr)!important}
  .sidebar .nav-btn{font-size:12.2px!important;padding:0 9px!important;gap:8px!important}
  .register-heading.register-heading-enhanced,.register-heading{grid-template-columns:minmax(190px,.9fr) minmax(230px,1fr) minmax(210px,.95fr)!important}
  .register-center h2{font-size:20px!important}
  .register-search{width:140px!important;max-width:140px!important}
}


/* AutoTrace G36 — elimina sovrapposizioni sidebar e flash vecchie legende */
.app{grid-template-columns:236px minmax(0,1fr)!important}
.sidebar{width:auto!important;min-width:0!important;max-width:none!important;overflow:hidden!important}
.sidebar .nav-btn{width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
.sidebar .nav-btn .nav-label{display:block!important;min-width:0!important;max-width:100%!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
.main{min-width:0!important;overflow:hidden!important}
.register-heading{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
#checkinHeaderMetrics,#checkoutHeaderMetrics{overflow:hidden!important;min-width:0!important}
#checkinHeaderMetrics>span,#checkoutHeaderMetrics>span,
#checkinHeaderMetrics>.legend-item,#checkoutHeaderMetrics>.legend-item,
#checkinHeaderMetrics>.checkin-header-metrics,#checkoutHeaderMetrics>.checkin-header-metrics{display:none!important}
#checkinHeaderMetrics>.header-user-meta,#checkoutHeaderMetrics>.header-user-meta{display:flex!important}
.header-user-stable{opacity:1!important;visibility:visible!important;animation:none!important;transition:none!important}
@media(max-width:1360px){
  .app{grid-template-columns:228px minmax(0,1fr)!important}
  .sidebar{width:auto!important;min-width:0!important;max-width:none!important;padding-left:10px!important;padding-right:10px!important}
}


/* AutoTrace G36 — spunta consegna/riconsegna molto più visibile */
#view-checkin td.c-status .movement-check,#view-checkout td.c-status .movement-check{
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  color:#ffffff!important;filter:drop-shadow(0 0 7px rgba(93,238,183,.42))!important
}
#view-checkin td.c-status .movement-check svg,#view-checkout td.c-status .movement-check svg{
  width:30px!important;height:30px!important;stroke-width:3.2!important
}
#view-checkin td.c-status,#view-checkout td.c-status{text-align:center!important}
#loginBtn:disabled{opacity:.72!important;cursor:wait!important}


/* AutoTrace G36 — blank row visible, large plain check without neon */
.personal-empty-row td{background:rgba(18,71,64,.30)!important}
.personal-empty-row td:first-child{box-shadow:inset 3px 0 0 rgba(86,232,220,.72)!important}
#view-checkin td.c-status .movement-check,#view-checkout td.c-status .movement-check{
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  color:#f3fbfa!important;filter:none!important;text-shadow:none!important;box-shadow:none!important
}
#view-checkin td.c-status .movement-check svg,#view-checkout td.c-status .movement-check svg{
  width:31px!important;height:31px!important;stroke-width:3.1!important;filter:none!important
}
#view-checkin td.c-status .status-inline-done .status-emoji,#view-checkout td.c-status .status-inline-done .status-emoji{
  filter:none!important;text-shadow:none!important;color:#f3fbfa!important
}


/* AutoTrace G36 — ID personale mascherato senza password manager */
.signature-code-no-password{-webkit-text-security:disc!important;font-family:monospace!important;letter-spacing:.18em!important}
.signature-code-no-password::placeholder{-webkit-text-security:none!important;font-family:Inter,Segoe UI,Arial,sans-serif!important;letter-spacing:normal!important}


/* AutoTrace G36 — firmatari più nitidi e leggibili */
#view-checkin .signature-box,#view-checkout .signature-box{padding:6px 7px!important;min-height:42px!important}
#view-checkin .signature-name,#view-checkout .signature-name{
  color:#ffffff!important;font-size:14.5px!important;font-weight:900!important;line-height:1.08!important;
  letter-spacing:.005em!important;text-shadow:none!important;opacity:1!important;-webkit-font-smoothing:antialiased!important
}
#view-checkin .signature-box small,#view-checkout .signature-box small{
  color:#d5e2e0!important;font-size:10.5px!important;font-weight:700!important;opacity:1!important
}


/* AutoTrace G43 — controlli compatti RA e targa, senza modifiche alla grafica generale */
.field-confirm-g41{position:fixed;z-index:99999;padding:10px 11px;border:1px solid rgba(102,214,202,.46);border-radius:10px;background:#071b1d;color:#f6fffd;box-shadow:0 10px 28px rgba(0,0,0,.38);font-family:Inter,Segoe UI,Arial,sans-serif}
.field-confirm-message{font-size:13px;font-weight:850;line-height:1.2}
.field-confirm-hint{margin-top:4px;color:#aac7c3;font-size:10.5px;font-weight:700}
.field-confirm-actions{display:flex;gap:7px;margin-top:8px}
.field-confirm-actions button{flex:1;min-height:30px;padding:5px 8px;border-radius:8px;border:1px solid rgba(100,201,193,.34);background:#0c2a2d;color:#f4fffd;font-size:11px;font-weight:800;cursor:pointer}
.field-confirm-actions .field-confirm-yes{background:#1a8f7e;border-color:#55d9c7;color:#fff}
.field-confirm-actions button:hover{filter:brightness(1.08)}


/* AutoTrace G43 — solo Storico movimentazioni */
#view-archive .archive-search-grid{grid-template-columns:1.05fr 1.05fr .72fr .9fr .9fr auto auto auto!important;gap:8px!important}
#view-archive .search-panel{padding:12px 14px!important}
#view-archive .timeline{gap:7px!important;margin-top:9px!important}
#view-archive .archive-register-card.archive-compact-card{margin:0 0 7px!important;padding:7px 8px!important;border-radius:10px!important}
#view-archive .archive-register-card .archive-meta{margin-bottom:5px!important;min-height:22px!important}
#view-archive .archive-register-card .archive-meta h3{font-size:14px!important;line-height:1.05!important;margin:0!important}
#view-archive .archive-register-card .archive-meta strong{font-size:11px!important;line-height:1!important}
#view-archive .archive-compact-table{min-width:960px!important;table-layout:fixed!important}
#view-archive .archive-compact-table th,#view-archive .archive-compact-table td{padding:4px 4px!important;height:42px!important;min-height:42px!important;font-size:10.5px!important;line-height:1.05!important;white-space:normal!important;text-align:center!important;vertical-align:middle!important}
#view-archive .archive-compact-table th{height:32px!important;min-height:32px!important;font-size:9.5px!important;line-height:1.05!important}
#view-archive .archive-compact-table .a-km{width:58px!important;min-width:58px!important;max-width:58px!important}
#view-archive .archive-compact-table .a-carb{width:62px!important;min-width:62px!important;max-width:62px!important}
#view-archive .archive-compact-table .a-ev{width:52px!important;min-width:52px!important;max-width:52px!important}
#view-archive .archive-compact-table .a-damage{width:70px!important;min-width:70px!important;max-width:70px!important}
#view-archive .archive-compact-table .a-ra{width:82px!important}
#view-archive .archive-compact-table .a-plate{width:92px!important}
#view-archive .archive-compact-table .a-model{width:120px!important}
#view-archive .archive-compact-table .a-checklist{width:82px!important}
#view-archive .archive-compact-table .a-wash{width:68px!important}
#view-archive .archive-compact-table .a-notes{width:78px!important}
#view-archive .archive-compact-table .a-sign{width:112px!important}
#view-archive .archive-compact-table .a-status{width:92px!important;min-width:92px!important;max-width:92px!important}
#view-archive .archive-compact-table .signature-box{min-width:0!important;gap:1px!important}
#view-archive .archive-compact-table .signature-name{font-size:11px!important;line-height:1.05!important;color:#fff!important}
#view-archive .archive-compact-table .signature-box small{font-size:8.5px!important;line-height:1!important}
#view-archive .archive-stable-check{display:inline-flex!important;width:34px!important;height:34px!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important}
#view-archive .archive-stable-check svg{display:block!important;width:30px!important;height:30px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#view-archive .archive-stable-empty{display:inline-block!important;width:17px!important;height:5px!important;border-radius:5px!important;background:#d7e2df!important;opacity:.65!important}
#view-archive .archive-stable-cancelled{font-size:25px!important;line-height:1!important;font-weight:900!important;color:#ff7384!important}
#archivePrintBtn{white-space:nowrap!important}
@media(max-width:1100px){#view-archive .archive-search-grid{grid-template-columns:1fr 1fr 1fr!important}}


/* AutoTrace G44 — solo barra storico e voce menu */
#view-archive .archive-search-grid{grid-template-columns:1.15fr .78fr .92fr .92fr auto auto auto!important;gap:8px!important;align-items:end!important}
#archivePlate{text-transform:uppercase!important}
.sidebar .nav-btn[data-view="archive"]{height:auto!important;min-height:54px!important;padding-top:8px!important;padding-bottom:8px!important}
.sidebar .nav-btn[data-view="archive"] .nav-label{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.08!important;font-size:11.5px!important;max-width:150px!important}
@media(max-width:1100px){#view-archive .archive-search-grid{grid-template-columns:1fr 1fr 1fr!important}}


/* AutoTrace G46 — sole correzioni richieste */
#view-archive .page-title{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  margin:4px 0 14px!important;
}
#view-archive .page-title h2{
  margin:0!important;
  color:#fff!important;
  font-size:38px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.035em!important;
  text-align:center!important;
  text-transform:uppercase!important;
}
#view-users .user-create-toolbar{display:none!important}

#view-archive .archive-check-g46,
#view-archive .archive-stable-check.archive-check-g46{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  min-height:32px!important;
  padding:0!important;
  margin:0 auto!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
  color:#fff!important;
}
#view-archive .archive-check-g46 svg{
  display:block!important;
  width:30px!important;
  height:30px!important;
  fill:none!important;
  stroke:#fff!important;
  stroke-width:3.1!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  filter:none!important;
}
.sidebar .nav-btn[data-view="checklist-archive"] .nav-label{
  white-space:normal!important;
  line-height:1.08!important;
}


/* AutoTrace G47 — icona archivio checklist + storico su due righe centrato */
.sidebar .nav-btn[data-view="archive"] .nav-label.nav-label-stacked{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.02!important;
  gap:1px!important;
  width:100%!important;
}
.sidebar .nav-btn[data-view="archive"] .nav-label .nav-label-line{
  display:block!important;
  width:100%!important;
}
.sidebar .nav-btn[data-view="checklist-archive"] .nav-icon svg{
  width:22px!important;
  height:22px!important;
}

/* AutoTrace G48 — report e menu puliti */
.page-title-centered{display:flex!important;justify-content:center!important;text-align:center!important}
.page-title-centered>div,.page-title-centered h2{width:100%}
#view-archive .page-title h2,
#view-summary .page-title h2{
  text-transform:uppercase!important;
  letter-spacing:1px!important;
  font-size:34px!important;
  text-align:center!important;
  margin:0!important;
}
#view-summary .summary-subtitle,
#view-summary .summary-toolbar-note{
  text-align:center!important;
  text-transform:uppercase!important;
  letter-spacing:.4px!important;
}
#view-summary .summary-toolbar-note{
  color:#97beb5!important;
  font-size:13px!important;
  font-weight:700!important;
  margin-bottom:12px!important;
}
#view-summary .summary-search-grid{grid-template-columns:1fr 1fr auto auto!important}
#view-summary .report-block>h3,
#view-summary .report-card span,
#view-summary .report-card small,
#view-summary .report-day-head h3,
#view-summary .supplier-table-head span{
  text-transform:uppercase!important;
}
#view-summary .report-cards-today{grid-template-columns:minmax(220px,1.1fr) minmax(330px,1.55fr) minmax(210px,1fr) minmax(160px,.8fr) minmax(105px,.5fr)!important}
#view-summary .report-cards-range{grid-template-columns:repeat(6,minmax(135px,1fr))!important}
#view-summary .report-card{min-height:104px!important;padding:16px!important}
#view-summary .report-card span{max-width:none!important;font-size:14px!important;line-height:1.16!important}
#view-summary .report-card strong{font-size:34px!important}
#view-summary .split-values{gap:14px!important;margin-top:10px!important}
#view-summary .split-values button+button{padding-left:14px!important}
#view-summary .split-values strong{font-size:30px!important}
#view-summary .report-card.warn{border-color:rgba(255,133,133,.58)!important}
#view-summary .report-detail-shell{padding:16px!important;margin-top:14px!important}
#view-summary .report-detail-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;margin-bottom:12px!important}
#view-summary .report-detail-head h3{margin:0!important;text-transform:uppercase!important}
#view-summary .report-empty{padding:18px!important}
#view-summary .report-empty-inner{text-align:center!important;color:#bcd4cd!important;font-weight:700!important}
#view-summary .report-day-block{margin-top:14px!important}
#view-summary .report-day-head{padding:0 0 10px!important}
#view-summary .report-day-head strong{text-transform:uppercase!important;color:#8ef8d7!important}
#view-summary .report-register-table th,
#view-summary .report-register-table td{white-space:normal!important}
#view-summary .report-register-table .col-3,
#view-summary .report-register-table .col-4,
#view-summary .report-register-table .col-5,
#view-summary .report-register-table .col-6,
#view-summary .report-register-table .col-10,
#view-summary .report-register-table .col-11{width:74px!important}
#view-summary .report-register-table .signature-box{min-width:120px!important}
#view-summary .report-status-check{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;height:30px!important;margin:0 auto!important}
#view-summary .report-status-check svg{width:26px!important;height:26px!important;fill:none!important;stroke:#fff!important;stroke-width:3.1!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#view-summary .report-status-empty,
#view-summary .report-status-cancel{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;height:30px!important;margin:0 auto!important;font-size:22px!important;font-weight:900!important}
#view-summary .report-status-empty{color:#d8ebe6!important}
#view-summary .report-status-cancel{color:#ff8a8a!important}
#view-summary .supplier-report-panel{padding:0!important}
#view-summary .supplier-report-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:12px!important;margin-bottom:10px!important}
#view-summary .supplier-table-head{display:grid!important;grid-template-columns:1fr 1fr 1fr 1fr!important;gap:10px!important;padding:8px 10px!important;border:1px solid #28564e!important;border-radius:12px 12px 0 0!important;background:#103a33!important;color:#dffaf3!important;font-weight:800!important}
#view-summary .supplier-list{border:1px solid #28564e!important;border-top:0!important;border-radius:0 0 12px 12px!important;overflow:hidden!important}
#view-summary .supplier-car-row{display:grid!important;grid-template-columns:1fr 1fr 1fr 1fr!important;gap:10px!important;padding:10px!important;border-top:1px solid #28564e!important;background:#092620!important}
#view-summary .supplier-car-row:first-child{border-top:0!important}
@media(max-width:1200px){
  #view-summary .report-cards-today{grid-template-columns:repeat(3,1fr)!important}
  #view-summary .report-cards-range{grid-template-columns:repeat(3,1fr)!important}
}
@media(max-width:760px){
  #view-summary .summary-search-grid{grid-template-columns:1fr 1fr!important}
  #view-summary .report-cards-today,
  #view-summary .report-cards-range{grid-template-columns:1fr 1fr!important}
  #view-summary .supplier-table-head{display:none!important}
  #view-summary .supplier-car-row{grid-template-columns:1fr 1fr!important}
}

/* AutoTrace G49 */
#view-summary .summary-controls{margin:22px 0!important}
#summaryTodayCards,#summaryCards{display:block!important}
#summaryTodayDetails,#summaryDetails{scroll-margin-top:22vh}
.report-detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#view-summary .report-register-table th:nth-last-child(-n/**/+3),#view-summary .report-register-table td:nth-last-child(-n/**/+3){min-width:150px!important}
#view-summary .report-register-table th:last-child,#view-summary .report-register-table td:last-child{min-width:110px!important}
.email-chip-entry{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:7px}.email-chip-entry input{width:100%}
.email-chip-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:14px 0 8px;padding:10px 12px;border:1px solid #2d665c;border-radius:10px;background:#071f1b}.email-chip-summary strong{color:#fff}.email-chip-summary span{color:#91beb4;font-size:12px;font-weight:800}
.email-chips{display:flex;flex-wrap:wrap;gap:8px;min-height:48px;padding:10px;border:1px solid #2d665c;border-radius:12px;background:#061d19;margin-bottom:14px}
.email-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #49a790;border-radius:999px;background:#0e3b33;color:#eafff8;font-weight:700}.email-chip button{border:0;background:transparent;color:#fff;font-size:18px;line-height:1;cursor:pointer;padding:0}
@media(max-width:900px){.email-chip-summary{align-items:flex-start;flex-direction:column}#view-summary .report-register-table th:nth-last-child(-n/**/+3),#view-summary .report-register-table td:nth-last-child(-n/**/+3){min-width:135px!important}}

/* AutoTrace G50 — allineamento box situazione di oggi e checklist reali */
#view-summary .report-cards-today .report-card{
  background:linear-gradient(180deg,rgba(15,57,59,.72),rgba(7,31,34,.74))!important;
  justify-content:flex-start!important;
}
#view-summary .report-cards-today .report-card.warn{
  background:linear-gradient(180deg,rgba(15,57,59,.72),rgba(7,31,34,.74))!important;
  border-color:#e96767!important;
}
#view-summary .report-cards-today .report-card>span,
#view-summary .report-cards-today .report-card-title{
  display:block!important;
  min-height:34px!important;
  text-align:center!important;
  width:100%!important;
}
#view-summary .report-cards-today .report-card:not(.split)>strong{
  margin-top:28px!important;
  line-height:1!important;
}
#view-summary .report-cards-today .split-values{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:end!important;
  margin-top:10px!important;
  gap:0!important;
  min-height:62px!important;
}
#view-summary .report-cards-today .split-values-3{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
#view-summary .report-cards-today .split-values button{
  min-width:0!important;
  height:62px!important;
  display:grid!important;
  grid-template-rows:30px 32px!important;
  align-items:end!important;
  justify-items:center!important;
  text-align:center!important;
  padding:0 8px!important;
}
#view-summary .report-cards-today .split-values button+button{
  border-left:1px solid rgba(255,255,255,.15)!important;
}
#view-summary .report-cards-today .split-values small{
  align-self:start!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  width:100%!important;
  min-height:30px!important;
  line-height:1.08!important;
  text-align:center!important;
  margin:0!important;
}
#view-summary .report-cards-today .split-values strong{
  align-self:end!important;
  display:block!important;
  width:100%!important;
  margin:0!important;
  line-height:32px!important;
  text-align:center!important;
  white-space:nowrap!important;
}
#view-summary .report-cards-today .report-split-3{
  min-width:300px!important;
}
#view-summary .report-cards-today .report-split-3 .split-values strong{
  font-size:27px!important;
}
@media(max-width:1200px){#view-summary .report-cards-today .report-split-3{min-width:0!important}}

#view-summary .report-cards-today .report-card-compact{
  min-width:0!important;
  padding-left:14px!important;
  padding-right:14px!important;
}
#view-summary .report-cards-today .report-card-compact>span{
  min-height:34px!important;
  max-width:none!important;
  text-align:center!important;
}
#view-summary .report-cards-today .report-card-compact>strong{
  margin-top:18px!important;
  text-align:center!important;
}


/* AutoTrace G52 — feedback pulsante invio email */
#sendReportNow.is-sending{background:#806818!important;color:#fff!important;border-color:#d2ad35!important;cursor:wait!important;opacity:1!important}
#sendReportNow.is-sent{background:#167a5d!important;color:#fff!important;border-color:#65e0bc!important;opacity:1!important}
#sendReportNow.is-error{background:#8d2d35!important;color:#fff!important;border-color:#ff8d97!important;opacity:1!important}


/* AutoTrace G59 — destinatari semplificati */
#view-summary .email-chip-entry-save{grid-template-columns:1fr!important}
#view-summary #saveReportSettings{min-width:130px}

/* AutoTrace G62 — correzioni esclusivamente sezione Report */
#view-summary .report-table-wrap{
  overflow-x:auto!important;
  max-height:none!important;
}
#view-summary .report-register-table{
  table-layout:fixed!important;
  width:100%!important;
  min-width:1380px!important;
}
#view-summary .report-register-table th,
#view-summary .report-register-table td{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  text-align:center!important;
  vertical-align:middle!important;
  padding:8px 6px!important;
}
#view-summary .report-register-table th{
  line-height:1.15!important;
  font-size:11px!important;
}
#view-summary .report-register-table col.report-col-ra{width:105px!important}
#view-summary .report-register-table col.report-col-plate{width:105px!important}
#view-summary .report-register-table col.report-col-model{width:140px!important}
#view-summary .report-register-table col.report-col-km{width:70px!important}
#view-summary .report-register-table col.report-col-fuel{width:92px!important}
#view-summary .report-register-table col.report-col-ev{width:62px!important}
#view-summary .report-register-table col.report-col-damage{width:115px!important}
#view-summary .report-register-table col.report-col-checklist{width:105px!important}
#view-summary .report-register-table col.report-col-wash{width:82px!important}
#view-summary .report-register-table col.report-col-notes{width:105px!important}
#view-summary .report-register-table col.report-col-sig-rent,
#view-summary .report-register-table col.report-col-sig-operator{width:190px!important}
#view-summary .report-register-table col.report-col-status{width:125px!important}
#view-summary .report-register-table .signature-box{
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
}
#view-summary .report-register-table .signature-name{
  width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  line-height:1.15!important;
  font-size:13px!important;
}
#view-summary .report-register-table .signature-box small{
  display:block!important;
  width:100%!important;
  white-space:normal!important;
  line-height:1.15!important;
  font-size:10px!important;
}
#view-summary .report-register-table .report-cell-status,
#view-summary .report-register-table .report-head-status{
  min-width:125px!important;
  width:125px!important;
}
#view-summary .report-register-table .report-status-check{
  display:inline-flex!important;
  width:34px!important;
  height:34px!important;
  align-items:center!important;
  justify-content:center!important;
  margin:auto!important;
}
#view-summary .report-register-table .report-status-check svg{
  width:30px!important;
  height:30px!important;
  stroke:#fff!important;
  stroke-width:3.2!important;
  fill:none!important;
}
#view-summary .report-register-table .report-status-empty{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  height:34px!important;
  margin:auto!important;
}
#view-summary .report-register-table .checklist-cell-preview{
  max-width:88px!important;
  margin:auto!important;
}
#view-summary .report-register-table .checklist-cell-preview img,
#view-summary .report-register-table .checklist-thumb{
  max-width:72px!important;
  max-height:58px!important;
  object-fit:contain!important;
}
@media(max-width:1100px){
  #view-summary .report-register-table{min-width:1320px!important}
}

/* AutoTrace G64 — Report compatto, check sempre visibile e motivazione annullamento */
#view-summary .report-register-table{
  min-width:1040px!important;
}
#view-summary .report-register-table col.report-col-ra{width:82px!important}
#view-summary .report-register-table col.report-col-plate{width:82px!important}
#view-summary .report-register-table col.report-col-model{width:100px!important}
#view-summary .report-register-table col.report-col-km{width:55px!important}
#view-summary .report-register-table col.report-col-fuel{width:72px!important}
#view-summary .report-register-table col.report-col-ev{width:48px!important}
#view-summary .report-register-table col.report-col-damage{width:82px!important}
#view-summary .report-register-table col.report-col-checklist{width:82px!important}
#view-summary .report-register-table col.report-col-wash{width:62px!important}
#view-summary .report-register-table col.report-col-notes{width:72px!important}
#view-summary .report-register-table col.report-col-reason{width:155px!important}
#view-summary .report-register-table col.report-col-sig-rent,
#view-summary .report-register-table col.report-col-sig-operator{width:145px!important}
#view-summary .report-register-table col.report-col-status{width:88px!important}
#view-summary .report-register-table .report-cell-status,
#view-summary .report-register-table .report-head-status{
  min-width:88px!important;
  width:88px!important;
  visibility:visible!important;
}
#view-summary .report-register-table .report-status-check{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:32px!important;
  height:32px!important;
  margin:0 auto!important;
}
#view-summary .report-register-table .report-status-check svg{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:28px!important;
  height:28px!important;
  stroke:#fff!important;
  stroke-width:3.4!important;
}
#view-summary .report-register-table .report-cell-reason{
  white-space:normal!important;
  text-align:left!important;
  line-height:1.2!important;
}
#view-summary .report-register-table th,
#view-summary .report-register-table td{
  padding:7px 4px!important;
  font-size:11px!important;
}
#view-summary .report-register-table .signature-name{font-size:12px!important}
#view-summary .report-register-table .signature-box small{font-size:9px!important}
@media(max-width:1100px){
  #view-summary .report-register-table{min-width:1040px!important}
}

/* AutoTrace V32 G65 — rifiniture grafiche registri e accesso. */
/* Nei registri resta un solo scorrimento: quello naturale della pagina. */
#view-checkin .table-wrap,
#view-checkout .table-wrap{
  max-height:none!important;
  height:auto!important;
  overflow-y:visible!important;
  scrollbar-gutter:auto!important;
}
#view-checkin .register-table thead th,
#view-checkout .register-table thead th{position:static!important}

/* Data stabile, compatta e allineata al bordo sinistro del calendario. */
#view-checkin .register-heading,
#view-checkout .register-heading{overflow:visible!important}
#view-checkin .register-date-block,
#view-checkout .register-date-block{
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:10px!important;
  padding:0!important;
}
#view-checkin .register-calendar-icon,
#view-checkout .register-calendar-icon{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
  margin:0!important;display:grid!important;place-items:center!important;
}
#view-checkin .register-calendar-icon svg,
#view-checkout .register-calendar-icon svg{width:30px!important;height:30px!important}
#view-checkin .register-date-block .register-date,
#view-checkout .register-date-block .register-date{
  font-size:15px!important;line-height:1.05!important;letter-spacing:.015em!important;
  text-transform:none!important;white-space:nowrap!important;
}
#view-checkin .register-date-block .readonly-note,
#view-checkout .register-date-block .readonly-note{
  margin-top:4px!important;font-size:10px!important;line-height:1.1!important;
  text-align:left!important;white-space:nowrap!important;
}

/* Scheda operatore: icona grande come il calendario, testi proporzionati alla data. */
.sidebar-bottom #currentUserCard{gap:10px!important;padding:10px 11px!important;min-height:58px!important}
.current-user-icon{
  width:34px!important;height:34px!important;flex:0 0 34px!important;
  border-width:1.5px!important;
}
.current-user-copy{gap:3px!important}
.current-user-copy strong{font-size:15px!important;line-height:1.05!important}
.current-user-copy span{font-size:10px!important;line-height:1.1!important}

/* Menu laterale allineato visivamente alle prime righe del registro. */
@media(min-width:901px){
  .sidebar nav{margin-top:112px!important;gap:0!important}
  .sidebar .nav-btn{min-height:48px!important;height:48px!important;padding:0 12px!important;display:flex!important;align-items:center!important}
}

/* Accesso: stato di caricamento chiaro senza modificare l'autenticazione. */
.login-message{min-height:20px;margin:2px 0 8px;color:#ffd38a;font-size:13px;font-weight:800}
#loginBtn{display:flex;align-items:center;justify-content:center;gap:9px;min-height:42px}
.login-spinner{display:none;width:17px;height:17px;border:2px solid rgba(3,32,26,.35);border-top-color:#03201a;border-radius:50%;animation:atrLoginSpin .75s linear infinite}
#loginBtn.is-loading .login-spinner{display:inline-block}
#loginBtn.is-loading .login-btn-label::after{content:"Accesso in corso…"}
#loginBtn.is-loading .login-btn-label{font-size:0}
#loginBtn.is-loading .login-btn-label::after{font-size:14px}
@keyframes atrLoginSpin{to{transform:rotate(360deg)}}


/* AutoTrace V32 G66 — allineamento finale registri e spaziatura menu. */
.app{column-gap:10px!important}
@media(min-width:901px){
  .sidebar nav{
    margin-top:74px!important;
    gap:8px!important;
  }
  .main{
    padding-left:18px!important;
  }
}
#view-checkin .register-heading.register-heading-enhanced,
#view-checkout .register-heading.register-heading-enhanced{
  align-items:end!important;
}
#view-checkin .register-date-block,
#view-checkout .register-date-block{
  align-items:flex-end!important;
  justify-content:flex-start!important;
  padding:0 0 2px 0!important;
}
#view-checkin .register-date-block>div,
#view-checkout .register-date-block>div{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
}
#view-checkin .register-date-block .register-date,
#view-checkout .register-date-block .register-date{
  line-height:1!important;
}
#view-checkin .register-date-block .readonly-note,
#view-checkout .register-date-block .readonly-note{
  margin-top:5px!important;
}
.sidebar-bottom{
  margin-top:auto!important;
  padding-top:12px!important;
}
.sidebar-bottom #currentUserCard{
  align-items:flex-end!important;
}
.sidebar-bottom #currentUserCard .current-user-copy{
  justify-content:flex-end!important;
}


/* AutoTrace G67 — sole modifiche grafiche registri/login/menu */
#loginView .login-card{width:min(470px,95vw)!important;padding:30px 32px 28px!important}
#loginView .login-card h1{display:none!important}
#loginView .login-logo{width:min(360px,100%)!important;height:168px!important;max-width:360px!important;object-fit:contain!important;margin:0 auto 8px!important;display:block!important}
#loginView .login-card label:first-of-type{margin-top:10px!important}
#loginView .login-card .login-message{min-height:22px!important}

.sidebar{padding:16px 16px 18px!important}
.sidebar-brand-only{height:106px!important;min-height:106px!important;padding:2px 6px 4px!important;margin-bottom:8px!important;background:transparent!important}
.sidebar-brand-only .sidebar-brand-logo{height:94px!important;width:100%!important;object-fit:contain!important;object-position:center center!important}
.sidebar nav{gap:12px!important;align-content:start!important;margin-top:2px!important}
.sidebar .nav-btn{margin:0!important}
.sidebar .nav-btn .nav-label{white-space:nowrap!important;line-height:1!important;font-size:12.4px!important}
.sidebar .nav-btn[data-view="archive"]{height:54px!important;min-height:54px!important;padding-top:0!important;padding-bottom:0!important}
.sidebar .nav-btn[data-view="archive"] .nav-label{white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;font-size:12.4px!important}

#view-checkin .register-heading-enhanced,
#view-checkout .register-heading-enhanced{align-items:end!important}
#view-checkin .register-date-block,
#view-checkout .register-date-block{align-self:end!important;justify-self:start!important;gap:12px!important;padding-top:22px!important;margin-top:0!important;margin-bottom:1px!important}
#view-checkin .register-date-block .register-date,
#view-checkout .register-date-block .register-date{font-size:18px!important;line-height:1.02!important;letter-spacing:.01em!important}
#view-checkin .register-date-block .readonly-note,
#view-checkout .register-date-block .readonly-note{font-size:10px!important;line-height:1.08!important;margin-top:3px!important;white-space:nowrap!important}
#view-checkin .register-calendar-icon,
#view-checkout .register-calendar-icon{width:24px!important;height:24px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
#view-checkin .register-calendar-icon svg,
#view-checkout .register-calendar-icon svg{width:24px!important;height:24px!important}

#checkinHeaderMetrics,
#checkoutHeaderMetrics{align-self:end!important;justify-self:end!important;padding-top:22px!important;margin-bottom:1px!important}
#checkinHeaderMetrics .header-user-meta,
#checkoutHeaderMetrics .header-user-meta{gap:10px!important;align-items:center!important}
#checkinHeaderMetrics .header-user-icon,
#checkoutHeaderMetrics .header-user-icon{width:24px!important;height:24px!important}
#checkinHeaderMetrics .header-user-icon svg,
#checkoutHeaderMetrics .header-user-icon svg{width:24px!important;height:24px!important}
#checkinHeaderMetrics .header-user-copy,
#checkoutHeaderMetrics .header-user-copy{gap:2px!important}
#checkinHeaderMetrics .header-user-copy small,
#checkoutHeaderMetrics .header-user-copy small{font-size:9px!important;line-height:1.02!important}
#checkinHeaderMetrics .header-user-copy strong,
#checkoutHeaderMetrics .header-user-copy strong{font-size:18px!important;line-height:1.02!important;font-weight:900!important}
#checkinHeaderMetrics .header-user-copy span,
#checkoutHeaderMetrics .header-user-copy span{font-size:10px!important;line-height:1.08!important;white-space:nowrap!important}

@media (max-width: 1400px){
  #view-checkin .register-date-block,
  #view-checkout .register-date-block,
  #checkinHeaderMetrics,
  #checkoutHeaderMetrics{padding-top:18px!important}
  #view-checkin .register-date-block .register-date,
  #view-checkout .register-date-block .register-date,
  #checkinHeaderMetrics .header-user-copy strong,
  #checkoutHeaderMetrics .header-user-copy strong{font-size:16px!important}
}


/* AutoTrace G68 — ultimi ritocchi grafici registri/login/menu */
#loginView .login-card{width:min(490px,95vw)!important;padding:32px 34px 30px!important}
#loginView .login-logo{width:min(390px,100%)!important;height:190px!important;max-width:390px!important;object-fit:contain!important;object-position:center!important;margin:-2px auto 10px!important;display:block!important}

.sidebar{padding:18px 16px 20px!important}
.sidebar-brand-only{height:118px!important;min-height:118px!important;padding:4px 6px 6px!important;margin-bottom:12px!important;background:transparent!important}
.sidebar-brand-only .sidebar-brand-logo{height:108px!important;width:100%!important;object-fit:contain!important;object-position:center center!important}
.sidebar nav{margin-top:18px!important;gap:16px!important;align-content:start!important}
.sidebar .nav-btn{min-height:52px!important;height:52px!important;border-radius:14px!important;padding:0 12px!important}
.sidebar .nav-btn .nav-label{font-size:12.8px!important;line-height:1!important;white-space:nowrap!important}

#view-checkin .register-heading-enhanced,
#view-checkout .register-heading-enhanced{align-items:end!important}
#view-checkin .register-date-block,
#view-checkout .register-date-block{align-self:end!important;justify-self:start!important;gap:12px!important;padding-top:14px!important;margin:0!important;align-items:flex-start!important}
#view-checkin .register-calendar-icon,
#view-checkout .register-calendar-icon{width:28px!important;height:28px!important;display:inline-flex!important;align-items:flex-start!important;justify-content:center!important;margin-top:0!important;flex:0 0 28px!important}
#view-checkin .register-calendar-icon svg,
#view-checkout .register-calendar-icon svg{width:28px!important;height:28px!important}
#view-checkin .register-date-block>div,
#view-checkout .register-date-block>div{display:flex!important;flex-direction:column!important;justify-content:flex-start!important}
#view-checkin .register-date-block .register-date,
#view-checkout .register-date-block .register-date{font-size:18px!important;line-height:1.02!important;letter-spacing:.01em!important;white-space:nowrap!important}
#view-checkin .register-date-block .readonly-note,
#view-checkout .register-date-block .readonly-note{font-size:10px!important;line-height:1.08!important;margin-top:3px!important;white-space:nowrap!important}

#checkinHeaderMetrics,
#checkoutHeaderMetrics{align-self:end!important;justify-self:end!important;padding-top:14px!important;margin:0!important}
#checkinHeaderMetrics .header-user-meta,
#checkoutHeaderMetrics .header-user-meta{gap:12px!important;align-items:flex-start!important}
#checkinHeaderMetrics .header-user-icon,
#checkoutHeaderMetrics .header-user-icon{width:30px!important;height:30px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 30px!important}
#checkinHeaderMetrics .header-user-icon svg,
#checkoutHeaderMetrics .header-user-icon svg{width:28px!important;height:28px!important}
#checkinHeaderMetrics .header-user-copy,
#checkoutHeaderMetrics .header-user-copy{gap:2px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important}
#checkinHeaderMetrics .header-user-copy small,
#checkoutHeaderMetrics .header-user-copy small{display:none!important}
#checkinHeaderMetrics .header-user-copy strong,
#checkoutHeaderMetrics .header-user-copy strong{font-size:18px!important;line-height:1.02!important;font-weight:900!important}
#checkinHeaderMetrics .header-user-copy span,
#checkoutHeaderMetrics .header-user-copy span{font-size:10px!important;line-height:1.08!important;white-space:nowrap!important}

@media (max-width: 1400px){
  .sidebar nav{gap:14px!important}
  #view-checkin .register-date-block,
  #view-checkout .register-date-block,
  #checkinHeaderMetrics,
  #checkoutHeaderMetrics{padding-top:12px!important}
  #view-checkin .register-date-block .register-date,
  #view-checkout .register-date-block .register-date,
  #checkinHeaderMetrics .header-user-copy strong,
  #checkoutHeaderMetrics .header-user-copy strong{font-size:16px!important}
}


/* AutoTrace G69 — correzione finale menu/logo/payoff */
.app{grid-template-columns:286px minmax(0,1fr)!important}
.sidebar{padding:18px 14px 18px!important}
.sidebar-brand-only{height:auto!important;min-height:146px!important;padding:6px 8px 10px!important;margin-bottom:12px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important}
.sidebar-brand-only .sidebar-brand-logo{height:102px!important;width:100%!important;max-width:220px!important;object-fit:contain!important;object-position:center center!important}
.brand-payoff{display:block!important;text-align:center!important;color:rgba(215,255,247,.98)!important;font-weight:800!important;letter-spacing:.18em!important;text-transform:uppercase!important;text-shadow:0 1px 8px rgba(0,0,0,.25)!important}
.brand-payoff-sidebar{font-size:10.8px!important;line-height:1.15!important;opacity:.96!important;white-space:nowrap!important}
#loginView .login-card{position:relative!important}
#loginView .login-logo{width:min(400px,100%)!important;height:192px!important;max-width:400px!important;object-fit:contain!important;object-position:center!important;margin:-2px auto 2px!important;display:block!important}
#loginView .brand-payoff-login{font-size:15px!important;line-height:1.12!important;margin:-2px 0 12px!important}

.sidebar nav{margin-top:22px!important;gap:12px!important}
.sidebar .nav-btn{min-height:52px!important;height:52px!important;padding:0 10px!important;gap:8px!important;justify-content:flex-start!important}
.sidebar .nav-btn .nav-icon{width:18px!important;height:18px!important;flex:0 0 18px!important}
.sidebar .nav-btn .nav-icon svg{width:18px!important;height:18px!important}
.sidebar .nav-btn .nav-label{font-size:12.1px!important;line-height:1!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;letter-spacing:0!important}
.sidebar .nav-btn[data-view="checkin"] .nav-label,
.sidebar .nav-btn[data-view="checkout"] .nav-label,
.sidebar .nav-btn[data-view="calendar"] .nav-label{font-size:11.95px!important}

#view-checkin .register-date-block,
#view-checkout .register-date-block{padding-top:14px!important;align-self:end!important}
#view-checkin .register-calendar-icon,
#view-checkout .register-calendar-icon{transform:translateY(-2px)!important}
#view-checkin .register-date-block .register-date,
#view-checkout .register-date-block .register-date{font-size:17px!important;line-height:1.02!important;white-space:nowrap!important}
#view-checkin .register-date-block .readonly-note,
#view-checkout .register-date-block .readonly-note{font-size:10px!important;line-height:1.08!important;white-space:nowrap!important}
#checkinHeaderMetrics,
#checkoutHeaderMetrics{padding-top:14px!important;align-self:end!important}
#checkinHeaderMetrics .header-user-copy strong,
#checkoutHeaderMetrics .header-user-copy strong{font-size:17px!important;line-height:1.02!important}
#checkinHeaderMetrics .header-user-copy span,
#checkoutHeaderMetrics .header-user-copy span{font-size:10px!important;line-height:1.08!important;white-space:nowrap!important}
#checkinHeaderMetrics .header-user-icon,
#checkoutHeaderMetrics .header-user-icon{width:32px!important;height:32px!important;flex:0 0 32px!important}
#checkinHeaderMetrics .header-user-icon svg,
#checkoutHeaderMetrics .header-user-icon svg{width:29px!important;height:29px!important;stroke-width:2.35!important}

@media (max-width: 1400px){
  .app{grid-template-columns:278px minmax(0,1fr)!important}
  .sidebar .nav-btn .nav-label{font-size:11.8px!important}
}


/* AutoTrace G70 — logo ingrandito senza doppione payoff */
.brand-payoff{display:none!important}
.sidebar-brand-only{min-height:172px!important;padding:6px 6px 8px!important;gap:0!important}
.sidebar-brand-only .sidebar-brand-logo{height:126px!important;max-width:238px!important;width:100%!important;object-fit:contain!important;object-position:center center!important;margin-top:2px!important}
#loginView .login-logo{width:min(440px,100%)!important;height:228px!important;max-width:440px!important;object-fit:contain!important;object-position:center center!important;margin:-8px auto 8px!important;display:block!important}
#loginView .login-card{padding-top:18px!important}
@media (max-width: 1400px){
  .sidebar-brand-only .sidebar-brand-logo{height:118px!important;max-width:228px!important}
  #loginView .login-logo{height:214px!important;max-width:420px!important}
}


/* AutoTrace G71 — payoff leggibile integrato nello spazio logo */
.sidebar-brand-only{min-height:154px!important;padding:8px 6px 10px!important;gap:2px!important;justify-content:flex-start!important}
.sidebar-brand-only .sidebar-brand-logo{height:104px!important;max-width:228px!important;width:100%!important;object-fit:contain!important;object-position:center center!important;margin-top:0!important}
#loginView .login-card{padding-top:20px!important}
#loginView .login-logo{width:min(420px,100%)!important;height:198px!important;max-width:420px!important;object-fit:contain!important;object-position:center center!important;margin:-2px auto 2px!important;display:block!important}
.brand-payoff{display:block!important;text-align:center!important;color:rgba(223,255,248,.98)!important;font-weight:900!important;text-transform:uppercase!important;text-shadow:0 1px 8px rgba(0,0,0,.28)!important;white-space:nowrap!important}
.brand-payoff-sidebar{font-size:12px!important;line-height:1.06!important;letter-spacing:.14em!important;margin:0 auto 2px!important;max-width:100%!important}
.brand-payoff-login{font-size:16px!important;line-height:1.08!important;letter-spacing:.15em!important;margin:0 auto 14px!important;max-width:100%!important}
@media (max-width: 1400px){
  .sidebar-brand-only{min-height:148px!important}
  .sidebar-brand-only .sidebar-brand-logo{height:100px!important;max-width:220px!important}
  #loginView .login-logo{height:188px!important;max-width:404px!important}
  .brand-payoff-sidebar{font-size:11.5px!important}
  .brand-payoff-login{font-size:15px!important}
}


/* AutoTrace G73 — sezione tecnica Log attività */
.log-controls{padding:16px!important;margin-bottom:14px!important}.log-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(125px,1fr)) auto auto;gap:10px;align-items:end}.log-filter-grid label{display:grid;gap:6px;color:var(--muted);font-weight:700;font-size:12px}.log-filter-grid input,.log-filter-grid select{height:40px}.log-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}.log-summary .stat{padding:12px 16px;min-width:150px}.log-summary .stat strong{font-size:24px;margin-top:4px}.log-table-wrap{max-height:calc(100vh - 330px)!important}.log-table{min-width:1250px}.log-table td{white-space:normal!important;vertical-align:top!important;line-height:1.3}.log-table .log-details{max-width:340px;overflow-wrap:anywhere}.log-result-ok{color:#7fffd4;font-weight:900}.log-result-error{color:#ff9aa8;font-weight:900}.autotrace-admin-only.hidden{display:none!important}@media(max-width:1200px){.log-filter-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}}


/* AutoTrace G79 — solo pagina Super Admin */
.superadmin-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.g79-org-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:18px}.g79-org-card{padding:22px}.g79-org-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.g79-org-head h3{margin:5px 0;font-size:24px}.g79-type{font-size:12px;font-weight:900;letter-spacing:.12em;color:var(--accent,#38e6c5)}.g79-org-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.g79-people{margin-top:18px;border-top:1px solid rgba(255,255,255,.12);padding-top:15px}.g79-secret{letter-spacing:.14em;font-weight:800}.g79-force{min-width:min(760px,80vw)}.g79-force>p{font-size:17px}.g79-force-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.g79-user-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.g79-user-form>p,.g79-user-form>button{grid-column:1/-1}@media(max-width:800px){.g79-org-grid{grid-template-columns:1fr}.g79-force-grid,.g79-user-form{grid-template-columns:1fr}.superadmin-title{align-items:stretch;flex-direction:column}.g79-force{min-width:0}}

/* G83: mantiene la grafica esistente e impedisce il taglio delle azioni nella tabella personale. */
.g79-people{overflow-x:auto;max-width:100%;}
.g79-people .users-table{min-width:980px;}
.g79-people td:last-child{white-space:nowrap;}

/* G84 - codice aziendale visibile e cambio credenziali più chiaro */
.g79-org-badges{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.g79-code{display:inline-flex;align-items:center;padding:4px 9px;border:1px solid rgba(56,230,197,.45);border-radius:999px;font-size:11px;font-weight:900;letter-spacing:.1em;color:#dffff8;background:rgba(56,230,197,.10)}
.g79-force-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:20px 0}
.g79-force-columns section{padding:18px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(0,0,0,.12)}
.g79-force-columns h4{margin:0 0 16px;font-size:14px;letter-spacing:.08em;color:var(--accent,#38e6c5)}
.g79-credential-field{display:block;margin-bottom:15px}
.g79-credential-field>span{display:block;margin-bottom:7px;font-weight:800}
.g79-input-wrap{position:relative;display:flex;align-items:center}
.g79-input-wrap input{width:100%;padding-right:72px}
.g79-eye{position:absolute;right:10px;width:34px;height:34px;border:0;border-radius:9px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;font-size:18px;line-height:1}
.g79-eye.active{background:rgba(56,230,197,.18);color:var(--accent,#38e6c5)}
.g79-warn{position:absolute;right:50px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#d9364f;color:white;font-weight:1000;box-shadow:0 0 0 3px rgba(217,54,79,.18)}
.g79-invalid{border-color:#ff4d64!important;box-shadow:0 0 0 2px rgba(255,77,100,.18)!important}
@media(max-width:800px){.g79-force-columns{grid-template-columns:1fr;gap:14px}}


/* AutoTrace G85 — fix cambio credenziali e gestione personale completa */
.g79-org-card.g79-org-card-expanded{grid-column:1/-1}
.g79-org-card.g79-org-card-expanded .g79-people{display:block;width:100%;overflow-x:auto!important;overflow-y:visible!important;padding-bottom:12px;scrollbar-gutter:stable}
.g79-org-card.g79-org-card-expanded .g79-people .users-table{min-width:1120px!important;width:1120px!important}
.g79-org-card.g79-org-card-expanded .g79-people::-webkit-scrollbar{height:12px}
.g79-org-card.g79-org-card-expanded .g79-people::-webkit-scrollbar-thumb{background:rgba(67,233,201,.55);border-radius:999px}
.g79-scroll-hint{display:none;margin:0 0 8px;font-size:12px;font-weight:700;color:var(--accent,#38e6c5)}
.g79-org-card.g79-org-card-expanded .g79-scroll-hint{display:block}
.g79-people td:last-child{min-width:300px}
.g79-people td:last-child .btn{margin:3px 4px 3px 0}
@media(max-width:900px){.g79-org-card.g79-org-card-expanded .g79-people .users-table{min-width:1120px!important;width:1120px!important}}

/* AutoTrace G88 — chiusura pannelli e abbinamento aziende */
.g79-people-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.12)}
.g79-org-badges{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.g79-org-actions .btn{white-space:nowrap}


/* AutoTrace G89 — coppie aziendali unite e identità utente globale */
.g88-tenant-card{grid-column:1/-1!important;padding:18px!important}
.g88-tenant-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 0 14px;border-bottom:1px solid rgba(110,231,200,.22);margin-bottom:14px}
.g88-tenant-head>div{display:flex;align-items:center;gap:12px}.g88-tenant-head strong{font-size:13px;letter-spacing:.08em}.g88-tenant-head small{color:var(--muted);text-align:right}
.g88-company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.g88-company-block{background:rgba(4,29,25,.52);border:1px solid rgba(91,218,184,.22);border-radius:14px;padding:15px;min-width:0}
.g88-company-block:only-child{grid-column:1/-1}
.g88-company-block .g79-org-head{margin-bottom:12px}
.topbar{height:62px!important;min-height:62px!important;overflow:visible!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;padding:0 8px 8px!important;position:relative!important}
.topbar-user{position:static!important;transform:none!important;margin-left:auto!important;display:flex!important;justify-content:flex-end!important;min-width:260px}
.g89-global-user{display:flex;align-items:center;justify-content:flex-end;gap:10px;text-align:right;padding:7px 10px;border:1px solid rgba(94,230,194,.28);background:rgba(4,24,22,.76);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.g89-user-copy{display:grid;justify-items:end;gap:2px}.g89-user-copy strong{font-size:14px;color:#fff}.g89-user-copy span{font-size:10px;color:#a9c9c1;text-transform:uppercase;letter-spacing:.04em}.g89-user-icon{font-size:22px;line-height:1}
.main>.view{margin-top:0!important}
@media(max-width:900px){.g88-company-grid{grid-template-columns:1fr}.g88-tenant-head{align-items:flex-start;flex-direction:column}.g88-tenant-head small{text-align:left}.topbar{height:66px!important;min-height:66px!important}.topbar-user{min-width:0}.g89-global-user{max-width:100%}}

/* AutoTrace G90 — layout richiesto pagina aziende e registri */
.g90-superadmin-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:14px 0 22px;
}
.g90-superadmin-toolbar>#g79CreateOrg{
  min-width:180px;
  align-self:center;
}
.g90-superadmin-identity{margin-left:auto;display:flex;justify-content:flex-end}
body.g90-superadmin-page .topbar{display:none!important}
body.g90-register-page .topbar{display:none!important}
body.g90-superadmin-page .main>.view,
body.g90-register-page .main>.view{margin-top:0!important}
.g90-org-actions{display:grid!important;gap:10px!important}
.g90-actions-row{display:flex;flex-wrap:wrap;gap:10px}
.g90-actions-row .btn{
  min-height:42px;
  height:42px;
  padding:0 16px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:850;
  border-radius:10px;
}
.g90-actions-create .btn{flex:1 1 150px}
.g90-actions-manage .btn{flex:1 1 180px}
.g90-actions-manage{margin-top:2px}
.g88-company-block .g79-org-actions{margin-top:14px}
@media(max-width:900px){
  .g90-superadmin-toolbar{align-items:stretch;flex-direction:column}
  .g90-superadmin-identity{margin-left:0;justify-content:flex-start}
  .g90-superadmin-toolbar>#g79CreateOrg{align-self:flex-start}
  .g90-actions-row{display:grid;grid-template-columns:1fr}
  .g90-actions-row .btn{width:100%}
}

/* AutoTrace G91 — codice gruppo ben visibile dentro ogni azienda */
.g79-org-badges{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
.g91-company-code{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;padding:4px 12px;border:2px solid rgba(255,255,255,.92);
  border-radius:999px;background:rgba(255,255,255,.08);color:#fff;
  font-size:11px;font-weight:900;letter-spacing:.09em;line-height:1;
  box-shadow:0 0 0 1px rgba(56,230,197,.16) inset,0 5px 16px rgba(0,0,0,.16)
}
.g88-tenant-head .g79-code{border-width:2px;border-color:rgba(255,255,255,.82);color:#fff;background:rgba(255,255,255,.07)}

/* AutoTrace G92 — personale, privacy, ruoli e gestione fornitori */
.g92-user-form{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,1fr);gap:16px 20px;align-items:start}
.g92-user-form>label{min-width:0}
.g92-user-form input,.g92-user-form select{width:100%}
.g92-user-form label small{display:block;margin-top:6px;line-height:1.25}
.g92-user-form .g92-small-field input{max-width:100%}
.g92-user-form .g92-form-note,.g92-user-form>.wide{grid-column:1/-1}
.g92-org-state{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.g92-org-toggle{min-height:34px!important;padding:7px 11px!important;font-size:11px!important}
.g92-people-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.g92-people-fullscreen{position:fixed!important;inset:18px!important;z-index:10050!important;max-width:none!important;width:auto!important;height:auto!important;overflow:auto!important;background:rgba(8,24,31,.985)!important;border:1px solid rgba(69,239,205,.6)!important;box-shadow:0 20px 70px rgba(0,0,0,.65)!important;padding:24px!important}
.g92-people-fullscreen .g88-tenant-head,.g92-people-fullscreen .g88-company-grid>.g88-company-block:not(:has([id^="g79people-"]:not(:empty))){display:none!important}
.g92-people-fullscreen .g88-company-grid{display:block!important}
.g92-people-fullscreen .g88-company-block{border:0!important;background:transparent!important}
.g92-people-fullscreen .g79-org-head,.g92-people-fullscreen .g79-org-actions{display:none!important}
.g92-people-fullscreen .g79-people{overflow:auto!important;max-height:calc(100vh - 130px)!important}
.g92-people-fullscreen .g79-people .users-table{min-width:1000px!important;width:100%!important}
.g92-no-scroll{overflow:hidden!important}
@media(max-width:800px){.g92-user-form{grid-template-columns:1fr}.g92-user-form .g92-form-note,.g92-user-form>.wide{grid-column:1}.g92-people-fullscreen{inset:6px!important;padding:12px!important}}


/* AutoTrace G98ZA — checklist desktop compatta senza alterare i controlli */
@media (min-width: 901px){
  #modal .modal-card.checklist-modal-card{
    width:min(1180px,94vw)!important;
    max-width:1180px!important;
    max-height:94vh!important;
    padding:12px 14px!important;
    overflow:hidden!important;
  }
  #modal .checklist-modal-card #modalContent{
    max-height:calc(94vh - 54px)!important;
    overflow:auto!important;
    padding:2px 4px 8px!important;
  }
  #modal .checklist-modal-card .checklist-v20{width:100%!important;max-width:none!important}
  #modal .checklist-modal-card .checklist-choice{gap:6px!important;margin-bottom:5px!important}
  #modal .checklist-modal-card .checklist-choice .btn{min-height:34px!important;padding:6px 10px!important;font-size:12px!important}
  #modal .checklist-modal-card .checklist-required-info{padding:6px 9px!important;margin:5px 0!important;font-size:11px!important}
  #modal .checklist-modal-card .checklist-europcar-head{grid-template-columns:180px 1fr!important;gap:7px!important;padding:6px 8px!important}
  #modal .checklist-modal-card .checklist-brand-tag{font-size:14px!important;padding:5px 7px!important}
  #modal .checklist-modal-card .checklist-brand-box small,
  #modal .checklist-modal-card .checklist-total-badge{font-size:8px!important;margin:1px 0!important}
  #modal .checklist-modal-card .checklist-europcar-meta{gap:4px!important}
  #modal .checklist-modal-card .checklist-europcar-meta span{min-height:31px!important;padding:3px 5px!important;font-size:8px!important;line-height:1.05!important}
  #modal .checklist-modal-card .checklist-europcar-meta b{font-size:7.5px!important;margin-bottom:1px!important}
  #modal .checklist-modal-card .paper-sections-layout{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;gap:5px!important;margin-top:5px!important}
  #modal .checklist-modal-card .paper-sections-column{gap:4px!important}
  #modal .checklist-modal-card .paper-section.danger{grid-template-columns:72px 1fr!important}
  #modal .checklist-modal-card .paper-section-title{padding:3px 5px!important;font-size:8.5px!important;line-height:1!important}
  #modal .checklist-modal-card .paper-section.danger .paper-section-title{font-size:8px!important;padding:3px!important}
  #modal .checklist-modal-card .paper-check-row{min-height:22px!important;padding:2px 4px!important;gap:3px!important}
  #modal .checklist-modal-card .paper-check-label{font-size:9px!important;line-height:1.05!important}
  #modal .checklist-modal-card .paper-check-actions{gap:3px!important}
  #modal .checklist-modal-card .paper-choice{width:31px!important;height:23px!important;min-width:31px!important;min-height:23px!important;padding:0!important;font-size:0!important}
  #modal .checklist-modal-card .paper-choice.ok::after,
  #modal .checklist-modal-card .paper-choice.bad::after{font-size:13px!important}
  #modal .checklist-modal-card .checklist-paper-note{margin-top:4px!important;padding-top:3px!important;font-size:7.5px!important}
  #modal .checklist-modal-card .checklist-save-row{padding:6px 0!important;gap:6px!important}
  #modal .checklist-modal-card .checklist-save-row .btn{min-height:36px!important;padding:6px 10px!important}
}



/* AutoTrace G98ZB — checklist desktop realmente compatta, controlli subito dopo il testo */
@media (min-width: 901px){
  #modal .modal-card.checklist-modal-card{
    width:min(1040px,94vw)!important;
    max-width:1040px!important;
  }
  #modal .checklist-modal-card .checklist-choice{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:7px!important;
  }
  #modal .checklist-modal-card .checklist-choice .btn{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    min-height:32px!important;
    padding:6px 12px!important;
    font-size:12px!important;
  }
  #modal .checklist-modal-card .checklist-europcar-head{
    grid-template-columns:165px max-content!important;
    justify-content:start!important;
    gap:7px!important;
  }
  #modal .checklist-modal-card .checklist-europcar-meta{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:4px!important;
    width:auto!important;
  }
  #modal .checklist-modal-card .checklist-europcar-meta span{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:105px!important;
    max-width:260px!important;
    min-height:34px!important;
    padding:4px 7px!important;
    font-size:11px!important;
    line-height:1.1!important;
  }
  #modal .checklist-modal-card .checklist-europcar-meta b{
    font-size:10px!important;
    margin-bottom:2px!important;
  }
  #modal .checklist-modal-card .checklist-europcar-meta span:nth-child(1){min-width:145px!important}
  #modal .checklist-modal-card .checklist-europcar-meta span:nth-child(2){min-width:115px!important}
  #modal .checklist-modal-card .checklist-europcar-meta span:nth-child(3){min-width:120px!important;font-size:14px!important;font-weight:800!important}
  #modal .checklist-modal-card .checklist-europcar-meta span:nth-child(4){min-width:145px!important}
  #modal .checklist-modal-card .checklist-europcar-meta span:nth-child(5){min-width:165px!important}
  #modal .checklist-modal-card .checklist-europcar-meta span:nth-child(6){min-width:255px!important}

  #modal .checklist-modal-card .paper-sections-layout{
    grid-template-columns:max-content max-content!important;
    justify-content:start!important;
    align-items:start!important;
    gap:7px!important;
    width:max-content!important;
    max-width:100%!important;
  }
  #modal .checklist-modal-card .paper-sections-column{
    width:max-content!important;
    max-width:100%!important;
  }
  #modal .checklist-modal-card .paper-section{
    width:max-content!important;
    max-width:100%!important;
  }
  #modal .checklist-modal-card .paper-section-body{
    width:max-content!important;
    max-width:100%!important;
  }
  #modal .checklist-modal-card .paper-section.danger{
    grid-template-columns:58px max-content!important;
    width:max-content!important;
  }
  #modal .checklist-modal-card .paper-sections-column.left .paper-check-row{
    grid-template-columns:250px 64px!important;
    width:max-content!important;
    min-height:21px!important;
    padding:2px 4px!important;
  }
  #modal .checklist-modal-card .paper-sections-column.right .paper-check-row{
    grid-template-columns:390px 64px!important;
    width:max-content!important;
    min-height:21px!important;
    padding:2px 4px!important;
  }
  #modal .checklist-modal-card .paper-check-label{
    font-size:10px!important;
    line-height:1.08!important;
    white-space:normal!important;
  }
  #modal .checklist-modal-card .paper-check-actions{
    min-width:0!important;
    width:64px!important;
    gap:3px!important;
    justify-content:flex-end!important;
  }
  #modal .checklist-modal-card .paper-choice{
    width:29px!important;height:22px!important;min-width:29px!important;min-height:22px!important;
  }
  #modal .checklist-modal-card .paper-section-title{
    padding:4px 7px!important;
    font-size:10px!important;
  }
}


/* AutoTrace G98ZC — checklist desktop compatta, leggibile e mai tagliata */
@media (min-width:901px){
  #modal .modal-card.checklist-modal-card,
  #modal .modal-card.online-checklist-preview-modal{
    width:min(1240px,97vw)!important;
    max-width:1240px!important;
    max-height:96vh!important;
    padding:10px 12px!important;
    overflow:hidden!important;
  }
  #modal .checklist-modal-card #modalContent,
  #modal .online-checklist-preview-modal #modalContent{
    max-height:calc(96vh - 48px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:2px 3px 7px!important;
  }
  #modal .checklist-modal-card .checklist-choice{display:flex!important;justify-content:flex-start!important;gap:6px!important;flex-wrap:wrap!important;margin-bottom:4px!important}
  #modal .checklist-modal-card .checklist-choice .btn{width:auto!important;min-width:0!important;min-height:30px!important;padding:5px 10px!important;font-size:11px!important;flex:0 0 auto!important}
  #modal .checklist-modal-card .checklist-required-info{margin:3px 0 5px!important;padding:5px 8px!important;font-size:10px!important}
  #modal .checklist-modal-card .checklist-europcar,
  #modal .online-checklist-preview-modal .checklist-europcar{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:6px 7px!important}
  #modal .checklist-modal-card .checklist-europcar-head,
  #modal .online-checklist-preview-modal .checklist-europcar-head{
    display:grid!important;grid-template-columns:145px minmax(0,1fr)!important;gap:5px!important;align-items:stretch!important;padding-bottom:4px!important
  }
  #modal .checklist-modal-card .checklist-brand-tag,
  #modal .online-checklist-preview-modal .checklist-brand-tag{font-size:13px!important;line-height:1.05!important;padding:4px 6px!important}
  #modal .checklist-modal-card .checklist-brand-box small,
  #modal .online-checklist-preview-modal .checklist-brand-box small,
  #modal .checklist-modal-card .checklist-total-badge,
  #modal .online-checklist-preview-modal .checklist-total-badge{font-size:8px!important;line-height:1.05!important;padding:2px 5px!important;margin:1px 0!important}
  #modal .checklist-modal-card .checklist-europcar-meta,
  #modal .online-checklist-preview-modal .checklist-europcar-meta{
    display:grid!important;
    grid-template-columns:minmax(125px,1.1fr) minmax(95px,.8fr) minmax(110px,.9fr) minmax(125px,1fr) minmax(150px,1.25fr) minmax(205px,1.7fr)!important;
    gap:3px!important;width:100%!important;min-width:0!important
  }
  #modal .checklist-modal-card .checklist-europcar-meta span,
  #modal .online-checklist-preview-modal .checklist-europcar-meta span{
    min-width:0!important;max-width:none!important;width:auto!important;min-height:34px!important;height:auto!important;padding:3px 5px!important;
    font-size:11px!important;line-height:1.1!important;white-space:normal!important;overflow-wrap:anywhere!important
  }
  #modal .checklist-modal-card .checklist-europcar-meta b,
  #modal .online-checklist-preview-modal .checklist-europcar-meta b{font-size:8.5px!important;line-height:1!important;margin-bottom:2px!important}
  #modal .checklist-modal-card .checklist-europcar-meta span:nth-child(3),
  #modal .online-checklist-preview-modal .checklist-europcar-meta span:nth-child(3){font-size:14px!important;font-weight:900!important}
  #modal .checklist-modal-card .paper-sections-layout,
  #modal .online-checklist-preview-modal .paper-sections-layout{
    display:grid!important;grid-template-columns:minmax(0,.43fr) minmax(0,.57fr)!important;gap:5px!important;width:100%!important;max-width:100%!important;margin-top:4px!important
  }
  #modal .checklist-modal-card .paper-sections-column,
  #modal .online-checklist-preview-modal .paper-sections-column,
  #modal .checklist-modal-card .paper-section,
  #modal .online-checklist-preview-modal .paper-section,
  #modal .checklist-modal-card .paper-section-body,
  #modal .online-checklist-preview-modal .paper-section-body{width:100%!important;max-width:100%!important;min-width:0!important}
  #modal .checklist-modal-card .paper-sections-column,
  #modal .online-checklist-preview-modal .paper-sections-column{gap:3px!important}
  #modal .checklist-modal-card .paper-section.danger,
  #modal .online-checklist-preview-modal .paper-section.danger{display:grid!important;grid-template-columns:50px minmax(0,1fr)!important;width:100%!important}
  #modal .checklist-modal-card .paper-check-row,
  #modal .online-checklist-preview-modal .paper-check-row{display:grid!important;grid-template-columns:minmax(0,1fr) 56px!important;gap:3px!important;min-height:19px!important;padding:1px 3px!important;width:100%!important;box-sizing:border-box!important}
  #modal .checklist-modal-card .paper-check-label,
  #modal .online-checklist-preview-modal .paper-check-label{font-size:9.5px!important;line-height:1.05!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  #modal .checklist-modal-card .paper-check-actions,
  #modal .online-checklist-preview-modal .paper-check-actions{width:56px!important;min-width:56px!important;gap:2px!important;justify-content:flex-end!important;align-items:center!important}
  #modal .checklist-modal-card .paper-choice{width:26px!important;height:20px!important;min-width:26px!important;min-height:20px!important;padding:0!important}
  #modal .checklist-modal-card .paper-choice.ok::after,
  #modal .checklist-modal-card .paper-choice.bad::after{font-size:12px!important}
  #modal .checklist-modal-card .paper-section-title,
  #modal .online-checklist-preview-modal .paper-section-title{padding:3px 5px!important;font-size:9px!important;line-height:1!important}
  #modal .checklist-modal-card .paper-section.danger .paper-section-title,
  #modal .online-checklist-preview-modal .paper-section.danger .paper-section-title{font-size:8.5px!important;padding:3px!important}
  #modal .checklist-modal-card .checklist-paper-note,
  #modal .online-checklist-preview-modal .checklist-paper-note{margin-top:3px!important;padding-top:3px!important;font-size:7.5px!important}
  #modal .checklist-modal-card .checklist-save-status{min-height:22px!important;margin:5px 0 2px!important;font-size:12px!important}
  #modal .checklist-modal-card .checklist-save-row{padding:4px 0!important;gap:5px!important}
  #modal .checklist-modal-card .checklist-save-row .btn{min-height:34px!important;padding:5px 9px!important}
}

/* AutoTrace G98ZQ — checklist desktop: nessuna voce tagliata, compatta ma leggibile */n@media (min-width:901px){n  #modal .modal-card.checklist-modal-card,n  #modal .modal-card.online-checklist-preview-modal{n    width:min(1440px,99vw)!important;n    max-width:1440px!important;n    overflow:visible!important;n  }n  #modal .checklist-modal-card #modalContent,n  #modal .online-checklist-preview-modal #modalContent{n    overflow:auto!important;n    overflow-x:hidden!important;n    max-width:100%!important;n  }n  #modal .checklist-modal-card .checklist-europcar,n  #modal .online-checklist-preview-modal .checklist-europcar,n  #modal .checklist-modal-card .paper-sections-layout,n  #modal .online-checklist-preview-modal .paper-sections-layout,n  #modal .checklist-modal-card .paper-sections-column,n  #modal .online-checklist-preview-modal .paper-sections-column,n  #modal .checklist-modal-card .paper-section,n  #modal .online-checklist-preview-modal .paper-section,n  #modal .checklist-modal-card .paper-section-body,n  #modal .online-checklist-preview-modal .paper-section-body{n    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;n  }n  #modal .checklist-modal-card .paper-sections-layout,n  #modal .online-checklist-preview-modal .paper-sections-layout{n    grid-template-columns:minmax(0,1fr) minmax(0,1.18fr)!important;gap:7px!important;n  }n  #modal .checklist-modal-card .paper-check-row,n  #modal .online-checklist-preview-modal .paper-check-row{n    grid-template-columns:minmax(0,1fr) 58px!important;n    min-height:22px!important;padding:2px 5px!important;gap:4px!important;n    overflow:visible!important;n  }n  #modal .checklist-modal-card .paper-check-label,n  #modal .online-checklist-preview-modal .paper-check-label{n    display:block!important;min-width:0!important;max-width:none!important;n    white-space:normal!important;overflow:visible!important;text-overflow:clip!important;n    overflow-wrap:break-word!important;word-break:normal!important;n    font-size:10.5px!important;line-height:1.12!important;n  }n  #modal .checklist-modal-card .paper-check-actions,n  #modal .online-checklist-preview-modal .paper-check-actions{n    width:58px!important;min-width:58px!important;justify-content:flex-end!important;flex-wrap:nowrap!important;n  }n  #modal .checklist-modal-card .checklist-europcar-meta span,n  #modal .online-checklist-preview-modal .checklist-europcar-meta span{n    min-height:34px!important;height:auto!important;padding:3px 6px!important;white-space:normal!important;overflow:visible!important;n  }n}n

/* AutoTrace G98ZR — desktop: ritorno checklist sulla stessa riga + testi mai troncati */
@media (min-width:901px){
  #modal .checklist-modal-card .paper-check-label,
  #modal .online-checklist-preview-modal .paper-check-label{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    line-height:1.18!important;
    height:auto!important;
    max-height:none!important;
  }
  #modal .checklist-modal-card .paper-check-row,
  #modal .online-checklist-preview-modal .paper-check-row{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    align-items:center!important;
  }
  #checkoutBody tr.g98zr-row-return{outline:2px solid rgba(0,0,0,.08);outline-offset:-2px}
}



/* AutoTrace G98ZS — DESKTOP checklist leggibile: nessuna riga compressa/tagliata */
@media (min-width:901px){
  #modal .modal-card.checklist-modal-card,
  #modal .modal-card.online-checklist-preview-modal{
    width:min(1440px,99vw)!important;
    max-width:1440px!important;
    max-height:96vh!important;
    overflow:hidden!important;
  }
  #modal .checklist-modal-card #modalContent,
  #modal .online-checklist-preview-modal #modalContent{
    max-height:calc(96vh - 58px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:4px 8px 12px!important;
  }
  #modal .checklist-modal-card .paper-sections-layout,
  #modal .online-checklist-preview-modal .paper-sections-layout{
    grid-template-columns:minmax(0,1fr) minmax(0,1.14fr)!important;
    width:100%!important;
    max-width:100%!important;
    gap:10px!important;
    align-items:start!important;
  }
  #modal .checklist-modal-card .paper-sections-column,
  #modal .online-checklist-preview-modal .paper-sections-column,
  #modal .checklist-modal-card .paper-section,
  #modal .online-checklist-preview-modal .paper-section,
  #modal .checklist-modal-card .paper-section-body,
  #modal .online-checklist-preview-modal .paper-section-body{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  #modal .checklist-modal-card .paper-section.danger,
  #modal .online-checklist-preview-modal .paper-section.danger{
    grid-template-columns:72px minmax(0,1fr)!important;
    width:100%!important;
  }
  #modal .checklist-modal-card .paper-check-row,
  #modal .online-checklist-preview-modal .paper-check-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 72px!important;
    min-height:34px!important;
    height:auto!important;
    max-height:none!important;
    padding:6px 7px!important;
    gap:7px!important;
    align-items:start!important;
    overflow:visible!important;
  }
  #modal .checklist-modal-card .paper-check-label,
  #modal .online-checklist-preview-modal .paper-check-label{
    display:block!important;
    font-size:12px!important;
    line-height:1.38!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    height:auto!important;
    max-height:none!important;
    padding:1px 0 2px!important;
  }
  #modal .checklist-modal-card .paper-check-actions,
  #modal .online-checklist-preview-modal .paper-check-actions{
    width:72px!important;
    min-width:72px!important;
    gap:5px!important;
    align-items:flex-start!important;
    justify-content:flex-end!important;
  }
  #modal .checklist-modal-card .paper-choice{
    width:32px!important;
    min-width:32px!important;
    height:28px!important;
    min-height:28px!important;
  }
  #view-checkout .wash-select{min-width:105px!important;width:105px!important;font-size:11px!important}
  #view-checkout .register-table th.c-wash,
  #view-checkout .register-table td.c-wash{width:116px!important;min-width:116px!important;max-width:116px!important}
}

/* ==========================================================
   AutoTrace V15 — SOLO RIFINITURA GRAFICA MOBILE
   Base: V13 funzionante. Nessuna modifica a JS/API/logica.
   ========================================================== */
@media (max-width: 760px){
  /* Pulsanti registro: sempre su una sola riga */
  #atMobileV7 .at6-tabs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}
  #atMobileV7 .at6-tab{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    font-size:12.5px!important;
    letter-spacing:-.2px!important;
    padding:0 7px!important;
  }

  /* Card registro: priorità alla targa, senza "..." */
  #atMobileV7 .at6-summary{
    grid-template-columns:54px minmax(0,1fr) 112px!important;
    gap:8px!important;
    padding:15px 12px!important;
  }
  #atMobileV7 .at6-main{min-width:0!important;padding-right:2px!important}
  #atMobileV7 .at6-main strong{
    font-size:20px!important;
    line-height:1.08!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    letter-spacing:-.35px!important;
  }
  #atMobileV7 .at6-main small{
    font-size:14px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #atMobileV7 .at6-right{min-width:0!important;width:112px!important;gap:3px!important;justify-content:flex-end!important}
  #atMobileV7 .at6-signs{
    width:92px!important;
    min-width:0!important;
    grid-template-columns:48px 40px!important;
    gap:3px 3px!important;
    font-size:9.5px!important;
    line-height:1.05!important;
  }
  #atMobileV7 .at6-signs .r{overflow:hidden!important;text-overflow:clip!important;white-space:nowrap!important}
  #atMobileV7 .at6-signs .s{font-size:9.5px!important;min-width:0!important;overflow:hidden!important}
  #atMobileV7 .at6-signs .s small{font-size:8.5px!important;line-height:1!important}
  #atMobileV7 .at6-chevron{font-size:20px!important;flex:0 0 auto!important}

  /* Checklist: toolbar dentro al contenuto, mai tre righe sovrapposte */
  #modal .checklist-preview-toolbar{
    position:static!important;
    inset:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    gap:5px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 6px!important;
    padding:0!important;
    overflow-x:auto!important;
    z-index:auto!important;
  }
  #modal .checklist-preview-toolbar .btn,
  #modal .checklist-edit-button,
  #modal .checklist-print-button,
  #modal .checklist-close-button{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    min-height:34px!important;
    padding:6px 9px!important;
    font-size:11px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }

  /* Scheda bianca checklist: usa tutta la larghezza, niente vuoto centrale */
  #modal .modal-card.checklist-modal-card,
  #modal .modal-card.online-checklist-preview-modal{
    width:calc(100vw - 10px)!important;
    max-width:calc(100vw - 10px)!important;
    max-height:94vh!important;
    margin:0!important;
    padding:7px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card #modalContent,
  #modal .online-checklist-preview-modal #modalContent{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(94vh - 48px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:2px!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .checklist-europcar,
  #modal .online-checklist-preview-modal .checklist-europcar{
    width:100%!important;
    max-width:100%!important;
    padding:8px!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .checklist-europcar-head,
  #modal .online-checklist-preview-modal .checklist-europcar-head{
    display:block!important;
    width:100%!important;
    padding-bottom:7px!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .checklist-brand-box,
  #modal .online-checklist-preview-modal .checklist-brand-box{
    width:100%!important;
    max-width:100%!important;
    margin:0 0 7px!important;
  }
  #modal .checklist-modal-card .checklist-brand-tag,
  #modal .online-checklist-preview-modal .checklist-brand-tag{
    font-size:20px!important;
    line-height:1.08!important;
    padding:7px 8px!important;
  }
  #modal .checklist-modal-card .checklist-total-badge,
  #modal .online-checklist-preview-modal .checklist-total-badge{
    width:100%!important;
    font-size:11px!important;
    padding:5px 7px!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .checklist-europcar-meta,
  #modal .online-checklist-preview-modal .checklist-europcar-meta{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  #modal .checklist-modal-card .checklist-europcar-meta span,
  #modal .online-checklist-preview-modal .checklist-europcar-meta span{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:64px!important;
    padding:7px 8px!important;
    font-size:13px!important;
    line-height:1.15!important;
    overflow-wrap:anywhere!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .checklist-europcar-meta b,
  #modal .online-checklist-preview-modal .checklist-europcar-meta b{
    font-size:10px!important;
    line-height:1.05!important;
    margin-bottom:4px!important;
  }
  #modal .checklist-modal-card .checklist-europcar-meta span:nth-child(6),
  #modal .online-checklist-preview-modal .checklist-europcar-meta span:nth-child(6){
    grid-column:1/-1!important;
    min-height:54px!important;
  }

  /* Controlli checklist in verticale e a piena larghezza */
  #modal .checklist-modal-card .paper-sections-layout,
  #modal .online-checklist-preview-modal .paper-sections-layout{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    margin-top:8px!important;
  }
  #modal .checklist-modal-card .paper-sections-column,
  #modal .online-checklist-preview-modal .paper-sections-column,
  #modal .checklist-modal-card .paper-section,
  #modal .online-checklist-preview-modal .paper-section,
  #modal .checklist-modal-card .paper-section-body,
  #modal .online-checklist-preview-modal .paper-section-body{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-section.danger,
  #modal .online-checklist-preview-modal .paper-section.danger{
    grid-template-columns:62px minmax(0,1fr)!important;
  }
  #modal .checklist-modal-card .paper-check-row,
  #modal .online-checklist-preview-modal .paper-check-row{
    grid-template-columns:minmax(0,1fr) 74px!important;
    width:100%!important;
    min-height:44px!important;
    padding:5px 7px!important;
    gap:6px!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-check-label,
  #modal .online-checklist-preview-modal .paper-check-label{
    font-size:14px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  #modal .checklist-modal-card .paper-check-actions,
  #modal .online-checklist-preview-modal .paper-check-actions{
    width:74px!important;
    min-width:74px!important;
    gap:5px!important;
    flex-wrap:nowrap!important;
    justify-content:flex-end!important;
  }
  #modal .checklist-modal-card .paper-choice,
  #modal .online-checklist-preview-modal .paper-choice{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
  }
  #modal .checklist-modal-card .checklist-save-row{
    position:sticky!important;
    bottom:0!important;
    z-index:5!important;
    margin-top:6px!important;
    padding:6px 0 2px!important;
    background:#0b2924!important;
  }
}

/* AutoTrace V16 — SOLO UI MOBILE: leggibilità card/checklist + input maiuscoli */
@media (max-width:900px){
  #atMobileV7 .at6-tabs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}
  #atMobileV7 .at6-tab{font-size:12.5px!important;white-space:nowrap!important;padding:0 7px!important;letter-spacing:-.15px!important}
  #atMobileV7 .at6-search button{position:absolute!important;right:7px!important;top:50%!important;transform:translateY(-50%)!important;width:40px!important;height:40px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#a9bdcd!important;font-size:24px!important;display:grid!important;place-items:center!important;padding:0!important}
  #atMobileV7 .at6-search input{text-transform:uppercase!important;padding-right:52px!important}
  #atMobileV7 .at6-control[data-at6-field="plate"],
  #atMobileV7 .at6-control[data-at6-field="model"]{text-transform:uppercase!important}

  /* Più spazio alla targa, nome firmatario e orario più leggibili */
  #atMobileV7 .at6-summary{grid-template-columns:54px minmax(0,1fr) 126px!important;gap:7px!important;padding:15px 10px!important}
  #atMobileV7 .at6-main{min-width:0!important;overflow:visible!important}
  #atMobileV7 .at6-main strong{font-size:20px!important;line-height:1.05!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}
  #atMobileV7 .at6-main small{font-size:14px!important}
  #atMobileV7 .at6-right{width:126px!important;min-width:126px!important;gap:3px!important}
  #atMobileV7 .at6-signs{width:106px!important;grid-template-columns:47px 56px!important;gap:3px!important;font-size:9.5px!important}
  #atMobileV7 .at6-signs .s{font-size:11px!important;line-height:1.05!important;overflow:visible!important;white-space:normal!important}
  #atMobileV7 .at6-signs .s small{font-size:9.5px!important;line-height:1.05!important;margin-top:2px!important;white-space:nowrap!important}

  /* Storico targa aperto dal Cerca mobile: leggibile nel modal */
  #modal .at6-history-mobile{display:grid!important;gap:10px!important;max-width:100%!important;overflow-x:hidden!important}
  #modal .at6-history-mobile .timeline-item{margin:0!important;padding:12px!important;max-width:100%!important;box-sizing:border-box!important}

  /* Checklist: rientra completamente nello schermo */
  #modal .modal-card.checklist-modal-card,
  #modal .modal-card.online-checklist-preview-modal{width:calc(100vw - 14px)!important;max-width:calc(100vw - 14px)!important;padding:6px!important;left:auto!important;right:auto!important}
  #modal .checklist-modal-card #modalContent,
  #modal .online-checklist-preview-modal #modalContent{padding:0!important;overflow-x:hidden!important}
  #modal .checklist-modal-card .checklist-europcar,
  #modal .online-checklist-preview-modal .checklist-europcar{padding:6px!important;margin:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
  #modal .checklist-modal-card .paper-check-row,
  #modal .online-checklist-preview-modal .paper-check-row{grid-template-columns:minmax(0,1fr) 68px!important;padding:5px 5px!important;gap:4px!important}
  #modal .checklist-modal-card .paper-check-actions,
  #modal .online-checklist-preview-modal .paper-check-actions{width:68px!important;min-width:68px!important;gap:3px!important}
  #modal .checklist-modal-card .paper-choice,
  #modal .online-checklist-preview-modal .paper-choice{width:31px!important;height:31px!important;min-width:31px!important;min-height:31px!important}
  #modal .checklist-preview-toolbar{justify-content:center!important;overflow:visible!important;gap:6px!important;margin:0 0 7px!important}
  #modal .checklist-preview-toolbar .btn{font-size:12px!important;min-height:36px!important;padding:7px 10px!important}
}


/* AutoTrace V17 — SOLO PRESENTAZIONE MOBILE + apertura anteprima checklist esistente.
   Nessuna modifica a API, salvataggi, firma, danni o regole. */
@media (max-width:900px){
  /* Card registro: firmatario e orario più grandi, su una sola riga. */
  #atMobileV7 .at6-summary{
    grid-template-columns:54px minmax(0,1fr) 156px!important;
    gap:7px!important;
    padding:15px 10px!important;
  }
  #atMobileV7 .at6-main strong{
    font-size:20px!important;
    line-height:1.08!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  #atMobileV7 .at6-main small{
    margin-top:5px!important;
    font-size:14.5px!important;
    line-height:1.1!important;
  }
  #atMobileV7 .at6-right{
    width:156px!important;
    min-width:156px!important;
    gap:2px!important;
  }
  #atMobileV7 .at6-signs{
    width:136px!important;
    grid-template-columns:54px 78px!important;
    column-gap:4px!important;
    row-gap:4px!important;
    align-items:start!important;
    font-size:10.5px!important;
    line-height:1.1!important;
  }
  #atMobileV7 .at6-signs .r{
    font-size:10.5px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  #atMobileV7 .at6-signs .s{
    display:block!important;
    max-width:78px!important;
    font-size:13.5px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    text-align:right!important;
  }
  #atMobileV7 .at6-signs .s small{
    display:block!important;
    margin-top:5px!important;
    font-size:10.8px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    color:#aab7c5!important;
  }
  #atMobileV7 .at6-chevron{font-size:21px!important}

  /* Riga informativa 71/71: non serve nell'uso mobile. */
  #modal #checklistRequiredInfo{display:none!important}

  /* Checklist centrata e completamente dentro lo schermo. */
  #modal .modal-card.checklist-modal-card,
  #modal .modal-card.online-checklist-preview-modal{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding:6px!important;
    overflow:hidden!important;
  }
  #modal .checklist-modal-card #modalContent,
  #modal .online-checklist-preview-modal #modalContent{
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    overflow-x:hidden!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .checklist-europcar,
  #modal .online-checklist-preview-modal .checklist-europcar{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:4px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-section.danger,
  #modal .online-checklist-preview-modal .paper-section.danger{
    grid-template-columns:54px minmax(0,1fr)!important;
  }
  #modal .checklist-modal-card .paper-check-row,
  #modal .online-checklist-preview-modal .paper-check-row{
    grid-template-columns:minmax(0,1fr) 62px!important;
    gap:3px!important;
    padding:5px 4px!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-check-actions,
  #modal .online-checklist-preview-modal .paper-check-actions{
    width:62px!important;
    min-width:62px!important;
    max-width:62px!important;
    gap:2px!important;
    justify-content:flex-end!important;
    overflow:visible!important;
  }
  #modal .checklist-modal-card .paper-choice,
  #modal .online-checklist-preview-modal .paper-choice{
    width:29px!important;
    height:29px!important;
    min-width:29px!important;
    min-height:29px!important;
  }

  /* Anteprima normale: Modifica / Stampa / Chiudi in alto, su una riga. */
  #modal .checklist-preview-toolbar{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 8px!important;
    padding:0!important;
    overflow:visible!important;
  }
  #modal .checklist-preview-toolbar .btn{
    width:100%!important;
    min-width:0!important;
    min-height:40px!important;
    padding:7px 5px!important;
    font-size:12.5px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }
  /* I tre comandi di scelta rimangono nell'editor e compaiono solo dopo MODIFICA,
     perché l'apertura di una checklist digitale già presente passa dall'anteprima. */
  #modal .checklist-v20 .checklist-choice{
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin-bottom:8px!important;
  }
}

@media (max-width:380px){
  #atMobileV7 .at6-summary{grid-template-columns:52px minmax(0,1fr) 148px!important;padding-left:8px!important;padding-right:8px!important}
  #atMobileV7 .at6-right{width:148px!important;min-width:148px!important}
  #atMobileV7 .at6-signs{width:128px!important;grid-template-columns:50px 74px!important}
  #atMobileV7 .at6-signs .s{max-width:74px!important;font-size:13px!important}
}

/* AutoTrace V18 — SOLO CSS MOBILE.
   Nessuna modifica a logica, API, firma, danni, checklist o salvataggi. */
@media (max-width:900px){
  /* Registro mobile: compatta la dicitura Noleggiatore senza cambiare ruoli o dati. */
  #atMobileV7 .at6-card[data-at6-type="checkout"] .at6-signs .r:nth-child(3),
  #atMobileV7 .at6-card[data-at6-type="checkin"] .at6-signs .r:nth-child(1){
    font-size:0!important;
    white-space:nowrap!important;
  }
  #atMobileV7 .at6-card[data-at6-type="checkout"] .at6-signs .r:nth-child(3)::after,
  #atMobileV7 .at6-card[data-at6-type="checkin"] .at6-signs .r:nth-child(1)::after{
    content:"OP / NOL";
    font-size:10.5px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }

  /* Firma e orario: sfrutta meglio lo spazio già disponibile. */
  #atMobileV7 .at6-signs .s{
    font-size:14px!important;
    line-height:1.04!important;
  }
  #atMobileV7 .at6-signs .s small{
    font-size:11px!important;
    margin-top:4px!important;
  }

  /* Scheda danni: su mobile il flusso guidato aggiunge già alla conferma,
     quindi il pulsante Aggiungi viene solo nascosto graficamente. */
  #modal #guidedDamageAdd{
    display:none!important;
  }
  #modal .damage-v23-guided{
    gap:7px!important;
    padding-bottom:10px!important;
  }
  #modal .selected-zone-label,
  #modal #guidedDamageCode{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  #modal .checkout-damage-g21-main,
  #modal .checkout-damage-g21-controls,
  #modal .checkout-supplier-list-panel,
  #modal .checkout-existing-panel{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box!important;
  }
  #modal #saveDamage{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box!important;
  }
}

/* AutoTrace V19 — SOLO GRAFICA DESKTOP.
   Ripristina l'anteprima visiva della checklist nella colonna CHECKLIST
   non appena la targa della riga e' valorizzata. Nessuna logica, chiamata,
   salvataggio, firma, danno o comportamento mobile viene modificato. */
@media (min-width:901px){
  /* Se il core ha gia' una checklist digitale/foto, mantiene l'anteprima reale esistente. */
  #view-checkout .register-table tbody tr:has(.c-plate input:not(:placeholder-shown))
  .c-check .transparent-cell-action{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    min-height:52px!important;
    height:52px!important;
    padding:3px 4px!important;
    font-size:0!important;
    overflow:hidden!important;
  }

  /* Mini foglio: e' solo un indicatore grafico della checklist gia' predisposta dal core. */
  #view-checkout .register-table tbody tr:has(.c-plate input:not(:placeholder-shown))
  .c-check .transparent-cell-action::before{
    content:"";
    display:block;
    width:34px;
    height:22px;
    border-radius:5px;
    border:1px solid rgba(0,0,0,.10);
    background:
      linear-gradient(#59c9ab,#59c9ab) 6px 5px/22px 2px no-repeat,
      linear-gradient(#cfd8d6,#cfd8d6) 6px 10px/22px 2px no-repeat,
      linear-gradient(#e66a73,#e66a73) 6px 15px/22px 2px no-repeat,
      linear-gradient(180deg,#f4f6f2,#d9dfda);
    box-shadow:0 1px 2px rgba(0,0,0,.18);
    flex:0 0 auto;
  }
  #view-checkout .register-table tbody tr:has(.c-plate input:not(:placeholder-shown))
  .c-check .transparent-cell-action::after{
    content:"DIGITALE";
    display:block;
    font-size:9px;
    line-height:1;
    font-weight:900;
    letter-spacing:.04em;
    color:#d9e3e6;
    text-transform:uppercase;
  }
}


/* AutoTrace V20 — correzioni mirate MOBILE.
   Nessuna modifica a endpoint, danni, checklist o salvataggi server. */
@media (max-width:900px){
  /* Checklist già presente: anteprima compatta con MODIFICA / STAMPA / CHIUDI. */
  #modal .online-checklist-preview-modal,
  #modal .checklist-modal-card{
    width:calc(100vw - 18px)!important;
    max-width:calc(100vw - 18px)!important;
    margin:0 auto!important;
    padding:7px!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  #modal .online-checklist-preview-modal #modalContent,
  #modal .checklist-modal-card #modalContent{
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  #modal .checklist-preview-toolbar{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    margin:0 0 8px!important;
  }
  #modal .checklist-preview-toolbar .btn{
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    padding:7px 4px!important;
    font-size:12px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  /* I 3 pulsanti di scelta restano nell'editor, quindi si vedono solo dopo MODIFICA. */
  #modal .checklist-v20 .checklist-choice{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    margin:0 0 7px!important;
  }
  #modal .checklist-v20 .checklist-choice .btn{
    width:100%!important;
    min-height:38px!important;
  }
  #modal #checklistRequiredInfo{display:none!important}

  /* Scheda danni: recupera spazio e porta SALVA completamente sopra la barra del browser. */
  #modal .checkout-damage-g21{
    gap:8px!important;
    padding-bottom:88px!important;
    box-sizing:border-box!important;
  }
  #modal .checkout-damage-g21-main{
    gap:8px!important;
    padding-bottom:8px!important;
  }
  #modal .checkout-damage-g21-controls{
    gap:8px!important;
  }
  #modal .damage-v23-quick,
  #modal .damage-v23-guided,
  #modal .checkout-supplier-list-panel,
  #modal .checkout-existing-panel{
    padding:12px!important;
    border-radius:14px!important;
  }
  #modal .damage-v23-quick h3,
  #modal .damage-v23-guided h3,
  #modal .checkout-supplier-list-panel h3,
  #modal .checkout-existing-panel h3{
    margin:0 0 8px!important;
  }
  #modal .selected-zone-label,
  #modal #guidedDamageCode,
  #modal #damageQuickInput{
    min-height:44px!important;
    height:44px!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
    box-sizing:border-box!important;
  }
  #modal .damage-v23-legend{gap:5px 12px!important}
  #modal .damage-v23-help{margin:5px 0!important}
  #modal #guidedDamageAdd{display:none!important}
  #modal #saveDamage{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-height:48px!important;
    height:auto!important;
    padding:12px 14px!important;
    margin:8px 0 18px!important;
    box-sizing:border-box!important;
    line-height:1.1!important;
    overflow:visible!important;
    flex:0 0 auto!important;
  }
}

/* AutoTrace V21 — SOLO GRAFICA MOBILE CHECKLIST.
   Nessuna modifica a JavaScript, API, salvataggi, firma o logica checklist. */
@media (max-width:900px){
  /* Tiene tutta la checklist dentro il viewport mobile. */
  #modal .checklist-modal-card .checklist-europcar,
  #modal .online-checklist-preview-modal .checklist-europcar,
  #modal .checklist-modal-card .online-check-paper,
  #modal .online-checklist-preview-modal .online-check-paper{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    transform:none!important;
  }

  /* Ogni riga riserva sempre spazio a ✓ e X: nessun controllo finisce fuori schermo. */
  #modal .checklist-modal-card .paper-check-row,
  #modal .online-checklist-preview-modal .paper-check-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 76px!important;
    align-items:center!important;
    column-gap:5px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding-left:7px!important;
    padding-right:5px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  #modal .checklist-modal-card .paper-check-label,
  #modal .online-checklist-preview-modal .paper-check-label{
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #modal .checklist-modal-card .paper-check-actions,
  #modal .online-checklist-preview-modal .paper-check-actions{
    display:grid!important;
    grid-template-columns:34px 34px!important;
    justify-content:end!important;
    gap:4px!important;
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    overflow:visible!important;
  }
  #modal .checklist-modal-card .paper-choice,
  #modal .online-checklist-preview-modal .paper-choice{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    max-width:34px!important;
    padding:0!important;
    margin:0!important;
    border-radius:999px!important;
    box-sizing:border-box!important;
    visibility:visible!important;
    opacity:1!important;
  }
  #modal .checklist-modal-card .paper-choice.ok::after,
  #modal .checklist-modal-card .paper-choice.bad::after,
  #modal .online-checklist-preview-modal .paper-choice.ok::after,
  #modal .online-checklist-preview-modal .paper-choice.bad::after{
    display:block!important;
    font-size:18px!important;
    line-height:1!important;
  }

  /* Nell'anteprima già salvata, i comandi Modifica / Stampa / Chiudi restano subito visibili. */
  #modal .online-checklist-preview-modal .checklist-preview-toolbar{
    position:sticky!important;
    top:0!important;
    z-index:8!important;
    background:#0b2924!important;
    padding:4px 0 7px!important;
  }
}

/* AutoTrace V22 — SOLO CSS MOBILE.
   Checklist digitale modificabile subito con ✓ / X; un solo comando extra: "Sostituisci con foto".
   Nessuna modifica a JavaScript, API, firma, danni, salvataggi o chiamate server. */
@media (max-width:900px){
  /* Un solo comando superiore: riusa il pulsante foto già esistente del core. */
  #modal .checklist-v20 .checklist-choice{
    display:block!important;
    width:100%!important;
    margin:0 0 8px!important;
  }
  #modal .checklist-v20 #chooseOnline,
  #modal .checklist-v20 #deleteChecklist{
    display:none!important;
  }
  #modal .checklist-v20 #choosePhoto{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:44px!important;
    padding:9px 12px!important;
    font-size:0!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  #modal .checklist-v20 #choosePhoto::after{
    content:"📷  Sostituisci con foto";
    font-size:15px!important;
    font-weight:900!important;
    line-height:1!important;
  }

  /* Togli informazioni ridondanti e recupera spazio verticale. */
  #modal .checklist-total-badge,
  #modal #checklistRequiredInfo{
    display:none!important;
  }

  /* Checklist in compilazione: leggero margine interno per non tagliare la X a destra. */
  #modal .checklist-modal-card .checklist-europcar,
  #modal .online-checklist-preview-modal .checklist-europcar,
  #modal .checklist-modal-card .online-check-paper,
  #modal .online-checklist-preview-modal .online-check-paper{
    width:calc(100% - 8px)!important;
    max-width:calc(100% - 8px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:5px!important;
    padding-right:5px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  #modal .checklist-modal-card .paper-sections-layout,
  #modal .online-checklist-preview-modal .paper-sections-layout,
  #modal .checklist-modal-card .paper-sections-column,
  #modal .online-checklist-preview-modal .paper-sections-column,
  #modal .checklist-modal-card .paper-section,
  #modal .online-checklist-preview-modal .paper-section,
  #modal .checklist-modal-card .paper-section-body,
  #modal .online-checklist-preview-modal .paper-section-body{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  /* Colonna rossa un po' più stretta: più spazio alle voci e ai due pulsanti. */
  #modal .checklist-modal-card .paper-section.danger,
  #modal .online-checklist-preview-modal .paper-section.danger{
    grid-template-columns:82px minmax(0,1fr)!important;
  }

  /* Riserva uno spazio certo ai due touch ✓ / X e li mantiene entrambi dentro il viewport. */
  #modal .checklist-modal-card .paper-check-row,
  #modal .online-checklist-preview-modal .paper-check-row{
    grid-template-columns:minmax(0,1fr) 64px!important;
    column-gap:3px!important;
    padding-left:6px!important;
    padding-right:3px!important;
    overflow:hidden!important;
  }
  #modal .checklist-modal-card .paper-check-actions,
  #modal .online-checklist-preview-modal .paper-check-actions{
    display:grid!important;
    grid-template-columns:30px 30px!important;
    gap:3px!important;
    width:63px!important;
    min-width:63px!important;
    max-width:63px!important;
    justify-content:end!important;
    overflow:visible!important;
  }
  #modal .checklist-modal-card .paper-choice,
  #modal .online-checklist-preview-modal .paper-choice{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    max-width:30px!important;
    max-height:30px!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
  }
  #modal .checklist-modal-card .paper-choice.ok::after,
  #modal .checklist-modal-card .paper-choice.bad::after,
  #modal .online-checklist-preview-modal .paper-choice.ok::after,
  #modal .online-checklist-preview-modal .paper-choice.bad::after{
    font-size:16px!important;
  }
}

/* AutoTrace V23 — correzione MOBILE checklist (solo layout/visibilità).
   Nessuna modifica a salvataggi, firma, API o logica checklist. */
@media (max-width:900px){
  /* Forza la modale checklist a stare realmente nel viewport. */
  #modal .modal-card.checklist-modal-card{
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:10px!important;
    overflow-x:hidden!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card #modalContent{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
    box-sizing:border-box!important;
  }

  /* In alto deve restare SOLO il comando per sostituire con foto. */
  #modal .checklist-modal-card .checklist-v20 .checklist-choice{
    display:block!important;
    width:100%!important;
    margin:0 0 8px!important;
  }
  #modal .checklist-modal-card .checklist-v20 #chooseOnline,
  #modal .checklist-modal-card .checklist-v20 #deleteChecklist{
    display:none!important;
  }
  #modal .checklist-modal-card .checklist-v20 #choosePhoto{
    display:flex!important;
    width:100%!important;
    min-height:44px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:9px 12px!important;
    font-size:0!important;
    white-space:nowrap!important;
  }
  #modal .checklist-modal-card .checklist-v20 #choosePhoto::after{
    content:"📷 Sostituisci con foto"!important;
    font-size:16px!important;
    font-weight:900!important;
  }

  /* Nasconde le righe ridondanti 71/71 e Voci disponibili:71. */
  #modal .checklist-modal-card #checklistRequiredInfo,
  #modal .checklist-modal-card .checklist-total-badge{
    display:none!important;
  }

  /* Carta digitale completamente dentro la modale. */
  #modal .checklist-modal-card .checklist-europcar,
  #modal .checklist-modal-card .online-check-paper{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-sections-layout,
  #modal .checklist-modal-card .paper-sections-column,
  #modal .checklist-modal-card .paper-section,
  #modal .checklist-modal-card .paper-section-body{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  /* Colonna categoria più stretta = più spazio a testo, ✓ e X. */
  #modal .checklist-modal-card .paper-section.danger{
    grid-template-columns:68px minmax(0,1fr)!important;
  }
  #modal .checklist-modal-card .paper-section-title{
    font-size:10px!important;
    padding:4px 2px!important;
  }

  /* ✓ e X SEMPRE entrambi dentro lo schermo e cliccabili. */
  #modal .checklist-modal-card .paper-check-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 72px!important;
    align-items:center!important;
    gap:4px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:3px 4px 3px 7px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-check-label{
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #modal .checklist-modal-card .paper-check-actions{
    display:grid!important;
    grid-template-columns:34px 34px!important;
    gap:4px!important;
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    justify-content:end!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-choice{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    max-width:34px!important;
    max-height:34px!important;
    padding:0!important;
    margin:0!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-choice.ok::after,
  #modal .checklist-modal-card .paper-choice.bad::after{
    display:block!important;
    font-size:18px!important;
    line-height:1!important;
  }
}

/* AutoTrace V24 — checklist mobile diretta: un solo comando foto, X sempre visibile. */
@media (max-width:900px){
  #modal .modal-card.checklist-modal-card{
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
    padding:8px!important;
    overflow-x:hidden!important;
  }
  #modal .checklist-modal-card .checklist-choice{
    display:block!important;
    margin:0 0 8px!important;
  }
  #modal .checklist-modal-card #choosePhoto{
    display:flex!important;
    width:100%!important;
    min-height:44px!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:16px!important;
    font-weight:800!important;
  }
  #modal .checklist-modal-card .checklist-total-badge,
  #modal .checklist-modal-card #checklistRequiredInfo{
    display:none!important;
  }
  #modal .checklist-modal-card .checklist-europcar,
  #modal .checklist-modal-card .online-check-paper,
  #modal .checklist-modal-card .paper-sections-layout,
  #modal .checklist-modal-card .paper-sections-column,
  #modal .checklist-modal-card .paper-section,
  #modal .checklist-modal-card .paper-section-body{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-section.danger{
    grid-template-columns:60px minmax(0,1fr)!important;
  }
  #modal .checklist-modal-card .paper-check-row{
    grid-template-columns:minmax(0,1fr) 64px!important;
    gap:2px!important;
    padding:2px 2px 2px 6px!important;
    overflow:hidden!important;
  }
  #modal .checklist-modal-card .paper-check-actions{
    grid-template-columns:30px 30px!important;
    gap:2px!important;
    width:62px!important;
    min-width:62px!important;
    max-width:62px!important;
  }
  #modal .checklist-modal-card .paper-choice{
    width:30px!important;height:30px!important;
    min-width:30px!important;min-height:30px!important;
    max-width:30px!important;max-height:30px!important;
    overflow:visible!important;
  }
  #modal .checklist-modal-card .paper-choice.ok::after,
  #modal .checklist-modal-card .paper-choice.bad::after{
    font-size:16px!important;
  }
}

/* AutoTrace V27 — FIX FINALE checklist mobile in compilazione.
   Solo layout: mantiene la stessa larghezza prima/dopo il tocco e lascia sempre visibili ✓ e X. */
@media (max-width:900px){
  #modal .modal-card.checklist-modal-card{
    width:calc(100vw - 18px)!important;
    max-width:calc(100vw - 18px)!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:7px!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  #modal .checklist-modal-card #modalContent,
  #modal .checklist-modal-card #checklistEditor{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .checklist-europcar,
  #modal .checklist-modal-card .online-check-paper,
  #modal .checklist-modal-card .paper-sections-layout,
  #modal .checklist-modal-card .paper-sections-column,
  #modal .checklist-modal-card .paper-section,
  #modal .checklist-modal-card .paper-section-body{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  #modal .checklist-modal-card .paper-section.danger{
    grid-template-columns:52px minmax(0,1fr)!important;
  }
  #modal .checklist-modal-card .paper-section.danger .paper-section-title{
    font-size:10px!important;
    padding:3px 1px!important;
  }
  #modal .checklist-modal-card .paper-check-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 58px!important;
    align-items:center!important;
    gap:2px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:3px 2px 3px 5px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-check-label{
    min-width:0!important;
    max-width:100%!important;
    padding-right:2px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-check-actions{
    display:grid!important;
    grid-template-columns:28px 28px!important;
    gap:2px!important;
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    justify-content:end!important;
    align-items:center!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-choice,
  #modal .checklist-modal-card .paper-choice.active{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    min-height:28px!important;
    max-width:28px!important;
    max-height:28px!important;
    padding:0!important;
    margin:0!important;
    transform:none!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-modal-card .paper-choice.ok::after,
  #modal .checklist-modal-card .paper-choice.bad::after{
    font-size:16px!important;
    line-height:1!important;
  }
}

/* =========================================================
   AutoTrace V28 — SOLO GRAFICA MOBILE CHECKLIST
   La logica, i click, il salvataggio e le chiamate restano quelli desktop/core.
   ========================================================= */
@media (max-width: 900px){
  /* modale sempre dentro il viewport */
  #modal .modal-card.checklist-modal-card,
  #modal .modal-card.online-checklist-preview-modal{
    width:calc(100vw - 14px)!important;
    max-width:calc(100vw - 14px)!important;
    margin:7px!important;
    padding:7px!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  #modal .checklist-modal-card #modalContent,
  #modal .online-checklist-preview-modal #modalContent,
  #modal .checklist-v20,
  #modal #checklistEditor{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }

  /* un solo comando visivo in alto: la funzione resta choosePhoto del core */
  #modal .checklist-choice{display:block!important;margin:0 0 10px!important;width:100%!important}
  #modal .checklist-choice #chooseOnline,
  #modal .checklist-choice #deleteChecklist{display:none!important}
  #modal .checklist-choice #choosePhoto{
    display:flex!important;
    width:100%!important;
    min-height:46px!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:0!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-choice #choosePhoto::after{
    content:"📷 Sostituisci con foto";
    font-size:17px!important;
    font-weight:800!important;
  }
  #modal #checklistRequiredInfo,
  #modal .checklist-total-badge{display:none!important}

  /* foglio e intestazione */
  #modal .checklist-europcar,
  #modal .online-check-paper,
  #modal .checklist-europcar-head,
  #modal .paper-sections-layout,
  #modal .paper-sections-column,
  #modal .paper-section,
  #modal .paper-section-body{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  #modal .checklist-europcar,
  #modal .online-check-paper{margin:0!important;padding:0!important;overflow:hidden!important}
  #modal .checklist-europcar-head{grid-template-columns:1fr!important;gap:6px!important}
  #modal .checklist-europcar-meta{grid-template-columns:1fr 1fr!important;gap:6px!important}
  #modal .checklist-europcar-meta span{min-width:0!important;box-sizing:border-box!important}
  #modal .checklist-europcar-meta span:nth-child(6){grid-column:1 / -1!important}

  /* sezioni una sotto l'altra per non comprimere le X */
  #modal .paper-sections-layout{display:block!important}
  #modal .paper-sections-column{display:block!important}
  #modal .paper-section{margin:0 0 8px!important;overflow:hidden!important}
  #modal .paper-section.danger{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
  }
  #modal .paper-section.danger .paper-section-title{
    min-width:58px!important;
    width:58px!important;
    padding:5px 3px!important;
    box-sizing:border-box!important;
  }

  /* riga controllo: spazio fisso per baffo + X, mai fuori schermo */
  #modal .paper-check-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 72px!important;
    gap:4px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:5px 4px 5px 8px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  #modal .paper-check-label{
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
  }
  #modal .paper-check-actions{
    display:grid!important;
    grid-template-columns:34px 34px!important;
    gap:4px!important;
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    justify-content:end!important;
    align-items:center!important;
    overflow:visible!important;
  }
  #modal .paper-choice,
  #modal .paper-choice.active{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    max-width:34px!important;
    max-height:34px!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    position:static!important;
    transform:none!important;
  }
  #modal .paper-choice.ok::after,
  #modal .paper-choice.bad::after{font-size:18px!important}

  /* barra salva/chiudi: resta visibile ma non sovrappone il contenuto */
  #modal .checklist-save-row{
    position:sticky!important;
    bottom:0!important;
    z-index:5!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
    padding:8px 0 0!important;
    box-sizing:border-box!important;
    background:inherit!important;
  }
  #modal .checklist-save-row .btn{width:100%!important;min-width:0!important;margin:0!important}
}

/* =========================================================
   AutoTrace V29 — SOLO GRAFICA MOBILE
   Nessuna logica/chiamata/salvataggio modificati.
   1) rende sempre raggiungibile il tasto core "Salva modifiche"
   2) sposta Driver / OP-NOL sopra il titolo nella card Nuovo check-out
   ========================================================= */
@media (max-width: 900px){
  /* Checklist: la barra core di salvataggio resta sempre visibile sul telefono.
     Il click continua a usare ESATTAMENTE #saveChecklist del core desktop. */
  #modal .modal-card.checklist-modal-card #modalContent{
    padding-bottom:86px!important;
  }
  #modal .checklist-modal-card .checklist-save-row{
    position:fixed!important;
    left:14px!important;
    right:14px!important;
    bottom:10px!important;
    z-index:2147483000!important;
    width:auto!important;
    max-width:none!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr)!important;
    gap:8px!important;
    padding:8px!important;
    margin:0!important;
    box-sizing:border-box!important;
    background:#062824!important;
    border:1px solid rgba(72,210,187,.45)!important;
    border-radius:14px!important;
    box-shadow:0 -7px 22px rgba(0,0,0,.28)!important;
  }
  #modal .checklist-modal-card .checklist-save-row .btn{
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    margin:0!important;
    font-size:16px!important;
    font-weight:800!important;
  }
  #modal .checklist-modal-card #saveChecklist:not([hidden]){
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  /* Nuovo check-out: evita che "Driver" / "OP / NOL" si sovrappongano al titolo. */
  #atMobileV7 .at6-card.new[data-at6-type="checkout"] .at6-summary{
    position:relative!important;
    align-items:center!important;
    padding-top:26px!important;
  }
  #atMobileV7 .at6-card.new[data-at6-type="checkout"] .at6-right{
    align-self:stretch!important;
    position:relative!important;
  }
  #atMobileV7 .at6-card.new[data-at6-type="checkout"] .at6-signs{
    position:absolute!important;
    right:22px!important;
    top:-21px!important;
    width:118px!important;
    grid-template-columns:44px 70px!important;
    gap:2px 4px!important;
    z-index:2!important;
  }
  #atMobileV7 .at6-card.new[data-at6-type="checkout"] .at6-main strong{
    position:relative!important;
    z-index:1!important;
  }
}

/* =========================================================
   AutoTrace V30 — MOBILE: SOLO ALLINEAMENTO CARD NUOVO CHECK-OUT
   Il funzionamento resta nel core desktop.
   ========================================================= */
@media (max-width: 900px){
  /* Ripristina Driver / OP-NOL nella stessa posizione delle altre card. */
  #atMobileV7 .at6-card.new[data-at6-type="checkout"] .at6-summary{
    position:relative!important;
    align-items:center!important;
    padding-top:17px!important;
  }
  #atMobileV7 .at6-card.new[data-at6-type="checkout"] .at6-right{
    align-self:auto!important;
    position:static!important;
  }
  #atMobileV7 .at6-card.new[data-at6-type="checkout"] .at6-signs{
    position:static!important;
    right:auto!important;
    top:auto!important;
    width:auto!important;
    grid-template-columns:auto auto!important;
    gap:4px 7px!important;
  }
  /* Solo il titolo Nuovo check-out sale leggermente; sottotitolo e ruoli restano allineati. */
  #atMobileV7 .at6-card.new[data-at6-type="checkout"] .at6-main strong{
    position:relative!important;
    top:-7px!important;
    z-index:1!important;
  }
}


/* AutoTrace V62 — mantiene soltanto le correzioni grafiche annullato post-V38.
   La checklist usa integralmente la grafica della V38 stabile sopra, senza override successivi. */
.cancelled-row-v52 > td{
  background:#8f1822!important;
  color:#fff!important;
  border-color:#a9323b!important;
}
.cancelled-row-v52 > td::before,.cancelled-row-v52 > td::after{display:none!important;content:none!important}
.cancelled-row-v52 .field-value,.cancelled-row-v52 .signature-box,.cancelled-row-v52 small,.cancelled-row-v52 b,.cancelled-row-v52 span{color:#fff!important;text-decoration:none!important}
.cancelled-row-v52 input,.cancelled-row-v52 select,.cancelled-row-v52 textarea{
  background:rgba(255,255,255,.10)!important;color:#fff!important;border-color:rgba(255,255,255,.28)!important;opacity:1!important;
}
.cancelled-row-v52 button:not(.v52-info-cancel){pointer-events:none!important;opacity:.55!important}
.cancelled-row-v52 .v52-info-cancel{background:#fff!important;color:#8f1822!important;border-color:#fff!important;opacity:1!important;pointer-events:auto!important}
.cancelled-row-v52 .v52-status-cancelled{background:#fff!important;color:#8f1822!important;border-color:#fff!important;font-weight:800!important}
.register-table tbody tr.cancelled-row-v52:hover > td,
.register-table tbody tr.cancelled-row-v52:focus-within > td,
.register-table tbody tr.cancelled-row-v52:active > td,
.register-table tbody tr.cancelled-row-v52:hover > td.sticky-col,
.register-table tbody tr.cancelled-row-v52:focus-within > td.sticky-col,
.register-table tbody tr.cancelled-row-v52:active > td.sticky-col{
  background:#8f1822!important;color:#fff!important;border-color:#a9323b!important;
}
@media(max-width:760px){
  .cancelled-row-v52,.cancelled-row-v52 > td,
  .table-wrap .register-table tbody tr.cancelled-row-v52 > td,
  .table-wrap .register-table tbody tr.cancelled-row-v52:hover > td,
  .table-wrap .register-table tbody tr.cancelled-row-v52:focus-within > td,
  .table-wrap .register-table tbody tr.cancelled-row-v52:active > td{
    background:#8f1822!important;color:#fff!important;border-color:#a9323b!important;
  }
  .cancelled-row-v52{box-shadow:none!important}
}
#atMobileV7 .at6-card.cancelled,
#atMobileV7 .at6-card.cancelled.open{
  background:#8f1822!important;border-color:#b53b46!important;box-shadow:none!important;color:#fff!important;
}
#atMobileV7 .at6-card.cancelled .at6-summary,
#atMobileV7 .at6-card.cancelled.open .at6-summary,
#atMobileV7 .at6-card.cancelled .at6-details,
#atMobileV7 .at6-card.cancelled.open .at6-details,
#atMobileV7 .at6-card.cancelled .at6-field,
#atMobileV7 .at6-card.cancelled .at6-block,
#atMobileV7 .at6-card.cancelled .at6-actions,
#atMobileV7 .at6-card.cancelled .at6-signbox{
  background:#8f1822!important;color:#fff!important;border-color:rgba(255,255,255,.22)!important;
}
#atMobileV7 .at6-card.cancelled::before,#atMobileV7 .at6-card.cancelled::after{display:none!important;content:none!important}
#atMobileV7 .at6-card.cancelled .at6-num{background:rgba(255,255,255,.18)!important;border-color:rgba(255,255,255,.35)!important;color:#fff!important}
#atMobileV7 .at6-card.cancelled .at6-main strong,
#atMobileV7 .at6-card.cancelled .at6-main small,
#atMobileV7 .at6-card.cancelled .at6-right,
#atMobileV7 .at6-card.cancelled .at6-signs,
#atMobileV7 .at6-card.cancelled .at6-field>span,
#atMobileV7 .at6-card.cancelled .at6-block>span{color:#fff!important}


/* ===== AUTOTRACE GRAFICA FINALE 2026-08-21 — SOLO CSS =====
   Nessuna logica applicativa modificata.
   Obiettivo: trasferire SOLO la grafica approvata sulla base V65 funzionante.
   ============================================================ */
:root{
  --at-gfx-bg:#011D0E;
  --at-gfx-bg2:#04311C;
  --at-gfx-line:#31513E;
  --at-gfx-white:#FFFFFF;
  --at-gfx-yellow:#F5C400;
  --at-gfx-red:#D90F16;
}

/* PALETTE GENERALE REGISTRI / SIDEBAR — niente blu/nero */
html,body,.app,.main,.sidebar,.topbar,
#view-checkin,#view-checkout,
#view-checkin>.register-heading,#view-checkout>.register-heading,
#view-checkin>.panel.table-panel,#view-checkout>.panel.table-panel,
#view-checkin .table-wrap,#view-checkout .table-wrap{
  background:var(--at-gfx-bg)!important;
  background-color:var(--at-gfx-bg)!important;
  background-image:none!important;
  color:var(--at-gfx-white)!important;
}

/* SIDEBAR */
.app{grid-template-columns:255px minmax(0,1fr)!important}
.sidebar{padding-left:14px!important;padding-right:14px!important;border-right-color:rgba(255,255,255,.22)!important}
.main{padding-left:12px!important;padding-right:8px!important}
.sidebar .nav-btn{
  background:transparent!important;color:#fff!important;border-radius:0!important;border:0!important;box-shadow:none!important;
}
.sidebar .nav-btn.active,.sidebar .nav-btn[aria-current="page"]{
  background:var(--at-gfx-bg2)!important;
  border-left:4px solid var(--at-gfx-yellow)!important;
  color:#fff!important;
}
.sidebar .nav-btn:hover{background:var(--at-gfx-bg2)!important;color:#fff!important}
.sidebar-bottom #currentUserCard{border-color:rgba(255,255,255,.22)!important;border-radius:0!important}
#logoutBtn,.logout-btn{
  background:transparent!important;color:#fff!important;border:1px solid #fff!important;border-radius:0!important;box-shadow:none!important;
}

/* LOGO: proporzionato e leggibile; payoff vecchio esterno nascosto */
.brand-payoff{display:none!important}
.sidebar-brand-only{
  height:172px!important;min-height:172px!important;padding:8px 6px 10px!important;overflow:visible!important;background:transparent!important;
}
.sidebar-brand-only .sidebar-brand-logo{
  width:100%!important;height:158px!important;max-width:100%!important;object-fit:contain!important;object-position:center!important;
  transform:none!important;clip-path:none!important;
}
.login-logo,.brand-logo,#atMobileV7 .at6-brand img{
  object-fit:contain!important;object-position:center!important;
}

/* CHECK-IN e CHECK-OUT: stessa identica testata */
#view-checkin>.register-heading.register-heading-enhanced,
#view-checkout>.register-heading.register-heading-enhanced,
#view-checkin>.register-heading,
#view-checkout>.register-heading{
  background:var(--at-gfx-bg)!important;
  background-color:var(--at-gfx-bg)!important;
  background-image:none!important;
  border:2px solid #fff!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#fff!important;
}
#view-checkin .register-heading *,#view-checkout .register-heading *{
  color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important;
}

/* BOX ESTERNA DEL REGISTRO: bianca e squadrata. Linee interne lasciate invariate. */
#view-checkin>.panel.table-panel,
#view-checkout>.panel.table-panel{
  border:2px solid #fff!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
#view-checkin>.panel.table-panel>.table-wrap,
#view-checkout>.panel.table-panel>.table-wrap,
#view-checkin>.panel.table-panel>.table-wrap>.register-table,
#view-checkout>.panel.table-panel>.table-wrap>.register-table{
  border-radius:0!important;
}

/* TESTATA TABELLA E CELLE: verde uniforme, no box interne */
#view-checkin .register-table thead th,
#view-checkout .register-table thead th{
  background:var(--at-gfx-bg)!important;
  color:#fff!important;
  border-bottom:2px solid var(--at-gfx-yellow)!important;
  border-radius:0!important;
}
#view-checkin .register-table tbody tr:not(.cancelled-row-v52)>td,
#view-checkout .register-table tbody tr:not(.cancelled-row-v52)>td{
  background:var(--at-gfx-bg)!important;
  color:#fff!important;
}
#view-checkin .register-table tbody tr:not(.cancelled-row-v52):nth-child(even)>td,
#view-checkout .register-table tbody tr:not(.cancelled-row-v52):nth-child(even)>td,
#view-checkin .register-table tbody tr:not(.cancelled-row-v52):hover>td,
#view-checkout .register-table tbody tr:not(.cancelled-row-v52):hover>td{
  background:var(--at-gfx-bg)!important;
}
#view-checkin .register-table tbody tr:not(.cancelled-row-v52):focus-within>td,
#view-checkout .register-table tbody tr:not(.cancelled-row-v52):focus-within>td{
  background:var(--at-gfx-bg2)!important;
}

/* SOLO campi del registro: elimina riquadri/pill interne, senza toccare modal checklist/danni/firma */
#view-checkin .register-table tbody td input,
#view-checkout .register-table tbody td input,
#view-checkin .register-table tbody td select,
#view-checkout .register-table tbody td select,
#view-checkin .register-table tbody td textarea,
#view-checkout .register-table tbody td textarea,
#view-checkin .register-table tbody td .field-value,
#view-checkout .register-table tbody td .field-value,
#view-checkin .register-table tbody td .locked-model,
#view-checkout .register-table tbody td .locked-model,
#view-checkin .register-table tbody td .field-compact,
#view-checkout .register-table tbody td .field-compact,
#view-checkin .register-table tbody td .ev-input-wrap,
#view-checkout .register-table tbody td .ev-input-wrap,
#view-checkin .register-table tbody td .signature-box,
#view-checkout .register-table tbody td .signature-box,
#view-checkin .register-table tbody td .transparent-cell-action,
#view-checkout .register-table tbody td .transparent-cell-action,
#view-checkin .register-table tbody td .cell-btn,
#view-checkout .register-table tbody td .cell-btn{
  background-color:transparent!important;
  border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* Riga annullata = rosso vero, non rosa */
#view-checkin .register-table tbody tr.cancelled-row-v52>td,
#view-checkout .register-table tbody tr.cancelled-row-v52>td,
#view-checkin .register-table tbody tr.cancelled-row-v52:hover>td,
#view-checkout .register-table tbody tr.cancelled-row-v52:hover>td{
  background:var(--at-gfx-red)!important;background-color:var(--at-gfx-red)!important;color:#fff!important;
}
#view-checkin .cancelled-row-v52 *,#view-checkout .cancelled-row-v52 *{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* CERCA e ORDINA: bordo bianco squadrato */
#view-checkin .register-search input,#view-checkout .register-search input{
  background:var(--at-gfx-bg)!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  border:2px solid #fff!important;border-radius:0!important;box-shadow:none!important;text-align:center!important;
}
#view-checkin .register-search input::placeholder,#view-checkout .register-search input::placeholder{color:#fff!important;opacity:1!important}
#view-checkin .at-register-order,#view-checkout .at-register-order{
  border:2px solid #fff!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}

/* TIPO LAVAGGIO: usa spazio disponibile, freccia visibile, opzioni leggibili */
#view-checkout .table-wrap,#view-checkin .table-wrap{overflow-x:auto!important}
#view-checkout .register-table{width:100%!important;min-width:1190px!important;table-layout:fixed!important}
#view-checkin .register-table{width:100%!important;min-width:1120px!important;table-layout:fixed!important}
#view-checkout .register-table th:nth-child(9),#view-checkout .register-table td:nth-child(9){
  width:142px!important;min-width:142px!important;max-width:142px!important;
}
#view-checkout .register-table tbody td.c-wash select.wash-select,
#view-checkout .c-wash select.wash-select,
#view-checkout .wash-select{
  width:100%!important;
  -webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;
  padding:0 28px 0 6px!important;
  background-color:transparent!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5 7 9l4.5-4' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 7px center!important;
  background-size:14px 14px!important;
}
#view-checkout .c-wash select option,#view-checkout .wash-select option,
#view-checkin select option,#view-checkout select option{
  background:#063721!important;color:#fff!important;
}

/* Stato "In attesa": unico piccolo riquadro ammesso */
#view-checkin .register-table tbody td.c-status .status,
#view-checkout .register-table tbody td.c-status .status,
#view-checkin .signature-waiting-box,#view-checkout .signature-waiting-box{
  border:1px solid rgba(255,255,255,.55)!important;
  border-radius:0!important;
  background:var(--at-gfx-bg2)!important;
  color:#fff!important;box-shadow:none!important;
}

/* Mobile: solo palette/branding, NON cambiare layout di danni/checklist/firma */
@media(max-width:900px){
  body.at-mobile-v7 #atMobileV7,
  #atMobileV7 .at6-head,#atMobileV7 .at6-scroll,#atMobileV7 .at6-foot,
  #atMobileV7 .at6-card,#atMobileV7 .at6-card.new,#atMobileV7 .at6-card.open{
    background:var(--at-gfx-bg)!important;background-color:var(--at-gfx-bg)!important;color:#fff!important;
  }
  #atMobileV7 .at6-brand img{
    width:min(210px,64vw)!important;height:auto!important;max-height:82px!important;object-fit:contain!important;object-position:center!important;
  }
  #atMobileV7 .at6-search input,#atMobileV7 .at6-search-actions button,
  #atMobileV7 .at6-tab,#atMobileV7 .at6-refresh,#atMobileV7 .at6-exit{
    border-radius:0!important;
  }
}

/* ============================================================
   V74 — SOLO GRAFICA DESKTOP REGISTRI
   Scope intenzionalmente ristretto a CHECK-IN / CHECK-OUT.
   Nessun display/visibility/position su pannelli, modal o app.
   ============================================================ */
@media (min-width:901px){
  #view-checkin,
  #view-checkout{
    --at-v74-register-green:#07563d;
  }

  /* Stessa grafica per le due testate registro */
  #view-checkin > .register-heading,
  #view-checkout > .register-heading,
  #view-checkin > .panel.table-panel,
  #view-checkout > .panel.table-panel,
  #view-checkin > .panel.table-panel > .table-wrap,
  #view-checkout > .panel.table-panel > .table-wrap,
  #view-checkin .register-table,
  #view-checkout .register-table,
  #view-checkin .register-table thead,
  #view-checkout .register-table thead,
  #view-checkin .register-table thead tr,
  #view-checkout .register-table thead tr,
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th,
  #view-checkin .register-table tbody,
  #view-checkout .register-table tbody,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52),
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52),
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52) > td,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52) > td,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):nth-child(even) > td,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):nth-child(even) > td,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):hover > td,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):hover > td,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):focus-within > td,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):focus-within > td{
    background:var(--at-v74-register-green)!important;
    background-color:var(--at-v74-register-green)!important;
    background-image:none!important;
  }

  /* Tutto il testo del registro bianco */
  #view-checkin > .register-heading,
  #view-checkout > .register-heading,
  #view-checkin > .register-heading *,
  #view-checkout > .register-heading *,
  #view-checkin .register-table,
  #view-checkout .register-table,
  #view-checkin .register-table th,
  #view-checkout .register-table th,
  #view-checkin .register-table td,
  #view-checkout .register-table td,
  #view-checkin .register-table td *,
  #view-checkout .register-table td *{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    text-shadow:none!important;
  }

  /* Nessuna box/pill nei campi interni delle celle */
  #view-checkin .register-table tbody td input,
  #view-checkout .register-table tbody td input,
  #view-checkin .register-table tbody td select,
  #view-checkout .register-table tbody td select,
  #view-checkin .register-table tbody td textarea,
  #view-checkout .register-table tbody td textarea,
  #view-checkin .register-table tbody td button,
  #view-checkout .register-table tbody td button,
  #view-checkin .register-table tbody td .field-lock,
  #view-checkout .register-table tbody td .field-lock,
  #view-checkin .register-table tbody td .field-value,
  #view-checkout .register-table tbody td .field-value,
  #view-checkin .register-table tbody td .locked-model,
  #view-checkout .register-table tbody td .locked-model,
  #view-checkin .register-table tbody td .field-compact,
  #view-checkout .register-table tbody td .field-compact,
  #view-checkin .register-table tbody td .ev-input-wrap,
  #view-checkout .register-table tbody td .ev-input-wrap,
  #view-checkin .register-table tbody td .signature-box,
  #view-checkout .register-table tbody td .signature-box,
  #view-checkin .register-table tbody td .signature-waiting-box,
  #view-checkout .register-table tbody td .signature-waiting-box,
  #view-checkin .register-table tbody td .status,
  #view-checkout .register-table tbody td .status,
  #view-checkin .register-table tbody td .transparent-cell-action,
  #view-checkout .register-table tbody td .transparent-cell-action,
  #view-checkin .register-table tbody td .cell-btn,
  #view-checkout .register-table tbody td .cell-btn{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    border-radius:0!important;
  }

  /* La riga annullata resta rossa, ma senza box interne */
  #view-checkin .register-table tbody tr.cancelled-row-v52 > td,
  #view-checkout .register-table tbody tr.cancelled-row-v52 > td,
  #view-checkin .register-table tbody tr.cancelled-row-v52:hover > td,
  #view-checkout .register-table tbody tr.cancelled-row-v52:hover > td{
    background:#e20d18!important;
    background-color:#e20d18!important;
    background-image:none!important;
    color:#fff!important;
  }
  #view-checkin .register-table tbody tr.cancelled-row-v52 td *,
  #view-checkout .register-table tbody tr.cancelled-row-v52 td *{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  /* Search coerente col verde unico, senza introdurre stili fuori dai registri */
  #view-checkin .register-search input,
  #view-checkout .register-search input,
  #view-checkin .register-search button,
  #view-checkout .register-search button,
  #view-checkin .at-register-order,
  #view-checkout .at-register-order{
    background:var(--at-v74-register-green)!important;
    background-color:var(--at-v74-register-green)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:none!important;
  }

  /* Select: niente box blu; freccia bianca ancora visibile */
  #view-checkin .register-table tbody td select,
  #view-checkout .register-table tbody td select{
    background-color:transparent!important;
  }
  #view-checkin .register-table tbody td select option,
  #view-checkout .register-table tbody td select option{
    background:var(--at-v74-register-green)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }
}


/* ============================================================
   V75 — SOLO CSS DESKTOP: RIMOZIONE DEFINITIVA BOX NERE
   Scope ristretto alle celle visibili dei registri.
   Nessun effetto su mobile / modal / danni / checklist.
   ============================================================ */
@media (min-width:901px){

  /* Campi che nello screenshot conservavano ancora il "pill" scuro:
     Targa, Modello, KM, firme/stato. */
  #view-checkin .register-table tbody td.c-plate > *,
  #view-checkout .register-table tbody td.c-plate > *,
  #view-checkin .register-table tbody td.c-model > *,
  #view-checkout .register-table tbody td.c-model > *,
  #view-checkin .register-table tbody td.c-km > *,
  #view-checkout .register-table tbody td.c-km > *,
  #view-checkin .register-table tbody td.c-sign > *,
  #view-checkout .register-table tbody td.c-sign > *,
  #view-checkin .register-table tbody td.c-status > *,
  #view-checkout .register-table tbody td.c-status > *{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  /* Neutralizza anche wrapper/elementi annidati e pseudo-elementi
     che i vecchi temi usavano per ricreare le box. */
  #view-checkin .register-table tbody td.c-plate > *::before,
  #view-checkout .register-table tbody td.c-plate > *::before,
  #view-checkin .register-table tbody td.c-plate > *::after,
  #view-checkout .register-table tbody td.c-plate > *::after,
  #view-checkin .register-table tbody td.c-model > *::before,
  #view-checkout .register-table tbody td.c-model > *::before,
  #view-checkin .register-table tbody td.c-model > *::after,
  #view-checkout .register-table tbody td.c-model > *::after,
  #view-checkin .register-table tbody td.c-km > *::before,
  #view-checkout .register-table tbody td.c-km > *::before,
  #view-checkin .register-table tbody td.c-km > *::after,
  #view-checkout .register-table tbody td.c-km > *::after,
  #view-checkin .register-table tbody td.c-sign > *::before,
  #view-checkout .register-table tbody td.c-sign > *::before,
  #view-checkin .register-table tbody td.c-sign > *::after,
  #view-checkout .register-table tbody td.c-sign > *::after,
  #view-checkin .register-table tbody td.c-status > *::before,
  #view-checkout .register-table tbody td.c-status > *::before,
  #view-checkin .register-table tbody td.c-status > *::after,
  #view-checkout .register-table tbody td.c-status > *::after{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
  }

  /* Reset nativo input per evitare il fondo scuro del controllo browser/tema. */
  #view-checkin .register-table tbody td.c-plate input,
  #view-checkout .register-table tbody td.c-plate input,
  #view-checkin .register-table tbody td.c-model input,
  #view-checkout .register-table tbody td.c-model input,
  #view-checkin .register-table tbody td.c-km input,
  #view-checkout .register-table tbody td.c-km input,
  #view-checkin .register-table tbody td.c-sign input,
  #view-checkout .register-table tbody td.c-sign input{
    -webkit-appearance:none!important;
    appearance:none!important;
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  /* Anche autofill/password-manager non deve reintrodurre box blu/nere. */
  #view-checkin .register-table tbody td.c-sign input:-webkit-autofill,
  #view-checkout .register-table tbody td.c-sign input:-webkit-autofill,
  #view-checkin .register-table tbody td.c-plate input:-webkit-autofill,
  #view-checkout .register-table tbody td.c-plate input:-webkit-autofill,
  #view-checkin .register-table tbody td.c-model input:-webkit-autofill,
  #view-checkout .register-table tbody td.c-model input:-webkit-autofill,
  #view-checkin .register-table tbody td.c-km input:-webkit-autofill,
  #view-checkout .register-table tbody td.c-km input:-webkit-autofill{
    -webkit-box-shadow:0 0 0 1000px #07563d inset!important;
    box-shadow:0 0 0 1000px #07563d inset!important;
    -webkit-text-fill-color:#fff!important;
    caret-color:#fff!important;
  }

  /* Riga annullata: niente box interne anche qui, fondo rosso della cella intatto. */
  #view-checkin .register-table tbody tr.cancelled-row-v52 td.c-plate > *,
  #view-checkout .register-table tbody tr.cancelled-row-v52 td.c-plate > *,
  #view-checkin .register-table tbody tr.cancelled-row-v52 td.c-model > *,
  #view-checkout .register-table tbody tr.cancelled-row-v52 td.c-model > *,
  #view-checkin .register-table tbody tr.cancelled-row-v52 td.c-km > *,
  #view-checkout .register-table tbody tr.cancelled-row-v52 td.c-km > *,
  #view-checkin .register-table tbody tr.cancelled-row-v52 td.c-sign > *,
  #view-checkout .register-table tbody tr.cancelled-row-v52 td.c-sign > *,
  #view-checkin .register-table tbody tr.cancelled-row-v52 td.c-status > *,
  #view-checkout .register-table tbody tr.cancelled-row-v52 td.c-status > *{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
  }
}

/* ============================================================
   V76 — SOLO CSS DESKTOP: HEADER MINIMALE + VERDE UNICO + FOCUS
   Base: V75. Nessuna modifica a HTML / JS / PHP / API.
   ============================================================ */
@media (min-width:901px){
  #view-checkin,
  #view-checkout{
    --at-v76-green:#011D0E;
    --at-v76-white:#FFFFFF;
    --at-v76-yellow:#F5C400;
  }

  /* 1) Un solo identico verde: registro = verde sidebar/testata */
  #view-checkin,
  #view-checkout,
  #view-checkin > .register-heading,
  #view-checkout > .register-heading,
  #view-checkin > .panel.table-panel,
  #view-checkout > .panel.table-panel,
  #view-checkin > .panel.table-panel > .table-wrap,
  #view-checkout > .panel.table-panel > .table-wrap,
  #view-checkin .register-table,
  #view-checkout .register-table,
  #view-checkin .register-table thead,
  #view-checkout .register-table thead,
  #view-checkin .register-table thead tr,
  #view-checkout .register-table thead tr,
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th,
  #view-checkin .register-table tbody,
  #view-checkout .register-table tbody,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52),
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52),
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52) > td,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52) > td,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):nth-child(even) > td,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):nth-child(even) > td,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):hover > td,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):hover > td,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):focus-within > td,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):focus-within > td{
    background:var(--at-v76-green)!important;
    background-color:var(--at-v76-green)!important;
    background-image:none!important;
  }

  /* 2) Elimina il grande riquadro della testata, senza cambiare DOM o logica */
  #view-checkin > .register-heading.register-heading-enhanced,
  #view-checkout > .register-heading.register-heading-enhanced,
  #view-checkin > .register-heading,
  #view-checkout > .register-heading{
    display:grid!important;
    grid-template-columns:minmax(235px,.85fr) minmax(340px,1.3fr) minmax(250px,.9fr)!important;
    grid-template-areas:"date center meta"!important;
    align-items:end!important;
    column-gap:26px!important;
    min-height:88px!important;
    padding:8px 10px 12px!important;
    margin:0 0 10px!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  #view-checkin .register-center,
  #view-checkout .register-center{
    grid-area:center!important;
    display:grid!important;
    grid-template-rows:auto auto!important;
    gap:10px!important;
    align-items:end!important;
    justify-items:center!important;
    min-width:0!important;
  }

  #view-checkin .register-center h2,
  #view-checkout .register-center h2{
    margin:0!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:21px!important;
    line-height:1!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
  }

  /* 3) Data + frecce appoggiate a una sola linea */
  #view-checkin .register-date-block,
  #view-checkout .register-date-block{
    grid-area:date!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:flex-end!important;
    gap:10px!important;
    min-height:39px!important;
    padding:0 2px 7px!important;
    margin:0!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.72)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #view-checkin .register-calendar-icon,
  #view-checkout .register-calendar-icon{
    opacity:.88!important;
    transform:translateY(-1px)!important;
  }
  #view-checkin .register-date-block > div,
  #view-checkout .register-date-block > div{
    min-width:0!important;
  }
  #view-checkin .register-date-block .register-date,
  #view-checkout .register-date-block .register-date{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  #view-checkin .register-date-block .readonly-note,
  #view-checkout .register-date-block .readonly-note{
    display:none!important;
  }
  #view-checkin .at-register-order,
  #view-checkout .at-register-order{
    display:inline-flex!important;
    align-items:center!important;
    gap:4px!important;
    margin-left:auto!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #view-checkin .at-register-order button,
  #view-checkout .at-register-order button{
    width:25px!important;
    height:25px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:none!important;
    font-size:17px!important;
    line-height:25px!important;
  }
  #view-checkin .at-register-order button.active,
  #view-checkout .at-register-order button.active,
  #view-checkin .at-register-order button:hover,
  #view-checkout .at-register-order button:hover{
    color:var(--at-v76-yellow)!important;
    -webkit-text-fill-color:var(--at-v76-yellow)!important;
  }

  /* 4) Cerca targa: niente box, solo linea */
  #view-checkin .register-search,
  #view-checkout .register-search{
    position:relative!important;
    width:230px!important;
    max-width:230px!important;
    height:34px!important;
    margin:0!important;
    transform:none!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.72)!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #view-checkin .register-search input,
  #view-checkout .register-search input{
    width:100%!important;
    height:33px!important;
    padding:5px 31px 5px 25px!important;
    border:0!important;
    border-radius:0!important;
    outline:0!important;
    background:transparent!important;
    background-color:transparent!important;
    box-shadow:none!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:12px!important;
    font-weight:700!important;
    text-align:left!important;
    text-transform:uppercase!important;
  }
  #view-checkin .register-search input:focus,
  #view-checkout .register-search input:focus{
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
  }
  #view-checkin .register-search:focus-within,
  #view-checkout .register-search:focus-within{
    border-bottom-color:var(--at-v76-yellow)!important;
  }
  #view-checkin .register-search input::placeholder,
  #view-checkout .register-search input::placeholder{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:.88!important;
  }
  #view-checkin .register-search-icon,
  #view-checkout .register-search-icon{
    left:1px!important;
    top:9px!important;
    width:15px!important;
    height:15px!important;
    color:#fff!important;
  }
  #view-checkin .register-search button,
  #view-checkout .register-search button{
    right:0!important;
    top:4px!important;
    width:25px!important;
    height:25px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  /* 5) Driver / Noleggiatore sulla propria linea, senza riquadro */
  #view-checkin .register-state-legend,
  #view-checkout .register-state-legend{
    grid-area:meta!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:flex-end!important;
    min-height:39px!important;
    padding:0 2px 7px!important;
    margin:0!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.72)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #view-checkin .header-user-meta,
  #view-checkout .header-user-meta{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#fff!important;
  }
  #view-checkin .header-user-copy,
  #view-checkout .header-user-copy{
    display:grid!important;
    gap:1px!important;
    text-align:left!important;
  }
  #view-checkin .header-user-copy strong,
  #view-checkout .header-user-copy strong,
  #view-checkin .header-user-copy span,
  #view-checkout .header-user-copy span{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }
  #view-checkin .header-user-copy strong,
  #view-checkout .header-user-copy strong{font-size:12px!important}
  #view-checkin .header-user-copy span,
  #view-checkout .header-user-copy span{font-size:10px!important;opacity:.88!important}

  /* 6) Anche il contenitore tabella non deve apparire come una grande box */
  #view-checkin > .panel.table-panel,
  #view-checkout > .panel.table-panel{
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }

  /* 7) Celle: testo digitato visualmente in maiuscolo, senza cambiare il valore/logica */
  #view-checkin .register-table tbody td input,
  #view-checkout .register-table tbody td input,
  #view-checkin .register-table tbody td textarea,
  #view-checkout .register-table tbody td textarea,
  #view-checkin .register-table tbody td select,
  #view-checkout .register-table tbody td select{
    text-transform:uppercase!important;
  }

  /* 8) Celle testuali vuote: trattino bianco. Sul focus diventa giallo lampeggiante.
        Il suggerimento originale del placeholder compare SOLO quando la cella e' attiva.
        :has + :placeholder-shown = solo presentazione CSS, nessun evento JS. */
  #view-checkin .register-table tbody td.c-ra,
  #view-checkout .register-table tbody td.c-ra,
  #view-checkin .register-table tbody td.c-plate,
  #view-checkout .register-table tbody td.c-plate,
  #view-checkin .register-table tbody td.c-model,
  #view-checkout .register-table tbody td.c-model,
  #view-checkin .register-table tbody td.c-km,
  #view-checkout .register-table tbody td.c-km,
  #view-checkin .register-table tbody td.c-notes,
  #view-checkout .register-table tbody td.c-notes{
    position:relative!important;
  }

  #view-checkin .register-table tbody td.c-ra input,
  #view-checkout .register-table tbody td.c-ra input,
  #view-checkin .register-table tbody td.c-plate input,
  #view-checkout .register-table tbody td.c-plate input,
  #view-checkin .register-table tbody td.c-model input,
  #view-checkout .register-table tbody td.c-model input,
  #view-checkin .register-table tbody td.c-km input,
  #view-checkout .register-table tbody td.c-km input,
  #view-checkin .register-table tbody td.c-notes input,
  #view-checkout .register-table tbody td.c-notes input{
    padding-left:25px!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  #view-checkin .register-table tbody td.c-ra input::placeholder,
  #view-checkout .register-table tbody td.c-ra input::placeholder,
  #view-checkin .register-table tbody td.c-plate input::placeholder,
  #view-checkout .register-table tbody td.c-plate input::placeholder,
  #view-checkin .register-table tbody td.c-model input::placeholder,
  #view-checkout .register-table tbody td.c-model input::placeholder,
  #view-checkin .register-table tbody td.c-km input::placeholder,
  #view-checkout .register-table tbody td.c-km input::placeholder,
  #view-checkin .register-table tbody td.c-notes input::placeholder,
  #view-checkout .register-table tbody td.c-notes input::placeholder{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:0!important;
    text-transform:none!important;
    transition:opacity .12s ease!important;
  }
  #view-checkin .register-table tbody td input:focus::placeholder,
  #view-checkout .register-table tbody td input:focus::placeholder{
    opacity:.92!important;
  }

  #view-checkin .register-table tbody td.c-ra:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-ra:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:has(input:placeholder-shown)::after{
    content:"—"!important;
    position:absolute!important;
    left:8px!important;
    top:50%!important;
    transform:translateY(-52%)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:17px!important;
    font-weight:800!important;
    line-height:1!important;
    pointer-events:none!important;
  }

  @keyframes atV76FocusDash{
    0%,100%{opacity:1}
    50%{opacity:.28}
  }
  #view-checkin .register-table tbody td.c-ra:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-ra:has(input:focus:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:has(input:focus:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:has(input:focus:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:has(input:focus:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:has(input:focus:placeholder-shown)::after{
    color:var(--at-v76-yellow)!important;
    -webkit-text-fill-color:var(--at-v76-yellow)!important;
    animation:atV76FocusDash .9s ease-in-out infinite!important;
  }

  /* Focus discreto: nessuna box; solo una sottolineatura gialla nella cella attiva */
  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within{
    box-shadow:inset 0 -2px 0 var(--at-v76-yellow)!important;
  }

  /* Riga annullata sempre rossa */
  #view-checkin .register-table tbody tr.cancelled-row-v52 > td,
  #view-checkout .register-table tbody tr.cancelled-row-v52 > td,
  #view-checkin .register-table tbody tr.cancelled-row-v52:hover > td,
  #view-checkout .register-table tbody tr.cancelled-row-v52:hover > td{
    background:#D90F16!important;
    background-color:#D90F16!important;
  }
}


/* ============================================================
   V77 — SOLO CSS DESKTOP
   - bordo registro nuovamente chiuso
   - titolo centrato reale
   - data / cerca / utente su un'unica riga
   - trattino vuoto centrato e sempre bianco
   - focus indicato solo dalla linea gialla inferiore
   Nessuna modifica a HTML / JS / PHP / API.
   ============================================================ */
@media (min-width:901px){

  /* TESTATA: titolo realmente centrato su tutta la larghezza.
     Data, ricerca e utente stanno sulla stessa identica riga sotto. */
  #view-checkin > .register-heading,
  #view-checkout > .register-heading,
  #view-checkin > .register-heading.register-heading-enhanced,
  #view-checkout > .register-heading.register-heading-enhanced{
    display:grid!important;
    grid-template-columns:minmax(250px,1fr) minmax(270px,1fr) minmax(250px,1fr)!important;
    grid-template-rows:auto 42px!important;
    grid-template-areas:
      "title title title"
      "date search meta"!important;
    align-items:end!important;
    column-gap:24px!important;
    row-gap:12px!important;
    min-height:0!important;
    padding:10px 2px 8px!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:#011D0E!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  /* Fa partecipare titolo e ricerca direttamente alla griglia della testata. */
  #view-checkin .register-center,
  #view-checkout .register-center{
    display:contents!important;
  }

  #view-checkin .register-center h2,
  #view-checkout .register-center h2{
    grid-area:title!important;
    justify-self:center!important;
    align-self:center!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:22px!important;
    line-height:1.1!important;
    letter-spacing:.075em!important;
  }

  /* Tutti e tre gli elementi sulla medesima baseline.
     Niente tre linee separate: la linea è il bordo superiore del registro. */
  #view-checkin .register-date-block,
  #view-checkout .register-date-block{
    grid-area:date!important;
    justify-self:start!important;
    align-self:end!important;
    display:flex!important;
    align-items:center!important;
    min-height:36px!important;
    height:36px!important;
    padding:0 4px!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  #view-checkin .register-search,
  #view-checkout .register-search{
    grid-area:search!important;
    justify-self:center!important;
    align-self:end!important;
    width:230px!important;
    max-width:230px!important;
    height:36px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  #view-checkin .register-state-legend,
  #view-checkout .register-state-legend{
    grid-area:meta!important;
    justify-self:end!important;
    align-self:end!important;
    display:flex!important;
    align-items:center!important;
    min-height:36px!important;
    height:36px!important;
    padding:0 4px!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  /* Registro nuovamente CHIUSO: il bordo superiore è anche la linea visiva
     sotto data / cerca / utente. */
  #view-checkin > .panel.table-panel,
  #view-checkout > .panel.table-panel{
    border:1px solid rgba(255,255,255,.88)!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    margin-top:0!important;
    background:#011D0E!important;
  }

  #view-checkin > .panel.table-panel > .table-wrap,
  #view-checkout > .panel.table-panel > .table-wrap{
    border:0!important;
    border-radius:0!important;
    background:#011D0E!important;
  }

  /* Celle vuote: trattino orizzontale BIANCO, già centrato nella cella. */
  #view-checkin .register-table tbody td.c-ra:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-ra:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:has(input:placeholder-shown)::after{
    content:"—"!important;
    left:50%!important;
    right:auto!important;
    top:50%!important;
    transform:translate(-50%,-52%)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:18px!important;
    font-weight:800!important;
    line-height:1!important;
    opacity:1!important;
    animation:none!important;
  }

  /* Sul focus il trattino NON diventa più giallo e NON lampeggia. */
  #view-checkin .register-table tbody td.c-ra:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-ra:has(input:focus:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:has(input:focus:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:has(input:focus:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:has(input:focus:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:has(input:focus:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:has(input:focus:placeholder-shown)::after{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
    animation:none!important;
  }

  /* Input centrati: niente partenza "da metà".
     Il focus viene segnalato esclusivamente dalla linea gialla sotto la cella. */
  #view-checkin .register-table tbody td.c-ra input,
  #view-checkout .register-table tbody td.c-ra input,
  #view-checkin .register-table tbody td.c-plate input,
  #view-checkout .register-table tbody td.c-plate input,
  #view-checkin .register-table tbody td.c-model input,
  #view-checkout .register-table tbody td.c-model input,
  #view-checkin .register-table tbody td.c-km input,
  #view-checkout .register-table tbody td.c-km input,
  #view-checkin .register-table tbody td.c-notes input,
  #view-checkout .register-table tbody td.c-notes input{
    padding-left:4px!important;
    padding-right:4px!important;
    text-align:center!important;
    caret-color:#fff!important;
  }

  /* Placeholder guida al focus: bianco e centrato.
     Il trattino resta bianco; la cella attiva è riconoscibile dalla linea gialla. */
  #view-checkin .register-table tbody td input:focus::placeholder,
  #view-checkout .register-table tbody td input:focus::placeholder{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:.9!important;
    text-align:center!important;
  }

  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within{
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  /* Nessuna animazione residua del vecchio trattino-focus. */
  #view-checkin .register-table tbody td:focus-within::after,
  #view-checkout .register-table tbody td:focus-within::after{
    animation:none!important;
  }
}


/* ============================================================
   V78 — SOLO CSS DESKTOP
   - nessuna linea gialla orizzontale: linee registro bianche
   - barra gialla verticale che segue riga hover/focus
   - eliminato residuo celeste sulla riga vuota
   - sidebar: giallo immediato anche al solo hover
   - trattini vuoti più sottili
   - trattino anche su Danni / Checklist / ID / In attesa / Riconsegna
   - suggerimento bianco su hover/focus
   ============================================================ */
@media (min-width:901px){

  /* 1) NESSUNA LINEA GIALLA ORIZZONTALE.
        Il bordo del registro e la linea sotto le intestazioni sono bianchi. */
  #view-checkin > .panel.table-panel,
  #view-checkout > .panel.table-panel{
    border-color:#fff!important;
  }

  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    border-bottom:1px solid rgba(255,255,255,.92)!important;
  }

  /* Rimuove il precedente focus giallo orizzontale sotto la singola cella. */
  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within{
    box-shadow:none!important;
  }

  /* 2) INDICATORE RIGA: SOLO VERTICALE, GIALLO.
        Segue sia il passaggio del mouse sia il focus/Tab. */
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):focus-within > td:first-child,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):focus-within > td:first-child{
    box-shadow:inset 3px 0 0 #F5C400!important;
  }

  /* La riga vuota non deve più avere il vecchio celeste. */
  #view-checkin .register-table tbody tr.personal-empty-row > td:first-child,
  #view-checkout .register-table tbody tr.personal-empty-row > td:first-child{
    box-shadow:inset 3px 0 0 #F5C400!important;
  }

  /* Quando una riga diversa è sotto mouse/focus, il giallo la segue.
     La riga vuota perde l'evidenza fissa mentre si interagisce con altre righe. */
  #view-checkin .register-table tbody:has(tr:not(.personal-empty-row):hover) tr.personal-empty-row > td:first-child,
  #view-checkout .register-table tbody:has(tr:not(.personal-empty-row):hover) tr.personal-empty-row > td:first-child,
  #view-checkin .register-table tbody:has(tr:not(.personal-empty-row):focus-within) tr.personal-empty-row > td:first-child,
  #view-checkout .register-table tbody:has(tr:not(.personal-empty-row):focus-within) tr.personal-empty-row > td:first-child{
    box-shadow:none!important;
  }

  /* 3) SIDEBAR: giallo già al passaggio del mouse, senza aspettare il click. */
  .sidebar .nav-btn{
    border-left:4px solid transparent!important;
    box-shadow:none!important;
  }

  .sidebar .nav-btn.active,
  .sidebar .nav-btn[aria-current="page"],
  .sidebar .nav-btn:hover{
    border-left-color:#F5C400!important;
    box-shadow:none!important;
    color:#fff!important;
  }

  /* 4) TRATTINI CELLE VUOTE: più sottili e meno pesanti. */
  #view-checkin .register-table tbody td.c-ra:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-ra:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:has(input:placeholder-shown)::after{
    content:"—"!important;
    font-size:15px!important;
    font-weight:400!important;
    letter-spacing:0!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  /* 5) DANNI: a riposo solo trattino sottile; su hover/focus compare il suggerimento. */
  #view-checkin .c-damage .damage-cell-empty,
  #view-checkout .c-damage .damage-cell-empty{
    font-size:0!important;
    color:transparent!important;
  }
  #view-checkin .c-damage .damage-cell-empty::before,
  #view-checkout .c-damage .damage-cell-empty::before{
    content:"—"!important;
    display:inline-block!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:400!important;
    line-height:1!important;
  }
  #view-checkin .c-damage:hover .damage-cell-empty::before,
  #view-checkout .c-damage:hover .damage-cell-empty::before,
  #view-checkin .c-damage:focus-within .damage-cell-empty::before,
  #view-checkout .c-damage:focus-within .damage-cell-empty::before{
    content:"—  Danni"!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:600!important;
  }

  /* 6) CHECKLIST vuota: STANDARD/LAVAGGIO NON VIENE TOCCATO. */
  #view-checkout .c-check .transparent-cell-action{
    font-size:0!important;
  }
  #view-checkout .c-check .transparent-cell-action::before{
    content:"—"!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:400!important;
    line-height:1!important;
  }
  #view-checkout .c-check:hover .transparent-cell-action::before,
  #view-checkout .c-check:focus-within .transparent-cell-action::before{
    content:"—  Checklist"!important;
    font-size:12px!important;
    font-weight:600!important;
  }

  /* 7) ID PERSONALE: placeholder nascosto a riposo, suggerimento al focus/hover.
        Il campo resta identico funzionalmente. */
  #view-checkin td.c-sign input.signature-id-input::placeholder,
  #view-checkout td.c-sign input.signature-id-input::placeholder{
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
  }
  #view-checkin td.c-sign:has(input.signature-id-input:placeholder-shown)::after,
  #view-checkout td.c-sign:has(input.signature-id-input:placeholder-shown)::after{
    content:"—"!important;
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    pointer-events:none!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:400!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  #view-checkin td.c-sign,
  #view-checkout td.c-sign{
    position:relative!important;
  }
  #view-checkin td.c-sign:has(input.signature-id-input:focus:placeholder-shown)::after,
  #view-checkout td.c-sign:has(input.signature-id-input:focus:placeholder-shown)::after,
  #view-checkin td.c-sign:hover:has(input.signature-id-input:placeholder-shown)::after,
  #view-checkout td.c-sign:hover:has(input.signature-id-input:placeholder-shown)::after{
    content:"—  ID personale"!important;
    font-size:12px!important;
    font-weight:600!important;
  }

  /* 8) "IN ATTESA" non interattivo: a riposo trattino; su hover mostra suggerimento. */
  #view-checkin td.c-sign > .muted,
  #view-checkout td.c-sign > .muted{
    font-size:0!important;
    color:transparent!important;
  }
  #view-checkin td.c-sign > .muted::before,
  #view-checkout td.c-sign > .muted::before{
    content:"—"!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:400!important;
  }
  #view-checkin td.c-sign:hover > .muted::before,
  #view-checkout td.c-sign:hover > .muted::before{
    content:"—  In attesa"!important;
    font-size:12px!important;
    font-weight:600!important;
  }

  /* 9) PRESA IN CONSEGNA / RICONSEGNA vuota:
        trattino a riposo, suggerimento bianco passando sopra. */
  #view-checkin td.c-status .movement-empty,
  #view-checkout td.c-status .movement-empty{
    width:auto!important;
    height:auto!important;
    min-width:20px!important;
    min-height:18px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  #view-checkin td.c-status .movement-empty::before,
  #view-checkout td.c-status .movement-empty::before{
    content:"—"!important;
    width:auto!important;
    height:auto!important;
    background:transparent!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:400!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  #view-checkin td.c-status:hover .movement-empty::before{
    content:"—  Presa in consegna"!important;
    font-size:11px!important;
    font-weight:600!important;
  }
  #view-checkout td.c-status:hover .movement-empty::before{
    content:"—  Riconsegna"!important;
    font-size:11px!important;
    font-weight:600!important;
  }

  /* 10) Tipo lavaggio resta com'è: nessun override su .c-wash/.wash-select. */
}


/* ============================================================
   V79 — SOLO CSS DESKTOP
   - sidebar: un solo elemento giallo alla volta
   - ripristino linea gialla orizzontale sulla cella attiva
   - barra gialla verticale continua a seguire la riga
   ============================================================ */
@media (min-width:901px){

  /* SIDEBAR:
     se sto passando sopra un'altra voce, quella attiva perde temporaneamente
     barra/sfondo giallo; resta evidenziata soltanto la voce sotto il mouse. */
  .sidebar:has(.nav-btn:hover) .nav-btn.active:not(:hover),
  .sidebar:has(.nav-btn:hover) .nav-btn[aria-current="page"]:not(:hover){
    border-left-color:transparent!important;
    box-shadow:none!important;
    background:transparent!important;
  }

  .sidebar .nav-btn:hover{
    border-left-color:#F5C400!important;
    color:#fff!important;
  }

  /* CELLA ATTIVA:
     torna la linea gialla orizzontale sotto la singola cella.
     Compare con focus/Tab/click senza modificare la logica. */
  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within{
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  /* Se la cella attiva è anche la prima della riga, manteniamo insieme
     barra verticale di riga + linea orizzontale di cella. */
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):focus-within > td:first-child:focus-within,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):focus-within > td:first-child:focus-within{
    box-shadow:
      inset 3px 0 0 #F5C400,
      inset 0 -3px 0 #F5C400!important;
  }

  /* Anche passando col mouse sopra un campo editabile, la cella viene
     indicata orizzontalmente; la riga resta indicata verticalmente. */
  #view-checkin .register-table tbody td:has(input:hover),
  #view-checkout .register-table tbody td:has(input:hover),
  #view-checkin .register-table tbody td:has(select:hover),
  #view-checkout .register-table tbody td:has(select:hover){
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child:has(input:hover),
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child:has(input:hover),
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child:has(select:hover),
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child:has(select:hover){
    box-shadow:
      inset 3px 0 0 #F5C400,
      inset 0 -3px 0 #F5C400!important;
  }
}


/* ============================================================
   V80 — SOLO CSS DESKTOP — REGISTRO COMPATTO "A RIGHE"
   Scopo:
   - ridurre fortemente l'altezza delle righe senza ridurre i font principali
   - recuperare spazio soprattutto da Riconsegna / Checklist / Targa / Carb / EV
   - firma a 2 righe compatta: nome normale, data/ora più piccola
   - checklist compilata: solo piccolo baffo visivo, niente anteprima grande
   - mantenere focus verticale/orizzontale già introdotto
   - nessun effetto su mobile, modali o logica
   ============================================================ */
@media (min-width:901px){

  /* Righe più basse: il font resta leggibile, si riducono soprattutto padding e controlli. */
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    height:38px!important;
    min-height:38px!important;
    padding-top:4px!important;
    padding-bottom:4px!important;
    line-height:1.05!important;
  }

  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr{
    height:39px!important;
    min-height:39px!important;
  }

  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    height:39px!important;
    min-height:39px!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
    vertical-align:middle!important;
    line-height:1.05!important;
  }

  /* Input/select compatti: stessa leggibilità, molto meno "blocco alto". */
  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button.transparent-cell-action,
  #view-checkout .register-table tbody button.transparent-cell-action,
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value{
    min-height:24px!important;
    height:24px!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
    line-height:22px!important;
  }

  /* Trattini ancora più "da registro": sottili e centrati. */
  #view-checkin .register-table tbody td.c-ra:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-ra:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:has(input:placeholder-shown)::after{
    font-size:13px!important;
    font-weight:300!important;
  }

  /* COLONNE: recupero spazio dove non serve, senza comprimere le firme. */
  #view-checkout .register-table th.c-status,
  #view-checkout .register-table td.c-status{
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    padding-left:3px!important;
    padding-right:3px!important;
  }

  #view-checkin .register-table th.c-status,
  #view-checkin .register-table td.c-status{
    width:76px!important;
    min-width:76px!important;
    max-width:76px!important;
    padding-left:3px!important;
    padding-right:3px!important;
  }

  #view-checkout .register-table th.c-check,
  #view-checkout .register-table td.c-check{
    width:64px!important;
    min-width:64px!important;
    max-width:64px!important;
    padding-left:3px!important;
    padding-right:3px!important;
  }

  #view-checkin .register-table th.c-plate,
  #view-checkin .register-table td.c-plate,
  #view-checkout .register-table th.c-plate,
  #view-checkout .register-table td.c-plate{
    width:84px!important;
    min-width:84px!important;
    max-width:84px!important;
    padding-left:3px!important;
    padding-right:3px!important;
  }

  #view-checkin .register-table th.c-carb,
  #view-checkin .register-table td.c-carb,
  #view-checkout .register-table th.c-carb,
  #view-checkout .register-table td.c-carb{
    width:54px!important;
    min-width:54px!important;
    max-width:54px!important;
    padding-left:2px!important;
    padding-right:2px!important;
  }

  #view-checkin .register-table th.c-ev,
  #view-checkin .register-table td.c-ev,
  #view-checkout .register-table th.c-ev,
  #view-checkout .register-table td.c-ev{
    width:45px!important;
    min-width:45px!important;
    max-width:45px!important;
    padding-left:2px!important;
    padding-right:2px!important;
  }

  #view-checkin .register-table th.c-damage,
  #view-checkin .register-table td.c-damage,
  #view-checkout .register-table th.c-damage,
  #view-checkout .register-table td.c-damage{
    width:70px!important;
    min-width:70px!important;
    max-width:70px!important;
    padding-left:3px!important;
    padding-right:3px!important;
  }

  /* Firma: lasciamo più spazio, perché può contenere nome + data/ora. */
  #view-checkin .register-table th.c-sign,
  #view-checkin .register-table td.c-sign,
  #view-checkout .register-table th.c-sign,
  #view-checkout .register-table td.c-sign{
    width:108px!important;
    min-width:108px!important;
    max-width:108px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }

  /* Firma compilata a due righe ma compatta. */
  #view-checkin .signature-box,
  #view-checkout .signature-box{
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    line-height:1!important;
    gap:0!important;
  }

  #view-checkin .signature-box .signature-name,
  #view-checkout .signature-box .signature-name{
    line-height:1.02!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  #view-checkin .signature-box small,
  #view-checkout .signature-box small{
    display:block!important;
    margin-top:1px!important;
    padding:0!important;
    font-size:8.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  /* CHECKLIST COMPILATA: elimina l'anteprima "foglio" grande solo nel registro desktop.
     La funzione/click resta esattamente quella esistente. */
  #view-checkout .c-check .checklist-cell-preview{
    width:24px!important;
    min-width:24px!important;
    max-width:24px!important;
    height:24px!important;
    min-height:24px!important;
    padding:0!important;
    margin:0 auto!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:visible!important;
    font-size:0!important;
  }

  #view-checkout .c-check .checklist-cell-preview img,
  #view-checkout .c-check .checklist-cell-preview .mini-paper-lines,
  #view-checkout .c-check .checklist-cell-preview small{
    display:none!important;
  }

  #view-checkout .c-check .checklist-cell-preview::before{
    content:"✓"!important;
    display:block!important;
    color:#fff!important;
    font-size:17px!important;
    font-weight:700!important;
    line-height:1!important;
  }

  /* Checklist vuota resta trattino/suggerimento secondo CSS precedente,
     senza altezza aggiuntiva. */
  #view-checkout .c-check .transparent-cell-action{
    min-height:24px!important;
    height:24px!important;
    padding:0!important;
    line-height:24px!important;
  }

  /* Status / riconsegna: nessun box e ingombro minimo. */
  #view-checkin .c-status .status,
  #view-checkout .c-status .status{
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    line-height:1!important;
  }

  #view-checkin .c-status .movement-empty,
  #view-checkout .c-status .movement-empty{
    min-height:14px!important;
    height:14px!important;
    line-height:14px!important;
  }

  /* Non tocco Tipo lavaggio / STANDARD. */
}


/* ============================================================
   V81 — SOLO CSS DESKTOP
   - righe leggermente più compatte con aria sopra/sotto
   - firme Driver/Fornitore e Noleggiatore simmetriche
   - freccia Cerca Targa nascosta
   - checkbox/spunta centrati nella colonna Check-out
   - nessuna modifica a logica / JS / PHP / HTML / mobile
   ============================================================ */
@media (min-width:901px){

  /* Righe ancora più compatte, senza sacrificare la leggibilità */
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr{
    height:35px!important;
    min-height:35px!important;
  }
  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    height:35px!important;
    min-height:35px!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
    line-height:1.04!important;
  }
  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button.transparent-cell-action,
  #view-checkout .register-table tbody button.transparent-cell-action,
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value{
    height:22px!important;
    min-height:22px!important;
    line-height:20px!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
  }

  /* Le due colonne firma devono essere identiche */
  #view-checkin .register-table th.c-sign,
  #view-checkin .register-table td.c-sign,
  #view-checkout .register-table th.c-sign,
  #view-checkout .register-table td.c-sign{
    width:118px!important;
    min-width:118px!important;
    max-width:118px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }

  /* Compatta la firma ma lascia respiro sopra/sotto */
  #view-checkin .signature-box,
  #view-checkout .signature-box{
    min-height:28px!important;
    height:28px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    padding:1px 0!important;
    margin:0!important;
    gap:1px!important;
    overflow:hidden!important;
  }
  #view-checkin .signature-box .signature-name,
  #view-checkout .signature-box .signature-name{
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
  }
  #view-checkin .signature-box small,
  #view-checkout .signature-box small{
    font-size:8px!important;
    line-height:1!important;
    margin:0!important;
    white-space:nowrap!important;
  }

  /* Recupero spazio dalle colonne meno critiche */
  #view-checkout .register-table th.c-status,
  #view-checkout .register-table td.c-status{
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
  }
  #view-checkout .register-table th.c-check,
  #view-checkout .register-table td.c-check{
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
  }
  #view-checkin .register-table th.c-damage,
  #view-checkin .register-table td.c-damage,
  #view-checkout .register-table th.c-damage,
  #view-checkout .register-table td.c-damage{
    width:64px!important;
    min-width:64px!important;
    max-width:64px!important;
  }
  #view-checkin .register-table th.c-carb,
  #view-checkin .register-table td.c-carb,
  #view-checkout .register-table th.c-carb,
  #view-checkout .register-table td.c-carb{
    width:50px!important;
    min-width:50px!important;
    max-width:50px!important;
  }
  #view-checkin .register-table th.c-ev,
  #view-checkin .register-table td.c-ev,
  #view-checkout .register-table th.c-ev,
  #view-checkout .register-table td.c-ev{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
  }
  #view-checkin .register-table th.c-plate,
  #view-checkin .register-table td.c-plate,
  #view-checkout .register-table th.c-plate,
  #view-checkout .register-table td.c-plate{
    width:80px!important;
    min-width:80px!important;
    max-width:80px!important;
  }

  /* Cerca Targa: rimuove la freccia decorativa a destra */
  #view-checkin .register-search::after,
  #view-checkout .register-search::after,
  #view-checkin .register-search .search-arrow,
  #view-checkout .register-search .search-arrow,
  #view-checkin .register-search .enter-arrow,
  #view-checkout .register-search .enter-arrow{
    display:none!important;
    content:none!important;
  }
  #view-checkin .register-search,
  #view-checkout .register-search{
    padding-right:0!important;
  }

  /* Centra realmente anteprima/spunta checklist nella sua cella */
  #view-checkout .register-table td.c-check{
    text-align:center!important;
  }
  #view-checkout .c-check .checklist-cell-preview,
  #view-checkout .c-check .transparent-cell-action{
    margin-left:auto!important;
    margin-right:auto!important;
    justify-content:center!important;
    align-items:center!important;
    text-align:center!important;
  }
  #view-checkout .c-check .checklist-cell-preview::before,
  #view-checkout .c-check .transparent-cell-action::before{
    margin:0 auto!important;
    text-align:center!important;
  }

  /* Anche eventuali checkbox nativi della colonna status restano centrati */
  #view-checkout .register-table td.c-status,
  #view-checkin .register-table td.c-status{
    text-align:center!important;
  }
  #view-checkout .register-table td.c-status input[type="checkbox"],
  #view-checkin .register-table td.c-status input[type="checkbox"]{
    margin-left:auto!important;
    margin-right:auto!important;
    display:block!important;
  }
}


/* ============================================================
   V82 — SOLO CSS DESKTOP
   - Firma Driver / Firma Noleggiatore uguali e leggibili per intero
   - eliminazione visiva "/FORNITORE" dall'intestazione
   - Riconsegna leggibile per intero
   - Azioni più stretta
   - intestazione più alta, righe dati più compatte ma adatte a firma su 2 righe
   - anteprima checklist completamente rimossa dal registro: solo trattino
   - freccia Cerca Targa nascosta definitivamente
   - nome utente/driver in maiuscolo
   ============================================================ */
@media (min-width:901px){

  /* --- ALTEZZE: intestazione più alta, righe dati più basse --- */
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    height:50px!important;
    min-height:50px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
    vertical-align:middle!important;
    line-height:1.08!important;
  }

  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr{
    height:38px!important;
    min-height:38px!important;
  }

  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    height:38px!important;
    min-height:38px!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
    vertical-align:middle!important;
  }

  /* --- FIRME: due colonne IDENTICHE --- */
  #view-checkout .register-table th:nth-child(10),
  #view-checkout .register-table td:nth-child(10),
  #view-checkout .register-table th:nth-child(11),
  #view-checkout .register-table td:nth-child(11),
  #view-checkin .register-table th:nth-child(9),
  #view-checkin .register-table td:nth-child(9),
  #view-checkin .register-table th:nth-child(10),
  #view-checkin .register-table td:nth-child(10){
    width:132px!important;
    min-width:132px!important;
    max-width:132px!important;
    padding-left:5px!important;
    padding-right:5px!important;
    box-sizing:border-box!important;
  }

  /* Titoli firma: niente abbreviazioni, niente /FORNITORE */
  #view-checkout .register-table th:nth-child(10),
  #view-checkout .register-table th:nth-child(11),
  #view-checkin .register-table th:nth-child(9),
  #view-checkin .register-table th:nth-child(10){
    font-size:0!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    text-align:center!important;
  }

  #view-checkout .register-table th:nth-child(10)::after,
  #view-checkin .register-table th:nth-child(10)::after{
    content:"FIRMA\A DRIVER"!important;
    white-space:pre-line!important;
    display:block!important;
    color:#fff!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:1.08!important;
  }

  #view-checkout .register-table th:nth-child(11)::after,
  #view-checkin .register-table th:nth-child(9)::after{
    content:"FIRMA\A NOLEGGIATORE"!important;
    white-space:pre-line!important;
    display:block!important;
    color:#fff!important;
    font-size:10.5px!important;
    font-weight:800!important;
    line-height:1.08!important;
  }

  /* Firma compilata: nome sopra + data/ora sotto, con poca aria ma senza tagliare */
  #view-checkin .signature-box,
  #view-checkout .signature-box{
    min-height:32px!important;
    height:32px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:1px!important;
    padding:1px 0!important;
    margin:0!important;
    overflow:hidden!important;
  }

  #view-checkin .signature-box .signature-name,
  #view-checkout .signature-box .signature-name{
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  #view-checkin .signature-box small,
  #view-checkout .signature-box small{
    display:block!important;
    margin:0!important;
    padding:0!important;
    font-size:8.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  /* --- RICONSEGNA / PRESA IN CONSEGNA: leggibili per intero --- */
  #view-checkout .register-table th:nth-child(12),
  #view-checkout .register-table td:nth-child(12),
  #view-checkin .register-table th:nth-child(11),
  #view-checkin .register-table td:nth-child(11){
    width:86px!important;
    min-width:86px!important;
    max-width:86px!important;
    padding-left:3px!important;
    padding-right:3px!important;
    box-sizing:border-box!important;
  }

  #view-checkout .register-table th:nth-child(12),
  #view-checkin .register-table th:nth-child(11){
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:10.5px!important;
    line-height:1.05!important;
    text-align:center!important;
  }

  /* --- AZIONI: qui recuperiamo spazio --- */
  #view-checkout .register-table th:nth-child(13),
  #view-checkout .register-table td:nth-child(13),
  #view-checkin .register-table th:nth-child(12),
  #view-checkin .register-table td:nth-child(12){
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    padding-left:2px!important;
    padding-right:2px!important;
    box-sizing:border-box!important;
  }

  #view-checkout .register-table th:nth-child(13),
  #view-checkin .register-table th:nth-child(12){
    font-size:9.5px!important;
  }

  #view-checkout .register-table td:nth-child(13) .cell-btn,
  #view-checkin .register-table td:nth-child(12) .cell-btn{
    min-width:0!important;
    width:100%!important;
    padding-left:1px!important;
    padding-right:1px!important;
    font-size:10px!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  /* Ulteriore recupero minimo da colonne non critiche */
  #view-checkout .register-table th.c-check,
  #view-checkout .register-table td.c-check{
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
  }

  #view-checkin .register-table th.c-damage,
  #view-checkin .register-table td.c-damage,
  #view-checkout .register-table th.c-damage,
  #view-checkout .register-table td.c-damage{
    width:60px!important;
    min-width:60px!important;
    max-width:60px!important;
  }

  #view-checkin .register-table th.c-carb,
  #view-checkin .register-table td.c-carb,
  #view-checkout .register-table th.c-carb,
  #view-checkout .register-table td.c-carb{
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
  }

  #view-checkin .register-table th.c-ev,
  #view-checkin .register-table td.c-ev,
  #view-checkout .register-table th.c-ev,
  #view-checkout .register-table td.c-ev{
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
  }

  #view-checkin .register-table th.c-plate,
  #view-checkin .register-table td.c-plate,
  #view-checkout .register-table th.c-plate,
  #view-checkout .register-table td.c-plate{
    width:78px!important;
    min-width:78px!important;
    max-width:78px!important;
  }

  /* --- CHECKLIST: nessuna anteprima nel registro, SEMPRE solo trattino --- */
  #view-checkout .c-check .checklist-cell-preview,
  #view-checkout .c-check .checklist-cell-online,
  #view-checkout .c-check .transparent-cell-action{
    width:100%!important;
    min-width:0!important;
    height:24px!important;
    min-height:24px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    font-size:0!important;
  }

  #view-checkout .c-check .checklist-cell-preview > *,
  #view-checkout .c-check .checklist-cell-online > *,
  #view-checkout .c-check .transparent-cell-action > *{
    display:none!important;
  }

  #view-checkout .c-check .checklist-cell-preview::before,
  #view-checkout .c-check .checklist-cell-online::before,
  #view-checkout .c-check .transparent-cell-action::before{
    content:"—"!important;
    display:block!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:300!important;
    line-height:1!important;
    margin:0!important;
  }

  /* --- CERCA TARGA: elimina definitivamente il bottone/freccia visiva --- */
  #view-checkin #checkinPlateSearchBtn,
  #view-checkout #checkoutPlateSearchBtn{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    min-width:0!important;
    height:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    overflow:hidden!important;
  }

  #view-checkin .register-search input,
  #view-checkout .register-search input{
    padding-right:8px!important;
  }

  /* Nome utente/driver in alto: tutto maiuscolo, solo visuale */
  #view-checkin .register-state-legend,
  #view-checkout .register-state-legend,
  #currentUserCard,
  #topbarUser{
    text-transform:uppercase!important;
  }
}


/* ============================================================
   V83 — SOLO CSS DESKTOP
   - intestazione leggermente più alta
   - righe dati sensibilmente più basse
   - preview Checklist completamente neutralizzata nel registro
   - ANNULLA in maiuscolo
   - firme visualizzate in maiuscolo
   Nessuna modifica a JS / HTML / PHP / API / logica.
   ============================================================ */
@media (min-width:901px){

  /* Intestazione: un po' più alta e più ariosa dei righi dati. */
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    height:56px!important;
    min-height:56px!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
    vertical-align:middle!important;
    line-height:1.08!important;
  }

  /* Righe dati: realmente più basse. */
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
  }

  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
    vertical-align:middle!important;
    line-height:1!important;
  }

  /* Controlli compatti: non devono più tenere alte le righe. */
  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button,
  #view-checkout .register-table tbody button,
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value{
    min-height:24px!important;
    height:24px!important;
    max-height:24px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    line-height:24px!important;
  }

  /* Firma: due righe dentro un rigo compatto, senza farlo crescere. */
  #view-checkin .signature-box,
  #view-checkout .signature-box{
    min-height:28px!important;
    height:28px!important;
    max-height:28px!important;
    padding:0!important;
    margin:0!important;
    gap:1px!important;
    line-height:1!important;
    overflow:hidden!important;
  }

  #view-checkin .signature-box .signature-name,
  #view-checkout .signature-box .signature-name{
    text-transform:uppercase!important;
    font-size:10.5px!important;
    line-height:1!important;
    margin:0!important;
    padding:0!important;
  }

  #view-checkin .signature-box small,
  #view-checkout .signature-box small{
    font-size:8px!important;
    line-height:1!important;
    margin:0!important;
    padding:0!important;
  }

  /* Anche l'ID/firma Driver visualizzato nel registro resta in maiuscolo. */
  #view-checkin .register-table tbody td.c-sign,
  #view-checkout .register-table tbody td.c-sign{
    text-transform:uppercase!important;
  }

  /* ANNULLA tutto maiuscolo, solo grafica. */
  #view-checkin .register-table tbody td.c-actions .cell-btn,
  #view-checkout .register-table tbody td.c-actions .cell-btn{
    text-transform:uppercase!important;
  }

  /* CHECKLIST:
     nessuna immagine/foglietto/DIGITALE nel registro.
     Il bottone resta presente e cliccabile, ma visivamente è solo un trattino. */
  #view-checkout .register-table tbody td.c-check{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
    vertical-align:middle!important;
    overflow:hidden!important;
  }

  #view-checkout .register-table tbody td.c-check button.checklist-cell-preview,
  #view-checkout .register-table tbody td.c-check button.checklist-cell-online,
  #view-checkout .register-table tbody td.c-check button.transparent-cell-action{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:24px!important;
    min-height:24px!important;
    max-height:24px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:hidden!important;
    font-size:0!important;
    line-height:1!important;
  }

  #view-checkout .register-table tbody td.c-check button.checklist-cell-preview img,
  #view-checkout .register-table tbody td.c-check button.checklist-cell-preview span,
  #view-checkout .register-table tbody td.c-check button.checklist-cell-preview small,
  #view-checkout .register-table tbody td.c-check button.checklist-cell-online img,
  #view-checkout .register-table tbody td.c-check button.checklist-cell-online span,
  #view-checkout .register-table tbody td.c-check button.checklist-cell-online small,
  #view-checkout .register-table tbody td.c-check button.transparent-cell-action > *{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }

  #view-checkout .register-table tbody td.c-check button.checklist-cell-preview::before,
  #view-checkout .register-table tbody td.c-check button.checklist-cell-online::before,
  #view-checkout .register-table tbody td.c-check button.transparent-cell-action::before{
    content:"—"!important;
    display:block!important;
    position:static!important;
    transform:none!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:13px!important;
    font-weight:300!important;
    line-height:1!important;
    background:none!important;
    box-shadow:none!important;
  }

  #view-checkout .register-table tbody td.c-check button.checklist-cell-preview::after,
  #view-checkout .register-table tbody td.c-check button.checklist-cell-online::after,
  #view-checkout .register-table tbody td.c-check button.transparent-cell-action::after{
    display:none!important;
    content:none!important;
  }
}


/* ============================================================
   V84 — SOLO CSS DESKTOP — RIFINITURA
   - cursore giallo verticale sul bordo ESTERNO, con estremità leggermente bombate
   - Firma Driver / Firma Noleggiatore identiche
   - Azioni leggermente più larga
   - tutte le righe dati uniformemente compatte
   - firma compilata più leggibile
   - Cerca Targa centrato come blocco completo, bottone submit fuori dal layout
   ============================================================ */
@media (min-width:901px){

  /* ------------------------------------------------------------
     1) CURSORE GIALLO VERTICALE:
        niente più inset interno; sta sul bordo esterno e ha estremità morbide.
     ------------------------------------------------------------ */
  #view-checkin .register-table tbody tr > td:first-child,
  #view-checkout .register-table tbody tr > td:first-child{
    position:relative!important;
  }

  #view-checkin .register-table tbody tr:not(.cancelled-row-v52) > td:first-child,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52) > td:first-child{
    box-shadow:none!important;
  }

  #view-checkin .register-table tbody tr:not(.cancelled-row-v52) > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52) > td:first-child::before{
    content:""!important;
    position:absolute!important;
    left:-2px!important;
    top:3px!important;
    bottom:3px!important;
    width:4px!important;
    border-radius:999px!important;
    background:transparent!important;
    box-shadow:none!important;
    pointer-events:none!important;
    z-index:5!important;
  }

  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child::before,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):focus-within > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):focus-within > td:first-child::before,
  #view-checkin .register-table tbody tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody tr.personal-empty-row > td:first-child::before{
    background:#F5C400!important;
  }

  /* Se il focus/hover è su un'altra riga, la riga vuota non resta accesa. */
  #view-checkin .register-table tbody:has(tr:not(.personal-empty-row):hover) tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody:has(tr:not(.personal-empty-row):hover) tr.personal-empty-row > td:first-child::before,
  #view-checkin .register-table tbody:has(tr:not(.personal-empty-row):focus-within) tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody:has(tr:not(.personal-empty-row):focus-within) tr.personal-empty-row > td:first-child::before{
    background:transparent!important;
  }

  /* ------------------------------------------------------------
     2) FIRME: stesse identiche misure.
     ------------------------------------------------------------ */
  #view-checkout .register-table th:nth-child(10),
  #view-checkout .register-table td:nth-child(10),
  #view-checkout .register-table th:nth-child(11),
  #view-checkout .register-table td:nth-child(11),
  #view-checkin .register-table th:nth-child(9),
  #view-checkin .register-table td:nth-child(9),
  #view-checkin .register-table th:nth-child(10),
  #view-checkin .register-table td:nth-child(10){
    width:128px!important;
    min-width:128px!important;
    max-width:128px!important;
    padding-left:4px!important;
    padding-right:4px!important;
    box-sizing:border-box!important;
  }

  /* Anche i due titoli hanno la stessa dimensione tipografica. */
  #view-checkout .register-table th:nth-child(10)::after,
  #view-checkout .register-table th:nth-child(11)::after,
  #view-checkin .register-table th:nth-child(9)::after,
  #view-checkin .register-table th:nth-child(10)::after{
    font-size:10.8px!important;
    line-height:1.06!important;
    font-weight:800!important;
  }

  /* Firma reale: più leggibile, senza far crescere la riga. */
  #view-checkin .signature-box,
  #view-checkout .signature-box{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    padding:1px 0!important;
    overflow:visible!important;
  }

  #view-checkin .signature-box .signature-name,
  #view-checkout .signature-box .signature-name{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
    text-align:center!important;
    font-size:11px!important;
    line-height:1!important;
    letter-spacing:.01em!important;
  }

  #view-checkin .signature-box small,
  #view-checkout .signature-box small{
    width:100%!important;
    text-align:center!important;
    font-size:8.8px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  /* ------------------------------------------------------------
     3) AZIONI: un po' più larga per dare aria ad ANNULLA.
     ------------------------------------------------------------ */
  #view-checkout .register-table th:nth-child(13),
  #view-checkout .register-table td:nth-child(13),
  #view-checkin .register-table th:nth-child(12),
  #view-checkin .register-table td:nth-child(12){
    width:62px!important;
    min-width:62px!important;
    max-width:62px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }

  #view-checkout .register-table td:nth-child(13) .cell-btn,
  #view-checkin .register-table td:nth-child(12) .cell-btn{
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    padding-left:4px!important;
    padding-right:4px!important;
    margin:0 auto!important;
    white-space:nowrap!important;
  }

  /* ------------------------------------------------------------
     4) RIGHE DATI: tutte uguali, comprese quelle alte in cima.
        Forziamo anche gli elementi che storicamente potevano allargarle.
     ------------------------------------------------------------ */
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr,
  #view-checkin .register-table tbody tr.personal-empty-row,
  #view-checkout .register-table tbody tr.personal-empty-row,
  #view-checkin .register-table tbody tr.cancelled-row-v52,
  #view-checkout .register-table tbody tr.cancelled-row-v52{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
  }

  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
    line-height:1!important;
  }

  #view-checkin .register-table tbody td .status,
  #view-checkout .register-table tbody td .status,
  #view-checkin .register-table tbody td .status.status-icon-only,
  #view-checkout .register-table tbody td .status.status-icon-only{
    min-height:0!important;
    height:auto!important;
    max-height:24px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }

  #view-checkin .register-table tbody td .status.status-icon-only,
  #view-checkout .register-table tbody td .status.status-icon-only{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
  }

  #view-checkin .register-table tbody td .status.status-icon-only .status-svg,
  #view-checkout .register-table tbody td .status.status-icon-only .status-svg{
    width:20px!important;
    height:20px!important;
  }

  /* ------------------------------------------------------------
     5) CERCA TARGA:
        il bottone submit non occupa proprio spazio nel layout.
        Il blocco lente + input viene centrato come unità unica.
     ------------------------------------------------------------ */
  #view-checkin #checkinPlateSearchBtn,
  #view-checkout #checkoutPlateSearchBtn{
    display:none!important;
    position:absolute!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
  }

  #view-checkin .register-search,
  #view-checkout .register-search{
    justify-self:center!important;
    align-self:end!important;
    display:grid!important;
    grid-template-columns:18px 138px!important;
    align-items:center!important;
    justify-content:center!important;
    column-gap:6px!important;
    width:162px!important;
    min-width:162px!important;
    max-width:162px!important;
    height:36px!important;
    margin:0!important;
    padding:0!important;
  }

  #view-checkin .register-search-icon,
  #view-checkout .register-search-icon{
    width:18px!important;
    min-width:18px!important;
    height:18px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
  }

  #view-checkin .register-search input,
  #view-checkout .register-search input{
    width:138px!important;
    min-width:138px!important;
    max-width:138px!important;
    margin:0!important;
    padding-left:0!important;
    padding-right:0!important;
    text-align:left!important;
  }
}


/* ============================================================
   V85 — SOLO assets/style.css — DESKTOP REGISTRI UNIFICATI
   Nessuna modifica a HTML / JavaScript / PHP / API / logica.
   ============================================================ */
@media (min-width:901px){

  /* --- contenitore: consente all'indicatore di sporgere davvero fuori --- */
  #view-checkin > .panel.table-panel,
  #view-checkout > .panel.table-panel,
  #view-checkin > .panel.table-panel > .table-wrap,
  #view-checkout > .panel.table-panel > .table-wrap{
    overflow:visible!important;
  }

  #view-checkin .register-table,
  #view-checkout .register-table,
  #view-checkin .register-table tbody,
  #view-checkout .register-table tbody,
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr,
  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    overflow:visible!important;
  }

  /* --- indicatore giallo: completamente FUORI dal bordo sinistro --- */
  #view-checkin .register-table tbody tr > td:first-child,
  #view-checkout .register-table tbody tr > td:first-child{
    position:relative!important;
  }
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52) > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52) > td:first-child::before{
    content:""!important;
    position:absolute!important;
    left:-7px!important;
    top:2px!important;
    bottom:2px!important;
    width:5px!important;
    border-radius:5px 0 0 5px!important;
    background:transparent!important;
    box-shadow:none!important;
    pointer-events:none!important;
    z-index:20!important;
  }
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):hover > td:first-child::before,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):focus-within > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):focus-within > td:first-child::before,
  #view-checkin .register-table tbody tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody tr.personal-empty-row > td:first-child::before{
    background:#F5C400!important;
  }
  #view-checkin .register-table tbody:has(tr:not(.personal-empty-row):hover) tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody:has(tr:not(.personal-empty-row):hover) tr.personal-empty-row > td:first-child::before,
  #view-checkin .register-table tbody:has(tr:not(.personal-empty-row):focus-within) tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody:has(tr:not(.personal-empty-row):focus-within) tr.personal-empty-row > td:first-child::before{
    background:transparent!important;
  }

  /* --- stessa altezza reale per TUTTE le righe dati, in entrambi i registri --- */
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr,
  #view-checkin .register-table tbody tr.personal-empty-row,
  #view-checkout .register-table tbody tr.personal-empty-row,
  #view-checkin .register-table tbody tr.locked-row,
  #view-checkout .register-table tbody tr.locked-row,
  #view-checkin .register-table tbody tr.cancelled-row-v52,
  #view-checkout .register-table tbody tr.cancelled-row-v52{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
  }
  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
    vertical-align:middle!important;
    line-height:1!important;
    box-sizing:border-box!important;
  }

  /* nessun figlio può riallargare le prime righe */
  #view-checkin .register-table tbody td > input,
  #view-checkout .register-table tbody td > input,
  #view-checkin .register-table tbody td > select,
  #view-checkout .register-table tbody td > select,
  #view-checkin .register-table tbody td > button,
  #view-checkout .register-table tbody td > button,
  #view-checkin .register-table tbody td > .field-value,
  #view-checkout .register-table tbody td > .field-value,
  #view-checkin .register-table tbody td > .field-lock,
  #view-checkout .register-table tbody td > .field-lock,
  #view-checkin .register-table tbody td > .status,
  #view-checkout .register-table tbody td > .status{
    min-height:24px!important;
    height:24px!important;
    max-height:24px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
    line-height:24px!important;
    box-sizing:border-box!important;
  }

  /* intestazione unica e più alta delle righe, senza sovrapposizioni */
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
    padding:5px 3px!important;
    line-height:1.08!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    vertical-align:middle!important;
    box-sizing:border-box!important;
  }

  /* --- RA/NRM: nessuna box interna --- */
  #view-checkin .register-table tbody td.c-ra,
  #view-checkin .register-table tbody td.c-ra > *,
  #view-checkin .register-table tbody td.c-ra input,
  #view-checkin .register-table tbody td.c-ra .field-lock,
  #view-checkin .register-table tbody td.c-ra .field-value{
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    border-radius:0!important;
    outline:0!important;
    box-shadow:none!important;
  }

  /* --- colonna MODELLO: si restringe SOLO nel CHECK-IN --- */
  #view-checkin .register-table th:nth-child(4),
  #view-checkin .register-table td.c-model{
    width:94px!important;
    min-width:94px!important;
    max-width:94px!important;
  }
  /* check-out modello volutamente non modificato */

  /* --- FIRME: stessa identica larghezza e più spazio utile --- */
  #view-checkin .register-table th:nth-child(9),
  #view-checkin .register-table th:nth-child(10),
  #view-checkin .register-table td.c-sign,
  #view-checkout .register-table th:nth-child(10),
  #view-checkout .register-table th:nth-child(11),
  #view-checkout .register-table td.c-sign{
    width:136px!important;
    min-width:136px!important;
    max-width:136px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
  #view-checkin .signature-box,
  #view-checkout .signature-box{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    padding:1px 0!important;
    margin:0!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:1px!important;
    overflow:hidden!important;
  }
  #view-checkin .signature-box .signature-name,
  #view-checkout .signature-box .signature-name{
    width:100%!important;
    max-width:100%!important;
    font-size:11px!important;
    line-height:1!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:center!important;
  }
  #view-checkin .signature-box small,
  #view-checkout .signature-box small{
    width:100%!important;
    font-size:9px!important;
    line-height:1!important;
    white-space:nowrap!important;
    text-align:center!important;
  }

  /* --- stato: sufficiente per dicitura completa, senza schiacciare firme --- */
  #view-checkin .register-table th:nth-child(11),
  #view-checkin .register-table td.c-status,
  #view-checkout .register-table th:nth-child(12),
  #view-checkout .register-table td.c-status{
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
    padding-left:3px!important;
    padding-right:3px!important;
  }
  #view-checkin .register-table td.c-status .status,
  #view-checkout .register-table td.c-status .status{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:10px!important;
  }

  /* --- AZIONI: solo la C visiva sui pulsanti di annullamento; click invariato --- */
  #view-checkin .register-table th:nth-child(12),
  #view-checkin .register-table td.c-actions,
  #view-checkout .register-table th:nth-child(13),
  #view-checkout .register-table td.c-actions{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    padding-left:2px!important;
    padding-right:2px!important;
    text-align:center!important;
  }
  #view-checkin .register-table td.c-actions .v52-cancel-btn,
  #view-checkout .register-table td.c-actions .v52-cancel-btn{
    position:relative!important;
    width:24px!important;
    min-width:24px!important;
    max-width:24px!important;
    height:24px!important;
    min-height:24px!important;
    max-height:24px!important;
    padding:0!important;
    margin:0 auto!important;
    font-size:0!important;
    line-height:24px!important;
    color:#fff!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  #view-checkin .register-table td.c-actions .v52-cancel-btn::before,
  #view-checkout .register-table td.c-actions .v52-cancel-btn::before{
    content:"C"!important;
    display:block!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:24px!important;
    color:#fff!important;
    text-align:center!important;
  }

  /* --- Danni: niente box; il testo reale resta intatto per non nascondere danni esistenti --- */
  #view-checkin .register-table td.c-damage > button,
  #view-checkout .register-table td.c-damage > button{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }

  /* --- Checklist: nel registro resta soltanto il trattino; funzione/click invariati --- */
  #view-checkout .register-table td.c-check > button{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:24px!important;
    min-height:24px!important;
    max-height:24px!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    font-size:0!important;
    overflow:hidden!important;
  }
  #view-checkout .register-table td.c-check > button::before{
    content:"—"!important;
    display:block!important;
    font-size:13px!important;
    font-weight:300!important;
    line-height:24px!important;
    color:#fff!important;
    text-align:center!important;
  }
  #view-checkout .register-table td.c-check > button::after{
    display:none!important;
    content:none!important;
  }

  /* --- Cerca Targa: bottone/freccia totalmente fuori dal layout, blocco centrato --- */
  #view-checkin #checkinPlateSearchBtn,
  #view-checkout #checkoutPlateSearchBtn{
    display:none!important;
    position:absolute!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    pointer-events:none!important;
  }
  #view-checkin .register-search,
  #view-checkout .register-search{
    justify-self:center!important;
    display:grid!important;
    grid-template-columns:18px 140px!important;
    justify-content:center!important;
    align-items:center!important;
    column-gap:6px!important;
    width:164px!important;
    min-width:164px!important;
    max-width:164px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* linea gialla orizzontale della cella attiva resta invariata */
}


/* ========================================================================
   V87 — OVERRIDE FINALE DESKTOP, SOLO assets/style.css
   Base: V85.
   Obiettivi:
   - una sola altezza reale per TUTTE le righe Check-in / Check-out
   - un solo indicatore giallo verticale, esterno e arrotondato
   - linea gialla orizzontale solo sulla cella attiva
   - una sola sorgente grafica per i suggerimenti (niente doppioni)
   - Cerca Targa realmente centrato nell'intera area registro
   - font/peso uniformi per tutti i valori
   - RA/NRM senza box, Checklist solo trattino
   - nessuna modifica a HTML / JS / PHP / API / logica
   ======================================================================== */
@media (min-width:901px){

  /* ---------- 1. TESTATA SUPERIORE: griglia unica e centratura reale ---------- */
  #view-checkin > .register-heading.register-heading-enhanced,
  #view-checkout > .register-heading.register-heading-enhanced{
    display:grid!important;
    grid-template-columns:minmax(250px,1fr) minmax(220px,1fr) minmax(250px,1fr)!important;
    grid-template-rows:auto 38px!important;
    grid-template-areas:
      "title title title"
      "date search meta"!important;
    align-items:center!important;
    column-gap:18px!important;
    row-gap:8px!important;
    padding:8px 0 6px!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  #view-checkin .register-center,
  #view-checkout .register-center{
    display:contents!important;
  }

  #view-checkin .register-center > h2,
  #view-checkout .register-center > h2{
    grid-area:title!important;
    justify-self:center!important;
    align-self:center!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
  }

  #view-checkin .register-date-block,
  #view-checkout .register-date-block{
    grid-area:date!important;
    justify-self:start!important;
    align-self:center!important;
    margin:0!important;
  }

  #view-checkin .register-state-legend,
  #view-checkout .register-state-legend{
    grid-area:meta!important;
    justify-self:end!important;
    align-self:center!important;
    margin:0!important;
  }

  #view-checkin .register-search,
  #view-checkout .register-search{
    grid-area:search!important;
    justify-self:center!important;
    align-self:center!important;
    position:relative!important;
    display:grid!important;
    grid-template-columns:18px 144px!important;
    align-items:center!important;
    justify-content:center!important;
    column-gap:7px!important;
    width:169px!important;
    min-width:169px!important;
    max-width:169px!important;
    height:30px!important;
    min-height:30px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  #view-checkin #checkinPlateSearchBtn,
  #view-checkout #checkoutPlateSearchBtn{
    display:none!important;
    position:absolute!important;
    inset:auto!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
  }

  #view-checkin .register-search-icon,
  #view-checkout .register-search-icon{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    margin:0!important;
    display:grid!important;
    place-items:center!important;
  }

  #view-checkin .register-search input,
  #view-checkout .register-search input{
    width:144px!important;
    min-width:144px!important;
    max-width:144px!important;
    height:26px!important;
    min-height:26px!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  /* ---------- 2. CONTENITORE: permette al cursore di stare DAVVERO fuori ---------- */
  #view-checkin > .panel.table-panel,
  #view-checkout > .panel.table-panel,
  #view-checkin > .panel.table-panel > .table-wrap,
  #view-checkout > .panel.table-panel > .table-wrap,
  #view-checkin .register-table,
  #view-checkout .register-table,
  #view-checkin .register-table tbody,
  #view-checkout .register-table tbody{
    overflow:visible!important;
  }

  /* ---------- 3. ALTEZZE: tutte le righe dati identiche ---------- */
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr,
  #view-checkin .register-table tbody tr.personal-empty-row,
  #view-checkout .register-table tbody tr.personal-empty-row,
  #view-checkin .register-table tbody tr.locked-row,
  #view-checkout .register-table tbody tr.locked-row,
  #view-checkin .register-table tbody tr.cancelled-row-v52,
  #view-checkout .register-table tbody tr.cancelled-row-v52,
  #view-checkin .register-table tbody tr.cancelled-row,
  #view-checkout .register-table tbody tr.cancelled-row{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
  }

  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    padding:0 4px!important;
    vertical-align:middle!important;
    line-height:1!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }

  /* neutralizza i figli che in passato riallargavano solo alcune righe */
  #view-checkin .register-table tbody td > *,
  #view-checkout .register-table tbody td > *{
    margin-top:0!important;
    margin-bottom:0!important;
    box-sizing:border-box!important;
  }

  #view-checkin .register-table tbody td > input,
  #view-checkout .register-table tbody td > input,
  #view-checkin .register-table tbody td > select,
  #view-checkout .register-table tbody td > select,
  #view-checkin .register-table tbody td > button,
  #view-checkout .register-table tbody td > button,
  #view-checkin .register-table tbody td > .field-value,
  #view-checkout .register-table tbody td > .field-value,
  #view-checkin .register-table tbody td > .field-lock,
  #view-checkout .register-table tbody td > .field-lock,
  #view-checkin .register-table tbody td > .status,
  #view-checkout .register-table tbody td > .status,
  #view-checkin .register-table tbody td > .row-add,
  #view-checkout .register-table tbody td > .row-add{
    min-height:0!important;
    height:26px!important;
    max-height:26px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    line-height:26px!important;
  }

  #view-checkin .register-table tbody .plus-btn,
  #view-checkout .register-table tbody .plus-btn{
    width:20px!important;
    min-width:20px!important;
    max-width:20px!important;
    height:20px!important;
    min-height:20px!important;
    max-height:20px!important;
    padding:0!important;
    line-height:20px!important;
  }

  #view-checkin .register-table tbody .movement-check,
  #view-checkout .register-table tbody .movement-check,
  #view-checkin .register-table tbody .status-icon-only,
  #view-checkout .register-table tbody .status-icon-only{
    width:20px!important;
    min-width:20px!important;
    max-width:20px!important;
    height:20px!important;
    min-height:20px!important;
    max-height:20px!important;
    padding:0!important;
  }

  #view-checkin .register-table tbody .movement-check svg,
  #view-checkout .register-table tbody .movement-check svg,
  #view-checkin .register-table tbody .status-icon-only svg,
  #view-checkout .register-table tbody .status-icon-only svg{
    width:17px!important;
    height:17px!important;
  }

  /* intestazione volutamente più alta */
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
    padding:5px 3px!important;
    line-height:1.08!important;
    vertical-align:middle!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    box-sizing:border-box!important;
  }

  /* ---------- 4. UN SOLO CURSORE GIALLO VERTICALE: ESTERNO ---------- */
  #view-checkin .register-table tbody tr > td:first-child,
  #view-checkout .register-table tbody tr > td:first-child{
    position:relative!important;
    /* cancella qualsiasi vecchio indicatore verticale interno */
    box-shadow:none!important;
  }

  #view-checkin .register-table tbody tr > td:first-child::before,
  #view-checkout .register-table tbody tr > td:first-child::before{
    content:""!important;
    position:absolute!important;
    left:-10px!important;
    top:3px!important;
    bottom:3px!important;
    width:6px!important;
    border-radius:999px!important;
    background:transparent!important;
    box-shadow:none!important;
    pointer-events:none!important;
    z-index:30!important;
  }

  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):not(.cancelled-row):hover > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):not(.cancelled-row):hover > td:first-child::before,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):not(.cancelled-row):focus-within > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):not(.cancelled-row):focus-within > td:first-child::before,
  #view-checkin .register-table tbody tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody tr.personal-empty-row > td:first-child::before{
    background:#F5C400!important;
  }

  #view-checkin .register-table tbody:has(tr:not(.personal-empty-row):hover) tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody:has(tr:not(.personal-empty-row):hover) tr.personal-empty-row > td:first-child::before,
  #view-checkin .register-table tbody:has(tr:not(.personal-empty-row):focus-within) tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody:has(tr:not(.personal-empty-row):focus-within) tr.personal-empty-row > td:first-child::before{
    background:transparent!important;
  }

  /* linea gialla ORIZZONTALE: solo sulla cella attiva/hover editabile */
  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within,
  #view-checkin .register-table tbody td:has(input:hover),
  #view-checkout .register-table tbody td:has(input:hover),
  #view-checkin .register-table tbody td:has(select:hover),
  #view-checkout .register-table tbody td:has(select:hover){
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  /* se è la prima cella, NON deve ricomparire il vecchio giallo verticale interno */
  #view-checkin .register-table tbody tr > td:first-child:focus-within,
  #view-checkout .register-table tbody tr > td:first-child:focus-within,
  #view-checkin .register-table tbody tr > td:first-child:has(input:hover),
  #view-checkout .register-table tbody tr > td:first-child:has(input:hover),
  #view-checkin .register-table tbody tr > td:first-child:has(select:hover),
  #view-checkout .register-table tbody tr > td:first-child:has(select:hover){
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  /* ---------- 5. FONT/PESO: stessa voce tipografica in tutto il corpo ---------- */
  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td,
  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button,
  #view-checkout .register-table tbody button,
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value,
  #view-checkin .register-table tbody .field-lock,
  #view-checkout .register-table tbody .field-lock,
  #view-checkin .register-table tbody .status,
  #view-checkout .register-table tbody .status{
    font-family:inherit!important;
    font-size:11px!important;
    font-weight:700!important;
    letter-spacing:0!important;
  }

  /* firma: stesso font/peso, data più piccola ma non più sottile */
  #view-checkin .signature-box,
  #view-checkout .signature-box{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:1px!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
  }

  #view-checkin .signature-box .signature-name,
  #view-checkout .signature-box .signature-name{
    width:100%!important;
    font-family:inherit!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:1!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:center!important;
  }

  #view-checkin .signature-box small,
  #view-checkout .signature-box small{
    width:100%!important;
    font-family:inherit!important;
    font-size:8.5px!important;
    font-weight:700!important;
    line-height:1!important;
    white-space:nowrap!important;
    text-align:center!important;
  }

  /* ---------- 6. CAMPI SENZA BOX ---------- */
  #view-checkin .register-table tbody td.c-ra > *,
  #view-checkin .register-table tbody td.c-plate > *,
  #view-checkout .register-table tbody td.c-plate > *,
  #view-checkin .register-table tbody td.c-model > *,
  #view-checkout .register-table tbody td.c-model > *,
  #view-checkin .register-table tbody td.c-km > *,
  #view-checkout .register-table tbody td.c-km > *,
  #view-checkin .register-table tbody td.c-sign > *,
  #view-checkout .register-table tbody td.c-sign > *{
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    border-radius:0!important;
    outline:0!important;
    box-shadow:none!important;
  }

  /* ---------- 7. SUGGERIMENTI: una sola sorgente grafica ---------- */
  #view-checkin .register-table tbody td.c-ra::after,
  #view-checkin .register-table tbody td.c-plate::after,
  #view-checkout .register-table tbody td.c-plate::after,
  #view-checkin .register-table tbody td.c-model::after,
  #view-checkout .register-table tbody td.c-model::after,
  #view-checkin .register-table tbody td.c-km::after,
  #view-checkout .register-table tbody td.c-km::after,
  #view-checkin .register-table tbody td.c-notes::after,
  #view-checkout .register-table tbody td.c-notes::after,
  #view-checkin .register-table tbody td.c-sign::after,
  #view-checkout .register-table tbody td.c-sign::after{
    content:none!important;
    display:none!important;
  }

  #view-checkin .register-table tbody input::placeholder,
  #view-checkout .register-table tbody input::placeholder{
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
    opacity:0!important;
  }

  /* tratto/suggerimento unico per campi testuali vuoti */
  #view-checkin .register-table tbody td.c-ra:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-sign:has(input.signature-id-input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-sign:has(input.signature-id-input:placeholder-shown)::after{
    display:block!important;
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    pointer-events:none!important;
    white-space:nowrap!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:400!important;
    line-height:1!important;
    content:"—"!important;
  }

  #view-checkin .register-table tbody td.c-ra,
  #view-checkin .register-table tbody td.c-plate,
  #view-checkout .register-table tbody td.c-plate,
  #view-checkin .register-table tbody td.c-model,
  #view-checkout .register-table tbody td.c-model,
  #view-checkin .register-table tbody td.c-km,
  #view-checkout .register-table tbody td.c-km,
  #view-checkin .register-table tbody td.c-notes,
  #view-checkout .register-table tbody td.c-notes,
  #view-checkin .register-table tbody td.c-sign,
  #view-checkout .register-table tbody td.c-sign{
    position:relative!important;
  }

  #view-checkin .register-table tbody td.c-ra:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-ra:focus-within:has(input:placeholder-shown)::after{
    content:"—  RA/NRM"!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  #view-checkin .register-table tbody td.c-plate:hover:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:focus-within:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:focus-within:has(input:placeholder-shown)::after{
    content:"—  Targa"!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  #view-checkin .register-table tbody td.c-model:hover:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:focus-within:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:focus-within:has(input:placeholder-shown)::after{
    content:"—  Modello"!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  #view-checkin .register-table tbody td.c-km:hover:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:focus-within:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:focus-within:has(input:placeholder-shown)::after{
    content:"—  Km"!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  #view-checkin .register-table tbody td.c-notes:hover:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:focus-within:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:focus-within:has(input:placeholder-shown)::after{
    content:"—  Note"!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  #view-checkin .register-table tbody td.c-sign:hover:has(input.signature-id-input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-sign:hover:has(input.signature-id-input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-sign:focus-within:has(input.signature-id-input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-sign:focus-within:has(input.signature-id-input:placeholder-shown)::after{
    content:"—  ID personale"!important;
    font-size:10px!important;
    font-weight:700!important;
  }

  /* ---------- 8. DANNI VUOTI: usa il marker .damage-cell-empty quando presente ---------- */
  #view-checkin .register-table td.c-damage .damage-cell-empty,
  #view-checkout .register-table td.c-damage .damage-cell-empty{
    font-size:0!important;
    color:transparent!important;
  }
  #view-checkin .register-table td.c-damage .damage-cell-empty::before,
  #view-checkout .register-table td.c-damage .damage-cell-empty::before{
    content:"—"!important;
    color:#fff!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:400!important;
  }
  #view-checkin .register-table td.c-damage:hover .damage-cell-empty::before,
  #view-checkout .register-table td.c-damage:hover .damage-cell-empty::before,
  #view-checkin .register-table td.c-damage:focus-within .damage-cell-empty::before,
  #view-checkout .register-table td.c-damage:focus-within .damage-cell-empty::before{
    content:"—  Danni"!important;
    font-size:11px!important;
    font-weight:700!important;
  }

  /* ---------- 9. CHECKLIST: niente preview nel registro, solo trattino ---------- */
  #view-checkout .register-table td.c-check > button{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:26px!important;
    min-height:26px!important;
    max-height:26px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:hidden!important;
    font-size:0!important;
  }
  #view-checkout .register-table td.c-check > button > *{
    display:none!important;
    visibility:hidden!important;
  }
  #view-checkout .register-table td.c-check > button::before{
    content:"—"!important;
    display:block!important;
    color:#fff!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:400!important;
    line-height:1!important;
  }
  #view-checkout .register-table td.c-check:hover > button::before,
  #view-checkout .register-table td.c-check:focus-within > button::before{
    content:"—  Checklist"!important;
    font-size:10px!important;
    font-weight:700!important;
  }
  #view-checkout .register-table td.c-check > button::after{
    content:none!important;
    display:none!important;
  }

  /* ---------- 10. AZIONI: C con lo stesso font/peso degli altri valori ---------- */
  #view-checkin .register-table td.c-actions > button,
  #view-checkout .register-table td.c-actions > button{
    position:relative!important;
    width:28px!important;
    min-width:28px!important;
    max-width:28px!important;
    height:26px!important;
    min-height:26px!important;
    max-height:26px!important;
    padding:0!important;
    margin:0 auto!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:0!important;
    color:transparent!important;
  }
  #view-checkin .register-table td.c-actions > button::before,
  #view-checkout .register-table td.c-actions > button::before{
    content:"C"!important;
    display:block!important;
    color:#fff!important;
    font-family:inherit!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:26px!important;
    text-align:center!important;
  }

  /* ---------- 11. LARGHEZZE FINALI, senza sovrapposizioni ---------- */
  /* Modello ristretto SOLO nel Check-in */
  #view-checkin .register-table th:nth-child(4),
  #view-checkin .register-table td.c-model{
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
  }

  /* firme simmetriche */
  #view-checkin .register-table th:nth-child(9),
  #view-checkin .register-table th:nth-child(10),
  #view-checkin .register-table td.c-sign,
  #view-checkout .register-table th:nth-child(10),
  #view-checkout .register-table th:nth-child(11),
  #view-checkout .register-table td.c-sign{
    width:132px!important;
    min-width:132px!important;
    max-width:132px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }

  /* stato leggibile */
  #view-checkin .register-table th:nth-child(11),
  #view-checkin .register-table td.c-status,
  #view-checkout .register-table th:nth-child(12),
  #view-checkout .register-table td.c-status{
    width:90px!important;
    min-width:90px!important;
    max-width:90px!important;
  }

  /* azioni compatta ma con aria */
  #view-checkin .register-table th:nth-child(12),
  #view-checkin .register-table td.c-actions,
  #view-checkout .register-table th:nth-child(13),
  #view-checkout .register-table td.c-actions{
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    padding-left:3px!important;
    padding-right:3px!important;
  }
}


/* ========================================================================
   V88 — CORREZIONE CHIRURGICA FINALE DESKTOP
   SOLO assets/style.css — base V87
   ======================================================================== */
@media (min-width:901px){

  /* A) RIGHE: una sola altezza, anche con firma / pulsanti / riga vuota */
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr,
  #view-checkin .register-table tbody tr.personal-empty-row,
  #view-checkout .register-table tbody tr.personal-empty-row,
  #view-checkin .register-table tbody tr.locked-row,
  #view-checkout .register-table tbody tr.locked-row,
  #view-checkin .register-table tbody tr.cancelled-row,
  #view-checkout .register-table tbody tr.cancelled-row,
  #view-checkin .register-table tbody tr.cancelled-row-v52,
  #view-checkout .register-table tbody tr.cancelled-row-v52{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
  }

  #view-checkin .register-table tbody tr > td,
  #view-checkout .register-table tbody tr > td{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    padding:1px 4px!important;
    line-height:1!important;
    vertical-align:middle!important;
    box-sizing:border-box!important;
  }

  #view-checkin .register-table tbody .row-add,
  #view-checkout .register-table tbody .row-add{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    width:100%!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    margin:0!important;
    padding:0!important;
  }

  #view-checkin .register-table tbody .row-add > b,
  #view-checkout .register-table tbody .row-add > b{
    line-height:30px!important;
    margin:0!important;
    padding:0!important;
  }

  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody td.c-damage > button,
  #view-checkout .register-table tbody td.c-damage > button,
  #view-checkout .register-table tbody td.c-check > button,
  #view-checkin .register-table tbody td.c-actions > button,
  #view-checkout .register-table tbody td.c-actions > button,
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value,
  #view-checkin .register-table tbody .field-lock,
  #view-checkout .register-table tbody .field-lock,
  #view-checkin .register-table tbody .status,
  #view-checkout .register-table tbody .status{
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
    line-height:28px!important;
    box-sizing:border-box!important;
  }

  #view-checkin .signature-box,
  #view-checkout .signature-box{
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    margin:0!important;
    padding:1px 0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:1px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  /* B) GRIGLIA: ripristino linee, compresa RA/NRM */
  #view-checkin .register-table thead th,
  #view-checkin .register-table tbody td,
  #view-checkout .register-table thead th,
  #view-checkout .register-table tbody td{
    border-right:1px solid rgba(255,255,255,.16)!important;
    border-bottom:1px solid rgba(255,255,255,.16)!important;
  }

  #view-checkin .register-table tbody td.c-ra{
    border-right:1px solid rgba(255,255,255,.16)!important;
    border-bottom:1px solid rgba(255,255,255,.16)!important;
  }

  /* C) GIALLO: niente barra verticale interna */
  #view-checkin .register-table tbody tr > td:first-child,
  #view-checkout .register-table tbody tr > td:first-child,
  #view-checkin .register-table tbody tr.personal-empty-row > td:first-child,
  #view-checkout .register-table tbody tr.personal-empty-row > td:first-child,
  #view-checkin .register-table tbody tr:hover > td:first-child,
  #view-checkout .register-table tbody tr:hover > td:first-child{
    box-shadow:none!important;
  }

  #view-checkin .register-table tbody tr > td:first-child::before,
  #view-checkout .register-table tbody tr > td:first-child::before{
    left:-9px!important;
    top:3px!important;
    bottom:3px!important;
    width:6px!important;
    border-radius:999px!important;
    box-shadow:none!important;
  }

  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within{
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  #view-checkin .register-table tbody tr > td:first-child:focus-within,
  #view-checkout .register-table tbody tr > td:first-child:focus-within{
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  /* D) SUGGERIMENTI: una sola sorgente */
  #view-checkin .register-table tbody input::placeholder,
  #view-checkout .register-table tbody input::placeholder,
  #view-checkin .register-table tbody input:hover::placeholder,
  #view-checkout .register-table tbody input:hover::placeholder,
  #view-checkin .register-table tbody input:focus::placeholder,
  #view-checkout .register-table tbody input:focus::placeholder{
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
    opacity:0!important;
    text-shadow:none!important;
  }

  #view-checkin .register-table tbody input::before,
  #view-checkin .register-table tbody input::after,
  #view-checkout .register-table tbody input::before,
  #view-checkout .register-table tbody input::after{
    content:none!important;
    display:none!important;
  }

  /* E) CERCA TARGA: una sola lente e centratura reale */
  #view-checkin .register-search,
  #view-checkout .register-search{
    position:relative!important;
    display:grid!important;
    grid-template-columns:16px 132px!important;
    column-gap:7px!important;
    align-items:center!important;
    justify-content:center!important;
    justify-self:center!important;
    width:155px!important;
    min-width:155px!important;
    max-width:155px!important;
    height:30px!important;
    min-height:30px!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:visible!important;
  }

  #view-checkin .register-search-icon,
  #view-checkout .register-search-icon{
    position:static!important;
    inset:auto!important;
    display:grid!important;
    place-items:center!important;
    width:16px!important;
    min-width:16px!important;
    height:16px!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
  }

  #view-checkin .register-search-icon svg,
  #view-checkout .register-search-icon svg{
    display:block!important;
    width:15px!important;
    height:15px!important;
  }

  #view-checkin .register-search input[type="search"],
  #view-checkout .register-search input[type="search"]{
    -webkit-appearance:none!important;
    appearance:none!important;
    width:132px!important;
    min-width:132px!important;
    max-width:132px!important;
    height:26px!important;
    min-height:26px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    text-align:left!important;
  }

  #view-checkin .register-search input[type="search"]::-webkit-search-decoration,
  #view-checkout .register-search input[type="search"]::-webkit-search-decoration,
  #view-checkin .register-search input[type="search"]::-webkit-search-cancel-button,
  #view-checkout .register-search input[type="search"]::-webkit-search-cancel-button,
  #view-checkin .register-search input[type="search"]::-webkit-search-results-button,
  #view-checkout .register-search input[type="search"]::-webkit-search-results-button,
  #view-checkin .register-search input[type="search"]::-webkit-search-results-decoration,
  #view-checkout .register-search input[type="search"]::-webkit-search-results-decoration{
    -webkit-appearance:none!important;
    appearance:none!important;
    display:none!important;
  }

  #view-checkin #checkinPlateSearchBtn,
  #view-checkout #checkoutPlateSearchBtn{
    display:none!important;
    position:absolute!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    pointer-events:none!important;
  }

  /* F) AZIONI: C solo su Annulla, INFO da sola sulle annullate */
  #view-checkin .register-table td.c-actions > button,
  #view-checkout .register-table td.c-actions > button{
    font-family:inherit!important;
    font-size:11px!important;
    font-weight:700!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  #view-checkin .register-table td.c-actions > button::before,
  #view-checkout .register-table td.c-actions > button::before{
    content:none!important;
    display:none!important;
  }

  #view-checkin .register-table td.c-actions .v52-cancel-btn,
  #view-checkout .register-table td.c-actions .v52-cancel-btn{
    position:relative!important;
    font-size:0!important;
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
  }

  #view-checkin .register-table td.c-actions .v52-cancel-btn::before,
  #view-checkout .register-table td.c-actions .v52-cancel-btn::before{
    content:"C"!important;
    display:block!important;
    font-family:inherit!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:28px!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    text-align:center!important;
  }

  #view-checkin .register-table td.c-actions .v52-info-cancel,
  #view-checkout .register-table td.c-actions .v52-info-cancel,
  #view-checkin .register-table tr.cancelled-row-v52 td.c-actions > button,
  #view-checkout .register-table tr.cancelled-row-v52 td.c-actions > button,
  #view-checkin .register-table tr.cancelled-row td.c-actions > button,
  #view-checkout .register-table tr.cancelled-row td.c-actions > button{
    font-size:11px!important;
    font-weight:700!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  #view-checkin .register-table td.c-actions .v52-info-cancel::before,
  #view-checkout .register-table td.c-actions .v52-info-cancel::before,
  #view-checkin .register-table tr.cancelled-row-v52 td.c-actions > button::before,
  #view-checkout .register-table tr.cancelled-row-v52 td.c-actions > button::before,
  #view-checkin .register-table tr.cancelled-row td.c-actions > button::before,
  #view-checkout .register-table tr.cancelled-row td.c-actions > button::before{
    content:none!important;
    display:none!important;
  }

  /* G) FONT: corpo registro uniforme */
  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td,
  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button,
  #view-checkout .register-table tbody button,
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value,
  #view-checkin .register-table tbody .field-lock,
  #view-checkout .register-table tbody .field-lock,
  #view-checkin .signature-box .signature-name,
  #view-checkout .signature-box .signature-name{
    font-family:inherit!important;
    font-size:11px!important;
    font-weight:700!important;
    letter-spacing:0!important;
  }

  #view-checkin .signature-box small,
  #view-checkout .signature-box small{
    font-family:inherit!important;
    font-size:8.5px!important;
    font-weight:700!important;
  }
}

/* ========================================================================
   V89C — SOLO CSS — RIFINITURA FINALE DESKTOP
   Nessuna logica toccata. Solo stabilizzazione grafica registri.
   ======================================================================== */
@media (min-width:901px){

  /* 1) RIGHE uniformi e più ariose */
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr,
  #view-checkin .register-table tbody tr.personal-empty-row,
  #view-checkout .register-table tbody tr.personal-empty-row,
  #view-checkin .register-table tbody tr.locked-row,
  #view-checkout .register-table tbody tr.locked-row,
  #view-checkin .register-table tbody tr.cancelled-row,
  #view-checkout .register-table tbody tr.cancelled-row,
  #view-checkin .register-table tbody tr.cancelled-row-v52,
  #view-checkout .register-table tbody tr.cancelled-row-v52{
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
  }

  #view-checkin .register-table tbody tr > td,
  #view-checkout .register-table tbody tr > td{
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
    padding:2px 5px!important;
    line-height:1.05!important;
    vertical-align:middle!important;
    overflow:hidden!important;
  }

  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button,
  #view-checkout .register-table tbody button,
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value,
  #view-checkin .register-table tbody .field-lock,
  #view-checkout .register-table tbody .field-lock,
  #view-checkin .register-table tbody .status,
  #view-checkout .register-table tbody .status{
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    line-height:30px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  #view-checkin .signature-box,
  #view-checkout .signature-box{
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    padding:1px 0!important;
    gap:1px!important;
  }

  /* 2) Caratteri principali un filo più grandi */
  #view-checkin .register-table tbody td.c-plate,
  #view-checkout .register-table tbody td.c-plate,
  #view-checkin .register-table tbody td.c-model,
  #view-checkout .register-table tbody td.c-model,
  #view-checkin .register-table tbody td.c-km,
  #view-checkout .register-table tbody td.c-km,
  #view-checkin .register-table tbody td.c-carb,
  #view-checkout .register-table tbody td.c-carb,
  #view-checkin .register-table tbody td.c-ev,
  #view-checkout .register-table tbody td.c-ev{
    font-size:12.5px!important;
    font-weight:800!important;
  }

  #view-checkin .register-table tbody td.c-plate input,
  #view-checkout .register-table tbody td.c-plate input,
  #view-checkin .register-table tbody td.c-model input,
  #view-checkout .register-table tbody td.c-model input,
  #view-checkin .register-table tbody td.c-km input,
  #view-checkout .register-table tbody td.c-km input,
  #view-checkin .register-table tbody td.c-plate .field-value,
  #view-checkout .register-table tbody td.c-plate .field-value,
  #view-checkin .register-table tbody td.c-model .field-value,
  #view-checkout .register-table tbody td.c-model .field-value,
  #view-checkin .register-table tbody td.c-km .field-value,
  #view-checkout .register-table tbody td.c-km .field-value{
    font-size:13px!important;
    font-weight:800!important;
    letter-spacing:.1px!important;
  }

  /* 3) Larghezze colonne stabilizzate */
  #view-checkin .register-table th:nth-child(3),
  #view-checkin .register-table td.c-plate,
  #view-checkout .register-table th:nth-child(2),
  #view-checkout .register-table td.c-plate{
    width:98px!important;
    min-width:98px!important;
    max-width:98px!important;
  }

  #view-checkin .register-table th:nth-child(4),
  #view-checkin .register-table td.c-model,
  #view-checkout .register-table th:nth-child(3),
  #view-checkout .register-table td.c-model{
    width:112px!important;
    min-width:112px!important;
    max-width:112px!important;
  }

  /* Presa in consegna / riconsegna: colonna più stabile */
  #view-checkin .register-table th.c-status,
  #view-checkout .register-table th.c-status,
  #view-checkin .register-table td.c-status,
  #view-checkout .register-table td.c-status{
    width:104px!important;
    min-width:104px!important;
    max-width:104px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }

  #view-checkin .register-table td.c-status .status,
  #view-checkout .register-table td.c-status .status{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    padding:0 6px!important;
    font-size:10.5px!important;
    font-weight:800!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* 4) Frecce ordine: più vicine, piene, coerenti */
  #view-checkin .at-register-order,
  #view-checkout .at-register-order{
    gap:1px!important;
    margin-left:8px!important;
    vertical-align:middle!important;
  }

  #view-checkin .at-register-order button,
  #view-checkout .at-register-order button{
    width:22px!important;
    min-width:22px!important;
    max-width:22px!important;
    height:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:22px!important;
    font-weight:900!important;
    line-height:20px!important;
    opacity:1!important;
  }

  #view-checkin .at-register-order button.active,
  #view-checkout .at-register-order button.active,
  #view-checkin .at-register-order button:hover,
  #view-checkout .at-register-order button:hover{
    color:#f5c400!important;
    -webkit-text-fill-color:#f5c400!important;
  }

  /* 5) Solo bordo giallo esterno: rimuove il bordo interno di focus */
  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within,
  #view-checkin .register-table tbody tr > td:first-child:focus-within,
  #view-checkout .register-table tbody tr > td:first-child:focus-within,
  #view-checkin .register-table tbody input:focus,
  #view-checkout .register-table tbody input:focus,
  #view-checkin .register-table tbody select:focus,
  #view-checkout .register-table tbody select:focus,
  #view-checkin .register-table tbody button:focus,
  #view-checkout .register-table tbody button:focus{
    box-shadow:none!important;
    outline:none!important;
  }

  #view-checkin .register-table tbody tr > td:first-child::before,
  #view-checkout .register-table tbody tr > td:first-child::before{
    left:-10px!important;
    top:3px!important;
    bottom:3px!important;
    width:6px!important;
    border-radius:999px!important;
    box-shadow:none!important;
  }

  /* 6) Danni check-in: pulizia visiva del placeholder testuale */
  #view-checkin .register-table td.c-damage > button{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    font-size:11px!important;
    font-weight:700!important;
  }

  /* 7) Header più pieno e allineato */
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    padding:6px 5px!important;
    font-size:11.5px!important;
    font-weight:900!important;
    line-height:1.08!important;
    vertical-align:middle!important;
  }
}

/* ========================================================================
   V89G — SOLO 2 FIX GRAFICI DESKTOP
   1) suggerimento scompare al focus, così non si sovrappone al cursore
   2) indicatore giallo verticale solo ESTERNO, bombato
   ======================================================================== */
@media (min-width:901px){

  /* 1) Il suggerimento compare solo in hover; appena clicchi/focalizzi sparisce. */
  #view-checkin .register-table tbody td.c-ra:focus-within::after,
  #view-checkin .register-table tbody td.c-plate:focus-within::after,
  #view-checkout .register-table tbody td.c-plate:focus-within::after,
  #view-checkin .register-table tbody td.c-model:focus-within::after,
  #view-checkout .register-table tbody td.c-model:focus-within::after,
  #view-checkin .register-table tbody td.c-km:focus-within::after,
  #view-checkout .register-table tbody td.c-km:focus-within::after,
  #view-checkin .register-table tbody td.c-notes:focus-within::after,
  #view-checkout .register-table tbody td.c-notes:focus-within::after,
  #view-checkin .register-table tbody td.c-sign:focus-within::after,
  #view-checkout .register-table tbody td.c-sign:focus-within::after{
    content:none!important;
    display:none!important;
  }

  /* Mantiene nascosto il placeholder nativo anche quando il campo è attivo. */
  #view-checkin .register-table tbody input:focus::placeholder,
  #view-checkout .register-table tbody input:focus::placeholder{
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
    opacity:0!important;
  }

  /* 2) Indicatore riga: niente giallo dentro la prima cella. */
  #view-checkin .register-table tbody tr > td:first-child,
  #view-checkout .register-table tbody tr > td:first-child,
  #view-checkin .register-table tbody tr > td:first-child:hover,
  #view-checkout .register-table tbody tr > td:first-child:hover,
  #view-checkin .register-table tbody tr > td:first-child:focus-within,
  #view-checkout .register-table tbody tr > td:first-child:focus-within{
    position:relative!important;
    overflow:visible!important;
    border-left:0!important;
    outline:0!important;
    box-shadow:none!important;
  }

  /* Crea un piccolo spazio FUORI dal bordo tabella per la barretta. */
  #view-checkin .table-wrap,
  #view-checkout .table-wrap{
    padding-left:10px!important;
  }

  #view-checkin .register-table,
  #view-checkout .register-table{
    width:calc(100% - 10px)!important;
  }

  #view-checkin .register-table tbody tr > td:first-child::before,
  #view-checkout .register-table tbody tr > td:first-child::before{
    content:""!important;
    position:absolute!important;
    left:-9px!important;
    top:4px!important;
    bottom:4px!important;
    width:6px!important;
    border-radius:999px!important;
    background:transparent!important;
    box-shadow:none!important;
    pointer-events:none!important;
    z-index:40!important;
  }

  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):not(.cancelled-row):hover > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):not(.cancelled-row):hover > td:first-child::before,
  #view-checkin .register-table tbody tr:not(.cancelled-row-v52):not(.cancelled-row):focus-within > td:first-child::before,
  #view-checkout .register-table tbody tr:not(.cancelled-row-v52):not(.cancelled-row):focus-within > td:first-child::before,
  #view-checkin .register-table tbody tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody tr.personal-empty-row > td:first-child::before{
    background:#F5C400!important;
  }
}

/* ========================================================================
   V89H — SOLO CSS DESKTOP
   1) placeholder unico: resta finché il campo è vuoto, sparisce al 1° carattere
   2) focus giallo segue click + TAB su tutte le celle interattive
   3) Riconsegna/Presa in consegna resa visivamente stabile durante i repaint
   ======================================================================== */
@media (min-width:901px){

  /* ------------------------------------------------------------
     1. UNA SOLA SCRITTA DI SUGGERIMENTO
     Il vecchio ::after resta solo come trattino quando la cella è inattiva.
     Su hover/focus sparisce e si usa SOLO il placeholder nativo dell'input.
     ------------------------------------------------------------ */
  #view-checkin .register-table tbody td.c-ra:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-ra:focus-within:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:hover:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-plate:focus-within:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-plate:focus-within:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:hover:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-model:focus-within:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-model:focus-within:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:hover:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-km:focus-within:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-km:focus-within:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:hover:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:hover:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-notes:focus-within:has(input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-notes:focus-within:has(input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-sign:hover:has(input.signature-id-input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-sign:hover:has(input.signature-id-input:placeholder-shown)::after,
  #view-checkin .register-table tbody td.c-sign:focus-within:has(input.signature-id-input:placeholder-shown)::after,
  #view-checkout .register-table tbody td.c-sign:focus-within:has(input.signature-id-input:placeholder-shown)::after{
    content:none!important;
    display:none!important;
  }

  /* Il placeholder nativo si vede su hover/focus e resta finché non scrivi.
     Appena entra il primo carattere il browser lo nasconde automaticamente. */
  #view-checkin .register-table tbody td:hover input[data-field]:placeholder-shown::placeholder,
  #view-checkout .register-table tbody td:hover input[data-field]:placeholder-shown::placeholder,
  #view-checkin .register-table tbody td:focus-within input[data-field]:placeholder-shown::placeholder,
  #view-checkout .register-table tbody td:focus-within input[data-field]:placeholder-shown::placeholder,
  #view-checkin .register-table tbody td:hover input.signature-id-input:placeholder-shown::placeholder,
  #view-checkout .register-table tbody td:hover input.signature-id-input:placeholder-shown::placeholder,
  #view-checkin .register-table tbody td:focus-within input.signature-id-input:placeholder-shown::placeholder,
  #view-checkout .register-table tbody td:focus-within input.signature-id-input:placeholder-shown::placeholder{
    color:rgba(255,255,255,.82)!important;
    -webkit-text-fill-color:rgba(255,255,255,.82)!important;
    opacity:1!important;
    font-family:inherit!important;
    font-size:11px!important;
    font-weight:700!important;
    text-shadow:none!important;
  }

  /* ------------------------------------------------------------
     2. IL GIALLO ORIZZONTALE SEGUE DAVVERO IL FOCUS
     Vale per input, select, button (Danni, Checklist, ecc.) e quindi anche TAB.
     ------------------------------------------------------------ */
  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within,
  #view-checkin .register-table tbody td:has(input:focus),
  #view-checkout .register-table tbody td:has(input:focus),
  #view-checkin .register-table tbody td:has(select:focus),
  #view-checkout .register-table tbody td:has(select:focus),
  #view-checkin .register-table tbody td:has(button:focus),
  #view-checkout .register-table tbody td:has(button:focus){
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  #view-checkin .register-table tbody td > input:focus,
  #view-checkout .register-table tbody td > input:focus,
  #view-checkin .register-table tbody td > select:focus,
  #view-checkout .register-table tbody td > select:focus,
  #view-checkin .register-table tbody td > button:focus,
  #view-checkout .register-table tbody td > button:focus{
    outline:none!important;
  }

  /* La barretta verticale resta SOLO fuori dalla tabella: mai inset nella prima cella. */
  #view-checkin .register-table tbody tr > td:first-child,
  #view-checkout .register-table tbody tr > td:first-child,
  #view-checkin .register-table tbody tr > td:first-child:hover,
  #view-checkout .register-table tbody tr > td:first-child:hover,
  #view-checkin .register-table tbody tr > td:first-child:focus-within,
  #view-checkout .register-table tbody tr > td:first-child:focus-within{
    border-left:0!important;
    outline:0!important;
  }

  /* Se per qualche vecchia regola la prima cella prende il focus, mantiene solo
     la linea orizzontale inferiore: nessuna barra verticale interna. */
  #view-checkin .register-table tbody tr > td:first-child:focus-within,
  #view-checkout .register-table tbody tr > td:first-child:focus-within{
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  /* ------------------------------------------------------------
     3. RICONSEGNA / PRESA IN CONSEGNA STABILE
     Durante i repaint vecchi wrapper possono inserire per pochi ms uno .status.
     Lo rendiamo graficamente identico allo stato finale, quindi niente box/puntino.
     ------------------------------------------------------------ */
  #view-checkin .register-table tbody td.c-status .status,
  #view-checkout .register-table tbody td.c-status .status{
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:22px!important;
    min-width:22px!important;
    max-width:22px!important;
    height:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
    font-size:0!important;
    overflow:visible!important;
  }

  #view-checkin .register-table tbody td.c-status .status > *,
  #view-checkout .register-table tbody td.c-status .status > *{
    display:none!important;
  }

  /* attesa = trattino */
  #view-checkin .register-table tbody td.c-status .status.pending::before,
  #view-checkout .register-table tbody td.c-status .status.pending::before,
  #view-checkin .register-table tbody td.c-status .status.status-inline-wait::before,
  #view-checkout .register-table tbody td.c-status .status.status-inline-wait::before,
  #view-checkin .register-table tbody td.c-status .status.status-icon-wait::before,
  #view-checkout .register-table tbody td.c-status .status.status-icon-wait::before{
    content:"—"!important;
    display:block!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:22px!important;
  }

  /* completato = spunta semplice, coerente con lo stato finale */
  #view-checkin .register-table tbody td.c-status .status.ok::before,
  #view-checkout .register-table tbody td.c-status .status.ok::before,
  #view-checkin .register-table tbody td.c-status .status.status-inline-done::before,
  #view-checkout .register-table tbody td.c-status .status.status-inline-done::before,
  #view-checkin .register-table tbody td.c-status .status.status-icon-done::before,
  #view-checkout .register-table tbody td.c-status .status.status-icon-done::before,
  #view-checkin .register-table tbody td.c-status .status.status-inline-park::before,
  #view-checkout .register-table tbody td.c-status .status.status-inline-park::before,
  #view-checkin .register-table tbody td.c-status .status.status-icon-park::before,
  #view-checkout .register-table tbody td.c-status .status.status-icon-park::before{
    content:"✓"!important;
    display:block!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-family:inherit!important;
    font-size:14px!important;
    font-weight:900!important;
    line-height:22px!important;
  }

  /* annullato = X */
  #view-checkin .register-table tbody td.c-status .status.bad::before,
  #view-checkout .register-table tbody td.c-status .status.bad::before,
  #view-checkin .register-table tbody td.c-status .status.status-inline-bad::before,
  #view-checkout .register-table tbody td.c-status .status.status-inline-bad::before,
  #view-checkin .register-table tbody td.c-status .status.status-icon-bad::before,
  #view-checkout .register-table tbody td.c-status .status.status-icon-bad::before{
    content:"×"!important;
    display:block!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-family:inherit!important;
    font-size:14px!important;
    font-weight:900!important;
    line-height:22px!important;
  }
}

/* ========================================================================
   V89I — SOLO CSS — MISURE RIGHE FISSE + FOCUS GIALLO UNICO
   Intestazione 58px / righe compilazione 38px
   ======================================================================== */
@media (min-width:901px){
  /* MISURE ASSOLUTE: comanda la riga, non il contenuto */
  #view-checkin .register-table thead tr,
  #view-checkout .register-table thead tr,
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
  }

  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr,
  #view-checkin .register-table tbody tr.personal-empty-row,
  #view-checkout .register-table tbody tr.personal-empty-row,
  #view-checkin .register-table tbody tr.locked-row,
  #view-checkout .register-table tbody tr.locked-row,
  #view-checkin .register-table tbody tr.cancelled-row,
  #view-checkout .register-table tbody tr.cancelled-row,
  #view-checkin .register-table tbody tr.cancelled-row-v52,
  #view-checkout .register-table tbody tr.cancelled-row-v52,
  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
  }

  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    padding-top:0!important;
    padding-bottom:0!important;
    overflow:hidden!important;
    vertical-align:middle!important;
  }

  /* Tutto il contenuto deve stare dentro i 38px */
  #view-checkin .register-table tbody td > *,
  #view-checkout .register-table tbody td > *{
    max-height:34px!important;
    box-sizing:border-box!important;
  }

  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button,
  #view-checkout .register-table tbody button,
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value,
  #view-checkin .register-table tbody .field-lock,
  #view-checkout .register-table tbody .field-lock,
  #view-checkin .register-table tbody .status,
  #view-checkout .register-table tbody .status,
  #view-checkin .register-table tbody .row-add,
  #view-checkout .register-table tbody .row-add,
  #view-checkin .register-table tbody .signature-box,
  #view-checkout .register-table tbody .signature-box{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }

  /* RESET COMPLETO di ogni vecchio giallo interno/duplicato */
  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td,
  #view-checkin .register-table tbody td:hover,
  #view-checkout .register-table tbody td:hover,
  #view-checkin .register-table tbody td:focus,
  #view-checkout .register-table tbody td:focus,
  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within,
  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button,
  #view-checkout .register-table tbody button{
    outline:none!important;
  }

  #view-checkin .register-table tbody td,
  #view-checkout .register-table tbody td{
    box-shadow:none!important;
  }

  /* UNA sola linea gialla: solo la cella che contiene il focus reale */
  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within{
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  /* prima cella: niente linea interna, solo barra esterna */
  #view-checkin .register-table tbody tr > td:first-child:focus-within,
  #view-checkout .register-table tbody tr > td:first-child:focus-within{
    box-shadow:none!important;
  }

  /* UNA sola barra verticale esterna, bombata */
  #view-checkin .register-table tbody tr > td:first-child::before,
  #view-checkout .register-table tbody tr > td:first-child::before{
    content:""!important;
    position:absolute!important;
    left:-11px!important;
    top:4px!important;
    bottom:4px!important;
    width:7px!important;
    border-radius:999px!important;
    background:#F5C400!important;
    box-shadow:none!important;
    opacity:0!important;
    pointer-events:none!important;
    z-index:20!important;
  }

  /* barra esterna solo sulla riga che contiene davvero il focus */
  #view-checkin .register-table tbody tr:focus-within > td:first-child::before,
  #view-checkout .register-table tbody tr:focus-within > td:first-child::before{
    opacity:1!important;
  }

  /* nascondi eventuali vecchie barre/pseudo gialle su riga/cella */
  #view-checkin .register-table tbody tr::before,
  #view-checkout .register-table tbody tr::before,
  #view-checkin .register-table tbody tr::after,
  #view-checkout .register-table tbody tr::after{
    content:none!important;
    display:none!important;
  }
}

/* ========================================================================
   V89J — SOLO CSS — FORZATURA GEOMETRIA REGISTRI
   Header 58px / righe 38px indipendenti dal contenuto.
   ======================================================================== */
@media (min-width:901px){
  /* HEADER: ogni titolo chiuso nel suo riquadro, con linea anche sotto */
  #view-checkin .register-table,
  #view-checkout .register-table{
    border-collapse:separate!important;
    border-spacing:0!important;
    border-top:2px solid rgba(255,255,255,.92)!important;
    border-left:2px solid rgba(255,255,255,.92)!important;
    border-right:2px solid rgba(255,255,255,.92)!important;
    border-bottom:2px solid rgba(255,255,255,.92)!important;
  }

  #view-checkin .register-table thead tr,
  #view-checkout .register-table thead tr{
    height:58px!important;
  }

  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    padding:0 5px!important;
    vertical-align:middle!important;
    border-right:1px solid rgba(255,255,255,.28)!important;
    border-bottom:2px solid rgba(255,255,255,.92)!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  #view-checkin .register-table thead th:first-child,
  #view-checkout .register-table thead th:first-child{
    border-left:0!important;
  }

  /* CORPO: la geometria della riga comanda, sempre 38px */
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr,
  #view-checkin .register-table tbody tr.personal-empty-row,
  #view-checkout .register-table tbody tr.personal-empty-row,
  #view-checkin .register-table tbody tr.locked-row,
  #view-checkout .register-table tbody tr.locked-row,
  #view-checkin .register-table tbody tr.cancelled-row,
  #view-checkout .register-table tbody tr.cancelled-row,
  #view-checkin .register-table tbody tr.cancelled-row-v52,
  #view-checkout .register-table tbody tr.cancelled-row-v52{
    height:38px!important;
  }

  #view-checkin .register-table tbody tr > td,
  #view-checkout .register-table tbody tr > td{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    padding:0 5px!important;
    vertical-align:middle!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    line-height:1!important;
  }

  /* Nessun contenuto può decidere l'altezza della riga */
  #view-checkin .register-table tbody tr > td > *,
  #view-checkout .register-table tbody tr > td > *,
  #view-checkin .register-table tbody .row-add,
  #view-checkout .register-table tbody .row-add,
  #view-checkin .register-table tbody .signature-box,
  #view-checkout .register-table tbody .signature-box,
  #view-checkin .register-table tbody .ev-input-wrap,
  #view-checkout .register-table tbody .ev-input-wrap,
  #view-checkin .register-table tbody .fuel-cell,
  #view-checkout .register-table tbody .fuel-cell{
    min-height:0!important;
    max-height:36px!important;
    box-sizing:border-box!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }

  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button,
  #view-checkout .register-table tbody button,
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value,
  #view-checkin .register-table tbody .field-lock,
  #view-checkout .register-table tbody .field-lock,
  #view-checkin .register-table tbody .row-add,
  #view-checkout .register-table tbody .row-add,
  #view-checkin .register-table tbody .signature-box,
  #view-checkout .register-table tbody .signature-box,
  #view-checkin .register-table tbody .ev-input-wrap,
  #view-checkout .register-table tbody .ev-input-wrap{
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
  }

  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value,
  #view-checkin .register-table tbody .field-lock,
  #view-checkout .register-table tbody .field-lock{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
    overflow:hidden!important;
  }

  #view-checkin .register-table tbody .signature-box,
  #view-checkout .register-table tbody .signature-box{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    gap:0!important;
    overflow:hidden!important;
  }

  #view-checkin .register-table tbody .signature-box .signature-name,
  #view-checkout .register-table tbody .signature-box .signature-name,
  #view-checkin .register-table tbody .signature-box small,
  #view-checkout .register-table tbody .signature-box small{
    margin:0!important;
    padding:0!important;
    max-height:17px!important;
    line-height:1.05!important;
    overflow:hidden!important;
  }

  /* Evita che vecchie regole cambino misura nelle righe firmate/bloccate */
  #view-checkin .register-table tbody tr:has(.signature-box) > td,
  #view-checkout .register-table tbody tr:has(.signature-box) > td,
  #view-checkin .register-table tbody tr:has(.signature-name) > td,
  #view-checkout .register-table tbody tr:has(.signature-name) > td{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
}

/* ========================================================================
   V89K — SOLO CSS — GEOMETRIA HARD + UN SOLO BORDO/FOCUS
   Header 58px / righe 38px REALI, indipendenti dal contenuto.
   ======================================================================== */
@media (min-width:901px){

  /* 1) UN SOLO RIQUADRO BIANCO: il bordo appartiene solo alla tabella. */
  #view-checkin > .panel.table-panel,
  #view-checkout > .panel.table-panel,
  #view-checkin > .panel.table-panel > .table-wrap,
  #view-checkout > .panel.table-panel > .table-wrap{
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
  }

  #view-checkin .register-table,
  #view-checkout .register-table{
    border:2px solid rgba(255,255,255,.92)!important;
    outline:0!important;
    box-shadow:none!important;
    border-collapse:separate!important;
    border-spacing:0!important;
  }

  /* 2) HEADER: 58px netti e linea inferiore unica. */
  #view-checkin .register-table thead tr,
  #view-checkout .register-table thead tr,
  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
  }

  #view-checkin .register-table thead th,
  #view-checkout .register-table thead th{
    padding:0 5px!important;
    line-height:1.08!important;
    vertical-align:middle!important;
    border-top:0!important;
    border-bottom:2px solid rgba(255,255,255,.92)!important;
    border-right:1px solid rgba(255,255,255,.25)!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  #view-checkin .register-table thead th:last-child,
  #view-checkout .register-table thead th:last-child{border-right:0!important;}

  /* 3) RIGHE DATI: 38px. Gli elementi interni vengono tolti dal flusso,
        quindi NON possono più allargare la riga della tabella. */
  #view-checkin .register-table tbody tr,
  #view-checkout .register-table tbody tr,
  #view-checkin .register-table tbody tr.personal-empty-row,
  #view-checkout .register-table tbody tr.personal-empty-row,
  #view-checkin .register-table tbody tr.locked-row,
  #view-checkout .register-table tbody tr.locked-row,
  #view-checkin .register-table tbody tr.cancelled-row,
  #view-checkout .register-table tbody tr.cancelled-row,
  #view-checkin .register-table tbody tr.cancelled-row-v52,
  #view-checkout .register-table tbody tr.cancelled-row-v52{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
  }

  #view-checkin .register-table tbody tr > td,
  #view-checkout .register-table tbody tr > td{
    position:relative!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    padding:0 5px!important;
    line-height:38px!important;
    vertical-align:middle!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  /* Elementi diretti: assoluti dentro i 38px, quindi non partecipano
     al calcolo dell'altezza della riga. */
  #view-checkin .register-table tbody tr > td > *,
  #view-checkout .register-table tbody tr > td > *{
    position:absolute!important;
    top:1px!important;
    right:4px!important;
    bottom:1px!important;
    left:4px!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  /* I contenitori che devono centrare il contenuto mantengono il loro layout. */
  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value,
  #view-checkin .register-table tbody .field-lock,
  #view-checkout .register-table tbody .field-lock,
  #view-checkin .register-table tbody .row-add,
  #view-checkout .register-table tbody .row-add,
  #view-checkin .register-table tbody .signature-box,
  #view-checkout .register-table tbody .signature-box,
  #view-checkin .register-table tbody .status,
  #view-checkout .register-table tbody .status{
    align-items:center!important;
    justify-content:center!important;
  }

  #view-checkin .register-table tbody .field-value,
  #view-checkout .register-table tbody .field-value,
  #view-checkin .register-table tbody .field-lock,
  #view-checkout .register-table tbody .field-lock,
  #view-checkin .register-table tbody .row-add,
  #view-checkout .register-table tbody .row-add{
    display:flex!important;
    line-height:1!important;
  }

  #view-checkin .register-table tbody .signature-box,
  #view-checkout .register-table tbody .signature-box{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    padding:0!important;
    line-height:1!important;
  }

  #view-checkin .register-table tbody .signature-box .signature-name,
  #view-checkout .register-table tbody .signature-box .signature-name,
  #view-checkin .register-table tbody .signature-box small,
  #view-checkout .register-table tbody .signature-box small{
    position:static!important;
    height:auto!important;
    min-height:0!important;
    max-height:17px!important;
    margin:0!important;
    padding:0!important;
    line-height:1.05!important;
    overflow:hidden!important;
  }

  /* input/select/button non hanno più min-height storiche che possano incidere. */
  #view-checkin .register-table tbody input,
  #view-checkout .register-table tbody input,
  #view-checkin .register-table tbody select,
  #view-checkout .register-table tbody select,
  #view-checkin .register-table tbody button,
  #view-checkout .register-table tbody button{
    min-height:0!important;
    max-height:none!important;
    padding-top:0!important;
    padding-bottom:0!important;
    line-height:34px!important;
  }

  /* 4) GIALLO: azzera TUTTE le vecchie barre interne della prima cella,
        comprese le regole più specifiche della personal-empty-row. */
  #view-checkin .register-table tbody tr > td:first-child,
  #view-checkout .register-table tbody tr > td:first-child,
  #view-checkin .register-table tbody tr:hover > td:first-child,
  #view-checkout .register-table tbody tr:hover > td:first-child,
  #view-checkin .register-table tbody tr:focus-within > td:first-child,
  #view-checkout .register-table tbody tr:focus-within > td:first-child,
  #view-checkin .register-table tbody tr.personal-empty-row > td:first-child,
  #view-checkout .register-table tbody tr.personal-empty-row > td:first-child,
  #view-checkin .register-table tbody tr.personal-empty-row:hover > td:first-child,
  #view-checkout .register-table tbody tr.personal-empty-row:hover > td:first-child,
  #view-checkin .register-table tbody tr.personal-empty-row:focus-within > td:first-child,
  #view-checkout .register-table tbody tr.personal-empty-row:focus-within > td:first-child{
    overflow:visible!important;
    border-left:0!important;
    outline:0!important;
    box-shadow:none!important;
  }

  /* Nessun giallo al semplice hover: il focus vero comanda. */
  #view-checkin .register-table tbody td:hover,
  #view-checkout .register-table tbody td:hover{
    box-shadow:none!important;
  }

  /* Una sola linea orizzontale: esclusivamente cella con focus reale. */
  #view-checkin .register-table tbody td:focus-within:not(:first-child),
  #view-checkout .register-table tbody td:focus-within:not(:first-child){
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }

  #view-checkin .register-table tbody input:focus,
  #view-checkout .register-table tbody input:focus,
  #view-checkin .register-table tbody select:focus,
  #view-checkout .register-table tbody select:focus,
  #view-checkin .register-table tbody button:focus,
  #view-checkout .register-table tbody button:focus{
    outline:0!important;
    box-shadow:none!important;
  }

  /* Una sola barretta verticale ESTERNA: solo sulla riga con focus,
     mai su hover. */
  #view-checkin .register-table tbody tr > td:first-child::before,
  #view-checkout .register-table tbody tr > td:first-child::before,
  #view-checkin .register-table tbody tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody tr.personal-empty-row > td:first-child::before{
    content:""!important;
    position:absolute!important;
    left:-11px!important;
    top:4px!important;
    bottom:4px!important;
    width:7px!important;
    border-radius:999px!important;
    background:transparent!important;
    box-shadow:none!important;
    opacity:0!important;
    pointer-events:none!important;
    z-index:50!important;
  }

  #view-checkin .register-table tbody tr:focus-within > td:first-child::before,
  #view-checkout .register-table tbody tr:focus-within > td:first-child::before,
  #view-checkin .register-table tbody tr.personal-empty-row:focus-within > td:first-child::before,
  #view-checkout .register-table tbody tr.personal-empty-row:focus-within > td:first-child::before{
    background:#F5C400!important;
    opacity:1!important;
  }
}

/* ========================================================================
   V89L — SOLO CSS — HOVER SPENTO + DRIVER CHECKOUT GEOMETRIA + DANNI VUOTI
   ======================================================================== */
@media (min-width:901px){

  /* 1) IL GIALLO NON PARTE MAI AL SOLO PASSAGGIO DEL MOUSE.
        Comanda esclusivamente il focus reale ottenuto con click o TAB. */
  #view-checkin .register-table tbody td:hover:not(:focus-within),
  #view-checkout .register-table tbody td:hover:not(:focus-within),
  #view-checkin .register-table tbody tr:hover:not(:focus-within) > td,
  #view-checkout .register-table tbody tr:hover:not(:focus-within) > td{
    box-shadow:none!important;
    outline:0!important;
  }

  #view-checkin .register-table tbody tr:hover:not(:focus-within) > td:first-child::before,
  #view-checkout .register-table tbody tr:hover:not(:focus-within) > td:first-child::before,
  #view-checkin .register-table tbody tr.personal-empty-row:hover:not(:focus-within) > td:first-child::before,
  #view-checkout .register-table tbody tr.personal-empty-row:hover:not(:focus-within) > td:first-child::before{
    background:transparent!important;
    opacity:0!important;
    box-shadow:none!important;
  }

  /* Il sottolineato compare solo sulla cella che contiene DAVVERO il focus. */
  #view-checkin .register-table tbody td:focus-within,
  #view-checkout .register-table tbody td:focus-within{
    box-shadow:inset 0 -3px 0 #F5C400!important;
  }
  #view-checkin .register-table tbody td:first-child:focus-within,
  #view-checkout .register-table tbody td:first-child:focus-within{
    box-shadow:none!important;
  }

  /* Una sola barra verticale esterna, solo riga col focus reale. */
  #view-checkin .register-table tbody tr > td:first-child::before,
  #view-checkout .register-table tbody tr > td:first-child::before,
  #view-checkin .register-table tbody tr.personal-empty-row > td:first-child::before,
  #view-checkout .register-table tbody tr.personal-empty-row > td:first-child::before{
    left:-11px!important;
    top:4px!important;
    bottom:4px!important;
    width:7px!important;
    border-radius:999px!important;
    background:transparent!important;
    opacity:0!important;
    box-shadow:none!important;
  }
  #view-checkin .register-table tbody tr:focus-within > td:first-child::before,
  #view-checkout .register-table tbody tr:focus-within > td:first-child::before{
    background:#F5C400!important;
    opacity:1!important;
  }

  /* 2) CHECK-OUT EDITABILE (driver/fornitore): stessa geometria del read-only.
        Nessun input/select/button può cambiare i 38 px della riga. */
  #view-checkout .register-table tbody tr,
  #view-checkout .register-table tbody tr.personal-empty-row,
  #view-checkout .register-table tbody tr.locked-row,
  #view-checkout .register-table tbody tr.cancelled-row,
  #view-checkout .register-table tbody tr.cancelled-row-v52,
  #view-checkout .register-table tbody tr > td{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
  }

  #view-checkout .register-table tbody tr > td > input,
  #view-checkout .register-table tbody tr > td > select,
  #view-checkout .register-table tbody tr > td > button,
  #view-checkout .register-table tbody tr > td > .ev-input-wrap,
  #view-checkout .register-table tbody tr > td > .signature-box,
  #view-checkout .register-table tbody tr > td > .field-value,
  #view-checkout .register-table tbody tr > td > .field-lock,
  #view-checkout .register-table tbody tr > td > .status,
  #view-checkout .register-table tbody tr > td > .row-add{
    position:absolute!important;
    top:1px!important;
    bottom:1px!important;
    left:4px!important;
    right:4px!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  /* 3) DANNI VUOTI: niente parola "Danni"; piccolo puntino. */
  #view-checkin .register-table td.c-damage .damage-cell-empty,
  #view-checkout .register-table td.c-damage .damage-cell-empty{
    font-size:0!important;
    color:transparent!important;
  }
  #view-checkin .register-table td.c-damage .damage-cell-empty::before,
  #view-checkout .register-table td.c-damage .damage-cell-empty::before{
    content:"•"!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1!important;
  }

  /* Nessun suggerimento danni al solo hover. */
  #view-checkin .register-table td.c-damage:hover .damage-cell-empty::before,
  #view-checkout .register-table td.c-damage:hover .damage-cell-empty::before{
    content:"•"!important;
  }
}

/* ========================================================================
   V89O — SOLO CSS — FIRME CHECK-OUT PIU' ARIA TRA NOME E DATA
   ======================================================================== */
@media (min-width:901px){
  /* Solo Check-out, in entrambe le viste/ruoli: nome leggermente più su,
     più respiro prima della data e data appena più grande. */
  #view-checkout .register-table tbody td.c-sign .signature-box{
    justify-content:center!important;
    align-items:center!important;
    gap:2px!important;
    padding:0 0 1px!important;
    transform:translateY(-1px)!important;
  }

  #view-checkout .register-table tbody td.c-sign .signature-box .signature-name{
    margin:0!important;
    padding:0!important;
    line-height:1!important;
  }

  #view-checkout .register-table tbody td.c-sign .signature-box small{
    margin:0!important;
    padding:0!important;
    font-size:9.5px!important;
    line-height:1!important;
    font-weight:700!important;
  }
}


/* ================= AutoTrace V89P — rifiniture checkout ================= */
#view-checkout .register-table tbody td.c-sign .signature-box{
  gap:5px !important;
  min-height:42px !important;
  padding-top:4px !important;
  padding-bottom:4px !important;
  align-content:center !important;
  justify-items:center !important;
}
#view-checkout .register-table tbody td.c-sign .signature-name{
  color:#ffffff !important;
  line-height:1.02 !important;
  margin:0 !important;
}
#view-checkout .register-table tbody td.c-sign .signature-box small{
  color:#dbe8eb !important;
  font-size:11px !important;
  line-height:1.05 !important;
  margin:0 !important;
}

#view-checkin .register-table tbody td.c-status,
#view-checkout .register-table tbody td.c-status,
#view-checkin .register-table tbody td.c-actions,
#view-checkout .register-table tbody td.c-actions{
  height:38px !important;
  min-height:38px !important;
  max-height:38px !important;
  vertical-align:middle !important;
}
#view-checkin .register-table tbody td.c-status > *,
#view-checkout .register-table tbody td.c-status > *,
#view-checkin .register-table tbody td.c-actions > *,
#view-checkout .register-table tbody td.c-actions > *{
  margin:0 auto !important;
  transform:none !important;
  transition:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
}

#view-checkin .c-damage .transparent-cell-action,
#view-checkout .c-damage .transparent-cell-action,
#view-checkout .c-check .transparent-cell-action,
#view-checkin .c-damage .transparent-cell-action[disabled],
#view-checkout .c-damage .transparent-cell-action[disabled],
#view-checkout .c-check .transparent-cell-action[disabled]{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}
#view-checkin .c-damage .damage-cell-empty,
#view-checkout .c-damage .damage-cell-empty{
  color:#ffffff !important;
}
.atr-dash,
.atr-dash-btn,
.atr-dash-btn[disabled]{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}
.atr-dash{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:14px !important;
  font-size:17px !important;
  font-weight:700 !important;
  line-height:1 !important;
}
.atr-dash-btn{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

#view-checkout .register-table tbody td.c-check{
  text-align:center !important;
}
.checklist-status-check{
  width:100% !important;
  min-height:36px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  margin:0 auto !important;
  cursor:pointer !important;
}
.checklist-status-check .atr-checkmark{
  color:#f5c400 !important;
  font-size:17px !important;
  line-height:1 !important;
  font-weight:900 !important;
}


/* ================= AutoTrace V89S — uniformità caratteri e danni ================= */
@media (min-width:901px){
  /* Stessa dimensione, peso e linea per KM / CARB / EV / TARGA / MODELLO */
  #view-checkin .register-table tbody td.c-plate,
  #view-checkin .register-table tbody td.c-model,
  #view-checkin .register-table tbody td.c-km,
  #view-checkin .register-table tbody td.c-carb,
  #view-checkin .register-table tbody td.c-ev,
  #view-checkout .register-table tbody td.c-plate,
  #view-checkout .register-table tbody td.c-model,
  #view-checkout .register-table tbody td.c-km,
  #view-checkout .register-table tbody td.c-carb,
  #view-checkout .register-table tbody td.c-ev,
  #view-checkin .register-table tbody td.c-plate input,
  #view-checkin .register-table tbody td.c-model input,
  #view-checkin .register-table tbody td.c-km input,
  #view-checkin .register-table tbody td.c-carb select,
  #view-checkin .register-table tbody td.c-ev input,
  #view-checkout .register-table tbody td.c-plate input,
  #view-checkout .register-table tbody td.c-model input,
  #view-checkout .register-table tbody td.c-km input,
  #view-checkout .register-table tbody td.c-carb select,
  #view-checkout .register-table tbody td.c-ev input,
  #view-checkin .register-table tbody td.c-plate .field-value,
  #view-checkin .register-table tbody td.c-model .field-value,
  #view-checkin .register-table tbody td.c-km .field-value,
  #view-checkin .register-table tbody td.c-carb .field-value,
  #view-checkin .register-table tbody td.c-ev .field-value,
  #view-checkout .register-table tbody td.c-plate .field-value,
  #view-checkout .register-table tbody td.c-model .field-value,
  #view-checkout .register-table tbody td.c-km .field-value,
  #view-checkout .register-table tbody td.c-carb .field-value,
  #view-checkout .register-table tbody td.c-ev .field-value{
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:800!important;
    letter-spacing:0!important;
    line-height:1!important;
  }

  /* EV percentuale allineata allo stesso carattere */
  #view-checkin .register-table tbody .ev-input-wrap,
  #view-checkout .register-table tbody .ev-input-wrap{
    font-size:13px!important;
    font-weight:800!important;
    line-height:1!important;
  }
  #view-checkin .register-table tbody .ev-input-wrap > span,
  #view-checkout .register-table tbody .ev-input-wrap > span{
    font-size:13px!important;
    font-weight:800!important;
    line-height:1!important;
  }

  /* Danni: 1 centrato; 2 su due righe; oltre 2 +N semplice senza badge */
  #view-checkin .register-table tbody td.c-damage,
  #view-checkout .register-table tbody td.c-damage{
    text-align:center!important;
    vertical-align:middle!important;
  }
  #view-checkin .register-table tbody td.c-damage > button,
  #view-checkout .register-table tbody td.c-damage > button{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    padding:0 4px!important;
    margin:0!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }
  .damage-v89s-wrap{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    width:100%!important;
    color:#fff!important;
  }
  .damage-v89s-lines{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:1px!important;
    min-width:0!important;
  }
  .damage-v89s-lines > span{
    display:block!important;
    color:#fff!important;
    font-size:11.5px!important;
    font-weight:800!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }
  .damage-v89s-extra{
    display:inline!important;
    min-width:0!important;
    width:auto!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#fff!important;
    font-size:11.5px!important;
    font-weight:800!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  .damage-v89s-empty{
    color:#fff!important;
    font-size:15px!important;
    font-weight:700!important;
    line-height:1!important;
  }

  /* C Azioni con lo stesso spessore dei valori principali */
  #view-checkin .register-table tbody td.c-actions,
  #view-checkout .register-table tbody td.c-actions,
  #view-checkin .register-table tbody td.c-actions button,
  #view-checkout .register-table tbody td.c-actions button,
  #view-checkin .register-table tbody td.c-actions button::before,
  #view-checkout .register-table tbody td.c-actions button::before{
    font-family:inherit!important;
    font-weight:900!important;
  }
  #view-checkin .register-table tbody td.c-actions button::before,
  #view-checkout .register-table tbody td.c-actions button::before{
    font-size:13px!important;
  }
}

/* ================= AutoTrace V89T — allineamento fisso danni desktop =================
   SOLO CSS. Stessa geometria Danni in Check-in/Check-out e per tutti i ruoli.
   I primi due danni restano sempre centrati nello stesso punto; +N ha posizione fissa a destra. */
@media (min-width:901px){
  #view-checkin .register-table tbody td.c-damage,
  #view-checkout .register-table tbody td.c-damage{
    position:relative!important;
    text-align:center!important;
    vertical-align:middle!important;
  }

  #view-checkin .register-table tbody td.c-damage > button,
  #view-checkout .register-table tbody td.c-damage > button{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
  }

  /* Punto fisso: il blocco dei danni è sempre centrato nella cella. */
  #view-checkin .damage-v89s-wrap,
  #view-checkout .damage-v89s-wrap{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    gap:0!important;
    padding:0 25px 0 3px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  #view-checkin .damage-v89s-lines,
  #view-checkout .damage-v89s-lines{
    position:relative!important;
    left:11px!important; /* compensa lo spazio riservato a +N: centro visivo reale della cella */
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    max-width:100%!important;
    gap:1px!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
  }

  #view-checkin .damage-v89s-lines > span,
  #view-checkout .damage-v89s-lines > span{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  /* +N non partecipa al centraggio: resta SEMPRE nello stesso punto a destra. */
  #view-checkin .damage-v89s-extra,
  #view-checkout .damage-v89s-extra{
    position:absolute!important;
    right:3px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    display:block!important;
    width:22px!important;
    min-width:22px!important;
    max-width:22px!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    white-space:nowrap!important;
  }

  /* Un singolo danno resta esattamente sulla stessa asse centrale. */
  #view-checkin .damage-v89s-lines > span:only-child,
  #view-checkout .damage-v89s-lines > span:only-child{
    line-height:1!important;
  }
}


/* ================= AutoTrace V89V — baffo checklist giallo ================= */
#view-checkout .register-table tbody td.c-check button.checklist-v89v-done{
  color:#f5c400 !important;
  -webkit-text-fill-color:#f5c400 !important;
  font-size:17px !important;
  font-weight:900 !important;
  line-height:1 !important;
  text-align:center !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  opacity:1 !important;
}


/* ================= AutoTrace V89W — RA/NRM + CARB uniformi, checklist centrata ================= */
@media (min-width:901px){
  /* RA/NRM: stesso font/peso/dimensione dei valori principali. */
  #view-checkin .register-table tbody td.c-ra,
  #view-checkin .register-table tbody td.c-ra input,
  #view-checkin .register-table tbody td.c-ra .field-value{
    font-family:Inter,Segoe UI,Arial,sans-serif!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1!important;
    color:#fff!important;
    text-align:center!important;
    vertical-align:middle!important;
  }

  /* Carburante: stesso corpo, peso e centratura di Targa/Modello/KM in entrambe le viste. */
  #view-checkin .register-table tbody td.c-carb,
  #view-checkout .register-table tbody td.c-carb,
  #view-checkin .register-table tbody td.c-carb input,
  #view-checkout .register-table tbody td.c-carb input,
  #view-checkin .register-table tbody td.c-carb select,
  #view-checkout .register-table tbody td.c-carb select,
  #view-checkin .register-table tbody td.c-carb .field-value,
  #view-checkout .register-table tbody td.c-carb .field-value{
    font-family:Inter,Segoe UI,Arial,sans-serif!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1!important;
    color:#fff!important;
    text-align:center!important;
    vertical-align:middle!important;
  }
  #view-checkin .register-table tbody td.c-carb > *,
  #view-checkout .register-table tbody td.c-carb > *{
    align-items:center!important;
    justify-content:center!important;
  }

  /* Checklist pronta: una SOLA spunta gialla, perfettamente centrata. */
  #view-checkout .register-table tbody td.c-check.checklist-v89w-ready{
    position:relative!important;
    text-align:center!important;
    vertical-align:middle!important;
  }
  #view-checkout .register-table tbody td.c-check.checklist-v89w-ready > *{
    visibility:hidden!important;
  }
  #view-checkout .register-table tbody td.c-check.checklist-v89w-ready::before,
  #view-checkout .register-table tbody td.c-check.checklist-v89w-ready::after{
    content:none!important;
    display:none!important;
  }
  #view-checkout .register-table tbody td.c-check.checklist-v89w-ready{
    color:transparent!important;
  }
  #view-checkout .register-table tbody td.c-check.checklist-v89w-ready > button{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    visibility:visible!important;
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
    opacity:1!important;
    z-index:2!important;
  }
  #view-checkout .register-table tbody td.c-check.checklist-v89w-ready > button::before{
    content:"✓"!important;
    display:flex!important;
    position:absolute!important;
    inset:0!important;
    align-items:center!important;
    justify-content:center!important;
    color:#f5c400!important;
    -webkit-text-fill-color:#f5c400!important;
    font-size:17px!important;
    font-weight:900!important;
    line-height:1!important;
  }
  #view-checkout .register-table tbody td.c-check.checklist-v89w-ready > button::after{
    content:none!important;
    display:none!important;
  }
}


/* ================= AutoTrace V89X — stabilità visuale / annullati consultabili ================= */

/* Checklist: un solo baffo, centrato; nessun trattino/testo sotto.
   Classe applicata sincronicamente dal renderer V89X. */
#view-checkout .register-table tbody td.c-check.checklist-v89x-ready{
  position:relative!important;
  text-align:center!important;
  vertical-align:middle!important;
  color:transparent!important;
}
#view-checkout .register-table tbody td.c-check.checklist-v89x-ready > *{
  visibility:hidden!important;
}
#view-checkout .register-table tbody td.c-check.checklist-v89x-ready > button{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  visibility:visible!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  opacity:1!important;
  z-index:2!important;
}
#view-checkout .register-table tbody td.c-check.checklist-v89x-ready > button::before{
  content:"✓"!important;
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#f5c400!important;
  -webkit-text-fill-color:#f5c400!important;
  font-size:17px!important;
  font-weight:900!important;
  line-height:1!important;
  text-decoration:none!important;
}
#view-checkout .register-table tbody td.c-check.checklist-v89x-ready > button::after{
  content:none!important;
  display:none!important;
}

/* INFO degli annullati: sempre consultabile anche dentro righe bloccate. */
.cancelled-row-v52 .v52-info-cancel,
.cancelled-row-v52 .v89x-history-info,
.history-register .cancelled-row-v52 .v89x-history-info{
  pointer-events:auto!important;
  opacity:1!important;
  cursor:pointer!important;
}

/* Storico targa: annullato evidente con linea rossa continua, ma contenuto leggibile. */
#archiveResults .archive-register-card.archive-cancelled-v89x{
  position:relative!important;
  border-left:4px solid #d32f2f!important;
}
#archiveResults .archive-register-card.archive-cancelled-v89x .archive-meta{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
#archiveResults .archive-register-card.archive-cancelled-v89x .archive-meta h3{
  margin-right:auto!important;
}
#archiveResults .archive-register-card.archive-cancelled-v89x tbody tr.archive-cancelled-row-v89x > td{
  box-shadow:inset 0 -3px 0 #d32f2f!important;
}
#archiveResults .v89x-archive-info{
  flex:0 0 auto!important;
  pointer-events:auto!important;
  opacity:1!important;
  cursor:pointer!important;
}


/* ================= AutoTrace V89Y — storico targa annullato tutto rosso ================= */

/* La card rimane leggibile, ma la RIGA DATI annullata è interamente rossa. */
#archiveResults .archive-register-card.archive-cancelled-v89y{
  border:1px solid rgba(211,47,47,.55)!important;
  border-left:4px solid #d32f2f!important;
}

#archiveResults .archive-register-card.archive-cancelled-v89y tbody tr.archive-cancelled-row-v89y > td{
  background:#d32f2f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:rgba(255,255,255,.32)!important;
  box-shadow:none!important;
}

/* Tutto ciò che è dentro la riga rossa deve restare leggibile. */
#archiveResults .archive-register-card.archive-cancelled-v89y tbody tr.archive-cancelled-row-v89y > td *,
#archiveResults .archive-register-card.archive-cancelled-v89y tbody tr.archive-cancelled-row-v89y .field-value,
#archiveResults .archive-register-card.archive-cancelled-v89y tbody tr.archive-cancelled-row-v89y .muted,
#archiveResults .archive-register-card.archive-cancelled-v89y tbody tr.archive-cancelled-row-v89y small,
#archiveResults .archive-register-card.archive-cancelled-v89y tbody tr.archive-cancelled-row-v89y .signature-name{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* La X di annullato resta bianca sulla riga rossa. */
#archiveResults .archive-register-card.archive-cancelled-v89y .movement-cancelled{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* INFO sempre evidente e cliccabile nella testata della scheda. */
#archiveResults .archive-register-card.archive-cancelled-v89y .v89y-archive-info{
  flex:0 0 auto!important;
  min-width:62px!important;
  height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px!important;
  border:1px solid #d32f2f!important;
  background:#d32f2f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  border-radius:4px!important;
  opacity:1!important;
  pointer-events:auto!important;
  cursor:pointer!important;
}

/* Annulla la vecchia sola linea rossa V89X nella riga dello storico. */
#archiveResults .archive-register-card.archive-cancelled-v89y tbody tr.archive-cancelled-row-v89y > td{
  box-shadow:none!important;
}


/* ================= AutoTrace V89Z — storico annullati cliccabili ================= */
#archiveResults tr.v89z-clickable-cancelled{
  cursor:pointer!important;
  pointer-events:auto!important;
}
#archiveResults tr.v89z-clickable-cancelled > td,
#archiveResults tr.v89z-clickable-cancelled > td *{
  pointer-events:auto!important;
}
#archiveResults .archive-register-card[data-v89z-consultable="1"] .v89y-archive-info,
#archiveResults .archive-register-card[data-v89z-consultable="1"] .v89x-archive-info{
  pointer-events:auto!important;
  cursor:pointer!important;
  opacity:1!important;
}


/* ================= AutoTrace V89ZA — SOLO CSS: HOME + LOGO REGISTRI DESKTOP =================
   Perimetro richiesto:
   - solo desktop;
   - homepage/login: verde uniforme + pulsante Entra non celeste;
   - registri check-in/check-out: logo nuovo già presente nell'asset, reso più grande/leggibile;
   - nessuna modifica a HTML, JS, API, sync, firme, permessi o mobile.
*/
@media (min-width:901px){

  /* HOME / LOGIN — verde uniforme, niente effetto celeste */
  #loginView.login-shell{
    background:#011D0E!important;
    background-color:#011D0E!important;
    background-image:none!important;
  }

  #loginView .login-card{
    background:#06271A!important;
    background-color:#06271A!important;
    background-image:none!important;
    border:1px solid rgba(255,255,255,.34)!important;
    box-shadow:0 24px 70px rgba(0,0,0,.48)!important;
  }

  /* Logo login: usa l'asset nuovo già presente e mantiene leggibile il payoff integrato */
  #loginView .login-logo{
    display:block!important;
    width:min(410px,100%)!important;
    max-width:410px!important;
    height:164px!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0 auto 12px!important;
    transform:none!important;
    clip-path:none!important;
    filter:drop-shadow(0 6px 16px rgba(0,0,0,.28))!important;
  }

  /* Bottone ENTRA: bianco con richiamo giallo, niente celeste */
  #loginView #loginBtn.btn.primary{
    background:#FFFFFF!important;
    background-color:#FFFFFF!important;
    background-image:none!important;
    color:#07150F!important;
    -webkit-text-fill-color:#07150F!important;
    border:2px solid #F5C400!important;
    box-shadow:none!important;
  }
  #loginView #loginBtn.btn.primary:hover{
    background:#FFFBEA!important;
    background-color:#FFFBEA!important;
  }
  #loginView #loginBtn .login-spinner{
    border-color:rgba(7,21,15,.28)!important;
    border-top-color:#07150F!important;
  }

  /* LOGO INTERNO REGISTRI DESKTOP — uguale per Check-in e Check-out, tutti i ruoli */
  body.g90-register-page .sidebar-brand-only,
  #view-checkin ~ * .sidebar-brand-only,
  #view-checkout ~ * .sidebar-brand-only,
  .sidebar .sidebar-brand-only{
    min-height:150px!important;
    height:150px!important;
    padding:4px 4px 8px!important;
    margin-bottom:10px!important;
    overflow:visible!important;
    background:transparent!important;
  }

  body.g90-register-page .sidebar-brand-only .sidebar-brand-logo,
  .sidebar .sidebar-brand-only .sidebar-brand-logo{
    display:block!important;
    width:100%!important;
    max-width:238px!important;
    height:138px!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center center!important;
    transform:none!important;
    clip-path:none!important;
    opacity:1!important;
    filter:drop-shadow(0 5px 14px rgba(0,0,0,.30))!important;
  }

  /* Nessun payoff duplicato fuori dal PNG: quello corretto è già dentro il nuovo logo */
  .sidebar .brand-payoff,
  #loginView .brand-payoff{
    display:none!important;
  }
}


/* ================= AutoTrace V89ZB — SOLO CSS: HOME + LOGO REGISTRI DESKTOP (refine) =================
   Perimetro richiesto:
   - solo desktop;
   - login: tasti bianchi senza bordi, labels bianche, bordo card bianco pieno;
   - registri desktop: logo interno più grande e payoff ben leggibile;
   - nessuna modifica a HTML/JS/API/mobile/logica.
*/
@media (min-width:901px){

  /* LOGIN / HOME */
  #loginView.login-shell{
    background:#011D0E!important;
    background-color:#011D0E!important;
    background-image:none!important;
  }

  #loginView .login-card{
    width:min(470px,95vw)!important;
    background:#06271A!important;
    background-color:#06271A!important;
    background-image:none!important;
    border:2px solid #FFFFFF!important;
    box-shadow:0 24px 70px rgba(0,0,0,.48)!important;
  }

  #loginView .login-card label,
  #loginView .login-card label span,
  #loginView .login-card label strong,
  #loginView .login-card label small{
    color:#FFFFFF!important;
  }

  #loginView .login-logo{
    display:block!important;
    width:min(430px,100%)!important;
    max-width:430px!important;
    height:176px!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:-2px auto 10px!important;
    transform:none!important;
    clip-path:none!important;
    image-rendering:auto!important;
    filter:drop-shadow(0 6px 16px rgba(0,0,0,.28))!important;
  }

  #loginView #loginBtn.btn.primary{
    background:#FFFFFF!important;
    background-color:#FFFFFF!important;
    background-image:none!important;
    color:#07150F!important;
    -webkit-text-fill-color:#07150F!important;
    border:none!important;
    outline:none!important;
    box-shadow:none!important;
  }
  #loginView #loginBtn.btn.primary:hover,
  #loginView #loginBtn.btn.primary:focus,
  #loginView #loginBtn.btn.primary:active{
    background:#FFFFFF!important;
    background-color:#FFFFFF!important;
    border:none!important;
    box-shadow:none!important;
    outline:none!important;
  }
  #loginView #loginBtn .login-spinner{
    border-color:rgba(7,21,15,.28)!important;
    border-top-color:#07150F!important;
  }

  /* REGISTRI DESKTOP — più spazio laterale per far leggere anche il payoff */
  .app{
    grid-template-columns:290px minmax(0,1fr)!important;
  }
  .sidebar{
    padding:20px 18px!important;
  }

  body.g90-register-page .sidebar-brand-only,
  .sidebar .sidebar-brand-only{
    min-height:188px!important;
    height:188px!important;
    padding:8px 8px 10px!important;
    margin-bottom:14px!important;
    overflow:visible!important;
    background:transparent!important;
  }

  body.g90-register-page .sidebar-brand-only .sidebar-brand-logo,
  .sidebar .sidebar-brand-only .sidebar-brand-logo{
    display:block!important;
    width:100%!important;
    max-width:272px!important;
    height:168px!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center center!important;
    transform:none!important;
    clip-path:none!important;
    opacity:1!important;
    image-rendering:auto!important;
    filter:drop-shadow(0 5px 14px rgba(0,0,0,.30))!important;
  }

  .topbar .brand-logo{
    width:220px!important;
    height:118px!important;
    object-fit:contain!important;
    object-position:center center!important;
  }

  /* Nessun payoff esterno duplicato */
  .sidebar .brand-payoff,
  #loginView .brand-payoff{
    display:none!important;
  }
}


/* ================= AutoTrace V89ZC — SOLO CSS: payoff logo sidebar più leggibile =================
   Richiesta: all'interno dei registri desktop, rendere più leggibile il payoff
   "MANAGE. PROTECT. TRACK." aumentando la presenza visiva del logo laterale.
   Nessuna modifica a HTML/JS/logica/mobile.
*/
@media (min-width:901px){
  .app{
    grid-template-columns:330px minmax(0,1fr)!important;
  }
  .sidebar{
    padding:20px 18px!important;
  }
  body.g90-register-page .sidebar-brand-only,
  .sidebar .sidebar-brand-only{
    min-height:210px!important;
    height:210px!important;
    padding:10px 8px 12px!important;
    margin-bottom:16px!important;
    overflow:visible!important;
  }
  body.g90-register-page .sidebar-brand-only .sidebar-brand-logo,
  .sidebar .sidebar-brand-only .sidebar-brand-logo{
    width:100%!important;
    max-width:305px!important;
    height:192px!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center center!important;
    transform:none!important;
    clip-path:none!important;
    filter:drop-shadow(0 6px 16px rgba(0,0,0,.30))!important;
  }
}


/* ===== AutoTrace V89ZE — SOLO CSS/ASSETS: logo pulito, payoff leggibile, icone check-in/out bianche ===== */
.login-card{
  border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:0 22px 60px rgba(0,0,0,.34)!important;
}
.login-card label{
  color:#ffffff!important;
  font-weight:800!important;
}
.login-card input{
  background:#ffffff!important;
  color:#4f5560!important;
  border:0!important;
  box-shadow:none!important;
}
.login-card input::placeholder{color:#89939c!important}
#loginBtn{
  background:#ffffff!important;
  color:#273238!important;
  border:0!important;
  box-shadow:none!important;
}
#loginBtn:hover{filter:brightness(.98)!important}

.login-logo,
.sidebar-brand-only .sidebar-brand-logo,
.brand-logo{
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}

/* Login: logo pulito con payoff più leggibile */
.login-logo{
  width:320px!important;
  height:110px!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0 auto 8px!important;
}

/* Sidebar: logo più piccolo, senza macchie o fondi finti */
.sidebar-brand-only{
  position:relative!important;
  background:transparent!important;
  overflow:visible!important;
  height:120px!important;
  min-height:120px!important;
  padding:8px 8px 6px!important;
}
.sidebar-brand-only::before,
.sidebar-brand-only::after{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}
.sidebar-brand-only .sidebar-brand-logo{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:92px!important;
  object-fit:contain!important;
  object-position:center top!important;
  margin:0 auto!important;
}

/* Header interno registri */
.topbar .brand-logo{
  width:210px!important;
  height:74px!important;
  object-fit:contain!important;
  object-position:center center!important;
}

/* Tutte le icone sidebar bianche */
.sidebar .nav-btn .nav-icon,
.sidebar-bottom .nav-icon{
  color:#ffffff!important;
  opacity:1!important;
}
.sidebar .nav-btn .nav-icon svg,
.sidebar-bottom .nav-icon svg{
  stroke:currentColor!important;
  fill:none!important;
}

/* Check-in / check-out con libro aperto e freccia laterale */
.sidebar .nav-btn[data-view="checkin"] .nav-icon,
.sidebar .nav-btn[data-view="checkout"] .nav-icon{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  flex:0 0 24px!important;
  display:inline-block!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:contain!important;
}
.sidebar .nav-btn[data-view="checkin"] .nav-icon > *,
.sidebar .nav-btn[data-view="checkout"] .nav-icon > *{
  display:none!important;
}
.sidebar .nav-btn[data-view="checkin"] .nav-icon{
  background-image:url("nav-checkin-book-white.png")!important;
}
.sidebar .nav-btn[data-view="checkout"] .nav-icon{
  background-image:url("nav-checkout-book-white.png")!important;
}

/* Pulsanti menu leggibili */
.sidebar .nav-btn{
  color:#ffffff!important;
}
.sidebar .nav-btn.active,
.sidebar .nav-btn:hover{
  color:#ffffff!important;
}

/* Solo desktop: non alterare mobile */
@media (max-width: 900px){
  .login-logo{width:270px!important;height:96px!important}
  .topbar .brand-logo{width:180px!important;height:66px!important}
}


/* ======================================================================
   AutoTrace V89ZF — SOLO CSS GRAFICO DESKTOP
   Sidebar Europcar + watermark E + firma Technology by AutoTrace
   Nessuna modifica a HTML, JavaScript, API, chiamate, regole o logica.
   ====================================================================== */
@media (min-width:901px){
  .sidebar{position:sticky!important;top:0!important;isolation:isolate!important;overflow:hidden!important;background:#00572f!important;background-image:linear-gradient(180deg,#00572f 0%,#004c2b 100%)!important;border-right:1px solid rgba(255,255,255,.22)!important}
  .sidebar-brand-only{position:relative!important;z-index:3!important;height:124px!important;min-height:124px!important;margin:0 0 18px!important;padding:14px 10px 12px!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .sidebar-brand-only .sidebar-brand-logo{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
  .sidebar-brand-only::before{content:"Europcar"!important;display:block!important;position:absolute!important;left:18px!important;top:18px!important;z-index:4!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-family:Arial,Helvetica,sans-serif!important;font-size:34px!important;line-height:1!important;font-weight:900!important;font-style:italic!important;letter-spacing:-1.7px!important;text-shadow:none!important;background:transparent!important}
  .sidebar-brand-only::after{content:""!important;display:block!important;position:absolute!important;left:16px!important;top:66px!important;width:210px!important;height:5px!important;border-radius:999px!important;background:#ffd800!important;transform:skewX(-18deg)!important;transform-origin:left center!important;box-shadow:none!important}
  
  
  .sidebar nav,.sidebar .sidebar-bottom{position:relative!important;z-index:3!important}
  .sidebar .nav-btn,.sidebar .nav-btn .nav-label,.sidebar .nav-btn .nav-icon,.sidebar-bottom,.sidebar-bottom .nav-icon{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
  .sidebar .nav-btn .nav-icon svg,.sidebar-bottom .nav-icon svg{color:#fff!important;stroke:#fff!important}
  .sidebar .nav-btn.active,.sidebar .nav-btn[aria-current="page"]{background:rgba(255,255,255,.075)!important;color:#fff!important;box-shadow:inset 4px 0 0 #ffd800!important;border-color:transparent!important}
  .sidebar-bottom{padding-bottom:82px!important}
  
  
  #logoutBtn{margin-bottom:0!important}
}


/* ======================================================================
   AutoTrace V89ZG — SOLO CSS/ASSET GRAFICI DESKTOP
   Correzioni richieste: brand Europcar, verde identico al registro,
   watermark E fuori dal menu, AutoTrace completo e payoff centrato,
   login senza scudetto tagliato. Nessuna logica toccata.
   ====================================================================== */
@media (min-width:901px){
  /* Il verde laterale è esattamente quello base dei registri */
  .sidebar{
    background:#011D0E!important;
    background-color:#011D0E!important;
    background-image:none!important;
    border-right:1px solid rgba(255,255,255,.28)!important;
    overflow:hidden!important;
    isolation:isolate!important;
  }

  /* Europcar corretto, con baffo/swoosh giallo integrato nell'asset */
  .sidebar-brand-only{
    position:relative!important;
    z-index:5!important;
    height:104px!important;
    min-height:104px!important;
    margin:0 0 4px!important;
    padding:4px 12px 4px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .sidebar-brand-only .sidebar-brand-logo{
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  .sidebar-brand-only::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:18px!important;
    top:14px!important;
    width:236px!important;
    height:72px!important;
    background-image:url("europcar-logo-yellow-transparent.png")!important;
    background-repeat:no-repeat!important;
    background-size:contain!important;
    background-position:left center!important;
    z-index:6!important;
  }
  .sidebar-brand-only::after{content:none!important;display:none!important}

  /* Menu leggermente più in alto: parte dal primo rigo utile sotto Europcar */
  .sidebar nav{
    position:relative!important;
    z-index:5!important;
    margin-top:0!important;
    padding-top:0!important;
    gap:4px!important;
  }

  /* E watermark riservata SOLO allo spazio inferiore: non passa dietro alle voci */
  
  .sidebar-bottom{
    position:relative!important;
    z-index:5!important;
    margin-top:auto!important;
    padding-top:122px!important;
    padding-bottom:86px!important;
  }
  

  /* Firma AutoTrace in basso: scudetto intero + payoff grande e centrato */
  
  #logoutBtn{
    position:relative!important;
    z-index:7!important;
    margin:0!important;
  }
  

  /* Login desktop: stesso verde del registro, scudetto mai tagliato */
  #loginView.login-shell{
    background:#011D0E!important;
    background-color:#011D0E!important;
    background-image:none!important;
  }
  #loginView .login-card{
    background:#04311C!important;
    background-color:#04311C!important;
    background-image:none!important;
    border:2px solid #FFFFFF!important;
    box-shadow:0 22px 60px rgba(0,0,0,.34)!important;
  }
  #loginView .login-logo{
    content:url("autotrace-brand-payoff-large.png")!important;
    display:block!important;
    width:100%!important;
    max-width:390px!important;
    height:176px!important;
    object-fit:contain!important;
    object-position:center center!important;
    margin:-2px auto 12px!important;
    transform:none!important;
    clip-path:none!important;
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    filter:none!important;
  }
  #loginView .login-card label{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  #loginView #loginBtn{
    background:#FFFFFF!important;
    color:#07150F!important;
    -webkit-text-fill-color:#07150F!important;
    border:0!important;
    box-shadow:none!important;
  }
}


/* ======================================================================
   AutoTrace V89ZH — SOLO CSS DESKTOP
   Richieste:
   - Login: ENTRA -> LOGIN solo via CSS; testo digitato verde; logo più nitido.
   - Sidebar registri: rimuovere E watermark; ESCI come voce menu trasparente
     subito sotto REPORT; icona/label bianchi; firma AutoTrace resta in fondo.
   - Nessuna modifica a app.js / index.html / api.php.
   ====================================================================== */
@media (min-width:901px){

  /* ---------- LOGIN ---------- */
  #loginView .login-logo{
    content:url("autotrace-brand-payoff-large.png")!important;
    width:330px!important;
    max-width:330px!important;
    height:auto!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0 auto 12px!important;
    transform:none!important;
    clip-path:none!important;
    filter:none!important;
    image-rendering:auto!important;
  }

  #loginView #loginUser,
  #loginView #loginPassword{
    background:#FFFFFF!important;
    color:#0B6A3B!important;
    -webkit-text-fill-color:#0B6A3B!important;
    caret-color:#0B6A3B!important;
    border:0!important;
    box-shadow:none!important;
    font-weight:700!important;
  }
  #loginView #loginUser::placeholder,
  #loginView #loginPassword::placeholder{
    color:#7B8A82!important;
    -webkit-text-fill-color:#7B8A82!important;
    opacity:1!important;
  }

  /* Mantiene il comportamento del bottone ma cambia solo la scritta visiva */
  #loginView #loginBtn .login-btn-label{
    font-size:0!important;
    line-height:1!important;
  }
  #loginView #loginBtn .login-btn-label::after{
    content:"LOGIN"!important;
    display:inline-block!important;
    font-size:14px!important;
    font-weight:800!important;
    letter-spacing:.7px!important;
    color:#07150F!important;
    -webkit-text-fill-color:#07150F!important;
  }
  #loginView #loginBtn.is-loading .login-btn-label::after{
    content:"ACCESSO IN CORSO…"!important;
    font-size:13px!important;
  }

  /* ---------- SIDEBAR ---------- */
  .sidebar{
    position:sticky!important;
    display:flex!important;
    flex-direction:column!important;
  }

  /* Elimina definitivamente la E stilizzata */
  

  /* Il menu vero resta compatto */
  .sidebar nav{
    margin-top:0!important;
    margin-bottom:0!important;
    gap:4px!important;
  }

  /* Porta ESCI subito dopo REPORT come una normale voce menu */
  .sidebar-bottom{
    position:relative!important;
    z-index:8!important;
    margin-top:4px!important;
    padding:0 0 92px!important;
  }
  .sidebar-bottom #currentUserCard{
    display:none!important;
  }

  #logoutBtn{
    width:100%!important;
    min-height:52px!important;
    height:52px!important;
    margin:0!important;
    padding:0 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
    font-size:12.4px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    letter-spacing:0!important;
    text-align:left!important;
  }
  #logoutBtn:hover,
  #logoutBtn:focus{
    background:rgba(255,255,255,.07)!important;
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
    border:0!important;
    box-shadow:none!important;
    outline:none!important;
  }
  #logoutBtn .nav-icon{
    width:22px!important;
    height:22px!important;
    flex:0 0 22px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#FFFFFF!important;
    opacity:1!important;
  }
  #logoutBtn .nav-icon svg{
    width:22px!important;
    height:22px!important;
    stroke:#FFFFFF!important;
    fill:none!important;
    stroke-width:1.9!important;
  }

  /* Rimuove il vecchio TECHNOLOGY BY appeso al bottone ESCI */
  

  /* Firma AutoTrace in fondo, separata dal menu e completamente visibile */
  
  .sidebar-bottom{
    background-image:linear-gradient(to bottom,transparent,transparent)!important;
  }
  .sidebar-bottom > *{
    position:relative!important;
    z-index:2!important;
  }

  /* Technology by sopra il marchio, non sopra ESCI */
  .sidebar-bottom{
    --at-tech-label:"TECHNOLOGY BY";
  }
  .sidebar-bottom > #logoutBtn + *{display:none!important}
  .sidebar-bottom .tech-label-v89zh{display:none!important}
  .sidebar-bottom{
    isolation:isolate!important;
  }
  .sidebar-bottom::marker{content:""!important}

  /* usa un piccolo label tramite background testuale simulato con pseudo del container */
  
}


/* ======================================================================
   AutoTrace V89ZI — SOLO CSS DESKTOP
   - ESCI immediatamente sotto REPORT
   - firma TECHNOLOGY BY + AutoTrace minimale in fondo alla sidebar
   - sidebar ristretta di 38px (330 -> 292)
   - testo digitato nel login verde scuro #011D0E
   - nessuna modifica a app.js / index.html / api.php
   ====================================================================== */
@media (min-width:901px){

  /* Sidebar 38px più stretta rispetto alla larghezza precedente di 330px */
  .app{
    grid-template-columns:292px minmax(0,1fr)!important;
  }

  .sidebar{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }

  /* Mantiene Europcar proporzionato nella nuova larghezza */
  .sidebar-brand-only::before{
    left:14px!important;
    width:224px!important;
    max-width:calc(100% - 28px)!important;
    background-size:contain!important;
  }

  /* Menu compatto e senza spazio artificiale prima di ESCI */
  .sidebar nav{
    margin-top:0!important;
    margin-bottom:0!important;
    gap:4px!important;
  }

  /* ESCI è il primo elemento della zona bottom: subito dopo REPORT */
  .sidebar-bottom{
    position:relative!important;
    margin-top:4px!important;
    padding:0 0 66px!important;
    min-height:118px!important;
    display:block!important;
  }

  #logoutBtn{
    position:relative!important;
    z-index:10!important;
    width:100%!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    padding:0 12px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  /* Firma minimale: TECHNOLOGY BY piccolo + AutoTrace piccolo, sotto ESCI */
  

  

  /* Evita qualsiasi vecchio testo TECHNOLOGY BY legato direttamente a ESCI */
  

  /* Login: testo digitato verde scuro, uguale al verde base del registro/sidebar */
  #loginView #loginUser,
  #loginView #loginPassword{
    color:#011D0E!important;
    -webkit-text-fill-color:#011D0E!important;
    caret-color:#011D0E!important;
    font-weight:700!important;
  }

  #loginView #loginUser::placeholder,
  #loginView #loginPassword::placeholder{
    color:#5F7469!important;
    -webkit-text-fill-color:#5F7469!important;
    opacity:1!important;
  }
}


/* ======================================================================
   AutoTrace V89ZJ — SOLO CSS DESKTOP
   - login logo non schiacciato, proporzioni naturali
   - ESCI subito sotto REPORT; TECHNOLOGY BY + AutoTrace solo sotto ESCI
   - firma AutoTrace minimale
   - icone check-in/check-out uniformi e frecce più leggibili
   - sidebar ancora più stretta, registro recupera spazio verso sinistra
   - header data/utente contenuto nel rigo
   - nessuna modifica a app.js / index.html / api.php
   ====================================================================== */
@media (min-width:901px){

  /* LOGIN: proporzioni naturali, niente schiacciamento */
  #loginView .login-logo{
    content:url("autotrace-brand-payoff-large.png")!important;
    display:block!important;
    width:min(390px,92%)!important;
    max-width:390px!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center center!important;
    margin:0 auto 14px!important;
    transform:none!important;
    clip-path:none!important;
    filter:none!important;
  }

  /* Più spazio al registro: sidebar ancora più compatta */
  .app{
    grid-template-columns:260px minmax(0,1fr)!important;
  }
  .sidebar{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .main{
    padding-left:12px!important;
    padding-right:12px!important;
  }

  /* Europcar resta proporzionato nella sidebar più stretta */
  .sidebar-brand-only{
    height:114px!important;
    min-height:114px!important;
    margin-bottom:8px!important;
  }
  .sidebar-brand-only::before{
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-width:none!important;
    background-size:contain!important;
    background-position:center top!important;
  }

  /* Menu compatto: ESCI è realmente il rigo immediatamente dopo REPORT */
  .sidebar nav{
    gap:3px!important;
    margin-bottom:0!important;
  }
  .sidebar-bottom{
    position:relative!important;
    margin-top:3px!important;
    padding:0!important;
    height:128px!important;
    min-height:128px!important;
    flex:0 0 128px!important;
    overflow:visible!important;
  }
  #logoutBtn{
    position:absolute!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
    padding:0 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    z-index:5!important;
  }

  /* TECHNOLOGY BY esclusivamente sotto ESCI */
  

  /* Firma AutoTrace piccola, come una firma professionale */
  

  /* Icone check-in / check-out: stessa proporzione e freccia più evidente */
  .sidebar .nav-btn[data-view="checkin"] .nav-icon,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon{
    position:relative!important;
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    flex:0 0 26px!important;
    background-repeat:no-repeat!important;
    background-position:center center!important;
    background-size:23px 23px!important;
    overflow:visible!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon{
    background-image:url("nav-checkin-book-white.png")!important;
  }
  .sidebar .nav-btn[data-view="checkout"] .nav-icon{
    background-image:url("nav-checkout-book-white.png")!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon > *,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon > *{
    visibility:hidden!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon::after,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon::after{
    position:absolute!important;
    top:50%!important;
    transform:translateY(-52%)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-family:Arial,sans-serif!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1!important;
    text-shadow:0 0 1px #fff!important;
    z-index:4!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon::after{
    content:"←"!important;
    right:-3px!important;
  }
  .sidebar .nav-btn[data-view="checkout"] .nav-icon::after{
    content:"→"!important;
    right:-4px!important;
  }

  /* Tutte le icone menu con la stessa presenza visiva */
  .sidebar .nav-btn .nav-icon{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    flex:0 0 24px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .sidebar .nav-btn .nav-icon svg{
    width:22px!important;
    height:22px!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    flex-basis:26px!important;
  }

  /* Header registro: data e identità restano dentro il rigo */
  #view-checkin > .register-heading.register-heading-enhanced,
  #view-checkout > .register-heading.register-heading-enhanced,
  #view-checkin > .register-heading,
  #view-checkout > .register-heading{
    grid-template-columns:minmax(215px,.9fr) minmax(340px,1.35fr) minmax(225px,.9fr)!important;
    column-gap:10px!important;
    padding-left:10px!important;
    padding-right:10px!important;
    overflow:hidden!important;
  }
  #view-checkin .register-date-block,
  #view-checkout .register-date-block{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  #view-checkin .register-date-block .register-date,
  #view-checkout .register-date-block .register-date{
    font-size:16px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #checkinHeaderMetrics,
  #checkoutHeaderMetrics{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  #checkinHeaderMetrics .header-user-meta,
  #checkoutHeaderMetrics .header-user-meta{
    min-width:0!important;
    max-width:100%!important;
    justify-content:flex-end!important;
  }
  #checkinHeaderMetrics .header-user-copy,
  #checkoutHeaderMetrics .header-user-copy{
    min-width:0!important;
    max-width:180px!important;
    overflow:hidden!important;
  }
  #checkinHeaderMetrics .header-user-copy strong,
  #checkoutHeaderMetrics .header-user-copy strong,
  #checkinHeaderMetrics .header-user-copy span,
  #checkoutHeaderMetrics .header-user-copy span{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}

/* ======================================================================
   AutoTrace V89ZK — SOLO CSS GRAFICO DESKTOP
   Allineamento Europcar/menu + frecce pulite + firma Technology by AutoTrace
   Nessuna modifica a JS / HTML / PHP / logiche / chiamate server.
   ====================================================================== */
@media (min-width:901px){

  /* Europcar: leggermente più su rispetto a V89ZJ, mantenendo proporzioni */
  .sidebar-brand-only{
    height:96px!important;
    min-height:96px!important;
    margin:0 0 0!important;
    padding:0 10px!important;
  }
  .sidebar-brand-only::before{
    top:4px!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    height:70px!important;
    max-width:none!important;
    background-image:url("europcar-logo-yellow-transparent.png")!important;
    background-repeat:no-repeat!important;
    background-size:contain!important;
    background-position:center center!important;
  }

  /* Legenda/menu più in alto */
  .sidebar nav{
    margin-top:-18px!important;
    margin-bottom:0!important;
    padding-top:0!important;
    gap:3px!important;
  }

  /* Check-in / check-out: stesso libro, frecce SVG dritte e nitide */
  .sidebar .nav-btn[data-view="checkin"] .nav-icon,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon{
    position:relative!important;
    width:27px!important;
    min-width:27px!important;
    height:27px!important;
    flex:0 0 27px!important;
    background-position:left center!important;
    background-size:21px 21px!important;
    background-repeat:no-repeat!important;
    overflow:visible!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon::after,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon::after{
    content:""!important;
    position:absolute!important;
    display:block!important;
    top:50%!important;
    right:-2px!important;
    width:12px!important;
    height:12px!important;
    transform:translateY(-50%)!important;
    background-repeat:no-repeat!important;
    background-position:center!important;
    background-size:12px 12px!important;
    filter:none!important;
    text-shadow:none!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon::after{
    /* freccia verso il libro = ENTRATA */
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 8H4M8 3L3 8l5 5' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  }
  .sidebar .nav-btn[data-view="checkout"] .nav-icon::after{
    /* freccia fuori dal libro = USCITA */
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h10M8 3l5 5-5 5' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  }

  /* ESCI resta subito dopo REPORT; sotto c'è spazio prima della firma */
  .sidebar-bottom{
    position:relative!important;
    margin-top:3px!important;
    padding:0!important;
    height:176px!important;
    min-height:176px!important;
    flex:0 0 176px!important;
    overflow:visible!important;
  }
  #logoutBtn{
    top:0!important;
    height:48px!important;
    min-height:48px!important;
  }

  /* Firma su un solo rigo visivo: TECHNOLOGY BY + AutoTrace, bianco pieno */
  

  /* AutoTrace orizzontale: scudetto intero + payoff centrato e limpido */
  
}

/* ======================================================================
   AutoTrace V89ZL — SOLO CSS GRAFICO DESKTOP
   Rifinitura: Europcar/menu più alti, icone CI/CO pulite, firma più bassa.
   ====================================================================== */
@media (min-width:901px){
  /* EUROPCAR: spostamento realmente visibile verso l'alto */
  .sidebar-brand-only{
    position:relative!important;
    height:72px!important;
    min-height:72px!important;
    margin:0!important;
    padding:0 8px!important;
  }
  .sidebar-brand-only::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    top:-18px!important;
    left:8px!important;
    right:8px!important;
    width:auto!important;
    height:64px!important;
    background-image:url("europcar-logo-yellow-transparent.png")!important;
    background-repeat:no-repeat!important;
    background-position:center center!important;
    background-size:contain!important;
    transform:none!important;
  }
  .sidebar-brand-only::after{display:none!important;content:none!important}

  /* MENU: tutto il blocco sale davvero */
  .sidebar nav{
    position:relative!important;
    top:-54px!important;
    margin-top:0!important;
    margin-bottom:-54px!important;
    padding-top:0!important;
    gap:3px!important;
  }

  /* CHECK-IN / CHECK-OUT: icona unica SVG, niente frecce sovrapposte o storte */
  .sidebar .nav-btn[data-view="checkin"] .nav-icon,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon{
    position:relative!important;
    display:block!important;
    width:29px!important;
    min-width:29px!important;
    height:25px!important;
    flex:0 0 29px!important;
    background-repeat:no-repeat!important;
    background-position:center!important;
    background-size:29px 25px!important;
    overflow:visible!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='26' viewBox='0 0 32 26'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5c4.2-1.1 7.7-.2 10.5 2.1v15.1c-3-2.3-6.4-3-10.5-1.9z'/%3E%3Cpath d='M13 6.6c2.7-2.3 6.3-3.2 10.5-2.1v15.3c-4.1-1.1-7.5-.4-10.5 1.9z'/%3E%3Cpath d='M30 13H18.5'/%3E%3Cpath d='M22.2 9.4 18.5 13l3.7 3.6'/%3E%3C/g%3E%3C/svg%3E")!important;
  }
  .sidebar .nav-btn[data-view="checkout"] .nav-icon{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='26' viewBox='0 0 32 26'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5c4.2-1.1 7.7-.2 10.5 2.1v15.1c-3-2.3-6.4-3-10.5-1.9z'/%3E%3Cpath d='M13 6.6c2.7-2.3 6.3-3.2 10.5-2.1v15.3c-4.1-1.1-7.5-.4-10.5 1.9z'/%3E%3Cpath d='M17.5 13H30'/%3E%3Cpath d='M26.2 9.4 30 13l-3.8 3.6'/%3E%3C/g%3E%3C/svg%3E")!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon::after,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon::after{
    display:none!important;
    content:none!important;
    background:none!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon > *,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon > *{display:none!important}

  /* ESCI resta subito dopo REPORT; il contenitore lascia spazio alla firma */
  .sidebar-bottom{
    position:relative!important;
    margin-top:3px!important;
    padding:0!important;
    height:228px!important;
    min-height:228px!important;
    flex:0 0 228px!important;
    overflow:visible!important;
  }
  #logoutBtn{
    position:absolute!important;
    top:0!important;
    left:0!important;
    right:0!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
  }

  /* TECHNOLOGY BY: più basso e bianco pieno */
  

  /* AUTOTRACE: più basso, scudetto intero, payoff centrato e più leggibile */
  
}

/* ======================================================================
   AutoTrace V89ZM — RIFINITURA FINALE DESKTOP
   CSS grafico: Europcar più basso, ESCI riallineato, icone CI/CO più fini,
   firma AutoTrace leggibile e non tagliata. Nessuna logica modificata.
   ====================================================================== */
@media (min-width:901px){
  /* Europcar: scende all'altezza visiva della data */
  .sidebar-brand-only{
    height:122px!important;
    min-height:122px!important;
    margin:0!important;
    padding:0 8px!important;
    overflow:visible!important;
  }
  .sidebar-brand-only::before{
    top:34px!important;
    left:10px!important;
    right:10px!important;
    height:66px!important;
    background-position:center center!important;
    background-size:contain!important;
  }

  /* Mantiene il menu compatto, senza trascinare ESCI più in basso */
  .sidebar nav{
    top:-18px!important;
    margin-top:0!important;
    margin-bottom:-18px!important;
    gap:3px!important;
  }

  /* Check-in / Check-out: libro più stretto + freccia piccola e netta */
  .sidebar .nav-btn[data-view="checkin"] .nav-icon,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon{
    width:25px!important;
    min-width:25px!important;
    height:22px!important;
    flex:0 0 25px!important;
    background-size:25px 22px!important;
    background-position:center!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 22'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 4.2c3.2-.8 5.9-.1 8 1.7v12.7c-2.2-1.8-4.8-2.4-8-1.6z'/%3E%3Cpath d='M9.5 5.9c2.1-1.8 4.8-2.5 8-1.7v12.8c-3.2-.8-5.8-.2-8 1.6z'/%3E%3Cpath d='M23.3 11h-6.6'/%3E%3Cpath d='M19.2 8.4 16.6 11l2.6 2.6'/%3E%3C/g%3E%3C/svg%3E")!important;
  }
  .sidebar .nav-btn[data-view="checkout"] .nav-icon{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 22'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 4.2c3.2-.8 5.9-.1 8 1.7v12.7c-2.2-1.8-4.8-2.4-8-1.6z'/%3E%3Cpath d='M9.5 5.9c2.1-1.8 4.8-2.5 8-1.7v12.8c-3.2-.8-5.8-.2-8 1.6z'/%3E%3Cpath d='M16.4 11h6.9'/%3E%3Cpath d='M20.7 8.4 23.3 11l-2.6 2.6'/%3E%3C/g%3E%3C/svg%3E")!important;
  }
  .sidebar .nav-btn[data-view="checkin"] .nav-icon::after,
  .sidebar .nav-btn[data-view="checkout"] .nav-icon::after{
    display:none!important;
    content:none!important;
  }

  /* ESCI: stessa altezza, padding, gap e allineamento delle altre voci */
  .sidebar-bottom{
    position:relative!important;
    margin-top:3px!important;
    padding:0!important;
    height:250px!important;
    min-height:250px!important;
    flex:0 0 250px!important;
    overflow:visible!important;
  }
  #logoutBtn{
    position:relative!important;
    top:0!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    padding:0 10px!important;
    gap:8px!important;
    border-radius:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }
  #logoutBtn .nav-icon{
    width:25px!important;
    min-width:25px!important;
    height:22px!important;
    flex:0 0 25px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  #logoutBtn .nav-icon svg{
    width:21px!important;
    height:21px!important;
  }

  /* Firma: più in basso ma con un rigo di respiro; TECHNOLOGY BY bianco puro */
  

  /* AutoTrace: box più largo/alto, niente crop, payoff centrato e più leggibile */
  
}

/* ======================================================================
   AutoTrace V89ZN — micro-rifinitura desktop
   SOLO CSS grafico + etichetta login USER->User in index.html.
   ====================================================================== */
@media (min-width:901px){
  /* Europcar: 18px più in alto rispetto a V89ZM */
  .sidebar-brand-only::before{
    top:16px!important;
  }

  /* ESCI: stessa cadenza e stesso asse delle altre voci di menu */
  .sidebar-bottom{
    margin-top:3px!important;
  }
  #logoutBtn{
    position:absolute!important;
    top:-12px!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    margin:0!important;
    padding:0 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:11px!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  #logoutBtn .nav-icon{
    width:25px!important;
    min-width:25px!important;
    height:22px!important;
    flex:0 0 25px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
  }
  #logoutBtn .nav-icon svg{
    width:21px!important;
    height:21px!important;
  }

  /* Firma: scudetto intero e payoff separato, così è davvero centrato */
  

  /* Mostra solo scudetto + AUTOTRACE del PNG, senza il payoff incorporato. */
  

  /* Payoff CSS: bianco, nitido e centrato esattamente sotto AUTOTRACE. */
  

  /* Login: stessa resa tipografica di Password; solo iniziale maiuscola. */
  .login-card label{
    text-transform:none!important;
  }
}

/* ======================================================================
   AutoTrace V89ZO — SOLO CSS GRAFICO
   Correzione firma Technology by + AutoTrace e asse orizzontale ESCI.
   Nessuna logica, JS, API o HTML modificati.
   ====================================================================== */
@media (min-width:901px){
  /* ESCI: corregge solo il rientro orizzontale; altezza e cadenza restano invariati */
  #logoutBtn{
    padding-left:10px!important;
    padding-right:10px!important;
    gap:8px!important;
  }
  #logoutBtn .nav-icon{
    margin-left:0!important;
    margin-right:0!important;
  }

  /* Firma: bianco pieno e logo completo, senza crop o payoff sovrapposto */
  

  

  /* Elimina il payoff CSS separato della versione precedente: il payoff ora è quello del logo completo */
  
}

/* ======================================================================
   AutoTrace V89ZP — SOLO CSS GRAFICO
   Login premium antracite + allineamento ESCI + firma testuale sidebar.
   Nessuna modifica a JS, HTML, API, logiche, chiamate server o funzioni.
   ====================================================================== */
@media (min-width:901px){
  /* ---------- LOGIN: pagina premium antracite ---------- */
  #loginView.login-shell{
    min-height:100vh!important;
    display:grid!important;
    place-items:center!important;
    padding:20px!important;
    background:
      radial-gradient(circle at 50% 42%, rgba(255,255,255,.018) 0, rgba(255,255,255,0) 42%),
      linear-gradient(145deg,#111315 0%,#181B1D 100%)!important;
  }

  #loginView .login-card{
    width:430px!important;
    min-height:500px!important;
    max-width:calc(100vw - 40px)!important;
    padding:38px 38px 34px!important;
    background:linear-gradient(180deg,#1A1C1E 0%,#17191B 100%)!important;
    border:1px solid rgba(255,255,255,.24)!important;
    border-radius:8px!important;
    box-shadow:0 24px 60px rgba(0,0,0,.38)!important;
    transform:translateY(-4vh)!important;
  }

  #loginView .login-logo{
    display:block!important;
    width:260px!important;
    max-width:260px!important;
    height:145px!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0 auto 28px!important;
    filter:grayscale(1) brightness(2.65) contrast(.78)!important;
    opacity:.96!important;
  }

  #loginView .login-card label{
    display:grid!important;
    gap:8px!important;
    margin:0 0 18px!important;
    color:#F2F2F2!important;
    -webkit-text-fill-color:#F2F2F2!important;
    font-size:15px!important;
    line-height:1.2!important;
    font-weight:600!important;
    text-transform:none!important;
  }

  #loginView .login-card label:first-of-type{
    margin-top:0!important;
  }

  #loginView #loginUser,
  #loginView #loginPassword{
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 14px!important;
    border:1px solid #474B4F!important;
    border-radius:6px!important;
    background:#202326!important;
    color:#E5E5E5!important;
    -webkit-text-fill-color:#E5E5E5!important;
    caret-color:#FFFFFF!important;
    box-shadow:none!important;
    outline:none!important;
    font-size:14px!important;
    line-height:44px!important;
    font-weight:500!important;
  }

  #loginView #loginUser:focus,
  #loginView #loginPassword:focus{
    border-color:#6A6D70!important;
    box-shadow:0 0 0 1px rgba(255,255,255,.08)!important;
    background:#232629!important;
  }

  #loginView #loginUser::placeholder,
  #loginView #loginPassword::placeholder{
    color:#8D9195!important;
    -webkit-text-fill-color:#8D9195!important;
    opacity:1!important;
    font-weight:400!important;
  }

  #loginView .login-message,
  #loginView #loginMessage{
    min-height:18px!important;
    margin:0 0 6px!important;
    font-size:12px!important;
  }

  #loginView #loginBtn{
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    margin-top:6px!important;
    padding:0 18px!important;
    border:1px solid #55595D!important;
    border-radius:6px!important;
    background:linear-gradient(180deg,#34373B 0%,#2B2E32 100%)!important;
    color:#FFFFFF!important;
    box-shadow:none!important;
  }

  #loginView #loginBtn:hover{
    background:linear-gradient(180deg,#3A3D41 0%,#303337 100%)!important;
    border-color:#666A6E!important;
  }

  #loginView #loginBtn .login-btn-label,
  #loginView #loginBtn .login-btn-label::after{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
    font-size:14px!important;
    line-height:1!important;
    font-weight:600!important;
    letter-spacing:3px!important;
  }

  /* ---------- SIDEBAR: ESCI solo correzione asse orizzontale ---------- */
  #logoutBtn{
    padding-left:12px!important;
    padding-right:12px!important;
    gap:11px!important;
  }
  #logoutBtn .nav-icon{
    width:25px!important;
    min-width:25px!important;
    flex:0 0 25px!important;
    margin:0!important;
  }

  /* ---------- SIDEBAR: firma solo testuale, niente logo ---------- */
  
  
  
}

/* ======================================================================
   AutoTrace V89ZQ — FIX SOLO CSS LOGIN
   Corregge l'override grafico che impediva a .hidden di nascondere il login
   dopo autenticazione. Nessuna modifica a JS / API / HTML / logiche.
   ====================================================================== */
@media (min-width:901px){
  /* Deve vincere sul display:grid!important del tema login premium */
  #loginView.login-shell.hidden{
    display:none!important;
  }

  /* Autofill browser: mantiene i campi antracite e il testo leggibile */
  #loginView #loginUser:-webkit-autofill,
  #loginView #loginPassword:-webkit-autofill,
  #loginView #loginUser:-webkit-autofill:hover,
  #loginView #loginPassword:-webkit-autofill:hover,
  #loginView #loginUser:-webkit-autofill:focus,
  #loginView #loginPassword:-webkit-autofill:focus{
    -webkit-text-fill-color:#E5E5E5!important;
    -webkit-box-shadow:0 0 0 1000px #202326 inset!important;
    box-shadow:0 0 0 1000px #202326 inset!important;
    caret-color:#FFFFFF!important;
    border:1px solid #474B4F!important;
    transition:background-color 9999s ease-out 0s!important;
  }
}

/* ======================================================================
   AutoTrace V89ZR — SOLO CSS GRAFICO LOGIN NERO PREMIUM
   Override finale: sfondo/box/campi/bottone più scuri e contrasto più netto.
   Nessuna modifica a JS / HTML / API / logiche / chiamate server.
   ====================================================================== */
@media (min-width:901px){
  /* Mantiene il fix funzionale di visibilità dopo login */
  #loginView.login-shell.hidden{display:none!important;}

  /* Pagina: quasi nera, con sfumatura molto discreta e niente verde evidente */
  #loginView.login-shell{
    min-height:100vh!important;
    display:grid!important;
    place-items:center!important;
    padding:20px!important;
    background:
      radial-gradient(circle at 50% 42%, rgba(255,255,255,.018) 0%, rgba(255,255,255,0) 34%),
      radial-gradient(circle at 50% 55%, rgba(23,26,28,.34) 0%, rgba(17,19,21,0) 46%),
      linear-gradient(145deg,#0D0F11 0%,#111315 46%,#17191B 100%)!important;
    background-color:#0D0F11!important;
  }

  /* Box: più nero/premium, separato dal fondo solo da bordo sottile */
  #loginView .login-card{
    width:430px!important;
    min-height:500px!important;
    max-width:calc(100vw - 40px)!important;
    padding:38px 38px 34px!important;
    background:
      linear-gradient(180deg,rgba(25,27,29,.985) 0%,rgba(18,20,22,.99) 100%)!important;
    background-color:#151719!important;
    border:1px solid rgba(255,255,255,.30)!important;
    border-radius:8px!important;
    box-shadow:0 28px 70px rgba(0,0,0,.55)!important;
    transform:translateY(-4vh)!important;
  }

  /* Logo più sobrio e bianco pulito */
  #loginView .login-logo{
    width:252px!important;
    max-width:252px!important;
    height:142px!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0 auto 30px!important;
    filter:grayscale(1) brightness(2.9) contrast(.9)!important;
    opacity:.98!important;
  }

  #loginView .login-card label{
    color:#F7F7F6!important;
    -webkit-text-fill-color:#F7F7F6!important;
    font-size:15px!important;
    font-weight:600!important;
  }

  /* Campi: mai bianchi */
  #loginView #loginUser,
  #loginView #loginPassword{
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 14px!important;
    background:#171A1D!important;
    background-color:#171A1D!important;
    background-image:none!important;
    border:1px solid #3D4247!important;
    border-radius:6px!important;
    color:#F1F1F0!important;
    -webkit-text-fill-color:#F1F1F0!important;
    caret-color:#FFFFFF!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
    font-size:14px!important;
    font-weight:500!important;
  }

  #loginView #loginUser:focus,
  #loginView #loginPassword:focus{
    background:#1B1E21!important;
    background-color:#1B1E21!important;
    border-color:#666B70!important;
    box-shadow:0 0 0 1px rgba(255,255,255,.055)!important;
    outline:none!important;
  }

  #loginView #loginUser::placeholder,
  #loginView #loginPassword::placeholder{
    color:#7F8489!important;
    -webkit-text-fill-color:#7F8489!important;
    opacity:1!important;
  }

  /* Autofill Chrome/Edge: forza lo stesso nero dei campi */
  #loginView #loginUser:-webkit-autofill,
  #loginView #loginPassword:-webkit-autofill,
  #loginView #loginUser:-webkit-autofill:hover,
  #loginView #loginPassword:-webkit-autofill:hover,
  #loginView #loginUser:-webkit-autofill:focus,
  #loginView #loginPassword:-webkit-autofill:focus{
    -webkit-text-fill-color:#F1F1F0!important;
    -webkit-box-shadow:0 0 0 1000px #171A1D inset!important;
    box-shadow:0 0 0 1000px #171A1D inset!important;
    caret-color:#FFFFFF!important;
    border:1px solid #3D4247!important;
    transition:background-color 9999s ease-out 0s!important;
  }

  /* LOGIN: antracite molto più scuro, con gradiente tipo riferimento */
  #loginView #loginBtn,
  #loginView #loginBtn.btn.primary{
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    margin-top:6px!important;
    padding:0 18px!important;
    border:1px solid #4B4F54!important;
    border-radius:6px!important;
    background:
      linear-gradient(180deg,#303338 0%,#222529 52%,#191C1F 100%)!important;
    background-color:#222529!important;
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      0 8px 18px rgba(0,0,0,.18)!important;
    filter:none!important;
  }

  #loginView #loginBtn:hover,
  #loginView #loginBtn.btn.primary:hover,
  #loginView #loginBtn:focus,
  #loginView #loginBtn:active{
    background:linear-gradient(180deg,#36393E 0%,#272A2E 52%,#1D2023 100%)!important;
    border-color:#5C6166!important;
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
    filter:none!important;
  }

  #loginView #loginBtn .login-btn-label,
  #loginView #loginBtn .login-btn-label::after,
  #loginView #loginBtn.is-loading .login-btn-label::after{
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
    text-shadow:none!important;
  }
}

/* ======================================================================
   AutoTrace V89ZS — SOLO CSS GRAFICO
   Login nero pieno + bottone gradiente scuro + firma sidebar riposizionata.
   Nessuna modifica a JS / HTML / API / logiche / chiamate server.
   ====================================================================== */
@media (min-width:901px){
  /* Mantiene il fix che consente al login di sparire dopo autenticazione */
  #loginView.login-shell.hidden{display:none!important;}

  /* LOGIN: fondo nero pieno, senza dominante verde/grigia */
  #loginView.login-shell{
    background:#090A0B!important;
    background-image:none!important;
  }

  /* Box quasi nero, pulito e più netto */
  #loginView .login-card{
    background:#111315!important;
    background-image:none!important;
    border:1px solid rgba(255,255,255,.28)!important;
    box-shadow:0 24px 60px rgba(0,0,0,.48)!important;
  }

  /* Campi scuri e testo bianco nitido */
  #loginView #loginUser,
  #loginView #loginPassword{
    background:#17191B!important;
    background-color:#17191B!important;
    background-image:none!important;
    border-color:#404449!important;
    color:#F5F5F4!important;
    -webkit-text-fill-color:#F5F5F4!important;
  }

  #loginView #loginUser:-webkit-autofill,
  #loginView #loginPassword:-webkit-autofill,
  #loginView #loginUser:-webkit-autofill:hover,
  #loginView #loginPassword:-webkit-autofill:hover,
  #loginView #loginUser:-webkit-autofill:focus,
  #loginView #loginPassword:-webkit-autofill:focus{
    -webkit-text-fill-color:#F5F5F4!important;
    -webkit-box-shadow:0 0 0 1000px #17191B inset!important;
    box-shadow:0 0 0 1000px #17191B inset!important;
    caret-color:#FFFFFF!important;
  }

  /* Bottone: nero/antracite con un gradiente appena percepibile */
  #loginView #loginBtn,
  #loginView #loginBtn.btn.primary{
    background:linear-gradient(180deg,#24272A 0%,#1B1D20 55%,#151719 100%)!important;
    background-color:#1B1D20!important;
    border-color:#45494D!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
  }
  #loginView #loginBtn:hover,
  #loginView #loginBtn.btn.primary:hover,
  #loginView #loginBtn:focus,
  #loginView #loginBtn:active{
    background:linear-gradient(180deg,#292C2F 0%,#202326 55%,#181A1C 100%)!important;
    border-color:#555A5F!important;
  }

  /* Elimina la doppia scritta "EntraLOGIN": mostra soltanto LOGIN */
  #loginView #loginBtn .login-btn-label{
    font-size:0!important;
    line-height:0!important;
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
  }
  #loginView #loginBtn .login-btn-label::after{
    content:"LOGIN"!important;
    display:inline-block!important;
    font-size:14px!important;
    line-height:46px!important;
    font-weight:600!important;
    letter-spacing:3px!important;
    color:#FFFFFF!important;
    -webkit-text-fill-color:#FFFFFF!important;
  }
  #loginView #loginBtn.is-loading .login-btn-label::after{
    content:"ACCESSO IN CORSO…"!important;
    font-size:12px!important;
    letter-spacing:1.6px!important;
  }

  /* Sidebar: firma testuale 40px più in basso e 38px più a destra */
  
}

/* ======================================================================
   AutoTrace V89ZT — SOLO CSS GRAFICO
   Login nero pieno + logo più leggero + firma sidebar allineata alle icone.
   Nessuna modifica a JS / HTML / API / logiche / chiamate server.
   ====================================================================== */
@media (min-width:901px){
  /* LOGIN: nero pieno. Il gradiente resta solo sul pulsante. */
  #loginView.login-shell{
    background:#070809!important;
    background-image:none!important;
  }
  #loginView .login-card{
    background:#0B0C0D!important;
    background-image:none!important;
    border:1px solid rgba(255,255,255,.24)!important;
    box-shadow:0 22px 58px rgba(0,0,0,.55)!important;
  }

  /* Campi uniformemente scuri, senza gradiente. */
  #loginView #loginUser,
  #loginView #loginPassword{
    background:#101214!important;
    background-color:#101214!important;
    background-image:none!important;
    border-color:#3E4246!important;
    color:#F4F4F3!important;
    -webkit-text-fill-color:#F4F4F3!important;
    box-shadow:none!important;
  }
  #loginView #loginUser:focus,
  #loginView #loginPassword:focus{
    background:#121416!important;
    background-image:none!important;
    border-color:#666A6E!important;
    box-shadow:0 0 0 1px rgba(255,255,255,.04)!important;
  }
  #loginView #loginUser:-webkit-autofill,
  #loginView #loginPassword:-webkit-autofill,
  #loginView #loginUser:-webkit-autofill:hover,
  #loginView #loginPassword:-webkit-autofill:hover,
  #loginView #loginUser:-webkit-autofill:focus,
  #loginView #loginPassword:-webkit-autofill:focus{
    -webkit-text-fill-color:#F4F4F3!important;
    -webkit-box-shadow:0 0 0 1000px #101214 inset!important;
    box-shadow:0 0 0 1000px #101214 inset!important;
    caret-color:#FFFFFF!important;
  }

  /* Logo login: più piccolo e visivamente più slim/enterprise. */
  #loginView .login-logo{
    width:226px!important;
    max-width:226px!important;
    height:126px!important;
    margin:0 auto 30px!important;
    object-fit:contain!important;
    filter:grayscale(1) brightness(2.65) contrast(.72)!important;
    opacity:.94!important;
  }

  /* Bottone: unico elemento con un degradé appena percettibile. */
  #loginView #loginBtn,
  #loginView #loginBtn.btn.primary{
    background:linear-gradient(180deg,#25282B 0%,#181A1C 58%,#101214 100%)!important;
    background-color:#181A1C!important;
    border-color:#45494D!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;
  }
  #loginView #loginBtn:hover,
  #loginView #loginBtn.btn.primary:hover,
  #loginView #loginBtn:focus,
  #loginView #loginBtn:active{
    background:linear-gradient(180deg,#2B2E31 0%,#1D2022 58%,#141618 100%)!important;
  }

  /* Firma sidebar: parte dalla stessa verticale delle icone del menu. */
  
  
}


/* V89ZU — SOLO CSS GRAFICO: login minimal nero pieno */
@media (min-width: 901px) {
  /* pagina e contenitore tecnico: invisibile ma centrato */
  #loginView.login-shell {
    background: #000 !important;
    display: grid !important;
    place-items: center !important;
    min-height: 100vh !important;
    padding: 0 !important;
  }
  #loginView.login-shell.hidden { display: none !important; }

  #loginView .login-card {
    width: min(390px, calc(100vw - 48px)) !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translateY(-3vh) !important;
    overflow: visible !important;
  }

  /* logo: pulito e centrato */
  #loginView .login-logo {
    display: block !important;
    width: 250px !important;
    height: auto !important;
    max-width: 76% !important;
    margin: 0 auto 42px !important;
    object-fit: contain !important;
    filter: none !important;
    opacity: 1 !important;
  }

  /* nasconde le etichette testuali User/Password lasciando i campi accessibili */
  #loginView .login-card > label {
    display: block !important;
    position: relative !important;
    font-size: 0 !important;
    margin: 0 0 24px !important;
    color: transparent !important;
  }

  /* campi: nessun box visibile, solo linea sottile */
  #loginView #loginUser,
  #loginView #loginPassword {
    width: 100% !important;
    height: 46px !important;
    box-sizing: border-box !important;
    padding: 0 8px 0 44px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.48) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: .02em !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
  }
  #loginView #loginUser::placeholder,
  #loginView #loginPassword::placeholder {
    color: rgba(255,255,255,.34) !important;
    -webkit-text-fill-color: rgba(255,255,255,.34) !important;
  }
  #loginView #loginUser:focus,
  #loginView #loginPassword:focus {
    border-bottom-color: #fff !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.22) !important;
  }

  /* autofill Chrome/Safari: resta nero e testo bianco */
  #loginView input:-webkit-autofill,
  #loginView input:-webkit-autofill:hover,
  #loginView input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 0 0 1000px #000 inset !important;
    -webkit-box-shadow: 0 0 0 1000px #000 inset !important;
    transition: background-color 9999s ease-out 0s !important;
    border-bottom: 1px solid rgba(255,255,255,.48) !important;
  }

  /* icona utente */
  #loginView .login-card > label:nth-of-type(1)::before {
    content: "" !important;
    position: absolute !important;
    left: 9px !important;
    top: 12px !important;
    width: 18px !important;
    height: 18px !important;
    opacity: .92 !important;
    background: no-repeat center/18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.4'/%3E%3Cpath d='M5.8 19c.8-3.4 3-5.1 6.2-5.1s5.4 1.7 6.2 5.1'/%3E%3C/svg%3E") !important;
    pointer-events: none !important;
  }

  /* icona lucchetto */
  #loginView .login-card > label:nth-of-type(2)::before {
    content: "" !important;
    position: absolute !important;
    left: 9px !important;
    top: 12px !important;
    width: 18px !important;
    height: 18px !important;
    opacity: .92 !important;
    background: no-repeat center/18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='10' width='13' height='9.2' rx='1.8'/%3E%3Cpath d='M8.5 10V7.2a3.5 3.5 0 0 1 7 0V10'/%3E%3C/svg%3E") !important;
    pointer-events: none !important;
  }

  /* LOGIN: minimale, non bottone pesante */
  #loginView #loginBtn {
    width: 100% !important;
    height: 44px !important;
    margin-top: 8px !important;
    border: 1px solid rgba(255,255,255,.42) !important;
    border-radius: 3px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)) !important;
    box-shadow: none !important;
    color: #fff !important;
    letter-spacing: .16em !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    text-transform: uppercase !important;
  }
  #loginView #loginBtn:hover {
    border-color: rgba(255,255,255,.72) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025)) !important;
  }
  #loginView #loginBtn .login-btn-label {
    font-size: 0 !important;
  }
  #loginView #loginBtn .login-btn-label::after {
    content: "LOGIN" !important;
    font-size: 12px !important;
  }
  #loginView #loginMessage {
    margin: 0 0 8px !important;
    min-height: 18px !important;
    color: rgba(255,255,255,.82) !important;
    text-align: center !important;
    font-size: 12px !important;
  }
}

/* V89ZV — SOLO GRAFICA: logo definitivo + footer diritti riservati + login stabile */
@media (min-width: 901px) {
  /* Il JS continua a puntare al file logo storico: il file grafico è stato sostituito
     con il logo definitivo approvato, senza cambiare alcuna logica. */
  #loginView .login-logo{
    content:url("autotrace-logo-transparent.png")!important;
    width:270px!important;
    max-width:270px!important;
    height:auto!important;
    margin:0 auto 40px!important;
    object-fit:contain!important;
    filter:none!important;
    opacity:1!important;
  }

  /* Forza il layout minimal anche dopo autofill/ricaricamento browser. */
  #loginView .login-card > label{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  #loginView input#loginUser,
  #loginView input#loginPassword,
  #loginView input#loginUser:hover,
  #loginView input#loginPassword:hover,
  #loginView input#loginUser:focus,
  #loginView input#loginPassword:focus{
    appearance:none!important;
    -webkit-appearance:none!important;
    background:transparent!important;
    background-color:transparent!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.52)!important;
    border-radius:0!important;
    box-shadow:none!important;
    -webkit-box-shadow:none!important;
    outline:none!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }
  #loginView input#loginUser:-webkit-autofill,
  #loginView input#loginPassword:-webkit-autofill,
  #loginView input#loginUser:-webkit-autofill:hover,
  #loginView input#loginPassword:-webkit-autofill:hover,
  #loginView input#loginUser:-webkit-autofill:focus,
  #loginView input#loginPassword:-webkit-autofill:focus{
    -webkit-text-fill-color:#fff!important;
    caret-color:#fff!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.52)!important;
    border-radius:0!important;
    -webkit-box-shadow:0 0 0 1000px #000 inset!important;
    box-shadow:0 0 0 1000px #000 inset!important;
  }

  /* Firma registro: linea sottile, TECHNOLOGY BY + AUTOTRACE e diritti riservati. */
  .sidebar-bottom{
    position:relative!important;
    padding-bottom:92px!important;
  }
  
  
  
}

/* V89ZW — SOLO CSS GRAFICO: campi compatti centrati + login a freccia */
@media (min-width: 901px) {
  /* Mantiene il contenitore invisibile e perfettamente centrato. */
  #loginView .login-card {
    width: min(340px, calc(100vw - 48px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Logo centrato rispetto all'asse dei campi. */
  #loginView .login-logo {
    width: 250px !important;
    max-width: 250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 34px !important;
  }

  /* User e password: linee più corte, stesso asse del logo. */
  #loginView .login-card > label {
    width: 310px !important;
    max-width: calc(100vw - 60px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 22px !important;
  }

  #loginView #loginUser,
  #loginView #loginPassword,
  #loginView #loginUser:hover,
  #loginView #loginPassword:hover,
  #loginView #loginUser:focus,
  #loginView #loginPassword:focus {
    width: 100% !important;
    height: 44px !important;
    padding-left: 38px !important;
    padding-right: 6px !important;
    border-bottom: 1px solid rgba(255,255,255,.62) !important;
  }

  #loginView .login-card > label:nth-of-type(1)::before,
  #loginView .login-card > label:nth-of-type(2)::before {
    left: 7px !important;
    top: 12px !important;
    width: 17px !important;
    height: 17px !important;
    background-size: 17px 17px !important;
  }

  /* Il tasto resta cliccabile ma visivamente è soltanto una freccia. */
  #loginView #loginBtn,
  #loginView #loginBtn.btn.primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    margin: 8px auto 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
  }
  #loginView #loginBtn:hover,
  #loginView #loginBtn:focus,
  #loginView #loginBtn:active {
    background: rgba(255,255,255,.045) !important;
    box-shadow: none !important;
    transform: none !important;
  }
  #loginView #loginBtn .login-btn-label {
    font-size: 0 !important;
    line-height: 1 !important;
  }
  #loginView #loginBtn .login-btn-label::after {
    content: "→" !important;
    display: block !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 27px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  #loginView #loginBtn.is-loading .login-btn-label::after {
    content: "→" !important;
  }
}

/* V89ZX — SOLO CSS GRAFICO: logo +25%, campi più compatti, footer registro completo */
@media (min-width: 901px) {
  /* LOGIN: più respiro al logo definitivo, campi corti e centrati sotto di lui. */
  #loginView .login-card {
    width: min(360px, calc(100vw - 48px)) !important;
  }
  #loginView .login-logo {
    width: 312px !important;
    max-width: 312px !important;
    height: auto !important;
    margin: 0 auto 38px !important;
    object-fit: contain !important;
  }
  #loginView .login-card > label {
    width: 258px !important;
    max-width: calc(100vw - 72px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px !important;
  }
  #loginView #loginUser,
  #loginView #loginPassword,
  #loginView #loginUser:hover,
  #loginView #loginPassword:hover,
  #loginView #loginUser:focus,
  #loginView #loginPassword:focus {
    width: 100% !important;
    height: 42px !important;
    padding-left: 34px !important;
    padding-right: 4px !important;
    border-bottom: 1px solid rgba(255,255,255,.68) !important;
  }
  #loginView .login-card > label:nth-of-type(1)::before,
  #loginView .login-card > label:nth-of-type(2)::before {
    left: 5px !important;
    top: 11px !important;
  }

  /* REGISTRO: footer leggibile, non attaccato al bordo e con diritti visibili. */
  .sidebar-bottom {
    position: relative !important;
    padding-bottom: 108px !important;
  }
  
  
  
  
}

/* V89ZY — SOLO CSS GRAFICO: watermark login + freccia + footer registro robusto */
@media (min-width: 901px) {
  /* LOGIN: grande scudetto tecnico tono-su-tono dietro al blocco, senza cambiare HTML/JS. */
  #loginView .login-card {
    position: relative !important;
    isolation: isolate !important;
  }
  
  #loginView .login-logo,
  #loginView .login-card > label,
  #loginView #loginBtn,
  #loginView #loginMessage {
    position: relative !important;
    z-index: 2 !important;
  }

  /* Freccia appena più su, stesso hit-area/click del pulsante originale. */
  #loginView #loginBtn,
  #loginView #loginBtn.btn.primary {
    transform: translateY(-7px) !important;
  }
  #loginView #loginBtn:hover,
  #loginView #loginBtn:focus,
  #loginView #loginBtn:active {
    transform: translateY(-7px) !important;
  }

  /* REGISTRO: il verde resta intatto. Footer costruito senza usare .sidebar::after,
     che nelle versioni precedenti entrava in conflitto con vecchi pseudo-elementi. */
  .sidebar-bottom {
    position: relative !important;
    padding-bottom: 118px !important;
    margin-bottom: 0 !important;
    border: 0 !important;
  }

  /* riga firma */
  
  

  /* Linea + diritti: agganciati direttamente al tasto ESCI per evitare conflitti con .sidebar::after. */
  .sidebar-bottom #logoutBtn {
    position: relative !important;
    overflow: visible !important;
  }
  

  /* Disabilita soltanto il vecchio pseudo copyright concorrente. */
  
}

/* V89ZZ — CLEANUP FINALE SOLO CSS GRAFICO
   Obiettivo: eliminare le patch concorrenti del footer e usare il vero scudetto del logo come watermark.
   Nessuna modifica a sfondo/sidebar, JS, API o logiche. */
@media (min-width: 901px) {
  /* ===== LOGIN: watermark ricavato DAL LOGO DEFINITIVO, non ridisegnato ===== */
  #loginView .login-card {
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
  }

  /* Annulla il vecchio SVG disegnato a mano e mostra solo la parte alta
     del file logo definitivo (scudetto + A + quadratini), molto trasparente. */
  

  /* Freccia appena più in alto. */
  #loginView #loginBtn,
  #loginView #loginBtn.btn.primary,
  #loginView #loginBtn:hover,
  #loginView #loginBtn:focus,
  #loginView #loginBtn:active {
    transform: translateY(-12px) !important;
  }

  /* ===== SIDEBAR: sfondo verde INALTERATO; footer ricostruito da zero ===== */
  .sidebar {
    position: relative !important;
  }

  /* Elimina pseudo-elementi vecchi/concorrenti. */
  

  /* Il contenitore ESCI resta nel flusso normale; il footer viene posizionato
     rispetto alla sidebar, quindi non dipende dall'altezza del pulsante. */
  .sidebar-bottom {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  /* Prima riga: semplice testo, una sola baseline. */
  

  /* Seconda riga: linea reale + copyright sotto, senza agganciarsi a ESCI. */
  
}

/* V89ZZA — SOLO CSS GRAFICO
   Rifinitura watermark login + footer sidebar.
   Nessuna modifica a logiche, JS, API o sfondo verde del registro. */
@media (min-width: 901px) {
  /* ===== LOGIN: watermark grande ricavato dallo SCUDETTO REALE del logo definitivo ===== */
  #loginView {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;
  }

  /* Elimina definitivamente i watermark precedenti agganciati alla card. */
  

  /* Usa il file logo definitivo come sorgente e ne mostra solo la parte alta (scudetto + A + quadratini).
     Il pseudo-elemento è sul viewport del login, quindi le linee/campi non possono tagliarlo. */
  

  #loginView .login-card,
  #loginView .login-logo,
  #loginView .login-card > label,
  #loginView #loginBtn,
  #loginView #loginMessage {
    position: relative !important;
    z-index: 2 !important;
  }

  /* Freccia un poco più su. */
  #loginView #loginBtn,
  #loginView #loginBtn.btn.primary,
  #loginView #loginBtn:hover,
  #loginView #loginBtn:focus,
  #loginView #loginBtn:active {
    transform: translateY(-18px) !important;
  }

  /* ===== REGISTRO: verde intatto; footer pulito ===== */
  .sidebar {
    position: relative !important;
  }

  .sidebar-bottom {
    position: static !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* TECHNOLOGY BY AUTOTRACE: una sola riga, più bassa e più vicina alla linea. */
  

  /* Linea sottile + diritti, subito sotto la firma. */
  

  /* Spegne definitivamente i vecchi pseudo footer concorrenti. */
  
}

/* V89ZZB — SOLO CSS GRAFICO
   Riallineamento watermark login + sidebar stabile + footer completo.
   Nessuna modifica a logiche, JS, API, sync, firme o sfondo verde registro. */
@media (min-width: 901px) {
  /* ===== LOGIN ===== */
  #loginView {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }

  /* Spegne ogni vecchio watermark della card. */
  

  /* Watermark: usa SOLO il marchio reale (scudetto+A+quadratini),
     conserva le proporzioni originali e resta sulla stessa verticale del logo. */
  

  #loginView .login-card,
  #loginView .login-logo,
  #loginView .login-card > label,
  #loginView #loginBtn,
  #loginView #loginMessage {
    position: relative !important;
    z-index: 2 !important;
  }

  /* Freccia appena più in alto, senza cambiare la funzione del pulsante. */
  #loginView #loginBtn,
  #loginView #loginBtn.btn.primary,
  #loginView #loginBtn:hover,
  #loginView #loginBtn:focus,
  #loginView #loginBtn:active {
    transform: translateY(-23px) !important;
  }

  /* ===== REGISTRO / SIDEBAR =====
     Ripristina comportamento fermo durante lo scroll del registro. */
  .sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    align-self: start !important;
    overflow: hidden !important;
  }

  .sidebar-bottom {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  /* Pulisce i vecchi pseudo-elementi concorrenti. */
  

  /* Firma su una riga unica, ben visibile e vicina alla linea. */
  

  /* Linea sottile e diritti riservati, sempre ancorati in fondo. */
  
}

/* ==============================================================
   V89ZZD — CLEAN LOGIN ALIGNMENT + FOOTER STABILE
   SOLO CSS GRAFICO.
   - Login: un solo blocco definitivo, nessuna vecchia filigrana sovrapposta.
   - Footer registro: mantenuto invariato dalla versione approvata.
   ============================================================== */
@media (min-width: 901px) {
  /* ======================= LOGIN ======================= */
  #loginView {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }

  #loginView .login-card {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Filigrana: ricavata DAL LOGO DEFINITIVO con 4 quadratini.
     Il riquadro mostra soltanto lo scudetto e mantiene il rapporto originale.
     Nessuna deformazione orizzontale. */
  #loginView .login-card::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 55% !important;
    transform: translate(-50%, -50%) !important;
    width: 455px !important;
    height: 414px !important;
    max-width: 72vw !important;
    max-height: 66vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background-image: url("autotrace-logo-transparent.png") !important;
    background-repeat: no-repeat !important;
    background-size: 1630px auto !important;
    background-position: 50% 0 !important;
    opacity: .075 !important;
    filter: grayscale(1) brightness(.72) contrast(.92) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  /* Tutto il form resta sopra la filigrana, ma senza fondi che la coprano. */
  #loginView .login-card > * {
    position: relative !important;
    z-index: 2 !important;
  }

  /* Logo piccolo: asse centrale della pagina e 38px più stretto rispetto ai 250px precedenti. */
  #loginView .login-logo {
    content: url("autotrace-logo-transparent.png") !important;
    display: block !important;
    width: 212px !important;
    max-width: 212px !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 34px !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: 1 !important;
    filter: grayscale(1) brightness(1.32) contrast(1.16) !important;
  }

  /* Campi davvero trasparenti: nessun rettangolo/layer che interrompa la filigrana. */
  #loginView #loginUser,
  #loginView #loginPassword,
  #loginView #loginUser:hover,
  #loginView #loginPassword:hover,
  #loginView #loginUser:focus,
  #loginView #loginPassword:focus {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  #loginView #loginUser:-webkit-autofill,
  #loginView #loginPassword:-webkit-autofill,
  #loginView #loginUser:-webkit-autofill:hover,
  #loginView #loginPassword:-webkit-autofill:hover,
  #loginView #loginUser:-webkit-autofill:focus,
  #loginView #loginPassword:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0000 inset !important;
    box-shadow: 0 0 0 1000px #0000 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    background: transparent !important;
  }

  /* La freccia resta minimale e appena più alta. */
  #loginView #loginBtn,
  #loginView #loginBtn.btn.primary,
  #loginView #loginBtn:hover,
  #loginView #loginBtn:focus,
  #loginView #loginBtn:active {
    transform: translateY(-28px) !important;
  }

  /* ======================= SIDEBAR =======================
     Registro approvato: verde e footer invariati. */
  .sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    align-self: start !important;
    overflow: hidden !important;
  }

  .sidebar-bottom {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .sidebar .sidebar-bottom:has(#logoutBtn)::before {
    content: "TECHNOLOGY BY  AUTOTRACE" !important;
    display: block !important;
    position: absolute !important;
    left: 26px !important;
    bottom: 48px !important;
    width: 245px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8px !important;
    line-height: 14px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: .5px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: left !important;
    text-shadow: none !important;
    pointer-events: none !important;
    z-index: 500 !important;
  }

  .sidebar .sidebar-bottom:has(#logoutBtn)::after {
    content: "© DIRITTI RISERVATI" !important;
    display: block !important;
    position: absolute !important;
    left: 26px !important;
    bottom: 10px !important;
    width: 245px !important;
    height: 27px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 9px 0 0 0 !important;
    border-top: 1px solid rgba(255,255,255,.82) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    background: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: .96 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 7.8px !important;
    line-height: 11px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    letter-spacing: .45px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: left !important;
    text-shadow: none !important;
    pointer-events: none !important;
    z-index: 500 !important;
  }
}

/* =====================================================================
   AUTOTRACE — LOGIN DESKTOP MASTER CSS
   Unico blocco grafico autorevole per la login desktop.
   Nessuna logica, HTML, asset, JS, API o registro viene modificato.
   ===================================================================== */
@media (min-width:901px){
  /* ---- VIEWPORT ---- */
  html body #loginView.login-shell{
    position:fixed!important;
    inset:0!important;
    min-height:100vh!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:24px!important;
    overflow:hidden!important;
    isolation:isolate!important;
    background:#05070a!important;
    background-image:radial-gradient(circle at 50% 52%,rgba(255,255,255,.028) 0,rgba(255,255,255,0) 48%)!important;
  }

  /* ---- WATERMARK: SOLO CSS, proporzioni fisse, 4 quadratini ---- */
  html body #loginView.login-shell::before{
    content:""!important;
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    width:520px!important;
    height:650px!important;
    transform:translate(-50%,-46%)!important;
    border:3px solid rgba(210,220,226,.23)!important;
    border-top-width:3px!important;
    border-radius:34% 34% 46% 46% / 12% 12% 54% 54%!important;
    clip-path:polygon(50% 0,88% 16%,88% 54%,84% 67%,76% 78%,64% 89%,50% 100%,36% 89%,24% 78%,16% 67%,12% 54%,12% 16%)!important;
    box-sizing:border-box!important;
    opacity:1!important;
    background:transparent!important;
    pointer-events:none!important;
    z-index:0!important;
  }

  /* Second pseudo-element: A/keyhole + 4 squares, tutto CSS. */
  html body #loginView.login-shell .login-card::before{
    content:""!important;
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    width:128px!important;
    height:155px!important;
    transform:translate(-50%,-52%)!important;
    pointer-events:none!important;
    z-index:0!important;
    background:
      /* quattro quadratini */
      linear-gradient(rgba(210,220,226,.23),rgba(210,220,226,.23)) 104px 4px/14px 14px no-repeat,
      linear-gradient(rgba(210,220,226,.23),rgba(210,220,226,.23)) 122px 22px/14px 14px no-repeat,
      linear-gradient(rgba(210,220,226,.23),rgba(210,220,226,.23)) 104px 40px/14px 14px no-repeat,
      linear-gradient(rgba(210,220,226,.23),rgba(210,220,226,.23)) 86px 22px/14px 14px no-repeat,
      /* chiave */
      radial-gradient(circle at 50% 79%,rgba(210,220,226,.23) 0 9px,transparent 10px),
      linear-gradient(rgba(210,220,226,.23),rgba(210,220,226,.23)) 61px 84px/6px 38px no-repeat,
      /* A stilizzata */
      linear-gradient(126deg,transparent 46%,rgba(210,220,226,.23) 47% 53%,transparent 54%) 28px 47px/46px 54px no-repeat,
      linear-gradient(234deg,transparent 46%,rgba(210,220,226,.23) 47% 53%,transparent 54%) 54px 47px/46px 54px no-repeat,
      linear-gradient(rgba(210,220,226,.23),rgba(210,220,226,.23)) 46px 76px/36px 5px no-repeat!important;
    opacity:1!important;
  }

  html body #loginView.login-shell::after,
  html body #loginView.login-shell .login-card::after{
    content:none!important;
    display:none!important;
  }

  /* ---- FORM ---- */
  html body #loginView.login-shell .login-card{
    position:relative!important;
    z-index:2!important;
    width:430px!important;
    max-width:calc(100vw - 56px)!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
    isolation:isolate!important;
    transform:none!important;
  }

  html body #loginView.login-shell .login-card > *{
    position:relative!important;
    z-index:3!important;
  }

  /* Logo: più grande, centrato. Il file esistente viene usato soltanto dal logo già presente. */
  html body #loginView.login-shell .login-card > img.login-logo{
    display:block!important;
    width:390px!important;
    max-width:90vw!important;
    height:158px!important;
    object-fit:contain!important;
    object-position:center center!important;
    margin:0 auto 8px!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    opacity:1!important;
    filter:grayscale(1) brightness(1.65) contrast(1.08)!important;
  }

  /* Payoff del logo: nessun fondo che lo copra. */
  html body #loginView.login-shell .brand-payoff-login{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
    font-weight:700!important;
    letter-spacing:.22em!important;
    text-shadow:0 0 7px rgba(255,255,255,.10)!important;
  }

  /* ---- CAMPI: soltanto linea, corta e centrata ---- */
  html body #loginView.login-shell .login-card > label{
    position:relative!important;
    display:block!important;
    width:305px!important;
    max-width:82vw!important;
    height:48px!important;
    margin:0 auto 11px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:transparent!important;
    font-size:0!important;
    line-height:0!important;
  }

  html body #loginView.login-shell .login-card > label > input#loginUser,
  html body #loginView.login-shell .login-card > label > input#loginPassword{
    display:block!important;
    width:305px!important;
    max-width:82vw!important;
    height:43px!important;
    margin:0!important;
    padding:0 4px 0 34px!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.88)!important;
    border-radius:0!important;
    outline:0!important;
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    caret-color:#fff!important;
    font-size:14px!important;
    font-weight:600!important;
    line-height:43px!important;
  }

  html body #loginView.login-shell .login-card > label > input::placeholder{
    color:rgba(255,255,255,.84)!important;
    -webkit-text-fill-color:rgba(255,255,255,.84)!important;
    opacity:1!important;
  }

  html body #loginView.login-shell .login-card > label:first-of-type::before,
  html body #loginView.login-shell .login-card > label:nth-of-type(2)::before{
    position:absolute!important;
    left:4px!important;
    top:21px!important;
    transform:translateY(-50%)!important;
    color:#fff!important;
    opacity:.95!important;
    z-index:4!important;
    line-height:1!important;
    font-family:Arial,Helvetica,sans-serif!important;
  }
  html body #loginView.login-shell .login-card > label:first-of-type::before{content:"♙"!important;font-size:17px!important;}
  html body #loginView.login-shell .login-card > label:nth-of-type(2)::before{content:"▣"!important;font-size:15px!important;}

  html body #loginView.login-shell .login-card .login-message{
    width:305px!important;
    min-height:15px!important;
    margin:0 auto!important;
    text-align:center!important;
    background:transparent!important;
    color:#fff!important;
    font-size:11px!important;
  }

  /* ---- FRECCIA ---- */
  html body #loginView.login-shell .login-card #loginBtn.btn.primary.wide{
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    height:44px!important;
    min-height:44px!important;
    margin:-4px auto 0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:transparent!important;
    -webkit-text-fill-color:transparent!important;
    transform:none!important;
  }
  html body #loginView.login-shell .login-card #loginBtn.btn.primary.wide::before{
    content:"→"!important;
    display:block!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:35px!important;
    line-height:1!important;
    font-weight:300!important;
    transform:translateY(-3px)!important;
  }
  html body #loginView.login-shell .login-card #loginBtn:hover,
  html body #loginView.login-shell .login-card #loginBtn:focus,
  html body #loginView.login-shell .login-card #loginBtn:active{
    transform:none!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html body #loginView.login-shell .login-card #loginBtn .login-btn-label,
  html body #loginView.login-shell .login-card #loginBtn .login-spinner{
    display:none!important;
  }

  /* ---- AUTOFILL ---- */
  html body #loginView.login-shell input#loginUser:-webkit-autofill,
  html body #loginView.login-shell input#loginPassword:-webkit-autofill,
  html body #loginView.login-shell input#loginUser:-webkit-autofill:hover,
  html body #loginView.login-shell input#loginPassword:-webkit-autofill:hover,
  html body #loginView.login-shell input#loginUser:-webkit-autofill:focus,
  html body #loginView.login-shell input#loginPassword:-webkit-autofill:focus{
    -webkit-box-shadow:0 0 0 1000px transparent inset!important;
    box-shadow:0 0 0 1000px transparent inset!important;
    -webkit-text-fill-color:#fff!important;
    caret-color:#fff!important;
    transition:background-color 99999s ease-out 0s!important;
  }

  /* Mantiene la transizione della login: .hidden deve continuare a vincere. */
  html body #loginView.login-shell.hidden{display:none!important;}
}

/* AutoTrace — centratura della pagina iniziale, solo presentazione mobile. */
@media (max-width: 900px) {
  html body #loginView.login-shell {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px !important;
    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)) !important;
    overflow: visible !important;
  }
  html body #loginView.login-shell .login-card {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 430px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: auto !important;
    padding: 24px clamp(16px, 5vw, 28px) !important;
    transform: none !important;
    translate: none !important;
  }
  html body #loginView.login-shell .login-card > img.login-logo {
    display: block !important;
    width: 100% !important;
    max-width: 360px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto 16px !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }
  html body #loginView.login-shell .login-card > label {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html body #loginView.login-shell .login-card > label > input {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  html body #loginView.login-shell.hidden { display: none !important; }
}

/* AutoTrace mobile UI patch 2026-10-11 R2: solo smartphone, desktop intatto. */
@media screen and (max-width:900px){
  html body.at-mobile-v7 #atMobileV7 .at6-tab,
  html body.at-mobile-v7 #atMobileV7 .at6-search input,
  html body.at-mobile-v7 #atMobileV7 .at6-search-actions button {border-radius:16px!important;}
  html body.at-mobile-v7 #atMobileV7 .at6-foot {display:none!important;visibility:hidden!important;}
  html body.at-mobile-v7 #atMobileV7 .at6-scroll {padding-bottom:22px!important;}
  html body.at-mobile-v7 #atMobileV7 .at6-user .at6-logout {display:block!important;margin-top:7px!important;color:#f2b9b9!important;border:0!important;background:none!important;padding:4px 0!important;font-size:14px!important;font-weight:800!important;text-align:left!important;}
  html body #loginView.login-shell:not(.hidden) {display:flex!important;justify-content:center!important;align-items:center!important;min-height:100dvh!important;padding:16px!important;}
  html body #loginView.login-shell:not(.hidden) .login-card {position:relative!important;top:auto!important;left:auto!important;right:auto!important;transform:none!important;margin:auto!important;width:min(430px,100%)!important;}
}
