/* ──────────────────────────────────────────────────────────────
   V6 Status Bar — Unified financial status strip
   Sits between topbar and main content, collapsed by default.
   ────────────────────────────────────────────────────────────── */

/* ── Container ──────────────────────────────────────────────── */
.v6-status-bar {
  position: relative;
  z-index: 49;
  min-height: 32px;
  margin-left: -32px;
  margin-right: -32px;
  margin-bottom: 16px;
  padding: 0 32px;
  background: var(--v6-elevated);
  border-bottom: 1px solid var(--v6-divider);
  cursor: pointer;
  transition: all var(--effects-transition-base) ease;
  overflow: hidden;
}

.v6-status-bar.expanded {
  cursor: default;
}

/* ── Label ─────────────────────────────────────────────────── */
.v6-status-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--v6-text-secondary, #8b8fa3);
  margin-right: 4px;
  white-space: nowrap;
}

/* ── Collapsed row ──────────────────────────────────────────── */
.v6-status-bar-collapsed {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  font-size: 12px;
  font-weight: 500;
  color: var(--v6-text-secondary);
  user-select: none;
}

/* ── Chips ──────────────────────────────────────────────────── */
.v6-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: var(--shape-border-radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.v6-status-chip--journey {
  background: rgba(58, 122, 140, 0.15);
  color: var(--v6-teal-light);
}

.v6-status-chip--ratio {
  background: rgba(16, 185, 129, 0.15);
  color: var(--v6-positive-light);
}

.v6-status-chip--ratio.grade-a { background: rgba(16, 185, 129, 0.15); color: var(--v6-positive-light); }
.v6-status-chip--ratio.grade-b { background: rgba(16, 185, 129, 0.12); color: var(--v6-positive); }
.v6-status-chip--ratio.grade-c { background: rgba(245, 158, 11, 0.15); color: var(--v6-caution-light); }
.v6-status-chip--ratio.grade-d { background: rgba(239, 68, 68, 0.15); color: var(--v6-negative); }

.v6-status-chip--attention {
  background: rgba(245, 158, 11, 0.15);
  color: var(--v6-caution-light);
}

.v6-status-chip--attention.urgent {
  background: rgba(239, 68, 68, 0.15);
  color: var(--v6-negative);
}

/* Phase dot indicator */
.v6-status-phase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Separator ──────────────────────────────────────────────── */
.v6-status-separator {
  width: 1px;
  height: 14px;
  background: var(--v6-divider);
  flex-shrink: 0;
}

/* ── Expand toggle indicator ────────────────────────────────── */
.v6-status-toggle {
  margin-left: auto;
  font-size: 10px;
  color: var(--v6-text-muted);
  transition: transform var(--effects-transition-fast) ease;
}

.v6-status-bar.expanded .v6-status-toggle {
  transform: rotate(180deg);
}

/* ── Expanded section ───────────────────────────────────────── */
.v6-status-bar-expanded {
  display: none;
  padding: 10px 0 12px;
  border-top: 1px solid var(--v6-divider);
}

.v6-status-bar.expanded .v6-status-bar-expanded {
  display: block;
}

.v6-status-expanded-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  color: var(--v6-text-secondary);
  line-height: 1.5;
}

.v6-status-expanded-row strong {
  color: var(--v6-text-primary);
  font-weight: 600;
  min-width: 60px;
  flex-shrink: 0;
}

.v6-status-expanded-row .v6-attention-icon {
  color: var(--v6-caution);
  flex-shrink: 0;
}

.v6-status-expanded-row .v6-attention-icon.urgent {
  color: var(--v6-negative);
}

/* ── See all link ───────────────────────────────────────────── */
.v6-status-see-all {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.v6-status-see-all a {
  font-size: 11px;
  font-weight: 600;
  color: var(--v6-teal-light);
  text-decoration: none;
  cursor: pointer;
}

.v6-status-see-all a:hover {
  text-decoration: underline;
}

/* ── Light theme overrides ──────────────────────────────────── */
[data-theme="light"] .v6-status-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E8ECF0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .v6-status-chip--journey {
  color: var(--v6-teal);
}

[data-theme="light"] .v6-status-chip--ratio {
  color: var(--v6-positive);
}

[data-theme="light"] .v6-status-chip--ratio.grade-c {
  color: var(--v6-caution);
}

[data-theme="light"] .v6-status-chip--attention {
  color: var(--v6-caution);
}

[data-theme="light"] .v6-status-chip--attention.urgent {
  color: var(--v6-negative);
}

[data-theme="light"] .v6-status-see-all a {
  color: var(--v6-teal);
}
