.inspection-scroll{max-width:100%;overflow:auto;margin-top:1rem;border:1px solid #64748b;border-radius:.5rem}.inspection-table{border-collapse:collapse;width:100%;font-size:.85rem}.inspection-table th,.inspection-table td{border:1px solid #64748b;padding:.7rem;min-width:8rem;vertical-align:top;overflow-wrap:anywhere}.inspection-table th{background:#1e293b;color:#fff;position:sticky;top:0}.inspection-table th[colspan]{text-align:center}.inspection-table td.inspection-missing{background:#78350f;color:#fff}#inspectionDesk,#inspectionCurrent,#page-ispezioni{min-width:0;max-width:100%}#inspectionReportField{border:1px solid #64748b;padding:.8rem;border-radius:.6rem}#inspectionReportField input{width:auto}#inspectionDesk summary{font-weight:700;cursor:pointer}#inspectionDesk input,#inspectionDesk select{min-width:0;max-width:100%}

#inspectionReportField:not([hidden]){display:block}
/* Dedicated central inspection workspace. Scrolling stays inside the table. */
#inspectionDesk.inspection-workspace{--inspection-bg:#172338;--inspection-head:#1e293b;background:var(--inspection-bg);box-sizing:border-box;margin-top:0}
#inspectionDesk .inspection-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#inspectionDesk .inspection-toolbar h3{margin:0}
#inspectionDesk .inspection-actions{display:flex;flex-wrap:wrap;gap:8px}
#inspectionDesk .inspection-hint{font-size:.85rem;line-height:1.5}
#inspectionDesk .inspection-scroll{max-height:65dvh;overscroll-behavior:contain;scrollbar-gutter:stable;isolation:isolate}
#inspectionDesk .inspection-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed}
#inspectionDesk .inspection-table caption{padding:10px;text-align:left;font-weight:600;background:var(--inspection-head);color:white}
#inspectionDesk .inspection-table th,#inspectionDesk .inspection-table td{width:100px;max-width:100px;min-width:100px;box-sizing:border-box;border:0;border-right:1px solid #64748b;border-bottom:1px solid #64748b;padding:10px;background:var(--inspection-bg)}
#inspectionDesk .inspection-table tr>th:nth-child(2),#inspectionDesk .inspection-table tr>td:nth-child(2){width:180px;max-width:180px;min-width:180px}
#inspectionDesk .inspection-table tr>td:nth-child(3){width:160px;min-width:160px;max-width:160px}
#inspectionDesk .inspection-table thead th{background:var(--inspection-head);z-index:2;height:42px;box-sizing:border-box;white-space:nowrap}
#inspectionDesk .inspection-table thead tr:nth-child(2) th{top:42px}
#inspectionDesk .inspection-table thead tr:nth-child(2) th{width:100px;min-width:100px;max-width:100px}
#inspectionDesk .inspection-table td.inspection-missing{background:#78350f;color:#fff}
#inspectionDesk .inspection-table td:first-child{position:sticky;left:0;z-index:1}
#inspectionDesk .inspection-table th:first-child[rowspan]{position:sticky;left:0;z-index:3}
#inspectionDesk .inspection-pages{display:flex;gap:8px;flex-wrap:wrap}
body.inspection-fullscreen-open{overflow:hidden}
#inspectionDesk.inspection-fullscreen{position:fixed!important;inset:0!important;z-index:99999!important;width:100vw!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:18px!important;border-radius:0!important;overflow:auto}
#inspectionDesk.inspection-fullscreen .inspection-scroll{max-height:calc(100dvh - 320px);min-height:200px}
#inspectionDesk.inspection-fullscreen .inspection-toolbar{position:sticky;top:-18px;padding:10px 0;background:var(--inspection-bg);z-index:5}
html[data-theme=light] #inspectionDesk.inspection-workspace{--inspection-bg:#fff;--inspection-head:#e2e8f0}
html[data-theme=light] #inspectionDesk .inspection-table thead th,html[data-theme=light] #inspectionDesk .inspection-table caption{color:#172338}
html[data-theme=light] #inspectionDesk .inspection-table td.inspection-missing{background:#fff7ed;color:#7c2d12}
@media(max-width:600px){#inspectionDesk .inspection-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}#inspectionDesk .inspection-actions button{padding:10px 8px;font-size:.85rem}#inspectionDesk.inspection-fullscreen{padding:12px!important}#inspectionDesk.inspection-fullscreen .inspection-toolbar{top:-12px}#inspectionDesk.inspection-fullscreen .inspection-scroll{max-height:55dvh}#inspectionDesk .ops-filters label{flex-basis:calc(50% - 12px)}}
