:root{color-scheme:light;font-family:Aptos,Segoe UI,sans-serif;line-height:1.35;font-weight:400;color:#17313c;background:#eef3f4;--bg: #eef3f4;--surface: #ffffff;--surface-alt: #f7fafb;--surface-muted: #f1f6f7;--border: #c9d8dd;--border-strong: #a8bfc8;--text: #17313c;--text-muted: #617982;--accent: #0d6d77;--accent-soft: #d8eef1;--accent-strong: #084f56;--selected: #dff3f7;--warning: #a86710;--warning-soft: #fff2dd;--danger: #b33f2f;--danger-soft: #ffe8e3;--success: #1d6a4f;--success-soft: #e4f5ed;--shadow: 0 10px 24px rgba(16, 39, 50, .05);--radius: 12px;--control-height: 32px;--chrome-height: 64px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:linear-gradient(180deg,#f8fbfb 0%,var(--bg) 120px,var(--bg) 100%);overflow:hidden}button,input,select,textarea{font:inherit}button,.nav-item,.metric-tile,.text-link{transition:background-color .12s ease,border-color .12s ease,color .12s ease}button{height:var(--control-height);border:1px solid var(--accent);border-radius:9px;background:var(--accent);color:#fff;padding:0 .8rem;cursor:pointer}button.secondary{background:var(--surface);color:var(--accent-strong);border-color:var(--border-strong)}button:disabled{cursor:not-allowed;opacity:.55}input,select,textarea{width:100%;min-height:var(--control-height);border:1px solid var(--border-strong);border-radius:9px;background:var(--surface);color:var(--text);padding:.4rem .65rem}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,tr:focus-visible{outline:2px solid #0c8ea0;outline-offset:1px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{height:100vh;display:grid;grid-template-rows:auto minmax(0,1fr)}.shell-chrome{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.65rem;min-height:var(--chrome-height);padding:.35rem .8rem;border-bottom:1px solid var(--border);background:#fffffff7;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.topbar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;min-width:0}.brand-block,.brand-copy{display:flex;align-items:center}.brand-block{gap:.55rem;min-width:0}.brand-copy{min-width:0}.brand-copy strong,.section-title h2,.panel-header h3,.summary-identity h3{margin:0;font-weight:700}.brand-mark{display:inline-flex;align-items:center;justify-content:center;min-width:84px;height:28px;padding:0 .65rem;border:1px solid #9ecbd2;border-radius:999px;background:var(--accent-soft);color:var(--accent-strong);font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.brand-copy strong{font-size:.9rem}.eyebrow,.toolbar-label{margin:0;color:var(--accent);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.auth-cluster{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:.45rem;align-items:end}.auth-cluster-compact{display:flex;gap:.45rem;align-items:center}.auth-cluster label,.toolbar-grid label,.toolbar-search{display:grid;gap:.25rem}.auth-cluster span,.toolbar-grid span,.detail-grid span,.summary-grid dt,.workspace-context-meta span,.workspace-context-copy span{color:var(--text-muted);font-size:.78rem;font-weight:600}.auth-label,.auth-error{font-size:.82rem}.auth-error{color:var(--danger)}.primary-nav{display:flex;gap:.3rem;flex-wrap:wrap;justify-content:flex-end}.nav-item{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 .7rem;border:1px solid var(--border);border-radius:999px;color:var(--text);background:var(--surface-alt);text-decoration:none;font-weight:600;font-size:.82rem}.nav-item-primary{border-color:#8dc6cf}.nav-item.active{background:var(--accent);border-color:var(--accent);color:#fff}.workspace-root{min-height:0;overflow:hidden;padding:.65rem .8rem .8rem}.page-section{display:grid;gap:.55rem;min-height:0;height:100%}.search-page{grid-template-rows:auto minmax(220px,.95fr) minmax(280px,1.1fr)}.section-title,.panel-header,.summary-head,.workspace-context-strip{display:flex;justify-content:space-between;gap:.55rem;align-items:start}.panel-heading-inline,.panel-actions,.panel-actions-tight{display:flex;align-items:center;gap:.45rem}.panel-heading-inline{min-width:0}.panel-actions{margin-left:auto}.panel-actions-tight button{height:26px;padding:0 .55rem;font-size:.76rem}.panel-subtle-loading{color:var(--text-muted);font-size:.78rem;font-weight:600}.section-copy,.muted-copy,.state-panel p{margin:0;color:var(--text-muted)}.panel,.state-panel,.metric-tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.panel,.state-panel{padding:.65rem .75rem}.panel-tight{padding:.5rem .6rem}.state-panel-error{border-color:#efc8c0;background:var(--danger-soft)}.metric-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.65rem}.metric-tile{display:grid;gap:.3rem;padding:.7rem .75rem;color:inherit;text-decoration:none}.metric-tile strong{font-size:1.35rem;line-height:1}.metric-tile small{color:var(--text-muted)}.search-toolbar{display:grid;gap:.4rem}.toolbar-primary{display:grid;gap:.45rem}.toolbar-primary-compact{grid-template-columns:auto auto minmax(280px,1fr) auto auto;align-items:center}.toolbar-heading{min-width:max-content}.gxp-toggle,.workspace-tabs,.action-strip{display:flex;gap:.35rem;flex-wrap:wrap}.toggle-chip,.workspace-tab{min-height:28px;background:var(--surface-alt);color:var(--text);border:1px solid var(--border-strong);padding:0 .65rem;font-size:.8rem}.toggle-chip{border-radius:999px}.toggle-chip.active{background:var(--accent-soft);color:var(--accent-strong);border-color:#7cb7c0}.tab-strip{gap:.2rem;align-items:end;border-bottom:1px solid var(--border)}.tab-strip .workspace-tab{min-height:30px;border-radius:8px 8px 0 0;border-bottom-color:transparent;background:#eef4f6;color:#45616b}.tab-strip .workspace-tab.active{background:var(--surface);color:var(--accent-strong);border-color:var(--border-strong);border-bottom-color:var(--surface)}.tab-strip-secondary .workspace-tab{min-height:28px;background:#f4f8f9;color:#556d75}.toolbar-search-primary{min-width:0}.active-filter-strip{display:flex;gap:.35rem;flex-wrap:wrap}.filter-chip{display:inline-flex;align-items:center;min-height:26px;padding:0 .6rem;border:1px solid #b9d0d6;border-radius:999px;background:var(--surface-muted);color:#2f5560;font-size:.78rem;font-weight:600}.toolbar-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:.45rem}.search-workspace,.search-workspace-split,.facility-workspace-panel,.results-panel,.history-panel,.facility-tab-body,.event-workspace,.certificate-shell{min-height:0}.search-workspace-split{display:grid;grid-template-columns:minmax(0,2.55fr) minmax(260px,.95fr);gap:.55rem}.results-panel,.history-panel,.facility-workspace-panel,.event-workspace,.certificate-shell{display:flex;flex-direction:column}.table-scroll{overflow:auto;border:1px solid var(--border);border-radius:10px;min-height:0}.table-scroll-fill,.table-scroll-history{flex:1 1 auto;min-height:0}.dense-table{width:100%;border-collapse:collapse;font-size:.81rem;table-layout:fixed}.dense-table thead th{position:sticky;top:0;z-index:1;background:#f0f6f7;border-bottom:1px solid var(--border-strong);color:#30505a;font-weight:700;text-align:left}.dense-table th,.dense-table td{padding:.34rem .48rem;border-bottom:1px solid #e0eaed;vertical-align:top}.dense-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dense-table tbody tr{cursor:pointer}.dense-table tbody tr:hover{background:#f8fbfb}.dense-table tbody tr.selected{background:var(--selected)}.facility-table .col-code{width:4.6rem}.facility-table .col-facility{width:27%}.facility-table .col-gxp{width:5.75rem}.facility-table .col-scope{width:31%}.facility-table .col-province{width:12%}.facility-table .col-reference{width:10%}.facility-table .col-status{width:11.5rem}.history-table .col-event-type{width:5.8rem}.history-table .col-standard{width:auto}.history-table .col-date{width:5.5rem}.history-table .col-state{width:7.2rem}.multiline-cell{white-space:normal;line-height:1.3}.multiline-value{white-space:pre-line;line-height:1.35}.panel-meta,.cell-stack span{color:var(--text-muted);font-size:.8rem}.cell-stack{display:grid;gap:.1rem}.workspace-context-strip{padding:.1rem 0 .25rem;border-bottom:1px solid #e1ecef}.workspace-context-copy{display:grid;gap:.08rem;min-width:0}.workspace-context-copy strong{font-size:.96rem}.workspace-context-code{color:var(--accent-strong)}.workspace-context-meta{display:flex;gap:.35rem;align-items:center;justify-content:flex-end;flex-wrap:wrap}.facility-tabs{padding-top:.45rem}.facility-tab-body{flex:1 1 auto;overflow:auto;margin-top:.5rem;padding-right:.15rem}.summary-panel{display:grid;gap:.55rem;align-content:start}.summary-panel-embedded{padding:.15rem .05rem 0}.summary-identity{min-width:0}.summary-identity h3{font-size:.98rem}.summary-subtitle{margin:.12rem 0 0;color:var(--text-muted);font-size:.82rem}.summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem .75rem;margin:0}.summary-grid div,.detail-grid div{display:grid;gap:.18rem}.summary-grid dd,.summary-grid dt{margin:0}.summary-grid dd{font-size:.86rem;line-height:1.3}.summary-span{grid-column:1 / -1}.action-strip{margin-top:.1rem}.action-strip-compact button{height:28px;padding:0 .6rem;border-radius:8px;font-size:.78rem}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem .8rem}.compact-grid{margin-top:.5rem}.workspace-body{flex:1 1 auto;min-height:0;overflow:auto;margin-top:.5rem}.certificate-shell{gap:.55rem}.status-badge{display:inline-flex;align-items:center;min-height:23px;padding:0 .5rem;border-radius:999px;font-size:.76rem;font-weight:700;border:1px solid transparent}.status-badge.info,.status-badge.muted{background:#eef5f7;color:#335561}.status-badge.warning{background:var(--warning-soft);color:var(--warning)}.status-badge.danger{background:var(--danger-soft);color:var(--danger)}.status-badge.success{background:var(--success-soft);color:var(--success)}.text-link{color:var(--accent);text-decoration:none;font-weight:700}.search-page .state-panel,.search-page .panel{min-height:0}@media(max-width:1440px){.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.shell-chrome{grid-template-columns:1fr;align-items:stretch}.primary-nav{justify-content:flex-start}.toolbar-primary-compact{grid-template-columns:1fr;align-items:stretch}.toolbar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1100px){.topbar,.section-title,.panel-header,.summary-head,.workspace-context-strip{align-items:stretch}.topbar{display:grid}.search-page{grid-template-rows:auto auto auto}.search-workspace-split,.summary-grid,.detail-grid,.metric-grid{grid-template-columns:1fr}.auth-cluster{grid-template-columns:1fr 1fr}}@media(max-width:760px){body{overflow:auto}.app-shell,.workspace-root,.page-section{height:auto}.workspace-root{overflow:visible;padding-left:.75rem;padding-right:.75rem}.shell-chrome{padding-left:.75rem;padding-right:.75rem}.auth-cluster,.toolbar-grid{grid-template-columns:1fr}}
