:root{--bg:#f6f8fb;--panel:#fff;--text:#172022;--muted:#6b777b;--line:#dfe8f1;--brand:#1456a3;--brand2:#0b244f;--navy:#071a3a;--soft:#f4f8fc;--danger:#b42318;--ok:#0f766e}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);font-size:14px}a{text-decoration:none;color:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:260px;background:#fff;color:#0b244f;padding:0;position:fixed;height:100vh;border-right:1px solid var(--line);box-shadow:8px 0 28px rgba(8,28,62,.04);overflow:auto}.qa-brand{padding:20px 18px 16px;border-bottom:1px solid var(--line);display:block}.qa-brand-logo{display:block;width:142px;height:auto;margin:0 0 5px}.brand-product{color:#071a3a;font-weight:900;font-size:12px;letter-spacing:.08em}.brand-version{display:block;margin-top:3px;color:#111;font-weight:650;font-size:11px;line-height:1}.nav{display:flex;flex-direction:column;gap:4px;padding:15px 14px 18px}.nav-section{color:#718198;font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin:14px 10px 5px}.nav-link{display:flex;align-items:center;gap:10px;border-radius:12px;color:#0b244f;font-weight:760;padding:10px 11px}.nav-link:hover{background:#f3f7fc}.nav-link.active{background:#eef4fb;color:#0d4f9b;box-shadow:inset 3px 0 0 #1456a3}.nav-ico{width:26px;height:26px;border-radius:9px;background:#f3f7fc;color:#1456a3;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900}.nav-link.active .nav-ico{background:#dfeeff}.main{margin-left:260px;width:calc(100% - 260px);padding:20px 26px 34px}.qa-topbar{min-height:78px;padding:18px 22px;margin-bottom:16px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 28px rgba(8,28,62,.04);border-radius:20px;display:flex;justify-content:space-between;align-items:center}.top-left{display:flex;align-items:center;gap:14px}.hamburger{width:46px;height:46px;border-radius:14px;border:1px solid var(--line);background:#fff;color:#1456a3;font-size:19px}.top-kicker{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}.qa-topbar h1{font-size:26px;line-height:1.1;margin:0;color:#071a3a;font-weight:900;letter-spacing:-.02em}.top-actions{display:flex;align-items:center;gap:10px}.user-pill{border:1px solid var(--line);background:#fff;border-radius:15px;padding:10px 13px;min-width:170px}.user-pill span{display:block;color:#708197;font-size:11px}.user-pill strong{display:block;color:#071a3a;font-size:13px}.user-pill small{display:block;color:#1456a3;font-size:11px}.content{display:flex;flex-direction:column;gap:14px}.flash-wrap{margin-bottom:14px}.flash{padding:12px 14px;border-radius:12px;margin-bottom:8px;border:1px solid var(--line);background:#fff}.flash.success{background:#edf8f4;color:#047857;border-color:#d5eee5}.flash.error{background:#fff0ed;color:var(--danger);border-color:#ffd5ce}.aura-workbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;position:relative}.aura-workbar-left,.aura-workbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.aura-btn{height:38px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#0b244f;padding:0 14px;font-weight:760;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}.aura-btn.primary,.aura-btn.active{background:#1456a3;border-color:#1456a3;color:#fff}.aura-btn.danger{color:var(--danger);border-color:#ffd5ce;background:#fff7f5}.aura-btn:hover{border-color:#b9c6c9}.aura-dropdown{position:relative}.aura-pop{display:none;position:absolute;right:0;top:calc(100% + 8px);width:min(460px,calc(100vw - 60px));background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 44px rgba(6,21,43,.16);z-index:30;padding:14px}.aura-dropdown.open .aura-pop{display:block}.aura-pop.wide{width:min(560px,calc(100vw - 60px))}.aura-pop-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.aura-pop-head strong{font-size:15px}.aura-pop-head small{display:block;color:var(--muted);margin-top:3px}.aura-field{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.aura-field label{font-size:12px;color:#516064;font-weight:650}.aura-field input,.aura-field select{height:38px;border:1px solid var(--line);border-radius:11px;padding:0 11px;background:#fff;font-size:14px;width:100%}.aura-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.aura-pop-footer{display:flex;justify-content:space-between;gap:8px;margin-top:12px;border-top:1px solid var(--line);padding-top:12px}.period-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}.period-chip{border:1px solid var(--line);background:#f8fafc;border-radius:10px;height:34px;font-weight:760;color:#0b244f;cursor:pointer}.period-chip:hover{border-color:#b7cbe1;background:#f5f8fc}.aura-table-wrap{border:1px solid var(--line);border-radius:16px;overflow:auto;background:#fff}.aura-table{width:100%;border-collapse:separate;border-spacing:0}.aura-table th{position:sticky;top:0;background:#f8fafb;color:#516064;font-weight:650;font-size:12px;text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);z-index:1}.aura-table td{font-size:14px;padding:11px 14px;border-bottom:1px solid #eef3f4;vertical-align:top}.aura-table tbody tr.clickable{cursor:pointer}.aura-table tbody tr.clickable:hover td{background:#f5f8fc}.aura-empty,.empty{text-align:center;color:var(--muted);padding:30px!important}.panel,.card,.metric{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px rgba(8,32,74,.05)}.panel{padding:18px}.panel.no-pad{padding:0;overflow:hidden}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-head h2{margin:0;color:#071a3a;font-size:19px}.panel-head p{margin:5px 0 0;color:var(--muted);line-height:1.35}.cards-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric{padding:15px 16px}.metric span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}.metric strong{font-size:25px;color:#071a3a}.form{display:grid;gap:12px}.form-grid,.form.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:end}.form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#516064;font-weight:650}.form input,.form select,.form textarea{height:39px;border:1px solid var(--line);border-radius:11px;padding:8px 10px;color:var(--text);background:#fff;font-size:14px}.form textarea{min-height:76px;resize:vertical}.span-1{grid-column:span 1}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.span-4{grid-column:span 4}.check{height:39px;justify-content:center;flex-direction:row!important;align-items:center;color:#172022!important}.check input{height:auto;width:auto}.form-footer{border-top:1px solid var(--line);padding:14px 18px;display:flex;justify-content:flex-end;gap:10px;background:#fbfcfc;border-radius:0 0 18px 18px}.form-footer.split{justify-content:space-between}.footer-right{display:flex;gap:8px}.btn{border:1px solid var(--line);border-radius:12px;background:#fff;color:#0b244f;padding:10px 14px;font-weight:760;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.btn-primary,.btn.primary{background:#1456a3;border-color:#1456a3;color:#fff}.btn-light{background:#fff}.btn-danger{background:#fff7f5;border-color:#ffd5ce;color:var(--danger)}.badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef4fb;color:#1456a3;font-size:12px;font-weight:760}.muted{color:var(--muted)}.small-text{font-size:12px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.table{width:100%;border-collapse:collapse}.table th{color:#516064;font-size:12px;font-weight:650;text-align:left;border-bottom:1px solid var(--line);background:#f8fafb;padding:11px 14px}.table td{border-bottom:1px solid #eef3f4;padding:11px 14px}.table.clickable tbody tr{cursor:pointer}.table.clickable tbody tr:hover td{background:#f5f8fc}.order-panel{padding:0;overflow:hidden}.order-head{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 20px 14px;border-bottom:1px solid var(--line)}.order-head h2{font-size:23px;font-weight:800;margin:0;color:#071a3a;letter-spacing:-.02em}.order-head .order-sub{margin-top:5px;color:var(--muted)}.tabs{display:flex;border-bottom:1px solid var(--line);background:#fff}.two-tabs .tab{width:50%;text-align:center}.tab{padding:13px 16px;color:#6a7580;font-weight:800;text-transform:uppercase;font-size:12px;letter-spacing:.04em;border-bottom:2px solid transparent}.tab.active{color:#071a3a;border-bottom-color:#1456a3}.order-form{padding:18px 20px 20px}.details-box{border:1px solid var(--line);background:#fbfdff;border-radius:12px;padding:12px}.details-box summary{cursor:pointer;color:#071a3a;font-weight:800}.inner-detail{margin:12px 0}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.detail-grid div{border:1px solid var(--line);background:#fafcff;border-radius:12px;padding:12px}.detail-grid span{display:block;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.detail-grid strong{color:#071a3a}.attachments-area{padding:18px 20px 24px}.upload-box{border:1px dashed #b8c9db;background:#fbfdff;border-radius:16px;min-height:94px;display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:14px;position:relative}.upload-box input[type=file]{position:absolute;opacity:0;inset:0;cursor:pointer}.upload-box label{font-weight:800;color:#0b244f;cursor:pointer}.files-list{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.files-title{padding:12px 14px;background:#f8fafb;color:#516064;font-size:12px;font-weight:800;border-bottom:1px solid var(--line)}.file-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #eef3f4}.file-name{font-weight:650;color:#0b244f}.file-actions{display:flex;align-items:center;gap:8px}.icon-btn{width:34px;height:34px;border:1px solid var(--line);background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.icon-btn.danger{color:var(--danger);border-color:#ffd5ce;background:#fff7f5}.auth-body{min-height:100vh;background:linear-gradient(135deg,#eef3f8,#f7f9fc);display:flex;align-items:center;justify-content:center}.auth-card{width:430px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px;box-shadow:0 18px 44px rgba(15,35,60,.1)}.auth-logo{text-align:center;color:#071a3a;font-weight:900;font-size:26px;letter-spacing:1px}.auth-version{text-align:center;color:var(--muted);font-size:12px;margin:7px 0 22px}.auth-card h2{text-align:center;margin:0 0 8px;color:#071a3a}.center{text-align:center}.compact{margin:0 0 14px}@media(max-width:1100px){.sidebar{position:static;width:100%;height:auto}.app-shell{display:block}.main{margin-left:0;width:100%}.cards-grid,.two-col,.form-grid,.form.grid-4,.detail-grid{grid-template-columns:1fr}.span-2,.span-3,.span-4{grid-column:span 1}.aura-workbar{align-items:stretch;flex-direction:column}.aura-workbar-left,.aura-workbar-right{width:100%}.aura-btn{width:100%}.aura-pop{position:static;width:100%;box-shadow:none;margin-top:8px}.qa-topbar{align-items:stretch;flex-direction:column}.top-actions{align-items:stretch;flex-direction:column}.user-pill{width:100%}}
/* QUICK TRASPORTI V5 - workbench allegati + dati */
.document-workbench{display:grid;grid-template-columns:minmax(520px,42%) minmax(620px,58%);gap:0;border-top:0;min-height:620px}.document-data-panel{border-right:1px solid var(--line);background:#fff}.document-preview-panel{background:#f5f7fa;display:flex;flex-direction:column;min-width:0}.doc-panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);background:#fbfcfe}.doc-panel-title strong{color:#071a3a;font-size:15px}.doc-panel-title span{color:var(--muted);font-size:12px;line-height:1.35;text-align:right}.compact-doc-form{padding:16px 18px 0;grid-template-columns:repeat(2,1fr)!important}.compact-doc-form .span-2,.compact-doc-form .span-4{grid-column:span 2}.compact-doc-form .detail-grid{grid-template-columns:repeat(2,1fr)}.mini-files-list{border-radius:0;border-left:0;border-right:0;border-top:0;max-height:176px;overflow:auto}.mini-files-list .file-row{padding:9px 12px}.mini-files-list .file-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-row.active-file{background:#edf4ff}.file-row.active-file .file-name{color:#1456a3}.preview-frame-wrap{flex:1;min-height:390px;background:#d7d9dd;border-bottom:1px solid var(--line);display:flex;align-items:stretch;justify-content:center}.preview-frame-wrap iframe{width:100%;height:100%;min-height:520px;border:0;background:#fff}.preview-empty{width:100%;display:flex;align-items:center;justify-content:center;color:var(--muted);font-weight:760}.compact-upload{margin:12px 14px 14px;min-height:74px;background:#fff}.order-form .form-footer{margin:8px -20px 0}.compact-doc-form .form-footer{margin:8px -18px 0}.document-workbench .icon-btn{flex:0 0 auto}.document-workbench .file-actions form{margin:0}@media(max-width:1300px){.document-workbench{grid-template-columns:1fr}.document-data-panel{border-right:0;border-bottom:1px solid var(--line)}.preview-frame-wrap iframe{min-height:460px}}@media(max-width:800px){.compact-doc-form{grid-template-columns:1fr!important}.compact-doc-form .span-2,.compact-doc-form .span-4{grid-column:span 1}.doc-panel-title{flex-direction:column}.doc-panel-title span{text-align:left}}
/* QUICK TRASPORTI V6 - Cabina modale + picker lente */
.qt-modal-backdrop,.qt-picker-modal{display:none;position:fixed;inset:0;background:rgba(8,18,38,.42);z-index:2000;align-items:center;justify-content:center;padding:22px}.qt-modal-backdrop.open,.qt-picker-modal.open{display:flex}.qt-modal{width:min(1180px,96vw);max-height:92vh;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 28px 80px rgba(2,18,45,.28);display:flex;flex-direction:column;overflow:hidden}.qt-modal-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:#fff}.qt-modal-head h2{margin:0;color:#071a3a;font-size:25px;font-weight:900}.qt-modal-head p{margin:6px 0 0;color:var(--muted)}.qt-close{width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#0b244f;font-size:22px;line-height:1;cursor:pointer}.qt-modal-body{display:none;padding:18px 22px 8px;overflow:auto}.qt-modal-body.active{display:block}.modal-tabs .tab{border:0;border-bottom:2px solid transparent;background:#fff;cursor:pointer}.qt-modal-footer{padding:14px 22px;border-top:1px solid var(--line);background:#fbfcfe;display:flex;justify-content:flex-end;gap:10px}.modal-order-form{padding:0!important}.picker-line{display:flex;gap:8px}.picker-line input{flex:1;background:#fff}.lens-btn{width:44px;padding:0}.qt-secondary-details{margin-top:2px}.secondary-grid{margin-top:12px;padding:0!important}.qt-allegati-placeholder{border:1px dashed #b8c9db;border-radius:16px;background:#fbfdff;padding:44px!important;text-align:center;line-height:1.6}.qt-picker-box{width:min(720px,94vw);max-height:82vh;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 28px 80px rgba(2,18,45,.3);display:flex;flex-direction:column;overflow:hidden}.qt-picker-head{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start}.qt-picker-head strong{display:block;color:#071a3a;font-size:18px}.qt-picker-head small{display:block;margin-top:4px;color:var(--muted)}.qt-picker-search{display:flex;gap:8px;padding:14px 18px;border-bottom:1px solid var(--line);background:#fbfcfe}.qt-picker-search input{height:40px;border:1px solid var(--line);border-radius:12px;padding:0 12px;flex:1}.qt-picker-results{overflow:auto;padding:10px;max-height:52vh}.picker-result-row{width:100%;text-align:left;border:1px solid transparent;background:#fff;border-radius:12px;padding:12px 14px;cursor:pointer;display:flex;flex-direction:column;gap:4px}.picker-result-row:hover{border-color:#bfd4ee;background:#f4f8fc}.picker-result-row strong{color:#071a3a}.picker-result-row span{font-size:12px;color:var(--muted);line-height:1.35}.qt-picker-field .picker-line input[readonly]{cursor:pointer;background:#fff}.qt-picker-field .picker-line input[readonly]:focus{outline:2px solid #d5e7ff;border-color:#1456a3}@media(max-width:900px){.qt-modal-backdrop,.qt-picker-modal{padding:10px}.qt-modal{max-height:96vh}.qt-modal-head{padding:14px}.qt-modal-body{padding:14px}.qt-modal-footer{padding:12px}.picker-line{flex-direction:row}.lens-btn{width:42px}}
/* QUICK TRASPORTI V8 - modale nuovo viaggio XL con allegati prima del salvataggio */
.qt-modal.quick-xl-modal{width:min(1540px,98vw);max-height:96vh}
.qt-modal.quick-xl-modal .qt-modal-body{max-height:calc(96vh - 190px)}
.modal-document-workbench{display:grid;grid-template-columns:minmax(420px,34%) minmax(720px,66%);gap:0;min-height:610px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.modal-doc-left{border-right:1px solid var(--line);background:#fff;display:flex;flex-direction:column;min-width:0}
.modal-doc-right{background:#eef1f5;display:flex;flex-direction:column;min-width:0}
.modal-upload-box{margin:14px;min-height:110px;background:#fbfdff}
.modal-preview-wrap{flex:1;min-height:520px;background:#d7d9dd;display:flex;align-items:stretch;justify-content:center}
.modal-preview-frame{width:100%;height:100%;min-height:520px;border:0;background:#fff}
.modal-preview-img{max-width:100%;max-height:100%;object-fit:contain;margin:auto;background:#fff}
.modal-file-row{width:100%;border:0;border-bottom:1px solid #eef3f4;background:#fff;text-align:left;cursor:pointer}
.modal-file-row:hover{background:#f5f8fc}.compact-note{margin:14px!important;padding:18px!important;line-height:1.45}.mini-files-list#newSelectedFiles{border-left:0;border-right:0;border-radius:0;max-height:220px;overflow:auto}.preview-empty{padding:30px;text-align:center;align-self:center}
@media(max-width:1100px){.modal-document-workbench{grid-template-columns:1fr}.modal-doc-left{border-right:0;border-bottom:1px solid var(--line)}.modal-preview-wrap,.modal-preview-frame{min-height:420px}}
/* QUICK TRASPORTI V9 - layout dati logico + anteprima allegati solo su richiesta */
.qt-logical-form textarea{min-height:74px}
.modal-attachments-clean{padding:18px 22px 20px}
.new-preview-stage{margin-top:14px;display:grid;grid-template-columns:minmax(360px,32%) minmax(720px,68%);border:1px solid var(--line);border-radius:16px;overflow:hidden;min-height:560px;background:#fff}.new-preview-left{border-right:1px solid var(--line);background:#fff}.new-preview-left .muted-note{padding:16px 18px;color:var(--muted);line-height:1.45}.new-preview-right{background:#d7d9dd;display:flex;align-items:stretch;justify-content:center;min-width:0}.new-preview-right iframe{width:100%;height:100%;min-height:560px;border:0;background:#fff}.preview-footer-actions{padding:12px 14px;border-top:1px solid var(--line);background:#fbfcfe;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.attachments-list-only{padding:18px 20px 20px}.attachments-list-only .doc-panel-title{border:1px solid var(--line);border-radius:16px 16px 0 0}.attachments-list-only .files-list{border-radius:0 0 16px 16px}.clean-upload{margin:14px 0;background:#fff}.compact-doc-form textarea{min-height:92px}.compact-doc-form .qt-secondary-details{display:none}.compact-doc-form .span-4{grid-column:span 2}.compact-doc-form label.span-4{grid-column:span 2}.compact-doc-form label.span-2{grid-column:span 1}@media(max-width:1100px){.new-preview-stage{grid-template-columns:1fr}.new-preview-left{border-right:0;border-bottom:1px solid var(--line)}.new-preview-right iframe{min-height:460px}}@media(max-width:800px){.compact-doc-form .span-4,.compact-doc-form label.span-4,.compact-doc-form label.span-2{grid-column:span 1}}

/* QUICK TRASPORTI V11 - Modale viaggio: anteprima allegato in modalità Fattura24 */
.new-modal-workspace{display:block;min-height:0}
.new-modal-panels{min-width:0}
.new-preview-dock{display:none;min-width:0;background:#f4f6f9;border-left:1px solid var(--line);flex-direction:column}
.qt-modal.preview-mode .new-modal-workspace{display:grid;grid-template-columns:minmax(520px,40%) minmax(720px,60%);min-height:610px;overflow:hidden}
.qt-modal.preview-mode .new-preview-dock{display:flex!important}
.qt-modal.preview-mode .new-modal-panels{overflow:auto;max-height:calc(96vh - 220px);border-right:1px solid var(--line)}
.qt-modal.preview-mode .qt-modal-body{padding:16px 18px}
.new-preview-wrap{flex:1;display:flex;align-items:stretch;justify-content:center;background:#d7d9dd;min-height:560px;overflow:auto}
.new-preview-wrap .modal-preview-frame{width:100%;height:100%;min-height:560px;border:0;background:#fff}
.new-preview-wrap .modal-preview-img{max-width:100%;height:auto;object-fit:contain;background:#fff;margin:auto}
.modal-preview-help{margin-top:12px;padding:12px 14px;border:1px dashed #b8c9db;border-radius:14px;background:#fbfdff;color:var(--muted);line-height:1.45}
.qt-modal.preview-mode .modal-tabs{display:flex}
.qt-modal.preview-mode [data-modal-panel=allegati],.qt-modal.preview-mode [data-modal-panel=statistiche]{display:none!important}
.qt-modal.preview-mode [data-modal-panel=dati]{display:block!important}
@media(max-width:1200px){.qt-modal.preview-mode .new-modal-workspace{grid-template-columns:1fr}.new-preview-dock{border-left:0;border-top:1px solid var(--line)}.new-preview-wrap,.new-preview-wrap .modal-preview-frame{min-height:460px}}
/* QUICK TRASPORTI V13 - Allegati clickable preview */
.inline-action-form{margin:0;display:block}.inline-action-form .aura-btn{width:100%;justify-content:flex-start}.ldv-form textarea{min-height:88px}.ldv-form .muted-note{padding:12px 14px;border:1px dashed #b8c9db;border-radius:14px;background:#fbfdff;color:var(--muted);line-height:1.45}.aura-pop .inline-action-form+.aura-btn{margin-top:6px}

/* V13: click sul nome file apre anteprima */
.clickable-file-row{cursor:pointer}.clickable-file-row:hover{background:#f5f8fc}.file-name-preview{display:block;color:#1456a3;font-weight:800;text-decoration:none}.file-name-preview:hover{text-decoration:underline}


/* QUICK TRASPORTI V14 - Allegati stile Fattura24 compatto */
.f24-attachments{padding:20px 18px 0;background:#fff;min-height:560px;display:flex;flex-direction:column}
.f24-new-attachments{min-height:520px;padding:18px 44px 0}
.f24-field{display:flex;flex-direction:column;gap:8px;margin-bottom:22px}
.f24-field label{font-size:13px;color:#43515b;font-weight:600}
.f24-info{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:999px;background:#7b8a96;color:#fff;font-size:11px;font-weight:900;margin-left:4px}
.f24-field select{height:32px;border:1px solid #cfd8e3;border-radius:4px;background:#fff;padding:0 8px;font-size:14px;color:#071a3a;width:100%}
.f24-list-caption{color:#334155;font-size:14px;margin-bottom:12px}
.f24-file-table{border-top:1px solid #d8dee7;background:#fff;min-height:332px;overflow:hidden;display:block}
.f24-file-row,.f24-empty-row,.f24-blank-row{height:43px;border-bottom:1px solid #d8dee7;display:flex;align-items:center;background:#fff}
.f24-file-row:nth-child(even),.f24-blank-row:nth-child(even){background:#f5f7fa}
.f24-file-row{justify-content:space-between;gap:16px;padding:0 20px 0 4px;cursor:pointer}
.f24-file-row:hover{background:#eef4fb}
.f24-file-name{border:0;background:transparent;color:#0b244f;font-weight:600;text-align:left;font-size:13px;line-height:1;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%;padding:0;text-decoration:none}
.f24-file-name:hover{text-decoration:underline;color:#1456a3}
.f24-file-actions{display:flex;align-items:center;justify-content:flex-end;gap:22px;min-width:170px;color:#143257}
.f24-icon-btn{width:24px;height:24px;border:0;background:transparent;color:#143257;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;cursor:pointer;padding:0;text-decoration:none;font-weight:700}
.f24-icon-btn:hover{color:#1456a3;transform:translateY(-1px)}
.f24-menu-btn{font-size:23px;font-weight:900;color:#0b244f}
.f24-file-actions form{margin:0;display:inline-flex}
.f24-size{font-size:12px;color:#566370;white-space:nowrap;margin-right:6px}
.f24-empty-row{justify-content:flex-start;color:#6b777b;padding:0 4px;font-size:13px}
.f24-upload-row{height:62px;border-top:1px solid #d8dee7;background:#fff;display:flex;align-items:center;justify-content:center;position:relative;margin-top:auto;color:#263948;font-weight:600;letter-spacing:.02em}
.f24-upload-row input[type=file]{position:absolute;opacity:0;inset:0;cursor:pointer}
.f24-upload-row label{cursor:pointer;color:#263948;font-weight:650;text-align:center;text-transform:uppercase;font-size:13px;width:100%}
.f24-upload-row:hover label{color:#1456a3}
.f24-help-line{height:30px;border-top:1px solid #eef2f6;color:#6b777b;font-size:12px;display:flex;align-items:center;padding-left:2px}
.f24-footer{border-top:1px solid #d8dee7;background:#fff;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 8px 0;margin-top:0}
.f24-footer.split{justify-content:space-between}
.f24-footer .aura-btn{height:32px;border-radius:4px;text-transform:uppercase;font-size:12px;padding:0 12px}
.f24-footer .aura-btn.primary{background:#4caf50;border-color:#4caf50}
.f24-footer .aura-btn.danger{background:#ff3b30;color:#fff;border-color:#ff3b30}
.f24-footer .aura-dropdown{position:relative}
.f24-footer .aura-pop{right:0;bottom:calc(100% + 8px);top:auto;width:220px}
.f24-actions-dd>.aura-btn{background:#4caf50;border-color:#4caf50;color:#fff}
.f24-detail-attachments{min-height:610px;padding-left:20px;padding-right:20px}
.f24-detail-attachments .f24-file-table{min-height:430px}
.qt-modal .f24-new-attachments .f24-file-table{min-height:300px}
.qt-modal.preview-mode .f24-new-attachments{padding:10px 0 0;min-height:0}
.qt-modal.preview-mode .f24-field,.qt-modal.preview-mode .f24-list-caption,.qt-modal.preview-mode .f24-file-table,.qt-modal.preview-mode .f24-upload-row,.qt-modal.preview-mode .f24-help-line{display:none}
@media(max-width:900px){.f24-new-attachments{padding-left:16px;padding-right:16px}.f24-file-actions{gap:12px;min-width:110px}.f24-file-name{max-width:58%}.f24-footer,.f24-footer.split{flex-direction:column;align-items:stretch}.f24-footer .footer-right{width:100%;display:flex;flex-direction:column}.f24-footer .aura-btn{width:100%}}

.f24-file-row.active-file{background:#edf4ff}.f24-file-row.active-file .f24-file-name{color:#1456a3}

/* QUICK TRASPORTI V16 - Ordini: grafica elenco pulita stile gestionale/Fattura24 */
.qa-topbar{min-height:66px;padding:14px 20px;border-radius:16px;margin-bottom:14px}.qa-topbar h1{font-size:24px}.hamburger{width:42px;height:42px;border-radius:11px}.content{gap:10px}.f24-order-toolbar{margin-bottom:8px}.f24-order-toolbar .aura-btn{height:32px;border-radius:4px;font-size:13px;font-weight:700;padding:0 13px}.f24-order-toolbar .f24-green{background:#2fac55;border-color:#2fac55;color:#fff}.f24-order-toolbar .f24-blue{background:#6d8eb8;border-color:#6d8eb8;color:#fff}.f24-order-total{display:inline-flex;align-items:center;gap:8px;min-height:32px;border-left:1px solid #d7dee8;padding-left:12px;margin-left:4px;color:#0b244f}.f24-order-total span{font-size:12px;color:#4c5b66}.f24-order-total strong{font-size:18px;color:#071a3a;font-weight:800}.f24-total-icon{font-weight:900;color:#40566d;font-size:14px}.f24-orders-panel{border-radius:0;box-shadow:none;border:1px solid #d7dee8;background:#fff;overflow:hidden}.f24-orders-table-wrap{overflow:auto;background:#fff}.f24-orders-table{border-collapse:collapse;border-spacing:0;font-size:13px}.f24-orders-table th{position:sticky;top:0;background:#fff;color:#20313f;font-size:12px;font-weight:700;padding:10px 12px;border-bottom:1px solid #cfd8e3;white-space:nowrap}.f24-orders-table td{font-size:13px;padding:10px 12px;border-bottom:1px solid #dfe5ec;color:#102033;vertical-align:middle;white-space:nowrap}.f24-orders-table tbody tr:nth-child(odd) td{background:#f4f6f8}.f24-orders-table tbody tr:nth-child(even) td{background:#fff}.f24-orders-table tbody tr.clickable:hover td{background:#eaf1f9}.f24-orders-table .num{text-align:right;font-variant-numeric:tabular-nums}.f24-orders-table .center{text-align:center}.f24-orders-table .f24-check{width:34px;text-align:center;padding-left:12px;padding-right:4px}.f24-orders-table .f24-star{width:32px;text-align:center;color:#233b52;font-size:20px;line-height:1}.f24-orders-table input[type=checkbox]{width:15px;height:15px;accent-color:#1456a3}.f24-list-footer{height:42px;display:flex;align-items:center;justify-content:flex-end;gap:22px;border-top:1px solid #d7dee8;background:#fff;color:#566370;font-size:13px;padding:0 14px}.f24-orders-panel .aura-empty{background:#fff!important;color:#6b777b}.panel.no-pad.f24-orders-panel .panel-head{display:none}
@media(max-width:900px){.f24-order-toolbar{align-items:stretch}.f24-order-toolbar,.f24-order-toolbar .aura-workbar-left,.f24-order-toolbar .aura-workbar-right{flex-direction:column;align-items:stretch}.f24-order-total{border-left:0;border-top:1px solid #d7dee8;margin-left:0;padding:8px 0 0}.f24-order-toolbar .aura-btn{width:100%}.f24-orders-table td,.f24-orders-table th{padding:9px 10px}}


/* QUICK TRASPORTI V17 - Header più compatto e meno invasivo */
.qa-topbar{min-height:48px!important;padding:10px 16px!important;border-radius:14px!important;margin-bottom:10px!important;box-shadow:none!important}
.top-left{gap:10px!important}
.hamburger{width:36px!important;height:36px!important;border-radius:10px!important;font-size:16px!important;line-height:1!important}
.page-title-compact{display:flex;flex-direction:column;justify-content:center;gap:1px}
.top-kicker{font-size:10px!important;letter-spacing:.09em!important;margin-bottom:1px!important;color:#7a8795!important}
.qa-topbar h1{font-size:18px!important;line-height:1.05!important;margin:0!important;font-weight:800!important;letter-spacing:-.01em!important}
.top-actions{gap:8px!important}
.user-pill{padding:7px 11px!important;min-width:0!important;border-radius:12px!important}
.user-pill span{font-size:10px!important;line-height:1.05!important}
.user-pill strong{font-size:12px!important;line-height:1.1!important;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-pill small{font-size:10px!important;line-height:1.05!important}
.top-actions .aura-btn{height:34px!important;border-radius:10px!important;padding:0 12px!important}
.main{padding-top:14px!important}
.content{gap:8px!important}
@media(max-width:900px){
  .qa-topbar{padding:8px 12px!important}
  .top-left{gap:8px!important}
  .qa-topbar h1{font-size:17px!important}
  .top-kicker{font-size:9px!important}
  .user-pill strong{max-width:120px}
  .top-actions .aura-btn{height:32px!important;padding:0 10px!important}
}

/* QUICK TRASPORTI V18 - Filtro periodo funzionante e compatto stile Fattura24 */
.f24-period-dd .f24-period-btn{min-width:205px;justify-content:center;background:#fff;color:#0b244f;border-color:#cfd8e3;border-radius:4px!important;height:32px!important}
.f24-period-dd .f24-period-btn.active{background:#1456a3!important;border-color:#1456a3!important;color:#fff!important}
.f24-period-pop{width:590px!important;max-width:calc(100vw - 80px)!important;border-radius:0!important;border:1px solid #cfd8e3!important;padding:14px 18px 12px!important;box-shadow:0 12px 28px rgba(8,28,62,.16)!important;right:0!important;top:calc(100% + 8px)!important}
.f24-period-head{display:flex;align-items:center;justify-content:center;gap:18px;color:#526170;font-size:14px;margin:2px 0 14px;white-space:nowrap}
.f24-period-head strong{font-size:14px;font-weight:500;color:#526170}
.f24-year-arrow{width:22px;height:22px;border:0;background:#fff;color:#40566d;font-size:24px;line-height:20px;cursor:pointer;font-weight:900}
.f24-year-arrow:hover{color:#1456a3}
.f24-period-grid{display:grid;grid-template-columns:130px 135px 1fr 1fr 1fr;gap:0;align-items:start}
.f24-period-col{min-height:130px;padding:2px 14px;border-left:1px solid #dfe5ec;display:flex;flex-direction:column;gap:11px}
.f24-period-col:first-child{border-left:0;padding-left:0}
.f24-period-col button{border:0;background:transparent;text-align:left;color:#68778a;font-size:14px;line-height:1.25;padding:0;cursor:pointer;font-weight:400;white-space:nowrap}
.f24-period-col button:hover{color:#1456a3;text-decoration:underline}
.f24-period-col.quarters button{color:#68778a}
.f24-period-custom{margin-top:12px;border-top:1px solid #dfe5ec;padding-top:12px}
.f24-period-custom .aura-field{margin-bottom:0}
.compact-footer{padding-top:10px!important;margin-top:10px!important}
.compact-footer .aura-btn{height:32px!important;border-radius:4px!important}
@media(max-width:900px){.f24-period-pop{width:100%!important;max-width:100%!important}.f24-period-grid{grid-template-columns:1fr 1fr}.f24-period-col{border-left:0;border-top:1px solid #dfe5ec;padding:12px 0;min-height:auto}.f24-period-col:first-child{border-top:0}.f24-period-dd .f24-period-btn{width:100%;min-width:0}}


/* QUICK TRASPORTI V19 - apertura dettaglio ordini sempre in modale XL, senza perdere filtri */
.qt-detail-modal-backdrop{position:fixed;inset:0;background:rgba(6,18,38,.42);z-index:4000;display:none;align-items:center;justify-content:center;padding:22px}
.qt-detail-modal-backdrop.open{display:flex}
.qt-detail-modal{width:min(1500px,calc(100vw - 44px));height:min(900px,calc(100vh - 44px));background:#fff;border:1px solid #d7e2ef;border-radius:18px;box-shadow:0 24px 80px rgba(6,18,38,.34);display:grid;grid-template-rows:64px 1fr 54px;overflow:hidden}
.qt-detail-head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #dbe5f0;background:#fff;position:sticky;top:0;z-index:2}
.qt-detail-head h2{font-size:20px;line-height:1;margin:0;color:#071a3a;font-weight:850}
.qt-detail-body{min-height:0;background:#f5f8fc;overflow:hidden}
.qt-detail-body iframe{width:100%;height:100%;border:0;background:#fff;display:block}
.qt-detail-footer{height:54px;border-top:1px solid #dbe5f0;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;color:#657182;font-size:13px;position:sticky;bottom:0;z-index:2}
body.qt-detail-open{overflow:hidden}
.qt-modal-frame-body{margin:0;background:#fff;color:#071a3a;font-family:Inter,Arial,sans-serif;overflow:hidden}
.qt-modal-frame-content{height:100vh;overflow:auto;background:#f5f8fc;padding:10px 14px 74px}
.qt-modal-frame-content .aura-workbar{position:sticky;top:0;z-index:20;background:#f5f8fc;margin:0 0 8px;padding:8px 0;border-bottom:1px solid #e0e8f2}
.qt-modal-frame-content .panel{margin-bottom:0}
.qt-modal-frame-content .form-footer,.qt-modal-frame-content .f24-footer{position:sticky;bottom:0;z-index:30;background:#fff;border-top:1px solid #dbe5f0;padding:10px 12px;margin-top:12px;box-shadow:0 -8px 22px rgba(6,18,38,.07)}
.qt-modal-frame-content .detail-metrics{display:none}
.qt-modal-frame-content .page-panel,.qt-modal-frame-content .panel{border-radius:12px}
.qt-modal-frame-content .top-kicker{font-size:10px!important}
@media(max-width:900px){.qt-detail-modal-backdrop{padding:8px}.qt-detail-modal{width:calc(100vw - 16px);height:calc(100vh - 16px);border-radius:12px;grid-template-rows:56px 1fr 52px}.qt-detail-head h2{font-size:17px}.qt-detail-footer span{display:none}}

/* QUICK TRASPORTI V20 - dettaglio ordine uniformato stile F24, meno elementi e footer standard */
.qt-editor-shell{background:#fff;border:1px solid #d7dee8;border-radius:0;box-shadow:none;overflow:hidden}.qt-editor-head{padding:12px 18px 10px;border-bottom:1px solid #d7dee8;background:#fff}.qt-editor-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.qt-editor-head h2{margin:0;color:#34414b;font-size:18px;line-height:1.2;font-weight:500}.qt-editor-head h2 span{font-size:14px;color:#4f5e69;font-weight:400}.qt-editor-toptools{color:#5d6c78;font-size:12px}.qt-editor-sub{margin-top:6px;color:#7a8792;font-size:13px}.qt-inline-tabs{display:flex;gap:24px;padding:0 18px;background:#fff;border-bottom:1px solid #d7dee8}.qt-inline-tab{display:inline-flex;align-items:center;height:42px;border-bottom:2px solid transparent;color:#7a8792;font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:.02em}.qt-inline-tab.active{color:#0b244f;border-bottom-color:#4d5f77}.qt-editor-body{background:#fff}.qt-clean-order-form{padding:18px 18px 0;gap:14px}.qt-clean-order-form label{font-size:12px;color:#495867;font-weight:500}.qt-clean-order-form input,.qt-clean-order-form select,.qt-clean-order-form textarea{height:32px;border:1px solid #cfd9e5;border-radius:4px;padding:6px 10px;font-size:14px;color:#102033;background:#fff}.qt-clean-order-form textarea{min-height:88px}.qt-clean-order-form .picker-line{gap:8px}.qt-clean-order-form .lens-btn{width:42px;height:32px;border-radius:4px}.qt-clean-order-form .details-box{border:1px solid #d7dee8;border-radius:8px;background:#fbfcfe;padding:10px 12px}.qt-clean-order-form .details-box summary{font-size:13px;font-weight:700}.qt-inline-summary{display:flex;align-items:center;gap:10px;border:1px solid #d7dee8;background:#f8fafc;border-radius:4px;padding:10px 12px;color:#33414e;font-size:13px}.qt-inline-summary span{color:#8895a1}.qt-soft-note{padding:12px 14px;border:1px dashed #c7d4e3;border-radius:8px;background:#fbfdff;color:#6a7782;line-height:1.45}.qt-doc-footer{border-top:1px solid #d7dee8!important;background:#fff!important;border-radius:0!important;padding:10px 12px!important;box-shadow:none!important}.qt-doc-footer .footer-right{display:flex;align-items:center;gap:8px}.qt-doc-footer .aura-btn{height:32px;border-radius:4px;font-size:12px;font-weight:700;text-transform:uppercase;padding:0 12px}.qt-doc-footer .aura-btn.primary{background:#4caf50;border-color:#4caf50;color:#fff}.qt-doc-footer .aura-btn.danger{background:#ff3b30;border-color:#ff3b30;color:#fff}.qt-doc-footer .f24-actions-dd>.aura-btn{background:#4caf50;border-color:#4caf50;color:#fff}.qt-doc-footer .aura-pop{width:min(300px,calc(100vw - 60px))}.qt-doc-footer .aura-pop .aura-btn{width:100%;justify-content:flex-start}.qt-clean-attachments{padding:14px 18px 0}.qt-clean-attachments .f24-list-caption{padding-left:0;padding-right:0;font-weight:600;color:#495867}.qt-preview-workbench{border-top:0}@media(max-width:900px){.qt-editor-head{padding:10px 14px}.qt-editor-title-row{align-items:flex-start;flex-direction:column}.qt-inline-tabs{gap:14px;padding:0 14px;overflow:auto}.qt-clean-order-form{padding:14px 14px 0}.qt-clean-order-form .span-2,.qt-clean-order-form .span-4{grid-column:span 1}.qt-inline-summary{flex-wrap:wrap}.qt-doc-footer,.qt-doc-footer.split{flex-direction:column;align-items:stretch}.qt-doc-footer .footer-right{width:100%;display:flex;flex-direction:column}.qt-doc-footer .aura-btn{width:100%}}


/* QUICK TRASPORTI V21 - footer unico nel dettaglio ordine in modale XL
   Il footer esterno della modale iframe è stato eliminato: resta solo il footer documento interno
   con ELIMINA a sinistra e ESCI / AZIONI / SALVA a destra. */
.qt-detail-modal{grid-template-rows:64px 1fr!important}
.qt-detail-footer{display:none!important}
.qt-detail-body{height:100%;min-height:0}
.qt-modal-frame-content{padding:10px 14px 12px!important;height:100vh;box-sizing:border-box;overflow:auto}
.qt-modal-frame-content .qt-editor-shell{min-height:calc(100vh - 22px);display:flex;flex-direction:column}
.qt-modal-frame-content .qt-editor-body{flex:1;min-height:0;overflow:auto;padding-bottom:0}
.qt-modal-frame-content .qt-doc-footer{position:sticky;bottom:0;z-index:50;margin-top:16px}


/* QUICK TRASPORTI V22 - footer operativo fisso e identico in tutti i tab della modale XL
   Regola: ELIMINA a sinistra e ESCI / AZIONI / SALVA a destra devono restare sempre nello stesso punto,
   indipendentemente dal tab aperto o dall'altezza dei contenuti. Scorre solo il corpo centrale. */
.qt-detail-modal{grid-template-rows:56px 1fr!important}
.qt-detail-head{min-height:56px;padding:8px 18px!important}
.qt-detail-head h2{font-size:19px!important}
.qt-modal-frame-body{overflow:hidden!important;background:#f5f8fc!important}
.qt-modal-frame-content{height:100vh!important;box-sizing:border-box!important;overflow:hidden!important;padding:8px 12px 0!important;background:#f5f8fc!important}
.qt-modal-frame-content .qt-editor-shell{height:calc(100vh - 16px)!important;min-height:0!important;display:grid!important;grid-template-rows:auto auto 1fr!important;overflow:hidden!important;background:#fff!important}
.qt-modal-frame-content .qt-editor-body{min-height:0!important;overflow:auto!important;padding-bottom:76px!important;background:#fff!important}
.qt-modal-frame-content .qt-editor-body>form,
.qt-modal-frame-content .qt-editor-body>.f24-attachments,
.qt-modal-frame-content .qt-editor-body>.document-workbench{min-height:calc(100% - 76px)!important;box-sizing:border-box!important}
.qt-modal-frame-content .qt-doc-footer{position:fixed!important;left:12px!important;right:12px!important;bottom:0!important;height:56px!important;z-index:5000!important;box-sizing:border-box!important;margin:0!important;padding:10px 14px!important;border-top:1px solid #d7dee8!important;background:#fff!important;box-shadow:0 -8px 18px rgba(6,18,38,.06)!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.qt-modal-frame-content .qt-doc-footer .footer-right{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-left:auto!important}
.qt-modal-frame-content .qt-doc-footer .aura-btn{height:32px!important;min-height:32px!important;border-radius:4px!important;font-size:12px!important;font-weight:700!important;text-transform:uppercase!important;line-height:30px!important;padding:0 12px!important;white-space:nowrap!important}
.qt-modal-frame-content .qt-doc-footer .aura-pop{bottom:calc(100% + 8px)!important;top:auto!important;right:0!important;z-index:5100!important}
.qt-modal-frame-content .qt-clean-order-form{padding-bottom:10px!important}
.qt-modal-frame-content .f24-detail-attachments{min-height:0!important;padding-bottom:10px!important}
.qt-modal-frame-content .document-workbench{height:auto!important;min-height:0!important;padding-bottom:76px!important}
.qt-modal-frame-content .preview-footer-actions{margin-bottom:64px!important}
@media(max-width:900px){
  .qt-modal-frame-content .qt-doc-footer{left:8px!important;right:8px!important;height:auto!important;min-height:56px!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}
  .qt-modal-frame-content .qt-doc-footer .footer-right{width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}
  .qt-modal-frame-content .qt-doc-footer .aura-btn{width:100%!important;text-align:center!important;justify-content:center!important}
  .qt-modal-frame-content .qt-editor-body{padding-bottom:180px!important}
}

/* QUICK TRASPORTI V23 - Nuovo ordine usa lo stesso guscio master della modifica */
.qt-modal-frame-content .qt-new-editor-shell{display:grid!important;grid-template-rows:auto 1fr!important;height:calc(100vh - 16px)!important;min-height:0!important;overflow:hidden!important;background:#fff!important}
.qt-modal-frame-content .qt-new-editor-shell .qt-master-form{min-height:0!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto 1fr!important;background:#fff!important}
.qt-modal-frame-content .qt-new-editor-shell .qt-editor-tabs{display:flex!important;gap:24px!important;padding:0 18px!important;background:#fff!important;border-bottom:1px solid #d7dee8!important;min-height:42px!important}
.qt-modal-frame-content .qt-new-editor-shell .qt-master-scroll{min-height:0!important;overflow:auto!important;padding:18px 18px 86px!important;background:#fff!important}
.qt-modal-frame-content .qt-new-editor-shell .new-tab-panel{display:none!important}
.qt-modal-frame-content .qt-new-editor-shell .new-tab-panel.active{display:block!important}
.qt-modal-frame-content .qt-new-editor-shell .order-form{gap:14px!important}
.qt-modal-frame-content .qt-new-editor-shell .f24-attachments{padding:0!important}
.qt-modal-frame-content .qt-new-editor-shell .qt-master-footer{position:fixed!important;left:12px!important;right:12px!important;bottom:0!important;height:56px!important;z-index:5000!important;margin:0!important}
.qt-footer-spacer{display:inline-block;width:1px;height:1px}
@media(max-width:900px){.qt-modal-frame-content .qt-new-editor-shell .qt-editor-tabs{gap:14px!important;overflow:auto!important;padding:0 14px!important}.qt-modal-frame-content .qt-new-editor-shell .qt-master-scroll{padding:14px 14px 180px!important}}


/* QUICK TRASPORTI V24 - Modale Ordine/Viaggio pulita stile Fattura24
   Solo intervento grafico: tab lineari, label/input leggibili, footer fisso conservato. */
.qt-modal-frame-body,
.qt-modal-frame-content{font-family:Inter,Arial,Helvetica,sans-serif!important;color:#1f2d3a!important;background:#f3f6fa!important}
.qt-modal-frame-content .qt-editor-shell,
.qt-modal-frame-content .qt-new-editor-shell{border:1px solid #d6dee8!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
.qt-editor-head{min-height:54px!important;padding:10px 18px 8px!important;border-bottom:1px solid #d6dee8!important;background:#fff!important}
.qt-editor-title-row{min-height:22px!important;align-items:center!important}
.qt-editor-head h2{font-size:18px!important;line-height:1.15!important;font-weight:500!important;color:#2f3c48!important;letter-spacing:0!important}
.qt-editor-head h2 span{font-size:13px!important;font-weight:400!important;color:#64717f!important}
.qt-editor-toptools{font-size:12px!important;font-weight:400!important;color:#617180!important;background:transparent!important;border:0!important;padding:0!important}
.qt-editor-sub{margin-top:4px!important;font-size:12px!important;line-height:1.3!important;color:#7a8795!important;font-weight:400!important}
.qt-inline-tabs,
.qt-editor-tabs{display:flex!important;align-items:flex-end!important;gap:26px!important;min-height:40px!important;padding:0 18px!important;background:#fff!important;border:0!important;border-bottom:1px solid #d6dee8!important;box-shadow:none!important;overflow-x:auto!important}
.qt-inline-tab,
.qt-editor-tabs .qt-inline-tab,
.qt-editor-tabs button.qt-inline-tab{appearance:none!important;-webkit-appearance:none!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;height:40px!important;min-height:40px!important;padding:0 0 9px!important;margin:0!important;display:inline-flex!important;align-items:flex-end!important;justify-content:center!important;color:#778493!important;font-size:12px!important;font-weight:500!important;text-transform:uppercase!important;letter-spacing:.025em!important;line-height:1!important;text-decoration:none!important;cursor:pointer!important;white-space:nowrap!important}
.qt-inline-tab:hover,
.qt-editor-tabs button.qt-inline-tab:hover{color:#263948!important;text-decoration:none!important;background:transparent!important}
.qt-inline-tab.active,
.qt-editor-tabs .qt-inline-tab.active,
.qt-editor-tabs button.qt-inline-tab.active{color:#263948!important;border:0!important;border-bottom:2px solid #52667c!important;background:transparent!important;font-weight:600!important}
.qt-editor-body{background:#fff!important;color:#1f2d3a!important}
.qt-clean-order-form,
.qt-master-scroll .order-form,
.modal-order-form,
.ldv-form{gap:13px 14px!important;background:#fff!important;color:#1f2d3a!important}
.qt-clean-order-form label,
.qt-master-scroll label,
.modal-order-form label,
.ldv-form label,
.compact-doc-form label{font-size:12px!important;line-height:1.25!important;color:#40505f!important;font-weight:500!important;letter-spacing:0!important;gap:6px!important}
.qt-clean-order-form input,
.qt-clean-order-form select,
.qt-clean-order-form textarea,
.qt-master-scroll input,
.qt-master-scroll select,
.qt-master-scroll textarea,
.modal-order-form input,
.modal-order-form select,
.modal-order-form textarea,
.ldv-form input,
.ldv-form select,
.ldv-form textarea,
.compact-doc-form input,
.compact-doc-form select,
.compact-doc-form textarea{height:32px!important;min-height:32px!important;border:1px solid #c9d3df!important;border-radius:4px!important;background:#fff!important;color:#142231!important;padding:6px 9px!important;font-size:13px!important;font-weight:400!important;box-shadow:none!important;outline:none!important}
.qt-clean-order-form textarea,
.qt-master-scroll textarea,
.modal-order-form textarea,
.ldv-form textarea,
.compact-doc-form textarea{min-height:82px!important;height:auto!important;line-height:1.35!important;resize:vertical!important}
.qt-clean-order-form input:focus,
.qt-clean-order-form select:focus,
.qt-clean-order-form textarea:focus,
.qt-master-scroll input:focus,
.qt-master-scroll select:focus,
.qt-master-scroll textarea:focus,
.modal-order-form input:focus,
.modal-order-form select:focus,
.modal-order-form textarea:focus,
.ldv-form input:focus,
.ldv-form select:focus,
.ldv-form textarea:focus{border-color:#526f8d!important;box-shadow:0 0 0 2px rgba(82,111,141,.10)!important}
.picker-line{display:flex!important;gap:6px!important;align-items:center!important}
.picker-line input{flex:1!important;min-width:0!important}
.lens-btn,.qt-clean-order-form .lens-btn,.qt-master-scroll .lens-btn{width:34px!important;min-width:34px!important;height:32px!important;border-radius:4px!important;border-color:#c9d3df!important;background:#fff!important;color:#24384b!important;padding:0!important;font-size:13px!important}
.lens-btn:hover{background:#f4f7fb!important;border-color:#9fb0c2!important;color:#0b244f!important}
.qt-secondary-details,.details-box{border:1px solid #d8e0ea!important;border-radius:4px!important;background:#fbfcfe!important;padding:9px 11px!important;color:#314150!important}
.qt-secondary-details summary,.details-box summary{font-size:13px!important;font-weight:600!important;color:#314150!important;cursor:pointer!important}
.muted-note,.qt-soft-note{background:#fbfcfe!important;border:1px dashed #cfd9e5!important;border-radius:4px!important;color:#627080!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;padding:10px 12px!important}
.qt-inline-summary{border:1px solid #d8e0ea!important;border-radius:4px!important;background:#f8fafc!important;color:#304151!important;font-size:13px!important;font-weight:400!important;padding:9px 11px!important;gap:8px!important}
.qt-inline-summary strong{font-weight:600!important;color:#24384b!important}
.detail-grid div{border:1px solid #d8e0ea!important;border-radius:4px!important;background:#fbfcfe!important;padding:11px!important;box-shadow:none!important}
.detail-grid span{font-size:11px!important;color:#64717f!important;font-weight:500!important;text-transform:uppercase!important;letter-spacing:.035em!important}
.detail-grid strong{font-size:14px!important;color:#263948!important;font-weight:600!important}
.f24-attachments,.f24-new-attachments,.f24-detail-attachments{background:#fff!important;color:#263948!important}
.f24-field label,.f24-list-caption{color:#40505f!important;font-size:13px!important;font-weight:500!important}
.f24-file-table{border-top:1px solid #d6dee8!important;background:#fff!important}
.f24-file-row,.f24-empty-row,.f24-blank-row{border-bottom:1px solid #d6dee8!important;background:#fff!important}
.f24-file-row:nth-child(even),.f24-blank-row:nth-child(even){background:#f7f9fb!important}
.f24-file-name{color:#24384b!important;font-size:13px!important;font-weight:500!important}
.f24-file-actions,.f24-icon-btn{color:#24384b!important}
.f24-upload-row{border-top:1px solid #d6dee8!important;background:#fff!important;color:#2f3c48!important}
.f24-upload-row label{font-size:12px!important;font-weight:600!important;color:#2f3c48!important}
.qt-doc-footer,.qt-master-footer{border-top:1px solid #d6dee8!important;background:#fff!important;box-shadow:0 -8px 18px rgba(6,18,38,.055)!important}
.qt-doc-footer .aura-btn,
.qt-master-footer .aura-btn{height:32px!important;min-height:32px!important;border-radius:4px!important;font-size:12px!important;font-weight:700!important;text-transform:uppercase!important;padding:0 12px!important;letter-spacing:0!important}
.qt-doc-footer .aura-btn.primary,
.qt-master-footer .aura-btn.primary{background:#3fa34d!important;border-color:#3fa34d!important;color:#fff!important}
.qt-doc-footer .f24-actions-dd>.aura-btn,
.qt-master-footer .f24-actions-dd>.aura-btn{background:#3fa34d!important;border-color:#3fa34d!important;color:#fff!important}
.qt-doc-footer .aura-btn.danger,
.qt-master-footer .aura-btn.danger{background:#e0312b!important;border-color:#e0312b!important;color:#fff!important}
.qt-doc-footer .aura-btn:not(.primary):not(.danger),
.qt-master-footer .aura-btn:not(.primary):not(.danger){background:#fff!important;border-color:#c9d3df!important;color:#263948!important}
.qt-doc-footer .aura-btn:not(.primary):not(.danger):hover,
.qt-master-footer .aura-btn:not(.primary):not(.danger):hover{background:#f5f7fa!important;border-color:#9fb0c2!important}
.qt-picker-box{border-radius:8px!important;border:1px solid #d6dee8!important;box-shadow:0 24px 70px rgba(6,18,38,.25)!important}
.qt-picker-head{background:#fff!important;border-bottom:1px solid #d6dee8!important}
.qt-picker-search input{border:1px solid #c9d3df!important;border-radius:4px!important;height:34px!important}
@media(max-width:900px){.qt-inline-tabs,.qt-editor-tabs{gap:16px!important;padding:0 14px!important}.qt-inline-tab,.qt-editor-tabs button.qt-inline-tab{font-size:11px!important}.qt-editor-head{padding:9px 14px 7px!important}.qt-editor-head h2{font-size:16px!important}}


/* QUICK TRASPORTI V25 - Anteprima locale allegati nel nuovo ordine dentro la stessa modale XL */
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{display:grid!important;grid-template-columns:minmax(500px,38%) minmax(720px,62%)!important;gap:0!important;padding:0 0 86px!important;overflow:hidden!important;background:#fff!important}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel{display:none!important}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel[data-new-panel="dati"]{display:block!important;overflow:auto!important;padding:18px!important;border-right:1px solid #d6dee8!important;min-height:0!important}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{display:flex!important;min-height:0!important;border-left:0!important;background:#f4f6f9!important}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap{min-height:0!important;height:100%!important;background:#d7d9dd!important}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-frame{width:100%!important;height:100%!important;min-height:calc(100vh - 190px)!important;border:0!important;background:#fff!important}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-img{max-width:100%!important;max-height:calc(100vh - 190px)!important;object-fit:contain!important;margin:auto!important;background:#fff!important}
.qt-modal-frame-content .f24-file-row.active-file{background:#edf4ff!important}
.qt-modal-frame-content .f24-file-row.active-file .f24-file-name{color:#1456a3!important;font-weight:600!important}
.qt-modal-frame-content .f24-file-name{cursor:pointer!important;text-align:left!important;background:transparent!important;border:0!important;padding:0!important}
@media(max-width:1100px){.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{grid-template-columns:1fr!important;overflow:auto!important}.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel[data-new-panel="dati"]{border-right:0!important;border-bottom:1px solid #d6dee8!important}.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-frame{min-height:460px!important}}

/* QUICK TRASPORTI V26 - anteprima persistente: cambiando tab cambia solo il pannello sinistro */
.qt-tabbed-preview-workbench{height:calc(100vh - 245px);min-height:560px;overflow:hidden;border-top:0!important}
.qt-tabbed-preview-workbench .document-data-panel{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.qt-tabbed-preview-workbench .document-data-panel>.form,
.qt-tabbed-preview-workbench .qt-preview-left-list{flex:1;overflow:auto;padding-bottom:20px}
.qt-tabbed-preview-workbench .document-preview-panel{min-height:0;overflow:hidden}
.qt-tabbed-preview-workbench .preview-frame-wrap{flex:1;min-height:0;overflow:hidden}
.qt-tabbed-preview-workbench .preview-frame-wrap iframe{height:100%;min-height:0}
.qt-preview-left-list .f24-file-row.active-file{background:#edf4ff;border-left:3px solid #4d5f77}
.qt-preview-master-footer{position:sticky;bottom:0;z-index:5;margin:0!important}
.qt-modal-frame-content .qt-preview-master-footer{position:sticky!important;bottom:0!important}
@media(max-width:1100px){.qt-tabbed-preview-workbench{height:auto;min-height:0;overflow:visible}.qt-tabbed-preview-workbench .document-data-panel>.form,.qt-tabbed-preview-workbench .qt-preview-left-list{max-height:none}.qt-tabbed-preview-workbench .preview-frame-wrap iframe{min-height:460px}}

/* QUICK TRASPORTI V27 - anteprima allegati stile Fattura24: modale quasi a pieno schermo, pannelli ordinati, footer unico */
.qt-detail-modal-backdrop{padding:6px!important;background:rgba(6,18,38,.42)!important}
.qt-detail-modal{width:calc(100vw - 12px)!important;height:calc(100vh - 12px)!important;max-width:none!important;max-height:none!important;border-radius:8px!important;box-shadow:0 18px 70px rgba(6,18,38,.28)!important;grid-template-rows:54px 1fr!important}
.qt-detail-head{min-height:54px!important;padding:8px 18px!important;background:#fff!important;border-bottom:1px solid #d6dee8!important}
.qt-detail-head h2{font-size:18px!important;font-weight:600!important;color:#0b1d3a!important}
.qt-modal-frame-content{padding:0!important;background:#fff!important}
.qt-modal-frame-content .qt-editor-shell{height:100vh!important;border:0!important;border-radius:0!important;grid-template-rows:auto auto 1fr!important}
.qt-modal-frame-content .qt-editor-head{min-height:56px!important;padding:10px 18px 8px!important}
.qt-modal-frame-content .qt-editor-body{padding-bottom:58px!important;overflow:hidden!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench{height:calc(100vh - 154px)!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(560px,42%) minmax(760px,58%)!important;border-top:0!important;background:#fff!important;overflow:hidden!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench .document-data-panel{border-right:1px solid #d6dee8!important;overflow:hidden!important;background:#fff!important;min-height:0!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench .document-data-panel>.form,
.qt-modal-frame-content .qt-tabbed-preview-workbench .qt-preview-left-list{height:100%!important;max-height:none!important;overflow:auto!important;padding-bottom:80px!important;box-sizing:border-box!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench .document-preview-panel{background:#cfd1d6!important;min-height:0!important;overflow:hidden!important;display:grid!important;grid-template-rows:42px 1fr!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench .document-preview-panel>.doc-panel-title{height:42px!important;min-height:42px!important;padding:0 18px!important;display:flex!important;align-items:center!important;background:#f8fafc!important;border-bottom:1px solid #d6dee8!important;box-sizing:border-box!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench .document-preview-panel>.doc-panel-title strong{font-size:15px!important;color:#071a3a!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench .document-preview-panel>.doc-panel-title span{font-size:12px!important;color:#617180!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:60%!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench .document-data-panel>.doc-panel-title{height:42px!important;min-height:42px!important;padding:0 18px!important;align-items:center!important;background:#fff!important;box-sizing:border-box!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench .preview-frame-wrap{height:100%!important;min-height:0!important;background:#cfd1d6!important;border-bottom:0!important;overflow:hidden!important}
.qt-modal-frame-content .qt-tabbed-preview-workbench .preview-frame-wrap iframe{width:100%!important;height:100%!important;min-height:0!important;background:#fff!important;border:0!important}
.qt-modal-frame-content .qt-preview-master-footer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;height:58px!important;padding:10px 18px!important;background:#fff!important;border-top:1px solid #d6dee8!important;box-shadow:0 -8px 18px rgba(6,18,38,.06)!important;z-index:6000!important;display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0!important}
.qt-modal-frame-content .qt-preview-master-footer .footer-right{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-left:auto!important;flex-wrap:nowrap!important}
.qt-modal-frame-content .qt-preview-master-footer .aura-btn{height:32px!important;min-height:32px!important;line-height:30px!important;padding:0 12px!important;border-radius:4px!important;font-size:12px!important;font-weight:700!important;text-transform:uppercase!important;white-space:nowrap!important}
.qt-modal-frame-content .qt-preview-master-footer .qt-footer-close-preview{background:#f08c20!important;border-color:#f08c20!important;color:#fff!important}
.qt-modal-frame-content .qt-preview-master-footer .qt-footer-doc-action{background:#fff!important;border-color:#c9d3df!important;color:#263948!important}
.qt-modal-frame-content .qt-preview-master-footer .qt-footer-plain{background:#fff!important;border-color:#c9d3df!important;color:#263948!important}
.qt-modal-frame-content .qt-preview-master-footer .aura-pop{bottom:calc(100% + 8px)!important;top:auto!important;right:0!important;z-index:6100!important}
.qt-modal-frame-content .qt-preview-workbench .preview-footer-actions{display:none!important}
@media(max-width:1100px){
  .qt-modal-frame-content .qt-tabbed-preview-workbench{grid-template-columns:1fr!important;overflow:auto!important;height:calc(100vh - 154px)!important}
  .qt-modal-frame-content .qt-tabbed-preview-workbench .document-preview-panel{min-height:520px!important}
  .qt-modal-frame-content .qt-preview-master-footer{height:auto!important;min-height:58px!important;align-items:stretch!important;flex-direction:column!important;gap:8px!important}
  .qt-modal-frame-content .qt-preview-master-footer .footer-right{width:100%!important;flex-wrap:wrap!important;justify-content:flex-end!important}
}


/* QUICK TRASPORTI V28 - modale normale compatta; full screen solo quando è aperta anteprima allegato */
.qt-detail-modal-backdrop:not(.qt-preview-active){padding:22px!important;background:rgba(6,18,38,.42)!important}
.qt-detail-modal-backdrop:not(.qt-preview-active) .qt-detail-modal{width:min(1500px,calc(100vw - 44px))!important;height:min(900px,calc(100vh - 44px))!important;max-width:1500px!important;max-height:900px!important;border-radius:18px!important;box-shadow:0 24px 80px rgba(6,18,38,.34)!important;grid-template-rows:56px 1fr!important}
.qt-detail-modal-backdrop.qt-preview-active{padding:0!important;background:rgba(6,18,38,.42)!important}
.qt-detail-modal-backdrop.qt-preview-active .qt-detail-modal{width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;border-radius:0!important;box-shadow:none!important;border:0!important;grid-template-rows:44px 1fr!important}
.qt-detail-modal-backdrop.qt-preview-active .qt-detail-head{min-height:44px!important;height:44px!important;padding:4px 18px!important;border-bottom:1px solid #d6dee8!important}
.qt-detail-modal-backdrop.qt-preview-active .qt-detail-head h2{font-size:18px!important}
.qt-detail-modal-backdrop.qt-preview-active .qt-close{width:34px!important;height:34px!important}
.qt-detail-modal-backdrop:not(.qt-preview-active) .qt-detail-body iframe{background:#fff!important}
@media(max-width:900px){.qt-detail-modal-backdrop:not(.qt-preview-active){padding:8px!important}.qt-detail-modal-backdrop:not(.qt-preview-active) .qt-detail-modal{width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important;border-radius:12px!important;max-width:none!important;max-height:none!important}}

/* QUICK TRASPORTI V29 - overlay non chiude la modale: chiusura solo esplicita da X/Esci */

/* QUICK TRASPORTI V30 - Master elenco + modale XL applicato a Servizi/Prodotti.
   Anagrafica senza Periodo/Data: toolbar destra solo Filtri. */
.qt-standard-listbar{align-items:center!important;margin-bottom:12px!important}
.qt-standard-listbar .aura-workbar-left,.qt-standard-listbar .aura-workbar-right{display:flex!important;align-items:center!important;gap:8px!important}
.qt-standard-list-panel{background:#fff!important;border:1px solid #d9e1ea!important;border-radius:18px!important;box-shadow:0 10px 28px rgba(6,18,38,.04)!important;overflow:hidden!important}
.qt-clickable-table tr.clickable-row{cursor:pointer!important;transition:background .12s ease!important}
.qt-clickable-table tr.clickable-row:hover{background:#f3f7fb!important}
.qt-clickable-table td{vertical-align:middle!important}
.qt-service-modal-backdrop{position:fixed!important;inset:0!important;z-index:9000!important;background:rgba(6,18,38,.42)!important;padding:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
.qt-service-modal{width:min(1380px,calc(100vw - 44px))!important;height:min(820px,calc(100vh - 44px))!important;background:#fff!important;border:1px solid #d6dee8!important;border-radius:18px!important;box-shadow:0 24px 80px rgba(6,18,38,.34)!important;display:grid!important;grid-template-rows:56px 1fr!important;overflow:hidden!important;color:#1f2d3a!important;font-family:Inter,Arial,Helvetica,sans-serif!important}
.qt-service-head{height:56px!important;min-height:56px!important;padding:8px 18px!important;border-bottom:1px solid #d7dee8!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:space-between!important;box-sizing:border-box!important}
.qt-service-kicker{font-size:10px!important;letter-spacing:.11em!important;text-transform:uppercase!important;color:#7a8792!important;font-weight:700!important;line-height:1.2!important}
.qt-service-head h2{margin:2px 0 0!important;color:#233342!important;font-size:18px!important;line-height:1.2!important;font-weight:600!important}
.qt-service-modal .qt-close{width:36px!important;height:36px!important;border-radius:8px!important;border:1px solid #cfd9e5!important;background:#fff!important;color:#34414b!important;display:flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;font-size:24px!important;line-height:1!important}
.qt-service-modal .qt-close:hover{background:#f3f7fb!important;color:#0b244f!important}
.qt-service-shell{min-height:0!important;display:grid!important;grid-template-rows:43px 1fr 56px!important;overflow:hidden!important;background:#fff!important}
.qt-service-tabs{gap:24px!important;padding:0 18px!important;background:#fff!important;border-bottom:1px solid #d7dee8!important;min-height:43px!important}
.qt-service-tabs .qt-inline-tab{height:42px!important;background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;padding:0!important;cursor:pointer!important;color:#687684!important;font-size:13px!important;font-weight:600!important;text-transform:uppercase!important;letter-spacing:.02em!important}
.qt-service-tabs .qt-inline-tab.active{color:#0b244f!important;border-bottom-color:#4d5f77!important}
.qt-service-body{min-height:0!important;overflow:auto!important;padding:0 0 78px!important;background:#fff!important}
.qt-service-body .svc-tab-panel{display:none!important}
.qt-service-body .svc-tab-panel.active{display:block!important}
.qt-service-form{padding:18px!important;gap:14px!important}
.qt-service-form label{font-size:12px!important;color:#495867!important;font-weight:600!important}
.qt-service-form input,.qt-service-form select,.qt-service-form textarea{height:34px!important;border:1px solid #cfd9e5!important;border-radius:4px!important;background:#fff!important;color:#102033!important;font-size:14px!important;padding:7px 10px!important;box-sizing:border-box!important}
.qt-service-form textarea{height:auto!important;min-height:120px!important;line-height:1.45!important;resize:vertical!important}
.qt-checkline{height:34px!important;border:1px solid #cfd9e5!important;border-radius:4px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:8px!important;padding:0 10px!important;box-sizing:border-box!important;color:#102033!important;font-size:14px!important}
.qt-checkline input{width:16px!important;height:16px!important;padding:0!important}
.qt-service-footer{height:56px!important;min-height:56px!important;margin:0!important;border-top:1px solid #d7dee8!important;background:#fff!important;box-shadow:0 -8px 18px rgba(6,18,38,.06)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:10px 14px!important;box-sizing:border-box!important;z-index:5!important}
.qt-service-footer .footer-right{display:flex!important;align-items:center!important;gap:8px!important;margin-left:auto!important}
.qt-service-footer .aura-btn{height:32px!important;min-height:32px!important;border-radius:4px!important;font-size:12px!important;font-weight:700!important;text-transform:uppercase!important;line-height:30px!important;padding:0 12px!important;white-space:nowrap!important}
.qt-service-footer .aura-btn.primary{background:#4caf50!important;border-color:#4caf50!important;color:#fff!important}
.qt-service-footer .aura-btn.danger{background:#ff3b30!important;border-color:#ff3b30!important;color:#fff!important}
.qt-service-footer .f24-actions-dd>.aura-btn{background:#4caf50!important;border-color:#4caf50!important;color:#fff!important}
.qt-service-footer .aura-pop{bottom:calc(100% + 8px)!important;top:auto!important;right:0!important;z-index:9100!important;width:min(300px,calc(100vw - 60px))!important}
.qt-service-footer .aura-pop .aura-btn{width:100%!important;justify-content:flex-start!important}
@media(max-width:900px){.qt-service-modal-backdrop{padding:8px!important}.qt-service-modal{width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important;border-radius:12px!important}.qt-service-tabs{gap:14px!important;overflow:auto!important;padding:0 14px!important}.qt-service-form{padding:14px!important}.qt-service-form .span-2,.qt-service-form .span-3,.qt-service-form .span-4{grid-column:span 1!important}.qt-service-footer{height:auto!important;min-height:56px!important;align-items:stretch!important;flex-direction:column!important;gap:8px!important}.qt-service-footer .footer-right{width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}.qt-service-footer .aura-btn{width:100%!important;justify-content:center!important;text-align:center!important}.qt-service-body{padding-bottom:180px!important}}

/* V31 - Prodotti/Servizi: allegati e anteprima master stile V29 */
.qt-service-shell.preview-mode{grid-template-columns:minmax(500px,38%) minmax(720px,62%)!important;grid-template-rows:43px 1fr 56px!important}
.qt-service-shell.preview-mode .qt-service-tabs{grid-column:1/3;grid-row:1}
.qt-service-shell.preview-mode .qt-service-body{grid-column:1;grid-row:2;min-height:0!important;padding-bottom:0!important;border-right:1px solid #d6dee8!important}
.qt-service-shell.preview-mode .qt-service-preview-dock{grid-column:2;grid-row:2;display:flex!important;min-height:0!important;background:#f4f6f9!important}
.qt-service-preview-dock{display:flex;flex-direction:column;min-height:0;background:#f4f6f9;border-left:1px solid #d6dee8}
.qt-service-preview-dock[hidden]{display:none!important}
.qt-service-preview-dock .new-preview-wrap{flex:1;min-height:0;background:#d7d9dd;display:flex;align-items:stretch;justify-content:center}
.qt-service-preview-dock .modal-preview-frame{width:100%;height:100%;min-height:calc(100vh - 190px);border:0;background:#fff}
.qt-service-preview-dock .modal-preview-img{max-width:100%;max-height:calc(100vh - 190px);object-fit:contain;margin:auto;background:#fff}
.qt-service-shell.preview-mode .svc-tab-panel{display:none!important}
.qt-service-shell.preview-mode .svc-tab-panel[data-svc-panel="dati"]{display:block!important}
.qt-service-attachments{padding:18px!important}
.qt-standard-list-panel .f24-check{width:34px;text-align:center}
.qt-standard-list-panel input[type=checkbox], .qt-standard-listbar input[type=checkbox]{width:15px;height:15px;accent-color:#1456a3}
@media(max-width:1100px){.qt-service-shell.preview-mode{grid-template-columns:1fr!important}.qt-service-shell.preview-mode .qt-service-tabs,.qt-service-shell.preview-mode .qt-service-body,.qt-service-shell.preview-mode .qt-service-preview-dock{grid-column:1!important}.qt-service-shell.preview-mode .qt-service-preview-dock{grid-row:auto}.qt-service-preview-dock .modal-preview-frame{min-height:460px}}

/* V34 - Ordini: numero progressivo solo numerico e corpo tabella senza grassetti inutili */
.f24-orders-table tbody td{font-weight:400!important;}
.f24-orders-table tbody td strong{font-weight:400!important;}
.f24-orders-table .qt-order-number{font-variant-numeric:tabular-nums;color:#102033;font-weight:400!important;}

/* V35/V36/V37 - Validazione campi obbligatori: nessun messaggio, solo riquadri rosa chiaro */
.qt-required-field.qt-required-missing > input,
.qt-required-field.qt-required-missing > select,
.qt-required-field.qt-required-missing > textarea,
.qt-required-field.qt-required-missing .picker-line > input,
.qt-required-field.qt-required-missing .picker-line > select,
.qt-required-field.qt-required-missing .picker-line > textarea{
  background:#fff1f1!important;
  border-color:#ef9a9a!important;
  box-shadow:0 0 0 2px rgba(220,53,69,.08)!important;
}
.qt-required-field.qt-required-missing .picker-line{
  border-radius:6px!important;
  background:#fff1f1!important;
}
.qt-required-field.qt-required-missing .lens-btn{
  border-color:#ef9a9a!important;
  background:#fff6f6!important;
}

/* V36/V37 - Form tecnico nascosto per rendere attivo SALVA anche in anteprima allegati */
.qt-hidden-save-form{display:none!important;}

/* V39 - righe prodotto/destinazione ordine trasporto */
.qt-products-block{
  border:1px solid #c9d7e8;
  border-radius:6px;
  padding:10px;
  background:#fff;
}
.qt-products-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  font-size:12px;
  color:#0b223f;
}
.qt-add-product-btn{
  padding:6px 10px !important;
  font-size:12px !important;
  border-radius:6px !important;
}
.qt-products-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.qt-product-row{
  display:grid;
  grid-template-columns: minmax(260px, 1fr) 160px 42px;
  gap:8px;
  align-items:center;
}
.qt-product-row .picker-line{ margin:0; }
.qt-product-destination input,
.qt-product-amount{
  height:34px;
}
.qt-remove-product-btn{
  height:34px;
  padding:0 !important;
  font-size:18px !important;
  line-height:1 !important;
  color:#7a1c1c !important;
  background:#fff !important;
  border-color:#f0c7c7 !important;
}
.qt-required-missing.qt-products-block{
  background:#fff1f1 !important;
  border-color:#f2a6a6 !important;
}
@media (max-width: 900px){
  .qt-product-row{ grid-template-columns:1fr; }
  .qt-remove-product-btn{ width:42px; justify-self:end; }
}

/* V41 - Master elenco unico: anche Servizi/Prodotti usa lo stesso template visivo di Ordini */
.qt-master-listbar{margin-bottom:16px!important;}
.qt-master-list-panel{border-radius:0!important;box-shadow:none!important;border:1px solid #d7dee8!important;background:#fff!important;overflow:hidden!important;}
.qt-master-list-table tbody td{font-weight:400!important;}
.qt-master-list-table tbody td strong{font-weight:400!important;}
.qt-master-list-table .qt-row-main-text{font-weight:400!important;color:#102033!important;}
.qt-master-list-table .qt-row-sub-text{font-weight:400!important;color:#64727f!important;margin-top:2px!important;}
.qt-services-list-table th,.qt-services-list-table td{white-space:nowrap!important;}
.qt-services-list-table td:nth-child(3){white-space:normal!important;min-width:360px!important;}
.qt-services-list-table tbody tr.clickable:hover td{background:#eaf1f9!important;}
.qt-services-list-table .badge{font-weight:600!important;}

/* QUICK V44 - Rubrica clienti standard stile Fattura24 */
.qt-client-modal-backdrop{
  position:fixed; inset:0; z-index:2200; background:rgba(18,26,35,.58);
  display:flex; align-items:center; justify-content:center; padding:22px;
}
.qt-client-modal{
  width:min(920px, calc(100vw - 44px)); height:min(760px, calc(100vh - 44px));
  background:#fff; border:1px solid #d5dee9; box-shadow:0 20px 50px rgba(9,26,48,.24);
  display:flex; flex-direction:column; overflow:hidden; border-radius:4px;
}
.qt-client-shell{display:flex; flex-direction:column; height:100%; min-height:0;}
.qt-client-head{display:flex; justify-content:space-between; align-items:flex-start; padding:20px 28px 10px; border-bottom:1px solid #dce3ec; background:#fff;}
.qt-client-head h2{margin:0; font-size:24px; font-weight:500; color:#23364d; letter-spacing:-.02em;}
.qt-client-subtitle{margin-top:8px; font-size:14px; color:#102a43; min-height:18px;}
.qt-client-tabs{display:flex; gap:0; padding:0 28px; border-bottom:1px solid #dce3ec; background:#fff;}
.qt-client-tab{height:46px; padding:0 18px; border:0; border-bottom:2px solid transparent; background:transparent; color:#7b8796; font-size:13px; font-weight:500; letter-spacing:.02em; cursor:pointer;}
.qt-client-tab.active{color:#26384d; border-bottom-color:#26384d;}
.qt-client-body{flex:1; overflow:auto; padding:26px 28px 22px; background:#fff;}
.qt-client-panel{display:none;}
.qt-client-panel.active{display:block;}
.qt-client-grid{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); column-gap:8px; row-gap:10px; max-width:780px;}
.qt-client-grid label{display:flex; flex-direction:column; gap:6px; font-size:13px; color:#23364d; font-weight:500;}
.qt-client-grid input,.qt-client-grid select,.qt-client-grid textarea{height:34px; width:100%; border:1px solid #cbd6e2; border-radius:3px; background:#fff; color:#102a43; padding:7px 9px; font-size:14px; font-weight:400; box-sizing:border-box;}
.qt-client-grid textarea{height:130px; resize:vertical; line-height:1.35;}
.qt-client-grid.note-grid textarea{height:190px;}
.qt-client-grid .qt-span-2{grid-column:span 2;}
.qt-client-grid .qt-span-3{grid-column:span 3;}
.qt-client-grid .qt-span-4{grid-column:span 4;}
.qt-client-grid .has-action{position:relative;}
.qt-client-grid .has-action input{padding-right:92px;}
.qt-client-grid .has-action button{position:absolute; right:4px; bottom:4px; height:26px; min-width:84px; border:0; border-radius:2px; background:#49b657; color:#fff; font-size:12px; font-weight:700; cursor:pointer;}
.qt-client-info{font-size:13px; color:#23364d; margin-bottom:24px;}
.qt-client-section-title{font-size:14px; font-weight:700; color:#23364d; margin:0 0 14px;}
.qt-client-divider{height:1px; background:#e0e6ef; margin:18px 0; max-width:780px;}
.qt-client-footer{display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 22px; border-top:1px solid #dce3ec; background:#fff; min-height:58px;}
.qt-client-footer .footer-right{display:flex; align-items:center; gap:8px; margin-left:auto;}
.qt-client-footer .aura-btn.primary{background:#49b657; border-color:#49b657; color:#fff;}
.qt-client-footer .qt-footer-plain{background:#fff; border-color:transparent; color:#47566b;}
@media(max-width:780px){.qt-client-modal{width:calc(100vw - 24px); height:calc(100vh - 24px)}.qt-client-grid{grid-template-columns:1fr}.qt-client-grid .qt-span-2,.qt-client-grid .qt-span-3,.qt-client-grid .qt-span-4{grid-column:span 1}.qt-client-tabs{overflow:auto}.qt-client-tab{padding:0 12px; white-space:nowrap}}


/* QUICK TRASPORTI V47 - Standard master modale Mezzi/Targhe */
.qt-mezzo-tabs.qt-inline-tabs{display:flex!important;align-items:flex-end!important;gap:26px!important;min-height:40px!important;padding:0 18px!important;background:#fff!important;border-bottom:1px solid #d6dee8!important;box-shadow:none!important;overflow-x:auto!important}
.qt-mezzo-tabs .qt-inline-tab{appearance:none!important;-webkit-appearance:none!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;height:40px!important;min-height:40px!important;padding:0 0 9px!important;margin:0!important;display:inline-flex!important;align-items:flex-end!important;color:#778493!important;font-size:12px!important;font-weight:500!important;text-transform:uppercase!important;letter-spacing:.025em!important;line-height:1!important;cursor:pointer!important;white-space:nowrap!important}
.qt-mezzo-tabs .qt-inline-tab.active{color:#263948!important;border-bottom:2px solid #52667c!important;font-weight:600!important}
.qt-mezzo-shell .svc-tab-panel{display:none!important}
.qt-mezzo-shell .svc-tab-panel.active{display:block!important}
.qt-mezzo-body{overflow:auto!important;padding-bottom:82px!important}
.qt-mezzo-footer{position:sticky!important;bottom:0!important;z-index:40!important}
.qt-mezzo-shell.preview-mode .qt-mezzo-body{display:grid!important;grid-template-columns:minmax(460px,38%) minmax(640px,62%)!important;gap:0!important;overflow:hidden!important;padding-bottom:82px!important}
.qt-mezzo-shell.preview-mode .qt-mezzo-body .svc-tab-panel{border-right:1px solid #d6dee8!important;overflow:auto!important;min-height:0!important}
.qt-mezzo-shell.preview-mode .qt-service-preview-dock{display:flex!important;flex-direction:column!important;min-height:0!important;background:#f4f6f9!important}
.qt-mezzo-shell.preview-mode .new-preview-wrap{height:100%!important;min-height:calc(100vh - 230px)!important;background:#e5e7eb!important}
.qt-mezzo-shell.preview-mode .modal-preview-frame{width:100%!important;height:100%!important;min-height:calc(100vh - 230px)!important;border:0!important;background:#fff!important}
.qt-mezzo-shell.preview-mode .modal-preview-img{max-width:100%!important;max-height:calc(100vh - 230px)!important;object-fit:contain!important;margin:auto!important;display:block!important;background:#fff!important}

/* V48 - ID numerici interni visibili per righe e allegati */
.qt-product-row{grid-template-columns:64px minmax(0,1fr) 160px 44px;}
.qt-row-id,.f24-file-id{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:28px;border:1px solid #d6e1ee;border-radius:6px;background:#f8fafc;color:#334155;font-size:12px;font-weight:600;margin-right:8px;font-variant-numeric:tabular-nums;}
.f24-file-row{gap:8px;}
.f24-file-name{flex:1;min-width:0;}

/* V53 - toolbar/export/paginazione ordini */
.qt-page-size-control{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#20344f;font-weight:700;background:#fff;border:1px solid #d7e1ee;border-radius:8px;padding:7px 10px;white-space:nowrap}
.qt-page-size-control select{border:0;background:transparent;font-weight:800;color:#0b2343;outline:none;min-width:58px}
.qt-pager-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.qt-footer-counts{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.qt-pager{display:flex;align-items:center;gap:8px}
.aura-btn.disabled{opacity:.45;pointer-events:none;background:#f7f9fc;color:#738399}

/* V54 - Export modal stile Fattura24 e menu Altro pulito */
.qt-alt-dd .qt-alt-pop{left:0!important;right:auto!important;width:260px!important;min-width:260px!important;padding:0!important;border-radius:3px!important;box-shadow:0 12px 26px rgba(15,35,60,.20)!important;overflow:hidden!important;background:#fff!important}
.qt-menu-row{width:100%;height:44px;border:0;background:#fff;color:#263443;text-align:left;padding:0 16px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center}
.qt-menu-row:hover{background:#f3f6fa}
.qt-export-modal{display:none;position:fixed;inset:0;z-index:12000;background:rgba(0,0,0,.45);align-items:center;justify-content:center;padding:24px}
.qt-export-modal.open{display:flex}
.qt-export-box{width:520px;max-width:calc(100vw - 48px);height:540px;max-height:calc(100vh - 48px);background:#fff;border:1px solid #cfd8e3;border-radius:3px;box-shadow:0 22px 54px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden;color:#263443}
.qt-export-head{padding:20px 22px 12px;border-bottom:1px solid #d8e0ea;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.qt-export-head h2{margin:0 0 12px;color:#34414e;font-size:28px;font-weight:400;letter-spacing:-.02em}
.qt-export-head p{margin:0;color:#334155;line-height:1.45;font-size:14px;font-weight:400}
.qt-export-close{width:32px;height:32px;border:1px solid #d5dee9;background:#fff;border-radius:4px;color:#243449;font-size:22px;line-height:1;cursor:pointer}
.qt-export-close:hover{background:#f4f7fb}
.qt-export-list{flex:1;background:#f8fafc;border-bottom:1px solid #d8e0ea}
.qt-export-row{height:58px;display:flex;align-items:center;gap:18px;padding:0 22px;border-bottom:1px solid #d8e0ea;background:#fff;color:#263443;font-size:14px;font-weight:500;text-decoration:none}
.qt-export-row:hover{background:#f4f7fb}
.qt-export-icon{width:26px;height:32px;border:2px solid #24a148;color:#24a148;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:17px;background:#fff}
.qt-export-footer{height:62px;display:flex;align-items:center;justify-content:flex-end;padding:0 22px;background:#fff}
.qt-footer-plain{border:0;background:transparent;color:#405064;font-size:13px;font-weight:500;cursor:pointer;padding:10px 6px}
.qt-footer-plain:hover{color:#0b244f;text-decoration:underline}
@media(max-width:700px){.qt-export-modal{padding:12px}.qt-export-box{width:100%;height:80vh}.qt-export-head h2{font-size:24px}.qt-alt-dd .qt-alt-pop{width:100%!important;min-width:100%!important}}

/* V56 - Export XML Fattura24: una sola fattura da ordini selezionati */
.qt-export-form-row{margin:0;padding:0;border:0;background:#fff}
.qt-export-submit-row{width:100%;border:0;border-bottom:1px solid #d8e0ea;text-align:left;cursor:pointer;font-family:inherit}
.qt-export-help{display:block;padding:8px 22px 12px 76px;color:#667789;background:#fff;font-size:12px;line-height:1.35;border-bottom:1px solid #d8e0ea}

/* V58 - Export PDF riepilogo Fattura24 */
.qt-export-icon.pdf{color:#d92d20;border-color:#f7c6c2;background:#fff5f5}


/* V63 - prodotti/destinazioni: descrizione sempre visibile e righe vuote non deformate */
.qt-product-row > .picker-line.qt-product-destination{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  width:100%!important;
}
.qt-product-destination input{
  flex:1 1 auto!important;
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.qt-product-row .lens-btn{flex:0 0 34px!important;width:34px!important;min-width:34px!important;}


/* V64 - Prodotti/Destinazioni: riga nuova sempre larga come riga compilata */
.qt-products-block .qt-products-list{width:100%!important;}
.qt-products-block .qt-product-row{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr) 160px 44px!important;
  gap:8px!important;
  align-items:center!important;
  width:100%!important;
}
.qt-products-block .qt-product-row > input[type="hidden"]{display:none!important;}
.qt-products-block .qt-product-row > .qt-row-id{
  grid-column:1!important;
  width:56px!important;
  min-width:56px!important;
  max-width:56px!important;
  margin:0!important;
  justify-self:start!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.qt-products-block .qt-product-row > .picker-line.qt-product-destination{
  grid-column:2!important;
  display:flex!important;
  min-width:0!important;
  width:100%!important;
}
.qt-products-block .qt-product-row > .qt-product-amount{
  grid-column:3!important;
  width:100%!important;
  min-width:0!important;
}
.qt-products-block .qt-product-row > .qt-remove-product-btn{
  grid-column:4!important;
  width:44px!important;
  min-width:44px!important;
}
.qt-products-block .qt-product-destination input{
  display:block!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
}
@media(max-width:900px){
  .qt-products-block .qt-product-row{grid-template-columns:1fr!important;}
  .qt-products-block .qt-product-row > .qt-row-id,
  .qt-products-block .qt-product-row > .picker-line.qt-product-destination,
  .qt-products-block .qt-product-row > .qt-product-amount,
  .qt-products-block .qt-product-row > .qt-remove-product-btn{grid-column:1!important;width:100%!important;max-width:none!important;}
}


/* V69 - Ordini: colonne Container/Booking separate e descrizione regolabile */
.qt-causale-size-tools{display:inline-flex;align-items:center;gap:6px;margin-right:2px}
.qt-mini-btn{height:34px!important;padding:0 10px!important;border-radius:10px!important;font-size:12px!important;background:#fff!important;color:#0b244f!important}
.f24-orders-table th.qt-causale-head{min-width:320px}
.f24-orders-table .qt-causale-cell{max-width:420px;min-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;line-height:1.25}
.f24-orders-table .qt-causale-cell:hover{background:#eef4fb!important}
.f24-orders-table .qt-causale-cell.qt-causale-open{white-space:normal;overflow:visible;text-overflow:clip;min-width:520px}
.f24-orders-table.qt-causale-compact .qt-causale-cell{max-width:300px;min-width:260px;font-size:12px}
.f24-orders-table.qt-causale-normal .qt-causale-cell{max-width:420px;min-width:320px;font-size:13px}
.f24-orders-table.qt-causale-large .qt-causale-cell{max-width:620px;min-width:520px;font-size:15px;white-space:normal}
.f24-orders-table.qt-causale-xlarge .qt-causale-cell{max-width:820px;min-width:680px;font-size:17px;white-space:normal;line-height:1.35}
.f24-orders-table.qt-causale-large th.qt-causale-head{min-width:520px}
.f24-orders-table.qt-causale-xlarge th.qt-causale-head{min-width:680px}
@media(max-width:1100px){.qt-causale-size-tools{order:5;width:100%;justify-content:flex-end}.f24-orders-table .qt-causale-cell{min-width:260px}}


/* V70 - Ordini: tabella compatta a larghezza schermata, colonne Container/Booking separate */
.f24-orders-table-wrap{
  width:100%!important;
  overflow-x:hidden!important;
}
.f24-orders-table.qt-orders-fit-table{
  width:100%!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}
.qt-orders-fit-table .qt-col-check{width:38px!important;}
.qt-orders-fit-table .qt-col-star{width:34px!important;}
.qt-orders-fit-table .qt-col-num{width:54px!important;}
.qt-orders-fit-table .qt-col-date{width:96px!important;}
.qt-orders-fit-table .qt-col-cliente{width:205px!important;}
.qt-orders-fit-table .qt-col-causale{width:auto!important;}
.qt-orders-fit-table .qt-col-container{width:112px!important;}
.qt-orders-fit-table .qt-col-booking{width:112px!important;}
.qt-orders-fit-table .qt-col-mezzo{width:86px!important;}
.qt-orders-fit-table .qt-col-autista{width:156px!important;}
.qt-orders-fit-table .qt-col-importo{width:104px!important;}
.qt-orders-fit-table .qt-col-allegati{width:70px!important;}
.f24-orders-table.qt-orders-fit-table th,
.f24-orders-table.qt-orders-fit-table td{
  padding-left:10px!important;
  padding-right:10px!important;
  vertical-align:middle!important;
}
.f24-orders-table.qt-orders-fit-table th.qt-causale-head,
.f24-orders-table.qt-orders-fit-table .qt-causale-cell{
  min-width:0!important;
  max-width:none!important;
  width:auto!important;
}
.f24-orders-table.qt-orders-fit-table .qt-client-cell,
.f24-orders-table.qt-orders-fit-table .qt-container-cell,
.f24-orders-table.qt-orders-fit-table .qt-booking-cell,
.f24-orders-table.qt-orders-fit-table .qt-autista-cell,
.f24-orders-table.qt-orders-fit-table .qt-causale-cell{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.f24-orders-table.qt-orders-fit-table .qt-causale-cell{
  cursor:pointer!important;
  line-height:1.25!important;
}
.f24-orders-table.qt-orders-fit-table .qt-causale-cell.qt-causale-open{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
.f24-orders-table.qt-orders-fit-table.qt-causale-compact .qt-causale-cell{font-size:12px!important;line-height:1.22!important;}
.f24-orders-table.qt-orders-fit-table.qt-causale-normal .qt-causale-cell{font-size:13px!important;line-height:1.25!important;}
.f24-orders-table.qt-orders-fit-table.qt-causale-large .qt-causale-cell{font-size:14px!important;line-height:1.30!important;}
.f24-orders-table.qt-orders-fit-table.qt-causale-xlarge .qt-causale-cell{font-size:15px!important;line-height:1.35!important;}
.f24-orders-table.qt-orders-fit-table.qt-causale-large .qt-causale-cell,
.f24-orders-table.qt-orders-fit-table.qt-causale-xlarge .qt-causale-cell{
  white-space:normal!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
.f24-orders-table.qt-orders-fit-table.qt-causale-large .qt-causale-cell.qt-causale-open,
.f24-orders-table.qt-orders-fit-table.qt-causale-xlarge .qt-causale-cell.qt-causale-open{
  display:table-cell!important;
  -webkit-line-clamp:unset!important;
  white-space:normal!important;
  overflow:visible!important;
}
@media(max-width:1450px){
  .qt-orders-fit-table .qt-col-cliente{width:175px!important;}
  .qt-orders-fit-table .qt-col-container{width:98px!important;}
  .qt-orders-fit-table .qt-col-booking{width:98px!important;}
  .qt-orders-fit-table .qt-col-autista{width:138px!important;}
  .qt-orders-fit-table .qt-col-importo{width:96px!important;}
  .f24-orders-table.qt-orders-fit-table th,
  .f24-orders-table.qt-orders-fit-table td{padding-left:8px!important;padding-right:8px!important;}
}
@media(max-width:1200px){
  .f24-orders-table-wrap{overflow-x:auto!important;}
  .f24-orders-table.qt-orders-fit-table{min-width:1180px!important;}
}


/* V71 - Stelle colorate e filtro iconico Ordini */
.f24-orders-table .qt-star-btn{
  appearance:none!important;
  border:0!important;
  background:transparent!important;
  font-size:20px!important;
  line-height:1!important;
  padding:0!important;
  cursor:pointer!important;
  width:24px!important;
  height:24px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-shadow:0 1px 1px rgba(0,0,0,.14)!important;
}
.f24-orders-table .qt-star-btn:hover{transform:scale(1.12)}
.qt-star-bianca{color:#ffffff!important;-webkit-text-stroke:1.25px #1d3557;text-shadow:none!important;}
.qt-star-verde{color:#2fac55!important;}
.qt-star-blu{color:#3b82f6!important;}
.qt-star-rossa{color:#ef4444!important;}
.qt-star-gialla{color:#f2b01e!important;}
.qt-star-viola{color:#c026d3!important;}
.qt-star-celeste{color:#06b6d4!important;}
.qt-star-nero{color:#050505!important;}
.qt-star-filter-field{margin-top:10px!important;}

/* V72 - Filtri Ordini descrittivi per colonna, stile Fattura24 */
.qt-order-filters-pop{width:min(560px,calc(100vw - 48px));}
.qt-order-filters-pop .aura-field input,
.qt-order-filters-pop .aura-field select{height:38px;}
.qt-order-filters-pop .aura-pop-head small{display:block;margin-top:3px;color:#667085;font-weight:400;}


/* V74 - descrizione ordine: hover solo tooltip, click apre scheda */
.f24-orders-table.qt-orders-fit-table .qt-causale-cell{
  cursor:default!important;
}
.f24-orders-table.qt-orders-fit-table .qt-causale-cell:hover{
  background:transparent!important;
  text-decoration:none!important;
}
.f24-orders-table .qt-causale-cell:hover{
  background:transparent!important;
}
.f24-orders-table.qt-orders-fit-table tr.clickable:hover .qt-causale-cell{
  background:inherit!important;
}


/* V76 - hover elenco Ordini: evidenzia sempre tutta la riga, non solo la descrizione */
.f24-orders-table.qt-orders-fit-table tbody tr.clickable:hover > td,
.f24-orders-table tbody tr.clickable:hover > td{
  background:#eaf1f9!important;
}
.f24-orders-table.qt-orders-fit-table tbody tr.clickable:hover > td.qt-causale-cell,
.f24-orders-table tbody tr.clickable:hover > td.qt-causale-cell{
  background:#eaf1f9!important;
}
.f24-orders-table.qt-orders-fit-table .qt-causale-cell:hover,
.f24-orders-table .qt-causale-cell:hover{
  background:#eaf1f9!important;
  text-decoration:none!important;
}

/* V77 - intestazioni ordinabili elenco Ordini */
.qt-sort-link{
    display:inline-flex;
    align-items:center;
    gap:4px;
    color:inherit;
    text-decoration:none;
    cursor:pointer;
    user-select:none;
}
.qt-sort-link:hover{
    color:#0f4f96;
    text-decoration:none;
}
.qt-sort-link::after{
    content:'↕';
    font-size:10px;
    opacity:.35;
    line-height:1;
}
.qt-sort-link.active{
    color:#0f4f96;
    font-weight:700;
}
.qt-sort-link.active.asc::after{
    content:'▲';
    opacity:.9;
}
.qt-sort-link.active.desc::after{
    content:'▼';
    opacity:.9;
}
.f24-orders-table thead th{
    white-space:nowrap;
}

/* V78 - anteprima allegato locale nuovo ordine: subito ingrandibile come record salvato */
.qt-preview-local-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-left:auto}
.qt-preview-local-actions .aura-btn{height:32px;min-height:32px;line-height:30px;padding:0 12px;border-radius:8px;font-size:12px;font-weight:700;white-space:nowrap}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .doc-panel-title{min-height:42px;height:42px;padding:0 16px;background:#fff;border-bottom:1px solid #d6dee8;display:flex;align-items:center;justify-content:space-between;gap:12px}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap{display:flex!important;align-items:center!important;justify-content:center!important}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:calc(100vh - 170px)!important}
@media(max-width:900px){.qt-preview-local-actions{flex-wrap:wrap;justify-content:flex-end}.qt-modal-frame-content .qt-new-editor-shell.preview-mode .doc-panel-title{height:auto;min-height:52px;padding:8px 12px}}

/* V79 - zoom anteprima locale nuovo ordine */
.qt-preview-local-actions .qt-zoom-btn{min-width:34px!important;width:34px!important;padding:0!important;font-size:17px!important;font-weight:800!important;line-height:30px!important}
.qt-preview-local-actions .qt-zoom-value{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:32px;padding:0 8px;border:1px solid #c9d3df;border-radius:8px;background:#fff;color:#071a3a;font-size:12px;font-weight:800}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap{overflow:auto!important;align-items:flex-start!important;justify-content:center!important;padding:18px!important;box-sizing:border-box!important}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-img{transition:transform .12s ease!important;transform-origin:center center!important;margin:auto!important;cursor:zoom-in!important}
.new-preview-wrap .modal-preview-img{transition:transform .12s ease;transform-origin:center center}

/* V80 - popup utilizzi servizio/prodotto in caso di eliminazione bloccata */
.inline-delete-form{display:inline;margin:0;padding:0;}
.qt-usage-pop-overlay{
  position:fixed; inset:0; z-index:9999;
  background:rgba(9, 22, 43, .45);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.qt-usage-pop{
  width:min(1120px, calc(100vw - 48px));
  max-height:min(760px, calc(100vh - 48px));
  background:#fff;
  border:1px solid #d8e2ee;
  border-radius:14px;
  box-shadow:0 24px 80px rgba(9,22,43,.28);
  display:flex; flex-direction:column;
  overflow:hidden;
}
.qt-usage-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
  padding:18px 20px;
  border-bottom:1px solid #dfe7f1;
}
.qt-usage-head strong{display:block;font-size:18px;color:#071d3a;margin-bottom:4px;}
.qt-usage-head small{display:block;color:#5b6b80;font-size:13px;line-height:1.35;}
.qt-usage-body{padding:14px 18px;overflow:auto;background:#f8fbff;}
.qt-usage-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #dfe7f1;}
.qt-usage-table th,
.qt-usage-table td{padding:10px 11px;border-bottom:1px solid #e5ecf5;text-align:left;vertical-align:top;font-size:13px;}
.qt-usage-table th{background:#f2f6fb;color:#20344d;font-weight:700;white-space:nowrap;}
.qt-usage-table td{color:#071d3a;}
.qt-usage-table tr:hover td{background:#eef5ff;}
.qt-usage-table td span{color:#4c5f78;}
.qt-usage-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px;border-top:1px solid #dfe7f1;background:#fff;}

/* V92 - Contesto operativo Mezzo/Targa attivo */
.qt-active-mezzo-bar{
  display:flex;align-items:center;gap:8px;min-height:38px;
  padding:5px 8px;border:1px solid rgba(15,39,68,.12);border-radius:999px;
  background:#fff;box-shadow:0 6px 18px rgba(15,39,68,.04);
}
.qt-active-mezzo-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#607082;white-space:nowrap;font-weight:700}
.qt-active-mezzo-bar select{height:28px;min-width:170px;max-width:270px;border:1px solid rgba(15,39,68,.16);border-radius:999px;background:#f7f9fb;padding:0 28px 0 10px;color:#102840;font-size:12px;font-weight:600;outline:none}
.qt-active-mezzo-clear{height:28px;border:0;border-radius:999px;background:#eef2f6;color:#102840;font-size:12px;font-weight:700;padding:0 10px;cursor:pointer}
.qt-active-mezzo-clear:hover{background:#e2e8ef}
.qt-context-alert{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 12px 0;padding:10px 12px;border:1px solid rgba(15,39,68,.10);border-radius:12px;background:#f7f9fb;color:#26384c;font-size:13px}
.qt-context-alert strong{color:#102840}
.qt-inline-link{border:0;background:transparent;color:#102840;text-decoration:underline;font-weight:700;cursor:pointer;padding:0;margin:0 0 0 4px;font:inherit}
@media (max-width:1100px){.qt-active-mezzo-bar{width:100%;justify-content:flex-start}.qt-active-mezzo-bar select{min-width:140px;max-width:100%}}


/* V96 - Anteprima allegati uniforme Ordine/Nuovo: tab sinistra scrollabile, picker sopra anteprima, zoom anche record salvati */
.qt-picker-modal.open{z-index:12000!important;}
.qt-picker-box{z-index:12001!important;}
.qt-picker-results{max-height:min(56vh,520px)!important;overflow:auto!important;}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{
  height:calc(100vh - 156px)!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(500px,38%) minmax(720px,62%)!important;
  grid-template-rows:1fr!important;
  gap:0!important;
  padding:0 0 58px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel{display:none!important;}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active{
  display:block!important;
  min-height:0!important;
  height:100%!important;
  overflow:auto!important;
  padding:18px!important;
  border-right:1px solid #d6dee8!important;
  box-sizing:border-box!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
  background:#f4f6f9!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap{
  flex:1!important;
  min-height:0!important;
  height:auto!important;
  overflow:auto!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:18px!important;
  box-sizing:border-box!important;
  background:#d7d9dd!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-frame{
  width:100%!important;
  height:100%!important;
  min-height:calc(100vh - 230px)!important;
  border:0!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:none!important;
  transition:transform .12s ease!important;
  transform-origin:center center!important;
  margin:auto!important;
}
.qt-saved-preview-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-left:auto;}
.qt-saved-preview-actions .aura-btn{height:30px!important;min-height:30px!important;line-height:28px!important;padding:0 10px!important;border-radius:6px!important;font-size:12px!important;font-weight:700!important;white-space:nowrap!important;}
.qt-saved-preview-actions .qt-zoom-btn{width:32px!important;min-width:32px!important;padding:0!important;font-size:17px!important;font-weight:800!important;}
.qt-saved-preview-actions .qt-zoom-value{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:30px;padding:0 8px;border:1px solid #c9d3df;border-radius:6px;background:#fff;color:#071a3a;font-size:12px;font-weight:800;}
.qt-modal-frame-content .qt-tabbed-preview-workbench .preview-frame-wrap{overflow:auto!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;}
.qt-modal-frame-content .qt-tabbed-preview-workbench .preview-frame-wrap iframe.qt-saved-preview-frame{
  transform-origin:top center!important;
  transition:transform .12s ease!important;
}
@media(max-width:1100px){
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{grid-template-columns:1fr!important;overflow:auto!important;height:calc(100vh - 156px)!important;}
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active{border-right:0!important;border-bottom:1px solid #d6dee8!important;}
  .qt-saved-preview-actions,.qt-preview-local-actions{flex-wrap:wrap!important;justify-content:flex-end!important;}
}


/* V98 - Nuovo ordine: anteprima allegati identica a ordine salvato
   Colonna sinistra = tab attivo/lista allegati o dati; colonna destra = documento.
   Evita inversione colonne, mantiene scroll sinistra e picker sopra anteprima. */
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{
  display:grid!important;
  grid-template-columns:minmax(560px,42%) minmax(760px,58%)!important;
  grid-template-rows:1fr!important;
  height:calc(100vh - 154px)!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0 0 58px!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active{
  grid-column:1!important;
  grid-row:1!important;
  display:block!important;
  height:100%!important;
  min-height:0!important;
  overflow:auto!important;
  padding:18px!important;
  border-right:1px solid #d6dee8!important;
  box-sizing:border-box!important;
  background:#fff!important;
  z-index:1!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  grid-template-rows:42px 1fr!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  border-left:0!important;
  background:#cfd1d6!important;
  z-index:0!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock>.doc-panel-title{
  height:42px!important;
  min-height:42px!important;
  padding:0 16px!important;
  background:#f8fafc!important;
  border-bottom:1px solid #d6dee8!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  box-sizing:border-box!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-preview-local-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  margin-left:auto!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-preview-local-actions .aura-btn{
  height:30px!important;
  min-height:30px!important;
  line-height:28px!important;
  padding:0 10px!important;
  border-radius:6px!important;
  font-size:12px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-preview-local-actions .qt-zoom-btn{
  width:32px!important;
  min-width:32px!important;
  padding:0!important;
  font-size:17px!important;
  font-weight:800!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-preview-local-actions .qt-zoom-value{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:46px!important;
  height:30px!important;
  padding:0 8px!important;
  border:1px solid #c9d3df!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#071a3a!important;
  font-size:12px!important;
  font-weight:800!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap{
  height:100%!important;
  min-height:0!important;
  overflow:auto!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:18px!important;
  box-sizing:border-box!important;
  background:#cfd1d6!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:none!important;
  margin:auto!important;
  transform-origin:top center!important;
  transition:transform .12s ease!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-frame{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  border:0!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .f24-new-attachments{
  padding:0!important;
  min-height:100%!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .f24-new-attachments .f24-file-table{
  max-height:calc(100vh - 365px)!important;
  overflow:auto!important;
}
@media(max-width:1100px){
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{grid-template-columns:1fr!important;overflow:auto!important;height:calc(100vh - 154px)!important;}
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active,
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{grid-column:1!important;grid-row:auto!important;border-right:0!important;border-bottom:1px solid #d6dee8!important;}
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-preview-local-actions{flex-wrap:wrap!important;}
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{min-height:520px!important;}
}


/* V99 - Ordine nuovo: unico master anteprima come ordine esistente.
   Quando l'anteprima è aperta deve rimanere visibile SOLO il tab attivo a sinistra
   (Allegati = solo elenco file; Dati = solo form dati), senza trascinare sotto il form Dati.
   Questo neutralizza le vecchie regole legacy che forzavano sempre data-new-panel="dati" in preview-mode. */
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel:not(.active){
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0!important;
  border:0!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel[data-new-panel="dati"]:not(.active){
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0!important;
  border:0!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active{
  display:block!important;
  grid-column:1!important;
  grid-row:1!important;
  height:100%!important;
  min-height:0!important;
  overflow:auto!important;
  padding:18px!important;
  border-right:1px solid #d6dee8!important;
  box-sizing:border-box!important;
  background:#fff!important;
  z-index:2!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"]{
  padding:14px 18px 18px!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"] .f24-new-attachments{
  padding:0!important;
  min-height:100%!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"] .f24-file-table{
  max-height:calc(100vh - 340px)!important;
  overflow:auto!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{
  grid-column:2!important;
  grid-row:1!important;
  z-index:1!important;
}
.qt-picker-modal.open{
  z-index:12000!important;
}
.qt-picker-modal.open .qt-picker-box{
  z-index:12001!important;
}


/* V100 - Riscrittura controllata master Ordine/Nuovo/Copia: la modale nuovo usa lo stesso comportamento visivo della modifica.
   Regole definitive: solo tab attivo a sinistra, anteprima sempre a destra, nessun pannello Dati trascinato sotto Allegati,
   picker/lente sopra anteprima, scroll indipendente nella colonna sinistra. */
.qt-modal-frame-content .qt-new-editor-shell .new-tab-panel:not(.active){
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
.qt-modal-frame-content .qt-new-editor-shell .new-tab-panel.active{
  display:block!important;
  visibility:visible!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{
  display:grid!important;
  grid-template-columns:minmax(520px,42%) minmax(620px,58%)!important;
  grid-template-rows:1fr!important;
  height:calc(100vh - 154px)!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0 0 58px!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active{
  grid-column:1!important;
  grid-row:1!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
  padding:18px!important;
  border-right:1px solid #d6dee8!important;
  box-sizing:border-box!important;
  background:#fff!important;
  z-index:3!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"]{
  padding:14px 18px 18px!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"] .f24-new-attachments{
  display:flex!important;
  flex-direction:column!important;
  min-height:100%!important;
  padding:0!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"] .f24-file-table{
  flex:0 0 auto!important;
  max-height:calc(100vh - 340px)!important;
  overflow:auto!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  grid-template-rows:42px 1fr!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#cfd1d6!important;
  z-index:1!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock>.doc-panel-title{
  height:42px!important;
  min-height:42px!important;
  padding:0 18px!important;
  background:#f8fafc!important;
  border-bottom:1px solid #d6dee8!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  box-sizing:border-box!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap{
  height:100%!important;
  min-height:0!important;
  overflow:auto!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:18px!important;
  background:#cfd1d6!important;
  box-sizing:border-box!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:none!important;
  margin:auto!important;
  transform-origin:top center!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-frame{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  border:0!important;
  background:#fff!important;
}
.qt-picker-modal.open{z-index:12000!important;}
.qt-picker-modal.open .qt-picker-box{z-index:12001!important;}
@media(max-width:1100px){
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{grid-template-columns:1fr!important;overflow:auto!important;height:calc(100vh - 154px)!important;}
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active,
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{grid-column:1!important;grid-row:auto!important;border-right:0!important;border-bottom:1px solid #d6dee8!important;}
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{min-height:520px!important;}
}


/* V101 - ORDER_MODAL_MASTER_STABLE
   Regola definitiva per stabilità Ordini/Viaggi:
   - Nuovo, Modifica e Copia hanno lo stesso comportamento visuale.
   - Se non c'è anteprima: il tab attivo occupa tutta la modale.
   - Se c'è anteprima: tab attivo a sinistra, documento a destra.
   - Aprendo un allegato nel Nuovo si resta sempre nel tab Allegati, come nella modifica.
   - Picker/lente sempre sopra documento e overlay. */
.qt-modal-frame-content .qt-new-editor-shell{
  background:#fff!important;
  overflow:hidden!important;
}
.qt-modal-frame-content .qt-new-editor-shell .qt-master-form{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:auto 1fr auto!important;
}
.qt-modal-frame-content .qt-new-editor-shell .qt-editor-tabs{
  grid-row:1!important;
}
.qt-modal-frame-content .qt-new-editor-shell .qt-master-scroll{
  grid-row:2!important;
  min-height:0!important;
  overflow:auto!important;
  padding:18px 18px 78px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.qt-modal-frame-content .qt-new-editor-shell .new-tab-panel{
  display:none!important;
  min-height:0!important;
}
.qt-modal-frame-content .qt-new-editor-shell .new-tab-panel.active{
  display:block!important;
}
.qt-modal-frame-content .qt-new-editor-shell .qt-new-preview-dock[hidden]{display:none!important;}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{
  display:grid!important;
  grid-template-columns:minmax(500px,40%) minmax(0,60%)!important;
  grid-template-rows:minmax(0,1fr)!important;
  height:calc(100vh - 154px)!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0 0 58px!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  max-height:0!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active{
  display:block!important;
  visibility:visible!important;
  grid-column:1!important;
  grid-row:1!important;
  height:100%!important;
  max-height:none!important;
  min-height:0!important;
  overflow:auto!important;
  padding:18px!important;
  background:#fff!important;
  border-right:1px solid #d6dee8!important;
  box-sizing:border-box!important;
  z-index:2!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"]{
  padding:14px 18px 18px!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"] .f24-new-attachments{
  min-height:100%!important;
  padding:0!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"] .f24-file-table{
  max-height:calc(100vh - 340px)!important;
  overflow:auto!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{
  display:grid!important;
  grid-column:2!important;
  grid-row:1!important;
  grid-template-rows:42px minmax(0,1fr)!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#cfd1d6!important;
  border-left:0!important;
  z-index:1!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock>.doc-panel-title{
  height:42px!important;
  min-height:42px!important;
  padding:0 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  background:#f8fafc!important;
  border-bottom:1px solid #d6dee8!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-preview-local-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap{
  min-height:0!important;
  height:100%!important;
  overflow:auto!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:18px!important;
  background:#cfd1d6!important;
  box-sizing:border-box!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:none!important;
  margin:auto!important;
  transform-origin:top center!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-frame{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  border:0!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell .qt-master-footer{
  position:fixed!important;
  left:12px!important;
  right:12px!important;
  bottom:0!important;
  height:56px!important;
  z-index:5000!important;
  margin:0!important;
}
.qt-picker-modal.open{
  z-index:20000!important;
}
.qt-picker-modal.open .qt-picker-box{
  z-index:20001!important;
}
@media(max-width:1100px){
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{
    grid-template-columns:1fr!important;
    height:calc(100vh - 154px)!important;
    overflow:auto!important;
  }
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active,
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{
    grid-column:1!important;
    grid-row:auto!important;
    border-right:0!important;
    border-bottom:1px solid #d6dee8!important;
  }
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{
    min-height:520px!important;
  }
  .qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-preview-local-actions{
    flex-wrap:wrap!important;
  }
}


/* V102 - ORDINI_TRUE_PREVIEW_ALIGNMENT
   Allinea davvero il comportamento visuale di Nuovo/Copia all'ordine esistente.
   Il problema precedente era doppio: ordine salvato usava iframe/preview server,
   mentre nuovo usava img locale + CSS dedicato; quindi zoom, scala e proporzioni erano diversi. */
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-master-scroll{
  grid-template-columns:minmax(520px,42%) minmax(620px,58%)!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active{
  border-right:1px solid #d6dee8!important;
  padding:14px 18px 18px!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock{
  background:#d7d9dd!important;
  grid-template-rows:42px minmax(0,1fr)!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-new-preview-dock>.doc-panel-title{
  background:#fbfcfe!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 18px!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap{
  background:#d7d9dd!important;
  padding:18px!important;
  overflow:auto!important;
  align-items:flex-start!important;
  justify-content:center!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .qt-local-preview-frame,
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-frame{
  display:block!important;
  border:0!important;
  background:#fff!important;
  box-shadow:none!important;
  min-height:720px!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-tab-panel.active[data-new-panel="allegati"] .f24-file-table{
  min-height:360px!important;
  max-height:calc(100vh - 360px)!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .qt-preview-local-actions .aura-btn,
.qt-modal-frame-content .qt-tabbed-preview-workbench .qt-saved-preview-actions .aura-btn{
  height:32px!important;
  border-radius:6px!important;
  white-space:nowrap!important;
}


/* V103 - PREVIEW_ZOOM_CENTER
   Quando l'anteprima viene ingrandita, il documento resta centrato nella
   colonna destra sia in Nuovo/Copia sia in Modifica. */
.qt-modal-frame-content .qt-tabbed-preview-workbench .preview-frame-wrap,
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  overflow:auto!important;
}
.qt-modal-frame-content .qt-tabbed-preview-workbench .preview-frame-wrap iframe,
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .qt-local-preview-frame,
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-frame{
  margin-left:auto!important;
  margin-right:auto!important;
  transform-origin:top center!important;
}
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .qt-local-preview-image,
.qt-modal-frame-content .qt-new-editor-shell.preview-mode .new-preview-wrap .modal-preview-img{
  display:block!important;
  margin-left:auto!important;
  margin-right:auto!important;
  transform-origin:top center!important;
  max-width:100%!important;
  height:auto!important;
  background:#fff!important;
}

/* V104 - ORDER_MASTER_SINGLE_LAYOUT
   Nuovo, Crea copia e Modifica devono percepirsi come la stessa scheda Ordine/Viaggio:
   header, tab, body, footer e anteprima condividono le stesse classi master QUICK. */
.qt-modal-frame-content .qt-order-master-shell{
  height:100vh!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
}
.qt-modal-frame-content .qt-order-master-shell .qt-master-form{
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  background:#fff!important;
}
.qt-modal-frame-content .qt-order-master-shell .qt-new-inline-tabs{
  display:flex!important;
  gap:24px!important;
  padding:0 18px!important;
  background:#fff!important;
  border-bottom:1px solid #d7dee8!important;
  min-height:42px!important;
  box-sizing:border-box!important;
}
.qt-modal-frame-content .qt-order-master-shell .qt-new-inline-tabs .qt-inline-tab{
  border:0!important;
  background:transparent!important;
  cursor:pointer!important;
  padding:0!important;
}
.qt-modal-frame-content .qt-order-master-shell:not(.preview-mode) .qt-master-scroll{
  min-height:0!important;
  overflow:auto!important;
  padding:18px 18px 86px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.qt-modal-frame-content .qt-order-master-shell:not(.preview-mode) .new-tab-panel{
  display:none!important;
}
.qt-modal-frame-content .qt-order-master-shell:not(.preview-mode) .new-tab-panel.active{
  display:block!important;
}
.qt-modal-frame-content .qt-order-master-shell .qt-master-footer{
  position:fixed!important;
  left:12px!important;
  right:12px!important;
  bottom:0!important;
  height:56px!important;
  z-index:5000!important;
  margin:0!important;
  border-top:1px solid #d7dee8!important;
  background:#fff!important;
  box-shadow:0 -8px 18px rgba(6,18,38,.06)!important;
}
.qt-modal-frame-content .qt-order-master-shell.preview-mode .qt-master-scroll{
  display:grid!important;
  grid-template-columns:minmax(560px,42%) minmax(0,58%)!important;
  grid-template-rows:minmax(0,1fr)!important;
  height:calc(100vh - 154px)!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0 0 58px!important;
}
.qt-modal-frame-content .qt-order-master-shell.preview-mode .new-tab-panel.active{
  grid-column:1!important;
  grid-row:1!important;
  height:100%!important;
  overflow:auto!important;
  padding:18px!important;
  border-right:1px solid #d6dee8!important;
  box-sizing:border-box!important;
}
.qt-modal-frame-content .qt-order-master-shell.preview-mode .qt-new-preview-dock{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  grid-template-rows:42px minmax(0,1fr)!important;
  height:100%!important;
  min-height:0!important;
  background:#d7d9dd!important;
  overflow:hidden!important;
}
@media(max-width:1100px){
  .qt-modal-frame-content .qt-order-master-shell.preview-mode .qt-master-scroll{grid-template-columns:1fr!important;overflow:auto!important;height:calc(100vh - 154px)!important;}
  .qt-modal-frame-content .qt-order-master-shell.preview-mode .new-tab-panel.active,
  .qt-modal-frame-content .qt-order-master-shell.preview-mode .qt-new-preview-dock{grid-column:1!important;grid-row:auto!important;border-right:0!important;border-bottom:1px solid #d6dee8!important;}
}

/* V105 - Servizi/Prodotti: centro ricavo obbligatorio e filtro non raccordati */
.qt-services-list-table .badge.warn{
  background:#fff7ed!important;
  color:#9a3412!important;
  border:1px solid #fed7aa!important;
}
.qt-service-accounting-form select[required]:invalid{
  border-color:#f2b8b5!important;
  background:#fff7f7!important;
}
.required-dot{
  display:inline-flex;
  margin-left:6px;
  padding:2px 7px;
  border-radius:999px;
  background:#fff7ed;
  color:#9a3412;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}

/* QUICK TRASPORTI V125 - schermata backup/storico */
.qt-backup-intro{margin-bottom:12px}.qt-backup-intro .panel-head,.qt-backup-section-head{padding:14px 16px;border-bottom:1px solid #d7dee8}.qt-backup-intro h3,.qt-backup-section-head h3,.qt-backup-cron h3{margin:0 0 4px;color:#102033;font-size:17px;font-weight:700}.qt-backup-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px 16px}.qt-backup-rules>div{border:1px solid #d7dee8;background:#fbfcfe;border-radius:10px;padding:12px}.qt-backup-rules strong{display:block;color:#0b244f;font-size:13px;margin-bottom:4px}.qt-backup-rules span{display:block;color:#5d6c78;font-size:12px;line-height:1.35}.qt-backup-panel{margin-bottom:14px}.qt-backup-actions{display:flex;align-items:center;justify-content:center;gap:8px}.qt-backup-actions form{margin:0}.qt-backup-actions .aura-btn{height:30px;border-radius:4px;font-size:12px;padding:0 10px}.qt-backup-actions .aura-btn.danger{background:#fff5f2;border-color:#ffc9bd;color:#b42516}.qt-backup-cron{margin-top:12px;padding-bottom:14px}.qt-backup-cron .panel-head{padding:14px 16px 8px}.qt-backup-cron pre{margin:0 16px 0;padding:12px 14px;border:1px solid #d7dee8;border-radius:8px;background:#0f172a;color:#e5e7eb;font-size:12px;overflow:auto}@media(max-width:900px){.qt-backup-rules{grid-template-columns:1fr}.qt-backup-actions{flex-direction:column}.qt-backup-actions .aura-btn{width:100%}}

/* V129 - Gruppi amministrativi: tab mezzi/utenti in modale XL */
.qt-info-strip{margin-top:18px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#f8fafc;color:#334155;font-size:13px;line-height:1.45}
.qt-section-head-inline{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.qt-section-head-inline strong{display:block;font-size:15px;color:#0f172a;margin-bottom:3px}
.qt-section-head-inline small{display:block;color:#64748b;font-size:12px;line-height:1.4}
.qt-role-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px 0}
.qt-role-legend span{display:block;border:1px solid var(--line);border-radius:12px;background:#f8fafc;padding:10px;color:#475569;font-size:12px;line-height:1.35}
.qt-check-table-wrap{max-height:420px;overflow:auto;border-radius:14px}
.qt-check-table th,.qt-check-table td{vertical-align:middle}
.qt-check-table select{width:100%;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:white;font:inherit;color:#0f172a}
@media(max-width:1100px){.qt-role-legend{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:720px){.qt-role-legend{grid-template-columns:1fr;}}

/* V131 - Gruppi amministrativi: matrice permessi utenti/gruppi */
.qt-permissions-wrap{overflow-x:auto;}
.qt-permissions-table{min-width:1320px;}
.qt-permissions-table th,.qt-permissions-table td{vertical-align:middle;}
.qt-permissions-table td small{display:block;margin-top:3px;color:#64748b;font-size:11px;font-weight:500;}
.qt-permissions-table .center{text-align:center;}
.qt-permissions-table input[type="checkbox"]{width:16px;height:16px;}
.qt-permissions-table select{min-width:170px;}

/* QUICK TRASPORTI V194 - restyling base globale
   Costi V193/V194 diventa il riferimento visivo: stessi pulsanti, popup puliti,
   meno grassetto, filtri/periodo coerenti e tabelle più leggere. Solo CSS/convenzioni UI,
   nessuna modifica a logica, database o permessi. */
:root{
  --qt-ui-bg:#f6f8fb;
  --qt-ui-panel:#ffffff;
  --qt-ui-line:#d8e2ef;
  --qt-ui-line-soft:#e9eef6;
  --qt-ui-text:#0b244f;
  --qt-ui-muted:#64748b;
  --qt-ui-blue:#1456a3;
  --qt-ui-blue-dark:#0b3f7a;
}

/* Toolbar e pulsanti base */
.aura-workbar,
.f24-order-toolbar,
.qt-master-listbar{
  gap:12px!important;
  align-items:center!important;
  margin-bottom:12px!important;
}
.aura-workbar-left,.aura-workbar-right{
  gap:8px!important;
}
.aura-btn{
  height:38px;
  border-radius:9px!important;
  border-color:#cfd9e7!important;
  background:#fff;
  color:var(--qt-ui-text)!important;
  font-weight:600!important;
  letter-spacing:0!important;
  box-shadow:none!important;
}
.aura-btn:hover{border-color:#aebfd4!important;background:#f8fbff!important;color:var(--qt-ui-text)!important}
.aura-btn.primary,
.aura-btn.active,
.f24-blue.active,
.qt-filter-button.active,
.qt-filter-btn.active,
.f24-period-btn.active,
.qt-cost-period-button.active{
  background:var(--qt-ui-blue)!important;
  border-color:var(--qt-ui-blue)!important;
  color:#fff!important;
}
.aura-btn.primary:hover,
.aura-btn.active:hover{background:var(--qt-ui-blue-dark)!important;color:#fff!important}
.f24-green{background:#25a852!important;border-color:#25a852!important;color:#fff!important}
.f24-green:hover{background:#1f9148!important;border-color:#1f9148!important;color:#fff!important}
.f24-blue{background:#5f7fae!important;border-color:#5f7fae!important;color:#fff!important}
.f24-blue:hover{background:#516f9b!important;border-color:#516f9b!important;color:#fff!important}

/* Bottoni FILTRI / PERIODO coerenti */
.aura-workbar-right>.aura-dropdown>.aura-btn,
.aura-workbar-right>button.aura-btn,
.qt-ui-filter-btn,
.qt-ui-period-btn,
.qt-filter-button,
.qt-filter-btn,
.f24-period-btn,
.qt-cost-period-button{
  min-width:auto;
  height:38px!important;
  padding:0 14px!important;
  border-radius:9px!important;
  background:#fff!important;
  border:1px solid #cfd9e7!important;
  color:#0b244f!important;
  font-size:13px!important;
  font-weight:600!important;
  text-transform:uppercase;
  white-space:nowrap;
}
.f24-period-btn,
.qt-cost-period-button{min-width:220px!important;text-transform:none!important;justify-content:center!important}

/* Popup dropdown: unico stile pulito */
.aura-pop,
.aura-pop.wide{
  border-radius:14px!important;
  border:1px solid var(--qt-ui-line)!important;
  box-shadow:0 18px 42px rgba(8,28,62,.14)!important;
  padding:14px!important;
  background:#fff!important;
}
.aura-pop-head{
  margin-bottom:12px!important;
  border-bottom:1px solid var(--qt-ui-line-soft);
  padding-bottom:10px;
}
.aura-pop-head strong,
.aura-pop-head span{
  font-size:15px!important;
  color:#0b244f!important;
  font-weight:600!important;
  letter-spacing:0!important;
}
.aura-pop-head small{display:none!important}
.aura-field{gap:5px!important;margin-bottom:10px!important}
.aura-field label{
  color:#3f526a!important;
  font-size:12px!important;
  font-weight:500!important;
}
.aura-field input,
.aura-field select,
.aura-field textarea{
  height:38px!important;
  border:1px solid #cfd9e7!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#0b244f!important;
  font-size:13px!important;
  font-weight:400!important;
  box-shadow:none!important;
}
.aura-grid-2{gap:12px!important;align-items:end!important}
.aura-pop-footer,
.compact-footer,
.qt-ui-pop-footer{
  border-top:1px solid var(--qt-ui-line-soft)!important;
  margin-top:12px!important;
  padding-top:12px!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
}
.aura-pop-footer .aura-btn{height:36px!important;border-radius:8px!important}

/* Popup periodo standard: leggero, senza grassetto pesante */
.f24-period-pop,
.qt-cost-period-pop{
  border-radius:14px!important;
  border:1px solid var(--qt-ui-line)!important;
  padding:14px 18px!important;
  box-shadow:0 18px 42px rgba(8,28,62,.14)!important;
}
.f24-period-head,
.qt-cost-period-head{
  margin:0 0 14px!important;
  color:#0b244f!important;
}
.f24-period-head strong,
.qt-cost-period-head strong,
.qt-cost-period-title{
  font-weight:600!important;
  font-size:15px!important;
  color:#0b244f!important;
}
.f24-period-col button,
.qt-cost-period-grid button,
.qt-cost-period-shortcuts button{
  font-weight:400!important;
  color:#334e6f!important;
  text-decoration:none!important;
}
.f24-period-col button:hover,
.qt-cost-period-grid button:hover,
.qt-cost-period-shortcuts button:hover{
  color:var(--qt-ui-blue)!important;
  text-decoration:none!important;
}

/* Tabelle elenco più uniformi e meno pesanti */
.aura-table th,
.f24-orders-table th,
.table th{
  color:#263a54!important;
  font-size:12px!important;
  font-weight:600!important;
  background:#fbfcfe!important;
  border-bottom:1px solid var(--qt-ui-line)!important;
}
.aura-table td,
.f24-orders-table td,
.table td{
  color:#0b244f!important;
  font-size:13px!important;
  font-weight:400!important;
  border-bottom:1px solid #e9eef6!important;
}
.aura-table tbody tr.clickable:hover td,
.f24-orders-table tbody tr:hover td{
  background:#f7faff!important;
}
.qt-row-main-text{font-weight:500!important;color:#0b244f!important}
.qt-row-sub-text{font-weight:400!important;color:#66758a!important}
.badge{
  background:#f4f7fb!important;
  color:#0b4d94!important;
  border:1px solid #e3ebf5;
  font-weight:500!important;
}
.badge.ok{background:#eef7f1!important;color:#0f7b42!important;border-color:#d9edde!important}

/* Footer/paginazione: informazione secondaria, non in evidenza */
.f24-list-footer{
  min-height:42px;
  padding:10px 14px!important;
  color:#51637a!important;
  font-size:13px!important;
  font-weight:400!important;
  background:#fff!important;
}
.qt-page-size-control{
  color:#51637a!important;
  font-size:12px!important;
  font-weight:500!important;
}
.qt-page-size-control select{
  height:34px!important;
  border-radius:8px!important;
  border:1px solid #cfd9e7!important;
  background:#fff!important;
  color:#0b244f!important;
  font-weight:500!important;
}

/* Form e modali: riduzione del grassetto e look omogeneo */
.form label,
.qt-client-grid label,
.qt-modal-form label,
.quick-form-grid label{
  font-weight:500!important;
  color:#3f526a!important;
}
.form input,.form select,.form textarea,
.qt-client-grid input,.qt-client-grid select,.qt-client-grid textarea,
.qt-modal-form input,.qt-modal-form select,.qt-modal-form textarea,
.quick-form-grid input,.quick-form-grid select,.quick-form-grid textarea{
  border-radius:9px!important;
  border-color:#cfd9e7!important;
  font-weight:400!important;
}
.qt-client-tab,
.tab,
.qt-inline-tab{
  font-weight:600!important;
  letter-spacing:.02em!important;
}
.qt-client-head h2,
.qt-modal-head h2,
.panel-head h2{
  font-weight:650!important;
}

/* Mantiene il report compatto ma con controlli coerenti */
.qt-report-mainbar .aura-btn{height:36px!important;border-radius:8px!important;font-weight:600!important}
.qt-report-filter-pop .aura-field label{font-weight:500!important}
.qt-report-headline h2{font-weight:650!important}
.qt-report-table th{font-weight:600!important}
.qt-report-table td{font-weight:400!important}

@media(max-width:900px){
  .aura-workbar{align-items:stretch!important;flex-direction:column!important}
  .aura-workbar-left,.aura-workbar-right{width:100%;justify-content:flex-start!important}
  .aura-pop,.aura-pop.wide,.f24-period-pop,.qt-cost-period-pop{width:calc(100vw - 28px)!important;max-width:calc(100vw - 28px)!important;left:0!important;right:auto!important}
  .aura-grid-2{grid-template-columns:1fr!important}
}

/* QUICK TRASPORTI V195 - Ordini allineato allo standard Costi V193/V194 */
.qt-order-period-pop{
  width:590px!important;
  max-width:calc(100vw - 80px)!important;
  border-radius:14px!important;
  padding:14px 18px!important;
  right:0!important;
  top:calc(100% + 8px)!important;
}
.qt-order-period-head{display:flex!important;align-items:center!important;justify-content:center!important;gap:18px!important;margin:0 0 14px!important;color:#0b244f!important;white-space:nowrap!important}
.qt-period-nav{width:34px!important;height:34px!important;border:1px solid #d7e1ee!important;border-radius:9px!important;background:#f6f9fd!important;color:#1456a3!important;cursor:pointer!important;font-size:18px!important;font-weight:500!important;line-height:1!important}
.qt-period-nav:hover{background:#edf4fc!important;border-color:#b8c9db!important}
.qt-period-title{font-size:15px!important;font-weight:500!important;color:#0b244f!important;letter-spacing:0!important}
.qt-order-period-shortcuts{display:grid!important;grid-template-columns:130px 135px 1fr 1fr 1fr!important;gap:0!important;align-items:start!important}
.qt-period-shortcut-col{min-height:126px!important;padding:2px 14px!important;border-left:1px solid #dfe5ec!important;display:flex!important;flex-direction:column!important;gap:11px!important}
.qt-period-shortcut-col:first-child{border-left:0!important;padding-left:0!important}
.qt-period-shortcut-col button,
.qt-period-reset-link{border:0!important;background:transparent!important;text-align:left!important;color:#334e6f!important;font-size:14px!important;line-height:1.25!important;padding:0!important;cursor:pointer!important;font-weight:400!important;white-space:nowrap!important;text-decoration:none!important;font-family:inherit!important}
.qt-period-shortcut-col button:hover,
.qt-period-reset-link:hover{color:#1456a3!important;text-decoration:none!important}
.qt-order-period-custom-row{margin-top:12px!important;border-top:1px solid #dfe5ec!important;padding-top:12px!important;display:grid!important;grid-template-columns:1fr 1fr auto!important;gap:10px!important;align-items:center!important}
.qt-order-period-custom-row input{height:38px!important;border:1px solid #cfd9e7!important;border-radius:9px!important;background:#fff!important;color:#0b244f!important;font-size:13px!important;font-weight:400!important;padding:0 11px!important}
.qt-order-period-custom-row .aura-btn{height:38px!important;border-radius:9px!important;white-space:nowrap!important}
.qt-orders-footer{justify-content:space-between!important;align-items:center!important;min-height:48px!important}
.qt-orders-footer .qt-page-size-bottom{margin:0!important}
.qt-orders-footer .qt-footer-counts{margin-left:auto!important}
.qt-alt-dd .qt-alt-pop .qt-menu-row{font-weight:500!important;color:#263443!important}
@media(max-width:900px){
  .qt-order-period-pop{width:calc(100vw - 28px)!important;max-width:calc(100vw - 28px)!important;left:0!important;right:auto!important}
  .qt-order-period-shortcuts{grid-template-columns:1fr 1fr!important}
  .qt-period-shortcut-col{border-left:0!important;border-top:1px solid #dfe5ec!important;padding:12px 0!important;min-height:auto!important}
  .qt-period-shortcut-col:first-child{border-top:0!important}
  .qt-order-period-custom-row{grid-template-columns:1fr!important}
}

/* QUICK TRASPORTI V196 - Clienti allineato allo standard Quick approvato */
.qt-client-listbar .aura-btn{height:34px!important;border-radius:8px!important;font-weight:600!important}
.qt-client-listbar .aura-btn.primary{background:#1456a3!important;border-color:#1456a3!important;color:#fff!important}
.qt-client-listbar .qt-filter-button.active{background:#1456a3!important;border-color:#1456a3!important;color:#fff!important}
.qt-client-filter-pop{border-radius:14px!important;padding:14px 16px!important;box-shadow:0 14px 34px rgba(8,28,62,.14)!important}
.qt-client-filter-pop .aura-pop-head{margin-bottom:10px!important}
.qt-client-filter-pop .aura-pop-head strong{font-size:15px!important;font-weight:600!important;color:#0b244f!important}
.qt-client-filter-pop .aura-field{margin-bottom:0!important}
.qt-client-filter-pop .aura-field label{font-size:12px!important;font-weight:500!important;color:#3f526a!important}
.qt-client-filter-pop input,.qt-client-filter-pop select{height:38px!important;border-radius:9px!important;border-color:#cfd9e7!important;color:#0b244f!important;font-weight:400!important}
.qt-client-panel-list{border-radius:0!important;box-shadow:none!important;border:1px solid #d7dee8!important;background:#fff!important;overflow:hidden!important}
.qt-client-table{table-layout:fixed!important;width:100%!important;min-width:1040px!important}
.qt-client-table .qt-client-col-check{width:38px!important}
.qt-client-table .qt-client-col-star{width:34px!important}
.qt-client-table .qt-client-col-name{width:300px!important}
.qt-client-table .qt-client-col-piva{width:132px!important}
.qt-client-table .qt-client-col-cf{width:150px!important}
.qt-client-table .qt-client-col-phone{width:140px!important}
.qt-client-table .qt-client-col-email{width:auto!important}
.qt-client-table .qt-client-col-status{width:112px!important}
.qt-client-table th,.qt-client-table td{padding:10px 12px!important;vertical-align:middle!important}
.qt-client-table td{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.qt-client-table .qt-client-name-cell{white-space:normal!important;overflow:visible!important}
.qt-client-table .qt-client-email-cell{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.qt-client-table tbody tr.clickable:hover td{background:#eaf1f9!important;cursor:pointer!important}
.qt-client-footer-list{height:48px!important;justify-content:space-between!important;align-items:center!important;padding:0 14px!important}
.qt-client-footer-list .qt-page-size-bottom{margin:0!important}
.qt-client-footer-list .qt-footer-counts{margin-left:auto!important;color:#51637a!important;font-size:13px!important;font-weight:400!important}
.qt-client-modal{border-radius:14px!important;box-shadow:0 24px 70px rgba(7,26,58,.28)!important;border:1px solid #d7dee8!important;overflow:hidden!important}
.qt-client-head{padding:16px 22px 10px!important;border-bottom:1px solid #dce3ec!important}
.qt-client-head h2{font-size:21px!important;font-weight:600!important;color:#0b244f!important;letter-spacing:-.01em!important}
.qt-client-subtitle{margin-top:5px!important;font-size:13px!important;color:#66758a!important;font-weight:400!important}
.qt-client-tabs{padding:0 22px!important;border-bottom:1px solid #dce3ec!important}
.qt-client-tab{height:42px!important;padding:0 16px!important;font-size:12px!important;font-weight:500!important;text-transform:none!important;color:#66758a!important;border-bottom:2px solid transparent!important}
.qt-client-tab.active{color:#0b244f!important;border-bottom-color:#1456a3!important}
.qt-client-body{padding:22px!important;background:#fff!important}
.qt-client-grid{max-width:860px!important;column-gap:10px!important;row-gap:12px!important}
.qt-client-grid label{font-size:12px!important;font-weight:500!important;color:#3f526a!important;gap:6px!important}
.qt-client-grid input,.qt-client-grid select,.qt-client-grid textarea{height:36px!important;border-radius:9px!important;border-color:#cfd9e7!important;color:#0b244f!important;font-size:13px!important;font-weight:400!important;padding:7px 10px!important}
.qt-client-grid textarea{height:128px!important;line-height:1.35!important}
.qt-client-grid.note-grid textarea{height:180px!important}
.qt-client-section-title{font-size:13px!important;font-weight:600!important;color:#0b244f!important;margin:0 0 12px!important}
.qt-client-divider{background:#e6edf5!important;margin:18px 0!important;max-width:860px!important}
.qt-client-footer{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:10px!important;min-height:58px!important;padding:10px 22px!important;border-top:1px solid #dce3ec!important;background:#fff!important}
.qt-client-footer-left{display:flex!important;justify-content:flex-start!important}
.qt-client-footer-center{display:flex!important;justify-content:center!important}
.qt-client-footer-right{display:flex!important;justify-content:flex-end!important}
.qt-client-footer .aura-btn{height:34px!important;border-radius:8px!important;font-size:12px!important;font-weight:600!important;text-transform:uppercase!important}
.qt-client-footer .aura-btn.primary{background:#1456a3!important;border-color:#1456a3!important;color:#fff!important}
.qt-client-footer .f24-actions-dd>.aura-btn{background:#fff!important;border-color:#cfd9e7!important;color:#0b244f!important}
.qt-client-footer .qt-footer-plain{background:#fff!important;border-color:transparent!important;color:#51637a!important}
.qt-client-footer .aura-pop{bottom:calc(100% + 8px)!important;top:auto!important;width:220px!important}
.qt-client-footer .aura-pop .aura-btn{width:100%!important;justify-content:flex-start!important;text-transform:none!important}
@media(max-width:900px){
  .qt-client-table{min-width:920px!important}
  .qt-client-footer{grid-template-columns:1fr!important;align-items:stretch!important}
  .qt-client-footer-left,.qt-client-footer-center,.qt-client-footer-right{justify-content:stretch!important}
  .qt-client-footer .aura-btn{width:100%!important}
}

/* QUICK UI V201 - template riutilizzabile: tab lineari tipo Fattura24 e footer modale standard. */
.quick-linear-tabs{display:flex!important;align-items:flex-end!important;gap:26px!important;min-height:42px!important;padding:0 22px!important;background:#fff!important;border:0!important;border-bottom:1px solid #d6dee8!important;box-shadow:none!important;overflow-x:auto!important;}
.quick-linear-tabs .quick-linear-tab,.quick-linear-tabs .qt-inline-tab{appearance:none!important;-webkit-appearance:none!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;height:42px!important;min-height:42px!important;padding:0 0 9px!important;margin:0!important;display:inline-flex!important;align-items:flex-end!important;justify-content:center!important;color:#66758a!important;font-size:12px!important;font-weight:500!important;text-transform:uppercase!important;letter-spacing:.02em!important;line-height:1!important;cursor:pointer!important;white-space:nowrap!important;}
.quick-linear-tabs .quick-linear-tab.active,.quick-linear-tabs .qt-inline-tab.active{color:#0b244f!important;border:0!important;border-bottom:2px solid #1456a3!important;background:transparent!important;font-weight:600!important;}
.quick-modal-footer{display:grid!important;grid-template-columns:minmax(180px,1fr) auto minmax(260px,1fr)!important;align-items:center!important;gap:18px!important;min-height:62px!important;padding:11px 22px!important;border-top:1px solid #d6dee8!important;background:#fff!important;box-shadow:0 -8px 20px rgba(6,18,38,.055)!important;}
.quick-modal-footer-left,.quick-modal-footer-center,.quick-modal-footer-right{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;}
.quick-modal-footer-left{justify-content:flex-start!important;}.quick-modal-footer-center{justify-content:center!important;}.quick-modal-footer-right{justify-content:flex-end!important;gap:14px!important;}
.quick-modal-footer .quick-footer-btn,.quick-modal-footer .aura-btn{height:34px!important;min-height:34px!important;border-radius:8px!important;padding:0 14px!important;font-size:12px!important;font-weight:600!important;text-transform:uppercase!important;white-space:nowrap!important;line-height:32px!important;}
.quick-modal-footer .aura-btn.primary{background:#1456a3!important;border-color:#1456a3!important;color:#fff!important;}.quick-modal-footer .aura-btn.danger{background:#fff7f5!important;border-color:#ffd5ce!important;color:#b42318!important;}
@media(max-width:900px){.quick-linear-tabs{gap:16px!important;padding:0 14px!important}.quick-modal-footer{grid-template-columns:1fr!important;align-items:stretch!important}.quick-modal-footer-left,.quick-modal-footer-center,.quick-modal-footer-right{justify-content:stretch!important}.quick-modal-footer .aura-btn{width:100%!important}}

/* V204 - Costi: Centro costo con lente, non tendina. */
.qt-cost-native-select-hidden {
  display: none !important;
}
.single-centro-field.qt-picker-field .picker-line input[readonly] {
  cursor: pointer;
  background: #fff;
}

/* V223 - logo Mercurius con nome software Quick Trasporti */
.qa-brand-logo{width:190px;max-width:100%;margin:0 auto 8px;object-fit:contain}.qa-brand{text-align:center}.brand-product{text-transform:none;font-size:14px;letter-spacing:.02em}.auth-logo-img{display:block;width:230px;max-width:100%;height:auto;margin:0 auto 8px;object-fit:contain}


/* V246 - Toast salvataggio Quick: piccolo popup sopra il footer, visivo ma non invasivo. */
.qt-toast-wrap{
  position:fixed!important;
  right:28px!important;
  bottom:86px!important;
  z-index:2600!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:8px!important;
  margin:0!important;
  pointer-events:none!important;
}
.qt-toast{
  min-width:190px!important;
  max-width:min(360px,calc(100vw - 56px))!important;
  margin:0!important;
  padding:10px 13px!important;
  border-radius:12px!important;
  border:1px solid rgba(11,36,79,.12)!important;
  background:#0b244f!important;
  color:#fff!important;
  box-shadow:0 14px 36px rgba(8,28,62,.20)!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.25!important;
  opacity:0!important;
  transform:translateY(8px)!important;
  transition:opacity .22s ease,transform .22s ease!important;
  pointer-events:auto!important;
}
.qt-toast.show{opacity:1!important;transform:translateY(0)!important}
.qt-toast.hide{opacity:0!important;transform:translateY(8px)!important}
.qt-toast.success::before{content:'✓';display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:8px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-weight:900;font-size:12px;vertical-align:middle}
.qt-toast.error{background:#fff7f5!important;color:#9f1d14!important;border-color:#ffd5ce!important;box-shadow:0 14px 36px rgba(154,52,18,.14)!important}
.qt-toast.warning{background:#fff7ed!important;color:#9a3412!important;border-color:#fed7aa!important;box-shadow:0 14px 36px rgba(154,52,18,.12)!important}
.qt-modal-frame-body .qt-toast-wrap,
.qt-modal-backdrop.open ~ .qt-toast-wrap,
.modal-flash.qt-toast-wrap{bottom:82px!important;right:26px!important}
@media(max-width:760px){
  .qt-toast-wrap{right:12px!important;left:12px!important;bottom:76px!important;align-items:stretch!important}
  .qt-toast{max-width:none!important;width:100%!important}
}

/* V258 - Costi: menu Altro pulito, solo export Excel in testo semplice */
.qt-cost-alt-pop{width:230px!important;padding:8px!important}
.qt-cost-alt-link{display:block!important;padding:9px 10px!important;border-radius:8px!important;color:#0b244f!important;font-size:13px!important;font-weight:600!important;line-height:1.2!important;background:#fff!important;border:0!important;text-align:left!important}
.qt-cost-alt-link:hover{background:#f3f7fc!important;color:#1456a3!important}
