:root {
    --color-principal: #270d6d;
    --color-secundario: #f9f9f9;
    --color-principal-default: #60269e;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

body {
    font-family: "Montserrat", sans-serif !important;
}

.texto-principal {
    color: var(--color-principal);
}

.letra-texto {
    color: #343a40;
}

.color-principal-default {
    color: var(--color-principal-default);
}

.fondo-principal {
    background-color: var(--color-principal);
}

.borde-principal {
    border-color: var(--color-principal);
}

.fondo-secundario {
    background-color: var(--color-secundario);
}

.btn-amarillo {
    background-color: #ffea00 !important;
    border-color: #ffea00 !important; /* igual que el fondo */

    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    width: auto;
    min-width: 175px;
    padding: 11px 20px;
    color: var(--color-principal);
    height: auto;
    text-transform: none;
}

/* Estilo de hover (cuando el mouse está sobre el botón) */
.btn-amarillo:not(:disabled)hover {
    background-color: #d8c600 !important;
    color: rgb(0, 0, 0) !important;
}

/* Estilo al hacer clic */
.btn-amarillo:active {
    background-color: #8e7532 !important;
}

.btn-amarillo:hover {
    background-color: #d8c600 !important;
    color: rgb(0, 0, 0) !important;
}

.btn-azul {
    background-color: white !important;
    border-color: #270d6d !important;
    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    width: auto;
    min-width: 175px;
    padding: 11px 20px;
    color: var(--color-principal);
    height: auto;
    text-transform: none;
}

/* Estilo de hover (cuando el mouse está sobre el botón) */
.btn-azul:not(:disabled):hover {
    background-color: var(--color-principal) !important;
    color: white !important;
}

/* Estilo al hacer clic */
.btn-azul:active {
    background-color: #8e7532 !important;
}

.btn-azul-sm {
    min-width: 125px;
    max-width: 125px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}


.btn-azul-fuerte {
    background-color: #005eb7 !important;
    border-color: #005eb7 !important;
    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    width: auto;
    color: white;
    height: auto;
    text-transform: none;
}

.btn-azul-fuerte:not(:disabled):hover {
    background-color: #004d95 !important;
    color: white !important;
}

/* Estilo al hacer clic */
.btn-azul-fuerte:active {
    background-color: #005eb7 !important;
}

.tabla-Sin-acciones {
    width: 100%;
    border-collapse: collapse;
    /* min-width: 800px; */
}

.tabla-Sin-acciones thead th {
    background-color: #170645 !important;
    color: white !important;
    padding: 10px !important;
}

.tabla-Sin-acciones tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
    color: #343a40 !important;
}

.tabla-Sin-acciones tbody tr:nth-child(even) {
    background-color: #dee2e6 !important;
    color: #343a40 !important;
}

.tabla-Sin-acciones td,
.tabla-Sin-acciones th {
    padding: 10px !important;
    min-width: 120px;
}

.tabla-con-acciones {
    width: 100%;
    border-collapse: collapse;
    /* min-width: 800px; */
}
.tabla-con-acciones thead th {
    background-color: #170645 !important;
    color: white !important;
    padding: 10px !important;
}

.tabla-con-acciones tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
    color: #343a40 !important;
}

.tabla-con-acciones tbody tr:nth-child(even) {
    background-color: #dee2e6 !important;
    color: #343a40 !important;
}

.tabla-con-acciones td,
.tabla-Sin-acciones th {
    padding: 10px !important;
    min-width: 120px;
}

.tabla-con-acciones tbody tr:hover {
    background-color: #ffe17e !important;
    color: #343a40 !important;
    cursor: pointer;
}

/* Estilos para el tooltip */
.subtext-margin-mobile[data-tip]:hover::after {
    content: attr(data-tip); /* Muestra el mensaje de error */
    position: absolute;
    background: #ff4d4d; /* Fondo rojo */
    color: white; /* Texto blanco */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Asegurar que el contenedor padre tenga posición relativa */
.subtext-margin-mobile {
    position: relative;
}

@media (max-width: 576px) {
    .btn-amarillo {
        min-width: auto;
    }
    .btn-azul {
        min-width: auto;
    }
}

.tabla-modal {
    width: 100%;
    border-collapse: collapse;
}

.tabla-modal thead th {
    background-color: #170645 !important;
    color: white !important;
    padding: 8px !important;
}

.tabla-modal tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
    color: #343a40 !important;
}

.tabla-modal tbody tr:nth-child(even) {
    background-color: #dee2e6 !important;
    color: #343a40 !important;
}

.tabla-modal td,
.tabla-modal th {
    padding: 8px !important;
    min-width: 100px;
}

.tabla-modal .text-center {
    text-align: center;
}

@media (max-width: 576px) {
    .tabla-modal thead th,
    .tabla-modal td {
        padding: 5px !important;
    }
}

.btn-amarillo-ancho-fijo {
    background-color: #ffea00 !important;
    border-color: #ffea00 !important; /* igual que el fondo */

    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    width: auto;
    padding: 11px 20px;
    color: var(--color-principal);
    height: auto;
    text-transform: none;
}

/* Estilo de hover (cuando el mouse está sobre el botón) */
.btn-amarillo-ancho-fijo:hover {
    background-color: #d8c600 !important;
    color: rgb(0, 0, 0) !important;
}

/* Estilo al hacer clic */
.btn-amarillo-ancho-fijo:active {
    background-color: #8e7532 !important;
}

.btn-azul-ancho-fijo {
    background-color: white !important;
    border-color: #270d6d !important;
    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    width: auto;
    padding: 11px 20px;
    color: var(--color-principal);
    height: auto;
    text-transform: none;
}

/* Estilo de hover (cuando el mouse está sobre el botón) */
.btn-azul-ancho-fijo:not(:disabled):hover {
    background-color: var(--color-principal) !important;
    color: white !important;
}

/* Estilo al hacer clic */
.btn-azul-ancho-fijo:active {
    background-color: #8e7532 !important;
}

.btn-azul-fuerte-ancho-fijo {
    background-color: #005eb7 !important;
    border-color: #005eb7 !important;
    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    width: auto;
    color: white;
    height: auto;
    text-transform: none;
}

.btn-azul-fuerte-ancho-fijo:not(:disabled):hover {
    background-color: #004d95 !important;
    color: white !important;
}

/* Estilo al hacer clic */
.btn-azul-fuerte-ancho-fijo:active {
    background-color: #005eb7 !important;
}

.ui-autocomplete {
    position: absolute;
    z-index: 9999 !important;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    border-radius: 4px;
}

.ui-menu-item-wrapper {
    padding: 8px 10px;
    font-size: 14px;
}

.ui-menu-item-wrapper:hover,
.ui-menu-item-wrapper.ui-state-active {
    background-color: #f8f9fa;
    color: #333333;
}

.no-result {
    color: #ccc;
    pointer-events: none;
}
/* Preload global*/
.show-preload-style {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden-preload-style {
    display: none;
}

/* Estilos para tabla que contiene scroll infinito */
.tabla-scroll-infinite thead th {
    background-color: #170645 !important;
    color: white !important;
    padding: 10px !important;
}

.tabla-scroll-infinite tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
    color: #343a40 !important;
}

.tabla-scroll-infinite tbody tr:nth-child(even) {
    background-color: #dee2e6 !important;
    color: #343a40 !important;
}

.tabla-scroll-infinite tbody tr:hover {
    background-color: #ffe17e !important;
    color: #343a40 !important;
}
/* Estilo para botones deshabilitados */
.btn-amarillo:disabled,
.btn-azul:disabled,
.btn-azul-fuerte:disabled,
.btn-azul-fuerte-ancho-fijo:disabled,
.btn-amarillo-ancho-fijo:disabled {
    opacity: 0.6; /* Opacidad al 60% */
}

.cardDispostivoTablet {
    display: none;
}

.tablaDispositivoDesktop {
    display: block;
}

@media (max-width: 800px) {
    .cardDispostivoTablet {
        display: block;
        overflow-x: hidden;
    }

    .tablaDispositivoDesktop {
        display: none;
    }
}
 

.flex-card-grid {
    display: flex;
    flex-wrap: wrap;
}

.flex-card-grid .col-flex-card {
    position: relative;
    width: 100%;
    padding-right: 15px;
    margin-bottom: 20px;
}

.flex-card-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 576px) {
    .flex-card-grid .col-flex-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.tabla-modal-con-acciones {
    width: 100%;
    border-collapse: collapse;
}

.tabla-modal-con-acciones thead th {
    background-color: #170645 !important;
    color: white !important;
    padding: 8px !important;
}

.tabla-modal-con-acciones tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
    color: #343a40 !important;
}

.tabla-modal-con-acciones tbody tr:nth-child(even) {
    background-color: #dee2e6 !important;
    color: #343a40 !important;
}

/* 🎯 Acción al pasar el mouse */
.tabla-modal-con-acciones tbody tr:hover {
    background-color: #ffe17e !important;
    color: #343a40 !important;
    cursor: pointer;
}

.tabla-modal-con-acciones td,
.tabla-modal-con-acciones th {
    padding: 8px !important;
    min-width: 100px;
}

.tabla-modal-con-acciones .text-center {
    text-align: center;
}

@media (max-width: 576px) {
    .tabla-modal-con-acciones thead th,
    .tabla-modal-con-acciones td {
        padding: 5px !important;
    }
}

.modal [data-tip]::after {
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 90% !important;
    width: max-content !important;
    z-index: 1080 !important;
}

.btn-verde {
    background-color: #0db130 !important;
    border-color: #0db130 !important; /* igual que el fondo */

    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    width: auto;
    min-width: 175px;
    padding: 11px 20px;
    color: white;
    height: auto;
    text-transform: none;
}

.btn-rojo {
    background-color: #ba1919 !important;
    border-color: #ba1919 !important; /* igual que el fondo */

    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    width: auto;
    min-width: 175px;
    padding: 11px 20px;
    color: var(--color-secundario);
    height: auto;
    text-transform: none;
}

.btn-azul-claro {
    background-color: #005EB7 !important;
    border-color: #005EB7 !important;
    display: inline-block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    width: auto;
    min-width: 175px;
    padding: 11px 20px;
    color: var(--color-secundario);
    height: auto;
    text-transform: none;
}

.btn-azul-claro:not(:disabled):hover {
    background-color: #004D95 !important;
    color: var(--color-secundario);
}
