/* ============================================
   ESTILOS ESPECÍFICOS PARA REPORTE PROMEDIOS CANBUS
   ============================================ */

/* IMPORTANTE: NO modificar .page-container ni el navbar
   Estos elementos están en base.php y deben mantener sus estilos originales
   Solo modificamos el contenido dentro de #mainContent */

/* Contenedor principal - solo afectar al contenido interno */
/* El padding se aplica directamente al container-fluid */
body.app.reporte-promes-page #mainContent .container-fluid {
  padding: 20px;
}

/* Contenedor de resultados - hacer que las columnas tengan la misma altura */
#resultadosContainer .row > div {
  display: flex;
  flex-direction: column;
}

#resultadosContainer .row > div > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Sección de información */
.info-section {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e2e5e8;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: #495057;
}

.info-value {
  font-weight: 600;
  color: #212529;
}

/* Sección de promedios */
.promedios-section {
  margin-top: 30px;
}

.promedios-section .table {
  margin-bottom: 0;
}

.promedios-section .table td {
  padding: 12px;
  vertical-align: middle;
}

.promedios-section .table td:first-child {
  width: 60%;
}

.promedios-section .table td:last-child {
  width: 40%;
  text-align: right;
  font-weight: 600;
  color: #4b7cf3;
}

/* Sección de imagen */
.image-section {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

/* Contenedor de la imagen */
#imagenContainer {
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-section img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

/* Formulario */
.form-group {
  margin-bottom: 15px;
}

.form-group .form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 5px;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

.form-control {
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 8px 12px;
}

.form-control:focus {
  border-color: #4b7cf3;
  box-shadow: 0 0 0 0.2rem rgba(75, 124, 243, 0.25);
}

.btn-primary {
  background-color: #4b7cf3;
  border-color: #4b7cf3;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  height: calc(1.5em + 0.75rem + 2px); /* Misma altura que el input */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: #3a6bd8;
  border-color: #3a6bd8;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Alertas */
.alert {
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Tema oscuro */
[data-theme="dark"] .info-label,
[data-theme="dark"] .promedios-section .table td:first-child {
  color: var(--c-text-base, #e8eaed);
}

[data-theme="dark"] .info-value,
[data-theme="dark"] .promedios-section .table td:last-child {
  color: var(--c-text-base, #e8eaed);
}

[data-theme="dark"] .info-item {
  border-bottom-color: var(--c-border, #2b2f36);
}

[data-theme="dark"] .form-control {
  background-color: var(--c-bkg-body, #181a1f);
  border-color: var(--c-border, #2b2f36);
  color: var(--c-text-base, #e8eaed);
}

[data-theme="dark"] .form-control:focus {
  background-color: var(--c-bkg-body, #181a1f);
  border-color: var(--c-primary, #4b7cf3);
  color: var(--c-text-base, #e8eaed);
}

[data-theme="dark"] .form-label {
  color: var(--c-text-base, #e8eaed);
}

[data-theme="dark"] .alert-info {
  background-color: #0c2d33;
  border-color: #0c5460;
  color: #b8daff;
}

[data-theme="dark"] .alert-warning {
  background-color: #332701;
  border-color: #856404;
  color: #ffeaa7;
}

[data-theme="dark"] .alert-danger {
  background-color: #2c1810;
  border-color: #721c24;
  color: #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
  body.app.reporte-promes-page #mainContent .container-fluid {
    padding: 10px;
  }

  .info-item {
    flex-direction: column;
  }

  .info-value {
    margin-top: 5px;
  }

  .promedios-section .table td:last-child {
    text-align: left;
  }

  .image-section {
    margin-top: 20px;
  }
}

/* Ocultar scrollbar del contenido principal */
body.app.reporte-promes-page {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.app.reporte-promes-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.app.reporte-promes-page .main-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body.app.reporte-promes-page .main-content::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body.app.reporte-promes-page #mainContent {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.app.reporte-promes-page #mainContent::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

