body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 20px;
}

h2, h3, h4 {
    color: #2c3e50;
}

label {
    font-weight: bold;
    margin-right: 10px;
}

select, input[type="text"], button {
    margin: 5px 0;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

/* Tabla contenida para permitir scroll horizontal */
#tabla-tareas {
    display: block;
    overflow-x: auto;
}

#tabla-tareas table {
    table-layout: auto;
    width: max-content;
    min-width: 1600px; /* o más, si hay muchos días */
}

/* Estilo de la tabla */
table {
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 12px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
    min-width: 900px;
}

th, td {
    border: 1px solid #ddd;
    padding: 3px;
    text-align: center;
    vertical-align: middle;
}

th {
    background-color: #ecf0f1;
    font-weight: 600;
    color: #2c3e50;
}

input[type="checkbox"] {
    width: 15px;
    height: 15px;
}

/* Eliminar ancho 100% general para inputs de texto */
input[type="text"] {
    box-sizing: border-box;
    font-size: 12px;
}

/* Ancho específico por columna */
table td:nth-child(1), table th:nth-child(1) {
    width: 100px;
}
table td:nth-child(2), table th:nth-child(2) {
    width: 100px;
}
table td:nth-child(3), table th:nth-child(3) {
    width: 120px;
}
table td:nth-child(4), table th:nth-child(4) {
    width: 750px;
}

/* Ajustes a los inputs dentro de esas columnas */
table td:nth-child(1) input {
    width: 90px !important;
}
table td:nth-child(2) input {
    width: 90px !important;
}
table td:nth-child(3) input {
    width: 100px !important;
}
table td:nth-child(4) input {
    width: 100%; /* sin !important */
    white-space: normal;
    overflow-wrap: break-word;
}


/* Colores por tipo de marca */
.cumple {
    background-color: #d4f4dd !important;
}
.nocumple {
    background-color: #f8d4d4 !important;
}
.feriado {
    background-color: #e0e0e0;
    color: #7f8c8d;
}

/* Formulario de nueva tarea */
#form-tarea {
    margin-top: 20px;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 800px;
}

/* Resumen mensual */
#resumen {
    margin-top: 20px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 8px;
}

/* Contenedor principal del resumen */
.resumen-contenedor {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 20px auto;
  max-width: 1000px;
  padding: 10px;
}

/* Parte izquierda (resumen textual) */
.resumen-texto {
  flex: 1;
  min-width: 300px;
}

.resumen-texto h3, .resumen-texto h4 {
  margin-bottom: 8px;
  color: #333;
}

.resumen-texto ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.resumen-texto li {
  margin-bottom: 5px;
  font-size: 14px;
}

/* Parte derecha (gráfico) */
.resumen-grafico {
  width: 280px;
  max-width: 100%;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Canvas adaptativo y más pequeño */
#grafico-resumen {
  width: 100% !important;
  height: 180px !important;

}
