.receipt-editor{min-width:0}
.receipt-date-note{grid-column:1/-1;margin:-6px 0 14px;color:var(--muted);font-size:12px}
.receipt-line{background:#f8faf5;border:1px solid var(--line);border-radius:10px;padding:14px;margin-bottom:10px}
.receipt-fields{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(86px,1fr) minmax(66px,.55fr);align-items:start;gap:12px}
.receipt-fields>*,.receipt-fields .item-picker{min-width:0;margin:0}
.receipt-fields label{margin:0}
.receipt-fields input,.receipt-unit{height:42px;font-size:13px;font-weight:400}
.receipt-quantity,.receipt-unit{font-variant-numeric:tabular-nums}
.receipt-unit{display:flex;align-items:center;overflow-wrap:anywhere;margin-top:6px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.receipt-add{margin-top:2px}
.receipt-remove{display:block;margin:8px 0 0 auto;padding:5px 8px;font-size:11px}
.issue-stock-hint{margin:8px 0 0;font-size:11px}
@media(max-width:560px){.receipt-line{padding:9px}.receipt-fields{grid-template-columns:minmax(0,1.7fr) minmax(65px,.8fr) minmax(47px,.55fr);gap:6px}.receipt-fields label{font-size:11px}.receipt-fields input,.receipt-unit{height:38px;font-size:12px;padding-left:6px}.receipt-unit{padding-right:6px}.receipt-fields .item-picker-control input{padding-right:24px}.receipt-fields .item-picker-toggle{height:36px;width:23px}}

.receipt-history-filters{display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(130px,1.1fr) repeat(2,minmax(125px,.8fr)) minmax(130px,.85fr);align-items:start;gap:12px;margin:0 0 18px}
.receipt-history-filters label{min-width:0;margin:0}
.receipt-history-filters select,.receipt-history-filters input{width:100%;height:42px;font-size:13px;font-weight:400}
.receipt-item-results td:nth-child(2),.receipt-item-results td:nth-child(3),.receipt-item-results td:nth-child(4){white-space:nowrap}
.receipt-batch-table td:nth-child(2),.receipt-batch-table td:nth-child(3),.receipt-batch-table td:last-child{white-space:nowrap}
.receipt-batch-link{border:0;background:transparent;padding:0;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:inherit;font-weight:700;color:var(--green)}
.receipt-batch-link:hover{background:transparent;text-decoration:underline}
.receipt-batch-heading{margin:0 0 14px;font-size:13px}
.receipt-history-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;color:var(--muted);font-size:12px}
.receipt-history-pages{display:flex;flex-wrap:wrap;gap:6px}
.receipt-history-pages button:disabled{cursor:default}
@media(max-width:1120px){.receipt-history-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.receipt-history-filters>.category-filter{grid-column:span 2}}
@media(max-width:580px){
  .receipt-history-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .receipt-history-filters>label:first-child,.receipt-history-filters>.category-filter{grid-column:1/-1}
  .receipt-history-filters input,.receipt-history-filters select{padding-left:8px;padding-right:8px}
  .receipt-batch-table th,.receipt-batch-table td{padding:10px 6px}
  .receipt-batch-table th{white-space:normal;line-height:1.3}
}
