/* ================================================================
   Fund Data Module — fund-data.css
   Append to app.css or import as a separate sheet.
   All classes prefixed fd- to avoid collisions.
   ================================================================ */

/* ── KPI strip ──────────────────────────────────────────────── */
.fd-kpi-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-5);
  overflow: hidden;
}

.fd-kpi {
  flex: 1;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.fd-kpi-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Filter bar ──────────────────────────────────────────────── */
.fd-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
}

.fd-filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.fd-select,
.fd-date-input {
  height: 32px;
  font-size: var(--text-sm);
  padding: 0 var(--sp-3);
  min-width: 160px;
}

.fd-filter-types {
  flex: 1;
  min-width: 280px;
}

.fd-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fd-type-pill {
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  color: var(--stone-light);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}

.fd-type-pill.selected {
  border-color: var(--gold-muted);
  color: var(--gold);
  background: var(--gold-faint);
}

.fd-type-pill:hover:not(.selected) {
  border-color: var(--stone-mid);
  color: var(--cream-muted);
}

/* ── Results bar ─────────────────────────────────────────────── */
.fd-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
  padding: 0 var(--sp-1);
}

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

/* ── Bulk selection ──────────────────────────────────────────── */
tr.fd-row-selected td {
  background: rgba(200, 60, 60, 0.06);
}

/* ── Loading row ─────────────────────────────────────────────── */
.fd-loading-row {
  text-align: center;
  color: var(--stone-light);
  font-size: var(--text-sm);
  padding: var(--sp-8) 0;
  letter-spacing: 0.04em;
}

/* ── Badge colors not already in app.css ─────────────────────── */
.badge-info-blue {
  color: var(--info-text);
  border-color: var(--info);
  background: var(--info-dim);
}

/* ── Import dropdown ─────────────────────────────────────────── */
.fd-import-wrap {
  position: relative;
}

.fd-import-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 240px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  overflow: hidden;
}

.fd-import-item {
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-fast);
}

.fd-import-item:hover {
  background: var(--surface-hover);
}

.fd-import-item:last-child {
  border-bottom: none;
}

.fd-import-item-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 2px;
}

.fd-import-item-desc {
  font-size: var(--text-xs);
  color: var(--stone-light);
}
