﻿/* Treo dark theme. Los colores viven en ColorPalette.css. */

html.theme-dark,
html.theme-dark body {
    background-color: var(--treo-bg) !important;
    background-image: none !important;
    color: var(--treo-text) !important;
}

html.theme-dark #appcontent {
    background-color: var(--treo-bg-elev) !important;
    background-image: none !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
    box-shadow: none !important;
}

html.theme-dark .well,
html.theme-dark .card.card-body,
html.theme-dark .hero-unit,
html.theme-dark .form-actions,
html.theme-dark fieldset {
    background: var(--treo-bg-soft) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
}

html.theme-dark legend {
    color: var(--treo-text);
    border-bottom-color: var(--treo-line);
}

html.theme-dark a {
    color: var(--treo-link);
}

html.theme-dark a:hover {
    color: var(--treo-link-hover);
}

html.theme-dark a.btn {
    color: var(--bs-btn-color);
}

html.theme-dark a.btn:hover,
html.theme-dark a.btn:focus {
    color: var(--bs-btn-hover-color);
}

html.theme-dark label,
html.theme-dark h1, html.theme-dark h2, html.theme-dark h3,
html.theme-dark h4, html.theme-dark h5, html.theme-dark h6,
html.theme-dark p, html.theme-dark li, html.theme-dark td, html.theme-dark th {
    color: var(--treo-text);
}

html.theme-dark .breadcrumb,
html.theme-dark .breadcrumb li,
html.theme-dark .muted,
html.theme-dark .nr-leyenda,
html.theme-dark .nr-hint {
    color: var(--treo-muted) !important;
}

html.theme-dark .breadcrumb a {
    color: var(--treo-link) !important;
}

html.theme-dark .letra_Celeste,
html.theme-dark .letra_Celeste_Total {
    color: var(--treo-celeste) !important;
}

html.theme-dark .letra_verde,
html.theme-dark .text-success {
    color: var(--treo-success) !important;
}

html.theme-dark .letra_roja,
html.theme-dark .text-error,
html.theme-dark .text-danger {
    color: var(--treo-danger) !important;
}

html.theme-dark .text-info { color: var(--treo-info) !important; }
html.theme-dark .text-warning { color: var(--treo-warning) !important; }

html.theme-dark .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--treo-text);
    --bs-table-striped-bg: var(--treo-table-stripe);
    --bs-table-hover-bg: var(--treo-table-hover);
    color: var(--treo-text) !important;
    background: transparent !important;
    border-color: var(--treo-line) !important;
}

html.theme-dark .table th,
html.theme-dark .table td,
html.theme-dark .table tr {
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
    background-color: transparent !important;
}

html.theme-dark .table thead th,
html.theme-dark .table tbody th {
    background-color: var(--treo-table-head) !important;
    background-image: none !important;
    color: var(--treo-accent) !important;
    text-shadow: none !important;
    box-shadow: none !important;
    --bs-table-bg: var(--treo-table-head);
    --bs-table-bg-type: var(--treo-table-head);
    --bs-table-accent-bg: transparent;
}

html.theme-dark .table thead th a,
html.theme-dark .table tbody th a,
html.theme-dark .table thead th a:hover,
html.theme-dark .table tbody th a:hover {
    color: var(--treo-accent) !important;
}

html.theme-dark .table-striped tbody tr:nth-child(odd) > td {
    background-color: var(--treo-table-stripe) !important;
}

html.theme-dark .table-hover tbody tr:hover > td {
    background-color: var(--treo-table-hover) !important;
}

html.theme-dark .titulo_tabla_Celda td,
html.theme-dark .table .thead,
html.theme-dark .table thead th,
html.theme-dark .table thead td {
    background: var(--treo-table-head) !important;
    color: var(--treo-accent) !important;
    border-color: var(--treo-line) !important;
}

html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea,
html.theme-dark .form-control,
html.theme-dark .uneditable-input,
html.theme-dark .input-prepend .add-on,
html.theme-dark .form-select {
    background-color: var(--treo-input-bg) !important;
    color: var(--treo-text) !important;
    border: 1px solid var(--treo-input-line) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.theme-dark input:focus,
html.theme-dark select:focus,
html.theme-dark textarea:focus {
    border-color: var(--treo-accent) !important;
    outline: 1px solid var(--treo-accent);
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder {
    color: var(--treo-placeholder) !important;
}

html.theme-dark .btn {
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background-color: var(--treo-btn-bg);
    color: var(--treo-text);
    border-color: var(--treo-line);
}

html.theme-dark .btn:hover {
    background-color: var(--treo-btn-hover);
    color: var(--treo-on-solid);
}

html.theme-dark .btn-primary,
html.theme-dark #btn_login {
    background-color: var(--treo-accent) !important;
    color: var(--treo-accent-ink) !important;
    border-color: var(--treo-accent) !important;
}

html.theme-dark .btn-primary:hover,
html.theme-dark #btn_login:hover {
    filter: brightness(1.08);
    color: var(--treo-accent-ink) !important;
}

html.theme-dark .btn-info {
    background-color: var(--treo-info-btn) !important;
    color: var(--treo-on-solid) !important;
    border-color: var(--treo-info-btn) !important;
}

html.theme-dark .btn-success {
    background-color: var(--treo-success-btn) !important;
    color: var(--treo-on-solid) !important;
    border-color: var(--treo-success-btn) !important;
}

html.theme-dark .btn-danger,
html.theme-dark .btn-error {
    background-color: var(--treo-danger-btn) !important;
    color: var(--treo-on-solid) !important;
    border-color: var(--treo-danger-btn) !important;
}

html.theme-dark .btn-warning {
    background-color: var(--treo-warning-btn) !important;
    color: var(--treo-on-solid) !important;
}

html.theme-dark .dropdown-menu {
    background: var(--treo-menu-bg) !important;
    border: 1px solid var(--treo-line) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.45) !important;
}

html.theme-dark .dropdown-menu > li > a,
html.theme-dark .dropdown-menu .dropdown-item,
html.theme-dark .dropdown-menu a {
    color: var(--treo-text) !important;
    background: transparent !important;
}

html.theme-dark .dropdown-menu > li > a:hover,
html.theme-dark .dropdown-menu .dropdown-item:hover,
html.theme-dark .dropdown-menu a:hover {
    background: var(--treo-menu-hover) !important;
    color: var(--treo-on-solid) !important;
}

html.theme-dark .dropdown-menu .divider {
    background-color: var(--treo-line) !important;
}

html.theme-dark .nav-tabs {
    border-bottom-color: var(--treo-line);
}

html.theme-dark .nav-tabs > li > a {
    color: var(--treo-link);
}

html.theme-dark .nav-tabs > li.active > a,
html.theme-dark .nav-tabs .nav-link.active,
html.theme-dark .nav-tabs > li.active > a:hover,
html.theme-dark .nav-tabs .nav-link.active:hover {
    background: var(--treo-bg-elev) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) var(--treo-line) var(--treo-bg-elev) !important;
}

html.theme-dark .modal,
html.theme-dark .modal-content,
html.theme-dark .modal-header,
html.theme-dark .modal-body,
html.theme-dark .modal-footer,
html.theme-dark #modal-login,
html.theme-dark #login-dialog {
    background: var(--treo-bg-elev) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
}

.dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    text-decoration: none;
}
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
}
.dropdown-submenu:hover > .dropdown-menu { display: block; }

html.theme-dark .modal .btn-close {
    filter: invert(1);
}

html.theme-dark #login-bg {
    background: var(--treo-bg) !important;
}

html.theme-dark .input-group-text {
    background: var(--treo-bg-soft) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
}

html.theme-dark .alert {
    border: 1px solid transparent;
}

html.theme-dark .alert-info {
    background: var(--treo-info-bg);
    color: var(--treo-info-ink);
    border-color: var(--treo-info-line);
}

html.theme-dark .alert-success {
    background: var(--treo-success-bg);
    color: var(--treo-success-ink);
    border-color: var(--treo-success-line);
}

html.theme-dark .alert-error,
html.theme-dark .alert-danger {
    background: var(--treo-danger-bg);
    color: var(--treo-danger-ink);
    border-color: var(--treo-danger-line);
}

html.theme-dark .alert-warning {
    background: var(--treo-warning-bg);
    color: var(--treo-warning-ink);
    border-color: var(--treo-warning-line);
}

html.theme-dark .label,
html.theme-dark .badge {
    color: var(--treo-on-solid);
}

html.theme-dark [class^="icon-"],
html.theme-dark [class*=" icon-"] {
    color: inherit;
}

html.theme-dark .chosen-container-single .chosen-single,
html.theme-dark .chosen-container-multi .chosen-choices {
    background: var(--treo-input-bg) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-input-line) !important;
    box-shadow: none !important;
}

html.theme-dark .chosen-drop {
    background: var(--treo-bg-elev) !important;
    border-color: var(--treo-input-line) !important;
}

html.theme-dark .chosen-search input[type="text"] {
    background: var(--treo-input-bg) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-input-line) !important;
}

html.theme-dark .chosen-results li {
    color: var(--treo-text);
}

html.theme-dark .chosen-results li.highlighted {
    background: var(--treo-menu-hover) !important;
    color: var(--treo-on-solid) !important;
}

html.theme-dark .dxgvControl,
html.theme-dark .dxgvTable,
html.theme-dark .dxeEditAreaSys,
html.theme-dark .dxeTextBoxSys,
html.theme-dark .dxeButtonEditSys {
    background-color: var(--treo-bg-elev) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
}

html.theme-dark .pagination li a,
html.theme-dark .pagination li span {
    background: var(--treo-btn-bg);
    color: var(--treo-text);
    border-color: var(--treo-line);
}

html.theme-dark hr {
    border-top-color: var(--treo-line);
}

html.theme-dark .close {
    color: var(--treo-on-solid);
    text-shadow: none;
    opacity: .7;
}

html.theme-dark .treo-theme-toggle {
    background: var(--treo-btn-bg);
    color: var(--treo-text);
    border: 1px solid var(--treo-line);
}

html.theme-dark .yui .ajax__calendar_container,
html.theme-dark .yui .ajax__calendar_body,
html.theme-dark .yui .ajax__calendar_days,
html.theme-dark .yui .ajax__calendar_months,
html.theme-dark .yui .ajax__calendar_years,
html.theme-dark .yui .ajax__calendar_header,
html.theme-dark .yui .ajax__calendar_footer {
    background: var(--treo-bg-elev) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
}

html.theme-dark .yui .ajax__calendar_day,
html.theme-dark .yui .ajax__calendar_month,
html.theme-dark .yui .ajax__calendar_year,
html.theme-dark .yui .ajax__calendar_title,
html.theme-dark .yui .ajax__calendar_dayname,
html.theme-dark .yui .ajax__calendar_prev,
html.theme-dark .yui .ajax__calendar_next {
    color: var(--treo-text) !important;
    background: transparent !important;
}

html.theme-dark .yui .ajax__calendar_today {
    background: var(--treo-bg-soft) !important;
    border-color: var(--treo-line) !important;
    color: var(--treo-text) !important;
}

html.theme-dark .yui .ajax__calendar_hover .ajax__calendar_day,
html.theme-dark .yui .ajax__calendar_hover .ajax__calendar_month,
html.theme-dark .yui .ajax__calendar_hover .ajax__calendar_year,
html.theme-dark .yui .ajax__calendar_hover .ajax__calendar_title,
html.theme-dark .yui .ajax__calendar_active .ajax__calendar_day {
    background: var(--treo-bg-soft) !important;
    color: var(--treo-text) !important;
}

html.theme-dark .yui .ajax__calendar_other .ajax__calendar_day,
html.theme-dark .yui .ajax__calendar_other .ajax__calendar_year {
    color: var(--treo-muted) !important;
}

html.theme-dark .ui-widget-content,
html.theme-dark .ui-autocomplete,
html.theme-dark .ui-datepicker,
html.theme-dark #productSuggest,
html.theme-dark #articleSuggest,
html.theme-dark #ocProductSuggest {
    background: var(--treo-bg-elev) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
}

html.theme-dark #productSuggest .product-opt,
html.theme-dark #articleSuggest .product-opt,
html.theme-dark #productSuggest div,
html.theme-dark #ocProductSuggest div {
    color: var(--treo-text) !important;
    background: transparent;
}

html.theme-dark #productSuggest .product-opt:hover,
html.theme-dark #articleSuggest .product-opt:hover,
html.theme-dark #ocProductSuggest div:hover,
html.theme-dark #articleSuggest .product-opt.is-on {
    background: var(--treo-bg-soft) !important;
    color: var(--treo-text) !important;
}

html.theme-dark .ui-state-default,
html.theme-dark .ui-widget-content .ui-state-default {
    background: var(--treo-btn-bg) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
}

html.theme-dark .ui-state-hover,
html.theme-dark .ui-state-focus,
html.theme-dark .ui-state-highlight {
    background: var(--treo-menu-hover) !important;
    color: var(--treo-on-solid) !important;
}

html.theme-dark .stock-precio,
html.theme-dark .stock-precio-oferta {
    color: var(--treo-text) !important;
}

html.theme-dark .stock-precio-lista,
html.theme-dark .stock-precio-usado {
    color: var(--treo-neutral) !important;
}

html.theme-dark .box_ingresados,
html.theme-dark .box_respVendedor,
html.theme-dark .box_enCompra,
html.theme-dark .box_pendientes,
html.theme-dark .box_enReparto {
    background-color: var(--treo-bg-soft) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
}

html.theme-dark .dxlpLoadingDiv,
html.theme-dark [class*="dxlpLoadingDiv"] {
    background: rgba(12, 14, 19, 0.72) !important;
    background-color: rgba(12, 14, 19, 0.72) !important;
    opacity: 1 !important;
}

html.theme-dark .dxlpLoadingPanel,
html.theme-dark [class*="dxlpLoadingPanel"] {
    background: var(--treo-bg-elev) !important;
    background-color: var(--treo-bg-elev) !important;
    color: var(--treo-text) !important;
    border-color: var(--treo-line) !important;
    box-shadow: none !important;
}

html.theme-dark [class*="dxlpLoadingPanel"] td,
html.theme-dark [class*="dxlpLoadingPanel"] span {
    color: var(--treo-text) !important;
    background: transparent !important;
}
