/* ================================================================= */
/* FERMO FENCE - GENEL PANEL & RAPOR YAZDIRMA STİLLERİ               */
/* Dosya Yolu: public_html/qrgiris/assets/css/style.css              */
/* ================================================================= */

/* ----------------------------------------------------------------- */
/* 0. APP SHELL KESİN EKRAN VE FOOTER SABİTLEME MİMARİSİ             */
/* ----------------------------------------------------------------- */
html, body {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
    background-color: #050505 !important;
    color: #f1f5f9 !important;
    padding-bottom: 0 !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Üst Kısım (Header) Sabit */
body > .container-fluid:first-of-type {
    flex: 0 0 auto !important;
}

/* Orta Kaydırılabilir Tablo Alanı (Sadece burası kayar) */
body > .container-fluid.flex-grow-1 {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
}

/* Alt Kısım (Footer) Kusursuz Sabitleme */
footer, footer.no-print {
    flex: 0 0 auto !important;
    width: 100% !important;
}

/* ----------------------------------------------------------------- */
/* 1. EKRAN GÖRÜNÜMÜ - TRUE DARK PANEL TEMASI                       */
/* ----------------------------------------------------------------- */
.card { 
    background-color: #121212 !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    margin-bottom: 15px !important;
}

.form-control, .form-select { 
    background-color: #1a1a1a !important; 
    color: #f1f5f9 !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
}

.form-control:focus, .form-select:focus { 
    background-color: #1a1a1a !important; 
    color: #f1f5f9 !important; 
    border-color: #0d6efd !important; 
    box-shadow: none !important; 
}

.modal-content { 
    background-color: #121212 !important; 
    color: #fff !important; 
    border: 1px solid #27272a !important; 
}

/* DARALTILMIŞ COMPACT TRUE DARK TABLO STİLİ (Ekran İçin) */
.table-custom-dark { 
    --bs-table-bg: transparent !important; 
    --bs-table-color: #f1f5f9 !important; 
    color: #f1f5f9 !important; 
    margin-bottom: 0 !important; 
}

.table-custom-dark th, 
.table-custom-dark td { 
    padding: 8px 12px !important; 
    font-size: 0.85rem !important; 
    vertical-align: middle !important;
    line-height: 1.3 !important;
}

.table-custom-dark thead th { 
    background-color: #0d0d0d !important; 
    color: #ffffff !important; 
    border-bottom: 1px solid #27272a !important; 
    font-weight: 600;
}

.table-custom-dark tbody tr:nth-of-type(even) td { background-color: #121212 !important; border-bottom: 1px solid #1f1f23 !important; }
.table-custom-dark tbody tr:nth-of-type(odd) td { background-color: #18181b !important; border-bottom: 1px solid #1f1f23 !important; }
.table-custom-dark tbody tr:hover td { background-color: #27272a !important; color: #ffffff !important; }

/* HENÜZ ÇIKIŞ YAPILMADI YAZISI HOVER AYARI */
.table-custom-dark tbody tr td.text-muted.fst-italic {
    color: #888888 !important; 
    transition: all 0.2s ease-in-out !important;
}

.table-custom-dark tbody tr:hover td.text-muted.fst-italic,
.table-custom-dark tbody tr td.text-muted.fst-italic:hover {
    color: #ffffff !important; 
    opacity: 1 !important;
    font-weight: 500 !important;
}

/* KUTULU DİL MENÜSÜ */
.lang-switch-box {
    border: 1px solid #ffc107 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: inline-flex !important;
}

.lang-switch-box a {
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

.lang-switch-box a.active {
    background-color: #ffc107 !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

.lang-switch-box a:not(.active) {
    background-color: #000000 !important;
    color: #ffc107 !important;
    font-weight: 500 !important;
}

/* AUTOFILL MAVİ ARKA PLAN DÜZELTME */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

::placeholder {
    color: #8e8e93 !important;
    opacity: 0.7 !important;
}


/* ----------------------------------------------------------------- */
/* 2. RAPOR VE YAZDIRMA (PDF / A4) DÜZENİ                            */
/* ----------------------------------------------------------------- */

/* RAPOR TABLO STİLİ (Daraltılmış Hücre ve Satır Aralıkları) */
.rapor-tablo {  
    border-collapse: collapse;  
    width: 100%;  
    table-layout: fixed; 
}

.rapor-tablo th,  
.rapor-tablo td {  
    border: 1px solid #000000 !important;  
    padding: 3px 5px !important; 
    font-size: 10.5px; 
    word-wrap: break-word;  
    vertical-align: middle;
    line-height: 1.2 !important; 
}

.rapor-tablo thead th {  
    background-color: #f2f2f2 !important;  
    color: #000000 !important;  
    font-weight: bold;
}

/* SÜTUN GENİŞLİK ORANLARI (%100 TOPLAM - 7 Sütun İçin) */
.col-personel     { width: 20%; } 
.col-kullanici    { width: 14%; } 
.col-tarih        { width: 13%; } 
.col-giris        { width: 10%; } 
.col-cikis        { width: 10%; } 
.col-saat-ucreti  { width: 16%; } 
.col-toplam-ucret { width: 17%; } 


/* ----------------------------------------------------------------- */
/* 3. @MEDIA PRINT (YAZICI / PDF İÇİN EKRAN-BEYAZ DÖNÜŞÜMÜ)          */
/* ----------------------------------------------------------------- */
@page {
    size: A4 portrait; 
    margin: 10mm;      
}

@media print {  
    .no-print,
    .btn,
    nav,
    .dropdown,
    footer,
    .lang-switch-box {  
        display: none !important;  
    }  

    body {  
        background-color: #ffffff !important;  
        color: #000000 !important;  
        padding: 0 !important;  
        margin: 0 !important;  
        font-family: Arial, Helvetica, sans-serif !important;
        overflow: auto !important;
        height: auto !important;
    }  

    .container, .container-fluid {  
        max-width: 100% !important;  
        width: 100% !important;  
        margin: 0 !important;  
        padding: 0 !important;  
    }

    .card {
        background-color: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* ----------------------------------------------------------------- */
/* 4. SAYFA İÇİ DİKEY BOŞLUKLARI TEMİZLEME VE KOMPAKTLEŞTİRME         */
/* ----------------------------------------------------------------- */
body > .container,  
body > .container-fluid,
.row.g-4 {
    margin-top: 0 !important;
    padding-top: 5px !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 5px !important;
    }
    .container, .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}