/* Overview page */
.view-overview {
  padding: 0 var(--page-gutter, 16px) 0;
}

.ov-page-header {
  margin-bottom: 14px;
}

.ov-page-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.ov-period-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.ov-period-card {
  background: linear-gradient(145deg, var(--surface-l1) 0%, var(--surface-l2) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  border: 1px solid var(--border-subtle);
}

.ov-period-card--empty {
  text-align: center;
  padding: 28px 18px;
}

.ov-period-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ov-period-card-bank {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ov-period-card-range {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ov-period-card-amount {
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.ov-period-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ov-period-sum {
  margin: -4px 0 14px 4px;
}

.ov-hero {
  background: linear-gradient(145deg, var(--surface-l1) 0%, var(--surface-l2) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
}

.ov-hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ov-hero-amount {
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.ov-hero-delta {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ov-hero-delta.up {
  color: var(--amount-negative);
}

.ov-hero-delta.down {
  color: var(--amount-positive);
}

.ov-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.ov-kpi-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
}

.ov-kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ov-kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.ov-quick-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ov-quick-btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  border: 0;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s;
}

.ov-quick-btn--primary {
  background: #0a0a0c;
  color: #fff;
}

.ov-quick-btn--primary i {
  color: var(--accent-color);
}

.ov-quick-btn--secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.ov-quick-btn:active {
  transform: scale(0.98);
}

.ov-report-host {
  margin-top: 4px;
}

.ov-report-host .cb-report-embedded {
  padding: 0;
  overflow: visible;
  min-height: 0;
}

.cb-filter-bar.is-collapsed .cb-filter-advanced .cb-frow {
  display: none;
}

.cb-filter-toprow .cb-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cb-filter-expand-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle, var(--border));
  border-radius: var(--radius-pill, 999px);
  background: var(--surface-l2, var(--surface-2));
  color: var(--text-primary, var(--text));
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cb-filter-expand-btn i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.cb-filter-expand-btn.is-expanded i {
  transform: rotate(180deg);
}

.cb-filter-expand-btn:hover {
  background: var(--accent-color-soft);
}

.cb-filter-expand-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 4px rgba(207, 179, 120, 0.15));
}
