/* Cotización más estrecha: nombre, marca y variante ocupan la misma columna. */
.modal-contenido.modal-cotizacion-contenido { width: min(860px, 100%); max-width: 860px; }
.tabla-items .fila-item { grid-template-columns: minmax(0, 1fr) 132px 68px 104px minmax(88px, max-content) 74px; }
.tabla-items .item-descripcion { gap: 1px; }
.tabla-items .item-nombre { line-height: 14px; }
.tabla-items .item-marca { color: var(--text-soft); font-size: 10.5px; font-weight: 500; line-height: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabla-items .item-descripcion .select-variante { min-height: 18px; height: 18px; font-size: 11px; }
.tabla-items .celda-variante .selector-variante-producto { width: 100%; margin: 0; }
.tabla-items .celda-variante .variante-trigger { min-height: 18px; height: 18px; font-size: 11px; border-radius: 6px; }
@media (max-width: 899px) {
  .tabla-items .fila-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(90px, max-content); }
  .tabla-items .item-nombre { line-height: 1.25; }
  .tabla-items .item-marca { line-height: 1.25; }
}
@media (max-width: 768px) {
  .tabla-items .item-marca { font-size: 11px; }
  .tabla-items .item-descripcion .select-variante { min-height: 28px; height: 28px; font-size: 16px; }
  .tabla-items .celda-variante .variante-trigger { min-height: 28px; height: 28px; font-size: 16px; }
}
@media (max-width: 480px) {
  .tabla-items .fila-item { grid-template-columns: 84px minmax(0, 1fr); }
}

/* Reportes: la tabla gana espacio sin agrandar encabezados o tarjetas de cifras. */
#vista-reportes .panel-modulo-header {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 7px 12px;
}
#vista-reportes .panel-modulo-header h2 { font-size: 18px; line-height: 1.2; }
#vista-reportes .panel-modulo-header p { margin: 0; font-size: 11.5px; line-height: 1.3; }
#vista-reportes .panel-modulo-body { padding: 0 12px 12px; }
#vista-reportes .selector-reporte { padding: 3px; gap: 4px; margin-bottom: 6px; border-radius: 10px; }
#vista-reportes .opcion-reporte { min-height: 32px; border-radius: 7px; font-size: 12px; }
#vista-reportes .barra-filtros-reporte { gap: 6px; padding-bottom: 6px; margin-bottom: 7px; }
#vista-reportes .select-filtro { min-height: 32px; height: 32px; padding: 0 9px; font-size: 12px; border-radius: 9px; max-width: 100%; }
#vista-reportes .acciones-reporte { gap: 5px; }
#vista-reportes .acciones-reporte button { min-height: 32px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
#vista-reportes .reporte-encabezado { margin-bottom: 5px; }
#vista-reportes .reporte-encabezado h3 { font-size: 15px; margin-bottom: 2px; }
#vista-reportes .reporte-encabezado p { font-size: 11.5px; }
#vista-reportes .datos-reporte { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
#vista-reportes .dato-reporte { display: flex; align-items: baseline; gap: 6px; padding: 5px 10px; min-width: 120px; border-radius: 9px; }
#vista-reportes .dato-reporte .num { font-size: 16px; }
#vista-reportes .dato-reporte .txt { margin: 0; font-size: 11.5px; }
#vista-reportes .aviso-ok { padding: 8px 10px; font-size: 12px; }
#vista-reportes .tabla-reporte { font-size: 12px; }
#vista-reportes .tabla-reporte thead th { padding: 6px 9px; font-size: 10px; }
#vista-reportes .tabla-reporte tbody td { padding: 5px 9px; }
@media (max-width: 768px) {
  #vista-reportes .opcion-reporte { min-height: 36px; }
  #vista-reportes .barra-filtros-reporte > div { flex: 1 1 120px; min-width: 0; }
  #vista-reportes .select-filtro { height: 36px; min-height: 36px; width: 100%; font-size: 16px; }
  #vista-reportes .barra-filtros-reporte > .acciones-reporte { flex: 1 1 100%; }
  #vista-reportes .acciones-reporte button { min-height: 36px; }
  #vista-reportes .dato-reporte { flex: 1 1 auto; min-width: 0; }
  #vista-reportes .tabla-reporte-wrap { overscroll-behavior-x: contain; }
  #vista-reportes .tabla-reporte .col-nombre { min-width: 200px; }
  #vista-reportes .tabla-reporte .col-marca { min-width: 100px; }
}

.auditoria-producto { margin: 0 0 8px; color: var(--text-soft); font-size: 11.5px; line-height: 1.3; overflow-wrap: anywhere; }
.usuario-card .usuario-ultimo-ingreso { font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.usuario-card .card-info { min-width: 0; }
