/* ============================================================
   NIKITA ENTERPRISES — ADMIN PANEL CSS
   Unified Executive Light Theme (Stripe & TailAdmin Inspired)
   100% Offline — High Contrast, Crisp Typography, Premium Aesthetics
   NO INLINE CSS / NO INLINE JS — All styles moved to dedicated classes
   ============================================================ */
/* 100% Offline System Font Stack - High Performance, Zero External Dependencies */

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-soft: #e0e7ff;

    --secondary: #0891b2;
    --secondary-soft: #cffaff;

    --success: #16a34a;
    --success-soft: #dcfce7;

    --warning: #d97706;
    --warning-soft: #fef3c7;

    --danger: #dc2626;
    --danger-soft: #fee2e2;

    /* Theme Surfaces (Harmonious Pure Light Mode) */
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --sidebar-bg: #ffffff;
    --sidebar-border: #e2e8f0;
    --topbar-bg: #ffffff;
    --topbar-border: #e2e8f0;

    /* Typography Colors (High Contrast) */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Dimensions */
    --sidebar-width: 260px;
    --topbar-height: 65px;
    --border-radius: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ====================================================
   SIDEBAR — Fixed Left Panel
   ==================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1.5px solid var(--sidebar-border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* ---- Sidebar Brand ---- */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    text-decoration: none;
    border-bottom: 1.5px solid var(--sidebar-border);
    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-name span {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* ---- Sidebar Navigation ---- */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px 80px 12px;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 18px 12px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.22);
}

.nav-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 7px;
    background: #f1f5f9;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.nav-item:hover .nav-icon {
    background: var(--primary-soft);
    color: var(--primary);
}

.nav-item.active .nav-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ---- Sidebar User Footer ---- */
.sidebar-user {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-top: 1.5px solid var(--sidebar-border);
    background: var(--sidebar-bg);
}

.user-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info-sm {
    flex: 1;
    min-width: 0;
}

.user-name-sm {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-sm {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.btn-logout-sm {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: var(--danger-soft);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-logout-sm:hover {
    background: var(--danger);
    color: #fff;
}

/* ====================================================
   TOPBAR — Sticky Header
   ==================================================== */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    border-bottom: 1.5px solid var(--topbar-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    z-index: 999;
}

.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 320px;
}

.topbar-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.topbar-search input {
    width: 100%;
    height: 38px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 0 16px 0 38px;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.topbar-search input:focus {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.topbar-spacer {
    flex: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
}

.topbar-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.clock-cal-icon {
    color: #4f46e5;
    margin-right: 2px;
}

.clock-divider {
    opacity: 0.3;
    margin: 0 4px;
}

.tour-btn-icon {
    color: #4f46e5;
}

.tour-btn-text {
    font-size: 12.5px;
    font-weight: 600;
    margin-left: 4px;
    color: #334155;
}

.btn-hamburger-mobile {
    display: none;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.topbar-user:hover {
    background: #f1f5f9;
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.topbar-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.top-bar-user-icon {
    font-size: 10px;
    color: var(--text-muted);
}

/* ---- User Dropdown Menu ---- */
.user-dropdown-menu {
    position: absolute;
    top: calc(var(--topbar-height) - 4px);
    right: 24px;
    width: 220px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
    animation: fadeSlideIn 0.18s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header-block {
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dropdown-user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.12s ease;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.dropdown-item i {
    font-size: 13px;
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0;
}

.dropdown-item-danger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.84rem;
    color: var(--danger);
    text-decoration: none;
    transition: background 0.12s ease;
}

.dropdown-item-danger:hover {
    background: var(--danger-soft);
}

.dropdown-item-danger i {
    font-size: 13px;
    width: 18px;
    text-align: center;
}

/* ====================================================
   MAIN CONTENT AREA
   ==================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    padding-top: calc(var(--topbar-height) + 24px);
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 40px;
    min-height: 100vh;
    background: var(--body-bg);
    overflow-x: hidden;
}

/* ====================================================
   RESPONSIVE — Mobile
   ==================================================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .topbar {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .btn-hamburger-mobile {
        display: flex !important;
    }

    .topbar-search {
        display: none;
    }

    .topbar-username {
        display: none;
    }
}

/* ====================================================
   LOGIN PAGE & FORM COMPONENTS
   ==================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #f8fafc;
}

.login-left {
    flex: 1.1;
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 50%, #6366f1 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Animated Background Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-105vh) rotate(360deg);
        opacity: 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.15s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-brand {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 45px;
}

.login-brand h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.login-brand p {
    color: #c7d2fe;
    font-size: 1rem;
}

.login-features {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 420px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.feature-icon-fa {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.feature-text h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
}

.feature-text p {
    font-size: 0.8rem;
    color: #c7d2fe;
}

.login-right {
    width: 480px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
}

.login-form-wrapper {
    width: 100%;
    max-width: 370px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
    transition: var(--transition);
    z-index: 5;
}

.form-control {
    width: 100%;
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 16px 12px 44px;
    color: #0f172a;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.12);
    background: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
    z-index: 5;
}

.eye-toggle:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.captcha-image-wrapper {
    flex: 1;
    height: 44px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.captcha-img {
    height: 38px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.btn-refresh-captcha {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: var(--primary);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    flex-shrink: 0;
}

.btn-refresh-captcha:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: rotate(45deg);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.login-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #e2e8f0;
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

/* Dedicated Error Panel & Icon Classes */
.error-alert {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #dc2626;
    margin-bottom: 20px;
}

.icon-mr-8 {
    margin-right: 8px;
}

.field-error {
    color: #dc2626 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    display: block !important;
    clear: both !important;
    position: static !important;
    z-index: 1 !important;
    line-height: 1.3 !important;
    width: 100% !important;
}

span.field-error[style*="display: none"],
span.field-error[style*="display:none"],
.field-error[style*="display: none"],
.field-error[style*="display:none"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.shield-icon {
    color: #4f46e5;
    margin-right: 6px;
}

.welcome-icon {
    color: #eab308;
    margin-left: 6px;
}

.brand-icon-fa {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
    }

    .login-left {
        padding: 40px 24px;
    }

    .login-right {
        width: 100%;
        padding: 40px 24px;
    }

    .login-form-wrapper {
        max-width: 100%;
    }
}

/* ============================================================
   SIDEBAR (Clean Executive White Sidebar)
   ============================================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-brand {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--sidebar-border);
    text-decoration: none;
    background: #ffffff;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brand-name span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.nav-section-label {
    padding: 14px 20px 6px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border-radius: 10px;
    margin: 3px 12px;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: #3730a3;
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
    font-weight: 700;
}

.nav-item:hover .nav-icon {
    color: #4f46e5;
    transform: scale(1.18);
}

.nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    border-color: transparent;
}

.nav-item.active .nav-icon {
    color: #ffffff;
}

.nav-item .nav-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #64748b;
    transition: all 0.2s ease-in-out;
}

.nav-badge {
    margin-left: auto;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.nav-badge.success {
    background: #dcfce7;
    color: #15803d;
}

.nav-badge.warning {
    background: #fef3c7;
    color: #b45309;
}

.nav-badge.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.sidebar-user {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    margin: 8px 12px 14px;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
}

.user-info-sm {
    flex: 1;
    min-width: 0;
}

.user-info-sm .user-name-sm {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info-sm .user-role-sm {
    font-size: 0.73rem;
    color: #64748b;
}

.btn-logout-sm {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    cursor: pointer;
    padding: 7px 9px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-logout-sm:hover {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

/* ====================================================
   TOPBAR & USER DROPDOWN COMPONENT
   ==================================================== */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--topbar-border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.btn-hamburger-mobile {
    display: none;
}

.topbar-spacer {
    flex: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.topbar-btn:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: var(--primary-soft);
}

.topbar-notif {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 17px;
    height: 17px;
    background: var(--danger);
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user:hover {
    border-color: var(--primary-light);
    background: #ffffff;
}

.topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.topbar-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.top-bar-user-icon {
    font-size: 11px;
    color: #64748b;
    margin-left: 4px;
}

/* User Dropdown Menu Component */
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 58px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.user-dropdown-menu.show {
    display: block;
}

.dropdown-header-block {
    padding: 10px 12px 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 6px;
}

.dropdown-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.dropdown-user-role {
    font-size: 0.75rem;
    color: #64748b;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    text-decoration: none;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-item i {
    width: 16px;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #4f46e5;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

.dropdown-item-danger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    text-decoration: none;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-item-danger i {
    width: 16px;
}

.dropdown-item-danger:hover {
    background: #fee2e2;
}

/* ====================================================
   MAIN CONTENT & UTILITY CLASSES
   ==================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 28px;
    min-height: calc(100vh - var(--topbar-height));
    background: var(--body-bg);
}

.page-header {
    margin-bottom: 24px;
}

.flex-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.header-right-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
}

.page-title-icon {
    color: #6366f1;
    margin-right: 8px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

.breadcrumb-icon-home {
    font-size: 11px;
}

.breadcrumb-icon-chevron {
    font-size: 9px;
}

.date-badge {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}

.date-icon {
    margin-right: 6px;
    color: #4f46e5;
}

/* Premium Live Server Clock Styling for Topbar */
.topbar-clock {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.8rem;
    color: #334155;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-right: 22px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 38px;
    box-sizing: border-box;
    margin-right: 8px;
}

.topbar-clock:hover {
    border-color: #6366f1;
    color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -2px rgba(99, 102, 241, 0.1);
}

.topbar-clock::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #10b981;
    /* Live green dot */
    border-radius: 50%;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 8px #10b981;
    animation: pulse-green 2s infinite;
}

.clock-icon-animated {
    color: #4f46e5;
    animation: rotate-clock-hand 12s linear infinite;
}

@keyframes pulse-green {
    0% {
        transform: translateY(-50%) scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }

    100% {
        transform: translateY(-50%) scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes rotate-clock-hand {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-export {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
    transition: var(--transition);
}

.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* ====================================================
   WELCOME BANNER (Executive Indigo Gradient)
   ==================================================== */
.welcome-banner {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 50%, #6366f1 100%);
    border-radius: var(--border-radius);
    padding: 26px 30px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
}

.welcome-text h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.welcome-text p {
    font-size: 0.88rem;
    color: #e0e7ff;
    line-height: 1.6;
}

.alert-tag-purple {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.alert-tag-green {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.welcome-stat {
    display: flex;
    gap: 16px;
}

.wstat-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    min-width: 110px;
}

.wstat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
}

.wstat-label {
    font-size: 0.72rem;
    color: #c7d2fe;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ====================================================
   STAT CARDS & PROGRESS
   ==================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 20px 22px;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-card:nth-child(1) .stat-icon {
    background: var(--primary-soft);
    color: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
    background: var(--success-soft);
    color: var(--success);
}

.stat-card:nth-child(3) .stat-icon {
    background: var(--warning-soft);
    color: var(--warning);
}

.stat-card:nth-child(4) .stat-icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}

.stat-trend.up {
    color: var(--success);
    background: var(--success-soft);
}

.stat-trend.down {
    color: var(--danger);
    background: var(--danger-soft);
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    margin-top: 14px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 10px;
}

.stat-card:nth-child(1) .stat-bar-fill {
    background: var(--primary);
}

.stat-card:nth-child(2) .stat-bar-fill {
    background: var(--success);
}

.stat-card:nth-child(3) .stat-bar-fill {
    background: var(--warning);
}

.stat-card:nth-child(4) .stat-bar-fill {
    background: var(--danger);
}

.progress-fill-74 {
    width: 74%;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
}

.progress-fill-62 {
    width: 62%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.progress-fill-85 {
    width: 85%;
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.progress-fill-30 {
    width: 30%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.progress-fill-88 {
    width: 88%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.progress-fill-61 {
    width: 61%;
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.progress-fill-42 {
    width: 42%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

/* ====================================================
   DASHBOARD GRID & CARDS
   ==================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 18px 22px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-border);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.card-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.card-badge.primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.card-badge.success {
    background: var(--success-soft);
    color: var(--success);
}

.card-badge.warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.card-badge.danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.card-header-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge-dot {
    font-size: 7px;
}

.card-body {
    padding: 20px 22px;
}

.card-body-table {
    padding: 0 22px 16px;
}

/* Donut Chart Inner Content */
.donut-center-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.donut-relative-wrap {
    position: relative;
    width: 160px;
    height: 160px;
}

.donut-inner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-percent {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}

.donut-label {
    font-size: 0.7rem;
    color: #64748b;
}

.legend-dot-purple {
    background: #4f46e5;
}

.legend-dot-cyan {
    background: #0891b2;
}

.legend-dot-green {
    background: #16a34a;
}

.legend-dot-orange {
    background: #d97706;
}

/* ====================================================
   TABLES & WIDGETS
   ==================================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--card-border);
    background: #f8fafc;
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #f8fafc;
    color: #0f172a;
}

.avatar-flex-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-name {
    font-weight: 600;
    color: #0f172a;
}

.order-id-highlight {
    color: #4f46e5;
    font-weight: 600;
}

.order-amount-highlight {
    font-weight: 700;
    color: #0f172a;
}

.link-view-all {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.link-view-all:hover {
    text-decoration: underline;
}

.arrow-icon-sm {
    font-size: 10px;
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
}

.status-pill.active {
    background: var(--success-soft);
    color: var(--success);
}

.status-pill.pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-pill.inactive {
    background: #f1f5f9;
    color: #64748b;
}

/* ====================================================
   ACTIVITY & QUICK ACTIONS
   ==================================================== */
.right-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.activity-dot {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.activity-dot.primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.activity-dot.success {
    background: var(--success-soft);
    color: var(--success);
}

.activity-dot.warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.activity-dot.danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.activity-dot.secondary {
    background: var(--secondary-soft);
    color: var(--secondary);
}

.activity-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
}

.activity-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 1px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
}

.quick-action-btn:hover {
    border-color: var(--primary-light);
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.quick-action-btn .qa-icon {
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-icon-purple {
    background: var(--primary-soft);
    color: var(--primary);
}

.qa-icon-cyan {
    background: var(--secondary-soft);
    color: var(--secondary);
}

.qa-icon-green {
    background: var(--success-soft);
    color: var(--success);
}

.qa-icon-orange {
    background: var(--warning-soft);
    color: var(--warning);
}

.qa-icon-red {
    background: var(--danger-soft);
    color: var(--danger);
}

.qa-icon-violet {
    background: #f3e8ff;
    color: #9333ea;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.legend-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-value {
    font-weight: 700;
    color: #0f172a;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.weekly-chart-wrap {
    height: 140px;
}

.weekly-stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.weekly-stat-cell {
    text-align: center;
}

.weekly-stat-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.weekly-stat-val-green {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--success);
}

.weekly-stat-val-orange {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--warning);
}

.weekly-stat-lbl {
    font-size: 0.72rem;
    color: #64748b;
}

.tp-sales-gold {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.tp-bar-silver {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #9ca3af, #6b7280);
}

.tp-bar-bronze {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #b97a3c, #92400e);
}

.tp-bar-green {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #16a34a, #059669);
}

.w-pct-90 {
    width: 90%;
}

.w-pct-70 {
    width: 70%;
}

.w-pct-55 {
    width: 55%;
}

.w-pct-40 {
    width: 40%;
}

.w-pct-30 {
    width: 30%;
}

.progress-item {
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.progress-label {
    color: #475569;
    font-weight: 600;
}

.progress-value {
    color: #0f172a;
    font-weight: 700;
}

.progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 992px) {

    .dashboard-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Sidebar overlay for mobile drawer ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
}

.sidebar-overlay.show {
    display: block;
    animation: fadeInOverlay 0.25s ease-out;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
    }

    .sidebar {
        transform: translateX(-100%) !important;
        z-index: 10000 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .topbar {
        left: 0 !important;
        padding: 0 16px !important;
    }

    .btn-hamburger-mobile {
        display: flex !important;
    }

    /* Welcome banner stacks on mobile */
    .welcome-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 20px !important;
    }

    .welcome-stat {
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* Header card responsive stack */
    .page-header-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
        gap: 16px !important;
    }

    .master-tab-group {
        width: 100% !important;
    }

    .master-tab-btn {
        flex: 1 !important;
        justify-content: center !important;
    }

    /* Form actions responsive */
    .form-actions {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .form-actions .btn {
        flex: 1 !important;
        min-width: 120px !important;
        text-align: center !important;
    }
}

/* Captcha UI Components */
.captcha-group {
    margin-bottom: 20px;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.captcha-image-wrapper {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 3px 6px;
    height: 46px;
    box-sizing: border-box;
}

.captcha-img {
    height: 38px;
    border-radius: 6px;
    display: block;
}

.btn-refresh-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    color: var(--primary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-refresh-captcha:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: rotate(180deg);
}

/* ====================================================
   LEGACY ADMIN PAGE CLASSES — MODERN EXECUTIVE STYLING
   Targets old class names so existing pages look premium
   without modifying any HTML markup.
   ==================================================== */

/* ---- Layout Helpers ---- */
.clear {
    clear: both;
    height: 0;
}

.space3 {
    height: 6px;
}

.space10 {
    height: 14px;
}

/* ---- Page Title Bar ---- */
.pname {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pname::before {
    content: '';
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
    flex-shrink: 0;
}

/* ---- Card / Box Container ---- */
.nbox {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.nbox:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---- Section Headers ---- */
.shead {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 18px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 8px;
}

/* ---- Form Labels ---- */
.lable,
td.lable {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px 10px 0 !important;
    vertical-align: middle;
    white-space: nowrap;
}

/* ---- Form Tables ---- */
.nbox>div>table,
.nbox table {
    border-collapse: separate;
    border-spacing: 0 6px;
}

.nbox table tr td {
    padding: 6px 10px;
    vertical-align: middle;
}

/* ---- Form Inputs (TextBox, DropDown) ---- */
.nbox input[type="text"],
.nbox textarea,
.nbox select,
.main-content input[type="text"],
.main-content textarea,
.main-content select {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 14px;
    color: #0f172a;
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    max-width: 100%;
}

.nbox input[type="text"]:focus,
.nbox textarea:focus,
.nbox select:focus,
.main-content input[type="text"]:focus,
.main-content textarea:focus,
.main-content select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.10);
    background: #fff;
}

/* ---- Base Buttons ---- */
.btn,
.nbox input[type="submit"],
.main-content input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 4px 6px 4px 0;
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.18);
}

.btn:hover,
.nbox input[type="submit"]:hover,
.main-content input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
    transform: translateY(-1px);
}

/* Explicit Button Type Overrides */
.btn-primary,
input[type="submit"].btn-primary,
.nbox .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3) !important;
}

.btn-primary:hover,
input[type="submit"].btn-primary:hover,
.nbox .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.btn-success,
input[type="submit"].btn-success,
.nbox .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3) !important;
}

.btn-success:hover,
input[type="submit"].btn-success:hover,
.nbox .btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.btn-secondary,
.btn-cancel,
input[type="submit"].btn-secondary,
input[type="submit"].btn-cancel,
.nbox .btn-secondary,
.nbox .btn-cancel {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 3px 10px rgba(71, 85, 105, 0.25) !important;
}

.btn-secondary:hover,
.btn-cancel:hover,
input[type="submit"].btn-secondary:hover,
input[type="submit"].btn-cancel:hover,
.nbox .btn-secondary:hover,
.nbox .btn-cancel:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
    transform: translateY(-1px) !important;
}

.btn:active,
.nbox input[type="submit"]:active,
.main-content input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.15);
}

/* ---- Data Table (List View) ---- */
.tbod {
    width: 100%;
    border-collapse: collapse;
}

.listviewtablehead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 13px 14px;
    text-align: left;
    border: none;
    white-space: nowrap;
}

.listviewtablehead:first-child {
    border-radius: 10px 0 0 0;
}

.listviewtablehead:last-child {
    border-radius: 0 10px 0 0;
}

.tbod thead th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 13px 14px;
    text-align: left;
    border: none;
}

.tbod thead tr th:first-child {
    border-radius: 10px 0 0 0;
}

.tbod thead tr th:last-child {
    border-radius: 0 10px 0 0;
}

.row td,
.row1 td,
.tbod tbody tr td {
    padding: 11px 14px;
    font-size: 0.84rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.row {
    background: #ffffff;
    transition: background 0.15s ease;
}

.row:hover {
    background: #f8fafc;
}

.row1 {
    background: #f8fafc;
    transition: background 0.15s ease;
}

.row1:hover {
    background: #eef2ff;
}

.ListViewHeadingText {
    font-size: 0.84rem;
    color: #334155;
}

/* ---- Edit/Delete Icon Buttons ---- */
.nbox td img,
.tbod td img,
.row td img,
.row1 td img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.nbox td img:hover,
.tbod td img:hover,
.row td img:hover,
.row1 td img:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ---- Pager / Pagination ---- */
.pager {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.pager a,
.pager span,
.pager .first,
.pager .last,
.pager .next,
.pager .numeric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pager a:hover,
.pager .numeric:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.pager .current,
.pager span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- Validation Error ---- */
.Error,
span[id*="Validator"],
span[style*="color:Red"],
span[style*="color: Red"] {
    color: var(--danger) !important;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ---- Update Progress Overlay ---- */
.UpdateProgressBackground {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(3px);
    z-index: 9998;
}

.UpdateProgressContent {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 28px 44px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    z-index: 9999;
    text-align: center;
    animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ---- Company Logo ---- */
.clogo {
    text-align: right;
}

.clogo img {
    max-width: 250px;
    height: auto;
    border-radius: 8px;
}

/* ====================================================
   BILL PRINT — PREMIUM INVOICE DESIGN
   Matching the Nikita Enterprises invoice style
   ==================================================== */
.billdata {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    margin-bottom: 10px;
}

.billdata th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 11px 12px;
    text-align: left;
    border: 1px solid #475569;
}

.billdata td {
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.82rem;
}

.billdata tbody tr:nth-child(even) {
    background: #f8fafc;
}

.billdata tbody tr:hover {
    background: #eef2ff;
}

.billdata tfoot td {
    font-weight: 700;
    background: #f1f5f9;
    border-top: 2px solid #e2e8f0;
}

.rowbottom td {
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.82rem;
    color: #334155;
}

/* ---- Print Media Styles ---- */
@media print {

    .sidebar,
    .topbar,
    .btn-hamburger-mobile,
    .topbar-search,
    .topbar-actions,
    .topbar-spacer {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body {
        background: #fff !important;
        font-size: 11pt !important;
        color: #000 !important;
    }

    .billdata th {
        background: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .billdata td {
        border: 1px solid #999 !important;
    }

    .nbox {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .pname {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ---- ASP Label inside form tables ---- */
.nbox td span[id],
.main-content td span[id] {
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 500;
}

/* ---- Checkbox Styling ---- */
.nbox input[type="checkbox"],
.main-content input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ---- Image Buttons (Calendar, Refresh etc) ---- */
.nbox input[type="image"],
.main-content input[type="image"] {
    vertical-align: middle;
    margin-left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nbox input[type="image"]:hover,
.main-content input[type="image"]:hover {
    opacity: 1;
}

/* ---- LinkButton Styling ---- */
.nbox a[href*="javascript:__doPostBack"],
.main-content a[href*="javascript:__doPostBack"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: #f1f5f9;
    color: var(--primary);
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 4px 4px 4px 0;
}

.nbox a[href*="javascript:__doPostBack"]:hover,
.main-content a[href*="javascript:__doPostBack"]:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ---- GridView / DataGrid Styling ---- */
.main-content table[id*="GridView"],
.main-content table[id*="grd"],
.main-content table[id*="gv"] {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.main-content table[id*="GridView"] th,
.main-content table[id*="grd"] th,
.main-content table[id*="gv"] th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 14px;
    text-align: left;
}

.main-content table[id*="GridView"] td,
.main-content table[id*="grd"] td,
.main-content table[id*="gv"] td {
    padding: 10px 14px;
    font-size: 0.84rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.main-content table[id*="GridView"] tr:nth-child(even),
.main-content table[id*="grd"] tr:nth-child(even),
.main-content table[id*="gv"] tr:nth-child(even) {
    background: #f8fafc;
}

.main-content table[id*="GridView"] tr:hover,
.main-content table[id*="grd"] tr:hover,
.main-content table[id*="gv"] tr:hover {
    background: #eef2ff;
}

/* ---- Empty Data Message ---- */
.tbod td[colspan] {
    text-align: center;
    padding: 32px 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
}

/* ---- Calendar Button ---- */
.btn-calendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    color: var(--primary) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-left: 6px;
    text-decoration: none;
}

.btn-calendar:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark) !important;
    transform: scale(1.05);
}

.btn-calendar i {
    font-size: 15px;
}

/* ---- Form Tables Structure ---- */
.nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 24px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) tr {
    border-bottom: 1.5px solid #e2e8f0 !important;
}

.nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) tr:last-child {
    border-bottom: none !important;
}

.nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) td.lable,
.nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) td.style3,
.nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) tr td:first-child {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
    border-right: 1.5px solid #e2e8f0;
    padding: 14px 20px !important;
    border-bottom: 1.5px solid #e2e8f0;
}

.nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) td {
    padding: 14px 20px !important;
    background: #ffffff;
    border-bottom: 1.5px solid #e2e8f0;
}

.nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) tr:last-child td {
    border-bottom: none !important;
}

/* ====================================================
   INVOICE / BILL PRINT STYLES
   ==================================================== */
.invoice-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.inv-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #fff;
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inv-header-left h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.inv-header-left p {
    font-size: 12px;
    color: #c7d2fe;
    letter-spacing: 0.3px;
}

.inv-header-right {
    text-align: right;
}

.inv-header-right .inv-no {
    font-size: 28px;
    font-weight: 800;
    color: #a5b4fc;
}

.inv-header-right .inv-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c7d2fe;
}

.inv-logo {
    text-align: right;
}

.inv-logo img {
    max-width: 200px;
    max-height: 80px;
    border-radius: 6px;
}

.inv-info-row {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
}

.inv-from,
.inv-meta {
    padding: 22px 32px;
    flex: 1;
}

.inv-from {
    border-right: 2px solid #e2e8f0;
}

.inv-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.inv-company-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.inv-detail {
    font-size: 12px;
    color: #475569;
    line-height: 1.7;
}

.inv-meta-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
}

.inv-meta-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inv-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.inv-to-section {
    padding: 18px 32px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.inv-items {
    width: 100%;
    border-collapse: collapse;
}

.inv-items thead th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 14px;
    text-align: left;
    border: none;
}

.inv-items thead th:last-child {
    text-align: right;
}

.inv-items tbody td {
    padding: 10px 14px;
    font-size: 12px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.inv-items tbody td:last-child {
    text-align: right;
    font-weight: 600;
}

.inv-items tbody tr:nth-child(even) {
    background: #f8fafc;
}

.inv-items tbody tr:hover {
    background: #eef2ff;
}

.inv-totals {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #e2e8f0;
}

.inv-totals td {
    padding: 10px 14px;
    font-size: 12px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.inv-totals td:last-child {
    text-align: right;
    font-weight: 600;
    color: #0f172a;
    width: 140px;
}

.inv-totals tr.grand-total td {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    padding: 14px;
}

.inv-totals tr.grand-total td:last-child {
    color: #fff !important;
}

.inv-footer {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.inv-note {
    font-size: 11px;
    color: #64748b;
    line-height: 1.6;
    max-width: 50%;
}

.inv-note b {
    color: #0f172a;
}

.inv-signatory {
    text-align: right;
}

.inv-signatory .for-label {
    font-size: 12px;
    color: #475569;
    margin-bottom: 30px;
}

.inv-signatory .for-company {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.inv-signatory .auth-line {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid #1e293b;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.5px;
}

.print-btn {
    display: block;
    max-width: 900px;
    margin: 20px auto 0;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.5px;
}

.print-btn:hover {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
}

/* ---- Action Buttons in List Views ---- */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
}

.btn-edit-icon {
    background: #e0e7ff;
    color: #4f46e5 !important;
}

.btn-edit-icon:hover {
    background: #4f46e5;
    color: #ffffff !important;
}

.btn-print-icon {
    background: #e0f2fe;
    color: #0284c7 !important;
}

.btn-print-icon:hover {
    background: #0284c7;
    color: #ffffff !important;
}

.btn-paid-icon {
    background: #dcfce7;
    color: #16a34a !important;
}

.btn-paid-icon:hover {
    background: #16a34a;
    color: #ffffff !important;
}

.btn-invoice-icon {
    background: #fef3c7;
    color: #d97706 !important;
}

.btn-invoice-icon:hover {
    background: #d97706;
    color: #ffffff !important;
}

.btn-delete-icon {
    background: #fee2e2;
    color: #dc2626 !important;
}

.btn-delete-icon:hover {
    background: #dc2626;
    color: #ffffff !important;
}

.btn-rights-icon {
    background: #d1fae5;
    color: #059669 !important;
}

.btn-rights-icon:hover {
    background: #059669;
    color: #ffffff !important;
}

/* ---- Responsive Scroll Wrappers ---- */
.table-responsible,
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    margin-bottom: 24px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* ---- Mobile Form Adaptability (Clean and premium visual structure) ---- */
@media (max-width: 1024px) {
    .nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) tr {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 18px !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) tr td:first-child {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
        padding: 12px 16px !important;
        background: #f8fafc !important;
    }

    .nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) tr td:last-child {
        width: 100% !important;
        border-bottom: none !important;
        padding: 14px 16px !important;
        background: #ffffff !important;
    }

    .nbox table:not(.tbod):not(.billdata):not([class*="ajax__calendar"]) tr:last-child td {
        border-bottom: none !important;
    }
}





/* ---- Form Table Cell Wrapping Prevention ---- */
.nbox table:not(.tbod):not(.billdata) td {
    white-space: nowrap !important;
}

.nbox table:not(.tbod):not(.billdata) td.lable,
.nbox table:not(.tbod):not(.billdata) td.style3,
.nbox table:not(.tbod):not(.billdata) tr td:first-child {
    white-space: normal !important;
}

/* ====================================================
   AJAX CONTROL TOOLKIT — ULTRA-PREMIUM MODERN DATEPICKER
   ==================================================== */
div.ajax__calendar_container,
.ajax__calendar_container {
    position: absolute !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.18), 0 10px 15px -5px rgba(15, 23, 42, 0.08) !important;
    padding: 14px !important;
    width: 260px !important;
    box-sizing: border-box !important;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #0f172a !important;
}

/* Reset inner table structures */
.ajax__calendar_container table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    border: none !important;
}

.ajax__calendar_container tbody {
    display: table-row-group !important;
}

.ajax__calendar_container tr {
    display: table-row !important;
}

.ajax__calendar_container td,
.ajax__calendar_container th {
    display: table-cell !important;
    padding: 3px !important;
    text-align: center !important;
    vertical-align: middle !important;
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
}

/* Header & Navigation Bar */
.ajax__calendar_header {
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 0 6px !important;
    margin-bottom: 10px !important;
}

.ajax__calendar_title {
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    color: #1e293b !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: background 0.2s ease !important;
}

.ajax__calendar_title:hover {
    background: #e2e8f0 !important;
    color: var(--primary) !important;
}

.ajax__calendar_prev,
.ajax__calendar_next {
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
}

.ajax__calendar_prev:hover,
.ajax__calendar_next:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
}

/* Day Names Header (Sun, Mon, Tue, etc.) */
.ajax__calendar_dayname {
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 6px 0 !important;
}

/* Day Cells */
.ajax__calendar_day {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin: 1px auto !important;
}

.ajax__calendar_day:hover {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Selected Date */
.ajax__calendar_active .ajax__calendar_day {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35) !important;
}

/* Today's Date */
.ajax__calendar_today .ajax__calendar_day {
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Days from Previous / Next Month */
.ajax__calendar_other .ajax__calendar_day {
    color: #cbd5e1 !important;
    opacity: 0.6 !important;
}

/* Months & Years Grid Views */
.ajax__calendar_month,
.ajax__calendar_year {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 36px !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    cursor: pointer !important;
    margin: 4px !important;
    transition: all 0.15s ease !important;
}

.ajax__calendar_month:hover,
.ajax__calendar_year:hover {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
}

.ajax__calendar_active .ajax__calendar_month,
.ajax__calendar_active .ajax__calendar_year {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/* Footer Today Button */
.ajax__calendar_footer {
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    cursor: pointer !important;
}

/* ---- Modern Form Grid (Bootstrap-like utility classes) ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.master-form-grid {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(140px, 200px);
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

/* ---- Executive Master Single Row Flex Grid ---- */
.master-single-row-grid {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.master-single-row-grid .form-group-field {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}

.master-single-row-grid .form-group-status {
    width: 130px;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.master-single-row-grid .form-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 8px;
    height: 18px;
    line-height: 18px;
}

.master-single-row-grid .form-control {
    height: 46px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    padding: 10px 16px !important;
}

.master-single-row-grid .input-wrapper {
    margin-bottom: 0 !important;
    height: 46px !important;
}

.master-single-row-grid .status-toggle-row {
    margin-top: 0 !important;
    height: 46px !important;
}

.master-single-row-grid .chk-wrapper {
    height: 46px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    padding: 0 16px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.master-single-row-grid .chk-wrapper:hover {
    border-color: #4f46e5;
    background: #eef2ff;
}

.master-single-row-grid .chk-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: pointer;
    margin: 0;
}

/* ---- Executive Unified Sidebar & Dropdown Menu ---- */
.nav-dropdown {
    margin-bottom: 2px;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: left;
    outline: none;
    gap: 12px;
}

.nav-dropdown-toggle:hover {
    background: #f1f5f9;
    color: #4f46e5;
}

.nav-dropdown-toggle.active,
.nav-dropdown.is-expanded>.nav-dropdown-toggle {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
}

.nav-dropdown-toggle .nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.nav-dropdown.is-expanded>.nav-dropdown-toggle .nav-icon {
    background: #4f46e5;
    color: #ffffff;
}

.nav-dropdown-toggle .nav-text {
    flex: 1;
}

.nav-dropdown-toggle .nav-chevron {
    font-size: 0.72rem;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.nav-dropdown.is-expanded .nav-chevron {
    transform: rotate(180deg);
    color: #4f46e5;
}

/* Sub-Menu Container (Opens Strictly On Click) */
.nav-sub-menu {
    padding-left: 0;
    margin-top: 4px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid #e2e8f0;
    margin-left: 24px;
    padding-left: 6px;
    transition: all 0.25s ease;
}

.sub-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sub-nav-item:hover {
    color: #4f46e5;
    background: #f8fafc;
    padding-left: 16px;
}

.sub-nav-item.active {
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.sub-nav-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.2s ease;
}

.sub-nav-item:hover .sub-nav-bullet {
    background: #4f46e5;
    transform: scale(1.2);
}

.sub-nav-item.active .sub-nav-bullet {
    background: #ffffff;
    transform: scale(1.2);
}

.nav-icon-sm {
    font-size: 0.84rem;
    width: 18px;
    text-align: center;
}

/* ---- Horizontal Tax Module Nav Bar ---- */
.tax-module-nav-bar {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    flex-wrap: wrap;
    gap: 12px;
}

.tax-module-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tax-module-title i {
    color: #4f46e5;
}

.tax-module-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.tax-module-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tax-module-tab:hover {
    color: #4f46e5;
    background: #ffffff;
}

.tax-module-tab.active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

@media (max-width: 640px) {
    .master-single-row-grid {
        flex-direction: column;
        gap: 16px;
    }

    .master-single-row-grid .form-group-status {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .master-form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.form-group-row input[type="text"],
.form-group-row select {
    flex: 1;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* ====================================================
   EXECUTIVE MASTER PAGE FORM & DATA GRID DESIGN SYSTEM
   ==================================================== */

/* ---- Page Header & Master Tab Switcher ---- */
.pname,
.page-header-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
    flex-wrap: wrap;
    gap: 14px;
}

.page-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    flex-shrink: 0;
}

.page-title-text h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.page-title-text p {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

.master-tab-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
}

.master-tab-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

.master-tab-btn.active,
.master-tab-btn:hover {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ---- Master Form Container Card ---- */
.nbox,
.master-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.card-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chk-wrapper,
.checkbox-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    width: 100%;
}

.chk-wrapper:hover,
.checkbox-toggle-container:hover {
    border-color: var(--primary);
    background: #ffffff;
}

.chk-wrapper input[type="checkbox"],
.checkbox-toggle-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.chk-wrapper span,
.checkbox-toggle-container span {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

/* ---- Form Action Buttons ---- */
.btn {
    padding: 10px 24px;
    height: 42px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    text-decoration: none;
}

.btn-primary,
.nbox .btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover,
.nbox .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.btn-success,
.nbox .btn-success {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
}

.btn-success:hover,
.nbox .btn-success:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.btn-secondary,
.btn-cancel,
.nbox .btn-secondary,
.nbox .btn-cancel {
    background: #64748b;
    color: #ffffff;
    border: 1px solid #475569;
    box-shadow: 0 3px 10px rgba(100, 116, 139, 0.25);
}

.btn-secondary:hover,
.btn-cancel:hover,
.nbox .btn-secondary:hover,
.nbox .btn-cancel:hover {
    background: #475569;
    color: #ffffff;
    border-color: #334155;
    transform: translateY(-1px);
}

/* ---- Executive Data Table Styling ---- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.tbod {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.tbod thead tr {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
}

.tbod th,
.listviewtablehead {
    padding: 14px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.tbod td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.tbod tbody tr.row,
.tbod tbody tr.row1 {
    transition: background 0.15s ease;
}

.tbod tbody tr:hover {
    background: #f8fafc;
}

.ListViewHeadingText {
    font-weight: 500;
    color: #1e293b;
}

/* Status Badges */
a.badge-status,
.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
}

a.badge-status:hover,
.badge-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none !important;
}

a.badge-active,
.badge-active {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

a.badge-active:hover,
.badge-active:hover {
    background-color: #bbf7d0 !important;
    color: #166534 !important;
    border-color: #4ade80 !important;
}

a.badge-active i,
.badge-active i {
    color: #16a34a !important;
}

a.badge-inactive,
.badge-inactive {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}

a.badge-inactive:hover,
.badge-inactive:hover {
    background-color: #fecaca !important;
    color: #991b1b !important;
    border-color: #f87171 !important;
}

a.badge-inactive i,
.badge-inactive i {
    color: #dc2626 !important;
}

/* Action Icon Buttons */
.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-edit-icon {
    background: #e0e7ff;
    color: #4f46e5;
}

.btn-edit-icon:hover {
    background: #4f46e5;
    color: #ffffff;
    transform: scale(1.05);
}

.btn-delete-icon {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete-icon:hover {
    background: #dc2626;
    color: #ffffff;
    transform: scale(1.05);
}

/* ---- Pagination Controls ---- */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
}

.pager a,
.pager span {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    margin: 0 2px;
    transition: var(--transition);
}

.pager a:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
}

.pager .current {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.pager .Error {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 14px;
    border-radius: 8px;
}

/* ---- Active Input Focus (Working in this Input Field) ---- */
.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: var(--primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px var(--primary-soft) !important;
    outline: none !important;
}

/* ---- Valid Input Highlighting (Green Border & Green Checkmark Icon) ---- */
.nbox select.is-valid,
.nbox .input-wrapper.has-success select,
.nbox .has-success select,
.nbox input.is-valid,
.nbox .input-wrapper.has-success input,
.main-content select.is-valid,
.main-content .has-success select,
.input-wrapper.has-success .form-control,
.input-wrapper.has-success select,
.input-wrapper.has-success input,
.form-control.is-valid,
input.is-valid,
select.is-valid,
textarea.is-valid {
    border: 1.5px solid #16a34a !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12) !important;
}

.nbox select.is-valid:focus,
.nbox .input-wrapper.has-success select:focus,
.input-wrapper.has-success .form-control:focus,
.input-wrapper.has-success select:focus,
.input-wrapper.has-success input:focus,
.form-control.is-valid:focus,
select.is-valid:focus {
    border: 1.5px solid #16a34a !important;
    box-shadow: 0 0 0 3.5px rgba(22, 163, 74, 0.2) !important;
}

/* Green Checkmark Icon Inside Input Box (Right Side) */
.validation-success-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #16a34a;
    font-size: 16px;
    pointer-events: none;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.password-wrapper .validation-success-icon {
    right: 42px;
}

.is-valid~.validation-success-icon,
.has-success>.validation-success-icon {
    display: flex !important;
}

/* ---- Select2 Component & Validation Styling ---- */
.select2-container .select2-selection--single {
    height: 42px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 14px !important;
    color: #0f172a !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

/* Select2 Invalid State (Red Border & Red Glow) */
.input-wrapper.has-error .select2-container .select2-selection--single,
.has-error .select2-container .select2-selection--single,
.nbox .has-error .select2-container .select2-selection--single,
select.is-invalid+.select2-container .select2-selection--single,
.select2-container.is-invalid .select2-selection--single {
    border: 1.5px solid #dc2626 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* Select2 Valid State (Green Border & Green Glow) */
.input-wrapper.has-success .select2-container .select2-selection--single,
.has-success .select2-container .select2-selection--single,
.nbox .has-success .select2-container .select2-selection--single,
select.is-valid+.select2-container .select2-selection--single,
.select2-container.is-valid .select2-selection--single {
    border: 1.5px solid #16a34a !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12) !important;
}

/* ---- Invalid Input Highlighting (Red Border & Red Exclamation Icon) ---- */
.nbox select.is-invalid,
.nbox .input-wrapper.has-error select,
.nbox .has-error select,
.nbox input.is-invalid,
.nbox .input-wrapper.has-error input,
.main-content select.is-invalid,
.main-content .has-error select,
.input-wrapper.has-error .form-control,
.input-wrapper.has-error select,
.input-wrapper.has-error input,
.form-control.is-invalid,
.form-control.input-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border: 1.5px solid #dc2626 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.nbox select.is-invalid:focus,
.nbox .input-wrapper.has-error select:focus,
.input-wrapper.has-error .form-control:focus,
.input-wrapper.has-error select:focus,
.input-wrapper.has-error input:focus,
.form-control.is-invalid:focus,
.form-control.input-invalid:focus,
select.is-invalid:focus {
    border: 1.5px solid #dc2626 !important;
    box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.2) !important;
}

/* Red Exclamation Circle Icon Inside Input Box (Right Side) */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.validation-error-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc2626;
    font-size: 16px;
    pointer-events: none;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.password-wrapper .validation-error-icon {
    right: 42px;
}

.is-invalid~.validation-error-icon,
.has-error>.validation-error-icon {
    display: flex !important;
}

/* Required Star on Field Labels */
.required-star {
    color: #dc2626 !important;
    font-weight: 700 !important;
    margin-left: 3px !important;
}

/* Validation Error Message Text Below Input */
.field-error,
.form-group .field-error {
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 3px;
    z-index: 10;
    pointer-events: none;
}

/* ====================================================
   EXECUTIVE ANIMATED TOAST NOTIFICATION SYSTEM
   ==================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: toastSlideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast-item.toast-hiding {
    animation: toastSlideOutRight 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes toastSlideInRight {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toast-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.toast-message {
    font-size: 0.83rem;
    color: #475569;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.toast-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    transform-origin: left;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Toast Color Variants */
.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    background: #ecfdf5;
    color: #10b981;
}

.toast-success .toast-progress {
    background: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    background: #fef2f2;
    color: #ef4444;
}

.toast-error .toast-progress {
    background: #ef4444;
}

.toast-warning {
    border-left: 4px solid #f97316;
}

.toast-warning .toast-icon {
    background: #fff7ed;
    color: #ea580c;
}

.toast-warning .toast-progress {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.toast-info .toast-progress {
    background: #3b82f6;
}


/* ====================================================
   EXECUTIVE CONFIRMATION MODAL DIALOG
   ==================================================== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
}

.confirm-modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    border: 1px solid #e2e8f0;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.confirm-modal-overlay.active .confirm-modal-card {
    transform: scale(1);
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.confirm-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.confirm-modal-icon.icon-primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.confirm-modal-icon.icon-danger {
    background: #fef2f2;
    color: #dc2626;
}

.confirm-modal-icon.icon-warning {
    background: #fffbeb;
    color: #d97706;
}

.confirm-modal-title-group h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.confirm-modal-title-group p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.confirm-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.confirm-modal-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}



/* ============================================================
   HSN / SAC MASTER — Form UI Classes
   (Reusable across master forms with similar layout)
   ============================================================ */

/* ── Shake animation — fires on invalid key press in numeric fields ── */
@keyframes shakeInput {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.shake-error {
    animation: shakeInput 0.4s ease;
}

/* ── Character counter badge (e.g. "4 / 10") ── */
.char-counter {
    display: inline-block;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

/* ── Row that holds field-hint + char-counter side by side ── */
.field-counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

/* ── Small hint text below a field ── */
.field-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

.field-hint i {
    font-size: 11px;
    color: var(--primary, #4f46e5);
}

/* ── JS-injected error message (animated slide-in) ── */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.js-field-error {
    animation: fadeInDown 0.2s ease;
}

/* ── Status toggle row (checkbox + pill side by side) ── */
.status-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

/* ── Status pill (Active / Inactive visual badge) ── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: #f1f5f9;
    color: #64748b;
    transition: background 0.25s, color 0.25s;
    cursor: default;
    user-select: none;
}

.status-pill.active-pill {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.status-pill.inactive-pill {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

/* ── Info note box above form fields ── */
.hsn-form-note {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(168, 85, 247, 0.04) 100%);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hsn-form-note i {
    color: var(--primary, #4f46e5);
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── Card header icon (replaces inline style="color:var(--primary); margin-right:6px") ── */
.card-header-icon {
    color: var(--primary, #4f46e5);
    margin-right: 6px;
}

/* ── Empty state box for ListView EmptyDataTemplate ── */
.empty-table-cell {
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.empty-state-icon {
    font-size: 36px;
    color: #cbd5e1;
}

.empty-state-title {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.empty-state-hint {
    font-size: 12px;
    color: #94a3b8;
}

/* ── Table header center alignment (replaces inline style="text-align:center") ── */
.listviewtablehead-center {
    text-align: center !important;
}

/* ============================================================
   ADMIN NOTIFICATIONS - Premium Glassmorphic / Modern Design
   ============================================================ */
.topbar-notification {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    /* Vivid premium red */
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    }

    100% {
        transform: scale(1);
    }
}

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 380px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: none;
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.notif-header span {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

.notif-header .mark-all-read {
    font-size: 12px;
    color: var(--primary, #4f46e5);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.notif-header .mark-all-read:hover {
    color: #4338ca;
    text-decoration: underline;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-empty {
    padding: 30px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.notif-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item.unread {
    background: #f0f5ff;
    /* soft-blue highlight for unread */
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary, #4f46e5);
}

.notif-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.notif-invoice {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.notif-date {
    color: #64748b;
    font-weight: 500;
}

.notif-body {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}

.notif-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.notif-amount {
    font-weight: 700;
    color: #16a34a;
    /* success green */
    font-size: 13px;
}

.notif-party {
    font-weight: 600;
    color: #475569;
    font-size: 12px;
}

.notif-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.notif-user {
    color: #64748b;
    font-weight: 600;
}

.notif-item-mark-read-btn {
    opacity: 0;
    font-size: 12px;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.notif-item:hover .notif-item-mark-read-btn {
    opacity: 1;
}

.notif-item-mark-read-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Real-time notification badge shake animation */
.shake-badge {
    animation: shake-badge-anim 0.5s ease-in-out;
}

@keyframes shake-badge-anim {

    0%,
    100% {
        transform: scale(1) rotate(0);
    }

    20%,
    60% {
        transform: scale(1.15) rotate(-15deg);
    }

    40%,
    80% {
        transform: scale(1.15) rotate(15deg);
    }
}



/* ====================================================
   BILL ENTRY SPECIFIC STYLES
   ==================================================== */
/* ============================================================
   BILL ENTRY - Single-column, Workflow-style Design
   ============================================================ */

/*  Step badge numbers  */
.bill-step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.bill-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary, #4f46e5);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-badge.green {
    background: #16a34a;
}

.step-badge.blue {
    background: #0284c7;
}

.step-badge.amber {
    background: #d97706;
}

.step-badge.slate {
    background: #475569;
}

.step-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.step-hint {
    margin-left: auto;
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}

.bill-step-body {
    padding: 16px 18px;
}

/*  Form grids  */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 16px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 16px;
}

/*  TxnType as card radio buttons  */
.txn-card-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
}

.txn-card-group input[type="radio"] {
    display: none !important;
}

.txn-card-group label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 18px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #475569 !important;
    background: transparent !important;
    margin: 0 !important;
    border: none !important;
    min-width: 80px !important;
    text-align: center !important;
}

.txn-card-group input[type="radio"]:checked+label {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(99, 102, 241, 0.35) !important;
}

.txn-card-group label:hover {
    color: #0f172a !important;
}

/*  Tax applicable & Print toggle pills  */
/* iOS Style Switch Toggle */
.ios-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ios-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    margin: 0 !important;
    cursor: pointer;
    vertical-align: middle;
}

.ios-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0 !important;
    position: absolute;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ios-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ios-switch input[type="checkbox"]:checked+.ios-slider {
    background-color: #10b981;
}

.ios-switch input[type="checkbox"]:checked+.ios-slider::before {
    transform: translateX(22px);
}

.tax-toggle-wrap,
.print-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tax-pill-toggle,
.print-pill-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    color: #475569;
    user-select: none;
}

.tax-pill-toggle.is-active {
    border-color: #16a34a;
    background: #dcfce7;
    color: #15803d;
}

.print-pill-toggle.is-active {
    border-color: #4f46e5;
    background: #e0e7ff;
    color: #4338ca;
}

/* --- Active Tax Pill Badge in Top Bar --- */
.active-tax-badge-wrap {
    display: none;
    align-items: center;
    margin-left: 6px;
}

.active-tax-badge-wrap.is-active {
    display: inline-flex !important;
}

.btn-tax-config-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1.5px solid #818cf8;
    color: #3730a3;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.btn-tax-config-pill:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
    border-color: #4f46e5;
    color: #1e1b4b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.btn-tax-config-pill .icon-gear {
    font-size: 12px;
    color: #6366f1;
    transition: transform 0.3s ease;
}

.btn-tax-config-pill:hover .icon-gear {
    transform: rotate(60deg);
}

/* --- Tax Configuration Modal Backdrop & Dialog --- */
.tax-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.tax-modal-backdrop.is-active {
    opacity: 1;
}

.tax-modal-card {
    background: #ffffff;
    width: 520px;
    max-width: 92vw;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tax-modal-backdrop.is-active .tax-modal-card {
    transform: scale(1);
}

.tax-modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    padding: 20px 24px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tax-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tax-modal-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.tax-modal-title p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #c7d2fe;
}

.tax-modal-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
}

.tax-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tax-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tax-modal-body {
    padding: 22px 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.tax-option-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    transition: all 0.2s ease;
}

.tax-option-card.active {
    border-color: #818cf8;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.tax-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tax-chk-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.tax-chk-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.tax-option-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.tax-badge-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tax-badge-pill.primary {
    background: #e0e7ff;
    color: #4338ca;
}

.tax-badge-pill.secondary {
    background: #f1f5f9;
    color: #64748b;
}

.tax-option-body {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
}

.tax-subgroup {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tax-sublabel {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.modal-select {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.modal-select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.tax-summary-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1.5px solid #a5b4fc;
    border-radius: 12px;
    padding: 14px 16px;
    color: #1e1b4b;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tax-summary-banner i {
    font-size: 20px;
}

.tax-modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.btn-apply-tax {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-apply-tax:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

/* 
   ITEM ADD SECTION - Highlighted "repeating action"
    */
.item-add-step {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border: 2px dashed #93c5fd;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.item-add-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #4f46e5 100%);
    border-radius: 4px 0 0 4px;
}

.item-add-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px 10px 22px;
    border-bottom: 1px solid #bfdbfe;
}

.item-add-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
    color: #fff;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-add-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e40af;
}

.item-repeat-hint {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #3b82f6;
    font-weight: 600;
    background: #dbeafe;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Bill Entry Header & Step Utility Classes */
.bill-step-compact {
    margin-bottom: 12px;
}

.bill-step-compact .bill-step-header {
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.bill-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bill-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bill-header-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bill-date-label {
    margin: 0;
    white-space: nowrap;
}

.bill-date-box {
    width: 155px;
}

.bill-date-control {
    padding: 5px 10px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.bill-toggle-item {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bill-toggle-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.82rem;
    white-space: nowrap;
}

.tax-rate-wrap {
    margin-left: 6px;
    display: inline-block;
}

.bill-tax-select {
    height: 32px !important;
    padding: 2px 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    min-width: 95px;
    border-radius: 6px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    cursor: pointer;
}

.addl-tax-chk {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.addl-tax-chk label {
    font-weight: 600;
    color: #475569;
    font-size: 0.82rem;
    cursor: pointer;
    margin-left: 4px;
    white-space: nowrap;
}

.text-info-blue {
    color: #0284c7 !important;
}

.bill-step-compact .bill-step-body {
    padding: 12px 16px;
}

.bill-step-row {
    display: flex !important;
    align-items: flex-end !important;
    gap: 12px 14px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.form-group-org {
    margin-bottom: 0 !important;
    flex: 1.2 1 200px !important;
    min-width: 180px !important;
}

.form-group-party {
    margin-bottom: 0 !important;
    flex: 1.5 1 220px !important;
    min-width: 190px !important;
}

.form-group-vendor {
    margin-bottom: 0 !important;
    flex: 1 1 130px !important;
    min-width: 120px !important;
}

.form-group-mark {
    margin-bottom: 0 !important;
    flex: 1 1 130px !important;
    min-width: 120px !important;
}

.form-group-gstin {
    margin-bottom: 0 !important;
    flex: 1 1 160px !important;
    min-width: 150px !important;
}

.input-mt2 {
    margin-top: 2px;
    width: 100%;
}

.ddl-full-min {
    width: 100%;
    min-width: 180px;
}

.input-gstin {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.item-field-name {
    flex: 2.5;
    min-width: 180px;
}

.item-field-hsn {
    min-width: 120px;
}

.item-field-unit {
    min-width: 100px;
}

.item-field-qty {
    min-width: 90px;
}

.item-field-price {
    flex: 1.4;
    min-width: 130px;
}

.text-subtle-hint {
    font-size: 11px;
    color: #94a3b8;
}

.text-unit-code {
    font-size: 11px;
    color: #64748b;
}

.text-success-green {
    color: #059669;
}

.empty-state-icon-blue {
    color: #bfdbfe;
}

.empty-state-title-blue {
    color: #3b82f6;
}

/*  Item input cards  */
.item-inputs-grid {
    display: grid;
    grid-template-columns: minmax(180px, 2.5fr) minmax(120px, 1.3fr) minmax(100px, 1fr) minmax(90px, 0.9fr) minmax(130px, 1.4fr);
    gap: 12px;
    padding: 14px 22px 10px;
    width: 100%;
}

.item-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-field-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
}

.required-star,
.req-star,
.astrik-red {
    color: #ef4444 !important;
    font-weight: bold;
    margin-left: 2px;
}

.item-field .form-control {
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.item-field .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.item-field .field-error {
    font-size: 11px;
    white-space: nowrap;
}

.item-add-action {
    padding: 10px 22px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px dashed #bfdbfe;
    background: rgba(255, 255, 255, 0.5);
}

.btn-add-line {
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 10px 28px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
    transition: box-shadow 0.2s, transform 0.15s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-add-line:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-1px) !important;
}

.add-flow-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #3b82f6;
    font-weight: 600;
}

.add-flow-arrow i {
    font-size: 14px;
}

/*  Line items table  */
.bill-items-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.bill-items-wrap .table-responsive {
    max-height: 420px;
    overflow-y: auto;
    position: relative;
}

/* Sleek custom scrollbar for table container */
.bill-items-wrap .table-responsive::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.bill-items-wrap .table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.bill-items-wrap .table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.bill-items-wrap .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.bill-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bill-items-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.line-count-badge {
    background: var(--primary, #4f46e5);
    color: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    min-width: 22px;
    text-align: center;
}

.bill-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.bill-items-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 9px 12px;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 1px 0 #e2e8f0;
    white-space: nowrap;
}

.bill-items-table thead th.col-r {
    text-align: right;
}

.bill-items-table thead th.col-c {
    text-align: center;
}

.bill-items-table tbody tr {
    transition: background 0.1s;
}

.bill-items-table tbody tr:hover {
    background: #f8fafc;
}

.bill-items-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.bill-items-table .col-mono {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.bill-items-table .col-c {
    text-align: center;
}

.bill-items-table .td-item-name {
    font-weight: 500;
}

.bill-items-table .td-total {
    font-weight: 700;
    color: #0f172a;
}

.bill-items-table .td-hsn {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #475569;
}

/*  Bill summary footer bar  */
.bill-footer-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.bill-footer-inner {
    display: flex;
    align-items: stretch;
    min-height: 80px;
}

.footer-totals {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.footer-total-item {
    flex: 1;
    padding: 14px 20px;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-total-item:last-child {
    border-right: none;
}

.footer-total-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #94a3b8;
}

.footer-total-value {
    font-size: 17px;
    font-weight: 700;
    color: #334155;
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
}

.footer-roundoff-item {
    padding: 14px 16px;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
}

.footer-roundoff-item .form-control {
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    border-radius: 8px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
}

/* Grand Total cell */
.footer-grand-total {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 180px;
}

.footer-grand-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.footer-grand-amount {
    font-size: 22px;
    font-weight: 800;
    color: #a5f3fc;
    font-family: 'Courier New', monospace;
    letter-spacing: -0.5px;
}

/*  Action buttons row  */
.bill-actions-row {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    align-items: center;
}

.btn-save-bill {
    background: linear-gradient(135deg, var(--primary, #4f46e5) 0%, #6366f1 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 11px 28px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
    transition: all 0.2s !important;
}

.btn-save-bill:hover {
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.55) !important;
    transform: translateY(-1px) !important;
}

.btn-reset-bill {
    background: #fff !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    font-weight: 600 !important;
    padding: 11px 20px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
}

.bill-status-msg {
    margin-left: auto;
}

/* Responsive Layout Rules for Billing & Form Grids */
@media (max-width: 1200px) {
    .bill-step-row {
        gap: 12px !important;
    }
    .form-group-org {
        flex: 1 1 45% !important;
    }
    .form-group-party {
        flex: 1 1 45% !important;
    }
    .form-group-vendor,
    .form-group-mark,
    .form-group-gstin {
        flex: 1 1 30% !important;
    }
}

@media (max-width: 1024px) {
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .item-inputs-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr !important;
        gap: 10px !important;
    }

    .item-field-name {
        grid-column: span 4 !important;
    }
    .item-field-hsn {
        grid-column: span 2 !important;
    }
    .item-field-unit {
        grid-column: span 2 !important;
    }
    .item-field-qty {
        grid-column: span 2 !important;
    }
    .item-field-price {
        grid-column: span 2 !important;
    }

    .bill-footer-inner {
        flex-wrap: wrap;
    }

    .footer-grand-total {
        min-width: 100%;
        border-top: 1px solid #334155;
    }
}

@media (max-width: 768px) {
    .bill-step-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .bill-header-right {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .bill-step-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .form-group-org,
    .form-group-party,
    .form-group-vendor,
    .form-group-mark,
    .form-group-gstin {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr !important;
    }

    .item-inputs-grid {
        grid-template-columns: 1fr !important;
    }

    .item-field-name,
    .item-field-hsn,
    .item-field-unit,
    .item-field-qty,
    .item-field-price {
        grid-column: span 1 !important;
        width: 100% !important;
    }

    /* Stack totals footer vertically on mobile */
    .bill-footer-inner {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .footer-totals {
        flex-direction: column !important;
        width: 100% !important;
    }

    .footer-total-item {
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        width: 100% !important;
        padding: 12px 18px !important;
    }

    .footer-roundoff-item {
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        width: 100% !important;
        padding: 12px 18px !important;
    }

    .footer-grand-total {
        width: 100% !important;
        min-width: 100% !important;
        border-top: 1.5px solid rgba(255, 255, 255, 0.1) !important;
        padding: 16px 18px !important;
    }

    .bill-actions-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .btn-save-bill,
    .btn-reset-bill {
        width: 100% !important;
        text-align: center !important;
    }

    .bill-status-msg {
        margin-left: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }
}

/* ====================================================
   SESSION TIMEOUT MODAL STYLES (SBI Net-Banking Style)
   ==================================================== */
.session-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.session-modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #cbd5e1;
    overflow: hidden;
    animation: sessionPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    padding: 28px 24px;
}

@keyframes sessionPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.session-warning-icon {
    width: 56px;
    height: 56px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px auto;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.2);
}

.session-modal-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.session-modal-body p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.session-timer-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    letter-spacing: 2px;
    font-family: monospace, monospace;
    margin: 4px 0 16px 0;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.session-subtext {
    font-size: 0.8rem !important;
    color: #64748b !important;
}

.session-modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-session-continue {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-session-continue:hover {
    background: linear-gradient(135deg, #4338ca, #312e81);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(79, 70, 229, 0.4);
}

.btn-session-logout {
    flex: 1;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-session-logout:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ====================================================
   EXECUTIVE FORM FIELDS & ASP.NET VALIDATION STYLING
   ==================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    margin-bottom: 16px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.form-control {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input-wrapper .input-icon~.form-control,
.input-wrapper .input-icon+.form-control,
.input-wrapper:has(.input-icon) .form-control {
    padding-left: 44px !important;
}

.password-wrapper .form-control {
    padding-right: 48px !important;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 38px;
    cursor: pointer;
}

.input-wrapper.has-success .form-control,
.input-wrapper.has-error .form-control,
.input-wrapper.has-success input,
.input-wrapper.has-error input {
    padding-right: 40px !important;
}

/* ASP.NET Validation Error Message Styling */
.form-group {
    position: relative;
    margin-bottom: 16px !important;
    width: 100%;
}

.field-error,
.form-group .field-error {
    color: #dc2626 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    position: static !important;
    margin-top: 4px !important;
    z-index: 1 !important;
    width: 100% !important;
}

span.field-error[style*="display: none"],
span.field-error[style*="display:none"],
.field-error[style*="display: none"],
.field-error[style*="display:none"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ListView Logo Action Button & Custom Modal Popup Styling */
.btn-view-logo {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-logo:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.2s ease-out;
}

.custom-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.custom-modal-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.custom-modal-close:hover {
    color: #ef4444;
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpModal {
    from {
        transform: translateY(18px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* --- Billing Tax Settings Modal Styling --- */
.tax-modal-backdrop.is-active {
    display: flex !important;
}

.modal-tax-select {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0 10px;
    background: white;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.btn-add-tax {
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-add-tax:hover {
    background: #4f46e5;
}

.applied-taxes-container {
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.applied-tax-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.applied-tax-table th,
.applied-tax-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.applied-tax-table td.empty-tax-cell {
    text-align: center;
    color: #9ca3af;
    padding: 15px;
}

.tax-sublabel {
    font-weight: 600;
    color: #374151;
}

.applied-taxes-title {
    font-weight: 600;
    color: #374151;
}

.applied-tax-table thead tr {
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    text-align: left;
}

.applied-tax-table th {
    padding: 10px 12px;
    font-weight: 600;
}

.applied-tax-table th.text-right,
.applied-tax-table td.text-right {
    text-align: right;
}

.applied-tax-table th.text-center,
.applied-tax-table td.text-center {
    text-align: center;
}

.applied-tax-table th.w-80,
.applied-tax-table td.w-80 {
    width: 80px;
}

.btn-delete-tax {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.btn-delete-tax .text-danger {
    color: #ef4444;
}

/* ================================================================
   REFACTORED UTILITY CLASSES — replaces scattered inline styles
   ================================================================ */

/* Icon helpers */
.icon-primary {
    color: var(--primary);
    margin-right: 6px;
}

.icon-accent {
    color: #6366f1;
    font-size: 0.8rem;
    margin-right: 4px;
}

.icon-success {
    color: #10b981;
    font-size: 0.75rem;
    margin-right: 4px;
}

/* Link / cursor helpers */
.text-no-decor {
    text-decoration: none;
    cursor: pointer;
}

/* Table empty-state cells */
.td-empty {
    padding: 20px;
    color: #64748b;
    text-align: center;
}

.td-empty-lg {
    padding: 24px;
    color: #64748b;
    text-align: center;
}

/* Empty-state icon inside td */
.empty-state-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
}

/* User card — avatar chip */
.user-avatar-chip {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

/* User card — row wrapper */
.user-row-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User card — primary name */
.user-name-strong {
    color: #0f172a;
    font-size: 0.9rem;
    display: block;
    line-height: 1.2;
}

/* User card — info block */
.user-info-block {
    font-size: 0.88rem;
    line-height: 1.4;
}

.user-info-primary {
    color: #1e293b;
    font-weight: 500;
}

.user-info-muted {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* User card — time/last-login text */
.user-time-text {
    color: #64748b;
    font-size: 0.85rem;
}

/* Status badge — extra-small variant */
.status-badge-xs {
    font-size: 0.7rem;
    padding: 1px 6px;
    height: auto;
}

/* Download / cancel button-link */
.btn-link-action {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Primary label text in tables */
.text-primary-bold {
    color: var(--primary);
    font-weight: 700;
}

/* Muted secondary text */
.text-muted-sm {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ====================================================================
   BHARAT BILLING TRICOLOR WEB THEME & UNIFIED LOGIN CARD OVERRIDES
   (NO INLINE STYLES - Moved entirely to stylesheet)
   ==================================================================== */

.login-page {
    --primary: #0A1172; /* Ashoka Navy Blue */
    --primary-light: #1E295D;
    --primary-dark: #050A4E;
    --primary-soft: rgba(10, 17, 114, 0.08);
    
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF7F0 0%, #FFFFFF 50%, #F0FDF4 100%) !important;
    padding: 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden !important;
}

/* Unified Card Container (Centered Glassmorphic design) */
.login-card-container {
    display: flex;
    width: 100%;
    max-width: 1060px;
    max-height: calc(100vh - 32px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(10, 17, 114, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

/* 1. Left Panel Gradient Background & Overlays */
.login-left {
    flex: none !important;
    width: 58% !important;
    max-height: calc(100vh - 32px);
    background: linear-gradient(135deg, #FFFBF7 0%, #FFFFFF 60%, #F5FDF7 100%) !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 20px !important;
    box-sizing: border-box;
    border-right: 1px solid rgba(10, 17, 114, 0.06);
    color: #0A1172 !important;
}

/* 2. Right Panel Layout */
.login-right {
    flex: none !important;
    width: 42% !important;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #ffffff !important;
    padding: 28px 40px !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.login-form-wrapper {
    width: 100%;
    max-width: 360px;
}

/* Soft gradient radial glows for vector background depth */
.vector-shape-saffron {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 143, 28, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.vector-shape-green {
    position: absolute;
    bottom: -15%;
    right: -15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(15, 130, 5, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Smooth organic wavy vector lines */
.wave-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

/* Ashoka Chakra Subtle Rotating Overlay */
.chakra-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    height: 460px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035; /* Subtle branding water-mark */
    animation: spinChakra 150s linear infinite;
}

@keyframes spinChakra {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Patriotic Harmony for Feature Icons */
.feature-item:nth-child(1) .feature-icon-fa {
    background: rgba(255, 143, 28, 0.15) !important;
    color: #FF8F1C !important;
}

.feature-item:nth-child(2) .feature-icon-fa {
    background: rgba(10, 17, 114, 0.1) !important;
    color: #0A1172 !important;
}

.feature-item:nth-child(3) .feature-icon-fa {
    background: rgba(15, 130, 5, 0.12) !important;
    color: #0F8205 !important;
}

/* Enhance Glassmorphism for Feature Items */
.feature-item {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(10, 17, 114, 0.03) !important;
    position: relative;
    z-index: 5;
}

.login-brand {
    position: relative;
    z-index: 5;
}

.brand-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(10, 17, 114, 0.08);
    margin-bottom: 12px;
}

.illustration-svg {
    max-width: 100%;
    height: auto;
}

.login-brand h1 {
    color: #0f172a !important; /* Admin Slate Primary */
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.login-brand p {
    color: #475569 !important; /* Crisp Slate Gray */
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    margin-top: 4px !important;
}

.feature-text h4 {
    color: #0f172a !important; /* Deep Dark Slate */
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-bottom: 3px !important;
}

.feature-text p {
    color: #334155 !important; /* High-Contrast Dark Gray */
    font-weight: 500 !important;
    font-size: 0.84rem !important;
}

/* Right Panel Form Upgrades (Admin Panel Indigo / Soft Glows) */
.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.15) !important;
    background: #ffffff !important;
}

.eye-toggle:hover {
    color: var(--primary) !important;
    background: var(--primary-soft) !important;
}

.btn-refresh-captcha {
    color: var(--primary) !important;
}

.btn-refresh-captcha:hover {
    background: var(--primary-soft) !important;
    border-color: var(--primary) !important;
    color: var(--primary-dark) !important;
}

.btn-login {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}

.btn-login:hover {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45) !important;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--primary) !important;
}

.forgot-link {
    color: var(--primary) !important;
}

.forgot-link:hover {
    color: var(--primary-dark) !important;
}

/* Extra aesthetic gradient line under welcome text */
.login-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5 0%, #0891b2 50%, #16a34a 100%);
    margin-top: 4px;
    border-radius: 2px;
}

.login-title {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 2px !important;
}

/* Floating background vector storefront cards (Shop Ecosystem) */
.floating-bg-icon {
    position: absolute;
    z-index: 3;
    opacity: 0.85; /* Vibrant and rich visual */
    animation: floatIcon 7s ease-in-out infinite alternate;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 8px 24px rgba(10, 17, 114, 0.08));
}

.floating-bg-icon:hover {
    transform: scale(1.08) translateY(-5px);
    opacity: 1;
    filter: drop-shadow(0 12px 30px rgba(10, 17, 114, 0.16));
}

@keyframes floatIcon {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(2deg); }
}

/* Small Background Watermark Icons Styling */
.floating-bg-icon.small-bg-icon {
    opacity: 0.45;
    z-index: 2;
    filter: none;
}

.floating-bg-icon.small-bg-icon:hover {
    transform: scale(1.15) translateY(-3px);
    opacity: 0.8;
}

/* Outer Page Background Floating Icons */
.outer-bg-icon {
    position: absolute;
    z-index: 1;
    opacity: 0.8; /* Subtle outer page details */
    animation: floatOuterIcon 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes floatOuterIcon {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-25px) rotate(4deg); }
}

@media (max-height: 740px) {
    .login-left {
        padding: 16px 15px !important;
    }
    .vector-illustration-container {
        margin-bottom: 10px !important;
    }
    .illustration-svg {
        height: 220px !important;
        width: 310px !important;
    }
    .login-brand {
        margin-bottom: 8px !important;
    }
    .login-brand h1 {
        font-size: 22px !important;
    }
    .login-features {
        margin-top: 8px !important;
        gap: 6px !important;
    }
    .login-right {
        padding: 20px 30px !important;
    }
    .login-title {
        font-size: 22px !important;
        margin-bottom: 4px !important;
    }
    .login-subtitle {
        margin-bottom: 16px !important;
    }
    .form-group {
        margin-bottom: 12px !important;
    }
}

/* Responsive styling for the unified login card layout */
@media (max-width: 1200px) {
    .login-card-container {
        max-width: 95%;
    }
    .outer-bg-icon {
        display: none; /* Hide outer background icons on smaller viewports where there is no space */
    }
}

@media (max-width: 900px) {
    .login-card-container {
        flex-direction: column;
        min-height: auto;
        max-width: 480px;
        border-radius: 20px;
    }

    .login-left {
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid rgba(10, 17, 114, 0.06);
        padding: 30px 15px !important;
    }

    .login-right {
        width: 100% !important;
        padding: 30px !important;
    }
}

@media (max-width: 600px) {
    .login-left {
        display: none !important; /* Hide left side panel graphic completely on mobile */
    }
    
    .login-card-container {
        max-width: 420px;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(10, 17, 114, 0.08);
    }
}

.main-content-inner {
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
}

/* Global Responsive Tables & Cards scroll prevention on mobile */
@media (max-width: 768px) {
    .table-responsive,
    .main-content table,
    .main-content table.tbod,
    .main-content table.data-table,
    .main-content table[id*="GridView"],
    .main-content table[id*="grd"],
    .main-content table[id*="gv"] {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .dash-card, .master-card, .filter-card {
        width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* ====================================================
   INTERACTIVE APP TOUR ("KAISE USE KARE?") STYLES
   ==================================================== */
.tour-welcome-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.tour-welcome-modal {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(79, 70, 229, 0.18), 0 10px 25px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 30px;
    text-align: center;
}

.tour-welcome-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 28px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.tour-welcome-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.tour-welcome-header p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.tour-welcome-bullets {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
}

.tour-welcome-bullets li {
    font-size: 13px;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-welcome-bullets li:last-child {
    margin-bottom: 0;
}

.tour-welcome-bullets li i {
    color: #16a34a;
    font-size: 15px;
}

.tour-welcome-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-tour-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}

.btn-tour-primary:hover {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
    transform: translateY(-1px);
}

.btn-tour-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tour-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Spotlight & Guided Step Card */
.tour-spotlight-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9998;
    pointer-events: auto;
}

.tour-target-highlight {
    position: relative !important;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px #4f46e5, 0 0 25px rgba(79, 70, 229, 0.6) !important;
    border-radius: 8px;
    background: #ffffff !important;
    transition: all 0.3s ease;
}

.tour-step-card {
    position: fixed;
    z-index: 10001;
    width: 340px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(79, 70, 229, 0.15);
    padding: 18px 20px;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tour-card-header h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #4f46e5;
    margin: 0;
}

.tour-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.tour-close-btn:hover {
    color: #0f172a;
}

.tour-card-body p {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.tour-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.tour-step-counter {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
}

.tour-dots {
    display: flex;
    gap: 4px;
}

.tour-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.2s ease;
}

.tour-dot.active {
    width: 14px;
    border-radius: 10px;
    background: #4f46e5;
}

.tour-actions {
    display: flex;
    gap: 6px;
}

.btn-tour-sm {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-tour-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.btn-tour-outline:hover {
    background: #f8fafc;
    color: #0f172a;
}