/* Ventas y envíos: encabezado bajo y cuatro documentos por fila en PC. */
#vista-cotizaciones .panel-modulo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 7px 12px;
}
#vista-cotizaciones .panel-modulo-header h2 { font-size: 18px; line-height: 1.2; }
#vista-cotizaciones .panel-modulo-header p { margin: 0; font-size: 11.5px; line-height: 1.3; }
#vista-cotizaciones .panel-modulo-body { padding: 0 12px 12px; }
#vista-cotizaciones .barra-cotizaciones { margin-bottom: 6px; }
@media (min-width: 769px) {
  #vista-cotizaciones .barra-cotizaciones {
    display: grid;
    grid-template-columns: minmax(0, 520px) auto auto auto;
    justify-content: start;
    padding: 4px 12px;
    margin: 0 -12px 6px;
    gap: 8px;
  }
  #vista-cotizaciones .barra-cotizaciones > .buscador-wrap { width: 100%; min-width: 0; }
}
#vista-cotizaciones .resumen-listado { margin: 6px 0; font-size: 11.5px; }
#vista-cotizaciones .encabezado-dia { padding: 4px 0; margin-bottom: 6px; }
#vista-cotizaciones .dia-nombre { font-size: 14px; }
.cotizaciones-lista { display: block; }
.cotizaciones-lista .grupo-tarjetas { gap: 8px; }
.cotizacion-card { gap: 7px; padding: 10px; min-width: 0; }
.cotizacion-card .cotizacion-cabecera { flex-direction: column; gap: 6px; }
.cotizacion-card .cotizacion-datos { width: 100%; }
.cotizacion-card .cotizacion-encabezado-linea { gap: 5px; flex-wrap: wrap; }
.cotizacion-card .etiqueta-tipo { padding: 4px 9px; font-size: 13.5px; font-weight: 800; letter-spacing: 0; }
.cotizacion-card .etiqueta-tipo.venta { color: #18432b; background: #e1eee3; }
.cotizacion-card .etiqueta-tipo.cotizacion { color: #54351e; background: #f1e1c8; }
.cotizacion-card .cotizacion-numero { margin: 0; font-size: 10.5px; letter-spacing: .5px; color: #685039; }
.cotizacion-card h3 { margin-top: 3px; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.cotizacion-card .cotizacion-contacto { margin-top: 3px; font-size: 15.5px; font-weight: 750; color: #38291f; overflow-wrap: anywhere; }
.cotizacion-card .cotizacion-destino { margin-top: 2px; font-size: 11.5px; line-height: 1.25; overflow-wrap: anywhere; }
.cotizacion-card .cotizacion-meta { gap: 4px 6px; font-size: 11px; }
.cotizacion-card .fecha-doc { padding: 2px 5px; font-size: 10.5px; }
.cotizacion-card .autor-doc { text-transform: capitalize; }
.cotizacion-card .cotizacion-total-area { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 5px; }
.cotizacion-card .cotizacion-total { font-size: 17px; }
.cotizacion-card .estado-cot { padding: 3px 7px; font-size: 10px; }
.cotizacion-card .card-acciones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: auto; padding-top: 3px; }
.cotizacion-card .card-acciones button { min-width: 0; min-height: 32px; padding: 4px 3px; font-size: 10.5px; line-height: 1.15; white-space: normal; border-radius: 7px; }
@media (min-width: 600px) {
  .cotizaciones-lista .grupo-tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cotizaciones-lista .grupo-tarjetas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .cotizacion-card .card-acciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .cotizacion-card .card-acciones button { min-height: 36px; font-size: 11px; }
}

/* Al llegar a los extremos de la búsqueda, el gesto continúa por el formulario. */
#cot-resultados-productos {
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  min-width: 0;
}
#cot-resultados-productos .resultado-producto { gap: 8px; padding: 6px 8px; }
#cot-resultados-productos .selector-variante-producto { width: 100%; max-width: 260px; gap: 4px; }
#cot-resultados-productos .selector-variante-etiqueta { font-size: 11.5px; }
#cot-resultados-productos .variante-trigger { min-width: 0; width: 0; }
#cot-resultados-productos .resultado-acciones { gap: 5px; }
#cot-resultados-productos .btn-ver-producto,
#cot-resultados-productos .btn-anadir-item { min-height: 32px; min-width: 0; padding: 0 10px; font-size: 12px; }
@media (max-width: 768px) {
  #cot-resultados-productos .resultado-acciones { gap: 4px; }
  #cot-resultados-productos .btn-ver-producto,
  #cot-resultados-productos .btn-anadir-item { min-height: 36px; font-size: 13px; }
}
