/* ============================================================
   dashboard.css — Future Start Investment investor area
   Depends on: header.css (loaded before this file)
   Provides:   layout, stat cards, charts, tables, SIP/goal
               components. Uses --sp-* tokens from header.css.
   ============================================================ */

/* Local aliases so existing selectors below keep working */
:root {
  --navy:    var(--sp-navy);
  --blue:    var(--sp-blue);
  --blue-lt: var(--sp-blue-lt);
  --gold:    var(--sp-gold);
  --gold-lt: var(--sp-gold-lt);
  --green:   var(--sp-green);
  --green-lt:var(--sp-green-lt);
  --red:     var(--sp-red);
  --red-lt:  var(--sp-red-lt);
  --bg:      var(--sp-bg);
  --surface: var(--sp-surface);
  --border:  var(--sp-border);
  --text:    var(--sp-text);
  --muted:   var(--sp-muted);
  --radius:  var(--sp-radius);
}

/* ── Reset ──────────────────────────────────────────────── */
.dash-body {
  background: var(--bg);
  min-height: 100vh;
  font-family: var(--sp-font);
}
.dash-body .btn-primary { background: var(--blue); border-color: var(--blue); }

/* ════════════════════════════════════════════════════════
   TOPBAR — dashboard-specific overrides
   (Shell, nav links, avatar, search, icon buttons now live
    in header.css under .sp-topbar / .sp-* classes)
════════════════════════════════════════════════════════ */

/* Fixed topbar height matches layout var */
.sp-topbar--fixed {
  height: var(--topbar-h);
  padding: calc(1.5rem * .5);
}

/* Brand aligns with sidebar width */
.sp-topbar--fixed .sp-brand {
  width: var(--sidebar-w);
  flex-shrink: 0;
}

/* Large avatar (profile page) */
.dash-avatar-lg {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--blue);
  border: 1px solid var(--theme-hero-title-color);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════ */
.dash-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1039;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
  padding: 1.5rem 0 0 1.75rem;
  padding-top: var(--topbar-h);
}
.dash-sidebar::-webkit-scrollbar { width: 3px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

/* Nav list */
.dash-nav {
  list-style: none;
  margin: 1rem 0;
  flex: 1;
  background-color: white;
  border-radius: 10px;
}

.dash-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 10px;
  /* color: rgba(255,255,255,.6); */
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.dash-nav__link i {
  font-size: 1.6rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.dash-nav__link:hover {
  background: rgba(255,255,255,.08);
  color: #FCB650;
}

/* ★ Key change: active = white pill on dark sidebar ★ */
.dash-nav__link.active {
  background: #ffffff;
  color: #FCB650;
  /* font-weight: 700; */
}
.dash-nav__link.active i { color: var(--navy); }

/* Badge (e.g. SIP count) */
.dash-nav__badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  padding: .1rem .42rem;
  border-radius: 50px;
  flex-shrink: 0;
}

/* Divider */
.dash-nav__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: .5rem .5rem;
}

/* Sidebar bottom profile pill */
.dash-sidebar__footer {
  padding: .875rem .75rem 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.dash-sidebar__profile {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: .65rem .875rem;
}

.dash-sidebar__profile-name {
  /* font-size: .8rem; */
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.dash-sidebar__profile-role {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
}

/* Mobile overlay */
.dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1038;
}
.dash-overlay.open { display: block; }

/* ════════════════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  /* margin-top: var(--topbar-total-h); */
  padding: 2rem;
  min-height: calc(100vh - var(--topbar-h));
  position: relative;
}
/* Footer — only offset when the sidebar is present (class set by dashboard-sidebar.php) */
.has-sidebar .footer {
  margin-left: var(--sidebar-w);
  transition: margin-left .25s ease;
}

/* No sidebar variant */
.no-sidebar .main-content     { margin-left: 0; }
.no-sidebar .dash-sidebar     { display: none !important; }
.no-sidebar .dash-overlay     { display: none !important; }

.main-content-inner {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  margin-top: var(--topbar-h);
  font-size: 1.4rem;
}
/* Page welcome */
.dash-welcome h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .2rem;
}
.dash-welcome p {
  color: var(--muted);
  margin: 0;
}

/* Section title */
.dash-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}
.dash-section-title small {
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: .4rem;
}

/* ── Stat cards — styles live in common/stat_card.php partial ── */

/* ── White cards ─────────────────────────────────────── */
.dash-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

/* Full-height within a row column */
.row > [class*="col"] > .dash-card { height: 100%; }

/* ── Transaction list (icon style, not table) ────────── */
.tx-list { display: flex; flex-direction: column; }

.tx-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.tx-item:last-child { border-bottom: none; }

.tx-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tx-body { flex: 1; min-width: 0; }

.tx-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-meta {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 1px;
}

.tx-right { text-align: right; flex-shrink: 0; }
.tx-amount { font-size: .9rem; font-weight: 700; color: var(--text); }
.tx-date   { font-size: 1rem; color: var(--muted); margin-top: 1px; }

/* ── Quick action icons ──────────────────────────────── */
.dash-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .875rem .5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  text-align: center;
}

.dash-quick-btn i {
  font-size: 1.3rem;
  color: var(--blue);
}

.dash-quick-btn:hover {
  border-color: var(--blue);
  background: var(--blue-lt);
  color: var(--blue);
  transform: translateY(-2px);
}
.dash-quick-btn:hover i { color: var(--blue); }

/* ═══════════════════════════════════════════════════════════════
   SCHEME CARD — unified component (.sc-*)
   All variants share the same element classes; only the modifier
   on the container (.sc-card--[variant]) changes.
   Rendered exclusively via scheme_card.php partial.
   ═══════════════════════════════════════════════════════════════ */

/* ── Base skeleton ───────────────────────────────────────────── */
.sc-card  { display: flex; align-items: initial; gap: 1rem; }
.sc-icon  { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sc-body  { flex: 1; min-width: 0; }
.sc-aside { text-align: right; flex-shrink: 0; }

/* Name — single class used by all variants */
.sc-name {
  font-size: 1.4rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}

/* Meta lines — same class used by all variants */
.sc-meta   { font-size: 1.2rem; color: var(--muted); margin-top: 2px; }
.sc-meta-2 { font-size: 1.2rem; color: var(--muted); margin-top: .25rem; }

/* Aside slots */
.sc-aside-primary { font-size: 1.4rem; font-weight: 500; color: var(--text); }
.sc-aside-label   { font-size: 1rem; margin-top: 2px; }

/* ── Variant: sip ────────────────────────────────────────────── */
.sc-card {
  padding: .875rem 1rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s;
}
.sc-card:hover { box-shadow: 0 4px 16px rgba(23,112,200,.08); }
.sc-card .sc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-lt);
  color: var(--blue);
  font-size: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-card .sc-aside-primary { text-align: right; }
.sc-card .sc-aside-label   { text-align: right; }

/* ── Variant: cell (portfolio / order td cells) ── */
.sc-card--cell { display: contents; }

/* ── Scheme type pill colors (invest search) */
.pill-type-equity   { background: #EEF2FF; color: #3730a3; }
.pill-type-debt     { background: #F3F4F6; color: #374151; }
.pill-type-hybrid   { background: #DBEAFE; color: #1e40af; }
.pill-type-elss     { background: var(--green-lt); color: #065f46; }
.pill-type-solution { background: #FEF3C7; color: #92400e; }
.pill-type-other    { background: var(--blue-lt); color: var(--blue); }

/* BSE code label in search result card */
.sc-bse-code { font-weight: 600; color: #e53935; margin-top: .2rem; }

/* Selected search card state */
.sc-card--search { cursor: pointer; }
.sc-card--search:hover { border-color: rgba(23,112,200,.4); }
.sc-card--selected { border-color: var(--blue) !important; background: #f8fbff; border-left: 3px solid var(--blue) !important; }

/* ════════════════════════════════════════════════════════
   INVEST PAGE — trust strip, category chips, info panel
════════════════════════════════════════════════════════ */

/* Trust strip */
.invest-trust-strip { display: flex; gap: 3rem; flex-wrap: wrap; align-items: center; }
.invest-trust-item { display: flex; align-items: center; gap: .6rem; }
.invest-trust-item i { font-size: 2.6rem; color: var(--blue); }
.invest-trust-item__label { font-weight: 600; color: var(--navy); line-height: 1.3; }
.invest-trust-item__sub   { color: var(--muted); }
@media (max-width: 991.98px) { .invest-trust-strip { display: none; } }

/* Category filter chips */
.sf-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin: 2rem 0; }
.sf-chip {
  padding: .3rem .85rem; border-radius: 50px; border: 1px solid var(--border);
  background: #fff; font-weight: 500; color: var(--text);
  cursor: pointer; transition: border-color .15s, color .15s, background .15s; white-space: nowrap;
}
.sf-chip:hover { border-color: var(--blue); color: var(--blue); }
.sf-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.sf-result-count { font-weight: 600; color: var(--navy); margin: .5rem 0; }
.sf-view-more { text-align: center; padding: .75rem 0 0; font-weight: 600; color: var(--blue); cursor: pointer; }

/* Scheme info panel — new sections */
.sip-fund-name { font-weight: 600; color: var(--navy); line-height: 1.35; }
.sip-fund-sub  { font-size: 1.2rem; color: var(--muted); margin-top: .15rem; }
.sip-nav-value { font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.sip-nav-change { font-weight: 600; }
.sip-nav-change--up   { color: var(--green); }
.sip-nav-change--down { color: var(--red); }

.sip-metrics-strip {
  display: grid; grid-template-columns: repeat(6,1fr); gap: .25rem;
  padding: .875rem 1rem; background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border);
}
@media (max-width: 767px) { .sip-metrics-strip { grid-template-columns: repeat(3,1fr); } }
.sip-metric { text-align: center; padding: .25rem 0; }
.sip-metric + .sip-metric { border-left: 1px solid var(--border); }
.sip-metric__icon  { font-size: 2rem; color: var(--blue); margin-bottom: .2rem; }
.sip-metric__label { color: var(--muted); line-height: 1.2; }
.sip-metric__value { font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-top: .15rem; } 

.sip-info-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.4rem;
  background: var(--blue-lt); border-radius: var(--radius);
  color: var(--navy);
}
.sip-info-banner i { color: var(--blue); flex-shrink: 0; }
.sip-info-banner span { flex: 1; }
.sip-info-banner a { white-space: nowrap; font-weight: 600; color: var(--blue); text-decoration: none; }
.sip-info-banner a:hover { text-decoration: underline; }

.sip-invest-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 575px) { .sip-invest-cards { grid-template-columns: 1fr; } }
.sip-invest-card {
  padding: 1rem 1.125rem; border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: .625rem;
}
.sip-invest-card__header { display: flex; align-items: center; gap: .625rem; }
.sip-invest-card__icon {
  width: 54px; height: 54px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sip-invest-card__icon--sip     { background: var(--blue-lt);  color: var(--blue);  }
.sip-invest-card__icon--lumpsum { background: var(--green-lt); color: var(--green); }
.sip-invest-card__title { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.sip-invest-card__desc  { color: var(--muted); line-height: 1.45; }
.sip-invest-card__amount-label { text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sip-invest-card__amount { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: .15rem 0 .5rem; }

.sip-analytics-banner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); gap: .35rem;
}
.sip-analytics-banner i { font-size: 1.75rem; color: var(--muted); margin-bottom: .25rem; }
.sip-analytics-banner__title { font-weight: 700; color: var(--navy); }
.sip-analytics-banner__sub   { color: var(--muted); margin-bottom: .5rem; }

/* ── Goal cards ──────────────────────────────────────── */
.goal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.goal-progress-bar {
  background: var(--border);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin: .6rem 0 .3rem;
}
.goal-progress-bar__fill {
  height: 100%;
  border-radius: 50px;
  background: var(--blue);
  transition: width .6s ease;
}
.goal-progress-bar__fill--warning { background: var(--gold); }
.goal-progress-bar__fill--success { background: var(--green); }
.goal-progress-bar__fill--danger  { background: var(--red); }

.goal-card__stats {
  display: flex;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
  gap: 0;
}
.goal-card__stats-col {
  flex: 1;
  text-align: center;
}
.goal-card__stats-col + .goal-card__stats-col {
  border-left: 1px solid var(--border);
}

/* ── Table (portfolio, transactions) ─────────────────── */
.dash-table { width: 100%; border-collapse: collapse; font-size: .875rem; }

.dash-table thead th {
  letter-spacing: .05em;
  /* color: var(--muted); */
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding: .55rem .75rem;
  background: var(--bg);
  white-space: nowrap;
}

.dash-table tbody td {
  padding: .8rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover td { background: var(--bg); }

.fund-name { font-weight: 500; color: var(--navy); display: block;}
.fund-meta { font-size: 1.4rem; color: var(--muted); margin: 1rem 0; }
.fund-dot  { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

/* ── Status pills ────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
}
.pill-active  { background: #ECFDF5; color: #059669; }
.pill-paused  { background: #FFFBEB; color: #D97706; }
.pill-stopped { background: #FFF1F2; color: var(--red); }

/* ── Form controls ───────────────────────────────────── */
.dash-body .form-control,
.dash-body .form-select {
  border-color: var(--border);
  border-radius: 8px;
  font-size: .875rem;
  color: var(--text);
}
.dash-body .form-control:focus,
.dash-body .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23,112,200,.12);
}
.dash-body .form-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Tab pills ───────────────────────────────────────── */
.dash-tabs {
  display: flex;
  gap: .3rem;
  background: var(--bg);
  border-radius: 10px;
  padding: .3rem;
  width: fit-content;
  flex-wrap: wrap;
}
.dash-tab {
  padding: .38rem .9rem;
  border-radius: 7px;
  /* font-size: .8rem; */
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: all .15s;
  text-decoration: none;
}
.dash-tab:hover { color: var(--navy); background: rgba(0,0,0,.04); }
.dash-tab.active { 
  background: var(--theme-hero-title-color);
  color: var(--theme-header-active-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* ── Alert banners ───────────────────────────────────── */
.dash-alert {
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .84rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1rem;
}
.dash-alert i { font-size: .95rem; margin-top: 1px; flex-shrink: 0; }
.dash-alert-info    { background: var(--blue-lt);  color: #1e40af; }
.dash-alert-warning { background: #FFFBEB;          color: #92400e; }
.dash-alert-success { background: var(--green-lt);  color: #065f46; }
.dash-alert-danger  { background: var(--red-lt);    color: #9f1239; }

/* ── KYC badges ──────────────────────────────────────── */
.kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 50px;
}
.kyc-verified { background: var(--green-lt); color: #059669; }
.kyc-pending  { background: #FFFBEB;         color: #D97706; }
.kyc-rejected { background: var(--red-lt);   color: var(--red); }
.kyc-linked   { background: var(--blue-lt);  color: var(--blue); }

/* ── Profile hero card ───────────────────────────────── */
.profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  flex-wrap: wrap;
}

.profile-hero__left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.profile-hero__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

.profile-hero__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: .2rem;
}

.profile-hero__meta {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .5rem;
}

.profile-hero__sep {
  margin: 0 .4rem;
  opacity: .4;
}

.profile-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.profile-hero__right {
  text-align: right;
  flex-shrink: 0;
}

.profile-hero__pan-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .15rem;
}

.profile-hero__pan {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .1em;
  font-family: monospace;
}

.profile-hero__since {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .3rem;
}

@media (max-width: 575.98px) {
  .profile-hero         { flex-direction: column; }
  .profile-hero__right  { text-align: left; }
}

/* ── Page header (inner pages) ───────────────────────── */
.dash-page-header { margin-bottom: 1.5rem; }
.dash-page-header h1 { font-size: 3rem; font-weight: 700; color: var(--text); margin: 0 0 .2rem; }
.dash-page-header p  { color: var(--muted); margin: 0; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 991.98px) {
  /* topbar: header.css hides .sp-topnav and shows .sp-topbar__toggle */
  .sp-topbar--fixed .sp-brand { width: auto; padding: 0 1rem; }

  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.open { transform: translateX(0); }

  .main-content             { margin-left: 0; }
  .has-sidebar .footer      { margin-left: 0; }
}

@media (max-width: 575.98px) {
  .main-content { padding: 1rem; }
  .stat-card__value { font-size: 1.3rem; }
}

/* ════════════════════════════════════════════════════════
   SUBMITTED ORDER CARDS  (transactions page)
════════════════════════════════════════════════════════ */
.order-list {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 2px;
}
.order-list::-webkit-scrollbar       { width: 3px; }
.order-list::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
.order-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.order-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .875rem 1rem;
  background: var(--bg);
  transition: box-shadow .15s;
  margin-bottom: .625rem;
}
.order-card:last-child { margin-bottom: 0; }
.order-card:hover      { box-shadow: 0 2px 10px rgba(23,112,200,.08); }

.order-card__header {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.order-card__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.order-card__icon--sip     { background: var(--blue-lt); color: var(--blue); }
.order-card__icon--lumpsum { background: #FFFBEB;         color: #D97706; }

.order-card__body  { flex: 1; min-width: 0; }
.order-card__badges {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}

.order-card__name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card__right {
  text-align: right;
  flex-shrink: 0;
}
.order-card__amount {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.order-card__bse {
  font-size: .78rem;
  color: var(--muted);
}
.order-card__bse code { font-size: .78rem; color: var(--text); }

.order-card__msg {
  padding: .3rem .65rem;
  border-radius: 6px;
  /* font-size: .8rem; */
  line-height: 1.45;
}
.order-card__msg--warn { background: #FFFBEB;        color: #92400e; }
.order-card__msg--fail { background: var(--red-lt);  color: #9f1239; }

.order-card__actions { display: flex; gap: .5rem; }

/* ── Extra status pill (PENDING — reuses kyc-badge base) ── */
.kyc-submitted { background: #FFFBEB; color: #b45309; }

/* ── Date preset buttons ─────────────────────────────────── */
.date-preset {
  border-radius: 50px;
  /* font-size: .8rem; */
  padding: .28rem .78rem;
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════
   FUND SEARCH  (invest page)
════════════════════════════════════════════════════════ */
.search-wrap { position: relative; }

.scheme-results {
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid var(--border);
}

.scheme-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.scheme-result-item:last-child  { border-bottom: none; }
.scheme-result-item:hover       { background: var(--bg); }
.scheme-result-item.active      { background: var(--blue-lt); }

.scheme-result-item__name { font-size: .875rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.scheme-result-item__meta { font-size: 1rem;  color: var(--muted); margin-top: 2px; }
.scheme-result-item__nav  { font-size: .9rem;   font-weight: 700; color: var(--green); white-space: nowrap; flex-shrink: 0; }

/* ── Scheme info panel ───────────────────────────────────── */
.scheme-info-panel { min-height: 420px; display: flex; flex-direction: column; }

.scheme-info-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.scheme-info-empty p { color: var(--muted); margin: 0; }

/* Empty-state icon badge */
.scheme-info__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--blue);
  margin: 0 auto 1.25rem;
}
.scheme-info__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.scheme-info__features {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  max-width: 230px;
  margin: .75rem auto 0;
  text-align: left;
}

/* Filled-state: SIP / Lumpsum option row */
.scheme-invest-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.scheme-invest-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}
.scheme-invest-option__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.scheme-invest-option__icon--sip     { background: var(--blue-lt);  color: var(--blue);  }
.scheme-invest-option__icon--lumpsum { background: var(--green-lt); color: var(--green); }
.scheme-invest-option__label  { font-size: 1.4rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.scheme-invest-option__amount { font-size: 1.4rem; color: var(--muted); }

.selected-scheme__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}

/* ════════════════════════════════════════════════════════
   UTILITY CLASSES — shared across all investor pages
   (Eliminates repeated inline font-size overrides)
════════════════════════════════════════════════════════ */

/* Secondary action link ("View →", "Manage →") */
.dash-link-sm {
  /* font-size: .8rem; */
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.dash-link-sm:hover { color: var(--navy); }

/* Portfolio summary strip mini-card value */
.dash-strip-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: .25rem;
  line-height: 1.2;
}

/* Goal card components */
.goal-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.goal-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.goal-card__icon.icon-blue  { background: var(--blue-lt);  color: var(--blue);  }
.goal-card__icon.icon-gold  { background: var(--gold-lt);  color: var(--gold);  }
.goal-card__icon.icon-green { background: var(--green-lt); color: var(--green); }

/* Compact action button (tables, card footers) */
.btn-dash {
  border-radius: 7px !important;
  font-size: 1rem;
  padding: .25rem .6rem;
}

/* Decorative icon size helpers */
.icon-md  { font-size: 1.2rem; }
.icon-lg  { font-size: 1.6rem; }
.icon-xl  { font-size: 2rem;   }
.icon-2xl { font-size: 2.5rem; }

/* Profile page name heading */
.profile-name { font-size: 1.15rem; font-weight: 700; color: var(--navy); }

/* Compact stat card — smaller value text in panels/sidebars */
.stat-card--sm .stat-card__value { font-size: 1.35rem; }

/* Sub-label inside dash-quick-btn */
.dash-quick-btn small { color: var(--muted); font-weight: 400; }









