/* YKS Tercih Robotu — Öğretmen Müsaitlik Takvimi premium dili (standalone) */

:root {
    --tercih-primary: #667eea;
    --tercih-accent: #764ba2;
    --tercih-text: #0f172a;
    --tercih-muted: #64748b;
    --tercih-border: #e8e8f0;
    --tercih-surface: #f8fafc;
    --tercih-radius: 14px;
    --tercih-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --tercih-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
}

html {
    height: 100%;
    overflow: hidden;
}

html,
body.tercih-premium-page {
    margin: 0;
    background: linear-gradient(180deg, #f4f6fb 0%, #eef1f8 120px, #f8fafc 100%);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--tercih-text);
}

body.tercih-premium-page {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
}

.tercih-premium-page .content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.65rem 0.75rem 0.35rem;
    width: 100%;
    box-sizing: border-box;
}

body.tercih-premium-page > .content-wrapper:first-of-type {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.tercih-premium-page > .content-wrapper:last-of-type {
    flex: 0 0 auto;
    padding-top: 0;
    padding-bottom: 0.35rem;
}

.tercih-listeleme-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Header */
.tercih-listeleme-content .kurum-sinav-header.tercih-page-header {
    background: linear-gradient(135deg, var(--tercih-primary) 0%, var(--tercih-accent) 100%);
    padding: 0.85rem 1rem;
    margin-bottom: 0.55rem;
    border-radius: 12px;
    color: #fff;
    box-shadow: var(--tercih-shadow-lg);
    flex-shrink: 0;
}

.tercih-page-header__bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.tercih-page-header__brand {
    flex: 1 1 auto;
    min-width: 12rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tercih-page-header__logo {
    height: 2.5rem;
    width: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.45rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tercih-page-header h2 {
    font-size: 1.32rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
    color: #fff !important;
}

.tercih-page-header p {
    font-size: 0.82rem;
    opacity: 0.94;
    max-width: 40rem;
    margin: 0;
    color: #fff !important;
}

.tercih-page-header__toolbar {
    flex: 0 1 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tercih-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.tercih-header-btn:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tercih-header-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

/* Layout */
.tercih-layout {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    flex: 1 1 auto;
    min-height: 0;
}

/* Sol filtre paneli */
.tercih-filtre-panel {
    flex: 0 0 288px;
    width: 288px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    border-radius: var(--tercih-radius);
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    overflow: hidden;
}

.tercih-filtre-panel--premium {
    position: relative;
    border-radius: 16px;
    box-shadow:
        0 16px 48px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.tercih-filtre-panel__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #6366f1 100%);
    border-radius: var(--tercih-radius) var(--tercih-radius) 0 0;
    z-index: 2;
}

.tercih-filtre-panel__head {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.9rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(238, 242, 255, 0.95);
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.72) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.tercih-filtre-panel__head-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.tercih-filtre-panel__head-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 11px;
    color: #fff;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.32);
}

.tercih-filtre-panel__head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.tercih-filtre-panel__title {
    display: block;
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--tercih-text);
    letter-spacing: -0.02em;
}

.tercih-filtre-panel__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    color: #fff;
    font-size: 0.82rem;
    background: linear-gradient(135deg, var(--tercih-primary) 0%, var(--tercih-accent) 100%);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.32);
}

.tercih-filtre-panel--minimal .tercih-filtre-panel__head {
    padding: 0.75rem 0.85rem;
    gap: 0;
}

.tercih-filtre-panel--minimal .tercih-filtre-panel__head-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    font-size: 0.82rem;
}

.tercih-filtre-panel--minimal .tercih-filtre-panel__title {
    font-size: 0.92rem;
    font-weight: 800;
}

.tercih-filtre-panel--minimal .tercih-filtre-panel__body {
    padding: 0;
}

.tercih-filtre-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.tercih-filtre-form__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.5rem 0.65rem 0.45rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tercih-filtre-form__scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.tercih-filtre-panel__footer {
    flex-shrink: 0;
    padding: 0.55rem 0.65rem 0.65rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, #ffffff 100%);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
}

.tercih-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.tercih-field-tools {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    flex-shrink: 0;
}

.tercih-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.22rem;
    height: 1.22rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #059669;
    font-size: 0.52rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.tercih-mini-btn:hover {
    border-color: #bbf7d0;
    background: #f0fdf4;
    transform: scale(1.04);
}

.tercih-mini-btn--danger {
    color: #dc2626;
}

.tercih-mini-btn--danger:hover {
    border-color: #fecaca;
    background: #fef2f2;
}

.tercih-advanced-filters {
    margin: 0.1rem 0 0.38rem;
    border: 1px solid #e8eaf4;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.75);
    overflow: hidden;
}

.tercih-advanced-filters__toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--tercih-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.tercih-advanced-filters__toggle::-webkit-details-marker {
    display: none;
}

.tercih-advanced-filters__toggle::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.18s ease;
    margin-right: 0.15rem;
}

.tercih-advanced-filters[open] .tercih-advanced-filters__toggle::before {
    transform: rotate(45deg);
    margin-top: -0.1rem;
}

.tercih-advanced-filters__body {
    padding: 0 0.5rem 0.45rem;
    border-top: 1px solid #eef2ff;
}

.tercih-filtre-field--compact {
    margin-bottom: 0.35rem;
}

.tercih-filtre-field--compact .tercih-check-row {
    padding: 0.38rem 0.5rem;
}

.tercih-filtre-field--compact .form-check-label {
    font-size: 0.74rem;
}

.tercih-filtre-panel__body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.tercih-filtre-loading {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    border-radius: 0 0 14px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tercih-primary);
}

.tercih-filtre-loading.d-none {
    display: none !important;
}

.tercih-filtre-loading__ring {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.18);
    border-top-color: var(--tercih-primary);
    animation: tercihFiltreSpin 0.75s linear infinite;
}

@keyframes tercihFiltreSpin {
    to { transform: rotate(360deg); }
}

#pnlFiltreleme.tercih-filtre-form--busy {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.tercih-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 16rem;
    padding: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tercih-primary);
}

.tercih-modal-loading--error {
    color: #dc2626;
}

.tercih-modal-loading--error i {
    font-size: 1.75rem;
}

.tercih-modal-loading--error small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tercih-muted);
}

.tercih-filtre-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.7rem;
}

.tercih-filtre-field__label {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--tercih-text);
}

.tercih-filtre-field__label i {
    color: var(--tercih-primary);
    margin-right: 0.35rem;
}

.tercih-filtre-field .form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 2.35rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tercih-filtre-field .form-control:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

/* Select + Tümü/Temizle — input-group (select solda, ikonlar sağda) */
.tercih-select-input-group {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
}

.tercih-select-input-group__field {
    flex: 1 1 auto;
    min-width: 0;
}

.tercih-select-input-group__field .form-select {
    border-radius: 0;
    border-color: #e2e8f0;
}

.tercih-select-icon-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    min-width: 2.35rem;
    height: auto;
    min-height: 2.35rem;
    padding: 0;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    font-size: 0.82rem;
    line-height: 1;
    box-shadow: none;
}

.tercih-select-icon-btn--success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-color: #bbf7d0;
    border-left: 0;
}

.tercih-select-icon-btn--success:hover,
.tercih-select-icon-btn--success:focus {
    background: rgba(34, 197, 94, 0.2);
    color: #14532d;
    border-color: #86efac;
}

.tercih-select-icon-btn--danger {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: #fecaca;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.tercih-select-icon-btn--danger:hover,
.tercih-select-icon-btn--danger:focus {
    background: rgba(239, 68, 68, 0.16);
    color: #991b1b;
    border-color: #fca5a5;
}

/* Select2 — TercihModul ile aynı sade görünüm */
.tercih-listeleme-content .tercih-select-input-group__field .select2-container {
    width: 100% !important;
}

.tercih-listeleme-content .tercih-select-input-group .select2-container--default .select2-selection--single,
.tercih-listeleme-content .tercih-select-input-group .select2-container--default .select2-selection--multiple {
    min-height: 2.35rem !important;
    height: auto !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-right: 0 !important;
    background: #fff !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tercih-listeleme-content .select2-container--default .select2-selection--multiple,
.tercih-listeleme-content .select2-container--default .select2-selection--single {
    font-family: inherit !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--tercih-text) !important;
}

.tercih-listeleme-content .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 0.38rem 0.55rem !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    font-family: inherit !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--tercih-text);
    min-height: calc(2.35rem - 2px);
    box-sizing: border-box;
}

.tercih-listeleme-content .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    font-family: inherit !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    line-height: 1.35;
    margin: 0;
}

.tercih-listeleme-content .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 0 !important;
    border-radius: 6px !important;
    background: #eef2ff !important;
    color: #4338ca !important;
    font-family: inherit !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    margin: 0.1rem 0.2rem 0.1rem 0 !important;
    padding: 0.12rem 0.4rem !important;
    line-height: 1.2 !important;
}

.tercih-listeleme-content .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #6366f1 !important;
    margin-right: 0.2rem !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
}

.tercih-listeleme-content .select2-container--default .select2-selection--multiple .select2-search--inline {
    float: none;
    margin: 0;
}

.tercih-listeleme-content .select2-container--default .select2-selection--multiple .select2-search__field {
    margin: 0 !important;
    padding: 0 !important;
    height: 1.35rem !important;
    line-height: 1.35 !important;
    font-family: inherit !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--tercih-text) !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.tercih-listeleme-content .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #94a3b8;
    font-weight: 600;
    opacity: 1;
}

/* Boşken yalnızca "Seçiniz" metni — çift placeholder gizle */
.tercih-listeleme-content .select2-container--default .select2-selection--multiple .select2-selection__rendered:not(:has(.select2-selection__choice)) .select2-search--inline {
    width: 100% !important;
}

.tercih-listeleme-content .select2-container--default .select2-selection--multiple .select2-selection__rendered:not(:has(.select2-selection__choice)) .select2-search__field {
    width: 100% !important;
    color: #94a3b8 !important;
}

.tercih-listeleme-content .tercih-select-input-group .select2-container--default.select2-container--focus .select2-selection--multiple,
.tercih-listeleme-content .tercih-select-input-group .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15) !important;
    outline: none;
}

.tercih-listeleme-content .tercih-select-input-group:focus-within .tercih-select-icon-btn--success {
    border-color: #86efac;
}

.tercih-listeleme-content .tercih-select-input-group:focus-within .tercih-select-icon-btn--danger {
    border-color: #fca5a5;
}

.tercih-listeleme-content .select2-container--default.select2-container--open {
    z-index: 1055;
}

.tercih-filtre-panel .select2-dropdown,
body:has(.tercih-listeleme-content) .select2-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    z-index: 1060 !important;
}

.tercih-filtre-panel .select2-search--dropdown .select2-search__field,
body:has(.tercih-listeleme-content) .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
}

.tercih-filtre-panel .select2-search--dropdown .select2-search__field:focus,
body:has(.tercih-listeleme-content) .select2-search--dropdown .select2-search__field:focus {
    border-color: #818cf8;
    outline: none;
}

.tercih-filtre-panel .select2-results__option,
body:has(.tercih-listeleme-content) .select2-results__option {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.tercih-filtre-panel .select2-results__option--highlighted,
body:has(.tercih-listeleme-content) .select2-results__option--highlighted {
    background: #eef2ff !important;
    color: #3730a3 !important;
}

.tercih-filtre-panel .select2-results__option[aria-selected="true"],
body:has(.tercih-listeleme-content) .select2-results__option[aria-selected="true"] {
    background: #e0e7ff !important;
    color: #4338ca !important;
}

.tercih-filtre-field--picker {
    margin-bottom: 0.38rem;
}

/* Tek satır filtre picker — müsaitlik sınıf seçici dili */
.tercih-filtre-picker {
    display: grid;
    grid-template-columns: minmax(3.4rem, 4.1rem) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.38rem;
    padding: 0.34rem 0.38rem 0.34rem 0.42rem;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tercih-filtre-picker:hover {
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

.tercih-filtre-picker__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    margin: 0;
    min-width: 0;
    text-align: center;
    cursor: default;
}

.tercih-filtre-picker__label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.32rem;
    height: 1.32rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.62rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.28);
    flex-shrink: 0;
}

.tercih-filtre-picker__label-text {
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: #64748b;
    max-width: 4rem;
}

.tercih-filtre-picker__control {
    position: relative;
    min-width: 0;
}

.tercih-filtre-picker__control::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0.48rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.52rem;
    color: #94a3b8;
    pointer-events: none;
    z-index: 3;
}

.tercih-filtre-picker.is-filled .tercih-filtre-picker__control::after {
    color: rgba(255, 255, 255, 0.9);
}

.tercih-filtre-picker__control .select2-container {
    width: 100% !important;
}

.tercih-filtre-picker__control .select2-container--tercih-premium .select2-selection--multiple {
    min-height: 1.95rem !important;
    max-height: 1.95rem;
    padding: 0 1.55rem 0 0.42rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tercih-filtre-picker__control .select2-container--tercih-premium.select2-container--focus .select2-selection--multiple,
.tercih-filtre-picker__control .select2-container--tercih-premium.select2-container--open .select2-selection--multiple {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.16);
}

.tercih-filtre-picker.is-filled .select2-container--tercih-premium .select2-selection--multiple {
    border-color: transparent !important;
    background: linear-gradient(145deg, #6366f1 0%, #7c3aed 100%) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.24);
}

.tercih-filtre-picker__control .select2-container--tercih-premium .select2-selection--multiple .select2-selection__rendered {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.85rem !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tercih-filtre-picker__control .select2-container--tercih-premium .select2-selection--multiple .select2-selection__rendered::before {
    content: attr(data-tercih-label);
    position: absolute;
    left: 0;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tercih-filtre-picker.is-filled .select2-selection--multiple .select2-selection__rendered::before {
    color: #fff;
}

.tercih-filtre-picker__control .select2-container--tercih-premium .select2-selection--multiple .select2-search--inline {
    width: 100% !important;
    float: none;
}

.tercih-filtre-picker__control .select2-container--tercih-premium .select2-selection--multiple .select2-search__field {
    margin: 0 !important;
    width: 100% !important;
    height: 1.85rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: transparent !important;
    caret-color: var(--tercih-primary);
    background: transparent !important;
}

.tercih-filtre-picker__control .select2-container--open .select2-search__field {
    color: #334155 !important;
}

.tercih-filtre-picker.is-filled .select2-container--open .select2-search__field {
    color: #fff !important;
}

.tercih-filtre-field--picker-compact .tercih-filtre-picker {
    padding: 0.3rem 0.34rem 0.3rem 0.38rem;
}

.tercih-filtre-field--picker-compact .tercih-filtre-picker__label-text {
    font-size: 0.54rem;
}

/* .tercih-filtre-field__label — üstte tanımlı (TercihModul uyumu) */

.tercih-select-shell {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tercih-select-shell .select2-container {
    width: 100% !important;
}

.tercih-select-shell .select2-selection--multiple {
    min-height: 2.35rem;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tercih-select-shell .select2-selection--multiple:focus,
.tercih-select-shell .select2-container--focus .select2-selection--multiple {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

/* Premium Select2 — müsaitlik takvimi dili */
.select2-container--tercih-premium .select2-selection--multiple {
    min-height: 2.05rem;
    padding: 0.12rem 0.35rem;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.select2-container--tercih-premium.select2-container--focus .select2-selection--multiple,
.select2-container--tercih-premium.select2-container--open .select2-selection--multiple {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.select2-container--tercih-premium .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0;
}

.select2-container--tercih-premium .select2-selection--multiple .select2-selection__choice {
    display: none;
}

.select2-container--tercih-premium .select2-selection--multiple .select2-selection__rendered {
    padding-left: 0.15rem;
    line-height: 1.65rem;
}

.select2-container--tercih-premium .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice {
    display: none;
}

.select2-container--tercih-premium .select2-selection--multiple .select2-selection__choice__remove {
    color: #6366f1;
    margin-right: 0.25rem;
    border: 0;
}

.select2-container--tercih-premium .select2-selection--multiple .select2-search__field {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tercih-text);
}

.tercih-select2-dropdown.select2-dropdown {
    border: 1px solid rgba(129, 140, 248, 0.28);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    padding: 0.35rem 0;
}

.tercih-select2-dropdown .select2-search--dropdown {
    padding: 0.45rem 0.65rem 0.35rem;
}

.tercih-select2-dropdown .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.tercih-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: #818cf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.tercih-select2-dropdown .select2-results__option {
    padding: 0;
    margin: 0.15rem 0.45rem;
    border-radius: 10px;
}

.tercih-select2-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tercih-text);
}

.tercih-select2-option__check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: transparent;
    font-size: 0.55rem;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tercih-select2-option.is-selected .tercih-select2-option__check,
.tercih-select2-dropdown .select2-results__option--selected .tercih-select2-option__check {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.tercih-select2-dropdown .select2-results__option--highlighted {
    background: transparent;
}

.tercih-select2-dropdown .select2-results__option--highlighted .tercih-select2-option {
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
}

.tercih-select2-dropdown .select2-results__option--selected .tercih-select2-option {
    background: rgba(102, 126, 234, 0.08);
}

/* Premium Toastr — tercih mor teması */
@keyframes tercihToastIn {
    from {
        opacity: 0;
        transform: translate3d(1.1rem, 0, 0) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes tercihToastOut {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0.75rem, 0, 0);
    }
}

body.tercih-premium-page #toast-container.tercih-toast-container {
    top: max(5.25rem, calc(env(safe-area-inset-top, 0px) + 4.75rem)) !important;
    right: max(0.85rem, env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
    width: min(22rem, calc(100vw - 1.75rem));
    z-index: 200120 !important;
    pointer-events: none;
}

body.tercih-premium-page #toast-container.tercih-toast-container > div,
body.tercih-premium-page #toast-container.tercih-toast-container > .toast.tercih-toast {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100% !important;
    max-width: none;
    margin: 0 0 0.65rem !important;
    padding: 0.78rem 2.35rem 0.82rem 3.35rem !important;
    opacity: 1 !important;
    border: 1px solid rgba(129, 140, 248, 0.18) !important;
    border-radius: 14px !important;
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset !important;
    background: rgba(255, 255, 255, 0.94) !important;
    background-image: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    pointer-events: auto;
    animation: tercihToastIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

body.tercih-premium-page #toast-container.tercih-toast-container > .toast.tercih-toast.toast-removing {
    animation: tercihToastOut 0.22s ease forwards;
}

body.tercih-premium-page #toast-container.tercih-toast-container > .toast.tercih-toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, var(--tercih-primary) 0%, var(--tercih-accent) 100%);
}

body.tercih-premium-page #toast-container.tercih-toast-container > .toast.tercih-toast::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

body.tercih-premium-page #toast-container.tercih-toast-container > .toast.tercih-toast--success::after {
    background-color: #ecfdf5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

body.tercih-premium-page #toast-container.tercih-toast-container > .toast.tercih-toast--error::after {
    background-color: #fef2f2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

body.tercih-premium-page #toast-container.tercih-toast-container > .toast.tercih-toast--warning::after {
    background-color: #fffbeb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

body.tercih-premium-page #toast-container.tercih-toast-container > .toast.tercih-toast--info::after {
    background-color: #eef2ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

body.tercih-premium-page #toast-container.tercih-toast-container .tercih-toast__icon {
    display: none !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2 !important;
    color: #64748b !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast-message {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: var(--tercih-text) !important;
    word-break: break-word;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast.tercih-toast--success .toast-title {
    color: #059669 !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast.tercih-toast--error .toast-title {
    color: #dc2626 !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast.tercih-toast--warning .toast-title {
    color: #d97706 !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast.tercih-toast--info .toast-title {
    color: var(--tercih-primary) !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px !important;
    opacity: 1 !important;
    border-radius: 0 0 14px 14px;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast.tercih-toast--success .toast-progress {
    background: linear-gradient(90deg, #059669 0%, #34d399 100%) !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast.tercih-toast--error .toast-progress {
    background: linear-gradient(90deg, #dc2626 0%, #f87171 100%) !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast.tercih-toast--warning .toast-progress {
    background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%) !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast.tercih-toast--info .toast-progress {
    background: linear-gradient(90deg, var(--tercih-primary) 0%, var(--tercih-accent) 100%) !important;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast-close-button,
body.tercih-premium-page #toast-container.tercih-toast-container .tercih-toast__close {
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #64748b !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    line-height: 1;
    text-shadow: none !important;
    opacity: 1 !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast-close-button:hover,
body.tercih-premium-page #toast-container.tercih-toast-container .tercih-toast__close:hover {
    background: rgba(102, 126, 234, 0.14);
    color: var(--tercih-primary) !important;
    transform: scale(1.04);
}

body.tercih-premium-page #toast-container.tercih-toast-container .toast-close-button:focus,
body.tercih-premium-page #toast-container.tercih-toast-container .tercih-toast__close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22);
}

@media (max-width: 640px) {
    body.tercih-premium-page #toast-container.tercih-toast-container {
        right: 0.5rem !important;
        left: 0.5rem !important;
        width: auto;
    }
}

.tercih-filtre-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tercih-filtre-tool,
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4f46e5;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tercih-filtre-tool:hover,
.action-btn:hover {
    border-color: #c7d2fe;
    background: #f5f3ff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
}

.action-btn-success { color: #059669; }
.action-btn-danger { color: #dc2626; }

.tercih-range-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.tercih-range-group .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.74rem;
    font-weight: 600;
    min-height: 2.05rem;
    padding: 0.35rem 0.5rem;
}

.tercih-range-group .form-control:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.tercih-check-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.tercih-check-row .form-check-input {
    margin: 0;
    flex-shrink: 0;
}

.tercih-check-row .form-check-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tercih-text);
}

.tercih-filtre-actions {
    display: flex;
    gap: 0.38rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.tercih-filtre-actions .tercih-btn-primary,
.tercih-filtre-actions .tercih-btn-secondary {
    flex: 1 1 0;
    min-height: 2.05rem;
    padding: 0.42rem 0.55rem;
    font-size: 0.72rem;
    border-radius: 9px;
}

.tercih-btn-primary,
.modern-btn,
#btn-TercihYap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--tercih-primary) 0%, var(--tercih-accent) 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tercih-btn-primary:hover,
.modern-btn:hover,
#btn-TercihYap:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    color: #fff;
}

.tercih-btn-secondary,
.modern-btn-outline,
#btn-tercih-temizle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid #c7d2fe;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4f46e5;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.tercih-btn-secondary:hover,
.modern-btn-outline:hover,
#btn-tercih-temizle:hover {
    background: #f5f3ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    color: #4338ca;
}

/* Sağ sonuç alanı */
.tercih-sonuc-host {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tercih-subheader {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--tercih-radius);
    border: 1px solid var(--tercih-border);
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.tercih-subheader__title {
    flex: 1 1 auto;
    min-width: 12rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tercih-text);
    letter-spacing: -0.02em;
}

.tercih-subheader__title i {
    color: var(--tercih-primary);
    margin-right: 0.35rem;
}

.tercih-subheader__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-left: auto;
}

.tercih-subheader--premium {
    padding: 0.75rem 0.9rem;
}

.tercih-subheader__main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.tercih-sonuc-sort-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.35);
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
    color: #4338ca;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.tercih-sonuc-toolbar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tercih-sonuc-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.tercih-sonuc-tool:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.14);
    transform: translateY(-1px);
    color: #334155;
}

.tercih-sonuc-tool--sort {
    color: #4338ca;
    border-color: rgba(129, 140, 248, 0.35);
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.tercih-sonuc-tool--print {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--tercih-primary) 0%, var(--tercih-accent) 100%);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.28);
}

.tercih-sonuc-tool--print:hover {
    color: #fff;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
}

.tercih-sonuc-sort-menu {
    min-width: 13rem;
    padding: 0.45rem;
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: 12px;
    box-shadow: var(--tercih-shadow-lg);
}

.tercih-sonuc-sort-menu__label {
    padding: 0.35rem 0.55rem 0.45rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tercih-muted);
}

.tercih-sonuc-sort-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tercih-sonuc-sort-item i:first-child {
    width: 1rem;
    color: #6366f1;
    text-align: center;
}

.tercih-sonuc-sort-item span {
    flex: 1 1 auto;
}

.tercih-sonuc-sort-item__check {
    opacity: 0;
    color: #667eea;
    font-size: 0.72rem;
    transition: opacity 0.15s ease;
}

.tercih-sonuc-sort-item:hover {
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
}

.tercih-sonuc-sort-item.is-active {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
}

.tercih-sonuc-sort-item.is-active .tercih-sonuc-sort-item__check {
    opacity: 1;
}

.tercih-sonuc-card {
    position: relative;
}

.tercih-sonuc-loading {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tercih-primary);
}

.tercih-sonuc-loading.d-none {
    display: none !important;
}

.tercih-sonuc-card--busy .tercih-sonuc-card__body {
    opacity: 0.55;
    pointer-events: none;
}

.tercih-dt-top,
.tercih-dt-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.35rem 0.15rem;
}

.tercih-dt-top .dataTables_filter input,
.tercih-dt-bottom .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
}

.tercih-dt-top .dataTables_filter input:focus {
    border-color: #818cf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.tercih-sonuc-table {
    margin: 0;
    font-size: 0.74rem;
}

.tercih-sonuc-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    white-space: nowrap;
    vertical-align: middle;
}

.tercih-sonuc-table tbody td {
    vertical-align: middle;
    border-color: #eef2f7;
    color: #0f172a;
    font-weight: 600;
}

.tercih-sonuc-table tbody tr:hover {
    background: #fafbff;
}

.tercih-sonuc-action-cell {
    white-space: nowrap;
    width: 4.5rem;
}

.tercih-sonuc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    margin: 0 0.1rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.68rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.tercih-sonuc-action--add {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #059669;
}

.tercih-sonuc-action--add:hover {
    background: #dcfce7;
    transform: scale(1.05);
}

.tercih-sonuc-action--remove {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.tercih-sonuc-action--remove:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

.tercih-toolbar-btn,
.modern-print-btn,
.modern-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tercih-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.tercih-toolbar-btn:hover,
.modern-print-btn:hover,
.modern-sort-btn:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
    color: var(--tercih-text);
}

.modern-dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--tercih-border);
    box-shadow: var(--tercih-shadow-lg);
    padding: 0.35rem;
}

.modern-dropdown-item {
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tercih-sonuc-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--tercih-radius);
    border: 1px solid var(--tercih-border);
    background: #fff;
    box-shadow: var(--tercih-shadow);
    overflow: hidden;
}

.tercih-sonuc-card__body.sonuclistecicard {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    height: calc(100dvh - 16rem);
    min-height: 420px;
}

.PnlResult {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7d2fe transparent;
}

.PnlResult table {
    width: 100% !important;
    min-width: 1100px;
}

.PnlResult .dataTables_scrollBody {
    max-height: 100% !important;
    overflow: auto !important;
}

/* Boş durum */
.tercih-empty-state,
#noResultCard {
    flex: 1 1 auto;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 14rem;
    padding: 2rem 1.25rem;
    text-align: center;
    border-radius: var(--tercih-radius);
    border: 1px dashed #c7d2fe;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.tercih-empty-state.is-visible,
#noResultCard[style*="block"] {
    display: flex !important;
}

.tercih-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--tercih-radius);
    background: linear-gradient(135deg, var(--tercih-primary) 0%, var(--tercih-accent) 100%);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.tercih-empty-state__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--tercih-text);
}

.tercih-empty-state__text {
    margin: 0;
    max-width: 28rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--tercih-muted);
}

/* Tablo / aksiyon butonları (partial uyumu) */
.modern-datatable thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tercih-muted);
    border-bottom: 1px solid var(--tercih-border);
}

.modern-action-btn,
.modern-kosul-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #c7d2fe;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4f46e5;
}

.modern-action-btn:hover,
.modern-kosul-btn:hover {
    background: #f5f3ff;
}

/* Modal — premium */
.tercih-premium-modal .modal-content,
.modern-modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--tercih-shadow-lg);
}

.tercih-premium-modal .modal-header,
.modern-modal-header {
    border: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--tercih-primary) 0%, var(--tercih-accent) 100%);
    color: #fff;
}

.tercih-premium-modal .modal-title,
.modern-modal-header .modal-title {
    font-weight: 800;
    color: #fff;
}

.tercih-premium-modal .modal-body,
.modern-modal-body {
    padding: 1.25rem;
}

.tercih-premium-modal .modal-footer,
.modern-modal-footer {
    border-top: 1px solid #eef2f7;
    padding: 0.85rem 1.25rem;
    background: #fafbff;
}

.tercih-sepet-modal-host .modal-dialog {
    width: min(68rem, calc(100vw - 1.5rem));
    max-width: min(68rem, calc(100vw - 1.5rem));
    margin: 1rem auto;
}

.tercih-sepet-modal-host .modal-dialog.tercih-modal-drag-active {
    margin: 0;
}

.tercih-sepet-modal-host .modal-content,
.modal-content.tercih-sepet-modal {
    height: auto;
    min-height: 0;
    max-height: min(82vh, 760px);
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--tercih-shadow-lg);
}

.tercih-sepet-modal-host .modal-content:has(.tercih-sepet-table-wrap),
.modal-content.tercih-sepet-modal:has(.tercih-sepet-table-wrap) {
    height: min(78vh, 720px);
    min-height: 26rem;
}

.tercih-sepet-modal-host .modal-content:has(.tercih-sepet-empty),
.modal-content.tercih-sepet-modal:has(.tercih-sepet-empty) {
    min-height: 20rem;
    max-height: min(62vh, 32rem);
}

/* Modal sürükleme */
.tercih-modal-drag-handle {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.tercih-modal-drag-handle.tercih-modal-dragging {
    cursor: grabbing;
}

.tercih-modal-draggable .tercih-sepet-modal__close,
.tercih-modal-draggable .modal-header button {
    cursor: pointer;
}

.tercih-sepet-modal__shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
}

.tercih-sepet-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--tercih-primary) 0%, var(--tercih-accent) 100%);
    color: #fff;
    flex-shrink: 0;
}

.tercih-sepet-modal__header-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.tercih-sepet-modal__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.tercih-sepet-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.tercih-sepet-modal__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.tercih-sepet-modal__header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.tercih-sepet-modal__count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--tercih-primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.tercih-sepet-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.tercih-sepet-modal__close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}

.tercih-sepet-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.85rem 0.85rem;
    background: linear-gradient(180deg, #fafbff 0%, #fff 120px);
}

.tercih-sepet-modal__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    flex-shrink: 0;
}

.tercih-sepet-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tercih-sepet-tool:hover:not(:disabled) {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.tercih-sepet-tool:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tercih-sepet-tool--danger {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.tercih-sepet-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border: 1px solid #e8eaf4;
    border-radius: 12px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #c7d2fe transparent;
}

.tercih-sepet-table {
    margin: 0;
    font-size: 0.72rem;
}

.tercih-sepet-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    white-space: nowrap;
    vertical-align: middle;
}

.tercih-sepet-table tbody td {
    vertical-align: middle;
    border-color: #eef2f7;
    color: #0f172a;
    font-weight: 600;
}

.tercih-sepet-table tbody tr:hover {
    background: #fafbff;
}

.tercih-sepet-table .handle {
    width: 1.5rem;
    text-align: center;
    color: #94a3b8;
    cursor: grab;
}

.tercih-kosul-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    margin: 0.1rem;
    padding: 0 0.35rem;
    border: 1px solid #fde68a;
    border-radius: 7px;
    background: #fffbeb;
    color: #b45309;
    font-size: 0.62rem;
    font-weight: 800;
}

.tercih-sepet-row-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
}

.tercih-sepet-row-delete:hover {
    background: #fef2f2;
}

.tercih-sepet-empty {
    flex: 0 1 auto;
    min-height: 9rem;
    padding: 1.5rem 1rem 2rem;
}

.tercih-sepet-modal .modal-body {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Bilgilendirme modal içeriği */
.info-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon-container {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: var(--tercih-primary);
    font-size: 1.25rem;
}

.info-paragraph {
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--tercih-text);
}

.info-link {
    color: var(--tercih-primary);
    font-weight: 700;
}

.warning-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 0.82rem;
    font-weight: 600;
    color: #9a3412;
}

.warning-icon {
    color: #ea580c;
}

/* Footer */
.tercih-premium-footer {
    margin-top: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--tercih-border);
    background: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--tercih-muted);
    line-height: 1.45;
}

/* Eski sınıf uyumu */
.modern-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.modern-header,
.modern-logo,
.modern-title,
.modern-footer {
    display: none;
}

.modern-select-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (max-width: 991.98px) {
    .tercih-layout {
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .tercih-filtre-panel {
        flex: 0 1 auto;
        width: 100%;
        height: auto;
        max-height: 42%;
    }

    .tercih-filtre-form__scroll {
        max-height: none;
    }

    .tercih-sonuc-host {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }

    .tercih-sonuc-card__body.sonuclistecicard {
        height: auto;
        min-height: 0;
    }

    .tercih-page-header__toolbar {
        width: 100%;
        margin-left: 0;
    }

    .tercih-header-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .tercih-premium-page .content-wrapper {
        padding: 0.45rem 0.5rem 0.25rem;
    }

    body.tercih-premium-page {
        padding-top: max(0.45rem, env(safe-area-inset-top, 0px));
    }

    .tercih-range-group {
        grid-template-columns: 1fr;
    }

    .tercih-filtre-actions {
        flex-direction: column;
    }
}
