.report-form-container-main {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.report-form-container {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
  padding-bottom: 12px;
}

.month-button.disabled {
  cursor: not-allowed;
  background-color: var(--danger);
  color: black !important;
}

.selected-zone {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  gap: 12px;
}

/* Mantener el botón por encima de la línea */
.selected-zone button {
  z-index: 1;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #ddd;
  color: var(--text-dark);
  font-size: var(--size-font-info);
  border: none;
  transition: background-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.selected-zone button.active {
  background-color: var(--color-primary);
  color: var(--text-primary);
}

.selected-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.selected-zone-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: fit-content;
  cursor: pointer;
  gap: 4px;
}

.zone-name {
  font-size: var(--size-font-info);
  font-weight: 500;
  color: var(--text-dark);
  gap: 0;
  padding: 0;
  margin: 0;
  text-wrap: nowrap;
}

.zone-status {
  font-size: var(--size-font-small);
  font-weight: 400;
  color: var(--text-light);
  gap: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.report-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
  gap: 40px;
}

.report-form-content {
  width: fit-content;
  height: auto;
  width: 90%;
  display: flex;
  flex-direction: column;
  border: 1px solid #4444;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  margin: 12px 0px 0px 0px;
  background-color: var(--bg-secondary);
}

.report-form-category {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
}

.report-form-content table {
  border-collapse: collapse;
  width: 100%;
}

.report-form-content th,
.report-form-content td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: center;
}

.report-form-content input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  font-size: var(--size-font-info);
  color: var(--text-dark);
}

.report-form-content input:focus {
  border-bottom: 1px solid var(--color-primary);
}

.report-form-submit {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 12px 0;
}

.report-form-submit button {
  width: fit-content;
  height: 24px;
  border-radius: var(--border-radius);
  background-color: var(--color-primary);
  color: var(--text-primary);
  font-size: var(--size-font-info);
  border: none;
  transition: background-color 0.2s, color 0.2s;
}

.report-form-submit button:hover {
  background-color: var(--color-secondary);
  color: var(--text-secondary);
}

.report-date-selection {
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 40px 0px;
  margin-bottom: 30px;
}

.report-date-selection-content {
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
  background-color: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
}

.report-date-selection-content label {
  display: flex;
  justify-content: space-between;
}

/* ============================== */
/*    NUEVO DISEÑO DEL RESUMEN    */
/* ============================== */

.report-resume {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  margin-bottom: 40px;
}

.report-resume-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.region-resume {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  transition: transform 0.2s ease;
}

.region-resume:hover {
  transform: translateY(-2px);
}

.region-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
}

.categoria-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.categoria-icon {
  font-size: 1.2rem;
}

.categoria-title {
  font-weight: 500;
  color: var(--text-dark);
}

.table-container {
  width: 98%;
  overflow-x: auto;
}

.resume-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.resume-table th {
  background: #cbd5e1;
  color: var(--text-dark);
  font-weight: 600;
  padding: 8px;
  text-align: center;
}

.resume-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.resume-table th,
.resume-table td {
  width: 25%;
  text-align: center;
  padding: 8px;
  border: 1px solid #ddd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.resume-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.resume-table tr:hover {
  background-color: #eef5ff;
  transition: 0.2s;
}

.resume-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

.send-report-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.send-report-btn:hover {
  background-color: var(--color-secondary);
  transform: scale(1.03);
}

.send-report-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ============================== */
/*  CONTINÚAN ESTILOS EXISTENTES  */
/* ============================== */

.year-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.year-block {
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 320px;
}

.year-block h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.month-button {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: #fff;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
  color: var(--text-dark);
  width: 100px;
}

.month-button:hover {
  background-color: #eaeaea;
  cursor: pointer;
}

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

.continue-button {
  padding: 10px 16px;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  cursor: pointer;
}

.continue-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  color: var(--text-secondary);
}

.categories-btns {
  display: flex;
  flex-direction: row;
}

.subcategories-btns {
  display: flex;
  flex-direction: row;
}

.report-date-title {
  font-weight: 600;
  font-size: var(--size-font-large);
  color: var(--text-dark);
}

.month-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: auto;
}

.create-edit-request {
  background-color: var(--bg-secondary);
  padding: 12px;
  border-radius: var(--border-radius);
}

/* ====================================== */
/* UNIFICAR ANCHOS DE TABLAS DEL FORM  */
/* ====================================== */

.report-form-content table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  /* fuerza columnas iguales */
}

/* Tablas con 4 columnas (Colombia) */
.report-form-content table.cols-4 th,
.report-form-content table.cols-4 td {
  width: 25%;
  text-align: center;
  border: 1px solid #ccc;
  padding: 6px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tablas con 3 columnas (Regiones) */
.report-form-content table.cols-3 th,
.report-form-content table.cols-3 td {
  width: 33.33%;
  text-align: center;
  border: 1px solid #ccc;
  padding: 6px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Inputs dentro de celdas */
.report-form-content table input {
  width: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-size: var(--size-font-info);
  color: var(--text-dark);
}

.report-form-content table input:focus {
  outline: none;
  border-bottom: 1px solid var(--color-primary);
}

.report-form-title {
  font-size: var(--size-font-base);
  width: 93%;
  height: 40px;
  padding: 12px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  font-weight: 500;
}

.regions-depto-container {
  font-size: var(--size-font-small);
  font-weight: 300;
}

.resume-comparision {}

.trend-section {
  width: 100%;
}

.chart-container {}

.mismatch {
  background-color: #ffe0e0 !important;
  color: #a10000 !important;
  font-weight: bold;
}


.send-report-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.send-report-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.resume-table input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

.specific-report-modal {
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.specific-report-modal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.specific-report-modal th,
.specific-report-modal td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: center;
}

.specific-report-modal h3 {
  margin-top: 1.5rem;
  color: #333;
}

.modal-actions {
  width: 100%;
  margin: 20px 0px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.specific-report-modal {
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.specific-report-modal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.specific-report-modal th,
.specific-report-modal td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: center;
}

.specific-report-modal h3 {
  margin-top: 1.5rem;
  color: #333;
}

.template,
.excel-upload-section,
.excel-buttons {
  display: flex;
  flex-direction: row;
}

/*! estilos para paginacion de form*/
.form-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.form-pagination button {
  border: none;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

/* Hover */
.form-pagination button:hover:not(:disabled) {
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* Disabled */
.form-pagination button:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}


/*? excel template*/
/* Contenedor principal */
.excel-template-form {
  position: relative;       /* Necesario para posicionar el menú */
  display: flex;
  justify-content: flex-end;
  width: 93%;
  padding: 12px 0;
}

/* Ventana flotante */
.excel-template-window {
  position: absolute;
  top: 90%;                /* Debajo del botón */
  right: 0;                 /* Alineado a la derecha */
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  overflow: hidden;
  animation: fadeIn 0.15s ease-out;
  z-index: 20;
}

/* Botones del menú */
.excel-template-window button,
.excel-upload-btn {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transition: background 0.2s ease-in-out;
}

.excel-template-window button:hover,
.excel-upload-btn:hover {
  background: #cbd5e1;
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
