/* Saved allocation monitoring shares the product analysis shell. */
.q-history-workbench { grid-template-rows: auto auto; }
.q-history-workbench > .q-history-workbench-header { grid-column: 1 / -1; grid-row: 1; }
.q-history-workbench > .q-history-center { grid-row: 2; }
.q-history-workbench .q-history-selections, .q-history-workbench .q-history-view, .q-history-backdrop { display: none; }
.q-history-workbench.is-selections-open .q-history-selections, .q-history-workbench.is-view-open .q-history-view { display: block; }
.q-history-workbench-header { display: flex; justify-content: space-between; align-items: start; gap: var(--q-space-4); padding-top: var(--q-space-5); }
.q-history-workbench .q-history-title { margin: 0 0 var(--q-space-2); font-size: var(--q-font-size-3xl); font-weight: var(--q-font-weight-semibold); }
.q-history-workbench .q-history-eyebrow { text-transform: none; font-weight: var(--q-font-weight-regular); margin-bottom: var(--q-space-3); }
.q-history-subtitle { color: var(--q-text-muted); font-size: var(--q-font-size-sm); margin: 0; }
.q-history-panel-actions { display: flex; flex-shrink: 0; gap: var(--q-space-5); }
.q-history-panel-close { color: var(--q-text-normal); font-size: var(--q-font-size-lg); padding: var(--q-space-2); }
.q-history-center { min-width: 0; }
.q-history-workbench .q-history-section-title { font-size: var(--q-font-size-md); font-weight: var(--q-font-weight-semibold); margin: 0; }
.q-history-workbench .q-history-section-header { align-items: center; gap: var(--q-space-3); flex-wrap: wrap; }
.q-history-workbench .q-history-main-tabs .nav-link, .q-history-workbench .q-history-detail-tabs .nav-link { font-size: var(--q-font-size-sm); padding: var(--q-space-3); font-weight: var(--q-font-weight-medium); }
.q-history-workbench .nav-link.active { color: var(--q-primary); }
.q-history-workbench .q-history-chart { min-height: 0; }
.q-history-workbench .q-history-grid-container { min-height: 0; padding-top: var(--q-space-3); }
.q-history-workbench .q-history-inline-status { white-space: normal; padding: 0; background: transparent; font-weight: var(--q-font-weight-regular); }
.q-history-workbench .q-history-empty-state { min-height: 72px; margin: var(--q-space-3) 0; }
.q-history-strategy-list { display: flex; flex-direction: column; }
.q-history-strategy-item { display: flex; align-items: center; justify-content: space-between; gap: var(--q-space-2); padding: var(--q-space-3) var(--q-space-2); border: 0; border-bottom: 1px solid var(--q-border-subtle); background: transparent; font: inherit; font-size: var(--q-font-size-sm); text-align: left; color: var(--q-text-normal); cursor: pointer; }
.q-history-strategy-item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.q-history-strategy-item.is-selected { background: var(--q-primary-soft); color: var(--q-text-strong); }
.q-history-strategy-action { font-size: var(--q-font-size-xs); color: var(--q-text-muted); flex-shrink: 0; }
.q-history-asset-legend { max-height: 340px; overflow-y: auto; margin: var(--q-space-3) 0; }
.q-history-legend-group { border-bottom: 1px solid var(--q-border-subtle); padding: var(--q-space-2) 0; }
.q-history-legend-group > summary { font-size: var(--q-font-size-xs); color: var(--q-text-normal); cursor: pointer; }
.q-history-asset-toggle { display: flex; align-items: center; gap: var(--q-space-2); font: inherit; font-size: var(--q-font-size-sm); text-align: left; color: var(--q-text-normal); width: 100%; padding: var(--q-space-2); background: transparent; border: 0; cursor: pointer; }
.q-history-asset-toggle > span:last-child { overflow-wrap: anywhere; }
/* .q-history-swatch biçimi: ortak .q-series-swatch (F17) */
.q-history-asset-toggle[aria-pressed='false'] { color: var(--q-text-muted); }
.q-history-asset-toggle[aria-pressed='false'] .q-history-swatch { opacity: var(--q-swatch-muted-opacity); }
.q-history-search { width: 100%; height: var(--q-control-height); border: 1px solid var(--q-border-strong); border-radius: var(--q-radius-md); padding: var(--q-space-2) var(--q-space-3); font-size: var(--q-font-size-sm); color: var(--q-text-normal); background: var(--q-canvas); margin-bottom: var(--q-space-3); }
.q-history-search:focus { border-color: var(--q-primary); box-shadow: var(--q-shadow-focus); outline: 0; }
.q-history-workbench .q-product-switch { display: flex; margin: var(--q-space-3) 0; }
.q-history-workbench .q-history-filter-label { display: block; margin-top: var(--q-space-4); }
.q-history-choice-control { display: flex; gap: var(--q-space-2); flex-wrap: wrap; }
.q-history-choice-control .form-check { padding: 0; margin: 0; position: relative; }
.q-history-choice-input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.q-history-choice-label { display: block; border: 1px solid var(--q-border-subtle); border-radius: var(--q-radius-sm); padding: var(--q-space-2) var(--q-space-3); font-size: var(--q-font-size-sm); color: var(--q-text-muted); cursor: pointer; }
.q-history-choice-input:checked + .q-history-choice-label { border-color: var(--q-primary); color: var(--q-primary); background: var(--q-primary-soft); }
.q-history-choice-input:focus-visible + .q-history-choice-label, .q-history-strategy-item:focus-visible, .q-history-asset-toggle:focus-visible { outline: 2px solid var(--q-primary); outline-offset: 2px; }
.q-history-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--q-space-5) 0; }
.q-history-overview > div { padding: 0 var(--q-space-3); border-left: 1px solid var(--q-border-subtle); min-width: 0; }
.q-history-overview > div:first-child { padding-left: 0; border: 0; }
.q-history-overview span { display: block; font-size: var(--q-font-size-xs); color: var(--q-text-muted); }
.q-history-overview strong { display: block; font-size: var(--q-font-size-sm); font-weight: var(--q-font-weight-semibold); color: var(--q-text-strong); margin-top: var(--q-space-2); overflow-wrap: anywhere; }
.q-history-record-info { font-size: var(--q-font-size-sm); }
.q-history-record-info dt { color: var(--q-text-muted); font-weight: var(--q-font-weight-regular); font-size: var(--q-font-size-xs); margin-top: var(--q-space-3); }
.q-history-record-info dd { color: var(--q-text-normal); margin: var(--q-space-1) 0 var(--q-space-3); }
.q-history-comparison { color: var(--q-text-muted); font-size: var(--q-font-size-xs); border-bottom: 1px solid var(--q-border-subtle); padding: var(--q-space-3) 0; }
.q-history-cell-changed { box-shadow: inset 2px 0 var(--q-primary); }
.q-history-opinion-section { min-width: 0; margin-top: var(--q-space-3); }
.q-history-workbench .q-results-heading { margin-bottom: var(--q-space-3); }
.q-history-workbench .q-results-heading h2 { font-size: var(--q-font-size-xs); font-weight: var(--q-font-weight-regular); color: var(--q-text-muted); }
.q-history-workbench .q-history-status { background: transparent; border: 0; }
#history-status { font-size: var(--q-font-size-xs); color: var(--q-text-muted); margin-left: auto; }
@media (min-width: 1600px) {
    .q-analysis-workbench.q-history-workbench { grid-template-columns: var(--q-analysis-left-width) minmax(0, 1fr) var(--q-analysis-right-width); }
    .q-history-workbench > .q-history-selections { grid-column: 1; grid-row: 2; }
    .q-history-workbench > .q-history-view { grid-column: 3; grid-row: 2; }
    .q-history-workbench > .q-history-center { grid-column: 2; }
}
@media (max-width: 1599px) {
    .q-history-selections { left: 0; border-right: 1px solid var(--q-border-subtle); }
    .q-history-view { right: 0; border-left: 1px solid var(--q-border-subtle); }
    .q-history-workbench.is-selections-open .q-history-backdrop, .q-history-workbench.is-view-open .q-history-backdrop { display: block; position: fixed; inset: var(--q-navbar-height) 0 0; z-index: 1040; background: var(--q-surface-inverse); opacity: .18; }
}
@container (max-width: 750px) {
    .q-history-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--q-space-4) 0; }
    .q-history-overview > div:nth-child(3) { border: 0; padding-left: 0; }
}
@media (max-width: 540px) {
    .q-history-workbench-header { flex-wrap: wrap; }
    .q-history-panel-actions { width: 100%; justify-content: space-between; }
    .q-history-workbench .q-history-title { font-size: var(--q-font-size-2xl); }
    .q-history-strategy-action { display: none; }
}
