/* KATE R18 compatibility layer — approved 02.10.2026 design.
   Purpose: align repeated legacy professional page structures without altering workflow logic.
   Loaded after kate-uiux-final.css. Product Intelligence keeps its own dedicated scoped layer. */

body.customer-portal{
  background:var(--kate-bg,#f4f6f8);
  color:var(--kate-ink,#1d2a36);
  font-family:Ubuntu,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body.customer-portal .klg-page,
body.customer-portal .page,
body.customer-portal .content,
body.customer-portal .workspace-page{
  min-width:0;
}
body.customer-portal .page-head,
body.customer-portal .page-header,
body.customer-portal .kui-pagehead,
body.customer-portal .k416-section-title,
body.customer-portal .k416-section-head,
body.customer-portal .section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin:0 0 16px;
}
body.customer-portal .page-head h1,
body.customer-portal .page-header h1,
body.customer-portal .kui-pagehead h1{
  margin:0;
  color:var(--kate-ink,#1d2a36);
  font-size:clamp(24px,2vw,32px);
  line-height:1.15;
  font-weight:750;
  letter-spacing:-.02em;
}
body.customer-portal .page-head p,
body.customer-portal .page-header p,
body.customer-portal .kui-pagehead p,
body.customer-portal .section-head p,
body.customer-portal .k416-section-head p{
  margin:5px 0 0;
  color:var(--kate-muted,#6d7883);
  line-height:1.5;
}
body.customer-portal .eyebrow,
body.customer-portal .kds-eyebrow,
body.customer-portal .section-label{
  color:var(--kate-navy,#213f5b);
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.customer-portal .card,
body.customer-portal .panel,
body.customer-portal .box,
body.customer-portal .c,
body.customer-portal .k416-section,
body.customer-portal .section-card,
body.customer-portal .surface-card{
  min-width:0;
  background:var(--kate-surface,#fff);
  border:1px solid var(--kate-line,#dce2e7);
  border-radius:var(--kate-r2,10px);
  box-shadow:none;
}
body.customer-portal .card,
body.customer-portal .panel,
body.customer-portal .box,
body.customer-portal .c,
body.customer-portal .k416-section,
body.customer-portal .section-card{padding:16px}
body.customer-portal .grid,
body.customer-portal .cards,
body.customer-portal .dashboard-grid,
body.customer-portal .card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
}
body.customer-portal .toolbar,
body.customer-portal .actions,
body.customer-portal .filter-bar,
body.customer-portal .filters,
body.customer-portal .page-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
body.customer-portal .form-grid,
body.customer-portal form.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:end;
}
body.customer-portal label{
  color:#455462;
  font-size:12.5px;
  font-weight:650;
}
body.customer-portal input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.customer-portal select,
body.customer-portal textarea{
  width:100%;
  min-height:38px;
  box-sizing:border-box;
  border:1px solid var(--kate-line-strong,#c9d1d8);
  border-radius:8px;
  background:#fff;
  color:var(--kate-ink,#1d2a36);
  font:inherit;
  padding:8px 10px;
  outline:none;
}
body.customer-portal textarea{min-height:92px;resize:vertical}
body.customer-portal input:focus,
body.customer-portal select:focus,
body.customer-portal textarea:focus{
  border-color:var(--kate-navy,#213f5b);
  box-shadow:0 0 0 3px rgba(33,63,91,.10);
}
body.customer-portal .btn,
body.customer-portal button:not(.icon-only),
body.customer-portal input[type=submit]{
  min-height:36px;
  border:1px solid var(--kate-line-strong,#c9d1d8);
  border-radius:8px;
  background:#fff;
  color:#253342;
  padding:8px 12px;
  font:inherit;
  font-weight:650;
  text-decoration:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}
body.customer-portal .btn:hover,
body.customer-portal button:not(.icon-only):hover{background:#f8fafb;border-color:#aebbc6}
body.customer-portal .btn.primary,
body.customer-portal .btn.is-primary,
body.customer-portal button.primary{
  background:var(--kate-navy,#213f5b);
  color:#fff;
  border-color:var(--kate-navy,#213f5b);
}
body.customer-portal .table-scroll,
body.customer-portal .table-wrap,
body.customer-portal .kds-table-wrap,
body.customer-portal .responsive-table{
  width:100%;
  overflow:auto;
  border:1px solid var(--kate-line,#dce2e7);
  border-radius:10px;
  background:#fff;
}
body.customer-portal table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
}
body.customer-portal th{
  padding:9px 10px;
  text-align:left;
  border-bottom:1px solid var(--kate-line,#dce2e7);
  background:#f5f7f9;
  color:#536170;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
  white-space:nowrap;
}
body.customer-portal td{
  padding:10px;
  border-bottom:1px solid #e8edf1;
  vertical-align:top;
}
body.customer-portal tbody tr:last-child td{border-bottom:0}
body.customer-portal tbody tr:hover td{background:#fafbfd}
body.customer-portal .tabs,
body.customer-portal .subnav,
body.customer-portal .local-nav,
body.customer-portal .page-tabs{
  display:flex;
  gap:3px;
  overflow:auto;
  border-bottom:1px solid var(--kate-line,#dce2e7);
  scrollbar-width:thin;
}
body.customer-portal .tabs a,
body.customer-portal .subnav a,
body.customer-portal .local-nav a,
body.customer-portal .page-tabs a{
  padding:9px 11px;
  color:#596675;
  font-weight:650;
  text-decoration:none;
  white-space:nowrap;
  border-bottom:2px solid transparent;
}
body.customer-portal .tabs a.active,
body.customer-portal .tabs a.on,
body.customer-portal .subnav a.active,
body.customer-portal .local-nav a.active,
body.customer-portal .page-tabs a.active{
  color:var(--kate-navy,#213f5b);
  border-bottom-color:var(--kate-navy,#213f5b);
}
body.customer-portal .notice,
body.customer-portal .alert,
body.customer-portal .message{
  padding:11px 13px;
  border:1px solid var(--kate-line,#dce2e7);
  border-left:4px solid var(--kate-navy,#213f5b);
  border-radius:8px;
  background:#fff;
}
body.customer-portal .notice.ok,
body.customer-portal .notice.success,
body.customer-portal .alert.success{border-left-color:var(--kate-success,#278760);background:#f7fcf9}
body.customer-portal .notice.bad,
body.customer-portal .notice.error,
body.customer-portal .alert.error{border-left-color:#b63a3a;background:#fff8f8}
body.customer-portal .notice.warn,
body.customer-portal .alert.warning{border-left-color:var(--kate-warning,#c17a11);background:#fffaf2}
body.customer-portal details{
  border:1px solid var(--kate-line,#dce2e7);
  border-radius:10px;
  background:#fff;
}
body.customer-portal details>summary{
  cursor:pointer;
  padding:12px 14px;
  color:var(--kate-ink,#1d2a36);
  font-weight:700;
}
body.customer-portal details[open]>summary{border-bottom:1px solid var(--kate-line,#dce2e7)}
body.customer-portal .empty,
body.customer-portal .empty-state,
body.customer-portal .no-data{
  padding:20px;
  border:1px dashed #cdd6de;
  border-radius:10px;
  background:#fbfcfd;
  color:var(--kate-muted,#6d7883);
  text-align:center;
}
body.customer-portal .badge,
body.customer-portal .chip,
body.customer-portal .status{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  background:#edf2f6;
  color:#445362;
  font-size:11px;
  font-weight:750;
}
@media(max-width:1050px){
  body.customer-portal .form-grid,
  body.customer-portal form.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  body.customer-portal .page-head,
  body.customer-portal .page-header,
  body.customer-portal .kui-pagehead{display:block}
  body.customer-portal .page-actions{margin-top:10px}
  body.customer-portal .form-grid,
  body.customer-portal form.grid{grid-template-columns:1fr}
  body.customer-portal .card,
  body.customer-portal .panel,
  body.customer-portal .box,
  body.customer-portal .c,
  body.customer-portal .k416-section{padding:13px}
}

/* KATE R18 professional family bridge — 2026-10-04 */
body[data-kds-family] .kate-page-shell{padding:22px 0 34px;min-width:0;}
body[data-kds-family] .kds-standalone-title{margin:0 0 16px;padding:0 0 0 14px;border-left:4px solid var(--kate-domain,var(--kate-navy));font-size:clamp(24px,2.1vw,34px);line-height:1.13;letter-spacing:-.025em;color:#152638}
body[data-kds-family] .kds-pageintro-card{border-left:4px solid var(--kate-domain,var(--kate-navy));padding:18px 20px;margin:0 0 14px;background:#fff}
body[data-kds-family] .kds-pageintro-card h1{margin:0 0 5px;font-size:clamp(24px,2.1vw,34px);line-height:1.13;letter-spacing:-.025em;color:#152638}
body[data-kds-family] .kds-pageintro-card>p{margin:5px 0 0;color:var(--kate-muted);max-width:980px}
body[data-kds-family] .kds-card{margin-bottom:12px}
body[data-kds-family] .kds-table{min-width:760px}
body[data-kds-family] .kds-table-wrap{margin-top:10px}
body[data-kds-family] .kds-form{min-width:0}
body[data-kds-family] .kds-pagehead+.notice,body[data-kds-family] .kds-pageintro-card+.notice{margin-top:0}
body[data-kds-family="dashboard"] .metrics,body[data-kds-family="dashboard"] .kate-kpis,body[data-kds-family="reporting"] .metrics,body[data-kds-family="reporting"] .kate-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:0 0 14px}
body[data-kds-family="dashboard"] .grid,body[data-kds-family="dashboard"] .card-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:stretch}
body[data-kds-family="dashboard"] .card,body[data-kds-family="dashboard"] .kds-card{text-decoration:none;transition:border-color .14s ease,transform .14s ease}
body[data-kds-family="dashboard"] a.card:hover{border-color:#b7c5d0;transform:translateY(-1px)}
body[data-kds-family="reporting"] .kate-section,body[data-kds-family="reporting"] .kds-card{margin-bottom:12px}
body[data-kds-family="reporting"] .kate-table-wrap{overflow:auto;border:1px solid var(--kate-line);border-radius:10px;background:#fff}
body[data-kds-family="register"] form.kds-pagehead-actions,body[data-kds-family="audit-register"] form.kds-pagehead-actions{padding:10px;border:1px solid var(--kate-line);border-radius:10px;background:#fff;margin:0 0 12px}
body[data-kds-family="register"] .kds-table-wrap,body[data-kds-family="audit-register"] .kds-table-wrap{box-shadow:0 1px 0 rgba(18,38,63,.02)}
body[data-kds-family="comparison"]{--kate-content:1880px}
body[data-kds-family="comparison"] .kds-table{min-width:980px}
body[data-kds-family="comparison"] .result,body[data-kds-family="comparison"] .kds-card{min-width:0}
body[data-kds-family="workbench"]{--kate-content:1920px}
body[data-kds-family="workbench"] .kds-workbench-toolbar{margin-bottom:10px}
body[data-kds-family="workbench"] .kds-card,body[data-kds-family="workbench"] .panel{min-width:0}
body[data-kds-family="technical_quality"]{--kate-content:1840px}
body[data-kds-family="technical_quality"] .kds-table{min-width:900px}
body[data-kds-family="programme"]{--kate-content:1980px}
body[data-kds-family="programme"] .kds-table-wrap{max-height:calc(100vh - var(--kate-topbar) - 220px);overflow:auto}
body[data-kds-family="documents"]{--kate-content:1780px}
body[data-kds-family="documents"] .kds-card{margin-bottom:12px}
body[data-kds-family="documents"] .kds-table{min-width:900px}
body[data-kds-family="form"] .kate-page-shell,body[data-kds-family="approval"] .kate-page-shell,body[data-kds-family="onboarding"] .kate-page-shell{}
body[data-kds-family="form"] form.kds-form,body[data-kds-family="approval"] form.kds-form{background:#fff;border:1px solid var(--kate-line);border-radius:12px;padding:16px}
body[data-kds-family="approval"] .kds-card{border-left:3px solid #d6dee5}
body[data-kds-family="launcher"] .kate-card-grid,body[data-kds-family="launcher"] .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
body[data-kds-family="launcher"] a.kate-card,body[data-kds-family="launcher"] a.card{min-height:112px;display:flex;flex-direction:column;justify-content:center;text-decoration:none;border:1px solid var(--kate-line);border-radius:12px;background:#fff;padding:16px}
body[data-kds-family="launcher"] a.kate-card:hover,body[data-kds-family="launcher"] a.card:hover{border-color:#b7c5d0;background:#fbfcfd}
body[data-kds-family="communication"]{--kate-content:1940px}
body[data-kds-family="communication"] .kmail-shell{border:1px solid var(--kate-line);border-radius:12px;overflow:hidden;background:#fff;min-height:calc(100vh - var(--kate-topbar) - 44px)}
body[data-kds-family="communication-compose"] .kate-page-shell{}
body[data-kds-family="communication-compose"] form.kds-form{background:#fff;border:1px solid var(--kate-line);border-radius:12px;padding:16px}
body[data-kds-family="spatial"]{--kate-content:1980px}
body[data-kds-family="spatial"] .kate-page-shell{}
body[data-kds-family="spatial"] .kds-card{min-width:0}
body[data-kds-family="external-detail"],body[data-kds-family="public-detail"],body[data-kds-family="onboarding"]{background:var(--kate-bg)}
body[data-kds-family="external-detail"] main,body[data-kds-family="public-detail"] main,body[data-kds-family="onboarding"] main{width:min(calc(100% - 28px),1280px);margin-inline:auto;padding:24px 0 42px}
body[data-kds-family="evidence-detail"] .kds-card{border-left:3px solid #dfe5ea}
body[data-kds-family="evidence-detail"] .kds-card:has(.status.bad){border-left-color:var(--kate-danger)}
body[data-kds-family="audit-register"] .status,body[data-kds-family="technical_quality"] .status{font-weight:800}
body[data-kds-family] .portal-panel{background:#fff;border:1px solid var(--kate-line);border-radius:12px;padding:16px;margin-bottom:12px}
body[data-kds-family] .profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-kds-family] .user-list{display:grid;gap:8px}
body[data-kds-family] .user-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.3fr);gap:12px;align-items:center;padding:12px;border:1px solid var(--kate-line);border-radius:10px;background:#fff}
body[data-kds-family] .status-chip{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;background:#edf2f6;color:#445362;font-size:11px;font-weight:750}
@media(max-width:900px){body[data-kds-family] .user-row{grid-template-columns:1fr}body[data-kds-family] .profile-grid{grid-template-columns:1fr}}
@media(max-width:640px){body[data-kds-family] .kate-page-shell{padding-top:14px;}body[data-kds-family] .kds-standalone-title{font-size:24px}}

/* KATE R18 specialist component bridge — 2026-10-04 */
:is(.kpc-card,.kp-card,.kb-card,.kis-card,.v314-card,.v351-card,.v548-card,.v3004-card,.v313-card,.v310-card,.v401-card,.v404405-card,.v327-card,.v3271-card,.v3003-panel,.v582-section){background:#fff;border:1px solid var(--kate-line);border-radius:var(--kate-r2);box-shadow:none;padding:16px;min-width:0}
:is(.kpc-head,.kp-section-head,.kb-card-head,.v314-section-head,.v351-section-head,.v582-section-head,.v3003-panel-head,.v298-section-head,.v400-section-head){display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin:0 0 14px}
:is(.kpc-head,.kp-section-head,.v314-section-head,.v351-section-head,.v582-section-head) h1{margin:0 0 5px;font-size:clamp(24px,2vw,32px);line-height:1.15;letter-spacing:-.02em;color:#152638}
:is(.kpc-eyebrow,.kp-eyebrow,.kb-kicker,.kis-kicker){font-size:10.5px;letter-spacing:.095em;text-transform:uppercase;font-weight:800;color:#778491}
:is(.kpc-sub,.kp-muted,.kb-muted,.kis-muted,.v314-muted,.v548-muted,.v351-meta,.v327-note){color:var(--kate-muted)}
:is(.kpc-btn,.kp-btn,.kb-btn,.kis-btn,.v548-btn,.v582-btn){min-height:36px;padding:8px 12px;border:1px solid var(--kate-line-strong);border-radius:8px;background:#fff;color:#253342;text-decoration:none;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
:is(.kpc-btn,.kp-btn,.kb-btn,.kis-btn,.v548-btn,.v582-btn):hover{border-color:#aebbc6;background:#f8fafb}
:is(.kpc-btn,.kp-btn,.kb-btn,.kis-btn,.v548-btn,.v582-btn).primary{background:var(--kate-navy);border-color:var(--kate-navy);color:#fff}
:is(.kpc-actions,.kp-form-actions,.kp-toolbar,.v351-toolbar,.v351-actions,.v314-tools,.kis-actions,.kis-inline,.kb-form-row,.kb-inline){display:flex;gap:8px;align-items:center;flex-wrap:wrap}
:is(.kpc-grid,.kp-grid,.kb-grid,.kis-grid,.v314-grid,.v351-grid,.v310-grid){display:grid;gap:12px}
:is(.kpc-kpi,.kp-kpi,.kb-kpi,.kis-stat,.v314-kpi,.v351-metric,.v3004-kpi,.v313-kpi,.v310-kpi,.v327-kpi,.v567-metric){background:#fff;border:1px solid var(--kate-line);border-radius:10px;padding:13px;min-width:0}
:is(.kpc-kpi,.kp-kpi,.kb-kpi,.kis-stat,.v314-kpi,.v351-metric,.v3004-kpi,.v313-kpi,.v310-kpi,.v327-kpi,.v567-metric) strong{display:block;font-size:22px;line-height:1.15;color:#183047}
:is(.kpc-table-wrap,.kp-table-wrap,.kb-table-wrap,.kis-table-wrap,.v351-table-wrap){overflow:auto;border:1px solid var(--kate-line);border-radius:10px;background:#fff}
:is(.kpc-table,.kp-table,.kb-table,.kis-table,.v314-table,.v351-table,.v548-table,.ew-table){width:100%;border-collapse:separate;border-spacing:0}
:is(.kpc-empty,.kp-empty,.kb-empty,.kis-empty,.v314-empty,.v351-empty,.v400-empty,.v582-empty){padding:30px 18px;text-align:center;border:1px dashed #cdd6de;border-radius:10px;background:#fbfcfd;color:var(--kate-muted)}
:is(.kp-status,.v314-chip,.v351-badge,.v313-badge,.v351-status-line,.kis-pill,.v3313-badge){display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;background:#edf2f6;color:#445362;font-size:11px;font-weight:750}
:is(.kpc-form,.kp-form,.kb-form,.v314-form,.v351-form,.v548-form,.v582-form){min-width:0}
:is(.v314-form-grid,.form-grid,.field-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:is(.kpc-input,.kpc-select,.kpc-textarea,.v582-input,.v582-select){width:100%;min-height:38px;border:1px solid var(--kate-line-strong);border-radius:8px;background:#fff;padding:8px 10px;outline:none}
:is(.kpc-alert,.kp-notice,.kb-notice,.kis-banner,.v351-callout){border:1px solid var(--kate-line);border-left:4px solid var(--kate-info);border-radius:9px;background:#fff;padding:12px 14px}
.kpc-ok{border:1px solid #b9dfca;border-left:4px solid var(--kate-success);border-radius:9px;background:#f7fcf9;padding:12px 14px}
.kpc-shell{min-width:0}.kpc-shell>.kate-page-shell{padding:22px 0 34px;}
body[data-kds-family="workbench"] :is(.kpc-grid,.kp-grid,.v351-grid){grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
body[data-kds-family="dashboard"] :is(.kpc-grid,.kp-grid,.kb-grid,.v314-grid){grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
body[data-kds-family="comparison"] :is(.kpc-table,.kp-table,.kb-table,.kis-table,.ew-table){min-width:980px}
body[data-kds-family="technical_quality"] :is(.kpc-table,.kp-table,.kb-table,.kis-table,.v314-table){min-width:900px}
body[data-kds-family="register"] :is(.kpc-table,.kp-table,.kb-table,.kis-table,.v351-table){min-width:820px}
@media(max-width:760px){:is(.v314-form-grid,.form-grid,.field-grid){grid-template-columns:1fr}.kpc-shell>.kate-page-shell{padding-top:14px;}}

/* KATE R18 final specialist vocabulary bridge — 02.10.2026 authority.
   Existing professional workflows keep their semantics; this binds their legacy/custom
   component names to the canonical R18 geometry and interaction surfaces. */
:is(.klg-page-header,.kui-page-head,.kp-hero,.case-hero,.kate-section__head,.klg-panel-head,.kb-page-head,.kis-page-head){
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin:0 0 16px;min-width:0;
}
:is(.klg-page-header,.kui-page-head,.kp-hero,.case-hero,.kb-page-head,.kis-page-head) h1{
  margin:0;color:var(--kate-ink,#1d2a36);font-size:clamp(24px,2vw,32px);line-height:1.15;font-weight:750;letter-spacing:-.02em;
}
:is(.klg-page-header,.kui-page-head,.kp-hero,.case-hero,.kb-page-head,.kis-page-head) p{
  margin:6px 0 0;color:var(--kate-muted,#6d7883);line-height:1.5;max-width:78ch;
}
:is(.klg-eyebrow,.kui-eyebrow,.kp-eyebrow,.kpc-eyebrow,.case-eyebrow,.klg-breadcrumb){
  color:var(--kate-navy,#213f5b);font-size:10.5px;font-weight:800;letter-spacing:.075em;text-transform:uppercase;
}
:is(.klg-page-actions,.kui-actions,.kp-actions,.case-actions,.kate-section__actions){
  display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;
}
:is(.klg-panel,.kui-panel,.kp-panel,.case-panel,.kate-section,.klg-card){
  min-width:0;background:var(--kate-surface,#fff);border:1px solid var(--kate-line,#dce2e7);border-radius:var(--kate-r2,10px);box-shadow:none;
}
:is(.klg-panel,.kui-panel,.kp-panel,.case-panel,.kate-section,.klg-card){padding:16px}
:is(.klg-kpi-row,.kui-kpi-row,.kp-kpi-row,.kate-kpi-grid,.summary-grid,.stats-grid){
  display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0 0 16px;
}
:is(.klg-kpi,.kui-kpi,.kp-kpi,.kate-kpi,.summary-card,.stat-card){
  min-width:0;background:#fff;border:1px solid var(--kate-line,#dce2e7);border-radius:10px;padding:14px;box-shadow:none;
}
:is(.klg-kpi,.kui-kpi,.kp-kpi,.kate-kpi,.summary-card,.stat-card) > :is(span,small){display:block;color:var(--kate-muted,#6d7883);font-size:11px;font-weight:700}
:is(.klg-kpi,.kui-kpi,.kp-kpi,.kate-kpi,.summary-card,.stat-card) > strong{display:block;margin-top:5px;color:var(--kate-ink,#1d2a36);font-size:23px;line-height:1.1}
:is(.klg-table-wrap,.kui-table-wrap,.kp-table-wrap,.scroll,.matrix,.table-scroll,.register-wrap){
  width:100%;overflow:auto;border:1px solid var(--kate-line,#dce2e7);border-radius:10px;background:#fff;
}
:is(.klg-table,.kui-table,.kp-table,table.t,.matrix table){width:100%;border-collapse:separate;border-spacing:0;background:#fff}
:is(.klg-table,.kui-table,.kp-table,table.t,.matrix table) th{padding:9px 10px;background:#f5f7f9;border-bottom:1px solid var(--kate-line,#dce2e7);color:#536170;font-size:10.5px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;white-space:nowrap;text-align:left}
:is(.klg-table,.kui-table,.kp-table,table.t,.matrix table) td{padding:10px;border-bottom:1px solid #e8edf1;vertical-align:top}
:is(.klg-toolbar,.kui-toolbar,.kp-toolbar,.tool-row,.command-row,.filter-row){display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
:is(.klg-form-grid,.kui-form-grid,.kp-form-grid,.g){display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;align-items:end}
:is(.klg-control,.kui-control,.kp-control){min-height:38px;border:1px solid var(--kate-line-strong,#c9d1d8);border-radius:8px;background:#fff;color:var(--kate-ink,#1d2a36);font:inherit;padding:8px 10px;box-sizing:border-box}
:is(.klg-btn,.kui-btn,.kp-btn,.kpc-btn){min-height:36px;border-radius:8px;font-weight:650;box-shadow:none}
.kn-legacy-surface{min-width:0;max-width:none;background:transparent;color:var(--kate-ink,#1d2a36)}
body[data-kds-family="programme"] :is(.klg-page-header,.kui-page-head){position:relative;z-index:2}
body[data-kds-family="workbench"] :is(.scroll,.klg-table-wrap,.kui-table-wrap,.kp-table-wrap){max-width:100%}
body[data-kds-family="technical_quality"] :is(.case-hero,.klg-page-header){margin-bottom:16px}
@media(max-width:720px){
  :is(.klg-page-header,.kui-page-head,.kp-hero,.case-hero,.kate-section__head){display:block}
  :is(.klg-page-actions,.kui-actions,.kp-actions,.case-actions){justify-content:flex-start;margin-top:10px}
  :is(.klg-panel,.kui-panel,.kp-panel,.case-panel,.kate-section,.klg-card){padding:13px}
}



/* KATE R19 runtime/UI closure — 2026-10-04.
   Fixes verified TEST defects that remained after R18: legacy commercial metrics,
   Office-control cards, and consistent clearance below the persistent top bar. */
body.customer-portal .commercial-strip{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:0 0 14px;
}
body.customer-portal .commercial-strip>div{
  min-width:0;padding:12px 14px;border:1px solid var(--kate-line,#dce2e7);border-radius:10px;background:#fff;
}
body.customer-portal .commercial-strip small{display:block;color:var(--kate-muted,#6d7883);font-size:10.5px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
body.customer-portal .commercial-strip strong{display:block;margin-top:4px;color:var(--kate-ink,#1d2a36);font-size:17px;line-height:1.2}
body.customer-portal .commercial-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:12px;align-items:start}
body.customer-portal .progress-row{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(180px,1fr) minmax(110px,auto);gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #e8edf1}
body.customer-portal .progress-row:last-child{border-bottom:0}
body.customer-portal .progress-row>div{height:8px;overflow:hidden;border-radius:999px;background:#edf1f4}
body.customer-portal .progress-row>div>i{display:block;height:100%;border-radius:999px;background:var(--kate-navy,#213f5b)}
body.customer-portal .progress-row>b{text-align:right;white-space:nowrap}
body.customer-portal .commercial-grid dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;margin:0}
body.customer-portal .commercial-grid dt{color:var(--kate-muted,#6d7883)}
body.customer-portal .commercial-grid dd{margin:0;font-weight:750;text-align:right}

body.customer-portal .kate-office-control-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
body.customer-portal .kate-office-control-nav a{display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;border:1px solid var(--kate-line,#dce2e7);border-radius:8px;background:#fff;color:var(--kate-navy,#213f5b);text-decoration:none;font-weight:650}
body.customer-portal .kate-office-pulse{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr)) minmax(230px,auto);gap:10px;align-items:center;margin:0 0 12px;padding:12px 14px;border:1px solid var(--kate-line,#dce2e7);border-radius:10px;background:#fff}
body.customer-portal .kate-office-pulse small{display:block;color:var(--kate-muted,#6d7883);font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;font-weight:750}
body.customer-portal .kate-office-pulse strong{display:block;margin-top:3px}
body.customer-portal .kate-office-pulse__actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}
body.customer-portal .kate-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 14px}
body.customer-portal .kate-kpi{min-width:0;padding:12px 14px;border:1px solid var(--kate-line,#dce2e7);border-radius:10px;background:#fff}
body.customer-portal .kate-kpi small{display:block;color:var(--kate-muted,#6d7883);font-size:10.5px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
body.customer-portal .kate-kpi strong{display:block;margin-top:5px;font-size:24px;line-height:1}
body.customer-portal .kate-l1000-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.customer-portal .kate-l1000-card{display:grid;gap:6px;min-width:0;padding:13px 14px;border:1px solid var(--kate-line,#dce2e7);border-radius:10px;background:#fff;color:inherit;text-decoration:none}
body.customer-portal .kate-l1000-card:hover{border-color:#aebbc6;background:#fbfcfd}
body.customer-portal .kate-l1000-card b{display:block;color:var(--kate-ink,#1d2a36);line-height:1.25}
body.customer-portal .kate-l1000-card span{display:block;color:var(--kate-muted,#6d7883);font-size:12px;line-height:1.45}
@media(max-width:1180px){body.customer-portal .kate-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.customer-portal .kate-l1000-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){body.customer-portal .commercial-grid{grid-template-columns:1fr}body.customer-portal .kate-office-pulse{grid-template-columns:1fr 1fr}.kate-office-pulse__actions{grid-column:1/-1;justify-content:flex-start!important}}
@media(max-width:680px){body.customer-portal .progress-row{grid-template-columns:1fr}body.customer-portal .progress-row>b{text-align:left}body.customer-portal .kate-kpi-grid,body.customer-portal .kate-l1000-card-grid,body.customer-portal .kate-office-pulse{grid-template-columns:1fr}}


/* R21 — 02.10.2026 approved shell alignment closure.
   A V2 page already lives inside .main > .canvas. Legacy workflow wrappers must
   not apply a second application-shell offset inside that canvas. */
body.customer-portal .main > .canvas > .kds-main,
body.customer-portal .main > .canvas > .klg-page,
body.customer-portal .main > .canvas > .kate-page,
body.customer-portal .main > .canvas > .kn-legacy-surface.kds-main,
body.customer-portal .main > .canvas > .kn-legacy-surface.klg-page,
body.customer-portal .main > .canvas > .kn-legacy-surface.kate-page{
  margin-left:0!important;
  padding-top:0!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  background:transparent!important;
}
body.customer-portal .main > .canvas > .kn-legacy-surface,
body.customer-portal .main > .canvas > .kate-intelligence-guided-page,
body.customer-portal .main > .canvas > .kate-product-intelligence{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
/* Keep the approved 02.10 page rhythm once a legacy workflow is hosted by V2. */
body.customer-portal .main > .canvas > .kn-legacy-surface > :first-child{margin-top:0!important}
body.customer-portal .main > .canvas .case-hero,
body.customer-portal .main > .canvas .klg-page-header,
body.customer-portal .main > .canvas .kds-pagehead{max-width:none}



/* R23 operational component closure */
body.customer-portal .v3003{min-width:0;width:100%}
body.customer-portal .v3003-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin:0 0 14px;padding:18px 20px;border:1px solid var(--kate-line,#dce2e7);border-left:4px solid var(--kate-navy,#213f5b);border-radius:10px;background:#fff}
body.customer-portal .v3003-hero h1{margin:3px 0 6px;font-size:26px;line-height:1.15;color:var(--kate-ink,#1d2a36)}
body.customer-portal .v3003-hero p{margin:0;max-width:900px;color:var(--kate-muted,#687684);line-height:1.5}
body.customer-portal .v3003-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.customer-portal .v3003-actions form{margin:0}
body.customer-portal .v3003-panel{margin:0 0 14px!important;padding:16px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;min-width:0!important}
body.customer-portal .v3003-panel-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;flex-wrap:wrap!important;margin:0 0 14px!important;padding:0!important;border:0!important}
body.customer-portal .v3003-panel-head h2{margin:2px 0 4px!important;font-size:18px!important;color:var(--kate-ink,#1d2a36)!important}
body.customer-portal .v3003-panel-head p{margin:0!important;color:var(--kate-muted,#687684)!important;line-height:1.5!important}
body.customer-portal .v3003-kpis{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;margin:0 0 14px!important;padding:0!important}
body.customer-portal .v3003-panel .v3003-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:14px 0 0!important}
body.customer-portal .v3003-kpis>div{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:5px!important;min-height:78px!important;padding:12px 14px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:10px!important;background:#fff!important;min-width:0!important}
body.customer-portal .v3003-kpis small{display:block!important;color:var(--kate-muted,#687684)!important;font-size:10.5px!important;font-weight:800!important;letter-spacing:.055em!important;text-transform:uppercase!important;line-height:1.25!important}
body.customer-portal .v3003-kpis strong{display:block!important;color:var(--kate-ink,#1d2a36)!important;font-size:24px!important;line-height:1!important;font-weight:760!important}
body.customer-portal .v3003-tabs{display:flex!important;align-items:center!important;gap:4px!important;flex-wrap:wrap!important;margin:0 0 14px!important;padding:6px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:10px!important;background:#fff!important;overflow:auto!important}
body.customer-portal .v3003-tabs a{display:inline-flex!important;align-items:center!important;min-height:34px!important;padding:7px 11px!important;border-radius:7px!important;color:#536170!important;text-decoration:none!important;font-weight:700!important;white-space:nowrap!important}
body.customer-portal .v3003-tabs a:hover{background:#f4f7f9!important;color:var(--kate-ink,#1d2a36)!important}
body.customer-portal .v3003-tabs a.active{background:var(--kate-navy,#213f5b)!important;color:#fff!important}
body.customer-portal .v3003-card{margin:0 0 10px!important;padding:14px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;min-width:0!important}
body.customer-portal .v3003-card-main{display:flex!important;align-items:flex-start!important;gap:12px!important;min-width:0!important}
body.customer-portal .v3003-card-main>div{min-width:0!important;flex:1 1 auto!important}
body.customer-portal .v3003-card h3{margin:0 0 4px!important;font-size:15px!important;color:var(--kate-ink,#1d2a36)!important}
body.customer-portal .v3003-card p{margin:0 0 3px!important;color:var(--kate-muted,#687684)!important}
body.customer-portal .v3003-card small{display:block!important;margin-top:3px!important;color:var(--kate-muted,#687684)!important}
body.customer-portal .v3003 .state{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:25px!important;padding:4px 8px!important;border-radius:999px!important;background:#edf2f6!important;color:#445362!important;font-size:10.5px!important;font-weight:800!important;white-space:nowrap!important}
body.customer-portal .v3003 .state.ready,body.customer-portal .v3003 .state.completed{background:#eaf7f0!important;color:#126b42!important}
body.customer-portal .v3003 .state.at_risk,body.customer-portal .v3003 .state.partially_completed{background:#fff5df!important;color:#8b5200!important}
body.customer-portal .v3003 .state.blocked,body.customer-portal .v3003 .state.missed{background:#fdecec!important;color:#a52b2b!important}
body.customer-portal .constraint-list{display:grid!important;gap:8px!important;margin-top:10px!important}
body.customer-portal .constraint-list>div{display:grid!important;grid-template-columns:minmax(140px,.8fr) auto minmax(220px,1.4fr)!important;align-items:center!important;gap:10px!important;padding:9px 10px!important;border:1px solid #e8edf1!important;border-radius:8px!important;background:#fafbfd!important;min-width:0!important}
body.customer-portal .v3003-inline{display:grid!important;grid-template-columns:repeat(4,minmax(150px,1fr))!important;gap:10px!important;align-items:end!important;margin-top:12px!important;padding-top:12px!important;border-top:1px solid #e8edf1!important}
body.customer-portal .v3003-inline label{display:grid!important;gap:5px!important;min-width:0!important}
body.customer-portal .v3003-inline .wide{grid-column:span 2!important}
body.customer-portal .v3003 .empty{padding:22px!important;border:1px dashed #cdd6de!important;border-radius:9px!important;background:#fbfcfd!important;color:var(--kate-muted,#687684)!important;text-align:center!important}
@media(max-width:1180px){body.customer-portal .v3003-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.customer-portal .v3003-inline{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){body.customer-portal .v3003-kpis,body.customer-portal .v3003-panel .v3003-kpis{grid-template-columns:1fr 1fr!important}body.customer-portal .v3003-inline{grid-template-columns:1fr!important}body.customer-portal .v3003-inline .wide{grid-column:auto!important}body.customer-portal .constraint-list>div{grid-template-columns:1fr!important}body.customer-portal .v3003-card-main{flex-direction:column!important}}



/* R24 Country Intelligence + Commercial raw-fragment closure */
body.customer-portal .kate-country-intelligence{display:grid;gap:14px;min-width:0;width:100%}
body.customer-portal .kate-country-intelligence .ci-sub{margin:0;color:var(--kate-muted,#687684);line-height:1.5}
body.customer-portal .kate-country-intelligence .ci-nav{display:flex!important;align-items:center!important;gap:4px!important;flex-wrap:wrap!important;padding:6px!important;margin:0!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:10px!important;background:#fff!important;overflow:auto!important}
body.customer-portal .kate-country-intelligence .ci-nav a{display:inline-flex!important;align-items:center!important;min-height:34px!important;padding:7px 11px!important;border-radius:7px!important;color:#536170!important;text-decoration:none!important;font-weight:700!important;white-space:nowrap!important}
body.customer-portal .kate-country-intelligence .ci-nav a.active{background:var(--kate-navy,#213f5b)!important;color:#fff!important}
body.customer-portal .kate-country-intelligence .ci-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
body.customer-portal .kate-country-intelligence .ci-actions--top{margin:0!important}
body.customer-portal .kate-country-intelligence .ci-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:8px 12px!important;border:1px solid var(--kate-line-strong,#cbd4dc)!important;border-radius:8px!important;background:var(--kate-navy,#213f5b)!important;color:#fff!important;text-decoration:none!important;font-weight:700!important}
body.customer-portal .kate-country-intelligence .ci-btn.alt{background:#fff!important;color:var(--kate-ink,#1d2a36)!important}
body.customer-portal .kate-country-intelligence .ci-country-identity{display:grid!important;grid-template-columns:minmax(250px,1fr) minmax(440px,1.4fr) auto!important;align-items:center!important;gap:18px!important;padding:16px 18px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-left:4px solid var(--kate-navy,#213f5b)!important;border-radius:10px!important;background:#fff!important}
body.customer-portal .kate-country-intelligence .ci-country-identity__main{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
body.customer-portal .kate-country-intelligence .ci-country-mark{display:grid!important;place-items:center!important;width:52px!important;height:38px!important;flex:0 0 52px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:8px!important;background:#f7f9fb!important;color:var(--kate-navy,#213f5b)!important;font-weight:800!important;letter-spacing:.05em!important}
body.customer-portal .kate-country-intelligence .ci-country-identity h2{margin:2px 0 4px!important;font-size:20px!important;color:var(--kate-ink,#1d2a36)!important}
body.customer-portal .kate-country-intelligence .ci-country-meta{display:flex!important;gap:7px!important;align-items:center!important;flex-wrap:wrap!important;color:var(--kate-muted,#687684)!important}
body.customer-portal .kate-country-intelligence .ci-country-identity__facts{display:grid!important;grid-template-columns:repeat(4,minmax(95px,1fr))!important;gap:0!important;min-width:0!important}
body.customer-portal .kate-country-intelligence .ci-country-identity__facts>div{display:grid!important;gap:4px!important;padding:4px 14px!important;border-left:1px solid #e8edf1!important}
body.customer-portal .kate-country-intelligence .ci-country-identity__facts small{color:var(--kate-muted,#687684)!important;font-size:10.5px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.05em!important}
body.customer-portal .kate-country-intelligence .ci-country-identity__facts b{font-size:22px!important;line-height:1!important;color:var(--kate-ink,#1d2a36)!important}
body.customer-portal .kate-country-intelligence .ci-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
body.customer-portal .kate-country-intelligence .ci-kpi{display:grid!important;gap:4px!important;min-height:82px!important;padding:12px 14px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:10px!important;background:#fff!important}
body.customer-portal .kate-country-intelligence .ci-kpi b{font-size:20px!important;color:var(--kate-ink,#1d2a36)!important}
body.customer-portal .kate-country-intelligence .ci-kpi span{color:var(--kate-muted,#687684)!important;line-height:1.35!important}
body.customer-portal .kate-country-intelligence .ci-context-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.customer-portal .kate-country-intelligence .ci-card,body.customer-portal .kate-country-intelligence .ci-section{margin:0!important;padding:14px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}
body.customer-portal .kate-country-intelligence .ci-section h2{margin:0 0 10px!important;font-size:17px!important}
body.customer-portal .kate-country-intelligence .ci-domain-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.customer-portal .kate-country-intelligence .ci-domain-card{display:grid!important;gap:4px!important;padding:12px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:9px!important;background:#fff!important;color:inherit!important;text-decoration:none!important}
body.customer-portal .kate-country-intelligence .ci-domain-card.active{border-color:var(--kate-navy,#213f5b)!important;background:#f6f9fb!important}
body.customer-portal .kate-country-intelligence .ci-domain-card.zero{opacity:.58}
body.customer-portal .kate-country-intelligence .ci-list{display:grid!important;gap:8px!important}
body.customer-portal .kate-country-intelligence .ci-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;gap:10px!important;align-items:center!important;padding:10px 11px!important;border:1px solid #e8edf1!important;border-radius:9px!important;background:#fff!important}
body.customer-portal .kate-country-intelligence .ci-title{font-weight:750!important;color:var(--kate-ink,#1d2a36)!important}
body.customer-portal .kate-country-intelligence .ci-meta,body.customer-portal .kate-country-intelligence .ci-note{margin-top:3px!important;color:var(--kate-muted,#687684)!important;line-height:1.4!important}
body.customer-portal .kate-country-intelligence .ci-badge{display:inline-flex!important;align-items:center!important;min-height:23px!important;padding:3px 7px!important;border:1px solid #d8dee7!important;border-radius:999px!important;background:#f8fafc!important;color:#475467!important;font-size:10.5px!important;font-weight:800!important}
body.customer-portal .kate-country-intelligence .ci-badge.ok{border-color:#b9d6c6!important;background:#f0f8f3!important;color:#27704a!important}
body.customer-portal .kate-country-intelligence .ci-badge.warn{border-color:#ead6b9!important;background:#fff8ed!important;color:#9a5b17!important}
body.customer-portal .kate-country-intelligence .ci-footer{margin:0!important}

/* Commercial forward cash-flow */
body.customer-portal .kate-commercial-page .cashflow-months{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:10px 0 12px!important}
body.customer-portal .kate-commercial-page .cashflow-months>div{display:grid!important;grid-template-columns:1fr auto!important;gap:5px 8px!important;padding:11px 12px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:9px!important;background:#fff!important;min-width:0!important}
body.customer-portal .kate-commercial-page .cashflow-months b{grid-column:1/-1!important;color:var(--kate-ink,#1d2a36)!important;font-size:12px!important}
body.customer-portal .kate-commercial-page .cashflow-months span,body.customer-portal .kate-commercial-page .cashflow-months strong{font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
body.customer-portal .kate-commercial-page .cashflow-months .in{color:#126b42!important}
body.customer-portal .kate-commercial-page .cashflow-months .out{color:#a52b2b!important}
body.customer-portal .kate-commercial-page .cashflow-months strong{grid-column:1/-1!important;padding-top:5px!important;border-top:1px solid #edf0f3!important;color:var(--kate-ink,#1d2a36)!important}
body.customer-portal .kate-commercial-page .cashflow-add{margin-top:8px!important;border:1px solid var(--kate-line,#dce2e7)!important;border-radius:9px!important;background:#fff!important}
body.customer-portal .kate-commercial-page .cashflow-add>summary{padding:10px 12px!important;cursor:pointer!important;font-weight:700!important;color:var(--kate-navy,#213f5b)!important}
body.customer-portal .kate-commercial-page .cashflow-add[open]>summary{border-bottom:1px solid #edf0f3!important}
body.customer-portal .kate-commercial-page .cashflow-add form{padding:12px!important}
@media(max-width:1180px){body.customer-portal .kate-country-intelligence .ci-country-identity{grid-template-columns:1fr!important}body.customer-portal .kate-country-intelligence .ci-country-identity__facts{width:100%!important}body.customer-portal .kate-commercial-page .cashflow-months{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){body.customer-portal .kate-country-intelligence .ci-grid,body.customer-portal .kate-country-intelligence .ci-domain-grid,body.customer-portal .kate-country-intelligence .ci-context-grid,body.customer-portal .kate-country-intelligence .ci-country-identity__facts{grid-template-columns:1fr!important}body.customer-portal .kate-country-intelligence .ci-country-identity__facts>div{border-left:0!important;border-top:1px solid #e8edf1!important;padding:9px 0!important}body.customer-portal .kate-country-intelligence .ci-row{grid-template-columns:1fr!important}body.customer-portal .kate-commercial-page .cashflow-months{grid-template-columns:1fr!important}}


/* R8 language runtime closure */
.kv2-language[open] .kv2-menu-panel{max-height:min(70vh,620px);overflow-y:auto;min-width:310px;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;padding:7px}
.kv2-language[open] .kv2-menu-panel a{padding:8px 10px;border-radius:7px;white-space:nowrap}
.g3-auth__language{display:grid;gap:6px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(127,145,160,.22)}
.g3-auth__language label{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.g3-auth__language-select{width:100%;min-height:42px;padding:0 12px;border:1px solid #cfd9e1;border-radius:9px;background:#fff;color:#17384f;font:inherit;font-weight:650}
@media(max-width:640px){.kv2-language[open] .kv2-menu-panel{min-width:240px;grid-template-columns:1fr}}


/* KATE R59 — direct auth and registration surfaces. */
body.kate-auth-page,body.klg-auth{margin:0;min-height:100vh;background:#f4f6f8;color:#172033;font-family:Ubuntu,system-ui,-apple-system,"Segoe UI",sans-serif}
.auth-main{min-height:100vh;display:grid;place-items:center;padding:28px 18px;box-sizing:border-box}
.auth-card{width:min(460px,100%);padding:24px;background:#fff;border:1px solid #dfe4ea;border-radius:12px;box-shadow:0 12px 34px rgba(23,32,51,.08)}
.auth-card h1{margin:5px 0 8px;color:#172033}.auth-card p{color:#667085;font-size:12px;line-height:1.55}
.auth-eyebrow{color:#e86f24;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.auth-subtitle{margin-top:-2px!important;color:#475467!important;font-weight:700}
.auth-notice{margin:10px 0;padding:9px 10px;border:1px solid #f3b8b8;border-radius:7px;background:#fff6f6;color:#a42828;font-size:11px;line-height:1.45}
.auth-card .kds-form{display:grid;gap:10px;margin-top:14px}.auth-card .kds-form label{display:grid;gap:5px;color:#475467;font-size:11px;font-weight:700}
.auth-card .kds-form input,.auth-card .kds-form select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;color:#172033;font:inherit;box-sizing:border-box}
.auth-card .kds-form input:focus,.auth-card .kds-form select:focus{outline:none;border-color:#9ab3dd;box-shadow:0 0 0 3px rgba(23,92,211,.08)}
.auth-submit{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border:1px solid #172033;border-radius:7px;background:#172033;color:#fff;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.auth-submit:hover{background:#24324a}
.auth-top{height:58px;background:#172033;border-bottom:1px solid rgba(255,255,255,.08)}.auth-top-inner{width:min(1160px,calc(100% - 32px));height:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px}
.auth-brand{display:flex;align-items:center}.auth-brand img{display:block;max-height:32px;max-width:150px}.auth-langs{display:flex;align-items:center;gap:4px;color:#fff;font-size:10.5px}.auth-langs a{color:rgba(255,255,255,.78);text-decoration:none}
.registration-shell{padding:34px 18px 46px}.registration-shell>.kate-page-shell{margin:0 auto;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.35fr);gap:18px;align-items:start;}
.registration-intro,.registration-card{background:#fff;border:1px solid #dfe4ea;border-radius:12px}.registration-intro{padding:24px;position:sticky;top:18px}.registration-card{padding:22px}
.registration-back{display:inline-flex;margin-bottom:18px;color:#667085;font-size:10.5px;font-weight:700;text-decoration:none}.registration-back:hover{color:#172033}
.registration-eyebrow{color:#e86f24;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.registration-intro h1{margin:6px 0 10px;color:#172033;font-size:28px;line-height:1.1;letter-spacing:-.025em}.registration-lead{margin:0;color:#667085;font-size:12px;line-height:1.55}
.registration-steps{display:grid;gap:8px;margin-top:20px}.registration-steps>div{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;padding:8px;border:1px solid #eef1f4;border-radius:7px;color:#98a2b3}.registration-steps>div.is-active{border-color:#f6c6b0;background:#fffaf7;color:#172033}.registration-steps b{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#f4f6f8;font-size:10px}.registration-steps .is-active b{background:#e86f24;color:#fff}.registration-steps span{font-size:11px;font-weight:700}
.registration-form{display:grid;gap:18px}.registration-section{padding-bottom:17px;border-bottom:1px solid #eef1f4}.registration-section:last-of-type{border-bottom:0}.registration-section-head{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:start;margin-bottom:11px}.registration-section-head>span{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#172033;color:#fff;font-size:9.5px;font-weight:800}.registration-section-head h2{margin:0;color:#172033;font-size:15px}.registration-section-head p{margin:2px 0 0;color:#667085;font-size:10.5px}
.registration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px}.registration-grid label{display:grid;gap:5px;color:#475467;font-size:10.5px;font-weight:700}.registration-grid input,.registration-grid select{width:100%;min-height:38px;padding:7px 9px;border:1px solid #d0d5dd;border-radius:6px;background:#fff;color:#172033;font:inherit;box-sizing:border-box}.registration-grid small{color:#98a2b3;font-size:9.5px}.registration-wide{grid-column:1/-1}
.registration-error{margin-bottom:14px;padding:9px 10px;border:1px solid #f3b8b8;border-radius:7px;background:#fff6f6;color:#a42828;font-size:10.5px}
.registration-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.registration-actions p{margin:0;color:#667085;font-size:10.5px}.registration-submit{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border:1px solid #172033;border-radius:7px;background:#172033;color:#fff;font:inherit;font-size:10.5px;font-weight:800;cursor:pointer}
@media(max-width:820px){.registration-shell>.kate-page-shell{grid-template-columns:1fr;}.registration-intro{position:static}.registration-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.registration-steps>div{grid-template-columns:1fr;justify-items:center;text-align:center}}
@media(max-width:560px){.auth-card{padding:18px}.registration-shell{padding:18px 12px 30px}.registration-intro,.registration-card{padding:17px}.registration-grid{grid-template-columns:1fr}.registration-wide{grid-column:auto}.registration-steps{grid-template-columns:1fr}.registration-steps>div{grid-template-columns:30px minmax(0,1fr);justify-items:initial;text-align:left}.registration-actions{align-items:stretch}.registration-submit{width:100%}}\n
/* KATE R27 completion-control polish — 2026-10-07.
   Uses the approved 02.10.2026 design vocabulary; presentation only. */
body.customer-portal .kate-completion-pagehead{
  position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  margin:0 0 14px;padding:18px 20px 17px;border:1px solid var(--kate-line,#dfe5ea);
  border-left:4px solid var(--kate-navy,#17324d);border-radius:var(--kate-r2,12px);background:#fff;
}
body.customer-portal .kate-completion-pagehead .eyebrow{margin:0 0 5px;color:var(--kate-navy,#17324d)}
body.customer-portal .kate-completion-pagehead h1,
body.customer-portal .kate-completion-cockpit h2,
body.customer-portal .kate-completion-register h2,
body.customer-portal .kate-completion-create summary b{
  word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;white-space:normal;
}
body.customer-portal .kate-completion-pagehead h1{margin:0;font-size:clamp(25px,2.05vw,33px);line-height:1.12;letter-spacing:-.025em;color:var(--kate-ink,#17212b)}
body.customer-portal .kate-completion-pagehead p{margin:6px 0 0;max-width:78ch;color:var(--kate-muted,#647180);line-height:1.5}
body.customer-portal .kate-completion-project-filter{margin:0 0 14px;padding:12px 14px}
body.customer-portal .kate-completion-project-filter .kate-form-grid{grid-template-columns:minmax(240px,420px);align-items:end;margin:0}
body.customer-portal .kate-completion-cockpit{margin:0 0 10px;padding:16px 18px;border-left:3px solid #8198ad;background:#fff}
body.customer-portal .kate-completion-cockpit .kate-section__head{margin:0;align-items:flex-start}
body.customer-portal .kate-completion-cockpit h2{margin:3px 0 5px;font-size:18px;line-height:1.2;color:var(--kate-ink,#17212b)}
body.customer-portal .kate-completion-cockpit p{margin:0;max-width:76ch;color:var(--kate-muted,#647180);line-height:1.5}
body.customer-portal .kate-completion-cockpit .kate-actions{max-width:680px;justify-content:flex-end}
body.customer-portal .kate-completion-create{margin:0 0 14px;padding:0;overflow:hidden}
body.customer-portal .kate-completion-create>summary{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:12px;align-items:baseline;padding:14px 16px;cursor:pointer;list-style-position:inside;background:#fff}
body.customer-portal .kate-completion-create>summary:hover{background:#fafbfd}
body.customer-portal .kate-completion-create>summary b{font-size:13px;color:var(--kate-ink,#17212b)}
body.customer-portal .kate-completion-create>summary span{min-width:0;color:var(--kate-muted,#647180);font-size:11.5px;font-weight:500;line-height:1.4}
body.customer-portal .kate-completion-create>form{padding:0 16px 16px}
body.customer-portal .kate-completion-create .kate-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
body.customer-portal .kate-completion-create .kate-form-field.wide{grid-column:1/-1}
body.customer-portal .kate-completion-create textarea{min-height:84px}
body.customer-portal .kate-completion-register{margin:0 0 16px;padding:0;overflow:hidden}
body.customer-portal .kate-completion-register>.kate-section__head{margin:0;padding:15px 16px;border-bottom:1px solid var(--kate-line,#dfe5ea);background:#fff}
body.customer-portal .kate-completion-register>.kate-section__head h2{margin:0 0 3px;font-size:16px;line-height:1.2;color:var(--kate-ink,#17212b)}
body.customer-portal .kate-completion-register>.kate-section__head p{margin:0;color:var(--kate-muted,#647180);font-size:11.5px;line-height:1.45}
body.customer-portal .kate-completion-register>.kate-section__head>.badge{align-self:center}
body.customer-portal .kate-completion-register .klg-data-table-wrap{border:0;border-radius:0;background:#fff}
body.customer-portal .kate-completion-register table{min-width:780px}
body.customer-portal .kate-completion-register th{padding:9px 12px;background:#f7f9fb}
body.customer-portal .kate-completion-register td{padding:11px 12px;vertical-align:top}
body.customer-portal .kate-completion-register td:first-child b{color:var(--kate-ink,#17212b);font-size:13px}
body.customer-portal .kate-completion-register td small{color:var(--kate-muted,#647180);line-height:1.4}
body.customer-portal .kate-completion-register .kate-actions{justify-content:flex-start;margin:0 0 8px}
body.customer-portal .kate-completion-register .kate-inline-form{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto;gap:7px;align-items:center;margin:0}
body.customer-portal .kate-completion-register .kate-inline-form input,
body.customer-portal .kate-completion-register .kate-inline-form select{min-width:0;min-height:34px;padding:6px 8px;font-size:11.5px}
body.customer-portal .kate-completion-register .kate-inline-form .btn{min-height:34px;padding:6px 10px}
body.customer-portal .kate-project-model-context{margin:0 0 14px;padding:16px 18px;border-left:3px solid #9aabb9;background:#fbfcfd}
body.customer-portal .kate-project-model-context .card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
body.customer-portal .kate-project-model-context .card-head small{display:block;margin:0 0 4px;color:var(--kate-navy,#17324d);font-size:10px;font-weight:800;letter-spacing:.07em}
body.customer-portal .kate-project-model-context h2{margin:0 0 4px;font-size:16px;color:var(--kate-ink,#17212b);word-break:normal;overflow-wrap:normal;hyphens:none}
body.customer-portal .kate-project-model-context p{margin:0;max-width:76ch;color:var(--kate-muted,#647180);font-size:12px;line-height:1.45}
body.customer-portal .kate-project-model-context .kate-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr));margin:12px 0 0}
body.customer-portal .kate-project-model-context .kate-kpi{padding:10px 12px;background:#fff}
body.customer-portal .kate-project-model-context .klg-table-wrap{margin-top:12px}
@media(max-width:900px){
 body.customer-portal .kate-completion-cockpit .kate-actions{justify-content:flex-start;max-width:none}
 body.customer-portal .kate-completion-register .kate-inline-form{grid-template-columns:1fr 1fr}
 body.customer-portal .kate-completion-register .kate-inline-form .btn{grid-column:1/-1;justify-self:start}
}
@media(max-width:680px){
 body.customer-portal .kate-completion-pagehead{display:block;padding:15px 16px}
 body.customer-portal .kate-completion-project-filter .kate-form-grid,
 body.customer-portal .kate-completion-create .kate-form-grid{grid-template-columns:1fr}
 body.customer-portal .kate-completion-create .kate-form-field.wide{grid-column:auto}
 body.customer-portal .kate-completion-create>summary{grid-template-columns:1fr;gap:4px}
 body.customer-portal .kate-completion-register table{min-width:700px}
 body.customer-portal .kate-completion-register .kate-inline-form{grid-template-columns:1fr}
 body.customer-portal .kate-completion-register .kate-inline-form .btn{grid-column:auto}
 body.customer-portal .kate-project-model-context{padding:14px}
}
