:root {
    --theme-default: #fa6019;
    --theme-secondary: #41368f;
}

:root .dark-only {
    --theme-default: #fa6019;
    --theme-secondary: #5d568f;
}

input.form-control.ui-autocomplete-input {
    background-image: url(https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/icons/search.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 30px;
    border-color: var(--theme-secondary) !important;
}

.pagination a.page-link {
    font-size: 12px;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M4 6l4 4 4-4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 30px;
    border-color: var(--theme-secondary) !important;
}

.page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item {
    color: var(--theme-default);
    font-size: 12px;
    display: flex;
    align-items: center;
}

.page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item+.breadcrumb-item:before {
    color: var(--theme-default);
}

input#user_imagen {
    width: 100%;
}

.cantPaginasPagination {
    padding-left: 10px;
    font-weight: bold;
    font-size: 12px;
}

.iso-wrapper img {
    height: 36px;
}

ul.sidebar-submenu a {
    cursor: pointer;
}

.pagination {
    background-color: white;
    border-radius: 5px;
    border: 1px solid #ededed;
}

.table th {
    color: #1f2f3e;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.form {
    padding-left: 20px;
    padding-right: 20px;
}

td.listActions {
    padding-right: 30px;
    font-size: 14px !important;
    white-space: nowrap;
    text-align: right;
}

.filters {
    display: none;
    margin-bottom: 0px;
}

td.listActions .fa {
    margin-right: 5px !important;
}

.filters .row {
    margin: 0px 10px;
    margin-bottom: 15 !important;
}

.filters button {
    margin: 0px 10px;
    margin-bottom: 15 !important;
}

.filters form {
    align-items: end;
}

span.toggle-handle.btn.btn-secondary {
    background-color: var(--theme-secondary) !important;
}

label.btn.btn-secondary.active.toggle-off {
    background-color: #dbdbdb;
}

.panelButtonList {
    margin-bottom: 5px;
}

.page-title {
    margin-bottom: 10px !important;
}

.theme-form input[type=date],
.theme-form input[type=datetime-local],
.theme-form input[type=email],
.theme-form input[type=file],
.theme-form input[type=month],
.theme-form input[type=number],
.theme-form input[type=password],
.theme-form input[type=search],
.theme-form input[type=tel],
.theme-form input[type=text],
.theme-form input[type=time],
.theme-form input[type=url],
.theme-form input[type=week],
.theme-form select,
.theme-form textarea {
    border-color: #b8bdc2 !important;
}

body.dark-only .theme-form input[type=date],
body.dark-only .theme-form input[type=datetime-local],
body.dark-only .theme-form input[type=email],
body.dark-only .theme-form input[type=file],
body.dark-only .theme-form input[type=month],
body.dark-only .theme-form input[type=number],
body.dark-only .theme-form input[type=password],
body.dark-only .theme-form input[type=search],
body.dark-only .theme-form input[type=tel],
body.dark-only .theme-form input[type=text],
body.dark-only .theme-form input[type=time],
body.dark-only .theme-form input[type=url],
body.dark-only .theme-form input[type=week],
body.dark-only .theme-form select,
body.dark-only .theme-form textarea {
    background-color: 1px solid #575757;
    border: 1px solid #575757 !important;
    color: #fff;
}

.active>.page-link,
.page-link.active {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
}

tr.rowNoElements {
    font-size: 12px;
}

.page-link {
    color: var(--theme-default);
    display: list-item;
    cursor: pointer;
}

span.loadMiga.breadcrumb-item {
    cursor: pointer;
}

button.btn.btn-sm.btn-primary.searchList {
    height: 32px;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 0;
    margin: 0;
}

.loading::before {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid var(--theme-default);
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

.loading::after {
    content: 'Cargando...';
    position: absolute;
    top: 60%;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Variante compacta del indicador de carga */
.loading.loading-compact {
    background: rgba(255, 255, 255, 0.8);
}

.loading.loading-compact::before {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.loading.loading-compact::after {
    font-size: 12px;
    top: 65%;
}

/* Variante sin texto */
.loading.loading-no-text::after {
    display: none;
}

/* Variante con efecto de pulso */
.loading.loading-pulse::before {
    animation: loading-pulse 1.5s ease-in-out infinite;
    border: none;
    background: #007bff;
}

@keyframes loading-pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.8);
        opacity: 1;
    }
}

.numberData {
    text-wrap: nowrap;
    text-align: right !important;
}

.table-hover tbody tr:hover {
    background-color: rgb(154 154 154 / 0%);
}

form .card {
    border-color: #727c8680;
}

body.dark-only .page-wrapper .page-body-wrapper .page-body .card:not(.email-body) {
    border: 1px solid #575757 !important;
}

.table-responsive {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

table {
    font-size: 12px;
}

body.dark-only .page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu li a.active {
    color: var(--theme-default);
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu li a.active {
    color: var(--theme-default);
}

.listActions .iconDelete,
.de_delete {
    color: #b14c4c;
}

.listActions .iconEdit {
    color: #a29ac9;
}

.listActions .verHistorial {
    color: #6fa16f;
}

h3.screen-title {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 16px;
}

.error-required {
    background-color: #FF917D !important;
}

body.dark-only .error-required {
    background-color: #FF917D !important;
}

.logo-wrapper img {
    width: 80%;
    margin-left: 10%;
    margin-top: 5px;
}

.form-control {
    padding: 3px 8px !important;
    min-width: max-content;
    font-size: 12px;
}

.filters form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
}

.dark-only .pagination {
    background-color: transparent;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #575757;
}

.dark-only .page-link {
    color: hsla(0, 0%, 100%, 0.8);
    display: list-item;
    cursor: pointer;
}

.dark-only .active>.page-link,
.page-link.active {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
}

.dark-only .loading {
    background: rgba(24, 24, 24, 0.9);
}

.dark-only .loading::before {
    border: 4px solid #333333;
    border-top: 4px solid var(--theme-default);
}

.dark-only .loading::after {
    color: #ffffff;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: 1px solid var(--theme-secondary);
    background: var(--theme-default);
    font-weight: normal;
    color: white;
}

.dark-only .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgb(141 141 141 / 20%);
    --bs-table-accent-bg: unset;
}

.logo-wrapper {
    border-right: 0px !important;
}

.small-box .icon {
    color: rgba(0, 0, 0, .15);
    z-index: 0;
}

.small-box .icon>i {
    font-size: 70px;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: all .3s linear;
    opacity: 0.5;
}

.small-box {
    border-radius: .25rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    display: block;
    margin-bottom: 20px;
    position: relative;
    padding: 12px;
}

.small-box.bg-theme {
    background-color: #cdcdcd;
}

.dark-only .small-box.bg-theme {
    background-color: #313131;
}

.form-grids .card-header {
    display: none;
}

button.btn {
    white-space: nowrap;
}

.dark-only .page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item {
    color: var(--theme-default);
}

.dark-only .page-wrapper .page-body-wrapper .page-title .breadcrumb .breadcrumb-item+.breadcrumb-item:before {
    color: var(--theme-default);
}

.page-wrapper .page-header .header-wrapper {
    box-shadow: 0px -5px 15px var(--theme-secondary);
}

.panelRapido {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.panelRapido button {
    font-size: 12px;
    padding: 0.3rem 1rem;
}

.sidebar-links .sidebar-title i {
    margin-top: 2px !important;
    margin-left: -4px;
    color: var(--theme-secondary);
}

.table td {
    padding: 0.5rem;
}

/* .table th {
    padding: 1rem;
} */

thead {
    background-color: #efefefad;
    white-space: nowrap;
    border-left: 1px solid #fa5619;
    border-right: 1px solid #fa5619;
}

.dark-only thead {
    background-color: #5364ae38;
    white-space: nowrap;
    border-left: 1px solid;
    border-right: 1px solid;
}

.card.table-responsive thead {
    border-top: 10px solid #ffffff;
}

.dark-only .card.table-responsive thead {
    border-top: 10px solid #171818 !important;
}

.responsive_hide {
    display: block;
}

.responsive_show {
    display: none !important;
}

.listActions span {
    cursor: pointer;
}

.p-10 {
    padding: 10px !important;
}

.dropify-render {
    display: flex;
    justify-content: center;
    align-items: center;
}

input[name="color_nombre"] {
    text-transform: uppercase !important;
}

input[name="tipoOperacion_nombre"] {
    text-transform: uppercase !important;
}

.nowrap {
    white-space: nowrap !important;
}

div#telefonos_contenedor span {
    margin-right: 10px;
    padding: 8px;
    font-size: 16px !important;
    border: 2px solid var(--theme-secondary);
    background-color: #f3f0e7;
    color: black;
}

:root {
    --icon-tab-color: var(--theme-secondary) !important;
}

:root.dark-only {
    --icon-tab-color: var(--theme-default);
}

.icon-tab {
    font-size: 19px;
    color: var(--icon-tab-color);
    margin-right: 5px;
    transition: color 0.3s ease;
}

.fa-trash {
    color: #d35e5e !important;
}

.form-check-input {
    margin-left: -0.5rem !important;
}

.form-switch .form-check-input {
    height: 18px;
    width: 40px;
    margin-left: 15px !important;
}

@media (max-width: 768px) {

    .div_stock_in {
        display: block !important;
    }

    .auto_stock_in {
        min-width: 100% !important;
        margin-right: 0;
    }

    .responsive_hide {
        display: none !important;
    }

    .responsive_hide_contents {
        display: none !important;
    }

    .responsive_show {
        display: block !important;
    }

    .responsive_show_contents {
        display: contents !important;
    }

    .responsive_hide_td {
        display: none !important;
    }

    .responsive_show_td {
        display: table-cell !important;
    }

    .container-fluid.main {
        padding-left: 10;
        padding-right: 10;
        padding-bottom: 0;
    }

    td.listActions {
        padding-right: 10px;
        justify-items: right;
        min-width: auto !important;
    }

    span.title_hide {
        display: none;
    }

    td.listActions span {
        display: table-cell;
        padding-right: 10px;

    }

    .control-label {
        width: 100%;
        display: flex;
    }

    .form-body .mb-3 row {
        text-align: center;
        display: flow;
    }

    .form-body .col-md-10.hidden-xs.hidden-sm {
        width: 100% !important;
    }

    td.listActions .fa {
        font-size: 6vw !important;
    }

    .filters .row {
        width: 100%;
    }

    .summary-card .summary-progressbar ul li {
        padding: 10 !important;
        margin-right: 0;
        border: 1px solid var(--theme-default) !important;
    }

}

.dark-only .dropify-wrapper .dropify-preview,
.dark-only .dropify-wrapper,
.dark-only div#telefonos_contenedor span {
    background-color: var(--theme-default);
}

body.dark-only .form-check-input,
body.dark-only .icon-lists div:hover {
    background-color: var(--theme-default);
}

.dark-only input.form-control.ui-autocomplete-input {
    border: 1px solid #575757 !important;
    background-color: var(--theme-default) !important;
    border-color: var(--theme-secondary) !important;
}

.dark-only select.form-control {
    border-color: var(--theme-secondary) !important;
}

/* Hace que el div ocupe solo lo necesario */
.checkbox-inline.form-switch {
    display: inline-flex;
    padding: 0;
    margin: 0;
    width: fit-content;
}

.checkbox-inline.form-switch .form-check-input {
    margin: 0;
}

select.form-control,
textarea.form-control,
input.form-control {
    border-color: var(--theme-secondary) !important;
}

.input-con-color {
    background-repeat: no-repeat !important;
    background-position: 4px center !important;
    background-size: 12px 12px !important;
    padding-left: 24px !important;
}

.small-box {
    background-color: white;
}

.dark-only .small-box {
    background-color: transparent;
    box-shadow: 0 0 1px rgb(255 255 255 / 92%), 0 1px 3px rgb(255 255 255 / 31%);
}

.contentSquare {
    padding: 5px 15px;
    border: 1px solid;
    width: fit-content;
    white-space: nowrap;
    margin-top: 10px;
    border-radius: 5px;
    background-color: #f3f3f3;
}

.control-label {
    white-space: nowrap;
    text-align: right;
}

.equivalencia_monto {
    margin: 5px;
}

.form-control:disabled {
    background-color: var(--bs-secondary-bg) !important;
    opacity: 1;
}

.mt-5 {
    margin-top: 5px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.ml-20 {
    margin-left: 20px !important;
}

.page:not(:last-child) {
    page-break-after: always;
}

@media (max-width: 768px) {
    .modal-footer button {
        margin: 10px !important;
    }
}

.btn-theme-default {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
    color: white;
}

.btn-theme-default:hover {
    background-color: #6f717d;
}

.btn-theme-secondary {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    color: white;
}

.btn-theme-secondary:hover {
    background-color: #1b234f;
    color: white;
}

.card-sensor {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbcbcb;
    border-bottom: 3px solid #0069b4a1;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 100%;
    max-width: 200px;
    height: 200;
    cursor: pointer;
}

/* General Icon Styles */
.card-sensor .sensor-icon {
    /* Applies to most icons */
    font-size: 2.25rem;
    color: #4b5563;
    /* Default icon color */
}

.card-sensor .value-display {
    font-weight: 600;
    /* font-semibold */
    font-size: 1.5rem;
    /* text-3xl, smaller */
    color: #4b5563;
    /* text-gray-700 */
    font-variant-numeric: tabular-nums;
    /* tabular-nums */
    margin-top: 0.25rem;
    /* Added margin for spacing */
}

button.btn.btn-secondary.campoButton {
    justify-items: center;
    display: flex;
}

.card-sensor:hover {
    transform: translateY(-2px);
    cursor: pointer;
    border-color: #dcdcdc;
    /* blue-500 on hover */
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.15), 0 3px 6px -1px rgba(0, 0, 0, 0.08);
}

.card-sensor .card-header {
    padding-bottom: 0.25rem;
    display: block !important;
    /* pb-1, smaller */
}

.card-sensor .card-title {
    font-size: 1rem;
    /* text-xl, smaller */
    font-weight: 600;
    /* font-semibold */
    color: #4b5563;
    /* text-gray-700 */
}

.card-sensor .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Added padding for better spacing */
}

.contenedor-sensores .col-panel {
    padding: 10px;
    justify-items: anchor-center;
}

.sensor-data {
    font-size: 12px;
}

.forms h3 {
    font-size: 16px;
}

.value-display.icon-conteiner {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid grey;
}

.dark-only .card-sensor {
    background-color: #4b4b4b;
    box-shadow: 0 3px 0 0 #6c656552;
}

.dark-only .card-sensor .card-title {
    color: #ced4dd;
}

.dark-only .card-sensor .value-display {
    color: #f9f9f9;
}

.dark-only #map_container {
    background-color: #212121;
}

.dark-only #map {
    filter: brightness(0.8) contrast(1.2);
}

.dark-only .campoButton {
    background-color: #2c2c2c !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.dark-only .campoButton:hover {
    background-color: #404040 !important;
    border-color: #606060 !important;
}

.dark-only .campoButtonTodos {
    background-color: #1e4d2b !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.dark-only .campoButtonTodos:hover {
    background-color: #28a745 !important;
    border-color: #2ea043 !important;
}

.dark-only #panel-sensores {
    background-color: #1a1a1a;
}

.dark-only #toggle-panel {
    background-color: #2c2c2c !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.dark-only #toggle-panel:hover {
    background-color: #404040 !important;
    border-color: #606060 !important;
}

.switch-label {
    margin-left: 10px !important;
}

.row.cabeceraRepuesto,
.row.cabeceraVariable {
    text-align: center;
    padding: 5px 10px 0 10px;
    background: #a02d31;
    margin-bottom: 10px;
    color: white;
    white-space: nowrap;
}

@media (max-width: 564px) {

    .row.cabeceraVariable,
    .contentObservaciones,
    .row.cabeceraRepuesto {
        display: none;
    }
}

.rowTable {
    border-bottom: 1px #1a1a1a63 solid;
    margin-top: 10px;
}

.rowTable .iconDelete {
    margin-left: 10px;
    cursor: pointer;
}



.iconDeleteImagen {
    display: inline-block;
}


.iconDeleteImagen::after {
    content: '';
}

.badge {
    font-size: 12px;
}

/* Media query para móviles (ejemplo: ancho máximo 768px) */
@media (max-width: 768px) {
    .iconDeleteImagen {
        display: inline-block;
        /* aún ocupa espacio */
        position: relative;
        width: auto;
        height: auto;
        font-size: 0;
        /* ocultamos el ícono font-awesome */
        font-family: inherit !important;
        font-weight: normal;
        margin-top: 10px;
    }

    .iconDeleteImagen::after {
        content: "Eliminar imágen";
        /* Texto del botón */
        display: inline-block;
        font-size: 14px;
        /* tamaño del texto */
        padding: 6px 10px;
        margin-top: 2px;
        background-color: var(--theme-secondary) !important;
        /* rojo estilo bootstrap */
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        font-family: inherit !important;
        font-weight: normal;
    }

    .iconDeleteArchivo {
        display: inline-block;
        /* aún ocupa espacio */
        position: relative;
        width: auto;
        height: auto;
        font-size: 0;
        /* ocultamos el ícono font-awesome */
        font-family: inherit !important;
        font-weight: normal;
        margin-top: 10px;
    }

    .iconDeleteArchivo::after {
        content: "Eliminar archivo";
        /* Texto del botón */
        display: inline-block;
        font-size: 14px;
        /* tamaño del texto */
        padding: 6px 10px;
        margin-top: 2px;
        background-color: var(--theme-secondary) !important;
        /* rojo estilo bootstrap */
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        font-family: inherit !important;
        font-weight: normal;
    }

    .iconDeleteRepuesto {
        display: inline-block;
        /* aún ocupa espacio */
        position: relative;
        width: auto;
        height: auto;
        font-size: 0;
        /* ocultamos el ícono font-awesome */
        font-family: inherit !important;
        font-weight: normal;
    }

    .iconDeleteRepuesto::after {
        content: "Eliminar repuesto";
        /* Texto del botón */
        display: inline-block;
        font-size: 14px;
        /* tamaño del texto */
        padding: 6px 10px;
        margin-top: 2px;
        background-color: var(--theme-secondary) !important;
        /* rojo estilo bootstrap */
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        font-family: inherit !important;
        font-weight: normal;
    }

    #imagenesContainer .listActions,
    #filesContainer .listActions {
        text-align: center;
    }

    select.form-control.tipovalor {
        font-size: 12px !important;
    }
}

div#variablesDinamicas_contenedor span {
    margin-right: 10px;
    padding: 8px;
    font-size: 16px !important;
    border: 2px solid var(--theme-secondary);
    background-color: #f3f0e7;
    color: black;
}

.divFooter {
    text-align: center !important;
}

.ui-autocomplete {
    z-index: 20000 !important;
    background: #fff;
}

.page-wrapper .page-header .header-wrapper .search-full .form-group input {
    background-color: #f5f5f5;
    color: #1f2f3e;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 1.4;
    padding: 5px 0 5px 25px;
    width: 100% !important;
    border: 1px solid;
    border-color: var(--theme-default);
}

.page-wrapper .page-body-wrapper .page-title {
    background-color: #fff;
    margin: 0 -27px 30px;
    padding: 12px 20px 5px;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    min-height: calc(100vh - 140px);
}

.simplebar-mask {
    top: 170px;
}

.page-wrapper .page-body-wrapper .page-title {
    background: linear-gradient(45deg, #c3edbc, #fffdfd);
}

.toggle-sidebar svg {
    stroke: #fb8c1a;
}

.input-group-text {
    padding: 0 .5rem;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu li a {
    font-size: 13px;
    margin-left: -20px;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-submenu li a:hover {
    margin-left: -18px !important;
    background-color: #c4edbe61;
}

.login-card .login-main {
    box-shadow: 0 0 37px rgb(64 54 144);
}

div#content {
    color: black;
}

body.dark-only .modal-content .table td {
    color: var(--theme-default);
}

body.dark-only .modal-content .table span {
    color: #30e420 !important;
    font-weight: bold !important;
}

body.dark-only .page-wrapper .page-body-wrapper .page-title {
    background: linear-gradient(45deg, rgb(55 71 58), rgb(5, 0, 0));
}

body.dark-only .page-wrapper .page-body-wrapper .page-title .row h3 {
    color: #b3b3b3;
}

.de_delete {
    cursor: pointer !important;
}

/* Chat flotante con choferes */
#chat-chofer-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 30000;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
}

.chat-chofer-window {
    width: 320px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    overflow: hidden;
}

.chat-chofer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px !important;
    background-color: var(--theme-secondary) !important;
    color: #fff;
}

.chat-chofer-header .chat-chofer-title {
    font-size: 13px !important;
    font-weight: 600;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-chofer-header .chat-chofer-title i {
    font-size: 15px;
    opacity: 0.9;
}

.chat-chofer-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
    padding: 0;
    line-height: 1;
}

.chat-chofer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-chofer-close i {
    margin: 0;
}

.chat-chofer-body {
    padding: 6px 8px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #383838;
}

body.dark-only .chat-chofer-body {
    background-color: #171717 !important;
}

.chat-chofer-pasaje {
    font-size: 11px;
}

.chat-chofer-mensajes {
    flex: 1;
    overflow-y: scroll;
    margin-top: 4px;
    padding-right: 4px;
    max-height: 28vh;
}

.chat-chofer-footer {
    padding: 6px 8px !important;
}

body.dark-only .chat-chofer-footer {
    background-color: #232b23 !important;
}

.chat-chofer-input {
    resize: none;
    font-size: 12px !important;
}

.chat-chofer-msg {
    margin-bottom: 6px;
    max-width: 90%;
    clear: both;
    font-size: 12px;
}

.chat-chofer-msg-text {
    padding: 5px 8px;
    border-radius: 10px;
    word-break: break-word;
}

.chat-chofer-msg-fecha {
    font-size: 10px;
    color: #777;
    margin-top: 1px;
}

.chat-chofer-msg-operador {
    margin-left: auto;
    text-align: right;
}

.chat-chofer-msg-operador .chat-chofer-msg-text {
    background-color: var(--theme-default);
    color: #fff;
}

.chat-chofer-msg-chofer {
    margin-right: auto;
    text-align: left;
}

.chat-chofer-msg-chofer .chat-chofer-msg-text {
    background-color: #e4e7ec;
}

body.dark-only .chat-chofer-msg-chofer .chat-chofer-msg-text {
    background-color: #2c2c2c;
    color: #fff;
}

@media (max-width: 768px) {
    #chat-chofer-container {
        left: 0;
        right: 0;
        bottom: 0;
        justify-content: center;
    }

    .chat-chofer-window {
        width: 95%;
        max-height: 70vh;
    }
}