/* Contenedores y reset básico */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    background: #fff;
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.auth-container {
    max-width: 500px;
}




/* Bloque superior botones y tiempo trabajado */
/*
.top-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.top-block .buttons {
    display: flex;
    gap: 15px;
}
*/




/* Bloque superior */
.top-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: nowrap;
    margin-bottom: 25px;
}

/* Contenedor botones */
.top-block .buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

/* Evita que los form rompan el layout */
.top-block .buttons form {
    margin: 0;
}

/* Tiempo trabajado */
/*
.time-worked {
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
}
*/

.time-worked {
    padding: 12px 18px;
    background: #f5f9ff;
    border-radius: 12px;
    border: 1px solid #dbe7ff;
}














#timer {
    font-size: 2em;
    font-weight: bold;
    padding: 10px 20px;
    background: #e8f0fe;
    border-radius: 10px;
    color: #4a90e2;
}

/* Botones con iconos */
button.btn {
    padding: 12px 20px;
    font-size: 1rem;
    margin: 5px;
    border-radius: 10px;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

button.green { background: #28a745; }
button.green:hover { background: #218838; }
button.red { background: #dc3545; }
button.red:hover { background: #c82333; }

a.btn-link {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 15px;
    background: #6ca0dc;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}
a.btn-link:hover { background: #5b8ac3; }





/* Barra de acciones */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Botones tipo barra */
.action-bar .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Botón cambiar contraseña */
.btn-settings {
    background: #4a90e2;
    color: white;
}

.btn-settings:hover {
    background: #3578c9;
    transform: translateY(-2px);
}

/* Botón logout */
.btn-logout {
    background: #dc3545;
    color: white;
}

.btn-logout:hover {
    background: #bb2d3b;
    transform: translateY(-2px);
}

/* Iconos */
.action-bar i {
    font-size: 1rem;
}


















/* Inputs */
input {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    transition: border 0.3s, box-shadow 0.3s;
}
input:focus {
    border-color: #6ca0dc;
    outline: none;
    box-shadow: 0 0 6px rgba(108,160,220,0.3);
}

/* Tabla con scroll horizontal */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    /*min-width: 700px;*/
    font-size: 14px;
	 table-layout: auto; /* ancho ajustado al contenido */
}


th, td {
    padding: 8px 6px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



th, td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
    font-weight: 500;
    background-clip: padding-box; /* para la columna fija */
}

th {
    background: #cce0ff;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Primera columna fija */
th:first-child, td:first-child {
    position: sticky;
    left: 0;
    background: #f0f0f0;
    z-index: 3;
}

/* Badges de entradas/salidas */
td.badge-entry {
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
}

td.badge-exit {
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
}

tr:nth-child(even) { background-color: #f9f9f9; }
tr:hover { background-color: #eef6ff; }
.weekend { background: #f0f0f0; }

/* Responsive */

/*
@media (max-width: 768px) {
    .top-block { flex-direction: column; align-items: flex-start; gap: 20px; }
    #timer { font-size: 1.8em; }
    table { font-size: 12px; }
}
*/



@media (max-width: 768px) {

    .top-block {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .top-block .buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    #timer {
        font-size: 1.8em;
    }

    table {
        font-size: 12px;
    }
}







/*
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 900px; 
    table-layout: fixed; 
}
th, td {
    padding: 10px 8px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis; 
    white-space: nowrap;
}

*/




