: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;--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: 34px;--chrome-height: 78px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:linear-gradient(180deg,#f7fbfb 0%,var(--bg) 140px,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:10px;background:var(--accent);color:#fff;padding:0 .9rem;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:10px;background:var(--surface);color:var(--text);padding:.5rem .75rem}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,tr:focus-visible{outline:2px solid #0c8ea0;outline-offset:1px}.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:.75rem;min-height:var(--chrome-height);padding:.5rem .9rem;border-bottom:1px solid var(--border);background:#fffffff5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-width:0}.brand-block,.brand-copy{display:flex;align-items:center}.brand-block{gap:.65rem;min-width:0}.brand-copy{flex-direction:column;align-items:flex-start;min-width:0;gap:.05rem}.brand-copy strong,.section-title h2,.panel-header h3,.state-panel h3{margin:0;font-weight:700}.brand-mark{display:inline-flex;align-items:center;justify-content:center;min-width:84px;height:32px;padding:0 .7rem;border:1px solid #9ecbd2;border-radius:999px;background:var(--accent-soft);color:var(--accent-strong);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.brand-copy strong{font-size:.98rem}.brand-copy span{color:var(--text-muted);font-size:.8rem}.eyebrow{margin:0 0 .2rem;color:var(--accent);font-size:.73rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.auth-cluster{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:.5rem;align-items:end}.auth-cluster-compact{display:flex;grid-template-columns:none;gap:.45rem;align-items:center}.auth-cluster label,.toolbar-grid label{display:grid;gap:.3rem}.auth-cluster span,.toolbar-grid span,.detail-grid span,.summary-grid dt{color:var(--text-muted);font-size:.82rem;font-weight:600}.auth-label,.auth-error{font-size:.88rem}.auth-error{color:var(--danger)}.primary-nav{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}.nav-item{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 .8rem;border:1px solid var(--border);border-radius:999px;color:var(--text);background:var(--surface-alt);text-decoration:none;font-weight:600;font-size:.88rem}.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:.75rem .9rem .9rem}.page-section,.search-layout{display:grid;gap:.65rem;min-height:0}.page-section{height:100%}.search-page{grid-template-rows:auto minmax(0,1fr)}.search-workspace,.detail-stack{display:grid;gap:.65rem;min-height:0}.search-workspace{grid-template-rows:minmax(0,1fr) minmax(0,1fr)}.detail-stack{grid-template-rows:minmax(220px,280px) minmax(0,1fr)}.section-title,.panel-header{display:flex;justify-content:space-between;gap:.6rem;align-items:start}.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:.7rem .8rem}.panel-tight{padding:.55rem .65rem}.state-panel-error{border-color:#efc8c0;background:var(--danger-soft)}.metric-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.7rem}.metric-tile{display:grid;gap:.35rem;padding:.75rem .8rem;color:inherit;text-decoration:none}.metric-tile strong{font-size:1.45rem;line-height:1}.metric-tile small{color:var(--text-muted)}.search-toolbar{display:grid;gap:.45rem}.toolbar-primary{display:grid;grid-template-columns:auto auto minmax(320px,1fr) auto;align-items:end;gap:.55rem}.toolbar-heading{min-width:max-content}.toolbar-heading h3{font-size:1.05rem}.gxp-toggle{display:flex;gap:.35rem;flex-wrap:wrap}.toggle-chip,.workspace-tab{min-height:30px;border-radius:999px;background:var(--surface-alt);color:var(--text);border:1px solid var(--border-strong);padding:0 .7rem;font-size:.84rem}.toolbar-search-primary{min-width:0}.toggle-chip.active,.workspace-tab.active{background:var(--accent-soft);color:var(--accent-strong);border-color:#7cb7c0}.toolbar-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:.5rem}.search-layout{grid-template-columns:minmax(0,2.15fr) minmax(320px,1fr);min-height:0}.table-scroll{overflow:auto;border:1px solid var(--border);border-radius:10px;min-height:0}.table-scroll-fill{flex:1 1 auto;min-height:0}.table-scroll-history{height:100%}.dense-table{width:100%;border-collapse:collapse;font-size:.88rem;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:.38rem .52rem;border-bottom:1px solid #e0eaed;white-space:nowrap;vertical-align:top}.dense-table td{overflow:hidden;text-overflow:ellipsis}.facility-table .col-code{width:8.5rem}.facility-table .col-facility{width:19%}.facility-table .col-company{width:18%}.facility-table .col-gxp{width:6.5rem}.facility-table .col-standard{width:14%}.facility-table .col-province{width:10%}.facility-table .col-reference,.facility-table .col-status,.facility-table .col-certificate{width:11%}.facility-table .col-expiry{width:8.5rem}.dense-table tbody tr{cursor:pointer}.dense-table tbody tr:hover{background:#f8fbfb}.dense-table tbody tr.selected{background:var(--selected)}.cell-stack{display:grid;gap:.15rem}.cell-stack span,.panel-meta{color:var(--text-muted);font-size:.85rem}.summary-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-content:start;min-height:0}.results-panel,.history-panel,.workspace-panel{display:flex;flex-direction:column;min-height:0}.summary-head{display:flex;justify-content:space-between;gap:.6rem;align-items:start}.summary-identity{min-width:0}.summary-identity h3{font-size:1rem}.summary-subtitle{margin:.15rem 0 0;color:var(--text-muted);font-size:.84rem}.summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem .8rem;margin:0}.summary-grid div,.detail-grid div{display:grid;gap:.2rem}.summary-grid dd,.summary-grid dt{margin:0}.summary-grid dd{font-size:.9rem;line-height:1.3}.summary-grid-compact{margin-top:.55rem}.summary-span{grid-column:1 / -1}.action-strip,.workspace-tabs{display:flex;gap:.45rem;flex-wrap:wrap}.action-strip{margin-top:.55rem}.action-strip-compact button{height:30px;padding:0 .65rem;border-radius:8px;font-size:.82rem}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem .85rem}.compact-grid{margin-top:.55rem}.workspace-panel{min-height:0}.workspace-body{min-height:0;overflow:auto;margin-top:.55rem;padding-right:.15rem}.status-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 .55rem;border-radius:999px;font-size:.78rem;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{grid-template-columns:1fr;align-items:stretch}.toolbar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1100px){.topbar,.section-title,.panel-header{align-items:stretch}.search-layout{grid-template-columns:1fr}.topbar{display:grid}.auth-cluster,.summary-grid,.detail-grid,.metric-grid,.toolbar-grid{grid-template-columns:1fr 1fr}.search-workspace{grid-template-rows:auto auto}.detail-stack{grid-template-rows:minmax(220px,280px) auto}}@media(max-width:760px){.workspace-root,.shell-chrome{padding-left:.75rem;padding-right:.75rem}.auth-cluster,.summary-grid,.detail-grid,.metric-grid,.toolbar-grid,.search-layout{grid-template-columns:1fr}body{overflow:auto}.app-shell,.workspace-root,.page-section{height:auto}.workspace-root{overflow:visible}}
