/* Accepted selection language, enabled only on allocation and fund panels. */
.q-side-panel { color: var(--q-text-normal); }
.q-side-panel h2, .q-side-panel .q-sidebar-heading h2,
.q-side-panel .q-category-selection-section h2 {
    font-size: var(--q-font-size-md); font-weight: var(--q-font-weight-semibold);
    line-height: var(--q-line-height-normal); margin: 0;
}
.q-side-panel .q-side-panel-section,
.q-side-panel .q-category-selection-section {
    padding: var(--q-space-3) 0; border-top: 1px solid var(--q-border-subtle);
}
.q-side-panel .q-side-panel-section > summary,
.q-side-panel .q-category-refinement-family > summary,
.q-side-panel .q-category-tree-branch > summary,
.q-side-panel .q-strategy-family-heading {
    display: flex; align-items: center; justify-content: flex-start;
    gap: var(--q-space-3); min-height: var(--q-control-height-compact);
    padding: var(--q-space-2) 0; list-style: none; cursor: pointer;
    color: var(--q-text-strong); font-size: var(--q-font-size-sm);
    font-weight: var(--q-font-weight-semibold);
}
.q-side-panel summary::-webkit-details-marker { display: none; }
.q-side-panel .q-side-panel-section > summary::after,
.q-side-panel .q-category-refinement-family > summary::after,
.q-side-panel .q-category-tree-branch > summary::after { display: none; }
.q-side-panel .q-side-panel-section > summary::before,
.q-side-panel .q-category-refinement-family > summary::before,
.q-side-panel .q-category-tree-branch > summary::before {
    content: '›'; flex: 0 0 10px; font-size: var(--q-font-size-xl);
    font-weight: var(--q-font-weight-regular); line-height: 1;
}
.q-side-panel .q-side-panel-section[open] > summary::before,
.q-side-panel .q-category-refinement-family[open] > summary::before,
.q-side-panel .q-category-tree-branch[open] > summary::before { transform: rotate(90deg); }
.q-side-panel .q-side-panel-body { padding-top: var(--q-space-2); min-width: 0; }
.q-side-panel .q-strategy-heading > span:last-child { margin-left: auto; }
.q-side-panel .q-category-selection-section .q-analysis-note {
    font-size: var(--q-font-size-xs); margin: var(--q-space-2) 0 var(--q-space-3);
}
.q-side-panel .q-category-pair-summary { margin-top: var(--q-space-3); }
.q-side-panel .q-category-refinement-family { padding: 0; }
.q-side-panel .q-category-refinement-summary {
    margin-left: auto; color: var(--q-text-muted); font-size: var(--q-font-size-xs);
    font-weight: var(--q-font-weight-regular); white-space: nowrap;
}
.q-side-panel .q-category-refinement-summary-include { color: var(--q-primary); }
.q-side-panel .q-category-refinement-summary-exclude { color: var(--q-text-normal); }
.q-side-panel .q-category-refinement-family[open] > summary .q-category-refinement-summary,
.q-side-panel .q-category-refinement-summary[hidden],
.q-side-panel .q-category-refinement-summary [hidden] { display: none; }
.q-category-workbench[data-category-refinement='true'] .q-side-panel .q-analysis-panel-heading {
    justify-content: space-between; margin-bottom: var(--q-space-3);
}
.q-category-workbench[data-category-refinement='true'] .q-side-panel .q-analysis-panel-heading h2 { display: block; }

/* Single and multiple leaves share state; data legends keep their meaning. */
.q-side-panel .q-strategy-choice,
.q-side-panel .q-category-choice,
.q-side-panel .q-category-refinement-choice {
    display: flex; align-items: baseline; gap: var(--q-space-3); width: 100%;
    min-height: var(--q-control-height-compact); padding: var(--q-space-2) var(--q-space-3);
    border: 0; border-left: 2px solid transparent; border-radius: 0;
    background: transparent; color: var(--q-text-normal); font: inherit;
    font-size: var(--q-font-size-sm); text-align: left; cursor: pointer;
    white-space: normal; overflow-wrap: anywhere;
}
.q-side-panel .q-category-refinement-family > div { padding-left: var(--q-space-5); }
.q-side-panel .q-strategy-choice[aria-pressed='true'],
.q-side-panel .q-category-choice[aria-pressed='true'],
.q-side-panel .q-category-refinement-choice[aria-pressed='true'] {
    border-left-color: var(--q-primary); background: var(--q-surface-selected);
    color: var(--q-primary); font-weight: var(--q-font-weight-medium);
}
.q-side-panel .q-category-refinement-count {
    margin-left: auto; color: var(--q-text-muted); font-size: var(--q-font-size-xs);
}
.q-side-panel .q-strategy-choice:hover,
.q-side-panel .q-category-choice:hover,
.q-side-panel .q-category-refinement-choice:hover { background: var(--q-surface); }
.q-side-panel .q-category-refinement-choice[data-category-tag-state='include']:hover {
    background: var(--q-surface-selected);
}
.q-side-panel .q-category-refinement-choice[data-category-tag-state='exclude'] {
    border-left-color: transparent; background: var(--q-surface-muted);
    color: var(--q-text-strong); font-weight: var(--q-font-weight-medium);
}
.q-side-panel .q-category-refinement-exclude { flex: 0 0 auto; }
.q-side-panel .q-category-refinement-exclude[hidden] { display: none; }
.q-side-panel button:disabled { color: var(--q-text-disabled); cursor: default; }
.q-side-panel .q-sidebar-controls { border: 0; padding-top: 0; }
.q-side-panel .q-sidebar-actions {
    position: static; margin-top: var(--q-space-3); background: var(--q-canvas);
}
.q-side-panel .q-sidebar-actions > .q-side-panel-body { padding-left: var(--q-space-5); }
.q-side-panel .q-sidebar-action {
    display: block; width: 100%; text-align: left;
    min-height: var(--q-control-height-compact); padding: var(--q-space-2) var(--q-space-3);
    height: auto; min-width: 0; margin: 0; line-height: var(--q-line-height-normal);
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
    color: var(--q-text-normal); font-size: var(--q-font-size-sm); font-weight: var(--q-font-weight-regular);
}
.q-side-panel .q-sidebar-action-primary { color: var(--q-primary); font-weight: var(--q-font-weight-medium); }
.q-side-panel .q-sidebar-action:hover { color: var(--q-primary); background: var(--q-surface); }
.q-side-panel .q-return-mode { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.q-side-panel .q-return-mode .form-check { flex: none; }
.q-side-panel .q-return-mode .form-check-label,
.q-side-panel .q-fund-detail-profile-control .btn {
    display: block; width: 100%; min-height: var(--q-control-height-compact);
    text-align: left; padding: var(--q-space-2) var(--q-space-3);
    border: 0; border-left: 2px solid transparent; border-radius: 0;
    background: transparent; color: var(--q-text-normal); box-shadow: none;
    font-size: var(--q-font-size-sm);
}
.q-side-panel .q-fund-detail-profile-control { display: flex; flex-direction: column; }
.q-side-panel .q-fund-detail-profile-control .form-check { padding: 0; margin: 0; }
.q-side-panel .q-return-mode .form-check-input:checked + .form-check-label,
.q-side-panel .q-fund-detail-profile-control .btn-check:checked + .btn {
    border-left-color: var(--q-primary); background: var(--q-surface-selected); color: var(--q-primary);
}

/* Native list face; the original Dropdown still owns value/options/persistence. */
.q-panel-select .q-inline-select-face,
.q-panel-select.is-open .q-inline-select-face,
.q-panel-select.is-disabled .q-inline-select-face {
    border: 0; border-radius: 0; background: transparent;
}
.q-panel-select .q-inline-select-trigger {
    min-height: var(--q-control-height-compact); padding: var(--q-space-2) 0;
    align-items: baseline; font-weight: var(--q-font-weight-regular);
}
.q-panel-select .q-inline-select-trigger-chevron { flex: 0 0 10px; }
.q-panel-select .q-inline-select-context-label { color: var(--q-text-normal); overflow-wrap: anywhere; }
/* The outer disclosures still open/close Fon and Model; their headings remain visible. */
.q-side-panel .q-fund-panel-section .q-panel-select[data-inline-source='single-fund-dropdown'] .q-inline-select-context-label,
.q-side-panel .q-fund-panel-section .q-panel-select[data-inline-source='single-fund-model-dropdown'] .q-inline-select-context-label { display: none; }
.q-panel-select .q-inline-select-trigger-label {
    margin-left: auto; text-align: right; color: var(--q-text-muted); font-size: var(--q-font-size-sm);
}
.q-panel-select.is-disabled .q-inline-select-trigger-label,
.q-panel-select.is-disabled .q-inline-select-context-label { color: var(--q-text-disabled); }
.q-panel-select .q-inline-select-body { border: 0; padding: 0 0 var(--q-space-3) var(--q-space-5); }
.q-panel-select .q-inline-select-search { min-height: var(--q-control-height-compact); }
.q-panel-select .q-inline-select-search[hidden] { display: none; }
.q-panel-select .q-inline-select-option {
    min-height: var(--q-control-height-compact); border-bottom: 0;
    border-left: 2px solid transparent; padding: var(--q-space-2) var(--q-space-3);
}
.q-panel-select .q-inline-select-option[aria-selected='true'] {
    border-left-color: var(--q-primary); background: var(--q-surface-selected);
    color: var(--q-primary); font-weight: var(--q-font-weight-medium);
}
.q-panel-select .q-inline-select-count { font-size: var(--q-font-size-xs); }
.q-panel-select .q-inline-select-more {
    background: transparent; text-align: left; min-height: var(--q-control-height-compact);
}
.q-side-panel summary:focus-visible,
.q-side-panel button:focus-visible { outline: 2px solid var(--q-primary); outline-offset: 2px; }
@media (max-width: 1599px), (pointer: coarse) {
    .q-side-panel .q-side-panel-section > summary,
    .q-side-panel .q-category-refinement-family > summary,
    .q-side-panel .q-strategy-family-heading,
    .q-side-panel .q-strategy-choice,
    .q-side-panel .q-category-choice,
    .q-side-panel .q-category-refinement-choice,
    .q-side-panel .q-sidebar-action,
    .q-side-panel .q-return-mode .form-check-label,
    .q-side-panel .q-fund-detail-profile-control .btn,
    .q-panel-select .q-inline-select-trigger,
    .q-panel-select .q-inline-select-option { min-height: 44px; }
}

/* #1024: okur üyelikte kaydet işlemleri kapalı; neden hemen altında yazar. */
.q-side-panel .q-sidebar-action:disabled,
.q-side-panel .q-sidebar-action:disabled:hover { color: var(--q-text-disabled); background: transparent; cursor: default; }
.q-side-panel .q-sidebar-readonly-note { margin: 0 0 var(--q-space-2); padding: 0 var(--q-space-3); font-size: var(--q-font-size-xs); color: var(--q-text-muted); line-height: 1.4; }
