/* ========================================
   PAKETLEME
   ======================================== */
.paketleme-kalem-grid .mud-table-container table thead th,
.paketleme-kalem-grid .mud-table-container table tbody td {
    font-size: 0.98rem;
    font-weight: 600;
}

.paketleme-kalem-grid .paketleme-row-complete {
    background-color: #e9f8ec !important;
}

.paketleme-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
}

.paketleme-actions-right {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ========================================
   DATA GRID — Satır Belirginleştirme
   ======================================== */

/* Açık mod: çift satırlar hafif gri */
.mud-table-root .mud-table-body .mud-table-row:nth-child(even) {
    background-color: rgba(0, 91, 172, 0.04) !important;
}

/* Koyu mod: çift satırlar koyu beyaz */
.mud-dark .mud-table-root .mud-table-body .mud-table-row:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Hover — tüm modlar */
.mud-table-root .mud-table-body .mud-table-row:hover {
    background-color: rgba(0, 91, 172, 0.09) !important;
}

.mud-dark .mud-table-root .mud-table-body .mud-table-row:hover {
    background-color: rgba(77, 168, 232, 0.12) !important;
}

/* ========================================
   NAVBAR (DRAWER) YENİ TASARIM
   ======================================== */

.wms-drawer .mud-drawer-content {
    border-right: 1px solid rgba(0,0,0,0.08);
}

.mud-dark .wms-drawer .mud-drawer-content {
    border-right: 1px solid rgba(255,255,255,0.06);
}

.wms-nav-header {
    padding: 18px 16px 14px;
}

.wms-nav-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 91, 172, 0.12);
    color: #005BAC;
    flex-shrink: 0;
}

.mud-dark .wms-nav-logo-wrap {
    background: rgba(77, 168, 232, 0.15);
    color: #4DA8E8;
}

/* Kullanıcı kartı */
.wms-user-card {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 91, 172, 0.06);
    border: 1px solid rgba(0, 91, 172, 0.1);
}

.mud-dark .wms-user-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
}

/* Aktif sayaç rozetleri */
.wms-stats-row {
    padding: 4px 0;
}

.wms-stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 10px;
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.wms-stat-badge .wms-stat-label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.75;
    margin-top: 1px;
}

.wms-stat-badge .mud-icon-root {
    font-size: 1rem;
    opacity: 0.8;
}

.wms-stat-blue {
    background: rgba(21, 101, 192, 0.1);
    color: #1565C0;
}

.wms-stat-green {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
}

.mud-dark .wms-stat-blue {
    background: rgba(77, 168, 232, 0.12);
    color: #4DA8E8;
}

.mud-dark .wms-stat-green {
    background: rgba(102, 187, 106, 0.12);
    color: #66BB6A;
}

/* Nav menüsü */
.wms-nav-menu .mud-nav-link {
    border-radius: 8px;
    margin: 2px 8px;
    font-size: 0.875rem;
}

/* Ayarlar bölümü */
.wms-settings-section {
    padding: 8px 0;
}

/* Footer logo */
.wms-nav-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
}

.mud-dark .wms-nav-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo {
    max-width: 130px;
    width: 100%;
    height: auto;
    opacity: 0.75;
    display: block;
    margin: 6px 0;
}

.sidebar-logo:hover {
    opacity: 1;
}

/* ========================================
   MUD CHART — X/Y Ekseni ve Legend Renk Fix
   MudBlazor dark mode CSS değişkenleri ile çalışır,
   .mud-dark class'ı kullanılmaz (MudBlazor bunu DOM'a eklemez).
   ======================================== */
.mud-charts-xaxis text,
.mud-charts-yaxis text,
.mud-charts-grid-lines text,
.mud-charts-legend text {
    fill: var(--mud-palette-text-primary) !important;
    font-size: 11px;
}

/* ========================================
   RESPONSIVE — APPBAR (yalnızca mobil)
   ======================================== */

.wms-appbar {
    display: none !important;
}

@media (max-width: 959px) {
    .wms-appbar {
        display: flex !important;
    }
}

/* ========================================
   RESPONSIVE — ANA İÇERİK ALANI
   ======================================== */

.wms-main-content {
    padding: 1rem;
}

@media (min-width: 960px) {
    .wms-main-content {
        padding: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE — DATA GRID yatay kaydırma
   ======================================== */

@media (max-width: 959px) {
    .mud-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobilde filtre panelleri tam genişlik */
    .mud-grid > .mud-grid-item {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

/* ========================================
   RESPONSIVE — BUTONLAR ve CHIP SATIRI
   ======================================== */

@media (max-width: 599px) {
    /* Buton metinlerini kısalt — ikon öncelikli */
    .wms-btn-text-sm {
        font-size: 0.75rem;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Üst filtre alanındaki MudStack sarmalansın */
    .mud-stack.flex-wrap {
        flex-wrap: wrap !important;
    }

    /* Sayfa başlığı küçülsün */
    .mud-typography-h6 {
        font-size: 1rem !important;
    }
}

/* ========================================
   RESPONSIVE — LOGIN SAYFASI
   ======================================== */

@media (max-width: 599px) {
    .login-card {
        padding: 1.5rem !important;
        margin: 0.5rem !important;
    }

    .login-logo {
        max-width: 140px !important;
    }
}

