/* ==========================================================================
   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;
}





