/* ============================================================
   ESTILOS BASE (GLOBAL)
   ============================================================ */

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none !important;
}

.rounded,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
    border-radius: 8px !important;
}

.rounded-start,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.rounded-end,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.rounded-top,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.rounded-bottom,
.bootstrap-tagsinput,
.bootstrap-tagsinput>.badge {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.backgroundImage {
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* ============================================================
   SWITCHES GLOBALES
   ============================================================ */

.form-check-input:not(.switch-grande):not(#estatusSwitch) {
    width: 1.2em !important;
    height: 1.2em !important;
}

.form-check-input:active,
.form-check-input:focus,
.btn {
    outline: 0 !important;
    box-shadow: none !important;
}

/* ============================================================
   TABLAS GLOBALES
   ============================================================ */

.list-group-item {
    border: 0px !important;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable .sort-icon {
    margin-left: 6px;
    font-size: 0.8rem;
    opacity: 0.5;
}

th.sortable.asc .sort-icon::after {
    content: "▲";
}

th.sortable.desc .sort-icon::after {
    content: "▼";
}

/* ============================================================
   ETIQUETAS PREMIUM (GLOBAL)
   ============================================================ */

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    color: white;
}

.status-abierto {
    background-color: #28a745;
}

.status-cerrado {
    background-color: #dc3545;
}

.is-invalid {
    border: 2px solid #dc3545 !important;
    background-color: #ffe6e6 !important;
}

.icon-admin {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;   /* 🔥 clave para centrar */
    margin-right: 8px;
}


/* ============================================================
   AJUSTES SOLO PARA MÓVIL — PLANTILLA listado-header
   ============================================================ */
@media (max-width: 576px) {

    /* Alineación correcta del select */
    .listado-row {
        align-items: flex-start !important;
    }

    /* Separación entre select y botones */
    .listado-row select {
        margin-bottom: 12px !important;
    }

    /* Botones PDF/Excel lado a lado */
    .listado-btn-wrapper {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .btn-pdf,
    .btn-excel {
        width: 45% !important;
        font-size: 0.8rem !important;
        padding: 6px 0 !important;
        text-align: center !important;
    }

    /* Columnas del select y botones ocupan 100% en móvil */
    .listado-row > .col-3,
    .listado-row > .col-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Ancho visual ideal del card en móvil (85%) */
    .col-6.mx-auto {
        width: 85% !important;
        max-width: 85% !important;
    }
}
