/* Tajy Primavera: acabado web. Mantiene la fotografia y el diseno libre de Icono 1. */
html[data-interface-theme="TAJY"] #introSistemaBloqueo {
    --pantalla-carga-fondo: linear-gradient(145deg, rgba(42, 22, 31, .3), rgba(24, 15, 21, .62)), url('/GoodVentaElectroGuai/iconos/tema_tajy_login.webp?v=20260826_1') center / cover no-repeat, #3f2931;
    --pantalla-carga-texto: #fff9e9;
    --pantalla-carga-secundario: #f2e6ca;
    --pantalla-carga-linea: rgba(249, 232, 188, .45);
    --pantalla-carga-progreso: linear-gradient(90deg, #e6a5bd, #e9c65f, #fff1b5);
}
html[data-interface-theme="TAJY"] #introSistemaBloqueo .intro-sistema__marca {
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px));
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(244, 218, 155, .55);
    border-radius: 18px;
    background: rgba(39, 28, 30, .78);
    box-shadow: 0 18px 48px rgba(25, 16, 19, .24);
}
html[data-interface-theme="TAJY"] #introSistemaBloqueo .intro-sistema__marca img {
    display: none !important;
}
html[data-interface-theme="TAJY"] #introSistemaBloqueo .intro-sistema__marca::before {
    content: "";
    display: block;
    width: min(178px, 50vw);
    height: 112px;
    margin: 0 auto 12px;
    background: url('/GoodVentaElectroGuai/iconos/logo_3g_tajy.svg?v=20260925_1') center / contain no-repeat;
}
html[data-interface-theme="TAJY"] #introSistemaBloqueo .intro-sistema__marca h1 {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.12;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}

html[data-interface-theme="TAJY"] {
    --gv-interface-accent: #8a681c;
    --gv-interface-accent-strong: #674d15;
    --gv-interface-accent-soft: #f3e8bf;
    --gv-interface-sidebar-1: #242521;
    --gv-interface-sidebar-2: #414033;
    --gv-interface-menu: #755c21;
    --gv-interface-page-light: #f5f1e6;
    --gv-interface-page-dark: #17191b;
    --gv-interface-surface-light: #fffdf7;
    --gv-interface-surface-dark: #25292b;
}

html[data-interface-theme="TAJY"] body:is(.light, .app-light) {
    --gv-theme-text: #292d29;
    --gv-theme-muted: #555e56;
    --gv-theme-border: #d8cfb4;
    --gv-theme-surface-2: #f5f0e2;
    --tajy-surface: #fffdf7;
    --tajy-field: #fffefb;
    --tajy-ink: #292d29;
    --tajy-muted: #555e56;
    --tajy-border: #d8cfb4;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) {
    --gv-theme-text: #f7f3e8;
    --gv-theme-muted: #d0cbbd;
    --gv-theme-border: #5d584b;
    --gv-theme-surface-2: #303435;
    --tajy-surface: #25292b;
    --tajy-field: #1b2021;
    --tajy-ink: #f7f3e8;
    --tajy-muted: #d0cbbd;
    --tajy-border: #5d584b;
}

/* Una pelicula neutra permite leer los accesos sobre la fotografia. */
html[data-interface-theme="TAJY"] body:is(.light, .app-light),
html[data-interface-theme="TAJY"] body:is(.light, .app-light) .content {
    background-color: #f5f1e6 !important;
    background-image: linear-gradient(180deg, rgba(248, 245, 235, .75), rgba(248, 245, 235, .84)), url('/GoodVentaElectroGuai/iconos/tema_tajy_primavera_4k.jpg') !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark),
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .content {
    background-color: #17191b !important;
    background-image: linear-gradient(180deg, rgba(18, 20, 21, .66), rgba(18, 20, 21, .76)), url('/GoodVentaElectroGuai/iconos/tema_tajy_primavera_4k.jpg') !important;
}

html[data-interface-theme="TAJY"] body .content nav.app-topbar {
    border-bottom: 1px solid var(--tajy-border) !important;
    box-shadow: 0 3px 12px rgba(22, 20, 14, .12) !important;
}
html[data-interface-theme="TAJY"] body:is(.light, .app-light) .content nav.app-topbar {
    background: rgba(255, 253, 247, .94) !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .content nav.app-topbar {
    background: rgba(29, 31, 30, .92) !important;
}
html[data-interface-theme="TAJY"] body :is(.app-topbar__search .search-container, .header-clock, .app-topbar__actions .buzon-interno-trigger, .app-topbar__actions .header-user-link) {
    background: var(--tajy-surface) !important;
    background-image: none !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
    box-shadow: none !important;
}
html[data-interface-theme="TAJY"] body:is(.light, .app-light, .dark, .app-dark) .content nav.app-topbar :is(.app-topbar__search .search-container, .header-clock, .app-topbar__actions .buzon-interno-trigger),
html[data-interface-theme="TAJY"] body:is(.light, .app-light, .dark, .app-dark) .content nav.app-topbar .app-topbar__actions .header-user-nav .header-user-link:is(:hover, :focus, :focus-visible),
html[data-interface-theme="TAJY"] body:is(.light, .app-light, .dark, .app-dark) .content nav.app-topbar .app-topbar__actions .header-user-nav .header-user-link {
    background: var(--tajy-surface) !important;
    background-image: none !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body :is(.app-topbar__search input, .header-clock__time, .header-clock__date, .app-topbar__actions #spNombreLogin) {
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body:is(.light, .app-light, .dark, .app-dark) .content nav.app-topbar .app-topbar__search .search-field {
    background: transparent !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body .app-topbar__search .search-field::placeholder {
    color: var(--tajy-muted) !important;
    opacity: 1;
}
html[data-interface-theme="TAJY"] body :is(.app-topbar__search .search-btn, .app-topbar__search .search-container.form-input .search-btn, .header-clock__icon) {
    background: #8a681c !important;
    background-image: none !important;
    border-color: #8a681c !important;
    color: #fff !important;
    box-shadow: none !important;
}
html[data-interface-theme="TAJY"] body .content nav.app-topbar .app-topbar__search .search-container.form-input #searchInput + .search-btn {
    background: #8a681c !important;
    background-image: none !important;
    border-color: #8a681c !important;
    color: #fff !important;
}
html[data-interface-theme="TAJY"] body :is(.app-topbar__search .search-btn, .app-topbar__search .search-container.form-input .search-btn):hover {
    background: #674d15 !important;
}
html[data-interface-theme="TAJY"] body .header-clock__seconds {
    background: #f3e8bf !important;
    border-color: #c9b975 !important;
    color: #544010 !important;
}
html[data-interface-theme="TAJY"] body .app-topbar .buzon-interno-trigger__icon {
    background: #f3e8bf !important;
    border-color: #c9b975 !important;
    color: #674d15 !important;
}

/* Icono 1: la sección activa se distingue sin el aro blanco del estilo base. */
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .sidebar:not(.close) .sidebar-sections-menu > li.active > a .bx {
    background: #1b1d1b !important;
    color: #f4d46d !important;
    box-shadow: 0 0 0 2px #c4a34b !important;
}
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .sidebar.close .sidebar-sections-menu > li.active > a {
    background: #1b1d1b !important;
    border-color: #c4a34b !important;
    color: #f4d46d !important;
    box-shadow: 0 0 0 2px rgba(196, 163, 75, .7), 0 5px 12px rgba(0, 0, 0, .25) !important;
}
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .sidebar.close .sidebar-sections-menu > li.active > a .bx {
    color: #f4d46d !important;
}

/* Buzón Interno: la cabecera y el desplegable siguen la paleta carbón/dorado. */
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .app-topbar__actions .buzon-interno-trigger {
    background: #25292b !important;
    border-color: #746746 !important;
    color: #f7f3e8 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .app-topbar__actions .buzon-interno-trigger:is(:hover, :focus-visible) {
    border-color: #d2b45c !important;
    box-shadow: 0 0 0 3px rgba(210, 180, 92, .2) !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-trigger__icon {
    background: #191c1b !important;
    border: 1px solid #a98a3c !important;
    color: #f4d46d !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-trigger__icon i {
    color: #f4d46d !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .content nav.app-topbar .app-topbar__actions .buzon-interno-trigger__text strong {
    color: #f7f3e8 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .content nav.app-topbar .app-topbar__actions :is(.buzon-interno-trigger__text small, .buzon-interno-trigger__chevron) {
    color: #e2c982 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-menu {
    background: #25292b !important;
    border-color: #746746 !important;
    color: #f7f3e8 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .36) !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-menu__header,
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-menu__help {
    border-color: #5d584b !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-menu__header strong,
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-menu button {
    color: #f7f3e8 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-menu__header span,
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-menu__help {
    color: #d0cbbd !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-menu i {
    color: #e8c357 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-interno-menu button:is(:hover, :focus-visible) {
    background: #34342d !important;
    outline: 2px solid #b99b4f !important;
    outline-offset: -2px;
}
html[data-interface-theme="TAJY"] body:has(#buzonInternoMenu.is-open, .buzon-interno-nav:hover, .buzon-overlay.is-open) #guayitoAsistente {
    z-index: 1800 !important;
}

/* Las ventanas del buzón reutilizan sus variables actuales con la paleta TAJY. */
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-overlay {
    --module-bg: #171a19;
    --module-panel: #25292b;
    --module-card: #343839;
    --module-card-soft: #2b3030;
    --module-field: #1b2021;
    --module-border: #5d584b;
    --module-text: #f7f3e8;
    --module-muted: #d0cbbd;
    --module-muted-soft: #b6af9e;
    --module-active: #e8c357;
    --module-active-strong: #c5a341;
    background: rgba(8, 9, 9, .76) !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-modal__title i,
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-dropzone__action:is(:hover, :focus-visible) {
    background: rgba(232, 195, 87, .14) !important;
    border-color: #a98a3c !important;
    color: #e8c357 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-field :is(input, select, textarea):focus,
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-reply textarea:focus {
    border-color: #c5a341 !important;
    box-shadow: 0 0 0 3px rgba(232, 195, 87, .18) !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-list-item:is(:hover, :focus, .is-active) {
    border-color: #b99b4f !important;
    box-shadow: 0 0 0 1px rgba(232, 195, 87, .2) !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) :is(.buzon-dropzone.is-dragover, .buzon-message--admin, .buzon-tag--tipo) {
    background: rgba(232, 195, 87, .13) !important;
    border-color: rgba(232, 195, 87, .42) !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-tag--tipo,
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-attachment {
    color: #f0d47d !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-attachment:is(:hover, :focus-visible) {
    background: rgba(232, 195, 87, .14) !important;
    border-color: #b99b4f !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-btn--primary {
    background: #8a681c !important;
    border-color: #b99b4f !important;
    color: #fffdf7 !important;
    box-shadow: none !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-btn--primary:is(:hover, :focus-visible) {
    background: #674d15 !important;
    box-shadow: 0 0 0 3px rgba(232, 195, 87, .2) !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-btn--ghost:is(:hover, :focus-visible) {
    border-color: #b99b4f !important;
}

/* La bandeja carga su CSS al abrirse y define azules con selectores por ID. */
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay .buzon-modal--wide,
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay .buzon-modal__body {
    background: #171a19 !important;
    border-color: #5d584b !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay :is(.buzon-modal__header, .buzon-panel__header, .buzon-detail__header, .buzon-reply, .buzon-panel, .buzon-detail) {
    background: #25292b !important;
    border-color: #5d584b !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay :is(.buzon-list, .buzon-conversation, .buzon-detail__description, .buzon-attachments) {
    background: #1b2021 !important;
    border-color: #5d584b !important;
    scrollbar-color: #8c7846 #1b2021 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay :is(.buzon-list-item, .buzon-list-attachment, .buzon-message, .buzon-attachment-card, .buzon-reply-image-preview, .buzon-empty) {
    background: #303536 !important;
    border-color: #635d4d !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2) !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay .buzon-list-item:is(:hover, :focus-visible, .is-active) {
    background: #3d3d32 !important;
    border-color: #c5a341 !important;
    border-left-color: #e8c357 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay .buzon-message--admin {
    background: #3a382c !important;
    border-color: #a98a3c !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay :is(.buzon-filter-grid .buzon-field input, .buzon-filter-grid .buzon-field select, .buzon-reply textarea) {
    background: #1b2021 !important;
    border-color: #746746 !important;
    color: #f7f3e8 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay :is(.buzon-detail__description, .buzon-empty, .buzon-modal__title span, .buzon-list-item p, .buzon-list-attachment small, .buzon-message__head, .buzon-attachment-card span, .buzon-reply-images__top span, .buzon-reply-image-preview span) {
    color: #d0cbbd !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay :is(.buzon-list-attachment em, .buzon-attachment-card em) {
    color: #e8c357 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay .buzon-modal__close {
    background: #1b2021 !important;
    border-color: #8c7846 !important;
    color: #fff9e9 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #buzonInternoBandejaOverlay .buzon-modal__close:is(:hover, :focus-visible) {
    background: #55451e !important;
    border-color: #e8c357 !important;
    color: #fff9e9 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-image-viewer :is(.buzon-image-viewer__dialog, .buzon-image-viewer__header) {
    background: #25292b !important;
    border-color: #5d584b !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-image-viewer :is(.buzon-image-viewer__body, .buzon-image-viewer__stage) {
    background: #171a19 !important;
    border-color: #5d584b !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-image-viewer .buzon-image-viewer__title i {
    background: rgba(232, 195, 87, .14) !important;
    color: #e8c357 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-image-viewer :is(.buzon-image-viewer__actions button, .buzon-image-viewer__close, .buzon-image-viewer__nav) {
    background: #303536 !important;
    border-color: #746746 !important;
    color: #f7f3e8 !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .buzon-image-viewer :is(.buzon-image-viewer__actions button, .buzon-image-viewer__close, .buzon-image-viewer__nav):is(:hover, :focus-visible) {
    background: #55451e !important;
    border-color: #e8c357 !important;
}
html[data-interface-theme="TAJY"] body .header-user-avatar-shell {
    background: linear-gradient(145deg, #f2d974, #95701f) !important;
    border-color: #d0ae49 !important;
}
html[data-interface-theme="TAJY"] body .content nav.app-topbar .app-topbar__actions .header-user-nav .header-user-avatar-shell {
    box-shadow: 0 0 0 3px rgba(208, 174, 73, .25), 0 10px 22px rgba(28, 24, 14, .25) !important;
}
html[data-interface-theme="TAJY"] body .content nav.app-topbar .app-topbar__actions .header-user-nav .header-user-link.dropdown-toggle::after {
    color: #8a681c !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) .content nav.app-topbar .app-topbar__actions .header-user-nav .header-user-link.dropdown-toggle::after {
    color: #e8c357 !important;
}
html[data-interface-theme="TAJY"] body .content nav.app-topbar .app-topbar__actions .header-user-nav .header-user-link:is(:hover, :focus-visible) {
    border-color: #c5a341 !important;
    box-shadow: 0 0 0 3px rgba(232, 195, 87, .2) !important;
}
html[data-interface-theme="TAJY"] body .header-user-avatar-fallback {
    background: #55431d !important;
    color: #fff9df !important;
}
html[data-interface-theme="TAJY"] body #btn_flotante_consulta.boton-flotante {
    background: #8a681c !important;
    background-image: none !important;
    border: 1px solid #d5b75a !important;
    box-shadow: 0 8px 20px rgba(36, 30, 12, .26) !important;
}
html[data-interface-theme="TAJY"] body #btn_flotante_consulta.boton-flotante:is(:hover, :focus-visible) {
    background: #674d15 !important;
}
html[data-interface-theme="TAJY"] body #btn_flotante_consulta.boton-flotante img {
    filter: brightness(0) invert(1) !important;
}
html[data-interface-theme="TAJY"] body #guayitoAsistente .guayito__mostrar {
    background: #8a681c !important;
    border-color: #fff5d5 !important;
    box-shadow: 0 8px 20px rgba(36, 30, 12, .26) !important;
}

/* Icono 1 conserva los accesos libres; el color queda dentro de la paleta Tajy. */
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto:not(.mi-panel-home) > .insights > .divMenub:hover {
    background: rgba(138, 104, 28, .1) !important;
    border-color: rgba(138, 104, 28, .2) !important;
}
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto:not(.mi-panel-home) > .insights > .divMenub:hover {
    background: rgba(232, 195, 87, .13) !important;
    border-color: rgba(232, 195, 87, .28) !important;
}
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto:not(.mi-panel-home) > .insights > .divMenub :is(.pTitulo4, .modulo-menu__titulo--largo, .modulo-menu__titulo--tres-lineas, .modulo-menu__titulo--sin-recorte) {
    color: var(--tajy-ink) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(255, 253, 247, .75) !important;
}
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto:not(.mi-panel-home) > .insights > .divMenub :is(.pTitulo4, .modulo-menu__titulo--largo, .modulo-menu__titulo--tres-lineas, .modulo-menu__titulo--sin-recorte) {
    text-shadow: 0 1px 5px rgba(0, 0, 0, .8) !important;
}
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--clientes,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--analitica,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--riesgo,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--finanzas { --menu-icono-color: #866318 !important; }
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--seguridad,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--logistica,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--gestion,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--productos { --menu-icono-color: #456652 !important; }
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--ventas,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--personas,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--marketing { --menu-icono-color: #945b51 !important; }
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--comunicacion,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto .menu-icono-profesional--promociones { --menu-icono-color: #6c5979 !important; }
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--clientes,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--analitica,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--riesgo,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--finanzas { --menu-icono-color: #f0c95d !important; }
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--seguridad,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--logistica,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--gestion,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--productos { --menu-icono-color: #9fc4a4 !important; }
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--ventas,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--personas,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--marketing { --menu-icono-color: #efab9b !important; }
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--comunicacion,
html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body:is(.dark, .app-dark) .contenedorAccesoDirecto .menu-icono-profesional--promociones { --menu-icono-color: #cdb6d8 !important; }

/* Mi Panel y las ventanas internas comparten superficies sobrias. */
html[data-interface-theme="TAJY"] body .mi-panel-quick-access__button {
    background: var(--tajy-surface) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
    box-shadow: 0 3px 12px rgba(29, 27, 19, .08) !important;
}
html[data-interface-theme="TAJY"] body .mi-panel-quick-access__button::before {
    background: #b89338 !important;
}
html[data-interface-theme="TAJY"] body .mi-panel-quick-access__button:is(:hover, :focus-visible) {
    border-color: #a7832b !important;
    box-shadow: 0 6px 16px rgba(29, 27, 19, .16) !important;
}
html[data-interface-theme="TAJY"] body .mi-panel-quick-access__button:is(.mi-panel-quick-access__button--vendedores, .mi-panel-quick-access__button--cobrador) {
    background: #75591e !important;
    border-color: #9e7d2e !important;
    color: #fff !important;
}
html[data-interface-theme="TAJY"] body .mi-panel-quick-access__button.mi-panel-quick-access__button--cobrador {
    background: #46594b !important;
    border-color: #6d8570 !important;
}
html[data-interface-theme="TAJY"] body .mi-panel-quick-access__button:is(.mi-panel-quick-access__button--vendedores, .mi-panel-quick-access__button--cobrador) .mi-panel-quick-access__label {
    color: #fff !important;
}
html[data-interface-theme="TAJY"] body :is(.divAbms, .divAbms_b, .catalogo-ventana, .modal-content, .usuarios-listado-panel, .niveles-listado-panel) {
    background: var(--tajy-surface) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
/* Algunos formularios antiguos traen reglas por ID que devolvían blanco en oscuro. */
html[data-interface-theme="TAJY"] body :is(
    #divAbmProveedor1, #divAbmProveedor2, #divAbmSolicitudCredito2,
    #divAbmCasa1, #divAbmCasa2, #divAbmNroFactura1,
    #divFlujoClienteExpediente, #divAbmMigrarCaja1, #divAbmMigrarCaja2,
    #divAbmCaja1, #divAbmCaja2, #divSolicitarAnulacion,
    #divAbmTipoPago1, #divAbmTipoPago2, #divAbmBanco1, #divAbmBanco2,
    #divAbmMoraCliente1, #divAbmMoraCliente2,
    #divAbmDocumentos1, #divAbmDocumentos2,
    #divAbmDocumentosCliente1, #divAbmDocumentosCliente2
):is(.divAbms, .divAbms_b, .catalogo-ventana, .modal-content) {
    background: var(--tajy-surface) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body :is(#divFlujoClienteExpediente, #divSolicitarAnulacion) :is(.divAbms, .divAbms_b, .catalogo-ventana, .modal-content) {
    background: var(--tajy-surface) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body :is(.divAbms, .divAbms_b, .catalogo-ventana, .modal-content) :is(.inputText, .inputSelect, .inputfiltro, .textarea1, input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), select, textarea) {
    background: var(--tajy-field) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body :is(.divAbms, .divAbms_b, .catalogo-ventana, .modal-content) :is(.pTituloC, .pTituloD, .pTituloE, .pTituloF, .pTituloF_1, .htitulo, .pTituloA) {
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body :is(.tableMenuZ, .catalogo-header, .modal-header-custom, .modal-calificacion-header, .modal-calificar-header, .modal-calculo-precio-header, .modal-filtros-header, .compra-pedido-modal__head, .tg-modal-desc-cab, .control-doc-header, .categoria-precio-categorias-header, .categoria-precio-generacion-header, .categoria-precio-calculo-header, .pcf-modal-head, .niveles-usuarios-encabezado) {
    background: #55451e !important;
    border-color: #80692d !important;
    color: #fffaf0 !important;
    box-shadow: none !important;
}
html[data-interface-theme="TAJY"] body :is(.tableMenuZ, .catalogo-header, .modal-header-custom, .modal-calificacion-header, .modal-calificar-header, .modal-calculo-precio-header, .modal-filtros-header, .compra-pedido-modal__head, .tg-modal-desc-cab, .control-doc-header) :is(.pTituloB, .catalogo-titulo, h1, h2, h3, h5, b) {
    color: #fffaf0 !important;
}
html[data-interface-theme="TAJY"] body :is(.tableCabeceraRegistro, .tableCabeceraRegistro .td_registro) {
    background: #62542f !important;
    border-color: #938052 !important;
    color: #fffaf0 !important;
}
html[data-interface-theme="TAJY"] body :is(.divAbms, .divAbms_b, .catalogo-ventana) :is(.div_cuerpo_table, .cuerpo-tabla-Listado, .catalogo-toolbar) {
    background: var(--tajy-surface) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body :is(.btn1, .btn2, .btn4, .btn5, .btnTemas, .btn-principal-config, .usuarios-boton--primario, .imagenes-sistema-filtros__buscar, .btn-catalogo.btn-buscar, .control-doc-btn-primary, .ch-btn--primario, .marketing__new-button, .marketing-modal__button--primary, .realizar-sorteo__btn, .boletas-sorteo__button--primary, .productos-sync-btn--principal, .producto-media-button--primary, .compra-solicitud-enviar-btn, .dashboard-web-btn--primary, .ds-search-button, .pgi-btn--primary, .proyectos-btn--primary):not(:disabled):not(.orange):not(.danger):not(.btn-danger) {
    background: #8a681c !important;
    border-color: #8a681c !important;
    color: #fff !important;
    box-shadow: none !important;
}
html[data-interface-theme="TAJY"] body :is(.btn1, .btn2, .btn4, .btn5, .btnTemas, .btn-principal-config, .usuarios-boton--primario, .imagenes-sistema-filtros__buscar, .btn-catalogo.btn-buscar, .control-doc-btn-primary, .ch-btn--primario, .marketing__new-button, .marketing-modal__button--primary, .realizar-sorteo__btn, .boletas-sorteo__button--primary, .productos-sync-btn--principal, .producto-media-button--primary, .compra-solicitud-enviar-btn, .dashboard-web-btn--primary, .ds-search-button, .pgi-btn--primary, .proyectos-btn--primary):not(:disabled):not(.orange):not(.danger):not(.btn-danger):hover {
    background: #674d15 !important;
    border-color: #674d15 !important;
}
html[data-interface-theme="TAJY"] body :is(button, a, input, select, textarea, [role="button"]):focus-visible {
    outline: 3px solid #d5ad43 !important;
    outline-offset: 2px;
}

/* Buscar Productos tiene una hoja propia con colores explicitos; se ajustan
   sus superficies principales sin tocar filtros, stock ni acciones de estado. */
html[data-interface-theme="TAJY"] body #divAbmProducto1 > .catalogo-ventana.divAbms {
    background: var(--tajy-surface) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1.divAbms {
    background: var(--tajy-surface) !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 .catalogo-header {
    background: #55451e !important;
    background-image: none !important;
    border-color: #80692d !important;
    box-shadow: none !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 .catalogo-header .pTituloB,
html[data-interface-theme="TAJY"] body #divAbmProducto1 .catalogo-header .pTituloB b {
    color: #fff5d8 !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 :is(.catalogo-toolbar, .clientes-footer-moderno, .producto-paginacion, .table-head-wrapper, .catalogo-proceso) {
    background: var(--tajy-surface) !important;
    background-image: none !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 .catalogo-ventana.divAbms .table-head-wrapper.divresponsive,
html[data-interface-theme="TAJY"] body #divAbmProducto1 .catalogo-ventana.divAbms #table_abm_producto.cuerpo-tabla-Listado {
    background: var(--tajy-field) !important;
    border-color: var(--tajy-border) !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 :is(.catalogo-selectBuscador, .catalogo-searchbox input, .catalogo-toolbar select, .catalogo-toolbar input) {
    background: var(--tajy-field) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 :is(.catalogo-searchbox > i, .catalogo-header .pTituloB b) {
    color: #f0c95d !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 :is(.btn-catalogo.btn-buscar, .productos-toolbar .btn-buscar, .catalogo-vista-switch .active):not(:disabled) {
    background: #8a681c !important;
    background-image: none !important;
    border-color: #8a681c !important;
    color: #fff !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 .productos-vista-selector .productos-vista-btn.is-active {
    background: #8a681c !important;
    border-color: #ad8d3c !important;
    color: #fff !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 :is(.catalogo-filtros-activos .chip-filtro, .producto-footer-icon) {
    background: rgba(202, 164, 67, .15) !important;
    border-color: rgba(202, 164, 67, .4) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 .catalogo-header .btn-icon-sync-productos {
    background: #75591e !important;
    border-color: #b59242 !important;
    color: #fff !important;
}
html[data-interface-theme="TAJY"] body #divAbmProducto1 .table-head-wrapper :is(th, .tableCabeceraRegistro, .td_registro) {
    background: #55451e !important;
    border-color: #80692d !important;
    color: #fffaf0 !important;
}

/* Ventanas Bootstrap y módulos con paletas propias: la acción principal
   sigue el dorado Tajy y los estados de alerta conservan su significado. */
html[data-interface-theme="TAJY"] body .principal2 :is(.bg-primary, .btn-primary:not(:disabled)) {
    background: #8a681c !important;
    background-image: none !important;
    border-color: #8a681c !important;
    color: #fff !important;
}
html[data-interface-theme="TAJY"] body .principal2 .btn-primary:not(:disabled):hover {
    background: #674d15 !important;
    border-color: #674d15 !important;
}
html[data-interface-theme="TAJY"] body .principal2 :is(.text-primary, .border-primary) {
    color: #8a681c !important;
    border-color: #a88b45 !important;
}
html[data-interface-theme="TAJY"] body .principal2 > .bg-white {
    background: var(--tajy-surface) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body .principal2 :is(.bg-light, .row.bg-light) {
    background: var(--tajy-field) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body .principal2 .menu-usuario-acceso-modulo {
    background: #55451e !important;
    border-color: #80692d !important;
    color: #fffaf0 !important;
}
html[data-interface-theme="TAJY"] body .principal2 > .bg-white :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), select, textarea) {
    background: var(--tajy-field) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body .principal2 > .bg-white :is(input, textarea)::placeholder {
    color: var(--tajy-muted) !important;
    opacity: 1;
}
html[data-interface-theme="TAJY"] body #divControlGral {
    background: var(--tajy-surface) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body #divControlGral :is(.control-gral__bar, .control-gral__filters, .control-gral-summary, .control-gral-card) {
    background: var(--tajy-surface) !important;
    border-color: var(--tajy-border) !important;
}
html[data-interface-theme="TAJY"] body #divControlGral :is(.control-gral__title, .control-gral-card__title, .control-gral-card__amount, .control-gral-summary__value) {
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body #divControlGral :is(.control-gral__subtitle, .control-gral-field span, .control-gral-card__date, .control-gral-summary__label) {
    color: var(--tajy-muted) !important;
}
html[data-interface-theme="TAJY"] body #divControlGral .control-gral-field :is(input, select) {
    background: var(--tajy-field) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body #divControlGral :is(.control-gral-btn--blue, .control-gral-btn--primary) {
    background: #8a681c !important;
    border-color: #8a681c !important;
    color: #fff !important;
    box-shadow: none !important;
}
html[data-interface-theme="TAJY"] body #divControlGral :is(.control-gral__icon-btn, .control-gral-btn--soft) {
    background: var(--tajy-field) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body :is(#divActualizacionDatosClientes, #divHistorialActualizacionDatosClientes) .adc-window {
    --adc-bg: var(--tajy-surface);
    --adc-surface: var(--tajy-surface);
    --adc-surface-soft: var(--tajy-field);
    --adc-text: var(--tajy-ink);
    --adc-muted: var(--tajy-muted);
    --adc-border: var(--tajy-border);
    --adc-primary: #8a681c;
    --adc-primary-hover: #674d15;
    --adc-accent: #b89236;
}
html[data-interface-theme="TAJY"] body :is(#divActualizacionDatosClientes, #divHistorialActualizacionDatosClientes) .adc-header__icon {
    background: #8a681c !important;
    color: #fff !important;
}

/* Solicitudes de crédito tiene un tema oscuro propio con azules fuertes. */
html[data-interface-theme="TAJY"] body #divFrmHistorialCompletoSocio :is(.bg-white, .bg-light, .solicitud-aprobar-card, .solicitud-aprobar-card-body) {
    background: var(--tajy-surface) !important;
    background-image: none !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body #divFrmHistorialCompletoSocio header.bg-primary {
    background: #55451e !important;
    border-color: #80692d !important;
    color: #fffaf0 !important;
}
html[data-interface-theme="TAJY"] body #divFrmHistorialCompletoSocio .flex-grow-1 > section {
    background: var(--tajy-field) !important;
    border-color: var(--tajy-border) !important;
    color: var(--tajy-ink) !important;
}
html[data-interface-theme="TAJY"] body #divFrmHistorialCompletoSocio :is(.solicitud-aprobar-card-title, .solicitud-aprobar-valor, .solicitud-aprobar-producto) {
    color: var(--tajy-ink) !important;
    border-color: var(--tajy-border) !important;
}
html[data-interface-theme="TAJY"] body #divFrmHistorialCompletoSocio :is(.btn5, .solicitud-aprobar-seleccionar) {
    background: #8a681c !important;
    border-color: #8a681c !important;
    color: #fff !important;
    box-shadow: none !important;
}
html[data-interface-theme="TAJY"] body #divFrmHistorialCompletoSocio :is(.contador-solicitudes-credito, .contador-icono) {
    background: rgba(184, 146, 54, .15) !important;
    border-color: rgba(184, 146, 54, .5) !important;
    color: var(--tajy-ink) !important;
    box-shadow: none !important;
}
html[data-interface-theme="TAJY"] body #divFrmHistorialCompletoSocio .contador-numero {
    color: #a47c21 !important;
    text-shadow: none !important;
}
html[data-interface-theme="TAJY"] body:is(.dark, .app-dark) #divFrmHistorialCompletoSocio .contador-numero {
    color: #f0c95d !important;
}

/* El ingreso Tajy usa el mismo logo dorado y controles carbon. */
body[data-login-tema="TAJY"] .tajy-brand-logo {
    display: block;
    width: min(200px, 42vw);
    height: auto;
    margin: 0 auto 12px;
    filter: drop-shadow(0 5px 14px rgba(0, 0, 0, .42));
}
body:not([data-login-tema="TAJY"]) .tajy-brand-logo { display: none; }
body[data-login-tema="TAJY"] .logo-icon,
body[data-login-tema="TAJY"] .logo-name,
body[data-login-tema="TAJY"] .logo-tagline { display: none !important; }
body[data-login-tema="TAJY"] .heading h1 {
    color: #fff8e3 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8) !important;
}
body[data-login-tema="TAJY"] .form-group input,
body[data-login-tema="TAJY"] .form-group select {
    background: rgba(27, 31, 30, .94) !important;
    border-color: #a99565 !important;
    color: #fff9e9 !important;
}
body[data-login-tema="TAJY"] .form-group input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #1b1f1e inset !important;
    -webkit-text-fill-color: #fff9e9 !important;
}
body[data-login-tema="TAJY"] .form-group select option { background: #252a28 !important; }
body[data-login-tema="TAJY"] .form-group :is(input, select):focus,
body[data-login-tema="TAJY"] :is(.eye-btn, .btn-login):focus-visible {
    outline: 3px solid #f0c95d !important;
    outline-offset: 2px;
    border-color: #f0c95d !important;
}
body[data-login-tema="TAJY"] .btn-login {
    background: #8a681c !important;
    border: 1px solid #d3ae4a !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(24, 22, 13, .28) !important;
}
body[data-login-tema="TAJY"] .btn-login:hover {
    background: #674d15 !important;
    box-shadow: 0 10px 24px rgba(24, 22, 13, .36) !important;
}

@media (max-width: 639px) {
    html[data-interface-theme="TAJY"] body .content nav.app-topbar {
        box-shadow: 0 2px 8px rgba(22, 20, 14, .12) !important;
    }
    html[data-interface-theme="TAJY"][data-icon-theme="ICONO_1"] body .contenedorAccesoDirecto:not(.mi-panel-home) > .insights > .divMenub :is(.pTitulo4, .modulo-menu__titulo--largo, .modulo-menu__titulo--tres-lineas, .modulo-menu__titulo--sin-recorte) {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
}
