/* Shared inventory UI. Business tables and calculations remain in their pages. */
:is(#domesticInventoryRoot,.uim.uim-ledger){--inv-border:#e1e5ee;--inv-muted:#5d687b;--inv-ink:#293247;--inv-accent:#5750cf;--inv-soft:#efedff;font-size:13px;color:var(--inv-ink)}
#domesticInventoryRoot,.uim.uim-ledger:not(.uim-is-detail){display:flex;flex-direction:column;min-width:0}
#domesticInventoryRoot>.domestic-hero{order:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;min-height:36px;margin:0 0 14px;background:transparent;border:0;border-radius:0;box-shadow:none}
#domesticInventoryRoot .domestic-hero h2,#domesticInventoryRoot .domestic-eyebrow{display:none}
#domesticInventoryRoot .domestic-hero p,.uim.uim-ledger .uim-head .uim-muted{font-size:12px;color:var(--inv-muted);line-height:1.6}
.uim.uim-ledger:not(.uim-is-detail)>.uim-head{order:0;min-height:36px;margin-bottom:14px}.uim.uim-ledger>.uim-back{order:-1;align-self:flex-start}
#domesticInventoryRoot .domestic-hero-actions,.uim.uim-ledger .uim-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#domesticInventoryRoot :is(.primary-button,.secondary-button),.uim.uim-ledger .uim-btn{box-sizing:border-box;min-height:36px;padding:7px 12px;border:1px solid var(--inv-border);border-radius:7px;font-size:12px;line-height:1.4;background:#fff;color:var(--inv-ink);box-shadow:none}
#domesticInventoryRoot .primary-button,.uim.uim-ledger .uim-primary{background:var(--inv-accent);border-color:var(--inv-accent);color:#fff}
#domesticInventoryRoot :is(.primary-button,.secondary-button):hover,.uim.uim-ledger .uim-btn:hover{filter:none;background:#f3f2ff;border-color:#b8b4e8;color:#4038a5}
#domesticInventoryRoot .primary-button:hover,.uim.uim-ledger .uim-primary:hover{background:#4841b7;color:#fff}
#domesticInventoryRoot>.domestic-kpis,.uim.uim-ledger:not(.uim-is-detail)>.uim-kpis{order:1;display:grid;grid-template-columns:repeat(var(--uim-kpi-count,5),minmax(0,1fr));gap:12px;background:transparent;border:0;border-radius:0;padding:0;margin:0 0 14px}
#domesticInventoryRoot .domestic-kpis article,.uim.uim-ledger:not(.uim-is-detail) .uim-kpi,.uim.uim-ledger:not(.uim-is-detail) .uim-kpi:nth-child(3n){display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;min-height:86px;box-sizing:border-box;padding:12px 16px;background:#fff;border:1px solid var(--inv-border);border-radius:10px;box-shadow:none;text-align:left}
#domesticInventoryRoot .domestic-kpis strong,.uim.uim-ledger:not(.uim-is-detail) .uim-kpi strong{font-size:24px;font-weight:650;line-height:1.2;margin:0;color:var(--inv-ink);font-variant-numeric:tabular-nums}
#domesticInventoryRoot .domestic-kpis span,.uim.uim-ledger .uim-kpi>.uim-muted:first-child{font-size:12px;color:var(--inv-muted)}
#domesticInventoryRoot .domestic-kpis small,.uim.uim-ledger .uim-kpi>.uim-muted:last-child{font-size:11px;color:var(--inv-muted);line-height:1.4}
#domesticInventoryRoot>.domestic-filter,.uim.uim-ledger:not(.uim-is-detail)>.uim-filters{order:2;background:#fff;border:1px solid var(--inv-border);border-radius:10px;padding:14px;margin:0 0 12px;box-shadow:none;overflow:visible}
.inv-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px 10px;align-items:end;min-width:0}
.inv-filter-grid>*,.inv-control{min-width:0;max-width:100%}
.inv-control,.inv-filter-grid>label,.inv-search-group>label{display:grid;gap:5px;font-size:12px;color:#515d71;font-weight:500;min-width:0}
.inv-control-label{font-size:12px;color:#515d71;font-weight:500}
.inv-search-group{grid-column:span 2;display:flex;gap:8px;align-items:end;min-width:0}.inv-search-group>label{flex:1;min-width:0}.inv-search-group>button{flex:none}
#domesticInventoryRoot .inv-filter-grid :is(select,input),.uim.uim-ledger .inv-filter-grid :is(select,input){box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:36px;min-height:36px;padding:7px 10px;border:1px solid #dce1eb;border-radius:7px;background:#fff;color:var(--inv-ink);font:12px/1.4 inherit}
.inv-filter-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;width:100%;min-width:0;height:36px;padding:7px 10px;border:1px solid #dce1eb;border-radius:7px;background:#fff;color:#293247;font-family:inherit;font-size:12px;line-height:1.4;cursor:pointer;text-align:left}
.inv-filter-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inv-filter-trigger.is-selected{border-color:#b8b4e8;background:#faf9ff;color:#4038a5}.inv-filter-trigger:hover{border-color:#a6a0df}.inv-filter-trigger svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6}
.inv-filter-actions{display:flex;gap:8px;align-items:end;min-height:36px}.inv-filter-feedback{grid-column:1/-1;width:100%;margin:4px 0 0;font-size:12px;line-height:1.5;color:#66501e}
.uim.uim-ledger .uim-chips{margin-top:10px;gap:6px}.uim.uim-ledger .uim-chip{font-size:11px;padding:4px 7px}
#domesticInventoryRoot>.domestic-data-health,.uim.uim-ledger>.inv-data-notice{order:3;margin:0 0 12px;padding:10px 14px;border:1px solid #e3cd98;border-radius:8px;background:#fff8e8;color:#79511b;font-size:12px;line-height:1.6}
#domesticInventoryRoot>.domestic-risk-quick,.uim.uim-ledger>.uim-quickviews{order:4;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
#domesticInventoryRoot .domestic-risk-quick button,.uim.uim-ledger .uim-quick{min-height:32px;padding:6px 10px;border:1px solid var(--inv-border);border-radius:6px;background:#fff;color:var(--inv-muted);font-size:12px;line-height:1.4}
#domesticInventoryRoot .domestic-risk-quick button[aria-pressed=true],.uim.uim-ledger .uim-quick[aria-pressed=true]{background:var(--inv-soft);border-color:#b5afe8;color:#463eb2}
.uim.uim-ledger>.uim-status{order:5;margin:0 0 10px;font-size:12px;color:var(--inv-muted)}.uim.uim-ledger>section.uim-panel{order:6}.uim.uim-ledger>#uimTable{order:7}.uim.uim-ledger>.uim-analysis{order:8}.uim.uim-ledger>details.uim-panel{order:9}
#domesticInventoryRoot>.domestic-table-panel{order:5;border:1px solid var(--inv-border);border-radius:10px;box-shadow:none}.uim.uim-ledger #uimTable{border:1px solid var(--inv-border);border-radius:10px;box-shadow:none;padding:0;overflow:hidden}
#domesticInventoryRoot .domestic-table-head,.uim.uim-ledger .uim-table-actions{padding:14px 16px;border-bottom:1px solid var(--inv-border);margin:0;min-height:52px;box-sizing:border-box}
#domesticInventoryRoot .domestic-table-head h3,.uim.uim-ledger .uim-table-actions h3{font-size:14px;line-height:1.5;margin:0;color:var(--inv-ink)}
#domesticInventoryRoot .domestic-table-head p,.uim.uim-ledger #uimTable>.uim-note{font-size:12px;line-height:1.6;color:var(--inv-muted);margin:5px 0 0}.uim.uim-ledger #uimTable>.uim-note{padding:0 16px 10px}
#domesticInventoryRoot .domestic-table-head>span{font-size:12px}
#domesticInventoryRoot .domestic-table-scroll,.uim.uim-ledger .uim-table-wrap{max-height:65vh;overflow:auto;scrollbar-color:#a3a7c2 #f2f3f8}
#domesticInventoryRoot .domestic-table-scroll table{min-width:1900px;table-layout:fixed;border-collapse:separate;border-spacing:0}
#domesticInventoryRoot .domestic-table-scroll th,.uim.uim-ledger th{font-size:12px;line-height:1.5;padding:11px 12px;color:#515d71;background:#f5f7fb;border-bottom:1px solid var(--inv-border);font-weight:600}
#domesticInventoryRoot .domestic-table-scroll td,.uim.uim-ledger td{font-size:12px;line-height:1.5;padding:10px 12px;vertical-align:middle;background:#fff;border-bottom:1px solid #edf0f5}
#domesticInventoryRoot .domestic-table-scroll td strong{font-weight:550}#domesticInventoryRoot .domestic-table-scroll td small{font-size:11px;color:#657087;line-height:1.5;margin-top:3px}
#domesticInventoryRoot .domestic-table-scroll :is(th,td):first-child{width:130px;min-width:130px;max-width:130px;box-sizing:border-box}#domesticInventoryRoot .domestic-table-scroll :is(th,td):nth-child(2){width:250px;min-width:250px;max-width:250px;box-sizing:border-box}
#domesticInventoryRoot .domestic-table-scroll thead th:first-child,#domesticInventoryRoot .domestic-table-scroll tbody td:first-child{position:sticky;left:0;z-index:2}#domesticInventoryRoot .domestic-table-scroll thead th:nth-child(2),#domesticInventoryRoot .domestic-table-scroll tbody td:nth-child(2){position:sticky;left:130px;z-index:2}#domesticInventoryRoot .domestic-table-scroll thead :is(th:first-child,th:nth-child(2)){z-index:4}
#domesticInventoryRoot .domestic-table-scroll td:nth-child(2) strong{max-width:226px;white-space:normal;overflow-wrap:anywhere}.uim.uim-ledger :is(.uim-overview-table,.uim-age-table)>thead>tr>th:first-child,.uim.uim-ledger :is(.uim-overview-table,.uim-age-table)>tbody>tr:not(.uim-inline)>td:first-child{position:sticky;left:0;z-index:2;min-width:250px;max-width:300px}.uim.uim-ledger :is(.uim-overview-table,.uim-age-table)>thead>tr>th:first-child{z-index:4}
#domesticInventoryRoot .domestic-owner-edit{font-size:11px;line-height:1.5}.uim.uim-ledger .uim-link{font-size:12px}.uim.uim-ledger .uim-muted{font-size:11px;line-height:1.5;color:var(--inv-muted)}
#domesticInventoryRoot .domestic-table-scroll tfoot td,.uim.uim-ledger tfoot td{background:#efedff;font-weight:600;border-top:1px solid #c9c5ec}
#domesticInventoryRoot .domestic-pagination,.uim.uim-ledger .uim-pagebar{padding:12px 16px;margin:0;font-size:12px;color:var(--inv-muted);border-top:1px solid var(--inv-border)}
.inv-filter-popup{position:fixed;z-index:10020;display:flex;flex-direction:column;box-sizing:border-box;padding:14px;background:#fff;border:1px solid #dce1eb;border-radius:10px;box-shadow:0 12px 34px #202c4b25;color:#293247;font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
.inv-popup-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.inv-popup-title strong{font-size:13px}.inv-popup-title span{font-size:11px;color:#657087}
.inv-option-search{box-sizing:border-box;width:100%;height:36px;min-height:36px;padding:7px 10px;border:1px solid #dce1eb;border-radius:7px;font:inherit;color:#293247;caret-color:#5750cf}
.inv-popup-tools{display:flex;gap:12px;margin:9px 0}.inv-popup-tools button{padding:3px 0;border:0;background:none;font-family:inherit;font-size:12px;line-height:1.5;color:#4c44b6;cursor:pointer}.inv-popup-tools button:disabled{color:#7b8494;cursor:default}
.inv-popup-options{min-height:42px;max-height:230px;overflow:auto;flex:1;scrollbar-color:#a3a7c2 #f2f3f8}.inv-popup-options label{display:flex;align-items:center;gap:9px;padding:7px 4px;cursor:pointer;font-size:13px;line-height:1.5;color:#344054;overflow-wrap:anywhere}.inv-popup-options label:hover{background:#f4f3ff}.inv-popup-options input{flex:none;width:16px;height:16px;margin:0;accent-color:#5750cf}.inv-popup-empty{margin:12px 0;color:#657087;font-size:12px}
.inv-popup-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e7e9f0;margin-top:10px;padding-top:12px}.inv-popup-footer button{min-height:34px;padding:7px 12px;background:#fff;border:1px solid #dce1eb;border-radius:7px;font-family:inherit;font-size:12px;line-height:1.4;color:#344054;cursor:pointer}.inv-popup-footer .inv-popup-apply{background:#5750cf;border-color:#5750cf;color:#fff}
.inv-filter-trigger:focus-visible,.inv-filter-popup :is(input,button):focus-visible{outline:2px solid #5750cf;outline-offset:2px}.inv-filter-popup ::selection{background:#e3deff;color:#332d85}
@media(max-width:1100px){#domesticInventoryRoot>.domestic-kpis,.uim.uim-ledger:not(.uim-is-detail)>.uim-kpis{gap:8px}.inv-filter-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}}
@media(max-width:650px){#domesticInventoryRoot>.domestic-hero,.uim.uim-ledger>.uim-head{align-items:flex-start;flex-direction:column}#domesticInventoryRoot>.domestic-kpis,.uim.uim-ledger:not(.uim-is-detail)>.uim-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.inv-filter-grid{grid-template-columns:1fr}.inv-search-group{grid-column:span 1}#domesticInventoryRoot .domestic-filter label{width:auto}#domesticInventoryRoot .domestic-table-scroll table{min-width:1900px}}
@media(pointer:coarse){.inv-filter-trigger,.inv-option-search,.inv-popup-footer button{min-height:44px}.inv-popup-options label{min-height:40px}.inv-option-search{font-size:16px}}

#domesticInventoryRoot .domestic-table-scroll tfoot td:first-child{width:auto;min-width:0;max-width:none}#domesticInventoryRoot .domestic-table-scroll :is(th,td):nth-child(3){width:100px}#domesticInventoryRoot .domestic-table-scroll :is(th,td):nth-child(4){width:170px}#domesticInventoryRoot .domestic-table-scroll :is(th,td):nth-child(5){width:180px}

#domesticInventoryRoot>.domestic-table-panel{padding:0}#domesticInventoryRoot .domestic-kpis article,.uim.uim-ledger:not(.uim-is-detail) .uim-kpi{min-height:96px}#domesticInventoryRoot .domestic-owner-edit{display:inline-block;margin:2px 6px 0 0;line-height:1.5}#domesticInventoryRoot .domestic-aged,.uim.uim-ledger .uim-risk{color:#9b4a24;font-weight:600}
