.management-dashboard {
  display: grid;
  gap: 20px;
  color: var(--text);
}

.mgmt-hero,
.mgmt-card,
.mgmt-panel {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: 0 12px 32px rgba(3, 10, 22, 0.08);
}

.mgmt-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--action) 12%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface) 97%, transparent);
}

.mgmt-eyebrow {
  color: var(--action);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* 산식 호버가 있는 KPI 카드 — 설명이 있다는 걸 알 수 있게 커서만 바꾼다. */
.mgmt-card.has-formula {
  cursor: help;
}

/* 출처 배지 — 화면 숫자가 어느 적재 버전에서 왔는지 확인용. 상세는 title 속성. */
.mgmt-source-badge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.5;
  cursor: help;
}

.mgmt-source-badge b {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.mgmt-source-kicker {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--action) 12%, transparent);
  color: var(--action);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

/* 판가 폴백 표시 — 기존 경고 셀(.mgmt-cell-warn)과 같은 색을 쓴다. */
.mgmt-source-warn {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, #faf0ce 62%, var(--surface));
  color: #8a6a00;
  font-size: 11px;
  font-weight: 800;
}

:root[data-theme="dark"] .mgmt-source-warn {
  background: color-mix(in srgb, #8a6a00 26%, var(--surface));
  color: #e8c96a;
}

@media (max-width: 900px) {
  .mgmt-source-badge { max-width: 100%; }
}

.mgmt-title {
  margin: 4px 0 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 850;
  letter-spacing: -.04em;
}

.mgmt-subtitle,
.mgmt-note,
.mgmt-source {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.mgmt-source {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 1px;
  align-items: center;
  max-width: 460px;
  padding: 2px 0;
  border: 0;
  background: transparent;
}

.mgmt-source b {
  color: var(--text);
  font-size: 13px;
}

.mgmt-source span,
.mgmt-source small {
  display: block;
}

.mgmt-source > span:not(.mgmt-source-kicker),
.mgmt-source small {
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.mgmt-source-kicker {
  grid-row: 1 / 3;
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--action-soft);
  color: var(--action);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

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

.mgmt-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mgmt-trend-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mgmt-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mgmt-card,
.mgmt-panel {
  min-width: 0;
  border-radius: 20px;
}

.mgmt-card {
  padding: 16px 18px;
}

.mgmt-card.is-hot {
  border-color: color-mix(in srgb, var(--brand) 26%, var(--border));
}

.mgmt-label {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 750;
}

.mgmt-value {
  margin-top: 8px;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 850;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mgmt-unit {
  margin-left: 5px;
  color: var(--text-faint);
  font-size: .46em;
  font-weight: 750;
  letter-spacing: -.01em;
}

.mgmt-value.neg,
.mgmt-neg {
  color: var(--brand);
}

.mgmt-value.pos,
.mgmt-pos {
  color: var(--green);
}

.mgmt-value.muted {
  color: var(--text-dim);
}

.mgmt-foot {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.mgmt-panel {
  padding: 18px;
}

.mgmt-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.mgmt-section-title span {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.mgmt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mgmt-filter-status,
.mgmt-product-context,
.mgmt-trend-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
  color: var(--text-dim);
  font-size: 13px;
}

.mgmt-filter-status b,
.mgmt-product-context b,
.mgmt-trend-note b {
  color: var(--text);
}

.mgmt-filter-status span,
.mgmt-product-context span,
.mgmt-trend-note span {
  color: var(--text-faint);
}

.mgmt-insight-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 12px 4px 2px;
  border-top: 1px solid var(--border);
}

.mgmt-insight-item {
  position: relative;
  padding-left: 14px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.55;
}

.mgmt-insight-item::before {
  position: absolute;
  top: .47em;
  left: 1px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--brand);
  content: "";
}

.mgmt-insight-item b {
  color: var(--text);
  font-weight: 850;
}

.mgmt-trend-note.is-insight {
  align-items: flex-start;
  line-height: 1.65;
}

.mgmt-trend-note.is-insight b {
  flex: 0 0 auto;
}

.mgmt-trend-note.is-insight span {
  flex: 1 1 520px;
  color: var(--text-dim);
}

.mgmt-chip,
.mgmt-toggle,
.mgmt-select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.mgmt-chip,
.mgmt-toggle {
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 11px;
}

.mgmt-chip.is-active,
.mgmt-toggle.is-active {
  border-color: var(--action);
  background: var(--action-soft);
  color: var(--action);
}

.mgmt-select {
  min-width: 140px;
  border-radius: 12px;
  padding: 8px 10px;
}

.mgmt-chip:focus-visible,
.mgmt-toggle:focus-visible,
.mgmt-select:focus-visible,
.mgmt-tree-toggle:focus-visible {
  outline: 3px solid var(--action-soft);
  outline-offset: 2px;
}

.mgmt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.mgmt-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  font-size: 13px;
}

.mgmt-table th,
.mgmt-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}

.mgmt-table th:first-child,
.mgmt-table td:first-child {
  text-align: left;
}

.mgmt-table th {
  color: var(--text-dim);
  background: var(--surface-2);
  font-weight: 800;
}

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

.mgmt-table .mgmt-strong td {
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  font-weight: 850;
}

.mgmt-pl-table td {
  border-bottom: 0;
}

.mgmt-pl-table tr.mgmt-rate-strong-bg td {
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.mgmt-pl-table tr.mgmt-rate-source td {
  padding-bottom: 5px;
}

.mgmt-pl-table tr.mgmt-section-end td {
  border-bottom: 2px solid var(--border-2);
}

.mgmt-pl-table th:first-child,
.mgmt-pl-table td:first-child {
  width: 1%;
}

.mgmt-pl-table tr.mgmt-rate td {
  color: var(--action);
  font-style: italic;
  padding-top: 5px;
}

.mgmt-pl-table tr.mgmt-rate td:first-child {
  text-align: right;
}

.mgmt-table .mgmt-total,
.mgmt-table .mgmt-total-h {
  border-left: 2px solid var(--border-2);
  background: color-mix(in srgb, var(--action-soft) 54%, transparent);
  font-weight: 850;
}

.mgmt-watch-table {
  min-width: 0 !important;
  table-layout: fixed;
}

.mgmt-watch-table th:nth-child(1),
.mgmt-watch-table td:nth-child(1) {
  width: 32%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgmt-watch-table th:nth-child(2),
.mgmt-watch-table td:nth-child(2),
.mgmt-watch-table th:nth-child(3),
.mgmt-watch-table td:nth-child(3) {
  width: 15%;
}

.mgmt-watch-table th:nth-child(4),
.mgmt-watch-table td:nth-child(4) {
  width: 38%;
  padding-left: 8px;
  padding-right: 8px;
  white-space: normal;
}

.mgmt-indent {
  padding-left: 28px !important;
  color: var(--text-faint);
}

.mgmt-rate-label {
  padding-left: 18px !important;
}

.mgmt-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.mgmt-badge.profit {
  background: #deeEDF;
  color: #1e6b2e;
}

.mgmt-badge.cm1 {
  background: #fbe3e1;
  color: #b0271f;
}

.mgmt-badge.fix {
  background: #fbe1cf;
  color: #b4491a;
}

.mgmt-badge.indirect,
.mgmt-badge.estimate {
  background: #faf0ce;
  color: #8a6a00;
}

.mgmt-diag-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 12px;
}

.mgmt-diag-legend b {
  margin-right: 3px;
  color: var(--text);
}

.mgmt-diag-legend small {
  color: var(--text-faint);
  font-size: 12px;
}

.mgmt-issue-list {
  display: grid;
  gap: 8px;
}

.mgmt-issue {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.mgmt-issue:last-child {
  border-bottom: 0;
}

.mgmt-issue b {
  color: var(--text);
}

.mgmt-issue span {
  color: var(--text-dim);
}

/* 주요 이슈 — 승인 코멘트 헤더(정보 아이콘 + 검토 진입 버튼) 와 빈 상태 */
.mgmt-issue-title {
  align-items: center;
  flex-wrap: wrap;
}

.mgmt-issue-title-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.mgmt-issue-note {
  flex: 1;
}

.mgmt-issue-info {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 650;
  cursor: help;
}

.mgmt-issue-review {
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  padding: 6px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.mgmt-issue-review:hover {
  border-color: var(--action);
  color: var(--action);
}

.mgmt-issue.has-detail {
  cursor: pointer;
}

.mgmt-issue.has-detail:hover b,
.mgmt-issue.has-detail:focus-visible b {
  color: var(--action);
}

.mgmt-issue-chevron {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 9px;
  border: 1px solid var(--action);
  border-radius: 999px;
  color: var(--action);
  background: var(--action-soft);
  font-size: 10.5px;
  font-weight: 850;
  vertical-align: 1px;
  white-space: nowrap;
}

.mgmt-issue-chevron i {
  font-style: normal;
  font-size: 9px;
  transition: transform 0.15s ease;
}

.mgmt-issue[aria-expanded="true"] .mgmt-issue-chevron i {
  transform: rotate(180deg);
}

.mgmt-issue-detail {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--surface-2) 45%, transparent);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.75;
  cursor: auto;
}

/* 경영요약 블록별 승인 정성 해설 — 목업의 .note 대응 */
.mgmt-section-comment {
  margin: -8px 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 6px;
}

.mgmt-section-comment b {
  color: var(--text);
  font-size: 13px;
  letter-spacing: -.02em;
}

.mgmt-section-comment span {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.75;
}

/* 잠정 자동 진단 — 승인 코멘트가 없는 기간 조합의 규칙 기반 표시 */
.mgmt-provisional-note {
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px dashed var(--yellow);
  border-radius: 10px;
  background: var(--yellow-soft);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.mgmt-provisional-note b {
  color: var(--yellow);
}

.mgmt-issue.is-provisional span {
  color: var(--text-faint);
}

.mgmt-issue.is-provisional .mgmt-badge {
  margin-right: 6px;
}

.mgmt-issue-empty {
  padding: 22px 14px;
  border: 1px dashed var(--border-2);
  border-radius: 12px;
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.7;
  text-align: center;
}

.mgmt-chart {
  min-height: 280px;
}

.mgmt-treemap {
  position: relative;
  width: 100%;
  height: clamp(480px, 40vw, 600px);
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 16px;
  background: var(--surface-2);
}

.mgmt-tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border: 2px solid var(--surface);
  border-radius: 5px;
  background: rgba(42, 120, 214, .5);
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: center;
  overflow: hidden;
}

.mgmt-tile:disabled {
  cursor: default;
}

.mgmt-tile:hover {
  outline: 3px solid color-mix(in srgb, var(--action) 62%, #fff);
  outline-offset: -4px;
  z-index: 2;
}

.mgmt-tile.is-active {
  outline: 4px solid #ef4057;
  outline-offset: -5px;
  z-index: 3;
}

.mgmt-tile b,
.mgmt-tile span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(10, 35, 72, .24);
  font-variant-numeric: tabular-nums;
}

.mgmt-tile b {
  font-size: 15px;
  line-height: 1.3;
}

.mgmt-tile span {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.mgmt-tile.is-compact {
  padding: 6px;
}

.mgmt-tile.is-compact span {
  font-size: 11px;
}

.mgmt-tile.is-compact b {
  font-size: 12px;
  line-height: 1.25;
}

.mgmt-tile.is-label-hidden {
  padding: 0;
}

.mgmt-tile.is-label-hidden > b,
.mgmt-tile.is-label-hidden > span {
  visibility: hidden;
}

.mgmt-treemap-tooltip {
  position: absolute;
  z-index: 8;
  display: none;
  min-width: 128px;
  max-width: min(260px, calc(100% - 20px));
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--action) 28%, var(--border-2));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 10px 28px rgba(22, 44, 78, .18);
  color: var(--text);
  pointer-events: none;
  transform: translateX(-50%);
  text-align: left;
}

.mgmt-treemap-tooltip.is-visible {
  display: block;
}

.mgmt-treemap-tooltip b,
.mgmt-treemap-tooltip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mgmt-treemap-tooltip b {
  font-size: 13px;
  line-height: 1.35;
}

.mgmt-treemap-tooltip span {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.mgmt-tree-toggle,
.mgmt-tree-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.mgmt-tree-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mgmt-tree-toggle span {
  display: inline-block;
  width: 14px;
  color: #e82038;
  font-size: 11px;
  text-align: center;
}

.mgmt-tree-label i {
  display: inline-block;
  width: 14px;
}

.mgmt-tree-level-2 td:first-child {
  padding-left: 30px;
}

.mgmt-tree-level-3 td:first-child {
  padding-left: 54px;
}

.mgmt-tree-level-2 td {
  color: var(--text-dim);
}

.mgmt-tree-level-3 td {
  color: var(--text-faint);
  font-size: 12.5px;
}

.mgmt-tile b {
  font-size: 13px;
  font-weight: 800;
}

.mgmt-tile span {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  opacity: .88;
}

.mgmt-unavailable {
  padding: 14px;
  border: 1px dashed var(--border-2);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--text-dim);
  font-size: 13px;
}

.mgmt-unavailable-chart {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
}

.mgmt-watch-state {
  display: inline-flex;
  margin-right: 3px;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
}

.mgmt-watch-state.is-loss {
  background: var(--brand-soft);
  color: var(--brand);
}

.mgmt-watch-state.is-risk {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.mgmt-empty-cell {
  padding: 24px !important;
  color: var(--text-dim);
  text-align: center !important;
}

.mgmt-row-click {
  cursor: pointer;
}

.mgmt-row-click:hover td {
  background: var(--surface-2);
}

@media (max-width: 1120px) {
  .mgmt-two {
    grid-template-columns: 1fr;
  }

  .mgmt-hero {
    display: grid;
  }
}

@media (max-width: 760px) {
  .mgmt-kpis,
  .mgmt-trend-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .mgmt-kpis,
  .mgmt-trend-kpis {
    grid-template-columns: 1fr;
  }
}

/* ── 2026-08 목업 이식: 경고 셀 · 2단 셀 표 · 인라인 셀렉트 ── */

.mgmt-cell-warn {
  background: color-mix(in srgb, #faf0ce 62%, var(--surface));
  color: #8a6a00;
  font-weight: 800;
}

.mgmt-cell-bad {
  background: color-mix(in srgb, #fbe3e1 66%, var(--surface));
  color: #b0271f;
  font-weight: 850;
}

:root[data-theme="dark"] .mgmt-cell-warn {
  background: color-mix(in srgb, #8a6a00 26%, var(--surface));
  color: #e8c96a;
}

:root[data-theme="dark"] .mgmt-cell-bad {
  background: color-mix(in srgb, #b0271f 26%, var(--surface));
  color: #f2a09a;
}

.mgmt-duo-table td b {
  display: block;
  font-weight: 850;
}

.mgmt-duo-table td small {
  display: block;
  margin-top: 1px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
}

.mgmt-duo-table td.mgmt-cell-warn small,
.mgmt-duo-table td.mgmt-cell-bad small {
  color: inherit;
  opacity: .78;
}

.mgmt-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 750;
}

.mgmt-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
}

/* ── 경영요약: 경고 칩 · 신호 카드 · 판정 팝오버 ── */

.mgmt-sev-chip {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 850;
  vertical-align: 1px;
}

.mgmt-sev-chip.bad { background: #b0271f; color: #fff; }
.mgmt-sev-chip.warn { background: #8a6a00; color: #fff; }

.mgmt-card.is-sev-bad { border-color: color-mix(in srgb, #b0271f 45%, var(--border)); }
.mgmt-card.is-sev-warn { border-color: color-mix(in srgb, #c1a05e 55%, var(--border)); }

.mgmt-sev-cell { cursor: pointer; }
.mgmt-sev-cell:hover { outline: 2px solid color-mix(in srgb, var(--text) 30%, transparent); outline-offset: -2px; }

.mgmt-sev-pop {
  position: fixed;
  z-index: 999;
  max-height: 76vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 14px;
  padding: 14px 16px;
  background: #211f1c;
  color: #f4f3ee;
  font-size: 12.5px;
  line-height: 1.66;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
}

.mgmt-sp-head { font-size: 13px; font-weight: 800; color: #fff; }
.mgmt-sp-head b { color: #ffd7d4; }

.mgmt-sp-sec { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 8px; }
.mgmt-sp-title { margin-bottom: 4px; color: #c9c6bd; font-size: 11px; font-weight: 850; letter-spacing: .3px; }

.mgmt-sp-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 1px 0; }
.mgmt-sp-row > span { min-width: 0; }
.mgmt-sp-row > b { flex: 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mgmt-sp-row small { margin-left: 5px; color: #a5a29a; font-size: 11px; }

.mgmt-sp-months { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: #d8d5cc; }
.mgmt-sp-months b { font-variant-numeric: tabular-nums; }

.mgmt-sp-loading { margin-top: 4px; color: #a5a29a; font-size: 11px; }

/* 전표 근거 본문 — 로드 완료 시 행이 채워져도 팝오버 높이가 변하지 않도록
   최종 높이(전표 5행 + 각주)를 미리 확보한다. 로드 순간의 점프/깜빡임 방지. */
[data-mgmt-sp-voucher-body] { min-height: 130px; }

/* 첫 로드(미캐시) 동안 팝오버 전체를 대신하는 로딩 상태 — 완성본은 한 번에 그린다 */
.mgmt-sp-full-loading {
  padding: 22px 8px;
  color: #c9c6bd;
  font-size: 12.5px;
  text-align: center;
}
.mgmt-sp-foot { margin-top: 10px; color: #a5a29a; font-size: 10.5px; }

/* ── 제품 탭 v5: 등급 · 고GP 바 · 비용구성 바 · 조회 ── */

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

@media (max-width: 980px) {
  .mgmt-grid.mgmt-three { grid-template-columns: 1fr; }
}

.mgmt-grade { display: inline-flex; gap: 1px; font-size: 13px; font-weight: 900; letter-spacing: 1.5px; }
.mgmt-grade i { font-style: normal; }
.mgmt-grade-move { display: block; margin-top: 1px; color: var(--text-faint); font-size: 10.5px; font-weight: 800; }

.mgmt-grade-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mgmt-grade-dist { display: flex; flex: 1; height: 18px; overflow: hidden; border-radius: 7px; }
.mgmt-grade-dist span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; color: #fff; font-size: 10px; font-weight: 850; white-space: nowrap; }
.mgmt-select-sm { padding: 3px 7px; font-size: 11.5px; }

.mgmt-grade-table td small,
.mgmt-duo-table td .mgmt-grade-move { display: block; }

.mgmt-gg-bar-cell { min-width: 180px; }
.mgmt-gg-bar { position: relative; height: 14px; border-radius: 5px; background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); overflow: hidden; }
.mgmt-gg-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; }
.mgmt-gg-bar em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #b0271f; }

.mgmt-comp-bar { display: flex; height: 34px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.mgmt-comp-bar > div { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; color: #fff; font-size: 10.5px; font-weight: 800; white-space: nowrap; }

.mgmt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; }
.mgmt-search { width: 220px; }
.mgmt-scroll-table { max-height: 430px; overflow: auto; border-radius: 12px; }
.mgmt-sub-title { margin-bottom: 6px; color: var(--text-dim); font-size: 12.5px; font-weight: 850; }
.mgmt-sub-title small { margin-left: 6px; color: var(--text-faint); font-weight: 700; }

/* ── 경영요약: 신호 3칸 · KPI 6칸 정렬 + Monthly 배너 ── */

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

.mgmt-grid.mgmt-kpis-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .mgmt-grid.mgmt-kpis-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .mgmt-grid.mgmt-signal-grid { grid-template-columns: 1fr; }
  .mgmt-grid.mgmt-kpis-six { grid-template-columns: 1fr; }
}

.mgmt-banner {
  margin: 2px 0 4px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: 14px;
  padding: 12px 15px;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.62;
}

.mgmt-banner b { color: var(--text); }
.mgmt-banner .mgmt-banner-hint { display: block; margin-top: 4px; color: var(--text-faint); font-size: 11.5px; }

/* 카드 간 hover 연동 — 버블↔TOP10 */
.mgmt-table tr.mgmt-row-hot td {
  background: color-mix(in srgb, var(--action) 14%, var(--surface));
}
