/* Glocbal loader */
#global-loader {
    position: fixed; /* Posición fija en la pantalla */
    z-index: 50000; /* Z-index para asegurar que esté por encima de otros elementos */
    background: #fff; /* Fondo blanco */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%; /* Altura completa */
    width: 100%; /* Anchura completa */
    margin: 0 auto; /* Centrado horizontal */
    text-align: center; /* Alineación del texto */
}

.loader-img {
    position: absolute; /* Posición absoluta */
    right: 0;
    bottom: 0;
    top: 43%; /* Centrado vertical aproximado */
    left: 0;
    margin: 0 auto; /* Centrado horizontal */
    text-align: center; /* Alineación del texto */
}

/* tooltip */
[data-tooltip-text] {
    position: relative;
}

[data-tooltip-text]:hover::after {
    content: attr(data-tooltip-text);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1000;
    padding: 5px;
    border-radius: 5px;
    background-color: var(--tooltip-bg, black);
    color: white;
    font-size: 12px;
    visibility: visible;
    opacity: 0.7;
}

[data-tooltip-color="danger"]::after {
    --tooltip-bg: #ea5455;
}

[data-tooltip-color="primary"]::after {
    --tooltip-bg: #000000;
}

[data-tooltip-color="success"]::after {
    --tooltip-bg: #8f5ce3;
}

[data-tooltip-color="warning"]::after {
    --tooltip-bg: #ff9f43;
}

[data-tooltip-color="info"]::after {
    --tooltip-bg: #00cfe8;
}

[data-tooltip-color="dark"]::after {
    --tooltip-bg: #4b4b4b;
}

[data-tooltip-color="light"]::after {
    --tooltip-bg: #dfdfe3;
}

[data-tooltip-color="secondary"]::after {
    --tooltip-bg: #a8aaae;
}

/* Para todos los iconos Tabler */
.ti {
    font-size: 1.25rem; /* o el tamaño que consideres adecuado */
}

/* Si solo quieres ajustar los pequeños (ti-sm) */
.ti-sm {
    font-size: 1.25rem;
}

/* Estilos para formulario de empresas */
/* Transiciones suaves para estados de campos */
.form-control,
.form-select {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Badge sutil en labels */
.form-label .badge {
    font-weight: 400;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    vertical-align: middle;
    opacity: 0.85;
}

.form-label .badge i {
    font-size: 0.7rem;
}

/* Alert personalizado */
.alert-info {
    background-color: rgba(0, 207, 232, 0.08);
    border-color: rgba(0, 207, 232, 0.2);
}

/* Botón de limpiar búsqueda */
#clearSearchBtn {
    transition: all 0.2s ease;
}

#clearSearchBtn:hover {
    transform: rotate(90deg);
}

/* Prefijo de teléfono con mejor diseño */
.input-group-text:has(.ti-brand-whatsapp) {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
}

/* Prefijo +51 */
.input-group-text {
    font-weight: 500;
    min-width: 50px;
    justify-content: center;
}
