/* ================================================================= */
/* FERMO FENCE - GENEL PANEL & RAPOR YAZDIRMA STİLLERİ               */
/* Dosya Yolu: public_html/qrgiris/assets/css/style.css              */
/* ================================================================= */

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;
}

body > .container-fluid:first-of-type {
    flex: 0 0 auto !important;
}

body > .container-fluid.flex-grow-1 {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
}

footer, footer.no-print {
    flex: 0 0 auto !important;
    width: 100% !important;
}

.card { 
    background-color: #121212 !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    margin-bottom: 8px !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; 
}

/* TÜM TABLOLAR İÇİN ULTRA SIKI VE EŞİT SATIR MİMARİSİ */
.table-custom-dark { 
    --bs-table-bg: transparent !important; 
    --bs-table-color: #f1f5f9 !important; 
    color: #f1f5f9 !important; 
    margin-bottom: 0 !important; 
    table-layout: auto !important;
}

.table-custom-dark tr {
    height: 26px !important;
    max-height: 26px !important;
}

.table-custom-dark th, 
.table-custom-dark td { 
    padding: 1px 8px !important; 
    font-size: 0.81rem !important; 
    vertical-align: middle !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-top: none !important;
}

.table-custom-dark thead th { 
    background-color: #0d0d0d !important; 
    color: #ffffff !important; 
    border-bottom: 1px solid #27272a !important; 
    font-weight: 600;
    height: 28px !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

.table-custom-dark tbody tr:nth-of-type(even) td { background-color: #121212 !important; border-bottom: 1px solid #1a1a1e !important; }
.table-custom-dark tbody tr:nth-of-type(odd) td { background-color: #18181b !important; border-bottom: 1px solid #1a1a1e !important; }
.table-custom-dark tbody tr:hover td { background-color: #27272a !important; color: #ffffff !important; }

.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;
}

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;
}

@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;
    }

    .table-custom-dark th,  
    .table-custom-dark td {  
        border: 1px solid #000000 !important;  
        padding: 3px 5px !important; 
        font-size: 10.5px !important; 
        white-space: normal !important;
    }
}

body > .container,  
body > .container-fluid,
.row.g-4 {
    margin-top: 0 !important;
    padding-top: 2px !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 2px !important;
    }
    .container, .container-fluid {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

.dropdown-menu {
    z-index: 9999 !important;
}