@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

.theme-next, body[data-theme-system="next"], body:not(#layoutBody)[data-sa-theme="1"] {
    --brand-orange: #fc4c24;
    --brand-orange-soft: #ff7a59;
    --brand-fuchsia: #f5209f;
    --brand-fuchsia-soft: #f58ad2;
    --brand-charcoal: #2d2d2d;
    --brand-charcoal-soft: #454545;
    --brand-white: #fcfbf9;
    --theme-font-display: "Montserrat", sans-serif;
    --theme-font-body: "Montserrat", sans-serif;
    --theme-surface: rgba(45, 45, 45, 0.86);
    --theme-surface-strong: rgba(32, 32, 32, 0.94);
    --theme-surface-soft: rgba(74, 74, 74, 0.68);
    --theme-surface-field: #353535;
    --theme-surface-field-strong: #242424;
    --theme-border: rgba(255, 255, 255, 0.12);
    --theme-border-strong: rgba(255, 255, 255, 0.2);
    --theme-text: #fcfbf9;
    --theme-text-muted: #d9d5d1;
    --theme-accent: var(--brand-orange);
    --theme-accent-hover: var(--brand-orange-soft);
    --theme-accent-secondary: var(--brand-fuchsia);
    --theme-accent-contrast: #ffffff;
    --theme-button-neutral: rgba(255, 255, 255, 0.08);
    --theme-button-neutral-text: #fcfbf9;
    --theme-hover: rgba(255, 255, 255, 0.07);
    --theme-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    --theme-radius-sm: 6px;
    --theme-radius-md: 12px;
    --theme-radius-lg: 18px;
    --theme-app-bg-color: #2d2d2d;
    --theme-app-bg-image: radial-gradient(circle at top left, rgba(252, 76, 36, 0.24), transparent 22%), radial-gradient(circle at top center, rgba(245, 32, 159, 0.18), transparent 18%), linear-gradient(180deg, #202020 0%, #2d2d2d 48%, #232323 100%);
    --theme-panel-bg: var(--theme-surface);
    --theme-header-bg: var(--theme-surface);
    --theme-sidebar-bg: linear-gradient(180deg, rgba(45, 45, 45, 0.88), rgba(35, 35, 35, 0.86));
    --theme-card-bg: linear-gradient(180deg, rgba(61, 61, 61, 0.72), rgba(38, 38, 38, 0.9));
    --theme-grid-bg: rgba(18, 18, 18, 0.24);
    --theme-grid-cell-bg: rgba(45, 45, 45, 0.2);
    --theme-grid-header-bg: rgba(45, 45, 45, 0.5);
    --theme-grid-row-bg: rgba(45, 45, 45, 0.18);
    --theme-grid-toolbar-bg: rgba(45, 45, 45, 0.6);
    --theme-grid-toolbar-hover-bg: rgba(249, 115, 22, 0.16);
    --theme-grid-toolbar-hover-border: rgba(249, 115, 22, 0.45);
    --theme-grid-search-bg: #2f2f2f;
    --theme-grid-filter-button-bg: var(--theme-surface-field-strong);
    --theme-switch-bg: rgba(255, 255, 255, 0.08);
    --theme-switch-border: rgba(255, 255, 255, 0.12);
    --theme-switch-active-bg: linear-gradient(135deg, rgba(252, 76, 36, 0.95), rgba(245, 32, 159, 0.95));
    --theme-switch-active-text: #ffffff;
}


    body[data-theme-system="next"], body[data-theme-system="next"] *:not(.zmdi):not([class^="zmdi-"]):not([class*=" zmdi-"]):not(.dx-icon):not(.dx-header-filter):not(.dx-dropdowneditor-icon), body:not(#layoutBody)[data-sa-theme="1"], body:not(#layoutBody)[data-sa-theme="1"] *:not(.zmdi):not([class^="zmdi-"]):not([class*=" zmdi-"]):not(.dx-icon):not(.dx-header-filter):not(.dx-dropdowneditor-icon) {
        font-family: "Montserrat", sans-serif !important;
    }

        body[data-theme-system="next"] input, body[data-theme-system="next"] button, body[data-theme-system="next"] textarea, body[data-theme-system="next"] select, body:not(#layoutBody)[data-sa-theme="1"] input, body:not(#layoutBody)[data-sa-theme="1"] button, body:not(#layoutBody)[data-sa-theme="1"] textarea, body:not(#layoutBody)[data-sa-theme="1"] select, body[data-theme-system="next"] ::placeholder, body:not(#layoutBody)[data-sa-theme="1"] ::placeholder {
            font-family: "Montserrat", sans-serif !important;
        }

        body[data-theme-system="next"][data-theme-variant="light"]#layoutBody, body[data-theme-system="next"][data-theme-variant="light"]#layoutBody .main, body[data-theme-system="next"][data-theme-variant="light"]#layoutBody .content, body[data-theme-system="next"][data-theme-variant="light"]#layoutBody section.content {
            --theme-surface: rgba(255, 255, 255, 0.84);
            --theme-surface-strong: rgba(245, 246, 249, 0.96);
            --theme-surface-soft: rgba(255, 255, 255, 0.72);
            --theme-surface-field: #edf2fb;
            --theme-surface-field-strong: #e0e8f7;
            --theme-border: rgba(45, 45, 45, 0.12);
            --theme-border-strong: rgba(45, 45, 45, 0.18);
            --theme-text: #333333;
            --theme-text-muted: #626b7b;
            --theme-button-neutral: rgba(31, 36, 48, 0.08);
            --theme-button-neutral-text: #333333;
            --theme-hover: rgba(252, 76, 36, 0.08);
            --theme-shadow: 0 18px 34px rgba(24, 32, 48, 0.12);
            --theme-app-bg-color: #f3f0ef;
            --theme-app-bg-image: radial-gradient(circle at top left, rgba(252, 76, 36, 0.18), transparent 20%), radial-gradient(circle at top right, rgba(245, 32, 159, 0.14), transparent 22%), linear-gradient(180deg, #faf8f7 0%, #f1efef 45%, #ece8e8 100%);
            --theme-panel-bg: rgba(255, 255, 255, 0.82);
            --theme-header-bg: rgba(255, 255, 255, 0.8);
            --theme-sidebar-bg: linear-gradient(180deg, rgba(251, 251, 252, 0.95), rgba(239, 241, 245, 0.98));
            --theme-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 246, 250, 0.98));
            --theme-grid-bg: rgba(255, 255, 255, 0.48);
            --theme-grid-cell-bg: rgba(255, 255, 255, 0.68);
            --theme-grid-header-bg: rgba(167, 174, 184, 0.86);
            --theme-grid-row-bg: rgba(255, 255, 255, 0.82);
            --theme-grid-toolbar-bg: rgba(231, 236, 245, 0.96);
            --theme-grid-toolbar-hover-bg: rgba(252, 76, 36, 0.12);
            --theme-grid-toolbar-hover-border: rgba(252, 76, 36, 0.3);
            --theme-grid-toolbar-hover-text: #fc4c24;
            --theme-grid-search-bg: rgba(244, 247, 252, 0.98);
            --theme-grid-filter-button-bg: rgba(224, 232, 247, 0.98);
            --theme-switch-bg: rgba(31, 36, 48, 0.06);
            --theme-switch-border: rgba(31, 36, 48, 0.12);
            --theme-switch-active-bg: linear-gradient(135deg, rgba(252, 76, 36, 0.95), rgba(245, 32, 159, 0.92));
            --theme-switch-active-text: #ffffff;
        }

        body[data-theme-system="next"][data-theme-variant="light"] {
            --theme-modal-bg: linear-gradient(180deg, rgba(250, 251, 253, 0.98), rgba(240, 244, 250, 0.98));
            --theme-modal-header-bg: rgba(245, 247, 251, 0.92);
            --theme-modal-button-bg: rgba(227, 233, 243, 0.98);
            --theme-modal-button-hover-bg: rgba(252, 76, 36, 0.12);
            --theme-overlay-bg: rgba(243, 246, 251, 0.98);
            --theme-list-hover-bg: rgba(252, 76, 36, 0.1);
            --theme-tab-text: #6b7280;
            --theme-tab-active-text: #333333;
            --theme-tab-active-border: rgba(252, 76, 36, 0.55);
            --theme-footer-text: #6a7383;
            --theme-footer-link: var(--brand-orange);
            --dashboard-title: #2d2d2d;
            --dashboard-subtitle: rgba(45, 45, 45, 0.7);
            --dashboard-input-bg: #ffffff;
            --dashboard-input-border: rgba(45, 45, 45, 0.2);
            --dashboard-input-text: #2d2d2d;
            --dashboard-input-placeholder: rgba(45, 45, 45, 0.55);
            --dashboard-input-focus: rgba(45, 45, 45, 0.35);
            --dashboard-input-focus-shadow: 0 0 0 3px rgba(45, 45, 45, 0.08);
            --dashboard-select-option-bg: #ffffff;
            --dashboard-select-option-text: #2d2d2d;
            --chart-line-primary: #2d2d2d;
            --chart-line-secondary: rgba(45, 45, 45, 0.65);
            --chart-bar-primary: #2d2d2d;
            --chart-grid: rgba(45, 45, 45, 0.15);
            --chart-text: #2d2d2d;
            --chart-tooltip-bg: rgba(255, 255, 255, 0.95);
            --chart-donut-1: #2d2d2d;
            --chart-donut-2: #808080;
            --chart-donut-3: #f97316;
            --chart-donut-4: #94a3b8;
            --chart-donut-5: #94a3b8;
        }

        body[data-theme-system="next"][data-theme-variant="dark"] {
            --theme-sidebar-bg: #242424;
            --theme-grid-cell-bg: #242424;
            --theme-grid-header-bg: #242424;
            --theme-grid-toolbar-bg: #242424;
            --chart-line-primary: #ffffff;
            --chart-line-secondary: rgba(255, 255, 255, 0.75);
            --chart-bar-primary: #ffffff;
            --chart-grid: rgba(255, 255, 255, 0.12);
            --chart-text: #ffffff;
            --chart-tooltip-bg: rgba(0, 0, 0, 0.85);
            --chart-donut-1: #ffffff;
            --chart-donut-2: rgba(255, 255, 255, 0.78);
            --chart-donut-3: rgba(255, 255, 255, 0.58);
            --chart-donut-4: rgba(255, 255, 255, 0.38);
            --chart-donut-5: rgba(255, 255, 255, 0.22);
        }

body:not(#layoutBody)[data-sa-theme="1"] {
    --theme-surface: rgba(42, 42, 42, 0.92);
    --theme-surface-strong: rgba(31, 31, 31, 0.98);
    --theme-surface-soft: rgba(252, 76, 36, 0.08);
    --theme-surface-field: #d9e3f4;
    --theme-surface-field-strong: #cfd9ec;
    --theme-border: rgba(255, 255, 255, 0.08);
    --theme-border-strong: rgba(255, 255, 255, 0.14);
    --theme-text: #f7f4f1;
    --theme-text-muted: #c3beb9;
    --theme-button-neutral: rgba(255, 255, 255, 0.08);
    --theme-button-neutral-text: #fcfbf9;
    --theme-hover: rgba(252, 76, 36, 0.09);
    --theme-shadow: 0 26px 54px rgba(0, 0, 0, 0.3);
}

body[data-theme-system="next"]#layoutBody,
body[data-theme-system="next"]#layoutBody .main,
body[data-theme-system="next"]#layoutBody section.content,
body[data-theme-system="next"]#layoutBody .content {
    background: transparent !important;
}

body:not(#layoutBody)[data-sa-theme="1"] {
    color: var(--theme-text) !important;
    background-color: #252525 !important;
    background-image:
        radial-gradient(circle at top left, rgba(252, 76, 36, 0.06), transparent 24%),
        radial-gradient(circle at top right, rgba(245, 32, 159, 0.05), transparent 22%),
        linear-gradient(180deg, #252525 0%, #2b2b2b 55%, #252525 100%) !important;
    background-size: auto !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(16px, 3vh, 24px) 24px !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block {
    width: min(380px, calc(100vw - 48px)) !important;
    margin: 0 auto !important;
    background:
        linear-gradient(180deg, rgba(58, 58, 58, 0.98), rgba(31, 31, 31, 0.99)) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24) !important;
    overflow: hidden !important;
    min-height: auto !important;
}

body#loginBody[data-sa-theme="1"] .login__block {
    background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block.active {
    display: block !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block > img {
    display: block !important;
    margin: 22px auto 12px auto !important;
    max-width: 156px !important;
    height: auto !important;
    opacity: 0.18 !important;
    filter: grayscale(1) brightness(1.2) contrast(0.9) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__header {
    background: transparent !important;
    border-top: 0 !important;
    border-image: none !important;
    color: var(--brand-white) !important;
    padding: 18px 22px 16px !important;
    text-align: center !important;
    gap: 6px !important;
}

body#loginBody[data-sa-theme="1"] .login__block__header {
    background: transparent !important;
    border-top: 0 !important;
    border-image: none !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__header > i,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__header > img {
    margin-bottom: 10px !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__header h3,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__header h4,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__header h5,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__header h6 {
    color: inherit !important;
    margin-bottom: 0.2rem !important;
    letter-spacing: 0.04em !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__header .text-orange,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__header .text-purple {
    color: var(--brand-orange) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body {
    padding: 20px 22px 22px !important;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.98), rgba(31, 31, 31, 0.99)) !important;
    border: 0 !important;
    box-shadow: none !important;
}

body#loginBody[data-sa-theme="1"] .login__block__body {
    background: linear-gradient(180deg, #323232 0%, #262626 100%) !important;
}

body#loginBody[data-sa-theme="1"] .login__block > img {
    opacity: 0.16 !important;
    filter: grayscale(1) brightness(1.05) contrast(0.88) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .form-group {
    margin-bottom: 14px !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .form-control,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__body select.form-control {
    min-height: 44px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #dbe4f4 0%, #d4def0 100%) !important;
    color: #232323 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .form-control:focus {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 0.18rem rgba(252, 76, 36, 0.16) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .form-control::placeholder {
    color: rgba(35, 35, 35, 0.72) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .btn,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__btn {
    border-radius: 12px !important;
    min-height: 44px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .btn > div,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__btn > div {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    text-align: center !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .btn i,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__btn i {
    line-height: 1 !important;
    margin: 0 !important;
}

body#loginBody[data-sa-theme="1"] button[type="submit"].btn > div {
    padding-right: 16px !important;
}

body#loginBody[data-sa-theme="1"] button[type="submit"].btn > div > i {
    width: 16px !important;
    display: inline-flex !important;
    justify-content: center !important;
    flex: 0 0 16px !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .btn-dark,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__btn {
    background: linear-gradient(90deg, #ff4a31 0%, #ef2394 100%) !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(255, 74, 49, 0.14) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .btn-dark:hover,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__btn:hover {
    background: linear-gradient(90deg, #ff5638 0%, #f12b98 100%) !important;
    box-shadow: 0 16px 30px rgba(241, 43, 152, 0.16) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .custom-control {
    padding-left: 1.6rem !important;
    margin-top: 6px !important;
    margin-bottom: 2px !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .custom-control-indicator {
    border-radius: 4px !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .custom-control-input:checked ~ .custom-control-indicator {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body p,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__body span,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__body label {
    color: var(--theme-text) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .custom-control-description {
    color: rgba(248, 245, 242, 0.88) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__body .btn + .btn {
    margin-left: 0 !important;
    margin-top: 10px !important;
}

body:not(#layoutBody)[data-sa-theme="1"],
html:has(body:not(#layoutBody)[data-sa-theme="1"]) {
    min-height: 100dvh !important;
    height: 100dvh !important;
    overflow: hidden !important;
}

body#loginBody[data-sa-theme="1"] {
    background-color: #2D2D2D !important;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.34)),
        radial-gradient(circle at 18% 18%, rgba(252, 76, 36, 0.54) 0, rgba(252, 76, 36, 0.16) 30%, transparent 58%),
        radial-gradient(circle at 82% 18%, rgba(242, 80, 159, 0.5) 0, rgba(242, 80, 159, 0.16) 32%, transparent 62%),
        radial-gradient(circle at 18% 86%, rgba(242, 80, 159, 0.34) 0, rgba(252, 76, 36, 0.16) 34%, transparent 64%),
        radial-gradient(circle at 82% 78%, rgba(45, 45, 45, 0.48) 0, rgba(45, 45, 45, 0.16) 36%, transparent 68%),
        linear-gradient(135deg, #FC4C24 0%, #F2509F 52%, #2D2D2D 100%) !important;
    background-size: 100% 100%, 118% 118%, 120% 120%, 126% 126%, 118% 118%, 100% 100% !important;
    background-position: center center !important;
    position: relative !important;
    isolation: isolate !important;
}

body#loginBody[data-sa-theme="1"]::before,
body#loginBody[data-sa-theme="1"]::after {
    content: "" !important;
    position: fixed !important;
    inset: -18% !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

body#loginBody[data-sa-theme="1"]::before {
    background:
        linear-gradient(116deg, transparent 0 22%, rgba(255, 255, 255, 0.18) 22% 28%, transparent 28% 50%, rgba(255, 255, 255, 0.12) 50% 57%, transparent 57%),
        conic-gradient(from 138deg at 28% 36%, rgba(255, 255, 255, 0.13), transparent 22%, rgba(252, 76, 36, 0.12), transparent 54%, rgba(242, 80, 159, 0.12), transparent 78%);
    border: 0 !important;
    clip-path: polygon(0 8%, 84% 0, 100% 86%, 18% 100%) !important;
    opacity: 0.46 !important;
    transform: rotate(-7deg) skewX(-8deg) !important;
    box-shadow: none !important;
    filter: blur(48px) brightness(85%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mix-blend-mode: screen !important;
}

body#loginBody[data-sa-theme="1"]::after {
    background:
        linear-gradient(64deg, transparent 0 30%, rgba(255, 255, 255, 0.16) 30% 38%, transparent 38% 64%, rgba(45, 45, 45, 0.16) 64% 70%, transparent 70%),
        conic-gradient(from 26deg at 70% 66%, rgba(255, 255, 255, 0.1), transparent 20%, rgba(242, 80, 159, 0.12), transparent 52%, rgba(252, 76, 36, 0.1), transparent 82%);
    border: 0 !important;
    clip-path: polygon(12% 0, 100% 15%, 88% 100%, 0 78%) !important;
    opacity: 0.38 !important;
    transform: rotate(9deg) skewY(5deg) !important;
    box-shadow: none !important;
    filter: blur(56px) brightness(85%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mix-blend-mode: soft-light !important;
}

body#loginBody[data-sa-theme="1"] .login {
    position: relative !important;
    z-index: 1 !important;
}

body#loginBody[data-sa-theme="1"] .login__block,
body#loginBody[data-sa-theme="1"] .login__block__body {
    background: #2D2D2D !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 26px 58px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body#loginBody[data-sa-theme="1"] .login__block {
    background: #2D2D2D !important;
}

body#loginBody[data-sa-theme="1"] .login__block__body {
    background: #2D2D2D !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

body#loginBody[data-sa-theme="1"] .login__block > img {
    display: block !important;
    width: min(176px, 62%) !important;
    max-width: 176px !important;
    height: auto !important;
    margin: 24px auto 10px auto !important;
    opacity: 1 !important;
    filter: drop-shadow(0 10px 18px rgba(45, 45, 45, 0.18)) !important;
}

body#loginBody[data-sa-theme="1"] .login__block__header {
    color: rgba(255, 255, 255, 0.96) !important;
    text-shadow: 0 1px 12px rgba(45, 45, 45, 0.28) !important;
}

body#loginBody[data-sa-theme="1"] .login__block__header > i {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    text-shadow: 0 8px 20px rgba(45, 45, 45, 0.22) !important;
}

body#loginBody[data-sa-theme="1"] .login__block__body p,
body#loginBody[data-sa-theme="1"] .login__block__body span,
body#loginBody[data-sa-theme="1"] .login__block__body label,
body#loginBody[data-sa-theme="1"] .login__block__body .custom-control-description {
    color: rgba(255, 255, 255, 0.94) !important;
}

body#loginBody[data-sa-theme="1"] .login__block__body .form-control,
body#loginBody[data-sa-theme="1"] .login__block__body select.form-control {
    background: rgba(255, 255, 255, 0.72) !important;
    color: #2D2D2D !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 12px 28px rgba(45, 45, 45, 0.1) !important;
}

body#loginBody[data-sa-theme="1"] .login__block__body .form-control:focus {
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 0 0.18rem rgba(255, 255, 255, 0.18),
        0 14px 30px rgba(45, 45, 45, 0.12) !important;
}

body#loginBody[data-sa-theme="1"] .login__block__body .form-control::placeholder {
    color: rgba(45, 45, 45, 0.72) !important;
}

body#loginBody[data-sa-theme="1"] .custom-control-indicator {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 16px rgba(45, 45, 45, 0.12) !important;
}

body#loginBody[data-sa-theme="1"] .custom-control-input:checked ~ .custom-control-indicator {
    background-color: #FC4C24 !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
}

body#loginBody[data-sa-theme="1"] .login__block__body .btn-dark,
body#loginBody[data-sa-theme="1"] .login__block__btn {
    background: linear-gradient(90deg, #FC4C24 0%, #F2509F 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
    box-shadow:
        0 14px 28px rgba(45, 45, 45, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    text-shadow: 0 1px 10px rgba(45, 45, 45, 0.18) !important;
}

body#loginBody[data-sa-theme="1"] .login__block__body .btn-dark:hover,
body#loginBody[data-sa-theme="1"] .login__block__btn:hover {
    background: linear-gradient(90deg, #ff5a35 0%, #f660aa 100%) !important;
    box-shadow:
        0 18px 34px rgba(45, 45, 45, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

body[data-theme-system="next"]#layoutBody {
    color: var(--theme-text) !important;
    background-color: var(--theme-app-bg-color) !important;
    background-image: var(--theme-app-bg-image) !important;
    background-size: auto !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

body[data-theme-system="next"],
body[data-theme-system="next"] .main,
body[data-theme-system="next"] .content,
body:not(#layoutBody)[data-sa-theme="1"] .login,
body:not(#layoutBody)[data-sa-theme="1"] .login__block {
    color: var(--theme-text) !important;
    font-family: var(--theme-font-body) !important;
    min-height: 100vh !important;
}

/* Compactar el espacio entre el header superior y el contenido principal */
@media (min-width: 1200px) {
    body[data-theme-system="next"] .content:not(.content--boxed):not(.content--full) {
        padding-top: 66px !important;
    }
}

@media (min-width: 576px) and (max-width: 1199px) {
    body[data-theme-system="next"] .content:not(.content--boxed):not(.content--full) {
        padding-top: 68px !important;
    }
}

@media (max-width: 767px) {
    body[data-theme-system="next"] .content:not(.content--boxed):not(.content--full) {
        padding-top: 66px !important;
    }
}

body[data-theme-system="next"] .content > .card-title {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

body[data-theme-system="next"] .header,
body[data-theme-system="next"] .sidebar,
body[data-theme-system="next"] .card,
body[data-theme-system="next"] #footer {
    background: var(--theme-panel-bg) !important;
    border: 1px solid var(--theme-border) !important;
    box-shadow: var(--theme-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__body {
    background: linear-gradient(180deg, rgba(58, 58, 58, 0.98), rgba(31, 31, 31, 0.99)) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block {
    border-radius: 24px !important;
    overflow: hidden !important;
    min-height: auto !important;
}

body#loginBody[data-sa-theme="1"] .login__block,
body#loginBody[data-sa-theme="1"] .login__block__body {
    background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%) !important;
}

body#loginBody[data-sa-theme="1"] .login__block__body {
    background: linear-gradient(180deg, #323232 0%, #262626 100%) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__header,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__body {
    min-height: auto !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .login__block__header,
body:not(#layoutBody)[data-sa-theme="1"] .login__block__body,
body:not(#layoutBody)[data-sa-theme="1"] .custom-control-description,
body:not(#layoutBody)[data-sa-theme="1"] .zmdi,
body:not(#layoutBody)[data-sa-theme="1"] p,
body:not(#layoutBody)[data-sa-theme="1"] h1,
body:not(#layoutBody)[data-sa-theme="1"] h2,
body:not(#layoutBody)[data-sa-theme="1"] h3,
body:not(#layoutBody)[data-sa-theme="1"] h4,
body:not(#layoutBody)[data-sa-theme="1"] h5,
body:not(#layoutBody)[data-sa-theme="1"] label,
body:not(#layoutBody)[data-sa-theme="1"] span,
body:not(#layoutBody)[data-sa-theme="1"] a {
    color: var(--theme-text) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .form-control,
body:not(#layoutBody)[data-sa-theme="1"] input,
body:not(#layoutBody)[data-sa-theme="1"] textarea,
body:not(#layoutBody)[data-sa-theme="1"] select {
    background: var(--theme-surface-strong) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .form-control::placeholder,
body:not(#layoutBody)[data-sa-theme="1"] input::placeholder,
body:not(#layoutBody)[data-sa-theme="1"] textarea::placeholder {
    color: var(--theme-text-muted) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .btn,
body:not(#layoutBody)[data-sa-theme="1"] button,
body:not(#layoutBody)[data-sa-theme="1"] input[type="submit"] {
    border-radius: var(--theme-radius-sm) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .btn-primary,
body:not(#layoutBody)[data-sa-theme="1"] .btn-success,
body:not(#layoutBody)[data-sa-theme="1"] button[type="submit"],
body:not(#layoutBody)[data-sa-theme="1"] input[type="submit"] {
    background: var(--theme-button-neutral) !important;
    border-color: var(--theme-button-neutral) !important;
    color: var(--theme-button-neutral-text) !important;
}

body:not(#layoutBody)[data-sa-theme="1"] .btn-primary:hover,
body:not(#layoutBody)[data-sa-theme="1"] .btn-success:hover,
body:not(#layoutBody)[data-sa-theme="1"] button[type="submit"]:hover,
body:not(#layoutBody)[data-sa-theme="1"] input[type="submit"]:hover {
    background: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-accent-contrast) !important;
}

body[data-theme-system="next"] .header {
    background: var(--theme-header-bg) !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    position: relative !important;
}

body[data-theme-system="next"] .theme-variant-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 50%;
    right: 88px;
    transform: translateY(-50%);
    margin: 0;
    padding: 4px;
    border-radius: 999px;
    background: var(--theme-switch-bg);
    border: 1px solid var(--theme-switch-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme-system="next"] .theme-variant-switch__button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--theme-text-muted);
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--theme-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body[data-theme-system="next"] .theme-variant-switch__button i {
    font-size: 16px;
    line-height: 1;
}

body[data-theme-system="next"] .theme-variant-switch__button:hover {
    color: var(--theme-text);
    background: var(--theme-hover);
}

body[data-theme-system="next"] .theme-variant-switch__button.is-active {
    background: var(--theme-switch-active-bg);
    color: var(--theme-switch-active-text);
    box-shadow: 0 10px 22px rgba(245, 32, 159, 0.18);
}

body[data-theme-system="next"] .theme-variant-switch__button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(252, 76, 36, 0.18);
}

body[data-theme-system="next"] .clock.hidden-md-down {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
}

body[data-theme-system="next"] .sidebar {
    background: var(--theme-sidebar-bg) !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .sidebar,
body[data-theme-system="next"][data-theme-variant="dark"] .sidebar__inner,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-drawer-panel-content {
    background-color: #242424 !important;
    background: #242424 !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .navigation li:not(.navigation__active) a:hover,
body[data-theme-system="next"][data-theme-variant="dark"] .navigation__active > a,
body[data-theme-system="next"][data-theme-variant="dark"] .navigation__sub--active > a {
    background-color: #333333 !important;
    background: #333333 !important;
}

body[data-theme-system="next"] #footer {
    display: none !important;
}

body[data-theme-system="next"] .user__name,
body[data-theme-system="next"] .user__email,
body[data-theme-system="next"] .navigation a,
body[data-theme-system="next"] .navigation i,
body[data-theme-system="next"] .top-nav i,
body[data-theme-system="next"] .navigation-trigger i,
body[data-theme-system="next"] .content__title h1,
body[data-theme-system="next"] .clock,
body[data-theme-system="next"] .clock span {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .content__title h1,
body[data-theme-system="next"] .card-title,
body[data-theme-system="next"] .modal-title,
body:not(#layoutBody)[data-sa-theme="1"] h1,
body:not(#layoutBody)[data-sa-theme="1"] h2,
body:not(#layoutBody)[data-sa-theme="1"] h3 {
    font-family: var(--theme-font-display) !important;
}

body[data-theme-system="next"] .preac-bell-count {
    position: absolute !important;
    top: 7px !important;
    right: 6px !important;
    display: inline-block !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--theme-accent) !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-align: center !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] #alerts-bell,
body[data-theme-system="next"][data-theme-variant="light"] #alerts-bell i {
    color: #2d2d2d !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .top-nav__notify::before,
body[data-theme-system="next"][data-theme-variant="light"] #alerts-bell.top-nav__notify::before {
    background-color: #2d2d2d !important;
    color: #2d2d2d !important;
}

body[data-theme-system="next"] .navigation a:hover,
body[data-theme-system="next"] .navigation__active > a,
body[data-theme-system="next"] .navigation__active > a > i,
body[data-theme-system="next"] .top-nav a:hover i,
body[data-theme-system="next"] .navigation-trigger:hover i {
    color: var(--theme-accent) !important;
}

body[data-theme-system="next"] .navigation li:not(.navigation__active) a:hover {
    background: linear-gradient(90deg, rgba(252, 76, 36, 0.16), rgba(245, 32, 159, 0.14)) !important;
}

body[data-theme-system="next"] .content__title h1,
body[data-theme-system="next"] .card-title {
    letter-spacing: 0.01em;
}

body[data-theme-system="next"][data-theme-variant="light"] .content__title small {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .card-dinamica,
body[data-theme-system="next"] .theme-card {
    background: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: var(--theme-radius-md) !important;
    box-shadow: var(--theme-shadow) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body[data-theme-system="next"] .card-dinamica .card-title,
body[data-theme-system="next"] .card-dinamica label,
body[data-theme-system="next"] .theme-card .card-title,
body[data-theme-system="next"] .theme-card label {
    color: var(--theme-text) !important;
    font-weight: 600;
}

body[data-theme-system="next"] .boton-naranja-dinamico,
body[data-theme-system="next"] .btn-theme-primary {
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-hover)) !important;
    color: var(--theme-accent-contrast) !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(252, 76, 36, 0.24) !important;
}

body[data-theme-system="next"] .boton-margen-grid {
    margin-bottom: 14px !important;
}

body[data-theme-system="next"] .theme-card .card-body > .btn.boton-margen-grid,
body[data-theme-system="next"] .theme-card .card-body > .btn.btn-theme-primary,
body[data-theme-system="next"] .theme-card .card-body > .btn.boton-naranja-dinamico {
    margin-bottom: 18px !important;
}

body[data-theme-system="next"] .theme-card .card-body > .btn.boton-margen-grid ~ :is(.dx-datagrid, .grilla-dinamica, .theme-grid, #grid, [id^="grid"]),
body[data-theme-system="next"] .theme-card .card-body > .btn.btn-theme-primary ~ :is(.dx-datagrid, .grilla-dinamica, .theme-grid, #grid, [id^="grid"]),
body[data-theme-system="next"] .theme-card .card-body > .btn.boton-naranja-dinamico ~ :is(.dx-datagrid, .grilla-dinamica, .theme-grid, #grid, [id^="grid"]) {
    margin-top: 18px !important;
}

body[data-theme-system="next"] .theme-card .card-body > :is(.mb-2, .mb-4) {
    margin-bottom: 18px !important;
}

body[data-theme-system="next"] .theme-card .card-body > :is(.mb-2, .mb-4) + :is(.dx-datagrid, .grilla-dinamica, .theme-grid, #grid, [id^="grid"]) {
    margin-top: 0 !important;
}

body[data-theme-system="next"] .boton-naranja-dinamico:hover,
body[data-theme-system="next"] .btn-theme-primary:hover,
body[data-theme-system="next"] .boton-naranja-dinamico:focus,
body[data-theme-system="next"] .btn-theme-primary:focus {
    background: linear-gradient(135deg, var(--theme-accent-hover), var(--theme-accent-secondary)) !important;
    border-color: transparent !important;
    color: var(--theme-accent-contrast) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 16px 28px rgba(245, 32, 159, 0.24) !important;
    outline: none !important;
}

body[data-theme-system="next"] .boton-naranja-dinamico:active,
body[data-theme-system="next"] .btn-theme-primary:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .btn-link {
    color: var(--theme-text-muted) !important;
}

body[data-theme-system="next"] .btn-link:hover,
body[data-theme-system="next"] .btn-link:focus {
    color: var(--theme-accent) !important;
}

body[data-theme-system="next"] .input-escaneo {
    padding-left: 15px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border-strong) !important;
    border-radius: var(--theme-radius-sm) !important;
    min-height: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
}

body[data-theme-system="next"] .input-escaneo:focus,
body[data-theme-system="next"] .form-control:focus {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(252, 76, 36, 0.16) !important;
    outline: none !important;
}

body[data-theme-system="next"] .form-control,
body[data-theme-system="next"] .dx-texteditor-container,
body[data-theme-system="next"] .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .dx-texteditor-input-container {
    background: var(--theme-surface-field) !important;
    border-color: var(--theme-border-strong) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] :is(.dx-texteditor, .dx-selectbox, .dx-datebox, .dx-numberbox, .dx-textarea, .dx-dropdowneditor) {
    border-radius: var(--theme-radius-sm) !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] :is(.dx-texteditor-container, .dx-dropdowneditor-input-wrapper) {
    border: 1px solid var(--theme-border-strong) !important;
    border-radius: inherit !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] :is(.dx-texteditor-input-container, .dx-dropdowneditor-button, .dx-texteditor-buttons-container) {
    border-radius: inherit !important;
    box-sizing: border-box !important;
}

body[data-theme-system="next"] :is(.dx-dropdowneditor-button, .dx-texteditor-buttons-container) {
    border-left: 1px solid var(--theme-border-strong) !important;
}

body[data-theme-system="next"] .dx-texteditor-input {
    min-height: 42px !important;
}

body[data-theme-system="next"] .dx-texteditor-input,
body[data-theme-system="next"] .form-control,
body[data-theme-system="next"] .dx-placeholder::before,
body[data-theme-system="next"] .dx-texteditor .dx-placeholder {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .dx-field-item-label-text,
body[data-theme-system="next"] .dx-field-item-label-content,
body[data-theme-system="next"] .dx-form .dx-field-item-label,
body[data-theme-system="next"] .dx-layout-manager .dx-field-item-label-text {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .dx-texteditor,
body[data-theme-system="next"] .dx-selectbox,
body[data-theme-system="next"] .dx-datebox,
body[data-theme-system="next"] .dx-numberbox,
body[data-theme-system="next"] .dx-textarea,
body[data-theme-system="next"] .dx-dropdowneditor {
    background: transparent !important;
}

/* Estandarizacion de formularios oscuros a gris #2D2D2D */
body[data-theme-system="next"][data-theme-variant="dark"] .form-control,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-texteditor,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-selectbox,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-datebox,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-numberbox,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-textarea,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-dropdowneditor,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-texteditor-input-container,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-texteditor-input {
    background: #2D2D2D !important;
    background-color: #2D2D2D !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .dx-texteditor .dx-placeholder,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-placeholder::before,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-texteditor-input::placeholder,
body[data-theme-system="next"][data-theme-variant="dark"] .form-control::placeholder {
    color: #d9d9d9 !important;
    opacity: 1 !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .dx-texteditor.dx-state-disabled,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-dropdowneditor.dx-state-disabled,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-state-disabled .dx-texteditor,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-state-disabled .dx-dropdowneditor,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-texteditor.dx-state-disabled .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-dropdowneditor.dx-state-disabled .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-texteditor.dx-state-disabled .dx-texteditor-input {
    background: #202020 !important;
    background-color: #202020 !important;
    border-color: #3a3a3a !important;
    color: #bdbdbd !important;
    opacity: 1 !important;
}

body[data-theme-system="next"] .dx-texteditor.dx-state-focused .dx-texteditor-container,
body[data-theme-system="next"] .dx-selectbox.dx-state-focused .dx-texteditor-container,
body[data-theme-system="next"] .dx-datebox.dx-state-focused .dx-texteditor-container,
body[data-theme-system="next"] .dx-textarea.dx-state-focused .dx-texteditor-container {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.28) !important;
}

body[data-theme-system="next"] .dx-widget,
body[data-theme-system="next"] .dx-datagrid,
body[data-theme-system="next"] .dx-datagrid-container,
body[data-theme-system="next"] .dx-datagrid-content,
body[data-theme-system="next"] .dx-popup-wrapper .dx-overlay-content {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .grilla-dinamica,
body[data-theme-system="next"] .theme-grid,
body[data-theme-system="next"] .grilla-dinamica .dx-widget,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-container,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-content,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-table,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-headers,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-rowsview,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-pager,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-group-panel,
body[data-theme-system="next"] .grilla-dinamica .dx-toolbar,
body[data-theme-system="next"] .grilla-dinamica .dx-toolbar-items-container {
    background: transparent !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid,
body[data-theme-system="next"] .theme-grid .dx-datagrid {
    border: 1px solid var(--theme-border) !important;
    border-radius: var(--theme-radius-md) !important;
    overflow: visible !important;
    background: var(--theme-grid-bg) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-container,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-content,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-headers,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-rowsview {
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) :is(.dx-datagrid-headers, .dx-datagrid-rowsview) .dx-datagrid-table {
    table-layout: fixed !important;
    width: 100% !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-headers .dx-row > td,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-rowsview .dx-row > td,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td {
    border-bottom: 1px solid var(--theme-border) !important;
    border-right: 1px solid var(--theme-border) !important;
    border-left: 0 !important;
    color: var(--theme-text) !important;
    background: var(--theme-grid-cell-bg) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-headers .dx-row > td:last-child,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-rowsview .dx-row > td:last-child,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td:last-child {
    border-right: 0 !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-row.dx-header-row > td {
    background: var(--theme-grid-header-bg) !important;
    font-weight: 600 !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-rowsview .dx-row > td {
    background: var(--theme-grid-row-bg) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) :is(.dx-header-row, .dx-data-row, .dx-filter-row) > .dx-command-select {
    position: sticky !important;
    left: 0 !important;
    min-width: 42px !important;
    width: 42px !important;
    max-width: 42px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    z-index: 4 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-header-row > .dx-command-select,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-filter-row > .dx-command-select {
    background: var(--theme-grid-header-bg) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-data-row > .dx-command-select {
    background: var(--theme-grid-row-bg) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-header-row > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-data-row > td {
    min-width: 0 !important;
    max-width: 240px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-data-row > td:not(.dx-command-edit):not(.dx-command-select):not(.dx-command-expand):not(.dx-master-detail-cell),
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-header-row > td:not(.dx-command-edit):not(.dx-command-select):not(.dx-command-expand) {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-data-row > td:not(.dx-command-edit):not(.dx-command-select):not(.dx-command-expand):not(.dx-master-detail-cell) > .dx-template-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-data-row > td:not(.dx-command-edit):not(.dx-command-select):not(.dx-command-expand):not(.dx-master-detail-cell) > div,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-data-row > td:not(.dx-command-edit):not(.dx-command-select):not(.dx-command-expand):not(.dx-master-detail-cell) > span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-data-row > td :is(.visita-fecha-acciones, .preac-actions, .permissions-grid-action, .usuario-grid-action, .autorizado-grid-action) {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    position: relative !important;
    vertical-align: top !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-headers {
    border-top-left-radius: var(--theme-radius-md) !important;
    border-top-right-radius: var(--theme-radius-md) !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-rowsview {
    border-bottom-left-radius: var(--theme-radius-md) !important;
    border-bottom-right-radius: var(--theme-radius-md) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid),
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-content,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-scrollable-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-scrollable-content {
    width: 100% !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) :is(.dx-datagrid-headers, .dx-datagrid-rowsview) .dx-datagrid-table {
    min-width: 100% !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid {
    border-color: rgba(27, 35, 49, 0.2) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-row > td,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-row > td,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar-items-container {
    border-color: rgba(27, 35, 49, 0.16) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-row.dx-header-row > td {
    box-shadow: inset 0 -1px 0 rgba(27, 35, 49, 0.12) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td {
    box-shadow: inset 0 -1px 0 rgba(27, 35, 49, 0.08) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid .dx-state-hover > td,
body[data-theme-system="next"] .grilla-dinamica .dx-data-row.dx-state-hover > td,
body[data-theme-system="next"] .grilla-dinamica .dx-selection > td {
    background: var(--theme-hover) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-texteditor-container,
body[data-theme-system="next"] .grilla-dinamica .dx-editor-with-menu .dx-menu,
body[data-theme-system="next"] .grilla-dinamica .dx-dropdowneditor-button,
body[data-theme-system="next"] .grilla-dinamica .dx-selectbox,
body[data-theme-system="next"] .grilla-dinamica .dx-dropdowneditor {
    background: var(--theme-surface-field) !important;
    border-color: transparent !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-dropdowneditor {
    border-radius: 0 !important;
    width: 100% !important;
    height: 42px !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    display: block !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-container,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-selectbox .dx-texteditor-container,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-datebox .dx-texteditor-container {
    min-height: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
    position: relative !important;
    border: 1px solid var(--theme-border-strong) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-editor-cell,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-editor-with-menu {
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-input {
    min-height: 40px !important;
    height: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 12px !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-input-container {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-toolbar,
body[data-theme-system="next"] .grilla-dinamica .dx-toolbar-after,
body[data-theme-system="next"] .grilla-dinamica .dx-toolbar-before,
body[data-theme-system="next"] .grilla-dinamica .dx-toolbar-center {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-toolbar .dx-button,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-header-panel .dx-button,
body[data-theme-system="next"] .grilla-dinamica .dx-button-mode-contained,
body[data-theme-system="next"] .grilla-dinamica .dx-button-mode-outlined {
    background: var(--theme-grid-toolbar-bg) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-toolbar .dx-button:hover,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-header-panel .dx-button:hover,
body[data-theme-system="next"] .grilla-dinamica .dx-button-mode-contained:hover,
body[data-theme-system="next"] .grilla-dinamica .dx-button-mode-outlined:hover {
    background: var(--theme-grid-toolbar-hover-bg) !important;
    border-color: var(--theme-grid-toolbar-hover-border) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-toolbar .dx-button .dx-icon,
body[data-theme-system="next"] .grilla-dinamica .dx-button .dx-icon {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-toolbar .dx-texteditor-container,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel .dx-texteditor-container {
    background: var(--theme-surface-field) !important;
    border: 1px solid var(--theme-border-strong) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel {
    background: var(--theme-grid-search-bg) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: var(--theme-radius-sm) !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin-left: auto !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel:hover,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel.dx-state-hover,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel.dx-state-focused,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel:focus-within {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 1px var(--theme-accent), 0 0 10px rgba(252, 76, 36, 0.35) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel .dx-texteditor-input-container {
    align-items: center !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel .dx-texteditor-input {
    min-height: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel .dx-placeholder::before,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-search-panel .dx-texteditor-input {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-editor-with-menu .dx-menu .dx-menu-item-content,
body[data-theme-system="next"] .grilla-dinamica .dx-menu-item-content,
body[data-theme-system="next"] .grilla-dinamica .dx-selectbox .dx-texteditor-input,
body[data-theme-system="next"] .grilla-dinamica .dx-dropdowneditor-input-wrapper .dx-texteditor-input,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-input {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-dropdowneditor-button,
body[data-theme-system="next"] .grilla-dinamica .dx-texteditor-buttons-container,
body[data-theme-system="next"] .grilla-dinamica .dx-selectbox .dx-dropdowneditor-button,
body[data-theme-system="next"] .grilla-dinamica .dx-datebox .dx-dropdowneditor-button {
    background: transparent !important;
    border-left: 1px solid var(--theme-border-strong) !important;
    height: 100% !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-buttons-container {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    height: 100% !important;
    align-self: stretch !important;
    background: var(--theme-grid-filter-button-bg) !important;
    border-left: 1px solid var(--theme-border-strong) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-buttons-container:not(:has(.dx-texteditor-button:not(.dx-state-invisible), .dx-dropdowneditor-button:not(.dx-state-invisible))) {
    display: none !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-button.dx-state-invisible,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-dropdowneditor-button.dx-state-invisible,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-buttons-container .dx-state-invisible {
    display: none !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-dropdowneditor-button,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-button,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-buttons-container {
    min-width: 38px !important;
    width: 38px !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 0 !important;
    height: 100% !important;
    max-height: 42px !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-button {
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-button .dx-button-content,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-dropdowneditor-button .dx-button-content {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu .dx-menu-item,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu .dx-menu-item-content {
    border-radius: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-menu-item-wrapper,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-menu-item-content {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    height: 100% !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu-item-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-editor-with-menu .dx-icon,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-texteditor-button .dx-icon,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-dropdowneditor-button .dx-icon,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-menu-item-popout-container .dx-icon {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-icon-search,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-icon-filter-operation-default,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-icon-filter-operation-contains,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-icon-filter-operation-equals,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-icon-event,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-icon-spindown,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-icon-dropdowneditorbutton {
    color: var(--theme-text) !important;
    font-size: 16px !important;
    opacity: 1 !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-dropdowneditor-button .dx-icon,
body[data-theme-system="next"] .grilla-dinamica .dx-texteditor-button .dx-icon,
body[data-theme-system="next"] .grilla-dinamica .dx-datebox .dx-icon,
body[data-theme-system="next"] .grilla-dinamica .dx-selectbox .dx-icon {
    color: var(--theme-text) !important;
    opacity: 0.95 !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-menu,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-menu-item,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-menu-item-content {
    background: var(--theme-surface-field) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-menu-item.dx-state-hover,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row .dx-menu-item-content:hover {
    background: rgba(249, 115, 22, 0.12) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-link,
body[data-theme-system="next"] .grilla-dinamica .dx-link-icon {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-pages .dx-page,
body[data-theme-system="next"] .grilla-dinamica .dx-page-sizes .dx-page-size,
body[data-theme-system="next"] .grilla-dinamica .dx-pager .dx-info {
    color: var(--theme-text-muted) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-page.dx-selection,
body[data-theme-system="next"] .grilla-dinamica .dx-page-size.dx-selection {
    color: var(--theme-accent) !important;
}

body[data-theme-system="next"] .grilla-dinamica .dx-icon,
body[data-theme-system="next"] .dx-popup-wrapper .dx-icon,
body[data-theme-system="next"] .dx-dropdowneditor-icon {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .modal-dinamico .modal-content,
body[data-theme-system="next"] .theme-modal .modal-content,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-overlay-content {
    background: linear-gradient(180deg, rgba(19, 28, 41, 0.92), rgba(12, 18, 27, 0.96)) !important;
    border: 1px solid var(--theme-border-strong) !important;
    color: var(--theme-text) !important;
    border-radius: var(--theme-radius-md) !important;
    box-shadow: var(--theme-shadow) !important;
}

body[data-theme-system="next"] .modal-dinamico .dx-texteditor-container,
body[data-theme-system="next"] .theme-modal .dx-texteditor-container,
body[data-theme-system="next"] .modal-dinamico .form-control,
body[data-theme-system="next"] .theme-modal .form-control,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-texteditor-container {
    background: var(--theme-surface-field) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .modal-dinamico .dx-dropdowneditor-button,
body[data-theme-system="next"] .theme-modal .dx-dropdowneditor-button,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-dropdowneditor-button {
    background: var(--theme-surface-field-strong) !important;
    border-left: 1px solid var(--theme-border) !important;
}

body[data-theme-system="next"] .modal-dinamico .dx-button,
body[data-theme-system="next"] .theme-modal .dx-button,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-button {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .modal-dinamico .dx-button:hover,
body[data-theme-system="next"] .theme-modal .dx-button:hover,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-button:hover {
    background: rgba(249, 115, 22, 0.16) !important;
    border-color: rgba(249, 115, 22, 0.45) !important;
}

body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-overlay-content,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-overlay-content {
    background: var(--theme-surface-field) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 6px !important;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.34) !important;
    color: var(--theme-text) !important;
}

/* =========================================
   REDISENO DEL MENU DE FILTROS (LUPA)
   ========================================= */
body[data-theme-system="next"] .dx-overlay-content.dx-context-menu,
body[data-theme-system="next"] .dx-context-menu .dx-overlay-content,
body[data-theme-system="next"] .dx-header-filter-menu .dx-overlay-content,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-overlay-content {
    width: auto !important;
    min-width: 180px !important;
    max-width: max-content !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 6px 0 !important;
    border: 1px solid var(--theme-border) !important;
    margin-top: -2px !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] .dx-context-menu .dx-menu-item-content,
body[data-theme-system="next"] .dx-menu-phone-overlay .dx-menu-item-content,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-menu-item-content {
    min-width: 150px !important;
    width: auto !important;
    height: auto !important;
    min-height: 34px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .dx-context-menu .dx-menu-item.dx-state-hover,
body[data-theme-system="next"] .dx-menu-phone-overlay .dx-menu-item.dx-state-hover,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-menu-item.dx-state-hover {
    background-color: rgba(252, 76, 36, 0.12) !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .dx-overlay-content.dx-context-menu,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-context-menu .dx-overlay-content,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-header-filter-menu .dx-overlay-content,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-datagrid-menu-container .dx-overlay-content {
    background-color: #242424 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .dx-context-menu .dx-menu-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-menu-phone-overlay .dx-menu-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-datagrid-menu-container .dx-menu-item.dx-state-hover {
    background-color: #333333 !important;
}

/* =========================================
   PULIDO FINAL: MENU DE FILTROS (CONTRASTE Y DETALLES)
   ========================================= */
body[data-theme-system="next"] .dx-overlay-content.dx-context-menu,
body[data-theme-system="next"] .dx-context-menu .dx-overlay-content,
body[data-theme-system="next"] .dx-header-filter-menu .dx-overlay-content,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-overlay-content {
    overflow: hidden !important;
}

body[data-theme-system="next"] .dx-context-menu .dx-icon,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-icon {
    color: #e0e0e0 !important;
    opacity: 0.9 !important;
}

body[data-theme-system="next"] .dx-context-menu .dx-menu-item-content .dx-icon,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-menu-item-content .dx-icon {
    margin-right: 12px !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .dx-context-menu .dx-menu-item-text,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-datagrid-menu-container .dx-menu-item-text {
    color: #ffffff !important;
    font-weight: 400 !important;
}

body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list-item,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-scrollable-container,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-treeview,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-menu-item {
    background: var(--theme-surface-field) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-focused,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-menu-item.dx-state-hover {
    background: rgba(249, 115, 22, 0.12) !important;
}

body[data-theme-system="next"] .modal-dinamico .modal-header,
body[data-theme-system="next"] .modal-dinamico .modal-footer {
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"] .modal-dinamico .modal-title,
body[data-theme-system="next"] .dx-popup-title {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .modal-dinamico .close {
    color: var(--theme-text) !important;
    text-shadow: none !important;
}

body[data-theme-system="next"] .modal-dinamico .close:hover {
    color: var(--theme-accent) !important;
}

body[data-theme-system="next"] .modal-dinamico .btn-link {
    border: 1px solid var(--theme-border) !important;
    border-radius: var(--theme-radius-sm) !important;
}

body[data-theme-system="next"] .modal-dinamico .btn-link:hover {
    background: var(--theme-hover) !important;
}

body[data-theme-system="next"] .dx-switch-container {
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"] .dx-switch-on-value .dx-switch-container {
    background: var(--theme-accent) !important;
    border-color: var(--theme-accent-hover) !important;
}

body[data-theme-system="next"] .swal-app,
body[data-theme-system="next"] .swal-tema4 {
    background: linear-gradient(180deg, rgba(19, 28, 41, 0.96), rgba(12, 18, 27, 0.98)) !important;
    border: 1px solid var(--theme-border-strong) !important;
    border-radius: var(--theme-radius-md) !important;
    box-shadow: var(--theme-shadow) !important;
}

body[data-theme-system="next"] .swal-app .swal2-title,
body[data-theme-system="next"] .swal-app .swal2-html-container,
body[data-theme-system="next"] .swal-tema4 .swal2-title,
body[data-theme-system="next"] .swal-tema4 .swal2-html-container {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .swal-app .swal2-input,
body[data-theme-system="next"] .swal-tema4 .swal2-input {
    background: var(--theme-surface-strong) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .swal-app .swal2-input:focus,
body[data-theme-system="next"] .swal-tema4 .swal2-input:focus {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.2) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .input-escaneo,
body[data-theme-system="next"][data-theme-variant="light"] .form-control,
body[data-theme-system="next"][data-theme-variant="light"] textarea.form-control,
body[data-theme-system="next"][data-theme-variant="light"] select.form-control,
body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor-input-container {
    background: var(--theme-surface-field) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .form-control::placeholder,
body[data-theme-system="next"][data-theme-variant="light"] textarea::placeholder,
body[data-theme-system="next"][data-theme-variant="light"] .dx-placeholder::before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor .dx-placeholder {
    color: var(--theme-text-muted) !important;
    opacity: 1 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .form-control,
body[data-theme-system="next"][data-theme-variant="light"] .dx-field-item-label-text,
body[data-theme-system="next"][data-theme-variant="light"] .dx-field-item-label-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-form .dx-field-item-label,
body[data-theme-system="next"][data-theme-variant="light"] label,
body[data-theme-system="next"][data-theme-variant="light"] .dx-widget,
body[data-theme-system="next"][data-theme-variant="light"] .dx-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-icon {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .modal-dinamico .modal-content,
body[data-theme-system="next"][data-theme-variant="light"] .theme-modal .modal-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-overlay-content,
body[data-theme-system="next"][data-theme-variant="light"] .swal-app,
body[data-theme-system="next"][data-theme-variant="light"] .swal-tema4 {
    background: var(--theme-modal-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border-strong) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .modal-dinamico .modal-header,
body[data-theme-system="next"][data-theme-variant="light"] .modal-dinamico .modal-footer,
body[data-theme-system="next"][data-theme-variant="light"] .theme-modal .modal-header,
body[data-theme-system="next"][data-theme-variant="light"] .theme-modal .modal-footer,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-title {
    background: var(--theme-modal-header-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .modal-dinamico .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="light"] .theme-modal .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-filter-row .dx-texteditor-buttons-container {
    background: var(--theme-surface-field-strong) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .modal-dinamico .dx-button,
body[data-theme-system="next"][data-theme-variant="light"] .theme-modal .dx-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-button {
    background: var(--theme-modal-button-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .modal-dinamico .dx-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .theme-modal .dx-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-button:hover {
    background: var(--theme-modal-button-hover-bg) !important;
    border-color: var(--theme-grid-toolbar-hover-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-overlay-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-menu-container .dx-overlay-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-list,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-list-item,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-scrollable-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-menu-container .dx-treeview,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-menu-container .dx-menu-item {
    background: var(--theme-overlay-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-focused,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-menu-container .dx-menu-item.dx-state-hover {
    background: var(--theme-list-hover-bg) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-dateview,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-dateview .dx-overlay-content {
    background: var(--theme-overlay-bg) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-caption-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-navigator,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-header,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-body,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-view,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-field {
    background: transparent !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-cell,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-other-month .dx-calendar-cell,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-contoured-date,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-navigator .dx-button-text,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-analog-clock text,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-analog-clock {
    color: var(--theme-text) !important;
    fill: #7e8897 !important;
    stroke: rgba(31, 36, 48, 0.28) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-cell.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-cell.dx-calendar-selected-date,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-cell.dx-state-focused,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-contoured-date.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-contoured-date.dx-state-focused {
    background: var(--theme-list-hover-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-grid-toolbar-hover-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-today {
    color: var(--theme-accent) !important;
    font-weight: 700 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-selected-date .dx-calendar-date,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-selected-date {
    background: rgba(252, 76, 36, 0.88) !important;
    background-color: rgba(252, 76, 36, 0.88) !important;
    color: #ffffff !important;
    border-color: rgba(252, 76, 36, 0.96) !important;
    box-shadow: inset 0 0 0 1px rgba(252, 76, 36, 0.96) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-field .dx-numberbox,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-field .dx-numberbox .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-field .dx-numberbox .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-field .dx-numberbox-spin-container {
    background: var(--theme-surface-field) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-field .dx-numberbox-spin-up-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-field .dx-numberbox-spin-down-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-navigator-next-view,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar-navigator-previous-view,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-button .dx-icon {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-dateview .dx-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview .dx-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar .dx-button {
    background: var(--theme-modal-button-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-dateview .dx-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview .dx-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-calendar .dx-button:hover {
    background: var(--theme-modal-button-hover-bg) !important;
    border-color: var(--theme-grid-toolbar-hover-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-overlay-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-popup-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-popup-bottom,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-toolbar {
    background: var(--theme-overlay-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-body,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-navigator,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-views-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-field {
    background: transparent !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-navigator .dx-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-caption-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview .dx-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-container {
    background: var(--theme-modal-button-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-navigator .dx-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-caption-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview .dx-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-button:hover {
    background: var(--theme-modal-button-hover-bg) !important;
    background-color: var(--theme-modal-button-hover-bg) !important;
    border-color: var(--theme-grid-toolbar-hover-border) !important;
    color: var(--theme-grid-toolbar-hover-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-container:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-dropdowneditor-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-button-content:hover {
    background: var(--theme-modal-button-hover-bg) !important;
    background-color: var(--theme-modal-button-hover-bg) !important;
    border-color: var(--theme-grid-toolbar-hover-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-field .dx-numberbox,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-field .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-field .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-field .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-field .dx-selectbox,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-field .dx-datebox,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-field .dx-dropdowneditor,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-format12 .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-format12 .dx-texteditor-input {
    background: var(--theme-surface-field) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-texteditor-input::placeholder,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-placeholder::before {
    color: var(--theme-text-muted) !important;
    opacity: 1 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-up-icon:before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-down-icon:before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-navigator .dx-icon:before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-button .dx-icon:before {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-navigator .dx-button:hover .dx-icon:before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-caption-button:hover .dx-icon:before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button:hover .dx-icon:before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview .dx-button:hover .dx-icon:before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-button:hover .dx-icon:before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-button:hover .dx-numberbox-spin-up-icon:before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-button:hover .dx-numberbox-spin-down-icon:before {
    color: var(--theme-grid-toolbar-hover-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-hourarrow,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-minutearrow {
    stroke: rgba(44, 52, 66, 0.82) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-hourarrow,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-minutearrow {
    background: transparent !important;
    color: transparent !important;
    fill: rgba(44, 52, 66, 0.82) !important;
    stroke-width: 2px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-clock .dx-timeview-hourarrow,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-clock .dx-timeview-minutearrow,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-analog-clock .dx-timeview-hourarrow,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-analog-clock .dx-timeview-minutearrow {
    stroke: rgba(44, 52, 66, 0.82) !important;
    fill: rgba(44, 52, 66, 0.82) !important;
    stroke-width: 2px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-analog-clock {
    stroke: rgba(44, 52, 66, 0.82) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock *,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock * {
    stroke: rgba(44, 52, 66, 0.88) !important;
    fill: rgba(44, 52, 66, 0.88) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-analog-clock text,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-analog-clock text {
    fill: rgba(44, 52, 66, 0.92) !important;
    color: rgba(44, 52, 66, 0.92) !important;
    font-weight: 600 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-field .dx-timeview-format12,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-field .dx-timeview-format12 {
    min-width: 104px !important;
    width: 104px !important;
    flex: 0 0 104px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-format12 .dx-dropdowneditor,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-format12 .dx-selectbox,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-format12 .dx-dropdowneditor,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-format12 .dx-selectbox {
    min-width: 104px !important;
    width: 104px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-timeview-format12 .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-timeview-format12 .dx-texteditor-input {
    padding-left: 10px !important;
    padding-right: 34px !important;
    font-size: 13px !important;
    text-overflow: clip !important;
    letter-spacing: 0 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-dropdowneditor-button {
    width: 34px !important;
    min-width: 34px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-command-edit,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-command-edit.dx-command-edit-with-icons {
    min-width: 150px !important;
    white-space: nowrap !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-command-edit .dx-link,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .empresa-grid-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 6px 12px !important;
    margin: 0 3px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-command-edit .dx-link + .dx-link,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .empresa-grid-action + .empresa-grid-action {
    margin-left: 6px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-command-edit,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) td[aria-label="Acciones"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock svg,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock g,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock path,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock circle,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock line {
    opacity: 1 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-hourarrow,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-minutearrow {
    stroke: rgba(44, 52, 66, 0.92) !important;
    fill: rgba(44, 52, 66, 0.92) !important;
    color: rgba(44, 52, 66, 0.92) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock text,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock text {
    fill: rgba(44, 52, 66, 0.96) !important;
    stroke: transparent !important;
    color: rgba(44, 52, 66, 0.96) !important;
    font-weight: 700 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-cell.dx-calendar-selected-date,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-cell.dx-calendar-selected-date.dx-calendar-today,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-cell.dx-state-active:not(.dx-calendar-empty-cell),
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox-wrapper-calendar .dx-calendar-cell.dx-calendar-selected-date .dx-calendar-date {
    background: rgba(252, 76, 36, 0.88) !important;
    background-color: rgba(252, 76, 36, 0.88) !important;
    color: #ffffff !important;
    border-color: rgba(252, 76, 36, 0.96) !important;
}

/* =========================================
   REPARACION DE CALENDARIO Y SELECTOR DE HORA
   ========================================= */
body[data-theme-system="next"] .dx-numberbox-spin-up-icon::before,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-up-icon::before,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-numberbox-spin-up-icon::before {
    content: "\25B4" !important;
    font-family: "Arial", sans-serif !important;
    font-size: 16px !important;
    color: #ffffff !important;
}

body[data-theme-system="next"] .dx-numberbox-spin-down-icon::before,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-down-icon::before,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-numberbox-spin-down-icon::before {
    content: "\25BE" !important;
    font-family: "Arial", sans-serif !important;
    font-size: 16px !important;
    color: #ffffff !important;
}

body[data-theme-system="next"] .dx-calendar-caption-button .dx-button-text,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-caption-button .dx-button-text,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-caption-button .dx-button-text {
    color: var(--brand-orange) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

body[data-theme-system="next"] .dx-calendar-caption-button.dx-state-hover .dx-button-text,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-caption-button.dx-state-hover .dx-button-text,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-caption-button.dx-state-hover .dx-button-text,
body[data-theme-system="next"] .dx-calendar-caption-button:hover .dx-button-text,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-caption-button:hover .dx-button-text,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-caption-button:hover .dx-button-text {
    color: var(--brand-orange-soft) !important;
}

/* Correccion de celda seleccionada: cuadrado perfecto y color exacto */
body[data-theme-system="next"] .dx-calendar .dx-calendar-cell.dx-calendar-selected-date,
body[data-theme-system="next"] .dx-calendar .dx-calendar-cell.dx-calendar-cell-selected,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-cell.dx-calendar-selected-date,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-cell.dx-calendar-cell-selected,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-cell.dx-calendar-selected-date,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-cell.dx-calendar-cell-selected,
body[data-theme-system="next"] .dx-calendar .dx-calendar-selected-date .dx-calendar-date,
body[data-theme-system="next"] .dx-calendar .dx-calendar-cell-selected .dx-calendar-date,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-selected-date .dx-calendar-date,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-cell-selected .dx-calendar-date,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-selected-date .dx-calendar-date,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-cell-selected .dx-calendar-date {
    background: #FC4C24 !important;
    background-color: #FC4C24 !important;
    color: #ffffff !important;
    border: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background-clip: border-box !important;
}

body[data-theme-system="next"] .dx-calendar .dx-calendar-cell.dx-calendar-selected-date.dx-state-hover,
body[data-theme-system="next"] .dx-calendar .dx-calendar-cell.dx-calendar-cell-selected.dx-state-hover,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-cell.dx-calendar-selected-date.dx-state-hover,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-cell.dx-calendar-cell-selected.dx-state-hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-cell.dx-calendar-selected-date.dx-state-hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-cell.dx-calendar-cell-selected.dx-state-hover,
body[data-theme-system="next"] .dx-calendar .dx-calendar-selected-date.dx-state-hover .dx-calendar-date,
body[data-theme-system="next"] .dx-calendar .dx-calendar-cell-selected.dx-state-hover .dx-calendar-date,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-selected-date.dx-state-hover .dx-calendar-date,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-cell-selected.dx-state-hover .dx-calendar-date,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-selected-date.dx-state-hover .dx-calendar-date,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-cell-selected.dx-state-hover .dx-calendar-date {
    background: #FC4C24 !important;
    background-color: #FC4C24 !important;
    border: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

body[data-theme-system="next"] .dx-calendar .dx-calendar-selected-date .dx-calendar-date,
body[data-theme-system="next"] .dx-calendar .dx-calendar-cell-selected .dx-calendar-date,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-selected-date .dx-calendar-date,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-calendar-cell-selected .dx-calendar-date,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-selected-date .dx-calendar-date,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-calendar-cell-selected .dx-calendar-date {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Cambiar color de hover en elementos de listas y dropdowns de tiempo */
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-list-item.dx-state-hover,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-list-item.dx-state-focused,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-list-item.dx-state-active,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-focused,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-active,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-timeview .dx-button.dx-state-hover,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-timeview .dx-button:hover,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-button.dx-state-hover,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-button:hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-timeview .dx-button.dx-state-hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-timeview .dx-button:hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-numberbox-spin-button.dx-state-hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-numberbox-spin-button:hover {
    background: #FC4C24 !important;
    background-color: #FC4C24 !important;
    border-color: #FC4C24 !important;
    color: #ffffff !important;
}

body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-list-item.dx-state-hover *,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-list-item.dx-state-focused *,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-list-item.dx-state-active *,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-hover *,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-focused *,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-list-item.dx-state-active *,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-timeview .dx-button.dx-state-hover *,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-timeview .dx-button:hover *,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-button.dx-state-hover *,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-numberbox-spin-button:hover *,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-timeview .dx-button.dx-state-hover *,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-timeview .dx-button:hover *,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-numberbox-spin-button.dx-state-hover *,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-numberbox-spin-button:hover * {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Cambiar el borde y el halo de inputs activos en datebox/time picker */
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-texteditor,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-dropdowneditor,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-texteditor,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-dropdowneditor {
    border-color: #555555 !important;
    box-shadow: none !important;
    outline: none !important;
}

body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-texteditor.dx-state-focused,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-dropdowneditor.dx-state-focused,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-texteditor.dx-state-active,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-dropdowneditor.dx-state-active,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-texteditor:focus-within,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-dropdowneditor:focus-within,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-texteditor.dx-state-focused,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-dropdowneditor.dx-state-focused,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-texteditor.dx-state-active,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-dropdowneditor.dx-state-active,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-texteditor:focus-within,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-dropdowneditor:focus-within {
    border-color: #FC4C24 !important;
    box-shadow: 0 0 0 1px #FC4C24 !important;
    outline: none !important;
}

body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-texteditor.dx-state-focused .dx-texteditor-container,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-dropdowneditor.dx-state-focused .dx-texteditor-container,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-texteditor.dx-state-focused .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-dropdowneditor.dx-state-focused .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-texteditor:focus-within .dx-texteditor-container,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-dropdowneditor:focus-within .dx-texteditor-container,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-texteditor.dx-state-focused .dx-texteditor-container,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-dropdowneditor.dx-state-focused .dx-texteditor-container,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-texteditor.dx-state-focused .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-dropdowneditor.dx-state-focused .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-texteditor:focus-within .dx-texteditor-container,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-dropdowneditor:focus-within .dx-texteditor-container {
    border-color: #FC4C24 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Botones de accion: efecto de naranja mas claro en hover */
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button.dx-button-mode-contained,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-popup-bottom .dx-button.dx-button-mode-contained,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-popup-bottom .dx-button {
    background: #FC4C24 !important;
    background-color: #FC4C24 !important;
    border-color: #FC4C24 !important;
    color: #ffffff !important;
    filter: none !important;
}

body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button.dx-button-mode-contained.dx-state-hover,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button.dx-button-mode-contained:hover,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button.dx-state-hover,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button:hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-popup-bottom .dx-button.dx-button-mode-contained.dx-state-hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-popup-bottom .dx-button.dx-button-mode-contained:hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-popup-bottom .dx-button.dx-state-hover,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-popup-bottom .dx-button:hover {
    background: #FC4C24 !important;
    background-color: #FC4C24 !important;
    border-color: #FC4C24 !important;
    color: #ffffff !important;
    filter: brightness(1.2) !important;
    cursor: pointer !important;
}

body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button.dx-button-mode-contained.dx-state-active,
body[data-theme-system="next"] .dx-datebox-wrapper-calendar .dx-popup-bottom .dx-button.dx-state-active,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-popup-bottom .dx-button.dx-button-mode-contained.dx-state-active,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-popup-bottom .dx-button.dx-state-active {
    background: #FC4C24 !important;
    background-color: #FC4C24 !important;
    border-color: #FC4C24 !important;
    color: #ffffff !important;
    filter: brightness(0.9) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .nav-tabs .nav-link,
body[data-theme-system="next"][data-theme-variant="light"] .tabs .nav-link,
body[data-theme-system="next"][data-theme-variant="light"] .nav-link {
    color: var(--theme-tab-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .nav-tabs .nav-link.active,
body[data-theme-system="next"][data-theme-variant="light"] .tabs .nav-link.active,
body[data-theme-system="next"][data-theme-variant="light"] .nav-tabs .nav-item.show .nav-link {
    color: var(--theme-tab-active-text) !important;
    border-color: transparent transparent var(--theme-tab-active-border) transparent !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .footer,
body[data-theme-system="next"][data-theme-variant="light"] .footer p,
body[data-theme-system="next"][data-theme-variant="light"] #footer,
body[data-theme-system="next"][data-theme-variant="light"] #footer p {
    color: var(--theme-footer-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .footer a,
body[data-theme-system="next"][data-theme-variant="light"] #footer a {
    color: var(--theme-footer-link) !important;
}

body[data-theme-system="next"] .footer a,
body[data-theme-system="next"] #footer a,
body[data-theme-system="next"] .footer a:hover,
body[data-theme-system="next"] #footer a:hover,
body[data-theme-system="next"] .footer a:focus,
body[data-theme-system="next"] #footer a:focus {
    color: var(--brand-orange) !important;
}

body[data-theme-system="next"] .preac-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    min-width: max-content;
}

body[data-theme-system="next"] .preac-actions .boton-naranja-dinamico,
body[data-theme-system="next"] .preac-actions .btn-theme-primary {
    margin: 0 !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    flex: 0 0 auto !important;
}

body[data-theme-system="next"] .swal2-container,
body[data-theme-system="next"] .alerta-super-frente {
    z-index: 100000 !important;
}

@media (max-width: 991.98px) {
    body[data-theme-system="next"] .header,
    body[data-theme-system="next"] .sidebar,
    body[data-theme-system="next"] .card,
    body[data-theme-system="next"] #footer {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    body[data-theme-system="next"] .preac-actions {
        flex-wrap: wrap;
    }

    body[data-theme-system="next"] .theme-variant-switch {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        margin-left: auto;
        margin-right: 8px;
    }

    body[data-theme-system="next"] .theme-variant-switch__button {
        padding: 0 10px;
    }

    body[data-theme-system="next"] .clock.hidden-md-down {
        position: static;
        left: auto;
        top: auto;
        transform: none;
    }
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid {
    border: 1px solid var(--theme-border) !important;
    border-radius: var(--theme-radius-md) !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-content,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview {
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td {
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    vertical-align: top !important;
    border-bottom: 1px solid var(--theme-border) !important;
    border-right: 1px solid var(--theme-border) !important;
    border-left: 0 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td:last-child {
    border-right: 0 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-cell,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    line-height: 42px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item-content {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container {
    display: flex !important;
    align-items: stretch !important;
    align-self: stretch !important;
    background: var(--theme-surface-field-strong) !important;
    border-left: 1px solid var(--theme-border) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button .dx-button-content,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button .dx-button-content,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu-item-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td {
    padding: 0 !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-editor-cell,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-editor-cell,
body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-editor-with-menu,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-editor-with-menu,
body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-texteditor,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-texteditor,
body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-selectbox,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-selectbox,
body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-datebox,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-datebox,
body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-dropdowneditor,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-dropdowneditor {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-texteditor-container,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-texteditor-container,
body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-texteditor-input-container,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-texteditor-input-container {
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-texteditor-buttons-container,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-texteditor-buttons-container,
body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-dropdowneditor-button,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-dropdowneditor-button,
body[data-theme-system="next"] .theme-grid .dx-datagrid-filter-row > td .dx-texteditor-button,
body[data-theme-system="next"] .grilla-dinamica .dx-datagrid-filter-row > td .dx-texteditor-button {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-row.dx-header-row > td {
    background: var(--theme-grid-header-bg) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-row > td {
    background: var(--theme-grid-row-bg) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-toolbar .dx-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-button-mode-contained,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-button-mode-outlined {
    background: var(--theme-grid-toolbar-bg) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-toolbar .dx-button:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-button:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-button-mode-contained:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-button-mode-outlined:hover {
    background: var(--theme-grid-toolbar-hover-bg) !important;
    border-color: var(--theme-grid-toolbar-hover-border) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-container {
    background: var(--theme-grid-search-bg) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-placeholder::before,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-input {
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container {
    background: var(--theme-grid-filter-button-bg) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu-item-content:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item.dx-state-hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item-content.dx-state-hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-selectbox .dx-dropdowneditor-button:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datebox .dx-dropdowneditor-button:hover {
    background: var(--theme-grid-toolbar-hover-bg) !important;
    border-color: var(--theme-grid-toolbar-hover-border) !important;
    color: var(--theme-grid-toolbar-hover-text, var(--theme-text)) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button:hover .dx-icon,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button:hover .dx-icon,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-selectbox .dx-dropdowneditor-button:hover .dx-icon,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datebox .dx-dropdowneditor-button:hover .dx-icon {
    color: var(--theme-grid-toolbar-hover-text, var(--theme-text)) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .imagen-redonda {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 6px auto !important;
    border-radius: 16px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .imagen-redonda-form {
    width: 112px !important;
    height: 112px !important;
    min-width: 112px !important;
    min-height: 112px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 8px auto !important;
    border-radius: 18px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-data-row > td {
    vertical-align: middle !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-data-row > td:first-child,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) td[aria-colindex="1"] {
    overflow: hidden !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-icon,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-icon::before,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-header-filter,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-header-filter::before,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-dropdowneditor-icon,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-dropdowneditor-icon::before,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-icon,
body[data-theme-system="next"] .dx-datagrid-menu-container .dx-icon::before,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-icon,
body[data-theme-system="next"] .dx-dropdowneditor-overlay .dx-icon::before {
    font-family: DXIcons !important;
    font-style: normal !important;
    font-weight: normal !important;
    text-transform: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-row > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-row > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td {
    border-left: 0 !important;
    border-right: 0 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-row.dx-header-row > td {
    padding: 10px 12px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-data-row > td {
    padding: 16px 12px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td {
    padding: 4px 6px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container {
    border-radius: 4px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item-content {
    background: transparent !important;
    border-left: 0 !important;
    border-radius: 4px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-header-filter,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-icon-search,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-icon-event,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-icon-dropdowneditorbutton,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-icon-filter-operation-default,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-icon-filter-operation-contains,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-icon-filter-operation-equals {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--theme-text) !important;
    opacity: 0.95 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .imagen-redonda,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .imagen-redonda-form {
    border-radius: 50% !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td {
    background: var(--theme-grid-header-bg) !important;
    vertical-align: middle !important;
    padding: 6px 8px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input {
    background: transparent !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-header-filter {
    font-size: 12px !important;
    opacity: 0.5 !important;
    transform: scale(0.86);
    transform-origin: center center;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-header-filter::before {
    font-size: 12px !important;
    opacity: 0.5 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-row > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-row > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-data-row > td {
    vertical-align: middle !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-rowsview .dx-data-row > td {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

body[data-theme-system="next"] .visita-fecha-acciones {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body[data-theme-system="next"] .visita-fecha-acciones__fecha,
body[data-theme-system="next"] .visita-fecha-acciones__botones {
    display: inline-flex;
    align-items: center;
}

body[data-theme-system="next"] .visita-fecha-acciones__botones {
    justify-content: center;
    gap: 8px;
    margin-left: 8px;
}

body[data-theme-system="next"] .visita-fecha-acciones__botones .btn {
    margin: 0 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .input-escaneo,
body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .dx-selectbox .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .dx-textarea .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor-input-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor-container {
    background: var(--theme-surface-field) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-selectbox,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor,
body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor,
body[data-theme-system="next"][data-theme-variant="light"] .dx-textarea {
    background: transparent !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-selectbox .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datebox .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor-buttons-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-editor-with-menu .dx-menu,
body[data-theme-system="next"][data-theme-variant="light"] .dx-menu-item-content {
    background: var(--theme-surface-field-strong) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-placeholder::before,
body[data-theme-system="next"][data-theme-variant="light"] .dx-texteditor .dx-placeholder,
body[data-theme-system="next"][data-theme-variant="light"] .form-control::placeholder,
body[data-theme-system="next"][data-theme-variant="light"] textarea::placeholder {
    color: var(--theme-text-muted) !important;
    opacity: 1 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button {
    background: transparent !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .boton-naranja-dinamico,
body[data-theme-system="next"] .btn-theme-primary,
body[data-theme-system="next"] .boton-naranja-dinamico:hover,
body[data-theme-system="next"] .btn-theme-primary:hover,
body[data-theme-system="next"] .boton-naranja-dinamico:focus,
body[data-theme-system="next"] .btn-theme-primary:focus,
body[data-theme-system="next"] .boton-naranja-dinamico:active,
body[data-theme-system="next"] .btn-theme-primary:active,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .boton-naranja-dinamico,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .btn-theme-primary {
    box-shadow: none !important;
    text-transform: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-row.dx-header-row > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-row.dx-header-row > td {
    font-size: 12px !important;
    font-weight: 500 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .imagen-redonda,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .imagen-redonda-form {
    object-fit: cover !important;
    object-position: center center !important;
}

body[data-theme-system="next"] .visita-fecha-acciones__botones {
    gap: 6px;
}

body[data-theme-system="next"] .visita-fecha-acciones__botones .btn,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .visita-fecha-acciones__botones .btn,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-data-row .boton-naranja-dinamico.btn-sm,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-data-row .btn-theme-primary.btn-sm {
    padding: 4px 10px !important;
    min-height: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button-content,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item-content,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button-content,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu .dx-menu,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-menu-item-content {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-icon,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-icon {
    background: transparent !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .input-escaneo {
    border-width: 1px !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .input-escaneo:focus {
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input {
    padding-left: 28px !important;
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container {
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input:focus {
    border: 0 !important;
    border-bottom: 1px solid var(--theme-accent) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input {
    padding-left: 38px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-cell:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-cell:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container:focus-within {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor:focus-within {
    border: 1px solid var(--theme-accent) !important;
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-cell-focus-disabled,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-editor-cell,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-editor-cell.dx-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-command-select,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-cell,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu {
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-editor-cell:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-editor-cell:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-editor-cell.dx-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-cell:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-cell:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-cell.dx-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu.dx-focused {
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-focus-overlay,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datagrid-focus-overlay {
    display: none !important;
}

/* =========================================
   CORRECCION DE CHECKBOX DE SELECCION (NARANJA Y TILDE)
   ========================================= */
body[data-theme-system="next"] .dx-checkbox-checked .dx-checkbox-icon,
body[data-theme-system="next"] .dx-datagrid-rowsview .dx-select-checkbox.dx-checkbox-checked .dx-checkbox-icon {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-theme-system="next"] .dx-checkbox .dx-checkbox-icon,
body[data-theme-system="next"] .dx-datagrid-rowsview .dx-select-checkbox .dx-checkbox-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    box-sizing: border-box !important;
    border-radius: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    overflow: hidden !important;
    position: relative !important;
}

body[data-theme-system="next"] .dx-checkbox-checked .dx-checkbox-icon::before,
body[data-theme-system="next"] .dx-datagrid-rowsview .dx-select-checkbox.dx-checkbox-checked .dx-checkbox-icon::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 5px !important;
    height: 9px !important;
    margin: 0 !important;
    border-right: 2px solid #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: transparent !important;
    display: block !important;
    box-sizing: border-box !important;
    transform: translate(-50%, -58%) rotate(45deg) !important;
}

body[data-theme-system="next"] .dx-checkbox:not(.dx-checkbox-checked):not(.dx-checkbox-indeterminate) .dx-checkbox-icon::before,
body[data-theme-system="next"] .dx-datagrid-rowsview .dx-select-checkbox:not(.dx-checkbox-checked):not(.dx-checkbox-indeterminate) .dx-checkbox-icon::before {
    content: none !important;
    border: 0 !important;
    background: transparent !important;
}

body[data-theme-system="next"] .dx-checkbox.dx-state-hover .dx-checkbox-icon,
body[data-theme-system="next"] .dx-checkbox.dx-state-focused .dx-checkbox-icon {
    border-color: var(--brand-orange) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-checkbox .dx-checkbox-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-rowsview .dx-select-checkbox .dx-checkbox-icon {
    background-color: rgba(245, 247, 251, 1) !important;
    border: 1px solid rgba(27, 35, 49, 0.28) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-checkbox:not(.dx-checkbox-checked).dx-state-hover .dx-checkbox-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-checkbox:not(.dx-checkbox-checked).dx-state-focused .dx-checkbox-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-rowsview .dx-select-checkbox:not(.dx-checkbox-checked).dx-state-hover .dx-checkbox-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-rowsview .dx-select-checkbox:not(.dx-checkbox-checked).dx-state-focused .dx-checkbox-icon {
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: var(--brand-orange) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-checkbox.dx-checkbox-checked .dx-checkbox-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-rowsview .dx-select-checkbox.dx-checkbox-checked .dx-checkbox-icon {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
}

body[data-theme-system="next"] .dx-checkbox-indeterminate .dx-checkbox-icon,
body[data-theme-system="next"] .dx-datagrid-rowsview .dx-select-checkbox.dx-checkbox-indeterminate .dx-checkbox-icon {
    background-color: rgba(224, 232, 247, 0.92) !important;
    border-color: rgba(27, 35, 49, 0.28) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .dx-checkbox-indeterminate .dx-checkbox-icon,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-datagrid-rowsview .dx-select-checkbox.dx-checkbox-indeterminate .dx-checkbox-icon {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

body[data-theme-system="next"] .dx-checkbox-indeterminate .dx-checkbox-icon::before,
body[data-theme-system="next"] .dx-datagrid-rowsview .dx-select-checkbox.dx-checkbox-indeterminate .dx-checkbox-icon::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: 10px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: var(--brand-orange) !important;
    margin: 0 !important;
    border: 0 !important;
    transform: translate(-50%, -50%) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button:active,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button.dx-state-hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button.dx-state-active,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button:active,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button.dx-state-hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-button.dx-state-active,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button:active,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button.dx-state-hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button.dx-state-active,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button-content,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button-content:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-button-content:active,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-icon,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-icon:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-icon:active,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-icon-event,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-icon-event:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-icon-dropdowneditorbutton,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-icon-dropdowneditorbutton:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-state-hover > .dx-dropdowneditor-icon,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-state-active > .dx-dropdowneditor-icon {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row.dx-state-hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row.dx-row-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row.dx-state-hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row.dx-row-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row:hover > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row:hover > th,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row.dx-state-hover > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row.dx-state-hover > th,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row.dx-row-focused > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row.dx-row-focused > th,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > th,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > th:hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-state-hover,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > th.dx-state-hover {
    background: var(--theme-grid-cell-bg) !important;
    background-color: var(--theme-grid-cell-bg) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor {
    border: 1px solid var(--theme-border-strong) !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor:focus,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor:focus-within,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor.dx-state-focused {
    border: 1px solid var(--theme-accent) !important;
    box-shadow: none !important;
    outline: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-texteditor.dx-editor-filled,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-texteditor.dx-editor-outlined {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-texteditor.dx-state-focused,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-texteditor:focus-within {
    border: 1px solid #FF5722 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-texteditor-input-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-container .dx-dropdowneditor-button {
    border-radius: 6px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox .dx-texteditor-input,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox .dx-placeholder::before {
    text-align: left !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox .dx-texteditor-input {
    padding-left: 12px !important;
    padding-right: 34px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor .dx-placeholder {
    display: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-table,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-table .dx-row.dx-header-row,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-table .dx-row.dx-header-row > td {
    background: var(--theme-grid-header-bg) !important;
    background-color: var(--theme-grid-header-bg) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar-items-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar-before,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar-after,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-button {
    background: var(--theme-grid-toolbar-bg) !important;
    background-color: var(--theme-grid-toolbar-bg) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-button.dx-button-normal {
    border-color: var(--theme-border) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-table,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-table .dx-row.dx-header-row,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-table .dx-row.dx-header-row > td {
    background-color: #242424 !important;
    background: #242424 !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-table .dx-row.dx-header-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar-items-container,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar-before,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-toolbar-after,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-button {
    background-color: #242424 !important;
    background: #242424 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-button.dx-button-normal:hover,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel .dx-button.dx-button-normal:focus {
    background-color: #333333 !important;
    background: #333333 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row > td,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row > th,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > th {
    background-color: #242424 !important;
    background: #242424 !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row:hover,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row:hover > td,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row:hover > th,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row > td:hover,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-filter-row > th:hover,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row:hover,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row:hover > td,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row:hover > th,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row.dx-state-hover > td,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row.dx-state-hover > th,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > td.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row > th.dx-state-hover {
    background-color: #242424 !important;
    background: #242424 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-datagrid-table,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-row.dx-header-row,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-header-row > td,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-header-row > th,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-header-row > td:first-child,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-header-row > td:last-child,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-header-row > th:first-child,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers .dx-header-row > th:last-child {
    border-radius: 0 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-headers {
    border-top: none !important;
}

/* Equilibrar el espaciado vertical del panel superior de la grilla. */
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-header-panel {
    padding-top: 6px !important;
    padding-bottom: 3px !important;
}

/* Header superior fijo con efecto vidrio para evitar superposición visual al scrollear. */
body[data-theme-system="next"] .header,
body[data-theme-system="next"] .header.header--scrolled {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .header,
body[data-theme-system="next"][data-theme-variant="dark"] .header.header--scrolled {
    background: rgba(36, 36, 36, 0.85) !important;
    background-color: rgba(36, 36, 36, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body[data-theme-system="next"] .dx-dropdowneditor-overlay,
body[data-theme-system="next"] .dx-overlay-wrapper,
body[data-theme-system="next"] .dx-popup-wrapper,
body[data-theme-system="next"] .dx-dropdownlist-popup-wrapper,
body[data-theme-system="next"] .dropdown-menu,
body[data-theme-system="next"] .select2-container--open {
    z-index: 9999 !important;
}

/* Restaurar scroll y recorte de formularios/modales: los dropdowns salen por body. */
body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-content {
    overflow: hidden !important;
}

body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-body,
body[data-theme-system="next"] #modal-visita .modal-visita-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative;
}

body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer,
body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn,
body[data-theme-system="next"] #cameraVisita,
body[data-theme-system="next"] #cameraVisita .btn,
body[data-theme-system="next"] :is(#btnVisitaGrabar, #btnVisitaCancelar) {
    position: relative;
    z-index: 100 !important;
    pointer-events: auto !important;
}

body[data-theme-system="next"] :is(.dx-dropdowneditor-overlay, .dx-overlay-wrapper, .dx-popup-wrapper, .dx-dropdownlist-popup-wrapper, .dx-datebox-wrapper, .dx-datebox-wrapper-calendar),
body[data-theme-system="next"] :is(.dx-dropdowneditor-overlay, .dx-overlay-wrapper, .dx-popup-wrapper, .dx-dropdownlist-popup-wrapper, .dx-datebox-wrapper, .dx-datebox-wrapper-calendar) .dx-overlay-content {
    z-index: 9999 !important;
}

/* Logo principal de Visitor Way con cambio automático por tema. */
body[data-theme-system="next"] .logo {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    height: 72px !important;
    min-width: 250px;
    padding: 8px 20px 8px 0 !important;
}

body[data-theme-system="next"] .app-logo {
    display: block;
    width: 160px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 56px !important;
    object-fit: contain !important;
    margin: 0 !important;
    transform: translateX(-28px);
}

body[data-theme-system="next"][data-theme-variant="dark"] .app-logo {
    object-fit: contain !important;
}

/* Tema oscuro: formularios y popups sin tonos azules de DevExtreme */
body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) .modal-content,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) .modal-body,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) .modal-header,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) .modal-footer,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-overlay-content,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-content,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-title,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-bottom,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-form,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-layout-manager,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-scrollable-content,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-item-content,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-field-item-content {
    background: #2D2D2D !important;
    background-color: #2D2D2D !important;
    background-image: none !important;
    color: #ffffff !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) :is(.form-control, .dx-texteditor, .dx-selectbox, .dx-datebox, .dx-numberbox, .dx-textarea, .dx-dropdowneditor, .dx-texteditor-container, .dx-texteditor-input-container, .dx-dropdowneditor-input-wrapper, .dx-texteditor-input),
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) :is(.form-control, .dx-texteditor, .dx-selectbox, .dx-datebox, .dx-numberbox, .dx-textarea, .dx-dropdowneditor, .dx-texteditor-container, .dx-texteditor-input-container, .dx-dropdowneditor-input-wrapper, .dx-texteditor-input) {
    background: #2D2D2D !important;
    background-color: #2D2D2D !important;
    background-image: none !important;
    border-color: #444444 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) .dx-texteditor-buttons-container,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-texteditor-buttons-container {
    background: #2D2D2D !important;
    background-color: #2D2D2D !important;
    background-image: none !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) :is(.dx-field-item-label-text, .dx-field-item-label-content, .dx-form .dx-field-item-label, .dx-layout-manager .dx-field-item-label-text),
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) :is(.dx-field-item-label-text, .dx-field-item-label-content, .dx-form .dx-field-item-label, .dx-layout-manager .dx-field-item-label-text) {
    color: #ffffff !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) :is(.dx-texteditor.dx-state-disabled, .dx-dropdowneditor.dx-state-disabled, .dx-state-disabled .dx-texteditor, .dx-state-disabled .dx-dropdowneditor, .dx-state-disabled .dx-texteditor-container, .dx-state-disabled .dx-dropdowneditor-input-wrapper, .dx-state-disabled .dx-texteditor-input),
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) :is(.dx-texteditor.dx-state-disabled, .dx-dropdowneditor.dx-state-disabled, .dx-state-disabled .dx-texteditor, .dx-state-disabled .dx-dropdowneditor, .dx-state-disabled .dx-texteditor-container, .dx-state-disabled .dx-dropdowneditor-input-wrapper, .dx-state-disabled .dx-texteditor-input) {
    background: #202020 !important;
    background-color: #202020 !important;
    background-image: none !important;
    border-color: #3a3a3a !important;
    color: #bdbdbd !important;
    opacity: 1 !important;
}

/* Tema oscuro: switch de DevExtreme sin celeste nativo */
body[data-theme-system="next"][data-theme-variant="dark"] .dx-switch .dx-switch-container {
    background: #3a3a3a !important;
    background-color: #3a3a3a !important;
    background-image: none !important;
    border-color: #4a4a4a !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .dx-switch.dx-switch-on-value .dx-switch-container,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-switch-on-value .dx-switch-container,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-switch.dx-state-focused.dx-switch-on-value .dx-switch-container {
    background: var(--brand-orange) !important;
    background-color: var(--brand-orange) !important;
    background-image: none !important;
    border-color: var(--brand-orange) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .dx-switch .dx-switch-handle,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-switch .dx-switch-handle::before,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-switch.dx-switch-on-value .dx-switch-handle,
body[data-theme-system="next"][data-theme-variant="dark"] .dx-switch.dx-switch-on-value .dx-switch-handle::before {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
}

/* Modal Visita: mas aire entre campos y bordes internos */
body[data-theme-system="next"] #modal-visita .modal-visita-body {
    padding: 24px 28px 28px !important;
}

body[data-theme-system="next"] #modal-visita .modal-visita-campos {
    line-height: 1.35 !important;
}

body[data-theme-system="next"] #modal-visita .modal-visita-campos > .dx-widget,
body[data-theme-system="next"] #modal-visita .modal-visita-campos > .dx-texteditor,
body[data-theme-system="next"] #modal-visita .modal-visita-campos > .dx-selectbox,
body[data-theme-system="next"] #modal-visita .modal-visita-campos > .dx-datebox,
body[data-theme-system="next"] #modal-visita .modal-visita-campos > .dx-switch,
body[data-theme-system="next"] #modal-visita .modal-visita-campos .row > [class*="col-"],
body[data-theme-system="next"] #modal-visita .modal-visita-expire {
    margin-bottom: 20px !important;
}

body[data-theme-system="next"] #modal-visita #cameraVisita {
    padding-left: 28px !important;
}

@media (max-width: 767px) {
    body[data-theme-system="next"] #modal-visita .modal-visita-body {
        padding: 20px 18px 24px !important;
    }

    body[data-theme-system="next"] #modal-visita #cameraVisita {
        padding-left: 15px !important;
    }
}

/* Modales: accion primaria naranja y secundarias transparentes */
body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn:first-child,
body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn-primary,
body[data-theme-system="next"] #btnVisitaGrabar {
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-hover)) !important;
    background-color: var(--theme-accent) !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    color: var(--theme-accent-contrast) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    padding: 8px 16px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn:first-child:hover,
body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn-primary:hover,
body[data-theme-system="next"] #btnVisitaGrabar:hover {
    background: linear-gradient(135deg, var(--theme-accent-hover), var(--theme-accent-secondary)) !important;
    background-color: var(--theme-accent-hover) !important;
    border-color: transparent !important;
    color: var(--theme-accent-contrast) !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
    outline: none !important;
}

body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn:first-child:active,
body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn-primary:active,
body[data-theme-system="next"] #btnVisitaGrabar:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn:not(:first-child):not(.btn-primary),
body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn-secondary,
body[data-theme-system="next"] #btnVisitaCancelar {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn:not(:first-child):not(.btn-primary):hover,
body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .modal-footer .btn-secondary:hover,
body[data-theme-system="next"] #btnVisitaCancelar:hover {
    background: var(--theme-hover) !important;
    background-color: var(--theme-hover) !important;
    border-color: var(--theme-border-strong) !important;
    color: var(--theme-text) !important;
}

/* Popups DevExtreme: acciones y cierre con boton naranja */
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-bottom .dx-button,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-title .dx-closebutton {
    background: var(--brand-orange) !important;
    background-color: var(--brand-orange) !important;
    background-image: none !important;
    border: 1px solid var(--brand-orange) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-bottom .dx-button:hover,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-bottom .dx-button.dx-state-hover,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-title .dx-closebutton:hover,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-title .dx-closebutton.dx-state-hover {
    background: var(--brand-orange-soft) !important;
    background-color: var(--brand-orange-soft) !important;
    border-color: var(--brand-orange-soft) !important;
    color: #ffffff !important;
}

body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-bottom .dx-button .dx-button-content,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-bottom .dx-button .dx-button-text,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-title .dx-closebutton .dx-button-content,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-title .dx-closebutton .dx-icon,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-popup-title .dx-closebutton .dx-icon::before {
    color: #ffffff !important;
}

/* Tema oscuro: inputs de modales iluminados en naranja al hover/foco */
body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) :is(.form-control:hover, .form-control:focus),
body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) :is(.dx-texteditor:hover, .dx-texteditor.dx-state-hover, .dx-texteditor.dx-state-focused, .dx-dropdowneditor:hover, .dx-dropdowneditor.dx-state-hover, .dx-dropdowneditor.dx-state-focused),
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) :is(.form-control:hover, .form-control:focus, .dx-texteditor:hover, .dx-texteditor.dx-state-hover, .dx-texteditor.dx-state-focused, .dx-dropdowneditor:hover, .dx-dropdowneditor.dx-state-hover, .dx-dropdowneditor.dx-state-focused) {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 2px rgba(252, 76, 36, 0.28) !important;
    outline: none !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.modal-dinamico, .theme-modal) :is(.dx-texteditor:hover, .dx-texteditor.dx-state-hover, .dx-texteditor.dx-state-focused, .dx-dropdowneditor:hover, .dx-dropdowneditor.dx-state-hover, .dx-dropdowneditor.dx-state-focused) :is(.dx-texteditor-container, .dx-dropdowneditor-input-wrapper, .dx-texteditor-buttons-container, .dx-dropdowneditor-button),
body[data-theme-system="next"][data-theme-variant="dark"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) :is(.dx-texteditor:hover, .dx-texteditor.dx-state-hover, .dx-texteditor.dx-state-focused, .dx-dropdowneditor:hover, .dx-dropdowneditor.dx-state-hover, .dx-dropdowneditor.dx-state-focused) :is(.dx-texteditor-container, .dx-dropdowneditor-input-wrapper, .dx-texteditor-buttons-container, .dx-dropdowneditor-button) {
    border-color: var(--brand-orange) !important;
}

body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .dx-dropdowneditor-button:is(:hover, :focus, :active, .dx-state-hover, .dx-state-focused, .dx-state-active),
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-dropdowneditor-button:is(:hover, :focus, :active, .dx-state-hover, .dx-state-focused, .dx-state-active) {
    background: var(--brand-orange-soft) !important;
    background-color: var(--brand-orange-soft) !important;
    border-color: var(--brand-orange-soft) !important;
    color: #ffffff !important;
}

body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .dx-dropdowneditor-button:is(:hover, :focus, :active, .dx-state-hover, .dx-state-focused, .dx-state-active) .dx-icon,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-dropdowneditor-button:is(:hover, :focus, :active, .dx-state-hover, .dx-state-focused, .dx-state-active) .dx-icon,
body[data-theme-system="next"] :is(.modal-dinamico, .theme-modal) .dx-dropdowneditor-button:is(:hover, :focus, :active, .dx-state-hover, .dx-state-focused, .dx-state-active) .dx-icon::before,
body[data-theme-system="next"] .dx-popup-wrapper:not(.dx-dropdowneditor-overlay):not(.dx-datagrid-menu-container) .dx-dropdowneditor-button:is(:hover, :focus, :active, .dx-state-hover, .dx-state-focused, .dx-state-active) .dx-icon::before {
    color: #ffffff !important;
}

/* Grillas: paginador y selector de cantidad con seleccionado tipo presionado */
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-pager :is(.dx-page, .dx-page-size) {
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    color: var(--theme-text-muted) !important;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-pager :is(.dx-page, .dx-page-size):hover {
    background: var(--theme-hover) !important;
    background-color: var(--theme-hover) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-pager :is(.dx-page.dx-selection, .dx-page-size.dx-selection),
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-pager :is(.dx-page.dx-selection, .dx-page-size.dx-selection):hover {
    background: var(--brand-orange) !important;
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.22) !important;
}

/* Tema oscuro: iconos de calendario en blanco */
body[data-theme-system="next"][data-theme-variant="dark"] input[type="date"] {
    color-scheme: dark !important;
    accent-color: var(--brand-orange) !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
body[data-theme-system="next"][data-theme-variant="dark"] .dashboard-grid input[type="date"].form-control::-webkit-calendar-picker-indicator {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / 18px 18px no-repeat !important;
    filter: none !important;
    opacity: 1 !important;
    color: #ffffff !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] :is(.dx-datebox, .dx-dropdowneditor) :is(.dx-icon-event, .dx-dropdowneditor-icon),
body[data-theme-system="next"][data-theme-variant="dark"] :is(.dx-datebox, .dx-dropdowneditor) :is(.dx-icon-event, .dx-dropdowneditor-icon)::before {
    color: #ffffff !important;
    opacity: 1 !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] .dashboard-grid input[type="date"].form-control {
    accent-color: var(--brand-orange) !important;
}

/* Tema oscuro: opciones de selects nativos sin celeste del navegador */
body[data-theme-system="next"][data-theme-variant="dark"] select,
body[data-theme-system="next"][data-theme-variant="dark"] select.form-control {
    accent-color: var(--brand-orange) !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] select:focus,
body[data-theme-system="next"][data-theme-variant="dark"] select.form-control:focus {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 2px rgba(252, 76, 36, 0.28) !important;
    outline: none !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] select option,
body[data-theme-system="next"][data-theme-variant="dark"] select.form-control option {
    background-color: #2D2D2D !important;
    color: #ffffff !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] select option:checked,
body[data-theme-system="next"][data-theme-variant="dark"] select.form-control option:checked {
    background: linear-gradient(0deg, #2D2D2D, #2D2D2D) !important;
    background-color: #2D2D2D !important;
    color: #ffffff !important;
}

body[data-theme-system="next"][data-theme-variant="dark"] select option:hover,
body[data-theme-system="next"][data-theme-variant="dark"] select.form-control option:hover {
    background: linear-gradient(0deg, var(--brand-orange-soft), var(--brand-orange-soft)) !important;
    background-color: var(--brand-orange-soft) !important;
    box-shadow: 0 0 0 100vmax var(--brand-orange-soft) inset !important;
    color: #ffffff !important;
}

body[data-theme-system="next"] .dx-datagrid .dx-sort-up::before,
body[data-theme-system="next"] .dx-datagrid .dx-sort-down::before,
body[data-theme-system="next"] .dx-datagrid .dx-sort-none::before {
    font-family: 'DXIcons' !important;
}

body[data-theme-system="next"] .dx-textarea .dx-texteditor-container,
body[data-theme-system="next"] .dx-textarea .dx-texteditor-input-container,
body[data-theme-system="next"] .dx-textarea .dx-texteditor-input {
    height: 100% !important;
} 

body[data-theme-system="next"] .theme-password-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: min(100%, 300px);
}

body[data-theme-system="next"] .theme-password-field .dx-textbox,
body[data-theme-system="next"] .theme-password-field .dx-texteditor {
    width: 100% !important;
}

body[data-theme-system="next"] .theme-password-field .dx-texteditor-input {
    padding-right: 42px !important;
}

body[data-theme-system="next"] .theme-password-field__toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--theme-text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

body[data-theme-system="next"] .theme-password-field__toggle:hover {
    color: var(--theme-accent);
}

body[data-theme-system="next"] .theme-button-fixed {
    width: min(100%, 300px);
}

body[data-theme-system="next"] .theme-inline-label {
    color: var(--theme-text) !important;
    font-weight: 600;
}

body[data-theme-system="next"] .theme-config-select {
    min-height: 44px;
    min-width: 220px;
    border-radius: 10px;
    border-color: var(--theme-border-strong) !important;
    background: var(--theme-surface-field) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] .theme-config-select:focus {
    border-color: var(--theme-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 0.18rem rgba(252, 76, 36, 0.12) !important;
}

body[data-theme-system="next"] .theme-nav-tabs.theme-tabs-shared {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 4px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(27, 35, 49, 0.14) !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

body[data-theme-system="next"] .theme-nav-tabs {
    border-bottom: 0 !important;
}

body[data-theme-system="next"] .theme-tabs-shared {
    --theme-tab-shell-bg: rgba(255, 255, 255, 0.5);
    --theme-tab-shell-border: rgba(27, 35, 49, 0.14);
    --theme-tab-hover-bg: rgba(255, 255, 255, 0.55);
    --theme-tab-hover-border: rgba(27, 35, 49, 0.12);
    --theme-tab-active-bg: linear-gradient(135deg, rgba(252, 76, 36, 0.16), rgba(245, 32, 159, 0.14));
    --theme-tab-active-border: rgba(252, 76, 36, 0.28);
    --theme-tab-active-fg: var(--theme-tab-active-text);
    --theme-tab-active-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

body[data-theme-system="next"][data-theme-variant="dark"] .theme-tabs-shared {
    --theme-tab-shell-bg: rgba(255, 255, 255, 0.04);
    --theme-tab-shell-border: rgba(255, 255, 255, 0.12);
    --theme-tab-hover-bg: rgba(255, 255, 255, 0.08);
    --theme-tab-hover-border: rgba(255, 255, 255, 0.14);
    --theme-tab-active-bg: linear-gradient(135deg, rgba(252, 76, 36, 0.2), rgba(245, 32, 159, 0.18));
    --theme-tab-active-border: rgba(252, 76, 36, 0.3);
    --theme-tab-active-fg: var(--theme-tab-active-text);
    --theme-tab-active-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body[data-theme-system="next"] .theme-nav-tabs.theme-tabs-shared,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tabpanel-tabs {
    background: var(--theme-tab-shell-bg) !important;
    border: 1px solid var(--theme-tab-shell-border) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

body[data-theme-system="next"] .theme-nav-tabs .nav-link,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1rem;
    border: 1px solid transparent !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: var(--theme-tab-text) !important;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body[data-theme-system="next"] .theme-nav-tabs .nav-link:hover,
body[data-theme-system="next"] .theme-nav-tabs .nav-link:focus,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab:hover,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab.dx-state-hover,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab.dx-state-focused {
    background: var(--theme-tab-hover-bg) !important;
    border-color: var(--theme-tab-hover-border) !important;
    color: var(--theme-tab-active-text) !important;
    transform: none;
}

body[data-theme-system="next"] .theme-nav-tabs .nav-link.active,
body[data-theme-system="next"] .theme-nav-tabs .nav-item.show .nav-link,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab-selected,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab.dx-state-selected {
    background: linear-gradient(135deg, rgba(252, 76, 36, 0.26), rgba(245, 32, 159, 0.22)) !important;
    border-color: rgba(252, 76, 36, 0.58) !important;
    border-bottom-color: rgba(252, 76, 36, 0.58) !important;
    color: var(--theme-tab-active-fg) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(252, 76, 36, 0.12) !important;
}

body[data-theme-system="next"] .theme-nav-tabs .nav-link.active:hover,
body[data-theme-system="next"] .theme-nav-tabs .nav-link.active:focus,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab-selected:hover,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab-selected.dx-state-hover,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab-selected.dx-state-focused {
    background: linear-gradient(135deg, rgba(252, 76, 36, 0.26), rgba(245, 32, 159, 0.22)) !important;
    border-color: rgba(252, 76, 36, 0.58) !important;
    border-bottom-color: rgba(252, 76, 36, 0.58) !important;
    color: var(--theme-tab-active-fg) !important;
    transform: none;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel {
    display: block;
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tabpanel-tabs {
    display: inline-flex;
    padding: 4px !important;
    margin-bottom: 18px !important;
    width: auto !important;
    max-width: 100% !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel.dx-state-focused,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel :is(.dx-tabs, .dx-tabs-wrapper, .dx-tabs-container, .dx-tabpanel-tabs, .dx-multiview-wrapper, .dx-multiview-item-container, .dx-tabpanel-container).dx-state-focused,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel :is(.dx-tabs, .dx-tabs-wrapper, .dx-tabs-container, .dx-tabpanel-tabs, .dx-multiview-wrapper, .dx-multiview-item-container, .dx-tabpanel-container):focus,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel :is(.dx-tabs, .dx-tabs-wrapper, .dx-tabs-container, .dx-tabpanel-tabs, .dx-multiview-wrapper, .dx-multiview-item-container, .dx-tabpanel-container):focus-within {
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tabs-wrapper,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tabs-scroller,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tabs {
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tabs-container {
    display: inline-flex !important;
    gap: 8px !important;
    border-radius: 8px !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab {
    min-width: 0;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab .dx-item-content {
    padding: 0 !important;
    color: inherit !important;
    font-weight: inherit !important;
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab::before,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab::after,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab .dx-item-content::before,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab .dx-item-content::after {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tab:not(.dx-tab-selected):not(.dx-state-selected):not(:hover):not(.dx-state-hover):not(.dx-state-focused) {
    background: transparent !important;
    border-color: transparent !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-wrapper,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-item-container,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-tabpanel-container {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-wrapper,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-item,
body[data-theme-system="next"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-item-container {
    background: transparent !important;
}

body[data-theme-system="next"] .theme-permissions-grid .permissions-grid-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 3px !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-command-edit .dx-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 6px 12px !important;
    margin: 0 3px !important;
    border: 1px solid var(--brand-orange, #fc4c24) !important;
    border-radius: 4px !important;
    background: var(--brand-orange, #fc4c24) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-command-edit .dx-link:hover,
body[data-theme-system="next"] .theme-permissions-grid .dx-command-edit .dx-link:focus {
    border-color: var(--brand-orange-soft, #ff7a59) !important;
    background: var(--brand-orange-soft, #ff7a59) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-command-expand {
    text-align: center !important;
    vertical-align: middle !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-group-closed,
body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-group-opened {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-group-closed::before,
body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-group-opened::before {
    content: "" !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    font-family: initial !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-group-closed::before {
    border-top: 5px solid transparent !important;
    border-bottom: 5px solid transparent !important;
    border-left: 7px solid var(--theme-text, #ffffff) !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-group-opened::before {
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 7px solid var(--theme-text, #ffffff) !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-group-closed:hover::before {
    border-left-color: var(--brand-orange-soft, #ff7a59) !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-group-opened:hover::before {
    border-top-color: var(--brand-orange-soft, #ff7a59) !important;
}

body[data-theme-system="next"] .permissions-popup-action.dx-button,
body[data-theme-system="next"] .dx-button.permissions-popup-action {
    background: var(--brand-orange, #fc4c24) !important;
    background-color: var(--brand-orange, #fc4c24) !important;
    border-color: var(--brand-orange, #fc4c24) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .permissions-popup-action.dx-button:hover,
body[data-theme-system="next"] .permissions-popup-action.dx-button:focus,
body[data-theme-system="next"] .permissions-popup-action.dx-button.dx-state-hover,
body[data-theme-system="next"] .permissions-popup-action.dx-button.dx-state-focused,
body[data-theme-system="next"] .dx-button.permissions-popup-action:hover,
body[data-theme-system="next"] .dx-button.permissions-popup-action:focus,
body[data-theme-system="next"] .dx-button.permissions-popup-action.dx-state-hover,
body[data-theme-system="next"] .dx-button.permissions-popup-action.dx-state-focused {
    background: var(--brand-orange-soft, #ff7a59) !important;
    background-color: var(--brand-orange-soft, #ff7a59) !important;
    border-color: var(--brand-orange-soft, #ff7a59) !important;
    color: #ffffff !important;
}

body[data-theme-system="next"] .permissions-popup-action.dx-button .dx-button-content,
body[data-theme-system="next"] .permissions-popup-action.dx-button .dx-button-text,
body[data-theme-system="next"] .dx-button.permissions-popup-action .dx-button-content,
body[data-theme-system="next"] .dx-button.permissions-popup-action .dx-button-text {
    color: #ffffff !important;
}

body[data-theme-system="next"] .permissions-detail-title {
    margin: 10px 0 !important;
    color: var(--theme-text) !important;
    font-weight: 600 !important;
}

body[data-theme-system="next"] .permissions-detail-title--spaced {
    margin-top: 20px !important;
}

body[data-theme-system="next"] .permissions-detail-title--popup {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

body[data-theme-system="next"] .theme-permissions-grid--master .dx-command-expand {
    width: 96px !important;
    max-width: 96px !important;
    min-width: 96px !important;
    padding: 8px 10px !important;
    overflow: visible !important;
    font-size: inherit !important;
    line-height: inherit !important;
    visibility: visible !important;
}

body[data-theme-system="next"] .theme-permissions-grid--master td.dx-command-expand,
body[data-theme-system="next"] .theme-permissions-grid--master .dx-header-row td.dx-command-expand,
body[data-theme-system="next"] .theme-permissions-grid--master .dx-datagrid-rowsview td.dx-command-expand,
body[data-theme-system="next"] .theme-permissions-grid--master .dx-datagrid-filter-row td.dx-command-expand {
    width: 96px !important;
    max-width: 96px !important;
    min-width: 96px !important;
    padding: 8px 10px !important;
    overflow: visible !important;
    font-size: inherit !important;
    line-height: inherit !important;
    visibility: visible !important;
}

body[data-theme-system="next"] .theme-permissions-grid--master :is(.dx-datagrid-headers, .dx-datagrid-rowsview) .dx-datagrid-table {
    table-layout: fixed !important;
    width: 100% !important;
}

body[data-theme-system="next"] .theme-permissions-grid,
body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid,
body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-headers,
body[data-theme-system="next"] .theme-permissions-grid .dx-datagrid-rowsview {
    width: 100% !important;
}

body[data-theme-system="next"] .theme-permissions-grid--master .dx-datagrid-rowsview .dx-data-row > td,
body[data-theme-system="next"] .theme-permissions-grid--master .dx-datagrid-headers .dx-header-row > td,
body[data-theme-system="next"] .theme-permissions-grid--master .dx-datagrid-filter-row > td {
    max-width: none !important;
}

body[data-theme-system="next"] .theme-permissions-grid--master .dx-datagrid-filter-row > td {
    overflow: hidden !important;
}

body[data-theme-system="next"] .theme-permissions-grid .permissions-detail-toggle.dx-button,
body[data-theme-system="next"] .theme-permissions-grid .dx-button.permissions-detail-toggle {
    min-height: 30px !important;
    min-width: 64px !important;
    border-radius: 4px !important;
    border: 1px solid var(--theme-border-strong) !important;
    background: var(--theme-surface-field) !important;
    color: var(--theme-text) !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: 100% !important;
}

body[data-theme-system="next"] .theme-permissions-grid--master .permissions-master-expand-header,
body[data-theme-system="next"] .theme-permissions-grid--master .permissions-master-expand-filter,
body[data-theme-system="next"] .theme-permissions-grid--master .permissions-master-expand-cell {
    text-align: center !important;
}

body[data-theme-system="next"] .theme-permissions-grid .permissions-detail-toggle .dx-button-content {
    gap: 5px !important;
    padding: 6px 7px !important;
}

body[data-theme-system="next"] .theme-permissions-grid .permissions-detail-toggle .dx-button-text {
    font-size: 11px !important;
    font-weight: 500 !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-command-edit,
body[data-theme-system="next"] .theme-permissions-grid .dx-command-edit.dx-command-edit-with-icons {
    overflow: visible !important;
    white-space: nowrap !important;
}

body[data-theme-system="next"] .theme-permissions-grid .dx-command-edit .dx-link {
    padding: 6px 10px !important;
    margin: 0 2px !important;
}

body[data-theme-system="next"] .theme-permissions-grid .permissions-detail-toggle .dx-icon {
    font-size: 14px !important;
}

body[data-theme-system="next"] .theme-permissions-grid .permissions-detail-toggle.dx-button:hover,
body[data-theme-system="next"] .theme-permissions-grid .permissions-detail-toggle.dx-button:focus,
body[data-theme-system="next"] .theme-permissions-grid .permissions-detail-toggle.dx-button.dx-state-hover,
body[data-theme-system="next"] .theme-permissions-grid .permissions-detail-toggle.dx-button.dx-state-focused,
body[data-theme-system="next"] .theme-permissions-grid .dx-button.permissions-detail-toggle:hover,
body[data-theme-system="next"] .theme-permissions-grid .dx-button.permissions-detail-toggle:focus,
body[data-theme-system="next"] .theme-permissions-grid .dx-button.permissions-detail-toggle.dx-state-hover,
body[data-theme-system="next"] .theme-permissions-grid .dx-button.permissions-detail-toggle.dx-state-focused {
    border-color: var(--theme-accent) !important;
    background: var(--theme-grid-toolbar-hover-bg) !important;
    color: var(--theme-text) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] #metodo-camara .entrada-camera-source {
    display: block;
    width: min(100%, 720px);
    margin: 22px 0 28px;
    padding: 0;
}

body[data-theme-system="next"] #metodo-camara .entrada-camera-source label {
    display: block;
    margin-bottom: 8px;
    color: var(--theme-text);
    font-weight: 600;
}

body[data-theme-system="next"] #metodo-camara #sourceSelect.theme-camera-select {
    min-height: 44px;
    border-color: rgba(252, 76, 36, 0.62) !important;
    background-color: var(--theme-surface-field) !important;
    color: var(--theme-text) !important;
}

body[data-theme-system="next"] #metodo-input .entrada-scan-input {
    width: 100%;
}

body[data-theme-system="next"] .entrada-video {
    border: 4px solid #00ff00;
}

body[data-theme-system="next"] #VistaAutorizado {
    margin-top: 20px;
    max-width: 760px;
}

body[data-theme-system="next"] #VistaAutorizado .entrada-autorizado-card {
    gap: 22px;
    padding: 22px 26px;
}

body[data-theme-system="next"] #VistaAutorizado .entrada-autorizado-foto {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border: 2px solid var(--theme-border-strong, #B9B9C8) !important;
    display: block;
}

body[data-theme-system="next"] #VistaAutorizado .entrada-autorizado-datos {
    flex: 1 1 0;
    min-width: 0;
}

body[data-theme-system="next"] #VistaAutorizado .entrada-autorizado-dato {
    min-width: 150px;
    overflow-wrap: anywhere;
}

body[data-theme-system="next"] #VistaAutorizado .entrada-autorizado-dato label {
    margin-bottom: 0;
}

body[data-theme-system="next"] #modal-preacreditacion .modal-preacreditacion-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto !important;
    padding: 24px;
}

body[data-theme-system="next"] #modal-preacreditacion .modal-preacreditacion-body .row {
    row-gap: 12px;
}

body[data-theme-system="next"] #modal-preacreditacion .modal-preacreditacion-body::-webkit-scrollbar {
    width: 8px;
}

body[data-theme-system="next"] #modal-preacreditacion .modal-preacreditacion-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

body[data-theme-system="next"] #modal-preacreditacion .modal-preacreditacion-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

body[data-theme-system="next"] #modal-preacreditacion .modal-preacreditacion-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

body[data-theme-system="next"] .theme-field-error {
    color: #ff5722;
    font-size: 13px;
    display: none;
}

/* =========================================
   NORMALIZACION FINAL DE BORDES Y CONTENEDORES
   ========================================= */
body[data-theme-system="next"] {
    --theme-field-radius: 10px;
}

body[data-theme-system="next"][data-theme-variant="light"] {
    --theme-border-strong: rgba(27, 35, 49, 0.4);
    --theme-grid-search-bg: rgba(241, 245, 252, 1);
    --theme-grid-filter-button-bg: rgba(230, 236, 246, 1);
}

body[data-theme-system="next"] :is(.dx-texteditor, .dx-selectbox, .dx-datebox, .dx-numberbox, .dx-textarea, .dx-dropdowneditor) {
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    border-radius: var(--theme-field-radius) !important;
    background: transparent !important;
}

body[data-theme-system="next"] :is(.dx-texteditor-container, .dx-dropdowneditor-input-wrapper) {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: var(--theme-border-strong) !important;
    border-radius: var(--theme-field-radius) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body[data-theme-system="next"] :is(.dx-texteditor-input-container, .dx-dropdowneditor-button, .dx-texteditor-buttons-container) {
    border-radius: 0 !important;
}

body[data-theme-system="next"] :is(.dx-dropdowneditor-button, .dx-texteditor-buttons-container) {
    border-left: 1px solid var(--theme-border-strong) !important;
    background: transparent !important;
}

body[data-theme-system="next"] :is(.dx-texteditor.dx-state-focused, .dx-selectbox.dx-state-focused, .dx-datebox.dx-state-focused, .dx-numberbox.dx-state-focused, .dx-textarea.dx-state-focused, .dx-dropdowneditor.dx-state-focused, .dx-texteditor:focus-within, .dx-selectbox:focus-within, .dx-datebox:focus-within, .dx-numberbox:focus-within, .dx-textarea:focus-within, .dx-dropdowneditor:focus-within) {
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.dx-texteditor.dx-state-focused, .dx-selectbox.dx-state-focused, .dx-datebox.dx-state-focused, .dx-numberbox.dx-state-focused, .dx-textarea.dx-state-focused, .dx-dropdowneditor.dx-state-focused, .dx-texteditor:focus-within, .dx-selectbox:focus-within, .dx-datebox:focus-within, .dx-numberbox:focus-within, .dx-textarea:focus-within, .dx-dropdowneditor:focus-within) :is(.dx-texteditor-container, .dx-dropdowneditor-input-wrapper) {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 1px rgba(252, 76, 36, 0.18) !important;
}

body[data-theme-system="next"] .theme-password-field,
body[data-theme-system="next"] .theme-password-field .dx-textbox,
body[data-theme-system="next"] .theme-password-field .dx-texteditor,
body[data-theme-system="next"] #ddlTema.dx-selectbox,
body[data-theme-system="next"] #ddlTema.dx-dropdowneditor {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: var(--theme-field-radius) !important;
}

body[data-theme-system="next"] .theme-password-field .dx-texteditor-container,
body[data-theme-system="next"] .theme-password-field .dx-texteditor-input-container,
body[data-theme-system="next"] .theme-password-field .dx-texteditor-buttons-container,
body[data-theme-system="next"] #ddlTema .dx-texteditor-container,
body[data-theme-system="next"] #ddlTema .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] #ddlTema .dx-texteditor-input-container,
body[data-theme-system="next"] #ddlTema .dx-texteditor-buttons-container,
body[data-theme-system="next"] #ddlTema .dx-dropdowneditor-button {
    min-height: 44px !important;
    border-radius: var(--theme-field-radius) !important;
    border-color: var(--theme-border-strong) !important;
    background: var(--theme-surface-field) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .theme-password-field .dx-texteditor-buttons-container,
body[data-theme-system="next"] .theme-password-field .dx-dropdowneditor-button,
body[data-theme-system="next"] #ddlTema .dx-texteditor-buttons-container,
body[data-theme-system="next"] #ddlTema .dx-dropdowneditor-button {
    border-left: 1px solid var(--theme-border-strong) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

body[data-theme-system="next"] .theme-password-field .dx-texteditor-input-container,
body[data-theme-system="next"] #ddlTema .dx-texteditor-input-container {
    border-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

body[data-theme-system="next"] .theme-password-field .dx-texteditor-input,
body[data-theme-system="next"] #ddlTema .dx-texteditor-input {
    min-height: 44px !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-selectbox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-datebox,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: var(--theme-field-radius) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-input-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button {
    border: 1px solid var(--theme-border-strong) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-field) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-buttons-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-dropdowneditor-button {
    border-left: 1px solid var(--theme-border-strong) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    background: var(--theme-grid-filter-button-bg) !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-input-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-texteditor-input-container {
    border-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel :is(.dx-texteditor.dx-state-focused, .dx-texteditor:focus-within) .dx-texteditor-container,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row :is(.dx-texteditor.dx-state-focused, .dx-selectbox.dx-state-focused, .dx-datebox.dx-state-focused, .dx-dropdowneditor.dx-state-focused, .dx-texteditor:focus-within, .dx-selectbox:focus-within, .dx-datebox:focus-within, .dx-dropdowneditor:focus-within) :is(.dx-texteditor-container, .dx-dropdowneditor-input-wrapper, .dx-texteditor-input-container, .dx-texteditor-buttons-container, .dx-dropdowneditor-button) {
    border-color: var(--theme-accent) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-input-container,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel .dx-texteditor-buttons-container,
body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row :is(.dx-texteditor-container, .dx-dropdowneditor-input-wrapper, .dx-texteditor-input-container, .dx-texteditor-buttons-container, .dx-dropdowneditor-button) {
    border-color: rgba(27, 35, 49, 0.36) !important;
}

body#signinBody[data-sa-theme="1"] .signin-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

body#signinBody[data-sa-theme="1"] .signin-actions .login__block__btn {
    margin: 0 !important;
    width: 100% !important;
}

body#signinBody[data-sa-theme="1"] .signin-actions__primary,
body#signinBody[data-sa-theme="1"] .signin-actions__secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

body#signinBody[data-sa-theme="1"] .signin-actions__primary {
    order: 1;
}

body#signinBody[data-sa-theme="1"] .signin-actions__secondary {
    order: 2;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f7f4f1 !important;
    box-shadow: none !important;
}

body#signinBody[data-sa-theme="1"] .signin-actions__secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

body#signinBody[data-sa-theme="1"] .signin-actions__secondary span {
    font-size: 0.95rem !important;
}

html:has(body#signinBody[data-sa-theme="1"]),
body#signinBody[data-sa-theme="1"] {
    min-height: 100dvh !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body#signinBody[data-sa-theme="1"] {
    background-color: #2d2d2d !important;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.38)),
        radial-gradient(circle at 18% 18%, rgba(252, 76, 36, 0.3) 0, rgba(252, 76, 36, 0.08) 30%, transparent 58%),
        radial-gradient(circle at 82% 18%, rgba(242, 80, 159, 0.24) 0, rgba(242, 80, 159, 0.08) 32%, transparent 62%),
        radial-gradient(circle at 18% 86%, rgba(242, 80, 159, 0.16) 0, rgba(252, 76, 36, 0.08) 34%, transparent 64%),
        radial-gradient(circle at 82% 78%, rgba(45, 45, 45, 0.3) 0, rgba(45, 45, 45, 0.12) 36%, transparent 68%),
        linear-gradient(135deg, #413230 0%, #342f33 48%, #2d2d2d 100%) !important;
    background-size: 100% 100%, 118% 118%, 120% 120%, 126% 126%, 118% 118%, 100% 100% !important;
    background-position: center center !important;
    background-attachment: fixed !important;
}

body#signinBody[data-sa-theme="1"] .login {
    align-items: flex-start !important;
    min-height: auto !important;
    overflow: visible !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

body#signinBody[data-sa-theme="1"] .login__block {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: linear-gradient(180deg, #393939 0%, #2b2b2b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body#signinBody[data-sa-theme="1"] .login__block__body {
    background: linear-gradient(180deg, #333333 0%, #292929 100%) !important;
}

body#loginBody[data-sa-theme="1"] {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.38)),
        radial-gradient(circle at 18% 18%, rgba(252, 76, 36, 0.42) 0, rgba(252, 76, 36, 0.12) 30%, transparent 58%),
        radial-gradient(circle at 82% 18%, rgba(242, 80, 159, 0.38) 0, rgba(242, 80, 159, 0.12) 32%, transparent 62%),
        radial-gradient(circle at 18% 86%, rgba(242, 80, 159, 0.24) 0, rgba(252, 76, 36, 0.12) 34%, transparent 64%),
        radial-gradient(circle at 82% 78%, rgba(45, 45, 45, 0.36) 0, rgba(45, 45, 45, 0.14) 36%, transparent 68%),
        linear-gradient(135deg, #e14d2e 0%, #bb467d 52%, #2d2d2d 100%) !important;
}

/* =========================================
   CIERRE DE CAPAS DEVEXTREME: UN SOLO BORDE VISIBLE
   ========================================= */
body[data-theme-system="next"] :is(.dx-texteditor-input-container, .dx-dropdowneditor-input-wrapper .dx-texteditor-input-container) {
    border: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.theme-password-field, #ddlTema, .grilla-dinamica, .theme-grid) :is(.dx-texteditor, .dx-selectbox, .dx-datebox, .dx-numberbox, .dx-textarea, .dx-dropdowneditor) {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

body[data-theme-system="next"] :is(.theme-password-field, #ddlTema) :is(.dx-texteditor-container, .dx-dropdowneditor-input-wrapper) {
    border: 1px solid var(--theme-border-strong) !important;
    background: var(--theme-surface-field) !important;
}

body[data-theme-system="next"] :is(.theme-password-field, #ddlTema) :is(.dx-texteditor-input-container, .dx-texteditor-input) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-search-panel,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-cell,
body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) .dx-datagrid-filter-row .dx-editor-with-menu {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) :is(.dx-datagrid-search-panel .dx-texteditor-container, .dx-datagrid-filter-row .dx-texteditor-container, .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper) {
    border: 1px solid var(--theme-border-strong) !important;
    background: var(--theme-surface-field) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) :is(.dx-datagrid-search-panel .dx-texteditor-input-container, .dx-datagrid-filter-row .dx-texteditor-input-container) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) :is(.dx-datagrid-search-panel .dx-texteditor-buttons-container, .dx-datagrid-filter-row .dx-texteditor-buttons-container, .dx-datagrid-filter-row .dx-dropdowneditor-button) {
    background: var(--theme-grid-filter-button-bg) !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 1px solid var(--theme-border-strong) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.grilla-dinamica, .theme-grid) :is(.dx-datagrid-search-panel .dx-texteditor-input, .dx-datagrid-filter-row .dx-texteditor-input, .dx-datagrid-filter-row .dx-selectbox .dx-texteditor-input) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] {
    --theme-grid-search-bg: rgba(235, 241, 249, 0.98);
    --theme-grid-filter-button-bg: rgba(223, 231, 242, 0.98);
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) :is(.dx-datagrid-search-panel .dx-texteditor-container, .dx-datagrid-filter-row .dx-texteditor-container, .dx-datagrid-filter-row .dx-dropdowneditor-input-wrapper) {
    border-color: rgba(27, 35, 49, 0.34) !important;
    background: rgba(237, 242, 250, 1) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.grilla-dinamica, .theme-grid) :is(.dx-datagrid-search-panel .dx-texteditor-buttons-container, .dx-datagrid-filter-row .dx-texteditor-buttons-container, .dx-datagrid-filter-row .dx-dropdowneditor-button) {
    border-left-color: rgba(27, 35, 49, 0.34) !important;
    background: rgba(223, 231, 242, 1) !important;
}

.dx-treeview-toggle-item-visibility::before,
.dx-treeview-toggle-item-visibility-opened::before {
    font-family: 'dxicons' !important;
    display: inline-block;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

/* 1. Botón GUARDAR - Solo en permisos */
.dx-button.permissions-popup-action[aria-label="Guardar"],
.dx-button.permissions-popup-action[aria-label="Guardar"] .dx-button-content,
.dx-button.permissions-popup-action[aria-label="Guardar"]::before,
.dx-button.permissions-popup-action[aria-label="Guardar"]::after {
    background: #fc4c24 !important;
    background-color: #fc4c24 !important;
    border-color: #fc4c24 !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* 2. Botón CANCELAR - Gris oscuro solo en permisos */
.dx-button.permissions-popup-action[aria-label="Cancelar"],
.dx-button.permissions-popup-action[aria-label="Cancelar"] .dx-button-content,
.dx-button.permissions-popup-action[aria-label="Cancelar"]::before,
.dx-button.permissions-popup-action[aria-label="Cancelar"]::after {
    background: #454545 !important;
    background-color: #454545 !important;
    border-color: #454545 !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

    /* 3. Asegurar textos en blanco */
    .dx-button.permissions-popup-action[aria-label="Guardar"] .dx-button-text,
    .dx-button.permissions-popup-action[aria-label="Cancelar"] .dx-button-text {
        color: #ffffff !important;
        position: relative !important;
        z-index: 2 !important;
    }

/* 4. Efectos Hover contenidos */
.dx-button.permissions-popup-action[aria-label="Guardar"]:hover,
.dx-button.permissions-popup-action[aria-label="Guardar"]:hover .dx-button-content,
.dx-button.permissions-popup-action[aria-label="Guardar"]:hover::before {
    background: #ff7a59 !important;
    background-color: #ff7a59 !important;
    border-color: #ff7a59 !important;
}

.dx-button.permissions-popup-action[aria-label="Cancelar"]:hover,
.dx-button.permissions-popup-action[aria-label="Cancelar"]:hover .dx-button-content,
.dx-button.permissions-popup-action[aria-label="Cancelar"]:hover::before {
    background: #555555 !important;
    background-color: #555555 !important;
    border-color: #555555 !important;
}


.dx-scrollable-container::-webkit-scrollbar {
    width: 8px; 
    height: 8px;
}

.dx-scrollable-container::-webkit-scrollbar-track {
    background: #2b2b2b; 
    border-radius: 4px;
}

.dx-scrollable-container::-webkit-scrollbar-thumb {
    background: #555; 
    border-radius: 4px;
    border: 1px solid #333; 
}

    .dx-scrollable-container::-webkit-scrollbar-thumb:hover {
        background: #777; 
    }


.dx-scrollable-container {
    scrollbar-width: thin;
    scrollbar-color: #555 #2b2b2b; 
}

/* ==========================================================================
   ESTILOS GLOBALES PARA POPUPS DE FILTROS (DEVEXTREME) - MODO OSCURO
   ========================================================================== */

.dx-header-filter-menu .dx-overlay-content,
.dx-dropdowneditor-overlay .dx-overlay-content {
    background-color: #2a2a2d !important;
    border: 1px solid #444 !important; 
    border-radius: 8px !important;
    min-width: 260px !important; 
}


.dx-header-filter-menu .dx-popup-content,
.dx-header-filter-menu .dx-scrollable-content {
    background-color: #2a2a2d !important;
    color: #ffffff !important;
}


.dx-header-filter-menu .dx-popup-bottom,
.dx-header-filter-menu .dx-toolbar {
    background-color: transparent !important; 
    border-top: none !important;
    padding: 10px !important;
}


.dx-header-filter-menu .dx-toolbar-items-container {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important; 
    flex-wrap: nowrap !important;
}


.dx-header-filter-menu .dx-button {
    background-color: #ff5722 !important;
    border: none !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    min-width: 100px !important;
}

    .dx-header-filter-menu .dx-button .dx-button-content {
        padding: 8px 15px !important;
    }


.dx-header-filter-menu .dx-list-item:hover,
.dx-header-filter-menu .dx-list-item.dx-state-hover {
    background-color: #3f3f46 !important;
}

body[data-theme-system="next"] .dx-header-filter-menu .dx-list,
body[data-theme-system="next"] .dx-header-filter-menu .dx-scrollable,
body[data-theme-system="next"] .dx-header-filter-menu .dx-scrollable-wrapper,
body[data-theme-system="next"] .dx-header-filter-menu .dx-scrollable-container,
body[data-theme-system="next"] .dx-header-filter-menu .dx-scrollable-content,
body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item,
body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item-content {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item-before-bag,
body[data-theme-system="next"] .dx-header-filter-menu .dx-list-select-all-checkbox-container {
    background-color: transparent !important;
    border: none !important;
}

body[data-theme-system="next"] .dx-header-filter-menu .dx-checkbox-container,
body[data-theme-system="next"] .dx-header-filter-menu .dx-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-theme-system="next"] .dx-header-filter-menu .dx-checkbox-icon::before {
    margin: 0 !important;
    transform: none !important;
}

body[data-theme-system="next"] .dx-header-filter-menu .dx-checkbox-checked .dx-checkbox-icon::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 4px !important;
    height: 8px !important;
    margin: 0 !important;
    border-right: 2px solid #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: block !important;
    box-sizing: border-box !important;
    transform: translate(-45%, -56%) rotate(45deg) !important;
}

body[data-theme-system="next"] .dx-header-filter-menu .dx-checkbox-indeterminate .dx-checkbox-icon::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 8px !important;
    height: 2px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--brand-orange) !important;
    display: block !important;
    transform: translate(-50%, -50%) !important;
}

body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item {
    border-top: none !important;
    border-bottom: none !important;
}

    body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item.dx-state-hover,
    body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item.dx-state-active,
    body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item.dx-state-focused,
    body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item:hover {
        background-color: transparent !important;
    }

        body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item.dx-state-hover .dx-list-item-before-bag,
        body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item:hover .dx-list-item-before-bag,
        body[data-theme-system="next"] .dx-header-filter-menu .dx-checkbox.dx-state-hover .dx-checkbox-icon,
        body[data-theme-system="next"] .dx-header-filter-menu .dx-checkbox.dx-state-focused .dx-checkbox-icon {
            background-color: transparent !important;
        }


body[data-theme-system="next"] .dx-header-filter-menu .dx-list-select-all {
    border-bottom: 1px solid #444 !important; 
    margin-bottom: 8px !important;
    padding-bottom: 8px !important; 
}

body[data-theme-system="next"] .dx-header-filter-menu .dx-list-item-content {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

body[data-theme-system="next"] .dx-header-filter-menu .dx-scrollable-bottom-pocket,
body[data-theme-system="next"] .dx-header-filter-menu .dx-scrollable-top-pocket {
    display: none !important;
    background: transparent !important;
    border: none !important;
}


.dx-dropdowneditor-overlay.dx-overlay-content {
    min-width: 300px !important; 
    width: auto !important;
}

.dx-dropdowneditor-overlay .dx-popup-content {
    min-width: 300px !important;
}


.dx-dropdowneditor-overlay .dx-toolbar-items-container {
    width: 100% !important;
}


.dx-dropdowneditor-overlay .dx-toolbar-after {
    float: none !important; 
    display: flex !important;
    justify-content: center !important; 
    width: 100% !important;
}


.dx-dropdowneditor-overlay .dx-toolbar-item {
    margin: 0 5px !important;
    float: none !important;
}


/* --- Graficos Dashboard Claro --- */
:root {
    --chart-line-primary: #ff7842;
    --chart-line-secondary: #0088cc;
    --chart-grid: rgba(0, 0, 0, 0.1);
    --chart-text: #111827;
    --chart-donut-1: #0f172a;
    --chart-donut-2: #0ea5a4;
    --chart-donut-3: #f97316;
    --chart-donut-4: #2563eb;
    --chart-donut-5: #94a3b8;
}

/* --- Graficos Dashboard Oscuro --- */
body[data-theme-system="next"][data-theme-variant="dark"] {
    --chart-line-primary: #FC4C24;
    --chart-line-secondary: #22c55e;
    --chart-grid: rgba(255, 255, 255, 0.12);
    --chart-text: #ffffff;
    --chart-donut-1: #FC4C24;
    --chart-donut-2: #22c55e;
    --chart-donut-3: #8b5cf6;
    --chart-donut-4: #14b8a6;
    --chart-donut-5: #facc15;
}

/* --- Solución para Dropdowns en Modo Claro --- */

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-dropdowneditor-overlay, .dx-context-menu, .dx-menu-phone-overlay, .dx-datagrid-menu-container) .dx-list-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-dropdowneditor-overlay, .dx-context-menu, .dx-menu-phone-overlay, .dx-datagrid-menu-container) .dx-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-dropdowneditor-overlay, .dx-context-menu, .dx-menu-phone-overlay, .dx-datagrid-menu-container) .dx-item.dx-state-hover .dx-item-content {
    background-color: rgba(224, 232, 247, 0.88) !important;
    color: #374151 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-dropdowneditor-overlay, .dx-context-menu, .dx-menu-phone-overlay, .dx-datagrid-menu-container) .dx-list-item.dx-state-hover .dx-list-item-content {
    color: #374151 !important;
}



body[data-theme-system="next"][data-theme-variant="light"] .dx-calendar .dx-calendar-cell.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-calendar .dx-calendar-cell.dx-state-hover span,
body[data-theme-system="next"][data-theme-variant="light"] .dx-calendar .dx-calendar-cell.dx-state-hover div {
    background-color: #ff9e78 !important;
    background-image: none !important;
    background: #ff9e78 !important;
    box-shadow: none !important;
    filter: none !important;
    border-color: transparent !important;
    border: none !important;
    color: #000000 !important;
    transition: none !important;
}

/* --- Forzar bordes en filas de tablas en Modo Claro --- */
body[data-theme-system="next"][data-theme-variant="light"] #operatorsCard table.table-sm tbody tr td {
    border-bottom: 1px solid #e0e0e0 !important; 
}

body[data-theme-system="next"][data-theme-variant="light"] #operatorsCard table.table-sm tbody tr:last-child td {
    border-bottom: none !important;
}

/* --- Separador visible para los items de la Pizarra en Modo Claro --- */

body[data-theme-system="next"][data-theme-variant="light"] #boardList li {
    border-bottom: 1px solid #e0e0e0 !important; 
    padding-bottom: 10px !important; 
    margin-bottom: 10px !important; 
}

    body[data-theme-system="next"][data-theme-variant="light"] #boardList li:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

body[data-theme-system="next"] #grdPreacreditaciones .preac-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

body[data-theme-system="next"] #grdPreacreditaciones td.preac-actions-column,
body[data-theme-system="next"] #grdPreacreditaciones .dx-header-row td.preac-actions-column,
body[data-theme-system="next"] #grdPreacreditaciones .dx-filter-row td.preac-actions-column {
    min-width: 320px !important;
    width: 320px !important;
}

body[data-theme-system="next"] #grdPreacreditaciones td.preac-actions-column .dx-template-wrapper {
    overflow: visible !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-grid .dx-datagrid-filter-row.dx-row-focused > td,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-grid .dx-datagrid-filter-row > td.dx-focused,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-grid .dx-datagrid-filter-row > td.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-grid .dx-datagrid-filter-row > td:hover {
    background: var(--theme-grid-cell-bg) !important;
    background-color: var(--theme-grid-cell-bg) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-grid .dx-datagrid-filter-row :is(.dx-texteditor.dx-state-focused, .dx-selectbox.dx-state-focused, .dx-datebox.dx-state-focused, .dx-dropdowneditor.dx-state-focused, .dx-texteditor:focus-within, .dx-selectbox:focus-within, .dx-datebox:focus-within, .dx-dropdowneditor:focus-within) :is(.dx-texteditor-container, .dx-dropdowneditor-input-wrapper, .dx-texteditor-input-container, .dx-texteditor-buttons-container, .dx-dropdowneditor-button) {
    background: var(--theme-surface-field) !important;
    background-color: var(--theme-surface-field) !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 1px rgba(252, 76, 36, 0.18) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-item.dx-item-selected.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-item.dx-state-hover > .dx-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-item.dx-item-selected.dx-state-hover > .dx-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-item-container > .dx-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-multiview-item-container > .dx-item.dx-item-selected.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-tabpanel-container .dx-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-tabpanel-container .dx-item.dx-state-hover .dx-item-content {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-tab .dx-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-tab:hover .dx-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-tab.dx-state-hover .dx-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-tab.dx-state-focused .dx-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-tab-selected .dx-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .theme-permissions-tabs.dx-tabpanel .dx-tab.dx-state-selected .dx-item-content {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock svg,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock g,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock path,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock circle,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock line,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-hourarrow,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-minutearrow {
    stroke: var(--brand-orange) !important;
    fill: var(--brand-orange) !important;
    color: var(--brand-orange) !important;
    opacity: 1 !important;
}

body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock text,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock text {
    fill: var(--brand-orange) !important;
    stroke: transparent !important;
    color: var(--brand-orange) !important;
    font-weight: 700 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-overlay-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-popup-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-scrollable-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-popup-bottom,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-toolbar {
    background: var(--theme-overlay-bg) !important;
    background-color: var(--theme-overlay-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-scrollable,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-scrollable-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-scrollable-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-scrollable-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item-before-bag,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-select-all-checkbox-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-node,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-item,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-toggle-item-visibility,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-toggle-item-visibility-opened {
    background: transparent !important;
    background-color: transparent !important;
    color: #4b5563 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-select-all {
    border-bottom: 1px solid rgba(27, 35, 49, 0.14) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-focused,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-active,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-node:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-node.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-selected,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-selected.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-item.dx-state-selected,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-item.dx-state-selected.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-node.dx-state-selected,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-node.dx-state-selected.dx-state-hover {
    background: rgba(224, 232, 247, 0.88) !important;
    background-color: rgba(224, 232, 247, 0.88) !important;
    color: #374151 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item:hover .dx-list-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-hover .dx-list-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-focused .dx-list-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-active .dx-list-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-node:hover .dx-treeview-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-node.dx-state-hover .dx-treeview-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-item.dx-state-hover .dx-treeview-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-selected .dx-list-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-item.dx-state-selected .dx-treeview-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-node.dx-state-selected .dx-treeview-item-content {
    color: #374151 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-list-item.dx-state-selected .dx-checkbox-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-item.dx-state-selected .dx-checkbox-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-treeview-node.dx-state-selected .dx-checkbox-icon {
    border-color: rgba(252, 76, 36, 0.55) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-item.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-item.dx-state-hover .dx-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-item.dx-state-selected,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-item.dx-state-selected .dx-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-item.dx-state-selected.dx-state-hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-item.dx-state-selected.dx-state-hover .dx-item-content {
    background: rgba(224, 232, 247, 0.88) !important;
    background-color: rgba(224, 232, 247, 0.88) !important;
    color: #374151 !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-checkbox-icon {
    background: transparent !important;
    background-color: transparent !important;
    border-color: rgba(27, 35, 49, 0.22) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-checkbox-checked .dx-checkbox-icon {
    background: var(--brand-orange) !important;
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-button {
    background: var(--brand-orange) !important;
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    color: #ffffff !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-button:hover,
body[data-theme-system="next"][data-theme-variant="light"] .dx-header-filter-menu .dx-button.dx-state-hover {
    background: var(--brand-orange-soft) !important;
    background-color: var(--brand-orange-soft) !important;
    border-color: var(--brand-orange-soft) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock {
    display: block !important;
    flex: 0 0 168px !important;
    min-width: 168px !important;
    width: 168px !important;
    height: 168px !important;
    overflow: visible !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-dropdowneditor,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-selectbox {
    min-width: 82px !important;
    width: 82px !important;
    flex: 0 0 82px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-texteditor-input {
    padding-left: 10px !important;
    padding-right: 28px !important;
    font-size: 12px !important;
    text-align: center !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-dropdowneditor-button {
    width: 28px !important;
    min-width: 28px !important;
}

body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field .dx-timeview-format12,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field .dx-timeview-format12 .dx-dropdowneditor,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field .dx-timeview-format12 .dx-selectbox {
    min-width: 82px !important;
    width: 82px !important;
    flex: 0 0 82px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-hourarrow,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-minutearrow,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock text,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock text {
    opacity: 1 !important;
    stroke: var(--brand-orange) !important;
    fill: var(--brand-orange) !important;
    color: var(--brand-orange) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-calendar-body td,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-calendar-body span,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-calendar-body div {
    text-decoration: none !important;
    stroke: transparent !important;
    fill: currentColor !important;
}

body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field .dx-timeview-format12,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field .dx-timeview-format12 .dx-dropdowneditor,
body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field .dx-timeview-format12 .dx-selectbox {
    min-width: 94px !important;
    width: 94px !important;
    flex: 0 0 94px !important;
}

body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-texteditor-input {
    padding-left: 10px !important;
    padding-right: 30px !important;
    text-align: center !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body[data-theme-system="next"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-dropdowneditor-button {
    width: 30px !important;
    min-width: 30px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 168px !important;
    min-width: 168px !important;
    width: 168px !important;
    height: 168px !important;
    overflow: visible !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock svg,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock g,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock circle,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock line,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock path,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-hourarrow,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-minutearrow {
    stroke: rgba(44, 52, 66, 0.92) !important;
    fill: none !important;
    color: rgba(44, 52, 66, 0.92) !important;
    stroke-width: 2px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-analog-clock text,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-clock text {
    fill: rgba(44, 52, 66, 0.96) !important;
    stroke: transparent !important;
    color: rgba(44, 52, 66, 0.96) !important;
    font-weight: 700 !important;
}

body[data-theme-system="next"] .dx-popup-content .dx-timeview-field .dx-timeview-format12,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-field .dx-timeview-format12 .dx-dropdowneditor,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-field .dx-timeview-format12 .dx-selectbox {
    min-width: 94px !important;
    width: 94px !important;
    flex: 0 0 94px !important;
}

body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-input {
    padding-left: 10px !important;
    padding-right: 30px !important;
    text-align: center !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-button {
    width: 30px !important;
    min-width: 30px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 168px !important;
    min-width: 168px !important;
    width: 168px !important;
    height: 168px !important;
    overflow: visible !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock svg,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock g,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock circle,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock line,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock path,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-hourarrow,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-minutearrow {
    stroke: rgba(44, 52, 66, 0.92) !important;
    fill: none !important;
    color: rgba(44, 52, 66, 0.92) !important;
    stroke-width: 2px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock text,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-clock text {
    fill: rgba(44, 52, 66, 0.96) !important;
    stroke: transparent !important;
    color: rgba(44, 52, 66, 0.96) !important;
    font-weight: 700 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-clock {
    min-width: 169px !important;
    min-height: 169px !important;
    background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='191' height='191' viewBox='0 0 191 191'%3E%3Cpath fill='%23566070' d='M95.5 0C42.8 0 0 42.8 0 95.5S42.8 191 95.5 191 191 148.2 191 95.5 148.2 0 95.5 0zm0 187.6c-50.848 0-92.1-41.25-92.1-92.1 0-50.848 41.252-92.1 92.1-92.1 50.85 0 92.1 41.252 92.1 92.1 0 50.85-41.25 92.1-92.1 92.1z'/%3E%3Ccircle fill='%23566070' cx='95' cy='95' r='7'/%3E%3Ctext x='95.5' y='19' text-anchor='middle' font-size='16' fill='%23566070' font-family='Arial'%3E12%3C/text%3E%3Ctext x='16' y='101' text-anchor='middle' font-size='16' fill='%23566070' font-family='Arial'%3E9%3C/text%3E%3Ctext x='175' y='101' text-anchor='middle' font-size='16' fill='%23566070' font-family='Arial'%3E3%3C/text%3E%3Ctext x='95.5' y='180' text-anchor='middle' font-size='16' fill='%23566070' font-family='Arial'%3E6%3C/text%3E%3C/svg%3E") center center / 161px 161px no-repeat !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-hourarrow {
    background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='57' viewBox='0 0 5 57'%3E%3Cpath fill='%23566070' d='M5 54c0 1.7-1.1 3-2.5 3S0 55.7 0 54V3C0 1.4 1.1 0 2.5 0S5 1.4 5 3v51z'/%3E%3C/svg%3E") center center / 5px 37px no-repeat !important;
    background-color: transparent !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-minutearrow {
    background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='79' viewBox='0 0 5 79'%3E%3Cpath fill='%23566070' d='M5 76c0 1.7-1.1 3-2.5 3S0 77.7 0 76V3C0 1.4 1.1 0 2.5 0S5 1.4 5 3v73z'/%3E%3C/svg%3E") center center / 5px 69px no-repeat !important;
    background-color: transparent !important;
}

body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-container,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-input-container {
    width: 72px !important;
    min-width: 72px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-buttons-container {
    border-radius: 14px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-input {
    font-size: 14px !important;
    color: rgba(44, 52, 66, 0.82) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-buttons-container,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-button {
    background: rgba(230, 236, 247, 0.96) !important;
    background-color: rgba(230, 236, 247, 0.96) !important;
    border-color: rgba(27, 35, 49, 0.14) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-buttons-container {
    width: 24px !important;
    min-width: 24px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 :is(.dx-dropdowneditor-button, .dx-texteditor-buttons-container):is(:hover, :focus, :active, .dx-state-hover, .dx-state-focused, .dx-state-active),
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 :is(.dx-dropdowneditor-button, .dx-texteditor-buttons-container):is(:hover, :focus, :active, .dx-state-hover, .dx-state-focused, .dx-state-active) .dx-button-content {
    background: rgba(230, 236, 247, 0.96) !important;
    background-color: rgba(230, 236, 247, 0.96) !important;
    border-color: rgba(27, 35, 49, 0.14) !important;
    box-shadow: none !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-button .dx-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-button .dx-icon::before {
    color: rgba(44, 52, 66, 0.82) !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-overlay-content:not(:has(.dx-calendar)):not(:has(.dx-timeview)):not(:has(.dx-treeview)) {
    width: auto !important;
    min-width: 72px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-overlay-content:not(:has(.dx-calendar)):not(:has(.dx-timeview)):not(:has(.dx-treeview)) .dx-list,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-overlay .dx-overlay-content:not(:has(.dx-calendar)):not(:has(.dx-timeview)):not(:has(.dx-treeview)) .dx-scrollable-container {
    width: auto !important;
    min-width: 72px !important;
}

body[data-theme-system="next"] .dx-popup-content .dx-timeview-field .dx-timeview-format12,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-field .dx-timeview-format12 .dx-dropdowneditor,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-field .dx-timeview-format12 .dx-selectbox,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-container,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-buttons-container,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-button {
    width: 72px !important;
    min-width: 72px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
}

body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-input {
    height: 42px !important;
    line-height: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-button,
body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-texteditor-buttons-container {
    width: 24px !important;
    min-width: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-theme-system="next"] .dx-popup-content .dx-timeview-format12 .dx-dropdowneditor-button .dx-button-content {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-analog-clock svg {
    flex: 0 0 161px !important;
    min-width: 161px !important;
    width: 161px !important;
    min-height: 161px !important;
    height: 161px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-field {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content .dx-timeview-field .dx-numberbox {
    height: 42px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-popup-content, .dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field .dx-timeview-format12,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-popup-content, .dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field .dx-timeview-format12 .dx-dropdowneditor,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-popup-content, .dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-field .dx-timeview-format12 .dx-selectbox,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-popup-content, .dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-texteditor-container,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-popup-content, .dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-dropdowneditor-input-wrapper,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-popup-content, .dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-texteditor-input-container {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex: 0 0 72px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-popup-content, .dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-dropdowneditor-button,
body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-popup-content, .dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-texteditor-buttons-container {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex: 0 0 24px !important;
}

body[data-theme-system="next"][data-theme-variant="light"] :is(.dx-popup-content, .dx-datebox-wrapper-calendar, .dx-dropdowneditor-overlay) .dx-timeview-format12 .dx-texteditor-input {
    padding-left: 8px !important;
    padding-right: 24px !important;
    height: 42px !important;
    line-height: 42px !important;
}


/* Cambia el color del texto en el desplegable de exportación de la grilla */
body[data-theme-system="next"][data-theme-variant="light"] .dx-datagrid-export-menu .dx-list-item-content {
    color: #333333 !important;
}

/* --- MODAL DE FOTO EN MODO CLARO --- */

/* 1. Cambiar el fondo del modal a blanco */
body[data-theme-system="next"][data-theme-variant="light"] #modal-foto .modal-content {
    background-color: #ffffff !important;
}

/* 2. Cambiar el título "Foto" a negro/oscuro */
body[data-theme-system="next"][data-theme-variant="light"] #modal-foto .modal-header .modal-title {
    color: #212529 !important;
}

/* 3. Cambiar el botón o texto "ACEPTAR" del footer a negro/oscuro */
body[data-theme-system="next"][data-theme-variant="light"] #modal-foto .modal-footer,
body[data-theme-system="next"][data-theme-variant="light"] #modal-foto .modal-footer button {
    color: #212529 !important;
}

/* --- ELIMINAR HOVER NEGRO EN DESPLEGABLES (MODO CLARO) --- */

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-button.dx-state-hover .dx-dropdowneditor-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-button:hover .dx-dropdowneditor-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-button.dx-state-focused .dx-dropdowneditor-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor-button.dx-state-active .dx-dropdowneditor-icon {
    background-color: transparent !important;
}

/* --- ELIMINAR HOVER NEGRO CUANDO SE PASA EL MOUSE SOBRE EL INPUT (MODO CLARO) --- */

body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor.dx-state-hover .dx-dropdowneditor-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor:hover .dx-dropdowneditor-icon,
body[data-theme-system="next"][data-theme-variant="light"] .dx-dropdowneditor.dx-state-focused .dx-dropdowneditor-icon {
    background-color: transparent !important;
}


/* --- MODAL DE TÉRMINOS Y CONDICIONES (MODO CLARO) --- */

/* 1. Fondo blanco y texto oscuro para el contenedor del modal */
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersion .modal-content,
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersion .modal-content {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* 2. Cambiar el color de la línea separadora debajo del título */
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersion .modal-header,
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersion .modal-header {
    border-bottom: 1px solid #dee2e6 !important;
}

/* 3. Cambiar el color de la línea separadora arriba de los botones */
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersion .modal-footer,
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersion .modal-footer {
    border-top: 1px solid #dee2e6 !important;
}

/* 4. Asegurar que los textos internos sean oscuros */
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersion .modal-body,
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersion .modal-body {
    color: #212529 !important;
}

/* --- CORRECCIONES EXTRA DEL MODAL (TÍTULO Y ÁREA DE ARCHIVO) --- */

/* 1. Forzar el título a color oscuro (sobreescribe el color: #fff hardcodeado) */
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersionLabel,
body[data-theme-system="next"][data-theme-variant="light"] #modalNuevaVersionLabel {
    color: #212529 !important;
}

/* 2. Cambiar el fondo del área de archivos a blanco/gris muy claro con texto oscuro */
body[data-theme-system="next"][data-theme-variant="light"] #formNuevaVersion input[type="file"],
body[data-theme-system="next"][data-theme-variant="light"] #formNuevaVersion input[type="file"],
body[data-theme-system="next"][data-theme-variant="light"] #formNuevaVersion .custom-file-label,
body[data-theme-system="next"][data-theme-variant="light"] #formNuevaVersion .custom-file-label,
body[data-theme-system="next"][data-theme-variant="light"] #formNuevaVersion [class*="file"] /* Selector amplio por si usa una clase personalizada */ {
    background-color: #f8f9fa !important; /* Gris muy clarito, ideal para áreas de arrastrar archivos */
    color: #212529 !important;
    border: 1px dashed #adb5bd !important; /* Borde punteado para indicar que es un área de carga */
}

/* --- CORRECCIÓN DE TEXTOS EN VISTA DE BACKUP (MODO CLARO) --- */

/* 1. Título principal de la vista ("Backup") */
body[data-theme-system="next"][data-theme-variant="light"] .content > .card-title {
    color: #212529 !important;
}

/* 2. Título y subtítulo de la tarjeta de respaldo */
body[data-theme-system="next"][data-theme-variant="light"] .backup-module .backup-title,
body[data-theme-system="next"][data-theme-variant="light"] .backup-module .backup-subtitle,
body[data-theme-system="next"][data-theme-variant="light"] .backup-module p,
body[data-theme-system="next"][data-theme-variant="light"] .backup-module h5 {
    color: #212529 !important;
}

/* 3. Forzar color oscuro para la tabla / grilla inferior (Historial de Backups) */
body[data-theme-system="next"][data-theme-variant="light"] .backup-module .card,
body[data-theme-system="next"][data-theme-variant="light"] .backup-module table,
body[data-theme-system="next"][data-theme-variant="light"] .backup-module th,
body[data-theme-system="next"][data-theme-variant="light"] .backup-module td,
body[data-theme-system="next"][data-theme-variant="light"] .backup-module [class*="dx-datagrid"] /* Por si usas grillas DevExpress */ {
    color: #212529 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-list-item-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-list-item-content {
    color: #212529 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content,
body[data-theme-system="next"][data-theme-variant="light"] .dx-popup-content {
    color: #212529 !important;
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-list-item.dx-state-hover {
    background-color: #ff5722 !important; 
}

body[data-theme-system="next"][data-theme-variant="light"] .dx-list-item.dx-state-hover .dx-list-item-content {
    color: #ffffff !important; 
}
