/* ================================================================
   Unfunded Module — unfunded.css
   Append to app.css or link separately.
   All module-specific classes prefixed unf-
   ================================================================ */

/* ── Upcoming capital calls strip ───────────────────────────── */
.unf-upcoming {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold-muted);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-5);
  overflow: hidden;
}

.unf-up-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.unf-up-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}

.unf-up-list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1px;
}

.unf-up-list::-webkit-scrollbar {
  display: none;
}

.unf-up-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  white-space: nowrap;
  flex-shrink: 0;
}

.unf-up-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--cream-muted);
}

.unf-up-dot {
  font-size: 9px;
  color: var(--stone-mid);
  opacity: 0.5;
}

.unf-up-amt {
  font-size: 11px;
  color: var(--stone-light);
  font-variant-numeric: tabular-nums;
}

.unf-up-date {
  font-size: 11px;
  color: var(--stone-light);
}

.unf-up-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--surface-hover);
  color: var(--stone-light);
  margin-left: 1px;
}

.unf-up-link-icon {
  font-size: 9px;
  color: var(--stone-mid);
  opacity: 0.6;
  margin-left: 2px;
}

.unf-up-item:hover .unf-up-link-icon {
  opacity: 1;
  color: var(--gold);
}

.unf-up-item:hover {
  filter: brightness(1.08);
}

/* ≤ 30 days — gold/amber */
.unf-up-soon {
  border-color: color-mix(in srgb, var(--gold-muted) 60%, transparent);
  background: var(--gold-faint);
}

.unf-up-soon .unf-up-name { color: var(--cream); }

.unf-up-soon .unf-up-badge {
  background: var(--gold-dim);
  color: var(--gold);
}

/* ≤ 7 days — danger */
.unf-up-urgent {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  background: var(--danger-dim);
}

.unf-up-urgent .unf-up-name { color: var(--cream); }
.unf-up-urgent .unf-up-amt  { color: var(--cream-muted); }
.unf-up-urgent .unf-up-date { color: var(--cream-muted); }

.unf-up-urgent .unf-up-badge {
  background: var(--danger);
  color: #fff;
}

/* ── Summary cards ───────────────────────────────────────────── */
.unf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.unf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.unf-card-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--cream);
}

.unf-card-sub {
  font-size: var(--text-xs);
  color: var(--stone-light);
  letter-spacing: 0.03em;
  margin-top: var(--sp-1);
}

/* ── Side-by-side table grid ─────────────────────────────────── */
.unf-tables-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}

/* ── Section blocks ──────────────────────────────────────────── */
.unf-section {
  margin-bottom: 0;
}

.unf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.unf-section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.unf-section-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--cream-muted);
}

.unf-section-count {
  font-size: var(--text-xs);
  color: var(--stone-light);
  letter-spacing: 0.04em;
}

/* ── Table wrap: always-visible scrollbars + sticky header ───── */
.unf-table-wrap {
  overflow: scroll;
  max-height: 55vh;
  min-height: 100px;
}

.unf-table-wrap table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-raised);
}
