/* Match Execution Quality's compact, maroon-accented trading tables. */
#live-grid {
    --ag-header-background-color: #f2e9ea;
    --ag-header-foreground-color: #5a1f24;
    --ag-border-color: #e7e1e1;
    --ag-row-border-color: #efeaea;
    --ag-odd-row-background-color: #fcfbfb;
    --ag-cell-horizontal-padding: 10px;
    --ag-font-size: 12px;
    border-radius: 6px;
    overflow: hidden;
}
#live-grid .ag-cell, #live-grid .ag-row {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 42px;
}
#live-grid .ag-header {
    border-bottom: 2px solid #d8cccc;
}
#live-grid .ag-header-cell-text {
    font-weight: 700;
}
#live-error:empty {
    display: none;
}
#live-freshness {
    font-variant-numeric: tabular-nums;
}

/* Responsive controls and a compact status strip keep the table prominent. */
#live-executions-page { gap: 12px; }
.live-controls { border-color: #e7e1e1; }
.live-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}
.live-underlying-filter { flex: 2 1 220px; min-width: 0; }
.live-venue-filter { flex: 1 1 160px; min-width: 0; }
.live-side-filter { flex: 0 1 170px; }
.live-status-filter { flex: 1 1 165px; }
.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.live-stat {
    background: #fff;
    border: 1px solid #e7e1e1;
    border-radius: 8px;
    padding: 12px 16px;
}
.live-stat-label { font-size: 11px; font-weight: 600; color: #737373; letter-spacing: .03em; }
.live-stat-value { font-size: 21px; font-weight: 600; color: #42262a; line-height: 1.6; font-variant-numeric: tabular-nums; }
.live-stat-detail { font-size: 11px; color: #737373; }
.live-stat-error { color: #b42332; }
.live-stat-overdue { color: #996400; }
.live-notes { font-size: 11px; line-height: 1.6; color: #737373; }
#live-grid .live-fill-progress { display: flex; flex-direction: column; justify-content: center; height: 100%; line-height: 1.3; }
.live-fill-numbers { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.live-fill-ratio { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-fill-percent { flex-shrink: 0; font-weight: 600; font-size: 11px; color: #625357; }
.live-fill-track { height: 4px; margin-top: 5px; border-radius: 3px; background: #eee9e6; overflow: hidden; }
.live-fill-bar { height: 100%; border-radius: inherit; background: #bd903e; }
.live-fill-bar.is-filled { background: #6b9474; }
.live-price-value { font-variant-numeric: tabular-nums; }
.live-price-zeros { font-size: .75em; font-weight: 600; }
@media (max-width: 800px) {
    .live-stats { grid-template-columns: 1fr; gap: 8px; }
    .live-stat { padding: 10px 14px; }
    .live-stat-value { font-size: 18px; }
    .live-side-filter { flex-grow: 1; }
}
