﻿
html, body {
    font-size: 0.88rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-bloqueado {
    pointer-events: none; /* ❌ No se puede interactuar */
    opacity: 0.85; /* 🔸 Se ve deshabilitado */
}

body {
    margin: 0;
    padding-top: 80px; /* header fijo */
    padding-bottom: 70px; /* footer fijo */
    padding-right: 0px !important;
}

#imgMenu2 {
    height: 50px;
}

.principal-contenedor {
    margin: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    vertical-align: middle;
    width: 18rem;
    height: 15rem;
    text-decoration: none;
    color: #808080;
}

.principal-contenedor:hover {
    text-decoration: none;
    background-color: #f8f9fa;
    color: black;
}

.text-danger-icon {
    color: red;
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1;
}

.mov-icono:hover {
    animation: fa-beat-fade 1s infinite;
}

.background-body {
    /*background-image: url("../../assets/img/FondoMundial.jpg");*/
    /*background-image: url("../../assets/img/FondoMundial2.jpg");*/
    background-image: url("../../assets/img/FondoMundial3.jpg");
    /*background-image: url("../../assets/img/FondoMundial4.jpg");*/
    background-size: 100% 100%; /* 🔥 ESTIRA la imagen */
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* 📱 SOLO EN CELULAR */
@media (max-width: 768px) {
    .background-body {
        background-size: cover;
        background-position: left center; /* 🔥 clave */
        background-repeat: no-repeat;
    }
}

.background-body.desarrollo {
    /*background-image: url("../../assets/img/FondoMundial.jpg");*/
    /*background-image: url("../../assets/img/FondoMundial2.jpg");*/
    background-image: url("../../assets/img/FondoMundial3.jpg");
    /*background-image: url("../../assets/img/FondoMundial4.jpg");*/
}


footer {
    border-top: 10px ridge #aaa5a5 !important;
    overflow: hidden;
    font-size: 0.85rem;
}

footer.background-footer-test {
    border-top: 10px ridge #ff6a00 !important;
}

footer > div {
    padding-top: 0.5rem;
}

.footer-fix {
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;
    z-index: 1030;
}

.background-footer {
    color: white;
    background-color: #111111;
    border-top-color: #aaa5a5;
    background: black;
    background: -webkit-linear-gradient(left, black, #393938);
    background: -o-linear-gradient(right, black, #393938);
    background: -moz-linear-gradient(right, black, #393938);
    background: linear-gradient(to right, black, #393938);
}

.my-navbar-top .nav-link {
    font-size: 0.85rem;
    line-height: 1.1;
    padding-top: 4px;
    padding-bottom: 4px;
}

.modal-sel-emp .modal-header {
    background: #f5f5f5;
}

.modal-sel-emp .modal-footer {
    background: #f5f5f5;
}

table thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: bold;
    color: #000;
    /*background-color: #dddddd !important;*/
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    vertical-align: middle;
    white-space: nowrap;
}

tr.cancelada {
    position: relative;
}

tr.cancelada::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient( 
        135deg, 
        rgba(0,0,0,0.05) 0px, 
        rgba(0,0,0,0.05) 2px, 
        transparent 2px, 
        transparent 4px );
    pointer-events: none;
}

tr.cancelada td {
    color: #6c757d;
}

tr.cancelada:hover {
    cursor: not-allowed;
}

.table-hover tbody tr.cancelada:hover > th,
.table-hover tbody tr.cancelada:hover > td {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* links de ordenamiento en headers */

.ordenar {
    text-decoration: none;
    font-weight: 500;
    transition: all .15s ease;
}

/* hover o focus */

.ordenar:hover,
.ordenar:focus {
    text-decoration: none;
    color: #0d6efd !important; /* azul bootstrap */
    font-weight: 700;
    font-size: 1.05em;
}

/* evitar subrayado del navegador */

.ordenar:active {
    text-decoration: none;
}

.ordenar i {
    font-size: 0.8em;
}

/* enlaces de paginación */
.table-footer-pagination .pagination li a {
    border-radius: 0; /* todos planos por defecto */
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    color: #495057;
    text-decoration: none;
    display: inline-block;
}

/* primer botón (esquina izquierda redondeada) */
.table-footer-pagination .pagination li:first-child a {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

/* último botón (esquina derecha redondeada) */
.table-footer-pagination .pagination li:last-child a {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* estado activo */
.table-footer-pagination .pagination li.active a {
    background: #343a40;
    border-color: #343a40;
    color: white;
}

/* hover SOLO si NO es activo */
.table-footer-pagination .pagination li:not(.active) a:hover {
    background: #f1f3f5;
}

/* Quitar solo la línea del footer de la tabla */
.table-footer td {
    border-bottom: none !important;
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mov-icono:hover {
    animation: fa-beat-fade 1s infinite;
}

/*.switch-custom .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.switch-custom .form-check-input:not(:disabled):active {
    background-color: #1de34b70;
    border-color: #1de34b70;
}*/

.switch-custom .form-check-input {
    border-color: #9f9f9f;
}

input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #e9ecef !important;
    opacity: 1;
    /*cursor: not-allowed;*/
}
