/* B2B Blazor - Ana CSS */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --sidebar-bg: #202020;
    --sidebar-text: #ccc;
    --sidebar-hover: #C90000;
    --accent: #C90000;
    --page-bg: #f3f3f3;
    --card-bg: #fff;
    --vardar-blue: #337ab7;
    --vardar-blue-dark: #286090;
    --vardar-green: #5cb85c;
    --vardar-red: #d9534f;
    --vardar-yellow: #ffff00;
    --vardar-header-bg: #f8f9fa;
    --vardar-border: #ddd;
}

/* ── Modern Grid Styles (Radzen DataGrid) ──────── */
.legacy-grid {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e1e5ea;
    background: #fff;
}

.legacy-grid .rz-grid-table,
.legacy-grid .rz-data-grid-data {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Header: degrade + mavi alt çizgi + küçük caps */
.legacy-grid .rz-grid-table thead th,
.legacy-grid .rz-datatable-thead th {
    background: linear-gradient(180deg, #fbfcfd 0%, #eaeef3 100%) !important;
    color: #2c3e50 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--vardar-blue) !important;
    padding: 11px 8px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Hücre: rahat padding, yumuşak alt çizgi, geçiş efekti */
.legacy-grid .rz-grid-table td,
.legacy-grid .rz-datatable-tbody td {
    padding: 9px 8px !important;
    border-bottom: 1px solid #f1f3f5 !important;
    font-size: 12.5px !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Satır imleci → tıklanabilir (el işareti) */
.legacy-grid .rz-data-row,
.legacy-grid .rz-datatable-tbody tr {
    cursor: pointer;
}

/* Hover: yumuşak mavi tint + sol kenarda küçük ipucu */
.legacy-grid .rz-data-row:hover > td {
    background-color: #eaf3fb !important;
}
.legacy-grid .rz-data-row:hover > td:first-child {
    box-shadow: inset 3px 0 0 var(--vardar-blue);
}

/* Seçili satır: güçlü mavi degrade + sol kenar 4px aksan */
.legacy-grid .grid-row-selected > td,
.legacy-grid tr.grid-row-selected > td {
    background: linear-gradient(90deg, #bad7ed 0%, #d2e4f4 25%, #e6f1fa 100%) !important;
    color: var(--vardar-blue-dark) !important;
    font-weight: 600 !important;
}
.legacy-grid .grid-row-selected > td:first-child,
.legacy-grid tr.grid-row-selected > td:first-child {
    box-shadow: inset 4px 0 0 var(--vardar-blue) !important;
}

/* Kampanya/fırsat ürünü sarı highlight */
.legacy-grid .grid-row-campaign > td,
.legacy-grid tr.grid-row-campaign > td {
    background-color: #fff6c8 !important;
}
.legacy-grid .grid-row-campaign:hover > td {
    background-color: #fff0a5 !important;
}

/* Seçili + kampanya → seçili daima üste */
.legacy-grid .grid-row-selected.grid-row-campaign > td {
    background: linear-gradient(90deg, #bad7ed 0%, #d2e4f4 25%, #e6f1fa 100%) !important;
}

/* Eski yellow class uyumu */
.legacy-grid .row-highlight-yellow td {
    background-color: var(--vardar-yellow) !important;
}

/* Sayfalama barı — küçük polish */
.legacy-grid .rz-pager {
    background: #fafbfc !important;
    border-top: 1px solid #eef1f4 !important;
    padding: 6px 8px !important;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background: var(--page-bg);
    color: #333;
}

/* ── Sidebar Layout ─────────────────────────────── */
.b2b-layout {
    display: flex;
    min-height: 100vh;
}

.b2b-sidebar {
    width: 220px;
    min-width: 220px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: width 0.2s;
}

.b2b-sidebar .sidebar-brand {
    padding: 14px 12px 14px;
    border-bottom: 1px solid #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1d1d1d 100%);
}

.b2b-sidebar .brand-logo-card {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.b2b-sidebar .sidebar-brand img {
    max-height: 46px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.b2b-sidebar .brand-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.b2b-nav {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    flex: 1;
    overflow-y: auto;
}

.b2b-nav li a, .b2b-nav li button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px 11px 17px;
    color: #e8eaed;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    width: 100%;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.b2b-nav li a:hover, .b2b-nav li button:hover,
.b2b-nav li a.active, .b2b-nav li button.active {
    background: rgba(201, 0, 0, 0.22);
    color: #fff;
    border-left-color: var(--accent);
    font-weight: 600;
}

.b2b-nav .badge-count {
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    margin-left: auto;
}

.sidebar-user {
    padding: 12px 16px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #aaa;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}
.sidebar-user-info .b2b-nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 0;
}
.sidebar-logout:hover { color: #fff; }

/* Admin paneline gitme butonu — collapsed'da yalnız ikon */
.sidebar-admin-link {
    padding: 8px 12px;
}
.sidebar-admin-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #C90000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
}

/* Daralt/genişlet butonu — sidebar sağ kenarından yarı dışarı taşan yuvarlak buton.
   "B2B PORTAL" yazısı hizasında — ne logo'nun üstünde ne navmenü öğelerinin arasında. */
.sidebar-collapse-btn {
    position: absolute;
    top: 88px;
    right: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #1f5ac4;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    z-index: 110;
    padding: 0;
}

/* Daraltılmış modda brand kısalır → buton da yukarı kayar (logonun yanında) */
.b2b-layout.sidebar-collapsed .sidebar-collapse-btn {
    top: 36px;
}

.sidebar-collapse-btn:hover {
    background: #1f5ac4;
    color: #fff;
    transform: scale(1.10);
    box-shadow: 0 4px 14px rgba(31, 90, 196, 0.45);
}

.sidebar-collapse-btn:active {
    transform: scale(0.96);
}

/* Mobilde gizle — hamburger zaten var */
@media (max-width: 768px) {
    .sidebar-collapse-btn {
        display: none;
    }
}

/* ── Main Content ────────────────────────────────── */
.b2b-main {
    margin-left: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.2s ease;
}

/* ════════════════════════════════════════════════════════════════════
   COLLAPSED SIDEBAR — büyük ikon-only mod (masaüstü)
   ════════════════════════════════════════════════════════════════════ */
.b2b-layout.sidebar-collapsed .b2b-sidebar {
    width: 68px;
    min-width: 68px;
}

.b2b-layout.sidebar-collapsed .b2b-main {
    margin-left: 68px;
}

/* Brand: logo kalır, başlık metni gizlenir */
.b2b-layout.sidebar-collapsed .sidebar-brand {
    padding: 10px 6px;
}
.b2b-layout.sidebar-collapsed .brand-logo-card {
    padding: 4px;
}
.b2b-layout.sidebar-collapsed .sidebar-brand img {
    max-height: 38px;
}
.b2b-layout.sidebar-collapsed .brand-title {
    display: none;
}

/* Nav: metin gizli, ikon büyür ve ortalanır */
.b2b-layout.sidebar-collapsed .b2b-nav li a,
.b2b-layout.sidebar-collapsed .b2b-nav li button,
.b2b-layout.sidebar-collapsed .sidebar-admin-link a,
.b2b-layout.sidebar-collapsed .sidebar-user-info,
.b2b-layout.sidebar-collapsed .sidebar-logout {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
}

.b2b-layout.sidebar-collapsed .b2b-nav-text {
    display: none;
}

.b2b-layout.sidebar-collapsed .b2b-nav-icon {
    font-size: 22px;
    line-height: 1;
}

/* Nav'da seçili öğenin sol kenar şeridi daralt'ta görünmesin (içerik ortalandı) */
.b2b-layout.sidebar-collapsed .b2b-nav li a {
    border-left-width: 0;
    padding-top: 14px;
    padding-bottom: 14px;
}
.b2b-layout.sidebar-collapsed .b2b-nav li a.active,
.b2b-layout.sidebar-collapsed .b2b-nav li a:hover {
    border-left-width: 0;
    background: rgba(201, 0, 0, 0.30);
}

/* Sepet sayacı — collapsed'da küçük yuvarlak rozet */
.b2b-layout.sidebar-collapsed .b2b-nav .badge-count {
    position: absolute;
    top: 8px;
    right: 12px;
    margin-left: 0;
    font-size: 10px;
    padding: 1px 5px;
    min-width: 16px;
    line-height: 1.4;
}
.b2b-layout.sidebar-collapsed .b2b-nav li a {
    position: relative;
}

/* Admin paneli linki — collapsed'da sadece ⚙️ ikonu, mini kırmızı kutu */
.b2b-layout.sidebar-collapsed .sidebar-admin-link {
    padding: 6px 8px;
}
.b2b-layout.sidebar-collapsed .sidebar-admin-link a {
    padding: 8px 0;
    font-size: 18px;
}

/* User bölümü — sadece avatar ikonu + çıkış ikonu */
.b2b-layout.sidebar-collapsed .sidebar-user {
    align-items: center;
    padding: 10px 6px;
}
.b2b-layout.sidebar-collapsed .sidebar-user-info,
.b2b-layout.sidebar-collapsed .sidebar-logout {
    width: 100%;
    justify-content: center;
}

/* Toggle buton iki state arası animasyon */
.b2b-layout.sidebar-collapsed .sidebar-collapse-btn {
    /* Genişlet: sağ ok */
}

.b2b-topbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
}

.b2b-content {
    padding: 20px;
    flex: 1;
}

/* ── Dashboard Cards ─────────────────────────────── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    border-left: 4px solid #ccc;
}

.stat-card.green { border-left-color: #00CE6F; }
.stat-card.blue  { border-left-color: #2196F3; }
.stat-card.red   { border-left-color: #DB0630; }
.stat-card.orange { border-left-color: #FF9800; }

.stat-card .stat-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card.green .stat-icon { background: rgba(0,206,111,0.15); color: #00CE6F; }
.stat-card.blue .stat-icon  { background: rgba(33,150,243,0.15); color: #2196F3; }
.stat-card.red .stat-icon   { background: rgba(219,6,48,0.15);   color: #DB0630; }
.stat-card.orange .stat-icon { background: rgba(255,152,0,0.15); color: #FF9800; }

.stat-card .stat-value { font-size: 22px; font-weight: 700; color: #222; }
.stat-card .stat-label { font-size: 12px; color: #888; }

/* ── Chart Cards ─────────────────────────────────── */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    min-width: 0;
}

.chart-card h3 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

/* ── Page Headers ─────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.page-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* ── Data Tables ─────────────────────────────────── */
.data-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* ── Admin Panel ─────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: #1a237e;
    color: #ccc;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 100;
}

.admin-sidebar .sidebar-brand {
    padding: 20px 16px;
    background: #0d1b6b;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: block;
    border-bottom: 1px solid #2a3490;
}

.admin-nav li a, .admin-nav li button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #aac;
    text-decoration: none;
    font-size: 13px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.admin-nav li a:hover, .admin-nav li a.active,
.admin-nav li button:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: #5c6bc0;
}

.admin-main { margin-left: 220px; flex: 1; }

.admin-topbar {
    background: #1a237e;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
}

/* ── Login Page ──────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #202020 0%, #3a3a3a 100%);
}

.login-box {
    background: #fff;
    border-radius: 14px;
    padding: 32px 30px 28px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.login-box .login-logo {
    text-align: center;
    margin-bottom: 22px;
}

.login-box .login-logo img {
    max-height: 130px;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 480px) {
    .login-box {
        padding: 26px 22px 22px;
        max-width: 320px;
    }
    .login-box .login-logo img {
        max-height: 110px;
        max-width: 92%;
    }
}

.login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
}

/* ── Hamburger butonu (sadece mobilde görünür) ──── */
.b2b-hamburger {
    display: none;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
}
.b2b-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.2s;
}

/* Sidebar overlay — mobil drawer açıkken arka karartma */
.b2b-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .b2b-hamburger { display: flex; }

    /* Mobilde collapse butonu görünmesin — hamburger zaten var */
    .sidebar-collapse-btn { display: none !important; }

    /* Sidebar default kapalı — sadece sidebar-open class'ında açılır */
    .b2b-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 240px;
        min-width: 240px;
    }

    .b2b-layout.sidebar-open .b2b-sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 18px rgba(0, 0, 0, 0.30);
    }

    .b2b-layout.sidebar-open .b2b-sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .b2b-main { margin-left: 0; width: 100%; }
    .b2b-content { padding: 12px; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .chart-grid { grid-template-columns: 1fr; }

    /* Mobilde collapsed class etkisini iptal et — sidebar her zaman tam genişlik */
    .b2b-layout.sidebar-collapsed .b2b-sidebar {
        width: 240px;
        min-width: 240px;
    }
    .b2b-layout.sidebar-collapsed .b2b-main {
        margin-left: 0;
    }
    .b2b-layout.sidebar-collapsed .b2b-nav-text,
    .b2b-layout.sidebar-collapsed .brand-title {
        display: inline;
    }
    .b2b-layout.sidebar-collapsed .b2b-nav li a {
        justify-content: flex-start;
        padding: 11px 18px 11px 17px;
        gap: 10px;
        border-left-width: 3px;
    }

    /* Topbar mobilde dikey istif olabilir, taşan widget'lar wrap edebilir */
    .b2b-topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }

    /* ─── Admin Layout Mobil ─── */
    .admin-hamburger { display: flex; }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 240px;
        min-width: 240px;
    }

    .admin-layout.sidebar-open .admin-sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 18px rgba(0, 0, 0, 0.30);
    }

    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.25s;
        pointer-events: none;
    }

    .admin-layout.sidebar-open .admin-sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .admin-main { margin-left: 0; width: 100%; }
    .admin-topbar { padding: 8px 12px; }
}

/* Admin hamburger — lacivert topbar üzerinde beyaz çizgili görünür.
   NOT: `display:none` koymuyoruz — mobil media query (yukarıda) `display:flex` veriyor.
   Buradan sonra başka bir display:none gelirse media query ezilir. */
.admin-hamburger { border-color: rgba(255,255,255,0.4); }
.admin-hamburger span { background: #fff !important; }
.admin-hamburger:hover { background: rgba(255,255,255,0.15) !important; border-color: #fff; }

/* Daha küçük (telefonda) */
@media (max-width: 480px) {
    .stat-cards { grid-template-columns: 1fr; }
    .b2b-topbar > * { font-size: 12px; }
}

/* ── Radzen Overrides ────────────────────────────── */
.rz-grid-table { font-size: 12px; }
.rz-grid-table th { background: #202020 !important; color: #fff !important; }
.rz-data-grid .rz-row:hover { background: rgba(201,0,0,0.05) !important; }

/* Loading overlay */
.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

/* Money format */
.money { text-align: right; font-family: monospace; }

/* ── Modern CSS Tooltip (data-tooltip="..." kullanımı) ────────────
   <button data-tooltip="Bağlantıyı test et">…</button>
   Hover edildiğinde üstte koyu animasyonlu balon çıkar.
*/
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    bottom: 100%;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 9999;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    transform: translate(-50%, -2px);
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;        /* satır kırılımına izin ver */
    width: max-content;          /* metin kısa ise daralsın */
    max-width: 200px;            /* uzun metin 2-3 satıra sarılsın */
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20);
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

[data-tooltip]::after {
    content: '';
    transform: translate(-50%, -2px);
    border: 5px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.96);
    margin-bottom: -6px;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translate(-50%, -6px);
}

/* Aşağı yönlü tooltip — bottom kenardakiler için */
[data-tooltip-pos="bottom"]::before,
[data-tooltip-pos="bottom"]::after {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
}
[data-tooltip-pos="bottom"]::before {
    margin-top: 4px;
}
[data-tooltip-pos="bottom"]::after {
    border-top-color: transparent;
    border-bottom-color: rgba(15, 23, 42, 0.96);
    margin-top: -6px;
}
[data-tooltip-pos="bottom"]:hover::before,
[data-tooltip-pos="bottom"]:hover::after {
    transform: translate(-50%, 6px);
}

/* ── Müşteri Selector (Topbar + Modal) ────────── */

/* Topbar kartı */
.musteri-topbar-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    background: linear-gradient(135deg, #fff 0%, #f6f8fb 100%);
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    user-select: none;
}
.musteri-topbar-card:hover {
    border-color: var(--vardar-blue);
    box-shadow: 0 2px 8px rgba(51, 122, 183, 0.15);
}
.musteri-topbar-card:active { transform: translateY(1px); }

.musteri-topbar-icon {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--vardar-blue) 0%, var(--vardar-blue-dark) 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
}

.musteri-topbar-info { line-height: 1.2; }
.musteri-topbar-label {
    font-size: 10.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.musteri-topbar-name {
    font-size: 13px;
    font-weight: 700;
    color: #202020;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.musteri-topbar-change {
    margin-left: 4px;
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

/* Modal overlay + container */
.musteri-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 25, 35, 0.55);
    z-index: 9998;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 16px;
    animation: musteriOverlayIn 0.15s ease;
}
@keyframes musteriOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.musteri-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 860px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: musteriModalIn 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes musteriModalIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.musteri-modal-header {
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--vardar-blue) 0%, var(--vardar-blue-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.musteri-modal-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 700;
    letter-spacing: 0.3px;
}
.musteri-modal-title-icon { font-size: 20px; }
.musteri-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease;
}
.musteri-modal-close:hover { background: rgba(255, 255, 255, 0.3); }

/* Search + butonlar */
.musteri-modal-search {
    padding: 18px 22px 14px;
    border-bottom: 1px solid #edf0f3;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.musteri-search-row { display: flex; gap: 8px; margin-bottom: 10px; }

.musteri-search-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #d7dbe0;
    border-radius: 8px;
    font-size: 13.5px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}
.musteri-search-input:focus {
    border-color: var(--vardar-blue);
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.15);
}

.musteri-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.musteri-btn {
    flex: 1;
    min-width: 140px;
    padding: 9px 14px;
    border: none;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.2px;
}
.musteri-btn:hover { filter: brightness(1.08); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); }
.musteri-btn:active { transform: translateY(1px); }

.musteri-btn-green  { background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%); }
.musteri-btn-red    { background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%); }
.musteri-btn-orange { background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%); color: #3a2d10; }

.musteri-hint { font-size: 12px; color: #888; padding-top: 4px; }
.musteri-hint-loading { color: var(--vardar-blue); font-weight: 600; }
.musteri-hint-empty   { color: #a9534f; }
.musteri-hint-help    { color: #888; }
.musteri-hint strong  { color: #333; }

.musteri-filter-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #fff2cd;
    color: #8a6d1a;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid #f0d88f;
    letter-spacing: 0.3px;
}

/* Sonuç tablosu */
.musteri-results { flex: 1; overflow-y: auto; padding: 0; background: #fff; }

.musteri-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
}

.musteri-table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #fbfcfd 0%, #eef1f4 100%);
    color: #2c3e50;
    font-weight: 700;
    border-bottom: 2px solid var(--vardar-blue);
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 1;
}

.musteri-table tbody tr {
    cursor: pointer;
    transition: background 0.12s ease;
}
.musteri-table tbody tr:nth-child(even) td { background: #fafbfc; }
.musteri-table tbody tr:hover td {
    background: #eaf3fb !important;
    box-shadow: inset 3px 0 0 var(--vardar-blue);
}

.musteri-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.musteri-kod { font-weight: 700; color: var(--vardar-blue); font-family: 'Consolas', monospace; }
.musteri-ad  { color: #202020; font-weight: 500; }
.musteri-il, .musteri-ilce { color: #666; font-size: 12px; }

.musteri-sec-cell { text-align: center; }
.musteri-sec-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #a00000 100%);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.1s ease, filter 0.15s ease;
}
.musteri-sec-btn:hover { filter: brightness(1.1); }
.musteri-sec-btn:active { transform: translateY(1px); }

@media (max-width: 640px) {
    .musteri-topbar-name { max-width: 140px; }
    .musteri-action-buttons .musteri-btn { min-width: 0; }
    .musteri-table .musteri-il, .musteri-table .musteri-ilce { display: none; }
}

/* ── Fiyat Hover Popup (Arama) ──────────────────── */
/* Sabit konumlandırılmış, grid overflow'una takılmaz */
@keyframes fiyatPopupIn {
    from { opacity: 0; transform: translateY(4px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fiyat-popup {
    position: fixed;
    min-width: 280px;
    background: linear-gradient(160deg, #1e2a3a 0%, #0f1822 100%);
    color: #fff;
    border: 1px solid rgba(51, 122, 183, 0.4);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.03);
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
    font-family: "Open Sans", -apple-system, "Segoe UI", sans-serif;
    animation: fiyatPopupIn 0.12s ease-out;
}

/* Header */
.fiyat-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #337ab7 0%, #286090 100%);
    border-bottom: 1px solid rgba(0,0,0,0.2);
}
.fiyat-popup-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.fiyat-popup-stok {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    font-family: "Consolas", "Courier New", monospace;
    padding: 2px 6px;
    background: rgba(0,0,0,0.18);
    border-radius: 3px;
}
.fiyat-popup-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 10px;
    background: #ffdd57;
    color: #202020;
    text-shadow: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Table */
.fiyat-popup-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    font-size: 12px;
}
.fiyat-popup-table thead th {
    padding: 8px 14px 6px 14px;
    text-align: right;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.fiyat-popup-table thead th:first-child { text-align: left; }

.fiyat-popup-table tbody td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fiyat-popup-table tbody tr:last-child td { border-bottom: 0; }

.fiyat-popup-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
.fiyat-popup-val {
    text-align: right;
    font-family: "Consolas", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.fiyat-popup-val-dim {
    color: rgba(255,255,255,0.45);
    text-decoration: line-through;
    text-decoration-color: rgba(217, 83, 79, 0.6);
}
.fiyat-popup-val-main {
    color: #ffffff;
    font-size: 13px;
}
.fiyat-popup-val-accent {
    color: #5cb85c;
    font-size: 13px;
    text-shadow: 0 0 8px rgba(92, 184, 92, 0.25);
}

.fiyat-popup-row-highlight {
    background: rgba(51, 122, 183, 0.08);
}
.fiyat-popup-row-highlight .fiyat-popup-label {
    color: #fff;
    font-weight: 700;
}

/* ── Kampanya satırı (Net Fiyat'ın altında 1-3 ek satır) ──
   Net Fiyat ile aynı tablo ritminde kalır, ama altın-amber tonuyla farkındalık yaratır. */
.fiyat-popup-row-kampanya {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0.03) 100%);
}
.fiyat-popup-label-kampanya {
    color: rgba(253, 224, 71, 0.95) !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fiyat-popup-kampanya-icon {
    font-size: 13px;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}
.fiyat-popup-val-kampanya {
    color: rgba(253, 224, 71, 0.85);
    font-size: 12.5px;
}
.fiyat-popup-val-kampanya-accent {
    color: #fbbf24;
    font-size: 13px;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.40);
    font-weight: 700;
}

/* Footer */
.fiyat-popup-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}
.fiyat-popup-para {
    padding: 1px 6px;
    background: rgba(92, 184, 92, 0.15);
    border: 1px solid rgba(92, 184, 92, 0.35);
    color: #5cb85c;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.fiyat-popup-kdv {
    margin-left: auto;
    padding: 1px 6px;
    background: rgba(255,221,87,0.12);
    border: 1px solid rgba(255,221,87,0.35);
    color: #ffdd57;
    border-radius: 3px;
    font-weight: 600;
}

/* ========================================================================== */
/* Radzen Dialog polish — modern rounded style (Sepete Ekle, Resim, vb.)      */
/* ========================================================================== */
.rz-dialog {
    border-radius: 14px !important;
    box-shadow: 0 18px 48px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.10) !important;
    overflow: hidden !important;
    border: none !important;
}

.rz-dialog .rz-dialog-titlebar,
.rz-dialog-titlebar {
    background: linear-gradient(135deg, var(--vardar-blue) 0%, var(--vardar-blue-dark) 100%) !important;
    color: #fff !important;
    border-bottom: none !important;
    padding: 13px 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
}

.rz-dialog-titlebar .rz-dialog-title,
.rz-dialog-title {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.rz-dialog-titlebar .rz-dialog-titlebar-icon {
    color: rgba(255,255,255,0.92) !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s, color 0.15s;
}
.rz-dialog-titlebar .rz-dialog-titlebar-icon:hover {
    background: rgba(255,255,255,0.22) !important;
    color: #fff !important;
}

.rz-dialog-content {
    padding: 20px !important;
    background: #fff !important;
}

.rz-dialog-mask {
    background: rgba(18,22,30,0.55) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Resim modal wrapper (ShowImage) */
.resim-modal-wrapper {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #fafbfc 0%, #eef2f7 100%);
    border-radius: 10px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.resim-modal-wrapper img {
    max-width: 100%;
    max-height: 520px;
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.14);
    background: #fff;
    padding: 10px;
    transition: transform 0.2s ease;
}
.resim-modal-wrapper img:hover {
    transform: scale(1.01);
}

/* ========================================================================== */
/* Sepete Ekle Dialog — two-column layout with image corner card              */
/* ========================================================================== */
.sepet-dialog {
    display: flex;
    gap: 20px;
    padding: 4px;
    min-height: 320px;
}

.sepet-dialog-left {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sepet-image-card {
    width: 200px;
    height: 200px;
    background: #f7f9fc;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.18s;
    position: relative;
}
.sepet-image-card:hover {
    border-color: var(--vardar-blue);
    box-shadow: 0 4px 14px rgba(51,122,183,0.18);
    transform: translateY(-1px);
}
.sepet-image-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.sepet-image-card img.no-image { opacity: 0.4; }

.sepet-image-placeholder {
    color: #aaa;
    text-align: center;
    font-size: 12px;
}
.sepet-image-placeholder span {
    font-size: 40px;
    display: block;
    margin-bottom: 6px;
    opacity: 0.5;
}

.sepet-image-hint {
    font-size: 11px;
    color: #888;
    padding: 2px 8px;
    background: #f0f3f7;
    border-radius: 4px;
}

.sepet-dialog-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sepet-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #7a8898;
    margin-bottom: 3px;
}

.sepet-field .sepet-value {
    background: #f7f9fc;
    border: 1px solid #e1e6ec;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: #2c3e50;
    min-height: 34px;
    display: flex;
    align-items: center;
}

.sepet-value-bold {
    font-weight: 700 !important;
    color: var(--vardar-blue) !important;
    background: #eaf3fb !important;
    border-color: #c9dff0 !important;
}

.sepet-price-highlight {
    font-weight: 700 !important;
    color: var(--vardar-blue-dark) !important;
    font-size: 14px !important;
}

.sepet-field-row {
    display: flex;
    gap: 12px;
}

.sepet-total {
    background: linear-gradient(90deg, #eaf3fb 0%, #d7e8f7 100%);
    border: 1px solid var(--vardar-blue);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--vardar-blue-dark);
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Kampanya kutusu */
.sepet-kampanya-box {
    background: linear-gradient(180deg, #fff9d9 0%, #fff2a8 100%);
    border: 1px solid #e5cd3b;
    border-left: 4px solid #f0ad4e;
    border-radius: 6px;
    padding: 10px 12px;
}
.sepet-kampanya-title {
    font-size: 12px;
    font-weight: 700;
    color: #8a6d00;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.sepet-kampanya-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #5c4a00;
    padding: 3px 0;
    border-top: 1px dashed rgba(138, 109, 0, 0.2);
}
.sepet-kampanya-line:first-of-type { border-top: none; }
.sepet-kampanya-text { font-weight: 500; }
.sepet-kampanya-fiyat {
    font-weight: 700;
    color: #3d3000;
    background: rgba(255,255,255,0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Aksiyon butonları */
.sepet-action-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #eaeef3;
    justify-content: flex-end;
}

.sepet-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}
.sepet-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.sepet-btn:active { transform: translateY(0); }

.sepet-btn-history {
    background: #f0ad4e;
    color: #fff;
    margin-right: auto;
}
.sepet-btn-history:hover { background: #ec971f; }

.sepet-btn-cancel {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}
.sepet-btn-cancel:hover { background: #e8e8e8; }

.sepet-btn-add {
    background: linear-gradient(180deg, #5cb85c 0%, #449d44 100%);
    color: #fff;
}
.sepet-btn-add:hover {
    background: linear-gradient(180deg, #449d44 0%, #388038 100%);
}

.sepet-btn-back {
    background: var(--vardar-blue);
    color: #fff;
    margin-bottom: 12px;
}
.sepet-btn-back:hover { background: var(--vardar-blue-dark); }

/* Resim sayfası */
.sepet-page-resim {
    min-height: 400px;
    padding: 4px;
}
.sepet-resim-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    padding: 20px;
    min-height: 380px;
}
.sepet-resim-wrapper img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Geçmiş alımlar sayfası */
.sepet-page-history {
    min-height: 300px;
    padding: 4px;
}
.sepet-history-empty {
    text-align: center;
    color: #888;
    padding: 60px 20px;
    background: #f7f9fc;
    border: 1px dashed #dce3eb;
    border-radius: 8px;
    font-size: 14px;
}
.sepet-history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    overflow: hidden;
}
.sepet-history-table thead th {
    background: linear-gradient(180deg, #fbfcfd 0%, #eaeef3 100%);
    border-bottom: 2px solid var(--vardar-blue);
    color: var(--vardar-blue-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
}
.sepet-history-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
    color: #333;
}
.sepet-history-table tbody tr:nth-child(even) td { background: #fafbfc; }
.sepet-history-table tbody tr:hover td { background: #eaf3fb; }

/* ─── Stok arama grid'i: satır-içi resim thumbnail ──────────────────────
   Kullanım: <img class="stok-thumb" src="..." onerror="stokImgFallback(this)"/>
   stokImgFallback (wwwroot/js/stok-img.js) primary → cdn → no.png fallback
   zincirini uygular. Thumbnail'a tıklanınca tam boyut modal açılır.  */
.stok-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    padding: 2px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    vertical-align: middle;
}
.stok-thumb:hover {
    transform: scale(1.12);
    border-color: var(--vardar-blue);
    box-shadow: 0 2px 8px rgba(51,122,183,0.25);
    z-index: 2;
    position: relative;
}
/* Resim hiç bulunamadığında: tamamen boş görünsün (kırmızı çarpı yok) */
.stok-thumb.stok-thumb-missing {
    cursor: default;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
}
.stok-thumb.stok-thumb-missing:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

/* ── Sepetim Toplam Kartı ───────────────────────────── */
.sepet-totals {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5ea;
    font-size: 13px;
}
.sepet-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}
.sepet-totals-row:last-child {
    border-bottom: none;
}
.sepet-totals-label {
    color: #555;
    font-weight: 500;
}
.sepet-totals-value {
    color: #222;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.sepet-totals-minus {
    color: #d9534f;
}
.sepet-totals-grand {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid var(--vardar-blue);
    font-size: 15px;
}
.sepet-totals-grand .sepet-totals-label {
    color: var(--vardar-blue);
    font-weight: 700;
}
.sepet-totals-grand .sepet-totals-value {
    color: #C90000;
    font-size: 16px;
}

/* Seçili satır vurgu (Arama grid'indeki stille uyumlu) */
.legacy-grid tr.grid-row-selected > td {
    background: rgba(51, 122, 183, 0.10) !important;
}

/* ── Sepet Silme Dialog (şık onay popup'ı) ───────────── */
.sepet-sil-modal .rz-dialog-titlebar {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%) !important;
    color: #fff !important;
}
.sepet-sil-modal .rz-dialog-content {
    padding: 0 !important;
}

.sepet-sil-dialog {
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

/* Üst banner — turuncu/kırmızı gradient uyarı alanı */
.sepet-sil-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0e0 100%);
    border-bottom: 1px solid #f5d0ce;
}
.sepet-sil-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.35);
    animation: sepet-sil-pulse 2s ease-in-out infinite;
}
@keyframes sepet-sil-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(217, 83, 79, 0.35); }
    50%      { transform: scale(1.04); box-shadow: 0 6px 18px rgba(217, 83, 79, 0.50); }
}
.sepet-sil-banner-text {
    flex: 1;
}
.sepet-sil-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}
.sepet-sil-subtitle {
    font-size: 13px;
    color: #8a5a5a;
    line-height: 1.4;
}

/* Tek ürün kartı */
.sepet-sil-card {
    display: flex;
    gap: 16px;
    padding: 20px 22px;
    background: #fafbfc;
}
.sepet-sil-img {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.sepet-sil-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sepet-sil-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 1px dashed #eaeaea;
}
.sepet-sil-row:last-child {
    border-bottom: none;
}
.sepet-sil-lbl {
    color: #888;
    font-weight: 500;
    flex: 0 0 auto;
}
.sepet-sil-val {
    color: #333;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    padding-left: 10px;
}
.sepet-sil-val-kod {
    color: var(--vardar-blue);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 0.3px;
}
.sepet-sil-val-miktar {
    color: #5cb85c;
    font-size: 14px;
}
.sepet-sil-row-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid #d9534f;
    border-bottom: none !important;
}
.sepet-sil-val-tutar {
    color: #d9534f;
    font-size: 17px;
    font-weight: 700;
}

/* Toplu sil: istatistik kartları */
.sepet-sil-toplu {
    display: flex;
    gap: 10px;
    padding: 18px 22px 14px 22px;
    background: #fafbfc;
}
.sepet-sil-toplu-stat {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.sepet-sil-toplu-stat-total {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-color: #f5c6cb;
}
.sepet-sil-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--vardar-blue);
    line-height: 1.2;
}
.sepet-sil-toplu-stat-total .sepet-sil-stat-num {
    color: #d9534f;
    font-size: 18px;
}
.sepet-sil-stat-lbl {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Toplu sil: önizleme listesi */
.sepet-sil-preview {
    padding: 0 22px 16px 22px;
    background: #fafbfc;
}
.sepet-sil-preview-title {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e1e5ea;
}
.sepet-sil-preview-row {
    display: grid;
    grid-template-columns: 32px 90px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px dashed #eee;
}
.sepet-sil-preview-row:last-child {
    border-bottom: none;
}
.sepet-sil-preview-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 5px;
    padding: 2px;
}
.sepet-sil-preview-kod {
    font-weight: 700;
    color: var(--vardar-blue);
    font-family: 'Courier New', monospace;
}
.sepet-sil-preview-ad {
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sepet-sil-preview-miktar {
    color: #5cb85c;
    font-weight: 600;
    white-space: nowrap;
}
.sepet-sil-preview-more {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 12px;
    color: #999;
    text-align: center;
    font-style: italic;
    border-top: 1px dashed #e1e5ea;
}

/* Butonlar */
.sepet-sil-actions {
    display: flex;
    gap: 10px;
    padding: 14px 22px;
    background: #fff;
    border-top: 1px solid #e1e5ea;
    justify-content: flex-end;
}
.sepet-sil-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sepet-sil-btn-cancel {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}
.sepet-sil-btn-cancel:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}
.sepet-sil-btn-delete {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(217, 83, 79, 0.3);
}
.sepet-sil-btn-delete:hover {
    background: linear-gradient(135deg, #c9302c 0%, #ac2925 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.45);
}
.sepet-sil-btn-delete:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(217, 83, 79, 0.3);
}

/* ════════════════════════════════════════════════════════════════════
   SİPARİŞ DETAY DİALOG
   Sipariş başlığı + kalem tablosu (modal dialog içinde).
   ════════════════════════════════════════════════════════════════════ */

/* Modal wrapper — Radzen dialog başlığını koyu yap */
.siparis-detay-modal .rz-dialog-titlebar {
    background: linear-gradient(135deg, #202020 0%, #2a2a2a 100%) !important;
    color: #fff !important;
    border-bottom: 2px solid #C90000 !important;
}
.siparis-detay-modal .rz-dialog-titlebar .rz-dialog-title { color: #fff !important; font-weight: 700 !important; }
.siparis-detay-modal .rz-dialog-titlebar-close { color: #fff !important; }
.siparis-detay-modal .rz-dialog-content { padding: 0 !important; }

.siparis-detay-dialog {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333;
}

/* Header — Evrak/Belge/Tarih */
.siparis-detay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
    border-bottom: 1px solid #e0e3e7;
}
.siparis-detay-header-left {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.siparis-detay-evrak-wrap,
.siparis-detay-belge-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.siparis-detay-evrak-lbl,
.siparis-detay-belge-lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.siparis-detay-evrak-val {
    font-size: 15px;
    font-weight: 700;
    color: #C90000;
    font-family: "Consolas", monospace;
}
.siparis-detay-belge-val {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: "Consolas", monospace;
}
.siparis-detay-header-right {
    display: flex;
    align-items: center;
}
.siparis-detay-tarih {
    background: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e3e7;
}

/* Müşteri şeridi */
.siparis-detay-musteri {
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.siparis-detay-musteri-kod {
    font-weight: 700;
    color: #333;
    font-family: "Consolas", monospace;
}
.siparis-detay-musteri-sep {
    color: #bbb;
    margin: 0 6px;
}
.siparis-detay-musteri-ad {
    color: #555;
}

/* Body */
.siparis-detay-body {
    background: #fff;
    max-height: 60vh;
    overflow: auto;
}
.siparis-detay-loading,
.siparis-detay-empty {
    padding: 60px 20px;
    text-align: center;
    color: #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

@keyframes siparis-spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

/* Kalem tablosu */
.siparis-detay-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.siparis-detay-table thead th {
    background: #202020;
    color: #fff;
    padding: 10px 8px;
    font-weight: 600;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 2;
}
.siparis-detay-table thead th.right { text-align: right; }
.siparis-detay-table tbody td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.siparis-detay-table tbody td.right { text-align: right; font-variant-numeric: tabular-nums; }
.siparis-detay-table tbody tr:hover td { background: #fafafa; }

.siparis-detay-sira {
    text-align: center;
    color: #aaa;
    width: 40px;
    font-weight: 600;
}
.siparis-detay-kod {
    font-weight: 600;
    color: #333;
    font-family: "Consolas", monospace;
    white-space: nowrap;
}
.siparis-detay-ad {
    color: #444;
}
.siparis-detay-isk {
    color: #f0ad4e;
    font-weight: 600;
}
.siparis-detay-net {
    font-weight: 700;
    color: #337ab7;
}
.siparis-detay-birim {
    color: #888;
    font-size: 11px;
    margin-left: 2px;
}
.siparis-detay-kalan {
    color: #d9534f;
    font-weight: 600;
}
.siparis-detay-tutar {
    font-weight: 700;
    color: #5cb85c;
}

.siparis-detay-table tfoot td {
    background: linear-gradient(135deg, #202020 0%, #2a2a2a 100%);
    color: #fff;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    border: none;
}
.siparis-detay-tfoot-lbl {
    text-align: right;
    letter-spacing: 0.5px;
}
.siparis-detay-tfoot-val {
    text-align: right;
    color: #fff;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

/* Footer / aksiyon */
.siparis-detay-actions {
    padding: 14px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e3e7;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.siparis-detay-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s;
}
.siparis-detay-btn-close {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}
.siparis-detay-btn-close:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════════
   EKSTRE — Özet Kartları + Gün Rozetleri + Satır Aksiyon Butonları
   ════════════════════════════════════════════════════════════════════ */

.ekstre-ozet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.ekstre-ozet-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f3;
    border-left: 4px solid #ccc;
    transition: transform 0.15s, box-shadow 0.15s;
}
.ekstre-ozet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.ekstre-ozet-card-info { border-left-color: #337ab7; }
.ekstre-ozet-card-danger { border-left-color: #C90000; }
.ekstre-ozet-card-success { border-left-color: #5cb85c; }
.ekstre-ozet-card-dark { border-left-color: #202020; background: linear-gradient(135deg, #202020 0%, #2a2a2a 100%); color: #fff; }
.ekstre-ozet-card-dark .ekstre-ozet-lbl { color: #d0d0d0; }

.ekstre-ozet-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ekstre-ozet-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ekstre-ozet-val {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ekstre-ozet-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #999;
    font-weight: 600;
}

/* Gün rozetleri */
.ekstre-gun-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    min-width: 34px;
    text-align: center;
}
.ekstre-gun-danger { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.ekstre-gun-warning { background: #fff3cd; color: #664d03; border: 1px solid #ffecb5; }
.ekstre-gun-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.ekstre-gun-none { background: #f1f3f5; color: #6c757d; border: 1px solid #e9ecef; }

/* Satır içi aksiyon butonları (Detay / Yazdır) */
.ekstre-act-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s;
}
.ekstre-act-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ekstre-act-btn-detay {
    background: #eef4fc;
    color: #205a93;
    border: 1px solid #d4e3f5;
}
.ekstre-act-btn-detay:hover { background: #dbe9f8; transform: translateY(-1px); }
.ekstre-act-btn-print {
    background: #fdecec;
    color: #a71313;
    border: 1px solid #f6c9c9;
}
.ekstre-act-btn-print:hover { background: #f8d7d7; transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════════════
   ÖZEL TOOLTIP (data-tip="..." ile)
   Native title='...' yerine koyu pill tarzı ipucu.
   ════════════════════════════════════════════════════════════════════ */
.ekstre-tip {
    position: relative;
}
.ekstre-tip::before,
.ekstre-tip::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
}
.ekstre-tip::before {
    content: attr(data-tip);
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 4px);
    padding: 5px 10px;
    background: #202020;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    letter-spacing: 0.2px;
}
.ekstre-tip::after {
    content: "";
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translate(-50%, 4px);
    border: 5px solid transparent;
    border-top-color: #202020;
    z-index: 1000;
}
.ekstre-tip:hover::before,
.ekstre-tip:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ════════════════════════════════════════════════════════════════════
   EKSTRE — Toplam Şeridi (grid altında, mod'a göre değişen toplam)
   ════════════════════════════════════════════════════════════════════ */
.ekstre-toplam-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e4e7ea;
    background: #fff;
}

.ekstre-toplam-item {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 20px;
    border-right: 1px solid #eef0f3;
    min-width: 180px;
    background: #fafbfc;
    transition: background 0.15s;
}
.ekstre-toplam-item:last-child { border-right: none; }
.ekstre-toplam-item:hover { background: #f3f5f7; }

.ekstre-toplam-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
    margin-bottom: 4px;
}

.ekstre-toplam-val {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #202020;
}
.ekstre-toplam-val-danger { color: #C90000; }
.ekstre-toplam-val-success { color: #1e7e34; }

/* Main (vurgulu) toplam hücresi — koyu arka plan + büyük rakam */
.ekstre-toplam-item-main {
    background: linear-gradient(135deg, #202020 0%, #2a2a2a 100%);
    color: #fff;
    flex: 1.3 1 220px;
    padding: 14px 22px;
}
.ekstre-toplam-item-main:hover { background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%); }
.ekstre-toplam-item-main .ekstre-toplam-label { color: #d0d0d0; }
.ekstre-toplam-item-main .ekstre-toplam-val-main {
    font-size: 22px;
    color: #fff;
}

/* Vadesi Geçmiş / Kapanmamış modda kırmızı aksan */
.ekstre-toplam-bar-danger .ekstre-toplam-item-main {
    background: linear-gradient(135deg, #a00000 0%, #C90000 100%);
}
.ekstre-toplam-bar-danger .ekstre-toplam-item-main:hover {
    background: linear-gradient(135deg, #8b0000 0%, #b30000 100%);
}


/* ════════════════════════════════════════════════════════════════════
   EKSTRE DETAY DIALOG
   Fatura kalem tablosu / Çek detay tablosu (modal dialog içinde).
   ════════════════════════════════════════════════════════════════════ */

.ekstre-detay-modal .rz-dialog-titlebar {
    background: linear-gradient(135deg, #202020 0%, #2a2a2a 100%) !important;
    color: #fff !important;
    border-bottom: 2px solid #C90000 !important;
}
.ekstre-detay-modal .rz-dialog-titlebar .rz-dialog-title { color: #fff !important; font-weight: 700 !important; }
.ekstre-detay-modal .rz-dialog-titlebar-close { color: #fff !important; }
.ekstre-detay-modal .rz-dialog-content { padding: 0 !important; }

.ekstre-detay-dialog {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333;
}

.ekstre-detay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
    border-bottom: 1px solid #e0e3e7;
}
.ekstre-detay-header-left {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.ekstre-detay-evrak-wrap,
.ekstre-detay-belge-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ekstre-detay-evrak-lbl,
.ekstre-detay-belge-lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.ekstre-detay-evrak-val {
    font-size: 15px;
    font-weight: 700;
    color: #C90000;
    font-family: "Consolas", monospace;
}
.ekstre-detay-belge-val {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: "Consolas", monospace;
}
.ekstre-detay-header-right {
    display: flex;
    align-items: center;
}
.ekstre-detay-tarih {
    background: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e3e7;
}

.ekstre-detay-musteri {
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ekstre-detay-musteri-kod {
    font-weight: 700;
    color: #333;
    font-family: "Consolas", monospace;
}
.ekstre-detay-musteri-sep {
    color: #bbb;
    margin: 0 6px;
}
.ekstre-detay-musteri-ad {
    color: #555;
}

.ekstre-detay-body {
    background: #fff;
    max-height: 62vh;
    overflow: auto;
}
.ekstre-detay-loading,
.ekstre-detay-empty {
    padding: 60px 20px;
    text-align: center;
    color: #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.ekstre-detay-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.ekstre-detay-table thead th {
    background: #202020;
    color: #fff;
    padding: 10px 8px;
    font-weight: 600;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 2;
}
.ekstre-detay-table thead th.right { text-align: right; }
.ekstre-detay-table tbody td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.ekstre-detay-table tbody td.right { text-align: right; font-variant-numeric: tabular-nums; }
.ekstre-detay-table tbody tr:hover td { background: #fafafa; }

.ekstre-detay-sira {
    text-align: center;
    color: #aaa;
    width: 40px;
    font-weight: 600;
}
.ekstre-detay-kod {
    font-weight: 600;
    color: #333;
    font-family: "Consolas", monospace;
    white-space: nowrap;
}
.ekstre-detay-ad {
    color: #444;
}
.ekstre-detay-isk {
    color: #f0ad4e;
    font-weight: 600;
}
.ekstre-detay-net {
    font-weight: 700;
    color: #337ab7;
}
.ekstre-detay-tutar {
    font-weight: 700;
    color: #5cb85c;
}

.ekstre-detay-table tfoot td {
    background: linear-gradient(135deg, #202020 0%, #2a2a2a 100%);
    color: #fff;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    border: none;
}
.ekstre-detay-tfoot-lbl {
    text-align: right;
    letter-spacing: 0.5px;
}
.ekstre-detay-tfoot-val {
    text-align: right;
    color: #fff;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.ekstre-detay-actions {
    padding: 14px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e3e7;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.ekstre-detay-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s;
}
.ekstre-detay-btn-close {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}
.ekstre-detay-btn-close:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════════
   TAHSİLAT DETAY KARTI (Mail Order / KKT)
   MOR ve KKT evrakları için Detay dialogunda kullanılan kart layout'u.
   ════════════════════════════════════════════════════════════════════ */

.tahsilat-detay-card {
    padding: 16px 20px;
    background: #fff;
}

.tahsilat-detay-baslik {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #202020;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #fde9e9 100%);
    border-left: 3px solid #C90000;
    border-radius: 4px;
    margin-bottom: 14px;
}

.tahsilat-detay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.tahsilat-detay-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-bottom: 1px solid #eef1f4;
    border-right: 1px solid #eef1f4;
    min-height: 42px;
    align-items: center;
}

.tahsilat-detay-row:nth-child(2n) {
    border-right: none;
}

.tahsilat-detay-row:nth-last-child(-n+2) {
    /* son satırların alt çizgisi olmasın (tek sayıysa yalnızca son satırınki) */
}

.tahsilat-detay-row-wide {
    grid-column: 1 / -1;
    grid-template-columns: 150px 1fr;
    border-right: none;
}

.tahsilat-detay-lbl {
    padding: 10px 12px;
    background: #f8f9fa;
    border-right: 1px solid #eef1f4;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.tahsilat-detay-val {
    padding: 10px 14px;
    font-size: 14px;
    color: #202020;
    font-weight: 500;
}

.tahsilat-detay-kartno {
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 2px;
    font-size: 15px;
    font-weight: 600;
    color: #202020;
}

.tahsilat-detay-tutar-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #202020 0%, #2a2a2a 100%);
    border-radius: 6px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.tahsilat-detay-tutar-lbl {
    font-size: 13px;
    font-weight: 600;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tahsilat-detay-tutar-val {
    font-size: 22px;
    font-weight: 700;
    color: #ff5555;
    letter-spacing: 0.5px;
}

@media (max-width: 720px) {
    .tahsilat-detay-grid {
        grid-template-columns: 1fr;
    }
    .tahsilat-detay-row {
        border-right: none;
    }
}

/* ════════════════════════════════════════════════════════════════════
   FATURA PDF DIALOG
   PDF önizleme popup'ı (base64 <object> + İndir butonu).
   ════════════════════════════════════════════════════════════════════ */

.fatura-pdf-modal .rz-dialog-titlebar {
    background: linear-gradient(135deg, #202020 0%, #2a2a2a 100%) !important;
    color: #fff !important;
    border-bottom: 2px solid #C90000 !important;
}
.fatura-pdf-modal .rz-dialog-titlebar .rz-dialog-title { color: #fff !important; font-weight: 700 !important; }
.fatura-pdf-modal .rz-dialog-titlebar-close { color: #fff !important; }
.fatura-pdf-modal .rz-dialog-content { padding: 0 !important; height: calc(100% - 50px); }

.fatura-pdf-dialog {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fatura-pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
    border-bottom: 1px solid #e0e3e7;
    flex-shrink: 0;
}
.fatura-pdf-toolbar-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.fatura-pdf-toolbar-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
.fatura-pdf-toolbar-evrak {
    font-size: 13px;
    font-weight: 700;
    color: #C90000;
    font-family: "Consolas", monospace;
    margin-left: 8px;
    padding: 2px 10px;
    background: #fff;
    border: 1px solid #f5c2c7;
    border-radius: 12px;
}
.fatura-pdf-toolbar-belge {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    font-family: "Consolas", monospace;
    margin-left: 6px;
    padding: 2px 10px;
    background: #fff;
    border: 1px solid #e0e3e7;
    border-radius: 12px;
}
.fatura-pdf-toolbar-actions {
    display: flex;
    gap: 8px;
}

.fatura-pdf-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    text-decoration: none;
}
.fatura-pdf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fatura-pdf-btn-download {
    background: #C90000;
    color: #fff;
}
.fatura-pdf-btn-download:hover:not(:disabled) {
    background: #a00000;
    color: #fff;
    transform: translateY(-1px);
}
.fatura-pdf-btn-close {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}
.fatura-pdf-btn-close:hover { background: #e8e8e8; }

.fatura-pdf-viewer {
    flex: 1;
    background: #525659;
    overflow: auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 400px;
}
.fatura-pdf-object {
    width: 100%;
    height: 100%;
    min-height: 700px;
    border: none;
    background: #fff;
}
.fatura-pdf-loading,
.fatura-pdf-error {
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 14px;
    width: 100%;
}
.fatura-pdf-error { color: #ffd0d0; }
.fatura-pdf-fallback {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
    color: #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* ════════════════════════════════════════════════════════════════════
   /odeme — Sanal POS & Nakit Tahsilat
   ════════════════════════════════════════════════════════════════════ */

/* Özet kartlar (4 kart grid) */
.odeme-ozet-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px 0 18px;
}
.odeme-ozet-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 4px solid #ccc;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.odeme-ozet-card-pos { border-left-color: #4CAF50; }
.odeme-ozet-card-nakit { border-left-color: #2196F3; }
.odeme-ozet-card-count { border-left-color: #FF9800; }
.odeme-ozet-card-total { border-left-color: #C90000; }

.odeme-ozet-card-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.odeme-ozet-card-val {
    font-size: 18px;
    font-weight: 700;
    color: #202020;
    font-variant-numeric: tabular-nums;
}
.odeme-ozet-card-sub {
    font-size: 11px;
    color: #666;
}

@media (max-width: 900px) {
    .odeme-ozet-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .odeme-ozet-cards { grid-template-columns: 1fr; }
}

/* Filtre barı */
.odeme-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 12px;
}
.odeme-filter-bar label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.odeme-filter-spacer { flex: 1 1 auto; }

/* Durum badge */
.odeme-kart-durum-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Arama: Filtre + Reklam yan yana grid ──────────── */
.arama-filter-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1.4fr);
    gap: 14px;
    margin-bottom: 12px;
}
.arama-filter-card { display: flex; flex-direction: column; }
@media (max-width: 1024px) {
    .arama-filter-grid { grid-template-columns: 1fr; }
}

/* Filtre kartı içindeki 2-sütun düzen: sol input + sağ checkbox grid */
.arama-filter-rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
}
.arama-chk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    padding: 4px 6px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    min-height: 36px;
}
.arama-chk-grid-single { grid-template-columns: 1fr; }
.arama-chk-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    user-select: none;
    padding: 2px 0;
}
.arama-chk-cell span { line-height: 1; }
@media (max-width: 720px) {
    .arama-filter-rows { grid-template-columns: 1fr; }
}

/* ── Reklam Carousel ────────────────────────────────── */
.reklam-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.reklam-carousel-empty {
    background: #f5f5f5;
    color: #999;
    display: flex; align-items: center; justify-content: center;
}
.reklam-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.reklam-slide.aktif {
    opacity: 1;
    pointer-events: auto;
}
.reklam-slide img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.reklam-placeholder {
    color: #fff;
    text-align: center;
    width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.reklam-dots {
    position: absolute;
    bottom: 10px; left: 0; right: 0;
    display: flex; gap: 6px;
    justify-content: center;
    z-index: 2;
}
.reklam-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(0,0,0,0.2);
}
.reklam-dot:hover { background: rgba(255,255,255,0.75); transform: scale(1.15); }
.reklam-dot.aktif { background: #C90000; border-color: rgba(255,255,255,0.7); }

/* Carousel ileri / geri okları — hover'da görünür */
.reklam-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    backdrop-filter: blur(2px);
    user-select: none;
    padding: 0;
}
.reklam-arrow span {
    display: block;
    margin-top: -3px;          /* ‹ / › glyph optik merkezleme */
    font-weight: 600;
}
.reklam-arrow-prev { left: 12px; }
.reklam-arrow-next { right: 12px; }

/* Carousel'in üzerine gelince oklar görünür */
.reklam-carousel:hover .reklam-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.reklam-arrow:hover {
    background: rgba(201, 0, 0, 0.85);   /* marka kırmızısı */
    transform: translateY(-50%) scale(1.08);
}
.reklam-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Dokunmatik cihazlar — hover yok, oklar her zaman yarı şeffaf görünsün */
@media (hover: none) {
    .reklam-arrow {
        opacity: 0.85;
        transform: translateY(-50%) scale(1);
    }
}

/* ── Müşteri Detay Paneli (topbar) ──────────────────── */
.musteri-detay-panel {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}
.m-detay-card {
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 220px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.m-detay-card-info { border-left: 3px solid #1976d2; }
.m-detay-card-odeme { border-left: 3px solid #C90000; }
.m-detay-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    line-height: 1.3;
    color: #444;
}
.m-detay-row-strong { font-weight: 700; color: #1a237e; font-size: 12px; }
.m-detay-icon { width: 16px; text-align: center; font-size: 12px; opacity: 0.85; }
.m-detay-lbl {
    color: #888;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 78px;
}
.m-detay-row-strong .m-detay-lbl { color: #1976d2; }
.m-detay-card-odeme .m-detay-row-strong .m-detay-lbl { color: #C90000; }
.m-detay-val {
    font-weight: 600;
    color: #222;
    margin-left: auto;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}
.m-detay-bakiye { font-weight: 800; font-family: 'Consolas', monospace; }
.m-detay-bakiye.negatif { color: #C90000; }
.m-detay-bakiye.pozitif { color: #2e7d32; }

@media (max-width: 1100px) {
    .musteri-detay-panel { display: none; }
}

/* ── Grid başlıkları kırpılmasın, 2 satır olsun ─────── */
.legacy-grid thead th,
.legacy-grid thead th *,
.legacy-grid .rz-column-title,
.legacy-grid .rz-column-title-content,
.legacy-grid .rz-grid-table thead .rz-cell-data,
.legacy-grid .rz-text-truncate,
.legacy-grid thead .rz-text-truncate {
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    line-height: 1.2 !important;
    word-wrap: break-word;
    word-break: break-word;
}
.legacy-grid thead th { vertical-align: middle; padding-top: 6px; padding-bottom: 6px; }
.legacy-grid thead .rz-column-title { display: block; }

/* ── Sütun başlığı: letter-stacking (dikey yığılma) önle ────────────────
   "Stok Açıklaması" gibi başlıklar dar ekranda harf-harf bölünmemesi için
   kısa kelime sınırında bölünsün, harf düzeyinde değil. */
.legacy-grid thead .col-stok-aciklamasi .rz-column-title-content,
.legacy-grid thead .col-stok-aciklamasi .rz-cell-data {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}
/* Stok Açıklaması sütunu çok dar olmasın → minimum genişlik */
.legacy-grid thead th.col-stok-aciklamasi,
.legacy-grid tbody td.col-stok-aciklamasi {
    min-width: 180px;
}

/* ── Kısaltılmış sütun başlıkları (Birim→Br, Koli→Kl, Bakiye→Bk) ────────
   Geniş ekranda tam isim, dar ekranda kısa form. Aynı zamanda kısa kalsın. */
.legacy-grid thead th.col-abbr .rz-column-title-content,
.legacy-grid thead th.col-abbr .rz-cell-data {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

/* Koli sütunu küçük, sadece 3-4 basamak değer alır → tabular-nums ile hizalı */
.legacy-grid td .rz-cell-data {
    font-variant-numeric: tabular-nums;
}

/* ── Sola hizalı sütun başlığı (Radzen TextAlign sadece hücreye uygulanıyor,
       header için ayrıca zorlamak gerekiyor) ─── */
.legacy-grid thead th.col-left,
.legacy-grid thead th.col-left .rz-column-title,
.legacy-grid thead th.col-left .rz-column-title-content,
.legacy-grid thead th.col-left .rz-cell-data {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Tooltip — native tarayıcı tooltip'i kullanılıyor (title attribute).
   Modern özel tooltip pozisyon sorunları yüzünden geri alındı. */

/* Tablet ve daha küçük ekranlarda kısaltmaları göster */
@media (max-width: 1100px) {
    .legacy-grid thead th.col-birim .rz-column-title-content,
    .legacy-grid thead th.col-koli .rz-column-title-content,
    .legacy-grid thead th.col-bakiye .rz-column-title-content {
        font-size: 0;
    }
    .legacy-grid thead th.col-birim .rz-column-title-content::before {
        content: 'Br';
        font-size: 11.5px;
        letter-spacing: 0.4px;
    }
    .legacy-grid thead th.col-koli .rz-column-title-content::before {
        content: 'Kl';
        font-size: 11.5px;
        letter-spacing: 0.4px;
    }
    .legacy-grid thead th.col-bakiye .rz-column-title-content::before {
        content: 'Bk';
        font-size: 11.5px;
        letter-spacing: 0.4px;
    }
}

/* ── DP (Depo) yuvarlak dolgun durum rozeti ─────────── */
.dp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.25);
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
    user-select: none;
    cursor: help;
    transition: transform 0.15s ease;
    line-height: 1;
}
.dp-badge:hover { transform: scale(1.12); }
.dp-badge-on    { background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%); }
.dp-badge-off   { background: linear-gradient(135deg, #ef5350 0%, #c62828 100%); }
.dp-badge-yolda {
    background: linear-gradient(135deg, #ffb74d 0%, #ef6c00 100%);
    font-size: 13px;
    /* emoji içerirken text-shadow kapansın daha temiz görünür */
    text-shadow: none;
}

/* ── Alternatif Stok rozeti ─────────────────────────── */
.alt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(245,124,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.2);
    letter-spacing: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    cursor: help;
    user-select: none;
    transition: transform 0.15s ease;
}
.alt-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(245,124,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.3);
}

/* ── Sanal POS canlı kart önizlemesi ─────────────────── */
.kart-preview-wrap {
    perspective: 1200px;
    margin: 8px auto 18px;
    width: 320px;
    max-width: 100%;
}
.kart-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6 / 1;
    transition: transform 0.65s cubic-bezier(.4,.2,.2,1);
    transform-style: preserve-3d;
}
.kart-preview.flipped { transform: rotateY(180deg); }
.kart-face {
    position: absolute; inset: 0;
    border-radius: 14px;
    color: #fff;
    padding: 18px 22px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: linear-gradient(135deg, #2845e0 0%, #1a237e 100%);
    box-shadow: 0 10px 28px rgba(26,35,126,0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.kart-face::before {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}
.kart-face-back { transform: rotateY(180deg); }
.kart-face-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase;
}
.kart-brand {
    font-size: 18px; font-weight: 900; font-style: italic;
    text-transform: uppercase; letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.kart-chip {
    width: 38px; height: 28px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d979 50%, #b8860b 100%);
    border-radius: 5px;
    margin: 14px 0 10px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
    position: relative;
}
.kart-chip::after {
    content: ''; position: absolute; inset: 4px;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.18) 3px 4px);
    border-radius: 2px;
}
.kart-no {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 19px;
    letter-spacing: 2px;
    margin: 6px 0 16px;
    display: flex; gap: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.kart-no span { min-width: 56px; }
.kart-no span.dim { opacity: 0.55; }
.kart-bottom {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-top: auto; gap: 16px;
}
.kart-bottom .lbl {
    font-size: 8.5px; opacity: 0.7; letter-spacing: 1.2px;
    text-transform: uppercase; margin-bottom: 3px; display: block;
}
.kart-bottom .val {
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.5px;
    font-family: 'Courier New', 'Consolas', monospace;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 200px;
}
.kart-magstripe {
    width: calc(100% + 44px); height: 42px;
    background: #111; margin: 18px -22px 14px;
}
.kart-cvv-row { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.kart-cvv-lbl { font-size: 10px; letter-spacing: 1px; opacity: 0.85; }
.kart-cvv-box {
    background: #fff; color: #333;
    padding: 8px 12px; border-radius: 4px;
    font-family: 'Courier New', monospace; letter-spacing: 4px;
    margin-left: auto; min-width: 70px; text-align: center;
    font-size: 14px; font-weight: 700;
}
.odeme-kart-durum-basarili { background: #e8f5e9; color: #2e7d32; }
.odeme-kart-durum-hata { background: #ffebee; color: #c62828; }
.odeme-kart-durum-bekliyor { background: #fff3e0; color: #ef6c00; }

/* ──── Sanal POS Dialog ──── */
.odeme-kart-dialog {
    width: 100%;
    max-width: 540px;
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* Radzen dialog content wrapper da yatay taşmayı engellesin */
.odeme-kart-modal .rz-dialog-content,
.odeme-kart-modal .ui-dialog-content {
    overflow-x: hidden;
}

.odeme-kart-header,
.odeme-nakit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
    border-radius: 8px;
    margin-bottom: 14px;
}
.odeme-kart-title,
.odeme-nakit-title {
    font-size: 16px;
    font-weight: 700;
    color: #202020;
}
.odeme-kart-sub,
.odeme-nakit-sub {
    font-size: 12px;
    color: #666;
}

.odeme-kart-body,
.odeme-nakit-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.odeme-kart-row,
.odeme-nakit-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.odeme-kart-row > label,
.odeme-nakit-row > label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}
.odeme-kart-row-3,
.odeme-nakit-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.odeme-kart-row-3 > div > label,
.odeme-nakit-row-3 > div > label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

/* Büyük tutar alanı */
.odeme-kart-tutar input {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #202020 !important;
}

/* 4 segment kart no */
.odeme-kart-input-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}
.odeme-kart-input-group input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    padding: 10px 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #202020;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.odeme-kart-input-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.15);
}

.odeme-kart-banka {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 2px;
}

.odeme-kart-cvv {
    width: 100%;
    font-family: "Consolas", monospace;
    font-size: 18px;
    text-align: center;
    letter-spacing: 4px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.odeme-kart-error,
.odeme-nakit-error {
    background: #ffebee;
    color: #c62828;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    border-left: 3px solid #c62828;
}

.odeme-kart-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 13px;
    color: #1565c0;
}

.odeme-kart-actions,
.odeme-nakit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* Masked kart no grid'te monospace */
.odeme-kart-no-cell {
    font-family: "Consolas", "Courier New", monospace;
    letter-spacing: 1px;
    font-size: 13px;
}

/* ── Sepetim grid'inde tarih hücresi: gün üstte, saat altında ─────────── */
.tarih-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
}

.tarih-gun {
    font-size: 12px;
    color: #334155;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

.tarih-saat {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    margin-top: 1px;
}

/* ── Sepetim grid'inde miktar rozeti (salt-okunur, mavi gradient) ─────── */
.miktar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 30px;
    padding: 0 12px;
    background: linear-gradient(135deg, #1f5ac4 0%, #2980d9 50%, #4ba0e8 100%);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.4px;
    border-radius: 8px;
    box-shadow:
        0 2px 6px rgba(31, 90, 196, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════════════════════════════════════
   STOK ARAMA — MOBİL KART GÖRÜNÜMÜ
   Geniş ekran: tablo görünür, kartlar gizli
   ≤768px:      tablo gövdesi gizli (pager kalır), kartlar görünür
   ════════════════════════════════════════════════════════════════════════ */
.stok-cards-view {
    display: none;
}

@media (max-width: 768px) {
    /* Sadece "mobil karta çevir" işaretli gridlerin tablo gövdesini gizle.
       Pager (sayfalama) ve diğer gridler (OEM, Araç, Rakip) etkilenmesin. */
    .legacy-grid-mobil-karta-cevir .rz-grid-table,
    .legacy-grid-mobil-karta-cevir .rz-datatable {
        display: none !important;
    }
    /* Boş durumdaki "Aramak için..." mesajı tablosuz gösterilirken kontainer'ı küçült */
    .legacy-grid-mobil-karta-cevir .rz-data-grid-data {
        min-height: 0;
    }
    /* Kartlar görünür */
    .stok-cards-view {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px 4px 14px;
    }
}

.stok-cards-loading,
.stok-cards-empty {
    text-align: center;
    color: #888;
    padding: 40px 16px;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

/* ── Kart kabuğu ───────────────────────────────────────────────────── */
.stok-mobil-kart {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    align-items: stretch;
    position: relative;
}

.stok-mobil-kart:active {
    transform: scale(0.99);
}

.stok-mobil-kart.selected {
    border-color: var(--vardar-blue);
    box-shadow: 0 0 0 2px rgba(31, 90, 196, 0.15), 0 4px 14px rgba(0, 0, 0, 0.08);
}

.stok-mobil-kart.kampanyali {
    background: linear-gradient(135deg, #fffbe6 0%, #fff 60%);
    border-color: #ffd970;
}

/* ── Resim ─────────────────────────────────────────────────────────── */
.kart-resim {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.kart-resim img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.kart-kmp-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.45);
}

/* ── Bilgi (orta) ──────────────────────────────────────────────────── */
.kart-bilgi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.kart-kod-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kart-kod {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kart-alt-badge {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.kart-aciklama {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.kart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.kart-marka {
    font-size: 11px;
    color: #2193b0;
    font-weight: 700;
    background: #e0f2fe;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.kart-chip {
    font-size: 10.5px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* ── Aksiyon (sağ) ─────────────────────────────────────────────────── */
.kart-aksiyon {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    min-width: 100px;
}

.kart-stok-durum {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kart-bakiye {
    font-size: 11px;
    font-weight: 700;
}

.kart-bakiye.var { color: #059669; }
.kart-bakiye.yok { color: #dc2626; }

.kart-fiyatlar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    cursor: help;
}

.kart-fiyat-liste {
    font-size: 10.5px;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: rgba(217, 83, 79, 0.5);
    font-variant-numeric: tabular-nums;
}

.kart-fiyat-net {
    font-size: 14px;
    font-weight: 800;
    color: var(--vardar-blue);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}

.kart-sepet-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(17, 153, 142, 0.30);
    transition: transform 0.12s, box-shadow 0.12s;
    letter-spacing: 0.2px;
}

.kart-sepet-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 3px rgba(17, 153, 142, 0.30);
}

/* Çok dar (≤380px): "Sepete" yazısını gizle, sadece ikon */
@media (max-width: 380px) {
    .stok-mobil-kart {
        grid-template-columns: 72px 1fr auto;
        padding: 8px;
    }
    .kart-resim {
        width: 72px;
        height: 72px;
    }
    .kart-aksiyon { min-width: 78px; }
    .kart-sepet-text { display: none; }
    .kart-sepet-btn { padding: 6px 8px; }
    .kart-fiyat-net { font-size: 13px; }
}

/* ════════════════════════════════════════════════════════════════════════
   SEPETIM — MOBİL KART
   ════════════════════════════════════════════════════════════════════════ */
.sepet-mobil-kart {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    gap: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sepet-mobil-kart.secili {
    border-color: var(--vardar-blue);
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 60%);
    box-shadow: 0 0 0 2px rgba(31, 90, 196, 0.12), 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Üst: resim + bilgi */
.sepet-mobil-kart .kart-top {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: flex-start;
}

.sepet-mobil-kart .kart-resim {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.sepet-mobil-kart .kart-resim img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.sepet-mobil-kart .kart-bilgi {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sepet-mobil-kart .kart-kod-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sepet-mobil-kart .kart-kod {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sepet-mobil-kart .kart-durum {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.sepet-mobil-kart .durum-var { background: #d1fae5; color: #059669; }
.sepet-mobil-kart .durum-az { background: #fef3c7; color: #d97706; }
.sepet-mobil-kart .durum-yok { background: #fee2e2; color: #dc2626; }

.sepet-mobil-kart .kart-aciklama {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.sepet-mobil-kart .kart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.sepet-mobil-kart .kart-marka {
    font-size: 11px;
    color: #2193b0;
    font-weight: 700;
    background: #e0f2fe;
    padding: 2px 7px;
    border-radius: 4px;
}

.sepet-mobil-kart .kart-chip {
    font-size: 10.5px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Orta: Miktar + Fiyatlar */
.sepet-mobil-kart .kart-orta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
}

.sepet-mobil-kart .kart-miktar-grup {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.sepet-mobil-kart .kart-miktar-btn {
    width: 32px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
    transition: background 0.15s;
}

.sepet-mobil-kart .kart-miktar-btn:hover:not(:disabled) {
    background: #e2e8f0;
}

.sepet-mobil-kart .kart-miktar-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.sepet-mobil-kart .kart-miktar-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    -moz-appearance: textfield;
}
.sepet-mobil-kart .kart-miktar-input::-webkit-outer-spin-button,
.sepet-mobil-kart .kart-miktar-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sepet-mobil-kart .kart-fiyatlar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    cursor: help;
}

.sepet-mobil-kart .kart-fiyat-liste {
    font-size: 10.5px;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: rgba(217, 83, 79, 0.5);
    font-variant-numeric: tabular-nums;
}

.sepet-mobil-kart .kart-fiyat-net {
    font-size: 13px;
    font-weight: 700;
    color: var(--vardar-blue);
    font-variant-numeric: tabular-nums;
}

.sepet-mobil-kart .kart-fiyat-toplam {
    font-size: 11.5px;
    color: #475569;
    margin-top: 2px;
}

.sepet-mobil-kart .kart-fiyat-toplam b {
    color: #059669;
    font-size: 13px;
    font-weight: 800;
}

/* Alt: Aksiyonlar */
.sepet-mobil-kart .kart-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.sepet-mobil-kart .kart-secim {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.sepet-mobil-kart .kart-secim input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--vardar-blue);
    cursor: pointer;
}

.sepet-mobil-kart .kart-secim span {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.sepet-mobil-kart .kart-aksiyon-btns {
    display: flex;
    gap: 6px;
}

.sepet-mobil-kart .kart-aksiyon-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.sepet-mobil-kart .kart-aksiyon-btn.duzelt {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(33, 147, 176, 0.30);
}

.sepet-mobil-kart .kart-aksiyon-btn.sil {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(238, 9, 121, 0.30);
    padding: 6px 10px;
}

.sepet-mobil-kart .kart-aksiyon-btn:hover {
    filter: brightness(1.05);
}

.sepet-mobil-kart .kart-aksiyon-btn:active {
    transform: scale(0.96);
}

.sepet-mobil-kart .kart-tarih {
    font-size: 10.5px;
    color: #94a3b8;
    text-align: right;
    padding-top: 2px;
    border-top: 1px solid #f5f5f5;
    margin-top: -4px;
}

/* ════════════════════════════════════════════════════════════════════
   NAVMENU TEMALARI — admin tarafından SirketAyarlari'ndan seçilir
   Her tema sidebar'ın arka plan, metin, hover, accent renklerini değiştirir.
   ════════════════════════════════════════════════════════════════════ */

/* dark = varsayılan (zaten :root'ta tanımlı) — class belirtilmesi gerekirse override yok */

.b2b-layout.theme-blue .b2b-sidebar {
    background: linear-gradient(180deg, #1e3c72 0%, #0f2042 100%);
    color: #e8eef9;
}
.b2b-layout.theme-blue .b2b-nav li a:hover,
.b2b-layout.theme-blue .b2b-nav li a.active {
    background: rgba(59, 130, 246, 0.30);
    border-left-color: #3b82f6;
}
.b2b-layout.theme-blue .sidebar-collapse-btn {
    color: #1e3c72; border-color: #c7d2fe;
}
.b2b-layout.theme-blue .sidebar-collapse-btn:hover {
    background: #1e3c72; color: #fff;
}
.b2b-layout.theme-blue .b2b-nav .badge-count { background: #3b82f6; }
.b2b-layout.theme-blue .sidebar-admin-link a { background: #3b82f6; }

.b2b-layout.theme-midnight .b2b-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
}
.b2b-layout.theme-midnight .b2b-nav li a:hover,
.b2b-layout.theme-midnight .b2b-nav li a.active {
    background: rgba(6, 182, 212, 0.25);
    border-left-color: #06b6d4;
}
.b2b-layout.theme-midnight .sidebar-collapse-btn {
    color: #0f172a; border-color: #cbd5e1;
}
.b2b-layout.theme-midnight .sidebar-collapse-btn:hover {
    background: #06b6d4; color: #fff;
}
.b2b-layout.theme-midnight .b2b-nav .badge-count { background: #06b6d4; }
.b2b-layout.theme-midnight .sidebar-admin-link a { background: #06b6d4; }

.b2b-layout.theme-forest .b2b-sidebar {
    background: linear-gradient(180deg, #14532d 0%, #052e16 100%);
    color: #d1fae5;
}
.b2b-layout.theme-forest .b2b-nav li a:hover,
.b2b-layout.theme-forest .b2b-nav li a.active {
    background: rgba(34, 197, 94, 0.25);
    border-left-color: #22c55e;
}
.b2b-layout.theme-forest .sidebar-collapse-btn {
    color: #14532d; border-color: #bbf7d0;
}
.b2b-layout.theme-forest .sidebar-collapse-btn:hover {
    background: #22c55e; color: #fff;
}
.b2b-layout.theme-forest .b2b-nav .badge-count { background: #22c55e; }
.b2b-layout.theme-forest .sidebar-admin-link a { background: #22c55e; }

.b2b-layout.theme-plum .b2b-sidebar {
    background: linear-gradient(180deg, #4c1d95 0%, #2e1065 100%);
    color: #f3e8ff;
}
.b2b-layout.theme-plum .b2b-nav li a:hover,
.b2b-layout.theme-plum .b2b-nav li a.active {
    background: rgba(217, 70, 239, 0.30);
    border-left-color: #d946ef;
}
.b2b-layout.theme-plum .sidebar-collapse-btn {
    color: #4c1d95; border-color: #e9d5ff;
}
.b2b-layout.theme-plum .sidebar-collapse-btn:hover {
    background: #d946ef; color: #fff;
}
.b2b-layout.theme-plum .b2b-nav .badge-count { background: #d946ef; }
.b2b-layout.theme-plum .sidebar-admin-link a { background: #d946ef; }

.b2b-layout.theme-sunset .b2b-sidebar {
    background: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
    color: #fee2e2;
}
.b2b-layout.theme-sunset .b2b-nav li a:hover,
.b2b-layout.theme-sunset .b2b-nav li a.active {
    background: rgba(245, 158, 11, 0.30);
    border-left-color: #f59e0b;
}
.b2b-layout.theme-sunset .sidebar-collapse-btn {
    color: #7f1d1d; border-color: #fecaca;
}
.b2b-layout.theme-sunset .sidebar-collapse-btn:hover {
    background: #f59e0b; color: #fff;
}
.b2b-layout.theme-sunset .b2b-nav .badge-count { background: #f59e0b; }
.b2b-layout.theme-sunset .sidebar-admin-link a { background: #f59e0b; }

.b2b-layout.theme-light .b2b-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    color: #334155;
    border-right: 1px solid #e2e8f0;
}
.b2b-layout.theme-light .b2b-sidebar .sidebar-brand {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}
.b2b-layout.theme-light .brand-title { color: #1f5ac4; text-shadow: none; }
.b2b-layout.theme-light .b2b-nav li a {
    color: #334155;
}
.b2b-layout.theme-light .b2b-nav li a:hover,
.b2b-layout.theme-light .b2b-nav li a.active {
    background: rgba(31, 90, 196, 0.10);
    border-left-color: #1f5ac4;
    color: #1f5ac4;
}
.b2b-layout.theme-light .sidebar-collapse-btn {
    color: #1f5ac4; border-color: #cbd5e1;
}
.b2b-layout.theme-light .sidebar-collapse-btn:hover {
    background: #1f5ac4; color: #fff;
}
.b2b-layout.theme-light .b2b-nav .badge-count { background: #1f5ac4; }
.b2b-layout.theme-light .sidebar-user { color: #64748b; border-top-color: #e2e8f0; }
.b2b-layout.theme-light .sidebar-logout { color: #64748b; }
.b2b-layout.theme-light .sidebar-logout:hover { color: #1f5ac4; }
.b2b-layout.theme-light .sidebar-admin-link a { background: #1f5ac4; }

.b2b-layout.theme-sand .b2b-sidebar {
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
    color: #3f2e0c;
    border-right: 1px solid #d4b675;
}
.b2b-layout.theme-sand .b2b-sidebar .sidebar-brand {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid #d4b675;
}
.b2b-layout.theme-sand .brand-title { color: #b45309; text-shadow: none; }
.b2b-layout.theme-sand .b2b-nav li a {
    color: #3f2e0c;
}
.b2b-layout.theme-sand .b2b-nav li a:hover,
.b2b-layout.theme-sand .b2b-nav li a.active {
    background: rgba(180, 83, 9, 0.18);
    border-left-color: #b45309;
    color: #92400e;
}
.b2b-layout.theme-sand .sidebar-collapse-btn {
    color: #b45309; border-color: #d4b675;
}
.b2b-layout.theme-sand .sidebar-collapse-btn:hover {
    background: #b45309; color: #fff;
}
.b2b-layout.theme-sand .b2b-nav .badge-count { background: #b45309; }
.b2b-layout.theme-sand .sidebar-user { color: #6b5621; border-top-color: #d4b675; }
.b2b-layout.theme-sand .sidebar-logout { color: #6b5621; }
.b2b-layout.theme-sand .sidebar-admin-link a { background: #b45309; }

/* ── Okyanus: derin deniz turkuaz + cyan accent ───────────────────── */
.b2b-layout.theme-ocean .b2b-sidebar {
    background: linear-gradient(180deg, #0c4a6e 0%, #082f49 100%);
    color: #cffafe;
}
.b2b-layout.theme-ocean .b2b-nav li a:hover,
.b2b-layout.theme-ocean .b2b-nav li a.active {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.25) 0%, rgba(34, 211, 238, 0.05) 100%);
    border-left-color: #22d3ee;
    color: #fff;
    box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.15);
}
.b2b-layout.theme-ocean .sidebar-collapse-btn {
    color: #0c4a6e; border-color: #a5f3fc;
}
.b2b-layout.theme-ocean .sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%); color: #fff;
}
.b2b-layout.theme-ocean .b2b-nav .badge-count {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.40);
}
.b2b-layout.theme-ocean .sidebar-admin-link a {
    background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
}
.b2b-layout.theme-ocean .brand-title { color: #cffafe; }

/* ── Aurora: kuzey ışıkları (pembe → mor → mavi) gradient ──────────── */
.b2b-layout.theme-aurora .b2b-sidebar {
    background: linear-gradient(180deg, #5b21b6 0%, #be185d 50%, #1d4ed8 100%);
    color: #fce7f3;
    position: relative;
}
.b2b-layout.theme-aurora .b2b-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(244, 114, 182, 0.30) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.b2b-layout.theme-aurora .b2b-sidebar > * { position: relative; z-index: 1; }
.b2b-layout.theme-aurora .b2b-nav li a:hover,
.b2b-layout.theme-aurora .b2b-nav li a.active {
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.30) 0%, rgba(99, 102, 241, 0.20) 100%);
    border-left-color: #f472b6;
    color: #fff;
    backdrop-filter: blur(4px);
}
.b2b-layout.theme-aurora .sidebar-collapse-btn {
    color: #be185d; border-color: #fbcfe8;
}
.b2b-layout.theme-aurora .sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #f472b6 0%, #a855f7 100%); color: #fff;
}
.b2b-layout.theme-aurora .b2b-nav .badge-count {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    box-shadow: 0 0 12px rgba(244, 114, 182, 0.50);
}
.b2b-layout.theme-aurora .sidebar-admin-link a {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%);
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.40);
}
.b2b-layout.theme-aurora .brand-title { color: #fce7f3; text-shadow: 0 0 8px rgba(244, 114, 182, 0.50); }

/* ── Carbon: sleek koyu gri + elektrik mavi (gaming hissi) ─────────── */
.b2b-layout.theme-carbon .b2b-sidebar {
    background: linear-gradient(180deg, #27272a 0%, #09090b 100%);
    color: #e4e4e7;
    border-right: 1px solid #18181b;
}
.b2b-layout.theme-carbon .b2b-sidebar .sidebar-brand {
    background: linear-gradient(180deg, #1f1f23 0%, #0a0a0c 100%);
    border-bottom: 1px solid #27272a;
}
.b2b-layout.theme-carbon .b2b-nav li a:hover,
.b2b-layout.theme-carbon .b2b-nav li a.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.18) 0%, transparent 100%);
    border-left-color: #38bdf8;
    color: #e0f2fe;
    box-shadow: inset 2px 0 0 #38bdf8, 0 0 24px rgba(56, 189, 248, 0.15) inset;
}
.b2b-layout.theme-carbon .sidebar-collapse-btn {
    background: #18181b; color: #38bdf8; border-color: #27272a;
}
.b2b-layout.theme-carbon .sidebar-collapse-btn:hover {
    background: #38bdf8; color: #09090b;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
}
.b2b-layout.theme-carbon .b2b-nav .badge-count {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}
.b2b-layout.theme-carbon .sidebar-admin-link a {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.40);
}
.b2b-layout.theme-carbon .brand-title { color: #e4e4e7; letter-spacing: 2px; }

/* ── Gül: asil bordo-gül + altın aksan ────────────────────────────── */
.b2b-layout.theme-rose .b2b-sidebar {
    background: linear-gradient(180deg, #9f1239 0%, #500724 100%);
    color: #fce7f3;
}
.b2b-layout.theme-rose .b2b-sidebar .sidebar-brand {
    background: linear-gradient(180deg, #881337 0%, #6b0e2e 100%);
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}
.b2b-layout.theme-rose .b2b-nav li a:hover,
.b2b-layout.theme-rose .b2b-nav li a.active {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.25) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-left-color: #fbbf24;
    color: #fff;
}
.b2b-layout.theme-rose .sidebar-collapse-btn {
    color: #9f1239; border-color: #fed7e2;
    background: #fff8f1;
}
.b2b-layout.theme-rose .sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #500724;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45);
}
.b2b-layout.theme-rose .b2b-nav .badge-count {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #500724;
    font-weight: 800;
}
.b2b-layout.theme-rose .sidebar-admin-link a {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #500724;
    font-weight: 700;
}
.b2b-layout.theme-rose .brand-title { color: #fbbf24; letter-spacing: 1.8px; }

/* ── Royal: kraliyet lacivert + altın aksanlar ─────────────────────── */
.b2b-layout.theme-royal .b2b-sidebar {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f0c29 100%);
    color: #e0e7ff;
}
.b2b-layout.theme-royal .b2b-sidebar .sidebar-brand {
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}
.b2b-layout.theme-royal .b2b-nav li a:hover,
.b2b-layout.theme-royal .b2b-nav li a.active {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.20) 0%, rgba(251, 191, 36, 0.04) 100%);
    border-left-color: #fbbf24;
    color: #fef3c7;
}
.b2b-layout.theme-royal .sidebar-collapse-btn {
    color: #1e1b4b; border-color: #fde68a; background: #fffbeb;
}
.b2b-layout.theme-royal .sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); color: #1e1b4b;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.50);
}
.b2b-layout.theme-royal .b2b-nav .badge-count {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e1b4b; font-weight: 800;
}
.b2b-layout.theme-royal .sidebar-admin-link a {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #1e1b4b;
}
.b2b-layout.theme-royal .brand-title { color: #fbbf24; letter-spacing: 2.2px; text-shadow: 0 0 6px rgba(251, 191, 36, 0.40); }

/* ── Mint: taze nane yeşili + krem ─────────────────────────────────── */
.b2b-layout.theme-mint .b2b-sidebar {
    background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
    color: #d1fae5;
}
.b2b-layout.theme-mint .b2b-nav li a:hover,
.b2b-layout.theme-mint .b2b-nav li a.active {
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.25) 0%, rgba(52, 211, 153, 0.04) 100%);
    border-left-color: #34d399;
    color: #ecfdf5;
}
.b2b-layout.theme-mint .sidebar-collapse-btn {
    color: #064e3b; border-color: #a7f3d0;
}
.b2b-layout.theme-mint .sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%); color: #022c22;
}
.b2b-layout.theme-mint .b2b-nav .badge-count {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
}
.b2b-layout.theme-mint .sidebar-admin-link a {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}
.b2b-layout.theme-mint .brand-title { color: #d1fae5; }

/* ── Coral: mercan + krem ton ──────────────────────────────────────── */
.b2b-layout.theme-coral .b2b-sidebar {
    background: linear-gradient(180deg, #9a3412 0%, #431407 100%);
    color: #ffedd5;
}
.b2b-layout.theme-coral .b2b-nav li a:hover,
.b2b-layout.theme-coral .b2b-nav li a.active {
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.30) 0%, rgba(251, 146, 60, 0.05) 100%);
    border-left-color: #fb923c;
    color: #fff;
}
.b2b-layout.theme-coral .sidebar-collapse-btn {
    color: #9a3412; border-color: #fed7aa;
}
.b2b-layout.theme-coral .sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); color: #fff;
}
.b2b-layout.theme-coral .b2b-nav .badge-count {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
}
.b2b-layout.theme-coral .sidebar-admin-link a {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
}
.b2b-layout.theme-coral .brand-title { color: #ffedd5; }

/* ── Jade: derin yeşim + altın ─────────────────────────────────────── */
.b2b-layout.theme-jade .b2b-sidebar {
    background: linear-gradient(180deg, #134e4a 0%, #042f2e 100%);
    color: #ccfbf1;
}
.b2b-layout.theme-jade .b2b-sidebar .sidebar-brand {
    border-bottom: 1px solid rgba(251, 191, 36, 0.20);
}
.b2b-layout.theme-jade .b2b-nav li a:hover,
.b2b-layout.theme-jade .b2b-nav li a.active {
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.22) 0%, rgba(251, 191, 36, 0.08) 100%);
    border-left-color: #fbbf24;
    color: #f0fdfa;
}
.b2b-layout.theme-jade .sidebar-collapse-btn {
    color: #134e4a; border-color: #99f6e4;
}
.b2b-layout.theme-jade .sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #fbbf24 100%); color: #042f2e;
}
.b2b-layout.theme-jade .b2b-nav .badge-count {
    background: linear-gradient(135deg, #fbbf24 0%, #14b8a6 100%);
    color: #042f2e; font-weight: 800;
}
.b2b-layout.theme-jade .sidebar-admin-link a {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}
.b2b-layout.theme-jade .brand-title { color: #fbbf24; letter-spacing: 1.8px; }

/* ════════════════════════════════════════════════════════════════════
   YATAY MENÜ YÜKSELİKLİĞİ — sadece layout-topbar için anlamlı
   3 seçenek: Normal (52px), Orta (68px), Yüksek (88px)
   ════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    /* Normal — varsayılan, layout-topbar'da zaten 52px */

    .b2b-layout.layout-topbar.height-orta .b2b-sidebar {
        height: 68px !important;
        min-height: 68px !important;
    }
    .b2b-layout.layout-topbar.height-orta .b2b-nav li a {
        height: 68px;
        font-size: 14px;
        padding: 0 18px;
        gap: 10px;
    }
    .b2b-layout.layout-topbar.height-orta .b2b-nav-icon {
        font-size: 19px;
    }
    .b2b-layout.layout-topbar.height-orta .sidebar-admin-link a {
        height: 44px;
        margin: 12px 0;
        padding: 0 18px;
        font-size: 13px;
    }
    .b2b-layout.layout-topbar.height-orta .b2b-nav li a.active,
    .b2b-layout.layout-topbar.height-orta .b2b-nav li a:hover {
        border-bottom-width: 4px;
    }

    .b2b-layout.layout-topbar.height-yuksek .b2b-sidebar {
        height: 88px !important;
        min-height: 88px !important;
    }
    .b2b-layout.layout-topbar.height-yuksek .b2b-nav li a {
        height: 88px;
        font-size: 14.5px;
        padding: 0 22px;
        gap: 12px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
    .b2b-layout.layout-topbar.height-yuksek .b2b-nav-icon {
        font-size: 24px;
        line-height: 1;
    }
    .b2b-layout.layout-topbar.height-yuksek .b2b-nav-text {
        font-size: 11.5px;
        letter-spacing: 0.4px;
        font-weight: 600;
        text-transform: uppercase;
    }
    .b2b-layout.layout-topbar.height-yuksek .sidebar-admin-link a {
        height: 56px;
        margin: 16px 0;
        padding: 0 20px;
        font-size: 13px;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
    }
    .b2b-layout.layout-topbar.height-yuksek .b2b-nav .badge-count {
        position: absolute;
        top: 12px;
        right: 8px;
        margin-left: 0;
    }
    .b2b-layout.layout-topbar.height-yuksek .b2b-nav li a {
        position: relative;
    }
    .b2b-layout.layout-topbar.height-yuksek .b2b-nav li a.active,
    .b2b-layout.layout-topbar.height-yuksek .b2b-nav li a:hover {
        border-bottom-width: 4px;
    }
    .b2b-layout.layout-topbar.height-yuksek .sidebar-user {
        font-size: 12px;
    }
}

/* ════════════════════════════════════════════════════════════════════
   LAYOUT: TOPBAR — yatay menü çubuğu (üstte tam genişlik)
   Stratejisi: flex-direction:column + display:contents ile DOM'u
   yeniden sıralayıp doğal akışta üstten alta dizeriz:
       1. b2b-topbar (müşteri info / döviz / widget) ← order:1
       2. b2b-sidebar (yatay nav menü)              ← order:2
       3. b2b-content (sayfa içeriği)               ← order:3
   ════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    .b2b-layout.layout-topbar {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    /* b2b-main'i flex container'dan çıkar; çocukları doğrudan layout'a aksın */
    .b2b-layout.layout-topbar .b2b-main {
        display: contents;
        margin-left: 0;
    }

    /* Topbar üstte, full genişlikte */
    .b2b-layout.layout-topbar .b2b-topbar {
        order: 1 !important;
        position: relative !important;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        z-index: 51;
    }

    /* Sidebar → yatay menü çubuğu (topbar altında) */
    .b2b-layout.layout-topbar .b2b-sidebar {
        order: 2 !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        flex-direction: row !important;
        z-index: 49;
        overflow: visible;
        transform: none !important;
    }

    /* Content en altta, kalan alanı kaplar */
    .b2b-layout.layout-topbar .b2b-content {
        order: 3 !important;
        flex: 1;
        padding: 20px;
    }

    .b2b-layout.layout-topbar .b2b-sidebar .sidebar-brand {
        display: none;
    }
    .b2b-layout.layout-topbar .sidebar-collapse-btn {
        display: none;
    }

    .b2b-layout.layout-topbar .b2b-nav {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        flex: 1;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
    }
    .b2b-layout.layout-topbar .b2b-nav::-webkit-scrollbar { height: 4px; }
    .b2b-layout.layout-topbar .b2b-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.20); border-radius: 2px; }

    .b2b-layout.layout-topbar .b2b-nav li { flex-shrink: 0; }
    .b2b-layout.layout-topbar .b2b-nav li a {
        padding: 0 16px;
        height: 52px;
        flex-direction: row;
        gap: 8px;
        font-size: 13px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    .b2b-layout.layout-topbar .b2b-nav li a:hover,
    .b2b-layout.layout-topbar .b2b-nav li a.active {
        border-left: none;
        border-bottom-color: var(--accent);
    }
    .b2b-layout.layout-topbar .b2b-nav-icon { font-size: 16px; }
    .b2b-layout.layout-topbar .b2b-nav .badge-count { margin-left: 4px; }

    /* Admin link + user — yatay menünün sağ tarafına */
    .b2b-layout.layout-topbar .sidebar-admin-link {
        padding: 0;
        display: flex;
        align-items: center;
        margin-right: 8px;
    }
    .b2b-layout.layout-topbar .sidebar-admin-link a {
        height: 36px;
        padding: 0 14px;
        margin: 8px 0;
    }
    .b2b-layout.layout-topbar .sidebar-user {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 0 14px;
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.15);
        font-size: 11px;
    }
    .b2b-layout.layout-topbar .sidebar-user-info { max-width: 180px; }
    .b2b-layout.layout-topbar .sidebar-logout { padding: 4px 8px; }

    /* Light/Sand temaları — kenar çizgisi alta */
    .b2b-layout.layout-topbar.theme-light .b2b-sidebar,
    .b2b-layout.layout-topbar.theme-sand .b2b-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}
