/* Compact 5.09 preview fixes shared across dashboard and record pages. */
.filter-top-search{display:grid;grid-template-columns:auto minmax(420px,1fr) auto;gap:16px;align-items:end;margin-bottom:12px}
.global-search-control{display:grid;gap:4px;font-size:12px;font-weight:600;color:#5b7188}
.global-search-control input{width:100%;min-width:0;background:#f9fbfd;color:#233d54;border:1px solid #d7e0e9;border-radius:5px;padding:8px;font-size:14px}
.global-search-status{min-height:0;margin:0;font-size:12px;color:#5b7188}
.global-search-results{margin:8px 0 12px;padding:10px;border:1px solid #d7e0e9;border-radius:7px;background:#f9fbfd}
.global-search-results button{display:block;width:100%;text-align:left;margin:4px 0}
#workspace-project-context{position:relative}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#workspace-project-context [data-workspace-menu]>summary{position:absolute;right:3px;top:2px;z-index:2;width:30px;min-height:28px!important;padding:0;display:grid;place-items:center;border-radius:5px;list-style:none}
#workspace-project-context [data-workspace-menu]>summary::-webkit-details-marker{display:none}
.workspace-menu-icon{font-size:19px;line-height:1}
#workspace-project-context [data-workspace-menu]>h2{padding-right:34px}
.focus-template-copy strong{font-size:20px!important;line-height:1.3}
.workspace-entry-modes{border:2px solid #365f73!important;background:#f1f7f9!important;box-shadow:0 2px 8px rgba(26,66,84,.1)}
.workspace-entry-modes>div:first-child{display:flex;flex-wrap:wrap;gap:8px}
#browseRecords>.fields.section{border:2px solid #496f82;background:#f3f8fa;box-shadow:0 2px 8px rgba(26,66,84,.08)}
#browseRecords #dataset{border:2px solid #164f68;background:#fff;font-weight:700;color:#173f52;box-shadow:0 0 0 2px rgba(22,79,104,.08)}
#browseRecords #dataset:focus-visible{outline:3px solid #8bc2d7;outline-offset:2px}
.inspection-catalog-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;align-items:end;padding:12px;border:1px solid #b9ced8;border-radius:9px;background:#f7fbfc}
.inspection-type-control{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto}
.inspection-catalog-control label{margin:0}.inspection-catalog-action{min-height:44px;white-space:nowrap}.inspection-catalog-control .muted{grid-column:1/-1;margin:0}
.linked-observation-card{border-left:5px solid #2f718e}.observation-action-fields{margin-top:12px;padding-top:12px;border-top:1px solid #c6d8df}
.records-compact tr.record-status-open>td{background:#fff2f2;border-top-color:#e1a3a7;border-bottom-color:#e1a3a7}.records-compact tr.record-status-open>td:first-child{box-shadow:inset 5px 0 0 #b63a43}.records-compact .record-status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:66px;max-width:100%;padding:3px 9px;border:1px solid transparent;border-radius:6px;font-weight:800;line-height:1.25;white-space:nowrap}.records-compact .record-status-badge--open{background:#b63a43;border-color:#9f3039;color:#fff}.records-compact .record-status-badge--closed{background:#e4f3ed;border-color:#b9ddce;color:#176446}.records-compact .record-status-badge--neutral{background:#edf2f5;border-color:#d1dbe2;color:#4c6272}.corrective-actions-records-table [data-label="Action ID"]{width:110px;min-width:110px;max-width:130px;overflow-wrap:anywhere}.observations-records-table [data-label="Linked records"] button{display:inline-flex;max-width:128px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.observations-records-table [data-label="Linked records"]{width:150px;min-width:150px;max-width:150px}
.inspection-ai-summary{margin-top:14px;padding:12px 14px;border-radius:8px;background:#f4f8fa;border:1px solid #d2e0e6}.inspection-ai-summary h4{margin:0 0 6px;font-size:15px}.inspection-ai-summary p{margin:0}.inspection-ai-summary small{display:block;margin-top:7px;color:#5b7188}
@media(max-width:760px){.filter-top-search{grid-template-columns:1fr auto}.filter-top-search>strong{grid-column:1/-1}.global-search-control{min-width:0}}
@media(max-width:760px){.inspection-catalog-control,.inspection-type-control{grid-template-columns:1fr}.inspection-catalog-action{width:100%}}
.records-compact.regulatory-records-table{table-layout:fixed}
.records-compact.regulatory-records-table th,.records-compact.regulatory-records-table td{overflow-wrap:anywhere;word-break:normal}
@media(min-width:761px){.records-compact.regulatory-records-table{min-width:980px}.records-compact.regulatory-records-table .record-description{width:30%}.records-compact.regulatory-records-table th:last-child,.records-compact.regulatory-records-table td[data-label="Regulatory Reference"]{width:18%}#regulatory-records .records-compact.regulatory-records-table{min-width:1580px}#regulatory-records .regulatory-records-table th:nth-child(2),#regulatory-records .regulatory-records-table td[data-label="Date"]{width:105px}#regulatory-records .regulatory-records-table th:nth-child(3),#regulatory-records .regulatory-records-table td[data-label="Area"]{width:100px}#regulatory-records .regulatory-records-table th:nth-child(4),#regulatory-records .regulatory-records-table td[data-label="Location"]{width:160px}#regulatory-records .regulatory-records-table th:nth-child(5),#regulatory-records .regulatory-records-table td[data-label="Visit"]{width:135px}#regulatory-records .regulatory-records-table th:nth-child(6),#regulatory-records .regulatory-records-table td[data-label="Type"]{width:95px}#regulatory-records .regulatory-records-table th:nth-child(7),#regulatory-records .regulatory-records-table td[data-label="Status"]{width:95px}#regulatory-records .regulatory-records-table th:nth-child(8),#regulatory-records .regulatory-records-table th:nth-child(9){width:75px}#regulatory-records .regulatory-records-table .record-description{width:255px}#regulatory-records .regulatory-records-table th[data-column-label="Reference"],#regulatory-records .regulatory-records-table td[data-label="Reference"]{width:200px}#regulatory-records .regulatory-records-table th[data-column-label="Officer Name"],#regulatory-records .regulatory-records-table td[data-label="Officer Name"]{width:140px}}
@media(max-width:760px){.records-compact.regulatory-records-table{min-width:0}.records-compact.regulatory-records-table td{max-width:100%;box-sizing:border-box}}
/* E6 sidebar and drawer polish */
#workspace-dashboard-return{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 12px}
#workspace-dashboard-return .workspace-breadcrumb{margin:0!important;color:#637783}
#workspace-dashboard-return .workspace-breadcrumb a{color:#08749b;text-decoration:none}
#workspace-dashboard-return .workspace-breadcrumb a:hover{text-decoration:underline}
#workspace-dashboard-return .workspace-breadcrumb [aria-current=page]{color:#19384a;font-weight:600}
.workspace-project-navigation aside,.workspace-injected-sidebar{scrollbar-width:thin;scrollbar-color:#426078 transparent}
#workspace-project-context a:focus-visible,#workspace-project-context summary:focus-visible{outline:3px solid #f3c969;outline-offset:-3px}
@media(max-width:700px){#workspace-dashboard-return{gap:4px 10px}#workspace-dashboard-return>a{flex:1 1 100%;text-align:center}}
