/* NORMIC workspace identity. Scoped to authenticated standard workspaces;
   semantic alerts, entitlements, forms and document workflows retain their behavior. */
.sv-experience[data-standard-theme] {
    --normic-ink:#192c43;
    --normic-muted:#5d6d80;
    --normic-edge:#e2e8ef;
    --normic-canvas:#f5f7fa;
    --normic-radius:12px;
    --normic-control-radius:8px;
    --normic-surface-shadow:0 2px 5px #142b4603;
    color:var(--normic-ink);
}
.sv-experience[data-standard-theme] main { background:var(--normic-canvas); }
.sv-experience[data-standard-theme] main :is(h1,h2,h3) { letter-spacing:-.02em; }
.sv-experience[data-standard-theme] .normic-shell-header { border-color:var(--normic-edge); box-shadow:none; }
.sv-experience[data-standard-theme] #main-sidebar { background:#fff; border-color:var(--normic-edge); }
.sv-experience[data-standard-theme] #main-sidebar.sidebar-expanded { width:248px; }
.sv-experience[data-standard-theme] #main-sidebar .sidebar-logo-section { height:80px; }
.sv-experience[data-standard-theme] .normic-brand-symbol { width:46px; height:46px; }
.sv-experience[data-standard-theme] .normic-brand-copy strong { font-size:22px; font-weight:750; letter-spacing:.06em; }
.sv-experience[data-standard-theme] .normic-brand-copy small { font-size:10px; letter-spacing:.06em; }
.sv-experience[data-standard-theme] #main-sidebar .normic-wordmark[aria-current="page"] { box-shadow:none; }
.sv-experience[data-standard-theme] #main-sidebar .sidebar-menu-item { font-size:13px; font-weight:550; border-radius:8px; }
.sv-experience[data-standard-theme] #main-sidebar .sidebar-menu-item:not([aria-current="page"]) .sidebar-icon { color:#7b899a; }
.sv-experience[data-standard-theme] #main-sidebar .sidebar-menu-item[aria-current="page"] { box-shadow:inset 2px 0 var(--normic-color); }
.sv-experience[data-standard-theme] #main-sidebar .sidebar-subitems { margin-left:22px; border-width:1px; border-color:var(--normic-edge); }
.sv-experience[data-standard-theme] #main-sidebar .sidebar-sub-badge { background:#f8fafc; color:var(--normic-muted); border-color:var(--normic-edge); box-shadow:none; font-weight:500; }
.sv-experience[data-standard-theme] #main-sidebar .sidebar-sub-badge i { color:#7b899a; }
.sv-experience[data-standard-theme] #main-sidebar a[href^="/onboarding"] { background:#f4f6f9; color:#475569; box-shadow:none; border:1px solid var(--normic-edge); }
.sv-experience[data-standard-theme] #main-sidebar .normic-haccp-access { background:#f4effb; color:#6836a8; box-shadow:none; border:1px solid #e5dcef; }
.normic-sidebar-owner { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:8px 18px; border-top:1px solid #e2e8ef; flex-shrink:0; }
.normic-sidebar-owner > span { font-size:10px; color:#64748b; }
.normic-sidebar-owner img { width:96px; height:49px; object-fit:contain; }
.sidebar-collapsed .normic-sidebar-owner { justify-content:center; padding:8px 4px; }
.sidebar-collapsed .normic-sidebar-owner img { width:60px; height:31px; }
@media(min-width:768px) {
    .sv-experience[data-standard-theme]:has(#main-sidebar) .normic-shell-header :is(.normic-header-brand,.normic-owner-logo) { display:none; }
}

/* Directory: compact, quiet surfaces; color identifies the active standard. */
.sv-experience[data-standard-theme] .normic-standard-selector { border:1px solid var(--normic-edge); padding:14px 18px; gap:12px 24px; box-shadow:none; }
.sv-experience[data-standard-theme] .normic-standard-symbol { width:36px; height:36px; border-radius:9px; font-size:17px; }
.sv-experience[data-standard-theme] .normic-standard-identity strong { font-size:15px; }
.sv-experience[data-standard-theme] .normic-standard-selector button { background:var(--normic-ink); }
.sv-experience[data-standard-theme] .normic-standard-selector select { border-color:#cbd5e1; font-size:13px; }
.sv-experience[data-standard-theme] .sv-help-bar { border:0; border-bottom:1px solid var(--normic-edge); border-radius:0; background:transparent; padding:0 0 14px; box-shadow:none; }
.sv-experience[data-standard-theme] .sv-help-bar p { color:var(--normic-muted); font-size:12px; }
.sv-experience[data-standard-theme] .sv-help-bar :is(.sv-help-button,.normic-video-button) { background:#fff; color:#475569; border-color:var(--normic-edge); font-weight:550; }
.sv-experience[data-standard-theme] .sv-directory-toolbar { align-items:end; gap:16px; margin-top:20px; }
.sv-experience[data-standard-theme] .sv-directory-toolbar label { font-size:12px; font-weight:550; color:var(--normic-muted); }
.sv-experience[data-standard-theme] .normic-directory-grid { gap:16px; }
.sv-experience[data-standard-theme] main [data-module-card][data-module-name] {
    display:grid; grid-template-columns:32px minmax(0,1fr); grid-template-rows:auto 1fr auto;
    align-content:start; align-items:start; column-gap:12px; row-gap:6px;
    padding:18px; min-height:148px; border:1px solid var(--normic-edge); background:#fff; box-shadow:none;
}
.sv-experience[data-standard-theme] main [data-module-card][hidden] { display:none; }
.sv-experience[data-standard-theme] main [data-module-card] .normic-tool-icon { grid-column:1; grid-row:1/4; margin:0; }
.sv-experience[data-standard-theme] main [data-module-card] .normic-tool-icon span { width:32px; height:32px; border-radius:8px; }
.sv-experience[data-standard-theme] main [data-module-card] .normic-tool-icon i { font-size:15px; }
.sv-experience[data-standard-theme] main [data-module-card] > :is(h3,p) { grid-column:2; }
.sv-experience[data-standard-theme] main [data-module-card] h3 { font-size:14px; font-weight:650; line-height:1.5; color:var(--normic-ink); margin:3px 0 0; }
.sv-experience[data-standard-theme] main [data-module-card] .normic-tool-description { font-size:12px; line-height:1.6; color:var(--normic-muted); margin:0; }
.sv-experience[data-standard-theme] main [data-module-card] .normic-tool-open { grid-row:3; font-size:11px; padding-top:8px; font-weight:550; }
@media(hover:hover) {
    .sv-experience[data-standard-theme] main [data-module-card][data-module-name]:hover { border-color:var(--normic-line); background:#fcfdff; box-shadow:0 4px 14px #142b4608; }
}

/* HACCP shares the same application shell, with violet as an accent. */
body.sv-experience[data-standard-theme="haccp"] > .normic-haccp-shell { background:#fff; color:var(--normic-ink); box-shadow:none; border-bottom:1px solid var(--normic-edge); }
.sv-experience .normic-haccp-top { gap:18px; border-color:var(--normic-edge); }
.sv-experience .normic-haccp-top > div:first-child { min-width:0; }
.sv-experience .normic-haccp-back { color:var(--normic-muted); min-width:32px; min-height:40px; }
.sv-experience .normic-haccp-brand { color:var(--normic-ink); border-color:var(--normic-edge); font-size:17px; font-weight:750; }
.sv-experience .normic-haccp-title h1 { color:var(--normic-ink); font-size:14px; font-weight:650; line-height:1.35; }
.sv-experience .normic-haccp-title p { color:#7041a7; font-size:11px; font-weight:500; }
.sv-experience .normic-haccp-account > span { color:var(--normic-muted); font-weight:500; }
.sv-experience .normic-haccp-account > form > button,
.sv-experience .normic-haccp-account #haccpNotifContainer > button { background:#f5f7fa; color:var(--normic-muted); min-width:40px; min-height:40px; border:1px solid var(--normic-edge); }
.sv-experience .normic-haccp-navigation { padding-top:10px; }
.sv-experience .normic-haccp-home { color:#52637a; border-color:var(--normic-edge); font-weight:600; background:#fff; }
.sv-experience .normic-haccp-home.is-current { color:#6836a8; background:#f4effb; border-color:#e5dcef; }
.sv-experience .normic-haccp-groups [role="tab"] { color:#52637a; border-radius:7px; font-weight:550; }
.sv-experience .normic-haccp-groups [role="tab"][aria-selected="true"] { color:#6836a8; background:#f4effb; border-color:#e5dcef; }
.sv-experience .normic-haccp-groups [role="tab"]:hover { background:#f5f7fa; }
body.sv-experience[data-standard-theme="haccp"] .normic-haccp-tools .haccp-nav-item { color:var(--normic-muted); background:#fff; border-color:var(--normic-edge); font-weight:500; }
body.sv-experience[data-standard-theme="haccp"] .normic-haccp-tools .haccp-nav-item.active { color:#6836a8; background:#f4effb; border-color:#d6c4ed; font-weight:650; }
.sv-experience .normic-haccp-navigation :is(a,button):focus-visible { outline-color:#7041a7; }
.sv-experience .normic-haccp-utility { display:flex; flex-wrap:wrap; align-items:start; gap:10px; margin-bottom:22px; }
.sv-experience .normic-haccp-utility > .sv-help-bar { display:flex; gap:8px; margin:0; padding:0; border:0; order:2; }
.sv-experience .normic-haccp-utility > .sv-help-bar p { display:none; } /* complete guidance remains available through the help button */
.sv-experience .normic-haccp-utility > div:not(.sv-help-bar) { margin:0; order:3; }
.sv-experience .normic-haccp-utility > .hx-panel { margin:0 auto 0 0; order:1; min-width:230px; }
.sv-experience .normic-haccp-utility > .hx-panel > summary { padding:10px 14px; min-height:40px; font-size:12px; }
.sv-experience .normic-haccp-utility > .hx-panel[open] { order:4; flex-basis:100%; }
.sv-experience[data-standard-theme] main a.haccp-card { border:1px solid var(--normic-edge); padding:18px; box-shadow:none; }
.sv-experience[data-standard-theme] main a.haccp-card h3 { font-size:14px; color:var(--normic-ink); }
.sv-experience[data-standard-theme] main a.haccp-card p { font-size:12px; }
.sv-experience .normic-haccp-dashboard .stat-card { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; text-align:left; padding:18px; border:1px solid var(--normic-edge); border-radius:12px; background:#fff; }
.sv-experience .normic-haccp-dashboard .stat-label { order:-1; margin:0 0 7px; color:var(--normic-muted); font-size:11px; text-transform:none; letter-spacing:0; font-weight:550; }
.sv-experience .normic-haccp-dashboard .stat-value { font-size:29px; font-weight:650; font-variant-numeric:tabular-nums; line-height:1.25; }
.sv-experience .normic-haccp-dashboard .stat-value:not(.text-red-600):not(.text-amber-600) { color:var(--normic-ink); }
.sv-experience .normic-haccp-dashboard .haccp-card { border-radius:12px; }
.sv-experience .normic-haccp-dashboard .animate-pulse { animation:none; }
.sv-experience .normic-haccp-dashboard .normic-dashboard-export a { background:#fff; color:var(--normic-muted); border:1px solid var(--normic-edge); box-shadow:none; }
.sv-experience[data-standard-theme="haccp"] .hx-panel { border-color:var(--normic-edge); border-radius:10px; box-shadow:none; }
.sv-experience[data-standard-theme="haccp"] .hx-panel > summary { background:#fff; color:#5c427d; }

/* Documentation and existing review/history panels. No invented status data. */
.sv-experience .normic-document-heading { padding:0 0 20px; background:none; color:var(--normic-ink); border-radius:0; box-shadow:none; border-bottom:1px solid var(--normic-edge); }
.sv-experience .normic-document-heading h2 { font-size:25px; font-weight:650; }
.sv-experience .normic-document-heading p { color:var(--normic-muted); }
.sv-experience .normic-document-heading button { background:#fff; color:var(--normic-muted); box-shadow:none; border:1px solid var(--normic-edge); }
.sv-experience .normic-document-heading button i { color:var(--normic-muted); }
.sv-experience .normic-document-heading .bg-white\/20 { background:#fff; border:1px solid var(--normic-edge); color:var(--normic-ink); }
.sv-experience .normic-review-entry { background:#fff; border-color:var(--normic-edge); }
.sv-experience .normic-review-entry strong { font-size:14px; font-weight:650; }
.sv-experience .normic-review-entry p { font-size:12px; margin-top:4px; }
.sv-experience .normic-review-entry button { background:var(--normic-ink); }
.sv-experience .normic-review-entry [data-document-inbox] + button { background:#fff; color:var(--normic-muted); border:1px solid var(--normic-edge); }
.sv-experience .normic-document-library .doc-row button { background:#fff; color:#475569; border:1px solid var(--normic-edge); font-weight:550; }
.sv-experience .normic-document-library .doc-row button[data-document-review] { background:#f0f4f8; color:var(--normic-ink); border-color:#d5dfe9; }
.sv-experience .normic-document-library .category-block > div:first-child { background:#fff; padding:16px 18px; }
.sv-experience .normic-document-library .category-block h3 { font-size:15px; }
.sv-experience .normic-document-library .category-block > div:first-child > span { display:none; } /* same count already in heading */
.sv-experience .normic-document-library thead { background:#f5f7fa; }
.sv-experience .normic-document-library th { text-transform:none; letter-spacing:0; font-weight:550; }
.sv-experience .normic-document-library td { vertical-align:middle; font-weight:500; }
.sv-experience .nr-repository { color:var(--normic-ink); }
.sv-experience .nr-repository > header { box-shadow:none; margin-bottom:16px; }
.sv-experience .nr-repository > header h2 { font-size:25px; font-weight:650; }
.sv-experience .nr-repository > header p { color:var(--normic-muted); font-size:13px; }
.sv-experience .nr-repository :is(button,a) { color:#475569; border-color:var(--normic-edge); font-size:12px; }
.sv-experience .nr-repository .nr-primary { background:var(--normic-ink); color:#fff; border-color:var(--normic-ink); }
.sv-experience .nr-repository > p:first-child a { border:0; background:transparent; padding:0; color:var(--normic-color); min-height:32px; }
.sv-experience .nr-repository .nr-filters { border-color:var(--normic-edge); border-radius:12px; gap:8px 16px; }
.sv-experience .nr-repository .nr-filters label { color:var(--normic-muted); font-size:12px; font-weight:550; }
.sv-experience .nr-repository table th { background:#f1f4f8; color:#596a7e; font-weight:600; }
.sv-experience .nr-repository table td { background:#fff; vertical-align:middle; border-color:var(--normic-edge); }
.sv-experience .nr-repository table td strong { font-weight:600; }
.sv-experience .nr-repository .nr-state { background:#f1f4f8; color:#52637a; font-size:11px; }
.sv-experience .nr-repository .nr-state[data-state="pending"] { background:#fcf2e3; color:#885218; }
.sv-experience .nr-repository .nr-state[data-state="approved"] { background:#eaf5ef; color:#25634d; }
.sv-experience .nr-repository .nr-state[data-state="returned"] { background:#fff0e8; color:#934327; }
.sv-experience .nr-repository .nr-state[data-state="obsolete"] { background:#f1f3f6; color:#64748b; }
.sv-experience .nd-review { border:1px solid var(--normic-edge); border-radius:14px; }
.sv-experience .nd-review header { background:#fff; padding:20px 24px; box-shadow:none; }
.sv-experience .nd-review h2 { font-size:21px; font-weight:650; }
.sv-experience .nd-review main { background:var(--normic-canvas); }
.sv-experience .nd-review :is(.nd-current,.nd-candidate) { background:#fff; border-color:var(--normic-edge); border-top:3px solid #79a892; }
.sv-experience .nd-review .nd-candidate { border-top-color:var(--normic-color); }
.sv-experience .nd-review .nd-primary,
.sv-experience .nd-review .nd-filters button[aria-pressed=true] { background:var(--normic-ink); border-color:var(--normic-ink); }
.sv-experience .nd-review .nd-events li { position:relative; border-left:1px solid #c7d2df; padding-left:20px; padding-bottom:22px; }
.sv-experience .nd-review .nd-events li::before { content:""; position:absolute; left:-4px; top:7px; width:7px; height:7px; border-radius:50%; background:var(--normic-color); }
.sv-experience .nd-review .nd-status { border-radius:6px; background:#edf1f6; color:#52637a; font-weight:550; }
.sv-experience .nd-review footer { background:#fff; }
@media(max-width:1100px) {
    .sv-experience .normic-haccp-top { flex-wrap:wrap; gap:8px; }
    .sv-experience .normic-haccp-account { margin-left:auto; }
}
@media(max-width:767px) {
    .sv-experience[data-standard-theme] #main-sidebar.sidebar-expanded { width:min(280px,calc(100vw - 30px)); }
    .sv-experience .normic-haccp-top > div:first-child { gap:10px; }
    .sv-experience .normic-haccp-top > div:first-child > div:last-child { gap:8px; }
    .sv-experience .normic-haccp-brand { font-size:13px; }
    .sv-experience .normic-haccp-title h1 { font-size:12px; }
    .sv-experience .normic-haccp-title p { font-size:10px; }
    .sv-experience .normic-haccp-account { width:100%; justify-content:flex-end; gap:10px; }
    .sv-experience .normic-haccp-account > .normic-owner-logo { margin-right:auto; }
    .sv-experience .normic-haccp-account > span:not(.hidden) { max-width:calc(100% - 205px); }
    .sv-experience[data-standard-theme] .normic-directory-grid { gap:12px; }
    .sv-experience[data-standard-theme] main [data-module-card][data-module-name] { min-height:126px; padding:16px; }
    .sv-experience .normic-document-heading h2 { font-size:22px; }
    .sv-experience .normic-haccp-dashboard .stat-card { padding:14px; }
    .sv-experience .nr-repository .nr-actions { gap:6px; }
    .sv-experience .nr-repository .nr-filters { grid-template-columns:1fr; }
    .sv-experience .normic-haccp-utility > .hx-panel { width:100%; }
    .sv-experience .normic-haccp-utility > .sv-help-bar { flex:1; flex-wrap:wrap; }
}
@media print {
    .normic-sidebar-owner { display:none; }
    .sv-experience[data-standard-theme] main { background:#fff; }
}
