.purchase-help-button{display:inline-grid;place-items:center;flex:0 0 28px;min-width:28px;min-height:28px;padding:0!important;margin:0;border:1px solid var(--line)!important;border-radius:50%!important;background:transparent!important;color:var(--muted)!important;font-size:12px!important;line-height:1!important;vertical-align:middle;cursor:pointer}
.purchase-help-button:hover,.purchase-help-button:focus-visible{color:var(--accent)!important;border-color:var(--accent)!important}
.purchase-heading-cell{display:flex;align-items:center;justify-content:flex-end;gap:3px;min-width:0;padding:6px;border-right:1px solid var(--line);background:var(--surface)}
.purchase-heading-cell>[data-purchase-sort]{flex:1;min-width:0;padding:4px 0;background:transparent;border:0;color:var(--muted);font-size:12px;text-align:right;white-space:normal;line-height:1.35}
.purchase-heading-cell>[aria-pressed=true]{color:var(--accent)}
.purchase-heading-cell:first-child{position:sticky;left:0;z-index:3;box-shadow:5px 0 10px var(--theme-shadow-color,#00000012)}.purchase-heading-cell:first-child>[data-purchase-sort]{text-align:left}
.excel-column-heading{display:flex;align-items:center;justify-content:flex-end;gap:5px}.excel-column-heading>[data-ex-sort]{min-width:0;white-space:normal}.excel-table th:first-child .excel-column-heading{justify-content:space-between}
.purchase-audit-table th .purchase-help-button{margin:3px 0 0 4px}
.purchase-help-dialog{padding:0;border:1px solid var(--line);border-radius:16px;width:min(520px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);overflow:auto;background:var(--surface,#202127);color:var(--ink,#eee);box-shadow:0 20px 80px var(--theme-shadow-color,#0006)}
.purchase-help-dialog::backdrop{background:var(--theme-overlay,#0008)}
.purchase-help-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface,#202127);z-index:1}
.purchase-help-dialog h2{font-size:18px;line-height:1.35;overflow-wrap:anywhere;margin:0}.purchase-help-dialog [data-help-close]{flex:0 0 36px;width:36px;height:36px;font-size:26px;color:var(--muted);border-radius:8px}.purchase-help-dialog [data-help-close]:hover{background:var(--line)}
.purchase-help-dialog>div{padding:18px 20px 22px}.purchase-help-dialog section+section{margin-top:20px}.purchase-help-dialog h3{font-size:12px;color:var(--muted);font-weight:500;margin:0 0 6px}.purchase-help-dialog p{font-size:14px;line-height:1.6;margin:0;overflow-wrap:anywhere}
@media(pointer:coarse){.purchase-help-button{min-width:32px;min-height:32px;flex-basis:32px}}

.excel-rate-fallback{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}

.purchase-stock-detail{margin:14px 0;padding:14px;border:1px solid var(--border,#3c3c49);border-radius:12px;font-weight:400}.purchase-stock-detail h4{margin:0 0 10px}.purchase-stock-lines{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.purchase-stock-lines article{border-bottom:1px solid var(--border,#3c3c49);padding-bottom:12px;min-width:0}.purchase-stock-lines b{font-size:12px}.purchase-stock-lines dl{display:grid;gap:3px;margin:8px 0}.purchase-stock-lines dl div{display:flex;justify-content:space-between;gap:8px}.purchase-stock-lines dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}.purchase-stock-detail small{display:block;font-size:11px;opacity:.7;overflow-wrap:anywhere}.purchase-stock-detail p{font-size:12px;line-height:1.5}
