/* Fallbacks do not change business data or depend on user-agent detection. */
[hidden]{display:none!important}
.main,.card,.search,.table-scroll{min-width:0;max-width:100%;box-sizing:border-box}
.table-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}
.search label{min-width:0;max-width:100%}
input[type=date],input[type=datetime-local],select{box-sizing:border-box;max-width:100%}
input[type=date],input[type=datetime-local]{min-width:0}
.cleanup-confirm{display:flex;align-items:flex-start;gap:10px;margin:14px 0}
.cleanup-confirm input[type=checkbox]{width:20px;height:20px;flex:0 0 20px}
[data-spec-cleanup-form] input[name='selected[]']{width:20px;height:20px}
.page-specification_cleanup .actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;align-items:center}
.shipper-directory-dialog{max-height:calc(100vh - 48px);max-height:calc(var(--serp-visual-height,100vh) - 48px)}
/* Keep the fallback fullscreen rule separate: an unsupported :fullscreen selector
   in a comma-separated selector list invalidates the entire rule in older Safari. */
.map-v25-stage.map-v25-fullscreen-fallback{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100vh;height:var(--serp-visual-height,100vh);border:0;border-radius:0;z-index:999999;background:#edf2ed}
.map-v25-stage.map-v25-fullscreen-fallback .map-v25-canvas{height:100vh!important;height:var(--serp-visual-height,100vh)!important;min-height:0!important;width:100%}
@supports not (height:100dvh){
 .ma-ai-root .ma-ai-panel{height:calc(100vh - 32px);max-height:770px}
}
@media(max-width:767px){
 .search{flex-wrap:wrap}
 .topbar{flex-wrap:wrap;min-width:0}
 .topbar h1{overflow-wrap:anywhere}
 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:16px}
 #ma-ai-root-v4 .ma-ai-panel,#ma-ai-root .ma-ai-panel{height:100vh!important;height:var(--serp-visual-height,100vh)!important;max-height:var(--serp-visual-height,100vh)!important}
 .ma-ai-root .ma-ai-bottom{padding-bottom:10px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
 .quality-period-filter label{flex:1 1 140px}
}
@media print{.cleanup-confirm,[data-spec-cleanup-form] .actions,[data-spec-cleanup-form] button{display:none!important}}

/* Long tool titles must not be squeezed into a narrow grid column. */
.page-specification_cleanup .topbar{display:flex;flex-wrap:wrap;gap:14px}
.page-specification_cleanup .topbar-title{flex:1 1 400px;min-width:0}
.page-specification_cleanup .topbar-title h1{overflow-wrap:normal;word-break:normal}
.page-specification_cleanup .global-search{flex:1 1 280px;min-width:220px}
.page-specification_cleanup .topbar-actions{flex:1 1 100%;justify-content:flex-end}
.page-quality_analytics .topbar{grid-template-columns:minmax(230px,1fr) auto}
@media(max-width:850px){
 .page-specification_cleanup .topbar-title,.page-specification_cleanup .global-search,.page-specification_cleanup .topbar-actions{flex:0 1 auto;width:100%;min-width:0}
 .page-specification_cleanup .topbar-actions{justify-content:flex-start}
}
