/* ============================================================
   Atomsan Admin — Custom Overrides
   Bu dosya NexLink tema üzerine ince ayar yapar.
   Temanın styles.css dosyasından sonra yüklenir.
   ============================================================ */

/* --------------------------------------------------
   SIDEBAR TOGGLE — z-index düzeltmesi (YALNIZ MOBİL)
   Mobilde (<1200px) sidebar drawer olarak açılıyor;
   header/toggle butonu sidebar'ın arkasında kalmasın diye
   header'ı bir tık üste taşırız.
   NOT: Masaüstünde (≥1200px) UYGULANMAZ — orada z-index:10,
   app-header'ı sidebar'ın (z-9) üst 80px logo/brand bandının
   ÜSTÜNE çıkarıp kaplıyordu (tema varsayılanı z-9). Bu yüzden
   kural mobil breakpoint'e (tema: max-width 1199.98px) sınırlandı.
-------------------------------------------------- */
@media (max-width: 1199.98px) {
    .app-header {
        z-index: 10;
    }
}

/* --------------------------------------------------
   SIDEBAR OVERLAY — < 1480px
   #responsive-overlay NexLink'te CSS tanımsız.
   Tab ikonuna tıklayınca JS ile display:block yapılır,
   tıklayınca sidebar kapanır.
-------------------------------------------------- */
#responsive-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 320px;   /* sidebar genişliği kadar sağdan başlasın */
    right: 0;
    bottom: 0;
    z-index: 8;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* --------------------------------------------------
   TABLO — Orijinal NexLink değerleri
   styles.css: .table > :not(caption) > * > * { padding: 10px 14px }
   Font-size/weight/color: override yok, body'den inherit eder (0.875rem / 14px)
-------------------------------------------------- */
.table {
    font-size: 0.875rem;
}

.table > :not(caption) > * > * {
    padding: 10px 14px;
}

/* --------------------------------------------------
   CARD — Daha ince ve soluk kenarlık
-------------------------------------------------- */
.card {
    border-color: rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------
   FONT AĞIRLIKLARI — NexLink orijinaline uygun
-------------------------------------------------- */
body {
    font-weight: 400;
}

.fw-bold {
    font-weight: 600 !important;
}

.menu-label {
    font-weight: 400 !important;
}

.menu-heading .menu-label {
    font-weight: 600 !important;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.card-title {
    font-weight: 600 !important;
}

.page-title {
    font-weight: 600 !important;
}

/* Tablo header / body renk ayrımı */
.table thead th {
    color: var(--bs-heading-color) !important;
    font-weight: 600 !important;
    font-size: 0.875rem;
}

.table tbody td {
    color: var(--bs-body-color) !important;
    font-weight: 400 !important;
}

/* --------------------------------------------------
   SIDEBAR PANEL — .open state force override
   @media(max-width:1480px) kuralı yeterli değil:
   calc(80px - 80px) = 0px width riski + display
   belirsizliği. Bu kural tüm durumları kapsar.
-------------------------------------------------- */
.app-menubar-tabs.open {
    overflow: visible !important;
}

.app-menubar-tabs.open .app-tab-content {
    left: 80px !important;
    display: flex !important;
    width: 240px !important;
    z-index: 9 !important;
    overflow-y: auto !important;
    background: var(--bs-body-bg, #fff) !important;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1) !important;
}
