﻿/* ==========================================================================
   Ortak bileşenler: SternDT (Scripts/ortak/sternDataTable.js), SternMesaj (Scripts/ortak/sternMesaj.js) ve SternKisiSecici (Scripts/ortak/sternKisiSecici.js)
   Renkler tema paletinden (--tema-*) gelir; gece modu en altta.
   ========================================================================== */

/* ---------- Mesaj kartları (SternMesaj, MesajGoster/HataGoster, eski $.smallBox) ----------
   Anlık bildirim kartlarıyla (_AnlikBildirimler .ab-toast) aynı dil: beyaz kart, türün renginde sol kenar ve ikon,
   sağ üstte üst üste; altta kalan süre çubuğu, üzerine gelince durur. */
.sm-kap {
    position: fixed; top: 62px; right: 18px; z-index: 100050; display: flex; flex-direction: column; gap: 8px;
    width: 380px; max-width: calc(100vw - 28px); pointer-events: none;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}
.sm-kart {
    --sm-renk: var(--tema-orta, #2b4f86); --sm-zemin: var(--tema-yumusak, #e9eef6);
    position: relative; display: flex; gap: 11px; padding: 12px 12px 14px 14px; overflow: hidden;
    border: 1px solid #e3e8ef; border-left: 4px solid var(--sm-renk); border-radius: 10px; background: #fff; color: #24303d;
    box-shadow: 0 12px 32px rgba(36, 48, 61, .18); pointer-events: auto; cursor: pointer; animation: sm-gir .2s ease-out;
}
.sm-kart.sm-basari { --sm-renk: #2e9d63; --sm-zemin: #e8f6ee; }
.sm-kart.sm-hata { --sm-renk: #c9453b; --sm-zemin: #fbeceb; }
.sm-kart.sm-uyari { --sm-renk: #d9822b; --sm-zemin: #fdf3e7; }
.sm-ikon {
    flex: 0 0 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 9px; background: var(--sm-zemin); color: var(--sm-renk); font-size: 16px;
}
.sm-govde { flex: 1 1 auto; min-width: 0; padding-top: 1px; }
.sm-baslik { font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.sm-icerik { max-height: 40vh; margin-top: 3px; overflow-y: auto; color: #4f5b69; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.sm-icerik a { color: var(--tema-orta, #2b4f86); text-decoration: underline; }
.sm-kapat {
    flex: 0 0 auto; align-self: flex-start; width: 24px; height: 24px; margin: -2px -2px 0 0; padding: 0;
    border: 0; border-radius: 6px; background: transparent; color: #6b7785; font-size: 12px; line-height: 24px;
}
.sm-kapat:hover, .sm-kapat:focus { background: #f6f8fb; color: #c9453b; outline: 0; }
.sm-kapat:focus-visible { box-shadow: 0 0 0 2px var(--sm-renk); }
/* Kalan süre */
.sm-sure { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sm-zemin); }
.sm-sure > span { display: block; height: 100%; background: var(--sm-renk); opacity: .55; transform-origin: left center; animation: sm-sure linear forwards; }
.sm-kart.sm-durdu .sm-sure > span { animation-play-state: paused; }
.sm-kart.sm-cik { animation: sm-cik .2s ease-in forwards; }
.stern-mesaj-liste { margin: 2px 0 0; padding-left: 18px; }
.stern-mesaj-liste li { margin: 2px 0; }
@keyframes sm-gir { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes sm-cik { to { opacity: 0; transform: translateX(16px); } }
@keyframes sm-sure { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 600px) {
    .sm-kap { top: 56px; left: 10px; right: 10px; width: auto; max-width: none; }
}
/* Hareket kapalıyken süre çubuğu da gösterilmez (kartlar yine süresi dolunca kapanır) */
html.tema-hareketsiz .sm-sure { display: none; }
@media (prefers-reduced-motion: reduce) {
    .sm-kart, .sm-kart.sm-cik { animation: none; }
    .sm-sure { display: none; }
}

/* ---------- Üst araç çubuğu: butonlar | genel arama | kayıt sayısı ---------- */
.dataTables_wrapper .sdt-ustbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    float: none; width: auto; margin: 0; padding: 0 0 10px; border: 0; background: transparent; box-shadow: none;
}
.dataTables_wrapper .sdt-ustbar::before, .dataTables_wrapper .sdt-ustbar::after,
.dataTables_wrapper .sdt-altbar::before, .dataTables_wrapper .sdt-altbar::after { display: none; }
.dataTables_wrapper .sdt-ustbar > div, .dataTables_wrapper .sdt-altbar > div { float: none; width: auto; padding: 0; }

.sdt-butonlar { flex: 1 1 auto; min-width: 0; }
.sdt-butonlar .dt-buttons { display: flex; flex-wrap: wrap; gap: 4px; float: none; width: auto; margin: 0; text-align: left; }
.sdt-butonlar .dt-buttons > .btn,
.sdt-butonlar .dt-buttons .btn-group > .btn { float: none; margin: 0 !important; border-radius: 6px !important; }

/* ---------- Buton renkleri: her buton kendi işinin rengini taşır (tema paletinden bağımsız) ----------
   Görünüm temayla aynı dili konuşur (yumuşak zemin + koyu yazı, üzerine gelince dolu renk) ama renkler temanın
   kendi renklerinden farklıdır: Yeni camgöbeği, Güncelle kehribar, Sil kırmızı çerçeve, Yenile mavi, Excel Excel
   yeşili, PDF kırmızı, Sütunlar mor, Temizle ve sayfanın eklediği ek butonlar arduvaz grisi.
   --sdt-renk: dolu zemin, --sdt-yazi: yumuşak zemindeki yazı, --sdt-zemin: yumuşak zemin, --sdt-acik: gece modu yazısı. */
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn { --sdt-renk: #475569; --sdt-yazi: #334155; --sdt-zemin: #eef1f5; --sdt-acik: #b8c2d0; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-yeni { --sdt-renk: #0f766e; --sdt-yazi: #115e59; --sdt-zemin: #e3f4f2; --sdt-acik: #5eead4; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-guncelle { --sdt-renk: #b45309; --sdt-yazi: #92400e; --sdt-zemin: #fdf2e1; --sdt-acik: #fbbf5a; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-sil { --sdt-renk: #dc2626; --sdt-yazi: #b91c1c; --sdt-zemin: #fff; --sdt-acik: #fca5a5; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-yenile { --sdt-renk: #0369a1; --sdt-yazi: #075985; --sdt-zemin: #e5f1f8; --sdt-acik: #7cc4ee; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-excel { --sdt-renk: #217346; --sdt-yazi: #185c37; --sdt-zemin: #e6f2ec; --sdt-acik: #7fd1a3; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-pdf { --sdt-renk: #b91c1c; --sdt-yazi: #991b1b; --sdt-zemin: #fbeaea; --sdt-acik: #f19999; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-sutunlar { --sdt-renk: #6d28d9; --sdt-yazi: #5b21b6; --sdt-zemin: #f0eafb; --sdt-acik: #c4a8f5; }

.dataTables_wrapper .sdt-butonlar .dt-buttons .btn {
    padding: 5px 11px; border: 1px solid transparent; background: var(--sdt-zemin); background-image: none;
    color: var(--sdt-yazi); font-weight: 600; text-shadow: none; box-shadow: none;
    transition: background-color .12s, color .12s, border-color .12s;
}
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn .fa { margin-right: 1px; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn:hover,
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn:focus,
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn:active,
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.active {
    border-color: var(--sdt-renk); background: var(--sdt-renk); color: #fff; outline: 0;
}
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn:focus-visible { box-shadow: 0 0 0 3px rgba(71, 85, 105, .25); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
    .dataTables_wrapper .sdt-butonlar .dt-buttons .btn:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sdt-renk) 30%, transparent); }
}

/* Sil yanlışlıkla basılmasın diye dolu değil, kırmızı çerçeveli */
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-sil { border-color: var(--sdt-renk); }

/* Pasif (seçim bekleyen) butonlar: üzerine gelince renk değişmez */
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.disabled,
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.disabled:hover { opacity: .45; cursor: not-allowed; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.disabled:hover,
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.disabled:focus { border-color: transparent; background: var(--sdt-zemin); color: var(--sdt-yazi); }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-sil.disabled:hover,
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-sil.disabled:focus { border-color: var(--sdt-renk); }

/* Excel/PDF hazırlanırken dönen gösterge butonun renginde */
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.processing { color: transparent !important; }
.dataTables_wrapper .sdt-butonlar .dt-buttons .btn.processing::after { border-color: var(--sdt-renk); border-left-color: transparent; border-right-color: transparent; }

/* Sütunlar menüsü */
.dt-button-collection.dropdown-menu > li > a { padding: 5px 14px; }
.dt-button-collection.dropdown-menu > li > a:hover { background: var(--tema-yumusak, #e9eef6); color: var(--tema-orta, #2b4f86); }
.dt-button-collection.dropdown-menu > li.active > a,
.dt-button-collection.dropdown-menu > li.active > a:hover { background: var(--tema-orta, #2b4f86); color: #fff; }

/* Sayfalama butonları */
.dataTables_wrapper .sdt-altbar .pagination > li > a,
.dataTables_wrapper .sdt-altbar .pagination > li > span { margin: 0 2px; border-color: #e3e8ef; border-radius: 6px !important; color: var(--tema-orta, #2b4f86); }
.dataTables_wrapper .sdt-altbar .pagination > li > a:hover { background: var(--tema-yumusak, #e9eef6); border-color: var(--tema-yumusak, #e9eef6); }
.dataTables_wrapper .sdt-altbar .pagination > .active > a,
.dataTables_wrapper .sdt-altbar .pagination > .active > a:hover,
.dataTables_wrapper .sdt-altbar .pagination > .active > span { background: var(--tema-orta, #2b4f86); border-color: var(--tema-orta, #2b4f86); color: #fff; }
.dataTables_wrapper .sdt-altbar .pagination > .disabled > a,
.dataTables_wrapper .sdt-altbar .pagination > .disabled > a:hover { background: transparent; color: #b5bec9; }

.sdt-arama { flex: 0 1 300px; min-width: 180px; }
/* Filtre satırı: DataTables Bootstrap 5 kenarlıklı başlıkta her satıra üst kenarlık verir; filtre satırı başlığa bitişik kalır */
table.dataTable.table-bordered > thead > tr > .sdt-filtre { border-top-width: 0; }
.sdt-arama .dataTables_filter { position: relative; float: none; width: 100%; margin: 0; text-align: left; }
/* DataTables Bootstrap 5: label (ikon) ve input kardeş; ikon kutunun soluna yerleşir */
.sdt-arama .dataTables_filter label { position: absolute; left: 0; top: 0; bottom: 0; width: 34px; margin: 0; font-weight: 400; z-index: 1; pointer-events: none; }
.sdt-arama .dataTables_filter input {
    display: block; width: 100% !important; height: 30px; margin: 0 !important; padding: 4px 10px 4px 28px;
    border-radius: 6px; box-sizing: border-box;
}
.sdt-ara-ikon { position: absolute; left: 10px; top: 50%; margin-top: -7px; color: #8e9bab; pointer-events: none; }

.sdt-uzunluk { flex: 0 0 auto; }
.sdt-uzunluk .dataTables_length { float: none; margin: 0; }
.sdt-uzunluk .dataTables_length label { margin: 0; font-weight: 400; white-space: nowrap; }
.sdt-uzunluk .dataTables_length select { display: inline-block; width: auto; height: 30px; margin: 0 4px; border-radius: 6px; }

/* ---------- Alt çubuk: bilgi | sayfalama ---------- */
.dataTables_wrapper .sdt-altbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
    float: none; width: auto; margin: 0; padding: 10px 0 0; border: 0; background: transparent; box-shadow: none;
}
.sdt-altbar .dataTables_info { padding: 0 !important; white-space: normal; }
/* Alt çubuğa sayfanın eklediği işlem butonu (ör. Sipariş İşlemleri > Toplu Sonuç Ekle): üst çubuk butonlarıyla aynı görünüm, tema renginde */
.dataTables_wrapper .sdt-altbar .btn.sdt-alt-btn {
    --sdt-renk: var(--tema-orta, #2b4f86); --sdt-yazi: var(--tema-koyu, #1f3b66); --sdt-zemin: var(--tema-yumusak, #e9eef6); --sdt-acik: #9cc0f0;
    padding: 5px 11px; border: 1px solid transparent; border-radius: 6px; background: var(--sdt-zemin); background-image: none;
    color: var(--sdt-yazi); font-size: 12px; font-weight: 600; text-shadow: none; box-shadow: none;
    transition: background-color .12s, color .12s, border-color .12s;
}
.dataTables_wrapper .sdt-altbar .btn.sdt-alt-btn:hover,
.dataTables_wrapper .sdt-altbar .btn.sdt-alt-btn:focus,
.dataTables_wrapper .sdt-altbar .btn.sdt-alt-btn:active { border-color: var(--sdt-renk); background: var(--sdt-renk); color: #fff; outline: 0; }
.dataTables_wrapper .sdt-altbar .btn.sdt-alt-btn:focus-visible { box-shadow: 0 0 0 3px rgba(71, 85, 105, .25); }
html.tema-gece .dataTables_wrapper .sdt-altbar .btn.sdt-alt-btn { background: var(--gece-yuzey-2, #212733); border-color: var(--gece-kenar, #2f3746); color: var(--sdt-acik); }
html.tema-gece .dataTables_wrapper .sdt-altbar .btn.sdt-alt-btn:hover,
html.tema-gece .dataTables_wrapper .sdt-altbar .btn.sdt-alt-btn:focus { background: var(--sdt-renk); border-color: var(--sdt-renk); color: #fff; }
.sdt-altbar .dataTables_info .select-info { margin-left: 6px; font-weight: 700; }
.sdt-altbar .dataTables_paginate { margin: 0; text-align: right; }
.sdt-altbar .pagination { margin: 0 !important; }

/* ---------- Tablo ---------- */
.dataTables_wrapper .sdt-tablo { position: relative; clear: both; }
.dataTables_wrapper.sdt-kaydirmali .sdt-tablo { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.dataTable.sdt-tablo-govde { margin: 0 !important; }
table.dataTable.sdt-tablo-govde td.sdt-sayi, table.dataTable.sdt-tablo-govde th.sdt-sayi { text-align: right; white-space: nowrap; }
table.dataTable.sdt-tablo-govde td.sdt-tarih { white-space: nowrap; }
/* Tarih + saat: saat alt satırda, küçük ve soluk (renk satırdan gelir; seçili satırda / gece modunda da okunur) */
.sdt-saat { display: block; font-size: 11px; line-height: 1.25; color: inherit; opacity: .7; }
table.dataTable.sdt-tablo-govde td.sdt-islem { width: 1%; white-space: nowrap; }
table.dataTable.sdt-tablo-govde td { word-break: break-word; }
/* Stok kodu / adı sütunları daralmasın (sınıfları sternDataTable.js başlık metninden ekler; sayfa kendi tablosu için büyütebilir).
   Sığmazsa responsive tablolarda sağdaki diğer sütunlar detay satırına iner. */
table.dataTable th.sdt-stok-kodu, table.dataTable td.sdt-stok-kodu { min-width: 110px; }
table.dataTable td.sdt-stok-kodu { white-space: nowrap; }
table.dataTable th.sdt-stok-adi, table.dataTable td.sdt-stok-adi { min-width: 200px; }
table.dataTable td.sdt-stok-adi { word-break: normal; overflow-wrap: break-word; }

/* Sütun genişliği: başlığın sağ kenarındaki tutamaç (sternDataTable.js). Ayarlanan tablo sabit düzene geçer, sığmayan içerik kesilir. */
table.dataTable th.sdt-boyutlu { position: relative; }
.sdt-boyut-tut { position: absolute; top: 0; right: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 2; touch-action: none; }
.sdt-boyut-tut:hover, .sdt-boyut-tut.sdt-aktif { background-color: currentColor; opacity: .35; }
body.sdt-boyutlaniyor, body.sdt-boyutlaniyor * { cursor: col-resize !important; -webkit-user-select: none; user-select: none; }
.sdt-genislik-kap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sdt-genislik-kap > table.sdt-sabit, .dataTables_scrollBody > table.sdt-sabit, .dataTables_scrollHeadInner > table.sdt-sabit, .dataTables_scrollFootInner > table.sdt-sabit { table-layout: fixed; min-width: 0 !important; /* sayfanın verdiği en az genişlik kullanıcı ayarını ezmesin */ }
.sdt-genislik-kap > table.sdt-sabit > thead > tr > th, .sdt-genislik-kap > table.sdt-sabit > tbody > tr > td:not(.sdt-islem):not(.child), .dataTables_scrollBody > table.sdt-sabit > tbody > tr > td:not(.sdt-islem):not(.child), .dataTables_scrollHeadInner > table.sdt-sabit > thead > tr > th { overflow: hidden; text-overflow: ellipsis; }

/* Başlık ve satırlar: soluk büyük harf başlık, ince kenarlar, hafif zebra (ana sayfadaki görünüm) */
table.sdt-tablo-govde { border-color: #e3e8ef; }
table.sdt-tablo-govde > thead > tr:not(.sdt-filtre-satir) > th {
    background-color: #f6f8fb; color: #6b7785; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    border-color: #e3e8ef; border-bottom-width: 1px;
}
table.sdt-tablo-govde > tbody > tr > td { border-color: #edf1f5; vertical-align: middle; }
table.sdt-tablo-govde.table-striped > tbody > tr:nth-child(odd) > td { background-color: #fbfcfd; }
table.sdt-tablo-govde.table-hover > tbody > tr:hover > td { background-color: var(--tema-yumusak, #e9eef6); }
.sdt-arama .dataTables_filter input, .sdt-uzunluk .dataTables_length select { border: 1px solid #e3e8ef; box-shadow: none; }
.sdt-arama .dataTables_filter input:focus { border-color: var(--tema-orta, #2b4f86); box-shadow: 0 0 0 3px rgba(43, 79, 134, .12); outline: 0; }

/* Sütun arama satırı: girdiler sütun genişliğini büyütmez, dar ekranda taşmaz */
table.dataTable thead tr.sdt-filtre-satir th {
    padding: 4px !important; background-image: none !important; cursor: default; text-transform: none; letter-spacing: 0;
}
table.dataTable thead tr.sdt-filtre-satir th::before, table.dataTable thead tr.sdt-filtre-satir th::after { display: none !important; }
.sdt-filtre-girdi.form-control {
    display: block; width: 100% !important; min-width: 0; max-width: 100%; height: 26px; margin: 0; padding: 2px 6px;
    font-size: 11.5px; font-weight: 400; border-radius: 4px; box-shadow: none; box-sizing: border-box;
}
select.sdt-filtre-girdi.form-control { padding: 2px 2px; }
.sdt-filtre-girdi::-webkit-input-placeholder { color: #a7b1bd; }
.sdt-filtre-girdi::placeholder { color: #a7b1bd; }

/* Seçili satırlar (tüm DataTable'lar). DataTables 2 seçimi hücrelere box-shadow ile parlak mavi boyar; tek/çift satırda kuralların
   özgüllüğü farklı olduğu için bazı satırlarda ilk sütun, bazılarında ikinci sütundan itibaren boyanıyordu. Tek tip: tema renginin
   açık tonu + ilk hücrede tema renginde sol çizgi; yazı ve bağlantılar normal renginde kalır. */
table.dataTable { --sdt-secili: var(--tema-yumusak, #e2ebf7); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
    table.dataTable { --sdt-secili: color-mix(in srgb, var(--tema-orta, #2b4f86) 24%, #fff); }
}
table.dataTable > tbody > tr.selected > *,
table.dataTable > tbody > tr.selected:hover > * { box-shadow: inset 0 0 0 9999px var(--sdt-secili) !important; color: inherit !important; }
table.dataTable > tbody > tr.selected > :first-child,
table.dataTable > tbody > tr.selected:hover > :first-child { box-shadow: inset 3px 0 0 var(--tema-orta, #2b4f86), inset 0 0 0 9999px var(--sdt-secili) !important; }
table.dataTable > tbody > tr.selected a:not(.btn) { color: var(--tema-koyu, #1c3053); }
table.dataTable > tbody > tr.selected a.btn { color: var(--bs-btn-color); }
table.dataTable > tbody > tr.selected a.btn:hover { color: var(--bs-btn-hover-color); }

/* Tema ayarlarındaki özel tablo renkleri (temaOnYukle.js --tablo-*). Bootstrap ve DataTables satırları yarı saydam gölgeyle
   boyadığı için bu katmanlar kapatılır; seçilen renk olduğu gibi görünür. */
html.tema-tablo-ozel table.sdt-tablo-govde > thead > tr > th { background-color: var(--tablo-baslik); color: var(--tablo-baslik-yazi); }
html.tema-tablo-ozel table.sdt-tablo-govde > tbody > tr > td {
    --bs-table-bg-type: transparent; --bs-table-bg-state: transparent; --bs-table-accent-bg: transparent;
    background-color: var(--tablo-satir); color: var(--tablo-satir-yazi);
}
html.tema-tablo-ozel table.sdt-tablo-govde > tbody > tr:not(.selected) > td { box-shadow: none; }
html.tema-tablo-ozel table.sdt-tablo-govde.table-striped > tbody > tr:nth-child(odd) > td { background-color: var(--tablo-cizgi); color: var(--tablo-cizgi-yazi); }
html.tema-tablo-ozel table.sdt-tablo-govde.table-hover > tbody > tr:hover > td { background-color: var(--tablo-uzerinde); color: var(--tablo-uzerinde-yazi); }
html.tema-tablo-ozel table.sdt-tablo-govde { --sdt-secili: var(--tablo-secili); }
html.tema-tablo-ozel table.sdt-tablo-govde > tbody > tr.selected > td,
html.tema-tablo-ozel table.sdt-tablo-govde > tbody > tr.selected:hover > td { color: var(--tablo-secili-yazi) !important; }
html.tema-tablo-koyu table.sdt-tablo-govde > tbody > tr > td a:not(.btn) { color: inherit; text-decoration: underline; }

/* Sayfalama: ayrık, yuvarlak köşeli butonlar; etkin sayfa tema renginde */
div.dt-container .dt-paging .pagination, .dataTables_paginate .pagination { display: flex; flex-wrap: wrap; gap: 4px; }
.dt-paging .page-item .page-link, .dataTables_paginate .page-item .page-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; margin: 0; padding: 0 9px;
    border: 1px solid #e3e8ef; border-radius: 8px !important; background: #fff; color: #4a5666;
    font-size: 13px; font-weight: 600; line-height: 1; box-shadow: none; transition: background-color .12s, border-color .12s, color .12s;
}
.dt-paging .page-item:not(.active):not(.disabled) .page-link:hover, .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
    background: var(--tema-yumusak, #e9eef6); border-color: var(--tema-yumusak, #e9eef6); color: var(--tema-orta, #2b4f86);
}
.dt-paging .page-item .page-link:focus-visible, .dataTables_paginate .page-item .page-link:focus-visible { outline: 2px solid var(--tema-orta, #2b4f86); outline-offset: 1px; }
.dt-paging .page-item.active .page-link, .dataTables_paginate .page-item.active .page-link {
    background: var(--tema-orta, #2b4f86); border-color: var(--tema-orta, #2b4f86); color: #fff; box-shadow: 0 2px 6px rgba(28, 48, 83, .25);
}
.dt-paging .page-item.disabled .page-link, .dataTables_paginate .page-item.disabled .page-link { background: transparent; color: #a7b1bd; opacity: .7; }
.dt-paging .page-link.ellipsis, .dataTables_paginate .page-link.ellipsis { min-width: 20px; padding: 0 2px; border-color: transparent; background: transparent; opacity: 1; }
.dt-paging .page-link.previous, .dt-paging .page-link.next, .dt-paging .page-link.first, .dt-paging .page-link.last { font-size: 16px; }
/* SmartAdmin'in sol menü kuralları (.fixed-navigation nav: %100 yükseklik, 49px alt boşluk; nav > ul: %114 genişlik, %100 yükseklik, dikey kaydırma) DataTables 2'nin
   <nav><ul class="pagination"> yapısına da uyuyordu: sayfalamada kaydırma çubuğu, kesik ilk buton, yüksek alt çubuk. Sayfa
   içeriğindeki listeler bu kuraldan çıkarılır. */
.fixed-navigation #main nav, .fixed-navigation .modal nav { height: auto; padding-bottom: 0; overflow: visible; }
.fixed-navigation #main nav > ul, .fixed-navigation .modal nav > ul { position: static; width: auto; height: auto; padding-right: 0; overflow: visible; }
/* Sağ alttaki yardım balonu (yzcFab) sayfa sonundaki "sonraki" butonunun üstüne binmesin */
body.yzc-var .dataTables_wrapper .sdt-altbar { padding-right: 52px; }

/* Açık / kapalı anahtarı (SmartAdmin onoffswitch): 50px'te "Hayır" yazısının üstüne yuvarlak düğme biniyordu */
.onoffswitch { width: 58px; }
.onoffswitch-switch { right: 40px; }

/* Daraltılabilir satırlar (Responsive) */
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child::before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child::before {
    top: 50%; margin-top: -9px; left: 5px; border-width: 0; box-shadow: none; font-family: Arial, Helvetica, sans-serif; font-weight: 700;
    background-color: var(--tema-orta, #2b4f86);
}
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child::before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child::before { background-color: #c9453b; }
/* DataTables 2 / Responsive 3: işaret .dtr-control hücresindedir (varsayılan küçük gri üçgen yerine belirgin + / − düğmesi) */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control { cursor: pointer; }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    content: "+"; display: inline-block; box-sizing: border-box; width: 17px; height: 17px; margin: 0 6px 0 0; border: 0; border-radius: 50%;
    background-color: var(--tema-orta, #2b4f86); color: #fff; font: 700 14px/17px Arial, Helvetica, sans-serif; text-align: center; vertical-align: middle;
    box-shadow: 0 1px 3px rgba(20, 40, 70, .25); transition: background-color .12s;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:hover::before { background-color: var(--tema-koyu, #1c3053); }
table.dataTable.dtr-inline.collapsed > tbody > tr.dtr-expanded > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr.dtr-expanded > th.dtr-control::before { content: "\2212"; background-color: #c9453b; }
html.tema-gece table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before { background-color: var(--gece-link, #7fb0ec); color: #10151d; }
html.tema-gece table.dataTable.dtr-inline.collapsed > tbody > tr.dtr-expanded > td.dtr-control::before { background-color: #e0675d; color: #fff; }
/* Telefonda işlem sütunundaki simgeli düğmeler yalnızca simge olarak çizilir: sütun daralır, kayıt adı / numune gibi
   asıl bilgi sütunları ayrıntı satırına inmeden görünür kalır (Responsive en küçük genişliği bu hâliyle ölçer) */
@media (max-width: 575.98px) {
    table.dataTable > tbody > tr > td.sdt-islem .btn:has(> i, > .fa, > svg) { font-size: 0; gap: 0; padding-left: 7px; padding-right: 7px; }
    table.dataTable > tbody > tr > td.sdt-islem .btn:has(> i, > .fa, > svg) > i,
    table.dataTable > tbody > tr > td.sdt-islem .btn:has(> i, > .fa, > svg) > .fa,
    table.dataTable > tbody > tr > td.sdt-islem .btn:has(> i, > .fa, > svg) > svg { font-size: 13px; margin: 0 1px; }
    table.dataTable > thead > tr > th.sdt-islem { font-size: 10px; letter-spacing: 0; }
    table.dataTable > thead > tr > th.sdt-islem,
    table.dataTable > tbody > tr > td.sdt-islem { padding-left: 4px !important; padding-right: 4px !important; }
    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before { margin-right: 4px; }
    /* Masaüstü için konan stok kodu / adı en az genişlikleri telefonda adı ayrıntıya itmesin (sayfaya özel kurallar dahil) */
    table.dataTable th.sdt-stok-adi, table.dataTable td.sdt-stok-adi { min-width: 90px !important; }
    table.dataTable td.sdt-stok-adi { overflow-wrap: anywhere; }
    table.dataTable th.sdt-stok-kodu, table.dataTable td.sdt-stok-kodu { min-width: 0 !important; }
}
table.dataTable > tbody > tr.child > td.child { padding: 6px 10px 8px 30px; background: #fbfcfd; }
table.dataTable > tbody > tr.child ul.dtr-details { display: block; width: 100%; margin: 0; padding: 0; list-style: none; }
table.dataTable > tbody > tr.child ul.dtr-details > li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #e3e8ef; }
table.dataTable > tbody > tr.child ul.dtr-details > li:last-child { border-bottom: 0; }
table.dataTable > tbody > tr.child span.dtr-title { flex: 0 0 34%; max-width: 220px; min-width: 0; color: #6b7785; font-weight: 700; }
table.dataTable > tbody > tr.child span.dtr-data { flex: 1 1 auto; min-width: 0; word-break: break-word; }

/* Boş tablo mesajı satır kırabilsin: telefonda tek uzun satır tabloyu sağdan taşırıyordu */
table.dataTable > tbody > tr > td.dt-empty { white-space: normal; }

/* İşleniyor göstergesi */
.dataTables_wrapper .dataTables_processing {
    z-index: 5; top: 40px; height: auto; margin-top: 0; padding: 8px 14px; border: 1px solid #e3e8ef; border-radius: 8px;
    background: #fff; box-shadow: 0 6px 18px rgba(36, 48, 61, .12); font-weight: 600;
}

/* Sütun göster/gizle menüsü */
.dt-button-collection.dropdown-menu { max-height: 320px; overflow-y: auto; }

@media (max-width: 767px) {
    .sdt-btn-metin { display: none; }
    .sdt-arama { flex: 1 1 100%; order: -1; }
    .sdt-altbar { justify-content: center; }
    .sdt-altbar .dataTables_info { width: 100%; text-align: center; }
}

/* ---------- Dar alana sığan tablo (SternDT seçenekleri; isteğe bağlı) ----------
   ikonlaDaral: true → tablonun ALANI ~1000 px'in altına inince araç çubuğu butonları yalnızca ikon olur (adı title'da).
   Karar ekran genişliğiyle değil tablonun kendi genişliğiyle verilir: geniş ekrandaki dar sütunda da butonlar tek satır kalır. */
.sdt-ikonla-daral .sdt-ustbar { container-type: inline-size; container-name: sdtbar; }
@container sdtbar (max-width: 1000px) {
    .sdt-btn-metin { display: none; }
    .sdt-butonlar .dt-buttons .btn { padding-left: 9px; padding-right: 9px; }
}
/* yapiskan: true → sütun (ör. İşlemler), tablo yatay kaysa da sağ kenara yapışık kalır; altından kayan sütunlar görünmesin
   diye hücre zemini opaktır (zebra / üzerine gelme renkleri korunur), solunda ince bir gölge ayırır */
table.dataTable > * > tr > .sdt-yapiskan { position: sticky; right: 0; z-index: 2; background-color: #fff; }
table.dataTable > * > tr > .sdt-yapiskan::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; pointer-events: none;
    background: linear-gradient(to left, rgba(15, 23, 42, .13), rgba(15, 23, 42, 0));
}
/* Gece temasında tema-gece.css hücreleri çok güçlü bir seçiciyle (td:not(.success)…) saydam yapar: yapışık hücre opak kalmalı */
html.tema-gece table.dataTable > * > tr > .sdt-yapiskan { background-color: var(--gece-yuzey, #1a1f28) !important; }
html.tema-gece table.sdt-tablo-govde.table-striped > tbody > tr:nth-child(odd) > td.sdt-yapiskan {
    background-image: linear-gradient(rgba(255, 255, 255, .025), rgba(255, 255, 255, .025));
}
html.tema-gece table.sdt-tablo-govde.table-hover > tbody > tr:hover > td.sdt-yapiskan { background-color: var(--gece-yuzey-3, #283040) !important; background-image: none; }
html.tema-gece table.dataTable > * > tr > .sdt-yapiskan::before { background: linear-gradient(to left, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)); }

/* ---------- Kişi seçici (SternKisiSecici, Scripts/ortak/sternKisiSecici.js) ----------
   Seçilenler hap biçimli kişi kartları; panel satır içinde açılır (modal ve widget taşmasından etkilenmez). */
select.ks-kaynak { display: none !important; }
.ks { position: relative; }
.ks-ust { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; min-height: 38px; padding: 6px; border: 1px solid #d3dce7; border-radius: 10px; background: #fff; }
.ks.acik .ks-ust { border-color: var(--tema-acik, #3a64a3); box-shadow: 0 0 0 3px var(--tema-yumusak, #e9eef6); }
.ks-salt .ks-ust { border-style: dashed; background: #f6f8fb; }
.ks-secili { display: flex; flex-wrap: wrap; flex: 1 1 200px; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ks-secili.bos::before { content: attr(data-bos); padding: 4px 4px; color: #6b7785; font-size: 12.5px; }
.ks-cip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 4px 2px 2px; border-radius: 999px; background: var(--tema-yumusak, #e9eef6); color: var(--tema-koyu, #1c3053); font-size: 12.5px; font-weight: 600; }
.ks-cip-ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-cip-sil { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 11px; opacity: .65; }
.ks-cip-sil:hover, .ks-cip-sil:focus { background: rgba(28, 48, 83, .12); opacity: 1; outline: 0; }
.ks-av { flex: 0 0 24px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tema-orta, #2b4f86); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .2px; }
.ks-ac { flex: 0 0 auto; margin-left: auto; border-radius: 8px; }
.ks-ac.active { border-color: var(--tema-acik, #3a64a3); color: var(--tema-orta, #2b4f86); }
.ks-panel { margin-top: 6px; overflow: hidden; border: 1px solid #e3e8ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(36, 48, 61, .12); }
.ks-panel[hidden] { display: none; }
.ks-arac { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-bottom: 1px solid #e3e8ef; background: #f6f8fb; }
.ks-ara { position: relative; flex: 1 1 200px; margin: 0; font-weight: 400; }
.ks-ara .fa { position: absolute; left: 10px; top: 50%; margin-top: -7px; color: #6b7785; font-size: 13px; }
.ks-ara .form-control { padding-left: 30px; border-radius: 999px; }
.ks-dep { flex: 0 1 220px; min-width: 0; border-radius: 999px; }
.ks-liste { max-height: 300px; padding: 4px 0; overflow-y: auto; }
.ks-grup[hidden], .ks-kisi[hidden], .ks-sonucyok[hidden], .ks-temizle[hidden] { display: none !important; }
.ks-grup-baslik { position: sticky; top: -4px; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; background: #fff; color: #24303d; font-size: 12px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; cursor: pointer; }
.ks-grup + .ks-grup .ks-grup-baslik { border-top: 1px solid #e3e8ef; }
.ks-grup-ad { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-grup-ad .fa { color: var(--tema-orta, #2b4f86); }
.ks-grup-sayi { padding: 0 7px; border-radius: 999px; background: #f6f8fb; color: #6b7785; font-size: 11px; line-height: 18px; }
.ks-kisi { display: flex; align-items: center; gap: 10px; margin: 0; padding: 5px 12px 5px 32px; color: #24303d; font-weight: 400; cursor: pointer; }
.ks-kisi:hover { background: #f6f8fb; }
.ks-kisi.secili { background: var(--tema-yumusak, #e9eef6); }
.ks-kisi.secili .ks-ad { font-weight: 600; }
.ks-kisi.pasif { cursor: default; opacity: .55; }
.ks-kisi.pasif:hover { background: transparent; }
.ks-kisi small { margin-left: auto; color: #6b7785; font-size: 11px; }
.ks-ad { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-kisi input, .ks-grup-baslik input { flex: 0 0 auto; margin: 0; cursor: pointer; accent-color: var(--tema-orta, #2b4f86); }
.ks-sonucyok { padding: 18px 12px; color: #6b7785; text-align: center; }
.ks-alt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid #e3e8ef; background: #f6f8fb; color: #6b7785; font-size: 12px; }
.ks-sayi { margin-right: auto; font-weight: 600; }
.ks-alt .btn { border-radius: 7px; }
@media (max-width: 600px) {
    .ks-ac { width: 100%; }
    .ks-dep { flex-basis: 100%; }
}

/* ---------- Gece modu ---------- */
html.tema-gece .ks-ust, html.tema-gece .ks-panel, html.tema-gece .ks-grup-baslik { background: var(--gece-yuzey-2, #212733); border-color: var(--gece-kenar, #2f3746); color: var(--gece-yazi, #d7dde6); }
html.tema-gece .ks-salt .ks-ust, html.tema-gece .ks-arac, html.tema-gece .ks-alt { background: var(--gece-yuzey, #1a1f28); border-color: var(--gece-kenar, #2f3746); }
html.tema-gece .ks.acik .ks-ust { border-color: var(--gece-link, #7fb0ec); box-shadow: 0 0 0 3px rgba(127, 176, 236, .14); }
html.tema-gece .ks-panel { box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
html.tema-gece .ks-grup + .ks-grup .ks-grup-baslik, html.tema-gece .ks-arac, html.tema-gece .ks-alt { border-color: var(--gece-kenar, #2f3746); }
html.tema-gece .ks-cip, html.tema-gece .ks-kisi.secili { background: rgba(127, 176, 236, .16); color: var(--gece-yazi, #d7dde6); }
html.tema-gece .ks-kisi { color: var(--gece-yazi, #d7dde6); }
html.tema-gece .ks-kisi:hover, html.tema-gece .ks-grup-sayi { background: var(--gece-yuzey-3, #283040); }
html.tema-gece .ks-grup-ad .fa { color: var(--gece-link, #7fb0ec); }
html.tema-gece .ks-secili.bos::before, html.tema-gece .ks-kisi small, html.tema-gece .ks-sonucyok, html.tema-gece .ks-alt, html.tema-gece .ks-grup-sayi { color: var(--gece-soluk, #8f99a8); }
html.tema-gece .ks-cip-sil:hover, html.tema-gece .ks-cip-sil:focus { background: rgba(255, 255, 255, .12); }
html.tema-gece .sm-kart { background: var(--gece-yuzey, #1a1f28); border-color: var(--gece-kenar, #2f3746); color: var(--gece-yazi, #d7dde6); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
html.tema-gece .sm-kart { --sm-renk: var(--gece-link, #7fb0ec); --sm-zemin: rgba(127, 176, 236, .14); }
html.tema-gece .sm-kart.sm-basari { --sm-renk: #5cc28a; --sm-zemin: rgba(46, 157, 99, .2); }
html.tema-gece .sm-kart.sm-hata { --sm-renk: #e8776e; --sm-zemin: rgba(201, 69, 59, .22); }
html.tema-gece .sm-kart.sm-uyari { --sm-renk: #eea25a; --sm-zemin: rgba(217, 130, 43, .2); }
html.tema-gece .sm-icerik { color: var(--gece-soluk, #8f99a8); }
html.tema-gece .sm-icerik a { color: var(--gece-link, #7fb0ec); }
html.tema-gece .sm-kapat { color: var(--gece-soluk, #8f99a8); }
html.tema-gece .sm-kapat:hover, html.tema-gece .sm-kapat:focus { background: var(--gece-yuzey-3, #283040); }
html.tema-gece table.sdt-tablo-govde > thead > tr:not(.sdt-filtre-satir) > th { color: var(--gece-soluk, #8f99a8); }
html.tema-gece table.sdt-tablo-govde.table-striped > tbody > tr:nth-child(odd) > td { background-color: rgba(255, 255, 255, .025); }
html.tema-gece table.sdt-tablo-govde.table-hover > tbody > tr:hover > td { background-color: var(--gece-yuzey-3, #283040); }
html.tema-gece .sdt-arama .dataTables_filter input, html.tema-gece .sdt-uzunluk .dataTables_length select { border-color: var(--gece-kenar, #2f3746); }
html.tema-gece table.dataTable > tbody > tr.child > td.child { background: var(--gece-yuzey-2, #212733); }
html.tema-gece table.dataTable > tbody > tr.child ul.dtr-details > li { border-bottom-color: var(--gece-kenar, #2f3746); }
html.tema-gece table.dataTable > tbody > tr.child span.dtr-title { color: var(--gece-soluk, #8f99a8); }
html.tema-gece table.dataTable { --sdt-secili: var(--gece-yuzey-3, #283040); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
    html.tema-gece table.dataTable { --sdt-secili: color-mix(in srgb, var(--tema-acik, #3a64a3) 28%, var(--gece-yuzey-2, #212733)); }
}
html.tema-gece table.dataTable > tbody > tr.selected a:not(.btn) { color: #fff; }
html.tema-gece .dt-paging .page-item .page-link { background: var(--gece-yuzey-2, #212733); border-color: var(--gece-kenar, #2f3746); color: var(--gece-yazi, #d7dde6); }
html.tema-gece .dt-paging .page-item:not(.active):not(.disabled) .page-link:hover { background: var(--gece-yuzey-3, #283040); border-color: var(--gece-kenar, #2f3746); color: #fff; }
html.tema-gece .dt-paging .page-item.active .page-link { background: var(--tema-orta, #2b4f86); border-color: var(--tema-orta, #2b4f86); color: #fff; }
html.tema-gece .dt-paging .page-item.disabled .page-link, html.tema-gece .dt-paging .page-link.ellipsis { background: transparent; border-color: transparent; color: var(--gece-soluk, #8f99a8); }
/* Butonlar gece modunda: koyu yüzey üzerinde butonun kendi renginden hafif ton + açık renk yazı */
html.tema-gece .dataTables_wrapper .sdt-butonlar .dt-buttons .btn { background: var(--gece-yuzey-2, #212733); border-color: var(--gece-kenar, #2f3746); color: var(--sdt-acik); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
    html.tema-gece .dataTables_wrapper .sdt-butonlar .dt-buttons .btn { background: color-mix(in srgb, var(--sdt-renk) 18%, var(--gece-yuzey-2, #212733)); border-color: color-mix(in srgb, var(--sdt-renk) 40%, var(--gece-kenar, #2f3746)); }
}
html.tema-gece .dataTables_wrapper .sdt-butonlar .dt-buttons .btn.sdt-btn-sil { background: transparent; border-color: var(--sdt-renk); }
html.tema-gece .dataTables_wrapper .sdt-butonlar .dt-buttons .btn:hover,
html.tema-gece .dataTables_wrapper .sdt-butonlar .dt-buttons .btn:focus { background: var(--sdt-renk); border-color: var(--sdt-renk); color: #fff; }
html.tema-gece .dataTables_wrapper .sdt-butonlar .dt-buttons .btn.disabled:hover,
html.tema-gece .dataTables_wrapper .sdt-butonlar .dt-buttons .btn.disabled:focus { background: var(--gece-yuzey-2, #212733); border-color: var(--gece-kenar, #2f3746); color: var(--sdt-acik); }
html.tema-gece .dataTables_wrapper .sdt-altbar .pagination > li > a { background: var(--gece-yuzey-2, #212733); border-color: var(--gece-kenar, #2f3746); color: var(--gece-link, #7fb0ec); }
html.tema-gece .dataTables_wrapper .sdt-altbar .pagination > .active > a { background: var(--tema-orta, #2b4f86); border-color: var(--tema-orta, #2b4f86); color: #fff; }
html.tema-gece .dt-button-collection.dropdown-menu > li > a:hover { background: var(--gece-yuzey-3, #283040); color: var(--gece-yazi, #d7dde6); }

/* ---------- Başlık bandındaki açılır menü (filtre vb.): .as-hero.sf-bant > .dropdown > .as-hap + .sf-menu; davranış SternTarih.menuKur ---------- */
.as-hero.sf-bant { overflow: visible; }                                /* menü bandın dışına taşabilsin; amblem bandın içinde kalır */
.as-hero.sf-bant::before { top: 50%; right: 12px; width: 90px; height: 90px; transform: translateY(-50%) rotate(-8deg); }
.as-hero.sf-bant::after { display: none; }
.as-hero.sf-bant .as-hero-aksiyon { z-index: 1000; }                   /* tablonun sabit başlığının üstünde kalsın */
.sf-bant .dropdown { display: flex; }
.sf-bant .as-hap[disabled] { opacity: .65; cursor: not-allowed; }
.sf-bant .as-hap.show { background: #fff; color: var(--tema-koyu) !important; }
.sf-bant .as-hap.show b { background: var(--tema-koyu); color: #fff; }
.sf-menu { width: 400px; max-width: calc(100vw - 32px); padding: 0; margin-top: 6px; border: 1px solid #e3e8ef; border-radius: 12px; background: #fff; color: #334155; box-shadow: 0 14px 40px rgba(10, 20, 40, .22); }
.sf-bas { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e3e8ef; font-weight: 600; }
.sf-bas a { color: #8e9bab; }
.sf-govde { padding: 14px 16px; max-height: 65vh; overflow-y: auto; }
.sf-alt { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid #e3e8ef; border-radius: 0 0 12px 12px; background: #f6f8fb; }
.sf-alt > :only-child { margin-left: auto; }
.sf-menu .btn { border-radius: 6px; }
.sf-menu .btn-primary { background: var(--tema-orta); border-color: var(--tema-orta); color: #fff; }
.sf-menu .btn-primary:hover, .sf-menu .btn-primary:focus { background: var(--tema-koyu); border-color: var(--tema-koyu); color: #fff; }
.sf-grup { margin-bottom: 14px; }
.sf-grup:last-child { margin-bottom: 0; }
.sf-ikili { display: flex; gap: 8px; }
.sf-ikili > .sf-grup { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
.sf-etiket { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #6b7a8c; }
.sf-tarih { display: flex; align-items: center; gap: 6px; }
.sf-tarih .form-control { height: 30px; min-width: 0; padding: 3px 8px; border-radius: 6px; }
.sf-tarih span { color: #8e9bab; }
.sf-hizli { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sf-hizli .btn { padding: 1px 9px; font-size: 11px; border-radius: 999px; }
.sf-menu select.form-control { height: 30px; padding: 3px 8px; border-radius: 6px; }
.sf-onay { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-weight: 600; cursor: pointer; }
.sf-onay:last-child { margin-bottom: 0; }
.sf-onay input[type=checkbox] { position: static; margin: 0; }

/* Kriter panellerinin "Sorgula" düğmesi (reçete işlemleri / karşılaştırma): tam genişlik ama normal yazı boyutu */
.btn.kriter-sorgula { padding: 8px 12px; font-size: 14px; font-weight: 600; line-height: 1.4; text-transform: none; letter-spacing: .2px; }
.btn.kriter-sorgula .fa { margin-right: 2px; }

/* ---------- Yerleşim menüsü: sol / sağ sütun oranı (Views/Shared/_SutunYerlesimMenu, Web.Helper.SutunYerlesim) ----------
   Her seçenek oranı küçük bir sütun çizimiyle gösterir: açık renk sol, koyu renk sağ sütun. */
.sy-menu { width: 380px; }
.sy-menu .sf-bas > a, .sy-menu .sf-alt > a { width: auto; flex: 0 0 auto; padding: 0; background: none; }   /* çalışma anında eklenen .dropdown-item genişliği */
.sy-menu .sf-bas > span, .sy-menu .sf-alt > span { flex: 1 1 auto; min-width: 0; }
.sy-menu .sf-alt { gap: 12px; }
.sy-lejant { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; font-size: 12px; color: #5b6878; }
.sy-lejant span { display: inline-flex; align-items: center; gap: 6px; }
.sy-renk { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sy-renk.sol, .sy-onizleme .sol { background: var(--tema-yumusak, #dbe8f5); border: 1px solid var(--tema-orta, #3276b1); }
.sy-renk.sag, .sy-onizleme .sag { background: var(--tema-orta, #3276b1); border: 1px solid var(--tema-orta, #3276b1); }
.sy-izgara { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sy-secenek {
    position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 8px 8px 6px;
    border: 1px solid #dfe5ec; border-radius: 8px; background: #fff; color: #334155; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.sy-secenek:hover { border-color: var(--tema-orta, #3276b1); background: #f6f9fc; }
.sy-secenek:focus-visible { outline: 2px solid var(--tema-orta, #3276b1); outline-offset: 1px; }
.sy-secenek.secili { border-color: var(--tema-orta, #3276b1); box-shadow: 0 0 0 2px var(--tema-orta, #3276b1) inset; background: #f2f7fb; }
.sy-secenek.secili::after {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: -7px; right: -7px; width: 18px; height: 18px;
    border-radius: 50%; background: var(--tema-orta, #3276b1); color: #fff; font-size: 10px; line-height: 18px; text-align: center;
}
.sy-onizleme { display: flex; gap: 3px; height: 30px; }
.sy-onizleme > span { border-radius: 3px; min-width: 0; }
.sy-onizleme.alt-alta { flex-direction: column; }
.sy-onizleme.alt-alta > span { flex: 1 1 0; }
.sy-ad { font-weight: 700; font-size: 12px; text-align: center; }
.sy-yuzde { font-size: 10px; color: #8e9bab; text-align: center; }
.sy-not { font-size: 11px; color: #6b7a8c; align-self: center; }
.sy-not .fa { color: var(--tema-orta, #3276b1); margin-right: 3px; }
#syYerlesimSifirla { font-size: 12px; white-space: nowrap; align-self: center; }
html.tema-gece .sy-lejant, html.tema-gece .sy-not { color: var(--gece-soluk, #8f99a8); }
html.tema-gece .sy-secenek { background: var(--gece-yuzey-2, #212733); border-color: var(--gece-kenar, #2f3746); color: var(--gece-yazi, #d7dde6); }
html.tema-gece .sy-secenek:hover, html.tema-gece .sy-secenek.secili { background: var(--gece-yuzey, #1a1f28); border-color: var(--tema-orta, #3276b1); }
html.tema-gece .sy-renk.sol, html.tema-gece .sy-onizleme .sol { background: rgba(120, 160, 210, .25); }
html.tema-gece .sf-menu { border-color: var(--gece-kenar, #2f3746); background: var(--gece-yuzey, #1a1f28); color: var(--gece-yazi, #d7dde6); }
html.tema-gece .sf-bas { border-color: var(--gece-kenar, #2f3746); }
html.tema-gece .sf-bas a, html.tema-gece .sf-etiket, html.tema-gece .sf-tarih span { color: var(--gece-soluk, #8f99a8); }
html.tema-gece .sf-alt { border-color: var(--gece-kenar, #2f3746); background: var(--gece-yuzey-2, #212733); }
html.tema-gece .sf-tarih input[type=date] { color-scheme: dark; }

/* SmartAdmin'in .dropdown-menu.show animasyonu (flipInX, fill-mode: both) transform'u sabit tutup Popper'ın konumunu (translate) eziyor;
   menü düğmenin üstüne biniyordu. Popper'ın konumladığı menüler yalnızca opaklıkla açılır. */
@keyframes sternMenuBelir { from { opacity: 0; } to { opacity: 1; } }
.dropdown-menu.show[data-popper-placement] { animation-name: sternMenuBelir; }

/* ---------- Ortak filtre penceresi (Scripts/ortak/sternFiltreMenu.js): [data-filtre-menu] kabı .sf-menu içine taşınır ---------- */
[data-filtre-menu]:not(.sfm-hazir) { display: none !important; }
.sfm-satir:empty { display: none; }
.ur-sayfa .sfm-satir, .sfm-satir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; clear: both; margin-bottom: 12px; }
.sfm-satir .ur-bosluk { flex: 1 1 auto; }
.sfm-dd { display: flex; }
.sfm-dugme .sfm-ozet { padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sfm-dugme .sfm-ozet[hidden], .sfm-dugme .sfm-sayi[hidden] { display: none; }
/* Filtrenin yerinde duran düğme (başlık bandı dışında): aynı hap, tema renginde */
.sfm-satir .sfm-dugme { padding: 7px 14px; border-color: var(--tema-orta); background: var(--tema-orta); color: #fff !important; }
.sfm-satir .sfm-dugme:hover, .sfm-satir .sfm-dugme:focus, .sfm-satir .sfm-dugme.show { background: var(--tema-koyu); border-color: var(--tema-koyu); }
.sfm-satir .sfm-dugme .sfm-sayi { background: #fff; color: var(--tema-koyu); }
.sfm-menu { width: 430px; }
.sfm-menu .sfm-form { display: block; margin: 0; padding: 0; border: 0; background: none; }
.sfm-menu .sfm-form > .sf-grup, .sfm-menu .sfm-form > .form-grup, .sfm-menu .sfm-form > label, .sfm-menu .sfm-form > div { display: block; width: 100%; max-width: none; min-width: 0; margin: 0 0 14px; flex: none; }
.sfm-menu .sfm-form > :last-child { margin-bottom: 0; }
.sfm-menu .sfm-form > .sfm-gizli, .sfm-menu .sfm-gizli { display: none !important; }
.sfm-menu .sfm-form .sf-etiket { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #6b7a8c; }
.sfm-menu .sf-tarih .sfm-uc { flex: 1 1 0; min-width: 0; }
.sfm-menu .sf-tarih .sfm-uc .input-group, .sfm-menu .sf-tarih .sfm-uc .st-tarih { max-width: none; width: 100%; }
.sfm-menu .form-control, .sfm-menu .input-group-text { height: 32px; padding-top: 4px; padding-bottom: 4px; }
.sfm-menu .form-control { border-radius: 6px; }
.sfm-menu select[multiple].form-control { height: auto; }
.sfm-menu .form-check-inline { margin-right: 14px; }
.sfm-menu .select2-container { width: 100% !important; }
.sfm-menu .checkbox, .sfm-menu .form-check, .sfm-menu label:has(> input[type=checkbox]) { font-weight: 600; }
html.tema-gece .sfm-menu .sfm-form .sf-etiket { color: var(--gece-soluk, #8f99a8); }
@media (max-width: 600px) {
    .sfm-dugme .sfm-ozet { display: none; }
    .sfm-menu { width: calc(100vw - 32px); }
}
html.tema-gece .dataTables_wrapper .dataTables_processing { background: var(--gece-yuzey, #1a1f28); border-color: var(--gece-kenar, #2f3746); color: var(--gece-yazi, #d7dde6); }

/* Ortak tarih seçimi (SternTarih): dar kutu, sağda takvim simgesi, seçili dilde takvim penceresi */
.st-tarih { position: relative; display: block; width: 100%; max-width: 170px; }
.st-tarih.st-satir-ici, .satir-form .st-tarih { display: inline-block; width: 170px; vertical-align: middle; }
.st-tarih > input { float: none; box-sizing: border-box !important; width: 100% !important; max-width: none !important; padding-right: 32px !important; padding-left: 10px !important; }
.input-group.st-grup-yok { display: block; }
.input-group > .st-tarih { flex: 1 1 auto; width: 1%; min-width: 0; max-width: none; }
.input-group.st-grup-yok > .st-tarih { display: block; width: 100%; max-width: 170px; }
.sf-tarih .st-tarih { flex: 1 1 0; min-width: 0; }
#ui-datepicker-div { z-index: 100060 !important; }
.st-tarih > .ui-datepicker-trigger { position: absolute; top: 0; right: 0; bottom: 0; width: 32px; margin: 0; padding: 0; border: 0; background: none; color: #8e9bab; line-height: 1; cursor: pointer; }
.st-tarih > .ui-datepicker-trigger:hover, .st-tarih > .ui-datepicker-trigger:focus { color: var(--tema-orta); outline: 0; }
.st-tarih > .ui-datepicker-trigger[disabled] { cursor: not-allowed; opacity: .5; }
.st-takvim-pencere.ui-datepicker { width: 264px; padding: 8px; border: 1px solid #dfe4ea; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.st-takvim-pencere .ui-datepicker-header { padding: 0 0 8px; border: 0; background: none; }
.st-takvim-pencere .ui-datepicker-title { display: flex; gap: 4px; margin: 0 26px; line-height: 26px; }
.st-takvim-pencere .ui-datepicker-title select { flex: 1 1 0; width: auto; min-width: 0; height: 26px; margin: 0; padding: 0 2px; border: 1px solid #dfe4ea; border-radius: 5px; background: #fff; color: #333; font-size: 12px; font-weight: 600; }
.st-takvim-pencere .ui-datepicker-prev, .st-takvim-pencere .ui-datepicker-next { top: 0; width: 24px; height: 26px; border: 0; background: none; color: #8e9bab; text-align: center; line-height: 26px; cursor: pointer; }
.st-takvim-pencere .ui-datepicker-prev { left: 0; }
.st-takvim-pencere .ui-datepicker-next { right: 0; }
.st-takvim-pencere .ui-datepicker-prev:hover, .st-takvim-pencere .ui-datepicker-next:hover { color: var(--tema-orta); }
.st-takvim-pencere .ui-datepicker-prev.ui-state-disabled, .st-takvim-pencere .ui-datepicker-next.ui-state-disabled { opacity: .3; cursor: default; }
.st-takvim-pencere .ui-datepicker-prev span, .st-takvim-pencere .ui-datepicker-next span { position: static; display: inline; width: auto; height: auto; margin: 0; background: none; font-size: 11px; text-indent: 0; overflow: visible; }
.st-takvim-pencere table { margin: 0; font-size: 12px; table-layout: fixed; }
.st-takvim-pencere th { padding: 4px 0; color: #8e9bab; font-size: 11px; font-weight: 600; }
.st-takvim-pencere td { padding: 1px; }
.st-takvim-pencere td .ui-state-default { padding: 5px 0; border: 0; border-radius: 5px; background: none; color: #333; text-align: center; text-shadow: none; }
.st-takvim-pencere td .ui-state-hover { background: #eef1f5; color: #333; }
.st-takvim-pencere td .ui-state-highlight { box-shadow: inset 0 0 0 1px var(--tema-orta); background: none; color: #333; }
.st-takvim-pencere td .ui-state-active, .st-takvim-pencere td .ui-state-active.ui-state-hover { background: var(--tema-orta); color: #fff; }
.st-takvim-pencere td.ui-state-disabled span { color: #c3cad3; }
html.tema-gece .st-tarih > .ui-datepicker-trigger { color: var(--gece-soluk, #8f99a8); }
html.tema-gece .st-takvim-pencere.ui-datepicker { border-color: var(--gece-kenar, #2f3746); background: var(--gece-yuzey, #1a1f28); }
html.tema-gece .st-takvim-pencere .ui-datepicker-title select { border-color: var(--gece-kenar, #2f3746); background: var(--gece-yuzey-2, #212733); color: var(--gece-yazi, #e4e8ee); }
html.tema-gece .st-takvim-pencere td .ui-state-default, html.tema-gece .st-takvim-pencere td .ui-state-highlight { color: var(--gece-yazi, #e4e8ee); }
html.tema-gece .st-takvim-pencere td .ui-state-hover { background: var(--gece-yuzey-3, #2a3140); }
html.tema-gece .st-takvim-pencere td .ui-state-active, html.tema-gece .st-takvim-pencere td .ui-state-active.ui-state-hover { background: var(--tema-orta); color: #fff; }
html.tema-gece .st-takvim-pencere td.ui-state-disabled span { color: #566072; }

/* Widget başlığı: SmartAdmin dar ekranlarda başlığa sabit genişlik verip (135-310px) erken kesiyordu.
   Başlık, simge ve sağdaki düğmelerden kalan yerin tamamını kullanır; sığmazsa yine "…" ile kesilir. */
@media (max-width: 979px) {
    .jarviswidget > header > h2 { width: auto !important; max-width: calc(100% - 118px); }
    .jarviswidget > header > .widget-toolbar ~ h2,
    .jarviswidget > header > h2:has(~ .widget-toolbar) { max-width: calc(100% - 190px); }
}
@media (max-width: 575.98px) {
    .jarviswidget > header > h2 { font-size: 14px; letter-spacing: 0; margin-left: 8px; }
}

/* Üst bar (telefon): logo grubu 220px sabit kaldığında sağ üstteki ikonlar alt satıra iniyordu.
   Logo kalan yere göre küçülür, ikonlar her zaman logo ile aynı satırda kalır. */
@media (max-width: 575.98px) {
    #header { display: flex; align-items: flex-start; }
    #header > #logo-group { flex: 0 1 auto; width: auto; min-width: 0; }
    #header > #logo-group > #logo { width: auto; max-width: 100%; margin-right: 6px; }
    #header > #logo-group > #logo img { max-width: 100%; height: auto; }
    #header > #top-right { flex: 1 0 auto; margin-left: auto; }
}

/* Sabit sol menü: SmartAdmin nav'a panelin tam yüksekliğini veriyordu (height:100%); üstteki kullanıcı bilgisi ve mobil
   hızlı bağlantılar şeridi eklenince listenin altı (Kullanıcı, Yeni…) ekran dışında kalıp kaydırılamıyordu.
   Panel dikey esnek kutu, nav kalan alanı alır ve kendi içinde kayar. */
.fixed-navigation:not(.menu-on-top) #left-panel { display: flex; flex-direction: column; }
.fixed-navigation:not(.menu-on-top) #left-panel > * { flex: 0 0 auto; }
.fixed-navigation:not(.menu-on-top) #left-panel > nav { flex: 1 1 auto; height: auto; min-height: 0; }
/* nav > ul, kaydırma çubuğunu gizlemek için %114 genişlikte; nav'ın overflow-y:auto'su yatayı da auto yaptığından altta yatay
   kaydırma çubuğu çıkıyordu. Daraltılmış menüde açılır listeler taşmalı (SmartAdmin orada overflow: visible verir). */
.fixed-navigation:not(.menu-on-top):not(.minified) #left-panel > nav { overflow-x: hidden; }

/* Tablo hücrelerindeki grid sınıfları (td class="col-md-2"): SmartAdmin'in eski grid CSS'i bunlara float verir, float alan hücre
   block olup tablodan kopar (Fırın raporu katkılar / bileşenler başlıkları üst üste yığılıyordu). Bootstrap 3'teki düzeltme. */
table td[class*="col-"], table th[class*="col-"] { position: static; float: none; display: table-cell; }

/* ---------- Onay penceresi (SternMesaj.onay / diyalog, $.SmartMessageBox, çıkış) ---------- */
.sd-ortu {
    position: fixed; inset: 0; z-index: 10600; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(15, 23, 42, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    animation: sd-ortu-gel .16s ease-out;
}
.sd-ortu.sd-kapaniyor { animation: sd-ortu-git .16s ease-in forwards; }
.sd-kart {
    --sd-renk: var(--tema-orta, #2b4f86); --sd-zemin: var(--tema-yumusak, #e9eef6);
    position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; width: 100%; max-width: 440px;
    padding: 22px 22px 18px; border-radius: 14px; background: #fff; color: #24303d;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28), 0 2px 8px rgba(15, 23, 42, .12);
    animation: sd-kart-gel .2s cubic-bezier(.2, .9, .3, 1.2);
}
.sd-ortu.sd-kapaniyor .sd-kart { animation: sd-kart-git .16s ease-in forwards; }
.sd-kart.sd-uyari { --sd-renk: #d48806; --sd-zemin: #fdf3e1; }
.sd-kart.sd-tehlike { --sd-renk: #c9453b; --sd-zemin: #fbeceb; }
.sd-kart.sd-cikis { --sd-renk: #d4572b; --sd-zemin: #fcede6; }
.sd-ikon {
    grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--sd-zemin); color: var(--sd-renk); font-size: 20px;
}
.sd-metin { min-width: 0; padding-top: 2px; }
.sd-baslik { margin: 0 0 6px; color: #1c2733; font-size: 16.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.sd-baslik i { margin-right: 4px; }
.sd-icerik { color: #5b6776; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; max-height: 50vh; overflow-y: auto; }
.sd-icerik b, .sd-icerik strong { color: #24303d; }
.sd-dugmeler { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.sd-dugme {
    min-width: 92px; height: 38px; padding: 0 18px; border: 1px solid #dfe5ec; border-radius: 9px; background: #fff; color: #3c4857;
    font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .12s, border-color .12s, box-shadow .12s, filter .12s;
}
.sd-dugme:hover { background: #f4f6f9; border-color: #cfd7e1; }
.sd-dugme:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-renk) 30%, transparent); }
.sd-dugme.sd-birincil { border-color: var(--sd-renk); background: var(--sd-renk); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--sd-renk) 30%, transparent); }
.sd-dugme.sd-birincil:hover { filter: brightness(1.08); }
.sd-kart.sd-soru .sd-dugme.sd-birincil { background: linear-gradient(120deg, var(--tema-koyu, #1c3053) 0%, var(--tema-orta, #2b4f86) 60%, var(--tema-acik, #3a64a3) 100%); }
html.sd-acik body { overflow: hidden; }
html.sd-cikiliyor body { opacity: .6; transition: opacity .3s; }
@media (max-width: 480px) {
    .sd-kart { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px 16px; }
    .sd-ikon { grid-row: auto; }
    .sd-dugmeler { justify-content: stretch; }
    .sd-dugme { flex: 1 1 0; }
}
@keyframes sd-ortu-gel { from { opacity: 0; } to { opacity: 1; } }
@keyframes sd-ortu-git { to { opacity: 0; } }
@keyframes sd-kart-gel { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sd-kart-git { to { opacity: 0; transform: translateY(4px) scale(.98); } }
html.tema-hareketsiz .sd-ortu, html.tema-hareketsiz .sd-kart { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .sd-ortu, .sd-kart { animation: none !important; } }
html.tema-gece .sd-kart { background: var(--gece-yuzey-2, #212733); color: var(--gece-yazi, #d7dde6); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
html.tema-gece .sd-baslik, html.tema-gece .sd-icerik b, html.tema-gece .sd-icerik strong { color: #fff; }
html.tema-gece .sd-icerik { color: var(--gece-soluk, #8f99a8); }
html.tema-gece .sd-kart .sd-ikon { background: color-mix(in srgb, var(--sd-renk) 22%, transparent); }
html.tema-gece .sd-dugme:not(.sd-birincil) { background: var(--gece-yuzey-3, #283040); border-color: var(--gece-kenar, #2f3746); color: var(--gece-yazi, #d7dde6); }

/* Rapor tasarımı (Lab/RaporDuzeni) düğmesi: analiz talepleri / fırın raporu listeleri ve giriş ekranları.
   Kurumsal laciverten Stern mavisine geçişli; listedeki renkli durum düğmeleri arasında ayırt edilir. */
.btn.lab-tasarim-dugme { background: linear-gradient(135deg, #1c3053 0%, #1f5f8f 55%, #1f88b5 100%); border: 0; color: #fff !important; font-weight: 600; letter-spacing: .2px;
                         box-shadow: 0 1px 2px rgba(28, 48, 83, .35); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.btn.lab-tasarim-dugme:hover, .btn.lab-tasarim-dugme:focus-visible { filter: brightness(1.12); box-shadow: 0 2px 6px rgba(31, 136, 181, .45); color: #fff !important; }
.btn.lab-tasarim-dugme .fa { font-size: .95em; }
.as-hap.lab-tasarim-hap { background: #fff !important; color: #1c3053 !important; font-weight: 700; }
.as-hap.lab-tasarim-hap .fa { color: #1f88b5; }
html.tema-gece .as-hap.lab-tasarim-hap { background: var(--gece-yuzey-3, #283040) !important; color: var(--gece-yazi, #d7dde6) !important; }

/* Laboratuvar listeleri (Analiz Talepleri, Fırın Raporları): rapor durumu + PDF / Tasarım tek satırda (Scripts/ortak/labRaporDurum.js).
   Durum etiketi sabit yükseklikte, metin bölünmez; rapor hazırsa etiket rapora giden bağlantıdır. PDF ve Tasarım aynı boyutta
   simge düğmeleri (ipucu metinli). */
.lab-rapor { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; vertical-align: middle; max-width: 100%; }
.lab-rapor + .lab-rapor { margin-top: 4px; }
.lab-rapor-liste { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.lab-rapor-liste .lab-rapor + .lab-rapor { margin-top: 0; }
.lab-rapor-liste .lab-durum > span { max-width: 130px; }
.lab-durum { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; border: 1px solid transparent;
             font-size: 11.5px; font-weight: 600; line-height: 1; text-decoration: none !important; white-space: nowrap; min-width: 0; }
.lab-durum > span { overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.lab-durum .fa { font-size: 11px; flex: 0 0 auto; }
.lab-durum-bekliyor { background: #e7f1fb; border-color: #bcd6f0; color: #1f5f8f; }
.lab-durum-suruyor { background: #fff4dc; border-color: #f0d394; color: #8a5a00; }
.lab-durum-tamam { background: #e5f4ea; border-color: #a9d8b8; color: #1d6b39 !important; }
a.lab-durum-tamam:hover, a.lab-durum-tamam:focus-visible { background: #d2ecdb; border-color: #7cc596; color: #145530 !important; }
.lab-ikon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 6px;
            font-size: 12px; text-decoration: none !important; border: 1px solid transparent; transition: filter .15s, box-shadow .15s; }
.lab-ikon-pdf { background: #fdecec; border-color: #f2b9b9; color: #b42318 !important; }
.lab-ikon-pdf:hover, .lab-ikon-pdf:focus-visible { background: #fbd9d9; border-color: #e88f8f; }
.lab-ikon-tasarim { background: linear-gradient(135deg, #1c3053 0%, #1f5f8f 55%, #1f88b5 100%); color: #fff !important; box-shadow: 0 1px 2px rgba(28, 48, 83, .35); }
.lab-ikon-tasarim:hover, .lab-ikon-tasarim:focus-visible { filter: brightness(1.12); box-shadow: 0 2px 6px rgba(31, 136, 181, .45); }
/* Tasarım düğmesi yazılı: genişlik içeriğe göre, simge + "Tasarım" */
.lab-ikon.lab-tasarim-dugme { width: auto; flex: 0 0 auto; padding: 0 8px; gap: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .2px; border: 0; }
html.tema-gece .lab-durum-bekliyor { background: rgba(31, 136, 181, .18); border-color: rgba(31, 136, 181, .45); color: #8fc8ea; }
html.tema-gece .lab-durum-suruyor { background: rgba(217, 160, 43, .18); border-color: rgba(217, 160, 43, .45); color: #f0c870; }
html.tema-gece .lab-durum-tamam { background: rgba(46, 160, 90, .18); border-color: rgba(46, 160, 90, .45); color: #8fdcaa !important; }
html.tema-gece a.lab-durum-tamam:hover { background: rgba(46, 160, 90, .28); color: #b3ecc6 !important; }
html.tema-gece .lab-ikon-pdf { background: rgba(220, 70, 60, .18); border-color: rgba(220, 70, 60, .45); color: #f19a92 !important; }


/* ---------- Sipariş stok seçimi (select2): Stok Yok / Kullanılabilir etiketleri ----------
   Kendi zemini olan küçük etiket: açılır listede satır vurgulanınca (koyu zemin, beyaz yazı) da okunur. */
.sp-stok-etiket { display: inline-block; padding: 0 6px; border-radius: 4px; font-weight: 700; line-height: 1.5; }
.sp-stok-var { background: #e3f4e8; color: #17692e; }
.sp-stok-yok { background: #fde8e6; color: #b3261e; }
html.tema-gece .sp-stok-var { background: #1d3a27; color: #8fdca6; }
html.tema-gece .sp-stok-yok { background: #45211f; color: #f3a29b; }
