/* ts-select-theme.blade.php icinden 25.11.2026'da harici dosyaya alindi.
   Isaret: .select2-container
   Blade'e geri tasima: her sayfada tekrar eder ve onbellege girmez. */
/* ══════════════ SELECT2 (tek seçim) → şık .tsel görünümü ══════════════ */
/* FIX (06.07): filtre/liste barlarında native→select2 çevrilen kutular genişliği sıfıra çöküyordu
   (boş "^" kutu). min-width ile artık hiçbir select2 kaybolmaz — TÜM admin liste sayfalarını düzeltir. */
.select2-container{ min-width:180px; }
.select2-container--default .select2-selection--single{
    height:auto; min-height:46px; border:1.5px solid #e2e7f0; border-radius:12px;
    background:#f9fafc; padding:5px 10px; display:flex; align-items:center; transition:.15s;
}
.select2-container--default .select2-selection--single:hover{ border-color:#c9d3e3; }
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single{
    border-color:#2563eb; background:#fff; box-shadow:0 0 0 4px rgba(37,99,235,.13);
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    color:#0f2240; font-weight:600; font-size:14px; line-height:1.5; padding-left:4px; padding-right:22px;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder{ color:#aab2c2; font-weight:500; }
/* ok işareti → SVG chevron (döner) */
.select2-container--default .select2-selection--single .select2-selection__arrow{
    height:100%; top:0; right:12px; width:16px; background:transparent;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b{ display:none !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow:after{
    content:""; position:absolute; right:0; top:50%; width:14px; height:14px; margin-top:-7px;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A4F9E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center/14px;
    transition:transform .2s;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow:after{ transform:rotate(180deg); }
/* temizle (x) butonu görünür kalsın */
.select2-container--default .select2-selection--single .select2-selection__clear{ color:#94a3b8; font-weight:700; margin-right:6px; }

/* açılır panel */
.select2-dropdown{
    border:1px solid #e8edf5; border-radius:14px; box-shadow:0 24px 48px -18px rgba(15,34,64,.4);
    overflow:hidden; padding:6px; background:#fff;
}
.select2-container--open .select2-dropdown--below{ margin-top:8px; }
.select2-container--open .select2-dropdown--above{ margin-bottom:8px; }
.select2-container--default .select2-results>.select2-results__options{ max-height:264px; }
.select2-results__option{
    border-radius:10px; padding:11px 12px !important; font-size:13.5px; font-weight:600; color:#33415c; transition:.12s;
}
.select2-container--default .select2-results__option--highlighted[aria-selected]{ background:#f2f6fc; color:#0A4F9E; }
.select2-container--default .select2-results__option[aria-selected=true]{
    color:#0A4F9E; font-weight:800; padding-right:34px !important;
    background:linear-gradient(135deg,#eef4ff,#e5efff),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat right 12px center;
}
/* panel içi arama kutusu */
.select2-container--default .select2-search--dropdown{ padding:4px 4px 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field{
    border:1.5px solid #e2e7f0; border-radius:10px; padding:9px 11px; font-size:13.5px; outline:none; transition:.15s;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus{ border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); }

/* ══════════════ DÜZ NATIVE <select> (select2 OLMAYAN) → kutu + ok stili ══════════════ */
select.form-control:not(.select2-hidden-accessible):not([multiple]),
select.custom-select:not(.select2-hidden-accessible):not([multiple]),
select.ts-native:not(.select2-hidden-accessible):not([multiple]){
    -webkit-appearance:none; -moz-appearance:none; appearance:none;
    border:1.5px solid #e2e7f0; border-radius:12px; min-height:46px; padding:10px 38px 10px 14px;
    font-size:14px; color:#0f2240; background-color:#f9fafc;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A4F9E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 13px center; background-size:14px;
    transition:.15s; cursor:pointer;
}
select.form-control:not(.select2-hidden-accessible):not([multiple]):hover,
select.custom-select:not(.select2-hidden-accessible):not([multiple]):hover{ border-color:#c9d3e3; }
select.form-control:not(.select2-hidden-accessible):not([multiple]):focus,
select.custom-select:not(.select2-hidden-accessible):not([multiple]):focus{
    border-color:#2563eb; background-color:#fff; box-shadow:0 0 0 4px rgba(37,99,235,.13); outline:none;
}

/* ══════════════ ZENGİN METİN EDİTÖRÜ (TinyMCE / .tox) → şık toolbar ══════════════ */
.tox.tox-tinymce{ border:1.5px solid #e2e7f0 !important; border-radius:13px !important; overflow:hidden !important; box-shadow:none !important; }
.tox:not(.tox-tinymce-inline) .tox-editor-header{ box-shadow:none !important; border-bottom:1px solid #eef1f6 !important;
    background:linear-gradient(180deg,#fbfcfe,#f3f7fc) !important; padding:5px 8px !important; }
.tox .tox-menubar{ background:transparent !important; padding:0 !important; }
.tox .tox-toolbar, .tox .tox-toolbar__primary, .tox .tox-toolbar-overlord{ background:transparent !important; }
.tox .tox-mbtn{ border-radius:8px !important; color:#33415c !important; font-weight:600 !important; height:30px !important; }
.tox .tox-mbtn:hover:not(:disabled), .tox .tox-mbtn--active{ background:#e7eefb !important; color:#0A4F9E !important; }
.tox .tox-tbtn{ border-radius:8px !important; color:#33415c !important; margin:1px !important; }
.tox .tox-tbtn:hover{ background:#e7eefb !important; color:#0A4F9E !important; }
.tox .tox-tbtn--enabled, .tox .tox-tbtn--enabled:hover{ background:#dbe8ff !important; color:#0A4F9E !important; }
.tox .tox-tbtn svg, .tox .tox-mbtn svg{ fill:#4a5878 !important; }
.tox .tox-tbtn:hover svg, .tox .tox-mbtn:hover svg, .tox .tox-tbtn--enabled svg{ fill:#0A4F9E !important; }
.tox .tox-tbtn__select-label{ color:#33415c !important; font-weight:600 !important; }
.tox .tox-statusbar{ border-top:1px solid #eef1f6 !important; background:#fbfcfe !important; color:#8a96ab !important; }
.tox .tox-toolbar__group{ border-color:#e8edf5 !important; }
/* açılan menüler (renk/biçim) da uyumlu */
.tox .tox-collection__item--active{ background:#eef4ff !important; color:#0A4F9E !important; }
.tox .tox-collection__item--enabled{ background:#dbe8ff !important; }

/* ══════════════ GÖRSEL/DOSYA YÜKLEME (FileHelper) → tutarlı buton + dropzone ══════════════ */
.btn-field-upload{
    display:inline-flex !important; align-items:center; gap:7px;
    background:linear-gradient(135deg,#2563eb,#1d4ed8) !important; border:none !important; color:#fff !important;
    border-radius:10px !important; padding:10px 18px !important; font-weight:700 !important; font-size:13px !important;
    box-shadow:0 8px 18px -10px rgba(37,99,235,.55) !important; cursor:pointer; transition:.15s; line-height:1.2 !important;
}
.btn-field-upload:hover, .btn-field-upload:focus{ transform:translateY(-1px); filter:brightness(1.06); color:#fff !important; }
.btn-field-upload i{ font-size:14px; }
/* ── Tekli görsel yükleme (logo/avatar/favicon) → TEMİZ KART ── */
.dungdt-upload-box-normal{ display:flex !important; align-items:center; gap:16px; flex-wrap:wrap;
    border:1.5px solid #e6ebf3; border-radius:14px; background:#fbfcfe; padding:14px 16px; }
/* boş durum: dropzone tam genişlik */
.dungdt-upload-box-normal .upload-box{ flex:1 1 100%; margin:0; cursor:pointer; text-align:center;
    border:2px dashed #c9d8ef !important; border-radius:12px !important;
    background:linear-gradient(180deg,#f7fbff,#eef6ff) !important; padding:20px 16px !important; transition:.16s; }
.dungdt-upload-box-normal .upload-box:hover{ border-color:#2563eb !important; background:#e9f3ff !important; }
/* önizleme çerçevesi */
.dungdt-upload-box-normal .attach-demo{ width:150px; height:92px; margin:0; flex-shrink:0; cursor:pointer;
    border:1px solid #e6ebf3; border-radius:12px; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.dungdt-upload-box-normal .attach-demo img, .dungdt-upload-box-normal .attach-demo .image-responsive{
    max-width:100% !important; max-height:100% !important; height:auto !important; width:auto !important;
    object-fit:contain; border:none !important; padding:6px !important; border-radius:0 !important; background:transparent !important; }
/* görsel yok / bozuk → placeholder */
.dungdt-upload-box-normal .attach-demo.ts-empty{ border-style:dashed; border-color:#cdd9ee; color:#9aa6b8;
    font-size:11.5px; font-weight:700; flex-direction:column; gap:5px; background:#f8fbff; }
.dungdt-upload-box-normal .attach-demo.ts-empty::before{ content:"\1F5BC\FE0F"; font-size:24px; opacity:.55; }
.dungdt-upload-box-normal .attach-demo.ts-empty::after{ content:"Görsel yok"; }
.dungdt-upload-box-normal .attach-demo.ts-empty img{ display:none !important; }
/* butonlar */
.dungdt-upload-box-normal .upload-actions{ display:flex; gap:10px; margin:0; }
.dungdt-upload-box-normal .upload-actions .btn{ border-radius:10px !important; font-size:12.5px !important; font-weight:700 !important; padding:9px 15px !important; display:inline-flex !important; align-items:center; gap:7px; }
.dungdt-upload-box-normal .upload-actions .btn i{ display:inline-block !important; font-style:normal; }
.dungdt-upload-box-normal .upload-actions .edit-img.btn{ background:linear-gradient(135deg,#2563eb,#1d4ed8) !important; border:none !important; color:#fff !important; }
.dungdt-upload-box-normal .upload-actions .edit-img.btn:after{ content:"Düzenle"; }
.dungdt-upload-box-normal .upload-actions .delete.btn{ background:#fff5f7 !important; color:#e11d48 !important; border:1px solid #fbd5dd !important; }
.dungdt-upload-box-normal .upload-actions .delete.btn:after{ content:"Sil"; }
/* ── 24.11.2026 SADE YÜKLEME KUTUSU: büyük çizim yerine ince tek satırlık şerit ── */
.dungdt-upload-box-normal{ padding:10px 12px; gap:12px; }
.dungdt-upload-box-normal .upload-box{ flex:1 1 260px; display:flex; align-items:center; justify-content:flex-start; gap:12px;
    padding:10px 14px !important; border-width:1.5px !important; min-height:0 !important; }
.dungdt-upload-box-normal .upload-box > .text-center{ display:flex; align-items:center; margin:0 !important; padding:0 !important; }
.dungdt-upload-box-normal .upload-box svg{ width:30px !important; height:30px !important; max-width:30px !important; flex:0 0 30px; }
.dungdt-upload-box-normal .upload-box::after{ content:"Tıkla ya da dosyayı buraya sürükle"; font-size:12.5px; color:#64748b; font-weight:600; }
.dungdt-upload-box-normal .btn-field-upload{ padding:8px 14px !important; font-size:12.5px !important; box-shadow:none !important; }
/* görsel yokken "Görsel yok" kutusu gösterilmez; yüklenince önizleme kendiliğinden çıkar */
.dungdt-upload-box-normal .attach-demo:not(:has(img)){ display:none !important; }
.dungdt-upload-box-normal .attach-demo{ width:120px; height:76px; }
@media (max-width:560px){ .dungdt-upload-box-normal .upload-box::after{ display:none; } }
/* tekrarlı öğe şablonu asla görünmesin (fazladan boş öğe engellenir) */
.g-more{ display:none !important; }
