/* Registrazione bolla: righe in tabella come in Aera (solo schermi larghi).
   Una riga per articolo, intestazione di colonna fissa, descrizioni leggibili.
   Sotto i 1100px resta la scheda a riquadri, con le etichette allineate. */

.receiveHead{display:none}

/* tutte le misure: etichette e caselle sempre alla stessa altezza */
#receiveRows .receiveRow{align-items:start}
#receiveRows .receiveRow input,#receiveRows .receiveRow select{font-size:16px}
#receiveRows .receiveRow .rprod{font-weight:700}

@media (min-width:1100px){
  #receiptDialog{width:min(1500px,calc(100% - 24px))}

  .receiveHead,
  #receiveRows .receiveRow{
    display:grid!important;
    grid-template-columns:minmax(280px,3fr) 164px 90px 100px 84px 72px minmax(110px,.9fr) 150px 116px 92px!important;
    grid-template-areas:
      "art qty unit price disc iva lot exp tot tools"
      "acc acc acc acc acc acc lad lad linfo linfo"
      "pw pw pw pw pw pw pw pw pw pw";
    column-gap:6px;row-gap:0;
  }

  .receiveHead{
    position:sticky;top:0;z-index:3;margin-top:14px;padding:9px 10px;
    background:#174c3d;color:#fff;border-radius:10px 10px 0 0;
    font:700 13px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.02em;
  }
  .receiveHead span:nth-child(1){grid-area:art}
  .receiveHead span:nth-child(2){grid-area:qty;text-align:center}
  .receiveHead span:nth-child(3){grid-area:unit}
  .receiveHead span:nth-child(4){grid-area:price;text-align:right}
  .receiveHead span:nth-child(5){grid-area:disc}
  .receiveHead span:nth-child(6){grid-area:iva}
  .receiveHead span:nth-child(7){grid-area:lot}
  .receiveHead span:nth-child(8){grid-area:exp}
  .receiveHead span:nth-child(9){grid-area:tot;text-align:right}

  #receiveRows.receiveRows{gap:0;margin-top:0;border:1px solid #d8d2c7;border-top:0;border-radius:0 0 10px 10px;overflow:visible}
  #receiveRows .receiveRow{
    padding:8px 10px;border:0;border-bottom:1px solid #e4dfd5;border-radius:0;background:#fff;
  }
  #receiveRows .receiveRow:nth-child(even){background:#f7f5f0}
  #receiveRows .receiveRow:focus-within{background:#eef4f1;box-shadow:inset 4px 0 0 #174c3d}
  #receiveRows .receiveRow.lotRow{box-shadow:inset 5px 0 0 #c9a44c}
  #receiveRows .receiveRow:last-child{border-bottom:0;border-radius:0 0 10px 10px}

  /* le etichette sono nell'intestazione: nella riga restano solo le caselle */
  #receiveRows .receiveRow > label,
  #receiveRows .receiveRow .rmoney > label,
  #receiveRows .receiveRow .qtybox{font-size:0!important;margin:0}
  #receiveRows .receiveRow input,#receiveRows .receiveRow select{min-height:44px!important;height:44px!important;font-size:15px;padding-left:8px!important;padding-right:8px!important}
  #receiveRows .receiveRow .rprod{font-size:14.5px}
  #receiveRows .receiveRow .stepper{grid-template-columns:36px minmax(0,1fr) 36px}
  #receiveRows .receiveRow .rqty{padding-left:2px!important;padding-right:2px!important}
  #receiveRows .receiveRow .step{min-height:44px;font-size:22px}
  #receiveRows .receiveRow small{font-size:12px}

  #receiveRows .receiveRow > label:has(.rprod){grid-area:art}
  #receiveRows .receiveRow > .qtybox{grid-area:qty}
  #receiveRows .receiveRow > label:has(.runit){grid-area:unit}
  #receiveRows .receiveRow > label:has(.rprice){grid-area:price}
  #receiveRows .receiveRow .rprice{text-align:right}
  #receiveRows .receiveRow > label:has(.rlot){grid-area:lot}
  #receiveRows .receiveRow > label:has(.rexp){grid-area:exp}
  #receiveRows .receiveRow > .rtools,
  #receiveRows .receiveRow > .rrm{grid-area:tools;align-self:start;justify-content:flex-end}
  #receiveRows .receiveRow .rtools .btn,#receiveRows .receiveRow .rtools button{min-height:44px;height:44px}

  #receiveRows .receiveRow .rmoney{display:contents}
  #receiveRows .receiveRow .rmoney > label{width:auto}
  #receiveRows .receiveRow .rmoney > label:has(.rdisc){grid-area:disc}
  #receiveRows .receiveRow .rmoney > label:has(.rvat){grid-area:iva}
  #receiveRows .receiveRow .rtot{grid-area:tot;min-width:0;padding:0 2px;height:44px;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;text-align:right;font-size:16px;line-height:1.15}
  #receiveRows .receiveRow .rtot .rtotl{display:none}
  #receiveRows .receiveRow .rtot .rtotn{font-size:11px;font-weight:600;color:#606c66}
  #receiveRows .receiveRow .rtot.bad{font-size:12px}
  #receiveRows .receiveRow .rlotadd{grid-area:lad;justify-self:start;align-self:center;margin-top:6px;min-height:34px!important;height:34px;padding:0 12px!important;font-size:13px!important}
  #receiveRows .receiveRow .rlotinfo{grid-area:linfo;margin-top:8px}
  #receiveRows .receiveRow .rpwarn{grid-area:pw;margin-top:4px}
  #receiveRows .receiveRow .rlpill{grid-area:lot}
  #receiveRows .receiveRow .rlots{grid-column:1/-1;margin-left:24px;max-width:920px}

  /* controlli di accettazione (trasporto, confezioni): seconda fila, compatta */
  #receiveRows .receiveRow .racc{grid-area:acc;margin-top:6px;padding-top:6px;min-height:0;gap:8px;border-top:1px dashed #e4dfd5;align-items:center}
  #receiveRows .receiveRow .racc label{display:flex;align-items:center;gap:6px;flex:0 1 auto;font-size:12px;font-weight:700;color:#606c66;white-space:nowrap}
  #receiveRows .receiveRow .racc label[hidden]{display:none}
  #receiveRows .receiveRow .racc input,#receiveRows .receiveRow .racc select{min-height:34px!important;height:34px!important;font-size:14px;width:auto;min-width:120px;padding-top:0!important;padding-bottom:0!important}
  #receiveRows .receiveRow .racc .raccNote{flex:1 1 220px}
  #receiveRows .receiveRow .racc .raccNote input{width:100%}
}
