﻿html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}


/* Sidebar */
.sidebar {
    min-height: 100vh;
    background-color: #212529;
}

    .sidebar a {
        color: #adb5bd;
        text-decoration: none;
        padding: 10px;
        display: block;
        border-radius: 5px;
    }

        .sidebar a:hover {
            background-color: #343a40;
            color: #fff;
        }

/* Footer */
footer {
    background-color: #212529;
    color: white;
    padding: 15px 0;
    text-align: center;
}



.sidebar a,
.offcanvas-body a {
    display: block;
    padding: 8px;
    color: white;
    text-decoration: none;
}

    .sidebar a.active,
    .offcanvas-body a.active {
        background-color: #0d6efd;
        border-radius: 5px;
    }


.admin-card {
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

    .admin-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        background: #f8f9fa;
    }

.admin-panel {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-header {
    height: 40px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .logo-header {
        height: 55px;
    }
}

@media (max-width: 767px) {
    .logo-header {
        height: 35px;
    }
}



/*Calendario*/

.flatpickr-day.boleta-libranza {
    background-color: #adb5bd !important;
    color: white !important;
}

    .flatpickr-day.boleta-libranza::after {
        content: "";
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: white;
    }

.flatpickr-day.boleta-pendiente {
    background-color: #d9841b !important;
    color: white !important;
}

.flatpickr-day.boleta-pendiente::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.flatpickr-day.boleta-validada {
    background-color: #28a745 !important;
    color: white !important;
}

.flatpickr-day.boleta-validada::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.flatpickr-day.boleta-incidente {
    background-color: #2a2828 !important;
    color: white !important;
}

    .flatpickr-day.boleta-incidente::after {
        content: "";
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: white;
    }


/*LEYENDA PARA EL CALENDARIO*/
/* Leyenda de calendario */
#leyendaCalendario {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

    #leyendaCalendario .leyenda-item {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    #leyendaCalendario .leyenda-color {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: inline-block;
        position: relative;
    }

    /* Colores idénticos a los días del calendario */
    #leyendaCalendario .boleta-validada {
        background-color: #28a745;
    }

    #leyendaCalendario .boleta-pendiente {
        background-color: #d9841b;
    }

    #leyendaCalendario .boleta-libranza {
        background-color: #adb5bd;
    }

    #leyendaCalendario .boleta-incidente {
        background-color: #2a2828;
    }

   /* TOAST param Mensajes*/
#appToast {
    min-width: 300px;
    max-width: 500px;
    font-size: 1rem;
    border-radius: 10px;
}

/* ESTILOS PARA READ ONLY */
input[readonly],
textarea[readonly],
select[disabled],
input:disabled {
    background-color: #e9ecef !important;
    opacity: 1;
    cursor: not-allowed;
}