/* Estilos para los botones del administrador */
.control-horario-admin {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;


}

/*enlaces horario admin*/
.control-horario-admin .button{
    width: 300px;
    text-decoration: none;
    transition: box-shadow 0.3s ease; /* Añade una transición suave */
   margin-bottom: 20px;


}
.control-horario-admin .button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombrero cuando el cursor pasa por encima */
    color: inherit; /* Mantiene el color del texto */
}
.control-horario-admin .button {
    margin-right: 10px;
}

/*********************************/





/************************************************/
/* Estilos para la tabla de fichajes */
.control-horario-fichajes-table {
    width: 100%;
    border-collapse: collapse;
}


.control-horario-fichajes-table th,
.control-horario-fichajes-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.control-horario-fichajes-table th {
    background-color: #f2f2f2;
}

.cambiarOrden{
    transition: box-shadow 0.3s ease; /* Añade una transición suave */
    text-decoration: none;
}
.cambiarOrden:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombrero cuando el cursor pasa por encima */
    color: inherit; /* Mantiene el color del texto */
}


/*tabla fichajes*/
/* Estilos generales para la tabla */
.control-horario-fichajes-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}

/* Encabezado de la tabla */
.control-horario-fichajes-table thead th {
    background-color: #0073aa; /* Azul WordPress */
    color: white;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #005177;
}

/* Filas impares (Stripe effect) */
.control-horario-fichajes-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Filas al pasar el cursor */
.control-horario-fichajes-table tbody tr:hover {
    background-color: #e1f5fe; /* Azul claro */
}

/* Celdas de la tabla */
.control-horario-fichajes-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Estilo para el enlace de ordenar */
.control-horario-fichajes-table thead a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.control-horario-fichajes-table thead a:hover {
    text-decoration: underline;
}

/* Mensaje cuando no hay fichajes */
.control-horario-fichajes-table tbody td[colspan] {
    text-align: center;
    font-style: italic;
    color: #999;
    padding: 15px;
}

/* Responsive: Evita que la tabla se desborde en pantallas pequeñas */
@media (max-width: 768px) {
    .control-horario-fichajes-table thead {
        display: none; /* Oculta los encabezados */
    }

    .control-horario-fichajes-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 5px;
    }

    .control-horario-fichajes-table td {
        display: block;
        text-align: right;
        padding: 8px;
        border: none;
        position: relative;
    }

    .control-horario-fichajes-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        float: left;
        color: #333;
    }
}
/* Estilos generales del formulario */
.formularioFichaje {


    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

/* Etiquetas */
.formularioFichaje label {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

/* Campos de entrada y select */
.formularioFichaje input[type="text"],
.formularioFichaje select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 180px;
    background: #f9f9f9;
    transition: border 0.3s ease-in-out;
}

.formularioFichaje input[type="text"]:focus,
.formularioFichaje select:focus {
    border-color: #0073aa;
    outline: none;
    background: #fff;
}

/* Botón de Filtrar */
.formularioFichaje .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.formularioFichaje .button:hover {
    background: #005177;
}

/* Enlace "Cambiar Orden" */
.formularioFichaje .cambiarOrden {
    background: #ff9800;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
    display: inline-block;
}

.formularioFichaje .cambiarOrden:hover {
    background: #e68900;
}

/* Responsive */
@media (max-width: 768px) {
    .formularioFichaje {
        flex-direction: column;
        align-items: stretch;
    }

    .formularioFichaje input[type="text"],
    .formularioFichaje select {
        width: 100%;
    }

    .formularioFichaje .button,
    .formularioFichaje .cambiarOrden {
        width: 100%;
        text-align: center;
    }
}
/************************************************/

/* Contenedor principal */
.wrap {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    max-width: 800px;
    margin: 0 auto;
}

/* Título */
.wrap h1 {
    color: #0073aa;
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Mensajes de error y éxito */
.wrap .error {
    background: #ffebe8;
    color: #d63638;
    border-left: 4px solid #d63638;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.wrap .updated {
    background: #e5f8d0;
    color: #4caf50;
    border-left: 4px solid #4caf50;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Estilos de la tabla del formulario */
.control-horario-registro-form .form-table {
    width: 100%;
    border-collapse: collapse;
}

/* Etiquetas de los campos */
.control-horario-registro-form th {
    text-align: left;
    padding: 10px;
    color: #333;
    font-weight: bold;
}

/* Campos de entrada */
.control-horario-registro-form input[type="text"],
.control-horario-registro-form input[type="password"],
.control-horario-registro-form input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #f9f9f9;
    transition: border 0.3s ease-in-out;
}

.control-horario-registro-form input:focus {
    border-color: #0073aa;
    background: #fff;
    outline: none;
}

/* Botón de registro */
.control-horario-registro-form .button-primary {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    width: fit-content;
    margin: 20px auto 0;
}

.control-horario-registro-form .button-primary:hover {
    background: #005177;
}

/* Responsive */
@media (max-width: 768px) {
    .wrap {
        padding: 15px;
    }

    .control-horario-registro-form .form-table {
        display: block;
    }

    .control-horario-registro-form th,
    .control-horario-registro-form td {
        display: block;
        width: 100%;
    }

    .control-horario-registro-form input {
        max-width: 100%;
    }

    .control-horario-registro-form .button-primary {
        width: 100%;
        text-align: center;
    }
}

/******************************************************/

/* Estilos para la tabla de conectados */
.trabajadores-conectados {
	width: 100%;
    border-collapse: collapse;
}
.trabajadores-conectados th,
.trabajadores-conectados td{
	border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.trabajadores-conectados th{
    color: white;
	background-color: #0073aa;
}
/* Estilos para los botones del trabajador*/
.control-horario-trabajador{
	margin-bottom: 20px;
}