#fichaje-empleados {
    text-align: center;
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

#reloj {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

#mensaje-accion {
    margin-bottom: 15px;
    font-weight: bold;
    color: #2e7d32; /* Verde para mensajes positivos */
}

#mensaje-accion.error {
    color: #d32f2f; /* Rojo para mensajes de error */
}

.botones-fichaje {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.botones-fichaje button {
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#inicio-fichaje {
    background-color: #4CAF50;
    color: white;
}

#inicio-fichaje:hover {
    background-color: #388E3C;
}

#pausa-fichaje {
    background-color: #ff9800;
    color: white;
}

#pausa-fichaje:hover {
    background-color: #f57c00;
}

#reanudar-fichaje {
    background-color: #2196F3;
    color: white;
}

#reanudar-fichaje:hover {
    background-color: #1976D2;
}

#fin-fichaje {
    background-color: #f44336;
    color: white;
}

#fin-fichaje:hover {
    background-color: #d32f2f;
}

.botones-fichaje button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilos para el historial de fichajes */
#historial-fichajes-empleado {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

#historial-fichajes-empleado h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

#historial-fichajes-empleado form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

#historial-fichajes-empleado label {
    font-weight: bold;
}

#historial-fichajes-empleado select,
#historial-fichajes-empleado input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#historial-fichajes-empleado .button {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    background-color: #008CBA;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

#historial-fichajes-empleado .button:hover {
    background-color: #005f7a;
}

#historial-fichajes-empleado table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#historial-fichajes-empleado th,
#historial-fichajes-empleado td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

#historial-fichajes-empleado th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#historial-fichajes-empleado tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#historial-fichajes-empleado p {
    text-align: center;
    font-style: italic;
    color: #777;
}

.button-historial {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    text-decoration: none;
    background-color: #008CBA;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button-historial:hover {
    background-color: #005f7a;
}