/* Portfolio overview legacy layer; loaded in the original cascade position. */
/* ╔══════════════════════════════════════════════════╗ */
/* ║  Overview — Clarity theme                         ║ */
/* ╚══════════════════════════════════════════════════╝ */

.ov-clarity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ov-clarity-grid .ov-full { grid-column: 1 / -1; }

/* Hero card — indigo gradient */
.ov-hero {
  background: var(--hero-grad);
  border: none;
  border-radius: 18px;
  padding: 28px 24px 22px;
  color: #fff;
}
.ov-hero .ov-hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.75;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ov-hero .ov-hero-value {
  font-size: 44px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.ov-hero .ov-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
  margin-top: 8px;
}
.ov-hero .ov-hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
  flex-wrap: wrap;
}
.ov-hero .ov-hero-stat {
  flex: 1;
  min-width: 100px;
}
.ov-hero .ov-hero-stat-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 2px;
}
.ov-hero .ov-hero-stat-val {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Trend chart card */
.ov-trend-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.ov-trend-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.ov-trend-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.ov-trend-pct {
  font-size: 13px;
  font-weight: 700;
}
.ov-trend-caption {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Donut allocation card */
.ov-donut-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.ov-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ov-donut-legend {
  flex: 1;
  min-width: 120px;
}
.ov-donut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-top: 1px solid var(--border);
}
.ov-donut-row:first-child { border-top: none; }

/* Alerts card */
.ov-alerts-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.ov-alert-row {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.ov-alert-row:last-child { margin-bottom: 0; }
.ov-alert-row.warn {
  background: #fef2f4;
  border-left: 4px solid var(--accent-red);
}
.ov-alert-row.info {
  background: #fef7ed;
  border-left: 4px solid var(--warn);
}
.ov-alert-row.tip {
  background: rgba(79,70,229,0.05);
  border-left: 4px solid var(--accent-blue);
}

/* Skeleton loading animation */
.ov-skel {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  animation: ov-pulse 1.2s ease-in-out infinite;
}
@keyframes ov-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Section eyebrow */
.ov-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Header row */
.ov-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.ov-greeting {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}
.ov-header-btns {
  display: flex;
  gap: 8px;
}
.ov-header-btns button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.ov-header-btns button:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Monetary numbers always tabular */
.tnum, [data-money] {
  font-variant-numeric: tabular-nums;
}

/* ── Responsive: ≤860px → 1 column ── */
@media (max-width: 860px) {
  .ov-clarity-grid {
    grid-template-columns: 1fr;
  }
  .ov-hero .ov-hero-value {
    font-size: 32px;
  }
  .ov-hero .ov-hero-stats {
    gap: 10px;
  }
  .ov-hero .ov-hero-stat {
    min-width: 80px;
  }
  .ov-hero .ov-hero-stat-val {
    font-size: 15px;
  }
  .ov-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.loan-item-card {
  transition: all 0.2s ease-in-out;
}
.loan-item-card:hover {
  border-color: var(--accent-gold) !important;
  background: var(--bg-card) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

