/* ============== STYLES.CSS ============== */


/* Logotipo aplicacion*/
img.logo {
    max-width: -webkit-fill-available !important;
	max-width: -moz-available !important;  
}

/* Log containers y listas */
.logs-container {
    max-height: 300px; 
    overflow-y: auto;
}
.todo-list li {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}
.todo-list .text {
    flex-grow: 1;
}

/* Botones, contenedores, etc. */
.btn-lg {
    margin: 5px;
}
.reloj-container {
    font-size: 1.5em; 
    font-weight: bold; 
    text-align: center; 
    margin-bottom: 20px;
}
.btn-secondary {
    background-color: #6c757d; 
    border-color: #6c757d; 
    color: #fff;
}
.btn-secondary:hover {
    background-color: #5a6268; 
    border-color: #545b62;
}
.nav-tabs {
    margin-bottom: 15px;
}
.modificaciones-container {
    margin-top: 20px;
}
#horas-trabajadas-container {
    max-height: 200px; 
    overflow-y: auto;
}
.action-buttons {
    float: right;
}
.action-buttons .btn {
    margin-left: 5px;
}
.badge-user-vac {
    display:block; 
    background:#ffeb3b; 
    color:#000; 
    border-radius:4px; 
    padding:2px 5px; 
    margin:2px 0;
}

.firmado {
    color: grey;
    font-style: italic;
}

.main-header .logo {
	font-size: 18px !important;
}

/* Ocultar pseudo-elementos AdminLTE */
.sidebar-toggle:before,
.sidebar-toggle:after,
.sidebar-toggle .icon-bar {
    display: none !important;
    content: none !important;
}
.sidebar-toggle .fas.fa-bars {
    font-size: 18px;
    color: #fff;
}

/* Ajustes de perfil e imagenes */
.user-image,
.user-panel .image>img {
    width: 35px;
    height: 35px;
    object-fit: cover;
}
.profile-icon-lg {
    font-size: 35px;
    line-height: 1;
}
.profile-icon-sidebar {
    font-size: 35px;
}

/* Barra superior con usuarios conectados */
.connected-users-bar {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}
.connected-user {
    position: relative;
    margin-right: 15px;
    text-align: center;
}
.connected-user img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
}
.connected-user .online-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #28a745; /* Verde */
    border: 2px solid #fff;
    border-radius: 50%;
}
.connected-user small {
    display: block;
    margin-top: 3px;
    font-size: 0.8em;
}

/* Contador de tiempo fichado (azul #3c8dbc) */
.fichaje-timer-box {
    margin-top: 20px;
    background: #fafafa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}
.fichaje-timer-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
}
.fichaje-timer-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #3c8dbc; /* Azul AdminLTE */
}

/* MENU IZQUIERDA */
.main-sidebar{
    display: flex;
    flex-direction: column;
}

.cerrar-sesion {
    border-top: solid 2px #ffffff1a;
}

section.sidebar2 {
	position: fixed;
    margin-top: auto;
	bottom: 0;
	width: inherit;
}

.btn-conf a {
    margin: auto;
}
.btn-conf {
    display: flex;
}

/* PRUEBA MARTA */



/* Vacaciones */
.btn-box-tool {
  color: #fff !important;
}

table.tabla-vacaciones {
    max-width:50%;
    margin: auto;
}

table.tabla-vacaciones tr th, table.tabla-vacaciones tr td {
  text-align: center !important;
}

/* Caja, cabecera y cuerpo */
.box {
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background: #fff;
}
.box-header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 15px;
}
.box-title {
  font-size: 18px;
  margin: 0;
  color: #333;
}

.tabla_vacaciones {
    display: flex;
    justify-content: center;
}

.tabla_vacaciones table td {
    padding: 10px;
}

.tabla_vacaciones thead {
    color: #3c8dbc;
    font-weight: bolder;
}

/* Calendario y contenedor */
.calendar-wrapper {
  max-width: 900px;
  margin: 20px auto;
}
.calendar-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 20px;
}
.calendar-table thead th {
  /* Color de cabecera */
  background: #007bff;
  color: #fff;
  text-transform: uppercase;
  padding: 10px 0;
  border: 1px solid #007bff;
}
.calendar-table td {
  vertical-align: top;
  height: 80px;
  padding: 5px;
  position: relative;
  border: 1px solid #ddd;
  transition: background-color 0.3s ease;
}
.calendar-table td:hover {
  background-color: #f2f2f2;
}
.calendar-day-number {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-block;
}
/* Fines de semana con un gris suave */
.weekend {
  background-color: #f0f0f0 !important;
}

.badge-user-vac {
  display: block;
  background: #ffeb3b;
  color: #000;
  border-radius: 4px;
  padding: 2px 5px;
  margin: 2px 0;
  font-weight: bold;
}

/* Ajuste para los controles del carrusel */
.carousel-control {
  width: 5%;
  text-shadow: none;
}
.carousel-control i {
  font-size: 30px;
  color: #333; /* Flechas m?s visibles */
}
/* Quita fondo feo por defecto */
.carousel-control.left,
.carousel-control.right {
  background-image: none;
}
.carousel-indicators li {
  background-color: #aaa;
}
.carousel-indicators .active {
  background-color: #007bff;
}

/* USUARIOS */
.cabecera-user {
    display: flex;
    align-items: center;
    gap: 10px; 
    flex-wrap: wrap; 
}

.cabecera-user h3,
.cabecera-user label {
    margin: 0;
}

.cabecera-user input {
    flex: 1;
    min-width: 200px;
}

section.tabla-usuarios {
    overflow-x: auto;
}

table#usuarios {
    width: 100%;
    border-collapse: collapse;
}

span#cerrar {
    float: right !important;
    font-size: 25px;
    background-color: #3c8dbc;
    color: white;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

span#cerrar:hover {
    opacity: 0.8;
}

.filtros {
	display: flex;
}

.filtros select {
    margin-right: 20px;
    max-width: 100px;
}

/* RESPONSIVE */

@media only screen and (max-width: 768px) {
	/* Vacaciones */
	.badge-user-vac {
		font-weight: normal;
		font-size: 7px;
	}
	
	ol.carousel-indicators {
		display: none;
	}
	
	
	
}