html,
body,
input,
button,
select,
optgroup,
textarea,
.tooltip,
.popover {
    font-family: "Inter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.cfdi4-theme-boot *,
html.cfdi4-theme-boot *::before,
html.cfdi4-theme-boot *::after {
    transition: none !important;
}

@font-face {
    font-family: "Elms Sans";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/dist/fonts/elms-sans-latin-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Viperine SOATI";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/dist/fonts/viperine.ttf") format("truetype");
    unicode-range: U+0041, U+0049, U+004F, U+0053, U+0054;
}

body,
input,
button,
select,
optgroup,
textarea,
.card,
.modal,
.table,
.dataTable,
.dataTables_wrapper,
.form-control,
.custom-select,
.input-group-text,
.btn,
.dropdown-menu,
.nav-link,
.select2-container,
.select2-dropdown,
.tooltip,
.popover {
    font-size: 0.85rem;
}

:root {
    --cfdi4-font-size-xxs: 0.72rem;
    --cfdi4-font-size-xs: 0.8rem;
    --cfdi4-font-size-sm: 0.85rem;
    --cfdi4-font-size-md: 0.95rem;
    --cfdi4-font-size-lg: 1rem;
    --cfdi4-footer-height: 3.25rem;
    --cfdi4-footer-bottom-offset: 0rem;
    --cfdi4-footer-bg: #ffffff;
    --cfdi4-footer-divider: #d7dde5;
    --cfdi4-footer-divider-shadow: rgba(15, 23, 42, .08);
    --cfdi4-muted: #667085;
}

html.dark-mode,
body.dark-mode {
    --cfdi4-muted: #c7d0d9;
}

.text-muted {
    color: var(--cfdi4-muted) !important;
}

small,
.small {
    font-size: var(--cfdi4-font-size-xs);
}

html.dark-mode,
html.dark-mode body,
body.dark-mode {
    color-scheme: dark;
    background-color: #111111 !important;
    color: #fff;
}

html:not(.dark-mode),
html:not(.dark-mode) body {
    color-scheme: light;
}

input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

html:not(.dark-mode) input[type="date"],
html:not(.dark-mode) input[type="time"],
html:not(.dark-mode) input[type="datetime-local"],
html:not(.dark-mode) input[type="month"] {
    color-scheme: light;
}

html.dark-mode input[type="date"],
html.dark-mode input[type="time"],
html.dark-mode input[type="datetime-local"],
html.dark-mode input[type="month"],
body.dark-mode input[type="date"],
body.dark-mode input[type="time"],
body.dark-mode input[type="datetime-local"],
body.dark-mode input[type="month"] {
    color-scheme: dark;
}

html:not(.dark-mode) input[type="date"]::-webkit-calendar-picker-indicator,
html:not(.dark-mode) input[type="time"]::-webkit-calendar-picker-indicator,
html:not(.dark-mode) input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html:not(.dark-mode) input[type="month"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: none;
    opacity: .82;
}

html.dark-mode input[type="date"]::-webkit-calendar-picker-indicator,
html.dark-mode input[type="time"]::-webkit-calendar-picker-indicator,
html.dark-mode input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html.dark-mode input[type="month"]::-webkit-calendar-picker-indicator,
body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator,
body.dark-mode input[type="time"]::-webkit-calendar-picker-indicator,
body.dark-mode input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body.dark-mode input[type="month"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .92;
}

@keyframes cfdi4-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.se-pre-con {
    background-color: rgba(255, 255, 255, 0.94) !important;
    background-image: none !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    left: 0 !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 9999 !important;
}

.se-pre-con::before {
    animation: cfdi4-loader-spin 0.75s linear infinite;
    border: 4px solid rgba(108, 117, 125, 0.25);
    border-radius: 50%;
    border-top-color: #9FCB3A;
    content: "";
    height: 42px;
    left: 50%;
    margin: -21px 0 0 -21px;
    position: absolute;
    top: 50%;
    width: 42px;
}

html.dark-mode .se-pre-con,
body.dark-mode .se-pre-con,
.dark-mode .se-pre-con {
    background-color: rgba(24, 29, 33, 0.92) !important;
}

html.dark-mode .se-pre-con::before,
body.dark-mode .se-pre-con::before,
.dark-mode .se-pre-con::before {
    border-color: rgba(255, 255, 255, 0.22);
    border-top-color: #9FCB3A;
}

.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.brand-link):not(.navbar-brand) {
    color: #b8df55;
}

.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.brand-link):not(.navbar-brand):hover,
.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.brand-link):not(.navbar-brand):focus {
    color: #9FCB3A;
}

.dark-mode .btn:not([class*="btn-"]),
.dark-mode a.btn,
.dark-mode .btn-link {
    color: #fff;
}

.dark-mode .btn:not([class*="btn-"]):hover,
.dark-mode a.btn:hover,
.dark-mode a.btn:focus,
.dark-mode .btn-link:hover {
    color: #f8f9fa;
}

.dark-mode .main-header.navbar-dark,
.dark-mode .main-header.navbar-light,
.dark-mode .main-header.navbar-white {
    background-color: #171717;
    border-color: #3a3a3a;
}

.dark-mode .main-header.navbar-light .navbar-nav .nav-link,
.dark-mode .main-header.navbar-white .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

.dark-mode .main-header.navbar-light .navbar-nav .nav-link:hover,
.dark-mode .main-header.navbar-white .navbar-nav .nav-link:hover {
    color: #fff;
}

.dark-mode .card-Login,
.dark-mode .card-Graph {
    background-color: #242424;
    color: #fff;
}

.dark-mode .card-Graph .card-header,
.dark-mode .card-Login .card-header {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: #3a3a3a;
}

.dark-mode .card-primary.card-outline,
.dark-mode .card-Login.card-primary.card-outline {
    border-top-color: #9FCB3A;
}

.dark-mode .card-primary:not(.card-outline) > .card-header {
    background-color: #6f9428;
}

.login-page .login-box,
.register-page .register-box {
    max-width: calc(100vw - 2rem);
}

.login-page .card-Login,
.register-page .card-Login {
    max-width: 100%;
}

.login-page .card-Login .card-header,
.register-page .card-Login .card-header {
    overflow: hidden;
}

.login-page .card-Login .card-header img,
.login-page .soati-login-logo,
.register-page .card-Login .card-header img {
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
    width: 100%;
}

#toast-container {
    box-sizing: border-box;
    max-width: calc(100vw - 1.5rem);
}

#toast-container .toast,
#toast-container > div {
    box-sizing: border-box;
    max-width: calc(100vw - 1.5rem);
}

#toast-container .toast-message {
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 575.98px) {
    #toast-container.toast-top-right,
    #toast-container.toast-bottom-right,
    #toast-container.toast-top-left,
    #toast-container.toast-bottom-left {
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
    }

    #toast-container .toast,
    #toast-container > div {
        font-size: 0.94rem;
        line-height: 1.35;
        margin-left: 0;
        margin-right: 0;
        max-height: calc(100vh - 1.5rem);
        max-width: none;
        overflow-y: auto;
        padding-right: 2.25rem;
        width: auto !important;
    }
}

html:not(.dark-mode) .form-control,
html:not(.dark-mode) .custom-select,
html:not(.dark-mode) textarea,
html:not(.dark-mode) select:not(.select2-hidden-accessible),
html:not(.dark-mode) input[type="text"],
html:not(.dark-mode) input[type="number"],
html:not(.dark-mode) input[type="date"],
html:not(.dark-mode) input[type="time"],
html:not(.dark-mode) input[type="email"],
html:not(.dark-mode) input[type="password"],
html:not(.dark-mode) input[type="search"],
html:not(.dark-mode) input[type="url"],
html:not(.dark-mode) input[type="tel"],
html:not(.dark-mode) .select2-container--default .select2-selection--single,
html:not(.dark-mode) .select2-container--default .select2-selection--multiple,
html:not(.dark-mode) .input-group-text,
html:not(.dark-mode) .custom-file-label {
    background-color: #fff;
    border-color: #c9d4df;
    color: #243447;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

html:not(.dark-mode) .form-control:hover,
html:not(.dark-mode) .custom-select:hover,
html:not(.dark-mode) textarea:hover,
html:not(.dark-mode) select:not(.select2-hidden-accessible):hover,
html:not(.dark-mode) input[type="text"]:hover,
html:not(.dark-mode) input[type="number"]:hover,
html:not(.dark-mode) input[type="date"]:hover,
html:not(.dark-mode) input[type="time"]:hover,
html:not(.dark-mode) input[type="email"]:hover,
html:not(.dark-mode) input[type="password"]:hover,
html:not(.dark-mode) input[type="search"]:hover,
html:not(.dark-mode) input[type="url"]:hover,
html:not(.dark-mode) input[type="tel"]:hover,
html:not(.dark-mode) .select2-container--default:hover .select2-selection--single,
html:not(.dark-mode) .select2-container--default:hover .select2-selection--multiple {
    border-color: #aebbc8;
}

html:not(.dark-mode) .form-control:focus,
html:not(.dark-mode) .custom-select:focus,
html:not(.dark-mode) textarea:focus,
html:not(.dark-mode) select:not(.select2-hidden-accessible):focus,
html:not(.dark-mode) input[type="text"]:focus,
html:not(.dark-mode) input[type="number"]:focus,
html:not(.dark-mode) input[type="date"]:focus,
html:not(.dark-mode) input[type="time"]:focus,
html:not(.dark-mode) input[type="email"]:focus,
html:not(.dark-mode) input[type="password"]:focus,
html:not(.dark-mode) input[type="search"]:focus,
html:not(.dark-mode) input[type="url"]:focus,
html:not(.dark-mode) input[type="tel"]:focus,
html:not(.dark-mode) .select2-container--default.select2-container--focus .select2-selection--multiple,
html:not(.dark-mode) .select2-container--default.select2-container--open .select2-selection--single,
html:not(.dark-mode) .select2-container--default .select2-search--dropdown .select2-search__field:focus,
html:not(.dark-mode) .select2-container--default .select2-search--inline .select2-search__field:focus {
    background-color: #fff;
    border-color: #6b7a8c;
    box-shadow: 0 0 0 0.12rem rgba(60, 141, 188, 0.14);
    color: #1f2937;
    outline: 0;
}

html:not(.dark-mode) .form-control::placeholder,
html:not(.dark-mode) textarea::placeholder {
    color: #7b8794;
}

html:not(.dark-mode) .select2-container--default .select2-selection--single .select2-selection__rendered,
html:not(.dark-mode) .select2-container--default .select2-selection--multiple .select2-selection__rendered,
html:not(.dark-mode) .select2-container--default .select2-search--inline .select2-search__field {
    color: #243447;
}

html:not(.dark-mode) .select2-dropdown,
html:not(.dark-mode) .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #fff;
    border-color: #c9d4df;
    color: #243447;
}

html:not(.dark-mode) .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #eef4fb;
    color: #243447;
}

html:not(.dark-mode) .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #dfeaf7;
    color: #1f2937;
}

html:not(.dark-mode) table.dataTable > tbody > tr.child,
html:not(.dark-mode) table.dataTable > tbody > tr.child:hover,
html:not(.dark-mode) table.dataTable > tbody > tr.child td.child,
html:not(.dark-mode) table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child:hover,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child td.child,
body.report-iframe.report-light-mode table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child {
    background: #ffffff !important;
    color: #243447 !important;
}

html:not(.dark-mode) table.dataTable > tbody > tr.child ul.dtr-details,
html:not(.dark-mode) table.dataTable > tbody > tr.child ul.dtr-details > li,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child ul.dtr-details,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child ul.dtr-details > li {
    background: transparent !important;
    border-color: #dfe5ec !important;
    color: #243447 !important;
}

html:not(.dark-mode) table.dataTable > tbody > tr.child span.dtr-title,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child span.dtr-title {
    color: #1f2937 !important;
}

html:not(.dark-mode) table.dataTable > tbody > tr.child span.dtr-data,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child span.dtr-data {
    color: #243447 !important;
}

html:not(.dark-mode) .form-control[readonly],
html:not(.dark-mode) .form-control:disabled,
html:not(.dark-mode) .custom-select:disabled,
html:not(.dark-mode) textarea:disabled,
html:not(.dark-mode) input[type="text"][readonly],
html:not(.dark-mode) input[type="number"][readonly],
html:not(.dark-mode) input[type="date"][readonly],
html:not(.dark-mode) input[type="time"][readonly],
html:not(.dark-mode) input[type="email"][readonly],
html:not(.dark-mode) input[type="password"][readonly],
html:not(.dark-mode) input[type="search"][readonly],
html:not(.dark-mode) input[type="url"][readonly],
html:not(.dark-mode) input[type="tel"][readonly],
html:not(.dark-mode) .select2-container--default.select2-container--disabled .select2-selection--single,
html:not(.dark-mode) .select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #f4f7fb;
    border-color: #c9d4df;
    color: #5e6b78;
    opacity: 1;
}

html:not(.dark-mode) .form-control.form-control-border,
html:not(.dark-mode) .custom-select.form-control-border,
html:not(.dark-mode) textarea.form-control-border {
    border: 1px solid #bcc9d6 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

html:not(.dark-mode) .form-control.form-control-border:hover,
html:not(.dark-mode) .custom-select.form-control-border:hover,
html:not(.dark-mode) textarea.form-control-border:hover {
    border-color: #93a7bb !important;
}

html:not(.dark-mode) .form-control.form-control-border:focus,
html:not(.dark-mode) .custom-select.form-control-border:focus,
html:not(.dark-mode) textarea.form-control-border:focus {
    border-color: #5f7388 !important;
    box-shadow: 0 0 0 0.12rem rgba(60, 141, 188, 0.16) !important;
}

html:not(.dark-mode) .form-control.form-control-border[readonly],
html:not(.dark-mode) .form-control.form-control-border:disabled,
html:not(.dark-mode) .custom-select.form-control-border:disabled,
html:not(.dark-mode) textarea.form-control-border:disabled {
    border-color: #bcc9d6 !important;
}

html:not(.dark-mode) .factura-partida-inicio .form-control-border,
html:not(.dark-mode) .factura-partida-detalle .form-control-border,
html:not(.dark-mode) .cp-capture-card .form-control-border,
html:not(.dark-mode) .sat-filter-card .form-control-border,
html:not(.dark-mode) #ConceptosPartidasCE .form-control-border {
    background-color: #fff !important;
    border-color: #bcc9d6 !important;
}

html:not(.dark-mode) .factura-partida-inicio .form-control-border:hover,
html:not(.dark-mode) .factura-partida-detalle .form-control-border:hover,
html:not(.dark-mode) .cp-capture-card .form-control-border:hover,
html:not(.dark-mode) .sat-filter-card .form-control-border:hover,
html:not(.dark-mode) #ConceptosPartidasCE .form-control-border:hover {
    border-color: #93a7bb !important;
}

html:not(.dark-mode) .factura-partida-inicio .form-control-border:focus,
html:not(.dark-mode) .factura-partida-detalle .form-control-border:focus,
html:not(.dark-mode) .cp-capture-card .form-control-border:focus,
html:not(.dark-mode) .sat-filter-card .form-control-border:focus,
html:not(.dark-mode) #ConceptosPartidasCE .form-control-border:focus {
    border-color: #5f7388 !important;
    box-shadow: 0 0 0 0.12rem rgba(60, 141, 188, 0.16) !important;
}

html:not(.dark-mode) #ConceptosPartidas .factura-partida-inicio .form-control.form-control-border,
html:not(.dark-mode) #ConceptosPartidas .factura-partida-detalle .form-control.form-control-border,
html:not(.dark-mode) #ConceptosPartidasCE .factura-partida-inicio .form-control.form-control-border,
html:not(.dark-mode) #ConceptosPartidasCE .factura-partida-detalle .form-control.form-control-border {
    background-color: #fff !important;
    border: 1px solid #bcc9d6 !important;
    border-radius: 4px !important;
}

html:not(.dark-mode) #ConceptosPartidas .factura-partida-inicio .form-control.form-control-border:hover,
html:not(.dark-mode) #ConceptosPartidas .factura-partida-detalle .form-control.form-control-border:hover,
html:not(.dark-mode) #ConceptosPartidasCE .factura-partida-inicio .form-control.form-control-border:hover,
html:not(.dark-mode) #ConceptosPartidasCE .factura-partida-detalle .form-control.form-control-border:hover {
    border-color: #93a7bb !important;
}

html:not(.dark-mode) #ConceptosPartidas .factura-partida-inicio .form-control.form-control-border:focus,
html:not(.dark-mode) #ConceptosPartidas .factura-partida-detalle .form-control.form-control-border:focus,
html:not(.dark-mode) #ConceptosPartidasCE .factura-partida-inicio .form-control.form-control-border:focus,
html:not(.dark-mode) #ConceptosPartidasCE .factura-partida-detalle .form-control.form-control-border:focus {
    border-color: #5f7388 !important;
    box-shadow: 0 0 0 0.12rem rgba(60, 141, 188, 0.16) !important;
}

.dark-mode .form-control,
.dark-mode .custom-select,
.dark-mode .select2-container--default .select2-selection--single,
.dark-mode .select2-container--default .select2-selection--multiple {
    background-color: #242424;
    border-color: #4a4a4a;
    color: #fff;
}

.dark-mode .form-control:focus,
.dark-mode .custom-select:focus,
.dark-mode .select2-container--default.select2-container--focus .select2-selection--multiple,
.dark-mode .select2-container--default.select2-container--open .select2-selection--single {
    background-color: #2b2b2b;
    border-color: #9FCB3A;
    color: #fff;
}

.dark-mode .form-control.form-control-border,
.dark-mode .custom-select.form-control-border,
.dark-mode textarea.form-control-border {
    background-color: #242424;
    border: 1px solid #4a4a4a !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.dark-mode .form-control.form-control-border:hover,
.dark-mode .custom-select.form-control-border:hover,
.dark-mode textarea.form-control-border:hover {
    background-color: #3a4148;
    border-color: #8f99a4 !important;
}

.dark-mode .form-control.form-control-border:focus,
.dark-mode .custom-select.form-control-border:focus,
.dark-mode textarea.form-control-border:focus {
    background-color: #2b2b2b;
    border-color: #9FCB3A !important;
    box-shadow: 0 0 0 0.12rem rgba(159, 203, 58, 0.18) !important;
}

.dark-mode .form-control.form-control-border[readonly],
.dark-mode .form-control.form-control-border:disabled,
.dark-mode .custom-select.form-control-border:disabled,
.dark-mode textarea.form-control-border:disabled {
    background-color: #3a4046;
    border-color: #6c757d !important;
}

.dark-mode .factura-partida-inicio .form-control-border,
.dark-mode .factura-partida-detalle .form-control-border,
.dark-mode .cp-capture-card .form-control-border,
.dark-mode .sat-filter-card .form-control-border,
.dark-mode #ConceptosPartidasCE .form-control-border {
    border-color: #6c757d !important;
    border-radius: 4px !important;
}

.dark-mode .factura-partida-inicio .form-control-border:hover,
.dark-mode .factura-partida-detalle .form-control-border:hover,
.dark-mode .cp-capture-card .form-control-border:hover,
.dark-mode .sat-filter-card .form-control-border:hover,
.dark-mode #ConceptosPartidasCE .form-control-border:hover {
    border-color: #8f99a4 !important;
}

.dark-mode .factura-partida-inicio .form-control-border:focus,
.dark-mode .factura-partida-detalle .form-control-border:focus,
.dark-mode .cp-capture-card .form-control-border:focus,
.dark-mode .sat-filter-card .form-control-border:focus,
.dark-mode #ConceptosPartidasCE .form-control-border:focus {
    border-color: #9FCB3A !important;
    box-shadow: 0 0 0 0.12rem rgba(159, 203, 58, 0.18) !important;
}

.dark-mode #ConceptosPartidas .factura-partida-inicio .form-control.form-control-border,
.dark-mode #ConceptosPartidas .factura-partida-detalle .form-control.form-control-border,
.dark-mode #ConceptosPartidasCE .factura-partida-inicio .form-control.form-control-border,
.dark-mode #ConceptosPartidasCE .factura-partida-detalle .form-control.form-control-border {
    border: 1px solid #6c757d !important;
    border-radius: 4px !important;
}

.dark-mode #ConceptosPartidas .factura-partida-inicio .form-control.form-control-border:hover,
.dark-mode #ConceptosPartidas .factura-partida-detalle .form-control.form-control-border:hover,
.dark-mode #ConceptosPartidasCE .factura-partida-inicio .form-control.form-control-border:hover,
.dark-mode #ConceptosPartidasCE .factura-partida-detalle .form-control.form-control-border:hover {
    border-color: #8f99a4 !important;
}

.dark-mode #ConceptosPartidas .factura-partida-inicio .form-control.form-control-border:focus,
.dark-mode #ConceptosPartidas .factura-partida-detalle .form-control.form-control-border:focus,
.dark-mode #ConceptosPartidasCE .factura-partida-inicio .form-control.form-control-border:focus,
.dark-mode #ConceptosPartidasCE .factura-partida-detalle .form-control.form-control-border:focus {
    border-color: #9FCB3A !important;
    box-shadow: 0 0 0 0.12rem rgba(159, 203, 58, 0.18) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #495057 !important;
    caret-color: #495057;
    transition: background-color 9999s ease-in-out 0s;
}

.dark-mode input:-webkit-autofill,
.dark-mode input:-webkit-autofill:hover,
.dark-mode input:-webkit-autofill:focus,
.dark-mode textarea:-webkit-autofill,
.dark-mode textarea:-webkit-autofill:hover,
.dark-mode textarea:-webkit-autofill:focus,
.dark-mode select:-webkit-autofill,
.dark-mode select:-webkit-autofill:hover,
.dark-mode select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #242424 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border-color: #4a4a4a;
}

.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered,
.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__rendered,
.dark-mode .select2-container--default .select2-search--inline .select2-search__field {
    color: #fff;
}

.dark-mode .select2-dropdown,
.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #242424;
    border-color: #4a4a4a;
    color: #fff;
}

.dark-mode .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #383838;
}

.dark-mode .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #6f9428;
    color: #fff;
}

.dark-mode .table,
.dark-mode table.dataTable {
    color: #fff;
}

.dark-mode .flot-tick-label,
.dark-mode .tickLabel,
.dark-mode .axisLabels {
    color: #fff !important;
    fill: #fff !important;
}

.dark-mode .flot-svg text,
.dark-mode #bar-chart text {
    fill: #fff !important;
}

.dark-mode .page-link {
    background-color: #242424;
    border-color: #4a4a4a;
    color: #fff;
}

.dark-mode .page-item.active .page-link {
    background-color: #9FCB3A;
    border-color: #9FCB3A;
    color: #111111;
}

:root {
    --cfdi4-green: #9FCB3A;
    --cfdi4-green-dark: #6f9428;
    --cfdi4-table-hover: rgba(159, 203, 58, 0.12);
    --cfdi4-table-cell-hover: rgba(159, 203, 58, 0.2);
    --cfdi4-table-detail-bg: #f8fbf2;
    --cfdi4-table-detail-border: rgba(111, 148, 40, 0.25);
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    cursor: pointer;
    padding-left: 2.15rem !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > td.control:before,
table.dataTable.dtr-column > tbody > tr > th.control:before {
    align-items: center;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--cfdi4-green-dark);
    content: "\f067" !important;
    display: flex;
    font-family: "Font Awesome 5 Free";
    font-size: 0.68rem;
    font-weight: 900;
    height: 1.15rem;
    justify-content: center;
    left: 0.55rem;
    line-height: 1;
    margin-left: 0;
    margin-top: -0.575rem;
    text-indent: 0 !important;
    top: 50%;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
    width: 1.15rem;
}

table.dataTable.dtr-inline.collapsed.table-sm > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed.table-sm > tbody > tr > th.dtr-control:before {
    top: 50%;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent td.control:before,
table.dataTable.dtr-column > tbody > tr.parent th.control:before {
    background-color: transparent;
    border-color: transparent;
    color: var(--cfdi4-green-dark);
    content: "\f068" !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:hover:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:hover:before,
table.dataTable.dtr-column > tbody > tr > td.dtr-control:hover:before,
table.dataTable.dtr-column > tbody > tr > th.dtr-control:hover:before,
table.dataTable.dtr-column > tbody > tr > td.control:hover:before,
table.dataTable.dtr-column > tbody > tr > th.control:hover:before {
    background-color: transparent;
    border-color: transparent;
    color: var(--cfdi4-green-dark);
}

table.dataTable tbody tr:not(.child):hover > td,
table.dataTable tbody tr:not(.child):hover > th {
    background-color: var(--cfdi4-table-hover) !important;
}

table.dataTable tbody tr:not(.child) > td:hover,
table.dataTable tbody tr:not(.child) > th:hover {
    background-color: var(--cfdi4-table-cell-hover) !important;
}

table.dataTable > tbody > tr.child {
    background-color: var(--cfdi4-table-detail-bg) !important;
}

table.dataTable > tbody > tr.child:hover {
    background-color: var(--cfdi4-table-detail-bg) !important;
}

table.dataTable > tbody > tr.child td.child {
    border-top-color: var(--cfdi4-table-detail-border);
}

table.dataTable > tbody > tr.child ul.dtr-details {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    width: 100%;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
    align-items: center;
    border-bottom: 1px solid var(--cfdi4-table-detail-border);
    display: flex;
    gap: 0.75rem;
    min-height: 2rem;
    padding: 0.45rem 0.65rem;
}

table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    border-bottom: 1px solid var(--cfdi4-table-detail-border);
}

table.dataTable > tbody > tr.child span.dtr-title {
    color: #212529;
    flex: 0 0 8rem;
    font-weight: 700;
    min-width: 0;
}

table.dataTable > tbody > tr.child span.dtr-data {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

table.dataTable > tbody > tr.child ul.dtr-details > li.cfdi4-dtr-money span.dtr-data {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.miniatura {
    font-size: 0.7rem;
}

#RespuestaResultado tbody tr.child td.child {
    background: var(--cfdi4-table-detail-bg) !important;
    padding: 0;
    white-space: normal;
}

#RespuestaResultado tbody tr.child ul.dtr-details,
#RespuestaResultado tbody tr.child ul.cfdi4-dtr-details {
    display: block;
    margin: 0;
    padding: 8px 18px 12px;
    width: 100%;
}

#RespuestaResultado tbody tr.child ul.dtr-details > li {
    align-items: start;
    border-bottom: 1px solid var(--cfdi4-table-detail-border);
    column-gap: 16px;
    display: grid;
    grid-template-columns: minmax(130px, 26%) minmax(0, 1fr);
    min-height: 34px;
    padding: 8px 0;
}

#RespuestaResultado tbody tr.child span.dtr-title,
#RespuestaResultado tbody tr.child span.dtr-data {
    font-size: 12px;
    line-height: 1.28;
    max-width: none;
    min-width: 0;
}

#RespuestaResultado tbody tr.child span.dtr-title {
    color: var(--cfdi4-table-title, #212529);
    font-weight: 700;
}

#RespuestaResultado tbody tr.child span.dtr-data {
    color: var(--cfdi4-text, #243447);
    overflow-wrap: anywhere;
    word-break: normal;
}

#RespuestaResultado .cfdi-money,
#RespuestaResultado_wrapper .cfdi-money,
#RespuestaResultado tbody tr.child li.cfdi4-dtr-money span.dtr-data {
    font-variant-numeric: tabular-nums;
    text-align: right !important;
}

#RespuestaResultado .cfdi-action,
#RespuestaResultado_wrapper .cfdi-action {
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

#RespuestaResultado .cfdi-action a {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 1.75rem;
    min-width: 1.75rem;
}

@media (max-width: 767.98px) {
    #RespuestaResultado tbody tr.child ul.dtr-details,
    #RespuestaResultado tbody tr.child ul.cfdi4-dtr-details {
        padding: 8px 24px 12px;
    }

    #RespuestaResultado tbody tr.child ul.dtr-details > li {
        grid-template-columns: minmax(105px, 42%) minmax(0, 1fr);
        min-height: 38px;
        padding: 9px 0;
    }
}

@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dt-buttons {
        float: none !important;
        margin: 0.45rem auto;
        text-align: center;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_length label {
        align-items: center;
        display: inline-flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        justify-content: center;
        margin-bottom: 0;
    }

    .dataTables_wrapper .dataTables_filter input {
        display: inline-block;
        margin-left: 0;
        max-width: 100%;
        width: min(18rem, 70vw);
    }

    .dataTables_wrapper .dt-buttons.btn-group,
    .dataTables_wrapper .dt-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: center;
    }

    .dataTables_wrapper .dt-buttons .btn {
        flex: 0 0 auto;
        min-width: 0;
        width: auto;
    }

    table.dataTable > tbody > tr.child ul.dtr-details,
    table.dataTable > tbody > tr.child ul.cfdi4-dtr-details {
        display: block;
        width: 100%;
    }

    table.dataTable > tbody > tr.child ul.dtr-details > li {
        align-items: flex-start;
        display: flex;
        gap: 0.75rem;
        min-height: 2.35rem;
        padding: 0.55rem 0.65rem;
        width: 100%;
    }

    table.dataTable > tbody > tr.child span.dtr-title {
        flex: 0 0 42%;
        max-width: 42%;
    }

    table.dataTable > tbody > tr.child span.dtr-data {
        flex: 1 1 58%;
        max-width: 58%;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before,
.dark-mode table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
.dark-mode table.dataTable.dtr-column > tbody > tr > th.dtr-control:before,
.dark-mode table.dataTable.dtr-column > tbody > tr > td.control:before,
.dark-mode table.dataTable.dtr-column > tbody > tr > th.control:before {
    background-color: transparent;
    border-color: transparent;
    color: var(--cfdi4-green);
}

.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before,
.dark-mode table.dataTable.dtr-column > tbody > tr.parent td.dtr-control:before,
.dark-mode table.dataTable.dtr-column > tbody > tr.parent th.dtr-control:before,
.dark-mode table.dataTable.dtr-column > tbody > tr.parent td.control:before,
.dark-mode table.dataTable.dtr-column > tbody > tr.parent th.control:before,
.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:hover:before,
.dark-mode table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:hover:before,
.dark-mode table.dataTable.dtr-column > tbody > tr > td.dtr-control:hover:before,
.dark-mode table.dataTable.dtr-column > tbody > tr > th.dtr-control:hover:before,
.dark-mode table.dataTable.dtr-column > tbody > tr > td.control:hover:before,
.dark-mode table.dataTable.dtr-column > tbody > tr > th.control:hover:before {
    background-color: transparent;
    border-color: transparent;
    color: var(--cfdi4-green);
}

.dark-mode table.dataTable tbody tr:not(.child):hover > td,
.dark-mode table.dataTable tbody tr:not(.child):hover > th {
    background-color: rgba(159, 203, 58, 0.11) !important;
}

.dark-mode table.dataTable tbody tr:not(.child) > td:hover,
.dark-mode table.dataTable tbody tr:not(.child) > th:hover {
    background-color: rgba(159, 203, 58, 0.2) !important;
}

.dark-mode table.dataTable > tbody > tr.child,
.dark-mode table.dataTable > tbody > tr.child:hover {
    background-color: #2b2b2b !important;
}

.dark-mode table.dataTable > tbody > tr.child td.child,
.dark-mode table.dataTable > tbody > tr.child ul.dtr-details > li,
.dark-mode table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    border-color: #3a3a3a;
}

.dark-mode table.dataTable > tbody > tr.child span.dtr-title {
    color: #fff;
}

body.report-iframe.report-light-mode table.dataTable > tbody > tr.child,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child:hover,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child td.child,
body.report-iframe.report-light-mode table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child {
    background: #ffffff !important;
    color: #243447 !important;
}

body.report-iframe.report-light-mode table.dataTable > tbody > tr.child ul.dtr-details,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child ul.dtr-details > li,
body.report-iframe.report-light-mode table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    background: transparent !important;
    border-color: #dfe5ec !important;
    color: #243447 !important;
}

body.report-iframe.report-light-mode table.dataTable > tbody > tr.child span.dtr-title {
    color: #1f2937 !important;
}

body.report-iframe.report-light-mode table.dataTable > tbody > tr.child span.dtr-data {
    color: #243447 !important;
}

.ui-dialog.ui-widget.ui-widget-content {
    background-color: #fff;
    border-color: #adb5bd;
    color: #212529;
}

.ui-dialog .ui-dialog-titlebar {
    background-color: #9FCB3A;
    border-color: #9FCB3A;
    color: #212529;
}

.ui-dialog .ui-dialog-content,
.ui-dialog .ui-dialog-buttonpane {
    background-color: #fff;
    border-color: #dee2e6;
    color: #212529;
}

.ui-dialog .ui-dialog-buttonpane .ui-button {
    background-color: #fff;
    border-color: #ced4da;
    color: #212529;
}

.ui-dialog .ui-dialog-buttonpane .ui-button:hover,
.ui-dialog .ui-dialog-buttonpane .ui-button:focus {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.dark-mode .ui-dialog.ui-widget.ui-widget-content {
    background-color: #242424;
    border-color: #3a3a3a;
    color: #fff;
}

.dark-mode .ui-dialog .ui-dialog-titlebar {
    background-color: #242424;
    border-color: #3a3a3a;
    color: #fff;
}

.dark-mode .ui-dialog .ui-dialog-content,
.dark-mode .ui-dialog .ui-dialog-buttonpane {
    background-color: #242424;
    border-color: #3a3a3a;
    color: #fff;
}

.dark-mode .ui-dialog .ui-dialog-buttonpane .ui-button {
    background-color: #2b2b2b;
    border-color: #4a4a4a;
    color: #fff;
}

.dark-mode .ui-dialog .ui-dialog-buttonpane .ui-button:hover,
.dark-mode .ui-dialog .ui-dialog-buttonpane .ui-button:focus {
    background-color: #383838;
    border-color: #5a5a5a;
    color: #fff;
}

.dark-mode .ui-widget-overlay {
    background: #000;
    opacity: 0.5;
}

.dark-mode .modal-content,
.dark-mode .modal-header,
.dark-mode .modal-body,
.dark-mode .modal-footer {
    background-color: #242424;
    color: #fff;
}

.dark-mode .modal-header,
.dark-mode .modal-footer {
    border-color: #3a3a3a;
}

.dark-mode .modal-content .close,
.dark-mode .modal-content .mailbox-attachment-close {
    color: #fff;
    opacity: 0.75;
    text-shadow: none;
}

.dark-mode .modal-content .close:hover,
.dark-mode .modal-content .mailbox-attachment-close:hover {
    opacity: 1;
}

.dark-mode #modal-body {
    background-color: #242424 !important;
}

.dark-mode .dropzone {
    background: #242424 !important;
    border-color: #4a4a4a !important;
    color: #fff !important;
}

.dark-mode .dropzone.dz-drag-hover {
    background: #2b2b2b !important;
    border-color: #9FCB3A !important;
}

.dark-mode .dropzone .dz-message,
.dark-mode .dropzone .dz-message *,
.dark-mode .dropzone .dz-message .dz-button {
    color: #fff !important;
}

.dark-mode .dropzone .dz-preview.dz-image-preview,
.dark-mode .dropzone .dz-preview.dz-file-preview .dz-image {
    background: #2b2b2b !important;
}

.dark-mode .dropzone .dz-preview.dz-file-preview .dz-image {
    background: linear-gradient(to bottom, #2f2f2f, #242424) !important;
}

.dark-mode .dropzone .dz-preview .dz-details {
    color: #fff !important;
}

.dark-mode .dropzone .dz-preview .dz-details .dz-filename:hover span,
.dark-mode .dropzone .dz-preview .dz-details .dz-filename span,
.dark-mode .dropzone .dz-preview .dz-details .dz-size span {
    background-color: rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.dark-mode .dropzone .dz-preview .dz-progress {
    background: rgba(255, 255, 255, 0.25) !important;
}

.dark-mode .dropzone .dz-preview .dz-progress .dz-upload {
    background: #9FCB3A !important;
}

.dark-mode .CamposFechas {
    background-color: #242424 !important;
    color: #fff;
}

#toggleTheme .nav-icon {
    transition: color 0.15s ease-in-out;
}

.dark-mode #toggleTheme .nav-icon,
.dark-mode .main-header .nav-icon {
    color: rgba(255, 255, 255, 0.75);
}

.dark-mode #toggleTheme:hover .nav-icon,
.dark-mode .main-header .nav-link:hover .nav-icon {
    color: #fff;
}

table.dataTable,
table.dataTable th,
table.dataTable td,
.dataTables_wrapper,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dt-buttons .btn,
table.dataTable tbody tr.child ul.dtr-details,
table.dataTable tbody tr.child ul.dtr-details li {
    font-size: 12px !important;
}

.cfdi-edicion-check-cell {
    text-align: center;
    vertical-align: middle !important;
}

.cfdi-edicion-check {
    cursor: pointer;
    height: 18px;
    margin: 0;
    width: 18px;
}

.cfdi-edicion-masiva:disabled {
    cursor: not-allowed;
    opacity: .58;
}

@media (max-width: 767.98px) {
    .du-toolbar,
    .documentos-toolbar,
    .sat-modern-header .sat-modern-actions,
    .cfg-toolbar,
    .empresa-toolbar,
    .cliente-toolbar,
    .banco-toolbar,
    .ubic-toolbar,
    .cobranza-toolbar,
    .report-toolbar,
    .report-main-actions,
    .content-header .breadcrumb.float-sm-right {
        align-items: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: flex-start !important;
        margin-top: 8px;
    }

    .du-toolbar .btn,
    .documentos-toolbar .btn,
    .sat-modern-header .sat-modern-actions .btn,
    .cfg-toolbar .btn,
    .empresa-toolbar .btn,
    .cliente-toolbar .btn,
    .banco-toolbar .btn,
    .ubic-toolbar .btn,
    .cobranza-toolbar .btn,
    .report-toolbar .btn,
    .report-main-actions .btn,
    .content-header .breadcrumb.float-sm-right .btn {
        align-items: center !important;
        border-radius: 6px !important;
        display: inline-flex;
        flex: 0 0 auto !important;
        font-size: 0 !important;
        gap: 0 !important;
        height: auto !important;
        justify-content: center !important;
        line-height: 1 !important;
        margin: 0 !important;
        min-height: 34px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 6px 10px !important;
        width: auto !important;
    }

    .du-toolbar .btn span,
    .documentos-toolbar .btn span,
    .sat-modern-header .sat-modern-actions .btn span,
    .cfg-toolbar .btn span,
    .empresa-toolbar .btn span,
    .cliente-toolbar .btn span,
    .banco-toolbar .btn span,
    .ubic-toolbar .btn span,
    .cobranza-toolbar .btn span,
    .report-toolbar .btn span,
    .report-main-actions .btn span,
    .content-header .breadcrumb.float-sm-right .btn span {
        display: none !important;
    }

    .du-toolbar .btn i,
    .documentos-toolbar .btn i,
    .sat-modern-header .sat-modern-actions .btn i,
    .cfg-toolbar .btn i,
    .empresa-toolbar .btn i,
    .cliente-toolbar .btn i,
    .banco-toolbar .btn i,
    .ubic-toolbar .btn i,
    .cobranza-toolbar .btn i,
    .report-toolbar .btn i,
    .report-main-actions .btn i,
    .content-header .breadcrumb.float-sm-right .btn i {
        font-size: 14px !important;
        margin: 0 !important;
    }
}

/*
 * Normalizacion tipografica global para modulos cargados desde menu.php.
 * Varios modulos traen estilos inline despues de theme.css, por eso esta capa
 * usa !important para mantener Inter, el punto global y el muted comun.
 */
:root {
    --factura-muted: var(--cfdi4-muted) !important;
    --cobranza-muted: var(--cfdi4-muted) !important;
    --cancel-muted: var(--cfdi4-muted) !important;
    --cliente-muted: var(--cfdi4-muted) !important;
    --empresa-muted: var(--cfdi4-muted) !important;
    --cfg-muted: var(--cfdi4-muted) !important;
    --usr-muted: var(--cfdi4-muted) !important;
    --params-muted: var(--cfdi4-muted) !important;
    --report-muted: var(--cfdi4-muted) !important;
    --portal-muted: var(--cfdi4-muted) !important;
    --ubic-muted: var(--cfdi4-muted) !important;
    --banco-muted: var(--cfdi4-muted) !important;
    --documento-modal-muted: var(--cfdi4-muted) !important;
    --du-muted: var(--cfdi4-muted) !important;
}

html.dark-mode,
html.dark-mode body,
body.dark-mode,
.factura-card,
.cobranza-card,
.cancelacion-card,
.cliente-panel,
.empresa-panel,
.cfg-panel,
.usr-panel,
.report-page,
.sat-modern-page,
.ubic-page,
.banco-page,
.documento-modal-body,
.du-card {
    --factura-muted: var(--cfdi4-muted) !important;
    --cobranza-muted: var(--cfdi4-muted) !important;
    --cancel-muted: var(--cfdi4-muted) !important;
    --cliente-muted: var(--cfdi4-muted) !important;
    --empresa-muted: var(--cfdi4-muted) !important;
    --cfg-muted: var(--cfdi4-muted) !important;
    --usr-muted: var(--cfdi4-muted) !important;
    --params-muted: var(--cfdi4-muted) !important;
    --report-muted: var(--cfdi4-muted) !important;
    --portal-muted: var(--cfdi4-muted) !important;
    --ubic-muted: var(--cfdi4-muted) !important;
    --banco-muted: var(--cfdi4-muted) !important;
    --documento-modal-muted: var(--cfdi4-muted) !important;
    --du-muted: var(--cfdi4-muted) !important;
}

.factura-card-subtitle,
.factura-field-help,
.factura-empty-state,
.factura-table-wrap th,
.rep-summary-messages,
.cobranza-card-subtitle,
.cobranza-summary-messages,
.cobranza-table-wrap th,
.cancelacion-muted,
.cancelaciones-table-wrap th,
.cancelaciones-responsive-detail .cancelaciones-detail-label,
.cancelacion-resumen-doc,
.cliente-help,
.cliente-mini-help,
.cliente-sat-status,
.cliente-cp-status,
.cliente-table th,
.cliente-empty,
.banco-mini-help,
.banco-subtitle,
.banco-table th,
.ubic-subtitle,
.ubic-help,
.ubic-table th,
.empresa-page-description,
.empresa-mini-help,
.empresa-field-status,
.empresa-curp-na,
.empresa-table th,
.cfg-page-description,
.cfg-note,
.cfg-table-wrap th,
.usr-page-description,
.usr-panel-help,
.usr-company-title span,
.usr-menu-group-title,
#ParametrosModulo .params-metric-label,
#ParametrosModulo .params-description,
#ParametrosModal .params-help,
.report-card-subtitle,
.report-summary-card span,
.report-table-container th,
.report-selection-text,
.report-note,
.report-helper,
.sat-card-subtitle,
.sat-summary-label,
.sat-status-label,
.sat-table-wrap th,
#RespuestaResultado th,
#satConfigTable th,
.sat-responsive-detail .sat-detail-label,
.sat-security-note,
.documento-modal-helper,
.documento-modal-table-wrap th,
.documento-modal-empty,
.du-help,
.du-page-description,
.du-empty-state,
.du-empty,
.du-recurring-model-help {
    color: var(--cfdi4-muted) !important;
}

.documentos-toolbar .btn span,
.du-toolbar .btn span,
.report-action-btn span,
.report-toolbar .btn span,
.report-modal-body .btn span,
.sat-modern-actions .btn span,
.cfg-toolbar .btn span,
.empresa-toolbar .btn span,
.cliente-toolbar .btn span,
.banco-toolbar .btn span,
.ubic-toolbar .btn span,
.cobranza-toolbar .btn span,
.factura-card label,
.cobranza-card label,
.cancelaciones-module label,
.cliente-panel label,
.empresa-panel label,
.cfg-panel label,
.usr-panel label,
.report-card label,
.sat-card label,
.documento-modal-card label,
.du-card label,
.form-text,
small,
.small {
    font-size: var(--cfdi4-font-size-xs) !important;
}

#formaInsert .form-control-sm,
#formaInsert .input-sm,
#formaInsert .select2-container--default .select2-selection--single .select2-selection__rendered,
#CobranzaPUEUI .form-control-sm,
#CobranzaPUEUI .input-sm,
#CobranzaPUEUI .select2-container--default .select2-selection--single .select2-selection__rendered,
.report-card .form-control-sm,
.report-card .custom-select-sm,
.sat-card .form-control-sm,
.sat-card .custom-select-sm,
.cfg-panel .form-control-sm,
.cfg-panel .custom-select-sm,
.empresa-panel .form-control-sm,
.empresa-panel .custom-select-sm,
.cliente-panel .form-control-sm,
.cliente-panel .custom-select-sm {
    font-size: var(--cfdi4-font-size-sm) !important;
}

.factura-helper,
.factura-card-subtitle,
.factura-summary-row,
.rep-summary-state,
.rep-summary-messages,
.cobranza-helper,
.cobranza-card-subtitle,
.cobranza-summary-row,
.cobranza-summary-state,
.cobranza-summary-messages,
.cancelacion-helper,
.cancelacion-muted,
.cancelaciones-responsive-detail .cancelaciones-detail-label,
.cancelaciones-responsive-detail .cancelaciones-detail-value,
.cancelacion-resumen-doc,
.cliente-help,
.cliente-panel-help,
.cliente-mini-help,
.cliente-status-line,
.cliente-sat-status,
.cliente-cp-status,
.empresa-page-description,
.empresa-mini-help,
.empresa-field-status,
.cfg-page-description,
.cfg-note,
.usr-page-description,
.usr-panel-help,
#ParametrosModulo .params-metric-label,
#ParametrosModulo .params-key,
#ParametrosModulo .params-description,
#ParametrosModal .params-secret-state,
#ParametrosModal .params-help,
.report-helper,
.report-card-subtitle,
.report-selection-text,
.report-note,
.sat-helper-line,
.sat-card-subtitle,
.sat-status-value,
.sat-upload-status,
.sat-responsive-detail .sat-detail-label,
.sat-responsive-detail .sat-detail-value,
.sat-security-note,
.documento-modal-helper,
.du-page-description,
.du-help,
.du-recurring-model-banner,
.du-summary-row,
.du-recurring-model-help,
.ubic-subtitle,
.ubic-help,
.banco-mini-help,
.banco-subtitle {
    font-size: var(--cfdi4-font-size-sm) !important;
}

.factura-card-title,
.cobranza-card-title,
.cancelacion-card-title,
.cliente-panel-title,
.empresa-panel-title,
.cfg-panel-title,
.usr-panel-title,
.report-card-title,
.sat-card-title,
.config-card-title,
.catalogo-card-title,
.documento-modal-card-title,
.du-card-title,
.ubic-card-title,
.banco-card-title,
#ParametrosModulo .params-metric-value,
#ParametrosModal .modal-title {
    font-size: var(--cfdi4-font-size-md) !important;
}

.factura-summary-row.total,
.cobranza-summary-row.total,
.sat-summary-value,
.report-summary-card strong,
.cliente-usage-item strong,
.ubic-title,
.banco-title {
    font-size: var(--cfdi4-font-size-lg) !important;
}

.factura-table-wrap table,
.factura-table-wrap th,
.factura-table-wrap td,
.cobranza-table-wrap table,
.cobranza-table-wrap th,
.cobranza-table-wrap td,
.cancelaciones-table-wrap table,
.cancelaciones-table-wrap th,
.cancelaciones-table-wrap td,
.cliente-table,
.cliente-table th,
.cliente-table td,
.cliente-mobile-table,
.cliente-mobile-table th,
.cliente-mobile-table td,
.empresa-table,
.empresa-table th,
.empresa-table td,
.cfg-table-wrap table,
.cfg-table-wrap th,
.cfg-table-wrap td,
.usr-table,
.usr-table th,
.usr-table td,
.report-table-container table,
.report-table-container th,
.report-table-container td,
.report-compact-table,
.report-compact-table th,
.report-compact-table td,
.sat-table-wrap table,
.sat-table-wrap th,
.sat-table-wrap td,
#RespuestaResultado,
#RespuestaResultado th,
#RespuestaResultado td,
#satConfigTable,
#satConfigTable th,
#satConfigTable td,
.sat-responsive-detail,
.documento-modal-table-wrap table,
.documento-modal-table-wrap th,
.documento-modal-table-wrap td,
.du-table-wrap table,
.du-table-wrap th,
.du-table-wrap td,
.ubic-table,
.ubic-table th,
.ubic-table td,
.banco-table,
.banco-table th,
.banco-table td,
.config-table,
.config-table th,
.config-table td,
.catalogo-sat-table,
.catalogo-sat-table th,
.catalogo-sat-table td {
    font-size: var(--cfdi4-font-size-xs) !important;
}

.rep-status,
.cobranza-badge,
.cancelacion-badge,
.cliente-badge,
.cliente-email-chip,
.empresa-badge,
.config-status-badge,
.report-badge,
.sat-badge,
.du-destino-badge,
.documento-modal-option-badge,
.catalogo-selected-badge,
.ubic-status,
.banco-status-line {
    font-size: var(--cfdi4-font-size-xs) !important;
}

/* Menu lateral: texto limpio por tema, sin sombra heredada de AdminLTE. */
.sat-menu-new-badge {
    animation: satMenuNewPulse 1.8s ease-out infinite;
    background: #dc3545;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, .55);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2px;
    padding: 2px 6px;
}

@keyframes satMenuNewPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, .55);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.sidebar-collapse .sat-menu-new-badge {
    display: none;
}

.main-sidebar .soati-brand-link {
    align-items: center;
    display: flex;
    height: calc(3.5rem + 1px);
    min-height: calc(3.5rem + 1px);
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.main-sidebar .soati-brand-copy {
    display: inline-block;
    line-height: 1.05;
    vertical-align: middle;
}

.main-sidebar .soati-brand-title {
    display: block;
}

.main-sidebar .brand-link,
.main-sidebar .brand-link *,
.main-sidebar .nav-sidebar .nav-link,
.main-sidebar .nav-sidebar .nav-link *,
.main-sidebar .nav-sidebar .nav-treeview .nav-link,
.main-sidebar .nav-sidebar .nav-treeview .nav-link * {
    text-shadow: none !important;
}

.main-sidebar.sidebar-light-primary .brand-link,
.main-sidebar.sidebar-light-primary .brand-link *,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-link,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-link p,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-link .nav-icon,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-link .right {
    color: #000 !important;
}

.main-sidebar.sidebar-dark-primary .brand-link,
.main-sidebar.sidebar-dark-primary .brand-link *,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link p,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .nav-icon,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .right {
    color: #fff !important;
}

.main-sidebar.sidebar-light-primary .soati-brand-subtitle {
    color: #000 !important;
    opacity: .68;
}

.main-sidebar.sidebar-dark-primary .soati-brand-subtitle {
    color: #fff !important;
    opacity: .72;
}

.main-sidebar .soati-brand-copy,
.main-sidebar .soati-brand-title,
.main-sidebar .soati-brand-subtitle {
    font-family: "Elms Sans", "Inter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    letter-spacing: 0;
    filter: none !important;
    text-shadow: none !important;
}

.main-sidebar .soati-brand-title {
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.05;
}

.main-sidebar .soati-brand-word {
    display: inline-block;
    font-family: "Viperine SOATI", "Elms Sans", "Inter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: .92em;
    font-weight: 400;
    line-height: .8;
    margin-right: .04rem;
    transform: translateY(.04em);
    transform-origin: left center;
}

.main-sidebar .soati-brand-product {
    display: inline-block;
    margin-left: .28rem;
    position: relative;
    top: .15em;
    vertical-align: baseline;
}

.main-sidebar .soati-brand-subtitle {
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.1;
}

.main-sidebar.sidebar-light-primary .nav-sidebar .nav-link.active,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-link.active *,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link.active,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link.active * {
    color: #fff !important;
}

.main-sidebar.sidebar-light-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active p,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active .nav-icon,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active .right {
    color: #000 !important;
}

.main-sidebar.sidebar-light-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
    background-color: rgba(0, 0, 0, .08) !important;
}

.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active:hover,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active:focus {
    background-color: rgba(255, 255, 255, .14) !important;
    color: #fff !important;
}

.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active p,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active .nav-icon,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active .right,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active p,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active .nav-icon,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active .right {
    color: #fff !important;
}

.main-sidebar .nav-sidebar .nav-link .sat-menu-new-badge,
.main-sidebar .nav-sidebar .nav-link .sat-menu-new-badge.right,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-link .sat-menu-new-badge,
.main-sidebar.sidebar-light-primary .nav-sidebar .nav-link .sat-menu-new-badge.right,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .sat-menu-new-badge,
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .sat-menu-new-badge.right,
.main-sidebar .nav-sidebar .nav-link.active .sat-menu-new-badge,
.main-sidebar .nav-sidebar .nav-link.active .sat-menu-new-badge.right {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Familias adicionales invocadas desde includes/menu.php. */
.fr-subtitle,
.fr-stat span,
.fr-label,
.fr-source,
.fr-source-detail th,
.fr-source-observ,
.fr-table th,
.fr-empty,
.fr-model-loading,
#ComunicacionModulo .com-editor-resize-hint,
#ComunicacionModulo .com-recipient-main span,
#ComunicacionModulo .com-recipient-row.text-muted,
#ParametrosModulo .params-metric-label,
#ParametrosModulo .params-description,
#ParametrosModal .params-secret-state,
#ParametrosModal .params-help {
    color: var(--cfdi4-muted) !important;
}

.fr-label,
.fr-stat span,
.fr-source-detail th,
.fr-table th,
.fr-badge,
#ComunicacionModulo .com-editor-resize-hint,
#ComunicacionModulo .com-recipient-main strong,
#ComunicacionModulo .com-recipient-main span,
#ComunicacionModulo .com-history-table,
#ComunicacionModulo .com-history-table th,
#ComunicacionModulo .com-history-table td,
#ParametrosModulo .params-metric-label,
#ParametrosModulo .params-description,
#ParametrosModulo .badge,
#ParametrosTabla,
#ParametrosTabla th,
#ParametrosTabla td {
    font-size: var(--cfdi4-font-size-xs) !important;
}

.fr-subtitle,
.fr-input,
.fr-select,
.fr-textarea,
.fr-btn,
.fr-alert,
.fr-source,
.fr-source-detail td,
.fr-table,
.fr-table td,
.fr-model-loading,
#ComunicacionModulo label,
#ComunicacionModulo .custom-control-label,
#ComunicacionModulo .custom-file-label,
#ParametrosModal label,
#ParametrosModal .custom-control-label,
#ParametrosModal .params-secret-state,
#ParametrosModal .params-help {
    font-size: var(--cfdi4-font-size-sm) !important;
}

.fr-panel-title,
.fr-source-total,
#ComunicacionModulo .card-title,
#ParametrosModulo .config-card-title,
#ParametrosModal .modal-title {
    font-size: var(--cfdi4-font-size-md) !important;
}

.fr-title,
.fr-stat strong,
#ParametrosModulo .params-metric-value {
    font-size: var(--cfdi4-font-size-lg) !important;
}

/* Cobertura completa para CSS ligados desde las paginas del menu. */
.config-info-line,
.config-card-title p,
.config-summary-card span,
.config-empty-state,
.catalogo-info-line,
.catalogo-card-title p,
.catalogo-summary-card span,
.catalogo-search-status,
.catalogo-sat-table .catalogo-info,
.catalogo-empty,
.estado-cuenta-title p,
.estado-cuenta-title span,
.estado-cuenta-title small,
.estado-cuenta-mini-card span,
.estado-cuenta-loading,
.sat-card-subtitle,
.sat-summary-label,
.sat-status-label,
.sat-security-note,
.report-card-subtitle,
.report-summary-card span,
.report-selection-text,
.report-note,
.report-helper {
    color: var(--cfdi4-muted) !important;
}

.config-crud-header .btn span,
.config-summary-card span,
.config-card-title p,
.config-status-badge,
.config-table-card th,
.catalogo-summary-card span,
.catalogo-card-title p,
.catalogo-search-status,
.catalogo-sat-table th,
.catalogo-sat-table td,
.catalogo-sat-table .catalogo-info,
.catalogo-selected-badge,
.estado-cuenta-page .estado-cuenta-switches label,
.estado-cuenta-page .estado-cuenta-quick .btn,
.estado-cuenta-title p,
.estado-cuenta-title span,
.estado-cuenta-title small,
.estado-cuenta-mini-card span,
.estado-cuenta-detail h6,
.estado-cuenta-detail table,
.report-compact-table table,
.report-compact-table .report-table,
.report-compact-table #RespuestaResultado,
.report-compact-table th,
.report-compact-table #RespuestaResultado th,
.dt-buttons .btn,
.dt-buttons button,
.sat-modern-actions .btn,
.sat-card label,
.sat-card-subtitle,
.sat-summary-label,
.sat-status-label,
.sat-badge,
.sat-upload-status,
.sat-security-note,
#RespuestaResultado,
#RespuestaResultado th,
#RespuestaResultado td,
#satConfigTable,
#satConfigTable th,
#satConfigTable td {
    font-size: var(--cfdi4-font-size-xs) !important;
}

.config-info-line,
.catalogo-info-line,
.estado-cuenta-loading,
.report-action-btn,
.report-toolbar .btn,
.report-modal-body .btn,
.report-helper,
.report-card-subtitle,
.report-selection-text,
.report-note,
.sat-helper-line,
.sat-status-value {
    font-size: var(--cfdi4-font-size-sm) !important;
}

.config-card-title h5,
.catalogo-card-title h5,
.estado-cuenta-title h5,
.estado-cuenta-title strong,
.report-card-title,
.sat-card-title {
    font-size: var(--cfdi4-font-size-md) !important;
}

.config-summary-card strong,
.catalogo-summary-card strong,
.estado-cuenta-mini-card strong,
.report-summary-card strong,
.sat-modern-title,
.sat-summary-value {
    font-size: var(--cfdi4-font-size-lg) !important;
}

/* Red generica para modulos cargados en #LoadContentMenu. */
#LoadContentMenu .text-muted,
#LoadContentMenu [class$="-helper"],
#LoadContentMenu [class$="-help"],
#LoadContentMenu [class$="-subtitle"],
#LoadContentMenu [class$="-description"],
#LoadContentMenu [class$="-note"],
#LoadContentMenu [class$="-empty"],
#LoadContentMenu [class$="-empty-state"],
#LoadContentMenu [class$="-messages"] {
    color: var(--cfdi4-muted) !important;
}

#LoadContentMenu [class$="-helper"],
#LoadContentMenu [class$="-help"],
#LoadContentMenu [class$="-subtitle"],
#LoadContentMenu [class$="-description"],
#LoadContentMenu [class$="-note"],
#LoadContentMenu [class$="-empty"],
#LoadContentMenu [class$="-empty-state"],
#LoadContentMenu [class$="-messages"],
#LoadContentMenu [class$="-state"],
#LoadContentMenu [class$="-status"],
#LoadContentMenu [class$="-value"],
#LoadContentMenu [class$="-label"] {
    font-size: var(--cfdi4-font-size-sm) !important;
}

#LoadContentMenu [class$="-card-title"],
#LoadContentMenu [class$="-panel-title"],
#LoadContentMenu [class$="-mode-title"] {
    font-size: var(--cfdi4-font-size-md) !important;
}

#LoadContentMenu table.table-sm,
#LoadContentMenu .table-sm,
#LoadContentMenu [class$="-table"],
#LoadContentMenu [class$="-table"] th,
#LoadContentMenu [class$="-table"] td,
#LoadContentMenu [class$="-badge"],
#LoadContentMenu .badge {
    font-size: var(--cfdi4-font-size-xs) !important;
}

.layout-footer-fixed .wrapper .content-wrapper {
    padding-bottom: calc(var(--cfdi4-footer-height, 3.25rem) + var(--cfdi4-footer-bottom-offset, 0rem) + 0.25rem);
}

.layout-footer-fixed.layout-fixed .wrapper .main-sidebar {
    bottom: 0;
    height: 100vh;
}

.layout-footer-fixed.layout-navbar-fixed.layout-fixed .wrapper .sidebar {
    height: calc(100vh - (3.5rem + 1px) - var(--cfdi4-footer-height, 3.25rem) - var(--cfdi4-footer-bottom-offset, 0rem));
    padding-bottom: 0.75rem;
}

.layout-footer-fixed.layout-fixed .wrapper .main-sidebar::after {
    background: var(--cfdi4-footer-bg, #ffffff);
    bottom: 0;
    content: "";
    height: calc(var(--cfdi4-footer-height, 3.25rem) + var(--cfdi4-footer-bottom-offset, 0rem));
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.layout-footer-fixed .wrapper .main-footer {
    background-color: var(--cfdi4-footer-bg, #ffffff) !important;
    border-top: 0 !important;
    box-shadow: none;
    min-height: var(--cfdi4-footer-height, 3.25rem);
    padding-bottom: 0.65rem;
    padding-top: 0.65rem;
    z-index: 1039;
}

.layout-footer-fixed .wrapper .main-footer::before {
    background: var(--cfdi4-footer-divider, #d7dde5);
    bottom: calc(var(--cfdi4-footer-height, 3.25rem) + var(--cfdi4-footer-bottom-offset, 0rem) - 1px);
    content: "";
    height: 1px;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    z-index: 1;
}

@media (max-width: 767.98px) {
    :root {
        --cfdi4-footer-bottom-offset: 0.3rem;
    }

    .layout-footer-fixed .wrapper .content-wrapper {
        padding-bottom: calc(var(--cfdi4-footer-height, 3.25rem) + var(--cfdi4-footer-bottom-offset, 0.3rem) + 0.25rem);
    }

    .layout-footer-fixed .wrapper .main-footer {
        bottom: 0.3rem;
        font-size: var(--cfdi4-font-size-xs);
        line-height: 1.3;
        padding-bottom: 0.72rem;
        padding-top: 0.5rem;
    }
}

/* Dark mode neutral profesional: inspirado en Teams/Outlook Classic, sin tinte azul. */
html.dark-mode,
body.dark-mode {
    --cfdi4-muted: #a7a7a7;
    --cfdi4-dark-bg: #0f0f0f;
    --cfdi4-dark-shell: #151515;
    --cfdi4-dark-sidebar: #0f0f0f;
    --cfdi4-dark-surface: #181818;
    --cfdi4-dark-surface-2: #1b1b1b;
    --cfdi4-dark-surface-3: #242424;
    --cfdi4-dark-elevated: #282828;
    --cfdi4-dark-border: #343434;
    --cfdi4-dark-border-strong: #444444;
    --cfdi4-dark-text: #f3f3f3;
    --cfdi4-dark-text-secondary: #d0d0d0;
    --cfdi4-dark-text-muted: #a7a7a7;
    --cfdi4-dark-text-disabled: #767676;
    --cfdi4-dark-hover: #242424;
    --cfdi4-dark-active: #303030;
    --cfdi4-dark-accent: #9fcb3a;
    --cfdi4-dark-accent-hover: #b8df55;
    --cfdi4-dark-accent-soft: rgba(159, 203, 58, .16);
    --cfdi4-dark-focus: rgba(159, 203, 58, .32);
    --cfdi4-dark-error: #ff6b6b;
    --cfdi4-dark-success: #7bd88f;
    --cfdi4-dark-warning: #f7c948;
    --cfdi4-dark-info: #c9c9c9;
    --cfdi4-dark-shadow: 0 10px 24px rgba(0, 0, 0, .34);
    --cfdi4-footer-bg: var(--cfdi4-dark-shell);
    --cfdi4-footer-divider: var(--cfdi4-dark-border-strong);
    --cfdi4-footer-divider-shadow: rgba(255, 255, 255, .045);
}

html.dark-mode,
html.dark-mode body,
body.dark-mode,
html.dark-mode .wrapper,
body.dark-mode .wrapper,
html.dark-mode .content-wrapper,
body.dark-mode .content-wrapper {
    background-color: var(--cfdi4-dark-bg) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .main-header,
body.dark-mode .main-header,
html.dark-mode .main-header.navbar-dark,
html.dark-mode .main-header.navbar-light,
html.dark-mode .main-header.navbar-white,
body.dark-mode .main-header.navbar-dark,
body.dark-mode .main-header.navbar-light,
body.dark-mode .main-header.navbar-white,
html.dark-mode .navbar,
body.dark-mode .navbar,
html.dark-mode .main-footer,
body.dark-mode .main-footer {
    background-color: var(--cfdi4-dark-shell) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode .main-header .nav-link,
body.dark-mode .main-header .nav-link,
html.dark-mode .navbar .nav-link,
body.dark-mode .navbar .nav-link {
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode .main-header .nav-link:hover,
html.dark-mode .main-header .nav-link:focus,
body.dark-mode .main-header .nav-link:hover,
body.dark-mode .main-header .nav-link:focus,
html.dark-mode .navbar .nav-link:hover,
html.dark-mode .navbar .nav-link:focus,
body.dark-mode .navbar .nav-link:hover,
body.dark-mode .navbar .nav-link:focus {
    background-color: var(--cfdi4-dark-hover) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .main-sidebar,
body.dark-mode .main-sidebar,
html.dark-mode [class*="sidebar-dark-"],
body.dark-mode [class*="sidebar-dark-"] {
    background-color: var(--cfdi4-dark-sidebar) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .main-sidebar .brand-link,
body.dark-mode .main-sidebar .brand-link {
    background-color: var(--cfdi4-dark-sidebar) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .main-sidebar.sidebar-dark-primary .soati-brand-subtitle,
body.dark-mode .main-sidebar.sidebar-dark-primary .soati-brand-subtitle {
    color: var(--cfdi4-dark-text-secondary) !important;
    opacity: .9;
}

html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link {
    background-color: transparent !important;
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link p,
html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .nav-icon,
html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .right,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link p,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .nav-icon,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link .right,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link p,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link .nav-icon,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link .right,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link p,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link .nav-icon,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link .right {
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover,
html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:focus,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:focus,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:hover,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:focus,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:hover,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:focus {
    background-color: var(--cfdi4-dark-hover) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover p,
html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover .nav-icon,
html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover .right,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover p,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover .nav-icon,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover .right,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:hover p,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:hover .nav-icon,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:hover .right,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:hover p,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:hover .nav-icon,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link:hover .right {
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link.active,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link.active,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link.active,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link.active,
html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active,
html.dark-mode [class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active,
body.dark-mode [class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active {
    background-color: var(--cfdi4-dark-active) !important;
    box-shadow: inset 3px 0 0 var(--cfdi4-dark-accent) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link.active *,
body.dark-mode .main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link.active *,
html.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link.active *,
body.dark-mode [class*="sidebar-dark-"] .nav-sidebar .nav-link.active * {
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .card,
body.dark-mode .card,
html.dark-mode .card-Login,
body.dark-mode .card-Login,
html.dark-mode .card-Graph,
body.dark-mode .card-Graph,
html.dark-mode .dashboard-box,
body.dark-mode .dashboard-box,
html.dark-mode .dashboard-graph,
body.dark-mode .dashboard-graph,
html.dark-mode .dashboard-news-card,
body.dark-mode .dashboard-news-card,
html.dark-mode .factura-card,
body.dark-mode .factura-card,
html.dark-mode .cobranza-card,
body.dark-mode .cobranza-card,
html.dark-mode .cancelacion-card,
body.dark-mode .cancelacion-card,
html.dark-mode .report-card,
body.dark-mode .report-card,
html.dark-mode .sat-card,
body.dark-mode .sat-card,
html.dark-mode .config-card,
body.dark-mode .config-card,
html.dark-mode .catalogo-card,
body.dark-mode .catalogo-card,
html.dark-mode .du-card,
body.dark-mode .du-card,
html.dark-mode .estado-cuenta-mini-card,
body.dark-mode .estado-cuenta-mini-card {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    box-shadow: var(--cfdi4-dark-shadow) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .card-header,
html.dark-mode .card-footer,
body.dark-mode .card-header,
body.dark-mode .card-footer,
html.dark-mode .dashboard-graph .card-header,
html.dark-mode .dashboard-news-card .card-header,
body.dark-mode .dashboard-graph .card-header,
body.dark-mode .dashboard-news-card .card-header {
    background-color: transparent !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .card-body,
body.dark-mode .card-body {
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .text-muted,
body.dark-mode .text-muted,
html.dark-mode .dashboard-rating-caption,
body.dark-mode .dashboard-rating-caption,
html.dark-mode #LoadContentMenu [class$="-helper"],
html.dark-mode #LoadContentMenu [class$="-help"],
html.dark-mode #LoadContentMenu [class$="-subtitle"],
html.dark-mode #LoadContentMenu [class$="-description"],
html.dark-mode #LoadContentMenu [class$="-note"],
body.dark-mode #LoadContentMenu [class$="-helper"],
body.dark-mode #LoadContentMenu [class$="-help"],
body.dark-mode #LoadContentMenu [class$="-subtitle"],
body.dark-mode #LoadContentMenu [class$="-description"],
body.dark-mode #LoadContentMenu [class$="-note"] {
    color: var(--cfdi4-dark-text-muted) !important;
}

html.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.brand-link):not(.navbar-brand),
body.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.brand-link):not(.navbar-brand) {
    color: var(--cfdi4-dark-accent-hover) !important;
}

html.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.brand-link):not(.navbar-brand):hover,
html.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.brand-link):not(.navbar-brand):focus,
body.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.brand-link):not(.navbar-brand):hover,
body.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.brand-link):not(.navbar-brand):focus {
    color: var(--cfdi4-dark-accent) !important;
}

html.dark-mode .form-control,
html.dark-mode .custom-select,
html.dark-mode textarea,
html.dark-mode select:not(.select2-hidden-accessible),
html.dark-mode .input-group-text,
html.dark-mode .custom-file-label,
html.dark-mode .select2-container--default .select2-selection--single,
html.dark-mode .select2-container--default .select2-selection--multiple,
body.dark-mode .form-control,
body.dark-mode .custom-select,
body.dark-mode textarea,
body.dark-mode select:not(.select2-hidden-accessible),
body.dark-mode .input-group-text,
body.dark-mode .custom-file-label,
body.dark-mode .select2-container--default .select2-selection--single,
body.dark-mode .select2-container--default .select2-selection--multiple {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .form-control:hover,
html.dark-mode .custom-select:hover,
html.dark-mode textarea:hover,
html.dark-mode select:not(.select2-hidden-accessible):hover,
body.dark-mode .form-control:hover,
body.dark-mode .custom-select:hover,
body.dark-mode textarea:hover,
body.dark-mode select:not(.select2-hidden-accessible):hover {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: #5a5a5a !important;
}

html.dark-mode .form-control:focus,
html.dark-mode .custom-select:focus,
html.dark-mode textarea:focus,
html.dark-mode select:not(.select2-hidden-accessible):focus,
html.dark-mode .select2-container--default.select2-container--focus .select2-selection--multiple,
html.dark-mode .select2-container--default.select2-container--open .select2-selection--single,
body.dark-mode .form-control:focus,
body.dark-mode .custom-select:focus,
body.dark-mode textarea:focus,
body.dark-mode select:not(.select2-hidden-accessible):focus,
body.dark-mode .select2-container--default.select2-container--focus .select2-selection--multiple,
body.dark-mode .select2-container--default.select2-container--open .select2-selection--single {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-accent) !important;
    box-shadow: 0 0 0 .16rem var(--cfdi4-dark-focus) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .form-control::placeholder,
html.dark-mode textarea::placeholder,
body.dark-mode .form-control::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--cfdi4-dark-text-disabled) !important;
}

html.dark-mode .form-control[readonly],
html.dark-mode .form-control:disabled,
html.dark-mode .custom-select:disabled,
body.dark-mode .form-control[readonly],
body.dark-mode .form-control:disabled,
body.dark-mode .custom-select:disabled {
    background-color: var(--cfdi4-dark-surface) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text-disabled) !important;
}

html.dark-mode input:-webkit-autofill,
html.dark-mode input:-webkit-autofill:hover,
html.dark-mode input:-webkit-autofill:focus,
html.dark-mode textarea:-webkit-autofill,
html.dark-mode textarea:-webkit-autofill:hover,
html.dark-mode textarea:-webkit-autofill:focus,
html.dark-mode select:-webkit-autofill,
html.dark-mode select:-webkit-autofill:hover,
html.dark-mode select:-webkit-autofill:focus,
body.dark-mode input:-webkit-autofill,
body.dark-mode input:-webkit-autofill:hover,
body.dark-mode input:-webkit-autofill:focus,
body.dark-mode textarea:-webkit-autofill,
body.dark-mode textarea:-webkit-autofill:hover,
body.dark-mode textarea:-webkit-autofill:focus,
body.dark-mode select:-webkit-autofill,
body.dark-mode select:-webkit-autofill:hover,
body.dark-mode select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--cfdi4-dark-surface-2) inset !important;
    -webkit-text-fill-color: var(--cfdi4-dark-text) !important;
    caret-color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .select2-dropdown,
html.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field,
body.dark-mode .select2-dropdown,
body.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .select2-container--default .select2-results__option[aria-selected=true],
body.dark-mode .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--cfdi4-dark-active) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .select2-container--default .select2-results__option--highlighted[aria-selected],
body.dark-mode .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--cfdi4-dark-accent) !important;
    color: #111111 !important;
}

html.dark-mode .table,
html.dark-mode table.dataTable,
body.dark-mode .table,
body.dark-mode table.dataTable {
    background-color: transparent !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .table th,
html.dark-mode .table td,
html.dark-mode table.dataTable th,
html.dark-mode table.dataTable td,
body.dark-mode .table th,
body.dark-mode .table td,
body.dark-mode table.dataTable th,
body.dark-mode table.dataTable td {
    border-color: var(--cfdi4-dark-border) !important;
}

html.dark-mode .table thead th,
html.dark-mode table.dataTable thead th,
body.dark-mode .table thead th,
body.dark-mode table.dataTable thead th {
    background-color: var(--cfdi4-dark-surface-3) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .table-striped tbody tr:nth-of-type(odd),
html.dark-mode table.dataTable.stripe tbody tr.odd,
html.dark-mode table.dataTable.display tbody tr.odd,
body.dark-mode .table-striped tbody tr:nth-of-type(odd),
body.dark-mode table.dataTable.stripe tbody tr.odd,
body.dark-mode table.dataTable.display tbody tr.odd {
    background-color: rgba(255, 255, 255, .025) !important;
}

html.dark-mode .table-hover tbody tr:hover,
html.dark-mode table.dataTable.hover tbody tr:hover,
html.dark-mode table.dataTable.display tbody tr:hover,
body.dark-mode .table-hover tbody tr:hover,
body.dark-mode table.dataTable.hover tbody tr:hover,
body.dark-mode table.dataTable.display tbody tr:hover {
    background-color: var(--cfdi4-dark-hover) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode table.dataTable > tbody > tr.child,
html.dark-mode table.dataTable > tbody > tr.child:hover,
body.dark-mode table.dataTable > tbody > tr.child,
body.dark-mode table.dataTable > tbody > tr.child:hover {
    background-color: var(--cfdi4-dark-surface-3) !important;
}

html.dark-mode .dataTables_wrapper .dataTables_length,
html.dark-mode .dataTables_wrapper .dataTables_filter,
html.dark-mode .dataTables_wrapper .dataTables_info,
html.dark-mode .dataTables_wrapper .dataTables_paginate,
body.dark-mode .dataTables_wrapper .dataTables_length,
body.dark-mode .dataTables_wrapper .dataTables_filter,
body.dark-mode .dataTables_wrapper .dataTables_info,
body.dark-mode .dataTables_wrapper .dataTables_paginate {
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode .page-link,
body.dark-mode .page-link {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode .page-link:hover,
body.dark-mode .page-link:hover {
    background-color: var(--cfdi4-dark-hover) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .page-item.active .page-link,
body.dark-mode .page-item.active .page-link {
    background-color: var(--cfdi4-dark-accent) !important;
    border-color: var(--cfdi4-dark-accent) !important;
    color: #111111 !important;
}

html.dark-mode .dropdown-menu,
html.dark-mode .modal-content,
html.dark-mode .modal-header,
html.dark-mode .modal-body,
html.dark-mode .modal-footer,
html.dark-mode .popover,
html.dark-mode .ui-dialog.ui-widget.ui-widget-content,
html.dark-mode .ui-dialog .ui-dialog-titlebar,
html.dark-mode .ui-dialog .ui-dialog-content,
html.dark-mode .ui-dialog .ui-dialog-buttonpane,
body.dark-mode .dropdown-menu,
body.dark-mode .modal-content,
body.dark-mode .modal-header,
body.dark-mode .modal-body,
body.dark-mode .modal-footer,
body.dark-mode .popover,
body.dark-mode .ui-dialog.ui-widget.ui-widget-content,
body.dark-mode .ui-dialog .ui-dialog-titlebar,
body.dark-mode .ui-dialog .ui-dialog-content,
body.dark-mode .ui-dialog .ui-dialog-buttonpane {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .dropdown-item,
body.dark-mode .dropdown-item {
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode .dropdown-item:hover,
html.dark-mode .dropdown-item:focus,
body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    background-color: var(--cfdi4-dark-hover) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .modal-header,
html.dark-mode .modal-footer,
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: var(--cfdi4-dark-border) !important;
}

html.dark-mode .swal2-popup,
body.dark-mode .swal2-popup,
html[data-theme="dark"] .swal2-popup {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border: 1px solid var(--cfdi4-dark-border-strong) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .48) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .swal2-title,
body.dark-mode .swal2-title,
html[data-theme="dark"] .swal2-title {
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .swal2-html-container,
html.dark-mode .swal2-content,
body.dark-mode .swal2-html-container,
body.dark-mode .swal2-content,
html[data-theme="dark"] .swal2-html-container,
html[data-theme="dark"] .swal2-content {
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode .swal2-input,
html.dark-mode .swal2-textarea,
html.dark-mode .swal2-select,
body.dark-mode .swal2-input,
body.dark-mode .swal2-textarea,
body.dark-mode .swal2-select,
html[data-theme="dark"] .swal2-input,
html[data-theme="dark"] .swal2-textarea,
html[data-theme="dark"] .swal2-select {
    background-color: #101010 !important;
    border-color: var(--cfdi4-dark-accent) !important;
    box-shadow: inset 0 0 0 1px rgba(159, 203, 58, .28) !important;
    caret-color: var(--cfdi4-dark-accent-hover) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

html.dark-mode .swal2-input.CurrencyInput,
body.dark-mode .swal2-input.CurrencyInput,
html[data-theme="dark"] .swal2-input.CurrencyInput {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: right;
}

html.dark-mode .swal2-input:focus,
html.dark-mode .swal2-textarea:focus,
html.dark-mode .swal2-select:focus,
body.dark-mode .swal2-input:focus,
body.dark-mode .swal2-textarea:focus,
body.dark-mode .swal2-select:focus,
html[data-theme="dark"] .swal2-input:focus,
html[data-theme="dark"] .swal2-textarea:focus,
html[data-theme="dark"] .swal2-select:focus {
    background-color: #101010 !important;
    border-color: var(--cfdi4-dark-accent-hover) !important;
    box-shadow: 0 0 0 .16rem var(--cfdi4-dark-focus), inset 0 0 0 1px rgba(184, 223, 85, .34) !important;
    color: #ffffff !important;
}

html.dark-mode .swal2-input::placeholder,
html.dark-mode .swal2-textarea::placeholder,
body.dark-mode .swal2-input::placeholder,
body.dark-mode .swal2-textarea::placeholder,
html[data-theme="dark"] .swal2-input::placeholder,
html[data-theme="dark"] .swal2-textarea::placeholder {
    color: var(--cfdi4-dark-text-muted) !important;
    opacity: 1 !important;
}

html.dark-mode .swal2-validation-message,
body.dark-mode .swal2-validation-message,
html[data-theme="dark"] .swal2-validation-message {
    background-color: rgba(255, 107, 107, .14) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .btn-default,
html.dark-mode .btn-light,
html.dark-mode .btn-secondary,
html.dark-mode .dt-buttons .btn,
body.dark-mode .btn-default,
body.dark-mode .btn-light,
body.dark-mode .btn-secondary,
body.dark-mode .dt-buttons .btn {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .btn-default:hover,
html.dark-mode .btn-light:hover,
html.dark-mode .btn-secondary:hover,
html.dark-mode .dt-buttons .btn:hover,
body.dark-mode .btn-default:hover,
body.dark-mode .btn-light:hover,
body.dark-mode .btn-secondary:hover,
body.dark-mode .dt-buttons .btn:hover {
    background-color: var(--cfdi4-dark-active) !important;
    border-color: #5a5a5a !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .btn-primary,
body.dark-mode .btn-primary {
    background-color: var(--cfdi4-dark-accent) !important;
    border-color: var(--cfdi4-dark-accent) !important;
    color: #111111 !important;
}

html.dark-mode .btn-primary:hover,
html.dark-mode .btn-primary:focus,
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-primary:focus {
    background-color: var(--cfdi4-dark-accent-hover) !important;
    border-color: var(--cfdi4-dark-accent-hover) !important;
    color: #111111 !important;
}

html.dark-mode .btn-outline-danger,
body.dark-mode .btn-outline-danger {
    border-color: var(--cfdi4-dark-error) !important;
    color: var(--cfdi4-dark-error) !important;
}

html.dark-mode .btn-outline-primary,
body.dark-mode .btn-outline-primary {
    border-color: var(--cfdi4-dark-accent) !important;
    color: var(--cfdi4-dark-accent-hover) !important;
}

html.dark-mode .btn-outline-primary:hover,
body.dark-mode .btn-outline-primary:hover {
    background-color: var(--cfdi4-dark-accent) !important;
    color: #111111 !important;
}

html.dark-mode .badge-primary,
body.dark-mode .badge-primary {
    background-color: var(--cfdi4-dark-accent) !important;
    color: #111111 !important;
}

html.dark-mode .badge-info,
body.dark-mode .badge-info {
    background-color: #4a4a4a !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .alert-info,
body.dark-mode .alert-info {
    background-color: rgba(201, 201, 201, .12) !important;
    border-color: #5a5a5a !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .alert-success,
body.dark-mode .alert-success {
    background-color: rgba(123, 216, 143, .14) !important;
    border-color: rgba(123, 216, 143, .44) !important;
    color: #dff8e5 !important;
}

html.dark-mode .alert-warning,
body.dark-mode .alert-warning {
    background-color: rgba(247, 201, 72, .14) !important;
    border-color: rgba(247, 201, 72, .48) !important;
    color: #fff1bf !important;
}

html.dark-mode .alert-danger,
body.dark-mode .alert-danger {
    background-color: rgba(255, 107, 107, .14) !important;
    border-color: rgba(255, 107, 107, .48) !important;
    color: #ffd6d6 !important;
}

html.dark-mode .dropzone,
body.dark-mode .dropzone {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode .dropzone.dz-drag-hover,
body.dark-mode .dropzone.dz-drag-hover {
    background-color: var(--cfdi4-dark-hover) !important;
    border-color: var(--cfdi4-dark-accent) !important;
}

html.dark-mode .dropzone .dz-preview.dz-image-preview,
html.dark-mode .dropzone .dz-preview.dz-file-preview .dz-image,
body.dark-mode .dropzone .dz-preview.dz-image-preview,
body.dark-mode .dropzone .dz-preview.dz-file-preview .dz-image {
    background: var(--cfdi4-dark-surface-3) !important;
}

html.dark-mode .se-pre-con,
body.dark-mode .se-pre-con {
    background-color: rgba(17, 17, 17, .92) !important;
}

html.dark-mode .se-pre-con::before,
body.dark-mode .se-pre-con::before {
    border-color: rgba(255, 255, 255, .2) !important;
    border-top-color: var(--cfdi4-dark-accent) !important;
}

html.dark-mode :focus-visible,
body.dark-mode :focus-visible {
    outline: 2px solid var(--cfdi4-dark-accent) !important;
    outline-offset: 2px;
}

/* Alinea el separador del logo lateral con la navbar fija de AdminLTE. */
.layout-navbar-fixed .wrapper .main-sidebar .brand-link.soati-brand-link {
    align-items: center;
    display: flex;
    height: calc(3.5rem + 1px);
    min-height: calc(3.5rem + 1px);
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.layout-navbar-fixed .wrapper .main-sidebar .brand-link.soati-brand-link .brand-image {
    flex: 0 0 auto;
    margin-top: 0;
}

.layout-navbar-fixed .wrapper .main-sidebar.sidebar-dark-primary .brand-link.soati-brand-link {
    border-bottom-color: var(--cfdi4-dark-border, #3a3a3a) !important;
}

/* Modulos AJAX: puente global para que dark mode no dependa del CSS local. */
html.dark-mode body:not(.report-light-mode),
body.dark-mode:not(.report-light-mode),
html[data-theme="dark"] body:not(.report-light-mode) {
    --du-bg: var(--cfdi4-dark-surface-2) !important;
    --du-soft-bg: var(--cfdi4-dark-surface) !important;
    --du-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --du-border: var(--cfdi4-dark-border-strong) !important;
    --du-border-soft: var(--cfdi4-dark-border) !important;
    --du-text: var(--cfdi4-dark-text) !important;
    --du-muted: var(--cfdi4-dark-text-muted) !important;
    --du-primary: var(--cfdi4-dark-accent-hover) !important;
    --du-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --du-shadow: var(--cfdi4-dark-shadow) !important;

    --factura-bg: var(--cfdi4-dark-surface-2) !important;
    --factura-soft-bg: var(--cfdi4-dark-surface) !important;
    --factura-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --factura-border: var(--cfdi4-dark-border-strong) !important;
    --factura-border-soft: var(--cfdi4-dark-border) !important;
    --factura-text: var(--cfdi4-dark-text) !important;
    --factura-muted: var(--cfdi4-dark-text-muted) !important;
    --factura-primary: var(--cfdi4-dark-accent-hover) !important;
    --factura-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --factura-success: var(--cfdi4-dark-success) !important;
    --factura-warning: var(--cfdi4-dark-warning) !important;
    --factura-danger: var(--cfdi4-dark-error) !important;
    --factura-ok: var(--cfdi4-dark-success) !important;
    --factura-warn: var(--cfdi4-dark-warning) !important;
    --factura-error: var(--cfdi4-dark-error) !important;
    --factura-shadow: var(--cfdi4-dark-shadow) !important;

    --cobranza-bg: var(--cfdi4-dark-surface-2) !important;
    --cobranza-soft-bg: var(--cfdi4-dark-surface) !important;
    --cobranza-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --cobranza-border: var(--cfdi4-dark-border-strong) !important;
    --cobranza-border-soft: var(--cfdi4-dark-border) !important;
    --cobranza-text: var(--cfdi4-dark-text) !important;
    --cobranza-muted: var(--cfdi4-dark-text-muted) !important;
    --cobranza-primary: var(--cfdi4-dark-accent-hover) !important;
    --cobranza-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --cobranza-success: var(--cfdi4-dark-success) !important;
    --cobranza-warning: var(--cfdi4-dark-warning) !important;
    --cobranza-danger: var(--cfdi4-dark-error) !important;
    --cobranza-shadow: var(--cfdi4-dark-shadow) !important;

    --cancel-bg: var(--cfdi4-dark-surface-2) !important;
    --cancel-soft-bg: var(--cfdi4-dark-surface) !important;
    --cancel-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --cancel-border: var(--cfdi4-dark-border-strong) !important;
    --cancel-border-soft: var(--cfdi4-dark-border) !important;
    --cancel-text: var(--cfdi4-dark-text) !important;
    --cancel-muted: var(--cfdi4-dark-text-muted) !important;
    --cancel-primary: var(--cfdi4-dark-accent-hover) !important;
    --cancel-primary-soft: var(--cfdi4-dark-accent-soft) !important;

    --cliente-bg: var(--cfdi4-dark-surface-2) !important;
    --cliente-soft-bg: var(--cfdi4-dark-surface) !important;
    --cliente-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --cliente-border: var(--cfdi4-dark-border-strong) !important;
    --cliente-border-soft: var(--cfdi4-dark-border) !important;
    --cliente-text: var(--cfdi4-dark-text) !important;
    --cliente-muted: var(--cfdi4-dark-text-muted) !important;
    --cliente-primary: var(--cfdi4-dark-accent-hover) !important;
    --cliente-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --cliente-shadow: var(--cfdi4-dark-shadow) !important;
    --cliente-ok: var(--cfdi4-dark-success) !important;
    --cliente-warn: var(--cfdi4-dark-warning) !important;
    --cliente-error: var(--cfdi4-dark-error) !important;

    --empresa-bg: var(--cfdi4-dark-surface-2) !important;
    --empresa-soft-bg: var(--cfdi4-dark-surface) !important;
    --empresa-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --empresa-border: var(--cfdi4-dark-border-strong) !important;
    --empresa-border-soft: var(--cfdi4-dark-border) !important;
    --empresa-text: var(--cfdi4-dark-text) !important;
    --empresa-muted: var(--cfdi4-dark-text-muted) !important;
    --empresa-primary: var(--cfdi4-dark-accent-hover) !important;
    --empresa-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --empresa-ok: var(--cfdi4-dark-success) !important;
    --empresa-warn: var(--cfdi4-dark-warning) !important;
    --empresa-error: var(--cfdi4-dark-error) !important;
    --empresa-shadow: var(--cfdi4-dark-shadow) !important;

    --api-bg: var(--cfdi4-dark-surface-2) !important;
    --api-soft: var(--cfdi4-dark-surface) !important;
    --api-line: var(--cfdi4-dark-border-strong) !important;
    --api-text: var(--cfdi4-dark-text) !important;
    --api-muted: var(--cfdi4-dark-text-muted) !important;

    --cfg-bg: var(--cfdi4-dark-surface-2) !important;
    --cfg-soft-bg: var(--cfdi4-dark-surface) !important;
    --cfg-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --cfg-border: var(--cfdi4-dark-border-strong) !important;
    --cfg-border-soft: var(--cfdi4-dark-border) !important;
    --cfg-text: var(--cfdi4-dark-text) !important;
    --cfg-muted: var(--cfdi4-dark-text-muted) !important;
    --cfg-shadow: var(--cfdi4-dark-shadow) !important;

    --usr-bg: var(--cfdi4-dark-surface-2) !important;
    --usr-soft-bg: var(--cfdi4-dark-surface) !important;
    --usr-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --usr-border: var(--cfdi4-dark-border-strong) !important;
    --usr-border-soft: var(--cfdi4-dark-border) !important;
    --usr-text: var(--cfdi4-dark-text) !important;
    --usr-muted: var(--cfdi4-dark-text-muted) !important;
    --usr-primary: var(--cfdi4-dark-accent-hover) !important;
    --usr-shadow: var(--cfdi4-dark-shadow) !important;

    --banco-bg: var(--cfdi4-dark-surface-2) !important;
    --banco-soft-bg: var(--cfdi4-dark-surface) !important;
    --banco-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --banco-border: var(--cfdi4-dark-border-strong) !important;
    --banco-border-soft: var(--cfdi4-dark-border) !important;
    --banco-text: var(--cfdi4-dark-text) !important;
    --banco-muted: var(--cfdi4-dark-text-muted) !important;
    --banco-primary: var(--cfdi4-dark-accent-hover) !important;
    --banco-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --banco-shadow: var(--cfdi4-dark-shadow) !important;

    --ubic-bg: var(--cfdi4-dark-surface-2) !important;
    --ubic-soft-bg: var(--cfdi4-dark-surface) !important;
    --ubic-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --ubic-border: var(--cfdi4-dark-border-strong) !important;
    --ubic-border-soft: var(--cfdi4-dark-border) !important;
    --ubic-text: var(--cfdi4-dark-text) !important;
    --ubic-muted: var(--cfdi4-dark-text-muted) !important;
    --ubic-primary: var(--cfdi4-dark-accent-hover) !important;
    --ubic-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --ubic-shadow: var(--cfdi4-dark-shadow) !important;

    --params-border: var(--cfdi4-dark-border-strong) !important;
    --params-muted: var(--cfdi4-dark-text-muted) !important;
    --params-surface: var(--cfdi4-dark-surface-2) !important;
    --params-surface-strong: var(--cfdi4-dark-surface-3) !important;
    --params-text: var(--cfdi4-dark-text) !important;

    --documento-modal-bg: var(--cfdi4-dark-surface) !important;
    --documento-modal-card: var(--cfdi4-dark-surface-2) !important;
    --documento-modal-soft: var(--cfdi4-dark-surface) !important;
    --documento-modal-strong: var(--cfdi4-dark-surface-3) !important;
    --documento-modal-border: var(--cfdi4-dark-border-strong) !important;
    --documento-modal-border-soft: var(--cfdi4-dark-border) !important;
    --documento-modal-text: var(--cfdi4-dark-text) !important;
    --documento-modal-muted: var(--cfdi4-dark-text-muted) !important;
    --documento-modal-primary: var(--cfdi4-dark-accent-hover) !important;
    --documento-modal-shadow: var(--cfdi4-dark-shadow) !important;

    --report-bg: var(--cfdi4-dark-surface-2) !important;
    --report-soft-bg: var(--cfdi4-dark-surface) !important;
    --report-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --report-border: var(--cfdi4-dark-border-strong) !important;
    --report-border-soft: var(--cfdi4-dark-border) !important;
    --report-text: var(--cfdi4-dark-text) !important;
    --report-muted: var(--cfdi4-dark-text-muted) !important;
    --report-primary: var(--cfdi4-dark-accent-hover) !important;
    --report-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --report-ok: var(--cfdi4-dark-success) !important;
    --report-warn: var(--cfdi4-dark-warning) !important;
    --report-error: var(--cfdi4-dark-error) !important;
    --report-shadow: var(--cfdi4-dark-shadow) !important;

    --catalogo-bg: var(--cfdi4-dark-surface-2) !important;
    --catalogo-soft-bg: var(--cfdi4-dark-surface) !important;
    --catalogo-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --catalogo-border: var(--cfdi4-dark-border-strong) !important;
    --catalogo-border-soft: var(--cfdi4-dark-border) !important;
    --catalogo-text: var(--cfdi4-dark-text) !important;
    --catalogo-muted: var(--cfdi4-dark-text-muted) !important;
    --catalogo-primary: var(--cfdi4-dark-accent-hover) !important;
    --catalogo-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --catalogo-shadow: var(--cfdi4-dark-shadow) !important;
}

html.dark-mode body:not(.report-light-mode) #LoadContentMenu,
body.dark-mode:not(.report-light-mode) #LoadContentMenu,
html[data-theme="dark"] body:not(.report-light-mode) #LoadContentMenu {
    color: var(--cfdi4-dark-text) !important;
}

/* DataTables: una sola piel dark para reportes, catalogos y modulos AJAX. */
html.dark-mode body:not(.report-light-mode) .dataTables_wrapper,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper {
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode body:not(.report-light-mode) .dataTables_wrapper .row,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper .row,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper .row {
    background-color: transparent !important;
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode body:not(.report-light-mode) .dataTables_wrapper label,
html.dark-mode body:not(.report-light-mode) .dataTables_wrapper .dataTables_info,
html.dark-mode body:not(.report-light-mode) .dataTables_wrapper .dataTables_length,
html.dark-mode body:not(.report-light-mode) .dataTables_wrapper .dataTables_filter,
html.dark-mode body:not(.report-light-mode) .dataTables_wrapper .dataTables_paginate,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper label,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper .dataTables_info,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper .dataTables_length,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper .dataTables_filter,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper .dataTables_paginate,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper label,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper .dataTables_info,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper .dataTables_length,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper .dataTables_filter,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper .dataTables_paginate {
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode body:not(.report-light-mode) .dataTables_wrapper .dataTables_filter input,
html.dark-mode body:not(.report-light-mode) .dataTables_wrapper .dataTables_length select,
html.dark-mode body:not(.report-light-mode) .dataTables_wrapper .form-control,
html.dark-mode body:not(.report-light-mode) .dataTables_wrapper .custom-select,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper .dataTables_filter input,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper .dataTables_length select,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper .form-control,
body.dark-mode:not(.report-light-mode) .dataTables_wrapper .custom-select,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper .dataTables_filter input,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper .dataTables_length select,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper .form-control,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_wrapper .custom-select {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) .dataTables_scrollHead,
html.dark-mode body:not(.report-light-mode) .dataTables_scrollHeadInner,
html.dark-mode body:not(.report-light-mode) .dataTables_scrollBody,
body.dark-mode:not(.report-light-mode) .dataTables_scrollHead,
body.dark-mode:not(.report-light-mode) .dataTables_scrollHeadInner,
body.dark-mode:not(.report-light-mode) .dataTables_scrollBody,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_scrollHead,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_scrollHeadInner,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_scrollBody {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable,
html.dark-mode body:not(.report-light-mode) .table,
html.dark-mode body:not(.report-light-mode) #RespuestaResultado,
html.dark-mode body:not(.report-light-mode) #satConfigTable,
html.dark-mode body:not(.report-light-mode) .report-table,
html.dark-mode body:not(.report-light-mode) .api-table,
html.dark-mode body:not(.report-light-mode) .config-table-card table,
body.dark-mode:not(.report-light-mode) table.dataTable,
body.dark-mode:not(.report-light-mode) .table,
body.dark-mode:not(.report-light-mode) #RespuestaResultado,
body.dark-mode:not(.report-light-mode) #satConfigTable,
body.dark-mode:not(.report-light-mode) .report-table,
body.dark-mode:not(.report-light-mode) .api-table,
body.dark-mode:not(.report-light-mode) .config-table-card table,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable,
html[data-theme="dark"] body:not(.report-light-mode) .table,
html[data-theme="dark"] body:not(.report-light-mode) #RespuestaResultado,
html[data-theme="dark"] body:not(.report-light-mode) #satConfigTable,
html[data-theme="dark"] body:not(.report-light-mode) .report-table,
html[data-theme="dark"] body:not(.report-light-mode) .api-table,
html[data-theme="dark"] body:not(.report-light-mode) .config-table-card table {
    background-color: var(--cfdi4-dark-surface-2) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable thead th,
html.dark-mode body:not(.report-light-mode) table.dataTable thead td,
html.dark-mode body:not(.report-light-mode) .table thead th,
html.dark-mode body:not(.report-light-mode) #RespuestaResultado thead th,
html.dark-mode body:not(.report-light-mode) #satConfigTable thead th,
body.dark-mode:not(.report-light-mode) table.dataTable thead th,
body.dark-mode:not(.report-light-mode) table.dataTable thead td,
body.dark-mode:not(.report-light-mode) .table thead th,
body.dark-mode:not(.report-light-mode) #RespuestaResultado thead th,
body.dark-mode:not(.report-light-mode) #satConfigTable thead th,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable thead th,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable thead td,
html[data-theme="dark"] body:not(.report-light-mode) .table thead th,
html[data-theme="dark"] body:not(.report-light-mode) #RespuestaResultado thead th,
html[data-theme="dark"] body:not(.report-light-mode) #satConfigTable thead th {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable tbody tr,
html.dark-mode body:not(.report-light-mode) table.dataTable.display tbody tr,
html.dark-mode body:not(.report-light-mode) .table tbody tr,
body.dark-mode:not(.report-light-mode) table.dataTable tbody tr,
body.dark-mode:not(.report-light-mode) table.dataTable.display tbody tr,
body.dark-mode:not(.report-light-mode) .table tbody tr,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable tbody tr,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.display tbody tr,
html[data-theme="dark"] body:not(.report-light-mode) .table tbody tr {
    background-color: var(--cfdi4-dark-surface-2) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable.stripe tbody tr.odd,
html.dark-mode body:not(.report-light-mode) table.dataTable.display tbody tr.odd,
html.dark-mode body:not(.report-light-mode) .table-striped tbody tr:nth-of-type(odd),
body.dark-mode:not(.report-light-mode) table.dataTable.stripe tbody tr.odd,
body.dark-mode:not(.report-light-mode) table.dataTable.display tbody tr.odd,
body.dark-mode:not(.report-light-mode) .table-striped tbody tr:nth-of-type(odd),
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.stripe tbody tr.odd,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.display tbody tr.odd,
html[data-theme="dark"] body:not(.report-light-mode) .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--cfdi4-dark-surface) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable.display tbody tr > .sorting_1,
html.dark-mode body:not(.report-light-mode) table.dataTable.order-column tbody tr > .sorting_1,
body.dark-mode:not(.report-light-mode) table.dataTable.display tbody tr > .sorting_1,
body.dark-mode:not(.report-light-mode) table.dataTable.order-column tbody tr > .sorting_1,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.display tbody tr > .sorting_1,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.order-column tbody tr > .sorting_1 {
    background-color: rgba(255, 255, 255, .025) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable.hover tbody tr:hover,
html.dark-mode body:not(.report-light-mode) table.dataTable.display tbody tr:hover,
html.dark-mode body:not(.report-light-mode) table.dataTable tbody tr:hover,
html.dark-mode body:not(.report-light-mode) .table-hover tbody tr:hover,
body.dark-mode:not(.report-light-mode) table.dataTable.hover tbody tr:hover,
body.dark-mode:not(.report-light-mode) table.dataTable.display tbody tr:hover,
body.dark-mode:not(.report-light-mode) table.dataTable tbody tr:hover,
body.dark-mode:not(.report-light-mode) .table-hover tbody tr:hover,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.hover tbody tr:hover,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.display tbody tr:hover,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable tbody tr:hover,
html[data-theme="dark"] body:not(.report-light-mode) .table-hover tbody tr:hover {
    background-color: var(--cfdi4-dark-hover) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable td,
html.dark-mode body:not(.report-light-mode) table.dataTable th,
html.dark-mode body:not(.report-light-mode) .table td,
html.dark-mode body:not(.report-light-mode) .table th,
body.dark-mode:not(.report-light-mode) table.dataTable td,
body.dark-mode:not(.report-light-mode) table.dataTable th,
body.dark-mode:not(.report-light-mode) .table td,
body.dark-mode:not(.report-light-mode) .table th,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable td,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable th,
html[data-theme="dark"] body:not(.report-light-mode) .table td,
html[data-theme="dark"] body:not(.report-light-mode) .table th {
    border-color: var(--cfdi4-dark-border) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable > tbody > tr.child,
html.dark-mode body:not(.report-light-mode) table.dataTable > tbody > tr.child:hover,
html.dark-mode body:not(.report-light-mode) table.dataTable > tbody > tr.child > td,
html.dark-mode body:not(.report-light-mode) table.dataTable > tbody > tr.child td.child,
html.dark-mode body:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child,
body.dark-mode:not(.report-light-mode) table.dataTable > tbody > tr.child,
body.dark-mode:not(.report-light-mode) table.dataTable > tbody > tr.child:hover,
body.dark-mode:not(.report-light-mode) table.dataTable > tbody > tr.child > td,
body.dark-mode:not(.report-light-mode) table.dataTable > tbody > tr.child td.child,
body.dark-mode:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable > tbody > tr.child,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable > tbody > tr.child:hover,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable > tbody > tr.child > td,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable > tbody > tr.child td.child,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable > tbody > tr.child ul.dtr-details,
html.dark-mode body:not(.report-light-mode) table.dataTable > tbody > tr.child ul.dtr-details > li,
html.dark-mode body:not(.report-light-mode) table.dataTable > tbody > tr.child span.dtr-title,
html.dark-mode body:not(.report-light-mode) table.dataTable > tbody > tr.child span.dtr-data,
body.dark-mode:not(.report-light-mode) table.dataTable > tbody > tr.child ul.dtr-details,
body.dark-mode:not(.report-light-mode) table.dataTable > tbody > tr.child ul.dtr-details > li,
body.dark-mode:not(.report-light-mode) table.dataTable > tbody > tr.child span.dtr-title,
body.dark-mode:not(.report-light-mode) table.dataTable > tbody > tr.child span.dtr-data,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable > tbody > tr.child ul.dtr-details,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable > tbody > tr.child ul.dtr-details > li,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable > tbody > tr.child span.dtr-title,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable > tbody > tr.child span.dtr-data {
    background-color: transparent !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode body:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
html.dark-mode body:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before,
html.dark-mode body:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
body.dark-mode:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
body.dark-mode:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before,
body.dark-mode:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before,
html[data-theme="dark"] body:not(.report-light-mode) table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before {
    background-color: var(--cfdi4-dark-accent) !important;
    border-color: var(--cfdi4-dark-accent) !important;
    color: #111111 !important;
}

html.dark-mode body:not(.report-light-mode) .dataTables_processing,
body.dark-mode:not(.report-light-mode) .dataTables_processing,
html[data-theme="dark"] body:not(.report-light-mode) .dataTables_processing {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border: 1px solid var(--cfdi4-dark-border-strong) !important;
    box-shadow: var(--cfdi4-dark-shadow) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) #ClientesListadoPanel,
html.dark-mode body:not(.report-light-mode) #ClientesTabla_wrapper,
body.dark-mode:not(.report-light-mode) #ClientesListadoPanel,
body.dark-mode:not(.report-light-mode) #ClientesTabla_wrapper,
html[data-theme="dark"] body:not(.report-light-mode) #ClientesListadoPanel,
html[data-theme="dark"] body:not(.report-light-mode) #ClientesTabla_wrapper {
    background: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) #ClientesTabla,
html.dark-mode body:not(.report-light-mode) #ClientesTabla tbody tr,
html.dark-mode body:not(.report-light-mode) #ClientesTabla tbody td,
body.dark-mode:not(.report-light-mode) #ClientesTabla,
body.dark-mode:not(.report-light-mode) #ClientesTabla tbody tr,
body.dark-mode:not(.report-light-mode) #ClientesTabla tbody td,
html[data-theme="dark"] body:not(.report-light-mode) #ClientesTabla,
html[data-theme="dark"] body:not(.report-light-mode) #ClientesTabla tbody tr,
html[data-theme="dark"] body:not(.report-light-mode) #ClientesTabla tbody td {
    background: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) #ClientesTabla thead th,
body.dark-mode:not(.report-light-mode) #ClientesTabla thead th,
html[data-theme="dark"] body:not(.report-light-mode) #ClientesTabla thead th {
    background: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) #ClientesTabla tbody tr:hover td,
body.dark-mode:not(.report-light-mode) #ClientesTabla tbody tr:hover td,
html[data-theme="dark"] body:not(.report-light-mode) #ClientesTabla tbody tr:hover td {
    background: var(--cfdi4-dark-hover) !important;
    color: var(--cfdi4-dark-text) !important;
}

/* Pantallas con CSS ligado o inline que antes forzaba blanco/azul en dark. */
html.dark-mode body:not(.report-light-mode) .fr-page,
body.dark-mode:not(.report-light-mode) .fr-page,
html[data-theme="dark"] body:not(.report-light-mode) .fr-page,
html.dark-mode body:not(.report-light-mode) .sat-modern-page,
body.dark-mode:not(.report-light-mode) .sat-modern-page,
html[data-theme="dark"] body:not(.report-light-mode) .sat-modern-page,
html.dark-mode body:not(.report-light-mode) .config-crud-page,
body.dark-mode:not(.report-light-mode) .config-crud-page,
html[data-theme="dark"] body:not(.report-light-mode) .config-crud-page,
html.dark-mode body:not(.report-light-mode) .api-conexion-page,
body.dark-mode:not(.report-light-mode) .api-conexion-page,
html[data-theme="dark"] body:not(.report-light-mode) .api-conexion-page {
    background-color: transparent !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-stat,
html.dark-mode body:not(.report-light-mode) .fr-panel,
html.dark-mode body:not(.report-light-mode) .fr-source,
html.dark-mode body:not(.report-light-mode) .cliente-panel,
html.dark-mode body:not(.report-light-mode) .cliente-usage-item,
html.dark-mode body:not(.report-light-mode) .cliente-email-chip,
html.dark-mode body:not(.report-light-mode) .fr-model-modal .modal-content,
html.dark-mode body:not(.report-light-mode) .fr-model-modal .modal-body,
html.dark-mode body:not(.report-light-mode) .sat-card,
html.dark-mode body:not(.report-light-mode) .sat-summary-card,
html.dark-mode body:not(.report-light-mode) .sat-upload-status,
html.dark-mode body:not(.report-light-mode) .sat-helper-line,
html.dark-mode body:not(.report-light-mode) .config-info-line,
html.dark-mode body:not(.report-light-mode) .config-summary-card,
html.dark-mode body:not(.report-light-mode) .config-card,
html.dark-mode body:not(.report-light-mode) .config-status-control,
html.dark-mode body:not(.report-light-mode) .catalogo-info-line,
html.dark-mode body:not(.report-light-mode) .catalogo-summary-card,
html.dark-mode body:not(.report-light-mode) .catalogo-sat-card,
html.dark-mode body:not(.report-light-mode) .api-panel,
html.dark-mode body:not(.report-light-mode) .api-key-box,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .com-email-preview,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .com-recipient-list,
body.dark-mode:not(.report-light-mode) .fr-stat,
body.dark-mode:not(.report-light-mode) .fr-panel,
body.dark-mode:not(.report-light-mode) .fr-source,
body.dark-mode:not(.report-light-mode) .cliente-panel,
body.dark-mode:not(.report-light-mode) .cliente-usage-item,
body.dark-mode:not(.report-light-mode) .cliente-email-chip,
body.dark-mode:not(.report-light-mode) .fr-model-modal .modal-content,
body.dark-mode:not(.report-light-mode) .fr-model-modal .modal-body,
body.dark-mode:not(.report-light-mode) .sat-card,
body.dark-mode:not(.report-light-mode) .sat-summary-card,
body.dark-mode:not(.report-light-mode) .sat-upload-status,
body.dark-mode:not(.report-light-mode) .sat-helper-line,
body.dark-mode:not(.report-light-mode) .config-info-line,
body.dark-mode:not(.report-light-mode) .config-summary-card,
body.dark-mode:not(.report-light-mode) .config-card,
body.dark-mode:not(.report-light-mode) .config-status-control,
body.dark-mode:not(.report-light-mode) .catalogo-info-line,
body.dark-mode:not(.report-light-mode) .catalogo-summary-card,
body.dark-mode:not(.report-light-mode) .catalogo-sat-card,
body.dark-mode:not(.report-light-mode) .api-panel,
body.dark-mode:not(.report-light-mode) .api-key-box,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .com-email-preview,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .com-recipient-list,
html[data-theme="dark"] body:not(.report-light-mode) .fr-stat,
html[data-theme="dark"] body:not(.report-light-mode) .fr-panel,
html[data-theme="dark"] body:not(.report-light-mode) .fr-source,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-panel,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-usage-item,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-email-chip,
html[data-theme="dark"] body:not(.report-light-mode) .fr-model-modal .modal-content,
html[data-theme="dark"] body:not(.report-light-mode) .fr-model-modal .modal-body,
html[data-theme="dark"] body:not(.report-light-mode) .sat-card,
html[data-theme="dark"] body:not(.report-light-mode) .sat-summary-card,
html[data-theme="dark"] body:not(.report-light-mode) .sat-upload-status,
html[data-theme="dark"] body:not(.report-light-mode) .sat-helper-line,
html[data-theme="dark"] body:not(.report-light-mode) .config-info-line,
html[data-theme="dark"] body:not(.report-light-mode) .config-summary-card,
html[data-theme="dark"] body:not(.report-light-mode) .config-card,
html[data-theme="dark"] body:not(.report-light-mode) .config-status-control,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-info-line,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-summary-card,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-sat-card,
html[data-theme="dark"] body:not(.report-light-mode) .api-panel,
html[data-theme="dark"] body:not(.report-light-mode) .api-key-box,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .com-email-preview,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .com-recipient-list {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    box-shadow: var(--cfdi4-dark-shadow) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-panel-header,
html.dark-mode body:not(.report-light-mode) .fr-table th,
html.dark-mode body:not(.report-light-mode) .fr-source-detail th,
html.dark-mode body:not(.report-light-mode) .cliente-panel-header,
html.dark-mode body:not(.report-light-mode) .cliente-table th,
html.dark-mode body:not(.report-light-mode) .sat-card-header,
html.dark-mode body:not(.report-light-mode) .config-card-header,
html.dark-mode body:not(.report-light-mode) .config-table-card .row:first-child,
html.dark-mode body:not(.report-light-mode) .catalogo-card-title,
html.dark-mode body:not(.report-light-mode) .catalogo-sat-table th,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .note-toolbar,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .note-statusbar,
body.dark-mode:not(.report-light-mode) .fr-panel-header,
body.dark-mode:not(.report-light-mode) .fr-table th,
body.dark-mode:not(.report-light-mode) .fr-source-detail th,
body.dark-mode:not(.report-light-mode) .cliente-panel-header,
body.dark-mode:not(.report-light-mode) .cliente-table th,
body.dark-mode:not(.report-light-mode) .sat-card-header,
body.dark-mode:not(.report-light-mode) .config-card-header,
body.dark-mode:not(.report-light-mode) .config-table-card .row:first-child,
body.dark-mode:not(.report-light-mode) .catalogo-card-title,
body.dark-mode:not(.report-light-mode) .catalogo-sat-table th,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .note-toolbar,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .note-statusbar,
html[data-theme="dark"] body:not(.report-light-mode) .fr-panel-header,
html[data-theme="dark"] body:not(.report-light-mode) .fr-table th,
html[data-theme="dark"] body:not(.report-light-mode) .fr-source-detail th,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-panel-header,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-table th,
html[data-theme="dark"] body:not(.report-light-mode) .sat-card-header,
html[data-theme="dark"] body:not(.report-light-mode) .config-card-header,
html[data-theme="dark"] body:not(.report-light-mode) .config-table-card .row:first-child,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-card-title,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-sat-table th,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .note-toolbar,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .note-statusbar {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-input,
html.dark-mode body:not(.report-light-mode) .fr-select,
html.dark-mode body:not(.report-light-mode) .fr-textarea,
html.dark-mode body:not(.report-light-mode) .fr-btn,
html.dark-mode body:not(.report-light-mode) .cliente-panel .form-control,
html.dark-mode body:not(.report-light-mode) .cliente-panel .custom-select,
html.dark-mode body:not(.report-light-mode) .cliente-toolbar .btn-light,
html.dark-mode body:not(.report-light-mode) .sat-card .form-control-border,
html.dark-mode body:not(.report-light-mode) #ParametrosModal .params-readonly,
html.dark-mode body:not(.report-light-mode) #ParametrosModal input.form-control,
html.dark-mode body:not(.report-light-mode) #ParametrosModal textarea.form-control,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .note-editor.note-frame,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .note-editing-area,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .note-editable,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .note-codable,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .note-btn,
body.dark-mode:not(.report-light-mode) .fr-input,
body.dark-mode:not(.report-light-mode) .fr-select,
body.dark-mode:not(.report-light-mode) .fr-textarea,
body.dark-mode:not(.report-light-mode) .fr-btn,
body.dark-mode:not(.report-light-mode) .cliente-panel .form-control,
body.dark-mode:not(.report-light-mode) .cliente-panel .custom-select,
body.dark-mode:not(.report-light-mode) .cliente-toolbar .btn-light,
body.dark-mode:not(.report-light-mode) .sat-card .form-control-border,
body.dark-mode:not(.report-light-mode) #ParametrosModal .params-readonly,
body.dark-mode:not(.report-light-mode) #ParametrosModal input.form-control,
body.dark-mode:not(.report-light-mode) #ParametrosModal textarea.form-control,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .note-editor.note-frame,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .note-editing-area,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .note-editable,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .note-codable,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .note-btn,
html[data-theme="dark"] body:not(.report-light-mode) .fr-input,
html[data-theme="dark"] body:not(.report-light-mode) .fr-select,
html[data-theme="dark"] body:not(.report-light-mode) .fr-textarea,
html[data-theme="dark"] body:not(.report-light-mode) .fr-btn,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-panel .form-control,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-panel .custom-select,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-toolbar .btn-light,
html[data-theme="dark"] body:not(.report-light-mode) .sat-card .form-control-border,
html[data-theme="dark"] body:not(.report-light-mode) #ParametrosModal .params-readonly,
html[data-theme="dark"] body:not(.report-light-mode) #ParametrosModal input.form-control,
html[data-theme="dark"] body:not(.report-light-mode) #ParametrosModal textarea.form-control,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .note-editor.note-frame,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .note-editing-area,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .note-editable,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .note-codable,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .note-btn {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-btn-primary,
body.dark-mode:not(.report-light-mode) .fr-btn-primary,
html[data-theme="dark"] body:not(.report-light-mode) .fr-btn-primary {
    background-color: var(--cfdi4-dark-accent) !important;
    border-color: var(--cfdi4-dark-accent) !important;
    color: #111111 !important;
}

html.dark-mode body:not(.report-light-mode) .fr-btn-warning,
body.dark-mode:not(.report-light-mode) .fr-btn-warning,
html[data-theme="dark"] body:not(.report-light-mode) .fr-btn-warning {
    background-color: var(--cfdi4-dark-warning) !important;
    border-color: var(--cfdi4-dark-warning) !important;
    color: #111111 !important;
}

html.dark-mode body:not(.report-light-mode) .fr-btn-danger,
body.dark-mode:not(.report-light-mode) .fr-btn-danger,
html[data-theme="dark"] body:not(.report-light-mode) .fr-btn-danger {
    background-color: var(--cfdi4-dark-error) !important;
    border-color: var(--cfdi4-dark-error) !important;
    color: #111111 !important;
}

html.dark-mode body:not(.report-light-mode) .fr-table,
html.dark-mode body:not(.report-light-mode) .fr-source-detail,
html.dark-mode body:not(.report-light-mode) .fr-table td,
html.dark-mode body:not(.report-light-mode) .fr-source-detail td,
html.dark-mode body:not(.report-light-mode) .cliente-table,
html.dark-mode body:not(.report-light-mode) .cliente-table td,
body.dark-mode:not(.report-light-mode) .fr-table,
body.dark-mode:not(.report-light-mode) .fr-source-detail,
body.dark-mode:not(.report-light-mode) .fr-table td,
body.dark-mode:not(.report-light-mode) .fr-source-detail td,
body.dark-mode:not(.report-light-mode) .cliente-table,
body.dark-mode:not(.report-light-mode) .cliente-table td,
html[data-theme="dark"] body:not(.report-light-mode) .fr-table,
html[data-theme="dark"] body:not(.report-light-mode) .fr-source-detail,
html[data-theme="dark"] body:not(.report-light-mode) .fr-table td,
html[data-theme="dark"] body:not(.report-light-mode) .fr-source-detail td,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-table,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-table td {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-subtitle,
html.dark-mode body:not(.report-light-mode) .fr-stat span,
html.dark-mode body:not(.report-light-mode) .fr-label,
html.dark-mode body:not(.report-light-mode) .fr-empty,
html.dark-mode body:not(.report-light-mode) .fr-source-observ,
html.dark-mode body:not(.report-light-mode) .fr-model-loading,
html.dark-mode body:not(.report-light-mode) .cliente-help,
html.dark-mode body:not(.report-light-mode) .cliente-panel-help,
html.dark-mode body:not(.report-light-mode) .cliente-mini-help,
html.dark-mode body:not(.report-light-mode) .cliente-empty,
html.dark-mode body:not(.report-light-mode) .cliente-sat-status,
html.dark-mode body:not(.report-light-mode) .sat-card-subtitle,
html.dark-mode body:not(.report-light-mode) .sat-summary-label,
html.dark-mode body:not(.report-light-mode) .sat-status-label,
html.dark-mode body:not(.report-light-mode) .sat-security-note,
html.dark-mode body:not(.report-light-mode) .config-info-line,
html.dark-mode body:not(.report-light-mode) .config-empty-state,
html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .com-editor-resize-hint,
html.dark-mode body:not(.report-light-mode) .catalogo-card-title p,
html.dark-mode body:not(.report-light-mode) .catalogo-summary-card span,
html.dark-mode body:not(.report-light-mode) .catalogo-search-status,
html.dark-mode body:not(.report-light-mode) .catalogo-sat-table .catalogo-info,
html.dark-mode body:not(.report-light-mode) .catalogo-empty,
body.dark-mode:not(.report-light-mode) .fr-subtitle,
body.dark-mode:not(.report-light-mode) .fr-stat span,
body.dark-mode:not(.report-light-mode) .fr-label,
body.dark-mode:not(.report-light-mode) .fr-empty,
body.dark-mode:not(.report-light-mode) .fr-source-observ,
body.dark-mode:not(.report-light-mode) .fr-model-loading,
body.dark-mode:not(.report-light-mode) .cliente-help,
body.dark-mode:not(.report-light-mode) .cliente-panel-help,
body.dark-mode:not(.report-light-mode) .cliente-mini-help,
body.dark-mode:not(.report-light-mode) .cliente-empty,
body.dark-mode:not(.report-light-mode) .cliente-sat-status,
body.dark-mode:not(.report-light-mode) .sat-card-subtitle,
body.dark-mode:not(.report-light-mode) .sat-summary-label,
body.dark-mode:not(.report-light-mode) .sat-status-label,
body.dark-mode:not(.report-light-mode) .sat-security-note,
body.dark-mode:not(.report-light-mode) .config-info-line,
body.dark-mode:not(.report-light-mode) .config-empty-state,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .com-editor-resize-hint,
body.dark-mode:not(.report-light-mode) .catalogo-card-title p,
body.dark-mode:not(.report-light-mode) .catalogo-summary-card span,
body.dark-mode:not(.report-light-mode) .catalogo-search-status,
body.dark-mode:not(.report-light-mode) .catalogo-sat-table .catalogo-info,
body.dark-mode:not(.report-light-mode) .catalogo-empty,
html[data-theme="dark"] body:not(.report-light-mode) .fr-subtitle,
html[data-theme="dark"] body:not(.report-light-mode) .fr-stat span,
html[data-theme="dark"] body:not(.report-light-mode) .fr-label,
html[data-theme="dark"] body:not(.report-light-mode) .fr-empty,
html[data-theme="dark"] body:not(.report-light-mode) .fr-source-observ,
html[data-theme="dark"] body:not(.report-light-mode) .fr-model-loading,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-help,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-panel-help,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-mini-help,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-empty,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-sat-status,
html[data-theme="dark"] body:not(.report-light-mode) .sat-card-subtitle,
html[data-theme="dark"] body:not(.report-light-mode) .sat-summary-label,
html[data-theme="dark"] body:not(.report-light-mode) .sat-status-label,
html[data-theme="dark"] body:not(.report-light-mode) .sat-security-note,
html[data-theme="dark"] body:not(.report-light-mode) .config-info-line,
html[data-theme="dark"] body:not(.report-light-mode) .config-empty-state,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .com-editor-resize-hint,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-card-title p,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-summary-card span,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-search-status,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-sat-table .catalogo-info,
html[data-theme="dark"] body:not(.report-light-mode) .catalogo-empty {
    color: var(--cfdi4-dark-text-muted) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-title,
html.dark-mode body:not(.report-light-mode) .fr-panel-title,
html.dark-mode body:not(.report-light-mode) .fr-stat strong,
html.dark-mode body:not(.report-light-mode) .fr-source-concept,
html.dark-mode body:not(.report-light-mode) .fr-source-detail .fr-num,
html.dark-mode body:not(.report-light-mode) .cliente-panel-title,
html.dark-mode body:not(.report-light-mode) .cliente-panel label,
body.dark-mode:not(.report-light-mode) .fr-title,
body.dark-mode:not(.report-light-mode) .fr-panel-title,
body.dark-mode:not(.report-light-mode) .fr-stat strong,
body.dark-mode:not(.report-light-mode) .fr-source-concept,
body.dark-mode:not(.report-light-mode) .fr-source-detail .fr-num,
body.dark-mode:not(.report-light-mode) .cliente-panel-title,
body.dark-mode:not(.report-light-mode) .cliente-panel label,
html[data-theme="dark"] body:not(.report-light-mode) .fr-title,
html[data-theme="dark"] body:not(.report-light-mode) .fr-panel-title,
html[data-theme="dark"] body:not(.report-light-mode) .fr-stat strong,
html[data-theme="dark"] body:not(.report-light-mode) .fr-source-concept,
html[data-theme="dark"] body:not(.report-light-mode) .fr-source-detail .fr-num,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-panel-title,
html[data-theme="dark"] body:not(.report-light-mode) .cliente-panel label {
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-source-total,
body.dark-mode:not(.report-light-mode) .fr-source-total,
html[data-theme="dark"] body:not(.report-light-mode) .fr-source-total {
    color: var(--cfdi4-dark-accent) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-badge-ok,
body.dark-mode:not(.report-light-mode) .fr-badge-ok,
html[data-theme="dark"] body:not(.report-light-mode) .fr-badge-ok {
    background-color: rgba(123, 216, 143, .18) !important;
    color: var(--cfdi4-dark-success) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-badge-warn,
body.dark-mode:not(.report-light-mode) .fr-badge-warn,
html[data-theme="dark"] body:not(.report-light-mode) .fr-badge-warn {
    background-color: rgba(247, 201, 72, .18) !important;
    color: var(--cfdi4-dark-warning) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-badge-muted,
body.dark-mode:not(.report-light-mode) .fr-badge-muted,
html[data-theme="dark"] body:not(.report-light-mode) .fr-badge-muted {
    background-color: var(--cfdi4-dark-active) !important;
    color: var(--cfdi4-dark-text-secondary) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-alert-ok,
body.dark-mode:not(.report-light-mode) .fr-alert-ok,
html[data-theme="dark"] body:not(.report-light-mode) .fr-alert-ok {
    background-color: rgba(123, 216, 143, .14) !important;
    border-color: rgba(123, 216, 143, .42) !important;
    color: var(--cfdi4-dark-success) !important;
}

html.dark-mode body:not(.report-light-mode) .fr-alert-error,
body.dark-mode:not(.report-light-mode) .fr-alert-error,
html[data-theme="dark"] body:not(.report-light-mode) .fr-alert-error {
    background-color: rgba(255, 107, 107, .14) !important;
    border-color: rgba(255, 107, 107, .42) !important;
    color: var(--cfdi4-dark-error) !important;
}

html.dark-mode body:not(.report-light-mode) .sat-dropzone.dropzone,
body.dark-mode:not(.report-light-mode) .sat-dropzone.dropzone,
html[data-theme="dark"] body:not(.report-light-mode) .sat-dropzone.dropzone {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) .sat-dt-processing,
body.dark-mode:not(.report-light-mode) .sat-dt-processing,
html[data-theme="dark"] body:not(.report-light-mode) .sat-dt-processing {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border: 1px solid var(--cfdi4-dark-border-strong) !important;
    box-shadow: var(--cfdi4-dark-shadow) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .com-recipient-row,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .com-recipient-row,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .com-recipient-row {
    background-color: transparent !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-light-mode) #ComunicacionModulo .note-dropdown-menu,
body.dark-mode:not(.report-light-mode) #ComunicacionModulo .note-dropdown-menu,
html[data-theme="dark"] body:not(.report-light-mode) #ComunicacionModulo .note-dropdown-menu {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

/* MercadoPago: modal de compra de timbres dentro del mismo dark neutral. */
html.dark-mode body.mp-buy-page,
body.dark-mode.mp-buy-page,
html[data-theme="dark"] body.mp-buy-page {
    background-color: var(--cfdi4-dark-bg) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body.mp-buy-page .container-fluid,
body.dark-mode.mp-buy-page .container-fluid,
html[data-theme="dark"] body.mp-buy-page .container-fluid {
    background-color: transparent !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body.mp-buy-page .table,
body.dark-mode.mp-buy-page .table,
html[data-theme="dark"] body.mp-buy-page .table,
html.dark-mode body.mp-buy-page .table td,
body.dark-mode.mp-buy-page .table td,
html[data-theme="dark"] body.mp-buy-page .table td {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body.mp-buy-page .table th,
body.dark-mode.mp-buy-page .table th,
html[data-theme="dark"] body.mp-buy-page .table th {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body.mp-buy-page .text-muted,
body.dark-mode.mp-buy-page .text-muted,
html[data-theme="dark"] body.mp-buy-page .text-muted {
    color: var(--cfdi4-dark-text-muted) !important;
}

html.dark-mode body.mp-buy-page .br-lg-r,
body.dark-mode.mp-buy-page .br-lg-r,
html[data-theme="dark"] body.mp-buy-page .br-lg-r {
    border-color: var(--cfdi4-dark-border-strong) !important;
}

html.dark-mode .soati-mp-button,
body.dark-mode .soati-mp-button,
html[data-theme="dark"] .soati-mp-button {
    background-color: var(--cfdi4-dark-accent) !important;
    border-color: var(--cfdi4-dark-accent) !important;
    color: #111111 !important;
}

html.dark-mode .soati-mp-button i,
html.dark-mode .soati-mp-button span,
body.dark-mode .soati-mp-button i,
body.dark-mode .soati-mp-button span,
html[data-theme="dark"] .soati-mp-button i,
html[data-theme="dark"] .soati-mp-button span {
    color: #111111 !important;
}

html.dark-mode .soati-mp-button:hover,
html.dark-mode .soati-mp-button:focus,
body.dark-mode .soati-mp-button:hover,
body.dark-mode .soati-mp-button:focus,
html[data-theme="dark"] .soati-mp-button:hover,
html[data-theme="dark"] .soati-mp-button:focus {
    background-color: var(--cfdi4-dark-accent-hover) !important;
    border-color: var(--cfdi4-dark-accent-hover) !important;
    box-shadow: 0 0 0 2px var(--cfdi4-dark-focus) !important;
    color: #111111 !important;
}
/* cfdi4-centralized-module-css-20260625: estilos locales movidos desde modulos AJAX para evitar inyeccion posterior al theme global. */

/* source: Documentos_Unificados/Documentos.php */
:root {
--du-bg: #ffffff;
--du-soft-bg: #f8fafc;
--du-strong-bg: #eef4fb;
--du-border: #dfe5ec;
--du-border-soft: #edf1f5;
--du-text: #1f2937;
--du-muted: var(--cfdi4-muted, #6b7280);
--du-primary: #2f80ed;
--du-primary-soft: rgba(47, 128, 237, .10);
--du-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.du-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.du-toolbar .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
}
.du-toolbar .btn span {
    font-size: var(--cfdi4-font-size-xs, 12px);
    font-weight: 600;
}
.du-card {
    background: var(--du-bg);
    border: 1px solid var(--du-border);
    border-radius: 8px;
    box-shadow: var(--du-shadow);
    color: var(--du-text);
    margin-bottom: 6px;
    padding: 8px;
}
.du-card-header {
    align-items: center;
    border-bottom: 1px solid var(--du-border-soft);
    display: flex;
    justify-content: space-between;
    margin: -1px -1px 6px;
    padding-bottom: 4px;
}
.du-card-title {
    color: var(--du-text);
    font-size: var(--cfdi4-font-size-md, 14px);
    font-weight: 700;
    margin: 0;
}
.du-card label {
    color: var(--du-text);
    font-size: var(--cfdi4-font-size-xs, 11px);
    font-weight: 600;
    margin-bottom: 2px;
}
.du-help {
    color: var(--du-muted);
    font-size: var(--cfdi4-font-size-xs, 11px);
}
.du-inline-value {
    background: var(--du-soft-bg);
    border: 1px solid var(--du-border);
    border-radius: 6px;
    color: var(--du-text);
    font-size: var(--cfdi4-font-size-sm, 12px);
    min-height: 32px;
    padding: 6px 8px;
}
.du-page-description {
    color: var(--du-muted);
    font-size: var(--cfdi4-font-size-sm, 12px);
    line-height: 1.35;
    margin: 3px 0 0;
}
.du-recurring-model-banner {
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    border-radius: 6px;
    color: #115e59;
    font-size: var(--cfdi4-font-size-sm, 13px);
    line-height: 1.4;
    margin: 0 15px 12px;
    padding: 10px 12px;
}
.du-recurring-model-banner strong {
    color: #0f766e;
}
.du-document-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.du-document-type {
    align-items: center;
    background: var(--du-soft-bg);
    border: 1px solid var(--du-border);
    border-radius: 6px;
    color: var(--du-text);
    cursor: pointer;
    display: inline-flex;
    gap: 7px;
    margin: 0;
    min-height: 36px;
    padding: 7px 10px;
}
.du-document-type input {
    margin: 0;
}
.du-document-type.is-active {
    background: var(--du-primary-soft);
    border-color: var(--du-primary);
}
.du-document-type input[disabled] {
    cursor: not-allowed;
}
.du-concept-row.du-row-hidden, .du-mercancia-row.du-row-hidden {
    display: none;
}
.du-cp-internacional, .du-cp-mercancia-internacional, .du-cp-internacional-col,
.du-donatarias-section, .du-implocal-section, .du-vehiculousado-section, .du-ventavehiculos-field, .du-vehiculo-formato-section, .du-iedu-field {
    display: none;
}
.du-table-wrap tbody tr.partida-activa {
    background: var(--du-primary-soft);
}
.du-table-wrap .acciones-partida {
    min-width: 128px;
    white-space: nowrap;
    width: 128px;
}
.du-table-wrap .acciones-partida .btn {
    margin-right: 3px;
    min-width: 26px;
}
.du-table-wrap .acciones-partida .btn:last-child {
    margin-right: 0;
}
.du-capture-action {
    align-items: flex-end;
    display: flex;
    justify-content: flex-end;
}
.du-iedu-info {
    height: auto;
    min-height: 31px;
    white-space: normal;
}
.du-capture-action .btn {
    min-height: 32px;
    white-space: normal;
    width: 100%;
}
.du-empty-state {
    color: var(--du-muted);
    padding: 14px;
    text-align: center;
}
.du-historial-table td, .du-historial-table th, .du-table-wrap td, .du-table-wrap th {
    font-size: var(--cfdi4-font-size-xs, 11px);
    vertical-align: middle;
}
.du-historial-concepto {
    max-width: 440px;
}
.du-historial-concepto span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}
.du-destino-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: var(--cfdi4-font-size-xxs, 10px);
    font-weight: 700;
    padding: 2px 7px;
}
.du-destino-badge.ok {
    background: #d1fae5;
    color: #065f46;
}
.du-destino-badge.warn {
    background: #fef3c7;
    color: #92400e;
}
.du-origen-summary, .du-destino-preview, .du-modal-mercancia {
    background: var(--du-soft-bg);
    border: 1px solid var(--du-border-soft);
    border-radius: 6px;
    color: var(--du-text);
    font-size: var(--cfdi4-font-size-sm, 12px);
    min-height: 32px;
    padding: 7px 9px;
}
.du-origen-summary.ok {
    border-color: #34d399;
}
.du-origen-summary.warn {
    border-color: #f59e0b;
}
.du-section-disabled {
    display: none !important;
}
.du-validation-box {
    display: none;
    margin-bottom: 6px;
}
.du-validation-box.is-visible {
    display: block;
}
.du-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.du-table-wrap {
    overflow-x: auto;
}
.du-table-wrap table {
    min-width: 980px;
}
.du-summary {
    background: var(--du-soft-bg);
    border: 1px solid var(--du-border-soft);
    border-radius: 6px;
    padding: 8px;
}
.du-summary-row {
    align-items: center;
    border-bottom: 1px solid var(--du-border-soft);
    display: flex;
    font-size: var(--cfdi4-font-size-sm, 12px);
    justify-content: space-between;
    padding: 4px 0;
}
.du-summary-row:last-child {
    border-bottom: 0;
}
.du-summary-row.total {
    font-size: var(--cfdi4-font-size-md, 14px);
    font-weight: 700;
}
.du-recurring-model-help {
    display: none;
}
.du-recurring-model-help .du-model-token {
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    color: #1d4ed8;
    display: inline-block;
    font-family: Consolas, Monaco, monospace;
    font-size: var(--cfdi4-font-size-xs, 11px);
    font-weight: 700;
    margin: 2px 2px 2px 0;
    padding: 2px 5px;
}
.du-recurring-model-help .du-model-example {
    background: #f8fafc;
    border: 1px solid var(--du-border-soft);
    border-radius: 6px;
    color: var(--du-text);
    font-size: var(--cfdi4-font-size-sm, 12px);
    margin-top: 8px;
    padding: 8px;
}
.du-recurring-model-help p {
    color: var(--du-muted);
    font-size: var(--cfdi4-font-size-sm, 12px);
    line-height: 1.35;
    margin: 0 0 7px;
}
html.dark-mode .du-recurring-model-help,
body.dark-mode .du-recurring-model-help {
    color: var(--cfdi4-dark-text-secondary) !important;
}
html.dark-mode .du-recurring-model-help .du-card-title,
body.dark-mode .du-recurring-model-help .du-card-title {
    color: var(--cfdi4-dark-text) !important;
}
html.dark-mode .du-recurring-model-help p,
body.dark-mode .du-recurring-model-help p {
    color: var(--cfdi4-dark-text-secondary) !important;
}
html.dark-mode .du-recurring-model-help .du-model-token,
body.dark-mode .du-recurring-model-help .du-model-token {
    background: rgba(153, 204, 51, .14) !important;
    border-color: rgba(153, 204, 51, .55) !important;
    color: #d7ff85 !important;
}
html.dark-mode .du-recurring-model-help .du-model-example,
body.dark-mode .du-recurring-model-help .du-model-example {
    background: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}
.du-inline-section {
    border-top: 1px solid var(--du-border-soft);
    margin-top: 12px;
    padding-top: 12px;
}
.du-inline-section .du-card-header {
    margin-bottom: 8px;
}
.du-empty {
    color: var(--du-muted);
    text-align: center;
}
.CamposFechas {
    background-color: white !important;
}
@media (max-width: 767px) {
.du-toolbar {
    justify-content: flex-start;
}
.du-toolbar .btn span {
    display: none;
}
}

/* source: Documentos_Unificados/Documentos_Edicion.php */
#DocumentosDisponiblesUnificados .du-table-wrap {
  border: 1px solid var(--du-border);
  border-radius: 8px;
  overflow-x: visible;
}
#DocumentosDisponiblesUnificados .dataTables_wrapper,
#DocumentosDisponiblesUnificados .table,
#du-documentos-edicion-table,
#du-documentos-edicion-table th,
#du-documentos-edicion-table td,
#du-documentos-edicion-table tbody tr.child ul.dtr-details {
  font-size: var(--cfdi4-font-size-xs, 11px);
}
#du-documentos-edicion-table {
  min-width: 0;
  margin-bottom: 0;
  width: 100% !important;
}
#du-documentos-edicion-table th {
  background: var(--du-soft-bg);
  color: var(--du-muted);
  text-transform: uppercase;
}
#du-documentos-edicion-table td,
#du-documentos-edicion-table th {
  border-color: var(--du-border-soft) !important;
  padding: 5px 6px;
  vertical-align: middle;
}
#du-documentos-edicion-table th.dtr-control,
#du-documentos-edicion-table td.dtr-control {
  min-width: 30px;
  width: 30px;
}
#du-documentos-edicion-table tbody tr.child ul.dtr-details {
  width: 100%;
}
#du-documentos-edicion-table tbody tr.child ul.dtr-details > li {
  border-color: var(--du-border-soft);
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
#du-documentos-edicion-table tbody tr.child span.dtr-title {
  color: var(--du-muted);
  min-width: 92px;
}
#du-documentos-edicion-table tbody tr.child span.dtr-data {
  color: var(--du-text);
  text-align: right;
}

/* source: Reportes/Revisar_Doctos.php */
.carga {
    width: 100%;
    overflow-x: auto;
}
.revisar-advanced-search-field {
    position: relative;
}
#BUSQUEDA_AVANZADA {
    padding-right: 2.5rem;
}
.revisar-advanced-spinner {
    align-items: center;
    color: #8cbf26;
    display: flex;
    height: 100%;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: .8rem;
    top: 0;
    transition: opacity .15s ease;
    width: 1rem;
}
.revisar-advanced-search-field.is-loading .revisar-advanced-spinner {
    opacity: 1;
}


/* cfdi4-centralized-shell-css-20260625b: estilos locales adicionales movidos desde pantallas del shell principal. */

/* source: Facturacion_Recurrente/Facturacion_Recurrente.php */
.fr-page {
  padding: 1rem;
}
.fr-header {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.fr-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.fr-subtitle {
  color: #607080;
  font-size: .88rem;
  margin: .15rem 0 0;
}
.fr-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}
.fr-stat {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: .8rem .9rem;
}
.fr-stat span {
  color: #607080;
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.fr-stat strong {
  color: #1f2d3d;
  display: block;
  font-size: 1.55rem;
  line-height: 1.4;
}
.fr-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}
.fr-panel {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  overflow: hidden;
}
.fr-panel-header {
  align-items: center;
  background: #f7fafc;
  border-bottom: 1px solid #d9e2ec;
  display: flex;
  justify-content: space-between;
  padding: .75rem .9rem;
}
.fr-panel-title {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
}
.fr-panel-body {
  padding: .9rem;
}
.fr-form-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fr-form-grid .fr-wide {
  grid-column: 1 / -1;
}
.fr-label {
  color: #334155;
  display: block;
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.fr-input,
.fr-select,
.fr-textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: block;
  font-size: .88rem;
  min-height: 36px;
  padding: .4rem .55rem;
  width: 100%;
}
.fr-textarea {
  min-height: 68px;
  resize: vertical;
}
.fr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .8rem;
}
.fr-btn {
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1f2d3d;
  cursor: pointer;
  display: inline-flex;
  font-size: .84rem;
  font-weight: 700;
  gap: .35rem;
  min-height: 34px;
  padding: .38rem .62rem;
}
.fr-btn-primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.fr-btn-warning {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #1f2937;
}
.fr-btn-danger {
  background: #fff;
  border-color: #dc2626;
  color: #b91c1c;
}
.fr-btn:disabled {
  cursor: not-allowed;
  opacity: .6;
}
.fr-alert {
  border-radius: 6px;
  display: none;
  font-size: .86rem;
  margin-bottom: .75rem;
  padding: .55rem .7rem;
}
.fr-alert-ok {
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  color: #115e59;
}
.fr-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.fr-source {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #475569;
  display: none;
  font-size: .82rem;
  margin-top: .65rem;
  padding: .55rem .65rem;
}
.fr-source-head {
  align-items: flex-start;
  display: flex;
  gap: .5rem;
  justify-content: space-between;
  margin-bottom: .55rem;
}
.fr-source-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.fr-source-total {
  color: #0f766e;
  font-size: .95rem;
  font-weight: 800;
  white-space: nowrap;
}
.fr-source-detail {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}
.fr-source-detail th,
.fr-source-detail td {
  border-top: 1px solid #e2e8f0;
  font-size: .76rem;
  padding: .38rem .42rem;
  text-align: left;
  vertical-align: top;
}
.fr-source-detail th {
  color: #475569;
  font-size: .68rem;
  text-transform: uppercase;
}
.fr-source-detail .fr-num {
  text-align: right;
  white-space: nowrap;
}
.fr-source-concept {
  color: #1f2937;
  font-weight: 700;
}
.fr-source-observ {
  color: #64748b;
  margin-top: .15rem;
}
.fr-table-wrap {
  overflow-x: auto;
}
.fr-table {
  border-collapse: collapse;
  margin: 0;
  min-width: 880px;
  width: 100%;
}
.fr-table th,
.fr-table td {
  border-bottom: 1px solid #e2e8f0;
  font-size: .82rem;
  padding: .52rem .6rem;
  text-align: left;
  vertical-align: middle;
}
.fr-table th {
  background: #f8fafc;
  color: #475569;
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.fr-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .5rem;
}
.fr-badge-ok {
  background: #dcfce7;
  color: #166534;
}
.fr-badge-warn {
  background: #fef3c7;
  color: #92400e;
}
.fr-badge-muted {
  background: #e2e8f0;
  color: #334155;
}
.fr-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.fr-empty {
  color: #64748b;
  padding: .9rem;
  text-align: center;
}
.fr-model-modal .modal-dialog {
  max-width: calc(100vw - 32px);
}
.fr-model-modal .modal-body {
  background: #f3f6fa;
  max-height: calc(100vh - 150px);
  overflow: auto;
  padding: .75rem;
}
.fr-model-loading {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: .9rem;
  gap: .5rem;
  justify-content: center;
  min-height: 220px;
}
.fr-model-modal .content-header {
  display: none;
}
@media (max-width: 1100px) {
  .fr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fr-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .fr-grid,
  .fr-form-grid {
    grid-template-columns: 1fr;
  }
  .fr-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* source: Retenciones/Retenciones.php */
:root {
--factura-bg: #ffffff;
--factura-soft-bg: #f8fafc;
--factura-strong-bg: #eef4fb;
--factura-border: #dfe5ec;
--factura-border-soft: #edf1f5;
--factura-text: #1f2937;
--factura-muted: #6b7280;
--factura-primary: #2f80ed;
--factura-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.documentos-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.documentos-toolbar .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
}
.documentos-toolbar .btn span {
    font-size: 12px;
    font-weight: 600;
}
.factura-helper {
    background: var(--factura-soft-bg);
    border: 1px solid var(--factura-border);
    border-left: 4px solid var(--factura-primary);
    border-radius: 8px;
    color: var(--factura-text);
    margin-bottom: 5px;
    padding: 6px 8px;
}
.factura-helper .btn-link {
    font-size: 12px;
    padding: 0;
}
.factura-card {
    background: var(--factura-bg);
    border: 1px solid var(--factura-border);
    border-radius: 8px;
    box-shadow: var(--factura-shadow);
    color: var(--factura-text);
    margin-bottom: 5px;
    padding: 7px 8px;
}
.factura-card-header {
    align-items: center;
    border-bottom: 1px solid var(--factura-border-soft);
    display: flex;
    justify-content: space-between;
    margin: -1px -1px 5px;
    padding-bottom: 4px;
}
.factura-card-title {
    color: var(--factura-text);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}
.factura-card label {
    color: var(--factura-text);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
}
.retenciones-capture-grid .row > [class*="col-"] {
    margin-bottom: 4px;
}
.retenciones-section-band {
    background: var(--factura-soft-bg);
    border-left: 3px solid var(--factura-primary);
    border-radius: 7px;
    margin-top: 4px;
    padding: 6px 4px 2px;
}
.factura-table-wrap {
    border: 1px solid var(--factura-border);
    border-radius: 8px;
    margin-top: 4px;
    overflow-x: auto;
}
.factura-table-wrap table {
    color: var(--factura-text);
    font-size: 11px;
    margin-bottom: 0;
}
.factura-table-wrap th {
    background: var(--factura-soft-bg);
    color: var(--factura-muted);
    font-size: 11px;
    text-transform: uppercase;
}
.factura-table-wrap td, .factura-table-wrap th {
    border-color: var(--factura-border-soft) !important;
    padding: 5px 6px;
    vertical-align: middle;
}
.factura-empty-state {
    color: var(--factura-muted);
    font-size: 12px;
    padding: 10px;
}
#ComplementoDividendos {
    color: var(--factura-text);
    font-size: 11px;
    margin-bottom: 0;
}
#ComplementoDividendos td, #ComplementoDividendos th {
    border-color: var(--factura-border-soft) !important;
    padding: 5px 6px;
}
#ComplementoDividendos th {
    background: var(--factura-soft-bg);
    color: var(--factura-muted);
    font-size: 11px;
    text-transform: uppercase;
}
.factura-summary-card {
    position: sticky;
    top: 12px;
}
.factura-summary-row {
    align-items: center;
    border-bottom: 1px solid var(--factura-border-soft);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
}
.factura-summary-row strong {
    color: var(--factura-text);
    font-weight: 700;
    text-align: right;
}
.factura-summary-row.total {
    border-bottom: 0;
    font-size: 15px;
    font-weight: 800;
}
.retenciones-validation-list {
    color: var(--factura-muted);
    font-size: 11px;
    margin-top: 8px;
}
.retenciones-alert {
    border-radius: 7px;
    font-size: 12px;
    margin-bottom: 0;
    padding: 8px 10px;
}
#ComplementoDinamico h5 {
    color: var(--factura-text);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.BotonAgregarPartida, .botondeborrado {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    margin-right: 2px;
    min-height: 28px;
    padding: 3px 7px;
}
#formaInsert .form-control-sm, #formaInsert .input-sm {
    font-size: 12px;
    min-height: 30px;
}
#formaInsert .select2-container--default .select2-selection--single {
    min-height: 30px;
    height: 30px;
}
#formaInsert .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 12px;
    line-height: 28px;
}
#formaInsert .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 28px;
}
@media (max-width: 991.98px) {
    .documentos-toolbar {
        justify-content: flex-start;
        margin-top: 10px;
    }
    .factura-summary-card {
        position: static;
    }
}
@media (max-width: 575.98px) {
    .documentos-toolbar .btn span {
        display: none;
    }
}

/* source: Retenciones/Retenciones_Edicion.php */
.retenciones-edicion-card {
  background: var(--factura-bg, #ffffff);
  border: 1px solid var(--factura-border, #dfe5ec);
  border-radius: 8px;
  box-shadow: var(--factura-shadow, 0 1px 2px rgba(16, 24, 40, .05));
  color: var(--factura-text, #1f2937);
  margin-bottom: 8px;
  padding: 8px 9px;
}
.retenciones-edicion-header {
  align-items: center;
  border-bottom: 1px solid var(--factura-border-soft, #edf1f5);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  padding-bottom: 5px;
}
.retenciones-edicion-title {
  color: var(--factura-text, #1f2937);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.retenciones-edicion-subtitle {
  color: var(--factura-muted, #6b7280);
  font-size: 12px;
}
.retenciones-edicion-table-wrap {
  border: 1px solid var(--factura-border, #dfe5ec);
  border-radius: 8px;
  overflow: hidden;
}
.retenciones-edicion-table-wrap table {
  color: var(--factura-text, #1f2937);
  font-size: 12px;
  margin-bottom: 0;
  width: 100% !important;
}
.retenciones-edicion-table-wrap th {
  background: var(--factura-soft-bg, #f8fafc);
  color: var(--factura-muted, #6b7280);
  font-size: 12px;
  text-transform: uppercase;
}
.retenciones-edicion-table-wrap td,
.retenciones-edicion-table-wrap th {
  border-color: var(--factura-border-soft, #edf1f5) !important;
  padding: 6px 7px;
  vertical-align: middle;
}
.retenciones-edicion-folio {
  color: var(--factura-primary, #2f80ed);
  font-weight: 800;
}
.retenciones-edicion-badge {
  background: rgba(47, 128, 237, .16);
  border-radius: 999px;
  color: var(--factura-primary, #2f80ed);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  white-space: nowrap;
}
.retenciones-edicion-empty {
  color: var(--factura-muted, #6b7280);
  font-size: 12px;
  padding: 12px;
}
body.dark-mode .retenciones-edicion-table-wrap .table-hover tbody tr:hover {
  background: var(--factura-strong-bg, var(--cfdi4-dark-surface-3, #2b2b2b));
  color: var(--factura-text, var(--cfdi4-dark-text, #f3f3f3));
}

/* source: Nomina/Nomina.php */
:root {
--factura-bg: #ffffff;
--factura-soft-bg: #f8fafc;
--factura-strong-bg: #eef4fb;
--factura-border: #dfe5ec;
--factura-border-soft: #edf1f5;
--factura-text: #1f2937;
--factura-muted: #6b7280;
--factura-primary: #2f80ed;
--factura-primary-soft: rgba(47, 128, 237, .10);
--factura-ok: #099268;
--factura-warn: #f59f00;
--factura-error: #e03131;
--factura-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.documentos-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.documentos-toolbar .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
}
.documentos-toolbar .btn i {
    font-size: 14px;
}
.documentos-toolbar .btn span {
    font-size: 12px;
    font-weight: 600;
}
.documentos-toolbar p {
    margin: 0;
}
.factura-helper {
    background: var(--factura-soft-bg);
    border: 1px solid var(--factura-border);
    border-left: 4px solid var(--factura-primary);
    border-radius: 8px;
    color: var(--factura-text);
    margin-bottom: 5px;
    padding: 6px 8px;
}
.factura-card {
    background: var(--factura-bg);
    border: 1px solid var(--factura-border);
    border-radius: 8px;
    box-shadow: var(--factura-shadow);
    color: var(--factura-text);
    margin-bottom: 6px;
    padding: 7px 8px;
}
.factura-card-header {
    align-items: center;
    border-bottom: 1px solid var(--factura-border-soft);
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin: -1px -1px 5px;
    padding-bottom: 4px;
}
.factura-card-title {
    color: var(--factura-text);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}
.factura-card-subtitle {
    color: var(--factura-muted);
    font-size: 11px;
    margin: 0;
}
.factura-card label {
    color: var(--factura-text);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
}
.factura-summary-card {
    position: sticky;
    top: 12px;
}
.factura-summary-row {
    align-items: center;
    border-bottom: 1px solid var(--factura-border-soft);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    padding: 4px 0;
}
.factura-summary-row:last-child {
    border-bottom: 0;
}
.factura-summary-row.total {
    color: var(--factura-text);
    font-size: 15px;
    font-weight: 800;
}
.factura-table-wrap {
    border: 1px solid var(--factura-border);
    border-radius: 8px;
    margin-top: 4px;
    overflow-x: auto;
}
.factura-table-wrap table {
    color: var(--factura-text);
    font-size: 11px;
    margin-bottom: 0;
}
.factura-table-wrap th {
    background: var(--factura-soft-bg);
    color: var(--factura-muted);
    font-size: 11px;
    text-transform: uppercase;
}
.factura-table-wrap td,
.factura-table-wrap th {
    border-color: var(--factura-border-soft) !important;
    padding: 5px 6px;
    vertical-align: middle;
}
.factura-empty-state {
    color: var(--factura-muted);
    font-size: 12px;
    padding: 10px;
}
.nomina-info-pill,
.nomina-summary-state {
    background: var(--factura-soft-bg);
    border: 1px solid var(--factura-border-soft);
    border-radius: 6px;
    color: var(--factura-text);
    font-size: 12px;
    line-height: 1.35;
    padding: 6px 8px;
}
.nomina-summary-state.ok {
    background: rgba(9, 146, 104, .14);
    border-color: rgba(9, 146, 104, .25);
    color: #20c997;
    font-weight: 700;
}
.nomina-summary-state.warn {
    background: rgba(245, 159, 0, .14);
    border-color: rgba(245, 159, 0, .25);
    color: #ffd43b;
    font-weight: 700;
}
.nomina-summary-state.error {
    background: rgba(224, 49, 49, .14);
    border-color: rgba(224, 49, 49, .25);
    color: #ff8787;
    font-weight: 700;
}
body:not(.dark-mode) .nomina-summary-state.warn {
    color: #ad6800;
}
body:not(.dark-mode) .nomina-summary-state.error {
    color: #c92a2a;
}
body:not(.dark-mode) .nomina-summary-state.ok {
    color: #087f5b;
}
.nomina-summary-messages {
    color: var(--factura-muted);
    font-size: 11px;
    margin: 8px 0 0;
    padding-left: 16px;
}
.nomina-action-card .btn {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    margin: 0 5px 5px 0;
}
.nomina-real-inputs {
    background: var(--factura-soft-bg);
    border-left: 3px solid var(--factura-primary);
    margin-left: 0;
    margin-right: 0;
    padding: 5px 4px;
}
.nomina-real-inputs + .nomina-real-inputs {
    border-top: 1px solid var(--factura-border-soft);
}
.nomina-real-inputs .form-control-border {
    background-color: var(--factura-strong-bg);
    border: 1px solid var(--factura-border-soft) !important;
    border-radius: 4px;
}
.nomina-editor-block {
    background: var(--factura-soft-bg);
    border: 1px solid var(--factura-border-soft);
    border-left: 3px solid var(--factura-primary);
    border-radius: 8px;
    margin-bottom: 6px;
    padding: 6px;
}
.nomina-editor-block .factura-card-header {
    margin: 0 0 5px;
}
.nomina-editor-block .row {
    margin-left: 0;
    margin-right: 0;
}
.nomina-row-hidden {
    display: none !important;
}
.nomina-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.nomina-editor-actions .btn {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 5px;
    padding: 4px 8px;
}
.nomina-editor-block .BotonAgregarPartida,
.nomina-editor-block .botondeborrado {
    display: none !important;
}
.nomina-origin {
    border-radius: 999px;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    text-transform: uppercase;
}
.nomina-origin.auto {
    background: rgba(47, 128, 237, .14);
    color: var(--factura-primary);
}
.nomina-origin.manual {
    background: rgba(245, 159, 0, .16);
    color: #f59f00;
}
.nomina-origin.incidencia {
    background: rgba(9, 146, 104, .16);
    color: #20c997;
}
#formaInsert .form-control-sm,
#formaInsert .input-sm {
    font-size: 12px;
    min-height: 30px;
}
#formaInsert .select2-container--default .select2-selection--single {
    min-height: 30px;
    height: 30px;
}
#formaInsert .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 12px;
    line-height: 28px;
}
#formaInsert .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 28px;
}
.nomina-hidden-separator {
    display: none !important;
}
@media (max-width: 991.98px) {
.documentos-toolbar {
    justify-content: flex-start;
    margin-top: 10px;
}
.factura-summary-card {
    position: static;
}
}
@media (max-width: 575.98px) {
.documentos-toolbar .btn span {
    display: none;
}
.factura-card {
    padding: 12px;
}
}

/* source: Nomina/Nomina_Edicion.php */
#NominasDisponiblesEdicion .factura-table-wrap {
  overflow-x: visible;
}
#NominasDisponiblesEdicion .dataTables_wrapper,
#NominasDisponiblesEdicion .table,
#nomina-documentos-edicion-table,
#nomina-documentos-edicion-table th,
#nomina-documentos-edicion-table td,
#nomina-documentos-edicion-table tbody tr.child ul.dtr-details {
  font-size: 12px;
}
#nomina-documentos-edicion-table {
  min-width: 0;
  width: 100% !important;
}
#nomina-documentos-edicion-table th.dtr-control,
#nomina-documentos-edicion-table td.dtr-control {
  min-width: 30px;
  width: 30px;
}
#nomina-documentos-edicion-table tbody tr.child ul.dtr-details {
  width: 100%;
}
#nomina-documentos-edicion-table tbody tr.child ul.dtr-details > li {
  border-color: var(--factura-border-soft, #edf1f5);
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
#nomina-documentos-edicion-table tbody tr.child span.dtr-title {
  color: var(--factura-muted, #6b7280);
  min-width: 92px;
}
#nomina-documentos-edicion-table tbody tr.child span.dtr-data {
  color: var(--factura-text, #1f2937);
  text-align: right;
}

/* source: Cancelaciones/Cancelar.php */
:root {
  --cancel-bg: #ffffff;
  --cancel-soft-bg: #f8fafc;
  --cancel-strong-bg: #eef4fb;
  --cancel-border: #dfe5ec;
  --cancel-border-soft: #edf1f5;
  --cancel-text: #1f2937;
  --cancel-muted: #6b7280;
  --cancel-primary: #2f80ed;
  --cancel-primary-soft: rgba(47, 128, 237, .12);
}
.cancelacion-helper, .cancelacion-card {
  background: var(--cancel-bg);
  border: 1px solid var(--cancel-border);
  border-radius: 8px;
  color: var(--cancel-text);
  margin-bottom: 7px;
  padding: 8px 10px;
}
.cancelacion-helper {
  background: var(--cancel-soft-bg);
  border-left: 4px solid var(--cancel-primary);
  font-size: 12px;
}
.cancelacion-card-header {
  align-items: center;
  border-bottom: 1px solid var(--cancel-border-soft);
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  padding-bottom: 5px;
}
.cancelacion-card-title {
  color: var(--cancel-text);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.cancelaciones-module label {
  color: var(--cancel-text);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}
.cancelacion-muted {
  color: var(--cancel-muted);
  font-size: 11px;
}
.cancelaciones-table-wrap {
  border: 1px solid var(--cancel-border);
  border-radius: 8px;
  overflow-x: visible;
}
.cancelaciones-table-wrap table {
  color: var(--cancel-text);
  font-size: 12px;
  margin-bottom: 0;
  table-layout: auto;
  width: 100% !important;
}
.cancelaciones-table-wrap th {
  background: var(--cancel-soft-bg);
  color: var(--cancel-muted);
  font-size: 12px;
  text-transform: uppercase;
}
.cancelaciones-table-wrap td, .cancelaciones-table-wrap th {
  border-color: var(--cancel-border-soft) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle !important;
  white-space: nowrap;
}
.cancelaciones-table-wrap td.cancelacion-actions {
  overflow: visible;
  text-overflow: clip;
}
.cancelacion-actions {
  min-width: 145px;
  white-space: nowrap;
}
.cancelacion-actions .btn {
  display: inline-flex;
  margin-right: 2px;
  padding: 3px 5px;
}
.cancelacion-actions .btn:last-child {
  margin-right: 0;
}
.cancelacion-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}
.cancelacion-badge.sin_solicitud { background: rgba(108, 117, 125, .18); color: var(--cancel-text); }
.cancelacion-badge.solicitada, .cancelacion-badge.pendiente { background: var(--cancel-primary-soft); color: var(--cancel-primary); }
.cancelacion-badge.cancelado { background: rgba(0, 184, 148, .20); color: #00d68f; }
.cancelacion-badge.rechazado, .cancelacion-badge.no_cancelable, .cancelacion-badge.error { background: rgba(220, 53, 69, .20); color: #ff8a96; }
#cancelaciones-data-table tbody tr.child td.child {
  background: var(--cancel-soft-bg);
  font-size: 12px;
  line-height: 1.25;
  max-width: none;
  overflow: visible;
  padding: 0;
  white-space: normal;
}
.cancelaciones-responsive-detail {
  display: block;
  margin: 0;
  padding: 6px 16px 10px;
  width: 100%;
}
.cancelaciones-responsive-detail .cancelaciones-detail-item {
  align-items: start;
  border-bottom: 1px solid var(--cancel-border-soft);
  column-gap: 16px;
  display: grid;
  grid-template-columns: minmax(130px, 22%) minmax(0, 1fr);
  min-height: 32px;
  padding: 7px 0;
}
.cancelaciones-responsive-detail .cancelaciones-detail-label,
.cancelaciones-responsive-detail .cancelaciones-detail-value {
  color: var(--cancel-text);
  font-size: 12px;
  line-height: 1.28;
  min-width: 0;
  white-space: normal;
}
.cancelaciones-responsive-detail .cancelaciones-detail-label {
  color: var(--cancel-muted);
  font-weight: 700;
}
.cancelaciones-responsive-detail .cancelaciones-detail-value {
  overflow-wrap: anywhere;
  word-break: normal;
}
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td.dtr-control:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th.dtr-control:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child)[role="row"] > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child)[role="row"] > th:first-child:before {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #9acd32 !important;
  content: '+' !important;
  display: inline-block !important;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: 1;
  margin-top: -9px;
  top: 50%;
  width: auto;
}
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > td.dtr-control:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > th.dtr-control:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > th:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child)[role="row"] > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child)[role="row"] > th:first-child:before {
  color: #9acd32 !important;
  content: '-' !important;
}
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.child > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.child > th:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr > th.dataTables_empty:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr > td.dt-empty:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr > th.dt-empty:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr > td[colspan]:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.cancelaciones-empty-row > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.cancelaciones-empty-row > th:first-child:before {
  content: none !important;
  display: none !important;
}
.cancelacion-modal-content {
  background: var(--cancel-bg);
  color: var(--cancel-text);
}
.cancelacion-modal-content .modal-header, .cancelacion-modal-content .modal-footer {
  border-color: var(--cancel-border);
}
.cancelacion-detalle-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cancelacion-resumen-doc {
  background: var(--cancel-soft-bg);
  border: 1px solid var(--cancel-border);
  border-left: 3px solid var(--cancel-primary);
  border-radius: 8px;
  padding: 8px 10px;
}
.cancelacion-detalle-grid > div, .cancelacion-resumen-doc > div {
  min-width: 0;
}
.cancelacion-detalle-grid span, .cancelacion-resumen-doc span {
  color: var(--cancel-muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
}
.cancelacion-detalle-grid strong, .cancelacion-resumen-doc strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cancelacion-resultado-estado {
  background: var(--cancel-primary-soft);
  border-radius: 8px;
  font-weight: 700;
  padding: 9px 10px;
}
#NUUIDBuscadorWrap .select2-container--default .select2-selection--single {
  background-color: var(--cancel-strong-bg);
  border-color: var(--cancel-border);
  color: var(--cancel-text);
}
#NUUIDBuscadorWrap .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--cancel-text);
}
@media (max-width: 991px) {
  .cancelacion-detalle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .cancelacion-detalle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cancelaciones-header .container-fluid,
  .cancelaciones-module .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
  }
  .cancelaciones-header h4 {
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 0 !important;
  }
  .cancelaciones-header .row {
    align-items: center !important;
    display: flex;
    flex-wrap: nowrap;
  }
  .cancelaciones-header .col-sm-6:first-child {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
  }
  .cancelaciones-header .text-right {
    flex: 0 0 auto;
    max-width: none;
    text-align: right !important;
    width: auto;
  }
  .cancelaciones-header .btn {
    padding: 5px 8px;
  }
  .cancelacion-helper,
  .cancelacion-card {
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 8px 9px;
  }
  .cancelacion-helper {
    font-size: 13px;
    line-height: 1.45;
  }
  .cancelacion-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .cancelacion-card-title {
    font-size: 15px;
  }
  .cancelaciones-module label {
    font-size: 12px;
  }
  #cancelacionesFiltros .row > div {
    margin-bottom: 7px;
  }
  #cancelacionesFiltros .row > div:last-child {
    margin-bottom: 0;
  }
  .cancelaciones-table-wrap {
    overflow: hidden;
  }
  .cancelaciones-table-wrap table {
    table-layout: auto;
  }
  .cancelaciones-table-wrap td,
  .cancelaciones-table-wrap th {
    font-size: 12px;
    padding: 7px 6px;
  }
  .cancelacion-badge {
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
  }
  .cancelacion-actions {
    min-width: 120px;
  }
  .cancelacion-modal-content .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .cancelacion-modal-content .modal-footer .btn {
    margin-left: 0;
    width: 100%;
  }
}

/* source: Cobranza/Cobranza.php */
:root {
  --cobranza-bg: #ffffff;
  --cobranza-soft-bg: #f8fafc;
  --cobranza-strong-bg: #eef4fb;
  --cobranza-border: #dfe5ec;
  --cobranza-border-soft: #edf1f5;
  --cobranza-text: #1f2937;
  --cobranza-muted: #6b7280;
  --cobranza-primary: #2f80ed;
  --cobranza-primary-soft: rgba(47, 128, 237, .10);
  --cobranza-success: #10b981;
  --cobranza-warning: #f59e0b;
  --cobranza-danger: #ef4444;
  --cobranza-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.cobranza-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.cobranza-toolbar .btn,
.cobranza-actions .btn {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
}
.cobranza-helper {
  background: var(--cobranza-soft-bg);
  border: 1px solid var(--cobranza-border);
  border-left: 4px solid var(--cobranza-primary);
  border-radius: 8px;
  color: var(--cobranza-text);
  margin-bottom: 6px;
  padding: 7px 9px;
}
.cobranza-card {
  background: var(--cobranza-bg);
  border: 1px solid var(--cobranza-border);
  border-radius: 8px;
  box-shadow: var(--cobranza-shadow);
  color: var(--cobranza-text);
  margin-bottom: 7px;
  padding: 8px 9px;
}
.cobranza-card-header {
  align-items: center;
  border-bottom: 1px solid var(--cobranza-border-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  padding-bottom: 5px;
}
.cobranza-card-title {
  color: var(--cobranza-text);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.cobranza-card-subtitle {
  color: var(--cobranza-muted);
  font-size: 11px;
  line-height: 1.2;
}
.cobranza-card label {
  color: var(--cobranza-text);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}
#CobranzaPUEUI .form-control-sm,
#CobranzaPUEUI .input-sm {
  font-size: 12px;
  min-height: 30px;
}
#CobranzaPUEUI .select2-container--default .select2-selection--single {
  min-height: 30px;
  height: 30px;
}
#CobranzaPUEUI .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 12px;
  line-height: 28px;
}
#CobranzaPUEUI .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 28px;
}
.cobranza-table-wrap {
  border: 1px solid var(--cobranza-border);
  border-radius: 8px;
  overflow: hidden;
}
.cobranza-table-wrap table {
  color: var(--cobranza-text);
  font-size: 11px;
  margin-bottom: 0;
  width: 100% !important;
}
.cobranza-table-wrap th {
  background: var(--cobranza-soft-bg);
  color: var(--cobranza-muted);
  font-size: 10px;
  text-transform: uppercase;
}
.cobranza-table-wrap td,
.cobranza-table-wrap th {
  border-color: var(--cobranza-border-soft) !important;
  padding: 5px 6px;
  vertical-align: middle;
}
.cobranza-row.is-selected {
  background: var(--cobranza-primary-soft);
}
.cobranza-row.has-error {
  box-shadow: inset 3px 0 0 var(--cobranza-danger);
}
.cobranza-row.is-ready {
  box-shadow: inset 3px 0 0 var(--cobranza-success);
}
.cobranza-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  white-space: nowrap;
}
.cobranza-badge.pendiente {
  background: rgba(107, 114, 128, .18);
  color: var(--cobranza-muted);
}
.cobranza-badge.seleccionado {
  background: rgba(47, 128, 237, .18);
  color: var(--cobranza-primary);
}
.cobranza-badge.listo,
.cobranza-badge.cobrado {
  background: rgba(16, 185, 129, .18);
  color: var(--cobranza-success);
}
.cobranza-badge.warning {
  background: rgba(245, 158, 11, .18);
  color: var(--cobranza-warning);
}
.cobranza-badge.error {
  background: rgba(239, 68, 68, .18);
  color: var(--cobranza-danger);
}
.cobranza-summary-card {
  position: sticky;
  top: 12px;
}
.cobranza-summary-row {
  align-items: center;
  border-bottom: 1px solid var(--cobranza-border-soft);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 5px 0;
}
.cobranza-summary-row.total {
  font-size: 15px;
  font-weight: 800;
}
.cobranza-summary-state {
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 7px;
  padding: 7px 8px;
}
.cobranza-summary-state.ok {
  background: rgba(16, 185, 129, .16);
  color: var(--cobranza-success);
}
.cobranza-summary-state.warn {
  background: rgba(245, 158, 11, .16);
  color: var(--cobranza-warning);
}
.cobranza-summary-state.error {
  background: rgba(239, 68, 68, .16);
  color: var(--cobranza-danger);
}
.cobranza-summary-messages {
  color: var(--cobranza-muted);
  font-size: 11px;
  margin: 7px 0 0;
  padding-left: 16px;
}
.cobranza-actions {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.cobranza-inline-filter {
  width: 132px;
}
.cobranza-inline-filter label {
  display: block;
}
.cobranza-inline-filter .select2-container {
  min-width: 0;
  width: 132px !important;
}
@media (max-width: 991.98px) {
  .cobranza-toolbar,
  .cobranza-actions {
    justify-content: flex-start;
  }
  .cobranza-summary-card {
    position: static;
  }
}

/* source: Recibo_Pago/Recibo.php */
:root {
--factura-bg: #ffffff;
--factura-soft-bg: #f8fafc;
--factura-strong-bg: #eef4fb;
--factura-border: #dfe5ec;
--factura-border-soft: #edf1f5;
--factura-text: #1f2937;
--factura-muted: var(--cfdi4-muted, #6b7280);
--factura-primary: #2f80ed;
--factura-primary-soft: rgba(47, 128, 237, .10);
--factura-success: #10b981;
--factura-warning: #f59e0b;
--factura-danger: #ef4444;
--factura-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.documentos-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.documentos-toolbar .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
}
.documentos-toolbar .btn i {
    font-size: 14px;
}
.documentos-toolbar .btn span {
    font-size: var(--cfdi4-font-size-xs, 12px);
    font-weight: 600;
}
.factura-helper {
    background: var(--factura-soft-bg);
    border: 1px solid var(--factura-border);
    border-left: 4px solid var(--factura-primary);
    border-radius: 8px;
    color: var(--factura-text);
    margin-bottom: 5px;
    padding: 6px 8px;
}
.factura-card {
    background: var(--factura-bg);
    border: 1px solid var(--factura-border);
    border-radius: 8px;
    box-shadow: var(--factura-shadow);
    color: var(--factura-text);
    margin-bottom: 6px;
    padding: 7px 8px;
}
.factura-card-header {
    align-items: center;
    border-bottom: 1px solid var(--factura-border-soft);
    display: flex;
    justify-content: space-between;
    margin: -1px -1px 5px;
    padding-bottom: 4px;
}
.factura-card-title {
    color: var(--factura-text);
    font-size: var(--cfdi4-font-size-md, 14px);
    font-weight: 700;
    margin: 0;
}
.factura-card label {
    color: var(--factura-text);
    font-size: var(--cfdi4-font-size-xs, 11px);
    font-weight: 600;
    margin-bottom: 2px;
}
.factura-icon-help {
    cursor: pointer;
}
#formaInsert .form-control-sm, #formaInsert .input-sm {
    font-size: var(--cfdi4-font-size-sm, 12px);
    min-height: 30px;
}
#formaInsert .select2-container--default .select2-selection--single {
    min-height: 30px;
    height: 30px;
}
#formaInsert .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: var(--cfdi4-font-size-sm, 12px);
    line-height: 28px;
}
#formaInsert .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 28px;
}
.rep-bank-field.is-hidden {
    display: none;
}
.factura-field-help {
    color: var(--factura-muted);
    display: none;
    font-size: var(--cfdi4-font-size-xs, 11px);
    line-height: 1.25;
    margin-top: 4px;
}
.factura-field-help.is-visible {
    display: block;
}
.factura-table-wrap {
    border: 1px solid var(--factura-border);
    border-radius: 8px;
    overflow-x: auto;
}
.factura-table-wrap table {
    color: var(--factura-text);
    font-size: var(--cfdi4-font-size-xs, 11px);
    margin-bottom: 0;
}
.factura-table-wrap th {
    background: var(--factura-soft-bg);
    color: var(--factura-muted);
    font-size: var(--cfdi4-font-size-xs, 11px);
    text-transform: uppercase;
}
.factura-table-wrap td, .factura-table-wrap th {
    border-color: var(--factura-border-soft) !important;
    padding: 5px 6px;
    vertical-align: middle;
}
.rep-doc-row.is-selected {
    background: var(--factura-primary-soft);
}
.rep-doc-row.has-error {
    box-shadow: inset 3px 0 0 var(--factura-danger);
}
.rep-este-pago {
    min-width: 112px;
    text-align: right;
}
.rep-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: var(--cfdi4-font-size-xs, 10px);
    font-weight: 700;
    padding: 2px 7px;
    white-space: nowrap;
}
.rep-status.sin-aplicar {
    background: rgba(107, 114, 128, .16);
    color: var(--factura-muted);
}
.rep-status.parcial {
    background: rgba(245, 158, 11, .18);
    color: var(--factura-warning);
}
.rep-status.completo {
    background: rgba(16, 185, 129, .18);
    color: var(--factura-success);
}
.rep-status.error {
    background: rgba(239, 68, 68, .18);
    color: var(--factura-danger);
}
.factura-summary-card {
    position: sticky;
    top: 12px;
}
.factura-summary-row {
    align-items: center;
    border-bottom: 1px solid var(--factura-border-soft);
    display: flex;
    font-size: var(--cfdi4-font-size-sm, 12px);
    justify-content: space-between;
    padding: 4px 0;
}
.factura-summary-row:last-child {
    border-bottom: 0;
}
.factura-summary-row.total {
    color: var(--factura-text);
    font-size: var(--cfdi4-font-size-md, 15px);
    font-weight: 800;
}
.rep-summary-state {
    border-radius: 6px;
    font-size: var(--cfdi4-font-size-sm, 12px);
    font-weight: 700;
    margin-top: 6px;
    padding: 6px 8px;
}
.rep-summary-state.ok {
    background: rgba(16, 185, 129, .16);
    color: var(--factura-success);
}
.rep-summary-state.warn {
    background: rgba(245, 158, 11, .16);
    color: var(--factura-warning);
}
.rep-summary-state.error {
    background: rgba(239, 68, 68, .16);
    color: var(--factura-danger);
}
.rep-summary-messages {
    color: var(--factura-muted);
    font-size: var(--cfdi4-font-size-xs, 11px);
    margin: 6px 0 0;
    padding-left: 16px;
}
@media (max-width: 991.98px) {
.documentos-toolbar {
    justify-content: flex-start;
    margin-top: 10px;
}
.factura-summary-card {
    position: static;
}
#DatosPagoREP .col-sm-2, #DatosPagoREP .col-sm-3, #DatosPagoREP .col-sm-4 {
    flex: 0 0 50%;
    max-width: 50%;
}
}

/* source: Recibo_Pago/Recibo_Edicion.php */
#RecibosDisponiblesEdicion .factura-table-wrap {
  overflow-x: visible;
}
#RecibosDisponiblesEdicion .dataTables_wrapper,
#RecibosDisponiblesEdicion .table,
#recibo-documentos-edicion-table,
#recibo-documentos-edicion-table th,
#recibo-documentos-edicion-table td,
#recibo-documentos-edicion-table tbody tr.child ul.dtr-details {
  font-size: 12px;
}
#recibo-documentos-edicion-table {
  min-width: 0;
  width: 100% !important;
}
#recibo-documentos-edicion-table th.dtr-control,
#recibo-documentos-edicion-table td.dtr-control {
  min-width: 30px;
  width: 30px;
}
#recibo-documentos-edicion-table tbody tr.child ul.dtr-details {
  width: 100%;
}
#recibo-documentos-edicion-table tbody tr.child ul.dtr-details > li {
  border-color: var(--factura-border-soft, #edf1f5);
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
#recibo-documentos-edicion-table tbody tr.child span.dtr-title {
  color: var(--factura-muted, #6b7280);
  min-width: 92px;
}
#recibo-documentos-edicion-table tbody tr.child span.dtr-data {
  color: var(--factura-text, #1f2937);
  text-align: right;
}

/* source: Clientes/Clientes.php */
:root {
  --cliente-bg: #ffffff;
  --cliente-soft-bg: #f8fafc;
  --cliente-strong-bg: #eef4fb;
  --cliente-border: #dfe5ec;
  --cliente-border-soft: #edf1f5;
  --cliente-text: #1f2937;
  --cliente-muted: #6b7280;
  --cliente-primary: #2f80ed;
  --cliente-primary-soft: rgba(47, 128, 237, .10);
  --cliente-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --cliente-ok: #198754;
  --cliente-warn: #b7791f;
  --cliente-error: #c2410c;
}

.cliente-help {
  color: var(--cliente-muted);
  margin-bottom: 5px;
}

.cliente-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cliente-toolbar .btn {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
}

.cliente-toolbar .btn i {
  font-size: 14px;
}

.cliente-toolbar .btn span {
  font-size: 12px;
  font-weight: 600;
}

.cliente-panel {
  background: var(--cliente-bg);
  border: 1px solid var(--cliente-border);
  border-radius: 8px;
  box-shadow: var(--cliente-shadow);
  color: var(--cliente-text);
  margin-bottom: 5px;
  padding: 7px 8px;
}

.cliente-form-flat {
  margin-left: -7.5px;
  margin-right: -7.5px;
}

.cliente-panel-header {
  align-items: center;
  border-bottom: 1px solid var(--cliente-border-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: -1px -1px 5px;
  padding-bottom: 4px;
}

.cliente-panel-title {
  color: var(--cliente-text);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.cliente-panel label {
  color: var(--cliente-text);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

#formaInsert .select2-container--default .select2-selection--single.is-valid,
#formaInsert .select2-container--default .select2-selection--multiple.is-valid,
#formaInsert .cliente-status-line.is-valid {
  border-color: #28a745 !important;
}

#formaInsert .select2-container--default .select2-selection--single.is-invalid,
#formaInsert .select2-container--default .select2-selection--multiple.is-invalid,
#formaInsert .cliente-status-line.is-invalid {
  border-color: #dc3545 !important;
}

.cliente-panel-help,
.cliente-mini-help {
  color: var(--cliente-muted);
  font-size: 11px;
}

.cliente-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 12px;
}

.cliente-main,
.cliente-side,
.cliente-panel,
.cliente-panel .table-responsive {
  min-width: 0;
}

.cliente-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cliente-usage-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cliente-soft-bg);
  border: 1px solid var(--cliente-border);
  border-radius: 6px;
  color: var(--cliente-text);
  margin: 0;
  min-height: 34px;
  padding: 7px 9px;
}

.cliente-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cliente-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
}

.cliente-badge.ok {
  color: var(--cliente-ok);
  background: rgba(25, 135, 84, .14);
}

.cliente-badge.warn {
  color: var(--cliente-warn);
  background: rgba(255, 193, 7, .20);
}

.cliente-badge.error {
  color: var(--cliente-error);
  background: rgba(220, 53, 69, .14);
}

.cliente-warning {
  display: none;
  color: var(--cliente-error);
  margin-top: 8px;
}

.cliente-sat-actions {
  align-items: flex-end;
  display: flex;
  min-height: 48px;
}

.cliente-sat-actions .btn {
  width: 100%;
}

.cliente-sat-status {
  color: var(--cliente-muted);
  font-size: 11px;
  margin-top: 20px;
  min-height: 16px;
}

.cliente-sat-status.ok {
  color: var(--cliente-ok);
}

.cliente-sat-status.error {
  color: var(--cliente-error);
}

.cliente-cp-status {
  font-size: 11px;
  margin-top: 5px;
  min-height: 16px;
}

.cliente-email-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.cliente-email-chip {
  background: var(--cliente-soft-bg);
  border: 1px solid var(--cliente-border);
  border-radius: 999px;
  color: var(--cliente-text);
  font-size: 11px;
  padding: 3px 8px;
}

.cliente-email-chip.error {
  border-color: #dc3545;
  color: #dc3545;
}

.cliente-validation-list {
  display: grid;
  gap: 6px;
}

.cliente-validation-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.25;
}

.cliente-validation-item i {
  margin-top: 2px;
}

.cliente-table th,
.cliente-table td {
  border-color: var(--cliente-border-soft) !important;
  padding: 5px 6px;
  vertical-align: middle !important;
}

.cliente-table {
  color: var(--cliente-text);
  font-size: 11px;
  margin-bottom: 0;
  width: 100%;
}

.cliente-table th {
  background: var(--cliente-soft-bg);
  color: var(--cliente-muted);
  text-transform: uppercase;
}

.cliente-empty {
  color: var(--cliente-muted);
  padding: 8px 0;
}

.cliente-list-action {
  text-align: center;
  width: 34px;
}

.cliente-list-action .btn {
  align-items: center;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  line-height: 1;
  min-height: 22px;
  min-width: 22px;
  padding: 2px 4px;
  width: 24px;
}

.cliente-list-action .btn i {
  font-size: 11px;
  margin: 0;
}

#ClientesTabla {
  width: 100% !important;
}

#ClientesTabla th,
#ClientesTabla td {
  line-height: 1.15;
  padding: 3px 5px !important;
  vertical-align: middle;
}

#ClientesTabla_wrapper div.dataTables_processing,
#ClientesTabla_wrapper .dataTables_processing {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  left: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  right: 12px !important;
  top: 54px !important;
  width: auto !important;
  z-index: 5;
}

.cliente-dt-processing {
  align-items: center;
  background: rgba(15, 23, 42, 0.88);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  line-height: 1;
  padding: 8px 12px;
  white-space: nowrap;
}

body:not(.dark-mode) .cliente-dt-processing {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d6dee8;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
  color: #263241;
}

.cliente-dt-spinner {
  animation: satSpin 0.75s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #9bd22f;
  display: inline-block;
  height: 14px;
  width: 14px;
}

body:not(.dark-mode) .cliente-dt-spinner {
  border-color: #d9e2ec;
  border-top-color: #8cc63f;
}

@keyframes satSpin {
  to {
    transform: rotate(360deg);
  }
}

.cliente-side {
  align-self: start;
}

@media (max-width: 1100px) {
  .cliente-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cliente-panel-header {
    display: block;
  }

  .cliente-toolbar {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .cliente-panel-header .btn {
    margin-top: 8px;
  }

  .cliente-panel .table-responsive {
    overflow-x: hidden;
  }

  .cliente-mobile-table,
  .cliente-mobile-table thead,
  .cliente-mobile-table tbody,
  .cliente-mobile-table tr,
  .cliente-mobile-table td {
    display: block;
    width: 100%;
  }

  .cliente-mobile-table thead {
    display: none;
  }

  .cliente-mobile-table tbody tr {
    background: var(--cliente-soft-bg);
    border: 1px solid var(--cliente-border-soft);
    border-radius: 6px;
    margin-bottom: 7px;
    overflow: hidden;
  }

  .cliente-mobile-table td {
    border: 0 !important;
    border-bottom: 1px solid var(--cliente-border-soft) !important;
    display: grid;
    gap: 8px;
    grid-template-columns: 96px minmax(0, 1fr);
    min-width: 0;
    white-space: normal;
    word-break: break-word;
  }

  .cliente-mobile-table td:last-child {
    border-bottom: 0 !important;
  }

  .cliente-mobile-table td:not(.cliente-empty)::before {
    color: var(--cliente-muted);
    content: attr(data-label);
    font-weight: 700;
    text-transform: uppercase;
  }

  .cliente-mobile-table td.cliente-empty {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .cliente-toolbar .btn span {
    display: none;
  }
}

/* source: Reportes/De_Facturacion.php */
.carga {
    overflow-x: auto;
    width: 100%;
}

/* source: Reportes/De_Cobranza.php */
.carga {
    overflow-x: auto;
    width: 100%;
}

/* source: Reportes/De_Corriente.php */
.carga {
    overflow-x: auto;
    width: 100%;
}

/* source: Reportes/Impuestos.php */
.carga {
    overflow-x: auto;
    width: 100%;
}

/* source: Reportes/Revisar_Doctos_R.php */
.miniatura {
    font-size: 0.7rem;
}
#RespuestaResultado .cfdi-money,
#RespuestaResultado_wrapper .cfdi-money,
#RespuestaResultado tbody tr.child li.cfdi4-dtr-money span.dtr-data {
    font-variant-numeric: tabular-nums;
    text-align: right !important;
}

/* source: Configuracion/Editar-Empresa.php */
:root {
  --empresa-bg: #ffffff;
  --empresa-soft-bg: #f8fafc;
  --empresa-strong-bg: #eef4fb;
  --empresa-border: #dfe5ec;
  --empresa-border-soft: #edf1f5;
  --empresa-text: #1f2937;
  --empresa-muted: #6b7280;
  --empresa-primary: #2f80ed;
  --empresa-primary-soft: rgba(47, 128, 237, .10);
  --empresa-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --empresa-ok: #198754;
  --empresa-warn: #b7791f;
  --empresa-error: #c2410c;
}

.empresa-page-description {
  color: var(--empresa-muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 3px 0 0;
}

.empresa-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.empresa-toolbar .btn {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
}

.empresa-toolbar .btn i {
  font-size: 14px;
}

.empresa-toolbar .btn span {
  font-size: 12px;
  font-weight: 600;
}

.empresa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
}

.empresa-main,
.empresa-side,
.empresa-panel {
  min-width: 0;
}

.empresa-side {
  align-self: start;
}

.empresa-panel {
  background: var(--empresa-bg);
  border: 1px solid var(--empresa-border);
  border-radius: 8px;
  box-shadow: var(--empresa-shadow);
  color: var(--empresa-text);
  margin-bottom: 8px;
  padding: 8px;
}

.empresa-panel-header {
  align-items: center;
  border-bottom: 1px solid var(--empresa-border-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: -1px -1px 7px;
  padding-bottom: 5px;
}

.empresa-panel-title {
  color: var(--empresa-text);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.empresa-panel-help,
.empresa-mini-help {
  color: var(--empresa-muted);
  font-size: 11px;
}

.empresa-panel label {
  color: var(--empresa-text);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.empresa-field-status {
  color: var(--empresa-muted);
  font-size: 11px;
  margin-top: 5px;
  min-height: 16px;
}

.empresa-curp-na {
  background: var(--empresa-soft-bg);
  border: 1px solid var(--empresa-border);
  border-radius: 6px;
  color: var(--empresa-muted);
  display: block;
  font-size: 12px;
  min-height: 31px;
  padding: 7px 9px;
}

.empresa-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
  padding: 4px 8px;
}

.empresa-badge.ok {
  background: rgba(25, 135, 84, .14);
  color: var(--empresa-ok);
}

.empresa-badge.warn {
  background: rgba(255, 193, 7, .20);
  color: var(--empresa-warn);
}

.empresa-badge.error {
  background: rgba(220, 53, 69, .14);
  color: var(--empresa-error);
}

.empresa-check-tile {
  align-items: flex-start;
  background: var(--empresa-soft-bg);
  border: 1px solid var(--empresa-border);
  border-radius: 6px;
  color: var(--empresa-text);
  display: flex;
  gap: 9px;
  min-height: 54px;
  padding: 9px;
}

.empresa-check-tile input {
  margin-top: 3px;
}

.empresa-check-tile label {
  cursor: pointer;
  line-height: 1.25;
  margin: 0;
}

.empresa-check-tile span {
  color: var(--empresa-muted);
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
}

.empresa-validation-list {
  display: grid;
  gap: 6px;
}

.empresa-validation-item {
  align-items: flex-start;
  display: flex;
  gap: 7px;
  line-height: 1.25;
}

.empresa-validation-item i {
  margin-top: 2px;
}

.empresa-alert {
  display: none;
  font-size: 12px;
  margin-bottom: 8px;
  padding: 7px 9px;
}

.empresa-table {
  font-size: 11px;
  margin-bottom: 0;
}

.empresa-table th {
  font-weight: 700;
  white-space: nowrap;
}

.empresa-table td {
  vertical-align: middle;
}

#formaInsert .select2-container--default .select2-selection--single.is-valid,
#formaInsert .select2-container--default .select2-selection--multiple.is-valid {
  border-color: #28a745 !important;
}

#formaInsert .select2-container--default .select2-selection--single.is-invalid,
#formaInsert .select2-container--default .select2-selection--multiple.is-invalid {
  border-color: #dc3545 !important;
}

@media (max-width: 1100px) {
  .empresa-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .empresa-panel-header {
    display: block;
  }

  .empresa-toolbar {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .empresa-toolbar .btn span {
    display: none;
  }
}

/* source: Configuracion/API-Conexion.php */
:root {
  --api-bg: #fff;
  --api-soft: #f8fafc;
  --api-line: #dfe5ec;
  --api-text: #1f2937;
  --api-muted: var(--cfdi4-muted, #6b7280);
}
.api-conexion-page {
  background: var(--api-soft);
  box-sizing: border-box;
  color: var(--api-text);
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  width: 100%;
}
.api-conexion-page *,
.api-conexion-page *::before,
.api-conexion-page *::after {
  box-sizing: border-box;
}
.api-conexion-page .content-header,
.api-conexion-page .content,
.api-conexion-page .container-fluid {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  width: 100%;
}
.api-conexion-page .row,
.api-conexion-page [class^="col-"],
.api-conexion-page [class*=" col-"] {
  min-width: 0;
}
.api-description {
  color: var(--api-muted);
  font-size: var(--cfdi4-font-size-sm, 12px) !important;
  line-height: 1.35;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.api-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(310px, 420px) minmax(0, 1fr);
  max-width: 100%;
  min-width: 0;
}
.api-layout > aside,
.api-layout > main,
.api-panel,
.table-responsive {
  max-width: 100%;
  min-width: 0;
}
.api-panel {
  background: var(--api-bg);
  border: 1px solid var(--api-line);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
}
.api-panel h6 {
  font-size: var(--cfdi4-font-size-md) !important;
  font-weight: 700;
  margin: 0 0 8px;
}
.api-panel label,
.api-table,
.api-key-box,
.api-help,
.api-alert {
  font-size: var(--cfdi4-font-size-xs) !important;
}
.api-help {
  color: var(--api-muted);
  margin-bottom: 8px;
}
.api-toolbar {
  display: flex;
  float: none !important;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 100%;
  width: 100%;
}
.api-toolbar .btn {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  min-width: 0;
}
.api-toolbar .btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.api-users-table tbody tr {
  cursor: pointer;
}
.api-table {
  table-layout: fixed;
  width: 100%;
}
.api-table td,
.api-table th {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
  vertical-align: middle;
}
.api-panel .form-control,
.api-panel .custom-select,
.api-panel select,
.api-panel input,
.api-panel textarea {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.api-key-box {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: none;
  margin-bottom: 10px;
  padding: 10px;
}
.api-key-box code {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}
.api-alert {
  display: none;
}
@media (max-width: 980px) {
  .api-layout {
    grid-template-columns: 1fr;
  }
  .api-toolbar {
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  .api-conexion-page .content-header .row,
  .api-conexion-page .content .row {
    margin-left: -6px;
    margin-right: -6px;
  }
  .api-conexion-page .content-header [class^="col-"],
  .api-conexion-page .content-header [class*=" col-"],
  .api-conexion-page .content [class^="col-"],
  .api-conexion-page .content [class*=" col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }
  .api-toolbar {
    justify-content: flex-start;
  }
  .api-toolbar .btn {
    min-height: 34px;
    min-width: 34px;
    padding-left: 10px;
    padding-right: 10px;
    width: auto;
  }
  .api-toolbar .btn span {
    display: none;
  }
  .api-panel {
    padding: 10px;
  }
}

/* source: Administrator/Comunicacion.php */
#ComunicacionModulo {
--com-work-height: 640px;
--com-editor-height: 420px;
--com-recipient-height: 420px;
}
#ComunicacionModulo .content {
    padding-bottom: 0;
}
#ComunicacionModulo .com-compose-grid {
    align-items: flex-start;
    min-height: 0;
}
#ComunicacionModulo .com-compose-grid > [class*="col-"] {
    display: flex;
    min-height: 0;
}
#ComunicacionModulo .com-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin-bottom: 0;
    min-height: var(--com-work-height);
    width: 100%;
}
#ComunicacionModulo .com-panel > .card-header {
    align-items: center;
    display: flex;
    min-height: 48px;
}
#ComunicacionModulo .com-panel > .card-header .card-title {
    float: none;
    margin: 0;
}
#ComunicacionModulo .com-panel > .card-body {
    flex: 1 1 auto;
    min-height: 0;
}
#ComunicacionModulo .com-message-card > .card-body {
    display: block;
    flex: 0 0 auto;
    overflow: visible;
}
#ComunicacionModulo .com-subject-group, #ComunicacionModulo .com-editor-group, #ComunicacionModulo .com-attachments-group {
    margin-bottom: 1rem;
}
#ComunicacionModulo .com-attachments-group {
    margin-bottom: 0;
}
#ComunicacionModulo .com-editor-group {
    display: block;
    min-height: 0;
}
#ComunicacionModulo .com-editor-label-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: .45rem;
}
#ComunicacionModulo .com-editor-label-row label {
    margin-bottom: 0;
}
#ComunicacionModulo .com-editor-resize-hint {
    color: #9aa7b2;
    font-size: 11px;
    font-weight: 400;
}
#ComunicacionModulo .com-editor-dragger {
    align-items: center;
    background: rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0 0 .25rem .25rem;
    border-top: 0;
    cursor: ns-resize;
    display: flex;
    flex: 0 0 14px;
    height: 14px;
    justify-content: center;
    margin-top: -1px;
    touch-action: none;
    user-select: none;
}
#ComunicacionModulo .com-editor-dragger span {
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    border-top: 1px solid rgba(0, 0, 0, .28);
    height: 4px;
    opacity: .85;
    width: 48px;
}
body.com-editor-resizing, body.com-editor-resizing * {
    cursor: ns-resize !important;
    user-select: none !important;
}
#ComunicacionModulo .com-recipient-list {
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    flex: 1 1 auto;
    height: var(--com-recipient-height, 420px);
    min-height: 260px;
    overflow-y: auto;
}
#ComunicacionModulo .com-recipient-row {
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, .075);
    display: flex;
    gap: .65rem;
    padding: .7rem .75rem;
}
#ComunicacionModulo .com-recipient-row:hover {
    background: rgba(127, 127, 127, .08);
}
#ComunicacionModulo .com-recipient-row:last-child {
    border-bottom: 0;
}
#ComunicacionModulo .com-recipient-row.is-hidden {
    display: none;
}
#ComunicacionModulo .com-recipient-main {
    line-height: 1.2;
    min-width: 0;
}
#ComunicacionModulo .com-recipient-main strong, #ComunicacionModulo .com-recipient-main span {
    display: block;
    overflow-wrap: anywhere;
}
#ComunicacionModulo .com-recipient-main strong {
    font-size: 12px;
}
#ComunicacionModulo .com-recipient-main span {
    font-size: 12px;
}
#ComunicacionModulo .com-dest-card > .card-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    overflow: visible;
}
#ComunicacionModulo .com-dest-card .form-group, #ComunicacionModulo .com-dest-card .custom-control {
    flex: 0 0 auto;
    margin-bottom: 0;
}
#ComunicacionModulo .custom-file-label {
    overflow: hidden;
    padding-right: 96px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#ComunicacionModulo #COM_CUERPO {
    min-height: 260px;
    resize: vertical;
}
#ComunicacionModulo .com-email-preview {
    background: #fff;
    color: #212529;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    padding: 1rem;
}
#ComunicacionModal {
    z-index: 1060;
}
#ComunicacionModal .modal-dialog {
    margin: .75rem auto;
    max-width: calc(100% - 1rem);
}
#ComunicacionModal .modal-body {
    max-height: calc(100vh - 120px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 1200px) {
#ComunicacionModal .modal-dialog {
    max-width: 1140px;
}
}
#ComunicacionModulo .note-editor.note-frame {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    display: block;
    height: auto !important;
    margin-bottom: 0;
    min-height: 0;
    overflow: visible;
    resize: none;
}
#ComunicacionModulo .note-editor.note-frame .note-editing-area {
    height: auto !important;
    overflow: visible;
}
#ComunicacionModulo .note-editor.note-frame .note-editable {
    height: var(--com-editor-height) !important;
    min-height: 260px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
#ComunicacionModulo .note-editor.note-frame .note-codable {
    height: var(--com-editor-height) !important;
    min-height: 260px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
#ComunicacionModulo .note-editor.note-frame:not(.codeview) .note-codable {
    display: none !important;
}
#ComunicacionModulo .note-editor.note-frame.codeview .note-editable {
    display: none !important;
}
#ComunicacionModulo .note-editor.note-frame .note-statusbar {
    display: none;
}
#ComunicacionModulo .com-history-table td {
    vertical-align: middle;
}

@media (max-width: 991.98px) {
#ComunicacionModulo .com-compose-grid {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
}
#ComunicacionModulo .com-compose-grid > [class*="col-"] {
    display: block !important;
    flex: none !important;
    max-width: 100% !important;
    min-height: 0;
    width: 100% !important;
}
#ComunicacionModulo .com-compose-grid > .col-lg-4 {
    order: 1;
}
#ComunicacionModulo .com-compose-grid > .col-lg-8 {
    order: 2;
}
#ComunicacionModulo .com-panel {
    display: block;
    margin-bottom: 1rem;
    min-height: 0 !important;
}
#ComunicacionModulo .com-panel > .card-body {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
#ComunicacionModulo .com-message-card > .card-body {
    display: block !important;
    overflow: visible;
}
#ComunicacionModulo .com-editor-group {
    clear: both;
    display: block !important;
    margin-bottom: 1rem !important;
    min-height: 430px !important;
    overflow: visible !important;
    position: relative;
    z-index: 2;
}
#ComunicacionModulo .note-editor.note-frame {
    clear: both;
    display: block !important;
    height: auto !important;
    min-height: 260px !important;
    overflow: visible !important;
    position: relative;
    width: 100% !important;
}
#ComunicacionModulo .note-editor.note-frame .note-toolbar {
    overflow-x: auto;
    white-space: normal;
}
#ComunicacionModulo .note-editor.note-frame .note-editing-area {
    display: block !important;
    height: auto !important;
    min-height: 220px !important;
    overflow: visible !important;
}
#ComunicacionModulo .note-editor.note-frame .note-editable {
    display: block !important;
    height: 220px !important;
    min-height: 220px !important;
    overflow: auto !important;
}
#ComunicacionModulo .note-editor.note-frame .note-codable {
    height: 220px !important;
    min-height: 220px !important;
    overflow: auto !important;
}
#ComunicacionModulo .note-editor.note-frame:not(.codeview) .note-codable {
    display: none !important;
}
#ComunicacionModulo .note-editor.note-frame.codeview .note-editable {
    display: none !important;
}
#ComunicacionModulo .com-editor-dragger {
    display: flex !important;
}
#ComunicacionModulo .com-attachments-group {
    clear: both;
    display: block !important;
    margin-top: 1rem !important;
    position: relative;
    z-index: 1;
}
#ComunicacionModulo .com-message-card {
    margin-bottom: 1rem !important;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}
#ComunicacionModulo .com-dest-card {
    clear: both;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    min-height: 470px !important;
    overflow: hidden !important;
    position: relative;
}
#ComunicacionModulo .com-dest-card > .card-body {
    display: block !important;
    height: 410px !important;
    overflow: hidden !important;
    position: relative;
}
#ComunicacionModulo .com-dest-card .form-group {
    margin-bottom: .75rem !important;
}
#ComunicacionModulo .com-dest-card .custom-control {
    margin-bottom: .75rem !important;
}
#ComunicacionModulo .com-recipient-list {
    display: block !important;
    flex: none !important;
    height: 300px !important;
    max-height: 300px !important;
    min-height: 240px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: relative !important;
    z-index: 1;
}
}

/* Ultima capa dark: el shell principal siempre gana frente a CSS centralizado desde modulos. */
html.dark-mode body:not(.report-iframe),
body.dark-mode:not(.report-iframe),
html[data-theme="dark"] body:not(.report-iframe) {
    --du-bg: var(--cfdi4-dark-surface-2) !important;
    --du-soft-bg: var(--cfdi4-dark-surface) !important;
    --du-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --du-border: var(--cfdi4-dark-border-strong) !important;
    --du-border-soft: var(--cfdi4-dark-border) !important;
    --du-text: var(--cfdi4-dark-text) !important;
    --du-muted: var(--cfdi4-dark-text-muted) !important;
    --du-primary: var(--cfdi4-dark-accent-hover) !important;
    --du-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --du-shadow: var(--cfdi4-dark-shadow) !important;
    --report-bg: var(--cfdi4-dark-surface-2) !important;
    --report-soft-bg: var(--cfdi4-dark-surface) !important;
    --report-strong-bg: var(--cfdi4-dark-surface-3) !important;
    --report-border: var(--cfdi4-dark-border-strong) !important;
    --report-border-soft: var(--cfdi4-dark-border) !important;
    --report-text: var(--cfdi4-dark-text) !important;
    --report-muted: var(--cfdi4-dark-text-muted) !important;
    --report-primary: var(--cfdi4-dark-accent-hover) !important;
    --report-primary-soft: var(--cfdi4-dark-accent-soft) !important;
    --report-ok: var(--cfdi4-dark-success) !important;
    --report-warn: var(--cfdi4-dark-warning) !important;
    --report-error: var(--cfdi4-dark-error) !important;
    --report-shadow: var(--cfdi4-dark-shadow) !important;
}

html.dark-mode body:not(.report-iframe) #LoadContentMenu,
body.dark-mode:not(.report-iframe) #LoadContentMenu,
html[data-theme="dark"] body:not(.report-iframe) #LoadContentMenu {
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-iframe) #LoadContentMenu .CamposFechas,
body.dark-mode:not(.report-iframe) #LoadContentMenu .CamposFechas,
html[data-theme="dark"] body:not(.report-iframe) #LoadContentMenu .CamposFechas {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-iframe) #DocumentosDisponiblesUnificados,
body.dark-mode:not(.report-iframe) #DocumentosDisponiblesUnificados,
html[data-theme="dark"] body:not(.report-iframe) #DocumentosDisponiblesUnificados,
html.dark-mode body:not(.report-iframe) #du-documentos-edicion-table,
body.dark-mode:not(.report-iframe) #du-documentos-edicion-table,
html[data-theme="dark"] body:not(.report-iframe) #du-documentos-edicion-table {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-iframe) #du-documentos-edicion-table th,
body.dark-mode:not(.report-iframe) #du-documentos-edicion-table th,
html[data-theme="dark"] body:not(.report-iframe) #du-documentos-edicion-table th {
    background-color: var(--cfdi4-dark-surface-3) !important;
    border-color: var(--cfdi4-dark-border-strong) !important;
    color: var(--cfdi4-dark-text-muted) !important;
}

html.dark-mode body:not(.report-iframe) #du-documentos-edicion-table td,
html.dark-mode body:not(.report-iframe) #du-documentos-edicion-table tbody tr.child ul.dtr-details,
html.dark-mode body:not(.report-iframe) #du-documentos-edicion-table tbody tr.child ul.dtr-details > li,
body.dark-mode:not(.report-iframe) #du-documentos-edicion-table td,
body.dark-mode:not(.report-iframe) #du-documentos-edicion-table tbody tr.child ul.dtr-details,
body.dark-mode:not(.report-iframe) #du-documentos-edicion-table tbody tr.child ul.dtr-details > li,
html[data-theme="dark"] body:not(.report-iframe) #du-documentos-edicion-table td,
html[data-theme="dark"] body:not(.report-iframe) #du-documentos-edicion-table tbody tr.child ul.dtr-details,
html[data-theme="dark"] body:not(.report-iframe) #du-documentos-edicion-table tbody tr.child ul.dtr-details > li {
    background-color: var(--cfdi4-dark-surface-2) !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

/* DataTables Responsive: la fila expandida debe seguir el dark real del shell. */
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child,
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child:hover,
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child > td,
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child td.child,
html.dark-mode body:not(.report-iframe) table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child:hover,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child > td,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child td.child,
body.dark-mode:not(.report-iframe) table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child:hover,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child > td,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child td.child,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child {
    background: var(--cfdi4-dark-surface-2) !important;
    background-color: var(--cfdi4-dark-surface-2) !important;
    background-image: none !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details,
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child table,
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child table tr,
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child table td,
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child table th,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child table,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child table tr,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child table td,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child table th,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child table,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child table tr,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child table td,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child table th {
    background: transparent !important;
    background-color: transparent !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li {
    box-shadow: inset 0 -1px 0 var(--cfdi4-dark-border) !important;
}

html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li:last-child,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li:last-child,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    box-shadow: none !important;
}

html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-title,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-title,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-title {
    color: var(--cfdi4-dark-text-muted) !important;
    font-weight: 700;
}

html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-data,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-data,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-data {
    color: var(--cfdi4-dark-text) !important;
}

body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child:hover,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child > td,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child td,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child td.child,
body[data-theme="dark"]:not(.report-iframe) table.dataTable.dtr-inline.collapsed > tbody > tr.child td.child,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child:hover,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child > td,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child td,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child td.child {
    background: var(--cfdi4-dark-surface-2) !important;
    background-color: var(--cfdi4-dark-surface-2) !important;
    background-image: none !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child ul,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-title,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-data,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child ul,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child ul.dtr-details,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child ul.dtr-details > li,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child span.dtr-title,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child span.dtr-data {
    background: transparent !important;
    background-color: transparent !important;
    border-color: var(--cfdi4-dark-border) !important;
    color: var(--cfdi4-dark-text) !important;
}

body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-title,
body[data-theme="dark"]:not(.report-iframe) #RespuestaResultado > tbody > tr.child span.dtr-title {
    color: var(--cfdi4-dark-text-muted) !important;
}

/* Descarga SAT: tabla homologada al estilo de Reportes/Revisar_Doctos_R.php. */
#satDescargaPage #RespuestaResultado {
    color: var(--report-text) !important;
    font-size: 11.5px !important;
    margin-bottom: 0 !important;
}

#satDescargaPage #RespuestaResultado th,
#satDescargaPage #RespuestaResultado thead th {
    background: var(--report-soft-bg) !important;
    border-color: var(--report-border-soft) !important;
    color: var(--report-muted) !important;
    font-size: 10.5px !important;
    line-height: 1.12 !important;
    padding: 3px 5px !important;
    text-transform: uppercase !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

#satDescargaPage #RespuestaResultado td,
#satDescargaPage #RespuestaResultado tbody tr:not(.child) > td {
    border-color: var(--report-border-soft) !important;
    font-size: 11.5px !important;
    line-height: 1.16 !important;
    padding: 3px 5px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

#satDescargaPage #RespuestaResultado tbody tr:not(.child) > td {
    height: auto !important;
    max-width: 200px;
}

#satDescargaPage #RespuestaResultado tbody tr:not(.child) > td:first-child {
    min-width: 58px;
    padding-left: 18px !important;
    padding-right: 4px !important;
    position: relative;
}

#satDescargaPage #RespuestaResultado.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child:before {
    font-size: 13px !important;
    left: 4px !important;
    line-height: 1 !important;
    margin-top: -6px !important;
    text-align: center !important;
    width: 10px !important;
}

#satDescargaPage #RespuestaResultado .sat-badge,
#satDescargaPage #RespuestaResultado .sat-badge-ok,
#satDescargaPage #RespuestaResultado .sat-badge-warn,
#satDescargaPage #RespuestaResultado .sat-badge-error,
#satDescargaPage #RespuestaResultado .sat-badge-info {
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    min-height: 16px;
    padding: 2px 6px !important;
    white-space: nowrap !important;
}

#satDescargaPage #RespuestaResultado .sat-badge-ok {
    background: rgba(16, 185, 129, .16) !important;
    color: #10b981 !important;
}

#satDescargaPage #RespuestaResultado .sat-badge-warn {
    background: rgba(245, 158, 11, .18) !important;
    color: #f59e0b !important;
}

#satDescargaPage #RespuestaResultado .sat-badge-error {
    background: rgba(239, 68, 68, .16) !important;
    color: #ef4444 !important;
}

#satDescargaPage #RespuestaResultado .sat-badge-info {
    background: rgba(47, 128, 237, .14) !important;
    color: #6aa6ff !important;
}

#satDescargaPage #RespuestaResultado .sat-uuid-text {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block;
    line-height: inherit !important;
    max-width: 205px;
    min-height: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    text-decoration: none;
    vertical-align: baseline;
}

#satDescargaPage #RespuestaResultado a.sat-uuid-text:hover,
#satDescargaPage #RespuestaResultado a.sat-uuid-text:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

html.dark-mode body:not(.report-iframe) #satDescargaPage #RespuestaResultado a.sat-uuid-text,
body.dark-mode:not(.report-iframe) #satDescargaPage #RespuestaResultado a.sat-uuid-text,
html[data-theme="dark"] body:not(.report-iframe) #satDescargaPage #RespuestaResultado a.sat-uuid-text {
    color: var(--cfdi4-dark-accent-hover) !important;
}

html.dark-mode body:not(.report-iframe) #satDescargaPage #RespuestaResultado a.sat-uuid-text:hover,
html.dark-mode body:not(.report-iframe) #satDescargaPage #RespuestaResultado a.sat-uuid-text:focus,
body.dark-mode:not(.report-iframe) #satDescargaPage #RespuestaResultado a.sat-uuid-text:hover,
body.dark-mode:not(.report-iframe) #satDescargaPage #RespuestaResultado a.sat-uuid-text:focus,
html[data-theme="dark"] body:not(.report-iframe) #satDescargaPage #RespuestaResultado a.sat-uuid-text:hover,
html[data-theme="dark"] body:not(.report-iframe) #satDescargaPage #RespuestaResultado a.sat-uuid-text:focus {
    color: var(--cfdi4-dark-accent) !important;
}

/* DataTables global: control responsive uniforme para todas las tablas. */
table.dataTable,
table.dataTable th,
table.dataTable td,
.dataTables_wrapper,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_paginate {
    font-size: var(--cfdi4-font-size-xs) !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th.dtr-control {
    cursor: pointer !important;
    min-width: 28px;
    padding-left: 24px !important;
    position: relative !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr:not(.child) > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr:not(.child) > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr:not(.child) > td.control:before,
table.dataTable.dtr-column > tbody > tr:not(.child) > th.control:before,
#RespuestaResultado.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td.dtr-control:before,
#RespuestaResultado.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th.dtr-control:before,
#satDescargaPage #RespuestaResultado.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child:before,
#satDescargaPage #satConfigTable.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td.dtr-control:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th.dtr-control:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th:first-child:before {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: var(--cfdi4-green) !important;
    content: "+" !important;
    display: inline-flex !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    height: 16px !important;
    justify-content: center !important;
    left: 6px !important;
    line-height: 16px !important;
    margin: 0 !important;
    position: absolute !important;
    text-align: center !important;
    text-indent: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent:not(.child) > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent:not(.child) > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent:not(.child) > td.control:before,
table.dataTable.dtr-column > tbody > tr.parent:not(.child) > th.control:before,
#RespuestaResultado.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > td.dtr-control:before,
#RespuestaResultado.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > th.dtr-control:before,
#satDescargaPage #RespuestaResultado.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > td:first-child:before,
#satDescargaPage #satConfigTable.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > td.dtr-control:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > th.dtr-control:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > td:first-child:before,
#cancelaciones-data-table.dataTable.dtr-inline.collapsed > tbody > tr.parent:not(.child) > th:first-child:before {
    color: var(--cfdi4-green) !important;
    content: "\2212" !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.child > th:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dataTables_empty:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dt-empty:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dt-empty:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > td[colspan]:first-child:before {
    content: none !important;
    display: none !important;
}

table.dataTable > tbody > tr.child td.child {
    background: var(--cfdi4-table-detail-bg) !important;
    color: var(--cfdi4-text, #243447) !important;
    font-size: var(--cfdi4-font-size-xs) !important;
    line-height: 1.28 !important;
    padding: 0 !important;
    white-space: normal !important;
}

table.dataTable > tbody > tr.child ul.dtr-details,
table.dataTable > tbody > tr.child ul.cfdi4-dtr-details {
    display: block !important;
    margin: 0 !important;
    padding: 8px 18px 12px !important;
    width: 100% !important;
}

table.dataTable > tbody > tr.child ul.dtr-details > li,
table.dataTable > tbody > tr.child ul.cfdi4-dtr-details > li {
    align-items: start !important;
    border-bottom: 1px solid var(--cfdi4-table-detail-border) !important;
    column-gap: 16px !important;
    display: grid !important;
    grid-template-columns: minmax(130px, 26%) minmax(0, 1fr) !important;
    min-height: 32px !important;
    padding: 7px 0 !important;
}

table.dataTable > tbody > tr.child span.dtr-title,
table.dataTable > tbody > tr.child span.dtr-data {
    font-size: var(--cfdi4-font-size-xs) !important;
    line-height: 1.28 !important;
    max-width: none !important;
    min-width: 0 !important;
}

table.dataTable > tbody > tr.child span.dtr-title {
    color: var(--cfdi4-muted) !important;
    font-weight: 700 !important;
}

table.dataTable > tbody > tr.child span.dtr-data {
    color: var(--cfdi4-text, #243447) !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child td.child,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child td.child,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child td.child,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child td.child {
    background: var(--cfdi4-dark-surface-2) !important;
    color: var(--cfdi4-dark-text) !important;
}

html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child ul.cfdi4-dtr-details > li,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child ul.cfdi4-dtr-details > li,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child ul.cfdi4-dtr-details > li,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child ul.dtr-details > li,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child ul.cfdi4-dtr-details > li {
    border-color: var(--cfdi4-dark-border) !important;
}

html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-title,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-title,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-title,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-title {
    color: var(--cfdi4-dark-text-muted) !important;
}

html.dark-mode body:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-data,
body.dark-mode:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-data,
html[data-theme="dark"] body:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-data,
body[data-theme="dark"]:not(.report-iframe) table.dataTable > tbody > tr.child span.dtr-data {
    color: var(--cfdi4-dark-text) !important;
}

