.modal.inventory-item-choice-dialog{width:min(420px,calc(100vw - 32px));max-width:calc(100vw - 32px);margin:0;}
.inventory-item-choice-dialog .modal-head,.inventory-item-choice-dialog .modal-foot{padding:12px 16px;}
.inventory-item-choice-dialog .modal-head h2{font-family:inherit;font-size:16px;font-weight:750;}
.inventory-item-choice-dialog .modal-body{padding:14px 16px;}
.inventory-purchase-choice-lead{margin:0 0 10px;color:var(--ink-soft);font-size:12.5px;line-height:1.4;}
.inventory-purchase-choice{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}
.inventory-purchase-choice>button{display:grid;grid-template-columns:32px minmax(0,1fr) 14px;align-items:center;gap:10px;width:100%;height:auto;min-width:0;padding:12px;text-align:left;font:inherit;color:var(--ink);white-space:normal;cursor:pointer;box-shadow:none;}
.inventory-purchase-choice-copy{display:grid;gap:3px;min-width:0;}
.inventory-purchase-choice-copy b{font-size:12.5px;font-weight:750;line-height:1.4;}
.inventory-purchase-choice-copy>span{color:var(--ink-soft);font-size:12px;font-weight:400;line-height:1.4;}
.inventory-purchase-choice-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--accent);}
.inventory-purchase-choice-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.inventory-purchase-choice-arrow{color:var(--ink-soft);}
.inventory-purchase-choice-arrow svg{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.inventory-purchase-choice>button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.inventory-purchase-controls,.inventory-purchase-new-fields,[data-purchase-accounting]{margin:0;padding:0;border:0;min-width:0;}
.inventory-purchase-box{margin:0 0 8px;padding:14px;min-width:0;}
.inventory-purchase-box>h3{margin:0 0 10px;font-family:inherit;font-size:12.5px;font-weight:750;line-height:1.4;color:var(--ink);text-transform:none;letter-spacing:normal;}
.inventory-purchase-header{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) repeat(2,minmax(145px,1fr));gap:12px;margin-bottom:12px;}
.inventory-purchase-table-shell{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:8px;margin-bottom:8px;box-shadow:none;}
.inventory-purchase-table-shell>table{width:100%;margin:0;border:0;box-shadow:none;}
.inventory-purchase-table{min-width:760px;}
.inventory-purchase-table th,.inventory-purchase-table td{padding:7px 8px;vertical-align:middle;}
.inventory-purchase-table th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.inventory-purchase-table th:first-child{width:34%;}
.inventory-purchase-table input,.inventory-purchase-table select{width:100%;min-width:0;}
.inventory-purchase-table [name="purchaseQuantity"],.inventory-purchase-table [name="purchaseUnitCost"]{min-width:75px;}
.inventory-purchase-table [data-purchase-details]>td{padding:4px 10px 12px;}
.inventory-purchase-new-fields{display:grid;grid-template-columns:110px minmax(140px,1fr) minmax(120px,1fr) minmax(170px,1.5fr);gap:10px 12px;}
.inventory-purchase-new-fields [name="purchaseName"][readonly]{font-weight:700;border-color:transparent;background:transparent;box-shadow:none;}
.inventory-purchase-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.75fr);gap:12px;align-items:start;}
.inventory-purchase-totals{margin:12px 0;}
.inventory-purchase-totals>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;}
.inventory-purchase-totals dd{margin:0;font-weight:700;white-space:nowrap;}
@media(max-width:900px){.inventory-purchase-header,.inventory-purchase-new-fields{grid-template-columns:repeat(2,minmax(0,1fr));}.inventory-purchase-bottom{grid-template-columns:1fr;}}
@media(max-width:520px){.inventory-purchase-choice,.inventory-purchase-header,.inventory-purchase-new-fields{grid-template-columns:1fr;}}
