﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-inline: 15px; /* evita choque lateral sin repetir propiedades */
    min-height: calc(100vh - 80px); /* compensación por navbar + footer */
}


/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
    word-break: break-word; /* evita desbordes en términos largos */
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}


html, body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


.login-wrapper {
    height: calc(100vh - 56px); /* ajusta según navbar real */
    display: flex;
    justify-content: center;
    padding-top: 60px;
}

.login-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


.reducido-90 {
    width: 90%;
    max-width: 90%;
}

.contenido-full {
    margin-left: 0 !important;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.dropdown-menu {
    min-width: 200px;
}

.menu-lateral {
    max-width: 250px;
    min-width: 220px;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}


.canvas-reducido {
    max-height: 200px;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}


.pulse-avance {
    animation: pulse 0.8s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


td {
    vertical-align: top;
    background-color: #f9f9f9;
}

    td:hover {
        background-color: #e6f7ff;
    }


.estado-verde {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.estado-rojo {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
}

.estado-amarillo {
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
}

.table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 2;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
}

.resumen {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    max-height: 70vh;
    overflow-y: auto;
}

.tabla {
    max-height: 70vh;
    overflow-y: auto;
    background-color: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

.sticky-header th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 2;
}

body.modal-open {
    overflow: auto !important;
}

.sticky-header th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 5;
}

.selectable-badge {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .selectable-badge.active {
        box-shadow: 0 0 8px rgba(0,0,0,0.3);
        transform: scale(1.05);
        font-weight: bold;
    }
