/* Partner portal shell and components, tokens from the Stitch "Vibrant Enterprise Portal" screens A–I. */
.ejh-portal{--p:#001428;--pc:#0f2942;--on-pc:#7991af;--s:#006a61;--sc:#86f2e4;--surface:#f8f9ff;--low:#eff4ff;--mid:#e5eeff;--high:#dce9ff;--line:#c3c6ce;--line-soft:#dfe3ea;--text:#0b1c30;--muted:#43474d;--err:#ba1a1a;--err-bg:#ffdad6;--err-text:#93000a;--warn:#7a5900;--warn-bg:#ffefc2;--head:'Plus Jakarta Sans',system-ui,sans-serif;--body:'Be Vietnam Pro',system-ui,sans-serif;min-height:100vh;background:var(--surface);color:var(--text);font:400 .9375rem/1.6 var(--body)}
.ejh-portal *,.ejh-portal *::before,.ejh-portal *::after{box-sizing:border-box}
.ejh-portal a{color:var(--s);text-underline-offset:3px}
.ejh-portal :focus-visible{outline:3px solid var(--s);outline-offset:2px}
.ejh-portal .material-symbols-outlined{font-size:1.25rem;vertical-align:-.25rem}

/* App shell: navy sidebar + white top bar */
.ejh-portal--app{display:grid;grid-template-columns:16.5rem minmax(0,1fr)}
.ejh-side{background:var(--p);color:#c9d6e8;padding:1.25rem 0 2rem;position:sticky;top:0;align-self:start;min-height:100vh;max-height:100vh;overflow-y:auto}
.ejh-side .ejh-brand{display:block;padding:0 1.25rem 1.25rem;margin-bottom:.5rem;border-bottom:1px solid #1d3651;color:#fff;font:700 1.125rem/1.3 var(--head);text-decoration:none}
.ejh-brand small{display:block;margin-top:.15rem;color:var(--sc);font:600 .6875rem/1.4 var(--body);letter-spacing:.08em;text-transform:uppercase}
.ejh-side .ejh-side-group{margin:1.25rem 1.25rem .4rem;color:var(--on-pc);font:700 .6875rem/1.4 var(--body);letter-spacing:.08em;text-transform:uppercase}
.ejh-side ul{list-style:none;margin:0;padding:0 .5rem}
.ejh-side li a{display:flex;align-items:center;gap:.65rem;overflow-wrap:anywhere;hyphens:auto;padding:.5rem .75rem;border-radius:.375rem;color:#c9d6e8;font-size:.875rem;text-decoration:none}
.ejh-side li a:hover{background:var(--pc);color:#fff}
.ejh-side li a[aria-current="page"]{background:#fff;color:var(--p);font-weight:600}
.ejh-app{min-width:0;display:flex;flex-direction:column}
.ejh-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.75rem 2rem;background:#fff;border-bottom:1px solid var(--line-soft);position:sticky;top:0;z-index:5}
.ejh-top .ejh-crumb{margin:0;color:var(--muted);font-size:.8125rem}
.ejh-crumb a{color:var(--muted);text-decoration:none}
.ejh-top-tools{display:flex;align-items:center;gap:1rem;font-size:.875rem}
.ejh-user{display:inline-flex;align-items:center;gap:.35rem;color:var(--text);font-weight:600}
.ejh-logout{color:var(--muted)}
.ejh-portal .ejh-lang{background:transparent;padding:0;border:1px solid var(--line);border-radius:.375rem;overflow:hidden;gap:0}
.ejh-portal .ejh-lang a{border-radius:0;padding:.2rem .6rem;color:var(--muted)}
.ejh-portal .ejh-lang a[aria-current="true"]{background:var(--p);color:#fff}
.ejh-content{padding:2rem;max-width:80rem;width:100%}

/* Page content: existing renderers output .ejh-account + semantic blocks */
.ejh-portal .ejh-account{margin:0;padding:0;max-width:none}
.ejh-portal h1{margin:0 0 1.25rem;color:var(--p);font:700 1.75rem/1.25 var(--head);letter-spacing:-.01em}
.ejh-portal h2{margin:0 0 .75rem;color:var(--p);font:700 1.25rem/1.3 var(--head)}
.ejh-portal h3{margin:.5rem 0;color:var(--p);font:600 1.0625rem/1.35 var(--head)}
.ejh-portal h4,.ejh-portal h5{margin:.75rem 0 .35rem;font:600 .9375rem/1.4 var(--head)}
.ejh-portal p{margin:.4rem 0}
.ejh-content section,.ejh-content article,.ejh-content details,.ejh-content fieldset{margin:0 0 1.25rem;padding:1.25rem 1.5rem;background:#fff;border:1px solid var(--line-soft);border-radius:.5rem;box-shadow:0 1px 2px rgba(11,28,48,.04)}
.ejh-content section article,.ejh-content section details,.ejh-content article article{margin:.75rem 0;padding:1rem;background:var(--low);border-color:var(--line-soft);box-shadow:none}
.ejh-content summary{cursor:pointer;color:var(--p);font:600 .9375rem/1.4 var(--head)}
.ejh-content details[open]>summary{margin-bottom:.75rem}
.ejh-content dl{display:grid;grid-template-columns:minmax(9rem,max-content) 1fr;gap:.35rem 1.25rem;margin:.75rem 0}
.ejh-content dt{color:var(--muted);font-size:.8125rem;font-weight:600}
.ejh-content dd{margin:0;font-weight:500}
.ejh-content pre{max-width:100%;overflow:auto;padding:.75rem;background:var(--p);color:#e5eeff;border-radius:.375rem;font-size:.8125rem}
.ejh-content table{width:100%;border-collapse:collapse;background:#fff;font-size:.875rem}
.ejh-content th{padding:.6rem .75rem;text-align:left;color:var(--muted);font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-bottom:1px solid var(--line)}
.ejh-content td{padding:.6rem .75rem;border-bottom:1px solid var(--line-soft);vertical-align:top}

/* In-page tab bars (admin sections, screen A) */
.ejh-content nav:not(.ejh-lang){display:flex;flex-wrap:wrap;gap:.25rem;margin:0 0 1.25rem;padding:.3rem;background:#fff;border:1px solid var(--line-soft);border-radius:.5rem}
.ejh-content nav:not(.ejh-lang) a{padding:.4rem .8rem;border-radius:.375rem;color:var(--muted);font-size:.875rem;font-weight:600;text-decoration:none}
.ejh-content nav:not(.ejh-lang) a:hover{background:var(--low);color:var(--p)}
.ejh-content nav:not(.ejh-lang) a[aria-current="page"]{background:var(--p);color:#fff}

/* Forms */
.ejh-portal form{margin:.75rem 0}
.ejh-portal label{display:block;margin:.75rem 0;color:var(--muted);font-size:.8125rem;font-weight:600}
.ejh-portal input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.ejh-portal select,.ejh-portal textarea{display:block;width:100%;max-width:36rem;margin-top:.3rem;padding:.55rem .75rem;background:#fff;border:1px solid var(--line);border-radius:.25rem;color:var(--text);font:400 .9375rem/1.4 var(--body)}
.ejh-portal input:focus,.ejh-portal select:focus,.ejh-portal textarea:focus{border-color:var(--s);outline:2px solid var(--sc);outline-offset:0}
.ejh-portal input[type=checkbox]{width:1rem;height:1rem;margin:0 .5rem 0 0;vertical-align:-.15rem;accent-color:var(--s)}
.ejh-portal label:has(input[type=checkbox]){color:var(--text);font-size:.875rem;font-weight:500}
.ejh-portal button,.ejh-portal .button{display:inline-flex;align-items:center;gap:.4rem;margin:.5rem .5rem 0 0;padding:.6rem 1.15rem;background:var(--p);color:#fff;border:1px solid var(--p);border-radius:.375rem;font:600 .875rem/1.2 var(--body);cursor:pointer}
.ejh-portal button:hover{background:var(--pc)}
.ejh-portal button[name=preview],.ejh-portal button[formnovalidate]{background:#fff;color:var(--p);border-color:var(--line)}

/* System states (screen I) */
.ejh-portal .ejh-notice,.ejh-portal [role=alert],.ejh-portal .ejh-state{display:flex;gap:.75rem;align-items:flex-start;margin:0 0 1.25rem;padding:1rem 1.25rem;border-radius:.5rem;border:1px solid;font-weight:500}
.ejh-portal .ejh-notice{background:#e6faf6;border-color:#9fe3d8;color:#00413b}
.ejh-portal .ejh-notice::before{content:"check_circle";font:normal 1.35rem/1 'Material Symbols Outlined';color:var(--s)}
.ejh-portal [role=alert]{background:var(--err-bg);border-color:#f4b4ad;color:var(--err-text)}
.ejh-portal [role=alert]::before{content:"error";font:normal 1.35rem/1 'Material Symbols Outlined'}

/* Status badges, duplicate flag and the 12-step nomination tracker (screens D, G) */
.ejh-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.15rem .6rem;border-radius:999px;background:var(--mid);color:var(--p);font:600 .75rem/1.5 var(--body);white-space:nowrap}
.ejh-badge--accepted,.ejh-badge--completed,.ejh-badge--confirmed,.ejh-badge--allow{background:#d7f7f1;color:#00524b}
.ejh-badge--rejected,.ejh-badge--withdrawn,.ejh-badge--cancelled,.ejh-badge--deny,.ejh-badge--duplicate{background:var(--err-bg);color:var(--err-text)}
.ejh-badge--pending{background:var(--warn-bg);color:var(--warn)}
.ejh-content article.ejh-dup{border-left:4px solid var(--err)}
.ejh-steps{display:flex;flex-wrap:wrap;gap:.25rem;margin:.75rem 0;padding:0;list-style:none;counter-reset:step}
.ejh-steps li{counter-increment:step;display:flex;align-items:center;gap:.35rem;padding:.25rem .55rem .25rem .3rem;border-radius:999px;background:var(--mid);color:var(--muted);font-size:.75rem}
.ejh-steps li::before{content:counter(step);display:inline-grid;place-items:center;width:1.35rem;height:1.35rem;border-radius:50%;background:#fff;border:1px solid var(--line);font-weight:700}
.ejh-steps li.is-done{background:#d7f7f1;color:#00524b}
.ejh-steps li.is-done::before{content:"✓";background:var(--s);border-color:var(--s);color:#fff}
.ejh-steps li.is-current{background:var(--p);color:#fff;font-weight:600}
.ejh-steps li.is-current::before{background:#fff;color:var(--p);border-color:#fff}

/* Login (screen 2): brand panel + form card */
.ejh-portal--auth{display:grid;grid-template-columns:minmax(18rem,2fr) 3fr}
.ejh-auth-brand{padding:3rem;background:linear-gradient(160deg,var(--p) 0%,var(--pc) 70%,#07284c 100%);color:#c9d6e8}
.ejh-auth-brand .ejh-brand{color:#fff;font:700 1.5rem/1.2 var(--head);text-decoration:none}
.ejh-auth-claim{margin:2.5rem 0 1rem!important;color:#fff;font:700 2rem/1.25 var(--head)}
.ejh-auth-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2.5rem 1.5rem;gap:1rem}
.ejh-auth-main .ejh-lang{align-self:flex-end}
.ejh-portal .ejh-auth{width:100%;max-width:30rem;margin:0;padding:2rem;background:#fff;border:1px solid var(--line-soft);border-radius:.75rem;box-shadow:0 12px 32px rgba(0,20,40,.08)}
.ejh-portal .ejh-auth details{margin-top:1rem;padding:.75rem 1rem;background:var(--low);border:1px solid var(--line-soft);border-radius:.375rem;box-shadow:none}
.ejh-portal .ejh-auth button{width:100%;justify-content:center;margin-right:0}

@media (max-width:960px){
  .ejh-portal--app,.ejh-portal--auth{grid-template-columns:1fr}
  .ejh-side{position:static;min-height:0;max-height:none;padding:.75rem 0}
  .ejh-side ul{display:flex;gap:.25rem;overflow-x:auto;padding:0 .75rem}
  .ejh-side li a{white-space:nowrap}
  .ejh-side .ejh-side-group{margin:.6rem 1rem .25rem}
  .ejh-top{position:static;padding:.75rem 1rem}
  .ejh-content{padding:1.25rem 1rem}
  .ejh-auth-brand{padding:1.5rem}
  .ejh-auth-claim{margin-top:1rem!important;font-size:1.4rem}
  .ejh-content dl{grid-template-columns:1fr}
}

/* Screen-level components (D, C, G) */
.ejh-portal .ejh-lead{margin:-.5rem 0 1.25rem;color:var(--muted);font-size:1rem}
.ejh-portal .ejh-muted{color:var(--muted)}
.ejh-portal .ejh-empty{padding:1.25rem;text-align:center;color:var(--muted);background:var(--low);border:1px dashed var(--line);border-radius:.5rem}
.ejh-portal .ejh-note{margin-top:1rem;padding:.75rem 1rem;background:var(--low);border-left:3px solid var(--p);border-radius:.25rem;font-size:.8125rem;color:var(--muted)}
.ejh-banner{display:flex;gap:.85rem;align-items:flex-start;margin:0 0 1.25rem;padding:1rem 1.25rem;background:var(--low);border:1px solid var(--high);border-radius:.5rem}
.ejh-banner>.material-symbols-outlined{padding:.4rem;background:#fff;border-radius:.375rem;color:var(--s)}
.ejh-banner p{margin:.2rem 0 0;color:var(--muted);font-size:.875rem}
.ejh-content .ejh-panel{padding:1.5rem}
.ejh-content .ejh-card,.ejh-content section .ejh-card{margin:0 0 1.25rem;padding:1.25rem;background:#fff;border:1px solid var(--line-soft);border-radius:.5rem}
.ejh-quick{background:var(--low)!important}
.ejh-quick h3{display:flex;align-items:center;gap:.5rem}
.ejh-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.25rem}
.ejh-grid-2 select{max-width:none!important}
.ejh-portal .ejh-tabs{display:flex;flex-wrap:wrap;gap:.25rem}
.ejh-count{display:inline-block;min-width:1.4rem;margin-left:.25rem;padding:0 .4rem;border-radius:999px;background:var(--mid);color:var(--p);font-size:.75rem;text-align:center}
.ejh-content nav a[aria-current="page"] .ejh-count{background:#fff}
.ejh-table{width:100%;overflow-x:auto;margin:0 0 1rem;border:1px solid var(--line-soft);border-radius:.5rem}
.ejh-table table{min-width:44rem}
.ejh-table tr.ejh-dup td{background:#fff4f3}
.ejh-table tr.ejh-dup td:first-child{box-shadow:inset 4px 0 0 var(--err)}
.ejh-content .ejh-table details{margin:0;padding:0;background:none;border:0;box-shadow:none}
.ejh-content .ejh-table details[open]{min-width:22rem}
.ejh-content .ejh-table details>summary{color:var(--s);font:600 .8125rem/1.4 var(--body)}
.ejh-progress{display:block;width:100%;max-width:9rem;height:.35rem;margin:.4rem 0 .15rem;background:var(--mid);border-radius:999px;overflow:hidden}
.ejh-progress>span{display:block;height:100%;background:var(--s)}
.ejh-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:1rem;margin:0 0 1.25rem}
.ejh-kpi{padding:1rem 1.15rem;background:#fff;border:1px solid var(--line-soft);border-radius:.5rem}
.ejh-kpi>span:first-child{display:block;color:var(--muted);font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.ejh-kpi strong{display:block;margin:.35rem 0 .15rem;color:var(--p);font:700 2rem/1.1 var(--head)}
.ejh-kpi strong small{color:var(--muted);font:500 .9375rem var(--body)}
.ejh-kpi>small{color:var(--muted);font-size:.8125rem}
.ejh-kpi--alert{border-color:#f4b4ad;border-top:4px solid var(--err)}
.ejh-kpi--alert strong{color:var(--err)}
.ejh-alert-panel{margin:0 0 1.25rem;padding:1.25rem 1.5rem;background:#fff4f3;border:1px solid #f4b4ad;border-radius:.5rem}
.ejh-alert-panel h2{display:flex;align-items:center;gap:.5rem;color:var(--err-text)}
.ejh-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1rem;margin-top:1rem}
.ejh-split{display:grid;grid-template-columns:minmax(0,2fr) minmax(16rem,1fr);gap:1.25rem;align-items:start}
.ejh-log{margin:0;padding:0;list-style:none;font-size:.8125rem}
.ejh-log li{padding:.5rem 0 .5rem .85rem;border-left:2px solid var(--high)}
.ejh-log time{color:var(--muted);font-variant-numeric:tabular-nums}
.ejh-chips{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.ejh-chip{padding:.1rem .5rem;background:var(--mid);border-radius:.25rem;color:var(--p);font:600 .75rem/1.5 ui-monospace,monospace}
.ejh-content article.ejh-demand{padding:1.5rem;background:#fff}
.ejh-demand h3{margin-top:.75rem;font-size:1.375rem}
.ejh-spec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:0 0 1rem}
.ejh-spec>div{padding:.85rem 1rem;background:var(--low);border-radius:.375rem}
.ejh-spec span{color:var(--muted);font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.ejh-spec p{margin:.25rem 0 0;white-space:pre-line}
@media (max-width:960px){.ejh-grid-2,.ejh-spec,.ejh-split{grid-template-columns:1fr}}
.ejh-badge--direct{background:#e1ecff;color:#0f2942}
.ejh-badge--broker{background:#f1e6ff;color:#4b2a7a}

/* Screens B, E, F, H, A */
.ejh-stepper{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.5rem;margin:0 0 1.25rem;padding:0;list-style:none;counter-reset:gov}
.ejh-stepper li{counter-increment:gov;padding:.6rem .75rem;background:var(--low);border:1px solid var(--line-soft);border-radius:.375rem;color:var(--muted);font-size:.8125rem}
.ejh-stepper li::before{content:counter(gov) ". ";font-weight:700}
.ejh-stepper li.is-done{background:#e6faf6;border-color:#9fe3d8;color:#00413b}
.ejh-stepper li.is-current{background:var(--s);border-color:var(--s);color:#fff;font-weight:600}
.ejh-content .ejh-card--private{background:#fff8f7;border-color:#f4cfc9}
.ejh-card--private h3::before{content:"lock";margin-right:.35rem;font:normal 1.1rem/1 'Material Symbols Outlined';vertical-align:-.15rem;color:var(--err)}
.ejh-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.75rem;margin:1rem 0}
.ejh-checks label{margin:0;padding:.85rem 1rem;background:var(--low);border:1px solid var(--line-soft);border-radius:.375rem}
.ejh-checks label:has(input:checked){background:#e6faf6;border-color:#9fe3d8}
.ejh-content .ejh-compare .ejh-card{margin:0}
.ejh-content .ejh-compare section{margin:0}
.ejh-kpi--text strong{font-size:1.25rem;line-height:1.3;overflow-wrap:anywhere}
.ejh-content p>form{display:inline-block;margin-right:.5rem}
