/** ESTILOS GENERALES **/
html, body{
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ddd;
    display: flex;
    flex-direction: column;
}

/** HEADER **/
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0px;
}

header a {
    text-decoration: none;
    color: white;
}

.contenedor-botones {
    width: 100px;
}

.icono-menu {
    background: none;
    border: none;
    color: black;
    text-decoration: none;
}

.icono-menu:hover {
    color: white;
}

#titulos-menu {
    flex: auto;
}

#titulos-menu img {
    width: 48px;
}

#titulos-menu h1 {
    margin: 0px;
}

.dropdown-menu{
    border: none;
    border-radius: 0;
}
.dropdown-menu li a:hover{
    background-color: #6ca3d8;
    color: white;
}

.dropdown-item.active {
    background-color: #f26b2b;
    color: white;
}

/** CONTENT **/
.content {
    flex: 1;
    /* TODO: activar para que se vea siempre header y footer */
    /* overflow: auto; */
}

/** FOOTER **/
footer {
    height: 30px;
    text-align: center;
    bottom: 0;
}

footer p {
    margin: 0;
}

/** COLORES **/
.bg-corporativo-1 {
    background-color: #6ca3d8 !important;
}
.color-corporativo-1 {
    color: #6ca3d8 !important;
}
.bg-corporativo-2 {
    background-color: #f26b2b !important;
}
.color-corporativo-2 {
    color: #f26b2b !important;
}
.bg-corporativo-3 {
    background-color: #5a4a42 !important;
}
.color-corporativo-3 {
    color: #5a4a42 !important;
}

header, footer {
    /* background-color: #333; */
    background-color: #3a6b9b;
    color: #fff;
}

/** FORMULARIOS **/
.form-label {
    width: 100%;
    text-align: start;
}

/** TABLAS **/
table tr:hover td {
    background-color: #6ca3d8;
    color: white;
    cursor: pointer;
}

table th, table td {
    text-align: center !important;
}

#dt-length-0, #dt-search-0 {
    background-color: white;
}

.dt-paging-button {
    background-image: none !important;
    border: none !important;
}

.dt-paging-button:hover {
    background-color: #0d6efd !important;
    color: white !important;
}

.table-responsive .current {
    background-color: #6ca3d8 !important;
    color: white !important;
}

/* TODO: ESTO ES PARA QUE LAS CELDAS OCUPEN 1 FILA SOLO. */
/* table td { */
#empleados td {
    white-space: nowrap !important;
}

/** DASHBOARD **/
.card:hover {
    background-color: #6ca3d8;
    transition: background-color 0.3s ease;
    color: white;
}

.card:hover i, .card:hover h5 {
    transform: scale(1.25);
}

.card i {
    font-size: 50px;
}

.cursor-pointer {
    cursor: pointer;
}

/** FIRMA **/
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

canvas {
    border: 1px solid #000;
    width: 100%;
    height: 300px;
    touch-action: none;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 25%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.05) 75%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0) 100%);
    background-size: 12.00px 12.00px;
}

.controls {
    margin-top: 20px;
}

/** FICHAJES **/
.turno-hoy tr:hover td {
    background-color: inherit;
    color: inherit;
    cursor: inherit;
}


.turno-hoy {
    border-collapse: separate;
    border-spacing: 20px 10px;
}

.turno-hoy tr {
    border-bottom: 1px solid;
}

/** NOMINAS **/
.nomina-visualizar {
    color: black;
    text-decoration: none;
}
.nomina-visualizar:hover {
    color: blue;
}

.download:hover {
    color: red;
    cursor: pointer
}

.quitar-filtro {
    display: flex;
    width: 21px;
    height: 21px;
    justify-content: center;
    align-items: center;
    margin-left: 4px;
}

/* #mes-filter, #mes-ini-filter, #mes-fin-filter {
    width: 45px;
} */

/** CUADRANTES **/
#calendar table tr:hover td {
    background-color: transparent !important;
    color: inherit !important;
    cursor: inherit !important;
}
#calendar .fc-day {
    border: 1px solid #6ca3d8 !important;
}
#calendar .fc-widget-content:hover {
    cursor: pointer !important;
}
#calendar table tr:hover .fc-today {
    background-color: #96c6f4 !important;
}
#calendar .fc-today {
    background-color: #96c6f4 !important;
}
#calendar .fc-right {
    display: none;
}
/* #calendar .fc-day-grid-event {
    background-color: red !important;
} */
/* #calendar .fc-state-hover { */
    /* background-position: inherit !important; */
/* } */
/* #calendar .fc-event-container, #calendar .fc-content {
    background-color: red !important;
} */

/** PERMISOS **/
.contenedor-permisos {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.boton-toggle {
    width: 100%;
    background-color: #007BFF;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boton-toggle:hover {
    background-color: #0056b3;
}

.contenido-permisos {
    padding: 0.75rem 1rem;
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
    }
}
@media (min-width: 768px) {
    .scrollable-content {
        height: 400px !important;
        overflow-y: auto;
    }
}
