
#inventoryOverview{--paper:light-dark(#fff,#192431);--canvas:light-dark(#f3f6fa,#111a25);--ink:light-dark(#173755,#edf3fa);--muted-ink:light-dark(#586b7e,#b2c2d3);--rule:light-dark(#dce4ed,#354355);--blue:#287bc6;--orange:#e48330;--green:#24916c;--red:light-dark(#bf3542,#ff8995);font:14px/1.45 'Segoe UI',sans-serif;color:var(--ink);background:var(--canvas);padding:18px;border-radius:12px}
#inventoryOverview *{box-sizing:border-box}
#inventoryOverview h2,#inventoryOverview h3,#inventoryOverview p{margin:0}
#inventoryOverview h2{font-size:21px}#inventoryOverview h3{font-size:18px}
#inventoryOverview button{font:inherit;color:inherit;cursor:pointer}
#inventoryOverview .top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
#inventoryOverview .sample{font-size:14px;color:var(--muted-ink)}
#inventoryOverview .tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
#inventoryOverview .tabs span{padding:12px 8px;text-align:center;background:var(--paper);border:1px solid var(--rule);border-radius:9px;font-weight:600}
#inventoryOverview .tabs .active{background:#f5c817;color:#173755;border-color:#f5c817}
#inventoryOverview .panel{background:var(--paper);border:1px solid var(--rule);border-radius:12px;padding:16px;min-width:0}
#inventoryOverview .panel-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
#inventoryOverview .minor{color:var(--muted-ink);font-size:14px}
#inventoryOverview .abc-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:22px;align-items:center}
#inventoryOverview .stack-row{display:grid;grid-template-columns:88px 1fr;align-items:center;gap:12px;margin:10px 0}
#inventoryOverview .stack{display:flex;height:28px;gap:2px;overflow:hidden;border-radius:5px}
#inventoryOverview .stack button{border:0;padding:0;color:white;font-size:14px;min-width:0}
#inventoryOverview .groups{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#inventoryOverview .group{background:var(--canvas);border:0;border-radius:8px;padding:10px 6px;text-align:center}
#inventoryOverview .group b{display:block;font-size:23px;margin:3px 0}
#inventoryOverview .group small{display:block;color:var(--muted-ink);font-size:14px}
#inventoryOverview .dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}
#inventoryOverview .lower{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
#inventoryOverview .metric{display:flex;gap:16px;padding-bottom:10px;border-bottom:1px solid var(--rule);margin-bottom:8px;align-items:baseline}
#inventoryOverview .metric b{font-size:25px;font-variant-numeric:tabular-nums}
#inventoryOverview .metric span{font-size:14px;color:var(--muted-ink)}
#inventoryOverview .row{display:grid;grid-template-columns:minmax(105px,1fr) minmax(65px,1.1fr) 78px;gap:10px;align-items:center;min-height:58px;border-bottom:1px solid var(--rule)}
#inventoryOverview .name{font-weight:600;font-size:15px;overflow-wrap:anywhere}
#inventoryOverview .name small{display:block;font-weight:400;font-size:13px;color:var(--muted-ink)}
#inventoryOverview .track{position:relative;height:15px;background:var(--canvas);border-radius:3px}
#inventoryOverview .bar{height:100%;border-radius:3px;background:var(--blue)}
#inventoryOverview .marker{position:absolute;top:-6px;bottom:-6px;left:35%;width:2px;background:var(--ink)}
#inventoryOverview .value{text-align:center;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
#inventoryOverview .value small{display:block;font-size:13px;color:var(--muted-ink);font-weight:400}
#inventoryOverview .negative{color:var(--red)}
#inventoryOverview .scale{display:grid;grid-template-columns:minmax(105px,1fr) minmax(65px,1.1fr) 78px;gap:10px;margin:10px 0 0;font-size:12px;color:var(--muted-ink)}
#inventoryOverview .scale>div{display:flex;justify-content:space-between;position:relative}
#inventoryOverview .scale em{position:absolute;left:35%;transform:translateX(-50%);font-style:normal;font-weight:600;color:var(--ink)}
#inventoryOverview .more{margin-top:12px;border:1px solid var(--rule);border-radius:7px;background:var(--paper);padding:7px 12px;font-size:15px}
#inventoryOverview dialog{background:var(--paper);color:var(--ink);border:1px solid var(--rule);border-radius:12px;width:min(860px,95%);max-height:85vh;padding:0}
#inventoryOverview dialog::backdrop{background:#0006}
#inventoryOverview .dialog-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:14px;background:var(--paper);padding:16px;border-bottom:1px solid var(--rule);z-index:2}
#inventoryOverview .close{border:0;background:var(--canvas);width:32px;height:32px;border-radius:6px;font-size:23px}
#inventoryOverview .dialog-content{padding:0 16px 16px}
#inventoryOverview table{width:100%;border-collapse:collapse;font-size:14px}
#inventoryOverview th,#inventoryOverview td{text-align:center;padding:11px 6px;border-bottom:1px solid var(--rule)}
#inventoryOverview th{font-size:14px;background:var(--paper)}
@media(max-width:760px){#inventoryOverview .abc-layout,#inventoryOverview .lower{grid-template-columns:1fr}#inventoryOverview .abc-layout{gap:6px}#inventoryOverview .tabs{font-size:14px}#inventoryOverview{padding:10px}#inventoryOverview .panel{padding:12px}}
@media(max-width:400px){#inventoryOverview .top{align-items:flex-start;flex-direction:column}#inventoryOverview .row,#inventoryOverview .scale{grid-template-columns:minmax(80px,1fr) minmax(50px,1fr) 65px;gap:6px}#inventoryOverview .metric{gap:9px}#inventoryOverview .tabs{gap:4px;font-size:12px}}

#inventoryOverview{padding:0;border-radius:0;background:transparent;--paper:var(--surface,#fff);--canvas:var(--surface-soft,#f4f7f9);--ink:var(--navy,#173755);--muted-ink:var(--muted,#586b7e);--rule:var(--line,#dce4ed)}
#inventoryOverview[hidden],#overviewContent[hidden]{display:none!important}#inventoryOverview .panel{margin:0;padding:12px 14px}#inventoryOverview .row{min-height:50px}#inventoryOverview .panel-head{margin-bottom:8px}#inventoryOverview .group{padding:8px 6px}#inventoryOverview .lower{margin-top:12px;gap:12px}#inventoryOverview .overview-meta{font-size:14px;color:var(--muted-ink);text-align:right;margin:0 0 8px}#inventoryOverview .overview-warning{color:var(--red);background:var(--paper);border:1px solid var(--rule);border-radius:7px;padding:8px 12px;margin-bottom:8px}#inventoryOverview .empty{padding:18px 0;color:var(--muted-ink)}#inventoryOverview .table-scroll{overflow:auto}#inventoryOverview dialog .dialog-head{padding:12px 16px}#inventoryOverview dialog th{position:sticky;top:0}#inventoryOverview .more{margin-top:8px}#inventoryOverview .dialog-content .row{min-height:58px}
.inventory-page .tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}.inventory-page .tabs button{min-width:0;font-size:22px!important;gap:8px}.inventory-page [hidden]{display:none!important}@media(max-width:720px){.inventory-page .tabs button{font-size:15px!important;min-height:54px;gap:4px}.inventory-page .tabs button>i{font-size:20px}}

#inventoryOverview .panel-head{padding:0!important;border:0!important;min-height:0!important}#inventoryOverview .bar{background:var(--bar-color,var(--blue))!important}#inventoryOverview .stack button{min-height:0!important;border-radius:0!important;padding:0!important;line-height:28px}#inventoryOverview .name{font-size:14px}#inventoryOverview .value{font-size:14px}

/* Size charts against the available content area, including the desktop sidebar. */
#inventoryOverview{container-type:inline-size;min-width:0;max-width:100%}
#inventoryOverview .abc-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
#inventoryOverview .lower{grid-template-columns:repeat(2,minmax(0,1fr))}
#inventoryOverview .groups{grid-template-columns:repeat(3,minmax(0,1fr))}
#inventoryOverview .abc-layout>*,#inventoryOverview .groups>*,#inventoryOverview .row>*,#inventoryOverview .scale>*{min-width:0}
#inventoryOverview .metric{flex-wrap:wrap;column-gap:14px;row-gap:4px}
#inventoryOverview .metric>div{min-width:0;overflow-wrap:anywhere}
#inventoryOverview .row,#inventoryOverview .scale{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 86px;gap:8px}
#inventoryOverview .value,#inventoryOverview .group small{overflow-wrap:anywhere}
@container(max-width:680px){#inventoryOverview .lower,#inventoryOverview .abc-layout{grid-template-columns:minmax(0,1fr)}#inventoryOverview .abc-layout{gap:8px}}
@container(max-width:360px){#inventoryOverview .stack-row{grid-template-columns:70px minmax(0,1fr);gap:8px}#inventoryOverview .row,#inventoryOverview .scale{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 70px;gap:6px}}
@media(min-width:761px) and (max-width:1100px){.inventory-page .tabs button{font-size:17px!important;gap:5px}.inventory-page .tabs button>i{font-size:22px}}

/* Override the inventory page's 900px minimum only inside ABC details. */
#inventoryOverview #overviewDetails table{min-width:0!important;width:100%;table-layout:fixed}
#inventoryOverview #overviewDetails th,#inventoryOverview #overviewDetails td{white-space:normal;overflow-wrap:anywhere}
#inventoryOverview #overviewDetails th:nth-child(1){width:15%}
#inventoryOverview #overviewDetails th:nth-child(2){width:28%}
#inventoryOverview #overviewDetails th:nth-child(3){width:23%}
#inventoryOverview #overviewDetails th:nth-child(4){width:14%}
#inventoryOverview #overviewDetails th:nth-child(5){width:20%}
#inventoryOverview #overviewDetails .table-scroll{width:100%;min-width:0;max-width:100%}
@media(max-width:600px){#inventoryOverview #overviewDetails .dialog-content{padding:0 8px 12px}#inventoryOverview #overviewDetails td,#inventoryOverview #overviewDetails th{padding:10px 4px}}
