/* ---- views/Dashboard.vue ---- */
.dashboard-container {
  font-family: 'Inter', sans-serif;
  color: #1A1A1A;
  min-height: 100vh;
}
.dashboard-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.page-header-left h1 { font-size: 24px; font-weight: 700; color: #1A1A1A; }
.page-header-left p  { font-size: 14px; color: #6c757d; margin-top: 4px; }
.cash-pill {
  background: #FFF1EA;
  border: 1px solid #FAD5BF;
  border-radius: 12px;
  padding: 12px 20px;
  text-align: right;
  flex-shrink: 0;
}
.cash-pill .label  { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #C34A11; margin-bottom: 4px; }
.cash-pill .amount { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; color: #1A1A1A; }

/* ── SUMMARY STRIP ── */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: #EBEBEB;
  margin: 0;
}
.stat-card        { background: #FFFFFF; padding: 24px 26px; }
.stat-card dt, .stat-card dd { margin: 0; }
.stat-card .s-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #6c757d; margin-bottom: 10px; }
.stat-card .s-value { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; color: #1A1A1A; }
.stat-card .s-sub   { font-size: 11.5px; color: #6c757d; margin-top: 6px; }
.stat-card .s-sub-small   { font-size: 12px }
.stat-card .s-sub-badge { margin-top: 0; }
.stat-card.highlight .s-value { color: #C34A11; }
.badge       { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-top: 8px; }
.badge.green { background: #E6F7F0; color: #147747; }
.badge.red   { background: #FDEAEA; color: #B82626; }

/* ── TABLE CARDS ── */
.table-wrap {
  background: #FFFFFF;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.card-header {
  display: flex; align-items: center; gap: 9px;
  padding: 16px 20px;
  border-bottom: 1px solid #EBEBEB;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #565e64;
  background: #FAFAFA;
}
.header-with-action { justify-content: space-between; }
.header-left { display: flex; align-items: center; gap: 9px; }
.btn-export {
  background: transparent; color: #C34A11;
  font-size: 10px; font-weight: 700;
  padding: 5px 10px; border-radius: 5px;
  border: 1.5px solid #FAD5BF; cursor: pointer; transition: all 0.15s;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.btn-export:hover { background: #FFF1EA; border-color: #C34A11; }

.mono     { font-family: 'Inter', sans-serif; }
.footnote { font-size: 11.5px; color: #767676; margin: 32px 0; font-style: italic; }


/* ── RESPONSIVE: Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-header-left h1 { font-size: 20px; }
}

/* ── RESPONSIVE: Mobile (≤ 600px) ── */
@media (max-width: 600px) {
  .dashboard-content {
    padding: 0 14px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .page-header-left h1 { font-size: 18px; }
  .page-header-left p  { font-size: 13px; }

  .cash-pill {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
  }
  .cash-pill .amount { font-size: 16px; }

  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    padding: 16px 14px;
  }
  .stat-card .s-value { font-size: 17px; }
  .stat-card .s-label { font-size: 9.5px; }
  .stat-card .s-sub   { font-size: 10.5px; }

  .table-wrap {
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .card-header {
    padding: 12px 14px;
    font-size: 10.5px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .footnote { font-size: 10.5px; margin: 20px 0; }
}

/* ── RESPONSIVE: Very small (≤ 380px) ── */
@media (max-width: 380px) {
  .summary-strip {
    grid-template-columns: 1fr;
  }
}
/* ---- components/NetLongPositions.vue ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 620px; border-collapse: collapse; }
thead th {
  background: #FAFAFA; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #565e64; padding: 11px 18px;
  text-align: left; border-bottom: 1px solid #EBEBEB;
}
th.right, td.right { text-align: right; }
tbody tr { border-bottom: 1px solid #EBEBEB; transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #F7F7F5; }
td { padding: 13px 18px; font-size: 13.5px; vertical-align: middle; }

.asset-name { font-weight: 600; color: #1A1A1A; }
.asset-ticker { font-size: 11px; color: #6c757d; margin-top: 2px; font-family: 'Inter', sans-serif; letter-spacing: 0.03em; }
.mono { font-family: 'Inter', sans-serif; }

.pnl-pos { color: #147747; font-weight: 500; }
.pnl-neg { color: #D63B3B; font-weight: 500; }

.pct-badge {
  display: inline-flex; align-items: center; padding: 3px 9px;
  border-radius: 20px; font-size: 11.5px; font-weight: 700;
}
.pct-badge.pos { background: #E6F7F0; color: #147747; }
.pct-badge.neg { background: #FDEAEA; color: #B82626; }

.btn-view {
  background: transparent; color: #C34A11;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 6px;
  border: 1.5px solid #FAD5BF; cursor: pointer; transition: all 0.15s;
}
.btn-view:hover { background: #FFF1EA; border-color: #C34A11; }
/* ---- components/InvestmentSummaryTable.vue ---- */
/* The Investment Summary card is the containment context, so the grid below
   responds to the card's own width rather than the viewport width. */
.table-wrap:has(.inv-grid) {
  container-type: inline-size;
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 24px 28px;
}
.inv-section {
  position: relative;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.inv-section:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: -20px;
  width: 1px;
  background: #EBEBEB;
}
.inv-section-title {
  caption-side: top;
  text-align: left;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #6c757d;
  padding-bottom: 14px;
}
.inv-row {
  border-bottom: 1px solid #F5F5F5;
}
.inv-row:last-child { border-bottom: none; }
.inv-row.bold {
  border-top: 1px solid #EBEBEB;
}
.inv-row.bold .inv-key { font-weight: 700; color: #1A1A1A; }
.inv-row.bold .inv-val { font-weight: 700; }
.inv-key {
  color: #6c757d; font-weight: 400; text-align: left; vertical-align: middle;
  padding: 10px 12px 10px 0; font-size: 13px; white-space: nowrap;
}
.inv-val {
  font-family: 'Inter', sans-serif; font-size: 13px; text-align: right; vertical-align: middle;
  padding: 10px 0; white-space: nowrap;
}
.mono { font-family: 'Inter', sans-serif; }
.pnl-pos { color: #147747; font-family: 'Inter', sans-serif; font-weight: 500; }
.pnl-neg { color: #D63B3B; font-family: 'Inter', sans-serif; font-weight: 500; }
.empty { color: #6c757d; }

@container (max-width: 760px) {
  .inv-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 20px;
  }
  .inv-section {
    padding: 16px 0;
    border-bottom: 1px solid #EBEBEB;
  }
  .inv-section::after { display: none; }
  .inv-section:first-child { padding-top: 0; }
  .inv-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
/* ---- components/StrategyList.vue ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 500px; border-collapse: collapse; }
thead th {
  background: #FAFAFA; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #565e64; padding: 11px 18px;
  text-align: left; border-bottom: 1px solid #EBEBEB;
}
th.right, td.right { text-align: right; }
tbody tr { border-bottom: 1px solid #EBEBEB; transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #F7F7F5; }
td { padding: 13px 18px; font-size: 13.5px; vertical-align: middle; }

.mono { font-family: 'Inter', sans-serif; }
.date-cell { color: #6c757d; font-size: 13px; }
.strat-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.strat-name { color: #C34A11; font-weight: 600; text-decoration: none; }
.strat-name:hover { text-decoration: underline; }

.pnl-pos { color: #147747; font-weight: 500; }
.pnl-neg { color: #D63B3B; font-weight: 500; }

.pct-badge {
  display: inline-flex; align-items: center; padding: 3px 9px;
  border-radius: 20px; font-size: 11.5px; font-weight: 700;
}
.pct-badge.pos { background: #E6F7F0; color: #147747; }
.pct-badge.neg { background: #FDEAEA; color: #B82626; }

.table-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #EBEBEB;
  background: #FAFAFA;
}

.btn-orange {
  background: #E8620A; color: #fff;
  font-size: 12.5px; font-weight: 600;
  padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.15s; text-decoration: none;
}
.btn-orange:hover { opacity: 0.9; color: #fff; }
/* ---- components/EquityCurve.vue ---- */
.equity-curve-inner {
  padding: 16px;
}
