/* Responsive safeguards for long office forms and small touch screens. */
.status-panel,.draft-tools{padding:14px;border:1px solid #dce2e9;border-radius:9px;background:#f6f8fa;margin:12px 0}.draft-tools button{margin:4px}.draft-tools p:empty{display:none}.draft-tools:has(p:empty):not(:has(button)){display:none}.status-panel p,.draft-tools p{overflow-wrap:anywhere}dialog form,dialog fieldset,.overview-grid>*,.customer-card-layout>*{min-width:0}dialog textarea{resize:vertical}dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea{max-width:100%;box-sizing:border-box}dialog button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #97172c;outline-offset:3px}
@media screen and (max-width:700px){dialog{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px);padding:16px!important;overflow-y:auto;box-sizing:border-box}dialog input,dialog textarea,dialog select{font-size:16px!important}dialog button,.pack-editor button,#packNav button,.draft-tools button{min-height:44px}.evidence-grid{grid-template-columns:minmax(0,1fr)}.overview-heading h1{overflow-wrap:anywhere}.actions{flex-wrap:wrap}.work-table-wrap{max-width:100%;overflow-x:auto}.report-sheet{overflow-wrap:anywhere}.status-panel{padding:12px}.quotation-options{padding:10px}.booking-fields{grid-template-columns:1fr!important}}
@media print{.draft-tools,.status-panel,#sitebookUpdateNotice{display:none!important}.report-sheet{width:auto!important;max-width:100%!important;overflow:visible!important}.report-sheet td,.report-sheet th{overflow-wrap:anywhere}.report-sheet img{max-width:100%}.report-sheet tr{break-inside:avoid}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
