:root {
  --page-bg: #edf2f7;
  --ink: #102033;
  --muted: #667085;
  --line: #d8e0ea;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --primary: #1a7db7;
  --primary-dark: #105b88;
  --accent: #16a085;
  --danger: #b42318;
  --warning: #b86b12;
  --shadow: 0 24px 70px rgba(16, 32, 51, .14);
  --soft-shadow: 0 12px 30px rgba(16, 32, 51, .08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(26, 125, 183, .12), transparent 38%),
    linear-gradient(315deg, rgba(22, 160, 133, .14), transparent 42%),
    var(--page-bg);
  font-family: Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.sso-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.sso-shell {
  width: min(1260px, 100%);
  min-height: min(720px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(216, 224, 234, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sso-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
}

.sso-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sso-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #1a7db7;
  box-shadow: 0 12px 24px rgba(26, 125, 183, .24);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.sso-brand strong,
.sso-brand small {
  display: block;
}

.sso-brand strong {
  font-size: 17px;
  line-height: 1.45;
}

.sso-brand small {
  color: var(--muted);
  font-size: 12px;
}

.sso-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.sso-nav a {
  min-width: 86px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.sso-nav a:hover {
  color: var(--primary);
  background: #fff;
}

.sso-stage {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 42px;
}

.sso-intro {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(16, 32, 51, .94), rgba(26, 125, 183, .9)),
    #102033;
  box-shadow: var(--soft-shadow);
}

.sso-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 700;
}

.sso-intro h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: 0;
}

.sso-intro p {
  max-width: 420px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.9;
}

.sso-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.sso-status-list span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 700;
}

.sso-workspace {
  align-self: center;
}

.sso-card,
.sso-userbar,
.sso-alert,
.sso-system {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.sso-card {
  padding: 26px;
}

.sso-card-head {
  margin-bottom: 20px;
}

.sso-card h2,
.sso-card-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.sso-card p,
.sso-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.sso-form {
  display: grid;
  gap: 16px;
}

.sso-login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.sso-login-logo img {
  width: min(250px, 72%);
  max-height: 86px;
  object-fit: contain;
}

.sso-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.sso-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface-soft);
  font: inherit;
}

.sso-form input:focus {
  outline: 3px solid rgba(26, 125, 183, .14);
  border-color: var(--primary);
  background: #fff;
}

.sso-form button {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(26, 125, 183, .22);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sso-form button:hover {
  background: var(--primary-dark);
}

.sso-alert {
  margin-bottom: 14px;
  padding: 13px 15px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}

.sso-alert-error {
  border-color: rgba(180, 35, 24, .28);
  background: #fff4f2;
}

.sso-userbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 15px 16px;
}

.sso-userbar span,
.sso-userbar strong {
  display: block;
}

.sso-userbar span {
  color: var(--muted);
  font-size: 12px;
}

.sso-userbar strong {
  margin-top: 3px;
  font-size: 16px;
}

.sso-userbar a {
  min-width: 112px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--primary);
  background: rgba(26, 125, 183, .1);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.sso-userbar a:hover {
  color: #fff;
  background: var(--primary);
}

.sso-grid {
  display: grid;
  gap: 12px;
}

.sso-system {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.sso-system:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 125, 183, .45);
  box-shadow: 0 18px 34px rgba(16, 32, 51, .12);
}

.sso-system-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.sso-system-hr .sso-system-icon {
  background: var(--accent);
}

.sso-system-accounting .sso-system-icon {
  background: var(--warning);
}

.sso-system-body {
  min-width: 0;
}

.sso-system-body strong,
.sso-system-body small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sso-system-body strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.sso-system-body small {
  color: var(--muted);
  font-size: 12px;
}

.sso-system-action {
  min-width: 58px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(26, 125, 183, .1);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.sso-empty {
  min-height: 180px;
  display: grid;
  align-content: center;
}

.sso-stage-executive {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 18px;
  padding: 22px 28px 28px;
}

.sso-stage-executive .sso-intro {
  min-height: 160px;
  padding: 24px 32px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(16, 32, 51, .98), rgba(26, 125, 183, .96) 62%, rgba(22, 160, 133, .86)),
    #102033;
}

.sso-stage-executive .sso-intro h1 {
  font-size: clamp(32px, 4vw, 54px);
}

.sso-stage-executive .sso-workspace {
  align-self: stretch;
}

.sso-generated {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.executive-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.executive-kpi {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f9fbfd);
  box-shadow: 0 10px 24px rgba(16, 32, 51, .06);
}

.executive-kpi span,
.executive-kpi small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.executive-kpi strong {
  color: var(--ink);
  font-size: clamp(21px, 2vw, 32px);
  line-height: 1.15;
  white-space: nowrap;
}

.executive-kpi-acc strong {
  font-size: clamp(17px, 1.45vw, 25px);
}

.executive-detail-trigger {
  display: inline;
  margin: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  direction: ltr;
  font: inherit;
  font-weight: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}

.executive-detail-trigger:hover,
.executive-detail-trigger:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.executive-detail-trigger:focus-visible {
  outline: 3px solid rgba(26, 125, 183, .16);
  border-radius: 6px;
}

.executive-detail-trigger-large {
  font-size: inherit;
  white-space: nowrap;
}

.executive-detail-trigger-inline,
.executive-detail-trigger-mini,
.executive-detail-trigger-cell,
.executive-detail-trigger-chip {
  font-size: inherit;
}

.executive-detail-trigger-cell {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-detail-trigger-chip {
  direction: rtl;
}

.executive-kpi-lms {
  border-top: 3px solid var(--primary);
}

.executive-kpi-hr {
  border-top: 3px solid var(--accent);
}

.executive-kpi-acc {
  border-top: 3px solid var(--warning);
}

.executive-kpi-alert {
  border-color: rgba(184, 107, 18, .32);
  background:
    linear-gradient(180deg, #fffaf5, #fff);
}

.executive-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(270px, .9fr);
  gap: 14px;
  margin-bottom: 18px;
}

.executive-chart-panel,
.executive-chart-side,
.executive-donut-card,
.executive-month-snapshot div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 32, 51, .06);
}

.executive-chart-panel {
  min-height: 390px;
  padding: 18px;
}

.executive-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.executive-chart-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.executive-chart-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
}

.executive-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.executive-chart-legend span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.executive-chart-legend b {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.legend-receipts {
  background: var(--accent);
}

.legend-invoices {
  background: var(--warning);
}

.executive-chart-wrap {
  min-height: 300px;
}

.executive-column-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-grid {
  stroke: #e7edf5;
  stroke-width: 1;
}

.chart-y-label,
.chart-x-label {
  fill: var(--muted);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.chart-x-label {
  text-anchor: middle;
}

.chart-bar-hit {
  cursor: pointer;
  outline: 0;
}

.chart-bar-click-zone {
  fill: transparent;
}

.chart-bar {
  rx: 7px;
  ry: 7px;
  transition: opacity .16s ease, transform .16s ease;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.chart-bar-receipts {
  fill: var(--accent);
}

.chart-bar-invoices {
  fill: var(--warning);
}

.chart-bar-hit:hover .chart-bar,
.chart-bar-hit:focus .chart-bar {
  opacity: .82;
  transform: scaleY(1.03);
}

.chart-bar-hit:focus .chart-bar {
  stroke: var(--ink);
  stroke-width: 2;
}

.chart-bar-value {
  fill: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
}

.executive-chart-side {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: var(--surface-soft);
}

.executive-donut-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
}

.executive-donut {
  width: 128px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--primary) var(--chart-degrees), #e7edf5 0);
}

.executive-donut span,
.executive-donut small,
.executive-donut-card span,
.executive-donut-card strong,
.executive-donut-card small,
.executive-month-snapshot span,
.executive-month-snapshot strong,
.executive-month-snapshot small {
  display: block;
}

.executive-donut span {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.executive-donut small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.executive-donut-card span,
.executive-month-snapshot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.executive-donut-card strong,
.executive-month-snapshot strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.executive-donut-card small,
.executive-month-snapshot small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.executive-month-snapshot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.executive-month-snapshot div {
  min-height: 104px;
  padding: 16px;
  background: #fff;
}

.executive-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.executive-panel {
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.executive-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.executive-panel-head span {
  min-width: 46px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.executive-panel:nth-child(2) .executive-panel-head span {
  background: var(--accent);
}

.executive-panel:nth-child(3) .executive-panel-head span {
  background: var(--warning);
}

.executive-panel-lms .executive-panel-head span,
.executive-panel-lms .executive-bar-row b {
  background: var(--primary);
}

.executive-panel-hr .executive-panel-head span,
.executive-panel-hr .executive-bar-row b {
  background: var(--accent);
}

.executive-panel-acc .executive-panel-head span,
.executive-panel-acc .executive-bar-row b {
  background: var(--warning);
}

.executive-panel-head h2,
.executive-subhead h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.executive-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.executive-metrics div {
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.executive-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.executive-metrics strong {
  color: var(--ink);
  text-align: left;
  font-size: 15px;
  font-weight: 900;
}

.executive-panel-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.executive-panel-block h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.executive-bars {
  display: grid;
  gap: 10px;
}

.executive-chart-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.executive-bars-compact {
  gap: 8px;
}

.executive-bar-row {
  display: grid;
  gap: 7px;
}

.executive-bar-row div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.executive-bar-row span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.executive-bar-row strong {
  flex: 0 0 auto;
  color: var(--ink);
  direction: ltr;
  font-size: 12px;
  font-weight: 900;
}

.executive-bar-row::after {
  content: "";
  grid-column: 1 / -1;
  grid-row: 2;
  height: 7px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.executive-bar-row b {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 0;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  z-index: 1;
}

.executive-trends {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.executive-panel-double {
  grid-column: span 2;
}

.executive-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.executive-table-panel {
  min-height: auto;
  overflow: hidden;
}

.executive-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.executive-table th,
.executive-table td {
  overflow: hidden;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.executive-table th {
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 800;
}

.executive-table tr:last-child td {
  border-bottom: 0;
}

.executive-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(26, 125, 183, .1);
  font-size: 11px;
  font-weight: 800;
}

.executive-detail-open {
  overflow: hidden;
}

.executive-detail-modal[hidden] {
  display: none;
}

.executive-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.executive-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 51, .48);
  backdrop-filter: blur(5px);
}

.executive-detail-dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(16, 32, 51, .28);
}

.executive-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.executive-detail-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.executive-detail-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
}

.executive-detail-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.executive-detail-close:hover,
.executive-detail-close:focus-visible {
  color: #fff;
  background: var(--primary);
  outline: 0;
}

.executive-detail-body {
  overflow: auto;
  padding: 20px;
}

.executive-detail-lead,
.executive-detail-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.executive-detail-lead {
  margin-bottom: 16px;
  padding: 0 2px;
}

.executive-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.executive-detail-summary div {
  min-height: 74px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.executive-detail-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.executive-detail-summary strong {
  color: var(--ink);
  direction: ltr;
  font-size: 18px;
  font-weight: 900;
}

.executive-detail-note {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #fffaf2;
}

.executive-detail-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.executive-detail-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.executive-detail-table th,
.executive-detail-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
}

.executive-detail-table th {
  position: sticky;
  top: 0;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 900;
}

.executive-detail-table tr:last-child td {
  border-bottom: 0;
}

.executive-detail-loading,
.executive-detail-empty,
.executive-detail-error {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 800;
}

.executive-detail-error {
  color: var(--danger);
  background: #fff4f2;
}

.executive-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 12px;
}

.executive-subhead p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .sso-page {
    padding: 16px;
  }

  .sso-shell {
    min-height: auto;
  }

  .sso-stage {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .sso-intro {
    min-height: auto;
  }

  .executive-kpis,
  .executive-sections,
  .executive-chart-grid,
  .executive-trends,
  .executive-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-chart-panel {
    grid-column: 1 / -1;
  }

  .executive-chart-side {
    grid-column: 1 / -1;
  }

  .executive-panel-double {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .sso-topbar,
  .sso-userbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sso-nav {
    width: 100%;
    overflow-x: auto;
  }

  .sso-nav a {
    flex: 1;
    min-width: max-content;
  }

  .sso-stage {
    padding: 14px;
  }

  .sso-intro,
  .sso-card {
    padding: 20px;
  }

  .sso-system {
    grid-template-columns: 50px 1fr;
  }

  .sso-system-icon {
    width: 50px;
    height: 50px;
  }

  .sso-system-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .executive-kpis,
  .executive-sections,
  .executive-chart-grid,
  .executive-trends,
  .executive-activity-grid,
  .executive-metrics {
    grid-template-columns: 1fr;
  }

  .executive-chart-head,
  .executive-donut-card {
    grid-template-columns: 1fr;
  }

  .executive-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-chart-legend {
    justify-content: flex-start;
  }

  .executive-donut {
    margin-inline: auto;
  }

  .executive-subhead {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-detail-modal {
    padding: 12px;
  }

  .executive-detail-dialog {
    max-height: calc(100vh - 24px);
  }

  .executive-detail-head {
    align-items: flex-start;
  }
}

.sso-account-group { min-width: 0; }
.sso-account-group summary { cursor: pointer; list-style: none; }
.sso-account-group summary::-webkit-details-marker { display: none; }
.sso-account-option { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; margin: 4px 12px; border-radius: 8px; background: #f3f6fa; color: #215a93; text-decoration: none; overflow-wrap: anywhere; }
.sso-account-option:hover { background: #e5eff8; }
.sso-account-option:focus-visible, .sso-account-group summary:focus-visible { outline: 2px solid #e38b22; }