:root {
    color-scheme: light;
}

[data-bs-theme="light"] {
    color-scheme: light;
    --erp-sidebar-bg: #F0F9FF;
    --erp-sidebar-step-1: #F0F9FF;
    --erp-sidebar-step-2: color-mix(in srgb, var(--erp-sidebar-bg) 92%, var(--erp-primary));
    --erp-sidebar-step-3: color-mix(in srgb, var(--erp-sidebar-bg) 84%, var(--erp-primary-600));
    --erp-sidebar-gradient-start: var(--erp-sidebar-step-1);
    --erp-sidebar-gradient-mid: var(--erp-sidebar-step-2);
    --erp-sidebar-gradient-end: var(--erp-sidebar-step-3);
    --erp-sidebar-hover: #E0F2FE;
    --erp-sidebar-text: #1f2937;
    --erp-sidebar-muted: color-mix(in srgb, var(--erp-sidebar-text) 72%, var(--erp-sidebar-bg));
    --erp-sidebar-active-bg: linear-gradient(135deg, var(--erp-primary) 0%, var(--erp-primary-600) 100%);
    --erp-sidebar-active-text: var(--erp-primary-contrast);
    --erp-sidebar-border: color-mix(in srgb, var(--erp-primary) 28%, var(--erp-sidebar-bg));
    --erp-sidebar-search-bg: color-mix(in srgb, var(--erp-sidebar-bg) 88%, var(--erp-primary));
    --erp-sidebar-search-border: color-mix(in srgb, var(--erp-primary) 36%, var(--erp-sidebar-bg));
    --erp-sidebar-search-results-bg: color-mix(in srgb, var(--erp-sidebar-bg) 94%, #ffffff);
}

[data-bs-theme="light"] .erp-sidebar {
    background:
        radial-gradient(circle at 16% 8%, rgba(var(--erp-primary-rgb), 0.14), transparent 28%),
        linear-gradient(180deg, var(--erp-sidebar-gradient-start) 0%, var(--erp-sidebar-gradient-mid) 52%, var(--erp-sidebar-gradient-end) 100%);
    color: var(--erp-sidebar-text);
    border-right: 1px solid var(--erp-sidebar-border);
}

[data-bs-theme="light"] .erp-brand {
    border-bottom-color: var(--erp-sidebar-border);
}

[data-bs-theme="light"] .erp-brand h1,
[data-bs-theme="light"] .erp-brand .text-white,
[data-bs-theme="light"] .erp-sidebar-user-meta .text-white.fw-semibold {
    color: var(--erp-sidebar-text) !important;
}

[data-bs-theme="light"] .erp-brand small,
[data-bs-theme="light"] .erp-sidebar .text-secondary,
[data-bs-theme="light"] .erp-sidebar-user-meta .small {
    color: var(--erp-sidebar-muted, var(--erp-primary-700)) !important;
}

[data-bs-theme="light"] .erp-sidebar .btn-outline-light {
    background: var(--erp-sidebar-search-bg);
    border-color: var(--erp-sidebar-search-border);
    color: var(--erp-sidebar-text);
}

[data-bs-theme="light"] .erp-nav .nav-link {
    color: var(--erp-sidebar-text);
}

[data-bs-theme="light"] .erp-nav .nav-link:hover {
    color: var(--erp-sidebar-text);
    background: var(--erp-sidebar-hover);
}

[data-bs-theme="light"] .erp-nav .nav-link.active {
    color: var(--erp-sidebar-active-text);
    background: var(--erp-sidebar-active-bg);
}

[data-bs-theme="light"] .erp-nav-back {
    background: var(--erp-sidebar-hover);
    color: var(--erp-sidebar-text) !important;
}

[data-bs-theme="light"] .erp-nav-back:hover {
    color: var(--erp-sidebar-active-text) !important;
    background: var(--erp-sidebar-active-bg);
}

[data-bs-theme="light"] .erp-nav-section-title {
    color: var(--erp-sidebar-muted);
}

[data-bs-theme="light"] .erp-menu-search-wrap {
    border-bottom-color: var(--erp-sidebar-border);
}

[data-bs-theme="light"] .erp-menu-search-results {
    background: var(--erp-sidebar-search-results-bg);
    border-color: var(--erp-sidebar-search-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

[data-bs-theme="light"] .erp-menu-search-group .input-group-text,
[data-bs-theme="light"] .erp-menu-search-group .form-control {
    background: var(--erp-sidebar-search-bg);
    border-color: var(--erp-sidebar-search-border);
    color: var(--erp-sidebar-text);
}

[data-bs-theme="light"] .erp-menu-search-group .form-control::placeholder,
[data-bs-theme="light"] .erp-menu-search-empty {
    color: var(--erp-sidebar-muted);
}

[data-bs-theme="light"] .erp-menu-search-result {
    color: var(--erp-sidebar-text);
}

[data-bs-theme="light"] .erp-menu-search-result:hover {
    background: var(--erp-sidebar-hover);
    color: var(--erp-sidebar-text);
}

[data-bs-theme="light"] .erp-menu-search-result.is-selected {
    background: color-mix(in srgb, var(--erp-primary) 18%, var(--erp-surface));
    outline-color: color-mix(in srgb, var(--erp-primary) 45%, var(--erp-surface));
    color: var(--erp-text);
}

[data-bs-theme="light"] .erp-menu-search-result-path {
    color: var(--erp-primary-700);
}

[data-bs-theme="light"] .erp-menu-search-result:hover .erp-menu-search-result-path,
[data-bs-theme="light"] .erp-menu-search-result.is-selected .erp-menu-search-result-path {
    color: var(--erp-table-header-text);
}

[data-bs-theme="light"] .erp-topbar-title {
    color: var(--erp-text);
}

[data-bs-theme="light"] .erp-topbar-subtitle {
    color: var(--erp-table-header-text);
}

[data-bs-theme="light"] .erp-topbar-search-group .input-group-text,
[data-bs-theme="light"] .erp-topbar-search-group .form-control {
    background: var(--erp-search-bg);
    border-color: var(--erp-input-border);
    color: var(--erp-text);
}

[data-bs-theme="light"] .erp-topbar-search-group .input-group-text {
    color: var(--erp-primary-600);
}

[data-bs-theme="light"] .erp-topbar-search-group .form-control::placeholder {
    color: var(--erp-muted);
    opacity: .78;
}

[data-bs-theme="dark"] {
    color-scheme: dark;
    --erp-primary: #18A8E1;
    --erp-primary-600: #0B3B9C;
    --erp-primary-700: #082F7A;
    --erp-primary-rgb: 24, 168, 225;
    --erp-accent: #38bdf8;
    --erp-sidebar-bg: #0F172A;
    --erp-sidebar-step-1: #0F172A;
    --erp-sidebar-step-2: #111827;
    --erp-sidebar-step-3: #1E293B;
    --erp-sidebar-gradient-start: var(--erp-sidebar-step-1);
    --erp-sidebar-gradient-mid: var(--erp-sidebar-step-2);
    --erp-sidebar-gradient-end: var(--erp-sidebar-step-3);
    --erp-sidebar-hover: rgba(var(--erp-primary-rgb), 0.14);
    --erp-sidebar-active-bg: linear-gradient(135deg, var(--erp-primary) 0%, var(--erp-primary-600) 100%);
    --erp-sidebar-active-text: var(--erp-primary-contrast);
    --erp-sidebar-border: color-mix(in srgb, var(--erp-primary) 28%, var(--erp-sidebar-bg));
    --erp-sidebar-search-bg: color-mix(in srgb, var(--erp-sidebar-bg) 88%, var(--erp-primary));
    --erp-sidebar-search-border: color-mix(in srgb, var(--erp-primary) 36%, var(--erp-sidebar-bg));
    --erp-sidebar-search-results-bg: color-mix(in srgb, var(--erp-sidebar-bg) 94%, #111827);
    --erp-bg-main: #0F172A;
    --erp-bg-soft: #1E293B;
    --erp-surface: #111827;
    --erp-surface-soft: #1E293B;
    --erp-surface-muted: #334155;
    --erp-card-bg: var(--erp-surface);
    --erp-toolbar-bg: color-mix(in srgb, var(--erp-surface) 92%, transparent);
    --erp-topbar-bg: color-mix(in srgb, var(--erp-surface) 92%, transparent);
    --erp-topbar-border: var(--erp-border);
    --erp-search-bg: #1E293B;
    --erp-input-bg: #111827;
    --erp-input-border: var(--erp-border);
    --erp-table-header-bg: var(--erp-bg-soft);
    --erp-table-header-text: #BAE6FD;
    --erp-table-bg: var(--erp-surface);
    --erp-row-striped: rgba(var(--erp-primary-rgb), 0.08);
    --erp-row-hover: rgba(var(--erp-primary-rgb), 0.16);
    --erp-control-hover: rgba(var(--erp-primary-rgb), 0.16);
    --erp-pagination-bg: var(--erp-surface-soft);
    --erp-tabs-bg: var(--erp-bg-main);
    --erp-tabs-border: var(--erp-border);
    --erp-tab-bg: var(--erp-surface-soft);
    --erp-tab-hover-bg: var(--erp-control-hover);
    --erp-tab-active-bg: var(--erp-surface);
    --erp-text: #E0F2FE;
    --erp-muted: #94A3B8;
    --erp-border: #0F172A;
    --erp-border-strong: #1E293B;
    --erp-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.42);
    --erp-shadow-md: 0 18px 40px rgba(15, 23, 42, 0.56);

    --bs-body-bg: #0F172A;
    --bs-body-color: #E0F2FE;
    --bs-border-color: #0F172A;
    --bs-secondary-color: var(--erp-muted);
    --bs-secondary-bg: #1E293B;
    --bs-tertiary-bg: var(--erp-surface-muted);
    --bs-light-rgb: 51, 65, 85;
    --bs-table-bg: #0F172A;
    --bs-table-striped-bg: var(--erp-row-striped);
    --bs-table-hover-bg: var(--erp-row-hover);
}

[data-bs-theme="dark"] body {
    background: var(--erp-bg-main);
    color: var(--erp-text);
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .h1,
[data-bs-theme="dark"] .h2,
[data-bs-theme="dark"] .h3,
[data-bs-theme="dark"] .h4,
[data-bs-theme="dark"] .h5,
[data-bs-theme="dark"] .h6 {
    color: var(--erp-text);
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .small.text-muted,
[data-bs-theme="dark"] small {
    color: var(--erp-muted) !important;
}

[data-bs-theme="dark"] .surface-card,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .dropdown-menu {
    background: var(--erp-card-bg);
    border-color: var(--erp-border);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .form-label {
    color: var(--erp-text);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
    background: var(--erp-input-bg);
    border-color: var(--erp-input-border);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: var(--erp-muted);
}

[data-bs-theme="dark"] .btn-light {
    background: var(--erp-surface-soft);
    border-color: var(--erp-border);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table > :not(caption) > * > * {
    --bs-table-color-state: var(--erp-text);
    --bs-table-bg-state: var(--erp-table-bg);
    border-color: var(--erp-border);
}

[data-bs-theme="dark"] .erp-topbar {
    background: var(--erp-topbar-bg);
    border-bottom-color: var(--erp-topbar-border);
}

[data-bs-theme="dark"] .erp-sidebar {
    background:
        radial-gradient(circle at 16% 8%, rgba(var(--erp-primary-rgb), 0.24), transparent 26%),
        linear-gradient(180deg, var(--erp-sidebar-gradient-start) 0%, var(--erp-sidebar-gradient-mid) 46%, var(--erp-sidebar-gradient-end) 100%);
    color: var(--erp-sidebar-text);
    border-right-color: var(--erp-sidebar-border);
}

[data-bs-theme="dark"] .erp-brand {
    border-bottom-color: var(--erp-sidebar-border);
}

[data-bs-theme="dark"] .erp-menu-search-wrap {
    border-bottom-color: var(--erp-sidebar-border);
}

[data-bs-theme="dark"] .erp-menu-search-results {
    background: var(--erp-sidebar-search-results-bg);
    border-color: var(--erp-sidebar-search-border);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.58);
}

[data-bs-theme="dark"] .erp-menu-search-group .input-group-text,
[data-bs-theme="dark"] .erp-menu-search-group .form-control {
    background: var(--erp-sidebar-search-bg);
    border-color: var(--erp-sidebar-search-border);
    color: var(--erp-sidebar-text);
}

[data-bs-theme="dark"] .erp-menu-search-group .form-control::placeholder,
[data-bs-theme="dark"] .erp-menu-search-empty {
    color: var(--erp-sidebar-muted);
}

[data-bs-theme="dark"] .erp-menu-search-result {
    color: var(--erp-sidebar-text);
}

[data-bs-theme="dark"] .erp-menu-search-result:hover {
    background: var(--erp-sidebar-hover);
    color: var(--erp-sidebar-text);
}

[data-bs-theme="dark"] .erp-menu-search-result.is-selected {
    background: var(--erp-sidebar-hover);
    outline-color: var(--erp-sidebar-search-border);
    color: var(--erp-sidebar-text);
}

[data-bs-theme="dark"] .erp-menu-search-result-path {
    color: var(--erp-muted);
}

[data-bs-theme="dark"] .erp-menu-search-result:hover .erp-menu-search-result-path,
[data-bs-theme="dark"] .erp-menu-search-result.is-selected .erp-menu-search-result-path {
    color: var(--erp-sidebar-muted);
}

[data-bs-theme="dark"] .erp-sidebar .text-secondary,
[data-bs-theme="dark"] .erp-sidebar-user-meta .small {
    color: var(--erp-sidebar-muted) !important;
}

[data-bs-theme="dark"] .erp-topbar-title,
[data-bs-theme="dark"] .erp-topbar h1,
[data-bs-theme="dark"] .erp-topbar h2,
[data-bs-theme="dark"] .erp-topbar h3,
[data-bs-theme="dark"] .erp-topbar .h1,
[data-bs-theme="dark"] .erp-topbar .h2,
[data-bs-theme="dark"] .erp-topbar .h3 {
    color: var(--erp-text) !important;
}

[data-bs-theme="dark"] .erp-topbar-subtitle,
[data-bs-theme="dark"] .erp-topbar small,
[data-bs-theme="dark"] .erp-topbar .text-muted {
    color: var(--erp-table-header-text) !important;
}

[data-bs-theme="dark"] .erp-topbar-search-group .input-group-text,
[data-bs-theme="dark"] .erp-topbar-search-group .form-control {
    background: var(--erp-search-bg) !important;
    border-color: var(--erp-input-border) !important;
    color: var(--erp-text);
}

[data-bs-theme="dark"] .erp-topbar-search-group .input-group-text {
    color: var(--erp-table-header-text);
}

[data-bs-theme="dark"] .erp-topbar-search-group .form-control::placeholder {
    color: var(--erp-muted);
    opacity: .78;
}

[data-bs-theme="dark"] .erp-topbar-search-group:focus-within {
    box-shadow: 0 0 0 .2rem rgba(var(--erp-focus-rgb), .24);
}

[data-bs-theme="dark"] .erp-topbar-search-group:focus-within .input-group-text,
[data-bs-theme="dark"] .erp-topbar-search-group:focus-within .form-control {
    border-color: var(--erp-primary) !important;
}

[data-bs-theme="dark"] .erp-main,
[data-bs-theme="dark"] .erp-main-content,
[data-bs-theme="dark"] .erp-tab-strip,
[data-bs-theme="dark"] .erp-tab-frame {
    background: var(--erp-bg-main);
}

[data-bs-theme="dark"] .erp-tab {
    background: var(--erp-tab-bg);
    border-color: var(--erp-tabs-border);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .erp-tab.active {
    background: var(--erp-tab-active-bg);
    border-color: var(--erp-primary);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .erp-pagination-bar,
[data-bs-theme="dark"] .erp-record-status,
[data-bs-theme="dark"] .erp-audit-panel,
[data-bs-theme="dark"] .erp-soft-panel {
    background: var(--erp-pagination-bg);
    border-color: var(--erp-border);
}

[data-bs-theme="dark"] .erp-field-panel {
    background: var(--erp-card-bg);
    border-color: var(--erp-border);
}

[data-bs-theme="dark"] .erp-pagination-label {
    color: var(--erp-table-header-text);
}

[data-bs-theme="dark"] .erp-pagination-control,
[data-bs-theme="dark"] .erp-pagination-bar .form-select,
[data-bs-theme="dark"] .erp-pagination-bar .form-control {
    background-color: var(--erp-input-bg);
    border-color: var(--erp-input-border);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .erp-pagination-control:hover,
[data-bs-theme="dark"] .erp-pagination-bar .form-select:hover,
[data-bs-theme="dark"] .erp-pagination-bar .form-control:hover {
    background-color: var(--erp-control-hover);
    border-color: var(--erp-primary);
}

[data-bs-theme="dark"] .erp-pagination-control:focus,
[data-bs-theme="dark"] .erp-pagination-bar .form-select:focus,
[data-bs-theme="dark"] .erp-pagination-bar .form-control:focus {
    background-color: var(--erp-input-bg);
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 .18rem rgba(var(--erp-focus-rgb), .26);
}

[data-bs-theme="dark"] .erp-data-table {
    --bs-table-bg: var(--erp-table-bg);
    --bs-table-striped-bg: var(--erp-row-striped);
    --bs-table-hover-bg: var(--erp-row-hover);
}

[data-bs-theme="dark"] .erp-data-table thead th,
[data-bs-theme="dark"] .erp-section-row td {
    background: var(--erp-table-header-bg);
    color: var(--erp-table-header-text);
}

[data-bs-theme="dark"] .erp-data-table tbody td {
    --bs-table-bg-state: transparent;
    background-color: var(--erp-table-bg);
    box-shadow: none;
}

[data-bs-theme="dark"] .erp-data-table tbody tr:nth-child(even) td {
    --bs-table-bg-state: transparent;
    background-color: var(--erp-row-striped);
    box-shadow: none;
    color: var(--erp-text);
}

[data-bs-theme="dark"] .erp-data-table tbody tr:hover td {
    --bs-table-bg-state: transparent;
    background-color: var(--erp-row-hover);
    box-shadow: none;
    color: var(--erp-text);
}

[data-bs-theme="dark"] .erp-tab .erp-tab-label {
    color: inherit;
}

[data-bs-theme="dark"] .erp-search {
    background: var(--erp-search-bg);
    border-color: var(--erp-input-border);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .erp-icon-btn {
    color: var(--erp-table-header-text);
    background: linear-gradient(180deg, var(--erp-surface-soft) 0%, var(--erp-surface) 100%);
    border-color: var(--erp-border-strong) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
}

[data-bs-theme="dark"] .erp-icon-btn:hover,
[data-bs-theme="dark"] .erp-icon-btn:focus,
[data-bs-theme="dark"] .erp-icon-btn:active {
    color: var(--erp-text);
    background: var(--erp-control-hover);
    border-color: var(--erp-primary) !important;
    box-shadow: 0 10px 22px rgba(var(--erp-primary-rgb), 0.18);
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: var(--erp-text);
    border-color: var(--erp-border-strong);
    background: var(--erp-surface-soft);
}

[data-bs-theme="dark"] .erp-internal-page .erp-toolbar-card .input-group-text,
[data-bs-theme="dark"] .erp-internal-page .erp-toolbar-card .form-control,
[data-bs-theme="dark"] .erp-internal-page .erp-toolbar-card .form-select,
[data-bs-theme="dark"] .erp-internal-page .btn-outline-secondary {
    background-color: var(--erp-input-bg);
    border-color: var(--erp-input-border);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .erp-internal-page .erp-toolbar-card .input-group-text {
    background-color: var(--erp-surface-soft);
    color: var(--erp-table-header-text);
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus,
[data-bs-theme="dark"] .btn-outline-secondary:active {
    color: var(--erp-text);
    background: var(--erp-control-hover);
    background-color: var(--erp-control-hover);
    border-color: var(--erp-primary);
}

[data-bs-theme="dark"] .erp-internal-page .btn-primary,
[data-bs-theme="dark"] .erp-internal-page .btn-primary:hover,
[data-bs-theme="dark"] .erp-internal-page .btn-primary:focus {
    background: var(--erp-primary);
    background-color: var(--erp-primary);
    border-color: var(--erp-primary);
    color: var(--erp-primary-contrast);
}

[data-bs-theme="dark"] .erp-internal-page .btn-primary:hover,
[data-bs-theme="dark"] .erp-internal-page .btn-primary:focus {
    background: var(--erp-primary-600);
    background-color: var(--erp-primary-600);
    border-color: var(--erp-primary-600);
    color: var(--erp-primary-600-contrast);
}

[data-bs-theme="dark"] .erp-internal-page .btn-outline-primary {
    color: var(--erp-table-header-text);
    border-color: var(--erp-primary);
    background: transparent;
    background-color: transparent;
}

[data-bs-theme="dark"] .erp-internal-page .btn-outline-primary:hover,
[data-bs-theme="dark"] .erp-internal-page .btn-outline-primary:focus,
[data-bs-theme="dark"] .erp-internal-page .btn-outline-primary:active {
    color: var(--erp-text);
    background: var(--erp-control-hover);
    background-color: var(--erp-control-hover);
    border-color: var(--erp-primary);
}

[data-bs-theme="dark"] .erp-dot {
    border-color: var(--erp-surface);
}

[data-bs-theme="dark"] .erp-avatar {
    border-color: var(--erp-border-strong);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.26);
}

[data-bs-theme="dark"] .auth-form-pane {
    background:
        radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--erp-primary) 24%, transparent) 0%, transparent 30%),
        linear-gradient(160deg, var(--erp-bg-main) 0%, var(--erp-bg-soft) 100%);
}

[data-bs-theme="dark"] .auth-form-card,
[data-bs-theme="dark"] .auth-card-top {
    background: var(--erp-card-bg);
    border-color: var(--erp-border);
}

[data-bs-theme="dark"] .auth-card-top {
    background: linear-gradient(135deg, var(--erp-bg-soft) 0%, var(--erp-surface-muted) 100%);
}

[data-bs-theme="dark"] .auth-card-top .fw-semibold,
[data-bs-theme="dark"] .auth-form-title {
    color: var(--erp-text);
}

[data-bs-theme="dark"] .auth-meta,
[data-bs-theme="dark"] .auth-form-card p {
    color: var(--erp-muted);
}

[data-bs-theme="dark"] .auth-form-card a {
    color: var(--erp-primary);
}

[data-bs-theme="dark"] .auth-form-card a:hover,
[data-bs-theme="dark"] .auth-form-card a:focus {
    color: var(--erp-table-header-text);
}

[data-bs-theme="dark"] .auth-security-note {
    background: var(--erp-surface-soft);
    color: var(--erp-text);
    border-color: var(--erp-border-strong);
}

[data-bs-theme="dark"] .auth-form-card .input-group-text {
    background: var(--erp-surface-soft);
    border-color: var(--erp-input-border);
    color: var(--erp-table-header-text);
}

[data-bs-theme="dark"] .auth-form-card .form-control {
    background: var(--erp-input-bg);
    border-color: var(--erp-input-border);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .auth-form-card .form-control::placeholder {
    color: var(--erp-muted);
    opacity: .72;
}

[data-bs-theme="dark"] .auth-form-card .input-group:focus-within .input-group-text {
    background: var(--erp-control-hover);
    border-color: var(--erp-primary);
}

[data-bs-theme="dark"] .auth-form-card .form-control:focus {
    border-color: var(--erp-primary);
    box-shadow: var(--erp-focus-shadow);
}

[data-bs-theme="dark"] .auth-form-card .invalid-feedback {
    color: var(--erp-danger);
}

[data-bs-theme="dark"] .erp-dashboard-style,
[data-bs-theme="dark"] .erp-configuracion-style {
    background: var(--erp-bg-main);
    color: var(--erp-text);
}

[data-bs-theme="dark"] .erp-dashboard-style .surface-card,
[data-bs-theme="dark"] .erp-configuracion-style .surface-card {
    background: var(--erp-card-bg);
    border-color: var(--erp-border);
}

[data-bs-theme="dark"] .erp-audit-table tbody tr:hover,
[data-bs-theme="dark"] .erp-dashboard-style .erp-audit-table tbody tr:hover {
    background-color: var(--erp-row-hover);
}

[data-bs-theme="dark"] .bg-light-subtle {
    background-color: var(--erp-surface-soft) !important;
    color: var(--erp-text) !important;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .surface-card .border {
    border-color: var(--erp-border) !important;
}
