/* Tercih Sonuç Paneli — premium liste kabuğu */

.tercih-sonuc-host {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tercih-sonuc-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow:
        0 16px 48px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    overflow: hidden;
}

.tercih-sonuc-shell__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #6366f1 100%);
    z-index: 3;
}

.tercih-sonuc-shell__head {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    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-sonuc-shell__head-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 14rem;
}

.tercih-sonuc-shell__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-sonuc-shell__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.tercih-sonuc-shell__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.45;
    color: #64748b;
}

.tercih-sonuc-shell__head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-left: auto;
}

.tercih-sonuc-shell__body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.tercih-sonuc-placeholder {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1.25rem;
    text-align: center;
    border-radius: 14px;
    border: 1px dashed rgba(129, 140, 248, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tercih-sonuc-placeholder.d-none {
    display: none !important;
}

.tercih-sonuc-placeholder__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 10px 28px rgba(102, 126, 234, 0.32);
}

.tercih-sonuc-placeholder__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.tercih-sonuc-placeholder__text {
    margin: 0;
    max-width: 30rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #64748b;
}

.tercih-sonuc-table-host {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid #e8eaf4;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.tercih-sonuc-table-host.d-none {
    display: none !important;
}

.tercih-sonuc-table-host .PnlResult {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0;
}

.tercih-sonuc-loading {
    position: absolute;
    inset: 0.75rem;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    font-size: 0.78rem;
    font-weight: 700;
    color: #667eea;
}

.tercih-sonuc-loading.d-none {
    display: none !important;
}

.tercih-sonuc-shell__body.tercih-sonuc-shell__body--busy .tercih-sonuc-table-host,
.tercih-sonuc-shell__body.tercih-sonuc-shell__body--busy .tercih-sonuc-placeholder {
    opacity: 0.45;
    pointer-events: none;
}

/* DataTables premium override */
.tercih-sonuc-table-host .dataTables_wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.65rem 0.65rem;
}

.tercih-dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 11px;
    border: 1px solid #eef2ff;
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.tercih-dt-toolbar .dataTables_length label,
.tercih-dt-toolbar .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.tercih-dt-toolbar .dataTables_filter input,
.tercih-dt-toolbar .dataTables_length select {
    min-height: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 0.28rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.tercih-dt-toolbar .dataTables_filter input:focus,
.tercih-dt-toolbar .dataTables_length select:focus {
    border-color: #818cf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.tercih-dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid #eef2f7;
}

.tercih-dt-footer .dataTables_info {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.tercih-dt-footer .pagination {
    gap: 0.25rem;
    margin: 0;
}

.tercih-dt-footer .page-link {
    border-radius: 8px !important;
    border-color: #e2e8f0 !important;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4338ca;
}

.tercih-dt-footer .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.tercih-sonuc-table-host .dataTables_scroll {
    border-radius: 11px;
    border: 1px solid #eef2f7;
    overflow: hidden;
}

.tercih-sonuc-table-host .dataTables_scrollHead {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.tercih-sonuc-table-host .dataTables_scrollBody {
    border-top: 1px solid #eef2f7;
}

.tercih-sonuc-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.76rem;
}

.tercih-sonuc-table thead th {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
    vertical-align: middle;
    background: transparent;
}

.tercih-sonuc-table tbody td {
    padding: 0.52rem 0.6rem;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    vertical-align: middle;
}

.tercih-sonuc-table tbody tr:nth-child(even) td {
    background: #fafbff;
}

.tercih-sonuc-table tbody tr:hover td {
    background: linear-gradient(90deg, #f5f3ff 0%, #eef2ff 100%);
}

.tercih-sonuc-table .tercih-sonuc-col-kod {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.7rem;
    color: #4338ca;
    white-space: nowrap;
}

.tercih-sonuc-table .tercih-sonuc-col-bolum {
    min-width: 12rem;
    max-width: 18rem;
    line-height: 1.35;
}

.tercih-sonuc-table .tercih-sonuc-col-uni {
    min-width: 10rem;
    max-width: 14rem;
    line-height: 1.35;
}

.tercih-sonuc-action-cell {
    width: 4.25rem;
    white-space: nowrap;
}

.tercih-sonuc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin: 0 0.08rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.68rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.tercih-sonuc-action--add {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #059669;
}

.tercih-sonuc-action--add:hover {
    background: #dcfce7;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.15);
    transform: translateY(-1px);
}

.tercih-sonuc-action--remove {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.tercih-sonuc-action--remove:hover {
    background: #fee2e2;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.12);
    transform: translateY(-1px);
}

.tercih-kosul-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    margin: 0.08rem;
    padding: 0 0.35rem;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #b45309;
    font-size: 0.62rem;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .tercih-sonuc-host {
        min-height: 0;
    }

    .tercih-sonuc-shell__head-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}
