/* ==========================================================
   VoxisWeb — Müşteri Panel Global CSS
   Yüksek özgüllüklü seçicilerle site CSS'ini override eder.
   Renk sistemi: #f68801 turuncu, #40403f koyu
   ========================================================== */

/* ==========================================================
   SIDEBAR — Tüm stiller global ve !important ile izole
   ========================================================== */

div.mp-wrapper aside.mp-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1050;
    box-shadow: 2px 0 12px rgba(0,0,0,0.07);
    transition: transform 0.28s ease;
}

div.mp-wrapper aside.mp-sidebar.mp-sidebar--acik {
    transform: translateX(0) !important;
}

/* Logo */
div.mp-wrapper .mp-sidebar__logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 20px 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
}

div.mp-wrapper .mp-sidebar__logo img {
    height: 38px !important;
    object-fit: contain !important;
    display: block !important;
    max-width: 170px !important;
}

div.mp-wrapper .mp-sidebar__kapat {
    display: none !important;
    background: none !important;
    border: none !important;
    color: #aaa !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    line-height: 1 !important;
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Firma kutusu */
div.mp-wrapper .mp-firma-kutusu {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    background: #fff8ef !important;
    border-bottom: 1px solid #fde4bb !important;
}

div.mp-wrapper .mp-firma-kutusu__ikon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #ffc266 0%, #f68801 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

div.mp-wrapper .mp-firma-kutusu__bilgi {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-width: 0 !important;
}

div.mp-wrapper .mp-firma-kutusu__bilgi strong {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #40403f !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
}

div.mp-wrapper .mp-firma-kutusu__bilgi span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #f68801 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin-top: 2px !important;
}

/* NAV */
div.mp-wrapper .mp-nav {
    flex: 1 !important;
    padding: 6px 0 !important;
    overflow-y: auto !important;
    display: block !important;
}

div.mp-wrapper .mp-nav__baslik {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    color: #b8b8b8 !important;
    padding: 8px 16px 3px !important;
    margin: 0 !important;
    display: block !important;
    text-transform: uppercase !important;
}

/* =====================================================
   NAV LINK — En kritik kısım, site CSS ile savaş
   ===================================================== */
div.mp-wrapper .mp-nav a.mp-nav__link,
div.mp-wrapper .mp-nav .mp-nav__link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #555 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    border-left: 3px solid transparent !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    background: transparent !important;
    transition: background 0.18s, color 0.18s !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

div.mp-wrapper .mp-nav a.mp-nav__link i,
div.mp-wrapper .mp-nav .mp-nav__link i {
    width: 18px !important;
    text-align: center !important;
    font-size: 14px !important;
    color: #c0c0c0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    transition: color 0.18s !important;
}

div.mp-wrapper .mp-nav a.mp-nav__link span,
div.mp-wrapper .mp-nav .mp-nav__link span {
    display: inline !important;
    color: inherit !important;
}

/* Hover */
div.mp-wrapper .mp-nav a.mp-nav__link:hover,
div.mp-wrapper .mp-nav .mp-nav__link:hover {
    background: #fff8ef !important;
    color: #f68801 !important;
    text-decoration: none !important;
    border-left-color: #ffd699 !important;
}

div.mp-wrapper .mp-nav a.mp-nav__link:hover i,
div.mp-wrapper .mp-nav .mp-nav__link:hover i {
    color: #f68801 !important;
}

/* Aktif (Blazor NavLink .active sınıfı ekler) */
div.mp-wrapper .mp-nav a.mp-nav__link.active,
div.mp-wrapper .mp-nav .mp-nav__link.active {
    background: #fff3e0 !important;
    color: #f68801 !important;
    border-left-color: #f68801 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

div.mp-wrapper .mp-nav a.mp-nav__link.active i,
div.mp-wrapper .mp-nav .mp-nav__link.active i {
    color: #f68801 !important;
}

/* Çıkış */
div.mp-wrapper .mp-nav a.mp-nav__link--cikis,
div.mp-wrapper .mp-nav .mp-nav__link--cikis {
    color: #c0392b !important;
}

div.mp-wrapper .mp-nav a.mp-nav__link--cikis i,
div.mp-wrapper .mp-nav .mp-nav__link--cikis i {
    color: #e57373 !important;
}

div.mp-wrapper .mp-nav a.mp-nav__link--cikis:hover {
    background: #fdecea !important;
    color: #c0392b !important;
    border-left-color: #e57373 !important;
}

/* Sidebar alt */
div.mp-wrapper .mp-sidebar__alt {
    padding: 8px 16px !important;
    border-top: 1px solid #f0f0f0 !important;
    color: #ccc !important;
    font-size: 11px !important;
    text-align: center !important;
    display: block !important;
}

/* Overlay */
div.mp-wrapper .mp-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.4) !important;
    z-index: 1040 !important;
}

/* ==========================================================
   TOPBAR
   ========================================================== */
div.mp-wrapper .mp-topbar {
    height: 62px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e8e8e8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 24px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}

div.mp-wrapper .mp-topbar__menu {
    display: none !important;
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    color: #40403f !important;
    cursor: pointer !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    line-height: 1 !important;
}

div.mp-wrapper .mp-topbar__sag {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-left: auto !important;
}

div.mp-wrapper .mp-topbar__kullanici {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #40403f !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

div.mp-wrapper .mp-topbar__kullanici i {
    color: #f68801 !important;
    font-size: 20px !important;
}

div.mp-wrapper a.mp-topbar__cikis {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: #fff3e0 !important;
    border: 1px solid #ffd699 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #f68801 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    transition: background 0.18s !important;
}

div.mp-wrapper a.mp-topbar__cikis:hover {
    background: #f68801 !important;
    color: #fff !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
    div.mp-wrapper aside.mp-sidebar {
        transform: translateX(-100%) !important;
    }
    div.mp-wrapper aside.mp-sidebar.mp-sidebar--acik {
        transform: translateX(0) !important;
    }
    div.mp-wrapper .mp-sidebar__kapat {
        display: block !important;
    }
    div.mp-wrapper .mp-topbar__menu {
        display: block !important;
    }
    div.mp-wrapper .mp-topbar__kullanici {
        display: none !important;
    }
}

/* ==========================================================
   PANEL SAYFASI — İçerik alanı stilleri
   ========================================================== */
.panel-sayfa {
    width: 100%;
    font-family: "Roboto", sans-serif;
}

.sayfa-baslik { margin-bottom: 28px; }

.sayfa-baslik h1 {
    font-size: 22px;
    font-weight: 700;
    color: #40403f;
    margin: 0 0 4px;
    line-height: 1.3;
}

.breadcrumb {
    font-size: 12px;
    color: #b0b0b0;
}

/* Özet kartlar */
.ozet-kartlar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ozet-kart {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    border: 1px solid #efefef;
}

.ozet-kart-ikon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ozet-mavi    { background: #e8f4fd; color: #1976d2; }
.ozet-turuncu { background: #fff3e0; color: #f68801; }
.ozet-yesil   { background: #e8f5e9; color: #388e3c; }
.ozet-kirmizi { background: #fdecea; color: #d32f2f; }
.ozet-mor     { background: #f3e5f5; color: #7b1fa2; }

.ozet-kart-bilgi { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.ozet-kart-deger {
    font-size: 16px;
    font-weight: 700;
    color: #40403f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.ozet-kart-etiket {
    font-size: 12px;
    color: #b0b0b0;
    margin-top: 3px;
    display: block;
}

/* İki kolon */
.iki-kolon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .iki-kolon { grid-template-columns: 1fr; }
}

/* Bilgi kartı */
.bilgi-karti {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    border: 1px solid #efefef;
    margin-bottom: 20px;
}

.bilgi-karti-baslik {
    font-size: 15px;
    font-weight: 600;
    color: #40403f;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.bilgi-karti-baslik i { color: #f68801; }

.tümünü-gör {
    margin-left: auto;
    font-size: 12px;
    color: #f68801;
    text-decoration: none;
    font-weight: 500;
}

.bilgi-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #fafafa;
    font-size: 14px;
    gap: 12px;
}

.bilgi-satir:last-child { border-bottom: none; }
.bilgi-etiket { color: #999; flex-shrink: 0; min-width: 120px; font-size: 13px; }
.bilgi-deger  { color: #40403f; font-weight: 500; text-align: right; }

/* Rozetler */
.rozet {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.rozet-yesil   { background: #e8f5e9; color: #2e7d32; }
.rozet-kirmizi { background: #fdecea; color: #c62828; }
.rozet-turuncu { background: #fff3e0; color: #e65100; }
.rozet-gri     { background: #f5f5f5; color: #757575; }
.rozet-mavi    { background: #e3f2fd; color: #1565c0; }

.metin-kirmizi { color: #d32f2f !important; font-weight: 600; }
.metin-turuncu { color: #f68801 !important; font-weight: 600; }
.metin-gri     { color: #bbb; font-size: 13px; }

/* Tablo */
.tablo-wrapper { overflow-x: auto; }

.panel-tablo { width: 100%; border-collapse: collapse; font-size: 14px; }

.panel-tablo thead th {
    text-align: left;
    padding: 10px 12px;
    background: #fafafa;
    color: #999;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid #f0f0f0;
    white-space: nowrap;
}

.panel-tablo tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #f5f5f5;
    color: #40403f;
    vertical-align: middle;
    font-size: 14px;
}

.panel-tablo tbody tr:hover { background: #fffbf5; }
.panel-tablo tbody tr:last-child td { border-bottom: none; }

/* Modül grid */
.modul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.modul-karti {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    border: 1px solid #efefef;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: box-shadow 0.2s, transform 0.18s;
}

.modul-karti:hover { box-shadow: 0 4px 16px rgba(246,136,1,0.13); transform: translateY(-2px); }
.modul-karti-pasif { opacity: 0.55; }

.modul-ikon-alan {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffc266 0%, #f68801 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.modul-bilgi { flex: 1; overflow: hidden; min-width: 0; }
.modul-adi { font-size: 15px; font-weight: 600; color: #40403f; margin: 0 0 3px; display: block; }
.modul-kod { font-size: 12px; color: #bbb; margin: 0 0 6px; font-family: monospace; display: block; }
.modul-aciklama { font-size: 13px; color: #888; margin: 0; line-height: 1.5; }

.modul-durum { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.modul-tarih { font-size: 11px; color: #ccc; text-align: right; white-space: nowrap; }

.modul-ozet-bilgi {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff8ef;
    border: 1px solid #fde4bb;
    border-radius: 8px;
    font-size: 14px;
    color: #40403f;
}

.modul-ozet-bilgi i { color: #f68801; }

/* Boş durum */
.bos-durum { text-align: center; padding: 60px 20px; color: #bbb; }
.bos-durum i { font-size: 52px; margin-bottom: 18px; color: #e0e0e0; display: block; }
.bos-durum h3 { font-size: 17px; color: #888; margin-bottom: 8px; font-weight: 600; }
.bos-durum p { font-size: 14px; margin-bottom: 20px; color: #aaa; }

.btn-birincil {
    display: inline-block;
    padding: 11px 26px;
    background: linear-gradient(180deg, #ffc266 0%, #f68801 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(246,136,1,0.3);
    transition: opacity 0.2s;
}

.btn-birincil:hover { opacity: 0.9; }

/* Modül tablo ikon */
/* table-layout:fixed ile sütun içeriği taşmasın */
.panel-tablo td,
.panel-tablo th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Açıklama sütunu wrap edilebilir */
.panel-tablo td.td-aciklama {
    white-space: normal;
    word-break: break-word;
}

.modul-tablo-ikon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffc266 0%, #f68801 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.modul-kod-badge {
    background: #f5f5f5;
    color: #666;
    font-family: monospace;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    white-space: nowrap;
}

.satir-pasif td {
    opacity: 0.5;
}

/* ==========================================================
   PAGİNATION + ARAMA
   ========================================================== */

/* Modül toolbar */
.modul-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 14px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 4px;
}

.modul-toolbar__sol {
    display: flex;
    align-items: center;
    flex: 1;
}

.modul-toolbar__ozet {
    font-size: 13px;
    color: #aaa;
}

.modul-toolbar__ozet strong {
    color: #f68801;
    font-weight: 600;
}

.modul-toolbar__orta {
    flex: 1;
    display: flex;
    justify-content: center;
}

.modul-toolbar__sag {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

/* Arama kutusu */
.pag-arama-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pag-arama-ikon {
    position: absolute;
    right: 10px;
    color: #ccc;
    font-size: 13px;
    pointer-events: none;
}

.pag-arama-input {
    height: 34px;
    padding: 0 34px 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    color: #40403f;
    background: #fafafa;
    outline: none;
    width: 240px;
    transition: border-color 0.18s, background 0.18s;
    font-family: "Roboto", sans-serif;
}

.pag-arama-input:focus {
    border-color: #f68801;
    background: #fff;
}

.pag-arama-temizle {
    position: absolute;
    right: 30px;
    background: none;
    border: none;
    color: #bbb;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.pag-arama-temizle:hover { color: #f68801; }

/* Sayfa boyutu seçici */
.pag-boyut-select {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    color: #40403f;
    background: #fafafa;
    outline: none;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
}

.pag-boyut-select:focus { border-color: #f68801; }

/* Alt bar */
.pag-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px 4px;
    border-top: 1px solid #f5f5f5;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 10px;
}

.pag-bilgi {
    font-size: 13px;
    color: #aaa;
}

.pag-butonlar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pag-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-family: "Roboto", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1;
}

.pag-btn:hover:not(:disabled) {
    background: #fff8ef;
    border-color: #f68801;
    color: #f68801;
}

.pag-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pag-btn--aktif {
    background: #f68801 !important;
    border-color: #f68801 !important;
    color: #fff !important;
    font-weight: 600;
}

.pag-ellipsis {
    padding: 0 4px;
    color: #ccc;
    font-size: 14px;
    line-height: 34px;
    user-select: none;
}

/* Yükleniyor */
.yukleniyor-area { display: flex; flex-direction: column; align-items: center; padding: 60px; color: #bbb; gap: 14px; }

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #f0f0f0;
    border-top-color: #f68801;
    border-radius: 50%;
    animation: mp-spin 0.75s linear infinite;
}

@keyframes mp-spin { to { transform: rotate(360deg); } }
