﻿/* ==========================
   ✅ GENEL STİL AYARLARI
   ========================== */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
}
/* ==========================
✅ DASHBOARD KARTLARI
========================== */
.stat-card,
.nav-card,
.flight-stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    padding: 1.25rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

    .stat-card:hover,
    .nav-card:hover,
    .flight-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    }
/* ==========================
   ✅ RENK KARTLARI (Krank/Urlaub/Seamless/Off)
   ========================== */
.card.bg-seamless-strong {
    background: linear-gradient(135deg, #0f766e, #06b6d4) !important;
    color: #fff !important;
}

.card.bg-krank {
    background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
    color: #fff !important;
}

.card.bg-urlaub {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    color: #111 !important;
}

.card.bg-off {
    background: linear-gradient(135deg, #374151, #6b7280) !important;
    color: #fff !important;
}

/* ==========================
   ✅ FLIGHT STATS (4’lü kutular)
   ========================== */
.flight-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.flight-stat-card {
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .flight-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    .flight-stat-card .icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.stat-total {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.stat-arrival {
    background: linear-gradient(135deg, #059669, #10b981);
}

.stat-departure {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.stat-turnaround {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

/* ==========================
   ✅ FREI TABLOSU (mavi tonlar)
   ========================== */
.frei-uebersicht-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff;
}

    .frei-uebersicht-table thead th {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: #fff;
        font-weight: 600;
        font-size: 0.9rem;
        text-align: center;
        padding: 0.75rem;
        border: none;
    }

.frei-row-even {
    background: #f9fbff;
}

.frei-row-odd {
    background: #edf2ff;
}

.frei-uebersicht-table tbody tr:hover {
    background: #dbeafe;
    transition: background 0.3s ease;
}

.frei-today-header {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #fff !important;
    font-weight: 700;
}

.frei-today-cell {
    background-color: #dbeafe !important;
    font-weight: 600;
    box-shadow: inset 0 0 6px rgba(37,99,235,0.6);
    border-radius: 4px;
}

/* ==========================
   ✅ OFF TABLOSU (kırmızı tonlar)
   ========================== */
.off-uebersicht-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff;
}

    .off-uebersicht-table thead th {
        background: linear-gradient(135deg, #ef4444, #b91c1c);
        color: #fff;
        font-weight: 600;
        font-size: 0.9rem;
        text-align: center;
        padding: 0.75rem;
        border: none;
    }

.off-row-even {
    background-color: #fff5f5;
}

.off-row-odd {
    background-color: #ffecec;
}

.off-uebersicht-table tbody tr:hover {
    background: #fecaca;
    transition: background 0.3s ease;
}

.off-today-header {
    background-color: #dc2626 !important;
    color: #fff !important;
    font-weight: 700;
}

.off-today-cell {
    background-color: #fecaca !important;
    font-weight: 600;
    box-shadow: inset 0 0 6px rgba(220,38,38,0.6);
    border-radius: 4px;
}

.table-off {
    background-color: #ef4444 !important;
    color: #fff !important;
    font-weight: bold;
}

/* ==========================
   ✅ FLIGHT TABLE (uçuş listesi)
   ========================== */
.flight-table {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    .flight-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: #fff;
        font-weight: 600;
        font-size: 0.9rem;
        text-align: center;
        padding: 0.75rem;
    }

    .flight-table tbody td {
        padding: 0.65rem;
        font-size: 0.85rem;
        text-align: center;
        vertical-align: middle;
    }

    .flight-table tbody tr:nth-child(even) {
        background-color: #f9fafb;
    }

    .flight-table tbody tr:nth-child(odd) {
        background-color: #ffffff;
    }

    .flight-table tbody tr:hover {
        background-color: #e0e7ff !important;
        transition: background 0.2s ease-in-out;
    }
/* Durum renkleri */
.flight-upcoming {
    background-color: #ecfdf5 !important;
}

.flight-past {
    background-color: #f3f4f6 !important;
    color: #6b7280;
}

.flight-a380 {
    background-color: #e0f2fe !important;
    font-weight: 600;
}

.flight-cargo {
    background-color: #fef9c3 !important;
}

.flight-adhoc {
    background-color: #e0e7ff !important;
    color: #1e3a8a !important;
    font-weight: 600;
    border-left: 4px solid #1d4ed8;
}

/* ✈️ İniş & Kalkış ikonları */
.plane-landing::before {
    content: "✈️";
    display: inline-block;
    transform: rotate(90deg);
    animation: land 2s infinite;
    margin-right: 6px;
    font-size: 1rem;
    color: #16a34a;
}

.plane-takeoff::before {
    content: "✈️";
    display: inline-block;
    transform: rotate(-45deg);
    animation: takeoff 2s infinite;
    margin-right: 6px;
    font-size: 1rem;
    color: #2563eb;
}

@keyframes land {
    0% {
        transform: translateY(-4px) rotate(90deg);
    }

    50% {
        transform: translateY(0) rotate(90deg);
    }

    100% {
        transform: translateY(-4px) rotate(90deg);
    }
}

@keyframes takeoff {
    0% {
        transform: translateY(0) rotate(-45deg);
    }

    50% {
        transform: translateY(-6px) rotate(-45deg);
    }

    100% {
        transform: translateY(0) rotate(-45deg);
    }
}
/* Saat ikonları */
.icon-clock {
    margin-right: 4px;
    font-size: 0.9rem;
}

.text-success {
    color: #15803d !important;
}


.text-primary {
    color: #2563eb;
}
/* ==========================
   ✨ YENİ NESİL EXPORT MODAL TASARIMI
   ========================== */

.modern-modal {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .modern-modal:hover {
        box-shadow: 0 10px 45px rgba(0, 0, 0, 0.4);
    }

/* 🔹 Başlık */
.modal-header {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #fff !important;
    border: none !important;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* 🔹 Modern Button */
.modern-btn {
    all: unset;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 95px !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-align: center !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    border: none !important;
}

    .modern-btn i {
        font-size: 1.6rem !important;
        margin-bottom: 0.4rem !important;
        transition: transform 0.3s ease;
    }

    .modern-btn small {
        font-size: 0.75rem !important;
        opacity: 0.95 !important;
    }

    .modern-btn:hover {
        transform: translateY(-3px);
        filter: brightness(1.1);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    }

        .modern-btn:hover i {
            transform: scale(1.2);
        }

    .modern-btn:active {
        transform: scale(0.96);
    }

/* 🔹 Renk varyantları */
.fa-btn {
    background: linear-gradient(145deg, #3b82f6, #2563eb) !important;
}

.ga-btn {
    background: linear-gradient(145deg, #f59e0b, #d97706) !important;
    color: #111 !important;
}

.t-btn {
    background: linear-gradient(145deg, #0ea5e9, #0284c7) !important;
}

.prm-btn {
    background: linear-gradient(145deg, #60a5fa, #2563eb) !important; /* açık mavi → koyu mavi */
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

    .prm-btn:hover {
        background: linear-gradient(145deg, #3b82f6, #1d4ed8) !important;
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
    }

    .prm-btn::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .prm-btn:hover::after {
        opacity: 1;
    }

/* 🔹 Schließen butonu (aşağıda) */
.modal-footer .btn-outline-light {
    border: 2px solid #fff !important;
    color: #fff !important;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    border-radius: 8px;
}

    .modal-footer .btn-outline-light:hover {
        background: linear-gradient(135deg, #4f46e5, #312e81);
        border-color: #fff !important;
        transform: translateY(-2px);
    }
.prm-card {
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #f3f4f6;
    transition: all 0.3s ease;
}

    .prm-card:hover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    }

.prm-header {
    background: linear-gradient(135deg, #111827, #1e3a8a);
    color: #fff;
    padding: 0.75rem 1rem;
    border-top-left-radius: 0.8rem;
    border-top-right-radius: 0.8rem;
    user-select: none;
    transition: background 0.3s ease;
}

    .prm-header:hover {
        background: linear-gradient(135deg, #1e3a8a, #2563eb);
    }

.prm-body {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-bottom-left-radius: 0.8rem;
    border-bottom-right-radius: 0.8rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.card-body {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================
   ⚙️ MODERN USER DROPDOWN (compact slide-in)
   ========================== */
.user-dropdown-modern {
    position: absolute;
    right: 0;
    top: calc(100% + 10px); /* 👈 kullanıcı adının hemen altından başlasın */
    width: 180px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #1f2937;
    padding: 6px 8px;
    margin-top: 0; /* 👈 fazladan boşluk yok */
    animation: fadeDown 0.2s ease-out;
    transform-origin: top right;
    z-index: 200;
}

/* 🔹 Animasyon (yumuşak açılma) */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🔹 Düğme stili */
.user-dropdown-modern .dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    outline: none;
    font-size: 0.9rem;
}


    /* Mavi */
    .user-dropdown-modern .dropdown-btn:not(.logout) {
        background: rgba(59,130,246,0.12);
        color: #1d4ed8;
    }

        .user-dropdown-modern .dropdown-btn:not(.logout):hover {
            background: rgba(59,130,246,0.25);
            transform: translateX(3px);
        }

    /* Kırmızı */
    .user-dropdown-modern .dropdown-btn.logout {
        background: rgba(239,68,68,0.12);
        color: #b91c1c;
    }

        .user-dropdown-modern .dropdown-btn.logout:hover {
            background: rgba(239,68,68,0.25);
            transform: translateX(3px);
        }

.user-dropdown-modern .dropdown-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-top: 10px; /* 🔹 ikonun üst boşluğu artırıldı */
    padding-bottom: 10px;
    margin-bottom: 8px;
    text-align: center;
}



/* 🔹 Gradient icon efekti */
.gradient-icon {
    margin-top: 2px;
    font-size: 2rem;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 4px;
    animation: pulseGradient 4s ease-in-out infinite;
}

/* 🔹 Hafif yumuşak ışık animasyonu */
@keyframes pulseGradient {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(147,51,234,0.4));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(59,130,246,0.6));
    }
}

.person-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

    .person-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    }

.person-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .person-card {
        text-align: center;
    }

    .person-avatar {
        margin: 0 auto 0.5rem;
    }
}
/* Sol taraftaki liste */
.person-list-item {
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .person-list-item:hover {
        background-color: #f3f4f6;
    }

    .person-list-item.active {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: white;
        font-weight: 600;
    }

.avatar-small {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sağ panel - detay kartı */
.person-detail-card .card-header {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

.person-detail-card .form-control,
.person-detail-card textarea {
    background-color: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .person-detail-card .form-control:focus,
    .person-detail-card textarea:focus {
        background-color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.25);
        border-color: #2563eb;
    }
.person-list {
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

.person-item {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .person-item:hover {
        background-color: #f3f4f6;
    }

    .person-item.active {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: white;
    }

.avatar-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-large {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-card {
    border-radius: 14px;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nav-tabs .nav-link {
    border: none;
    color: #555;
    font-weight: 500;
}

    .nav-tabs .nav-link.active {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: white;
        border-radius: 8px 8px 0 0;
    }
/* 🧩 XiPortal Modern Blue Kurumsal Stil */

.bg-gradient-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
}

.btn-gradient-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .btn-gradient-green:hover {
        background: linear-gradient(135deg, #16a34a, #15803d);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    }

/* Sekmeler */
.custom-tabs .nav-link {
    border: none;
    color: #444;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
}

    .custom-tabs .nav-link.active {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: #fff !important;
        border-radius: 8px 8px 0 0;
    }

/* Dikey form düzeni */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #374151;
}

.form-control {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
}

    .form-control:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.15rem rgba(59,130,246,0.25);
    }

/* Animasyon */
.fade-in {
    animation: fadeIn 0.25s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sol panel */
.person-list {
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

.person-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .person-item:hover {
        background-color: #f3f4f6;
    }

    .person-item.active {
        background-color: #2563eb;
        color: #fff;
        font-weight: 600;
    }


/* Avatar */
.avatar-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fade efekti */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.3rem;
}

.form-control {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

    .form-control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 0.15rem rgba(37,99,235,0.25);
    }

.form-check-label {
    font-weight: 500;
    color: #374151;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Fade-in efekt --- */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Sekme ikon animasyonu --- */
.custom-tabs .nav-link i {
    transition: transform 0.3s ease;
}

.custom-tabs .nav-link.active i {
    transform: scale(1.2) rotate(-5deg);
    color: #0d6efd;
}

.bg-light-primary {
    background-color: #e9f2ff !important;
}

.bg-light-success {
    background-color: #e9f8ec !important;
}

.bg-light-danger {
    background-color: #fceaea !important;
}

.bg-light-secondary {
    background-color: #f2f2f3 !important;
}

.chart-container {
    min-height: 320px;
    max-height: 420px;
    overflow-x: auto;
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.year-picker {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border: 1px solid #dbeafe;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .year-picker:hover {
        background: linear-gradient(135deg, #eff6ff, #e0f2fe);
        border-color: #60a5fa;
        box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
    }

    .year-picker i {
        font-size: 1rem;
    }

.year-dropdown {
    font-size: 0.95rem;
    outline: none;
    box-shadow: none !important;
    cursor: pointer;
    color: #2563eb;
    background: transparent !important;
    width: auto;
}

    .year-dropdown option {
        color: #111827;
        background-color: #fff;
        font-weight: 500;
    }
.form-switch .form-check-input {
    width: 2.8em;
    height: 1.4em;
    cursor: pointer;
    background-color: #dbeafe;
    transition: all 0.25s ease;
}

    .form-switch .form-check-input:checked {
        background-color: #2563eb;
    }

.form-check-label {
    font-weight: 500;
    color: #374151;
    margin-left: 0.4rem;
}
.card.shadow-sm.border-0.rounded-4.mb-4 {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border-radius: 1rem;
}

    .card.shadow-sm.border-0.rounded-4.mb-4:hover {
        transform: scale(1.01);
        transition: all 0.25s ease;
        box-shadow: 0 8px 24px rgba(37,99,235,0.15);
    }

.bg-light-info {
    background-color: #e0f2fe !important; /* açık mavi */
}

.text-info {
    color: #0ea5e9 !important; /* ikon rengi */
}
.card .card-body.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.row.g-3.mb-4 > [class*='col-'] {
    flex: 1 1 18%;
    max-width: 18%;
}

.card-body.py-3 h6,
.card-body.py-3 small,
.card-body.py-3 h5 {
    line-height: 1.2;
}
.bg-fa-frueh {
    background: linear-gradient(135deg,#dbf4ff,#60a5fa);
    color: #1e3a8a;
}

.bg-fa-spaet {
    background: linear-gradient(135deg,#ede9fe,#a78bfa);
    color: #4c1d95;
}
/* === XI PORTAL INSIGHT v6 (refined + animated progress) === */

.insight-accordion .accordion-item {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    margin-bottom: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

    .insight-accordion .accordion-item:hover {
        box-shadow: 0 5px 18px rgba(37,99,235,0.15);
    }

.insight-accordion .accordion-button {
    background: linear-gradient(135deg,#ffffff,#f9fafb) !important;
    color: #1e3a8a !important;
    font-weight: 600;
    border: none !important;
    padding: 0.85rem 1.2rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .insight-accordion .accordion-button:hover {
        background: linear-gradient(135deg,#f3f6ff,#eef2ff) !important;
    }

    .insight-accordion .accordion-button:focus {
        box-shadow: none !important;
    }

/* ✅ Progress Bar */
.month-progress {
    flex-grow: 1;
    height: 6px;
    margin-left: 12px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

    .month-progress .bar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        border-radius: 4px;
        width: 0;
        transition: width 0.8s ease, background 0.4s ease;
        background: linear-gradient(90deg,#93c5fd,#2563eb);
        box-shadow: 0 0 6px rgba(37,99,235,0.35);
    }

/* Renk geçişi (dinamik gradient tonları) */
.bar[data-level="low"] {
    background: linear-gradient(90deg,#bfdbfe,#2563eb);
}

.bar[data-level="medium"] {
    background: linear-gradient(90deg,#a7f3d0,#059669);
}

.bar[data-level="high"] {
    background: linear-gradient(90deg,#fde68a,#d97706);
}

/* Hover’da parlama efekti */
.insight-accordion .accordion-button:hover .bar {
    box-shadow: 0 0 10px rgba(37,99,235,0.45);
}

/* Gün kutuları */
.insight-days,
.insight-dayboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

    .insight-days div {
        width: 26px;
        height: 18px;
        font-size: 10px;
        color: #6b7280;
        text-align: center;
        line-height: 18px;
    }

.insight-daybox {
    width: 26px;
    height: 24px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 0 1px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

    .insight-daybox:hover {
        transform: scale(1.06);
        box-shadow: 0 0 8px rgba(37,99,235,0.35);
    }

    .insight-daybox[data-type="work"] {
        background: #e2e8f0;
        color: #1e3a8a;
    }

    .insight-daybox[data-type="off"] {
        background: #e5e7eb;
        color: #374151;
    }

    .insight-daybox[data-type="krank"] {
        background: #fee2e2;
        color: #991b1b;
    }

    .insight-daybox[data-type="urlaub"] {
        background: #dcfce7;
        color: #166534;
    }

    .insight-daybox[data-type="frei"] {
        background: #fef9c3;
        color: #854d0e;
    }

    .insight-daybox[data-type="hafen"] {
        background: #dbeafe;
        color: #1e40af;
    }

/* Tablo */
.insight-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

    .insight-table thead th {
        background: linear-gradient(135deg,#2563eb,#3b82f6);
        color: #fff;
        text-align: center;
    }

    .insight-table tbody tr:hover {
        background-color: #eef2ff !important;
    }
.bar {
    animation: fillBar 1s ease forwards;
}

@keyframes fillBar {
    from {
        width: 0;
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}
.bar::after {
    content: attr(data-label);
    position: absolute;
    top: -18px;
    right: 0;
    font-size: 10px;
    font-weight: 600;
    color: #1e3a8a;
    opacity: 0.8;
}
/* ==========================
   🧰 ADMIN ARCHIV CENTER STIL
   ========================== */

.archiv-container {
    animation: fadeIn 0.3s ease-in-out;
}

/* Kartlar */
.archiv-card {
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .archiv-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37,99,235,0.15);
    }

    /* Başlıklar */
    .archiv-card .card-header.bg-gradient {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #fff;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .archiv-card .card-header.bg-dark {
        background: linear-gradient(135deg, #334155, #1e293b);
        color: #fff;
    }

/* Butonlar */
.btn-gradient-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-weight: 600;
}

    .btn-gradient-danger:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239,68,68,0.4);
    }

.btn-gradient-success {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-weight: 600;
}

    .btn-gradient-success:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(34,197,94,0.4);
    }

/* Tablolar */
.table-wrapper {
    max-height: 460px;
    overflow-y: auto;
}

    .table-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .table-wrapper::-webkit-scrollbar-thumb {
        background: rgba(37,99,235,0.25);
        border-radius: 4px;
    }

        .table-wrapper::-webkit-scrollbar-thumb:hover {
            background: rgba(37,99,235,0.45);
        }

.table-hover tbody tr:hover {
    background: rgba(37,99,235,0.05);
}

/* Log renkleri */
.log-archiv td {
    background: rgba(239,68,68,0.06);
    color: #991b1b;
}

.log-restore td {
    background: rgba(34,197,94,0.06);
    color: #166534;
}

/* Renkli istatistik kutuları (sayfa altı) */
.stat-card {
    border-radius: 12px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    text-align: center;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

    .stat-card h6 {
        font-weight: 600;
        color: #475569;
    }

    .stat-card h3 {
        font-size: 1.75rem;
        font-weight: 700;
    }

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(37,99,235,0.15);
    }

/* Fade efekti */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 🎯 Archiv-Center tablo hizalaması */
.table-wrapper {
    max-height: 460px;
    min-height: 460px; /* 👈 her iki tablo eşit yükseklikte */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

    /* Scroll görünümünü yumuşat */
    .table-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .table-wrapper::-webkit-scrollbar-thumb {
        background: rgba(37,99,235,0.25);
        border-radius: 4px;
    }

        .table-wrapper::-webkit-scrollbar-thumb:hover {
            background: rgba(37,99,235,0.45);
        }

/* Satır yüksekliği */
.table tbody tr td {
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.3;
}

/* Başlık sabit kalır */
.table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}
.table-responsive {
    display: block;
    height: 460px;
    overflow-y: auto;
}
/* === XiPortal Admin Studio === */
.admin-studio {
    animation: fadeIn 0.5s ease-in-out;
    padding-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-super {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(37,99,235,0.4);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

/* --- Cam kart tasarımı --- */
.admin-card {
    padding: 1.8rem 1.2rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.35);
}

    .admin-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 36px rgba(37,99,235,0.2);
    }

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
    color: #fff;
}

.bg-blue {
    background: linear-gradient(135deg,#3b82f6,#1d4ed8);
}

.bg-green {
    background: linear-gradient(135deg,#22c55e,#15803d);
}

.bg-orange {
    background: linear-gradient(135deg,#f59e0b,#d97706);
}

.bg-purple {
    background: linear-gradient(135deg,#8b5cf6,#7c3aed);
}

.hover-blue:hover {
    background: linear-gradient(135deg,#eff6ff,#dbeafe);
}

.hover-green:hover {
    background: linear-gradient(135deg,#ecfdf5,#d1fae5);
}

.hover-orange:hover {
    background: linear-gradient(135deg,#fff7ed,#fed7aa);
}

.hover-purple:hover {
    background: linear-gradient(135deg,#f5f3ff,#ede9fe);
}

.admin-card h5 {
    margin-top: 1rem;
    color: #1e293b;
}

.admin-card p {
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.accordion-item.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.25s ease;
}

    .accordion-item.glass:hover {
        transform: scale(1.01);
        box-shadow: 0 6px 14px rgba(37,99,235,0.15);
    }

.btn-gradient-green {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .btn-gradient-green:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
    }

.modern-modal {
    border-radius: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.user-card {
    border-radius: 10px;
    background: #fff;
    transition: all .2s ease;
    border: 1px solid #e5e7eb;
}

    .user-card:hover {
        box-shadow: 0 6px 14px rgba(37,99,235,.1);
        transform: translateY(-1px);
    }

.accordion-button {
    padding: .55rem .9rem !important;
    font-size: .9rem;
}

.accordion-body {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 10px 10px;
    animation: slideDown .25s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-xs {
    padding: 3px 8px;
    font-size: .75rem;
    border-radius: 6px;
}

.mini-stat {
    border-radius: 8px; /* biraz daha köşeleri küçült */
    color: #fff;
    text-align: center;
    padding: 0.45rem 0.6rem; /* iç boşluk azalsın */
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .2s ease;
    font-size: 0.8rem; /* genel font biraz küçülsün */
}

.mini-stat h3,
.mini-stat h4,
.mini-stat h5 {
    font-size: 1.05rem; /* sayı kısmı da daha kompakt */
    margin-bottom: 0.1rem;
}

.mini-stat:hover {
    transform: translateY(-2px); /* hover’da da daha sakin bir hareket */
}


.bg-gradient-primary {
    background: linear-gradient(135deg,#2563eb,#3b82f6);
}

.bg-gradient-success {
    background: linear-gradient(135deg,#16a34a,#22c55e);
}

.bg-gradient-danger {
    background: linear-gradient(135deg,#dc2626,#ef4444);
}

.bg-gradient-info {
    background: linear-gradient(135deg,#0ea5e9,#3b82f6);
}
.user-header {
    padding: .5rem .8rem !important;
    background: #f8fafc;
    font-size: 0.9rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.user-card {
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

    .user-card:hover {
        box-shadow: 0 4px 14px rgba(37,99,235,0.1);
        transform: translateY(-1px);
    }

.accordion-body {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    animation: slideDown .25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-xs {
    padding: 3px 8px;
    font-size: .75rem;
    border-radius: 6px;
}
/* === XI PORTAL :: MODERN USER ACCORDION === */
.accordion-item.user-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.2s ease;
}

    .accordion-item.user-card:hover {
        box-shadow: 0 4px 14px rgba(37,99,235,0.1);
        transform: translateY(-1px);
    }

.accordion-button.user-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #1e3a8a;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem !important;
    border-radius: 10px !important;
}

    .accordion-button.user-header:not(.collapsed) {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: #fff;
        box-shadow: 0 2px 10px rgba(37,99,235,0.2);
    }

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
}

.accordion-body {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    animation: fadeDown 0.25s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* === XI PORTAL :: MODERN USER GRID + DETAIL === */
/* === XI PORTAL :: MODERN USER GRID (LARGE VERSION) === */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* 🔹 kutular genişledi */
    gap: 1.5rem; /* 🔹 aralar açıldı */
    margin-top: 1rem;
}

.user-card-modern {
    border-radius: 1.1rem;
    background: #ffffff;
    padding: 1.25rem 1.25rem 1rem 1.25rem; /* 🔹 iç boşluk arttı */
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
}

    .user-card-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 24px rgba(37,99,235,0.15);
    }

/* Avatar */
.user-avatar-lg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* İç metinler */
.user-card-modern small {
    font-size: 0.85rem;
    color: #6b7280;
}

.user-card-modern .fw-semibold {
    font-size: 1rem;
}

.btn-xs {
    font-size: 0.8rem !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

/* Detay bölümü */
.user-details {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}


.fade-slide {
    animation: fadeSlide 0.25s ease-in-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-card-modern small {
    font-size: 0.8rem;
    color: #6b7280;
}

.user-card-modern:hover .fw-semibold {
    color: #2563eb;
}
/* === XI PORTAL :: BENUTZER SUCHE === */
.search-input {
    border-radius: 8px;
    border: 1px solid #dbeafe;
    transition: all 0.25s ease;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    background-color: #f9fafb;
}

    .search-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.25);
        background-color: #fff;
    }

    .search-input::placeholder {
        color: #9ca3af;
    }
.bg-light-subtle {
    background: #f9fafb;
    min-height: 120px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

    .bg-light-subtle:hover {
        background: #f1f5f9;
    }

button[draggable="true"] {
    cursor: grab;
}

    button[draggable="true"]:active {
        cursor: grabbing;
        opacity: 0.7;
    }
.user-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Başlık renkleri */
.text-purple {
    color: #7c3aed !important;
}

.user-card-modern {
    background: #fff;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
}

    .user-card-modern:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(37,99,235,0.15);
    }

.user-avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}
.user-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

    /* Her grup sütunu */
    .user-columns > div {
        flex: 1 1 0;
        min-width: 280px;
    }

/* Mobilde alt alta */
@media (max-width: 992px) {
    .user-columns {
        flex-direction: column;
    }
}

/* Kartların iç boşluğu */
.user-card-modern {
    margin-bottom: 0.9rem;
}
button[draggable="true"]:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(37,99,235,0.25);
}
.bg-light-subtle.drag-over {
    background-color: #dbeafe !important;
    transition: background-color 0.15s ease;
}
/* === XI PORTAL :: Fluent Glass Sidebar (Stable Layout v3) === */

/* Sidebar sabit konumda, içerik doğal hizalı */
.sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    border-right: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 0.5px rgba(255,255,255,0.25), 0 8px 28px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

    /* Hover efekti */
    .sidebar-wrapper:hover {
        background: rgba(17, 24, 39, 0.5);
    }

/* --- HEADER --- */
.sidebar-header {
    padding: 1.2rem 0.5rem 0.8rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .sidebar-header img.logo-img {
        width: 85%;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
        border-radius: 12px;
    }

.user-info {
    color: #f3f4f6;
    opacity: 0.85;
}

/* --- Menü --- */
.sidebar-menu {
    flex: 1;
    padding: 0.8rem 0.8rem 1rem 0.8rem;
    overflow-y: auto;
    background: linear-gradient( 180deg, rgba(59,130,246,0.10) 0%, rgba(37,99,235,0.18) 50%, rgba(15,23,42,0.12) 100% );
    border-radius: 0 0 20px 0;
}

/* Menü başlıkları */
.menu-section {
    color: rgba(255,255,255,0.65);
    font-size: 0.75rem;
    font-weight: 700;
    margin: 1rem 0 0.4rem 0.6rem;
    letter-spacing: 0.6px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.4rem;
}

/* Menü linkleri */
.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    margin: 0.25rem 0;
    transition: all 0.25s ease;
}

    .nav-link-modern i {
        width: 22px;
        text-align: center;
        opacity: 0.85;
        transition: all 0.25s ease;
    }

    .nav-link-modern:hover {
        background: rgba(255,255,255,0.16);
        transform: translateX(3px);
        color: #fff;
        box-shadow: 0 0 10px rgba(255,255,255,0.08);
    }

    .nav-link-modern.active {
        background: linear-gradient(90deg, rgba(96,165,250,0.45), rgba(37,99,235,0.55));
        color: #fff;
        font-weight: 600;
        border-left: 3px solid #93c5fd;
        box-shadow: inset 0 0 10px rgba(59,130,246,0.4);
    }

/* Logout */
.logout-link {
    margin-top: 0.8rem;
    background: rgba(239,68,68,0.2);
    color: #fca5a5 !important;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .logout-link:hover {
        background: linear-gradient(90deg, #ef4444, #b91c1c);
        color: #fff !important;
        transform: translateX(3px);
        box-shadow: 0 0 12px rgba(239,68,68,0.3);
    }

/* Scrollbar */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}

/* === 🧼 Arka Plan & İçerik Düzeltme === */
html, body {
    background: #f9fafb !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* İçerik artık sabit sidebar’a göre otomatik hizalanır */
main {
    background: transparent !important;
    margin-left: 150px !important; /* 🔹 sadece yer açıyor, esnetmiyor */
    padding: 2rem !important;
    width: calc(100% - 250px) !important; /* 🔹 orantıyı korur */
    transition: all 0.3s ease;
}

.container, .page {
    background: transparent !important;
    max-width: 100%;
}
@media (max-width: 992px) {
    .sidebar-wrapper {
        position: fixed;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .sidebar-wrapper.active {
            transform: translateX(0);
        }

    main {
        padding: 1rem;
    }
}
.submenu .nav-link-modern {
    font-size: 0.85rem;
    opacity: 0.85;
    padding-left: 1.5rem;
}

    .submenu .nav-link-modern:hover {
        opacity: 1;
        transform: translateX(2px);
    }

.table td, .table th {
    vertical-align: middle;
    padding: 0.4rem 0.6rem;
}











/* === Flights Import modern tasarım === */
.flights-import-card {
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

    .flights-import-card .card-header {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: #fff;
        font-weight: 600;
        padding: 1rem 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.import-dropzone {
    border: 2px dashed #93c5fd;
    border-radius: 0.75rem;
    background: #eff6ff;
    padding: 2rem;
    text-align: center;
    color: #1e3a8a;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .import-dropzone:hover {
        background: #dbeafe;
        transform: scale(1.02);
    }

.flight-date-header {
    background: linear-gradient(90deg, #e0f2fe, #f0f9ff);
    color: #1e3a8a;
    font-weight: 600;
}

.filter-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-modern {
    border: none;
    border-radius: 0.6rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transition: all 0.2s ease;
}

    .btn-modern:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
    }
/* === Flights Statistik geniş alan (kaydırmalı ve tam yükseklik) === */
.flight-stat-container {
    overflow-x: auto;
    overflow-y: auto; /* düşey scroll da aktif */
    max-height: calc(100vh - 280px); /* ekranın altına taşmadan */
    min-height: 400px; /* en az 400px yükseklik */
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 0.5rem;
    scroll-behavior: smooth;
}

    /* scrollbar stilini yumuşat */
    .flight-stat-container::-webkit-scrollbar {
        height: 10px;
        width: 10px;
    }

    .flight-stat-container::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        border-radius: 8px;
    }

    .flight-stat-container::-webkit-scrollbar-track {
        background: #f3f4f6;
    }
.flight-stat-container {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}
/* === Flights Statistik tam sayfa uzama === */
.full-table-container {
    display: block;
    overflow: visible !important; /* tabloyu kesmeden uzat */
    height: auto !important;
}

    .full-table-container table {
        width: 100%;
        border-collapse: collapse;
        background: #fff;
    }

/* İsteğe bağlı – daha geniş ekranlarda kutu taşmasın */
@media (min-width: 992px) {
    .full-table-container {
        padding-bottom: 2rem;
    }
}
.flight-date-header {
    background: linear-gradient(90deg, #e0f2fe, #f0f9ff);
    color: #1e3a8a;
    font-weight: 600;
    border-top: 2px solid #2563eb;
    border-bottom: 2px solid #2563eb;
}

.table-light th {
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.bg-light th {
    font-size: 0.9rem;
}
/* === Flight Statistik tabloda görünür çizgiler === */
.flight-stats-table {
    width: 100%;
    border-collapse: collapse !important; /* ✅ kenarları birleştir */
    border-spacing: 0 !important;
    font-size: 0.9rem;
}

    /* Hücre çizgileri */
    .flight-stats-table th,
    .flight-stats-table td {
        border: 1px solid #d1d5db !important; /* ✅ açık gri çizgi */
        padding: 0.45rem 0.6rem;
        text-align: center;
    }

/* Gün başlık satırları */
.flight-date-header td {
    background: #f1f5f9;
    color: #1e3a8a;
    font-weight: 600;
    border-top: 2px solid #2563eb;
    border-bottom: 2px solid #2563eb;
}

/* Arrival / Departure başlıkları */
.daily-flight-header th {
    background: #e2e8f0;
    color: #111;
    border: 1px solid #cbd5e1;
    font-weight: 600;
}

/* Üst başlık satırı (Flight / From / STA / To / ETD) */
.aviation-header th {
    background: #f8fafc;
    color: #374151;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

/* Hover efekti */
.flight-stats-table tr:hover td {
    background: #f1f5f9;
}
/* === 🧭 FLIGHT STATISTIK - Net gri çizgiler (override fix) === */
table.flight-stats-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 1px solid #cbd5e1 !important; /* dış çerçeve */
}

    table.flight-stats-table th,
    table.flight-stats-table td {
        border: 1px solid #cbd5e1 !important; /* iç çizgiler */
        color: #111827;
        font-size: 0.9rem;
        text-align: center;
        padding: 6px 8px;
    }

    table.flight-stats-table tr:nth-child(even) td {
        background: #f9fafb;
    }

    table.flight-stats-table tr:nth-child(odd) td {
        background: #ffffff;
    }

    table.flight-stats-table tr:hover td {
        background: #e0f2fe !important;
        transition: background 0.2s ease-in-out;
    }
.flight-stats-table td:last-child {
    font-weight: 600;
    color: #2563eb;
}

    .flight-stats-table td:last-child:empty::after {
        content: "-";
        color: #999;
    }
.time-override {
    cursor: pointer;
    border-bottom: 1px dashed #0d6efd;
}

    .time-override:hover {
        background-color: rgba(13, 110, 253, 0.1);
    }
.btn-link.text-primary {
    font-size: 0.8rem;
}
.override-pending-name {
    color: #92400e; /* koyu kehribar, her zeminde okunur */
    background: rgba(250, 204, 21, 0.35); /* yarı saydam sarı arka plan */
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 600;
}
/* === Emirates / Qatar özel okuma ayarları === */

/* Qatar: koyu yeşil zeminde saatler net görünsün */
.qatar-card {
    color: #ecfdf5; /* genel text açık */
}

    .qatar-card .text-muted,
    .qatar-card small.text-muted {
        color: #fefce8 !important; /* açık sarımsı, yüksek kontrast */
        font-weight: 500;
    }

    /* Toplam rozeti de boğulmasın */
    .qatar-card .badge.bg-secondary {
        background-color: rgba(15,23,42,0.9) !important;
        color: #e5e7eb !important;
    }
/* ✈ Uçak sayısı kutularını gerçekten küçült */
.mini-stat {
    border-radius: 8px !important;
    padding: 0.25rem 0.45rem !important;
    font-size: 0.75rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
}

    .mini-stat h3,
    .mini-stat h4,
    .mini-stat h5 {
        font-size: 0.95rem !important;
        margin-bottom: 0.1rem !important;
    }
/* Eğer uçak sayısı kartları flight-stat-card ise: */
.flight-stat-card {
    padding: 0.5rem 0.6rem !important;
    min-height: auto !important;
    font-size: 0.8rem !important;
}

    .flight-stat-card .icon {
        font-size: 1.3rem !important;
        margin-bottom: 0.2rem !important;
    }
/* ✈ Uçak sayısı kartlarını bir kademe daha küçült */
.flight-stat-card {
    padding: 0.35rem 0.45rem !important;
    min-height: auto !important;
    font-size: 0.75rem !important;
}

    /* İkonu da ufaltalım */
    .flight-stat-card .icon {
        font-size: 1.1rem !important;
        margin-bottom: 0.15rem !important;
    }

    /* Başlık ve sayıları da kompakt yapalım */
    .flight-stat-card h5,
    .flight-stat-card h6 {
        font-size: 0.85rem !important;
        margin-bottom: 0.1rem !important;
    }

    .flight-stat-card .display-6,
    .flight-stat-card .h3,
    .flight-stat-card .h4 {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }

/* Onay butonu biraz kompakt ve belirgin */
.btn-override-approve {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 999px;
}
  
/* Buton daha küçük ve sola daha yakın */
.btn-override-approve {
    padding: 1px 4px !important;
    font-size: 0.68rem !important;
    border-radius: 6px;
}
 
div.card.time-override-card {
    width: 64% !important;
    max-width: 64% !important;
}
  
/* ✅ Dienständerungen – final görünüm ayarı */
div.card.time-override-card {
    width: 64% !important;
    max-width: 64% !important;
    transform: none !important; /* kartı artık küçültme */
}
/*tim uçak ekleme*/
.led-cell {
    text-align: center;
    white-space: nowrap;
}

.led {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,.4);
}

.led-green {
    background-color: #28a745;
    box-shadow: 0 0 8px rgba(40,167,69,.9);
}
.team-led {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745; /* yeşil LED */
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.9);
    margin-right: 3px;
}
.team-badge-xi {
    background-color: #16a34a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 4px;
    box-shadow: 0 0 4px rgba(0,0,0,0.25);
    display: inline-block;
}


    .team-badge-xi:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 3px 10px rgba(16, 185, 129, 0.6);
    }

/* ==========================
   TIM KUTULARI GELİŞTİRME
   ========================== */

/* Saat yazılarının görünmesi için */
.team-card .text-muted,
.team-card small {
    color: #1e293b !important; /* koyu mavi-gri (beyaz zeminde çok net) */
    font-weight: 500 !important;
}

/* Uçuş rozetleri */
.team-flight-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.78rem;
    margin-right: 4px;
    font-weight: 600;
}

    .team-flight-badge .arrow-arrival {
        color: #28a745; /* Yeşil */
        font-weight: bold;
    }

    .team-flight-badge .arrow-departure {
        color: #007bff; /* Mavi */
        font-weight: bold;
    }

    .team-flight-badge .arrow-turnaround {
        color: #ff8c00; /* Turuncu */
        font-weight: bold;
    }


.flight-arrow {
    font-weight: 900;
    font-size: 0.8rem;
}
.arrow {
    font-weight: 900;
    font-size: 1rem; /* daha büyük */
    line-height: 1;
    display: inline-block;
    margin-left: 3px;
}

.arrow-arrival {
    color: #0ea500; /* koyu canlı yeşil */
    text-shadow: 0 0 3px rgba(0,128,0,0.4);
}

.arrow-departure {
    color: #005eff; /* daha koyu mavi */
    text-shadow: 0 0 3px rgba(0,80,255,0.4);
}

.arrow-turnaround {
    color: #f57c00; /* turuncu */
    text-shadow: 0 0 3px rgba(255,140,0,0.4);
}
.team-flight-badge {
    display: inline-flex;
    align-items: center;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    padding: 2px 6px;
    margin-right: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e1b4b;
}

.flight-arrow {
    margin-left: 4px;
    font-size: 1rem; /* 🔥 oku büyüt */
    font-weight: 900; /* 🔥 kalınlaştır */
    line-height: 1;
}

    /* Renkler — anlaşılır olsun diye */
    .flight-arrow.arr {
        color: #16a34a;
    }
    /* Arrival = yeşil */
    .flight-arrow.dep {
        color: #1d4ed8;
    }
    /* Departure = mavi */
    .flight-arrow.ta {
        color: #ca8a04;
    }
/* Turnaround = sarı */
.rotation-col-scroll {
    max-height: calc(100vh + 300px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    padding-bottom: 40px; /* listenin sonu dipte yapışmasın */
    scroll-behavior: smooth;
}


.drag-over {
    outline: 2px dashed #0d6efd;
    background-color: rgba(13, 110, 253, 0.04);
    transition: background-color 0.15s ease, outline-color 0.15s ease;
}
/* === Einsatzplanung (xi-ep) === */
.xi-ep-layout {
    display: grid;
    grid-template-columns: 320px 1fr 340px;
    gap: 14px;
    min-height: 70vh;
}

/* panels */
.xi-ep-left, .xi-ep-right, .xi-ep-center {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.xi-ep-staff {
    max-height: calc(100vh - 290px);
    overflow: auto;
}

.xi-ep-staff-row {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: .18s ease;
}

    .xi-ep-staff-row:hover {
        background: #f8fafc;
    }

    .xi-ep-staff-row.sel {
        background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(59,130,246,.10));
        border-left: 3px solid #2563eb;
    }

.xi-ep-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    flex: 0 0 auto;
}

.xi-ep-capacity {
    height: 7px;
    background: #eef2ff;
    border-radius: 999px;
    overflow: hidden;
}

    .xi-ep-capacity .bar {
        height: 100%;
        background: linear-gradient(90deg,#60a5fa,#2563eb);
        border-radius: 999px;
    }

/* center: week header */
.xi-ep-grid-header {
    display: grid;
    grid-template-columns: repeat(14, minmax(110px, 1fr));
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
}

.xi-ep-day {
    padding: 10px 8px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

/* week grid body */
.xi-ep-grid {
    overflow: auto;
    max-height: calc(100vh - 300px);
}

.xi-ep-row {
    display: grid;
    grid-template-columns: repeat(14, minmax(110px, 1fr));
    border-bottom: 1px solid #f1f5f9;
}

.xi-ep-cell {
    min-height: 74px;
    padding: 6px;
    border-right: 1px solid #f1f5f9;
}

/* shift card */
.xi-ep-shift {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: .18s ease;
}

    .xi-ep-shift:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(37,99,235,.12);
        border-color: #c7d2fe;
    }

    .xi-ep-shift.conflict {
        border-color: #fecaca;
        background: #fff1f2;
    }

    .xi-ep-shift .top {
        display: flex;
        justify-content: space-between;
        gap: 6px;
        align-items: center;
    }

    .xi-ep-shift .tag {
        font-size: .72rem;
        font-weight: 700;
        color: #1e3a8a;
        background: #e0e7ff;
        border-radius: 999px;
        padding: 2px 8px;
    }

    .xi-ep-shift .time {
        font-size: .72rem;
        font-weight: 600;
        color: #0f172a;
    }

    .xi-ep-shift .mid {
        margin-top: 4px;
        font-weight: 700;
        color: #111827;
        font-size: .85rem;
    }

    .xi-ep-shift .bot {
        margin-top: 4px;
        font-size: .78rem;
        color: #475569;
    }

/* timeline */
.xi-ep-timeline {
    overflow: auto;
    max-height: calc(100vh - 310px);
}

.xi-ep-timebar {
    display: grid;
    grid-template-columns: repeat(17, 1fr);
    gap: 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-bottom: 1px solid #e5e7eb;
}

    .xi-ep-timebar .tick {
        font-size: .75rem;
        text-align: center;
        padding: 6px 0;
        color: #64748b;
    }

.xi-ep-trow {
    display: grid;
    grid-template-columns: 240px 1fr;
    border-bottom: 1px solid #f1f5f9;
}

    .xi-ep-trow .name {
        padding: 10px 12px;
        font-weight: 700;
        color: #0f172a;
        border-right: 1px solid #f1f5f9;
    }

    .xi-ep-trow .line {
        position: relative;
        min-height: 56px;
        padding: 10px 12px;
    }

    .xi-ep-trow .block {
        position: absolute;
        top: 10px;
        height: 38px;
        border-radius: 10px;
        padding: 6px 10px;
        border: 1px solid #c7d2fe;
        background: linear-gradient(135deg,#eef2ff,#e0f2fe);
        cursor: pointer;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        transition: .18s ease;
    }

        .xi-ep-trow .block:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(37,99,235,.12);
        }

        .xi-ep-trow .block.conflict {
            border-color: #fecaca;
            background: linear-gradient(135deg,#fff1f2,#ffe4e6);
        }


/* responsive */
@media (max-width: 1200px) {
    .xi-ep-layout {
        grid-template-columns: 320px 1fr;
    }

    .xi-ep-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .xi-ep-layout {
        grid-template-columns: 1fr;
    }
}
/* ===== SIDEBAR WRAPPER - CLEAN OVERRIDE (EN ALTA KOY) ===== */
.sidebar-wrapper {
    border-radius: 0 !important; /* sağdaki kesik hissi biter */
    overflow: visible !important; /* content kesilmesin */
    background: rgba(17, 24, 39, 0.55) !important; /* biraz daha tok ve net */
    backdrop-filter: blur(22px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
    border-right: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 12px 34px rgba(0,0,0,0.22) !important;
}

/* Logo beyaz kartı daha "tam" dursun */
.sidebar-header img.logo-img {
    background: #fff !important;
    padding: 14px !important;
    border-radius: 14px !important;
    width: calc(100% - 22px) !important;
    margin: 0 auto !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.14) !important;
    display: block !important;
}

/* Menü arkaplanını 1 tık daha açık yap */
.sidebar-menu {
    background: linear-gradient( 180deg, rgba(255,255,255,0.06) 0%, rgba(59,130,246,0.10) 45%, rgba(15,23,42,0.08) 100% ) !important;
}

/* Menü linkleri "sağa yapışıyor" hissi için iç boşluk */
.nav-link-modern {
    margin: 6px 6px !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    background: rgba(255,255,255,0.04) !important;
    border-radius: 12px !important;
}

    .nav-link-modern.active {
        border-left: none !important; /* kesik çizgi istemiyorsan */
        box-shadow: 0 10px 22px rgba(37,99,235,0.20) !important;
    }
.flight-cancelled td {
    text-decoration: line-through;
    opacity: 0.55;
    background: rgba(220,53,69,0.06);
}

/* ============================
   ✅ FLIGHT STATUS - DELETE (FINAL)
   Row = background, Cell = strike
   ============================ */


/* ✅ Satır soft (tr) */
.flight-table tbody tr.flight-upcoming {
    background: rgba(25,135,84,0.06) !important;
}

.flight-table tbody tr.flight-past {
    background: rgba(13,110,253,0.04) !important;
}

/* ✅ Hücre çizgi */
.flight-strike {
    text-decoration: line-through !important;
    text-decoration-thickness: 2px !important;
    opacity: .62 !important;
}

/* ✅ Status bg her zaman kazansın */
.flight-table tbody td.bg-status-deleted {
    background: rgba(220,53,69,0.14) !important;
}

.flight-table tbody td.bg-status-pulled {
    background: rgba(108,117,125,0.14) !important;
}

.flight-table tbody td.bg-status-returned {
    background: rgba(255,193,7,0.18) !important;
}

/* ✅ Hover bozmasın */
.flight-table tbody tr:hover td.bg-status-deleted,
.flight-table tbody tr:hover td.bg-status-pulled,
.flight-table tbody tr:hover td.bg-status-returned {
    background: inherit !important;
}
.stat-breakdown {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.25rem;
}

    .stat-breakdown b {
        color: #111827;
    }
.weristwo-box {
    min-width: 240px;
    max-width: 280px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(8px);
}

.weristwo-title {
    font-size: .82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    opacity: .9;
}

.weristwo-input {
    border-radius: 12px;
}

.weristwo-dropdown {
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 12px;
    overflow: hidden;
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
}

.weristwo-item {
    padding: 8px 10px;
    cursor: pointer;
    font-size: .9rem;
}

    .weristwo-item:hover {
        background: #f1f5f9;
    }

.weristwo-result {
    margin-top: 8px;
    font-size: .82rem;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 12px;
    padding: 7px 9px;
}
.weristwo-box {
    width: 280px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.weristwo-title {
    font-weight: 700;
    font-size: .85rem;
    color: #334155;
    margin-bottom: 6px;
}

.weristwo-input {
    border-radius: 12px;
}

.weristwo-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    max-height: 240px;
    overflow: auto;
}

.weristwo-item {
    padding: 8px 10px;
    cursor: pointer;
    font-size: .9rem;
}

    .weristwo-item:hover {
        background: #f1f5f9;
    }

.weristwo-result {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: .85rem;
    color: #0f172a;
}
/* ✅ Gesamtpersonal breakdown: 2 sütun + PRM tek satır */
.stat-breakdown {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.05rem;
}

    .stat-breakdown div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2px 0;
    }

    .stat-breakdown b {
        color: #111827;
        font-weight: 700;
    }

    .stat-breakdown .prm-row {
        grid-column: 1 / -1;
        justify-content: center;
        gap: 8px;
        font-weight: 600;
        color: #374151;
        border-top: 1px dashed rgba(148,163,184,.6);
        margin-top: 2px;
        padding-top: 6px;
    }
/* ✅ WiWo dropdown her zaman üstte kalsın */
.wiwo-row {
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

.weristwo-box {
    position: relative !important;
    z-index: 9999 !important;
}

/* ✅ dropdown katmanı */
.weristwo-dropdown {
    position: absolute !important;
    z-index: 10000 !important;
}

/* ✅ stat kartları WiWo'nun altında kalsın */
.stat-row {
    position: relative !important;
    z-index: 1 !important;
}
/* ✅ WiWo dropdown her şeyin üstünde kalsın */
.weristwo-box {
    width: 100%;
    max-width: 360px;
}


.weristwo-dropdown {
    position: absolute;
    z-index: 9999 !important;
}

/* Stat kartlar dropdown’u ezmesin */
.stat-card {
    position: relative;
    z-index: 1;
}
/* ✅ WiWo en üstte kalsın */
.weristwo-box {
    position: relative;
    z-index: 5000;
}

/* ✅ dropdown her şeyin üstünde olsun */
.weristwo-dropdown {
    position: absolute;
    z-index: 6000 !important;
}

/* ✅ sonuç kutusu da üstte dursun */
.weristwo-result {
    position: relative;
    z-index: 5500;
}

/* ✅ Stat kartlar dropdown'u ezmesin */
.stat-card {
    position: relative;
    z-index: 1;
}

/* ✅ Admin card / diğer paneller de ezmesin */
.admin-studio,
.time-override-card {
    position: relative;
    z-index: 1;
}





/* === FIX: sidebar-main gap (paste at VERY bottom) === */
:root {
    --xi-sidebar-w: 220px; /* sidebar-wrapper width ile aynı olmalı */
    --xi-bg: #f4f7fb;
}

html, body {
    background: var(--xi-bg) !important;
}

/* sidebar gerçek genişliği */
.sidebar-wrapper {
    width: var(--xi-sidebar-w) !important;
}

/* içerik tam sidebar'dan sonra başlasın */
main {
    margin-left: var(--xi-sidebar-w) !important;
    width: calc(100% - var(--xi-sidebar-w)) !important;
    background: var(--xi-bg) !important;
}

/* arada bir container/page beyaz basıyorsa */
.page, .main, .content, article.content, .container, .container-fluid {
    background: var(--xi-bg) !important;
}



/* sol panel daha profesyonel */
.personel-left {
    min-width: 240px;
}

.person-list {
    max-height: calc(100vh - 220px);
    overflow: auto;
}

.person-item {
    border-radius: 14px;
    padding: 10px 10px;
    margin: 8px 0;
    cursor: pointer;
    transition: all .15s ease-in-out;
    border: 1px solid transparent;
}

    .person-item:hover {
        background: #f6f8fb;
        border-color: #e7ebf3;
    }

    .person-item.active {
        background: #eef4ff;
        border-color: #cfe0ff;
    }

/* modern pills */
.modern-tabs .nav-link {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    color: #4b5563;
    background: #f6f7fb;
}

    .modern-tabs .nav-link.active {
        background: #111827;
        color: white;
    }

/* Statistik butonu sağda vurgulu */
.statistik-btn {
    border-radius: 999px;
    font-weight: 700;
}
.person-sidebar {
    background: #fff;
}

.person-list {
    max-height: calc(100vh - 220px);
    overflow: auto;
}

.person-item {
    border: 0;
    background: transparent;
    padding: .65rem .75rem;
    border-radius: 12px;
    margin-bottom: .35rem;
    transition: all .15s ease;
}

    .person-item:hover {
        background: rgba(0,0,0,.04);
    }

    .person-item.active {
        background: rgba(13,110,253,.10);
        outline: 1px solid rgba(13,110,253,.25);
    }

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.person-sidebar {
    padding-top: 0 !important;
}

.person-main {
    padding-top: 0 !important;
}
    .person-main .card {
        border-radius: 1rem;
    }

.form-control, .form-select {
    border-radius: .75rem;
}

    .form-control.form-control-sm {
        padding-top: .35rem;
        padding-bottom: .35rem;
    }

.person-item {
    border: 0;
    border-radius: .75rem;
    padding: .6rem .75rem;
    background: transparent;
    transition: all .15s ease;
}

    .person-item:hover {
        background: rgba(0,0,0,.04);
    }

    .person-item.active {
        background: rgba(13,110,253,.10);
        outline: 1px solid rgba(13,110,253,.25);
    }
.person-main .card-body .form-label {
    margin-bottom: .25rem;
}

.person-main .card-body .form-control-sm {
    height: 34px;
}

/* =========================================
   ✅ PERSONEL PAGE – PREMIUM OVERRIDE (PASTE LAST)
   ========================================= */

:root {
    --xi-bg: #f3f6fb;
    --xi-card: rgba(255,255,255,.82);
    --xi-border: rgba(15,23,42,.08);
    --xi-soft: rgba(15,23,42,.04);
    --xi-text: #0f172a;
    --xi-muted: #64748b;
    --xi-primary: #2563eb;
    --xi-primary2: #3b82f6;
    --xi-glow: rgba(37,99,235,.18);
    --xi-radius: 18px;
}

html, body {
    background: radial-gradient(1200px 600px at 30% -10%, rgba(37,99,235,.10), transparent 60%), radial-gradient(900px 480px at 85% 0%, rgba(147,51,234,.08), transparent 55%), var(--xi-bg) !important;
    color: var(--xi-text);
}

/* --- Layout polish --- */
.person-sidebar {
    background: rgba(255,255,255,.75) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-right: 1px solid var(--xi-border) !important;
    box-shadow: 0 18px 45px rgba(2,6,23,.06);
}

.person-main {
    padding-top: 0 !important;
}

/* --- Sidebar header --- */
.person-sidebar .border-bottom {
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
    border-bottom: 1px solid var(--xi-border) !important;
}

.person-sidebar h6 {
    letter-spacing: .08em;
    font-size: .72rem;
}

/* Search input premium */
.person-sidebar input.form-control {
    border-radius: 999px !important;
    border: 1px solid rgba(37,99,235,.15) !important;
    background: rgba(255,255,255,.85) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

    .person-sidebar input.form-control:focus {
        border-color: rgba(37,99,235,.45) !important;
        box-shadow: 0 0 0 .22rem rgba(37,99,235,.16) !important;
    }

/* --- Person list items (premium cards) --- */
.person-item {
    border: 1px solid transparent !important;
    background: rgba(255,255,255,.55) !important;
    backdrop-filter: blur(10px);
    border-radius: 14px !important;
    margin-bottom: .55rem !important;
    box-shadow: 0 6px 16px rgba(2,6,23,.05);
    transform: translateZ(0);
}

    .person-item:hover {
        border-color: rgba(37,99,235,.20) !important;
        box-shadow: 0 10px 26px rgba(37,99,235,.12);
        transform: translateY(-2px);
    }

    .person-item.active {
        background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(59,130,246,.10)) !important;
        border-color: rgba(37,99,235,.30) !important;
        box-shadow: 0 14px 32px rgba(37,99,235,.16);
    }

    /* badges in list */
    .person-item .badge {
        border: 1px solid rgba(15,23,42,.08);
        background: rgba(255,255,255,.65) !important;
    }

/* --- Right main card (glass premium) --- */
.person-main .card.shadow-sm {
    background: var(--xi-card) !important;
    border: 1px solid var(--xi-border) !important;
    border-radius: var(--xi-radius) !important;
    box-shadow: 0 20px 60px rgba(2,6,23,.10) !important;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

/* --- Header area polish --- */
.avatar-large {
    box-shadow: 0 12px 26px rgba(37,99,235,.22);
    border: 1px solid rgba(255,255,255,.55);
}

.person-main h4 {
    letter-spacing: -0.02em;
}

/* --- Tabs => pill premium --- */
.btn-group .btn {
    border-radius: 999px !important;
    padding: .45rem .8rem !important;
    font-weight: 700;
    border-width: 1px !important;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

    .btn-group .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(2,6,23,.08);
    }

.btn-outline-primary {
    border-color: rgba(37,99,235,.30) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--xi-primary), var(--xi-primary2)) !important;
    border: none !important;
    box-shadow: 0 10px 22px rgba(37,99,235,.20);
}

.btn-outline-dark {
    border-color: rgba(15,23,42,.18) !important;
}

.btn-dark {
    background: linear-gradient(135deg, #111827, #334155) !important;
    border: none !important;
    box-shadow: 0 10px 22px rgba(2,6,23,.18);
}

.btn-outline-success {
    border-color: rgba(22,163,74,.28) !important;
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    border: none !important;
    box-shadow: 0 10px 22px rgba(34,197,94,.18);
}

/* --- Tab content area premium surface --- */
.tab-content {
    background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(248,250,252,.66)) !important;
    border: 1px solid var(--xi-border);
    border-top: 0;
    border-radius: 0 0 var(--xi-radius) var(--xi-radius) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

/* --- Forms: modern input feel --- */
.form-label {
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: .84rem;
}

.form-control, .form-select, textarea {
    border-radius: 14px !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    background: rgba(255,255,255,.78) !important;
    transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
}

    .form-control:focus, .form-select:focus, textarea:focus {
        border-color: rgba(37,99,235,.45) !important;
        box-shadow: 0 0 0 .22rem rgba(37,99,235,.16) !important;
        background: rgba(255,255,255,.92) !important;
    }

textarea {
    min-height: 80px;
}

/* --- Inner cards in "daten/dokumente" sections --- */
.person-main .tab-content .card {
    border-radius: 18px !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 14px 34px rgba(2,6,23,.07) !important;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .person-main .tab-content .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 44px rgba(37,99,235,.12) !important;
    }

/* --- Tables premium --- */
.table {
    border-color: rgba(15,23,42,.08) !important;
}

    .table thead th {
        background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(59,130,246,.08)) !important;
        border-bottom: 1px solid rgba(37,99,235,.18) !important;
    }

    .table tbody tr:hover td {
        background: rgba(37,99,235,.06) !important;
    }

/* --- Micro animation / premium feel --- */
.fade-in {
    animation: xiFadeUp .28s ease both;
}

@keyframes xiFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scrollbar nicer (optional) --- */
.person-list::-webkit-scrollbar {
    width: 10px;
}

.person-list::-webkit-scrollbar-thumb {
    background: rgba(37,99,235,.20);
    border: 3px solid rgba(255,255,255,.0);
    border-radius: 999px;
}

    .person-list::-webkit-scrollbar-thumb:hover {
        background: rgba(37,99,235,.32);
    }
.person-main .card.shadow-sm > .d-flex.align-items-center.mb-4 {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15,23,42,.08);
}
/* ===== PERSONEL SIDEBAR – PREMIUM FIX (PASTE LAST) ===== */

/* Sol paneli gerçek bir panel gibi yap */
.person-sidebar {
    padding: 14px 12px 12px !important;
    border-right: 1px solid rgba(15,23,42,.10) !important;
    box-shadow: 0 18px 50px rgba(2,6,23,.08) !important;
}

    /* Üst başlık alanı: daha düzgün spacing */
    .person-sidebar .px-3.pb-2.border-bottom {
        padding: 14px 12px 12px !important;
        border-bottom: 1px solid rgba(15,23,42,.08) !important;
        border-radius: 16px !important;
        background: rgba(255,255,255,.70) !important;
        backdrop-filter: blur(14px) saturate(160%);
    }

    /* Başlık */
    .person-sidebar h6 {
        font-size: .75rem !important;
        font-weight: 800 !important;
        color: #334155 !important;
    }

    /* Search alanı daha premium */
    .person-sidebar input.form-control {
        height: 38px;
        border-radius: 999px !important;
        padding-left: 34px !important;
        background: rgba(255,255,255,.92) !important;
        border: 1px solid rgba(37,99,235,.18) !important;
        box-shadow: 0 10px 24px rgba(2,6,23,.06);
    }
    /* Liste container: biraz daha boşluk + yumuşak scroll */
    .person-sidebar .person-list {
        padding: 10px 6px !important;
        margin-top: 10px;
        border-radius: 16px;
        background: rgba(255,255,255,.55);
        border: 1px solid rgba(15,23,42,.06);
        backdrop-filter: blur(10px);
        max-height: calc(100vh - 210px);
        overflow: auto;
    }

/* Her satır: kart gibi */
.person-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 12px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(15,23,42,.06) !important;
    background: rgba(255,255,255,.80) !important;
    box-shadow: 0 10px 22px rgba(2,6,23,.06) !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    /* Hover */
    .person-item:hover {
        transform: translateY(-2px);
        border-color: rgba(37,99,235,.22) !important;
        box-shadow: 0 16px 34px rgba(37,99,235,.14) !important;
    }

    /* Aktif: gradient + glow */
    .person-item.active {
        background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(59,130,246,.10)) !important;
        border-color: rgba(37,99,235,.32) !important;
        box-shadow: 0 18px 44px rgba(37,99,235,.18) !important;
        position: relative;
    }

        .person-item.active::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 16px;
            pointer-events: none;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
        }

    /* ID-Ad Soyad satırı daha net */
    .person-item .fw-semibold {
        font-size: .95rem;
        color: #0f172a;
    }

    /* JobRole satırı daha premium muted */
    .person-item .text-muted.small {
        color: #64748b !important;
        font-weight: 600;
    }
    .person-item .badge {
        border-radius: 999px !important;
        padding: .35rem .55rem !important;
        font-weight: 800 !important;
        border: 1px solid rgba(15,23,42,.08) !important;
        background: rgba(255,255,255,.75) !important;
    }

    .person-item.active .badge {
        background: rgba(255,255,255,.85) !important;
        border-color: rgba(37,99,235,.25) !important;
    }
    /* ✅ Personel adını 2 satıra kadar göster (premium) */
    .person-item .fw-semibold {
        white-space: normal !important; /* tek satır zorlamayı kaldır */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 2 satır */
        -webkit-box-orient: vertical;
        line-height: 1.15;
        max-height: calc(1.15em * 2);
    }

    /* JobRole tek satır kalsın ama daha geniş nefes alsın */
    .person-item .text-muted.small {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
/* ✅ Sol + sağ panel arkaplanını soft gri yap */
.person-sidebar,
.person-main {
    background: #f4f6fb !important; /* çok açık premium gri */
}

    /* Sidebar içindeki üst header (arama alanı bölümü) da uyumlu olsun */
    .person-sidebar .border-bottom {
        background: rgba(255,255,255,0.55) !important;
        backdrop-filter: blur(10px);
    }

/* Person listesi itemları gri zeminde kart gibi dursun */
.person-item {
    background: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(15,23,42,0.06) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

    .person-item:hover {
        background: rgba(255,255,255,0.9) !important;
        box-shadow: 0 6px 18px rgba(37,99,235,0.10);
        transform: translateY(-1px);
    }

    .person-item.active {
        background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(59,130,246,0.10)) !important;
        border-color: rgba(37,99,235,0.20) !important;
        box-shadow: 0 8px 22px rgba(37,99,235,0.12);
    }

/* Sağdaki ana kart çok beyaz kalmasın: hafif gri + glass */
.person-main .card {
    background: rgba(255,255,255,0.72) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15,23,42,0.06) !important;
}
/* ✅ Üstteki alanlar da soft gri / glass olsun */
.container-fluid.py-3,
.container-fluid.py-3 > .row {
    background: #f4f6fb !important;
}

/* Sol panel üst başlık + arama alanı (Personalliste kısmı) */
.person-sidebar .px-3.pb-2 {
    background: rgba(244,246,251,0.9) !important;
    border-bottom: 1px solid rgba(15,23,42,0.06) !important;
}

/* Arama inputu premium görünüm */
.person-sidebar input.form-control {
    background: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(15,23,42,0.08) !important;
    border-radius: 12px !important;
}

    .person-sidebar input.form-control:focus {
        box-shadow: 0 0 0 .2rem rgba(37,99,235,0.18) !important;
        border-color: rgba(37,99,235,0.35) !important;
    }

/* Sağ panelde tab bar + içerik kutusu da beyaz kalmasın */
.person-main .tab-content {
    background: rgba(244,246,251,0.85) !important;
    border: 1px solid rgba(15,23,42,0.06) !important;
}

/* Sağ üst başlık (avatar + isim olan satır) kart içinde daha tok dursun */
.person-main .card .d-flex.align-items-center.mb-4 {
    background: rgba(244,246,251,0.7);
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 14px;
    padding: 10px 12px;
}
/* ✅ Eğer üstte navbar/top-row varsa */
header, .top-row, .navbar {
    background: rgba(244,246,251,0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
}
.photo-box {
    width: 100%;
    border-radius: 16px;
    overflow: hidden; /* kenarlar taşmasın */
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,.08);
}

.person-photo-lg {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block; /* alt boşluk titreme yapmasın */
}

/* Upload butonunu biraz “dolu” hissettir */
.upload-btn {
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
}
.photo-box {
    height: 260px;
}

.person-photo-lg {
    height: 260px;
}
/* ✅ ROTATION FLIGHT TABLE HEADER FIX (No / Ankunft / Von / ...) */
table.flight-table thead th,
.flight-table thead th {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* (Opsiyonel) Bootstrap'in table-light / bg-light gibi etkileri varsa onları da ezer */
table.flight-table thead,
.flight-table thead {
    background: transparent !important;
}
.azk-sub-card {
    background: var(--bs-secondary-bg, #f8f9fa);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.8rem;
}

.azk-sub-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 6px;
}

.azk-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.azk-sub-key {
    color: #6c757d;
    font-size: 0.75rem;
}

.azk-percent-badge {
    display: inline-block;
    font-size: 0.8rem; /* 0.7rem → 0.8rem */
    font-weight: 600; /* 500 → 600 */
    border-radius: 4px;
    padding: 2px 8px; /* 1px 6px → 2px 8px */
}

    .azk-percent-badge.percent-up {
        background: #d4edda;
        color: #155724;
    }

    .azk-percent-badge.percent-down {
        background: #f8d7da;
        color: #721c24;
    }

    .azk-percent-badge.percent-flat {
        background: #e2e3e5;
        color: #383d41;
    }

/* ── Dış kart ── */
.eac-dash-card {
    background: #fff;
    border: 1px solid #e2eaf5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(26,79,168,.06);
}

/* ── Başlık ── */
.eac-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #edf2fb;
    background: #f7fafd;
    flex-wrap: wrap;
    gap: 6px;
}

.eac-dash-title-group {
    font-size: 14px;
    color: #1a2f4a;
}

.eac-dash-date {
    font-size: 12px;
    color: #8aa4c0;
    font-weight: 400;
}

.eac-dash-refreshing {
    font-size: 11px;
    color: #8aa4c0;
}

.eac-dash-last {
    font-size: 11px;
    color: #8aa4c0;
}

/* ── KPI satırı ── */
.eac-dash-kpi-row {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf2fb;
    flex-wrap: wrap;
}

.eac-dash-kpi {
    background: #fff;
    border: 1px solid #e2eaf5;
    border-radius: 10px;
    padding: 7px 14px;
    min-width: 90px;
}

.eac-dash-kl {
    font-size: 10px;
    color: #8aa4c0;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    margin-bottom: 2px;
}

.eac-dash-kv {
    font-size: 20px;
    font-weight: 800;
    color: #1a2f4a;
    line-height: 1;
}

.eac-dash-kpi.s .eac-dash-kv {
    color: #2e7d32;
}

.eac-dash-kpi.d {
    background: #fff5f7;
    border-color: #f1c5cf;
}

    .eac-dash-kpi.d .eac-dash-kv {
        color: #b71c3c;
    }

.eac-dash-kpi.w {
    background: #fffbec;
    border-color: #edd79a;
}

    .eac-dash-kpi.w .eac-dash-kv {
        color: #7a5500;
    }

/* ── Loading ── */
.eac-dash-loading {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #4d6b8f;
}

/* ── İki sütun grid ── */
.eac-dash-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #edf2fb;
}

/* ── Kolon ── */
.eac-dash-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid #edf2fb;
}

    .eac-dash-col-head.pool {
        background: #f0f5ff;
        color: #1a4fa8;
    }

    .eac-dash-col-head.pres {
        background: #f0faf2;
        color: #2e7d32;
        border-left: 1px solid #edf2fb;
    }

.eac-dash-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 1px 9px;
    border-radius: 999px;
}

    .eac-dash-badge.pool {
        background: #dce8fc;
        color: #1a4fa8;
    }

    .eac-dash-badge.pres {
        background: #d4edda;
        color: #1b5e20;
    }

.eac-dash-col-body {
    max-height: 260px;
    overflow-y: auto;
}

.eac-dash-col:last-child .eac-dash-col-body {
    border-left: 1px solid #edf2fb;
}

/* ── Satır ── */
.eac-dash-row {
    display: grid;
    grid-template-columns: 26px 1fr 54px 96px;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-bottom: 1px solid #f4f7fc;
    font-size: 12px;
}

    .eac-dash-row:last-child {
        border-bottom: none;
    }

.eac-dash-bg-pres {
    background: #f8fbf4;
}

.eac-dash-bg-late {
    background: #fffef5;
}

.eac-dash-bg-miss {
    background: #fff9f9;
}

/* ── Avatar ── */
.eac-dash-av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    flex-shrink: 0;
}

    .eac-dash-av.n {
        background: #BBDEFB;
        color: #0D47A1;
    }

    .eac-dash-av.pres {
        background: #C8E6C9;
        color: #1B5E20;
    }

    .eac-dash-av.late {
        background: #FFE082;
        color: #7a5500;
    }

    .eac-dash-av.miss {
        background: #FFCDD2;
        color: #B71C1C;
    }

/* ── İsim ── */
.eac-dash-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a2f4a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Saat ── */
.eac-dash-time {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #5a7a9f;
    text-align: center;
}

    .eac-dash-time.ok {
        color: #1B5E20;
    }

    .eac-dash-time.diff {
        color: #7a5500;
    }

    .eac-dash-time.miss {
        color: #b71c3c;
        opacity: .65;
    }

/* ── Badge ── */
.eac-dash-bdg {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .eac-dash-bdg.bp {
        background: #E8F5E9;
        color: #1B5E20;
        border-color: #A5D6A7;
    }

    .eac-dash-bdg.bl {
        background: #FFF8E1;
        color: #7a5500;
        border-color: #FFE082;
    }

    .eac-dash-bdg.bm {
        background: #FFEBEE;
        color: #B71C1C;
        border-color: #FFCDD2;
    }

    .eac-dash-bdg.bn {
        background: #E3F2FD;
        color: #0D47A1;
        border-color: #90CAF9;
    }

    .eac-dash-bdg.bman {
        background: #EDE7F6;
        color: #4527A0;
        border-color: #CE93D8;
    }

/* ── Mehr anzeigen ── */
.eac-dash-more {
    width: 100%;
    border: none;
    background: #f4f8ff;
    color: #1a4fa8;
    font-size: 11px;
    font-weight: 700;
    padding: 7px;
    cursor: pointer;
    border-top: 1px solid #edf2fb;
}

    .eac-dash-more:hover {
        background: #e6f0ff;
    }

/* ── Boş durum ── */
.eac-dash-empty {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #c4d7ea;
}

/* ── Footer link ── */
.eac-dash-footer {
    padding: 8px 14px;
    border-top: 1px solid #edf2fb;
    text-align: right;
    background: #fafcff;
}

.eac-dash-link-btn {
    border: 1px solid #b8d0f0;
    background: #eaf3ff;
    color: #1a4fa8;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}

    .eac-dash-link-btn:hover {
        background: #d5e8ff;
    }
.eac-dash-link-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* ──rotation check ── */
.checkin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    margin-left: 4px;
    box-shadow: 0 1px 3px rgba(22, 163, 74, .25);
}


.att-part-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    border: 1px solid transparent;
}

.att-part-ok {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.att-part-missing {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.att-part-pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}
.rotation-att-head-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .18);
}

/* ── Responsive ── */
@@media (max-width: 700px) {
    .eac-dash-split {
        grid-template-columns: 1fr;
    }

    .eac-dash-col-head.pres {
        border-left: none;
        border-top: 1px solid #edf2fb;
    }

    .eac-dash-col:last-child .eac-dash-col-body {
        border-left: none;
        border-top: 1px solid #edf2fb;
    }
    /* ══ DASHBOARD MOBİL (yeni dash-page için) ══ */
    @media (max-width: 900px) {
        .dash-body {
            padding: 16px;
            gap: 20px;
        }

        .dash-kpi-card.azk-card {
            grid-column: span 2;
        }

        .eac-split-grid {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 600px) {
        .dash-topbar {
            padding: 0 14px;
        }

        .dash-body {
            padding: 12px 16px;
        }

        .dash-kpi-grid {
            grid-template-columns: 1fr 1fr;
        }

        .dash-kpi-card.azk-card {
            grid-column: span 2;
        }

        .azk-twin-grid {
            flex-direction: column;
        }

        .azk-twin-divider {
            width: 100%;
            height: 1px;
        }

        .eac-split-grid {
            grid-template-columns: 1fr;
        }

        .eac-kpi-strip {
            gap: 6px;
        }

        .eac-kpi-pill {
            min-width: 80px;
            padding: 5px 10px;
        }

        .diensttable th:nth-child(5),
        .diensttable td:nth-child(5),
        .diensttable th:nth-child(6),
        .diensttable td:nth-child(6) {
            display: none;
        }
    }