/* ==========================================================================
   THREE-T ŞİRKETİM ERP — TEMA DEĞİŞKENLERİ, RENKLER & TİPOGRAFİ
   css/theme_variables.css
   ========================================================================== */

:root {
    /* Default: Dark Charcoal (Gece Siyahı / Koyu Antrasit) */
    --bg-base: radial-gradient(circle at 50% 40%, #6b7280 0%, #4b5563 50%, #374151 80%, #1f2937 100%);
    --bg-surface: rgba(20, 20, 24, 0.7);
    --bg-surface-hover: rgba(40, 40, 45, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --accent-primary: #9ca3af;
    --accent-primary-hover: #6b7280;
    --accent-ai: #d1d5db;
    --warning: #f59e0b;
    --success: #10b981;
    --border-color: rgba(156, 163, 175, 0.3);
    --sidebar-width: 260px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(156, 163, 175, 0.4);

    /* Graph Colors - Harmonious Fintech Theme */
    --chart-income: var(--accent-primary);
    /* Kayan Efekt Rengi (Gümüş) */
    --chart-expense: #e05260;
    --chart-expense-grad: linear-gradient(180deg, rgba(224, 82, 96, 0.85), rgba(224, 82, 96, 0.15));
    --expense-color: #e05260;
    --danger: #e05260;

    /* Splash Screen Vars */
    --splash-bg: radial-gradient(circle at 50% 40%, #6b7280 0%, #4b5563 50%, #374151 80%, #1f2937 100%);
    --splash-text-gradient: linear-gradient(to right, #ffffff, #9ca3af, #ffffff);

    --bg-modal-solid: #374151;
}

[data-theme="fume"] {
    /* Füme (Metalik Duman Titanyumu - Doygun & Pürüzsüz) */
    --bg-base: radial-gradient(ellipse at 50% 45%, #a2a8b1 0%, #949aa4 50%, #868c96 80%, #777e89 100%);
    --bg-surface: rgba(255, 255, 255, 0.45);
    --bg-surface-hover: rgba(255, 255, 255, 0.65);
    --text-primary: #111827;
    --text-secondary: #374151;
    --accent-primary: #4b5563;
    --accent-primary-hover: #1f2937;
    --accent-ai: #1f2937;
    --border-color: rgba(255, 255, 255, 0.55);
    --shadow-glow: 0 0 15px rgba(255, 255, 255, 0.8);

    /* Graph Colors - Harmonious Fintech Theme */
    --chart-income: #9ca3af;
    /* Kayan Efekt Rengi (Gümüş) */
    --chart-expense: #8a5059;
    --chart-expense-grad: linear-gradient(180deg, rgba(138, 80, 89, 0.9), rgba(138, 80, 89, 0.15));
    --expense-color: #8a5059;
    --danger: #8a5059;

    --splash-bg: radial-gradient(ellipse at 50% 45%, #a2a8b1 0%, #949aa4 50%, #868c96 80%, #777e89 100%);
    --splash-text-gradient: linear-gradient(to right, #4b5563, #4b5563, #4b5563);
    --bg-modal-solid: #6b7280;
    --success: #059669;
}

[data-theme="fume"] .theme-panel {
    --border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="fume"] .sidebar,
[data-theme="fume"] .right-sidebar {
    background-color: rgba(185, 192, 202, 0.65) !important;
    backdrop-filter: blur(25px);
    border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="fume"] .nav-links li:hover {
    background-color: transparent;
}

[data-theme="fume"] #wallet-info-panel {
    background-color: var(--bg-modal-solid) !important;
    border-left: 1px solid var(--border-color) !important;
}

[data-theme="fume"] #wallet-info-panel h2,
[data-theme="fume"] #wallet-info-panel #close-wallet-btn {
    color: #ffffff !important;
}

/* Cüzdanım Kartlarının Statik Gri ve Okunaklı Yapısı */
.wallet-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

[data-theme="fume"] .wallet-info-card {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg-base);
    background-color: #1f2937;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    background-color: #1f2937;
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Add backdrop filter to app-container to make it glassmorphic over the background */
.app-container {
    display: flex;
    height: 100vh;
    background: transparent;
}

/* Edge Glow Effects (ADA-CHAT style) */
.app-container::before,
.app-container::after {
    content: '';
    position: fixed;
    top: 0;
    width: 6px;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(180deg, var(--accent-primary), #ffffff, var(--accent-primary));
    background-size: 100% 200%;
    animation: edgeSweep 4s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 15px var(--accent-primary);
}

.app-container::before {
    left: 0;
}

.app-container::after {
    right: 0;
}

[data-theme="fume"] .app-container::before,
[data-theme="fume"] .app-container::after {
    background: #e5e7eb !important;
    background-image: none !important;
    box-shadow: 0 0 10px rgba(229, 231, 235, 0.5) !important;
    animation: none !important;
}

@keyframes edgeSweep {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 200%;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: var(--bg-surface);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

#announcementSidebar {
    width: 380px !important;
    min-width: 380px !important;
    max-width: 90vw !important;
}

#announcementSidebar.collapsed {
    margin-left: -400px !important;
}

/* Right Sidebar */
.right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 1000;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: var(--bg-surface);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.right-sidebar.collapsed {
    margin-right: calc(-1 * var(--sidebar-width));
}

.logo-area {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-ai));
    border-radius: 8px;
    box-shadow: var(--shadow-glow);
}

.logo-area h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
}


@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.nav-links {
    list-style: none;
    padding: 20px 20px 0px 20px;
    flex: 1;
    overflow-y: auto;
}

.nav-links::-webkit-scrollbar {
    width: 6px;
}

.nav-links::-webkit-scrollbar-track {
    background: transparent;
}

.nav-links::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.nav-links li {
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-links li:hover {
    color: var(--text-primary);
}

.nav-links li.active {
    color: var(--text-primary);
}

.user-profile {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.info {
    display: flex;
    flex-direction: column;
}

.info .name {
    font-weight: 500;
    font-size: 0.95rem;
}

.info .role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 32px 32px 100px 32px;
    /* Alt boşluk artırıldı (Yüzen barın arkasında kalmaması için) */
    background: transparent;
}

/* Custom Scrollbar - 20px Belirgin Kurumsal Füme & Çerçeveli Ray */
.custom-scrollbar::-webkit-scrollbar {
    width: 20px;
    height: 12px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #64748b;
    background-color: #64748b;
    border-radius: 10px;
    border: 3px solid #0f172a;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    background-color: #94a3b8;
}

/* Modaller içerisindeki tüm scrollbar'lı panellerin maksimum yüksekliğini 70vh (RFQ modalı ile aynı) yap */
[id*="modal"] .theme-panel.custom-scrollbar,
[id*="Modal"] .theme-panel.custom-scrollbar,
[id*="modal"] .modal-content.custom-scrollbar,
[id*="Modal"] .modal-content.custom-scrollbar,
[id*="modal"] .full-modal-content.custom-scrollbar,
[id*="Modal"] .full-modal-content.custom-scrollbar,
.modal-overlay .theme-panel.custom-scrollbar {
    max-height: 70vh !important;
    overflow-y: auto !important;
}

/* Global & Tabulator Sleek Scrollbars */
::-webkit-scrollbar,
.tabulator-tableholder::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
    width: 20px;
    height: 12px;
}

::-webkit-scrollbar-track,
.tabulator-tableholder::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb,
.tabulator-tableholder::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #64748b;
    background-color: #64748b;
    border-radius: 10px;
    border: 3px solid #0f172a;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover,
.tabulator-tableholder::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    background-color: #94a3b8;
}

::-webkit-scrollbar-button,
.tabulator-tableholder::-webkit-scrollbar-button,
.custom-scrollbar::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.top-header-nav {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.top-header-spacer {
    flex: 1;
}

.top-header-nav button svg {
    pointer-events: none;
}

.top-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#welcomeText {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    white-space: nowrap;
    z-index: 10;
}

[data-theme="fume"] #welcomeText {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
}

[data-theme="fume"] .top-header h2,
[data-theme="fume"] .top-header h1,
[data-theme="fume"] .top-header span,
[data-theme="fume"] #module-view-title,
[data-theme="fume"] #module-view-title span,
[data-theme="fume"] h1,
[data-theme="fume"] h2,
[data-theme="fume"] h3,
[data-theme="fume"] h4,
[data-theme="fume"] .text-glow-animated {
    text-shadow: none !important;
    filter: none !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-switch {
    display: flex;
    gap: 6px;
    background: var(--bg-surface);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 5px 8px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
    line-height: 1.2;
}

.theme-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.ai-status {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 0.85rem;
}

#bottomFloatingBar {
    transition: opacity 0.25s ease !important;
}

/* 1. Aşama: Sola Kayma */
#bottomFloatingBar.slide-left {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
    left: 24px !important;
    transform: translateX(0) !important;
}

/* 2. Aşama: Sağa Doğru Uzama (Genişleme) */
#bottomFloatingBar.expand-full {
    width: calc(100vw - 48px) !important;
}





/* ==========================================================================
   THREE-T ŞİRKETİM ERP — BİLEŞENLER, FORM ELEMANLARI, MODALLAR & ANİMASYONLAR
   css/components_ui.css
   ========================================================================== */

/* --- Duyuru Bildirim (Notification) Animasyonları --- */
@keyframes shakeBell {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    70% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

#announcementSidebarToggle.has-notification svg {
    animation: shakeBell 1.5s infinite;
    color: var(--accent-primary);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    /* red */
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    display: none;
    z-index: 10;
}

#announcementSidebarToggle.has-notification .notification-dot {
    display: block;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--accent-ai);
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-ai);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#companyProfileBtn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    /* Disable hover effect */
}

/* Dashboard Grid & Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.col-span-2 {
    grid-column: span 2;
}

.centered-dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 40px;
}

.centered-ai {
    width: 100%;
    max-width: 720px;
    transition: all 0.4s ease;
}

.recent-activity-widget {
    width: 100%;
    max-width: 720px;
}

.widget {
    background-color: var(--bg-surface);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.widget-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    /* color kaldırıldı, parlamayı .text-glow-animated sağlayacak */
}

.badge {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.widget-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.widget-body.p-0 {
    padding: 0;
}

.mt-1 {
    margin-top: 16px;
}

.text-warning {
    color: var(--warning);
}

/* Stats Row */
.stat-row {
    display: flex;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-item .value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Activity List */
.activity-list {
    list-style: none;
}

.activity-list li {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-list .time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-right: 12px;
    display: inline-block;
    width: 40px;
}

/* AI Widget Specifics */
.ai-widget {
    border: 1px solid var(--accent-primary);
}

.ai-chat-box {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.15);
    /* Daha şeffaf ve şık zemin */
    border-radius: 16px;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease, padding 0.5s ease;
}

.ai-chat-box.active {
    max-height: 280px;
    /* Geçmiş uzadıkça çok aşağı sarkmaması için kısıtlandı */
    opacity: 1;
    padding: 16px;
}

.ai-chat-box::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-box::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-box::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.ai-message {
    background-color: rgba(0, 0, 0, 0.2);
    /* Daha şeffaf zemin */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: 20px 20px 20px 4px;
    /* Yumuşatılmış modern çerçeveler */
    font-size: 0.95rem;
    align-self: flex-start;
    max-width: 85%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-message {
    background-color: rgba(255, 255, 255, 0.05);
    /* Daha şeffaf zemin */
    padding: 14px 18px;
    border-radius: 20px 20px 4px 20px;
    /* Yumuşatılmış modern çerçeveler */
    font-size: 0.95rem;
    align-self: flex-end;
    max-width: 80%;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ai-input-wrapper {
    display: flex;
    align-items: center;
    border-radius: 40px;
    padding: 6px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-top: 20px;
    position: relative;
    border: 3px solid transparent;
    background-image:
        linear-gradient(rgba(20, 20, 24, 0.95), rgba(20, 20, 24, 0.95)),
        linear-gradient(90deg, var(--accent-primary), #ffffff, var(--accent-primary), #ffffff, var(--accent-primary));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 200% 100%;
    animation: boxSweep 8s linear infinite;
    transition: all 0.3s ease;
}

[data-theme="fume"] .ai-input-wrapper {
    background-image:
        linear-gradient(rgba(15, 15, 18, 0.95), rgba(15, 15, 18, 0.95)),
        linear-gradient(90deg, #cbd5e1, #ffffff, #cbd5e1, #ffffff, #cbd5e1);
}

.ai-input-wrapper:focus-within {
    box-shadow: 0 0 20px rgba(156, 163, 175, 0.5);
}

[data-theme="fume"] .ai-input-wrapper:focus-within {
    box-shadow: 0 0 20px rgba(107, 114, 128, 0.5);
}

@keyframes boxSweep {
    0% {
        background-position: 0% 0%, 0% 0%;
    }

    100% {
        background-position: 0% 0%, 200% 0%;
    }
}

.ai-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 16px;
    font-size: 1.05rem;
    outline: none;
    font-family: inherit;
    z-index: 2;
}

#ai-send-btn {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#ai-send-btn svg {
    margin-right: 2px;
    margin-top: 2px;
}

#ai-send-btn:hover {
    background-color: var(--accent-primary-hover);
    transform: scale(1.05);
}

/* --- Splash Screen, Lock Screen, Onboarding & Modals Taskbar Prevention --- */
#splashScreen:not([style*="display: none"]):not([style*="opacity: 0"])~#bottomFloatingBar,
#unlockModal:not([style*="display: none"])~#bottomFloatingBar,
#unlockModal[style*="display: flex"]~#bottomFloatingBar,
html:not(.user-is-logged-in) #bottomFloatingBar,
body:has(#licenseChoiceModal:not([style*="display: none"])) #bottomFloatingBar,
body:has(#newTenantModal:not([style*="display: none"])) #bottomFloatingBar,
body:has(#tenantSelectionModal:not([style*="display: none"])) #bottomFloatingBar,
body:has(#subscriptionLockModal:not([style*="display: none"])) #bottomFloatingBar,
body:has(#mainAppContainer[style*="display: none"]) #bottomFloatingBar {
    display: none !important;
}

/* Görev Çubuğu (bottomFloatingBar) yetkiler ve buton düzeni hazır olmadan (.dock-ready yokken) asla render edilmez */
#bottomFloatingBar:not(.dock-ready) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html:has(#splashScreen),
body:has(#splashScreen) {
    overflow: hidden !important;
}

.splash-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--splash-bg);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: splashContainerAutoFade 6.8s forwards;
    pointer-events: auto;
    will-change: opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes splashContainerAutoFade {

    0%,
    82% {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    98% {
        opacity: 0;
        visibility: visible;
        pointer-events: none;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: none !important;
    }
}

.splash-logo {
    font-family: 'Cinzel', serif !important;
    font-size: clamp(2.4rem, 10vw, 7.5rem);
    font-weight: 600;
    letter-spacing: clamp(4px, 1.8vw, 15px);
    background-image: var(--splash-text-gradient);
    background-size: 100% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    text-align: center;
    max-width: 90vw;
    box-sizing: border-box;
    white-space: nowrap;
    position: relative;
    user-select: none;
    /* Saf Kesintisiz GPU Akışı:
       Tek bir kesintisiz bezier eğrisi ile 0'dan 100'e pürüzsüz büyüme.
       Ara hız kesintileri (inflection points) ve çift bezier bükülmeleri yok. */
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0) scale(0.91);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
    animation: splashLogoCinematic 3.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tek parça, kesintisiz, saf matematiksel eğri - Sıfır duraksama */
@keyframes splashLogoCinematic {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.91);
    }

    18% {
        opacity: 1;
    }

    82% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(1.045);
    }
}

/* Modal Settings (Re-used basic animations) */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Full Screen Modal */
.full-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.full-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 95%;
    height: 90%;
    max-width: 1400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.full-modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.full-modal-header h2 {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-ai));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.full-modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.full-modal-body::-webkit-scrollbar {
    width: 8px;
}

.full-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.full-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.module-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(183, 110, 121, 0.1);
    border-color: var(--accent-primary);
}

[data-theme="fume"] .module-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(107, 114, 128, 0.1);
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.module-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.module-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
}

.module-card .btn-secondary {
    margin-top: auto;
    width: 100%;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* --- Login Screen Animations & Tooltip --- */
.login-animated-border {
    position: relative;
    border: 3px solid transparent;
    background-image:
        linear-gradient(var(--bg-surface), var(--bg-surface)),
        linear-gradient(90deg, var(--accent-primary), var(--accent-ai), var(--accent-primary), var(--accent-ai), var(--accent-primary));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 200% 100%;
    animation: boxSweep 10s linear infinite;
}

[data-theme="fume"] .login-animated-border {
    background-image:
        linear-gradient(var(--bg-modal-solid), var(--bg-modal-solid)),
        linear-gradient(90deg, #cbd5e1, #ffffff, #cbd5e1, #ffffff, #cbd5e1);
}

.login-animated-text {
    background-image: linear-gradient(to right, var(--accent-primary), var(--accent-ai), var(--accent-primary));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
}

[data-theme="fume"] .login-animated-text {
    background: none !important;
    background-image: none !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    animation: none !important;
}

/* ===== GİRİŞ EKRANI İNPUT OPTİMİZASYONU ===== */
/* Input alanlarını ayrı bir GPU katmanına koyarak animasyonlardan bağımsız hâle getir.
   Bu sayede modal açılır açılmaz tıklanabilir/yazılabilir olurlar. */
#unlockModal input,
#unlockModal button,
#newTenantModal input,
#newTenantModal button,
#newTenantModal textarea,
#company-profile-modal input,
#company-profile-modal button,
#company-profile-modal textarea {
    transform: translateZ(0);
    isolation: isolate;
    /* Animasyon bitmeden önce de tıklanabilir olmaları için pointer-events'i zorla */
    pointer-events: auto !important;
}

/* Güvenli arkaplanı azalt ve tam ekran kimlik doğrulama modallarını dikey/yatay tam ortala */
#unlockModal.modal-overlay,
#registerModal.modal-overlay,
#cpaRegisterModal.modal-overlay,
#forgotPasswordModal.modal-overlay {
    padding: 24px !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    animation: fadeIn 0.1s ease !important;
}

#registerModal .modal-content,
#cpaRegisterModal .modal-content,
#forgotPasswordModal .modal-content {
    max-height: calc(100vh - 48px) !important;
    margin: auto !important;
}

/* Modal kartı animasyonunu sadeleştir */
#unlockModal .modal-content {
    animation: slideUp 0.1s ease-out !important;
}


.login-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: help;
    color: var(--warning);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.login-info-tooltip:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.login-info-tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 10;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 400;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    pointer-events: none;
}

.login-info-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
}

.login-info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Sidebar Module Animated Text */
.animated-text {
    font-size: 1.05rem;
    font-weight: 500;
    background: linear-gradient(to right, #ffffff, #9ca3af, #ffffff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 5s linear infinite;
    letter-spacing: 0.5px;
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="fume"] .animated-text {
    background: none !important;
    background-image: none !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    animation: none !important;
}

/* Small Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 90px; /* Görev çubuğuna (dock) sızmayı önleyen güvenli alt boşluk */
    box-sizing: border-box;
    animation: fadeIn 0.15s ease;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-height: calc(100vh - 190px); /* Görev çubuğuna taşmayan maksimum tavan */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li {
    display: flex;
    justify-content: space-between;
}

.delete-module-btn {
    opacity: 0;
    transition: all 0.2s;
}

.nav-links li:hover .delete-module-btn {
    opacity: 1;
}

.delete-module-btn:hover {
    color: #ef4444 !important;
    transform: scale(1.2);
}

/* Modal Settings */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.btn-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-group label {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.gradient-text-animated,
.text-glow-animated {
    background-image: linear-gradient(135deg, var(--accent-primary), #ffffff, var(--accent-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textSweep 6s linear infinite;
}

[data-theme="fume"] .gradient-text-animated,
[data-theme="fume"] .text-glow-animated {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #111827 !important;
    color: #111827 !important;
    animation: none !important;
}

@keyframes textSweep {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* --- TASARIM SİSTEMİ STANDART SINIFLARI --- */
.theme-panel {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: none !important;
    color: var(--text-primary) !important;
}

[data-theme="fume"] .theme-panel:not(.border-glow-animated) {
    background-color: #88909c !important;
}

[data-theme="fume"] .theme-panel:not(.border-glow-animated):not(.pkg-card) {
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

[data-theme="fume"] .pkg-card {
    --border-color: rgba(255, 255, 255, 0.45);
}

.text-glow-animated {
    background-image: linear-gradient(to right, #ffffff, #9ca3af, #ffffff) !important;
    background-size: 200% auto !important;
    color: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    animation: shine 5s linear infinite !important;
}

[data-theme="fume"] .text-glow-animated {
    background: none !important;
    background-image: none !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    animation: none !important;
}

.border-glow-animated,
.nav-links li {
    position: relative;
    border: 2px solid transparent !important;
    background-image:
        linear-gradient(var(--bg-modal-solid, #1e293b), var(--bg-modal-solid, #1e293b)),
        linear-gradient(90deg, var(--accent-primary, #3b82f6), #ffffff, var(--accent-primary, #3b82f6), #ffffff, var(--accent-primary, #3b82f6)) !important;
    background-origin: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    background-size: 100% 100%, 200% 100% !important;
    animation: boxSweep 4s linear infinite !important;
    will-change: background-position;
}

/* Fume teması: tüm border-glow-animated elementleri için (Gece Siyahı ile birebir aynı açık gümüş + parlak beyaz çerçeve) */
[data-theme="fume"] .border-glow-animated,
[data-theme="fume"] .nav-links li {
    border: 2px solid transparent !important;
    background-color: transparent !important;
    background-image:
        linear-gradient(#88909c, #88909c),
        linear-gradient(90deg, #cbd5e1, #ffffff, #cbd5e1, #ffffff, #cbd5e1) !important;
    background-origin: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    background-size: 100% 100%, 200% 100% !important;
    animation: boxSweep 4s linear infinite !important;
    box-shadow: none !important;
}

[data-theme="fume"] .border-glow-animated:hover,
[data-theme="fume"] .nav-links li:hover {
    border: 2px solid transparent !important;
    background-color: transparent !important;
    background-image:
        linear-gradient(#7c8592, #7c8592),
        linear-gradient(90deg, #e2e8f0, #ffffff, #e2e8f0, #ffffff, #e2e8f0) !important;
    background-origin: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    background-size: 100% 100%, 200% 100% !important;
}

[data-theme="fume"] #wallet-info-panel .border-glow-animated {
    border: 2px solid transparent !important;
    background-color: transparent !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
        linear-gradient(90deg, #cbd5e1, #ffffff, #cbd5e1, #ffffff, #cbd5e1) !important;
    background-origin: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    background-size: 100% 100%, 200% 100% !important;
    animation: boxSweep 4s linear infinite !important;
}

/* --- Sohbet Paneli ve Alt Bar için Özel Kayan Renk Efekti --- */
#bottomFloatingBar {
    border: 2px solid transparent !important;
    background-color: var(--bg-surface) !important;
    background-image: none !important;
    animation: none !important;
}

#bottomFloatingBar.solid-mode {
    background-color: var(--bg-modal-solid) !important;
    backdrop-filter: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
}

#bottomFloatingBar::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-ai), var(--accent-primary), var(--accent-ai), var(--accent-primary));
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: boxSweep 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

[data-theme="fume"] #bottomFloatingBar {
    background-color: rgba(185, 192, 202, 0.75) !important;
    backdrop-filter: blur(25px) !important;
    border: 2px solid transparent !important;
    background-image: none !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
    animation: none !important;
    transition: none !important;
}

[data-theme="fume"] #bottomFloatingBar.solid-mode {
    background-color: #cbd5e1 !important;
    backdrop-filter: none !important;
    border: 2px solid transparent !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
    animation: none !important;
    transition: none !important;
}

[data-theme="fume"] #bottomFloatingBar::before {
    display: block !important;
    background-image:
        linear-gradient(transparent, transparent),
        linear-gradient(90deg, #cbd5e1, #ffffff, #cbd5e1, #ffffff, #cbd5e1) !important;
    background-size: 100% 100%, 200% 100% !important;
    animation: boxSweep 8s linear infinite !important;
}

#internalChatWindow {
    border: 2px solid transparent !important;
    background-image:
        linear-gradient(#1f2937, #1f2937),
        linear-gradient(90deg, var(--accent-primary), var(--accent-ai), var(--accent-primary), var(--accent-ai), var(--accent-primary)) !important;
    background-origin: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    background-size: 100% 100%, 200% 100% !important;
    animation: boxSweep 8s linear infinite !important;
}

[data-theme="fume"] #internalChatWindow {
    border: 2px solid transparent !important;
    background-image:
        linear-gradient(#88909c, #88909c),
        linear-gradient(90deg, #cbd5e1, #ffffff, #cbd5e1, #ffffff, #cbd5e1) !important;
    background-origin: padding-box, border-box !important;
    background-clip: padding-box, border-box !important;
    background-size: 100% 100%, 200% 100% !important;
    animation: boxSweep 8s linear infinite !important;
}

#internalChatHistory {
    background: #1f2937;
    /* Gece siyahı varsayılan */
}


/* --- FORM ELEMANLARI STANDARDI --- */
.theme-input,
.form-control,
select.theme-input,
select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
    color-scheme: dark;
}

.theme-input:focus,
.form-control:focus,
select.theme-input:focus,
select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.25);
}

.theme-input option,
.form-control option,
select option,
.tabulator-cell select option {
    background-color: #111827 !important;
    color: #f3f4f6 !important;
    padding: 8px 12px;
}

.theme-input option:checked,
.form-control option:checked,
select option:checked,
.theme-input option:hover,
.form-control option:hover,
select option:hover {
    background-color: #4b5563 !important;
    color: #ffffff !important;
}

/* Füme Teması */
[data-theme="fume"] .theme-input,
[data-theme="fume"] .form-control,
[data-theme="fume"] select.theme-input,
[data-theme="fume"] select {
    color-scheme: light;
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="fume"] .theme-input:focus,
[data-theme="fume"] .form-control:focus,
[data-theme="fume"] select.theme-input:focus,
[data-theme="fume"] select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(75, 85, 99, 0.2);
}

[data-theme="fume"] .theme-input option,
[data-theme="fume"] select option,
[data-theme="fume"] .tabulator-cell select option {
    background-color: #f9fafb !important;
    color: #111827 !important;
}

[data-theme="fume"] .theme-input option:checked,
[data-theme="fume"] select option:checked,
[data-theme="fume"] .theme-input option:hover,
[data-theme="fume"] select option:hover {
    background-color: #e5e7eb !important;
    color: #111827 !important;
}

/* --- GENEL İŞLEMLER DROPDOWN MENÜLERİ STANDARDI (GECE SİYAHI) --- */
div[id*="-actions-menu"],
div[id$="-actions-menu"] {
    background-color: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(16px) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
}

div[id*="-actions-menu"] button,
div[id$="-actions-menu"] button {
    color: #f3f4f6 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background-color: transparent !important;
}

div[id*="-actions-menu"] button:hover,
div[id*="-actions-menu"] button:focus,
div[id*="-actions-menu"] button.active,
div[id$="-actions-menu"] button:hover,
div[id$="-actions-menu"] button:focus,
div[id$="-actions-menu"] button.active {
    background-color: rgba(156, 163, 175, 0.25) !important;
    color: #ffffff !important;
}

/* --- GENEL İŞLEMLER BUTONLARI STANDARDI (GECE SİYAHI & VARSAYILAN) --- */
button[id*="-actions-toggle"],
button[id$="-actions-toggle"],
button[id*="-bulk-actions-toggle"],
#btn-accounting-banks-actions-toggle,
#btn-accounting-expenses-actions-toggle,
#btn-accounting-income-actions-toggle {
    background-color: var(--accent-primary) !important;
    background: var(--accent-primary) !important;
    color: white !important;
    border: none !important;
}

button[id*="-actions-toggle"]:hover,
button[id$="-actions-toggle"]:hover,
button[id*="-bulk-actions-toggle"]:hover,
#btn-accounting-banks-actions-toggle:hover,
#btn-accounting-expenses-actions-toggle:hover,
#btn-accounting-income-actions-toggle:hover {
    background-color: var(--accent-primary-hover) !important;
    background: var(--accent-primary-hover) !important;
}

/* --- ÖZEL BİTİŞİK DROPDOWN MENÜLERİ STANDARDI (GECE SİYAHI & VARSAYILAN) --- */
.custom-dropdown-menu {
    background-color: var(--bg-surface) !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-top: none !important;
    backdrop-filter: blur(25px) !important;
    box-shadow: none !important;
}

.custom-dropdown-item {
    color: var(--text-primary) !important;
    padding: 5px 10px !important;
    font-size: 0.82rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.custom-dropdown-item:last-child {
    border-bottom: none !important;
}

.custom-dropdown-item:hover,
.custom-dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* Füme Temasında Özel Dropdown */
[data-theme="fume"] .custom-dropdown-menu {
    background-color: var(--bg-surface) !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-top: none !important;
    box-shadow: none !important;
}

[data-theme="fume"] .custom-dropdown-item {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="fume"] .custom-dropdown-item:hover,
[data-theme="fume"] .custom-dropdown-item.active {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-primary) !important;
}

/* --- TÜM İÇERİK, İŞLEMLER VE MODAL TUŞLARI BÜTÜNLÜĞÜ (FÜME TEMASI) --- */
[data-theme="fume"] .btn-primary:not(.border-glow-animated):not(.pkg-buy-btn):not(.pkg-card .btn-primary),
[data-theme="fume"] button.btn-primary:not(.border-glow-animated):not(.pkg-buy-btn):not(.pkg-card .btn-primary),
[data-theme="fume"] div[id*="-actions-menu"],
[data-theme="fume"] div[id$="-actions-menu"],
[data-theme="fume"] button[id*="-actions-toggle"]:not(.border-glow-animated),
[data-theme="fume"] button[id$="-actions-toggle"]:not(.border-glow-animated),
[data-theme="fume"] button[id*="-bulk-actions-toggle"]:not(.border-glow-animated),
[data-theme="fume"] #btn-accounting-banks-actions-toggle:not(.border-glow-animated),
[data-theme="fume"] #btn-accounting-expenses-actions-toggle:not(.border-glow-animated),
[data-theme="fume"] #btn-accounting-income-actions-toggle:not(.border-glow-animated),
[data-theme="fume"] [id*="modal"] .btn-primary:not(.border-glow-animated),
[data-theme="fume"] [id*="Modal"] .btn-primary:not(.border-glow-animated),
[data-theme="fume"] #btn-save-pricing,
[data-theme="fume"] #btn-sync-gib,
[data-theme="fume"] #btn-sync-einvoice,
[data-theme="fume"] #btn-add-advance {
    background-color: #4b5563 !important;
    background: #4b5563 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-theme="fume"] .btn-primary:not(.border-glow-animated):not(.pkg-buy-btn):not(.pkg-card .btn-primary):hover,
[data-theme="fume"] button.btn-primary:not(.border-glow-animated):not(.pkg-buy-btn):not(.pkg-card .btn-primary):hover,
[data-theme="fume"] button[id*="-actions-toggle"]:not(.border-glow-animated):hover,
[data-theme="fume"] button[id$="-actions-toggle"]:not(.border-glow-animated):hover,
[data-theme="fume"] button[id*="-bulk-actions-toggle"]:not(.border-glow-animated):hover,
[data-theme="fume"] #btn-accounting-banks-actions-toggle:hover,
[data-theme="fume"] #btn-accounting-expenses-actions-toggle:hover,
[data-theme="fume"] #btn-accounting-income-actions-toggle:hover,
[data-theme="fume"] [id*="modal"] .btn-primary:hover,
[data-theme="fume"] [id*="Modal"] .btn-primary:hover,
[data-theme="fume"] #btn-save-pricing:hover,
[data-theme="fume"] #btn-sync-gib:hover,
[data-theme="fume"] #btn-sync-einvoice:hover,
[data-theme="fume"] #btn-add-advance:hover {
    background-color: #374151 !important;
    background: #374151 !important;
}

[data-theme="fume"] .pkg-card .btn-primary:hover,
[data-theme="fume"] .pkg-buy-btn:hover {
    filter: brightness(1.08);
}

[data-theme="fume"] .pkg-card span[style*="padding: 4px 8px"],
[data-theme="fume"] .pkg-card span[style*="padding: 4px 10px"] {
    background-color: rgba(15, 23, 42, 0.45) !important;
}

[data-theme="fume"] #sidebarTerminalBtn,
[data-theme="fume"] #terminal-badge-label {
    color: #111827 !important;
}

[data-theme="fume"] div[id*="-actions-menu"] {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="fume"] div[id*="-actions-menu"] button,
[data-theme="fume"] div[id$="-actions-menu"] button {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="fume"] div[id*="-actions-menu"] button:hover,
[data-theme="fume"] div[id$="-actions-menu"] button:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
}


/* Sidebar Animated Outer Border (Masking Technique) */
.sidebar-glow-border {
    position: relative;
}

.sidebar-glow-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    /* Çerçeve kalınlığı */
    background-image:
        linear-gradient(transparent, transparent),
        linear-gradient(90deg, var(--accent-primary), var(--accent-ai), var(--accent-primary), var(--accent-ai), var(--accent-primary));
    background-size: 100% 100%, 200% 100%;
    animation: boxSweep 10s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}

[data-theme="fume"] .sidebar-glow-border::before {
    display: block !important;
    background-image:
        linear-gradient(transparent, transparent),
        linear-gradient(90deg, #cbd5e1, #ffffff, #cbd5e1, #ffffff, #cbd5e1) !important;
    background-size: 100% 100%, 200% 100% !important;
    animation: boxSweep 10s linear infinite !important;
}

/* --- Web OS Taskbar Compatibility --- */
div[style*="fixed"][style*="bottom: 0"] {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 4vh !important;
    padding-bottom: 80px !important;
    overflow-y: auto !important;
}

div[style*="fixed"]>.theme-panel {
    margin: auto !important;
    flex-shrink: 0 !important;
}

#bottomFloatingBar,
#internalChatWindow {
    z-index: 999999 !important;
}

/* Tabulator - Yatay Scroll Bar Kapatma */
#inventory-spreadsheet .tabulator-tableholder {
    overflow-x: auto !important;
}

/* Modern DataTree Toggle Icons */
.modern-tree-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.modern-tree-toggle.expand {
    background: linear-gradient(135deg, var(--accent-primary, #6366f1), var(--accent-secondary, #8b5cf6));
    color: white;
}

.modern-tree-toggle.expand:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.modern-tree-toggle.collapse {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.modern-tree-toggle.collapse:hover {
    transform: scale(1.15);
    background: rgba(255, 107, 107, 0.2);
}

[data-theme="fume"] .modern-tree-toggle.collapse {
    background: rgba(138, 80, 89, 0.12) !important;
    color: #8a5059 !important;
    border: 1px solid rgba(138, 80, 89, 0.3) !important;
}

[data-theme="fume"] .modern-tree-toggle.collapse:hover {
    background: rgba(138, 80, 89, 0.22) !important;
}

/* Tüm Uygulama Genelindeki Tablo İçi Tuşlar İçin Standart Boyutlandırma */
.tabulator-cell button {
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    height: auto !important;
}

.tabulator-cell button svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
}

/* Hide number input arrows globally */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}



[data-theme='fume'] #btn-add-request {
    color: var(--text-primary) !important;
}

[data-theme='fume'] #btn-confirm-inflow {
    color: var(--text-primary) !important;
}

[data-theme='fume'] #btn-add-product {
    color: var(--text-primary) !important;
}

[data-theme='fume'] #btn-bulk-approve-reqs-top {
    color: var(--text-primary) !important;
}

[data-theme='fume'] #btn-bulk-po {
    color: var(--text-primary) !important;
}

.main-bg-logo {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 9.5vw, 7.5rem);
    font-weight: 600;
    letter-spacing: clamp(3px, 1.4vw, 15px);
    background-image: var(--splash-text-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    animation: shine 5s linear infinite !important;
    white-space: nowrap;
    text-shadow: none !important;
    filter: none !important;
    max-width: 90vw;
    text-align: center;
    box-sizing: border-box;
}

[data-theme="fume"] .main-bg-logo,
[data-theme="fume"] #welcomeText {
    background: none !important;
    background-image: none !important;
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    animation: none !important;
}

/* Custom Elegant Scrollbar System */
.custom-scrollbar::-webkit-scrollbar,
#new-product-modal .theme-panel::-webkit-scrollbar,
.theme-panel::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track,
#new-product-modal .theme-panel::-webkit-scrollbar-track,
.theme-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
#new-product-modal .theme-panel::-webkit-scrollbar-thumb,
.theme-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
#new-product-modal .theme-panel::-webkit-scrollbar-thumb:hover,
.theme-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Firefox Scrollbar Support */
.custom-scrollbar,
#new-product-modal .theme-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) rgba(0, 0, 0, 0.15);
}

/* Vitrinim Yönetim Paneli — Kategori sekmeleri geçişinde 15px layout shift (kaydırma çubuğu zıplaması) önleyici */
#ds-content-area {
    overflow-y: scroll !important;
    scrollbar-gutter: stable !important;
}

/* Siparişler sekmesindeki İşlemler menüsündeki Siparişi Onayla butonu */
#btn-approve-order-top {
    color: var(--success, #10b981) !important;
}

#btn-approve-order-top svg {
    stroke: var(--success, #10b981) !important;
}

#btn-approve-order-top:hover {
    background: rgba(16, 185, 129, 0.15) !important;
}

/* Konsinye Yönetimi ve Gelirler & Tahsilatlar Sekme Butonları Boyut & Hizalama Sabitlemesi */
#tab-cons-out,
#tab-cons-in,
#tab-cons-usage,
#tab-cons-history,
#tab-income-sales,
#tab-income-consignment {
    padding: 8px 16px !important;
    font-weight: normal !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

#tab-cons-out.btn-secondary,
#tab-cons-in.btn-secondary,
#tab-cons-usage.btn-secondary,
#tab-cons-history.btn-secondary {
    color: var(--text-secondary) !important;
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    font-weight: normal !important;
}

#tab-cons-out.btn-primary.active,
#tab-cons-in.btn-primary.active,
#tab-cons-usage.btn-primary.active,
#tab-cons-history.btn-primary.active,
#tab-archive-requests.btn-primary.active,
#tab-archive-inflow.btn-primary.active,
#tab-archive-inbound-tasks.btn-primary.active,
#tab-archive-logistics.btn-primary.active,
#tab-archive-returns.btn-primary.active,
#tab-archive-supplier-rmas.btn-primary.active,
#tab-archive-disposals.btn-primary.active {
    color: #ffffff !important;
    background: var(--accent-primary) !important;
    border: 1px solid var(--accent-primary) !important;
    font-weight: 500 !important;
}

#tab-archive-cancellations.btn-primary.active {
    color: #ffffff !important;
    background: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    font-weight: 500 !important;
}

/* HIGH PERFORMANCE OVERRIDES: Disable GPU-heavy backdrop-filter blur on critical modals with inputs to prevent keyboard/typing lag */
#unlockModal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: radial-gradient(ellipse at 50% 40%, #475569 0%, #334155 45%, #1e293b 80%, #0f172a 100%) !important;
}

html[data-theme="fume"] #unlockModal,
body[data-theme="fume"] #unlockModal {
    background: radial-gradient(ellipse at 50% 45%, #94a3b8 0%, #64748b 50%, #475569 80%, #334155 100%) !important;
}

#unlockModal .auth-modal-card-erp {
    width: 100% !important;
    max-width: 440px !important;
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 30px 28px !important;
    box-sizing: border-box !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    animation: fadeIn 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

html[data-theme="fume"] #unlockModal .auth-modal-card-erp {
    background: #334155 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.auth-erp-input {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    font-size: 13.5px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.auth-erp-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

.auth-erp-input::placeholder {
    color: #64748b !important;
}

.btn-auth-erp-submit {
    width: 100% !important;
    padding: 12px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.btn-auth-erp-submit:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.48) !important;
    filter: brightness(1.05) !important;
}

.btn-auth-erp-submit:active {
    transform: translateY(0) !important;
}

.auth-card-footer-erp {
    margin-top: 14px !important;
    text-align: center !important;
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
}

#newTenantModal,
#tenantSelectionModal,
#subscriptionLockModal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 12, 0.97) !important;
    padding-bottom: 95px !important;
    box-sizing: border-box !important;
    /* Premium dark background instead of laggy blur */
}

#newTenantModal .modal-content,
#tenantSelectionModal .modal-content {
    max-height: calc(100vh - 210px) !important;
    max-height: 68vh !important;
}

/* Force hardware acceleration and prevent layout repaints during typing inside modal inputs */
#unlockModal input,
#unlockModal button,
#newTenantModal input,
#newTenantModal button,
#newTenantModal textarea,
#company-profile-modal input,
#company-profile-modal button,
#company-profile-modal textarea {
    transform: translate3d(0, 0, 0);
    isolation: isolate;
    pointer-events: auto !important;
}



/* KOLAY E-FATURA - Özel Sıfır Alt Boşluk (Üst boşluk Ön Muhasebe ile birebir aynı 32px) */
html.lisans-kolay-fatura .main-content,
body.lisans-kolay-fatura .main-content,
body.is-lite-fatura .main-content,
body.kolay-efatura .main-content {
    padding: 32px 32px 14px 32px !important;
}

html.lisans-kolay-fatura #module-view-container,
body.lisans-kolay-fatura #module-view-container,
body.is-lite-fatura #module-view-container,
body.kolay-efatura #module-view-container {
    padding-bottom: 0px !important;
    padding-top: 0px !important;
}

/* Universal Modal Viewport Centering & Reset (Satın Alma + Depo & Lojistik) */
#create-po-modal, #new-supplier-modal, #supplier-detail-modal, #supplier-excel-modal,
#req-items-modal, #po-send-modal, #po-details-modal, #logistics-modal,
#new-rfq-modal, #rfq-send-modal, #rfq-compare-modal, #rfq-detail-modal, #rfq-po-draft-modal, #new-rma-modal, #rma-details-modal,
#archive-details-modal, #new-product-modal, #excel-import-modal, #inflow-modal,
#approved-delivery-modal, #inflow-barcode-modal, #new-request-modal, #catalog-selector-modal,
#timeline-modal, #cargo-detail-modal, #courier-pickup-modal, #manual-order-modal,
#order-barcode-modal, #return-action-modal, #crm-return-detail-modal, #inventory-settings-modal,
#rawmaterials-settings-modal, #rawmaterials-catalog-modal, #cons-count-modal, #shrinkage-request-dialog,
#new-customer-modal, #customer-detail-modal, #customer-excel-modal, #new-order-modal,
#sale-details-modal, #exchange-delivery-modal, #crm-archive-details-modal, #opportunity-modal,
#proposal-modal, #new-return-modal, #crm-receipt-selector-modal, #crm-exchange-product-selector-modal,
#ticket-modal, #ticket-detail-modal, #account-modal, #account-details-modal, #advances-modal,
#bank-modal, #einvoice-modal, #gib-log-modal, #expense-modal, #po-pricing-details-modal,
#expense-details-modal, #income-modal, #modal-new-account, #modal-journal-entry, #modal-new-fixed-asset,
#invoice-modal, #waybill-modal, #cons-history-detail-modal, #consin-content-modal, #cons-customer-count-modal,
#cons-usage-approve-modal, #cons-direct-usage-modal, #crm-consignment-usage-modal, #rawmaterials-edit-modal,
#rawmaterials-standalone-modal, #customer-360-modal, #sirketim-custom-confirm-modal, #sirketim-custom-alert-modal,
#desktop-apps-modal, #marketplace-integrator-modal, #einvoice-integrator-modal, #ministry-integrator-modal,
#newStaffModal, #staffDetailsModal, #driver-assign-modal, #transferStaffModal, #staffHistoryModal,
#hr-employee-modal, #hr-timeoff-modal, #hr-payroll-modal, #hr-performance-modal, #hr-equipment-modal,
#hr-isg-modal, #hr-recruitment-modal, #hr-job-modal, #hr-training-modal,
#production-workorder-modal, #production-add-route-modal, #production-route-detail-modal,
#production-partial-modal, #production-machine-modal, #production-mnt-modal, #production-qc-modal,
#company-profile-modal,
[id^="archive-req-details-modal-"], [id^="archive-inbound-details-modal-"], [id^="archive-shrinkage-details-modal-"],
[id^="archive-return-details-modal-"], [id^="rma-details-modal-"], [id^="req-details-modal-"],
[id^="purchasing-req-details-modal-"], [id^="shrinkage-details-modal-"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#create-po-modal[style*="display: none"], #new-supplier-modal[style*="display: none"], #supplier-detail-modal[style*="display: none"], #supplier-excel-modal[style*="display: none"],
#req-items-modal[style*="display: none"], #po-send-modal[style*="display: none"], #po-details-modal[style*="display: none"], #logistics-modal[style*="display: none"],
#new-rfq-modal[style*="display: none"], #rfq-send-modal[style*="display: none"], #rfq-compare-modal[style*="display: none"], #rfq-detail-modal[style*="display: none"], #rfq-po-draft-modal[style*="display: none"], #new-rma-modal[style*="display: none"], #rma-details-modal[style*="display: none"],
#archive-details-modal[style*="display: none"], #new-product-modal[style*="display: none"], #excel-import-modal[style*="display: none"], #inflow-modal[style*="display: none"],
#approved-delivery-modal[style*="display: none"], #inflow-barcode-modal[style*="display: none"], #new-request-modal[style*="display: none"], #catalog-selector-modal[style*="display: none"],
#timeline-modal[style*="display: none"], #cargo-detail-modal[style*="display: none"], #courier-pickup-modal[style*="display: none"], #manual-order-modal[style*="display: none"],
#order-barcode-modal[style*="display: none"], #return-action-modal[style*="display: none"], #crm-return-detail-modal[style*="display: none"], #inventory-settings-modal[style*="display: none"],
#rawmaterials-settings-modal[style*="display: none"], #rawmaterials-catalog-modal[style*="display: none"], #cons-count-modal[style*="display: none"], #shrinkage-request-dialog[style*="display: none"],
#new-customer-modal[style*="display: none"], #customer-detail-modal[style*="display: none"], #customer-excel-modal[style*="display: none"], #new-order-modal[style*="display: none"],
#sale-details-modal[style*="display: none"], #exchange-delivery-modal[style*="display: none"], #crm-archive-details-modal[style*="display: none"], #opportunity-modal[style*="display: none"],
#proposal-modal[style*="display: none"], #new-return-modal[style*="display: none"], #crm-receipt-selector-modal[style*="display: none"], #crm-exchange-product-selector-modal[style*="display: none"],
#ticket-modal[style*="display: none"], #ticket-detail-modal[style*="display: none"], #account-modal[style*="display: none"], #account-details-modal[style*="display: none"], #advances-modal[style*="display: none"],
#bank-modal[style*="display: none"], #einvoice-modal[style*="display: none"], #gib-log-modal[style*="display: none"], #expense-modal[style*="display: none"], #po-pricing-details-modal[style*="display: none"],
#expense-details-modal[style*="display: none"], #income-modal[style*="display: none"], #modal-new-account[style*="display: none"], #modal-journal-entry[style*="display: none"], #modal-new-fixed-asset[style*="display: none"],
#invoice-modal[style*="display: none"], #waybill-modal[style*="display: none"], #cons-history-detail-modal[style*="display: none"], #consin-content-modal[style*="display: none"], #cons-customer-count-modal[style*="display: none"],
#cons-usage-approve-modal[style*="display: none"], #cons-direct-usage-modal[style*="display: none"], #crm-consignment-usage-modal[style*="display: none"], #rawmaterials-edit-modal[style*="display: none"],
#rawmaterials-standalone-modal[style*="display: none"], #customer-360-modal[style*="display: none"], #sirketim-custom-confirm-modal[style*="display: none"], #sirketim-custom-alert-modal[style*="display: none"],
#desktop-apps-modal[style*="display: none"], #marketplace-integrator-modal[style*="display: none"], #einvoice-integrator-modal[style*="display: none"], #ministry-integrator-modal[style*="display: none"],
#newStaffModal[style*="display: none"], #staffDetailsModal[style*="display: none"], #driver-assign-modal[style*="display: none"], #transferStaffModal[style*="display: none"], #staffHistoryModal[style*="display: none"],
#hr-employee-modal[style*="display: none"], #hr-timeoff-modal[style*="display: none"], #hr-payroll-modal[style*="display: none"], #hr-performance-modal[style*="display: none"], #hr-equipment-modal[style*="display: none"],
#hr-isg-modal[style*="display: none"], #hr-recruitment-modal[style*="display: none"], #hr-job-modal[style*="display: none"], #hr-training-modal[style*="display: none"],
#production-workorder-modal[style*="display: none"], #production-add-route-modal[style*="display: none"], #production-route-detail-modal[style*="display: none"],
#production-partial-modal[style*="display: none"], #production-machine-modal[style*="display: none"], #production-mnt-modal[style*="display: none"], #production-qc-modal[style*="display: none"],
#company-profile-modal[style*="display: none"],
[id^="archive-req-details-modal-"][style*="display: none"], [id^="archive-inbound-details-modal-"][style*="display: none"], [id^="archive-shrinkage-details-modal-"][style*="display: none"],
[id^="archive-return-details-modal-"][style*="display: none"], [id^="rma-details-modal-"][style*="display: none"], [id^="req-details-modal-"][style*="display: none"],
[id^="purchasing-req-details-modal-"][style*="display: none"], [id^="shrinkage-details-modal-"][style*="display: none"] {
    display: none !important;
}

#create-po-modal:not([style*="display: none"]), #new-supplier-modal:not([style*="display: none"]), #supplier-detail-modal:not([style*="display: none"]), #supplier-excel-modal:not([style*="display: none"]),
#req-items-modal:not([style*="display: none"]), #po-send-modal:not([style*="display: none"]), #po-details-modal:not([style*="display: none"]), #logistics-modal:not([style*="display: none"]),
#new-rfq-modal:not([style*="display: none"]), #rfq-send-modal:not([style*="display: none"]), #rfq-compare-modal:not([style*="display: none"]), #rfq-detail-modal:not([style*="display: none"]), #rfq-po-draft-modal:not([style*="display: none"]), #new-rma-modal:not([style*="display: none"]), #rma-details-modal:not([style*="display: none"]),
#archive-details-modal:not([style*="display: none"]), #new-product-modal:not([style*="display: none"]), #excel-import-modal:not([style*="display: none"]), #inflow-modal:not([style*="display: none"]),
#approved-delivery-modal:not([style*="display: none"]), #inflow-barcode-modal:not([style*="display: none"]), #new-request-modal:not([style*="display: none"]), #catalog-selector-modal:not([style*="display: none"]),
#timeline-modal:not([style*="display: none"]), #cargo-detail-modal:not([style*="display: none"]), #courier-pickup-modal:not([style*="display: none"]), #manual-order-modal:not([style*="display: none"]),
#order-barcode-modal:not([style*="display: none"]), #return-action-modal:not([style*="display: none"]), #crm-return-detail-modal:not([style*="display: none"]), #inventory-settings-modal:not([style*="display: none"]),
#rawmaterials-settings-modal:not([style*="display: none"]), #rawmaterials-catalog-modal:not([style*="display: none"]), #cons-count-modal:not([style*="display: none"]), #shrinkage-request-dialog:not([style*="display: none"]),
#new-customer-modal:not([style*="display: none"]), #customer-detail-modal:not([style*="display: none"]), #customer-excel-modal:not([style*="display: none"]), #new-order-modal:not([style*="display: none"]),
#sale-details-modal:not([style*="display: none"]), #exchange-delivery-modal:not([style*="display: none"]), #crm-archive-details-modal:not([style*="display: none"]), #opportunity-modal:not([style*="display: none"]),
#proposal-modal:not([style*="display: none"]), #new-return-modal:not([style*="display: none"]), #crm-receipt-selector-modal:not([style*="display: none"]), #crm-exchange-product-selector-modal:not([style*="display: none"]),
#ticket-modal:not([style*="display: none"]), #ticket-detail-modal:not([style*="display: none"]), #account-modal:not([style*="display: none"]), #account-details-modal:not([style*="display: none"]), #advances-modal:not([style*="display: none"]),
#bank-modal:not([style*="display: none"]), #einvoice-modal:not([style*="display: none"]), #gib-log-modal:not([style*="display: none"]), #expense-modal:not([style*="display: none"]), #po-pricing-details-modal:not([style*="display: none"]),
#expense-details-modal:not([style*="display: none"]), #income-modal:not([style*="display: none"]), #modal-new-account:not([style*="display: none"]), #modal-journal-entry:not([style*="display: none"]), #modal-new-fixed-asset:not([style*="display: none"]),
#invoice-modal:not([style*="display: none"]), #waybill-modal:not([style*="display: none"]), #cons-history-detail-modal:not([style*="display: none"]), #consin-content-modal:not([style*="display: none"]), #cons-customer-count-modal:not([style*="display: none"]),
#cons-usage-approve-modal:not([style*="display: none"]), #cons-direct-usage-modal:not([style*="display: none"]), #crm-consignment-usage-modal:not([style*="display: none"]), #rawmaterials-edit-modal:not([style*="display: none"]),
#rawmaterials-standalone-modal:not([style*="display: none"]), #customer-360-modal:not([style*="display: none"]), #sirketim-custom-confirm-modal:not([style*="display: none"]), #sirketim-custom-alert-modal:not([style*="display: none"]),
#desktop-apps-modal:not([style*="display: none"]), #marketplace-integrator-modal:not([style*="display: none"]), #einvoice-integrator-modal:not([style*="display: none"]), #ministry-integrator-modal:not([style*="display: none"]),
#newStaffModal:not([style*="display: none"]), #staffDetailsModal:not([style*="display: none"]), #driver-assign-modal:not([style*="display: none"]), #transferStaffModal:not([style*="display: none"]), #staffHistoryModal:not([style*="display: none"]),
#hr-employee-modal:not([style*="display: none"]), #hr-timeoff-modal:not([style*="display: none"]), #hr-payroll-modal:not([style*="display: none"]), #hr-performance-modal:not([style*="display: none"]), #hr-equipment-modal:not([style*="display: none"]),
#hr-isg-modal:not([style*="display: none"]), #hr-recruitment-modal:not([style*="display: none"]), #hr-job-modal:not([style*="display: none"]), #hr-training-modal:not([style*="display: none"]),
#production-workorder-modal:not([style*="display: none"]), #production-add-route-modal:not([style*="display: none"]), #production-route-detail-modal:not([style*="display: none"]),
#production-partial-modal:not([style*="display: none"]), #production-machine-modal:not([style*="display: none"]), #production-mnt-modal:not([style*="display: none"]), #production-qc-modal:not([style*="display: none"]),
#company-profile-modal:not([style*="display: none"]),
[id^="archive-req-details-modal-"]:not([style*="display: none"]), [id^="archive-inbound-details-modal-"]:not([style*="display: none"]), [id^="archive-shrinkage-details-modal-"]:not([style*="display: none"]),
[id^="archive-return-details-modal-"]:not([style*="display: none"]), [id^="rma-details-modal-"]:not([style*="display: none"]), [id^="req-details-modal-"]:not([style*="display: none"]),
[id^="purchasing-req-details-modal-"]:not([style*="display: none"]), [id^="shrinkage-details-modal-"]:not([style*="display: none"]) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#create-po-modal > div, #new-supplier-modal > div, #supplier-detail-modal > div, #supplier-excel-modal > div,
#req-items-modal > div, #po-send-modal > div, #po-details-modal > div, #logistics-modal > div,
#new-rfq-modal > div, #rfq-send-modal > div, #rfq-compare-modal > div, #rfq-detail-modal > div, #rfq-po-draft-modal > div, #new-rma-modal > div, #rma-details-modal > div,
#archive-details-modal > div, #new-product-modal > div, #excel-import-modal > div, #inflow-modal > div,
#approved-delivery-modal > div, #inflow-barcode-modal > div, #new-request-modal > div, #catalog-selector-modal > div,
#timeline-modal > div, #cargo-detail-modal > div, #courier-pickup-modal > div, #manual-order-modal > div,
#order-barcode-modal > div, #return-action-modal > div, #crm-return-detail-modal > div, #inventory-settings-modal > div,
#rawmaterials-settings-modal > div, #rawmaterials-catalog-modal > div, #cons-count-modal > div, #shrinkage-request-dialog > div,
#new-customer-modal > div, #customer-detail-modal > div, #customer-excel-modal > div, #new-order-modal > div,
#sale-details-modal > div, #exchange-delivery-modal > div, #crm-archive-details-modal > div, #opportunity-modal > div,
#proposal-modal > div, #new-return-modal > div, #crm-receipt-selector-modal > div, #crm-exchange-product-selector-modal > div,
#ticket-modal > div, #ticket-detail-modal > div, #account-modal > div, #account-details-modal > div, #advances-modal > div,
#bank-modal > div, #einvoice-modal > div, #gib-log-modal > div, #expense-modal > div, #po-pricing-details-modal > div,
#expense-details-modal > div, #income-modal > div, #modal-new-account > div, #modal-journal-entry > div, #modal-new-fixed-asset > div,
#invoice-modal > div, #waybill-modal > div, #cons-history-detail-modal > div, #consin-content-modal > div, #cons-customer-count-modal > div,
#cons-usage-approve-modal > div, #cons-direct-usage-modal > div, #crm-consignment-usage-modal > div, #rawmaterials-edit-modal > div,
#rawmaterials-standalone-modal > div, #customer-360-modal > div, #sirketim-custom-confirm-modal > div, #sirketim-custom-alert-modal > div,
#desktop-apps-modal > div, #marketplace-integrator-modal > div, #einvoice-integrator-modal > div, #ministry-integrator-modal > div,
#newStaffModal > div, #staffDetailsModal > div, #driver-assign-modal > div, #transferStaffModal > div, #staffHistoryModal > div,
#hr-employee-modal > div, #hr-timeoff-modal > div, #hr-payroll-modal > div, #hr-performance-modal > div, #hr-equipment-modal > div,
#hr-isg-modal > div, #hr-recruitment-modal > div, #hr-job-modal > div, #hr-training-modal > div,
#production-workorder-modal > div, #production-add-route-modal > div, #production-route-detail-modal > div,
#production-partial-modal > div, #production-machine-modal > div, #production-mnt-modal > div, #production-qc-modal > div,
#company-profile-modal > div,
[id^="archive-req-details-modal-"] > div, [id^="archive-inbound-details-modal-"] > div, [id^="archive-shrinkage-details-modal-"] > div,
[id^="archive-return-details-modal-"] > div, [id^="rma-details-modal-"] > div, [id^="req-details-modal-"] > div,
[id^="purchasing-req-details-modal-"] > div, [id^="shrinkage-details-modal-"] > div {
    margin: auto !important;
}

/* ========================================================
   🏛️ 5 KADEMELİ STANDART MODAL SİSTEMİ (DESIGN SYSTEM)
   1. KÜÇÜK KARE / UYARI (400px x 200-400px)      : Onay, Uyarı, Alert & Barkod
   2. ORTA KARE (500px x 500px)                    : Profil & Tekil Özet Kartları, Ayarlar
   3. KOMPAKT FORM & KART PANELİ (520px x max 70vh): Cari Kartı & Tekil Form Tanımlama
   4. ORTA YATAY DİKDÖRTGEN (740px x 480px)         : Standart 2 Sütunlu Veri Girişleri
   5. BÜYÜK YATAY DİKDÖRTGEN (1080px x 650px)       : Tablolu İşlemler & Master Kokpitler
   ======================================================== */

.modal-tier-1, .modal-size-sm-alert {
    width: 400px !important;
    min-height: 200px !important;
    max-height: 400px !important;
    max-width: 95vw !important;
}

.modal-tier-2, .modal-size-md-square {
    width: 500px !important;
    height: 500px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
}

.modal-tier-compact-form, .modal-size-compact-form {
    width: 520px !important;
    height: auto !important;
    max-width: 95vw !important;
    max-height: 70vh !important;
}

.modal-tier-3, .modal-size-md-rect {
    width: 740px !important;
    height: 480px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
}

.modal-tier-4, .modal-size-xl-rect {
    width: 1080px !important;
    height: 650px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
}

/* ========================================================
   1. KADEME: KÜÇÜK KARE & UYARI (400px x 200-400px)
   Küçük Onay, Hızlı Uyarı, Alert & Barkod
   ======================================================== */
#order-barcode-modal > div,
#order-barcode-modal > .theme-panel,
#inflow-barcode-modal > div,
#inflow-barcode-modal > .theme-panel,
#gib-log-modal > div,
#gib-log-modal > .theme-panel,
#sirketim-custom-confirm-modal > div,
#sirketim-custom-confirm-modal > .theme-panel,
#sirketim-custom-alert-modal > div,
#sirketim-custom-alert-modal > .theme-panel {
    width: 400px !important;
    min-height: 200px !important;
    max-height: 400px !important;
    max-width: 95vw !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

/* ========================================================
   2. KADEME: ORTA KARE (500px x 500px)
   Profil & Tekil Özet Kartları, Kategori/Tablo Yönetimi, Fire ve Hızlı Talep
   ======================================================== */
#supplier-detail-modal > .theme-panel,
#cargo-detail-modal > div,
#cargo-detail-modal > .theme-panel,
#courier-pickup-modal > div,
#courier-pickup-modal > .theme-panel,
#timeline-modal > div,
#timeline-modal > .theme-panel,
#crm-return-detail-modal > div,
#crm-return-detail-modal > .theme-panel,
#new-request-modal > div,
#new-request-modal > .theme-panel,
#inventory-settings-modal > div,
#inventory-settings-modal > .theme-panel,
#rawmaterials-settings-modal > div,
#rawmaterials-settings-modal > .theme-panel,
#shrinkage-request-dialog > div,
#shrinkage-request-dialog > .theme-panel,
#customer-detail-modal > div,
#customer-detail-modal > .theme-panel,
#ticket-detail-modal > div,
#ticket-detail-modal > .theme-panel,
#bank-modal > div,
#bank-modal > .theme-panel,
#account-details-modal > div,
#account-details-modal > .theme-panel,
#expense-details-modal > div,
#expense-details-modal > .theme-panel,
#advances-modal > div,
#advances-modal > .theme-panel,
#modal-new-account > div,
#modal-new-account > .theme-panel,
#modal-new-fixed-asset > div,
#modal-new-fixed-asset > .theme-panel,
#cons-usage-approve-modal > div,
#cons-usage-approve-modal > .theme-panel,
#rawmaterials-edit-modal > div,
#rawmaterials-edit-modal > .theme-panel,
#staffDetailsModal > div,
#staffDetailsModal > .theme-panel,
#driver-assign-modal > div,
#driver-assign-modal > .theme-panel,
#transferStaffModal > div,
#transferStaffModal > .theme-panel,
#staffHistoryModal > div,
#staffHistoryModal > .theme-panel,
#hr-timeoff-modal > div,
#hr-timeoff-modal > .theme-panel,
#hr-payroll-modal > div,
#hr-payroll-modal > .theme-panel,
#production-partial-modal > div,
#production-partial-modal > .theme-panel,
#production-machine-modal > div,
#production-machine-modal > .theme-panel,
#production-mnt-modal > div,
#production-mnt-modal > .theme-panel,
#production-qc-modal > div,
#production-qc-modal > .theme-panel,
#company-profile-modal > div,
#company-profile-modal > .theme-panel,
[id^="archive-shrinkage-details-modal-"] > div,
[id^="archive-shrinkage-details-modal-"] > .theme-panel,
[id^="shrinkage-details-modal-"] > div,
[id^="shrinkage-details-modal-"] > .theme-panel {
    width: 500px !important;
    height: 500px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

/* ========================================================
   3. KADEME: KOMPAKT FORM & KART PANELİ (520px x max 70vh)
   Cari Kartı Düzenle / Yeni Cari Tanımla & Tekil Form Panelleri
   ======================================================== */
#account-modal > div,
#account-modal > .theme-panel,
#kolay-account-modal > div,
#kolay-account-modal > .theme-panel {
    width: 520px !important;
    height: auto !important;
    max-width: 95vw !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

/* ========================================================
   4. KADEME: ORTA YATAY DİKDÖRTGEN (740px x 480px)
   Veri Girişleri, Tablolu İşlemler & Kokpitler
   ======================================================== */
#new-supplier-modal > .theme-panel,
#new-product-modal > div,
#new-product-modal > .theme-panel,
#inflow-modal > div,
#inflow-modal > .theme-panel,
#approved-delivery-modal > div,
#approved-delivery-modal > .theme-panel,
#return-action-modal > div,
#return-action-modal > .theme-panel,
#po-send-modal > .theme-panel,
#req-items-modal > .theme-panel,
#rfq-send-modal > .theme-panel,
#cons-count-modal > div,
#cons-count-modal > .theme-panel,
#logistics-modal > div,
#archive-details-modal > div,
#archive-details-modal > .theme-panel,
#supplier-excel-modal > .theme-panel,
#po-details-modal > div,
#rfq-compare-modal > .theme-panel,
#catalog-selector-modal > div,
#catalog-selector-modal > .theme-panel,
#rawmaterials-catalog-modal > div,
#rawmaterials-catalog-modal > .theme-panel,
#new-customer-modal > div,
#new-customer-modal > .theme-panel,
#customer-excel-modal > div,
#customer-excel-modal > .theme-panel,
#sale-details-modal > div,
#sale-details-modal > .theme-panel,
#exchange-delivery-modal > div,
#exchange-delivery-modal > .theme-panel,
#crm-archive-details-modal > div,
#crm-archive-details-modal > .theme-panel,
#opportunity-modal > div,
#opportunity-modal > .theme-panel,
#proposal-modal > div,
#proposal-modal > .theme-panel,
#new-return-modal > div,
#new-return-modal > .theme-panel,
#crm-receipt-selector-modal > div,
#crm-receipt-selector-modal > .theme-panel,
#crm-exchange-product-selector-modal > div,
#crm-exchange-product-selector-modal > .theme-panel,
#ticket-modal > div,
#ticket-modal > .theme-panel,
#income-modal > div,
#income-modal > .theme-panel,
#expense-modal > div,
#expense-modal > .theme-panel,
#po-pricing-details-modal > div,
#po-pricing-details-modal > .theme-panel,
#einvoice-modal > div,
#einvoice-modal > .theme-panel,
#invoice-modal > div,
#invoice-modal > .theme-panel,
#waybill-modal > div,
#waybill-modal > .theme-panel,
#cons-history-detail-modal > div,
#cons-history-detail-modal > .theme-panel,
#consin-content-modal > div,
#consin-content-modal > .theme-panel,
#cons-customer-count-modal > div,
#cons-customer-count-modal > .theme-panel,
#cons-direct-usage-modal > div,
#cons-direct-usage-modal > .theme-panel,
#crm-consignment-usage-modal > div,
#crm-consignment-usage-modal > .theme-panel,
#rawmaterials-standalone-modal > div,
#rawmaterials-standalone-modal > .theme-panel,
#rma-details-modal > div,
#rma-details-modal > .theme-panel,
#rfq-detail-modal > div,
#rfq-detail-modal > .theme-panel,
#rfq-po-draft-modal > div,
#rfq-po-draft-modal > .theme-panel,
#new-rma-modal > div,
#new-rma-modal > .theme-panel,
#desktop-apps-modal > div,
#desktop-apps-modal > .theme-panel,
#desktop-apps-modal .desktop-apps-modal-dialog,
#marketplace-integrator-modal > div,
#marketplace-integrator-modal > .theme-panel,
#einvoice-integrator-modal > div,
#einvoice-integrator-modal > .theme-panel,
#ministry-integrator-modal > div,
#ministry-integrator-modal > .theme-panel,
#newStaffModal > div,
#newStaffModal > .theme-panel,
#hr-employee-modal > div,
#hr-employee-modal > .theme-panel,
#hr-performance-modal > div,
#hr-performance-modal > .theme-panel,
#hr-equipment-modal > div,
#hr-equipment-modal > .theme-panel,
#hr-isg-modal > div,
#hr-isg-modal > .theme-panel,
#hr-recruitment-modal > div,
#hr-recruitment-modal > .theme-panel,
#hr-job-modal > div,
#hr-job-modal > .theme-panel,
#hr-training-modal > div,
#hr-training-modal > .theme-panel,
#production-workorder-modal > div,
#production-workorder-modal > .theme-panel,
#production-add-route-modal > div,
#production-add-route-modal > .theme-panel,
#production-route-detail-modal > div,
#production-route-detail-modal > .theme-panel,
[id^="archive-req-details-modal-"] > div,
[id^="archive-req-details-modal-"] > .theme-panel,
[id^="archive-inbound-details-modal-"] > div,
[id^="archive-inbound-details-modal-"] > .theme-panel,
[id^="archive-return-details-modal-"] > div,
[id^="archive-return-details-modal-"] > .theme-panel,
[id^="rma-details-modal-"] > div,
[id^="rma-details-modal-"] > .theme-panel,
[id^="req-details-modal-"] > div,
[id^="req-details-modal-"] > .theme-panel,
[id^="purchasing-req-details-modal-"] > div,
[id^="purchasing-req-details-modal-"] > .theme-panel {
    width: 740px !important;
    height: 480px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

#desktop-apps-modal #view-apps-catalog,
#desktop-apps-modal #view-apps-custom {
    flex: 1 !important;
    min-height: 0 !important;
    max-height: 290px !important;
    overflow-y: auto !important;
}

/* ========================================================
   5. KADEME: ÇİFT SÜTUNLU MASTER TABLO KOKPİTLERİ (920px x 600px & 1080px x 650px)
   (Çoklu Hammadde Girişi, Manuel Sipariş Ekle & Yevmiye Fişi)
   ======================================================== */
#manual-order-modal[style*="display: none"],
#create-po-modal[style*="display: none"],
#new-order-modal[style*="display: none"],
#modal-journal-entry[style*="display: none"],
#customer-360-modal[style*="display: none"] {
    display: none !important;
}

#manual-order-modal:not([style*="display: none"]),
#create-po-modal:not([style*="display: none"]),
#new-order-modal:not([style*="display: none"]),
#modal-journal-entry:not([style*="display: none"]),
#customer-360-modal:not([style*="display: none"]) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100000 !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

#manual-order-modal > div,
#manual-order-modal > .theme-panel,
#create-po-modal > div,
#create-po-modal > .theme-panel,
#new-order-modal > div,
#new-order-modal > .theme-panel {
    margin: 0 !important;
    width: 920px !important;
    height: 600px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    align-self: center !important;
}

.modal-tier-4, .modal-size-xl-rect,
#modal-journal-entry > div,
#modal-journal-entry > .theme-panel,
#customer-360-modal > div,
#customer-360-modal > .theme-panel {
    width: 1080px !important;
    height: 650px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

/* Yeni Tedarikçi Ekle Modalı - Özel 2 Sütunlu Grid */
#new-supplier-modal > .theme-panel {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 14px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

#new-supplier-modal > .theme-panel > h3#sup-modal-title {
    grid-column: 1 / -1 !important;
    margin-bottom: 2px !important;
    padding-bottom: 8px !important;
}

/* Firma / Tedarikçi Adı -> Sol Sütun */
#new-supplier-modal > .theme-panel > div:has(#sup-name) {
    grid-column: 1 / 2 !important;
}

/* Yetkili Kişi -> Sağ Sütun */
#new-supplier-modal > .theme-panel > div:has(#sup-contact) {
    grid-column: 2 / 3 !important;
}

/* Telefon Numarası -> Sol Sütun */
#new-supplier-modal > .theme-panel > div:has(#sup-phone) {
    grid-column: 1 / 2 !important;
}

/* E-Posta Adresi -> Sağ Sütun */
#new-supplier-modal > .theme-panel > div:has(#sup-email) {
    grid-column: 2 / 3 !important;
}

/* Adres -> Tam Genişlik */
#new-supplier-modal > .theme-panel > div:has(#sup-address) {
    grid-column: 1 / -1 !important;
}

/* İl / İlçe -> Tam Genişlik (Kendi içinde 2 sütun) */
#new-supplier-modal > .theme-panel > div:has(#sup-city) {
    grid-column: 1 / -1 !important;
}

/* Vergi Dairesi & Vergi No -> Tam Genişlik (Kendi içinde 2 sütun) */
#new-supplier-modal > .theme-panel > div:has(#sup-taxoffice) {
    grid-column: 1 / -1 !important;
}

/* Banka Adı & Banka IBAN -> Tam Genişlik (Kendi içinde 2 sütun) */
#new-supplier-modal > .theme-panel > div:has(#sup-bank) {
    grid-column: 1 / -1 !important;
}

/* Para Birimi & Fatura Türü -> Tam Genişlik (Kendi içinde 2 sütun) */
#new-supplier-modal > .theme-panel > div:has(#sup-currency) {
    grid-column: 1 / -1 !important;
}

/* İptal / Kaydet Butonları -> Tam Genişlik */
#new-supplier-modal > .theme-panel > div:has(#btn-save-sup) {
    grid-column: 1 / -1 !important;
    margin-top: 4px !important;
}

@media (max-width: 640px) {
    #new-supplier-modal > .theme-panel {
        grid-template-columns: 1fr !important;
        width: 95vw !important;
        height: auto !important;
        max-height: 90vh !important;
        padding: 16px !important;
    }
    #new-supplier-modal > .theme-panel > div:has(#sup-name),
    #new-supplier-modal > .theme-panel > div:has(#sup-contact),
    #new-supplier-modal > .theme-panel > div:has(#sup-phone),
    #new-supplier-modal > .theme-panel > div:has(#sup-email) {
        grid-column: 1 / -1 !important;
    }
}

/* Yeni Müşteri Ekle Modalı - Özel 2 Sütunlu Grid */
#new-customer-modal > .theme-panel {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 14px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

#new-customer-modal > .theme-panel > h3#cust-modal-title {
    grid-column: 1 / -1 !important;
    margin-bottom: 2px !important;
    padding-bottom: 8px !important;
}

/* Firma / Müşteri Adı -> Sol Sütun */
#new-customer-modal > .theme-panel > div:has(#cust-name) {
    grid-column: 1 / 2 !important;
}

/* Yetkili Kişi -> Sağ Sütun */
#new-customer-modal > .theme-panel > div:has(#cust-contact) {
    grid-column: 2 / 3 !important;
}

/* Telefon Numarası -> Sol Sütun */
#new-customer-modal > .theme-panel > div:has(#cust-phone) {
    grid-column: 1 / 2 !important;
}

/* E-Posta Adresi -> Sağ Sütun */
#new-customer-modal > .theme-panel > div:has(#cust-email) {
    grid-column: 2 / 3 !important;
}

/* Adres -> Tam Genişlik */
#new-customer-modal > .theme-panel > div:has(#cust-address) {
    grid-column: 1 / -1 !important;
}

/* İl / İlçe -> Tam Genişlik (Kendi içinde 2 sütun) */
#new-customer-modal > .theme-panel > div:has(#cust-city) {
    grid-column: 1 / -1 !important;
}

/* Vergi Dairesi & Vergi No -> Tam Genişlik (Kendi içinde 2 sütun) */
#new-customer-modal > .theme-panel > div:has(#cust-taxoffice) {
    grid-column: 1 / -1 !important;
}

/* Banka Adı & Banka IBAN -> Tam Genişlik (Kendi içinde 2 sütun) */
#new-customer-modal > .theme-panel > div:has(#cust-bank) {
    grid-column: 1 / -1 !important;
}

/* Para Birimi & Fatura Türü -> Tam Genişlik (Kendi içinde 2 sütun) */
#new-customer-modal > .theme-panel > div:has(#cust-currency) {
    grid-column: 1 / -1 !important;
}

/* İptal / Kaydet Butonları -> Tam Genişlik */
#new-customer-modal > .theme-panel > div:has(#btn-save-cust) {
    grid-column: 1 / -1 !important;
    margin-top: 4px !important;
}

@media (max-width: 640px) {
    #new-customer-modal > .theme-panel {
        grid-template-columns: 1fr !important;
        width: 95vw !important;
        height: auto !important;
        max-height: 90vh !important;
        padding: 16px !important;
    }
    #new-customer-modal > .theme-panel > div:has(#cust-name),
    #new-customer-modal > .theme-panel > div:has(#cust-contact),
    #new-customer-modal > .theme-panel > div:has(#cust-phone),
    #new-customer-modal > .theme-panel > div:has(#cust-email) {
        grid-column: 1 / -1 !important;
    }
}

/* ==========================================================================
   EXCEL İLE TOPLU ÜRÜN EKLEME MODALI ÖZEL DÜZENİ (RESPONSIVE & SABİT BUTONLAR)
   ========================================================================== */
#excel-import-modal > div,
#excel-import-modal > .theme-panel {
    width: 960px !important;
    max-width: 95vw !important;
    height: 88vh !important;
    max-height: 820px !important;
    min-height: 480px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* Dış pencere asla scroll olmasın, iç gövde kaysın */
    padding: 20px 24px 16px 24px !important;
    box-sizing: border-box !important;
    gap: 12px !important;
}

#excel-import-modal #excel-modal-scroll-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding-right: 6px !important;
}

#excel-import-modal #excel-preview-container {
    flex-shrink: 0 !important;
    min-height: 180px !important;
    max-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#excel-import-modal #excel-preview-container .custom-scrollbar {
    flex: 1 !important;
    max-height: 280px !important;
    min-height: 160px !important;
    overflow-y: auto !important;
    overflow-x: scroll !important;
    scrollbar-width: auto !important;
    scrollbar-color: #10b981 rgba(15, 23, 42, 0.8) !important;
}

/* Yatay ve Dikey Scrollbar'ı Çok Belirgin ve Kalıcı Yeşil Yap */
#excel-import-modal #excel-preview-container .custom-scrollbar::-webkit-scrollbar,
#excel-import-modal #excel-modal-scroll-body::-webkit-scrollbar {
    width: 8px !important;
    height: 12px !important;
    display: block !important;
}

#excel-import-modal #excel-preview-container .custom-scrollbar::-webkit-scrollbar-track,
#excel-import-modal #excel-modal-scroll-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8) !important;
    border-radius: 6px !important;
}

#excel-import-modal #excel-preview-container .custom-scrollbar::-webkit-scrollbar-thumb,
#excel-import-modal #excel-modal-scroll-body::-webkit-scrollbar-thumb {
    background: #10b981 !important;
    border-radius: 6px !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
}

#excel-import-modal #excel-preview-container .custom-scrollbar::-webkit-scrollbar-thumb:hover,
#excel-import-modal #excel-modal-scroll-body::-webkit-scrollbar-thumb:hover {
    background: #34d399 !important;
}

/* Tablonun Tüm Sütunlarıyla Yayılması ve Kesinlikle Yatay Kaydırma Üretmesi */
#excel-import-modal #excel-preview-container table {
    min-width: 1100px !important;
    width: max-content !important;
}

#excel-import-modal .excel-modal-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: auto !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--border-color) !important;
    background: var(--bg-modal-solid, #1e293b) !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
}

/* SweetAlert ve Bildirim Modalları Ekran Taşma Önleyici & Estetik Kaydırma */
.swal2-popup, .swal-modal {
    max-height: 85vh !important;
    overflow-y: auto !important;
    max-width: 580px !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
.swal2-html-container, .swal-text {
    max-height: 55vh !important;
    overflow-y: auto !important;
    text-align: left !important;
    white-space: pre-line !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
}

/* ==========================================================================
   VİTRİNİM (F8) SATICI PANELİ - KURUMSAL FÜME TEMA UYARLAMASI
   ========================================================================== */
[data-theme="fume"] #digitalShowcaseAppContainer {
    --bg-surface: #88909c !important;
    --bg-surface-hover: #7c8592 !important;
    --bg-input: #777f8c !important;
    --bg-modal-solid: #88909c !important;
    --border-color: rgba(255, 255, 255, 0.55) !important;
    --accent-primary: #4b5563 !important;
    --accent-primary-hover: #374151 !important;
    --text-primary: #111827 !important;
    --text-secondary: #1f2937 !important;
    --text-muted: #374151 !important;
    color: #111827 !important;
}

/* Üst Başlık ve Sekme Barı (Sıfır GPU Gecikmesi İçin Blur İptal Edilmiş Opak Füme Bar) */
[data-theme="fume"] #digitalShowcaseAppContainer > div > div:first-child,
[data-theme="fume"] #ds-category-navbar-container {
    background: #9ea6b2 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
}

/* 560+ Ürün Kartında Sıfır Takılma: Ekran Dışı Kartları Render Etme ve İzole Et */
#ds-seller-products-list > div {
    content-visibility: auto;
    contain-intrinsic-size: 0 86px;
    contain: layout style paint;
}

[data-theme="fume"] #ds-seller-products-list > div {
    box-shadow: none !important;
    transition: none !important;
}

/* "vitrinim" Sol Üst Logo Başlığı (Orijinal Mavi Rengi) */
[data-theme="fume"] #digitalShowcaseAppContainer h1 {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Sağ Üst Kapatma (X) Butonu */
[data-theme="fume"] #btn-close-digital-showcase {
    color: #374151 !important;
}
[data-theme="fume"] #btn-close-digital-showcase:hover {
    color: #111827 !important;
    background: rgba(255, 255, 255, 0.35) !important;
}

/* Üst Satıcı Sekme Butonları (.ds-seller-tab-btn) */
[data-theme="fume"] #digitalShowcaseAppContainer .ds-seller-tab-btn {
    background: #88909c !important;
    background-image: none !important;
    color: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: none !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-seller-tab-btn:hover {
    background: #7c8592 !important;
    color: #111827 !important;
    border-color: #ffffff !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-seller-tab-btn.active {
    background: #4b5563 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-seller-tab-btn.active svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* Kategori Sekmeleri Yatay Kaydırma Çubuğunu (Koyu Çizgiyi) Gizle */
#ds-seller-categories {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
#ds-seller-categories::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Kategori Hapları (.ds-seller-cat-tab) ve Kaydırma Okları */
[data-theme="fume"] #digitalShowcaseAppContainer .ds-seller-cat-tab,
[data-theme="fume"] #digitalShowcaseAppContainer #ds-cat-scroll-left,
[data-theme="fume"] #digitalShowcaseAppContainer #ds-cat-scroll-right {
    background: #88909c !important;
    color: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    font-weight: 600 !important;
    transition: none !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-seller-cat-tab:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #ds-cat-scroll-left:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #ds-cat-scroll-right:hover {
    background: #7c8592 !important;
    border-color: #ffffff !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-seller-cat-tab.active {
    background: #4b5563 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    font-weight: 700 !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-seller-cat-tab span {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
}

/* Tüm Input, Select ve Textarea Alanları (Yüksek Kontrastlı Koyu Füme Kutu + Beyaz Yazı) */
[data-theme="fume"] #digitalShowcaseAppContainer input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
[data-theme="fume"] #digitalShowcaseAppContainer select,
[data-theme="fume"] #digitalShowcaseAppContainer textarea {
    background: #777f8c !important;
    background-color: #777f8c !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    font-weight: 500 !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
[data-theme="fume"] #digitalShowcaseAppContainer select:focus,
[data-theme="fume"] #digitalShowcaseAppContainer textarea:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer input::placeholder,
[data-theme="fume"] #digitalShowcaseAppContainer textarea::placeholder {
    color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1 !important;
}

/* Arama Kutusu İkonları */
[data-theme="fume"] #digitalShowcaseAppContainer input + svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
    opacity: 0.85 !important;
}

/* Toggle Switch (vitrinimden.com'da Yayında Anahtarları) - Kapalıyken Füme, Açıkken Orijinal Vitrinim Mavisi */
[data-theme="fume"] #digitalShowcaseAppContainer .ds-slider,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-all-slider {
    background: #6b7280 !important;
    background-color: #6b7280 !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer input:checked + .ds-slider,
[data-theme="fume"] #digitalShowcaseAppContainer input:checked + .ds-all-slider {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    background-color: #0ea5e9 !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-status-label {
    color: #111827 !important;
    font-weight: 600 !important;
}

/* Alt Sekme Grupları (Gelen Siparişler, Uyuşmazlıklar, Finans Dönem Filtreleri) */
[data-theme="fume"] #digitalShowcaseAppContainer .ds-order-filter-tab,
[data-theme="fume"] #digitalShowcaseAppContainer .btn-ds-subtab {
    background: #88909c !important;
    color: #111827 !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    transition: none !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-order-filter-tab.active,
[data-theme="fume"] #digitalShowcaseAppContainer .btn-ds-subtab.active {
    background: #4b5563 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    font-weight: 700 !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .btn-finance-period {
    background: #777f8c !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    font-weight: 600 !important;
    transition: none !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .btn-finance-period.active {
    background: #4b5563 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    font-weight: 700 !important;
}

/* Vitrinim Aksiyon Butonları ve 3 Ürün Kartı Butonu (Sıfır Gecikmeli Anında Hover) */
[data-theme="fume"] #digitalShowcaseAppContainer #btn-add-store-campaign,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-seller-add-new-product,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-header-call-courier,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-open-shipping-rates-modal,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-export-finance-excel,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-print-finance-statement,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-edit-seller-iban,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-apply-finance-date,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-save-vendor-settings,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-activate-marketplace-now,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-boost-btn,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-btn-boost-product,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-edit-details-btn,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-btn-edit-details,
[data-theme="fume"] #digitalShowcaseAppContainer .btn-ship-order-modal,
[data-theme="fume"] #digitalShowcaseAppContainer .btn-answer-question {
    background: #4b5563 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    transition: none !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer #btn-add-store-campaign:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-seller-add-new-product:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-header-call-courier:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-open-shipping-rates-modal:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-export-finance-excel:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-print-finance-statement:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-edit-seller-iban:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-apply-finance-date:hover,
[data-theme="fume"] #digitalShowcaseAppContainer #btn-save-vendor-settings:hover,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-boost-btn:hover,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-btn-boost-product:hover,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-edit-details-btn:hover,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-btn-edit-details:hover {
    background: #374151 !important;
    border-color: #ffffff !important;
    transition: none !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-delete-product-btn,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-btn-delete-product {
    background: #777f8c !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
    transition: none !important;
}

[data-theme="fume"] #digitalShowcaseAppContainer .ds-delete-product-btn:hover,
[data-theme="fume"] #digitalShowcaseAppContainer .ds-btn-delete-product:hover {
    background: #991b1b !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transition: none !important;
}

/* Gelen Siparişler, Yorumlar, Sorular, Teklifler Boş Durum & Toplu Seçim Kutuları (#88909c) */
[data-theme="fume"] #digitalShowcaseAppContainer #ds-orders-bulk-bar,
[data-theme="fume"] #digitalShowcaseAppContainer #ds-seller-orders-list > div,
[data-theme="fume"] #digitalShowcaseAppContainer #ds-seller-reviews-list > div,
[data-theme="fume"] #digitalShowcaseAppContainer #ds-seller-questions-list > div,
[data-theme="fume"] #digitalShowcaseAppContainer #ds-seller-quotes-list > div {
    background: #88909c !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

/* Ürün Satırı Metinleri ve Finans Özet Metinleri (Ağır [style*="..."] Seçicileri Olmadan Doğrudan Hedefleme) */
[data-theme="fume"] #ds-seller-products-list > div > div:first-child span,
[data-theme="fume"] #display-seller-iban,
[data-theme="fume"] #finance-net-payout {
    color: #111827 !important;
}

/* Vitrinim Tablo Başlıkları */
[data-theme="fume"] #digitalShowcaseAppContainer table thead tr {
    background: #777f8c !important;
}
[data-theme="fume"] #digitalShowcaseAppContainer table thead th {
    color: #f8fafc !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
}

/* Gece Siyahı Temasında da 3 Ürün Kartı Butonu İçin Inline JS Yerine Saf CSS Hover */
:root:not([data-theme="fume"]) #digitalShowcaseAppContainer .ds-btn-boost-product:hover {
    background: rgba(14, 165, 233, 0.22) !important;
}
:root:not([data-theme="fume"]) #digitalShowcaseAppContainer .ds-btn-edit-details:hover {
    background: rgba(14, 165, 233, 0.25) !important;
}
:root:not([data-theme="fume"]) #digitalShowcaseAppContainer .ds-btn-delete-product:hover {
    background: rgba(239, 68, 68, 0.22) !important;
}







/* ==========================================================================
   THREE-T ŞİRKETİM ERP — TABULATOR & VERİ TABLOLARI TEMA STANDARTLARI
   css/components_tabulator.css
   ========================================================================== */

/* --- Tabulator Grouping Customization --- */
.tabulator .tabulator-tableholder .tabulator-table {
    min-width: 100% !important;
}

.tabulator-row.tabulator-group {
    background: rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid var(--border-color) !important;
    cursor: pointer;
    display: flex !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 35px !important;
    min-height: 35px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tabulator-row.tabulator-group .tabulator-arrow {
    display: none !important;
    /* Hide default left arrow */
}

.tabulator-row.tabulator-group .tabulator-group-header {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding: 0 15px !important;
    margin: 0 !important;
    height: 100% !important;
}

.custom-group-toggle {
    transition: transform 0.2s ease;
    display: inline-block;
    pointer-events: none;
}

/* --- Tabulator DataTree Toggle Button Customization --- */
.tabulator-data-tree-control {
    transform: scale(1.6);
    cursor: pointer;
}

.tabulator-data-tree-control:hover {
    opacity: 0.8;
}

.tabulator-row.tabulator-group.tabulator-group-visible .custom-group-toggle {
    transform: rotate(45deg);
    /* Turns '+' into 'x' when opened */
    color: #ef4444 !important;
    /* Turn red */
}

#internalChatInputContainer {
    background: #111827;
    /* Gece siyahı varsayılan */
}

[data-theme="fume"] #internalChatHistory {
    background: #e5e7eb;
    /* Füme teması: çok açık gümüş */
}

[data-theme="fume"] #internalChatInputContainer {
    background: #d1d5db;
    /* Füme teması: açık gümüş */
}

.text-vivid {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.text-subtle {
    color: var(--text-secondary) !important;
}


/* ==========================================================================
   TABULATOR & TABLO TEMA STANDARTLARI (ŞİRKETİM — GECE SİYAHI & FÜME)
   ========================================================================== */

.tabulator {
    background-color: transparent !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text-primary) !important;
}

/* Headers (Dark) */
.tabulator .tabulator-header {
    background-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 600 !important;
}

.tabulator .tabulator-header .tabulator-col {
    background-color: transparent !important;
    border-right: 1px solid var(--border-color) !important;
}

.tabulator .tabulator-header .tabulator-col-title {
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Rows (Dark) */
.tabulator-row {
    background-color: var(--bg-surface) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
}

.tabulator-row:hover,
.tabulator-row.tabulator-selectable:hover {
    background-color: var(--bg-surface-hover) !important;
}

/* Selected Rows/Cells (Dark) */
.tabulator-row.tabulator-selected,
.tabulator-row.tabulator-selectable.tabulator-selected,
.tabulator-row[aria-selected="true"] {
    background-color: #374151 !important;
    color: #ffffff !important;
}

.tabulator-row.tabulator-selected .tabulator-cell,
.tabulator-row[aria-selected="true"] .tabulator-cell {
    background-color: transparent !important;
    color: inherit !important;
}

/* Cells (Dark) */
.tabulator-cell {
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 10px !important;
    background-color: transparent !important;
    color: var(--text-primary) !important;
}

/* Editing Cell */
.tabulator-cell.tabulator-editing {
    border: 2px solid var(--accent-primary) !important;
    padding: 8px !important;
}

/* Edit Inputs */
.tabulator-cell input[type="text"],
.tabulator-cell select,
.tabulator-cell input[type="number"] {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: none !important;
    outline: none !important;
    width: 100%;
    height: 100%;
}

.tabulator-cell select option {
    background-color: var(--bg-surface);
}

/* Footer & Pagination (Dark) */
.tabulator .tabulator-footer {
    background-color: var(--bg-surface, #1e293b) !important;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
    color: var(--text-secondary, #94a3b8) !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
}

.tabulator .tabulator-footer .tabulator-paginator {
    color: var(--text-secondary, #94a3b8) !important;
    font-size: 0.85rem !important;
}

.tabulator .tabulator-footer .tabulator-page {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
    color: var(--text-primary) !important;
}

.tabulator .tabulator-footer .tabulator-page.active {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   FÜME TEMA (METALİK DUMAN TİTANYUMU) TABLO VE HÜCRE KONTRAST STANDARDI
   -------------------------------------------------------------------------- */

[data-theme="fume"] .tabulator {
    background: #88909c !important;
    background-color: #88909c !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: var(--radius-lg, 12px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07) !important;
    overflow: hidden !important;
    color: #111827 !important;
}

[data-theme="fume"] .tabulator .tabulator-tableholder,
[data-theme="fume"] .tabulator .tabulator-tableholder .tabulator-table {
    background: transparent !important;
    background-color: transparent !important;
}

/* Füme Headers — Akıllı Kart Tonu ile Uyumlu Tok Başlık & Belirgin Sütun Ayrımı */
[data-theme="fume"] .tabulator .tabulator-header {
    background: #777f8c !important;
    background-color: #777f8c !important;
    color: #111827 !important;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.25) !important;
}

[data-theme="fume"] .tabulator .tabulator-header .tabulator-col {
    background-color: transparent !important;
    border-right: 1px solid rgba(0, 0, 0, 0.18) !important;
}

[data-theme="fume"] .tabulator .tabulator-header .tabulator-col-title {
    color: #111827 !important;
    font-size: 13.5px !important;
    font-weight: 750 !important;
    letter-spacing: 0.2px;
}

/* Füme Header Filters */
[data-theme="fume"] .tabulator .tabulator-header .tabulator-col .tabulator-header-filter input {
    background: rgba(255, 255, 255, 0.75) !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.22) !important;
    border-radius: 6px !important;
}

[data-theme="fume"] .tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::placeholder {
    color: #4b5563 !important;
    opacity: 0.85 !important;
}

[data-theme="fume"] .tabulator .tabulator-header .tabulator-col .tabulator-header-filter input:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #111827 !important;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.15) !important;
}

/* Füme Rows — Küçük Akıllı Kartların İç Rengi (#88909c) ve Belirgin Çizgiler */
[data-theme="fume"] .tabulator-row,
[data-theme="fume"] .tabulator-row.tabulator-row-even {
    background: #88909c !important;
    background-color: #88909c !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #111827 !important;
}

[data-theme="fume"] .tabulator-row.tabulator-row-odd {
    background: #808895 !important;
    background-color: #808895 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #111827 !important;
}

[data-theme="fume"] .tabulator-row:hover,
[data-theme="fume"] .tabulator-row.tabulator-selectable:hover {
    background: #949ca8 !important;
    background-color: #949ca8 !important;
    transition: background 0.15s ease-in-out !important;
}

/* Füme Selected Rows */
[data-theme="fume"] .tabulator-row.tabulator-selected,
[data-theme="fume"] .tabulator-row.tabulator-selectable.tabulator-selected,
[data-theme="fume"] .tabulator-row[aria-selected="true"] {
    background: rgba(55, 65, 81, 0.45) !important;
    color: #ffffff !important;
}

/* Füme Cells & Belirgin Dikey Sütun Çizgileri */
[data-theme="fume"] .tabulator-cell {
    border-right: 1px solid rgba(0, 0, 0, 0.15) !important;
    background-color: transparent !important;
    color: #111827 !important;
}

[data-theme="fume"] .tabulator-cell input[type="text"],
[data-theme="fume"] .tabulator-cell select,
[data-theme="fume"] .tabulator-cell input[type="number"] {
    color: #111827 !important;
}

/* Füme Tablo Butonları (Görüntüle vb.) */
[data-theme="fume"] .tabulator-cell button,
[data-theme="fume"] .tabulator-cell .btn-view,
[data-theme="fume"] .tabulator-cell .btn-primary,
[data-theme="fume"] .tabulator-cell .btn-secondary {
    background: rgba(255, 255, 255, 0.5) !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 6px !important;
}

[data-theme="fume"] .tabulator-cell button:hover,
[data-theme="fume"] .tabulator-cell .btn-view:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

[data-theme="fume"] .tabulator-cell input[type="text"],
[data-theme="fume"] .tabulator-cell select,
[data-theme="fume"] .tabulator-cell input[type="number"] {
    color: #111827 !important;
}

/* Füme İçindeki Metin Tonları (Hiyerarşi) */
[data-theme="fume"] .tabulator-cell span:not(.badge):not(.status-badge):not([style*="color: #10b981"]):not([style*="color: #ef4444"]):not([style*="color: #e05260"]):not([style*="color: #b91c1c"]):not([style*="color: #8a5059"]):not([style*="color: #d97706"]):not([style*="color: #f97316"]):not([style*="color: #3b82f6"]):not([style*="color: #a855f7"]):not([style*="color: #fbbf24"]):not([style*="color: #60a5fa"]):not([style*="color: #38bdf8"]):not([style*="color:#10b981"]):not([style*="color:#ef4444"]):not([style*="color:#e05260"]):not([style*="color:#b91c1c"]):not([style*="color:#8a5059"]):not([style*="color:#d97706"]):not([style*="color:#f97316"]):not([style*="color:#3b82f6"]):not([style*="color:#a855f7"]):not([style*="color:#fbbf24"]):not([style*="color:#60a5fa"]):not([style*="color:#38bdf8"]),
[data-theme="fume"] .tabulator-cell div:not(.badge):not(.status-badge):not([style*="color: #10b981"]):not([style*="color: #ef4444"]):not([style*="color: #e05260"]):not([style*="color: #b91c1c"]):not([style*="color: #8a5059"]):not([style*="color: #d97706"]):not([style*="color: #f97316"]):not([style*="color: #3b82f6"]):not([style*="color: #a855f7"]):not([style*="color: #fbbf24"]):not([style*="color: #60a5fa"]):not([style*="color: #38bdf8"]):not([style*="color:#10b981"]):not([style*="color:#ef4444"]):not([style*="color:#e05260"]):not([style*="color:#b91c1c"]):not([style*="color:#8a5059"]):not([style*="color:#d97706"]):not([style*="color:#f97316"]):not([style*="color:#3b82f6"]):not([style*="color:#a855f7"]):not([style*="color:#fbbf24"]):not([style*="color:#60a5fa"]):not([style*="color:#38bdf8"]) {
    color: inherit;
}

[data-theme="fume"] .tabulator-cell .text-secondary,
[data-theme="fume"] .tabulator-cell [style*="var(--text-secondary)"],
[data-theme="fume"] .tabulator-cell [style*="#94a3b8"],
[data-theme="fume"] .tabulator-cell [style*="#64748b"] {
    color: #374151 !important;
}

[data-theme="fume"] .tabulator-cell .text-primary,
[data-theme="fume"] .tabulator-cell [style*="var(--text-primary)"],
[data-theme="fume"] .tabulator-cell [style*="#0f172a"],
[data-theme="fume"] .tabulator-cell [style*="#1e293b"],
[data-theme="fume"] .tabulator-cell [style*="#111827"] {
    color: #111827 !important;
}

/* Füme Monospace Kod Rozetleri (Fiş No, RMA No, Takip No vb.) */
[data-theme="fume"] .tabulator-cell span[style*="monospace"] {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

/* Füme Temada Tablo Durum Etiketleri & Yeşil Rozetler (Parlama Önleyici Tok Zümrüt) */
[data-theme="fume"] .tabulator-cell [style*="10b981"],
[data-theme="fume"] .tabulator-cell [style*="34d399"],
[data-theme="fume"] .tabulator-cell [style*="059669"],
[data-theme="fume"] .tabulator-cell [style*="rgba(16,185,129"],
[data-theme="fume"] .tabulator-cell [style*="rgba(16, 185, 129"],
[data-theme="fume"] .tabulator-cell [style*="rgba(52,211,153"],
[data-theme="fume"] .tabulator-cell [style*="rgba(5,150,105"],
[data-theme="fume"] .tabulator-cell [style*="var(--success)"],
[data-theme="fume"] .tabulator-cell .badge,
[data-theme="fume"] .tabulator-cell .status-badge,
[data-theme="fume"] .tabulator-cell .re-status-badge,
[data-theme="fume"] .tabulator-cell .einvoice-pill.success,
[data-theme="fume"] .excel-table td [style*="10b981"],
[data-theme="fume"] .excel-table td [style*="rgba(16,185,129"],
[data-theme="fume"] table.excel-table td [style*="10b981"],
[data-theme="fume"] .theme-panel table td [style*="10b981"],
[data-theme="fume"] .theme-panel table td [style*="rgba(16,185,129"] {
    background: rgba(5, 150, 105, 0.12) !important;
    color: #065f46 !important;
    border-color: rgba(5, 150, 105, 0.3) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

[data-theme="fume"] .tabulator-cell [style*="10b981"] svg,
[data-theme="fume"] .tabulator-cell [style*="34d399"] svg,
[data-theme="fume"] .tabulator-cell [style*="059669"] svg,
[data-theme="fume"] .tabulator-cell [style*="rgba(16,185,129"] svg,
[data-theme="fume"] .tabulator-cell [style*="var(--success)"] svg {
    stroke: #065f46 !important;
}

/* Füme Temada Kırmızı / Gider Rozetleri (Dumanlı Rose) */
[data-theme="fume"] .tabulator-cell [style*="ef4444"],
[data-theme="fume"] .tabulator-cell [style*="rgba(239,68,68"],
[data-theme="fume"] .tabulator-cell [style*="rgba(239, 68, 68"],
[data-theme="fume"] .tabulator-cell [style*="b91c1c"],
[data-theme="fume"] .excel-table td [style*="ef4444"],
[data-theme="fume"] .excel-table td [style*="rgba(239,68,68"],
[data-theme="fume"] .theme-panel table td [style*="ef4444"] {
    background: rgba(138, 80, 89, 0.12) !important;
    color: #8a5059 !important;
    border-color: rgba(138, 80, 89, 0.3) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

[data-theme="fume"] .tabulator-cell [style*="ef4444"] svg,
[data-theme="fume"] .tabulator-cell [style*="rgba(239,68,68"] svg {
    stroke: #8a5059 !important;
}

/* Füme Temada Sarı / Uyarı Rozetleri (Rose Gold) */
[data-theme="fume"] .tabulator-cell [style*="f59e0b"],
[data-theme="fume"] .tabulator-cell [style*="rgba(245,158,11"],
[data-theme="fume"] .tabulator-cell [style*="rgba(245, 158, 11"],
[data-theme="fume"] .excel-table td [style*="f59e0b"],
[data-theme="fume"] .excel-table td [style*="rgba(245,158,11"],
[data-theme="fume"] .theme-panel table td [style*="f59e0b"] {
    background: rgba(183, 110, 121, 0.12) !important;
    color: #9d4d59 !important;
    border-color: rgba(183, 110, 121, 0.3) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

[data-theme="fume"] .tabulator-cell [style*="f59e0b"] svg,
[data-theme="fume"] .tabulator-cell [style*="rgba(245,158,11"] svg {
    stroke: #9d4d59 !important;
}

/* Füme Temada Mavi / Kalem / Bilgi Rozetleri (Tok Çelik Safir) */
[data-theme="fume"] .tabulator-cell [style*="rgba(96, 165, 250"],
[data-theme="fume"] .tabulator-cell [style*="rgba(96,165,250"],
[data-theme="fume"] .tabulator-cell [style*="rgba(59, 130, 246"],
[data-theme="fume"] .tabulator-cell [style*="rgba(59,130,246"],
[data-theme="fume"] .tabulator-cell [style*="rgba(56, 189, 248"],
[data-theme="fume"] .tabulator-cell [style*="rgba(56,189,248"],
[data-theme="fume"] .tabulator-cell [style*="border-radius"][style*="60a5fa"],
[data-theme="fume"] .tabulator-cell [style*="border-radius"][style*="3b82f6"],
[data-theme="fume"] .excel-table td [style*="rgba(96,165,250"],
[data-theme="fume"] .excel-table td [style*="rgba(59,130,246"],
[data-theme="fume"] .excel-table td [style*="border-radius"][style*="60a5fa"],
[data-theme="fume"] .theme-panel table td [style*="rgba(96,165,250"],
[data-theme="fume"] .theme-panel table td [style*="rgba(59,130,246"],
[data-theme="fume"] .theme-panel table td [style*="border-radius"][style*="60a5fa"] {
    background: rgba(30, 64, 175, 0.10) !important;
    color: #1e40af !important;
    border-color: rgba(30, 64, 175, 0.28) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Füme Temada Düz Mavi Metinler */
[data-theme="fume"] .tabulator-cell [style*="60a5fa"],
[data-theme="fume"] .tabulator-cell [style*="3b82f6"],
[data-theme="fume"] .tabulator-cell [style*="38bdf8"],
[data-theme="fume"] .tabulator-cell [style*="93c5fd"],
[data-theme="fume"] .excel-table td [style*="60a5fa"],
[data-theme="fume"] .excel-table td [style*="3b82f6"],
[data-theme="fume"] .theme-panel table td [style*="60a5fa"],
[data-theme="fume"] .theme-panel table td [style*="3b82f6"] {
    color: #1e40af !important;
}

[data-theme="fume"] .tabulator-cell [style*="60a5fa"] svg,
[data-theme="fume"] .tabulator-cell [style*="3b82f6"] svg,
[data-theme="fume"] .tabulator-cell [style*="rgba(96,165,250"] svg {
    stroke: #1e40af !important;
}

/* Tablo İçi İşlem Butonları Sıfırlama (Rozet stillerinin butonlara kutu/kenarlık yapmasını engeller) */
.tabulator-cell button,
[data-theme="fume"] .tabulator-cell button,
.excel-table td button,
[data-theme="fume"] .excel-table td button,
.theme-panel table td button,
[data-theme="fume"] .theme-panel table td button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: unset !important;
}

/* Tablo İçi İkonik İşlem Butonları (Arşiv, WhatsApp, Düzenle, Sil) - Tüm Temalarda Birebir Aynı ve Simetrik */
.table-action-btn,
.tabulator-cell .table-action-btn,
[data-theme="fume"] .tabulator-cell .table-action-btn,
.excel-table td .table-action-btn,
[data-theme="fume"] .excel-table td .table-action-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: background 0.15s ease !important;
}

.table-action-btn:hover,
.tabulator-cell .table-action-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="fume"] .table-action-btn:hover,
[data-theme="fume"] .tabulator-cell .table-action-btn:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}

.table-action-btn svg,
.tabulator-cell .table-action-btn svg,
[data-theme="fume"] .tabulator-cell .table-action-btn svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    flex-shrink: 0 !important;
}

/* SKU / Stok Kodu Rozeti Standardı */
.sku-badge {
    display: inline-block;
    font-family: var(--font-mono, monospace) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: 4px !important;
    padding: 2px 7px !important;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

/* Füme Temada SKU / Stok Kodu Rozeti (Tok Çelik Safir Monospace) */
[data-theme="fume"] .sku-badge,
[data-theme="fume"] .tabulator-cell .sku-badge,
[data-theme="fume"] .tabulator-cell [style*="ff6b6b"],
[data-theme="fume"] .tabulator-cell [style*="rgba(255,0,0"],
[data-theme="fume"] .tabulator-cell [style*="rgba(255, 0, 0"],
[data-theme="fume"] .excel-table td .sku-badge,
[data-theme="fume"] .excel-table td [style*="ff6b6b"],
[data-theme="fume"] .excel-table td [style*="rgba(255,0,0"],
[data-theme="fume"] .theme-panel table td .sku-badge,
[data-theme="fume"] .theme-panel table td [style*="ff6b6b"] {
    background: rgba(30, 64, 175, 0.09) !important;
    color: #1e40af !important;
    border: 1px solid rgba(30, 64, 175, 0.25) !important;
    font-weight: 600 !important;
    font-family: var(--font-mono, monospace) !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Füme Footer & Pagination */
[data-theme="fume"] .tabulator .tabulator-footer {
    background-color: var(--bg-surface, #e2e8f0) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.14) !important;
    color: #374151 !important;
}

[data-theme="fume"] .tabulator .tabulator-footer .tabulator-paginator {
    color: #374151 !important;
}

[data-theme="fume"] .tabulator .tabulator-footer .tabulator-page {
    background: rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #111827 !important;
}

[data-theme="fume"] .tabulator .tabulator-footer .tabulator-page.active {
    background: #374151 !important;
    color: #ffffff !important;
    border-color: #374151 !important;
}

.tabulator .tabulator-footer .tabulator-page:hover:not(.disabled) {
    background: var(--bg-hover, rgba(255, 255, 255, 0.15)) !important;
    color: var(--accent-color, #0ea5e9) !important;
    border-color: var(--accent-color, #0ea5e9) !important;
}

.tabulator .tabulator-footer .tabulator-page.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.tabulator .tabulator-footer .tabulator-page-size {
    background: var(--bg-surface, #0f172a) !important;
    color: var(--text-primary, #ffffff) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2)) !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.82rem !important;
}

[data-theme="fume"] .tabulator .tabulator-footer .tabulator-page-size {
    background: rgba(255, 255, 255, 0.75) !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}




/* ==========================================================================
   THREE-T ŞİRKETİM ERP — MODÜL GÖRÜNÜMLERİ, WIDGETLAR & MOBİL KART DÜZENLERİ
   css/modules_views.css
   ========================================================================== */

/* ==========================================================================
   KOLAY E-FATURA / ŞİRKETİM ORTAK MASAÜSTÜ ARAYÜZ YÖNETİMİ
   ========================================================================== */

/* Varsayılan Şirketim ERP paketlerinde KPI wrapper gizli kalır */
#main-screen-kpi-wrapper {
    display: none;
}

/* Kolay e-Fatura paketinde: Masaüstündeki ŞİRKETİM logosu, Google arama çubuğu, harici web app kartları ve modül ekle butonu gizlenir */
html.lisans-kolay-fatura .main-bg-logo,
body.lisans-kolay-fatura .main-bg-logo,
html.lisans-kolay-fatura #desktop-google-search-widget,
body.lisans-kolay-fatura #desktop-google-search-widget,
html.lisans-kolay-fatura #desktop-apps-canvas,
body.lisans-kolay-fatura #desktop-apps-canvas,
html.lisans-kolay-fatura #sidebarAddModuleWrapper,
body.lisans-kolay-fatura #sidebarAddModuleWrapper {
    display: none !important;
}

/* Kolay e-Fatura paketinde: Ana ekranda 4'lü Finansal Özet kokpiti açılır */
html.lisans-kolay-fatura #main-screen-kpi-wrapper,
body.lisans-kolay-fatura #main-screen-kpi-wrapper {
    display: flex !important;
}

/* Kolay e-Fatura Üst Çubuk Tuş Düzeni: Solda 2 Tuş (Menü + Duyurular), Sağda 2 Tuş (Son Hareketler + Ayarlar) */
html.lisans-kolay-fatura .top-header-nav #sidebarToggle,
body.lisans-kolay-fatura .top-header-nav #sidebarToggle {
    order: 1 !important;
}

html.lisans-kolay-fatura .top-header-nav #announcementSection,
body.lisans-kolay-fatura .top-header-nav #announcementSection {
    order: 2 !important;
}

html.lisans-kolay-fatura .top-header-nav .top-header-spacer,
body.lisans-kolay-fatura .top-header-nav .top-header-spacer {
    order: 3 !important;
}

html.lisans-kolay-fatura .top-header-nav #adminBranchSelectorContainer,
body.lisans-kolay-fatura .top-header-nav #adminBranchSelectorContainer {
    order: 4 !important;
}

html.lisans-kolay-fatura .top-header-nav #staffManagementSection,
body.lisans-kolay-fatura .top-header-nav #staffManagementSection {
    order: 5 !important;
}

html.lisans-kolay-fatura .top-header-nav #personnel-name-display,
body.lisans-kolay-fatura .top-header-nav #personnel-name-display {
    order: 6 !important;
}

html.lisans-kolay-fatura .top-header-nav #rightSidebarToggle,
body.lisans-kolay-fatura .top-header-nav #rightSidebarToggle {
    order: 7 !important;
}

html.lisans-kolay-fatura .top-header-nav #settingsSidebarToggle,
body.lisans-kolay-fatura .top-header-nav #settingsSidebarToggle {
    order: 8 !important;
}

@media (max-width: 960px) {
    #main-screen-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 540px) {
    #main-screen-kpi-grid {
        grid-template-columns: 1fr !important;
    }
    #main-screen-kpi-wrapper {
        margin-top: 15px !important;
        padding: 0 12px !important;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   GOOGLE MASAÜSTÜ ARAMA WIDGET'I (TABLET / OS STİLİ - SÜRÜKLENEBİLİR)
   ========================================================================== */
#desktop-google-search-widget {
    width: 90%;
    max-width: 620px;
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    animation: googleWidgetSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

@keyframes googleWidgetSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 18px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.google-search-bar {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    background: rgba(30, 41, 59, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 6px 8px 6px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#desktop-google-search-input {
    min-width: 0 !important;
}

.google-search-bar:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.google-search-bar:focus-within {
    border-color: #0ea5e9 !important;
    background: rgba(15, 23, 42, 0.94) !important;
    box-shadow: 0 14px 35px rgba(14, 165, 233, 0.25), 0 0 0 2px rgba(14, 165, 233, 0.2) !important;
}

[data-theme='fume'] .google-search-bar {
    background: rgba(45, 55, 72, 0.72);
    border-color: rgba(255, 255, 255, 0.14);
}

[data-theme='fume'] .google-search-bar:hover {
    background: rgba(45, 55, 72, 0.88);
}

[data-theme='fume'] .google-search-bar:focus-within {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: #0ea5e9 !important;
}

.desktop-widget-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    padding: 6px 4px 6px 2px;
    margin-right: 6px;
    color: var(--text-secondary, #94a3b8);
    opacity: 0.45;
    transition: opacity 0.2s, color 0.2s;
    flex-shrink: 0;
}

.desktop-widget-drag-handle:hover {
    opacity: 1;
    color: #38bdf8;
}

/* ==========================================================================
   MASAÜSTÜ CANLI SAAT & TARİH WIDGET'I (TABLET / WEB OS)
   ========================================================================== */
#desktop-clock-widget {
    position: fixed;
    top: 35px;
    right: 95px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 41, 59, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 9px 18px 9px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: grab;
    user-select: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.2s;
    animation: clockWidgetFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='fume'] #desktop-clock-widget {
    background: rgba(45, 55, 72, 0.72);
    border-color: rgba(255, 255, 255, 0.14);
}

#desktop-clock-widget:hover {
    border-color: rgba(14, 165, 233, 0.45);
    background: rgba(30, 41, 59, 0.88);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45), 0 0 15px rgba(14, 165, 233, 0.15);
}

[data-theme='fume'] #desktop-clock-widget:hover {
    background: rgba(45, 55, 72, 0.88);
}

#desktop-clock-widget:active {
    cursor: grabbing;
}

@keyframes clockWidgetFadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.desktop-clock-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #94a3b8);
    opacity: 0.45;
    transition: opacity 0.2s, color 0.2s;
    flex-shrink: 0;
}

#desktop-clock-widget:hover .desktop-clock-drag-handle {
    opacity: 1;
    color: #38bdf8;
}

.desktop-clock-content {
    display: flex;
    flex-direction: column;
}

.desktop-clock-time-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.desktop-clock-digits {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.desktop-clock-seconds {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    color: #38bdf8;
    opacity: 0.9;
    font-variant-numeric: tabular-nums;
}

.desktop-clock-date-row {
    margin-top: 3px;
}

.desktop-clock-date {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.desktop-widget-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s, background 0.2s;
    z-index: 40;
    padding: 0;
}

#desktop-clock-widget:hover .desktop-widget-close-btn,
#desktop-google-search-widget:hover .desktop-widget-close-btn {
    display: flex;
}

.desktop-widget-close-btn:hover {
    background: #dc2626;
    transform: scale(1.15);
}

/* ==========================================================================
   TABLET & MASAÜSTÜ UYGULAMA İKONLARI & CANVAS (WEB OS)
   ========================================================================== */
#desktop-apps-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
}

.desktop-app-card {
    position: absolute;
    width: 88px;
    height: 98px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    cursor: grab;
    pointer-events: auto;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
}

.desktop-app-card:hover {
    transform: translateY(-4px) scale(1.04);
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(14, 165, 233, 0.25);
}

.desktop-app-card:active {
    cursor: grabbing;
}

.desktop-app-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.desktop-app-card:hover .desktop-app-icon-bubble {
    transform: scale(1.06);
}

.desktop-app-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.desktop-app-delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
    z-index: 20;
}

.desktop-app-delete-btn:hover {
    transform: scale(1.15);
    background: #dc2626;
}

.desktop-app-card:hover .desktop-app-delete-btn {
    display: flex;
}

[data-theme='fume'] .desktop-app-card {
    background: rgba(45, 55, 72, 0.68);
    border-color: rgba(255, 255, 255, 0.14);
}

[data-theme='fume'] .desktop-app-card:hover {
    background: rgba(45, 55, 72, 0.88);
}

/* ============================================================
   KOLAY E-FATURA — MOBİL DOKUNMATİK UYUMLULUK & AKILLI KART SİSTEMİ
   ============================================================ */
.tab-label-mobile {
    display: none;
}

.tab-label-full {
    display: inline;
}

.kolay-mobile-card-feed {
    display: none;
    width: 100%;
}

.mobile-invoice-card {
    background: var(--bg-surface, #1e293b);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.mobile-invoice-card:active {
    transform: scale(0.985);
    border-color: var(--accent-primary);
}

.mobile-invoice-card .card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.inv-dir-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.pill-giden {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.pill-gelen {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.inv-card-no {
    font-size: 0.82rem;
    color: var(--text-primary, #ffffff);
    font-family: monospace;
}

.inv-card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-draft {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.mobile-invoice-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.inv-card-customer {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    line-height: 1.25;
}

.inv-card-vkn {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
}

.mobile-invoice-card .card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
}

.inv-card-date {
    font-size: 0.78rem;
    color: var(--text-secondary, #94a3b8);
}

.inv-card-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.card-quick-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.btn-card-act {
    flex: 1;
    padding: 7px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    color: var(--text-primary, #ffffff);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-card-act:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-card-wa {
    background: rgba(37, 211, 102, 0.12) !important;
    color: #25d366 !important;
    border-color: rgba(37, 211, 102, 0.3) !important;
}

.kolay-empty-state {
    text-align: center;
    padding: 30px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    margin-top: 6px;
    box-sizing: border-box;
}

/* ==========================================================================
   MAĞAZA VE CÜZDAN MASAÜSTÜ & GENEL DÜZEN (STORE & WALLET)
   ========================================================================== */
.store-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.store-custom-pkg-hero {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin-bottom: 32px;
    box-sizing: border-box;
    gap: 40px;
}

.store-hero-left-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    padding-top: 40px;
    box-sizing: border-box;
}

.store-hero-right-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.store-custom-pkg-card-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
}

.store-billing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 16px 0;
    width: 100%;
    box-sizing: border-box;
}

.store-pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.store-integration-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.store-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.store-credits-grid,
.store-credits-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

.pkg-credit-card,
.store-credits-grid .pkg-credit-card,
.store-credits-container .pkg-credit-card {
    width: 320px !important;
    min-width: 280px !important;
    max-width: 320px !important;
    flex: 0 0 320px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    /* Kolay e-Fatura Mobilde: Ana ekranda akıllı kartlar yer kapladığından Hızlı İşlemler çekmecesindeki 'Ana Ekran Uygulamaları' tuşu gizlenir */
    html.lisans-kolay-fatura #settings-desktop-apps-section,
    body.lisans-kolay-fatura #settings-desktop-apps-section {
        display: none !important;
    }

    .tab-label-full {
        display: none !important;
    }

    .tab-label-mobile {
        display: inline !important;
    }

    /* Tablolar mobilde gizlenir, yerine kart beslemesi açılır */
    #kolay-einvoice-table,
    #kolay-accounts-table,
    #kolay-archive-table {
        display: none !important;
    }

    #kolay-einvoice-cards,
    #kolay-accounts-cards,
    #kolay-archive-cards {
        display: flex !important;
    }

    #module-view-container {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 6px 10px 96px 10px !important;
    }

    #module-view-content {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    /* Modül sayfası açıkken ana ekran başlığı KESİNLİKLE gizlenir */
    .main-content>header.top-header[style*="display: none"],
    #module-view-container:not([style*="display: none"])~header.top-header {
        display: none !important;
    }

    /* Ana Ekran (Dashboard) Başlığı ve Üst Tuşların Yerleşimi */
    .main-content>header.top-header:not([style*="display: none"]) {
        display: block !important;
        width: 100% !important;
        margin-bottom: 44px !important;
        position: relative !important;
        z-index: 100 !important;
    }

    .top-header-spacer {
        display: none !important;
    }

    .top-header-nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .main-content>header.top-header #sidebarToggle,
    .main-content>header.top-header #rightSidebarToggle,
    .main-content>header.top-header #announcementSidebarToggle,
    .main-content>header.top-header #settingsSidebarToggle,
    .main-content>header.top-header #branchSidebarToggle,
    .main-content>header.top-header #openStaffModalBtn {
        width: 44px !important;
        height: 38px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .main-content>header.top-header #announcementSection {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        width: 44px !important;
        height: 38px !important;
    }

    .main-content>header.top-header #announcementSection[style*="display: none"] {
        display: none !important;
    }

    #welcomeText {
        top: 50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.5px !important;
        text-align: center !important;
        pointer-events: none !important;
        z-index: 10 !important;
    }

    #module-view-container .top-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
        margin-bottom: 6px !important;
        width: 100% !important;
    }

    #module-view-container .top-header>div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    #module-view-container #module-view-title {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
    }

    #kolay-efatura-dynamic-title {
        display: none !important;
    }

    #module-view-container #module-header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-shrink: 0 !important;
    }

    .kolay-header-badge {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .kolay-efatura-main-wrapper {
        flex-direction: column !important;
        gap: 8px !important;
        height: auto !important;
        overflow: visible !important;
    }

    .kolay-efatura-sidebar {
        width: 100% !important;
        height: auto !important;
        border-radius: var(--radius-md) !important;
        flex-shrink: 0 !important;
        margin-bottom: 2px !important;
    }

    .kolay-efatura-sidebar .custom-scrollbar {
        flex-direction: row !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        padding: 4px !important;
        gap: 4px !important;
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .kolay-efatura-sidebar-title {
        display: none !important;
    }

    .kolay-efatura-tab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 8px 4px !important;
        font-size: 0.8rem !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        gap: 5px !important;
        border-radius: 8px !important;
    }

    .kolay-efatura-tab-btn svg {
        width: 15px !important;
        height: 15px !important;
        flex-shrink: 0 !important;
    }

    /* KPI Metrikleri Mobilde 2x2 Simetrik Izgara (Tümü görünür, 0 taşma) */
    .kolay-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .kolay-kpi-card {
        padding: 8px 12px !important;
        min-height: 48px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    .kpi-card-title {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
    }

    .kpi-card-val {
        font-size: 1.05rem !important;
        margin-top: 1px !important;
        line-height: 1.2 !important;
    }

    .kpi-card-subtext {
        display: none !important;
    }

    /* Mobil Toolbar & Segmented Control */
    .kolay-mobile-toolbar {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #kolay-efatura-tab-container>.theme-panel {
        padding: 12px 10px !important;
    }

    .kolay-mobile-toolbar {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .kolay-mobile-toolbar input.theme-input {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 0.84rem !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    .kolay-tab-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .kolay-segmented-control {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(0, 0, 0, 0.35) !important;
        border-radius: 10px !important;
        padding: 3px !important;
        gap: 3px !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        overflow: hidden !important;
    }

    .filter-btn,
    .archive-filter-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: 0 !important;
        padding: 7px 4px !important;
        font-size: 0.80rem !important;
        text-align: center !important;
        white-space: nowrap !important;
        border-radius: 7px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .kolay-tab-toolbar>div:last-child {
        width: 100% !important;
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
    }

    .kolay-tab-toolbar input {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        font-size: 0.82rem !important;
        padding: 7px 10px !important;
        box-sizing: border-box !important;
    }

    #btn-kolay-refresh-gib,
    #btn-einvoice-actions-toggle,
    #btn-accounts-actions-toggle,
    #btn-archive-actions-toggle {
        padding: 7px 10px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    #kolay-efatura-content-area,
    #kolay-efatura-tab-container {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    /* Google Arama Çubuğu - Mobil Uyumlu ve Büyüteç Taşmasını Önleyici Yapı */
    #desktop-google-search-widget {
        width: calc(100% - 24px) !important;
        max-width: 480px !important;
        bottom: 80px !important;
    }

    .google-search-bar {
        padding: 4px 6px 4px 10px !important;
        box-sizing: border-box !important;
    }

    .desktop-widget-drag-handle {
        display: none !important;
    }

    .google-search-bar .google-logo-wrapper {
        margin-right: 8px !important;
    }

    #desktop-google-search-input {
        min-width: 0 !important;
        flex: 1 1 0 !important;
        font-size: 0.88rem !important;
        padding: 6px 4px !important;
    }

    .google-search-bar .google-submit-btn,
    .google-search-bar button[type="submit"] {
        flex-shrink: 0 !important;
        margin: 0 !important;
        width: 32px !important;
        height: 32px !important;
    }

    .kolay-efatura-mobile-fab {
        display: flex !important;
        bottom: 12px !important;
        width: calc(100% - 20px) !important;
        padding: 13px 16px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }

    /* Mağaza & Lisanslar Başlık & Geri Tuşu */
    #module-view-container .top-header {
        padding-bottom: 12px !important;
        margin-bottom: 16px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    #module-view-container .top-header>div:first-child {
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    #module-view-container #back-to-dashboard-btn {
        padding: 6px 10px !important;
        flex-shrink: 0 !important;
        min-width: 36px !important;
        height: 36px !important;
    }

    #module-view-container #module-view-title {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
        line-height: 1.2 !important;
    }

    #module-view-container #wallet-info-btn {
        margin-right: 0 !important;
        margin-left: auto !important;
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        gap: 5px !important;
        height: 36px !important;
        align-items: center !important;
    }

    #module-view-container #wallet-info-btn[style*="display: none"] {
        display: none !important;
    }

    #module-view-container #wallet-info-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Mağaza Modülü Mobil Düzeni */
    .store-container {
        padding: 0 0 100px 0 !important;
        overflow-x: hidden !important;
    }

    .store-container h2 {
        font-size: 1.25rem !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    .store-container h2 span {
        font-size: 1.35rem !important;
    }

    .store-custom-pkg-hero {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .store-hero-left-text,
    .store-hero-right-text {
        display: none !important;
    }

    .store-custom-pkg-card-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .store-custom-pkg-card-wrapper .pkg-card {
        padding: 18px 16px !important;
        border-radius: var(--radius-md) !important;
        gap: 12px !important;
    }

    .store-billing-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .store-pkg-grid,
    .store-addons-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .store-integration-grid {
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .store-pkg-grid .pkg-card,
    .store-addons-grid .pkg-card,
    .store-integration-grid .pkg-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 18px 16px !important;
    }

    /* Cüzdan Paneli (Drawer) */
    #wallet-info-panel {
        width: 100% !important;
        max-width: 100% !important;
        border-left: none !important;
        border-radius: 0 !important;
    }

    #wallet-panel-body-content {
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    /* Ödeme Modalı Mobilde Yığılı Düzen */
    #payment-modal {
        padding: 8px !important;
    }

    #payment-modal>div {
        max-height: 96vh !important;
        border-radius: 12px !important;
    }

    #payment-modal>div>div:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        padding: 14px 16px !important;
        gap: 16px !important;
        overflow-y: auto !important;
    }

    /* Özel Paket Sihirbazı Modalı Mobilde Yığılı Düzen */
    #custom-package-wizard-modal {
        padding: 8px !important;
    }

    #custom-package-wizard-modal>div {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 96vh !important;
        border-radius: 12px !important;
    }

    #custom-package-wizard-modal .wizard-grid-2col,
    #custom-package-wizard-modal [style*="grid-template-columns: repeat(2, 1fr)"],
    #custom-package-wizard-modal [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* ==========================================================================
       MOBİL SOL & SAĞ YAN PANELLER (DİPTEKİ TUŞLARIN HİZASI)
       ========================================================================== */
    .sidebar {
        height: 100% !important;
        height: 100dvh !important;
        z-index: 10005 !important;
    }

    /* Sol panelde Kurumsal Şirket Profili dipte dengeli tutulur */
    .sidebar .user-profile {
        border-top: 1px solid var(--border-color) !important;
        padding: 12px 14px !important;
        margin-bottom: 16px !important;
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .sidebar .nav-links {
        padding: 10px 12px 16px 12px !important;
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .right-sidebar {
        height: 100% !important;
        height: 100dvh !important;
        z-index: 10005 !important;
    }

    /* Sağ panelde Mağaza & Cüzdan tuşu dipte dengeli tutulur */
    #settingsSidebar #settings-store-section {
        margin-top: auto !important;
        margin-bottom: 16px !important;
        padding-bottom: 0 !important;
    }

    #settingsSidebar #settingsSidebarContent,
    #settingsSidebar>div:nth-child(2) {
        padding: 20px 20px 16px 20px !important;
    }
}

.kolay-efatura-mobile-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: calc(100% - 32px);
    max-width: 420px;
    padding: 13px 20px;
    border-radius: 10px;
    background: var(--accent-primary);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

[data-theme="fume"] .kolay-efatura-mobile-fab {
    background: var(--accent-primary);
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.kolay-efatura-mobile-fab:hover {
    background: var(--accent-primary-hover);
}

.kolay-efatura-mobile-fab:active {
    transform: translateX(-50%) scale(0.98);
}

/* ==========================================================================
   ANA EKRAN UYGULAMALARI VE ARAÇLAR MODALI - MOBİL & MASAÜSTÜ DUYARLI TASARIM
   ========================================================================== */
#desktop-apps-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 10000000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#desktop-apps-modal .desktop-apps-modal-dialog {
    width: 600px;
    max-width: 95vw;
    max-height: 88vh;
    overflow: hidden;
    padding: 22px 24px;
    border-radius: var(--radius-lg, 16px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    background-color: var(--bg-modal-solid, #1e293b) !important;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.desktop-apps-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    gap: 12px;
    box-sizing: border-box;
}

.desktop-apps-item-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.desktop-apps-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.desktop-apps-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.desktop-apps-item-text {
    flex: 1;
    min-width: 0;
}

.desktop-apps-item-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desktop-apps-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desktop-apps-action-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Mobil Ekranlar (<= 640px) */
@media (max-width: 640px) {
    #desktop-apps-modal {
        padding: 10px !important;
    }

    #desktop-apps-modal .desktop-apps-modal-dialog {
        padding: 16px 14px !important;
        max-height: 92vh !important;
        gap: 10px !important;
        border-radius: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .desktop-apps-item-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 11px 12px !important;
        gap: 10px !important;
    }

    .desktop-apps-item-info {
        width: 100% !important;
        gap: 10px !important;
    }

    .desktop-apps-item-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    .desktop-apps-item-title {
        font-size: 0.9rem !important;
        white-space: normal !important;
    }

    .desktop-apps-item-desc {
        font-size: 0.75rem !important;
        margin-top: 1px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    .desktop-apps-action-btn {
        width: 100% !important;
        height: 36px !important;
        padding: 0 12px !important;
        font-size: 0.82rem !important;
    }
}


/* --- Module Open Taskbar Prevention --- */
body.module-is-open #bottomFloatingBar,
html.module-is-open #bottomFloatingBar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
