html {
    color-scheme: light;
}

body.crm-theme {
    --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --space-card: 24px;
    --shadow-color: rgba(15, 23, 42, 0.08);
    --shadow-card: 0 18px 40px var(--shadow-color);
    --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.05);
    --transition-theme: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text-primary);
    transition: var(--transition-theme);
}

body.crm-theme.light-theme {
    --bg-page: #f3f6fb;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-alt: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.45);
    --text-primary: #162033;
    --text-secondary: #4d5b72;
    --text-muted: #7b879c;
    --text-inverse: #f8fafc;
    --border-color: #dbe3ef;
    --border-strong: #c7d2e3;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0891b2;
    --sidebar-bg: #ffffff;
    --sidebar-text: #334155;
    --topbar-bg: rgba(255, 255, 255, 0.92);
    --table-header: #eef4fb;
    --table-row: #ffffff;
    --table-row-alt: #f8fbff;
    --table-hover: #eef5ff;
    --input-bg: #ffffff;
    --input-border: #cfd8e3;
    --input-focus: rgba(37, 99, 235, 0.18);
    --modal-bg: #ffffff;
    --hover-bg: #edf3fb;
    --scrollbar: #c3cfdf;
    --scrollbar-track: #eef3f8;
}

/* Neutralize OS dark-mode bleeding from Tailwind inside Light Mode */
body.crm-theme.light-theme .dark\:tw-bg-neutral-800,
body.crm-theme.light-theme .dark\:tw-bg-neutral-800\/90,
body.crm-theme.light-theme .dark\:tw-bg-neutral-700\/40 {
    background-color: var(--bg-card, #ffffff) !important;
}
body.crm-theme.light-theme .dark\:tw-text-white {
    color: var(--text-primary, #162033) !important;
}
body.crm-theme.light-theme .dark\:tw-text-neutral-100,
body.crm-theme.light-theme .dark\:tw-text-neutral-200,
body.crm-theme.light-theme .dark\:tw-text-neutral-300 {
    color: var(--text-secondary, #4d5b72) !important;
}
body.crm-theme.light-theme .dark\:tw-border-neutral-700,
body.crm-theme.light-theme .dark\:tw-border-neutral-800 {
    border-color: var(--border-color, #dbe3ef) !important;
}

body.crm-theme.dark-theme,
html[data-theme="dark"] body.crm-theme,
html.theme-dark-mode body.crm-theme {
    --bg-page: #070b13;
    --bg-surface: #0b1320;
    --bg-card: #0c1524;
    --bg-card-alt: #0f192b;
    --bg-elevated: #111d32;
    --bg-overlay: rgba(3, 7, 18, 0.75);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-inverse: #070b13;
    --border-color: #172439;
    --border-strong: #1e314e;
    --primary: #2563eb;
    --primary-hover: #3b82f6;
    --primary-soft: rgba(37, 99, 235, 0.2);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #38bdf8;
    --sidebar-bg: #080d17;
    --sidebar-text: #94a3b8;
    --topbar-bg: rgba(8, 13, 23, 0.88);
    --table-header: #0e1728;
    --table-row: #0c1524;
    --table-row-alt: #0f192b;
    --table-hover: #132036;
    --input-bg: #070c16;
    --input-border: #1a293f;
    --input-focus: rgba(37, 99, 235, 0.25);
    --modal-bg: #0c1524;
    --hover-bg: #111d32;
    --scrollbar: #1e314e;
    --scrollbar-track: #080d17;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

body.crm-theme,
body.crm-theme #wrapper,
body.crm-theme #content,
body.crm-theme .content,
body.crm-theme .cp-main,
body.crm-theme .cp-content {
    background: var(--bg-page);
    color: var(--text-primary);
}

body.crm-theme a,
body.crm-theme .text-dark,
body.crm-theme .text-has-action,
body.crm-theme .menu-text,
body.crm-theme .sub-menu-text {
    color: var(--text-primary);
    transition: var(--transition-theme);
}

body.crm-theme a:hover,
body.crm-theme a:focus {
    color: var(--primary-hover);
}

body.crm-theme .text-muted,
body.crm-theme .text-neutral-400,
body.crm-theme .text-neutral-500,
body.crm-theme .text-neutral-600,
body.crm-theme small,
body.crm-theme .help-block {
    color: var(--text-muted) !important;
}

body.crm-theme #header {
    border-bottom: none !important;
    box-shadow: none !important;
}

body.crm-theme #header,
body.crm-theme footer,
body.crm-theme .screen-options-area,
body.crm-theme .navbar-default,
body.crm-theme .cp-topbar,
body.crm-theme .cp-bottom-nav {
    background: var(--topbar-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(14px);
}

body.crm-theme .sidebar,
body.crm-theme #menu,
body.crm-theme .cp-sidebar {
    background: var(--sidebar-bg);
    border-color: var(--border-color);
    color: var(--sidebar-text);
}

body.crm-theme .sidebar a,
body.crm-theme #side-menu > li > a,
body.crm-theme #setup-menu-item > a,
body.crm-theme .cp-nav a,
body.crm-theme .cp-bottom-nav a,
body.crm-theme .cp-sidebar-profile a {
    color: var(--sidebar-text) !important;
}

body.crm-theme #side-menu > li > a:hover,
body.crm-theme #side-menu > li.active > a,
body.crm-theme .cp-nav a:hover,
body.crm-theme .cp-nav a.active,
body.crm-theme .cp-bottom-nav a:hover,
body.crm-theme .cp-bottom-nav a.active {
    background: var(--primary-soft);
    color: var(--primary) !important;
}

body.crm-theme .panel,
body.crm-theme .panel_s,
body.crm-theme .card,
body.crm-theme .cp-card,
body.crm-theme .cp-widget,
body.crm-theme .cp-action,
body.crm-theme .cp-project,
body.crm-theme .cp-profile-card,
body.crm-theme .cp-placeholder,
body.crm-theme .cp-alert-card,
body.crm-theme .widget,
body.crm-theme .project-info-bg,
body.crm-theme .lead-info-heading,
body.crm-theme .bgwhite,
body.crm-theme .dropdown-menu,
body.crm-theme .popover,
body.crm-theme .modal-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-md);
}

body.crm-theme .panel_s,
body.crm-theme .panel,
body.crm-theme .cp-card {
    overflow: hidden;
}

body.crm-theme .panel-body,
body.crm-theme .panel-footer,
body.crm-theme .modal-header,
body.crm-theme .modal-body,
body.crm-theme .modal-footer,
body.crm-theme .dropdown-header {
    background: transparent;
    color: inherit;
    border-color: var(--border-color);
}

body.crm-theme .modal-header,
body.crm-theme .modal-footer,
body.crm-theme .panel-footer {
    border-color: var(--border-color);
}

body.crm-theme.modal-open .bootstrap-select.open,
body.crm-theme.modal-open .bs-container,
body.crm-theme.modal-open .bootstrap-select.open .dropdown-menu,
body.crm-theme.modal-open .bs-container .dropdown-menu {
    z-index: 10002 !important;
}

body.crm-theme .modal-header .close,
body.crm-theme .popover-title,
body.crm-theme .dropdown-menu > li > a,
body.crm-theme .navbar-nav > li > a,
body.crm-theme .mobile-menu-toggle,
body.crm-theme .cp-top-actions a,
body.crm-theme .cp-search-results a {
    color: var(--text-primary);
}

body.crm-theme .cp-search-results,
body.crm-theme #search_results,
body.crm-theme .search-results,
body.crm-theme .search-history {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

body.crm-theme .table,
body.crm-theme .table-responsive,
body.crm-theme .dataTables_wrapper .dataTables_scroll,
body.crm-theme .dataTables_wrapper .dataTables_filter input,
body.crm-theme .dataTables_wrapper .dataTables_length select {
    color: var(--text-primary);
}

body.crm-theme .table,
body.crm-theme .table.dataTable,
body.crm-theme .table.items {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.crm-theme .table > thead > tr > th,
body.crm-theme .table.items thead th,
body.crm-theme .dataTables_wrapper .dataTables_length,
body.crm-theme .dataTables_wrapper .dataTables_filter,
body.crm-theme .dataTables_wrapper .dataTables_info,
body.crm-theme .dataTables_wrapper .dataTables_paginate {
    background: transparent;
    color: var(--text-secondary);
}

body.crm-theme .table > thead > tr > th,
body.crm-theme .table.items thead th {
    background: var(--table-header);
    color: var(--text-secondary);
    border-color: var(--border-color) !important;
}

body.crm-theme .table > tbody > tr > td,
body.crm-theme .table > tbody > tr > th,
body.crm-theme .table > tfoot > tr > td,
body.crm-theme .table > tfoot > tr > th,
body.crm-theme .table-bordered,
body.crm-theme .table-bordered > thead > tr > th,
body.crm-theme .table-bordered > tbody > tr > td,
body.crm-theme .table-bordered > tbody > tr > th,
body.crm-theme .table-bordered > tfoot > tr > td {
    background: var(--table-row);
    border-color: var(--border-color) !important;
}

/* Bound table status accents to the row's first cell. A pseudo-element on a
 * table row is allowed to resolve against a larger table/page containing
 * block in some browsers, which makes the accent appear to start randomly
 * and continue far below the list. */
body.crm-theme table.dataTable tbody tr.has-border-left::after {
    display: none !important;
    content: none !important;
}

body.crm-theme table.dataTable tbody tr.has-border-left > td:first-child {
    border-left: 1px solid transparent !important;
}

body.crm-theme table.dataTable tbody tr.has-border-left.row-border-danger > td:first-child {
    border-left-color: #ef4444 !important;
}

body.crm-theme table.dataTable tbody tr.has-border-left.row-border-info > td:first-child {
    border-left-color: #0ea5e9 !important;
}

body.crm-theme table.dataTable tbody tr.has-border-left.row-border-warning > td:first-child {
    border-left-color: #eab308 !important;
}

body.crm-theme .table-striped > tbody > tr:nth-of-type(odd) > td,
body.crm-theme .table-striped > tbody > tr:nth-of-type(odd) > th {
    background: var(--table-row-alt);
}

body.crm-theme .table-hover > tbody > tr:hover > td,
body.crm-theme .table-hover > tbody > tr:hover > th,
body.crm-theme table.dataTable tbody tr:hover,
body.crm-theme .cp-visit:hover,
body.crm-theme .cp-search-result:hover,
body.crm-theme .dropdown-menu > li > a:hover,
body.crm-theme .dropdown-menu > li > a:focus {
    background: var(--table-hover) !important;
}

body.crm-theme .form-control,
body.crm-theme input[type="text"],
body.crm-theme input[type="email"],
body.crm-theme input[type="password"],
body.crm-theme input[type="search"],
body.crm-theme input[type="number"],
body.crm-theme input[type="date"],
body.crm-theme input[type="time"],
body.crm-theme textarea,
body.crm-theme select,
body.crm-theme .input-group-addon,
body.crm-theme .bootstrap-select > .dropdown-toggle,
body.crm-theme #search_input,
body.crm-theme #cp-global-search {
    background: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 12px;
    box-shadow: none !important;
    transition: var(--transition-theme);
}

body.crm-theme .form-control:focus,
body.crm-theme input:focus,
body.crm-theme textarea:focus,
body.crm-theme select:focus,
body.crm-theme .bootstrap-select > .dropdown-toggle:focus,
body.crm-theme #search_input:focus,
body.crm-theme #cp-global-search:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--input-focus) !important;
    outline: none !important;
}

body.crm-theme input::placeholder,
body.crm-theme textarea::placeholder,
body.crm-theme #search_input::placeholder,
body.crm-theme #cp-global-search::placeholder {
    color: var(--text-muted) !important;
}

body.crm-theme .checkbox label,
body.crm-theme .radio label,
body.crm-theme label,
body.crm-theme .control-label {
    color: var(--text-secondary);
}

body.crm-theme .btn,
body.crm-theme .btn-default,
body.crm-theme .btn-secondary,
body.crm-theme .btn-info,
body.crm-theme .btn-success,
body.crm-theme .btn-warning,
body.crm-theme .btn-danger,
body.crm-theme .btn-primary,
body.crm-theme .cp-icon-btn,
body.crm-theme .theme-toggle-btn {
    border-radius: 12px;
    transition: var(--transition-theme);
}

body.crm-theme .btn-default,
body.crm-theme .btn-secondary,
body.crm-theme .theme-toggle-btn,
body.crm-theme .cp-icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

body.crm-theme .btn-default:hover,
body.crm-theme .btn-default:focus,
body.crm-theme .btn-secondary:hover,
body.crm-theme .btn-secondary:focus,
body.crm-theme .theme-toggle-btn:hover,
body.crm-theme .theme-toggle-btn:focus,
body.crm-theme .cp-icon-btn:hover,
body.crm-theme .cp-icon-btn:focus {
    background: var(--hover-bg);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

body.crm-theme .btn-primary,
body.crm-theme .btn-info {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
}

body.crm-theme .btn-primary:hover,
body.crm-theme .btn-primary:focus,
body.crm-theme .btn-info:hover,
body.crm-theme .btn-info:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--text-inverse);
}

body.crm-theme .btn-success {
    background: var(--success);
    border-color: var(--success);
    color: var(--text-inverse);
}

body.crm-theme .btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--text-inverse);
}

body.crm-theme .btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--text-inverse);
}

body.crm-theme .label,
body.crm-theme .badge,
body.crm-theme .label-default {
    border-radius: 4px;
    font-weight: 500;
    padding: 2px 7px;
    font-size: 11px;
    letter-spacing: 0.01em;
}

body.crm-theme .label-default,
body.crm-theme .badge.bg-info {
    background: rgba(100, 116, 139, 0.1) !important;
    border: 1px solid rgba(100, 116, 139, 0.2) !important;
    color: var(--text-secondary) !important;
}
body.crm-theme .cp-badge {
    background: var(--soft);
    color: var(--tone);
    border-radius: 4px;
}

body.crm-theme .bg-success,
body.crm-theme .success-bg,
body.crm-theme .label-success {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
    color: var(--success) !important;
}

body.crm-theme .bg-warning,
body.crm-theme .warning-bg,
body.crm-theme .label-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
    color: var(--warning) !important;
}

body.crm-theme .bg-danger,
body.crm-theme .danger-bg,
body.crm-theme .label-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    color: var(--danger) !important;
}

body.crm-theme .label-info {
    background: rgba(14, 165, 233, 0.12) !important;
    border: 1px solid rgba(14, 165, 233, 0.28) !important;
    color: var(--info) !important;
}

body.crm-theme .label-primary {
    background: rgba(37, 99, 235, 0.12) !important;
    border: 1px solid rgba(37, 99, 235, 0.28) !important;
    color: var(--primary) !important;
}

/* ==========================================================================
   Modern SaaS Action Tags, Status Dots & Category Badges (No Capsule Pills)
   ========================================================================== */
.saas-action-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.saas-action-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
body.dark-theme .saas-action-success,
html[data-theme="dark"] .saas-action-success {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.saas-action-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
body.dark-theme .saas-action-danger,
html[data-theme="dark"] .saas-action-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.saas-action-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
body.dark-theme .saas-action-warning,
html[data-theme="dark"] .saas-action-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.saas-action-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.25);
}
body.dark-theme .saas-action-info,
html[data-theme="dark"] .saas-action-info {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #38bdf8 !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
}

.saas-action-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
body.dark-theme .saas-action-purple,
html[data-theme="dark"] .saas-action-purple {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #c084fc !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.saas-action-default {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
}
body.dark-theme .saas-action-default,
html[data-theme="dark"] .saas-action-default {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #94a3b8 !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
}

/* Status Indicator with Dot (No capsule pill) */
.saas-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}
.saas-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.saas-status-dot-success {
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.45);
}
.saas-status-dot-warning {
    background-color: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.45);
}
.saas-status-dot-danger {
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.45);
}
.saas-status-dot-info {
    background-color: #0ea5e9;
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.45);
}

/* Category & Module Tags */
.saas-category-tag {
    display: inline-block;
    padding: 1.5px 6px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    line-height: 1.3;
}
body.dark-theme .saas-category-tag,
html[data-theme="dark"] .saas-category-tag {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #1e293b !important;
}

body.crm-theme .alert {
    border-radius: var(--radius-md);
    border-color: var(--border-color);
}

body.crm-theme .alert-info {
    background: rgba(8, 145, 178, 0.12);
    color: var(--info);
}

body.crm-theme .alert-success {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
}

body.crm-theme .alert-warning {
    background: rgba(217, 119, 6, 0.14);
    color: var(--warning);
}

body.crm-theme .alert-danger {
    background: rgba(220, 38, 38, 0.14);
    color: var(--danger);
}

body.crm-theme .pagination > li > a,
body.crm-theme .pagination > li > span {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body.crm-theme .pagination > .active > a,
body.crm-theme .pagination > .active > span,
body.crm-theme .pagination > li > a:hover,
body.crm-theme .pagination > li > span:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

body.crm-theme .theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

body.crm-theme .theme-toggle-btn .theme-toggle-icon-dark,
body.crm-theme .theme-toggle-btn.is-dark .theme-toggle-icon-light {
    display: none;
}

body.crm-theme .theme-toggle-btn.is-dark .theme-toggle-icon-dark {
    display: inline-block;
}

body.crm-theme .theme-toggle-btn .theme-toggle-label {
    white-space: nowrap;
}

body.crm-theme .cp-avatar,
body.crm-theme .cp-brand-mark {
    background: var(--primary-soft);
    color: var(--primary);
}

body.crm-theme .cp-sidebar-label {
    color: var(--text-muted);
}

body.crm-theme .cp-sidebar-name {
    display: block;
    margin: 4px 0 12px;
    font-size: 13px;
    color: var(--sidebar-text);
}

body.crm-theme .cp-sidebar-logout {
    font-size: 12px;
    color: var(--text-secondary) !important;
    text-decoration: none;
}

body.crm-theme .cp-sidebar-logout:hover,
body.crm-theme .cp-sidebar-logout:focus {
    color: var(--primary) !important;
}

body.crm-theme .cp-dot {
    background: var(--danger);
}

body.crm-theme .company-logo img,
body.crm-theme #logo img {
    filter: none;
}

body.crm-theme ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.crm-theme ::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 9999px;
}

body.crm-theme ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

@media (max-width: 768px) {
    body.crm-theme .theme-toggle-btn .theme-toggle-label {
        display: none;
    }
}

/*
 * iOS Safari zooms the page when a text-entry control below 16px receives
 * focus. Keep touch-device controls at the accessibility-safe threshold so
 * opening and closing the software keyboard does not change page scale.
 *
 * The compact-width fallback also covers mobile browsers in desktop-site
 * mode, while the pointer query covers iPads at wider layout breakpoints.
 */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    body.crm-theme input[type="text"],
    body.crm-theme input[type="email"],
    body.crm-theme input[type="tel"],
    body.crm-theme input[type="url"],
    body.crm-theme input[type="password"],
    body.crm-theme input[type="search"],
    body.crm-theme input[type="number"],
    body.crm-theme input[type="date"],
    body.crm-theme input[type="time"],
    body.crm-theme input[type="datetime-local"],
    body.crm-theme input[type="month"],
    body.crm-theme input[type="week"],
    body.crm-theme textarea,
    body.crm-theme select,
    body.crm-theme [contenteditable="true"],
    body.crm-theme .form-control,
    body.crm-theme .bootstrap-select > .dropdown-toggle,
    body.crm-theme .bootstrap-select .bs-searchbox input {
        font-size: 16px !important;
    }

    /* iOS gives native date controls a min-content width that can exceed a
     * single-column dashboard grid. Use the containing block as the hard
     * sizing boundary while retaining the native date picker. */
    body.crm-theme input[type="date"] {
        display: block !important;
        inline-size: 100% !important;
        width: 100% !important;
        min-inline-size: 0 !important;
        min-width: 0 !important;
        max-inline-size: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    @supports (width: -webkit-fill-available) {
        body.crm-theme input[type="date"] {
            inline-size: -webkit-fill-available !important;
            width: -webkit-fill-available !important;
            max-inline-size: -webkit-fill-available !important;
            max-width: -webkit-fill-available !important;
        }
    }

    body.crm-theme .table-responsive,
    body.crm-theme .dataTables_scrollBody,
    body.crm-theme .crm-mobile-table-scroll,
    body.crm-theme .ops-table-wrap,
    body.crm-theme .rx-drilldown-table-wrap,
    body.crm-theme .cp-admin-table-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    body.crm-theme .table-responsive > table,
    body.crm-theme .dataTables_scrollBody > table,
    body.crm-theme .crm-mobile-table-scroll > table,
    body.crm-theme .ops-table-wrap > table,
    body.crm-theme .rx-drilldown-table-wrap > table,
    body.crm-theme .cp-admin-table-wrap > table {
        min-width: 100%;
        max-width: none;
        margin-bottom: 0;
    }

    body.crm-theme .table-responsive > table > thead > tr > th,
    body.crm-theme .dataTables_scrollBody > table > thead > tr > th,
    body.crm-theme .crm-mobile-table-scroll > table > thead > tr > th {
        white-space: nowrap;
    }
}

/* ==========================================================================
   Theme Toggle Controls & Dark Mode Helpers
   ========================================================================== */
.theme-icon-sun {
    display: none !important;
}
.theme-icon-moon {
    display: inline-block !important;
}

html[data-theme="dark"] .theme-icon-sun,
body.dark-theme .theme-icon-sun {
    display: inline-block !important;
}
html[data-theme="dark"] .theme-icon-moon,
body.dark-theme .theme-icon-moon {
    display: none !important;
}

.header-theme-toggle-btn {
    transition: transform 0.2s ease, color 0.2s ease;
}
.header-theme-toggle-btn:hover {
    transform: rotate(15deg);
}

body.dark-theme .demo-role-btn {
    background: var(--bg-card-alt) !important;
    border-color: var(--border-color) !important;
}
body.dark-theme .demo-role-btn:hover {
    background: var(--hover-bg) !important;
    border-color: var(--primary) !important;
}

/* ==========================================================================
   Module & Component Dark Mode Extensions (Luxury Midnight Palette)
   ========================================================================== */
html[data-theme="dark"],
body.dark-theme {
    --rx-bg: #070b13;
    --rx-card: #0b1320;
    --rx-text: #ffffff;
    --rx-muted: #94a3b8;
    --rx-line: #152236;
    --rx-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);

    --cp-bg: #070b13;
    --cp-card: #0b1320;
    --cp-text: #ffffff;
    --cp-muted: #94a3b8;
    --cp-line: #152236;
    --cp-blue-soft: rgba(37, 99, 235, 0.16);
    --cp-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Reception & Leads Workspaces */
body.dark-theme .leads-workspace-page,
html[data-theme="dark"] .leads-workspace-page {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 24rem),
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 30rem),
        linear-gradient(180deg, #090e18 0%, #070b13 100%) !important;
}
body.dark-theme .rx-workspace,
html[data-theme="dark"] .rx-workspace {
    background: var(--rx-bg) !important;
    color: var(--rx-text) !important;
}
body.dark-theme .rx-toolbar-card,
body.dark-theme .rx-summary-card,
body.dark-theme .rx-table-card,
body.dark-theme .rx-workspace-toolbar,
body.dark-theme .rx-search,
body.dark-theme .rx-card,
html[data-theme="dark"] .rx-toolbar-card,
html[data-theme="dark"] .rx-summary-card,
html[data-theme="dark"] .rx-table-card,
html[data-theme="dark"] .rx-workspace-toolbar,
html[data-theme="dark"] .rx-search,
html[data-theme="dark"] .rx-card {
    background: #0b1320 !important;
    border-color: #152236 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45) !important;
}
body.dark-theme .rx-live,
body.dark-theme .rx-workspace-window-label,
body.dark-theme .rx-summary-pill,
body.dark-theme .rx-visit,
body.dark-theme .rx-empty,
body.dark-theme .rx-manager a,
body.dark-theme .rx-action,
html[data-theme="dark"] .rx-live,
html[data-theme="dark"] .rx-workspace-window-label,
html[data-theme="dark"] .rx-summary-pill,
html[data-theme="dark"] .rx-visit,
html[data-theme="dark"] .rx-empty,
html[data-theme="dark"] .rx-manager a,
html[data-theme="dark"] .rx-action {
    background: #0c1524 !important;
    border-color: #172439 !important;
    color: #ffffff !important;
}
body.dark-theme .rx-action:hover,
html[data-theme="dark"] .rx-action:hover {
    background: #111d32 !important;
    border-color: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}
body.dark-theme .rx-action i,
html[data-theme="dark"] .rx-action i {
    background: rgba(37, 99, 235, 0.16) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    color: #60a5fa !important;
}
body.dark-theme .rx-search input,
html[data-theme="dark"] .rx-search input {
    background: #070c16 !important;
    color: #ffffff !important;
}

/* Closing Manager Workspace */
body.dark-theme .cm-card,
html[data-theme="dark"] .cm-card {
    background: #0b1320 !important;
    border-color: #152236 !important;
}
body.dark-theme .cm-summary-item,
body.dark-theme .cm-tag-card,
body.dark-theme .cm-summary-row,
body.dark-theme .cm-offer-item,
body.dark-theme .cm-timeline-item,
body.dark-theme .cm-collapse-button,
body.dark-theme .cm-suggestion,
html[data-theme="dark"] .cm-summary-item,
html[data-theme="dark"] .cm-tag-card,
html[data-theme="dark"] .cm-summary-row,
html[data-theme="dark"] .cm-offer-item,
html[data-theme="dark"] .cm-timeline-item,
html[data-theme="dark"] .cm-collapse-button,
html[data-theme="dark"] .cm-suggestion {
    background: #0c1524 !important;
    border-color: #172439 !important;
    color: #ffffff !important;
}
body.dark-theme .cm-readonly-input,
html[data-theme="dark"] .cm-readonly-input {
    background: #070c16 !important;
}

/* CP Portal */
body.dark-theme .cp-topbar,
html[data-theme="dark"] .cp-topbar {
    background: rgba(8, 13, 23, 0.88) !important;
    border-bottom: 1px solid #152236 !important;
    backdrop-filter: blur(14px) !important;
}
body.dark-theme .cp-search input,
html[data-theme="dark"] .cp-search input {
    background: #070c16 !important;
    border-color: #1a293f !important;
    color: #ffffff !important;
}
body.dark-theme .cp-search-results,
html[data-theme="dark"] .cp-search-results {
    background: #0b1320 !important;
    border-color: #152236 !important;
}
body.dark-theme .cp-project-pill,
body.dark-theme .cp-icon-btn,
body.dark-theme .cp-visit,
body.dark-theme .cp-empty,
body.dark-theme .cp-placeholder,
body.dark-theme .cp-action,
html[data-theme="dark"] .cp-project-pill,
html[data-theme="dark"] .cp-icon-btn,
html[data-theme="dark"] .cp-visit,
html[data-theme="dark"] .cp-empty,
html[data-theme="dark"] .cp-placeholder,
html[data-theme="dark"] .cp-action {
    background: #0c1524 !important;
    border-color: #172439 !important;
    color: #cbd5e1 !important;
}
body.dark-theme .cp-action:hover,
html[data-theme="dark"] .cp-action:hover {
    background: #111d32 !important;
    border-color: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    color: #ffffff !important;
}
body.dark-theme .cp-action i,
html[data-theme="dark"] .cp-action i {
    background: rgba(37, 99, 235, 0.16) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    color: #60a5fa !important;
}
body.dark-theme .cp-donut:after,
html[data-theme="dark"] .cp-donut:after {
    background: #0b1320 !important;
}
body.dark-theme .cp-bottom-nav,
html[data-theme="dark"] .cp-bottom-nav {
    background: #080d17 !important;
    border-top: 1px solid #152236 !important;
}

/* Bootstrap Select & Select2 Controls */
body.dark-theme .bootstrap-select > .dropdown-toggle,
html[data-theme="dark"] .bootstrap-select > .dropdown-toggle {
    background: #070c16 !important;
    border-color: #1a293f !important;
    color: #ffffff !important;
}
body.dark-theme .bootstrap-select .dropdown-menu,
html[data-theme="dark"] .bootstrap-select .dropdown-menu {
    background: #0b1320 !important;
    border-color: #152236 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}
body.dark-theme .bootstrap-select .dropdown-menu li a,
html[data-theme="dark"] .bootstrap-select .dropdown-menu li a {
    color: #ffffff !important;
}
body.dark-theme .bootstrap-select .dropdown-menu li a:hover,
html[data-theme="dark"] .bootstrap-select .dropdown-menu li a:hover {
    background: #111d32 !important;
}
body.dark-theme .select2-container--default .select2-selection--single,
body.dark-theme .select2-container--default .select2-selection--multiple,
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: #070c16 !important;
    border: 1px solid #1a293f !important;
    color: #ffffff !important;
}
body.dark-theme .select2-dropdown,
html[data-theme="dark"] .select2-dropdown {
    background-color: #0b1320 !important;
    border: 1px solid #152236 !important;
    color: #ffffff !important;
}
body.dark-theme .select2-container--default .select2-results__option--highlighted[aria-selected],
html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Nav Tabs in Dark Mode */
body.dark-theme .nav-tabs,
html[data-theme="dark"] .nav-tabs {
    border-bottom: 1px solid #152236 !important;
}
body.dark-theme .nav-tabs > li > a,
html[data-theme="dark"] .nav-tabs > li > a {
    color: #94a3b8 !important;
    border-color: transparent !important;
}
body.dark-theme .nav-tabs > li > a:hover,
html[data-theme="dark"] .nav-tabs > li > a:hover {
    color: #ffffff !important;
    background: #10192a !important;
}
body.dark-theme .nav-tabs > li.active > a,
body.dark-theme .nav-tabs > li.active > a:hover,
body.dark-theme .nav-tabs > li.active > a:focus,
html[data-theme="dark"] .nav-tabs > li.active > a,
html[data-theme="dark"] .nav-tabs > li.active > a:hover,
html[data-theme="dark"] .nav-tabs > li.active > a:focus {
    background: #0b1320 !important;
    border-color: #152236 #152236 transparent !important;
    color: #2563eb !important;
}

/* ==========================================================================
   GLOBAL DARK MODE HIGH-CONTRAST & ACCESSIBILITY SYSTEM
   ========================================================================== */
html[data-theme="dark"] .tw-text-neutral-900,
body.dark-theme .tw-text-neutral-900,
html.theme-dark-mode .tw-text-neutral-900,
html[data-theme="dark"] .tw-text-neutral-800,
body.dark-theme .tw-text-neutral-800,
html.theme-dark-mode .tw-text-neutral-800 {
    color: #ffffff !important;
}

html[data-theme="dark"] .tw-text-neutral-700,
body.dark-theme .tw-text-neutral-700,
html.theme-dark-mode .tw-text-neutral-700 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .tw-text-neutral-600,
body.dark-theme .tw-text-neutral-600,
html.theme-dark-mode .tw-text-neutral-600 {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .tw-text-neutral-500,
body.dark-theme .tw-text-neutral-500,
html.theme-dark-mode .tw-text-neutral-500 {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .tw-text-neutral-400,
body.dark-theme .tw-text-neutral-400,
html.theme-dark-mode .tw-text-neutral-400 {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .tw-bg-neutral-50,
body.dark-theme .tw-bg-neutral-50,
html.theme-dark-mode .tw-bg-neutral-50,
html[data-theme="dark"] .tw-bg-neutral-100,
body.dark-theme .tw-bg-neutral-100,
html.theme-dark-mode .tw-bg-neutral-100 {
    background-color: #0d1627 !important;
}

html[data-theme="dark"] .tw-border-neutral-100,
body.dark-theme .tw-border-neutral-100,
html.theme-dark-mode .tw-border-neutral-100,
html[data-theme="dark"] .tw-border-neutral-200,
body.dark-theme .tw-border-neutral-200,
html.theme-dark-mode .tw-border-neutral-200 {
    border-color: #172439 !important;
}

html[data-theme="dark"] .tw-divide-neutral-100 > :not([hidden]) ~ :not([hidden]),
body.dark-theme .tw-divide-neutral-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: #172439 !important;
}

/* Soft Color Backgrounds & Text */
html[data-theme="dark"] .tw-bg-indigo-50,
body.dark-theme .tw-bg-indigo-50 {
    background-color: rgba(99, 102, 241, 0.18) !important;
}
html[data-theme="dark"] .tw-text-indigo-600,
body.dark-theme .tw-text-indigo-600 {
    color: #818cf8 !important;
}

html[data-theme="dark"] .tw-bg-sky-50,
body.dark-theme .tw-bg-sky-50 {
    background-color: rgba(14, 165, 233, 0.18) !important;
}
html[data-theme="dark"] .tw-text-sky-600,
body.dark-theme .tw-text-sky-600 {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .tw-bg-emerald-50,
body.dark-theme .tw-bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.18) !important;
}
html[data-theme="dark"] .tw-text-emerald-600,
body.dark-theme .tw-text-emerald-600 {
    color: #34d399 !important;
}

html[data-theme="dark"] .tw-bg-rose-50,
body.dark-theme .tw-bg-rose-50 {
    background-color: rgba(244, 63, 94, 0.18) !important;
}
html[data-theme="dark"] .tw-text-rose-600,
body.dark-theme .tw-text-rose-600 {
    color: #fb7185 !important;
}

html[data-theme="dark"] .tw-text-amber-500,
body.dark-theme .tw-text-amber-500 {
    color: #fbbf24 !important;
}

/* High Contrast Code Badges in Dark Mode */
html[data-theme="dark"] code,
body.dark-theme code {
    background-color: #0e1728 !important;
    color: #38bdf8 !important;
    border: 1px solid #1e314e !important;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Table Headings & Cells in Dark Mode */
html[data-theme="dark"] .table > thead > tr > th,
body.dark-theme .table > thead > tr > th,
html[data-theme="dark"] table.dataTable thead th,
body.dark-theme table.dataTable thead th {
    color: #cbd5e1 !important;
    background-color: #0a111e !important;
    border-bottom: 1px solid #172439 !important;
    font-weight: 600;
}

html[data-theme="dark"] .table > tbody > tr > td,
body.dark-theme .table > tbody > tr > td,
html[data-theme="dark"] table.dataTable tbody td,
body.dark-theme table.dataTable tbody td {
    color: #e2e8f0 !important;
    background-color: #0b1320 !important;
    border-top: 1px solid #142033 !important;
}

html[data-theme="dark"] .table-hover > tbody > tr:hover > td,
body.dark-theme .table-hover > tbody > tr:hover > td,
html[data-theme="dark"] table.dataTable tbody tr:hover > td,
body.dark-theme table.dataTable tbody tr:hover > td {
    background-color: #101c2e !important;
}

/* Default buttons in Dark Mode */
html[data-theme="dark"] .btn-default,
body.dark-theme .btn-default {
    background-color: #0f192b !important;
    border-color: #1e314e !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .btn-default:hover,
body.dark-theme .btn-default:hover,
html[data-theme="dark"] .btn-default:focus,
body.dark-theme .btn-default:focus {
    background-color: #16243b !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Panels in Dark Mode */
html[data-theme="dark"] .panel_s,
body.dark-theme .panel_s {
    background: #0b1320 !important;
    border: 1px solid #162438 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Form Controls & Addons in Dark Mode */
html[data-theme="dark"] .input-group-addon,
body.dark-theme .input-group-addon {
    background-color: #0d1627 !important;
    border-color: #1a293f !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .form-control,
body.dark-theme .form-control {
    background-color: #070c16 !important;
    border-color: #1a293f !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .form-control:focus,
body.dark-theme .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

/* Form Labels & Dividers in Dark Mode */
html[data-theme="dark"] label,
body.dark-theme label,
html[data-theme="dark"] .control-label,
body.dark-theme .control-label {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] hr,
body.dark-theme hr,
html[data-theme="dark"] .hr-panel-heading,
body.dark-theme .hr-panel-heading {
    border-color: #172439 !important;
}
html[data-theme="dark"] .text-muted,
body.dark-theme .text-muted,
html[data-theme="dark"] small.text-muted,
body.dark-theme small.text-muted {
    color: #94a3b8 !important;
}

/* High Contrast Alert Boxes in Dark Mode */
html[data-theme="dark"] .alert-info,
body.dark-theme .alert-info {
    background-color: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
    color: #7dd3fc !important;
}
html[data-theme="dark"] .alert-info strong,
body.dark-theme .alert-info strong {
    color: #bae6fd !important;
}
html[data-theme="dark"] .alert-danger,
body.dark-theme .alert-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .alert-danger strong,
body.dark-theme .alert-danger strong {
    color: #fecaca !important;
}
html[data-theme="dark"] .alert-warning,
body.dark-theme .alert-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fde68a !important;
}
html[data-theme="dark"] .alert-warning strong,
body.dark-theme .alert-warning strong {
    color: #fef3c7 !important;
}
html[data-theme="dark"] .alert-success,
body.dark-theme .alert-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #6ee7b7 !important;
}
html[data-theme="dark"] .alert-success strong,
body.dark-theme .alert-success strong {
    color: #a7f3d0 !important;
}

/* DataTables & Pagination in Dark Mode */
html[data-theme="dark"] .dataTables_info,
body.dark-theme .dataTables_info,
html[data-theme="dark"] .dataTables_length,
body.dark-theme .dataTables_length,
html[data-theme="dark"] .dataTables_filter,
body.dark-theme .dataTables_filter {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .pagination > li > a,
body.dark-theme .pagination > li > a,
html[data-theme="dark"] .pagination > li > span,
body.dark-theme .pagination > li > span {
    background-color: #0f192b !important;
    border-color: #1e314e !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .pagination > li.active > a,
body.dark-theme .pagination > li.active > a,
html[data-theme="dark"] .pagination > li.active > span,
body.dark-theme .pagination > li.active > span {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .pagination > li > a:hover,
body.dark-theme .pagination > li > a:hover,
html[data-theme="dark"] .pagination > li > span:hover,
body.dark-theme .pagination > li > span:hover {
    background-color: #16243b !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Orcashel CRM - Modern Settings Redesign
   ========================================================================== */

.orcashel-settings-wrap {
    padding: 24px 28px 48px;
}

.orcashel-settings-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.orcashel-settings-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.orcashel-settings-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    flex-shrink: 0;
}

.orcashel-settings-hero-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.orcashel-settings-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.orcashel-settings-hero-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.orcashel-settings-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.orcashel-settings-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Sidebar navigation */
.orcashel-settings-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 80px;
}

.orcashel-settings-search-box {
    position: relative;
    margin-bottom: 22px;
}

.orcashel-settings-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.orcashel-settings-search-input {
    width: 100%;
    height: 42px;
    padding: 8px 14px 8px 38px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.2s ease;
}

.orcashel-settings-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--input-focus);
    background: var(--bg-card);
}

.orcashel-settings-nav-group {
    margin-bottom: 22px;
}

.orcashel-settings-nav-group:last-child {
    margin-bottom: 0;
}

.orcashel-settings-nav-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 10px 12px;
}

.orcashel-settings-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orcashel-settings-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    min-height: 42px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
}

.orcashel-settings-nav-item a:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    transform: translateX(2px);
}

.orcashel-settings-nav-item.active a {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    font-weight: 600;
}

.orcashel-settings-nav-item.active a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.orcashel-settings-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 15px;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: center;
    transition: color 0.15s ease;
}

.orcashel-settings-nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.orcashel-settings-hero-badge svg {
    width: 32px;
    height: 32px;
    display: block;
}

.orcashel-settings-nav-item:hover .orcashel-settings-nav-icon,
.orcashel-settings-nav-item.active .orcashel-settings-nav-icon {
    color: var(--primary);
}

/* Main Settings Card */
.orcashel-settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.orcashel-settings-card-header {
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orcashel-settings-card-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.orcashel-settings-card-body {
    padding: 28px;
    color: var(--text-primary);
}

.orcashel-settings-card-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card-alt);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* Modern Form Controls within Settings */
.orcashel-settings-card .form-group {
    margin-bottom: 22px;
}

.orcashel-settings-card .form-group label.control-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.orcashel-settings-card .form-control {
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    padding: 8px 14px;
    font-size: 13.5px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.orcashel-settings-card textarea.form-control {
    height: auto;
    min-height: 90px;
}

.orcashel-settings-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--input-focus);
    outline: none;
}

/* Modern Segmented Yes/No Toggles */
.orcashel-toggle-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.orcashel-toggle-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.orcashel-toggle-group {
    display: inline-flex;
    background: var(--bg-page);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    gap: 4px;
    width: fit-content;
}

.orcashel-toggle-option {
    position: relative;
    margin: 0;
}

.orcashel-toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.orcashel-toggle-option label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 22px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
    transition: all 0.2s ease;
    user-select: none;
}

.orcashel-toggle-option input[type="radio"]:checked + label {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.orcashel-toggle-option:hover label {
    color: var(--text-primary);
}

/* Modern File Upload Cards */
.orcashel-upload-box {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    background: var(--bg-page);
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.orcashel-upload-box:hover {
    border-color: var(--primary);
    background: var(--hover-bg);
}

.orcashel-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.orcashel-upload-box-icon {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 8px;
}

.orcashel-upload-box-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.orcashel-upload-box-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.orcashel-current-asset-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.orcashel-current-asset-img {
    max-height: 48px;
    max-width: 180px;
    object-fit: contain;
    border-radius: 6px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* Section Dividers */
.orcashel-settings-card hr {
    margin: 26px 0;
    border: 0;
    border-top: 1px solid var(--border-color);
    opacity: 0.75;
}

/* ==========================================================================
   Orcashel Settings - Sub-Tabs Modernization (Fixes White Bar)
   ========================================================================== */
.orcashel-settings-card .panel-full-width-tabs,
.orcashel-settings-card .horizontal-scrollable-tabs {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    background: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 14px !important;
}

.orcashel-settings-card .horizontal-tabs {
    background: transparent !important;
}

.orcashel-settings-card .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal,
.orcashel-settings-card .panel-full-width-tabs .nav,
.orcashel-settings-card .nav-tabs {
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.orcashel-settings-card .horizontal-scrollable-tabs .scroller,
.orcashel-settings-card .panel-full-width-tabs.horizontal-scrollable-tabs .scroller {
    background: var(--bg-page) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    width: 34px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 4px !important;
}

.orcashel-settings-card .horizontal-scrollable-tabs .scroller:hover {
    background: var(--hover-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary) !important;
}

.orcashel-settings-card .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li,
.orcashel-settings-card .panel-full-width-tabs .nav > li,
.orcashel-settings-card .nav-tabs > li {
    float: none !important;
    display: inline-block !important;
    margin: 0 !important;
    min-width: unset !important;
}

.orcashel-settings-card .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li > a,
.orcashel-settings-card .panel-full-width-tabs .nav > li > a,
.orcashel-settings-card .nav-tabs > li > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    background: var(--bg-page) !important;
    border: 1px solid var(--border-color) !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
}

.orcashel-settings-card .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li > a:hover,
.orcashel-settings-card .panel-full-width-tabs .nav > li > a:hover,
.orcashel-settings-card .nav-tabs > li > a:hover {
    background: var(--hover-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-strong, var(--border-color)) !important;
    transform: translateY(-1px);
}

.orcashel-settings-card .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li.active > a,
.orcashel-settings-card .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li.active > a:focus,
.orcashel-settings-card .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal > li.active > a:hover,
.orcashel-settings-card .panel-full-width-tabs .nav > li.active > a,
.orcashel-settings-card .panel-full-width-tabs .nav > li.active > a:focus,
.orcashel-settings-card .panel-full-width-tabs .nav > li.active > a:hover,
.orcashel-settings-card .nav-tabs > li.active > a,
.orcashel-settings-card .nav-tabs > li.active > a:focus,
.orcashel-settings-card .nav-tabs > li.active > a:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

/* ==========================================================================
   Global Dark Mode Sub-Tabs & Horizontal Tabs
   ========================================================================== */
html[data-theme="dark"] .horizontal-scrollable-tabs,
body.dark-theme .horizontal-scrollable-tabs,
html.theme-dark-mode .horizontal-scrollable-tabs,
html[data-theme="dark"] .panel-full-width-tabs,
body.dark-theme .panel-full-width-tabs,
html.theme-dark-mode .panel-full-width-tabs,
html[data-theme="dark"] .horizontal-tabs,
body.dark-theme .horizontal-tabs,
html.theme-dark-mode .horizontal-tabs,
html[data-theme="dark"] .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal,
body.dark-theme .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal,
html.theme-dark-mode .horizontal-scrollable-tabs .horizontal-tabs .nav-tabs-horizontal,
html[data-theme="dark"] .panel-full-width-tabs .nav,
body.dark-theme .panel-full-width-tabs .nav,
html.theme-dark-mode .panel-full-width-tabs .nav {
    background-color: transparent !important;
    border-color: #172439 !important;
}

html[data-theme="dark"] .panel-full-width-tabs .nav li a,
body.dark-theme .panel-full-width-tabs .nav li a,
html.theme-dark-mode .panel-full-width-tabs .nav li a,
html[data-theme="dark"] .horizontal-scrollable-tabs .scroller,
body.dark-theme .horizontal-scrollable-tabs .scroller,
html.theme-dark-mode .horizontal-scrollable-tabs .scroller {
    background-color: #0c1524 !important;
    color: #94a3b8 !important;
    border-color: #172439 !important;
}

html[data-theme="dark"] .panel-full-width-tabs .nav li a:hover,
body.dark-theme .panel-full-width-tabs .nav li a:hover,
html.theme-dark-mode .panel-full-width-tabs .nav li a:hover,
html[data-theme="dark"] .horizontal-scrollable-tabs .scroller:hover,
body.dark-theme .horizontal-scrollable-tabs .scroller:hover,
html.theme-dark-mode .horizontal-scrollable-tabs .scroller:hover {
    background-color: #111d32 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .panel-full-width-tabs .nav li.active a,
body.dark-theme .panel-full-width-tabs .nav li.active a,
html.theme-dark-mode .panel-full-width-tabs .nav li.active a {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .nav-tabs-segmented,
body.dark-theme .nav-tabs-segmented,
html.theme-dark-mode .nav-tabs-segmented {
    background-color: #070c16 !important;
    border: 1px solid #172439 !important;
}

html[data-theme="dark"] .nav-tabs-segmented > li > a,
body.dark-theme .nav-tabs-segmented > li > a,
html.theme-dark-mode .nav-tabs-segmented > li > a {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .nav-tabs-segmented > li.active > a,
body.dark-theme .nav-tabs-segmented > li.active > a,
html.theme-dark-mode .nav-tabs-segmented > li.active > a {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GLOBAL MODERN MINI CALENDAR & DATEPICKER WRAPPER DESIGN SYSTEM
   ───────────────────────────────────────────────────────────────────────────── */

.crm-datepicker-wrap,
.ops-datepicker-wrap,
.rx-workspace-datepicker-wrap,
.sm-datepicker-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.crm-datepicker-wrap .crm-datepicker-icon,
.ops-datepicker-wrap .ops-datepicker-icon,
.rx-workspace-datepicker-wrap .rx-workspace-datepicker-icon,
.sm-datepicker-wrap .sm-datepicker-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 14px;
    z-index: 2;
    cursor: pointer;
    pointer-events: all;
}

.crm-datepicker-wrap .crm-datepicker-display,
.ops-datepicker-wrap .ops-datepicker-display,
.rx-workspace-datepicker-wrap .rx-workspace-datepicker-display,
.sm-datepicker-wrap .sm-datepicker-display {
    height: 42px;
    min-height: 42px;
    width: 100% !important;
    padding: 0 14px 0 38px !important;
    border: 1px solid #d8e1db;
    border-radius: 12px;
    background: #ffffff !important;
    color: #172033 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    cursor: pointer !important;
    caret-color: transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.crm-datepicker-wrap .crm-datepicker-display:hover,
.ops-datepicker-wrap .ops-datepicker-display:hover,
.rx-workspace-datepicker-wrap .rx-workspace-datepicker-display:hover,
.sm-datepicker-wrap .sm-datepicker-display:hover {
    border-color: #93c5fd;
    background: #f8fafc !important;
}

.crm-datepicker-wrap .crm-datepicker-display:focus,
.ops-datepicker-wrap .ops-datepicker-display:focus,
.rx-workspace-datepicker-wrap .rx-workspace-datepicker-display:focus,
.sm-datepicker-wrap .sm-datepicker-display:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.crm-datepicker-hidden,
.ops-datepicker-hidden,
.rx-workspace-datepicker-hidden,
.sm-datepicker-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* ── Universal xdsoft Datetimepicker — Modern Design Theme ──────────────── */
.xdsoft_datetimepicker {
    z-index: 999999 !important;
    padding: 14px !important;
    border-radius: 18px !important;
    border: 1px solid #dbe4f0 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
    background: #ffffff !important;
    font-family: inherit !important;
    overflow: hidden !important;
}

/* Month / year header */
.xdsoft_datetimepicker .xdsoft_datepicker {
    width: 252px !important;
    margin-left: 0 !important;
}

.xdsoft_datetimepicker .xdsoft_monthpicker {
    margin-bottom: 10px !important;
    position: relative !important;
    text-align: center !important;
}

.xdsoft_datetimepicker .xdsoft_label {
    font-size: 14px !important;
    font-weight: 750 !important;
    color: #172033 !important;
    background: transparent !important;
    padding: 4px 0 !important;
    width: auto !important;
    float: none !important;
    display: inline-block !important;
}

.xdsoft_datetimepicker .xdsoft_label > span {
    text-decoration: none !important;
}

.xdsoft_datetimepicker .xdsoft_label:hover > span {
    color: #2563eb !important;
    text-decoration: underline !important;
}

/* Prev / next arrows */
.xdsoft_datetimepicker .xdsoft_prev,
.xdsoft_datetimepicker .xdsoft_next,
.xdsoft_datetimepicker .xdsoft_today_button {
    opacity: 0.5 !important;
    transition: opacity 0.15s !important;
}

.xdsoft_datetimepicker .xdsoft_prev:hover,
.xdsoft_datetimepicker .xdsoft_next:hover,
.xdsoft_datetimepicker .xdsoft_today_button:hover {
    opacity: 1 !important;
}

/* Calendar table */
.xdsoft_datetimepicker .xdsoft_calendar table {
    border-spacing: 2px !important;
    border-collapse: separate !important;
    width: 100% !important;
}

/* Day-of-week header */
.xdsoft_datetimepicker .xdsoft_calendar th {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 0 0 6px !important;
    text-align: center !important;
    cursor: default !important;
    height: 24px !important;
}

/* Calendar cells */
.xdsoft_datetimepicker .xdsoft_calendar td {
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    height: 34px !important;
    width: 34px !important;
    padding: 0 !important;
    transition: background 0.12s, color 0.12s !important;
    cursor: pointer !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td > div {
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Hover */
.xdsoft_datetimepicker .xdsoft_calendar td:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    box-shadow: none !important;
}

/* Today */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today {
    color: #2563eb !important;
    box-shadow: inset 0 0 0 2px #bfdbfe !important;
    border-radius: 8px !important;
}

/* Selected / current */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 750 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

/* Other month days (greyed out) */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month {
    opacity: 0.3 !important;
}

/* Disabled */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled {
    opacity: 0.35 !important;
    cursor: default !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover {
    background: transparent !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

/* Year/month select overlay */
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select {
    border: 1px solid #dbe4f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
    overflow: hidden !important;
}

.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option {
    padding: 7px 14px !important;
    font-size: 13px !important;
    color: #334155 !important;
    text-decoration: none !important;
}

.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* Hide copyright */
.xdsoft_datetimepicker .xdsoft_copyright {
    display: none !important;
}

/* ── Dark Mode Overrides ────────────────────────────────────────────── */
html[data-theme="dark"] .xdsoft_datetimepicker,
body.dark-theme .xdsoft_datetimepicker,
html.theme-dark-mode .xdsoft_datetimepicker {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_label,
body.dark-theme .xdsoft_datetimepicker .xdsoft_label,
html.theme-dark-mode .xdsoft_datetimepicker .xdsoft_label {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar th,
body.dark-theme .xdsoft_datetimepicker .xdsoft_calendar th,
html.theme-dark-mode .xdsoft_datetimepicker .xdsoft_calendar th {
    color: #475569 !important;
}

html[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar td,
body.dark-theme .xdsoft_datetimepicker .xdsoft_calendar td,
html.theme-dark-mode .xdsoft_datetimepicker .xdsoft_calendar td {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar td:hover,
body.dark-theme .xdsoft_datetimepicker .xdsoft_calendar td:hover,
html.theme-dark-mode .xdsoft_datetimepicker .xdsoft_calendar td:hover {
    background: rgba(37, 99, 235, 0.18) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today,
body.dark-theme .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today,
html.theme-dark-mode .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today {
    box-shadow: inset 0 0 0 2px #1d4ed8 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select,
body.dark-theme .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select,
html.theme-dark-mode .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

html[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option,
body.dark-theme .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option,
html.theme-dark-mode .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .crm-datepicker-wrap .crm-datepicker-display,
html[data-theme="dark"] .ops-datepicker-wrap .ops-datepicker-display,
html[data-theme="dark"] .sm-datepicker-wrap .sm-datepicker-display,
body.dark-theme .crm-datepicker-wrap .crm-datepicker-display,
body.dark-theme .ops-datepicker-wrap .ops-datepicker-display,
body.dark-theme .sm-datepicker-wrap .sm-datepicker-display,
html.theme-dark-mode .crm-datepicker-wrap .crm-datepicker-display,
html.theme-dark-mode .ops-datepicker-wrap .ops-datepicker-display,
html.theme-dark-mode .sm-datepicker-wrap .sm-datepicker-display {
    background: #0d1726 !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .crm-datepicker-wrap .crm-datepicker-icon,
html[data-theme="dark"] .ops-datepicker-wrap .ops-datepicker-icon,
html[data-theme="dark"] .sm-datepicker-wrap .sm-datepicker-icon,
body.dark-theme .crm-datepicker-wrap .crm-datepicker-icon,
body.dark-theme .ops-datepicker-wrap .ops-datepicker-icon,
body.dark-theme .sm-datepicker-wrap .sm-datepicker-icon,
html.theme-dark-mode .crm-datepicker-wrap .crm-datepicker-icon,
html.theme-dark-mode .ops-datepicker-wrap .ops-datepicker-icon,
html.theme-dark-mode .sm-datepicker-wrap .sm-datepicker-icon {
    color: #60a5fa !important;
}





