/*************************************
 * CONTENEDOR GENERAL
 *************************************/

.administration-container {
  width: 94%;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-family: "Inter", sans-serif;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.administration-container h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}

.administration-container h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/*************************************
 * TABLAS MODERNAS
 *************************************/

.editable-reports-table,
.event-log-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.editable-reports-table thead tr th,
.event-log-table thead tr th {
  background: #f5f6f8;
  padding: 12px;
  font-weight: 600;
  text-align: left;
  color: #333;
  font-size: 0.95rem;
}

.editable-reports-table tbody tr,
.event-log-table tbody tr {
  background: white;
  transition: 0.2s ease;
  cursor: pointer;
}

.editable-reports-table tbody tr:hover,
.event-log-table tbody tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.editable-reports-table tbody td,
.event-log-table tbody td {
  padding: 14px 12px;
  color: #444;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.months-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.month-button {
  flex: 1 1 calc(25% - 8px);
  /* 4 por fila en pantallas grandes */
  min-width: 90px;
  max-width: 130px;
  text-align: center;
  padding: 8px 0;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

@media (max-width: 900px) {
  .month-button {
    flex: 1 1 calc(33.3% - 8px);
    /* 3 por fila en pantallas medianas */
  }
}

@media (max-width: 600px) {
  .month-button {
    flex: 1 1 calc(50% - 8px);
    /* 2 por fila en móviles */
  }
}

/* Colores y estados */
.month-button.reported {
  background-color: #c8f7c5;
  /* verde claro */
  color: #056105;
}

.month-button.missing {
  background-color: #f8d7da;
  /* rojo claro */
  color: #7b1113;
}

.month-button.selected {
  background-color: var(--color-primary);
  color: white;
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
  width: 80%;
}

.close-modal {
  background: #ccc;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--danger);
}


/* ===== LOG DE EVENTOS ===== */
.event-log-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
  background-color: #fafafa;
  border-radius: 8px;
  overflow: hidden;
}

.event-log-table th {
  background-color: #f0f0f0;
  text-align: left;
  padding: 10px;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.event-log-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
}

.event-log-table tr:hover {
  background-color: #f9f9f9;
}

.btn-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}