/* Forms */
input[type="checkbox"],
input[type="radio"],
.form-check-input,
.modal-card-body input[type="checkbox"],
.modal-card-body input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    margin: 0 6px 0 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    background: transparent !important;
    display: inline-block !important;
    accent-color: var(--primary) !important;
    flex-shrink: 0 !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
}

input[type="radio"],
.form-check-input[type="radio"],
.modal-card-body input[type="radio"] {
    border-radius: 50% !important;
    appearance: radio !important;
    -webkit-appearance: radio !important;
}

.form-check-input:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: none !important;
    box-shadow: none !important;
}


.form-range::-webkit-slider-thumb {
    background-color: var(--primary) !important;
}

.form-range::-webkit-slider-thumb:active {
    background-color: var(--primary-hover) !important;
}

.form-range::-moz-range-thumb {
    background-color: var(--primary) !important;
}

/* Fix Native Date & Time Picker Icons on Dark Theme Inputs */
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) !important;
    cursor: pointer !important;
    opacity: 0.9 !important;
}

[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"] {
    color-scheme: dark !important;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: none !important;
    outline: none !important;
}

input[type="range"]::-webkit-slider-thumb {
    background-color: var(--primary) !important;
}

input[type="range"]::-moz-range-thumb {
    background-color: var(--primary) !important;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.25;
}

.form-control:not(.ts-wrapper):not(.novex-search-input):not(.app-search-input):not(.dynamic-search),
input[type="text"].form-control:not(.novex-search-input):not(.app-search-input):not(.dynamic-search),
input[type="date"].form-control,
input[type="number"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="tel"].form-control,
input[type="url"].form-control,
select.form-control,
.form-select:not(.ts-wrapper),
.form-control-standard,
input[type="text"]:not(.novex-search-input):not(.app-search-input):not(.dynamic-search):not([name*="search"]):not([id*="search"]):not([id*="Search"]),
input[type="date"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
select {
    width: 100%;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.88rem !important;
    line-height: 36px !important;
    transition: border-color var(--transition-speed);
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Global Search Inputs & Bar Normalization (Pill Shaped, Icon Clearance, No Shadows)
   ========================================================================== */
.novex-search-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

.novex-search-input,
.novex-search-container input,
#novexGlobalSearch,
#searchInput.novex-search-input {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 16px 0 38px !important;
    border-radius: 20px !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
    font-size: 0.88rem !important;
    line-height: 36px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color var(--transition-speed) !important;
}

.novex-search-icon,
.novex-search-container i.fa-search {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
    pointer-events: none !important;
    z-index: 2 !important;
    margin: 0 !important;
}

.launcher-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.app-search-input,
.launcher-search-wrapper input {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 20px 0 44px !important;
    border-radius: 24px !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-card) !important;
    color: var(--text-light) !important;
    font-size: 0.95rem !important;
    line-height: 40px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color var(--transition-speed) !important;
}

.app-search-icon,
.launcher-search-wrapper i.fa-search {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1rem !important;
    color: var(--text-muted) !important;
    pointer-events: none !important;
    z-index: 2 !important;
    margin: 0 !important;
    transition: color 0.2s ease !important;
}

/* Generic Dynamic Search & Search Bar Inputs */
.search-bar {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

.dynamic-search,
.search-bar input,
input[type="search"],
#logsSearchInput,
#attrSearch {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 16px 0 38px !important;
    border-radius: 20px !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-card) !important;
    color: var(--text-light) !important;
    font-size: 0.88rem !important;
    line-height: 36px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color var(--transition-speed) !important;
}

.search-bar input,
.search-bar .dynamic-search {
    width: 260px !important;
    max-width: 100% !important;
}

.search-bar i.fa-search,
.search-bar i.fas.fa-search {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
    pointer-events: none !important;
    z-index: 2 !important;
    margin: 0 !important;
}

.launcher-search-wrapper:focus-within .app-search-icon,
.novex-search-container:focus-within .novex-search-icon,
.search-bar:focus-within .fa-search {
    color: var(--primary) !important;
}

/* Chrome/Safari/Edge Date Picker Inner Shadow DOM Normalization */
input[type="date"],
input[type="date"].form-control {
    display: inline-flex !important;
    align-items: center !important;
}

input[type="date"]::-webkit-date-and-time-value {
    min-height: 1.2em !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 36px !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

/* All Focus States System-Wide: Clean Border Highlight, ZERO Shadows, ZERO Outlines */
.form-control:focus,
input:focus,
select:focus,
textarea:focus,
.novex-search-input:focus,
.app-search-input:focus,
.dynamic-search:focus,
.novex-search-container input:focus,
.launcher-search-wrapper input:focus,
.search-bar input:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

textarea.form-control,
textarea {
    width: 100%;
    height: auto !important;
    min-height: 58px !important;
    max-height: none !important;
    padding: 8px 14px !important;
    box-sizing: border-box !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    border-radius: 8px !important;
    resize: vertical;
}

/* System-Wide Section Titles Spacing & Divider Rules */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem !important;
}

/* System-Wide Form Action Footers & Top-Border Dividers Spacing */
.form-actions,
.form-footer,
.card-footer,
div[style*="border-top"] {
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

/* Modern Global Dropdowns (TomSelect Overrides) */
.ts-wrapper,
.ts-wrapper.form-control,
.ts-wrapper.form-select,
.ts-wrapper.single,
.ts-wrapper.multi,
div.ts-wrapper,
.form-field-group .ts-wrapper,
table td .ts-wrapper,
.table td .ts-wrapper,
.order-lines-table td .ts-wrapper,
.multi-lines-table td .ts-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
}

.ts-control,
.ts-wrapper .ts-control,
.ts-wrapper.form-control .ts-control,
.ts-wrapper.form-select .ts-control,
div.ts-control,
.form-field-group .ts-control,
table td .ts-control,
.table td .ts-control,
.order-lines-table td .ts-control,
.multi-lines-table td .ts-control {
    background-color: var(--bg-card, #1e293b) !important;
    border: 1px solid var(--border-color, #334155) !important;
    border-radius: var(--border-radius, 8px) !important;
    color: var(--text-color, #f8fafc) !important;
    padding: 0 28px 0 12px !important;
    margin: 0 !important;
    width: 100% !important;
    transition: border-color var(--transition-speed, 0.2s) !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 36px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.ts-control>input,
.ts-wrapper .ts-control input,
.ts-wrapper .ts-control .item {
    color: var(--text-color, #f8fafc) !important;
    font-size: 0.88rem !important;
    line-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--primary, #F97316) !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: var(--bg-card, #1e293b) !important;
}

.ts-dropdown {
    background-color: var(--bg-card, #1e293b) !important;
    border: 1px solid var(--border-color, #334155) !important;
    border-radius: var(--border-radius, 8px) !important;
    color: var(--text-color, #f8fafc) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    margin-top: 4px;
    z-index: 1000005 !important;
}

/* No borders on the choices displayed */
.ts-dropdown .option {
    padding: 10px 15px !important;
    border: none !important;
    color: var(--text-color, #f8fafc) !important;
}

.ts-dropdown .active {
    background-color: rgba(249, 115, 22, 0.15) !important;
    color: var(--primary, #F97316) !important;
}

.ts-dropdown .option:hover {
    background-color: rgba(249, 115, 22, 0.12) !important;
    color: var(--primary, #F97316) !important;
}

.ts-wrapper.single .ts-control:after {
    border-color: #94A3B8 transparent transparent transparent !important;
}

.ts-wrapper.single.dropdown-active .ts-control:after {
    border-color: transparent transparent #94A3B8 transparent !important;
}

/* Authentication Page Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--bg-dark);
    overflow-y: auto;
}

.auth-card {
    background-color: var(--bg-panel);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    margin: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
}

/* Password Toggle Wrapper */
.password-wrapper,
.password-field-wrapper,
.password-group {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.password-wrapper .form-control,
.password-field-wrapper .form-control,
.password-group .form-control,
.password-wrapper input[type="password"],
.password-wrapper input[type="text"],
.password-field-wrapper input[type="password"],
.password-field-wrapper input[type="text"] {
    width: 100% !important;
    padding-right: 42px !important;
    box-sizing: border-box !important;
}

.password-eye-toggle,
.password-toggle-btn,
.toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-muted, #94a3b8) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    z-index: 5 !important;
    transition: color 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.password-eye-toggle:hover,
.password-toggle-btn:hover,
.toggle-password:hover {
    color: var(--primary, #f97316) !important;
    background: transparent !important;
}

.password-eye-toggle:focus,
.password-toggle-btn:focus,
.toggle-password:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.password-eye-toggle i,
.password-toggle-btn i,
.toggle-password i {
    pointer-events: none;
    font-size: 0.95rem;
}

/* Registration Grid and Layout */
.register-card {
    max-width: 760px;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-header {
    grid-column: 1 / -1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

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

@media (max-width: 768px) {
    .register-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

/* Alert styles for Auth views */
.auth-alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.auth-alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
}

/* Developer reset debugging link container */
.auth-debug-notice {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px dashed rgba(59, 130, 246, 0.4);
    color: var(--text-light);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.4;
}

.auth-debug-title {
    color: var(--info);
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.auth-debug-link {
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
    display: block;
    margin-top: 8px;
    text-decoration: underline;
}

/* Brand Logo Styling */
.auth-logo {
    height: 65px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Utility class for margin-bottom 30px */
.mb-30 {
    margin-bottom: 30px !important;
}

/* Utility class for margin-top 20px */
.mt-20 {
    margin-top: 20px !important;
}

/* Other Industry Specified Toggle style */
.other-industry-group {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.other-industry-group.visible {
    opacity: 1;
    transform: translateY(0);
}

/* TomSelect System-wide Theme Adaptive Styling */
.ts-wrapper,
.ts-wrapper.form-select,
.ts-wrapper.form-control {
    padding: 0 !important;
    margin: 0 !important;
    background-image: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    display: block !important;
}

.ts-control {
    background-color: var(--bg-panel) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light) !important;
    border-radius: 8px !important;
    padding: 0 28px 0 12px !important;
    margin: 0 !important;
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.ts-control.focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: none !important;
}

.ts-control input {
    color: var(--text-light) !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 36px !important;
}

.ts-control .item {
    color: var(--text-light) !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 36px !important;
}

.ts-dropdown {
    background-color: var(--bg-panel) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
    padding: 4px !important;
    z-index: 99999 !important;
    overflow: hidden !important;
    width: auto !important;
    min-width: 100% !important;
    max-width: 320px !important;
}

.ts-dropdown .option {
    color: var(--text-light) !important;
    padding: 7px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    margin-bottom: 2px !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ts-dropdown .option:last-child {
    margin-bottom: 0 !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.ts-dropdown .option.selected {
    background-color: rgba(249, 115, 22, 0.2) !important;
    color: var(--primary) !important;
}

/* Light Mode Specific Form Controls, Selects & Auth Card Theme Overrides */
[data-theme="light"] .form-control:not(.ts-wrapper),
[data-theme="light"] input.form-control,
[data-theme="light"] select.form-control,
[data-theme="light"] textarea.form-control,
[data-theme="light"] select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] textarea,
[data-theme="light"] .ts-control {
    background-color: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

[data-theme="light"] .ts-wrapper,
[data-theme="light"] .ts-wrapper.form-control,
[data-theme="light"] .ts-wrapper.form-select,
[data-theme="light"] .ts-wrapper.single,
[data-theme="light"] .ts-wrapper.multi,
[data-theme="light"] div.ts-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}

[data-theme="light"] .form-control::placeholder,
[data-theme="light"] textarea::placeholder,
[data-theme="light"] input::placeholder {
    color: #94A3B8 !important;
}

[data-theme="light"] .ts-control input,
[data-theme="light"] .ts-control .item,
[data-theme="light"] .ts-dropdown .option {
    color: #0F172A !important;
}

[data-theme="light"] .ts-dropdown {
    background-color: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .ts-dropdown .option.selected {
    background-color: rgba(249, 115, 22, 0.15) !important;
    color: #F97316 !important;
}

[data-theme="light"] .ts-dropdown .option:hover,
[data-theme="light"] .ts-dropdown .option.active {
    background-color: #F97316 !important;
    color: #FFFFFF !important;
}

[data-theme="light"] .auth-container {
    background-color: #EEF2F6 !important;
}

[data-theme="light"] .auth-card {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .auth-header h1 {
    color: #0F172A !important;
}

[data-theme="light"] .auth-header p {
    color: #64748B !important;
}

/* Date Input Utility Class */
.form-control-date {
    width: 165px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
}

/* ========================================================
   GLOBAL SYSTEM-WIDE FORM PANEL SYSTEM
   Standardizes all create/edit forms into dedicated panels
   ======================================================== */
.form-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.form-panel.d-none {
    display: none !important;
}

/* ==========================================================================
   GLOBAL FORM PANEL SOLITARY DISPLAY MODE:
   When ANY .form-panel is open (not .d-none), hide all other sibling view
   containers (tables, cards, kanban grids, calendar grids, statistics rows,
   and control-panel view switchers) so the form panel is displayed ALONE.
   When the panel is closed, the main views re-appear automatically.
   ========================================================================== */
body:has(.form-panel:not(.d-none)) .admin-layout,
body:has(.form-panel:not(.d-none)) #cpKanbanView,
body:has(.form-panel:not(.d-none)) #cpListView,
body:has(.form-panel:not(.d-none)) #cpPivotView,
body:has(.form-panel:not(.d-none)) #cpCalendarView,
body:has(.form-panel:not(.d-none)) #viewContent,
body:has(.form-panel:not(.d-none)) .superadmin-tenants>.admin-layout,
body:has(.form-panel:not(.d-none)) #shiftsContainer,
body:has(.form-panel:not(.d-none)) .card:not(.form-panel):not(.form-panel *):not(.chatter-card),
body:has(.form-panel:not(.d-none)) .table-responsive:not(.form-panel *),
body:has(.form-panel:not(.d-none)) .kanban-grid:not(.form-panel *),
body:has(.form-panel:not(.d-none)) .kanban-board:not(.form-panel *),
body:has(.form-panel:not(.d-none)) .cal-wrapper:not(.form-panel *),
body:has(.form-panel:not(.d-none)) .data-table-container:not(.form-panel *),
body:has(.form-panel:not(.d-none)) .content-area>.row:not(.form-panel-header):not(.form-panel-header *),
body:has(.form-panel:not(.d-none)) .novex-control-panel,
body:has(.form-panel:not(.d-none)) .control-panel,
body:has(.form-panel:not(.d-none)) .novex-view-switchers,
body:has(.form-panel:not(.d-none)) .novex-search-container,
body:has(.form-panel:not(.d-none)) .novex-cp-custom-filters,
body:has(.form-panel:not(.d-none)) .cp-title-buttons,
body.form-panel-active .admin-layout,
body.form-panel-active #cpKanbanView,
body.form-panel-active #cpListView,
body.form-panel-active #cpPivotView,
body.form-panel-active #cpCalendarView,
body.form-panel-active #viewContent,
body.form-panel-active .superadmin-plans-grid,
body.form-panel-active .superadmin-tenants>.admin-layout,
body.form-panel-active #shiftsContainer,
body.form-panel-active .card:not(.form-panel):not(.form-panel *):not(.chatter-card),
body.form-panel-active .table-responsive:not(.form-panel *),
body.form-panel-active .kanban-grid:not(.form-panel *),
body.form-panel-active .kanban-board:not(.form-panel *),
body.form-panel-active .cal-wrapper:not(.form-panel *),
body.form-panel-active .data-table-container:not(.form-panel *),
body.form-panel-active .content-area>.row:not(.form-panel-header):not(.form-panel-header *),
body.form-panel-active .novex-control-panel,
body.form-panel-active .control-panel,
body.form-panel-active .novex-view-switchers,
body.form-panel-active .novex-search-container,
body.form-panel-active .novex-cp-custom-filters,
body.form-panel-active .cp-title-buttons {
    display: none !important;
}

.form-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.form-panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 14px;
    margin-bottom: 10px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 14px;
    margin-bottom: 10px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
    margin-bottom: 10px;
}

@media (max-width: 991px) {

    .form-grid-4,
    .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .form-grid-4,
    .form-grid-3,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.form-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-width: 0;
}

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

.form-col-span-3 {
    grid-column: span 3;
}

.form-col-span-full {
    grid-column: 1 / -1;
}

.form-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.25;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.2;
}

/* System-Wide Form & Panel Row Spacing Normalization */
.form-panel .form-grid-4,
.form-panel .form-grid-3,
.form-panel .form-grid-2,
form .form-grid-4,
form .form-grid-3,
form .form-grid-2 {
    gap: 10px 14px;
    margin-bottom: 10px;
}

.form-panel .form-grid-4:last-child,
.form-panel .form-grid-3:last-child,
.form-panel .form-grid-2:last-child {
    margin-bottom: 0;
}

.form-panel .row,
form .row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 10px;
    row-gap: 10px;
}

.form-panel .row > [class*="col-"],
form .row > [class*="col-"] {
    margin-bottom: 0 !important;
}

.form-panel .form-group,
form .form-group {
    margin-bottom: 10px;
}

.top-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-action-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action-cloud {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.btn-action-cloud:hover {
    background: var(--primary-hover) !important;
}

.btn-action-close {
    background: transparent !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

.btn-action-close:hover {
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

.btn-action-back {
    background: transparent !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

.btn-action-back:hover {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.form-control-view {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.92rem;
    word-break: break-word;
}

/* Tabs inside Form Panel */
.form-panel-tabs {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.form-panel-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 10px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.form-panel-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* Order Lines & Multi-Line Table Global Styles */
.order-lines-table,
.multi-lines-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    margin-bottom: 0;
}

.order-lines-table thead,
.multi-lines-table thead {
    background: rgba(255, 255, 255, 0.04) !important;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-left: none !important;
    border-right: none !important;
}

:root:not([data-theme="dark"]) .order-lines-table thead,
:root:not([data-theme="dark"]) .multi-lines-table thead,
body:not(.dark-mode) .order-lines-table thead,
body:not(.dark-mode) .multi-lines-table thead {
    background: #f8fafc !important;
}

.order-lines-table thead th,
.multi-lines-table thead th {
    background: inherit !important;
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-left: none !important;
    border-right: none !important;
    letter-spacing: 0.5px;
}

.order-lines-table tbody td,
.multi-lines-table tbody td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    border-left: none !important;
    border-right: none !important;
}

.order-lines-table tbody td input.form-control,
.order-lines-table tbody td select.form-select,
.order-lines-table tbody td select.form-control,
.multi-lines-table tbody td input.form-control,
.multi-lines-table tbody td select.form-select,
.multi-lines-table tbody td select.form-control {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 0.9rem !important;
    background-color: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
    color: var(--text-color, #f8fafc);
}

.order-lines-table th.col-product,
.order-lines-table td.col-product {
    width: 28%;
}

.order-lines-table th.col-uom,
.order-lines-table td.col-uom {
    width: 15%;
}

.order-lines-table th.col-qty,
.order-lines-table td.col-qty {
    width: 11%;
    text-align: right;
}

.order-lines-table th.col-price,
.order-lines-table td.col-price {
    width: 14%;
    text-align: right;
}

.order-lines-table th.col-disc,
.order-lines-table td.col-disc {
    width: 10%;
    text-align: right;
}

.order-lines-table th.col-subtotal,
.order-lines-table td.col-subtotal {
    width: 17%;
    text-align: right;
    padding-right: 20px !important;
}

.order-lines-table th.col-action,
.order-lines-table td.col-action {
    width: 5%;
    text-align: center;
}

.order-lines-add-cell {
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: transparent !important;
}

.order-lines-table tfoot,
.multi-lines-table tfoot {
    border-top: 1px solid var(--border-color);
}

.order-lines-table tfoot td,
.multi-lines-table tfoot td {
    padding: 8px 14px;
    border: none;
}

.order-lines-table tfoot td.total-label,
.multi-lines-table tfoot td.total-label {
    text-align: right;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
}

.order-lines-table tfoot td.total-value,
.multi-lines-table tfoot td.total-value {
    text-align: right;
    padding-right: 20px !important;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
}

.order-lines-table tfoot tr.total-row td,
.multi-lines-table tfoot tr.total-row td {
    border-top: 1px solid var(--border-color) !important;
    padding-top: 12px;
    padding-bottom: 12px;
}

.order-lines-table tfoot tr.total-row td.grand-total-label,
.multi-lines-table tfoot tr.total-row td.grand-total-label {
    text-align: right;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.order-lines-table tfoot tr.total-row td.grand-total-value,
.multi-lines-table tfoot tr.total-row td.grand-total-value {
    text-align: right;
    padding-right: 20px !important;
    color: #10b981;
    font-weight: 700;
    font-size: 1.15rem;
}

.subtotal-cell {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    padding-right: 20px !important;
    white-space: nowrap;
}

.btn-remove-line,
table button.btn-remove-line,
table button.text-danger,
table .btn.text-danger.p-0,
.order-lines-table td.col-action button,
.multi-lines-table td.col-action button,
td.col-action button {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--danger, #ef4444) !important;
    font-size: 1.05rem !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: unset !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
}

.btn-remove-line i,
table button.btn-remove-line i,
table button.text-danger i,
td.col-action button i {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--danger, #ef4444) !important;
}

.btn-remove-line:hover,
table button.btn-remove-line:hover,
table button.text-danger:hover,
td.col-action button:hover {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #dc2626 !important;
}

.btn-remove-line:hover i,
table button.btn-remove-line:hover i,
table button.text-danger:hover i,
td.col-action button:hover i {
    background: transparent !important;
    background-color: transparent !important;
    color: #dc2626 !important;
    transform: scale(1.15);
}

/* Light theme for tables and panels */
[data-theme="light"] .form-panel {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .order-lines-table,
[data-theme="light"] .multi-lines-table {
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .order-lines-table thead,
[data-theme="light"] .multi-lines-table thead {
    background: #f8fafc !important;
}

[data-theme="light"] .order-lines-table thead th,
[data-theme="light"] .multi-lines-table thead th {
    background: #f8fafc !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .order-lines-table tbody td,
[data-theme="light"] .multi-lines-table tbody td {
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .order-lines-table tbody td input.form-control,
[data-theme="light"] .order-lines-table tbody td select.form-select,
[data-theme="light"] .order-lines-table tbody td select.form-control,
[data-theme="light"] .multi-lines-table tbody td input.form-control,
[data-theme="light"] .multi-lines-table tbody td select.form-select,
[data-theme="light"] .multi-lines-table tbody td select.form-control {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .order-lines-table tfoot,
[data-theme="light"] .multi-lines-table tfoot {
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .order-lines-table tfoot td,
[data-theme="light"] .multi-lines-table tfoot td {
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .order-lines-table tfoot td.total-value,
[data-theme="light"] .multi-lines-table tfoot td.total-value {
    color: #0f172a !important;
}

/* Floating TomSelect Dropdown */
body>.ts-dropdown {
    position: absolute !important;
    min-width: unset !important;
    max-width: 500px !important;
    z-index: 999999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

.ts-dropdown .option {
    white-space: normal !important;
    word-break: break-word !important;
}

/* SaaS Plan Grid & Cards */
.superadmin-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .superadmin-plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .superadmin-plans-grid {
        grid-template-columns: 1fr;
    }
}

.superadmin-plan-card {
    background: var(--bg-card, #1e1e2d);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.superadmin-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.module-chips-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 2px;
    margin-bottom: 12px;
}

.module-chips-scroll::-webkit-scrollbar {
    width: 4px;
}

.module-chips-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modules-selection-box {
    max-height: 220px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-card, #0f172a);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.module-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-color);
    cursor: pointer;
}

.discounts-config-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Tenant Table Styling & Compact Actions */
.btn-chevron-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light, #f8fafc);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.btn-chevron-toggle:hover {
    background: var(--primary, #f97316);
    border-color: var(--primary, #f97316);
    color: #fff;
}

.btn-compact-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
    border: none;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-compact-primary {
    background: var(--primary, #f97316);
    color: #fff !important;
}

.btn-compact-primary:hover {
    filter: brightness(1.1);
}

.btn-compact-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-compact-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.btn-compact-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-compact-danger:hover {
    background: #ef4444;
    color: #fff !important;
}

.tenant-main-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tenant-main-row:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Global Clean Utility Classes to eliminate inline styles */
.filter-action-bar {
    border-radius: 12px;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
}

.avatar-badge-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.table-header-muted {
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-leave-tag {
    background: rgba(249, 115, 22, 0.15);
    color: #F97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.alert-themed-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success, #10b981);
    color: var(--success, #10b981);
    padding: 12px 18px;
    border-radius: 8px;
}

.alert-themed-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger, #ef4444);
    color: var(--danger, #ef4444);
    padding: 12px 18px;
    border-radius: 8px;
}

.card-themed-panel {
    border-radius: 12px;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border-color, #334155);
    overflow: hidden;
}

.card-themed-header {
    background: var(--bg-card, #1e293b);
    border-bottom: 1px solid var(--border-color, #334155);
}

.text-themed-title {
    color: var(--text-color, #ffffff);
}

.text-themed-muted {
    color: var(--text-muted, #94a3b8);
}

.panel-tabs-bar {
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin-top: 14px;
    margin-bottom: 14px;
    background: transparent;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.panel-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: -1px;
    white-space: nowrap;
    border-radius: 4px 4px 0 0;
}

.panel-tab-btn:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb, 249, 115, 22), 0.05);
}

.panel-tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    background: rgba(var(--primary-rgb, 249, 115, 22), 0.08);
}

.panel-tab-btn i {
    font-size: 0.95rem;
}

.emp-edit-pane {
    display: block;
    padding: 8px 0 0 0;
    animation: empFadeIn 0.2s ease-in-out;
}

.emp-edit-pane.d-none {
    display: none !important;
}

.col-emp-skill-name { width: 35%; }
.col-emp-skill-type { width: 25%; }
.col-emp-skill-level { width: 25%; }
.emp-skill-add-tr { background: rgba(var(--primary-rgb, 255, 115, 0), 0.04); }

@keyframes empFadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

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

.avatar-photo-kanban {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px auto;
    border: 2px solid var(--border-color);
    display: block;
}

.avatar-initials-kanban {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary, #f97316);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 12px auto;
}

.contract-highlight-box {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.btn-filter-pill {
    border-radius: 8px;
}

.input-pin-width {
    width: 100px !important;
}

.select-period-month {
    width: 130px !important;
}

.select-period-year {
    width: 95px !important;
}

.select-period-status {
    width: 145px !important;
}

.stat-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.stat-icon-primary {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.stat-icon-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.stat-icon-orange {
    background: rgba(249, 115, 22, 0.2);
    color: #EA580C;
}

.btn-action-delete {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-stat-success {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.03) 100%);
    border-left: 4px solid var(--success, #10b981) !important;
}

.card-stat-primary {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.03) 100%);
    border-left: 4px solid #3b82f6 !important;
}

.card-stat-warning {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.03) 100%);
    border-left: 4px solid #f59e0b !important;
}

.card-stat-orange {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0.03) 100%);
    border-left: 4px solid #F97316 !important;
}