﻿/* ==========================================================================
   DST ENTERPRISE CORE DESIGN SYSTEM (COMPLETE MASTER STYLESHEET - 100% FULL CODE)
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL FINTECH TOKENS (LIGHT & DARK DUAL THEME - EYE COMFORT UPGRADE)
   ========================================================================== */

/* ☀️ 1.1 LIGHT THEME (Crystal-Clear Soft Minimalist - Zero Eye Fatigue) */
:root {
    color-scheme: light;
    --dst-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --dst-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --dst-canvas: #f4f6f9;
    --dst-surface: #ffffff;
    --dst-surface-hover: #edf2f7;
    --dst-surface-subtle: #f8fafc;
    --dst-border: #d8dee4;
    --dst-border-strong: #cbd5e1;
    --dst-border-subtle: #eaeef2;
    --dst-text-main: #0f172a;
    --dst-text-nav: #1e293b;
    --dst-text-muted: #334155;
    --dst-text-subtle: #64748b;
    --dst-primary: #3730a3;
    --dst-primary-accent: #4f46e5;
    --dst-primary-subtle: #eef2ff;
    --dst-primary-hover: #312e81;
    --dst-emerald: #047857;
    --dst-emerald-subtle: #ecfdf5;
    --dst-rose: #be123c;
    --dst-rose-subtle: #fff1f2;
    --dst-amber: #b45309;
    --dst-amber-subtle: #fffbeb;
    --dst-cyan: #0e7490;
    --dst-indigo: #4f46e5;
    --dst-topbar-bg: #ffffff;
    --dst-topbar-border: #d8dee4;
    --dst-topbar-text: #0f172a;
    --dst-topbar-icon: #334155;
    --dst-topbar-input-bg: #f8fafc;
    --dst-topbar-input-border: #cbd5e1;
    --dst-topbar-input-text: #0f172a;
    --dst-sidebar-bg: #ffffff;
    --dst-sidebar-border: #d8dee4;
    --dst-scrollbar-track: #f1f5f9;
    --dst-scrollbar-thumb: #cbd5e1;
    --dst-scrollbar-thumb-hover: #94a3b8;
    --dst-input-bg: #ffffff;
    --dst-input-border: #cbd5e1;
    --dst-input-text: #0f172a;
    --dst-input-placeholder: #64748b;
    --dst-shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --dst-shadow-dropdown: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --dst-error: #e11d48;
    --dst-error-subtle: #fff1f2;
 
}

/* 🌙 1.2 DARK THEME (OLED Deep Slate - Soft on Eyes at Night) */
[data-theme="dark"], body.dark-mode {
    color-scheme: dark;
    --dst-canvas: #070a12;
    --dst-surface: #0b1120;
    --dst-surface-hover: #131d31;
    --dst-surface-subtle: #0d1526;
    --dst-border: #1e293b;
    --dst-border-strong: #334155;
    --dst-border-subtle: #162032;
    --dst-text-main: #f1f5f9;
    --dst-text-nav: #ffffff;
    --dst-text-muted: #e2e8f0;
    --dst-text-subtle: #94a3b8;
    --dst-primary: #38bdf8;
    --dst-primary-accent: #38bdf8;
    --dst-primary-subtle: rgba(56, 189, 248, 0.12);
    --dst-primary-hover: #7dd3fc;
    --dst-cyan: #22d3ee;
    --dst-indigo: #818cf8;
    --dst-topbar-bg: #0b1120;
    --dst-topbar-border: #1e293b;
    --dst-topbar-text: #ffffff;
    --dst-topbar-icon: #cbd5e1;
    --dst-topbar-input-bg: #070a12;
    --dst-topbar-input-border: #334155;
    --dst-topbar-input-text: #ffffff;
    --dst-sidebar-bg: #0b1120;
    --dst-sidebar-border: #1e293b;
    --dst-scrollbar-track: #070a12;
    --dst-scrollbar-thumb: #334155;
    --dst-scrollbar-thumb-hover: #475569;
    --dst-input-bg: #070a12;
    --dst-input-border: #334155;
    --dst-input-text: #ffffff;
    --dst-input-placeholder: #64748b;
    --dst-shadow-card: 0 4px 12px -2px rgba(0, 0, 0, 0.6);
    --dst-shadow-dropdown: 0 20px 40px rgba(0, 0, 0, 0.8);
    --dst-error: #fb7185;
    --dst-error-subtle: rgba(244, 63, 94, 0.15);

}

/* --------------------------------------------------------------------------
   1.3 DYNAMIC ACCENT ENGINE (Professional & Muted Luxury Tones)
   -------------------------------------------------------------------------- */
[data-accent="purple"] {
    --dst-primary: #7c3aed;
    --dst-primary-accent: #8b5cf6;
    --dst-primary-subtle: #f3e8ff;
    --dst-primary-hover: #6d28d9;
    --dst-topbar-bg: #4c1d95;
    --dst-topbar-border: #7c3aed;
    --dst-topbar-text: #ffffff;
    --dst-topbar-icon: #ddd6fe;
    --dst-topbar-input-bg: rgba(255, 255, 255, 0.1);
    --dst-topbar-input-border: rgba(196, 181, 253, 0.3);
    --dst-topbar-input-text: #ffffff;
}

[data-theme="dark"][data-accent="purple"] {
    --dst-primary: #a78bfa;
    --dst-primary-accent: #c4b5fd;
    --dst-primary-subtle: rgba(139, 92, 246, 0.15);
    --dst-primary-hover: #8b5cf6;
    --dst-topbar-bg: #170b2e;
    --dst-topbar-border: #2e1065;
}

[data-accent="navy"] {
    --dst-primary: #1e40af;
    --dst-primary-accent: #2563eb;
    --dst-primary-subtle: #eff6ff;
    --dst-primary-hover: #1d4ed8;
    --dst-topbar-bg: #1e3a8a; /* इसे और हल्का कर सकते हैं */
    --dst-topbar-border: #3b82f6;
    --dst-topbar-text: #ffffff;
    --dst-topbar-icon: #cbd5e1;
    --dst-topbar-input-bg: rgba(255, 255, 255, 0.08);
    --dst-topbar-input-border: rgba(148, 163, 184, 0.25);
    --dst-topbar-input-text: #ffffff;
}

[data-theme="dark"][data-accent="navy"] {
    --dst-primary: #3b82f6;
    --dst-primary-accent: #60a5fa;
    --dst-primary-subtle: rgba(59, 130, 246, 0.15);
    --dst-primary-hover: #2563eb;
    --dst-topbar-bg: #090e17;
    --dst-topbar-border: #131d31;
}

[data-accent="green"] {
    --dst-primary: #065f46;
    --dst-primary-accent: #059669;
    --dst-primary-subtle: #ecfdf5;
    --dst-primary-hover: #047857;
    --dst-topbar-bg: #047857; /* Pehle se zyada soft aur light green */
    --dst-topbar-border: #059669;
    --dst-topbar-text: #ffffff;
    --dst-topbar-icon: #a7f3d0;
    --dst-topbar-input-bg: rgba(255, 255, 255, 0.08);
    --dst-topbar-input-border: rgba(167, 243, 208, 0.25);
    --dst-topbar-input-text: #ffffff;
}

[data-theme="dark"][data-accent="green"] {
    --dst-primary: #10b981;
    --dst-primary-accent: #34d399;
    --dst-primary-subtle: rgba(16, 185, 129, 0.15);
    --dst-primary-hover: #059669;
    --dst-topbar-bg: #064e3b;
    --dst-topbar-border: #065f46;
}

[data-accent="red"] {
    --dst-primary: #9f1239;
    --dst-primary-accent: #e11d48;
    --dst-primary-subtle: #fff1f2;
    --dst-primary-hover: #be123c;
    --dst-topbar-bg: #be123c;
    --dst-topbar-border: #e11d48;
    --dst-topbar-text: #ffffff;
    --dst-topbar-icon: #fecdd3;
    --dst-topbar-input-bg: rgba(255, 255, 255, 0.1);
    --dst-topbar-input-border: rgba(254, 205, 211, 0.25);
    --dst-topbar-input-text: #ffffff;
}

[data-theme="dark"][data-accent="red"] {
    --dst-primary: #f43f5e;
    --dst-primary-accent: #fb7185;
    --dst-primary-subtle: rgba(244, 63, 94, 0.15);
    --dst-primary-hover: #e11d48;
    --dst-topbar-bg: #881337;
    --dst-topbar-border: #9f1239;
}

[data-accent="orange"] {
    --dst-primary: #9a3412;
    --dst-primary-accent: #ea580c;
    --dst-primary-subtle: #fff7ed;
    --dst-primary-hover: #c2410c;
    --dst-topbar-bg: #c2410c; /* Pehle se zyada soft aur light orange */
    --dst-topbar-border: #ea580c;
    --dst-topbar-text: #ffffff;
    --dst-topbar-icon: #fed7aa;
    --dst-topbar-input-bg: rgba(255, 255, 255, 0.1);
    --dst-topbar-input-border: rgba(254, 215, 170, 0.25);
    --dst-topbar-input-text: #ffffff;
}

[data-theme="dark"][data-accent="orange"] {
    --dst-primary: #fb923c;
    --dst-primary-accent: #fdba74;
    --dst-primary-subtle: rgba(249, 115, 22, 0.15);
    --dst-primary-hover: #ea580c;
    --dst-topbar-bg: #7c2d12;
    --dst-topbar-border: #9a3412;
}





/* --------------------------------------------------------------------------
   2. BROWSER RESET, VIEWPORT & ZERO-BLUR TYPOGRAPHY ENGINE
   -------------------------------------------------------------------------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* सेंटर में हल्का ग्लो और किनारों पर धीरे-धीरे थीम के कैनवास रंग में विलीन होने वाला बैकग्राउंड */
    background-color: var(--dst-canvas) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    color: var(--dst-text-main);
    font-family: var(--dst-font-sans);
    /* (बाकी पुरानी प्रॉपर्टीज वैसी ही रहेंगी) */
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
    font-synthesis: none;
    overflow: hidden;
}
*, *::before, *::after {
    box-sizing: border-box;
}

body, .dst-page-shell, input, button, select, textarea {
    font-family: var(--dst-font-sans) !important;
    text-rendering: geometricPrecision !important;
}

.font-monospace, .dst-invoice-code, .dst-date-cell, .dst-total-cell, code, kbd {
    font-family: var(--dst-font-mono) !important;
    font-feature-settings: "tnum" 1, "zero" 1;
    letter-spacing: -0.015em;
    text-rendering: geometricPrecision !important;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--dst-scrollbar-thumb) var(--dst-scrollbar-track);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dst-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--dst-scrollbar-thumb);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--dst-scrollbar-thumb-hover);
    }

.text-rose, .text-danger {
    color: var(--dst-error) !important;
}

.bg-rose-subtle, .bg-danger-subtle {
    background-color: var(--dst-error-subtle) !important;
    color: var(--dst-error) !important;
}

.dst-viewport, .dst-shell {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background-color: transparent!important;
}

.text-primary-accent {
    color: var(--dst-primary-accent);
}

/* --------------------------------------------------------------------------
   2.2 THEME-ADAPTIVE SIDE BORDER UTILITIES (.dst-border-left, etc.)
   -------------------------------------------------------------------------- */

.dst-border {
    border: 1px solid var(--dst-border) !important;
}

.dst-border-top {
    border-top: 1px solid var(--dst-border) !important;
}

.dst-border-bottom {
    border-bottom: 1px solid var(--dst-border) !important;
}

.dst-border-left {
    border-left: 1px solid var(--dst-border) !important;
}

.dst-border-right {
    border-right: 1px solid var(--dst-border) !important;
}
.dst-border-none,
.dst-border-0 {
    border: none !important;
}

/* 🌙 Dark Mode Support for All Border Utilities */
[data-theme="dark"] .dst-border,
[data-theme="dark"] .dst-border-top,
[data-theme="dark"] .dst-border-bottom,
[data-theme="dark"] .dst-border-left,
[data-theme="dark"] .dst-border-right,
body.dark-mode .dst-border,
body.dark-mode .dst-border-top,
body.dark-mode .dst-border-bottom,
body.dark-mode .dst-border-left,
body.dark-mode .dst-border-right {
    border-color: rgba(255, 255, 255, 0.12) !important;
}
/* --------------------------------------------------------------------------
   2.3 THEME-ADAPTIVE MUTED TEXT UTILITY (.dst-text-muted)
   -------------------------------------------------------------------------- */
.dst-text-muted {
    color: var(--dst-text-subtle) !important;
}
/* 🌟 Special Notice / Highlight Text (Light & Dark Mode Adaptive) */
.text-notice {
    color: #996819 !important; /* Light mode custom requested tone */
    font-weight: 600 !important;
    text-rendering: geometricPrecision !important;
}

/* Dark Mode High-Visibility Enhancement */
[data-theme="dark"] .text-notice,
body.dark-mode .text-notice {
    color: #ffca43 !important; /* Dark mode mein high contrast aur glowing gold/amber jo aasaani se ubhar kar dikhe */
    text-shadow: 0 0 12px rgba(255, 202, 67, 0.25); /* Subtle soft glow for extra clarity */
}

.fw-400 {
    font-weight: 400 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.fw-800 {
    font-weight: 800 !important;
}

.fw-900 {
    font-weight: 900 !important;
}
/* --------------------------------------------------------------------------
   3. PINNED EXECUTIVE TOPBAR (COMFORT BALANCED FINISH)
   -------------------------------------------------------------------------- */
.dst-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--dst-header-height, 54px) !important;
    background-color: var(--dst-topbar-bg) !important;
    border-bottom: 1px solid var(--dst-topbar-border) !important;
    color: var(--dst-topbar-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dst-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dst-sidebar-toggle-btn, .dst-sidebar-toggle {
    font-size: 1.3rem !important;
    color: var(--dst-topbar-icon) !important;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

    .dst-sidebar-toggle-btn:hover, .dst-sidebar-toggle:hover {
        transform: scale(1.05);
        color: var(--dst-primary-accent) !important;
    }

.dst-brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
    user-select: none;
    cursor: pointer;
}

.dst-brand-symbol {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
}

.dst-brand-link:hover .dst-brand-symbol {
    transform: scale(1.05);
}

.dst-symbol-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dst-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.dst-brand-title {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dst-logo-mono {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--dst-topbar-text);
}

.dst-logo-accent {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--dst-primary-accent);
}

[data-accent] .dst-logo-accent {
    color: var(--dst-topbar-text);
    opacity: 0.95;
}

.dst-version-pill {
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--dst-surface-subtle);
    color: var(--dst-text-muted);
    border: 1px solid var(--dst-border);
    margin-left: 2px;
}

[data-accent] .dst-version-pill {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.dst-brand-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--dst-topbar-icon);
    margin-top: 2px;
    white-space: nowrap;
}

.dst-search-capsule {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 1.5rem;
    display: flex;
    align-items: center;
}

.dst-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dst-primary-accent) !important;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 3;
}

.dst-search-input {
    width: 100% !important;
    height: 36px !important;
    padding-left: 2.5rem !important;
    padding-right: 2.8rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 6px !important;
    border: 1px solid var(--dst-topbar-input-border) !important;
    background-color: var(--dst-topbar-input-bg) !important;
    color: var(--dst-topbar-input-text) !important;
    font-size: 0.84rem;
    font-weight: 500;
    outline: none;
    box-sizing: border-box !important;
    transition: all 0.15s ease;
}

    .dst-search-input::placeholder {
        color: var(--dst-text-subtle) !important;
        opacity: 0.9 !important;
    }

    .dst-search-input:focus {
        background-color: var(--dst-surface) !important;
        color: var(--dst-text-main) !important;
        border-color: var(--dst-primary-accent) !important;
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--dst-primary-accent) 25%, transparent) !important;
    }

.dst-search-clear-btn {
    position: absolute;
    right: 2.3rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--dst-text-subtle) !important;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    z-index: 3;
}

.dst-search-shortcut {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dst-surface-subtle) !important;
    color: var(--dst-text-muted) !important;
    border: 1px solid var(--dst-border) !important;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 4px;
    z-index: 3;
}

.dst-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dst-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--dst-topbar-icon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    position: relative;
    transition: all 0.15s ease;
}

    .dst-btn-icon:hover, .dst-btn-icon.active {
        background: var(--dst-surface-hover);
        color: var(--dst-text-main);
    }

[data-accent] .dst-btn-icon:hover, [data-accent] .dst-btn-icon.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.dst-theme-toggle {
    color: #eab308 !important;
}

.dst-divider-vertical {
    width: 1px;
    height: 20px;
    background: var(--dst-topbar-border);
    margin: 0 0.45rem;
}

.dst-dot-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
}

.dst-dropdown {
    position: relative;
}

.dst-menu-panel, .dst-topbar .dropdown-menu {
    display: none !important;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff !important;
    border: 1px solid var(--dst-border) !important;
    border-radius: 8px !important;
    box-shadow: var(--dst-shadow-dropdown) !important;
    z-index: 1200;
    overflow: hidden;
    margin: 0 !important;
}

[data-theme="dark"] .dst-menu-panel, [data-theme="dark"] .dst-topbar .dropdown-menu,
body.dark-mode .dst-menu-panel, body.dark-mode .dst-topbar .dropdown-menu {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.dst-dropdown.open > .dst-menu-panel, .dst-topbar .dropdown-menu.show {
    display: block !important;
    animation: fadeInDropdown 0.15s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dst-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--dst-border);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dst-text-main);
    background: var(--dst-surface-subtle);
}

.dst-link-subtle {
    background: transparent;
    border: none;
    color: var(--dst-primary-accent);
    font-size: 0.74rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
}

.dst-menu-list {
    max-height: 260px;
    overflow-y: auto;
}

.dst-menu-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--dst-border);
    cursor: pointer;
    color: var(--dst-text-main);
}

    .dst-menu-item:hover {
        background: var(--dst-surface-hover);
    }

.dst-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dst-border);
    flex-shrink: 0;
}

.dst-item-content {
    min-width: 0;
}

.dst-item-title {
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    line-height: 1.25;
    color: var(--dst-text-main);
}

.dst-item-meta {
    font-size: 0.72rem;
    color: var(--dst-text-subtle);
    margin-top: 2px;
}

.dst-menu-footer {
    padding: 0.5rem;
    text-align: center;
    border-top: 1px solid var(--dst-border);
    background: var(--dst-surface-subtle);
}

    .dst-menu-footer a {
        font-size: 0.75rem;
        color: var(--dst-primary-accent);
        text-decoration: none;
        font-weight: 500;
    }

.dst-mobile-search-drawer {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--dst-surface);
    border-bottom: 2px solid var(--dst-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 1045;
    box-sizing: border-box;
}

[data-theme="dark"] .dst-mobile-search-drawer {
    background: #0f172a;
    border-bottom-color: var(--dst-border-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.dst-mobile-search-capsule {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.dst-mobile-search-icon {
    position: absolute;
    left: 12px;
    color: var(--dst-primary-accent);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.dst-mobile-search-input {
    width: 100% !important;
    height: 40px !important;
    padding-left: 2.6rem !important;
    padding-right: 2.5rem !important;
    border-radius: 8px !important;
    border: 1.5px solid var(--dst-border-strong) !important;
    background-color: var(--dst-surface-subtle) !important;
    color: var(--dst-text-main) !important;
    font-size: 0.88rem !important;
    font-weight: 500;
    outline: none;
    box-sizing: border-box !important;
    transition: all 0.15s ease;
}

    .dst-mobile-search-input:focus {
        background-color: var(--dst-surface) !important;
        border-color: var(--dst-primary-accent) !important;
        box-shadow: 0 0 0 3px var(--dst-primary-subtle) !important;
    }

.dst-mobile-clear-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--dst-text-subtle);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 2;
}

.dst-mobile-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--dst-surface-subtle);
    border: 1px solid var(--dst-border);
    color: var(--dst-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.animate-slide-down {
    animation: slideDownMobile 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownMobile {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   4. PINNED LEFT SIDEBAR (CRISP ZERO-BLEED TEXT)
   -------------------------------------------------------------------------- */
.dst-sidebar {
    position: fixed;
    top: var(--dst-header-height, 54px) !important;
    bottom: 0;
    left: 0;
    width: var(--dst-sidebar-width);
    background-color: var(--dst-sidebar-bg);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
}

    .dst-sidebar.open {
        transform: translateX(0);
    }

    /* यूजर द्वारा अपलोड की गई इमेज और ब्लर लेयर */
    .dst-sidebar::before {
        content: '';
        position: absolute;
        inset: -20px;
        background-image: var(--dst-sidebar-bg-img, none);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        filter: blur(var(--dst-sidebar-blur, 0px));
        transform: scale(1.06);
        z-index: -2;
        pointer-events: none;
        transition: filter 0.2s ease;
    }

    /* 🌟 BULLETPROOF PROTECTIVE SHIELD (अब इमेज कभी भी टेक्स्ट को नहीं दबा पाएगी) */
    .dst-sidebar::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        /* यह सीधे आपके C# से आने वाले RGBA टिन शेड को लागू करेगा */
        background-color: var(--dst-sidebar-custom-tint, rgba(0, 0, 0, 0.85)) !important;
        transition: background-color 0.15s ease;
    }





.dst-sidebar-inner {
    height: 100%;
    overflow-y: auto;
    padding: 0rem 0rem;
    position: relative;
    z-index: 2;
}

.dst-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 2;
}

.dst-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
  
    color: var(--dst-text-nav) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
    /* टेक्स्ट के पीछे एक हल्का सा सुरक्षा घेरा (Text Shadow Shield) ताकि रंग चाहे जो हो, टेक्स्ट चमक उठे */
    
  
  
}
[data-theme="dark"] .dst-nav-link, body.dark-mode .dst-nav-link {
    background-color: color-mix(in srgb, var(--dst-surface) 50%, transparent) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  
}
.dst-nav-link:hover {
    background-color: color-mix(in srgb, var(--dst-primary-accent) 15%, var(--dst-surface)) !important;
    border-color: color-mix(in srgb, var(--dst-primary-accent) 40%, transparent) !important;
    color: var(--dst-primary-accent) !important;
 
}

.dst-nav-link.active {
    background-color: var(--dst-primary-subtle) !important;
    color: var(--dst-primary) !important;
    font-weight: 600 !important;
    border-left: 3px solid var(--dst-primary);
    border-color: color-mix(in srgb, var(--dst-primary-accent) 50%, transparent) !important;
   
}

.dst-nav-link-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .dst-nav-link-left i {
        font-size: 1.1rem;
        color: var(--dst-text-main) !important;
        font-weight: 700;
    }

.dst-nav-link:hover .dst-nav-link-left i, .dst-nav-link.active .dst-nav-link-left i {
    color: var(--dst-primary-accent);
}

.dst-arrow {
    font-size: 0.72rem;
    color: var(--dst-text-subtle);
    font-weight: bold;
    transition: transform 0.2s ease;
}

.dst-nav-group.open .dst-arrow {
    transform: rotate(90deg);
    color: var(--dst-primary-accent);
}

.dst-nav-group.open .group-active {
    background-color: color-mix(in srgb, var(--dst-primary-accent) 12%, rgba(255, 255, 255, 0.95)) !important;
    color: var(--dst-primary) !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .dst-nav-group.open .group-active, body.dark-mode .dst-nav-group.open .group-active {
    background-color: rgba(30, 41, 59, 0.92) !important;
    color: var(--dst-primary-accent) !important;
}

.dst-subnav {
    padding: 0.45rem 0.45rem 0.45rem 0.75rem;
    margin: 5px 0 8px 0.5rem;
    border-left: 3px solid var(--dst-primary-accent) !important;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: color-mix(in srgb, var(--dst-primary-accent) 6%, rgba(241, 245, 249, 0.75)) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 10px -2px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="dark"] .dst-subnav, body.dark-mode .dst-subnav {
    background-color: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-left: 3px solid var(--dst-primary-accent) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.dst-subnav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.84rem !important;
    font-weight: 400 !important;
    color: var(--dst-text-muted) !important;
    border-radius: 5px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

    .dst-subnav-link i {
        font-size: 0.85rem;
        color: var(--dst-text-subtle);
        flex-shrink: 0;
        transition: color 0.15s ease;
    }

    .dst-subnav-link:hover {
        color: var(--dst-primary) !important;
        background-color: color-mix(in srgb, var(--dst-primary-accent) 16%, #ffffff) !important;
        font-weight: 500 !important;
        transform: translateX(2px);
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }

[data-theme="dark"] .dst-subnav-link:hover, body.dark-mode .dst-subnav-link:hover {
    color: #ffffff !important;
    background-color: color-mix(in srgb, var(--dst-primary-accent) 22%, #1e293b) !important;
}

.dst-subnav-link:hover i {
    color: var(--dst-primary-accent);
}

.dst-subnav-link.active {
    color: #ffffff !important;
    font-weight: 500 !important;
    background-color: color-mix(in srgb, var(--dst-primary) 85%, transparent) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

    .dst-subnav-link.active i {
        color: #ffffff !important;
    }

.dst-label-muted {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dst-text-subtle);
    padding: 0.6rem 0.65rem 0.2rem 0.65rem;
}

/* --------------------------------------------------------------------------
   5. MAIN WORKSPACE & BACKDROP
   -------------------------------------------------------------------------- */
.dst-main-body, .main {
    position: absolute;
    top: var(--dst-header-height, 54px) !important;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: transparent!important;
    transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
}

.dst-page-container, .dst-canvas, .dst-page-shell {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    flex: 1 0 auto !important;
}

@media (min-width: 993px) {
    .dst-main-body.with-sidebar, .main.sidebar-open {
        left: var(--dst-sidebar-width, 285px) !important;
        width: calc(100% - var(--dst-sidebar-width, 285px)) !important;
    }

    .dst-backdrop {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .dst-main-body, .main {
        left: 0 !important;
    }

    .dst-sidebar.open {
        box-shadow: 10px 0 32px rgba(0, 0, 0, 0.25);
    }

    .dst-backdrop {
        position: fixed;
        inset: 0;
        top: 56px;
        background: rgba(15, 23, 42, 0.5);
        z-index: 950;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

        .dst-backdrop.show {
            opacity: 1;
            visibility: visible;
        }

    .dst-brand-tagline, .dst-version-pill {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   6. DYNAMIC EXECUTIVE PAGE HEADER
   -------------------------------------------------------------------------- */
.fig-header, .dst-view-header {
    --hdr-accent: var(--dst-primary-accent);
    --hdr-subtle: var(--dst-primary-subtle);
    --hdr-hero-from: var(--dst-primary);
    --hdr-hero-to: var(--dst-primary-hover);
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 10px;
    padding: 1.15rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    box-shadow: var(--dst-shadow-card);
    position: relative;
    overflow: visible !important;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .fig-header::before, .dst-view-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--hdr-accent) 0%, transparent 65%);
        z-index: 2;
    }

    .fig-header .fig-avatar-badge, .dst-view-header .dst-view-icon-badge {
        background: var(--hdr-subtle) !important;
        color: var(--hdr-accent) !important;
        border: 1px solid color-mix(in srgb, var(--hdr-accent) 30%, transparent) !important;
    }

    .fig-header .fig-live-dot {
        background-color: var(--hdr-accent) !important;
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--hdr-accent) 25%, transparent) !important;
    }

    .fig-header .dst-btn-hero {
        background: var(--dst-primary) !important;
        border-color: var(--dst-primary-hover) !important;
        color: #ffffff !important;
    }

        .fig-header .dst-btn-hero:hover {
            background: var(--dst-primary-hover) !important;
        }

[data-theme="light"][data-accent="default"] .fig-header, [data-theme="light"]:not([data-accent]) .fig-header {
    --hdr-accent: #64748b;
    --hdr-subtle: #f8fafc;
    --hdr-hero-from: #1e293b;
    --hdr-hero-to: #0f172a;
    background: #ffffff;
    border-color: #e2e8f0;
}

    [data-theme="light"][data-accent="default"] .fig-header::before, [data-theme="light"]:not([data-accent]) .fig-header::before {
        background: linear-gradient(90deg, #94a3b8 0%, transparent 60%);
    }

.fig-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fig-context-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.fig-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--dst-text-subtle);
}

.fig-crumb-sep {
    font-size: 0.55rem;
    opacity: 0.6;
}

.fig-crumb-active {
    color: var(--dst-text-main);
    font-weight: 400;
}

.fig-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--dst-surface-subtle);
    border: 1px solid var(--dst-border);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--dst-text-muted);
    font-family: var(--dst-font-mono);
}

.fig-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.fig-pill-divider {
    opacity: 0.4;
}

.fig-title-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.fig-avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.fig-title-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dst-text-main);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.fig-mode-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--dst-surface-subtle);
    color: var(--dst-text-muted);
    border: 1px solid var(--dst-border);
}

.fig-subtitle-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dst-text-subtle);
    margin: 0.15rem 0 0 0;
}

.fig-action-deck {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

    .fig-action-deck .dst-btn {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

@media (max-width: 576px) {
    .fig-action-deck {
        gap: 0.35rem !important;
    }

        .fig-action-deck .dst-btn {
            padding: 0.3rem 0.55rem !important;
            font-size: 0.75rem !important;
            height: 32px !important;
        }
}

/* --------------------------------------------------------------------------
   7. STATUTORY TAX KPI SUMMARY DECK (UNIFIED ENGINE)
   -------------------------------------------------------------------------- */
.dst-kpi-deck {
    --kpi-brand: var(--dst-primary-accent);
    --kpi-subtle: var(--dst-primary-subtle);
    --kpi-border: color-mix(in srgb, var(--dst-primary-accent) 25%, transparent);
    --kpi-bar: linear-gradient(90deg, var(--dst-primary) 0%, var(--dst-primary-accent) 100%);
    --kpi-highlight-bg: linear-gradient(135deg, var(--dst-surface) 0%, color-mix(in srgb, var(--dst-primary-accent) 10%, transparent) 100%);
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 10px;
    box-shadow: var(--dst-shadow-card);
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .dst-kpi-deck::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--kpi-bar);
        z-index: 2;
    }

.dst-kpi-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.15rem;
    background: var(--dst-surface-subtle);
    border-bottom: 1px solid var(--dst-border);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dst-kpi-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--dst-text-muted);
}

.dst-kpi-pill-nature {
    background: var(--kpi-subtle) !important;
    color: var(--kpi-brand) !important;
    border-color: var(--kpi-border) !important;
}

.dst-kpi-vouchercount {
    color: var(--dst-text-subtle);
    font-weight: 500;
    font-size: 0.74rem;
    padding-left: 0.25rem;
}

.dst-kpi-meta-badge {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dst-text-subtle);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dst-pulse-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--kpi-brand);
    box-shadow: 0 0 0 2px var(--kpi-subtle);
}

.dst-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    background: var(--dst-surface);
}

.dst-kpi-cell {
    padding: 0.95rem 1.15rem;
    border-right: 1px solid var(--dst-border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.15s ease;
}

    .dst-kpi-cell:last-child {
        border-right: none;
    }

    .dst-kpi-cell:hover {
        background-color: var(--dst-surface-hover);
    }

.dst-kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dst-text-subtle);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.dst-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-neutral {
    background: var(--dst-text-subtle);
}

.dot-primary {
    background: var(--dst-primary-accent);
}

.dot-cyan {
    background: var(--dst-cyan);
}

.dot-indigo {
    background: var(--dst-indigo);
}

.dot-amber {
    background: var(--dst-amber);
}

.dst-kpi-val {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    line-height: 1.2;
}

.dst-kpi-curr {
    font-size: 1.295rem;
    font-weight: 500;
    color: var(--dst-text-subtle);
}

.dst-kpi-num {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dst-text-main);
    letter-spacing: -0.02em;
}

.dst-kpi-unit {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--dst-text-muted);
    background: var(--dst-surface-subtle);
    border: 1px solid var(--dst-border);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.dst-kpi-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--dst-text-subtle);
    margin-top: 0.3rem;
}

.dst-kpi-highlight {
    background: var(--kpi-highlight-bg) !important;
    border-left: 1px solid var(--kpi-border);
}

.dst-hero-icon {
    color: var(--kpi-brand);
    font-size: 0.85rem;
}

.dst-curr-hero {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--kpi-brand) !important;
}

.dst-num-hero {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: var(--kpi-brand) !important;
}

[data-theme="light"][data-accent="default"] .dst-kpi-deck, [data-theme="light"]:not([data-accent]) .dst-kpi-deck {
    --kpi-brand: #334155;
    --kpi-subtle: #f1f5f9;
    --kpi-border: #cbd5e1;
    --kpi-bar: linear-gradient(90deg, #64748b 0%, #334155 100%);
    --kpi-highlight-bg: linear-gradient(135deg, #ffffff 0%, rgba(51, 65, 85, 0.05) 100%);
}

@media (max-width: 992px) {
    .dst-kpi-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .dst-kpi-cell {
        border-bottom: 1px solid var(--dst-border);
    }

        .dst-kpi-cell:nth-child(2n) {
            border-right: none;
        }
}

@media (max-width: 576px) {
    .dst-kpi-strip {
        grid-template-columns: 1fr;
    }

    .dst-kpi-cell {
        border-right: none !important;
    }

    .dst-kpi-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}
/* --------------------------------------------------------------------------
   8. DATA TABLE SURFACE, TOOLBAR & FLYOUT POPUPS (100% FIXED ALIGNMENT)
   -------------------------------------------------------------------------- */
.dst-table-card {
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 8px;
    box-shadow: var(--dst-shadow-card);
    overflow: visible !important;
}

.dst-table-toolbar {
    padding: 0.65rem 1rem;
    background: var(--dst-surface-subtle);
    border-bottom: 1px solid var(--dst-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.dst-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.dst-toolbar-right-fixed {
    flex-shrink: 0;
    margin-left: auto;
}

.dst-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: var(--dst-surface) !important;
    border: 1px solid var(--dst-border-strong) !important;
    color: var(--dst-text-muted) !important;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.38rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .dst-filter-btn i {
        color: var(--dst-text-subtle);
    }

    .dst-filter-btn:hover:not(:disabled) {
        background-color: var(--dst-surface-hover) !important;
        border-color: var(--dst-primary-accent) !important;
        color: var(--dst-text-main) !important;
    }

    .dst-filter-btn.is-active-filter {
        background-color: var(--dst-primary-subtle) !important;
        border-color: var(--dst-primary-accent) !important;
        color: var(--dst-primary) !important;
        font-weight: 600 !important;
    }

        .dst-filter-btn.is-active-filter i {
            color: var(--dst-primary-accent) !important;
        }

.dst-chevron {
    font-size: 0.65rem;
    color: var(--dst-text-subtle);
}

/* 🌟 Universal Clean Dropdown Flyout Popover Fix */
.dropdown-menu.dst-flyout-popover {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    background-color: var(--dst-surface) !important;
    border: 1px solid var(--dst-border-strong) !important;
    border-radius: 8px !important;
    box-shadow: var(--dst-shadow-dropdown) !important;
    padding: 0.75rem !important;
    z-index: 1060 !important;
    margin: 0 !important;
}

    /* Right-aligned dropdown helper variant if needed */
    .dropdown-menu.dst-flyout-popover.dropdown-menu-end {
        left: auto !important;
        right: 0 !important;
    }



.dst-popover-search-wrap {
    position: relative;
    margin-bottom: 0.65rem;
}

    .dst-popover-search-wrap i {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--dst-text-subtle);
        font-size: 0.85rem;
    }

    .dst-popover-search-wrap input {
        width: 100%;
        padding-left: 2.2rem !important;
        height: 34px !important;
        font-size: 0.8rem !important;
    }

.dst-popover-section {
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid var(--dst-border);
}

    .dst-popover-section:last-child {
        border-bottom: none;
    }

.dst-popover-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dst-text-subtle);
    margin-bottom: 0.35rem;
}

.dst-control-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dst-text-main);
    padding: 0.35rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

    .dst-control-item:hover {
        background-color: color-mix(in srgb, var(--dst-primary-accent) 8%, transparent) !important;
        color: var(--dst-primary) !important;
    }

    .dst-control-item input[type="checkbox"],
    .dst-control-item input[type="radio"] {
        margin: 0;
        width: 15px;
        height: 15px;
        accent-color: var(--dst-primary-accent) !important;
        cursor: pointer;
        flex-shrink: 0;
    }

.dst-scroll-menu {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 2px;
}

.dst-popover-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--dst-border);
    margin-top: 0.45rem;
}

.dst-active-chips-strip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--dst-surface);
    border-bottom: 1px solid var(--dst-border);
    flex-wrap: wrap;
}

.dst-chips-title {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--dst-text-subtle);
    margin-right: 0.2rem;
}

.dst-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--dst-primary-subtle);
    border: 1px solid color-mix(in srgb, var(--dst-primary-accent) 30%, transparent);
    color: var(--dst-primary-accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 500;
}

    .dst-chip button {
        background: transparent;
        border: none;
        color: inherit;
        cursor: pointer;
        padding: 0;
        font-size: 0.85rem;
    }

.dst-btn-clear-all {
    background: transparent;
    border: none;
    color: var(--dst-rose);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}
/* ==========================================================================
   ULTRA-RESPONSIVE FIGMA-GRADE COMPLIANCE TRAY & TOOLTIPS (100% FIXED)
   ========================================================================== */

.dst-compliance-tray {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
 
   
}

.dst-status-dot-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease;
}

    .dst-status-dot-pill:hover {
        transform: scale(1.1);
    }

.dst-compliance-complete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background-color: var(--dst-emerald-subtle, #ecfdf5);
    color: var(--dst-emerald, #047857);
    border: 1px solid color-mix(in srgb, var(--dst-emerald, #047857) 30%, transparent);
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
}
/* ==========================================================================
   ULTRA-RESPONSIVE CLEAN TOOLTIP & POPUP ENGINE (ZERO OVERFLOW)
   ========================================================================== */

.dst-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dst-tooltip-card {
    position: absolute;
    /* डिफ़ॉल्ट रूप से यह आइकॉन के ऊपर खुलेगा */
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    /* फिक्स चौड़ाई ताकि टेक्स्ट कभी बाहर न भागे और एक साफ़-सुथरे कार्ड की तरह दिखे */
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    background-color: var(--dst-surface, #ffffff) !important;
    border: 1px solid var(--dst-border-strong, #cbd5e1) !important;
    border-radius: 12px !important;
    padding: 0.9rem 1.1rem !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3), 0 0 1px 1px rgba(15, 23, 42, 0.1) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999999 !important;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    text-align: left;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* अगर टेबल की पहली 3 रो हैं, तो पॉप-अप ऑटोमैटिकली नीचे की तरफ खुलेगा ताकि ऊपर न छिप सके */
tbody tr:nth-child(-n+3) .dst-tooltip-wrapper .dst-tooltip-card {
    bottom: auto !important;
    top: calc(100% + 10px) !important;
}

/* चूंकि स्टेटस कॉलम बिल्कुल दाईं (Right) तरफ है, इसलिए कार्ड स्क्रीन के अंदर अलाइन रहेगा */
tr td:last-child .dst-tooltip-card {
    left: auto !important;
    right: 0 !important;
    transform: translateY(-4px);
}

tbody tr:nth-child(-n+3) tr td:last-child .dst-tooltip-card {
    top: calc(100% + 10px) !important;
    bottom: auto !important;
    transform: translateY(0);
}

.dst-tooltip-wrapper:hover .dst-tooltip-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

tr td:last-child .dst-tooltip-wrapper:hover .dst-tooltip-card {
    transform: translateX(0) translateY(0);
}

.dst-tooltip-header {
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
    border-bottom: 1px solid var(--dst-border-strong);
    padding: 0.5rem 0rem;
    margin-bottom: 0.4rem;
}

.dst-tooltip-body {
    font-size: 0.75rem;
    color: var(--dst-text-muted, #64748b);
    line-height: 1.5;
}
/* --------------------------------------------------------------------------
   9. UNIFIED THEME-ADAPTIVE & ROLE-BASED SYSTEMATIC BUTTON ENGINE
   -------------------------------------------------------------------------- */
.dst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.72rem 1rem !important;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none !important;
    line-height: 1.25;
    user-select: none;
}

.dst-btn-primary, .dst-btn-hero {
    background: var(--dst-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--dst-primary-hover) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

    .dst-btn-primary:hover:not(:disabled):not(.disabled), .dst-btn-hero:hover:not(:disabled):not(.disabled) {
        background: var(--dst-primary-hover) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px -1px color-mix(in srgb, var(--dst-primary) 35%, transparent);
    }
/* 🌟 Role 8: Light / Flat White Button (By default NO border, can use .dst-border class if needed) */
.dst-btn-light,
.dst-btn-flat {
    background-color: var(--dst-surface) !important;
    border: none; /* By default no border */
    color: var(--dst-text-main) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    .dst-btn-light:hover:not(:disabled):not(.disabled),
    .dst-btn-flat:hover:not(:disabled):not(.disabled) {
        background-color: var(--dst-surface-hover) !important;
        color: var(--dst-primary-accent) !important;
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    }

.dst-btn-secondary {
    background-color: var(--dst-surface-subtle) !important;
    border: 1px solid var(--dst-border-strong) !important;
    color: var(--dst-text-main) !important;
}

    .dst-btn-secondary:hover:not(:disabled):not(.disabled) {
        background-color: var(--dst-surface-hover) !important;
        color: var(--dst-text-main) !important;
        border-color: var(--dst-text-muted) !important;
    }

.dst-btn-accent {
    background-color: var(--dst-primary-subtle) !important;
    border: 1px solid color-mix(in srgb, var(--dst-primary-accent) 30%, transparent) !important;
    color: var(--dst-primary-accent) !important;
}

    .dst-btn-accent:hover:not(:disabled):not(.disabled) {
        background-color: color-mix(in srgb, var(--dst-primary-accent) 20%, transparent) !important;
        border-color: var(--dst-primary-accent) !important;
        color: var(--dst-primary) !important;
    }

.dst-btn-indigo {
    background-color: rgba(99, 102, 241, 0.12) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    color: #4338ca !important;
}

    .dst-btn-indigo:hover:not(:disabled):not(.disabled) {
        background-color: #4f46e5 !important;
        color: #ffffff !important;
        border-color: #4f46e5 !important;
        box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
    }

.dst-btn-rose {
    background-color: rgba(225, 29, 72, 0.1) !important;
    border: 1px solid rgba(225, 29, 72, 0.35) !important;
    color: #be123c !important;
}

    .dst-btn-rose:hover:not(:disabled):not(.disabled) {
        background-color: #be123c !important;
        color: #ffffff !important;
        border-color: #be123c !important;
        box-shadow: 0 2px 6px rgba(190, 18, 60, 0.35);
    }

.dst-btn-emerald {
    background-color: rgba(5, 150, 105, 0.12) !important;
    border: 1px solid rgba(5, 150, 105, 0.35) !important;
    color: #047857 !important;
}

    .dst-btn-emerald:hover:not(:disabled):not(.disabled) {
        background-color: #059669 !important;
        color: #ffffff !important;
        border-color: #059669 !important;
        box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
    }

.dst-btn-danger, .dst-btn-danger-subtle {
    background-color: var(--dst-rose-subtle) !important;
    color: var(--dst-rose) !important;
    border: 1px solid rgba(225, 29, 72, 0.3) !important;
}

    .dst-btn-danger:hover:not(:disabled):not(.disabled), .dst-btn-danger-subtle:hover:not(:disabled):not(.disabled) {
        background-color: var(--dst-rose) !important;
        color: #ffffff !important;
        border-color: var(--dst-rose) !important;
    }

.dst-btn-shortcut {
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 4px;
}

.dst-btn:disabled, .dst-btn.disabled, button.dst-btn[disabled] {
    cursor: not-allowed !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(35%);
    opacity: 0.65 !important;
}

/* --------------------------------------------------------------------------
   10. AUTO-RESPONSIVE DATA TABLE (SHARP TEXT) & UNIFIED BADGES
   -------------------------------------------------------------------------- */
.dst-table-responsive {
    width: 100%;
    min-height: 220px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overflow-y: visible;
}

.dst-table {
    width: 100%;
    min-width: max-content;
    border-collapse: collapse;
    font-size: 0.86rem;
    letter-spacing: -0.01em;
}

    .dst-table thead th {
        background-color: color-mix(in srgb, var(--dst-primary-accent) 5%, var(--dst-surface)) !important;
        color: var(--dst-text-main) !important;
        font-family: var(--dst-font-sans);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.74rem;
        letter-spacing: 0.04em;
        padding: 0.85rem 0.95rem;
        border-bottom: 2px solid color-mix(in srgb, var(--dst-primary-accent) 25%, var(--dst-border)) !important;
        white-space: nowrap !important;
    }

.dst-th-btn {
    background: transparent;
    border: none;
    color: var(--dst-text-main) !important;
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0;
    cursor: pointer;
    white-space: nowrap !important;
}

.dst-table-row td {
    padding: 0.8rem 0.95rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--dst-border);
    color: var(--dst-text-main);
    font-family: var(--dst-font-sans);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap !important;
}

.dst-table-row:hover td {
    background-color: var(--dst-surface-hover);
}

.dst-invoice-code {
    font-family: var(--dst-font-mono) !important;
    font-weight: 600 !important;
    font-size: 0.84rem;
    color: var(--dst-primary-accent);
}

.dst-party-name {
    font-weight: 600;
    color: var(--dst-text-main);
    font-size: 0.86rem;
}

.dst-route-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--dst-text-muted);
}

.dst-gstin-cell, .dst-date-cell {
    font-family: var(--dst-font-mono) !important;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dst-text-muted);
}

.dst-table td.font-monospace {
    font-family: var(--dst-font-mono) !important;
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    letter-spacing: -0.015em;
}

.dst-total-cell {
    font-family: var(--dst-font-mono) !important;
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--dst-text-main) !important;
}

.dst-micro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dst-font-mono, monospace);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    line-height: 1;
    cursor: default;
    user-select: none;
    border: 1px solid transparent;
}

.dst-micro-badge-plain-text {
    font-family: var(--dst-font-sans) !important;
}

.dst-badge-rose {
    background-color: #ffe4e6 !important;
    color: #e11d48 !important;
    border-color: #fecdd3 !important;
}

.dst-badge-slate {
    background-color: var(--dst-surface-subtle, #f1f5f9) !important;
    color: var(--dst-text-subtle, #475569) !important;
    border-color: var(--dst-border, #cbd5e1) !important;
}

.dst-badge-emerald {
    background-color: #d1fae5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.dst-badge-amber {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

.dst-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background-color: color-mix(in srgb, var(--dst-primary-accent) 3%, var(--dst-surface)) !important;
    border-top: 1px solid color-mix(in srgb, var(--dst-primary-accent) 15%, var(--dst-border)) !important;
    flex-wrap: wrap;
    gap: 0.75rem;
}
/* 🌟 Dynamic Theme-Aware Badge (Auto adapts to active Accents & Modes) */
.dst-dynamic-badge {
    background-color: var(--dst-primary-subtle) !important;
    color: var(--dst-primary-accent) !important;
    border: 1px solid color-mix(in srgb, var(--dst-primary-accent) 28%, transparent) !important;
    font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   11. FORM CONTROLS & DENSE INVOICE ENTRY ENGINE
   -------------------------------------------------------------------------- */
.dst-entry-section {
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 8px;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1rem;
    box-shadow: var(--dst-shadow-card);
}

.dst-section-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dst-text-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.dst-input, .form-control, .form-select, input[type="text"], input[type="search"], input[type="date"], input[type="number"], input[type="email"], input[type="password"] {
    border: 1px solid var(--dst-input-border);
    border-radius: 6px;
    background-color: var(--dst-input-bg) !important;
    color: var(--dst-input-text) !important;
    padding: 0.65rem 0.9rem;
    font-size: 0.825rem;
    font-weight: 500;
    outline: none;
    transition: all 0.15s ease;
}

    .dst-input:focus, .form-control:focus, .form-select:focus, input:focus {
        background-color: var(--dst-surface) !important;
        border-color: var(--dst-primary-accent) !important;
        box-shadow: 0 0 0 3px var(--dst-primary-subtle) !important;
        color: var(--dst-text-main) !important;
    }
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
/* 🌟 Universal Dark Mode File Input Text Fix */
[data-theme="dark"] input[type="file"],
body.dark-mode input[type="file"] {
    color: var(--dst-text-main) !important;
}

    [data-theme="dark"] input[type="file"]::file-selector-button,
    body.dark-mode input[type="file"]::file-selector-button {
        background-color: var(--dst-surface-subtle) !important;
        color: var(--dst-text-main) !important;
        border: 1px solid var(--dst-border) !important;
    }
.dst-net-payable-card {
    background-color: color-mix(in srgb, var(--dst-primary-accent) 8%, var(--dst-surface)) !important;
    border: 1.5px solid color-mix(in srgb, var(--dst-primary-accent) 35%, transparent) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.dst-net-payable-title {
    font-weight: 500;
    color: var(--dst-text-main);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dst-net-payable-amount {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    font-family: var(--dst-font-mono, monospace) !important;
    color: var(--dst-primary) !important;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   12. THEME PREFERENCES PREVIEW CARDS
   -------------------------------------------------------------------------- */
.dst-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dst-theme-card {
    background: var(--dst-surface);
    border: 2px solid var(--dst-border);
    border-radius: 10px;
    padding: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

    .dst-theme-card:hover {
        border-color: var(--dst-border-strong);
        transform: translateY(-2px);
        box-shadow: var(--dst-shadow-dropdown);
    }

    .dst-theme-card.active {
        border-color: var(--dst-primary-accent);
        box-shadow: 0 0 0 3px var(--dst-primary-subtle);
    }

.dst-theme-card-preview {
    height: 80px;
    border-radius: 6px;
    border: 1px solid var(--dst-border);
    margin-bottom: 0.75rem;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   13. ANIMATIONS & HELPERS
   -------------------------------------------------------------------------- */
.animate-fade-in {
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dst-empty-state {
    text-align: center;
    color: var(--dst-text-muted);
}

.dst-empty-icon {
    font-size: 2rem;
    display: block;
    color: var(--dst-text-subtle);
    margin-bottom: 0.25rem;
}

.dst-sm-text {
    font-size: 0.70rem !important;
    font-weight: 500;
}
/* --------------------------------------------------------------------------
   14. CUSTOMER FINANCIAL TELEMETRY DECK
   -------------------------------------------------------------------------- */
.dst-telemetry-strip {
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 10px;
    box-shadow: var(--dst-shadow-card);
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

    .dst-telemetry-strip::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--dst-primary) 0%, var(--dst-primary-accent) 100%);
    }

.dst-telemetry-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 1rem;
    align-items: center;
}

.dst-telemetry-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--dst-border);
    padding-right: 1rem;
}

    .dst-telemetry-cell:last-child {
        border-right: none;
        padding-right: 0;
    }

.dst-telemetry-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dst-text-subtle);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.dst-telemetry-val {
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--dst-font-mono, monospace);
    line-height: 1.2;
    color: var(--dst-text-main);
}

.telemetry-status-safe {
    color: #059669 !important;
}

.telemetry-status-warning {
    color: #d97706 !important;
}

.telemetry-status-danger {
    color: #e11d48 !important;
}

/* --------------------------------------------------------------------------
   15. SKU FAST ENTRY & LINE SOURCING DECK
   -------------------------------------------------------------------------- */
.dst-sku-entry-card {
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 10px;
    box-shadow: var(--dst-shadow-card);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dst-sku-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--dst-border);
}

.dst-sku-entry-title {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dst-text-main);
    margin: 0;
    display: flex;
    align-items: center;
}

/* --------------------------------------------------------------------------
   16. UNIVERSAL AUTOCOMPLETE COMPONENT
   -------------------------------------------------------------------------- */
.ac-wrapper {
    position: relative;
    width: 100%;
}

.ac-input {
    border-radius: 6px !important;
    border: 1px solid var(--dst-border) !important;
    background-color: var(--dst-surface) !important;
    color: var(--dst-text-main) !important;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.ac-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 320px;
    box-shadow: var(--dst-shadow-card, 0 8px 20px rgba(0,0,0,0.08));
    z-index: 1080 !important;
}

.ac-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.ac-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--dst-border);
    background: var(--dst-surface);
}

    .ac-item:hover, .ac-item.active {
        background: color-mix(in srgb, var(--dst-primary-accent) 8%, var(--dst-surface)) !important;
    }

/* --------------------------------------------------------------------------
   17. INVOICE SETTLEMENT & SUMMARY DECKS
   -------------------------------------------------------------------------- */
.dst-consolidated-qty-strip {
    background-color: var(--dst-surface-subtle);
    border: 1px solid var(--dst-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-top: auto;
}

.dst-consolidated-qty-amount {
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--dst-font-mono, monospace);
    color: var(--dst-primary-accent);
}

/* --------------------------------------------------------------------------
   18. MICRO BADGES & POP-UP TOOLTIPS
   -------------------------------------------------------------------------- */
.dst-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.dst-tooltip-card {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 220px !important;
    max-width: 260px !important;
    background-color: var(--dst-surface, #ffffff) !important;
    border: 1px solid var(--dst-border, #e2e8f0) !important;
    border-radius: 8px !important;
    padding: 0.65rem 0.85rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1060 !important;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.dst-tooltip-wrapper:hover .dst-tooltip-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   19. BATCH SELECTION & ACTION STRIP
   -------------------------------------------------------------------------- */
.dst-selection-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 1.15rem;
    background-color: color-mix(in srgb, var(--dst-primary-accent) 6%, var(--dst-surface)) !important;
    border: 1px solid color-mix(in srgb, var(--dst-primary-accent) 25%, var(--dst-border)) !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dst-selection-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dst-text-main);
}

/* --------------------------------------------------------------------------
   20. MODAL DIALOGS & ACTION PILLS
   -------------------------------------------------------------------------- */
.dst-modal-backdrop {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1050 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dst-modal-content {
    position: relative !important;
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 100000 !important;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.dst-modal-header {
    background-color: var(--dst-surface-subtle);
    border-bottom: 1px solid var(--dst-border);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* 2. Modal Header Icon Tile & Typography */
.dst-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    background-color: var(--dst-primary-subtle) !important;
    color: var(--dst-primary-accent) !important;
    border: 1px solid color-mix(in srgb, var(--dst-primary-accent) 30%, transparent) !important;
}

.dst-modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dst-text-main);
    line-height: 1.25;
}

.dst-modal-subtitle {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--dst-text-subtle);
    display: block;
    margin-top: 2px;
}

.dst-modal-body {
    padding: 1.25rem;
    background-color: var(--dst-surface);
    overflow-y: auto;
}
/* 3. Highlighted Cash Reconciliation Card (Theme-Adaptive Soft Fade) */
.dst-reconcile-card {
    background: linear-gradient(145deg, var(--dst-surface-subtle) 0%, color-mix(in srgb, var(--dst-primary-accent) 6%, var(--dst-surface)) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--dst-primary-accent) 25%, var(--dst-border)) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.03) !important;
    position: relative;
    overflow: hidden;
}

    .dst-reconcile-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--dst-primary) 0%, var(--dst-primary-accent) 100%);
    }

[data-theme="dark"] .dst-reconcile-card,
body.dark-mode .dst-reconcile-card {
    background: linear-gradient(145deg, var(--dst-surface-subtle) 0%, color-mix(in srgb, var(--dst-primary-accent) 10%, var(--dst-surface)) 100%) !important;
    border-color: color-mix(in srgb, var(--dst-primary-accent) 35%, var(--dst-border)) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55) !important;
}

.dst-reconcile-stat-box {
    background-color: var(--dst-surface) !important;
    border: 1px solid var(--dst-border) !important;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}
.dst-modal-footer {
    padding: 0.75rem 1.25rem;
    background-color: var(--dst-surface-subtle);
    border-top: 1px solid var(--dst-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
/* 🌟 Updated Modal Header & Footer Styling (Theme-Adaptive) */
.dst-modal-header,
.dst-modal-footer {
    background-color: var(--dst-surface) !important; /* बॉडी के रंग से मेल खाता हुआ */
    border-color: var(--dst-border) !important;
}

[data-theme="dark"] .dst-modal-header,
[data-theme="dark"] .dst-modal-footer,
body.dark-mode .dst-modal-header,
body.dark-mode .dst-modal-footer {
    background-color: var(--dst-surface) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
/* --------------------------------------------------------------------------
   21. INPUT INLINE ACTION BUTTONS
   -------------------------------------------------------------------------- */
.dst-input-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--dst-text-subtle);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .dst-input-action-btn:hover {
        background-color: color-mix(in srgb, var(--dst-primary-accent) 12%, transparent);
        color: var(--dst-primary-accent);
    }

/* --------------------------------------------------------------------------
   22. SCREEN LOCK OVERLAY
   -------------------------------------------------------------------------- */
.dst-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999 !important;
    background-color: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.dst-lock-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   23. BILLBOOK THEME EXTENSIONS
   -------------------------------------------------------------------------- */
.hover-scale {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

    .hover-scale:hover {
        transform: translateY(-2px);
        border-color: var(--dst-primary-accent) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

/* --------------------------------------------------------------------------
   24. CRYSTAL-CLEAR ANCHOR LINK DESIGN SYSTEM
   -------------------------------------------------------------------------- */
a.dst-link, .dst-link {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.dst-link-accent {
    color: var(--dst-primary-accent) !important;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--dst-primary-accent) 30%, transparent);
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   25. EXECUTIVE DETAILS HEADER ACTIONS & CARD-BASED TABS
   -------------------------------------------------------------------------- */
.dst-card-tabs-header {
    padding: 0.35rem 0.5rem;
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 8px;
    box-shadow: var(--dst-shadow-card);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
}

.dst-card-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--dst-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

    .dst-card-tab-item.active {
        background-color: var(--dst-primary) !important;
        color: #ffffff !important;
    }

/* --------------------------------------------------------------------------
   26. TOP-ALIGNED EXECUTIVE HEADER & MULTI-ROW BUTTON ENGINE
   -------------------------------------------------------------------------- */
.fig-header.split-60-40, .fig-header.details-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    padding: 1.25rem 1.5rem !important;
}

/* --------------------------------------------------------------------------
   27. ROUTE MAPPING TILES & SELECTION CONTROLS
   -------------------------------------------------------------------------- */
.dst-route-tile {
    background: var(--dst-surface);
    border: 1px solid var(--dst-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.dst-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0 !important;
}

    .dst-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.dst-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--dst-border-strong);
    transition: 0.2s ease-in-out;
    border-radius: 20px;
}

    .dst-switch-slider::before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: #ffffff;
        transition: 0.2s ease-in-out;
        border-radius: 50%;
    }

.dst-switch input:checked + .dst-switch-slider {
    background-color: var(--dst-primary);
}

    .dst-switch input:checked + .dst-switch-slider::before {
        transform: translateX(18px);
    }

/* --------------------------------------------------------------------------
   28. GLOBAL POPUP & DROPDOWN SOLID OVERLAY
   -------------------------------------------------------------------------- */
.dropdown-menu, .dst-flyout-popover, .dst-menu-panel, .ac-dropdown {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.22) !important;
    border: 1px solid var(--dst-border-strong) !important;
    z-index: 1080 !important;
}

[data-theme="dark"] .dropdown-menu, [data-theme="dark"] .dst-flyout-popover, [data-theme="dark"] .dst-menu-panel, [data-theme="dark"] .ac-dropdown,
body.dark-mode .dropdown-menu, body.dark-mode .dst-flyout-popover, body.dark-mode .dst-menu-panel, body.dark-mode .ac-dropdown {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* --------------------------------------------------------------------------
   29. DYNAMIC BACKGROUND FOOTER BANNER ENGINE
   -------------------------------------------------------------------------- */
.dst-footer-illustration-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.25rem 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    display: block !important;
}

.dst-footer-illustration {
    position: relative !important;
    width: 100% !important;
    background-repeat: repeat-x !important;
    background-position: center bottom !important;
    background-size: contain !important;
    transition: height 0.2s ease;
}

@media (max-width: 599px) {
    .dst-footer-illustration {
        height: 80px !important;
        background-image: var(--bg-mobile) !important;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    .dst-footer-illustration {
        height: 110px !important;
        background-image: var(--bg-tablet) !important;
    }
}

@media (min-width: 1024px) {
    .dst-footer-illustration {
        height: 140px !important;
        background-image: var(--bg-desktop) !important;
    }
}
/* --------------------------------------------------------------------------
   30. UNIVERSAL BOOTSTRAP-STYLE CARD COMPONENT (THEME ADAPTIVE)
   -------------------------------------------------------------------------- */
.dst-card {
    background-color: var(--dst-surface) !important;
    color: var(--dst-text-main) !important;
    border: 1px solid var(--dst-border);
    border-radius: 10px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Small Card Shadow Variant */
.dst-card-sm {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}

/* Large / Deep Card Shadow Variant (Zyada ubhar ke aane ke liye) */
.dst-card-lg {
    box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -4px rgba(15, 23, 42, 0.05) !important;
}

/* 🌙 Dark Mode Deep Shadow Enhancement (Taaki dark theme me bhi card shandar ubhar ke dikhe) */
[data-theme="dark"] .dst-card,
body.dark-mode .dst-card {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .dst-card-sm,
body.dark-mode .dst-card-sm {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .dst-card-lg,
body.dark-mode .dst-card-lg {
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.dst-card-header {
    background-color: var(--dst-surface-subtle) !important;
    border-bottom: 1px solid var(--dst-border) !important;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dst-text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dst-card-body {
    padding: 1.25rem;
    flex: 1 1 auto;
    color: var(--dst-text-main);
}

.dst-card-footer {
    background-color: var(--dst-surface-subtle) !important;
    border-top: 1px solid var(--dst-border) !important;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}


/* ==========================================================================
   MODULAR CSS: DST UI SERVICES (ALERTS, LOADERS, TOASTS & UPI QR MODALS)
   Inherits global variables directly from master.css (Light/Dark & Accents)
   ========================================================================== */

.dst-ui-services-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.65) !important;
    z-index: 1300 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: dstUiServicesFadeIn 0.2s ease-in-out;
    outline: none;
}

.dst-ui-services-modal-dialog {
    width: 90%;
    max-width: 480px;
    margin: auto;
    overflow: hidden;
    background: var(--dst-surface, #ffffff) !important;
    color: var(--dst-text-main, #0f172a) !important;
    border: 1px solid var(--dst-border, #cbd5e1) !important;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.25rem 1rem;
    position: relative;
}

/* Balance Alert Container Styles */
.dst-ui-balance-card-dialog {
    max-width: 420px !important;
    padding: 2rem 1.5rem !important;
    background: var(--dst-surface, #ffffff) !important;
    border: 1px solid var(--dst-border, #cbd5e1);
    box-shadow: 0 20px 45px -10px rgba(11, 37, 69, 0.22) !important;
}

.dst-ui-balance-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dst-ui-balance-icon-ring {
    width: 64px;
    height: 64px;
    background: var(--dst-primary-accent, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(11, 37, 69, 0.35);
    margin-bottom: 12px;
}

    .dst-ui-balance-icon-ring svg {
        width: 32px;
        height: 32px;
    }

.dst-ui-balance-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dst-text-main, #0f172a);
    margin: 0 0 16px 0;
}

.dst-ui-balance-badge-box {
    width: 100%;
    background: var(--dst-surface-subtle, #f1f5f9);
    border: 1px dashed var(--dst-border, #cbd5e1);
    border-radius: 14px;
    padding: 18px 12px;
    margin-bottom: 14px;
}

.dst-ui-balance-lead-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dst-text-subtle, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.dst-ui-balance-val {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dst-primary-accent, #2563eb);
    font-family: var(--dst-font-mono, monospace);
    letter-spacing: -0.02em;
}

.dst-ui-balance-submessage {
    font-size: 0.875rem;
    color: var(--dst-text-muted, #64748b);
    margin: 0 0 18px 0;
    line-height: 1.4;
}

.dst-ui-balance-actions {
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dst-ui-balance-btn-confirm {
    background: var(--dst-primary-accent, #2563eb);
    color: #ffffff;
    min-width: 130px;
}

/* Standard Modals & Buttons */
.dst-ui-services-modal-header {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 20px !important;
    color: var(--dst-text-main, #0f172a);
}

.dst-ui-services-modal-body {
    padding: 12px 20px;
    font-size: 1.05rem;
    color: var(--dst-text-muted, #374151);
}

.dst-ui-services-modal-footer {
    padding: 14px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dst-ui-services-btn {
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.dst-ui-services-btn-secondary {
    background: var(--dst-surface-subtle, #f1f5f9);
    color: var(--dst-text-muted, #475569);
    border: 1px solid var(--dst-border, #cbd5e1);
}

.dst-ui-btn-info {
    background-color: var(--dst-primary-accent, #2563eb);
    color: #fff;
}

.dst-ui-btn-success {
    background-color: var(--dst-emerald, #16a34a);
    color: #fff;
}

.dst-ui-btn-warning {
    background-color: var(--dst-amber, #d97706);
    color: #fff;
}

.dst-ui-btn-error {
    background-color: var(--dst-error, #dc2626);
    color: #fff;
}

.dst-ui-btn-confirm {
    background-color: var(--dst-primary-accent, #0284c7);
    color: #fff;
}

/* UPI utilities */
.dst-ui-services-qr-wrapper {
    padding: 14px;
    background: var(--dst-surface-subtle, #f8fafc);
    border: 1px solid var(--dst-border, #e2e8f0);
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.dst-ui-services-amount-display {
    color: var(--dst-emerald, #16a34a);
    font-weight: 800;
    font-size: 1.625rem;
    margin: 0 0 4px 0;
}

.dst-ui-services-upi-address {
    font-size: 0.8125rem;
    color: var(--dst-text-muted, #475569);
    font-weight: 600;
    margin: 0;
}

.dst-ui-services-upi-note {
    font-size: 0.75rem;
    color: var(--dst-text-subtle, #94a3b8);
    margin: 4px 0 0 0;
}

/* Loader Card */
.dst-ui-services-loader-card {
    min-width: 300px;
    max-width: 420px;
    padding: 28px;
    background: var(--dst-surface, #ffffff);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--dst-primary-accent, #0b2545);
}

.dst-ui-services-portal-title {
    color: var(--dst-text-main, #0b2545);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 12px 0 6px 0;
}

.dst-ui-services-portal-subtitle {
    color: var(--dst-text-subtle, #64748b);
    font-size: 0.85rem;
    margin: 0;
}

.dst-ui-services-spinner-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

.dst-ui-services-spinner-ring {
    width: 100%;
    height: 100%;
    border: 3px solid var(--dst-border, #e2e8f0);
    border-top: 3px solid var(--dst-primary-accent, #0b2545);
    border-right: 3px solid var(--dst-amber, #f59e0b);
    border-radius: 50%;
    animation: dstUiServicesSpin 0.85s linear infinite;
}

.dst-ui-services-spinner-core {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 50px;
    height: 50px;
    background: var(--dst-primary-accent, #0b2545);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dst-ui-services-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.dst-ui-services-progress-bar {
    width: 50px;
    height: 3px;
    background: var(--dst-amber, #f59e0b);
    border-radius: 2px;
    margin: 8px auto 12px auto;
    animation: dstUiServicesPulseBar 1.4s ease-in-out infinite;
}

/* Toasts */
.dst-ui-services-toast-host {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 1350 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}

.dst-ui-services-toast {
    pointer-events: auto;
    background: var(--dst-surface, #0f172a) !important;
    color: var(--dst-text-main, #ffffff);
    border: 1px solid var(--dst-border, #334155);
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    animation: dstUiServicesToastSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 5px solid var(--dst-primary-accent, #2563eb);
}

.dst-ui-toast-border-info {
    border-left-color: var(--dst-primary-accent, #2563eb);
}

.dst-ui-toast-border-success {
    border-left-color: var(--dst-emerald, #16a34a);
}

.dst-ui-toast-border-warning {
    border-left-color: var(--dst-amber, #d97706);
}

.dst-ui-toast-border-error {
    border-left-color: var(--dst-error, #dc2626);
}

.dst-ui-toast-border-confirm {
    border-left-color: var(--dst-primary-accent, #0284c7);
}

.dst-ui-services-toast-message {
    flex: 1;
    line-height: 1.4;
    font-weight: 500;
}

.dst-ui-services-toast-close {
    background: none;
    border: none;
    color: var(--dst-text-subtle, #94a3b8);
    font-size: 1.35rem;
    cursor: pointer;
}

    .dst-ui-services-toast-close:hover {
        color: var(--dst-text-main, #ffffff);
    }

/* Animations & Utilities */
.dst-ui-services-text-center {
    text-align: center;
}

.dst-ui-services-justify-center {
    justify-content: center;
}

.dst-ui-spin-circle {
    position: absolute;
    margin: auto;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 19px;
    height: 19px;
    border-radius: 100%;
    box-shadow: 19px 19px #0b1f59, -19px 19px #dfdfdf, -19px -19px #0b1f59, 19px -19px #dfdfdf;
    animation: dst-ui-spin-circle-anim 3.4s ease infinite;
}

@keyframes dstUiServicesSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes dstUiServicesPulseBar {
    0%, 100% {
        width: 35px;
        opacity: 0.6;
    }

    50% {
        width: 80px;
        opacity: 1;
    }
}

@keyframes dstUiServicesFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dstUiServicesToastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Screen par chhupane ke liye (Bootstrap d-none ki jagah) */
/*.pos-screen-hide {
    display: none;
}
}

 Screen par receipt chhupane ke liye 
*/

@media screen {
    .pos-screen-hide {
        display: none !important;
    }
}

@media print {
    /* 1. Pure page ke har element ko chhupa dein */
    body * {
        visibility: hidden !important;
    }

    /* 2. Html aur body ka lock kholein */
    html, body {
        height: auto !important;
        overflow: visible !important;
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. Sirf POS Receipt aur uske andar ke elements ko visible karein */
    .pos-receipt-container.pos-print,
    .pos-receipt-container.pos-print * {
        visibility: visible !important;
        font-family: Arial !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        -webkit-font-smoothing: none !important;
        text-rendering: optimizeSpeed !important;
    }

    /* Default font size sirf container pe lagayein taaki child bold/size override na ho */
    .pos-receipt-container.pos-print {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 72mm !important;
       
        line-height: 1.3 !important;
        background: #ffffff !important;
        z-index: 999999 !important;
        margin: 0 !important;
        padding: 2mm !important;
        box-sizing: border-box !important;
    }
    .pos-header {
        border-bottom: 1px dashed #000;
        text-align: center;
        padding-bottom: 4px;
        margin-bottom: 6px;
    }
        .pos-header .title {
            font-size: 14px !important;
            font-weight: 800 !important;
            text-transform: uppercase;
        }
    .pos-receipt-container.pos-print table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 6px;
    }

        .pos-receipt-container.pos-print th,
        .pos-receipt-container.pos-print td {
            padding: 1px 0 !important;
            vertical-align: top !important;
        }
    .pos-items-table thead th {
        border: dashed 1px #000;
        padding: 3px !important;
        text-align: center !important;
    }
   
    @page {
        margin: 0;
    }
}