/* Tema oscuro Portal GFE — se activa con body.theme-dark */
body.theme-dark {
    background-color: #1a1d21;
    color: #e8eaed;
}

body.theme-dark #page-wrapper,
body.theme-dark #page-wrapper.gray-bg,
body.theme-dark .gray-bg {
    background-color: #1f2328 !important;
}

body.theme-dark .navbar-static-top,
body.theme-dark .border-bottom {
    background-color: #252a31 !important;
    border-color: #3a4149 !important;
}

body.theme-dark .navbar-top-links li a,
body.theme-dark .welcome-message,
body.theme-dark .text-muted {
    color: #b0b7bf !important;
}

body.theme-dark .footer {
    background: #252a31 !important;
    border-top-color: #3a4149 !important;
    color: #b0b7bf;
}

body.theme-dark .page-heading,
body.theme-dark .border-bottom.white-bg,
body.theme-dark .white-bg {
    background-color: #252a31 !important;
    border-color: #3a4149 !important;
    color: #e8eaed;
}

body.theme-dark .breadcrumb,
body.theme-dark .breadcrumb > li,
body.theme-dark .breadcrumb > li a,
body.theme-dark .breadcrumb > li + li:before {
    color: #b0b7bf !important;
    background: transparent;
}

body.theme-dark .ibox {
    background-color: transparent;
    border-color: #3a4149;
}

body.theme-dark .ibox-title,
body.theme-dark .ibox-content {
    background-color: #2a3038 !important;
    border-color: #3a4149 !important;
    color: #e8eaed;
}

body.theme-dark .ibox-title h5,
body.theme-dark .ibox-title h4,
body.theme-dark label,
body.theme-dark .control-label,
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3,
body.theme-dark h4, body.theme-dark h5, body.theme-dark h6 {
    color: #e8eaed;
}

body.theme-dark .form-control,
body.theme-dark select.form-control,
body.theme-dark textarea.form-control,
body.theme-dark input.form-control,
body.theme-dark .input-group-addon {
    background-color: #1f2328 !important;
    border-color: #4a525c !important;
    color: #e8eaed !important;
}
body.theme-dark select.filtro-estado-dgi-multi option {
    background-color: #1f2328 !important;
    color: #e8eaed !important;
}
body.theme-dark select.filtro-estado-dgi-multi option:checked {
    background: #1ab394 linear-gradient(0deg, #1ab394 0%, #1ab394 100%) !important;
    color: #fff !important;
}

body.theme-dark .form-control:focus {
    border-color: #5b9bd5 !important;
    box-shadow: none;
}

body.theme-dark .form-control[disabled],
body.theme-dark .form-control[readonly] {
    background-color: #2a3038 !important;
    color: #9aa3ad !important;
}

body.theme-dark .table,
body.theme-dark .table > thead > tr > th,
body.theme-dark .table > tbody > tr > td,
body.theme-dark .table > tfoot > tr > th,
body.theme-dark .table > tfoot > tr > td {
    border-color: #3a4149 !important;
    color: #e8eaed !important;
    background-color: transparent !important;
}

body.theme-dark .table > tbody > tr,
body.theme-dark table.dataTable > tbody > tr {
    background-color: #2a3038 !important;
    color: #e8eaed !important;
}

body.theme-dark .table-striped > tbody > tr:nth-of-type(odd),
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > td,
body.theme-dark table.dataTable.stripe tbody tr.odd,
body.theme-dark table.dataTable.display tbody tr.odd,
body.theme-dark table.dataTable.stripe tbody tr.odd > td,
body.theme-dark table.dataTable.display tbody tr.odd > td,
body.theme-dark table.dataTable.stripe tbody tr.odd > th,
body.theme-dark table.dataTable.display tbody tr.odd > th {
    background-color: #323840 !important;
    color: #e8eaed !important;
}

body.theme-dark .table-striped > tbody > tr:nth-of-type(even),
body.theme-dark .table-striped > tbody > tr:nth-of-type(even) > td,
body.theme-dark table.dataTable.stripe tbody tr.even,
body.theme-dark table.dataTable.display tbody tr.even,
body.theme-dark table.dataTable.stripe tbody tr.even > td,
body.theme-dark table.dataTable.display tbody tr.even > td {
    background-color: #2a3038 !important;
    color: #e8eaed !important;
}

body.theme-dark .table-hover > tbody > tr:hover,
body.theme-dark .table-hover > tbody > tr:hover > td,
body.theme-dark #TablaComprobantes tbody tr:hover,
body.theme-dark #TablaComprobantes tbody tr:hover > td {
    background-color: #3a4450 !important;
    color: #e8eaed !important;
}

body.theme-dark .table > thead > tr > th {
    background-color: #252a31 !important;
    color: #e8eaed !important;
}

body.theme-dark .table-bordered {
    border-color: #3a4149;
}

/* Filas de estado en Comprobantes emitidos: tonos oscuros + texto legible */
body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-cobranza,
body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-cobranza > td {
    background-color: #1e3a2f !important;
    color: #e8eaed !important;
}
body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-cobranza:hover > td {
    background-color: #274a3c !important;
}

body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-anulado-por-nc,
body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-anulado-por-nc > td {
    background-color: #3d3426 !important;
    color: #e8eaed !important;
}
body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-anulado-por-nc:hover > td {
    background-color: #4a3f2e !important;
}

body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-anula-documento,
body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-anula-documento > td {
    background-color: #243447 !important;
    color: #e8eaed !important;
}
body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-anula-documento:hover > td {
    background-color: #2d4058 !important;
}

body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-anulacion-aux,
body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-anulacion-aux > td {
    background-color: #342840 !important;
    color: #e8eaed !important;
}
body.theme-dark #TablaComprobantes.table-striped > tbody > tr.fila-anulacion-aux:hover > td {
    background-color: #40304e !important;
}

body.theme-dark #resumenTotalRegistros {
    background-color: #323840 !important;
    color: #e8eaed !important;
}

body.theme-dark .sortable:hover,
body.theme-dark .sortable.asc,
body.theme-dark .sortable.desc {
    background-color: #323840 !important;
    color: #e8eaed !important;
}

body.theme-dark .panel,
body.theme-dark .panel-default,
body.theme-dark .panel-body,
body.theme-dark .panel-heading,
body.theme-dark .well {
    background-color: #2a3038 !important;
    border-color: #3a4149 !important;
    color: #e8eaed;
}

body.theme-dark .modal-content {
    background-color: #2a3038 !important;
    color: #e8eaed !important;
    border-color: #3a4149 !important;
}

body.theme-dark .modal-header,
body.theme-dark .modal-footer,
body.theme-dark .modal-body {
    background-color: #2a3038 !important;
    color: #e8eaed !important;
    border-color: #3a4149 !important;
}

body.theme-dark .modal-title {
    color: #e8eaed !important;
}

body.theme-dark .close {
    color: #e8eaed;
    opacity: 0.8;
    text-shadow: none;
}

body.theme-dark .dropdown-menu {
    background-color: #2a3038;
    border-color: #3a4149;
}

body.theme-dark .dropdown-menu > li > a {
    color: #e8eaed;
}

body.theme-dark .dropdown-menu > li > a:hover,
body.theme-dark .dropdown-menu > li > a:focus {
    background-color: #3a4149;
    color: #fff;
}

body.theme-dark .btn-white,
body.theme-dark .btn-default {
    background-color: #3a4149 !important;
    border-color: #4a525c !important;
    color: #e8eaed !important;
}

body.theme-dark .btn-white:hover,
body.theme-dark .btn-default:hover {
    background-color: #4a525c !important;
    color: #fff !important;
}

body.theme-dark .alert-info {
    background-color: #1e3a4f;
    border-color: #2a5570;
    color: #c8e0f0;
}

body.theme-dark .alert-success {
    background-color: #1e3d2f;
    border-color: #2d5c45;
    color: #c5e8d4;
}

body.theme-dark .alert-warning {
    background-color: #4a3b1a;
    border-color: #6b5528;
    color: #f0e0b0;
}

body.theme-dark .alert-danger {
    background-color: #4a2228;
    border-color: #6b343c;
    color: #f0c8cc;
}

body.theme-dark .wrapper-content {
    color: #e8eaed;
}

body.theme-dark .home-config-tile.style1:not(.lazur-bg):not(.navy-bg) {
    background-color: #2a3038 !important;
    color: #e8eaed;
}

body.theme-dark .datepicker,
body.theme-dark .datepicker table tr td,
body.theme-dark .datepicker table tr th {
    background-color: #2a3038;
    color: #e8eaed;
    border-color: #3a4149;
}

body.theme-dark .datepicker table tr td.day:hover,
body.theme-dark .datepicker table tr td.focused {
    background: #3a4149;
}

body.theme-dark .dataTables_wrapper .dataTables_length,
body.theme-dark .dataTables_wrapper .dataTables_filter,
body.theme-dark .dataTables_wrapper .dataTables_info,
body.theme-dark .dataTables_wrapper .dataTables_paginate {
    color: #b0b7bf;
}

body.theme-dark .pagination > li > a,
body.theme-dark .pagination > li > span {
    background-color: #2a3038;
    border-color: #3a4149;
    color: #e8eaed;
}

body.theme-dark .pagination > .active > a,
body.theme-dark .pagination > .active > span {
    background-color: #1ab394;
    border-color: #1ab394;
}

body.theme-dark .nav-tabs > li > a {
    color: #b0b7bf;
}

body.theme-dark .nav-tabs > li.active > a,
body.theme-dark .nav-tabs > li.active > a:hover,
body.theme-dark .nav-tabs > li.active > a:focus {
    background-color: #2a3038;
    border-color: #3a4149;
    color: #e8eaed;
}

body.theme-dark hr {
    border-color: #3a4149;
}

body.theme-dark .help-block,
body.theme-dark .small,
body.theme-dark small {
    color: #9aa3ad !important;
}

/* Toggle en navbar / login */
#btnToggleTema {
    cursor: pointer;
}
#btnToggleTema i {
    margin-right: 4px;
}

body.theme-dark.gray-bg,
body.theme-dark .middle-box h3,
body.theme-dark .middle-box p {
    color: #e8eaed !important;
}

body.theme-dark .loginscreen {
    color: #e8eaed;
}

/* Paginación custom (Comprobantes emitidos / reportes) */
body.theme-dark .btn-paginacion {
    background-color: #3a4149 !important;
    border-color: #5a6570 !important;
    color: #e8eaed !important;
}
body.theme-dark .btn-paginacion:hover:not(.disabled),
body.theme-dark .btn-paginacion:hover:not(.disabled) i {
    background-color: #1ab394 !important;
    border-color: #1ab394 !important;
    color: #fff !important;
}
body.theme-dark .btn-paginacion.disabled,
body.theme-dark .btn-paginacion.disabled i {
    color: #6a737c !important;
    background-color: #2a3038 !important;
    border-color: #3a4149 !important;
    opacity: 1;
}
body.theme-dark .btn-paginacion i {
    color: inherit !important;
}
body.theme-dark .paginacion-contador,
body.theme-dark .paginacion-salto {
    color: #e8eaed !important;
}
body.theme-dark #inputIrPagina,
body.theme-dark input[type="number"]#inputIrPagina {
    background-color: #1f2328 !important;
    border-color: #5a6570 !important;
    color: #e8eaed !important;
}
body.theme-dark #inputIrPagina:focus {
    border-color: #1ab394 !important;
    box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.25) !important;
}

/* Modal edición / alta cliente (inmodal Inspinia) */
body.theme-dark .inmodal .modal-content,
body.theme-dark .modal.inmodal .modal-content {
    background-color: #2a3038 !important;
    color: #e8eaed !important;
    border-color: #3a4149 !important;
}
body.theme-dark .inmodal .modal-header,
body.theme-dark .inmodal .modal-footer,
body.theme-dark .inmodal .modal-body {
    background-color: #2a3038 !important;
    color: #e8eaed !important;
    border-color: #3a4149 !important;
}
body.theme-dark .inmodal .modal-title,
body.theme-dark .inmodal .modal-header small,
body.theme-dark .inmodal .font-bold {
    color: #e8eaed !important;
}
body.theme-dark .inmodal .modal-body .panel-body,
body.theme-dark .inmodal .tabs-container,
body.theme-dark .inmodal fieldset {
    background-color: #2a3038 !important;
    color: #e8eaed !important;
    border-color: #3a4149 !important;
}
body.theme-dark .inmodal .control-label,
body.theme-dark .inmodal label {
    color: #c8d0d8 !important;
}

body.theme-dark .contact-box {
    background-color: #2a3038 !important;
    border-color: #3a4149 !important;
    color: #e8eaed !important;
}
body.theme-dark .contact-box h3,
body.theme-dark .contact-box address,
body.theme-dark .contact-box strong,
body.theme-dark .contact-box p,
body.theme-dark .contact-box .gray-bg {
    color: #e8eaed !important;
    background-color: transparent !important;
}
body.theme-dark .contact-box .contact-box-footer {
    border-color: #3a4149 !important;
    background-color: #252a31 !important;
}

/* DataTables inputs / selects */
body.theme-dark .dataTables_wrapper .dataTables_filter input,
body.theme-dark .dataTables_wrapper .dataTables_length select {
    background-color: #1f2328 !important;
    border: 1px solid #5a6570 !important;
    color: #e8eaed !important;
}
body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #e8eaed !important;
}
body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #1ab394 !important;
    border-color: #1ab394 !important;
    color: #fff !important;
}
body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #3a4149 !important;
    border-color: #5a6570 !important;
    color: #fff !important;
}
body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body.theme-dark .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #6a737c !important;
    background: transparent !important;
}

body.theme-dark .list-group-item {
    background-color: #2a3038 !important;
    color: #e8eaed !important;
    border-color: #3a4149 !important;
}
body.theme-dark .list-group-item:hover,
body.theme-dark .list-group-item:focus {
    background-color: #3a4149 !important;
    color: #fff !important;
}
body.theme-dark a.list-group-item,
body.theme-dark button.list-group-item {
    color: #e8eaed !important;
}

/* Iconos con fondo claro → variante -dark */
body.theme-dark img.btn-accion.btn-devolucion:not([src*="-dark"]),
body.theme-dark img[src*="devolucion.png"]:not([src*="devolucion-dark"]) {
    content: url("../Imagenes/devolucion-dark.png?v=20260806c");
    filter: brightness(1.75) contrast(1.1);
}
body.theme-dark img.btn-accion.btn-replica:not([src*="-dark"]),
body.theme-dark img[src*="replica.png"]:not([src*="replica-dark"]) {
    content: url("../Imagenes/replica-dark.png?v=20260806c");
    filter: brightness(1.75) contrast(1.1);
}
body.theme-dark img.btn-accion.btn-cobrar:not([src*="-dark"]),
body.theme-dark img[src*="cobrar.png"]:not([src*="cobrar-dark"]) {
    content: url("../Imagenes/cobrar-dark.png?v=20260806c");
    filter: brightness(1.75) contrast(1.1);
}
body.theme-dark img[src*="reloj.png"]:not([src*="reloj-dark"]) {
    content: url("../Imagenes/reloj-dark.png?v=20260806c");
    filter: brightness(1.75) contrast(1.1);
}
body.theme-dark img[src*="advertencia.png"]:not([src*="advertencia-dark"]) {
    content: url("../Imagenes/advertencia-dark.png?v=20260806c");
}

/* Variantes -dark ya son claras: sin filtro extra */
body.theme-dark img[src*="-dark.png"] {
    filter: none;
}
