/* Dashboard-specific styles */

#statCards .stat-card {
    min-height: 100px;
}

.stat-card .stat-value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Quick stat cards */
.card.text-center .fs-4 {
    color: var(--accent-primary);
}

/* Uniform shrink of the dashboard surface. Modals and toasts render at body
   level so they're unaffected. */
.dash-compact {
    zoom: 1.0;
}

/* ---- Clickable chart cards + expand modal ---------------------------- */
/* The 4 chart cards on the dashboard (Equity, Ticker, Account Value, etc.)
   are clickable to open a 75%-viewport modal with the same chart at full
   size. Hover state telegraphs the affordance. */
.dash-chart-card { cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.dash-chart-card:hover { border-color: var(--accent-primary, #D4AF37); }
.dash-chart-card:focus-visible {
    outline: 2px solid var(--accent-primary, #D4AF37);
    outline-offset: 2px;
}
/* The Account Value card has an internal interactive control (Adjust
   button), so we scope its expand affordance to just the header label
   instead of the whole card. */
.dash-chart-expand { cursor: pointer; }
.dash-chart-expand:hover { color: var(--accent-primary, #D4AF37); }

/* 75%-viewport modal for the expanded chart view. Bootstrap's modal-xl
   tops out around 1140px; we want a proportional 75% of the actual screen. */
.chart-expand-modal .modal-dialog {
    max-width: 75vw;
    width: 75vw;
    margin: 12.5vh auto;
}
.chart-expand-modal .modal-content {
    background-color: var(--bg-secondary, #14171C);
    border: 1px solid var(--border-color, #2A2F36);
}
.chart-expand-modal .modal-header {
    border-bottom-color: var(--border-color, #2A2F36);
}
@media (max-width: 768px) {
    .chart-expand-modal .modal-dialog { max-width: 96vw; width: 96vw; margin: 4vh auto; }
}

/* Open Positions — single shared table grouped by account.
   The account-header and per-account column-label rows live inside one tbody
   so every account's columns stay locked to the same widths. These rows are
   structural, not data, so suppress the hover highlight and pointer cursor. */
.positions-table .acct-header-row > td {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.positions-table .acct-header-row.acct-header-gap > td {
    border-top-width: 3px;            /* stronger divider between account groups */
}
.positions-table .acct-cols-row > th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.positions-table .acct-header-row:hover > * {
    background: rgba(255, 255, 255, 0.04);  /* keep header tint, cancel hover */
    cursor: default;
}
.positions-table .acct-cols-row:hover > * {
    background: transparent;                /* cancel table-hover tint */
    cursor: default;
}
