/* v370 · Laptop: las pantallas usan todo el ancho disponible (solo desde 900 px). En celular no cambia nada. */
@media (min-width:900px){
  .app,
  .view,
  #view-clients.view,
  main,
  .shell,
  .content,
  .wrap,
  .container{max-width:none!important}
  .top-nav,
  .bottom-nav{max-width:min(92vw,1000px)!important}
  .roles-grid,
  .cards,
  .card-grid{max-width:none!important}
}

/* Almacén (laptop): la pantalla usa todo el ancho y los clientes se muestran en cuadrícula como las demás áreas. Celular no cambia. */
@media (min-width:900px){
  #view-warehouse .wh2{max-width:none!important;width:100%}
  #view-warehouse .wh2-sec{width:100%}
  #view-warehouse #warehouse-search-results{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;max-height:none!important;overflow:visible!important;gap:12px!important}
  #view-warehouse .warehouse-result{min-height:150px;padding:16px!important;border-radius:18px!important}
  #view-warehouse .warehouse-result b,#view-warehouse .warehouse-result strong{font-size:17px}
  #view-warehouse .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #view-warehouse .wh-x-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}


/* Laptop: tarjetas de Almacén a la medida del modelo aprobado (ancho fijo de 240 px, alto 245 px), alineadas a la izquierda. Celular no cambia. */
@media (min-width:900px){
  .ops-list,#view-espera #wait-list,#view-warehouse #warehouse-search-results{display:grid!important;grid-template-columns:repeat(auto-fill,290px)!important;gap:14px!important;justify-content:start!important;align-items:start!important}
  .ops-list>.pk-card,#view-espera #wait-list>.esp-card,#view-warehouse #warehouse-search-results>.warehouse-result{width:290px!important;max-width:290px!important;min-width:290px!important;margin:0!important}
}

/* v442 · Stock de productos (laptop): las tarjetas se estiran para llenar todo el ancho (sin espacio vacío a la derecha),
   son más anchas para que el nombre entre en menos líneas y todas las de una fila tienen el mismo alto. */
@media (min-width:900px){
  html body #ops-stock-list.ops-list{grid-template-columns:repeat(auto-fill,minmax(400px,1fr))!important;justify-content:stretch!important;align-items:stretch!important;gap:14px!important}
  html body #ops-stock-list>.stk-row.stk-t5{width:100%!important;max-width:none!important;min-width:0!important;height:100%;margin:0!important;box-sizing:border-box}
  html body #ops-stock-list>.stk-more,html body #ops-stock-list>.stk-aprox{grid-column:1/-1}
}

/* Laptop: Por embalar ocupa el mismo ancho que Paquetes y guías y En espera */
@media (min-width:900px){
  .ops-root{width:100%!important;max-width:none!important;box-sizing:border-box}
  .alm-hero{min-height:150px!important;height:150px!important;box-sizing:border-box}
}

/* Registro de Paquetes y guías (laptop): columna de fotos y columna de datos, como el modelo aprobado */
@media (min-width:900px){
  #view-warehouse .wh2{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)!important;gap:14px!important;align-items:start!important;max-width:none!important}
  #view-warehouse .wh2>.wh2-sec:first-child,#view-warehouse .wh2>.wh2-foot{grid-column:1/-1}
  #view-warehouse .wh2-l,#view-warehouse .wh2-r{display:flex;flex-direction:column;gap:14px;min-width:0}
  #view-warehouse .wh2-foot{position:sticky;bottom:0}
}
