﻿/* ========================================= */
/* 📱 GENEL RESPONSIVE & GRID DÜZENİ */
/* ========================================= */
.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

[class*="col"] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.d-md-none {
    overflow-x: hidden;
}

/* ========================================= */
/* 🎴 GENEL KART TASARIMI (TÜM SAYFALAR) */
/* ========================================= */
.card {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    will-change: auto !important;
}

    .card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .card .card-body {
        padding: 0.75rem 1rem !important;
    }

    .card .fw-bold {
        font-size: 0.95rem;
        margin-bottom: 0.25rem !important;
    }

    .card .card-body p,
    .card .card-body div,
    .card .card-body small {
        margin-bottom: 0.25rem !important;
    }

    .card .small {
        font-size: 0.85rem;
    }

    .card.opacity-50 {
        opacity: 0.6;
    }

/* Aktiflik renkleri */
.text-success {
    color: #22c55e !important;
}

.text-muted {
    color: #6b7280 !important;
}

/* Kart grid ayarları */
.row.row-cols-lg-4 {
    margin-top: 0.5rem;
}

    .row.row-cols-lg-4 > .col {
        display: flex;
    }

    .row.row-cols-lg-4 .card {
        flex: 1 1 auto;
    }

/* ========================================= */
/* 🧾 TABLO DÜZENİ */
/* ========================================= */
.table {
    border-color: #dee2e6;
    font-size: 0.95rem;
    border-radius: 8px;
    border-collapse: collapse !important;
    margin-bottom: 0;
    width: 100% !important;
    table-layout: auto;
}

    .table td,
    .table th {
        text-align: left !important;
        vertical-align: middle !important;
        padding: 0.7rem 0.75rem !important;
        height: 48px;
        box-sizing: border-box;
    }

        .table td:first-child,
        .table th:first-child {
            text-align: center !important;
            width: 60px;
        }

        .table td:last-child,
        .table th:last-child {
            text-align: right !important;
            white-space: nowrap;
        }

/* Hover sadece renk değiştirir */
.table-hover tbody tr:hover {
    background-color: #f8f9fa !important;
    transition: background-color 0.2s ease-in-out;
}

/* Kaydırma çubuğu gizlensin */
.table-responsive {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Scrollbar tamamen kaldır */
::-webkit-scrollbar {
    display: none;
}

/* ========================================= */
/* 🧱 BUTON VE FORM STİLLERİ */
/* ========================================= */
.btn {
    border-radius: 6px !important;
    font-size: 0.9rem;
    transition: all 0.15s ease-in-out;
}

.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
}

    .btn-outline-primary:hover {
        background-color: #2563eb;
        color: #fff;
    }

.btn-outline-danger {
    color: #dc2626;
    border-color: #dc2626;
}

    .btn-outline-danger:hover {
        background-color: #dc2626;
        color: #fff;
    }

.btn-success {
    background-color: #16a34a;
    border: none;
}

    .btn-success:hover {
        background-color: #15803d;
    }

.btn-secondary {
    background-color: #6b7280;
    border: none;
}

    .btn-secondary:hover {
        background-color: #4b5563;
    }

/* ========================================= */
/* 🧩 MENÜ, FİRMA, HESAP KARTLARI */
/* ========================================= */
.menu-card,
.firma-card,
.account-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

    .menu-card h6,
    .firma-card h6,
    .account-card h6 {
        font-weight: 600;
        color: #2563eb;
    }

/* ========================================= */
/* 🪶 GÖRSEL DETAYLAR */
/* ========================================= */
.badge.bg-danger {
    background-color: #dc2626 !important;
}

.badge.bg-secondary {
    background-color: #6b7280 !important;
}

.navbar-brand {
    font-weight: 700;
    color: #2563eb !important;
}

.navbar-toggler {
    border: none;
}

.modal-content {
    border-radius: 12px;
}

.modal-header, .modal-footer {
    border-color: #e5e7eb;
}

/* ========================================= */
/* 💻 RESPONSIVE DÜZEN (EKSTRA) */
/* ========================================= */
@media (max-width: 768px) {
    .card .card-body {
        padding: 0.75rem !important;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.8rem !important;
    }

    .row.row-cols-lg-4 {
        margin: 0 !important;
    }
}

/* ========================================= */
/* 📋 FIRMA MENÜ GEÇMİŞİ & RAPOR TABLOLARI */
/* ========================================= */
#adminReportTable th:first-child,
#adminReportTable td:first-child {
    text-align: left !important;
    width: auto !important;
}

#adminReportTable th:last-child,
#adminReportTable td:last-child {
    text-align: left !important;
    white-space: normal !important;
}

#adminReportTable td {
    vertical-align: top !important;
    padding: 0.5rem 0.75rem !important;
}

#adminReportTable ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

/* ========================================= */
/* 📊 Sticky Table Header */
/* ========================================= */
.table-responsive.fixed-header {
    max-height: 60vh;
    overflow: auto;
    position: relative;
}

    .table-responsive.fixed-header thead th {
        position: sticky;
        top: 0;
        z-index: 5;
        background-color: #f8f9fa;
    }

    /* Hover stabil */
    .table-responsive.fixed-header .table td,
    .table-responsive.fixed-header .table th {
        height: 48px;
    }

/* ========================================= */
/* 💅 GÖZ YORMAYAN RENKLER VE HAFİF GÖLGE */
/* ========================================= */
.bg-light {
    background-color: #f9fafc !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* ========================================= */
/* 🌈 Scroll ve hizalama düzeltmeleri */
/* ========================================= */
html, body {
    overflow-x: hidden !important;
}

.container, .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
