
/* Corrección definitiva de visibilidad en pantalla: no afecta la impresión PDF. */
@media screen {
  body main #app #reportsView:not([hidden]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
    grid-column: 2 !important;
    order: 3 !important;
  }
  body main #app #reportsView:not([hidden]) > .report-controls,
  body main #app #reportsView:not([hidden]) > #reportPreview {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  body main #app #reportsView:not([hidden]) > .report-controls .grid {
    display: grid !important;
    visibility: visible !important;
  }
  body main #app #reportsView:not([hidden]) > .report-controls .actions {
    display: flex !important;
    visibility: visible !important;
  }
  body main #app #reportsView:not([hidden]) > .report-controls h2,
  body main #app #reportsView:not([hidden]) > .report-controls p,
  body main #app #reportsView:not([hidden]) > .report-controls label,
  body main #app #reportsView:not([hidden]) > .report-controls input,
  body main #app #reportsView:not([hidden]) > .report-controls select,
  body main #app #reportsView:not([hidden]) > .report-controls button {
    visibility: visible !important;
  }
}

/* Reportes: acciones principales visibles inmediatamente al abrir la pestaña. */
@media screen {
  #reportsView > .report-controls { position: relative; }
  #reportsView .report-controls-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }
  #reportsView .report-controls-head h2 { margin: 0 0 4px; }
  #reportsView .report-controls-head .hint { margin: 0; }
  #reportsView .report-actions-top {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
  }
  #reportsView .report-filters { margin-top: 8px; }
  #reportsView .report-print-hint { margin: 8px 0 0; }
}
@media screen and (max-width: 700px) {
  #reportsView .report-controls-head { align-items: stretch; }
  #reportsView .report-actions-top { justify-content: stretch; }
  #reportsView .report-actions-top .btn { flex: 1 1 100%; }
}
