.stock-mobile-controls,.stock-mobile-cards{display:none}
.stock-mobile-export-menu{display:none}
#stock-mobile-actions{width:min(560px,94vw);max-height:90vh;overflow:auto}
.stock-mobile-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.stock-mobile-dialog-heading h2{margin:0}
.stock-mobile-more-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.stock-mobile-flag{display:flex;align-items:center;gap:8px;margin:0}
#stock-mobile-actions .stock-mobile-flag input{width:20px;height:20px;margin:0}
.stock-mobile-file{padding:14px 0;border-bottom:1px solid #d8e2e4;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.stock-mobile-file small{display:block;color:#53656b}
.proforma-saved-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
#proforma-saved-dialog{width:min(660px,94vw);max-height:90vh;overflow:auto}
#proforma-saved-dialog h2{margin:0}
.proforma-saved-success{padding:14px;background:#e5f2e9;color:#17653e;border-radius:7px;margin:16px 0}
.proforma-saved-success strong{display:block;font-size:18px}
.proforma-saved-quantities{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.proforma-saved-quantities div{padding:12px;background:#edf4f5;border-radius:6px}
.proforma-saved-quantities span{display:block;color:#53656b;font-size:13px}
.proforma-saved-quantities strong{display:block;margin-top:3px;font-size:18px;font-variant-numeric:tabular-nums}
.proforma-saved-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
@media(max-width:800px){
  .stock-mobile-export-menu{display:inline-block;max-width:100%;vertical-align:top}
  .stock-mobile-export-menu>summary{min-height:44px;display:flex;align-items:center;list-style:none}
  .stock-mobile-export-menu>div{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;max-width:100%}
  .stock-mobile-export-menu:not([open])>div{display:none}
  .stock-mobile-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:15px 0}
  .stock-mobile-controls>label{display:grid;gap:5px;color:#53656b;font-size:13px;margin:0;flex:1;min-width:150px}
  .stock-mobile-controls select{font:inherit;font-size:16px;padding:9px;border:1px solid #bdced2;border-radius:6px;background:#fff;color:#17212b;max-width:100%}
  .stock-mobile-view{display:flex;gap:6px}
  .stock-mobile-view button[aria-pressed=true]{background:#e5f0f2;color:#123e48;border-color:#14747e}
  .stock-mobile-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;color:#53656b;font-size:13px}
  #stock.stock-mobile-list .stock-table-scroll{display:none}
  #stock.stock-mobile-list .stock-mobile-cards{display:grid;gap:12px}
  .stock-mobile-invoice{background:#fff;border:1px solid #d8e2e4;border-radius:8px;padding:14px;min-width:0}
  .stock-mobile-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
  .stock-mobile-card-top label{display:flex;align-items:center;gap:10px;font-size:14px}
  .stock-mobile-card-top input{width:20px;height:20px;margin:0;accent-color:#14747e}
  .stock-mobile-card-top .tag{white-space:normal;overflow-wrap:anywhere}
  .stock-mobile-card-top .stock-mobile-warning{background:#fff2d8;color:#825212}
  .stock-mobile-invoice h2{font-size:16px;line-height:1.4;margin:12px 0 7px;overflow-wrap:anywhere}
  .stock-mobile-quantity{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
  .stock-mobile-quantity span{font-size:13px;color:#53656b;overflow-wrap:anywhere}
  .stock-mobile-quantity strong{font-variant-numeric:tabular-nums;white-space:nowrap}
  .stock-mobile-invoice .stock-mobile-context{font-size:13px;color:#53656b;margin:6px 0 0;overflow-wrap:anywhere}
  .stock-mobile-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
  .stock-mobile-controls button,.stock-mobile-card-actions button,#stock-mobile-actions button{min-height:44px}
  #stock.stock-mobile-list #selection-note{margin-top:13px}
  #stock:not(.stock-mobile-list) .stock-table-scroll{max-height:none;overflow:auto}
}
@media(max-width:480px){.proforma-saved-quantities{grid-template-columns:1fr}.proforma-saved-actions button{min-height:44px}.stock-mobile-file{align-items:flex-start;flex-direction:column}}
