/* Timeout NOW shared organization-brand surface system (v4.22.81 R6r4).
   All values come from the effective organization supplied by views/header.php.
   Keep page types semantic: do not recolour warnings, financial statuses, or AI cards. */
body {
  /* Very subtle org-specific tint. Retain legibility and white card interiors. */
  --tn-card-surface: color-mix(in srgb, #fff 91%, color-mix(in srgb, var(--org-surface,#f7f9f7) 85%, var(--org-accent,#4f7f65) 15%));
  --tn-card-surface-strong: color-mix(in srgb, #fff 83%, color-mix(in srgb, var(--org-surface,#f7f9f7) 78%, var(--org-accent,#4f7f65) 22%));
  --tn-card-surface-hover: color-mix(in srgb, #fff 80%, color-mix(in srgb, var(--org-surface,#f7f9f7) 75%, var(--org-accent,#4f7f65) 25%));
  --tn-card-border: color-mix(in srgb, var(--org-accent,#4f7f65) 11%, #e1e6e3);
  --tn-card-border-active: color-mix(in srgb, var(--org-accent,#4f7f65) 36%, #dfe5e1);
  --tn-card-icon: var(--org-accent,#305941);
  --tn-card-accent: var(--org-accent,#4f7f65);
}
.tn-org-surface{background:var(--tn-card-surface);border-color:var(--tn-card-border)}
.tn-org-card{background:var(--tn-card-surface);border:1px solid var(--tn-card-border);border-radius:12px}
.tn-org-card:hover{border-color:var(--tn-card-border-active)}
.tn-org-card svg{color:var(--tn-card-icon)}
/* Standard workflow navigation on existing and future screens. Do not tint approval/status semantics. */
.process-strip{background:color-mix(in srgb,var(--tn-card-surface) 55%,#fff);border-color:var(--tn-card-border)}
.process-strip .is-current{background:var(--tn-card-surface-strong);color:var(--org-primary,#305941);box-shadow:inset 0 0 0 1px var(--tn-card-border-active)}
.compact-nav-tile:hover,.compact-nav-tile:focus-visible{border-color:var(--tn-card-border-active);background:var(--tn-card-surface)}
.compact-nav-tile>svg,.compact-nav-tile>i{color:var(--tn-card-icon)}
/* My Profile. Backgrounds follow this organization's configured surface and accent. */
.my-self-service .my-self-hero{background:linear-gradient(110deg,#fff,var(--tn-card-surface))!important;border-color:var(--tn-card-border)!important}
.my-self-service .my-self-section{border-color:var(--tn-card-border)!important;background:#fff!important}
.my-self-service .my-self-columns>.card:nth-child(1),
.my-self-service .my-self-columns>.card:nth-child(2){background:var(--tn-card-surface)!important;border-color:var(--tn-card-border)!important}
.my-self-service .my-self-tile,
.my-self-service .my-self-connection{background:var(--tn-card-surface)!important;border-color:var(--tn-card-border)!important}
.my-self-service .my-self-tile:hover,.my-self-service .my-self-tile:focus-visible,
.my-self-service .my-self-connection[open]{background:var(--tn-card-surface-hover)!important;border-color:var(--tn-card-border-active)!important}
.my-self-service .my-self-avatar{background:var(--tn-card-surface-strong)!important;border-color:var(--tn-card-border)!important;color:var(--tn-card-icon)}
.my-self-service .my-self-heading svg,
.my-self-service .my-self-tile svg,
.my-self-service .my-self-connection>summary>svg:first-child{color:var(--tn-card-icon)!important}
.my-self-service .my-self-connection>summary{color:inherit}
.my-self-service .my-self-connection-detail{border-top-color:var(--tn-card-border)}
/* Customer Experience: Customer Payments uses the same tokens, not a fixed green palette. */
.cx-pay-heading-icon,.cx-pay-step-icon{background:var(--tn-card-surface-strong)!important;color:var(--tn-card-icon)!important}
.cx-pay-step,.cx-pay-step-hosted{background:linear-gradient(150deg,var(--tn-card-surface),#fff 72%)!important;border-color:var(--tn-card-border)!important}
.cx-pay-step-label{color:var(--tn-card-icon)!important}
.cx-pay-insights .metric-card{background:var(--tn-card-surface)!important;border-color:var(--tn-card-border)!important}
.cx-pay-register{border-color:var(--tn-card-border)!important}
@media(prefers-reduced-motion:reduce){.tn-org-card,.my-self-service .my-self-tile{transition:none}}

/* v4.22.81 R6r4: panel white-space restored; tenant branding is a hint, never a wash. */
.my-self-service .my-self-section{background:#fff!important;border-color:var(--tn-card-border)!important}
.my-self-service .my-self-columns>.card:nth-child(1),.my-self-service .my-self-columns>.card:nth-child(2){background:#fff!important}
.my-self-service .my-self-tile,.my-self-service .my-self-connection{background:var(--tn-card-surface)!important}
.my-self-service .my-self-hero{background:linear-gradient(110deg,#fff,var(--tn-card-surface))!important}
.cx-pay-step,.cx-pay-step-hosted{background:linear-gradient(150deg,var(--tn-card-surface),#fff 65%)!important}
.cx-pay-insights .metric-card{background:var(--tn-card-surface)!important}
/* Shared capability heading and standard KPI row for operational registers. */
.tn-capability-heading{display:flex;align-items:center;gap:14px;margin-bottom:16px;min-width:0}
.tn-capability-heading-icon{width:50px;height:50px;min-width:50px;display:grid;place-items:center;border-radius:13px;background:var(--tn-card-surface-strong);color:var(--tn-card-icon)}
.tn-capability-heading-icon svg{width:26px;height:26px;stroke-width:1.75}
.tn-capability-heading h1{margin:0 0 5px;font-size:clamp(1.45rem,2vw,2rem);line-height:1.14}
.tn-capability-heading p{margin:0;color:var(--tn-muted,#5e6d63);max-width:850px;line-height:1.45}
.tn-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:13px;margin:0 0 19px}
.tn-kpi-card{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:16px 18px;min-height:95px;background:var(--tn-card-surface);border:1px solid var(--tn-card-border);border-radius:12px;box-sizing:border-box}
.tn-kpi-card span{display:block;color:var(--tn-muted,#53635b);font-size:.8rem;font-weight:700}
.tn-kpi-card strong{font-size:clamp(1.3rem,2vw,1.75rem);line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tn-finance-register{width:100%}
@media(max-width:720px){.tn-kpi-grid{grid-template-columns:1fr}.tn-capability-heading{align-items:flex-start}.tn-capability-heading-icon{width:45px;height:45px;min-width:45px}}
