.inventory-page{min-width:0;font-size:13px}.inv-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;flex-wrap:wrap}.inventory-page button,.inventory-page select,.inventory-page input:not([type=checkbox]){min-height:32px;padding:5px 8px;font-size:13px}.inv-filters,.inv-filter-second{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.inv-filters label{display:flex;align-items:center;gap:5px;white-space:nowrap;color:var(--muted)}.inv-filters select{max-width:185px}.inv-search{flex:1;min-width:190px}.inv-search input{width:100%}.inv-filter-second{justify-content:space-between}.inv-filter-second .toolbar{gap:6px}.inv-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:5px 0 7px}.inv-caption b{color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}.inv-caption b.danger{color:var(--red)}.inv-demo{font-weight:600;color:#8a600a}.inv-report-scroll{height:max(290px,calc(var(--frame) - 124px));min-height:290px;max-height:800px;overflow:auto;position:relative;border:1px solid #cbd7ce;border-radius:5px;background:white;isolation:isolate;overscroll-behavior:contain;scrollbar-gutter:stable}.inv-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:13px;font-variant-numeric:tabular-nums;table-layout:fixed}.inv-table th,.inv-table td{height:32px;min-width:66px;padding:4px 8px;text-align:right;border-right:1px solid #e0e7e1;border-bottom:1px solid #e3e9e4;white-space:nowrap;color:var(--ink);line-height:1.4}.inv-table thead th{position:sticky;top:0;z-index:5;background:#eaf0eb;color:#3b5043;font-weight:600;height:40px}.inv-table thead small{font-size:10px;color:#79867d;display:block;font-weight:400}.inv-table tbody th{font-weight:500}.inv-table .inv-first{position:sticky;left:0;text-align:left;width:210px;min-width:210px;max-width:210px;background:white;z-index:3;border-right:2px solid #cbd7ce;white-space:normal}.inv-table .inv-first>span{display:inline-block;max-width:172px;vertical-align:middle;overflow-wrap:anywhere}.inv-table .inv-first>small{margin-left:5px;font-size:10px;font-weight:400;color:var(--muted);white-space:nowrap}.inv-table .inv-last{position:sticky;right:0;z-index:3;min-width:88px;background:white;border-left:2px solid #cbd7ce;font-weight:600}.inv-table tbody tr:nth-child(even)>*{background:#f3f7f4}.inv-table tbody tr.inv-group>*{background:#e6efe8;font-weight:650;color:#25513b}.inv-table tbody tr:hover>*{background:#e8f2e8}.inv-table tbody tr:focus-within>*{background:#e8f2e8}.inv-table .inv-branch{padding-left:24px}.inv-table thead .inv-first,.inv-table thead .inv-last{z-index:7;background:#e3ece5}.inv-table tfoot th,.inv-table tfoot td{position:sticky;bottom:0;z-index:5;background:#e8f0e9;font-weight:700;border-top:2px solid #8eaf98}.inv-table tfoot .inv-first,.inv-table tfoot .inv-last{z-index:7;background:#e1ece3}.inv-table button.inv-number{border:0;padding:1px 0;min-height:24px;border-radius:0;background:none;width:100%;font:inherit;text-align:right;display:block;color:inherit}.inv-table button.inv-number:hover{text-decoration:underline;color:var(--accent)}.inv-table button.inv-fold{display:inline-flex;min-height:22px;padding:0 3px;border:0;background:none;font:inherit;margin-left:-4px}.inv-table .inv-negative{color:var(--red)}.inv-footnote{font-size:11px;color:var(--muted);margin-top:7px}.inv-records{height:max(320px,calc(var(--frame) - 48px));overflow:auto;border:1px solid var(--line);background:white;border-radius:5px}.inv-detail-table{font-size:13px}.inv-detail-table th,.inv-detail-table td{padding:6px 9px;white-space:nowrap}.inv-detail-table small{display:block;color:var(--muted);font-size:11px;margin-top:1px}.inv-detail-table tbody tr:nth-child(even)>*{background:#f3f7f4}.inv-detail-table tbody tr:hover>*{background:#eaf2eb}.inv-event-scroll{max-height:49dvh;overflow:auto;margin:8px 0 14px;border:1px solid var(--line)}.inv-reconcile{padding:7px 9px;background:#edf3ed;font-size:12px}.inv-count-scroll{max-height:48dvh;overflow:auto;border:1px solid var(--line)}.inv-count-table{font-size:12px;min-width:500px}.inv-count-table th,.inv-count-table td{padding:5px 6px;white-space:nowrap}.inv-count-table tbody th{font-weight:500;color:var(--ink);background:white;position:static}.inv-count-table tbody tr:nth-child(even)>*{background:#f3f7f4}.inv-count-table input{width:75px;padding:5px!important;min-height:30px;text-align:right}.inv-day-summary{display:flex;gap:10px;flex-wrap:wrap;padding:10px;background:#edf3ed;border-radius:5px;font-size:12px;margin-bottom:14px}.inv-day-summary b{display:block;font-size:17px;font-variant-numeric:tabular-nums}@media(max-width:760px){.inv-top{align-items:start}.inv-top .toolbar{gap:5px}.inventory-page button,.inventory-page select,.inventory-page input:not([type=checkbox]){min-height:34px;font-size:12px;padding:5px 7px}.inv-filters{gap:6px}.inv-filters label{font-size:11px}.inv-filters select{max-width:154px}.inv-search{min-width:175px}.inv-filters input[type=date]{width:137px}.inv-filter-second{gap:5px}.inv-filter-second .toolbar{width:100%;gap:5px}.inv-filter-second select{max-width:calc(50vw - 21px)}.inv-caption{font-size:11px;gap:3px}.inv-report-scroll{height:440px;max-height:62dvh;min-height:300px}.inv-table{font-size:12px}.inv-table th,.inv-table td{padding:4px 6px;min-width:58px;height:32px}.inv-table .inv-first{width:132px;min-width:132px;max-width:132px}.inv-table .inv-first>span{max-width:109px}.inv-table .inv-first>small{font-size:9px;margin-left:2px}.inv-table .inv-last{min-width:69px}.inv-table .inv-branch{padding-left:16px}.inv-records{height:470px;max-height:65dvh}.inv-detail-table th,.inv-detail-table td{padding:5px 7px;font-size:12px}.inv-footnote{line-height:1.5}}
/* Body names follow their row vertically; only the horizontal position is fixed. */
.inv-table tbody .inv-first,.inv-table tfoot .inv-first{top:auto}.inv-table tfoot td{top:auto}
/* Reports stay dense horizontally inside their own scroll area, never the page. */
.inventory-page{display:flex;flex-direction:column;height:100%;min-height:0;min-width:0;max-width:100%;overflow:hidden}
.inventory-page #inv-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}
.inv-period-shortcuts{display:flex;align-items:center;gap:5px;flex-shrink:0;margin-bottom:5px;flex-wrap:wrap}
.inv-period-shortcuts button{min-height:36px;padding:5px 10px;font-size:14px;border:0;background:transparent}
.inv-period-shortcuts button[aria-pressed=true]{background:#e5eee8;color:#175a3e;font-weight:750}
.inv-period-shortcuts label{margin-left:auto;display:flex;align-items:center;gap:4px;font-size:12px;color:#5d7063}
.inv-period-shortcuts input[type=date]{width:140px;min-width:0;font-size:13px;min-height:36px;padding:4px}
.inv-advanced{flex-shrink:0;margin-bottom:4px}.inv-advanced summary{font-size:12px;color:#5c7063;cursor:pointer;padding:3px 0}
.inv-advanced[open]{background:#edf3ef;padding:5px}
.inv-filters,.inv-filter-second,.inv-caption{flex-shrink:0}
.inv-report-scroll{flex:1;height:auto;min-height:160px;max-height:none;width:100%;max-width:100%;border:0;border-block:1px solid #ccd9cf;border-radius:0;scrollbar-gutter:auto}
.inv-table{min-width:100%;max-width:none}.inv-table tbody .inv-first{overflow-wrap:anywhere}
@media(max-width:900px){
 .inv-filters{gap:5px;margin-bottom:5px;flex-wrap:nowrap}
 .inv-filters label{font-size:12px;min-width:0}.inv-search{min-width:0;flex:1}.inv-search input{min-width:0;font-size:16px!important}
 .inv-filters select{min-width:0;max-width:138px;font-size:14px}
 .inv-filters input,.inv-filters select{min-height:38px!important}
 .inv-period-shortcuts{flex-wrap:nowrap;gap:3px}
 .inv-period-shortcuts button{font-size:14px;padding:5px 8px;min-height:36px}
 .inv-period-shortcuts label{font-size:11px;min-width:0;gap:2px}
 .inv-period-shortcuts input[type=date]{width:123px;font-size:12px;padding:3px;min-height:36px}
 .inv-filter-second{gap:4px;margin:0 0 4px;align-items:stretch;flex-wrap:nowrap}
 .inv-filter-second .toolbar{display:grid;grid-template-columns:1fr 1fr;width:auto;flex:1;gap:4px;min-width:0}
 .inv-filter-second select{min-width:0;width:100%;max-width:100%;min-height:34px;font-size:12px}
 .inv-filter-second #inv-metric{grid-column:1/-1}
 .inv-filter-second button{flex-shrink:0;padding:5px 8px;font-size:12px}
 .inv-caption{font-size:11px;margin:2px 0 5px;gap:2px}
 .inv-report-scroll{height:auto;min-height:150px;max-height:none}
 .inv-table{font-size:13px}
 .inv-table th,.inv-table td{min-width:58px;height:32px;padding:4px 6px}
 .inv-table .inv-first{width:124px;min-width:124px;max-width:124px}
 .inv-table .inv-first>span{max-width:104px;font-size:14px;line-height:1.25}
 .inv-table .inv-first>small{font-size:10px}.inv-table .inv-last{position:static;min-width:74px}
 .inv-table thead .inv-last{position:sticky;top:0;right:auto}
 .inv-table tfoot .inv-last{position:sticky;bottom:0;right:auto}
 .inv-table .inv-branch{padding-left:13px}
 .inv-footnote{font-size:11px;line-height:1.4;margin-top:4px;flex-shrink:0}
}
.inv-record-options{flex-shrink:0;margin-bottom:3px}
.inv-record-options>summary{font-size:12px;color:#526d5a;cursor:pointer;padding:3px 0}
.inv-record-options[open]{padding:5px;background:#edf3ef}
.inv-record-options .inv-top{margin:4px 0 0}
