/* MOBILE SIDEBAR TOGGLE */
/* DESKTOP - overlay gizle */
@media (min-width: 768px) {
    #sidebar_overlay {
        display: none !important;
    }
}
/* MOBILE SIDEBAR TOGGLE */
@media (max-width: 767px) {
    /* Sidebar - position fixed ve translateX ile gizle */
    #sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        left: 0 !important;
        z-index: 50 !important;
        box-shadow: 0 0 15px rgba(0,0,0,0.2) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        width: 260px !important;
    }
    #sidebar.sidebar_open {
        transform: translateX(0) !important;
    }
    /* Overlay - kapalı durumda görünmez */
    #sidebar_overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 40 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }
    #sidebar_overlay.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* Body overflow hidden when sidebar open - mobilde scroll engelle */
    body.sidebar-mobile-open {
        overflow: hidden !important;
    }
}
/* MOBILE SIDEBAR TOGGLE */

input[readonly]{
    cursor:no-drop;
    background:#e1e1e1;
}
input[disabled]{
    cursor:no-drop;
    background:#e1e1e1;
    color:#333;
}
select[disabled]{
    cursor:no-drop;
    background:#e1e1e1;
    color:#333;
}
textarea[disabled]{
    cursor:no-drop;
    background:#e1e1e1;
    color:#333;
}
/* CUSTOM TOOLTIP */
[data-tooltip]{
    position:relative;
    cursor:help;
}
[data-tooltip]::before{
    content:attr(data-tooltip);
    position:absolute;
    bottom:120%;
    left:50%;
    transform:translateX(-50%);
    padding:5px 10px;
    background:#ffffff;
    color:#000000;
    font-size:13px;
    border-radius:5px;
    white-space:pre-wrap;
    width:max-content;
    max-width:250px;
    text-align:center;
    line-height:1.4;
    opacity:0;
    pointer-events:none;
    transition:all 0.2s ease;
    z-index:100;
    font-family:sans-serif;
    box-shadow:1px 0px 12px 11px #eee;
}
[data-tooltip]:hover::before{
    opacity:1;
    bottom:130%;
}
/* CUSTOM TOOLTIP */
/* SIPARIS ON IZLEME IKONU: HOVER VE TIKLANDI (ONIZLENDI) DURUMU */
.order_preview_btn {
    cursor: pointer;
    border-radius: 0.375rem;
    padding: 2px;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.order_preview_btn:hover {
    color: #17a2b8 !important;
    background-color: rgba(23, 162, 184, 0.12);
}
.order_preview_btn.previewed {
    color: #1f2937 !important;
}
.order_preview_btn.previewed:hover {
    color: #17a2b8 !important;
}
.dark .order_preview_btn.previewed {
    color: #f3f4f6 !important;
}

/* KARANLIK TEMA: YERLEŞİK KONTROLLER (TARİH SEÇİCİ, KAYDIRMA ÇUBUĞU, SELECT AÇILIR LİSTE) KARANLIK RENK ŞEMASINI KULLANIR */
html.dark {
    color-scheme: dark;
}

/* KARANLIK TEMA: QUILL EDİTÖR (İÇERİK YÖNETİMİ) */
.dark .ql-toolbar.ql-snow {
    background-color: #1e293b;
    border-color: #334155;
}
.dark .ql-container.ql-snow {
    border-color: #334155;
    color: #e2e8f0;
}
.dark .ql-snow .ql-stroke {
    stroke: #cbd5e1;
}
.dark .ql-snow .ql-fill {
    fill: #cbd5e1;
}
.dark .ql-snow .ql-picker,
.dark .ql-snow .ql-picker-label {
    color: #cbd5e1;
}
.dark .ql-editor.ql-blank::before {
    color: #64748b;
}

/* SECILI SATIR (TABLODA CHECKBOX ISARETLI): YUMUSAK MAVI, HANGI SATIRLARIN SECILDIGI BELLI OLUR */
tbody tr:has(input[type="checkbox"]:checked) {
    background-color: rgba(14, 165, 233, 0.10);
}
html.dark tbody tr:has(input[type="checkbox"]:checked) {
    background-color: rgba(56, 189, 248, 0.14);
}

/* =====================================================================
   MOBIL UYUM (CRM TELEFONDAN DA KULLANILIR): 768px VE ALTI
   ===================================================================== */
@media (max-width: 768px) {

    /* SAYFA ICERIK BOSLUKLARI DARALT */
    main, .main_content, #main_content {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* IKILI / UCLU YAN YANA DUZENLER ALT ALTA (SOL FORM + SAG LISTE, SIPARIS DETAY VB.) */
    .flex:has(> .w-2\/6, > .w-4\/6, > .w-1\/3, > .w-2\/3, > .w-1\/2) {
        flex-direction: column;
    }
    .w-2\/6, .w-4\/6, .w-1\/3, .w-2\/3, .w-1\/2 {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ARAMA KUTULARI VE SABIT GENISLIKLI ALANLAR EKRANI ASMASIN */
    .w-64, .w-72, .w-80, .w-96, [class*="min-w-[200px]"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* ARAC CUBUKLARI VE BASLIK SATIRLARI SARSIN */
    .flex.items-center.justify-between,
    .flex.flex-wrap.items-center,
    .flex.items-center.gap-4,
    .flex.items-center.gap-3 {
        flex-wrap: wrap;
    }
    .flex.items-center.justify-between {
        gap: 0.5rem;
    }
    button.flex.items-center.gap-2, a.flex.items-center.gap-2 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* MODALLAR: EKRAN GENISLIGINE SIGAR, ICERIK KAYAR */
    .partince-big-modal .modal-dialog {
        max-width: 96vw !important;
        width: 96vw !important;
        margin: 0.5rem auto !important;
    }
    .partince-big-modal .modal-body {
        max-height: 78vh;
        overflow-y: auto;
    }

    /* TABLOLAR: YATAY KAYDIRMA (TELEFONDA SUTUNLAR SIKISMASIN) */
    .overflow-x-auto, div[class*="_container"] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    div[class*="_list_container"] table, .overflow-x-auto > table {
        min-width: 680px;
    }
    table {
        font-size: 0.8rem;
    }

    /* SAYFALAMA VE FILTRELER */
    .pagination_html {
        overflow-x: auto;
    }

    /* BILGI KUTUSU: DUGME ALTA GECSIN */
    .page_info_detail_btn {
        margin-top: 0.25rem;
    }

    /* ORDER DETAY / FORM IZGARALARI TEK SUTUN */
    .grid.grid-cols-3, .grid.grid-cols-4, .grid.grid-cols-5 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    /* UST CUBUK */
    .theme_toggle_btn { padding: 0.4rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.05rem; }
    .text-2xl { font-size: 1.25rem; }
}

/* TABLO SECIM KUTULARI: FARE ILE KOLAY TIKLANSIN (BUYUK KUTU + HUCRENIN TAMAMI TIKLANABILIR) */
table th input[type="checkbox"], table td input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}
table td:has(> input[type="checkbox"]), table th:has(> input[type="checkbox"]) {
    cursor: pointer;
    padding-left: .75rem;
    padding-right: .75rem;
}

/* ARKA PLAN RENGI SECENEKLERI (HEADER > PALET): html[data-bg] DEGERLERI */
html[data-bg="light2"] .bg-background-light { background-color: #e6eef7 !important; }
html[data-bg="light3"] .bg-background-light { background-color: #f6efe3 !important; }
html[data-bg="dark2"].dark .dark\:bg-background-dark, html[data-bg="dark2"].dark body { background-color: #0f1b2d !important; }
html[data-bg="dark3"].dark .dark\:bg-background-dark, html[data-bg="dark3"].dark body { background-color: #1f1a17 !important; }

/* SİPARİŞ KONTROL LİSTESİ: SÜTUNLAR DAR, SAYFA YATAYDA TAŞMASIN */
.get_order_control_list_container table th,
.get_order_control_list_container table td{
    padding-left: .5rem;
    padding-right: .5rem;
}
.get_order_control_list_container table td a{
    display: inline-block;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/* MOBİL: ADRES ÇUBUĞU YÜKSEKLİĞİ (100vh TAŞMASI) - SAYFA VE MENÜ KAYDIRILABİLİR OLSUN */
@supports (height: 100dvh){
    body > .flex.h-screen,
    main.h-screen{
        height: 100dvh !important;
    }
}
#sidebar nav{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
}
@media (max-width: 767px){
    #sidebar{
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ===== GENEL: YATAY KAYDIRMA YOK, TABLOLAR EKRANA SIĞAR ===== */
html, body{
    max-width: 100%;
    overflow-x: hidden;
}
main .overflow-x-auto,
main .overflow-auto{
    overflow-x: hidden !important;
}
main table{
    width: 100% !important;
    max-width: 100%;
    table-layout: auto;
}
main table th,
main table td{
    padding: .4rem .45rem !important;
    font-size: 12px;
    white-space: normal !important;
    overflow-wrap: break-word;
}
main table .rounded-full,
main table .tabular-nums,
main table [data-tooltip] .material-symbols-outlined{
    white-space: nowrap !important;
}
main table td .flex{
    flex-wrap: wrap;
}
main table input[type="text"],
main table input[type="number"],
main table select{
    max-width: 100%;
}

/* ===== SATIR RENKLERİ: YUMUŞAK GRİ - BEYAZ (ZEBRA) ===== */
main table tbody tr:not([class^="bg-"]):not([class*=" bg-"]):nth-child(odd){
    background-color: #ffffff;
}
main table tbody tr:not([class^="bg-"]):not([class*=" bg-"]):nth-child(even){
    background-color: #f1f4f8;
}
main table tbody tr:not([class^="bg-"]):not([class*=" bg-"]):hover{
    background-color: #e4edf7;
}
.dark main table tbody tr:not([class^="bg-"]):not([class*=" bg-"]):nth-child(odd){
    background-color: rgba(255, 255, 255, 0.02);
}
.dark main table tbody tr:not([class^="bg-"]):not([class*=" bg-"]):nth-child(even){
    background-color: rgba(255, 255, 255, 0.06);
}
.dark main table tbody tr:not([class^="bg-"]):not([class*=" bg-"]):hover{
    background-color: rgba(255, 255, 255, 0.10);
}

/* ===== MOBİL: SAYFA AÇIKLAMA ALANI GİZLİ ===== */
@media (max-width: 767px){
    .page_info_box{
        display: none !important;
    }
}

/* MOBİL: TELEFON EKRANINA SIĞMAYAN GENİŞ TABLOLAR KESİLMESİN, TABLO KENDİ İÇİNDE KAYDIRILABİLSİN */
@media (max-width: 767px){
    main .overflow-x-auto,
    main .overflow-auto{
        overflow-x: auto !important;
    }
}

/* ===== YATAY TAŞMA: İÇERİK KABI DARALABİLSİN (flex çocukları min-width:auto yüzünden taşıyordu) ===== */
main,
main > div,
main .flex-1{
    min-width: 0;
}
main .overflow-y-auto{
    overflow-x: hidden;
}
main table [class*="min-w-"],
main [class*="min-w-["]{
    min-width: 0 !important;
}
main table td img{
    max-width: 100%;
    height: auto;
}
main table th,
main table td{
}
main table th{
    font-size: 11px;
}

/* ===== MOBİL: DASHBOARD VE BUTON ORANLARI ===== */
@media (max-width: 767px){
    .dashboard_welcome{
        flex-direction: column;
        align-items: stretch !important;
        gap: .75rem !important;
        padding: .9rem !important;
    }
    .dashboard_welcome > *{
        width: 100%;
        text-align: center !important;
    }
    .dashboard_welcome .dashboard_whatsapp_test_btn{
        justify-content: center;
        width: 100%;
    }
    .dashboard_welcome .dashboard_clock{
        font-size: 1.5rem;
    }
    .dashboard_cal_grid,
    .dashboard_cal_grid + *{
        gap: .25rem !important;
    }
    .dashboard_count,
    .dashboard_stat{
        font-size: 1.25rem !important;
    }
    /* BUTONLAR: TELEFONDA TAM GENİŞLİK DEĞİL, ORANLI VE DOKUNMAYA UYGUN */
    main button:not(.material-symbols-outlined):not([class*="rounded-full"]):not(.modal-close){
        min-height: 40px;
    }
    main .flex.flex-wrap > button,
    main .flex.flex-wrap > a.inline-flex{
        flex: 1 1 auto;
    }
}

/* ===== ZEBRA: generate_table satırları bg-white sınıfıyla geliyordu, önceki kural onları dışlıyordu ===== */
main table tbody tr:nth-child(even):not([class*="bg-blue"]):not([class*="bg-green"]):not([class*="bg-violet"]):not([class*="bg-amber"]):not([class*="bg-red"]):not([class*="bg-yellow"]):not([class*="bg-sky"]):not([class*="bg-primary"]){
    background-color: #f1f4f8 !important;
}
.dark main table tbody tr:nth-child(even):not([class*="bg-blue"]):not([class*="bg-green"]):not([class*="bg-violet"]):not([class*="bg-amber"]):not([class*="bg-red"]):not([class*="bg-yellow"]):not([class*="bg-sky"]):not([class*="bg-primary"]){
    background-color: rgba(255, 255, 255, 0.06) !important;
}

/* ===== İŞLEM İKONLARI: aktif olmayanlar (hover / işaret yok) daha soluk gri, aktif olanlar belirgin ===== */
main table td button:not(.active):not(.is_disabled) > .material-symbols-outlined:not([class*="text-"]):not(.invisible),
main table td button:not(.active) > svg:not([class*="text-"]){
    color: #c5ccd6;
}
/* HOVER'DA AKTİF GİBİ KOYULAŞMAZ: İKON SADECE İŞLEM YAPILINCA (active) KOYULAŞIR */
.dark main table td button:not(.active):not(.is_disabled) > .material-symbols-outlined:not([class*="text-"]){
    color: #52525b;
}

/* ===== MOBİL (genel): tablolar satır içi kırılmasın, kap içinde yatay kayabilsin; sayfalama sığsın ===== */
@media (max-width: 767px){
    main table{
        width: max-content !important;
        min-width: 100%;
    }
    main table th,
    main table td{
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        padding: .4rem .55rem !important;
    }
    main table td .flex{
        flex-wrap: nowrap;
    }
    main [class*="_container"],
    main .overflow-x-auto,
    main .overflow-auto{
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .pagination_html_container{
        justify-content: flex-start !important;
    }
    .pagination_html_container nav{
        flex-wrap: wrap;
        gap: .25rem;
        justify-content: flex-start;
    }
    .pagination_html_container nav > div{
        flex-wrap: wrap;
    }
    /* ÜRÜN LİSTESİ: ÜST BUTON ŞERİDİ TELEFONDA GİZLİ */
    .product_toolbar{
        display: none !important;
    }
    /* SEKME / FİLTRE SATIRLARI TELEFONDA ALT ALTA, TAM GENİŞLİK */
    main .flex.flex-wrap.items-center.gap-4 > div,
    main .flex.flex-wrap.items-center.gap-4 > select{
        width: 100% !important;
        max-width: 100%;
    }
    main nav.flex.space-x-6{
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* SVG İKONLAR (Paraşüt, WhatsApp): aktif değilken soluk gri, aktifken koyu */
main table td button:not(.active) svg{
    color: #c5ccd6;
}
main table td button.active svg{
    color: #1f2937;
}
.dark main table td button.active svg{
    color: #e5e7eb;
}

/* SİPARİŞ KONTROL PENCERESİ: dar sütunlar satır içinde asla harf harf kırılmasın; ürün adı kalan genişliği alsın */
.order_control_items td:not(:nth-child(3)),
.order_control_items + * ,
.order_control_items tr td{
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
.order_control_items tr td:nth-child(3){
    white-space: normal !important;
    min-width: 12rem;
}
.order_control_items img.partince_lightbox{
    min-width: 5rem;
}

/* SİPARİŞ KONTROL ÜRÜN LİSTESİ: ÜRÜNLER DAHA GÖRÜNÜR (büyük yazı, büyük görsel, büyük düğmeler) */
.order_control_items tr td{
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
    font-size: 17px !important;
}
.order_control_items tr td:nth-child(2){
    font-size: 15px !important;
    color: #475569;
}
.order_control_items tr td:nth-child(3){
    font-size: 21px !important;
    font-weight: 700;
    line-height: 1.25;
}
.order_control_items tr td:nth-child(4){
    font-size: 20px !important;
    font-weight: 700;
}
.order_control_items .order_control_read_row_btn,
.order_control_items .order_control_check_btn{
    width: 3.25rem !important;
    height: 3.25rem !important;
}
.order_control_items .order_control_read_row_btn .material-symbols-outlined,
.order_control_items .order_control_check_btn .material-symbols-outlined{
    font-size: 28px !important;
}

/* KONTROL: STOK kalın, SATILAN küçük, ADET çok büyük (sütunlar: 1 görsel, 2 kod, 3 ürün, 4 stok, 5 satılan, 6 birim, 7 adet, 8 olay) */
.order_control_items tr td:nth-child(4){
    font-size: 16px !important;
    font-weight: 800 !important;
}
.order_control_items tr td:nth-child(5){
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #94a3b8;
}
.order_control_items tr td:nth-child(6){
    font-size: 15px !important;
    font-weight: 500 !important;
}
.order_control_items tr td:nth-child(7){
    font-size: 44px !important;
    font-weight: 800 !important;
    line-height: 1;
    color: #0f172a;
}
.dark .order_control_items tr td:nth-child(7){
    color: #f8fafc;
}

/* BÜYÜK PENCERELER: PENCERE EKRANA SIĞAR, KAYDIRMA PENCERENİN İÇİNDE (BAŞLIK VE ALT BUTON SABİT) */
.partince-big-modal .modal-dialog{
    display: flex !important;
    flex-direction: column;
    max-height: 96vh !important;
}
.partince-big-modal .modal-header,
.partince-big-modal .modal-footer{
    flex: 0 0 auto;
}
.partince-big-modal .modal-body{
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
}

/* SİPARİŞ KONTROL: ÇOK BÜYÜTÜLEN ÖLÇÜLER GERİ ALINDI (uzaktan okunur ama iri değil) */
.order_control_items tr td{
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
    font-size: 15px !important;
}
.order_control_items tr td:nth-child(3){
    font-size: 18px !important;
}
.order_control_items tr td:nth-child(4){
    font-size: 13px !important;
}
.order_control_items tr td:nth-child(5){
    font-size: 11px !important;
}
.order_control_items tr td:nth-child(6){
    font-size: 14px !important;
}
.order_control_items tr td:nth-child(7){
    font-size: 30px !important;
    font-weight: 800 !important;
}
.order_control_items img.partince_lightbox{
    min-width: 0;
    width: 5rem !important;
    height: 5rem !important;
}
.order_control_items .order_control_read_row_btn,
.order_control_items .order_control_check_btn{
    width: 2.75rem !important;
    height: 2.75rem !important;
}
.order_control_items .order_control_read_row_btn .material-symbols-outlined,
.order_control_items .order_control_check_btn .material-symbols-outlined{
    font-size: 24px !important;
}

/* KİTİN ALTINDAKİ ÜRÜNLER (KİT BİLEŞENLERİ) KÜÇÜK: ADET DAHİL */
.order_control_items tr[data-type="kit_detail"] td{
    padding-top: .25rem !important;
    padding-bottom: .25rem !important;
    font-size: 13px !important;
}
.order_control_items tr[data-type="kit_detail"] td:nth-child(3){
    font-size: 14px !important;
    font-weight: 600;
}
.order_control_items tr[data-type="kit_detail"] td:nth-child(4){
    font-size: 12px !important;
}
.order_control_items tr[data-type="kit_detail"] td:nth-child(7){
    font-size: 18px !important;
}
.order_control_items tr[data-type="kit_detail"] img.partince_lightbox{
    width: 2.75rem !important;
    height: 2.75rem !important;
}
.order_control_items tr[data-type="kit_detail"] .order_control_read_row_btn,
.order_control_items tr[data-type="kit_detail"] .order_control_check_btn{
    width: 2rem !important;
    height: 2rem !important;
}
.order_control_items tr[data-type="kit_detail"] .order_control_read_row_btn .material-symbols-outlined,
.order_control_items tr[data-type="kit_detail"] .order_control_check_btn .material-symbols-outlined{
    font-size: 18px !important;
}

/* TAMAMLANDI İŞARETLENEN SATIRLAR: GRİ VE SÖNÜK (işaretlenmeyenle karışmasın) */
.order_control_items tr.is_done{
    opacity: .45;
    filter: grayscale(1);
}
.order_control_items tr.is_done .order_control_check_btn{
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #fff !important;
}

/* SİPARİŞ KONTROL ÖZETİ: SİPARİŞ TUTARI RENKLİ (gözden kaçmasın) */
.order_control_summary > div:nth-child(3){
    background-color: #fef3c7 !important;
    border-color: #f59e0b !important;
}
.order_control_summary > div:nth-child(3) div:last-child,
.order_control_summary > div:nth-child(3) span:last-child{
    color: #92400e;
}

/* BARKOD İKONU: ince çizgilerde LCD alt-piksel (yeşil/kırmızı) kenar rengi oluşmasın; gri tonlamalı yumuşatma */
.print_order_barcode_btn .material-symbols-outlined,
.print_order_barcode_btn.active .material-symbols-outlined,
.print_order_barcode_btn:hover .material-symbols-outlined{
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    transform: translateZ(0);
    text-shadow: none !important;
}

/* SİPARİŞ ÖN İZLEME: ÜRÜN ALANI BÜYÜK (kod, ürün adı, adet, fiyatlar) */
.order_preview_items td{
    padding-top: .6rem !important;
    padding-bottom: .6rem !important;
    font-size: 15px !important;
}
.order_preview_items td:nth-child(3){
    font-size: 17px !important;
    font-weight: 700;
}
.order_preview_items td:nth-child(5){
    font-size: 20px !important;
    font-weight: 800;
}
.order_preview_items td:nth-child(7){
    font-size: 16px !important;
}
.order_preview_modal .modal-dialog{
    max-width: 72rem !important;
}

/* LİSTE TABLOLARI (MASAÜSTÜ): BAŞLIK SATIRI SABİT (SAYFA KAYDIRILIRKEN) */
@media (min-width: 768px){
    /* LİSTE KUTUSU İÇ KAYDIRMA YOK (tek satırda bile tooltip yüzünden dikey çubuk çıkıyordu); SAYFA KAYAR, BAŞLIK SATIRI YİNE SABİT KALIR.
       AZ SATIRLI LİSTEDE KUTU DARALMASIN: ALT BOŞLUK + EN AZ YÜKSEKLİK */
    div[class*="_list_container"]:not(.get_order_control_list_container_no_scroll){
        max-height: none;
        overflow: visible;
        min-height: 12rem;
        padding-bottom: 2.5rem;
    }
    div[class*="_list_container"] table thead th{
        position: sticky;
        top: 0;
        z-index: 20;
        background-color: #f9fafb;
        box-shadow: 0 1px 0 #e5e7eb;
    }
    .dark div[class*="_list_container"] table thead th{
        background-color: #27272a;
        box-shadow: 0 1px 0 #3f3f46;
    }
}

/* KİT ALTI ÜRÜNLER (SİPARİŞ KONTROL): DAHA KÜÇÜK; ADET RAKAMI KALIN DEĞİL */
.order_control_items tr[data-type="kit_detail"] td{
    padding-top: .15rem !important;
    padding-bottom: .15rem !important;
    font-size: 12px !important;
}
.order_control_items tr[data-type="kit_detail"] td:nth-child(3){
    font-size: 13px !important;
    font-weight: 500;
}
.order_control_items tr[data-type="kit_detail"] td:nth-child(4){
    font-size: 11px !important;
}
.order_control_items tr[data-type="kit_detail"] td:nth-child(7){
    font-size: 14px !important;
    font-weight: 400 !important;
}
.order_control_items tr[data-type="kit_detail"] img.partince_lightbox{
    width: 2.25rem !important;
    height: 2.25rem !important;
}
.order_control_items tr[data-type="kit_detail"] .order_control_read_row_btn,
.order_control_items tr[data-type="kit_detail"] .order_control_check_btn{
    width: 1.75rem !important;
    height: 1.75rem !important;
}
.order_control_items tr[data-type="kit_detail"] .order_control_read_row_btn .material-symbols-outlined,
.order_control_items tr[data-type="kit_detail"] .order_control_check_btn .material-symbols-outlined{
    font-size: 16px !important;
}

/* TRENDYOL IADELER: TABLO MOBILDE SIKISMASIN (YATAY KAYDIRMA), SUTUNLAR UST USTE BINMESIN */
.get_trendyol_claim_list_container table{
    min-width: 960px;
}

/* SIPARIS LISTESI > EKSIK ADIM SECIMI: IKON + METIN AYNI SATIRDA, TASARSA ... */
.missing_step_label{
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.missing_step_label > span:last-child{
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* LISTELERDE ILK SATIR: TOOLTIP SABIT BASLIGIN ALTINDA KALMASIN, ASAGI ACILIR */
main table tbody tr:first-child [data-tooltip]::before{
    bottom:auto;
    top:120%;
}
main table tbody tr:first-child [data-tooltip]:hover::before{
    bottom:auto;
    top:130%;
}

/* ÜST ŞERİT: OTURUMU KAPAT TOOLTIP'I ÜSTE DEĞİL ALTA AÇILIR (ÜSTTE KESİLİYORDU) */
.logout_btn[data-tooltip]::before{
    bottom:auto;
    top:120%;
    left:auto;
    right:0;
    transform:none;
}
.logout_btn[data-tooltip]:hover::before{
    bottom:auto;
    top:130%;
}

/* BARKOD ÇIKTISI: SÜTUNLAR SABİT GENİŞLİK, YATAY KAYMA YOK */
.get_barcode_print_list_container{
    overflow-x:hidden;
}
.get_barcode_print_list_container table{
    width:100%;
    table-layout:fixed;
}
.get_barcode_print_list_container td,
.get_barcode_print_list_container th{
    white-space:normal !important;
    word-break:break-word;
    padding-left:.5rem;
    padding-right:.5rem;
}

/* TEK SATIRLI LISTELER: ILK SATIRDA TOOLTIP ASAGI ACILIR, KAYDIRILAN KUTU KESIYORDU (ORN. SIPARIS KONTROL "EKLENDI"); ALTA BOSLUK BIRAKILIR */
.overflow-x-auto:has(> table > tbody > tr:only-child){
    padding-bottom:2.75rem;
}
.order_control_modal .overflow-x-auto{
    padding-bottom:2.75rem;
}

/* DOKUNMATIK EKRAN (MOBIL): MODALLARDA EKRANIN ORTASINDA GORUNEN KAYDIRMA CUBUGU / TAKILI TOOLTIP GOLGESI (SIPARIS PAKETLEME + ON IZLEME) */
@media (hover: none) and (pointer: coarse){
    .partince-big-modal *{
        scrollbar-width:none;
    }
    .partince-big-modal *::-webkit-scrollbar{
        display:none;
    }
    .pdf_preview_container{
        overflow-x:hidden;
    }
    [data-tooltip]::before{
        display:none !important;
    }
}

/* TABLO KAPLARI: DİKEY KAYDIRMA / KESİLME YOK (tooltip ve açılır menüler kapta kesilip dikey kaydırma çubuğu çıkarmasın); sadece yatay taşma kırpılır */
@media (min-width: 768px){
    main .overflow-x-auto{
        overflow-x: clip !important;
        overflow-y: visible !important;
        min-height: 12rem;
    }
}

/* TOOLTIP KENARA YAKINSA (EKRAN / LİSTE KUTUSU) SAĞA YA DA SOLA YASLANIR; SINIFI partince.js EKLER */
[data-tooltip].tt_edge_right::before{
    left:auto !important;
    right:0 !important;
    transform:none !important;
}
[data-tooltip].tt_edge_left::before{
    left:0 !important;
    right:auto !important;
    transform:none !important;
}
