/* V6.6.19 — New-order actions share the same compact, in-row visual language as saved order lines. */
#order-lines .order-line .order-form-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)) minmax(90px,.85fr) 96px;
  align-items:end;
  gap:12px;
}
#order-lines .order-line .order-form-grid>label{min-width:0;margin:0}
#order-lines .order-line .order-form-grid>label>select,
#order-lines .order-line .order-form-grid>label>input{box-sizing:border-box;width:100%;min-width:0}
#order-lines .order-line .order-create-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;
  margin:0;padding:0;min-width:96px;align-self:end;
}
#order-lines .order-create-actions button{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;min-width:42px;min-height:42px;padding:0;
  border-radius:8px;font-size:22px;font-weight:800;line-height:1;color:#fff;cursor:pointer;
}
#order-lines .order-create-save{background:#247e4e;border:1px solid #399e6a}
#order-lines .order-create-save:hover{background:#329b63}
#order-lines .order-create-delete{background:#a63b48;border:1px solid #c65b67}
#order-lines .order-create-delete:hover{background:#c54b5b}
#order-lines .order-create-confirmed{border-color:#399e6a}
#order-lines .order-create-invalid{border-color:#c65b67}
#add-order-line{margin-top:12px}
@media(max-width:1100px){
  #order-lines .order-line .order-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #order-lines .order-line .order-create-actions{justify-content:flex-end}
}
@media(max-width:650px){
  #order-lines .order-line .order-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V6.6.19: action buttons always occupy the last grid cell on wide screens. */
@media (min-width:1101px){
  #order-lines .order-line .order-form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.95fr) minmax(0,.95fr) minmax(90px,.6fr) 100px!important}
  #order-lines .order-line .order-create-actions{grid-column:6;grid-row:1;justify-self:end;align-self:end;white-space:nowrap}
}
#order-lines .order-create-save,#order-lines .order-create-delete{box-shadow:none;flex:none}
