.stock-workspace{display:grid;gap:17px;min-width:0}.stock-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.stock-search{display:flex;align-items:center;gap:10px;width:min(490px,100%);border:1px solid var(--border);background:var(--surface);border-radius:9px;padding:0 13px;min-height:41px;color:var(--muted)}.stock-search>svg{width:16px;height:16px;color:var(--faint);flex-shrink:0}.stock-search input{width:100%;min-width:0;font-size:11px;background:transparent;border:0;padding:11px 0;color:var(--text);outline:none}.stock-search input::placeholder{color:var(--faint)}.stock-search:focus-within{outline:2px solid var(--accent);outline-offset:3px}.stock-search input:focus-visible{outline:none}.stock-result-count{font-size:10px;color:var(--faint);white-space:nowrap}.stock-list-header,.stock-product-row{display:grid;grid-template-columns:60px minmax(0,1fr) 75px 120px 33px;align-items:center;gap:18px}.stock-list-header{font-size:8px;font-weight:600;color:var(--faint);letter-spacing:.8px;text-transform:uppercase;padding:0 20px;margin-top:4px}.stock-list-header>span:nth-child(3),.stock-list-header>span:nth-child(4){text-align:right}.stock-list{display:grid;gap:10px}.stock-record{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:border-color .15s}.stock-record:hover{border-color:var(--border-strong)}.stock-record.is-expanded{border-color:color-mix(in srgb,var(--accent) 30%,transparent)}.stock-product-row{padding:17px 20px;min-height:95px}.stock-photo{position:relative;width:60px;height:60px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;flex-shrink:0;background:var(--surface-soft);color:var(--faint);border:1px dashed var(--border-strong);border-radius:9px;padding:0;overflow:hidden;cursor:pointer;transition:color .15s,border-color .15s}.stock-photo>svg{width:21px;height:21px;stroke-width:1.4}.stock-photo>span:not(.stock-photo-change){font-size:7px;font-weight:500;letter-spacing:.2px}.stock-photo:hover{color:var(--accent);border-color:var(--accent)}.stock-photo.has-photo{border-style:solid}.stock-photo img{display:block;width:100%;height:100%;object-fit:cover;background:var(--surface-soft)}.stock-photo-change{display:grid;place-items:center;position:absolute;right:3px;bottom:3px;width:20px;height:20px;background:var(--surface);border:1px solid var(--border);border-radius:5px;color:var(--muted);opacity:.85}.stock-photo-change svg{height:12px;width:12px}.stock-photo:hover .stock-photo-change{color:var(--accent);opacity:1}.stock-product-copy{min-width:0}.stock-product-name{display:block;width:100%;border:0;padding:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}.stock-product-name>strong{display:block;font-size:12px;font-weight:580;line-height:1.6;overflow-wrap:anywhere}.stock-product-name>span{display:block;font-size:9px;color:var(--faint);line-height:1.7;margin-top:3px;overflow-wrap:anywhere}.stock-product-name>span>span{padding:0 4px}.stock-product-name:hover>strong{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.stock-edit-history{display:inline-flex;align-items:center;gap:5px;font-size:8px;color:var(--muted);border:0;background:none;padding:4px 0;min-height:25px;text-align:left;line-height:1.5;margin-top:4px}.stock-edit-history svg{width:11px;height:11px;flex-shrink:0}.stock-edit-history:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.stock-quantity{text-align:right;font-size:21px;font-weight:600;letter-spacing:-.5px;line-height:1.3;color:var(--text);font-variant-numeric:tabular-nums}.stock-quantity.is-negative,.stock-detail-balance .is-negative{color:var(--negative)}.stock-product-price{text-align:right;font-size:12px;font-weight:550;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.stock-expand{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;border:1px solid var(--border);background:var(--surface-soft);color:var(--muted);padding:0;transition:color .15s,background .15s}.stock-expand svg{width:16px;height:16px;transition:transform .18s}.stock-expand:hover{color:var(--accent);background:var(--accent-soft)}.stock-expand[aria-expanded="true"]{color:var(--accent);background:var(--accent-soft);border-color:transparent}.stock-expand[aria-expanded="true"] svg{transform:rotate(180deg)}.stock-unit-details{padding:18px 20px 20px 98px;border-top:1px solid var(--border);background:var(--surface-soft)}.stock-unit-details[hidden]{display:none}.stock-no-codes{font-size:10px;color:var(--faint);margin:0;padding:0}.stock-units-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;margin-bottom:12px}.stock-units-heading>strong{font-weight:550;color:var(--muted)}.stock-units-heading>span{font-size:8px;color:var(--faint)}.stock-units-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.stock-units-list li{display:flex;align-items:center;flex-wrap:wrap;gap:10px 23px;border-bottom:1px solid var(--border);padding:9px 0}.stock-units-list li:last-child{border-bottom:0;padding-bottom:0}.stock-unit-code{display:inline-flex;align-items:center;gap:7px;min-width:0}.stock-unit-code>span{font-size:7px;font-weight:500;color:var(--faint);letter-spacing:.6px;white-space:nowrap}.stock-unit-code>strong{font-size:11px;font-weight:500;letter-spacing:.4px;color:var(--text);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.stock-unit-status{margin-left:auto;font-size:8px;color:var(--muted)}.stock-list-help{font-size:9px;color:var(--faint);line-height:1.8;margin:0}.stock-empty{border:1px dashed var(--border-strong);border-radius:13px;padding:45px 25px;text-align:center;background:var(--surface-soft)}.stock-empty>svg{width:34px;height:34px;color:var(--faint);margin-bottom:12px}.stock-empty h2{font-size:17px;font-weight:600}.stock-empty p{color:var(--muted);font-size:11px;line-height:1.8;margin-top:8px}.stock-product-detail{min-width:0}.stock-detail-summary{display:flex;align-items:center;gap:14px;padding:22px 0 23px;border-bottom:1px solid var(--border);margin-bottom:23px}.stock-detail-summary .stock-detail-photo{width:65px;height:65px;border-radius:10px}.stock-detail-identification{flex:1;min-width:0}.stock-detail-identification>span{font-size:11px;line-height:1.7;display:block;color:var(--muted);overflow-wrap:anywhere}.stock-detail-identification>small{font-size:9px;line-height:1.7;display:block;color:var(--faint);margin-top:3px;overflow-wrap:anywhere}.stock-detail-identification .stock-edit-history{font-size:9px;margin-top:6px}.stock-detail-balance{text-align:right;flex-shrink:0;min-width:72px}.stock-detail-balance>span{font-size:8px;color:var(--muted);display:block}.stock-detail-balance>strong{font-size:28px;letter-spacing:-.7px;line-height:1.4;color:var(--text);font-weight:600;display:block;margin-top:2px;font-variant-numeric:tabular-nums}.stock-detail-balance>small{display:block;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:3px}.stock-movements-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}.stock-movements-heading>h3{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--text)}.stock-movements-heading>h3>svg{width:16px;height:16px;color:var(--accent)}.stock-movements-heading>span{font-size:9px;color:var(--faint);white-space:nowrap}.stock-movements-table{min-width:590px;font-size:9px}.stock-movements-table th{font-size:7px;letter-spacing:.6px;padding-left:10px;padding-right:10px}.stock-movements-table td{font-size:9px;padding:13px 10px;white-space:nowrap;vertical-align:top}.stock-movements-table td>strong{font-size:9px;font-weight:500}.stock-movements-table td>small{font-size:8px;color:var(--faint);line-height:1.6;max-width:170px;white-space:normal}.stock-movements-table .stock-movement-note{color:var(--muted)}.stock-movement-type{font-size:9px;font-weight:550}.stock-movement-type.is-entry,.stock-movement-quantity.is-entry{color:var(--positive)}.stock-movement-type.is-outbound,.stock-movement-quantity.is-outbound{color:var(--negative)}.stock-movement-type.is-adjustment{color:var(--warning)}.stock-movement-quantity{font-weight:600;font-variant-numeric:tabular-nums}.stock-before-after{font-variant-numeric:tabular-nums}.stock-before-after>span{color:var(--faint);padding:0 4px}.stock-movements-empty{text-align:center;padding:33px 20px;border:1px dashed var(--border-strong);border-radius:11px;background:var(--surface-soft)}.stock-movements-empty>svg{width:27px;height:27px;color:var(--faint);margin-bottom:10px}.stock-movements-empty h3{font-size:13px;font-weight:550}.stock-movements-empty p{font-size:10px!important;color:var(--muted);line-height:1.8;margin:8px 0 0}.stock-movements-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:5px}
@media(max-width:1050px){.stock-list-header,.stock-product-row{grid-template-columns:60px minmax(0,1fr) 55px 100px 30px;gap:14px}.stock-product-row{padding:16px}.stock-list-header{padding:0 16px}.stock-product-name>strong{font-size:11px}.stock-product-price{font-size:11px}.stock-quantity{font-size:20px}.stock-unit-details{padding-left:90px}}
@media(max-width:760px){.stock-toolbar{gap:12px;align-items:center}.stock-search{min-height:39px;padding:0 11px}.stock-search>svg{width:15px;height:15px}.stock-search input{font-size:10px;padding:10px 0}.stock-result-count{font-size:8px}.stock-list-header,.stock-product-row{grid-template-columns:52px minmax(0,1fr) 40px 27px;gap:11px}.stock-list-header{padding:0 13px;font-size:7px;letter-spacing:.5px;margin-top:1px}.stock-list-header>span:nth-child(4){display:none}.stock-record{border-radius:10px}.stock-product-row{padding:14px 13px;min-height:93px}.stock-photo{width:52px;height:52px;border-radius:8px}.stock-photo>svg{width:18px;height:18px}.stock-photo>span:not(.stock-photo-change){font-size:6px}.stock-photo-change{width:18px;height:18px;right:2px;bottom:2px}.stock-photo-change svg{width:11px;height:11px}.stock-product-name>strong{font-size:11px;line-height:1.6}.stock-product-name>span{font-size:8px;line-height:1.7;margin-top:2px}.stock-product-price{display:none}.stock-edit-history{font-size:7px;min-height:24px;gap:4px;margin-top:3px}.stock-edit-history>svg{width:10px;height:10px}.stock-quantity{font-size:21px}.stock-expand{width:27px;height:29px;border-radius:7px}.stock-expand svg{width:14px;height:14px}.stock-unit-details{padding:15px 15px 17px 76px}.stock-units-heading{font-size:9px;gap:10px}.stock-units-heading>span{font-size:7px}.stock-units-list li{gap:8px 14px;padding:8px 0}.stock-unit-code{gap:5px}.stock-unit-code>strong{font-size:10px;letter-spacing:.2px}.stock-unit-code>span{font-size:6px}.stock-unit-status{font-size:7px}.stock-list-help{font-size:8px}.stock-no-codes{font-size:9px}.stock-detail-summary{gap:12px;padding-top:20px;padding-bottom:20px;margin-bottom:20px}.stock-detail-summary .stock-detail-photo{width:60px;height:60px}.stock-detail-identification>span{font-size:10px}.stock-detail-identification>small{font-size:8px}.stock-detail-identification .stock-edit-history{font-size:8px;white-space:normal}.stock-detail-balance{min-width:64px}.stock-detail-balance>strong{font-size:26px}.stock-detail-balance>span{font-size:7px}.stock-detail-balance>small{font-size:9px}.stock-movements-heading>h3{font-size:11px;gap:6px}.stock-movements-heading>span{font-size:8px}.stock-movements-heading>h3>svg{width:14px;height:14px}}
@media(max-width:390px){.stock-list-header,.stock-product-row{grid-template-columns:48px minmax(0,1fr) 33px 25px;gap:9px}.stock-photo{width:48px;height:48px}.stock-product-row{padding:13px 11px}.stock-list-header{padding:0 11px}.stock-product-name>strong{font-size:10px}.stock-product-name>span{font-size:7px}.stock-edit-history{font-size:6.5px}.stock-quantity{font-size:20px}.stock-expand{width:25px;height:27px}.stock-unit-details{padding-left:68px}.stock-unit-status{margin-left:0;flex-basis:100%}.stock-detail-summary .stock-detail-photo{width:53px;height:53px}.stock-detail-summary{gap:10px}.stock-detail-identification>span{font-size:9px}.stock-detail-identification .stock-edit-history{font-size:7px}}
@media(prefers-reduced-motion:reduce){.stock-workspace *,.stock-product-detail *{transition:none!important}}
@media(max-width:760px){.stock-list-header,.stock-product-row{grid-template-columns:60px minmax(0,1fr) 40px 27px}.stock-workspace .stock-photo{width:60px;height:60px}.stock-unit-details{padding-left:84px}}@media(max-width:390px){.stock-list-header,.stock-product-row{grid-template-columns:60px minmax(0,1fr) 33px 25px}.stock-unit-details{padding-left:80px}}
.stock-photo>span:not(.stock-photo-change){font-size:9px;line-height:1.15;letter-spacing:0;padding:0 4px;text-align:center}@media(max-width:760px){.stock-photo>span:not(.stock-photo-change){font-size:8px}}
/* Lista única conforme a referência, sem coluna Controle. */
.stock-table-panel{border:1px solid var(--border-strong);border-radius:16px;overflow:hidden;background:var(--surface)}
.stock-table-panel .stock-toolbar{padding:24px 26px;border-bottom:1px solid var(--border);gap:20px}.stock-table-panel .stock-search{width:min(630px,100%);min-height:47px}.stock-table-panel .stock-search input{font-size:13px}.stock-table-panel .stock-result-count{font-size:12px}
.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:64px minmax(0,1fr) 100px 135px 98px;gap:18px}.stock-table-panel .stock-list-header{padding:17px 26px;margin:0;background:var(--surface-soft);border-bottom:1px solid var(--border);font-size:11px;letter-spacing:0;text-transform:none}.stock-header-product{grid-column:1/3}.stock-header-balance{text-align:center!important}.stock-header-price{text-align:right!important}
.stock-table-panel .stock-list{display:block}.stock-table-panel .stock-record{border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}.stock-table-panel .stock-record:last-child{border-bottom:0}.stock-table-panel .stock-record:hover{background:color-mix(in srgb,var(--accent) 2%,var(--surface))}.stock-table-panel .stock-product-row{padding:19px 26px;min-height:112px}.stock-table-panel .stock-photo{width:64px;height:64px}.stock-table-panel .stock-product-name>strong{font-size:14px}.stock-table-panel .stock-product-name>span{font-size:11px;margin-top:6px}.stock-table-panel .stock-edit-history{font-size:9px;margin-top:5px}
.stock-table-panel .stock-quantity{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;font-size:26px;letter-spacing:0}.stock-quantity>strong{font-size:inherit;line-height:1.2;font-weight:650}.stock-quantity>small{font-size:11px;font-weight:400;color:var(--muted)}.stock-quantity.is-empty>small{color:var(--warning)}.stock-table-panel .stock-product-price{font-size:13px}
.stock-product-row .stock-expand.stock-id-toggle{display:inline-flex;align-items:center;justify-content:center;justify-self:end;width:auto;min-width:65px;height:auto;min-height:34px;padding:7px 9px;gap:6px;border:1px solid transparent;border-radius:8px;font-size:11px;font-weight:600;line-height:1.3;background:color-mix(in srgb,var(--positive) 10%,var(--surface-soft));color:var(--positive)}.stock-product-row .stock-expand.stock-id-toggle.is-imei{color:var(--violet);background:color-mix(in srgb,var(--violet) 13%,var(--surface-soft))}.stock-product-row .stock-expand.stock-id-toggle svg{width:15px;height:15px;transform:none!important}.stock-product-row .stock-expand.stock-id-toggle:hover,.stock-product-row .stock-expand.stock-id-toggle[aria-expanded="true"]{border-color:currentColor;filter:brightness(1.1)}
.stock-table-footer{display:flex;justify-content:space-between;gap:20px;padding:17px 26px;border-top:1px solid var(--border);color:var(--faint);font-size:10px}.stock-table-panel .stock-unit-details{padding-left:108px}
@media(max-width:1050px){.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:60px minmax(0,1fr) 75px 100px 82px;gap:13px}.stock-table-panel .stock-product-row,.stock-table-panel .stock-list-header{padding-left:20px;padding-right:20px}.stock-table-panel .stock-product-name>strong{font-size:12px}.stock-table-panel .stock-product-price{font-size:11px}}
@media(max-width:760px){.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:52px minmax(0,1fr) 48px 74px;gap:9px}.stock-table-panel .stock-toolbar{padding:17px 14px;gap:10px}.stock-table-panel .stock-search input{font-size:10px}.stock-table-panel .stock-search{min-height:41px}.stock-table-panel .stock-result-count{font-size:9px}.stock-table-panel .stock-list-header{font-size:9px;padding:13px 14px}.stock-table-panel .stock-header-price,.stock-table-panel .stock-product-price{display:none}.stock-table-panel .stock-product-row{padding:17px 14px;min-height:108px}.stock-table-panel .stock-photo{width:52px;height:58px}.stock-table-panel .stock-product-name>strong{font-size:11px}.stock-table-panel .stock-product-name>span{font-size:8px}.stock-table-panel .stock-edit-history{font-size:7px}.stock-table-panel .stock-quantity{font-size:22px}.stock-quantity>small{font-size:8px}.stock-product-row .stock-expand.stock-id-toggle{font-size:9px;min-width:57px;padding:7px 6px;gap:4px}.stock-product-row .stock-expand.stock-id-toggle svg{width:12px;height:12px}.stock-table-panel .stock-unit-details{padding-left:20px}.stock-table-footer{padding:15px 14px;font-size:8px}.stock-table-footer>span:last-child{display:none}}
/* Resumo e lista compacta; IMEI e SN mantêm cores próprias nos dois temas. */
.stock-workspace,.stock-product-detail{--stock-imei:#c6afff;--stock-sn:#76dce9}:root[data-theme="light"] .stock-workspace,:root[data-theme="light"] .stock-product-detail{--stock-imei:#7242b2;--stock-sn:#087b91}.stock-label-imei{color:var(--stock-imei)!important}.stock-label-sn{color:var(--stock-sn)!important}.stock-code-divider{color:var(--faint);font-weight:400}.stock-id-words{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}.stock-product-row .stock-expand.stock-id-toggle.is-imei{color:var(--stock-imei);background:color-mix(in srgb,var(--stock-imei) 12%,var(--surface-soft))}.stock-product-row .stock-expand.stock-id-toggle.is-sn{color:var(--stock-sn);background:color-mix(in srgb,var(--stock-sn) 11%,var(--surface-soft))}.stock-product-row .stock-expand.stock-id-toggle.is-mixed{color:var(--muted);background:var(--surface-soft);border-color:var(--border)}.stock-unit-code.is-imei>strong{color:var(--stock-imei)}.stock-unit-code.is-sn>strong{color:var(--stock-sn)}
.stock-summary-panel{border:1px solid var(--border);background:var(--surface);border-radius:13px;overflow:hidden}.stock-summary-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 19px}.stock-summary-header h2{font-size:13px;letter-spacing:-.2px;font-weight:600;color:var(--text)}.stock-summary-header p{font-size:9px;line-height:1.6;color:var(--faint);margin-top:3px}.stock-summary-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;border:1px solid var(--border);border-radius:7px;background:var(--surface-soft);color:var(--muted);padding:6px 9px;font-size:9px;min-height:30px}.stock-summary-toggle:hover{color:var(--accent);border-color:var(--border-strong)}.stock-summary-toggle>svg{width:14px;height:14px;transition:transform .15s}.stock-summary-toggle[aria-expanded="true"]>svg{transform:rotate(180deg)}.stock-summary-content{padding:0 19px 17px}.stock-summary-content[hidden]{display:none!important}.stock-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stock-summary-card{min-width:0;padding:14px 15px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}.stock-summary-card>span{display:block;font-size:10px;line-height:1.6;color:var(--muted)}.stock-summary-card>strong{display:block;font-size:23px;line-height:1.35;letter-spacing:-.6px;font-weight:620;color:var(--text);margin-top:8px;white-space:nowrap;font-variant-numeric:tabular-nums}.stock-summary-card:first-child>strong{color:var(--accent)}.stock-summary-card>small{display:block;font-size:8px;line-height:1.7;color:var(--faint);margin-top:5px}.stock-filter-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:11px 22px;border-bottom:1px solid var(--border);background:var(--surface)}.stock-filter-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);padding:6px 9px;min-height:31px;font-size:10px;line-height:1.5;white-space:nowrap}.stock-filter-button>span{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:17px;border-radius:4px;padding:0 4px;background:var(--surface-raised);color:var(--faint);font-size:8px;font-variant-numeric:tabular-nums}.stock-filter-button:hover{color:var(--text);background:var(--surface-soft)}.stock-filter-button.is-active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 20%,transparent);color:var(--accent);font-weight:550}.stock-filter-button.is-zero>span,.stock-filter-button.is-low>span{color:var(--warning);background:var(--warning-bg)}.stock-filter-button.is-negative>span{color:var(--negative);background:var(--negative-bg)}.stock-filter-button.is-active>span{background:var(--surface);color:currentColor}
.stock-table-panel .stock-toolbar{padding:16px 22px;gap:16px}.stock-table-panel .stock-search{min-height:40px;width:min(610px,100%)}.stock-table-panel .stock-search input{font-size:12px;padding-top:9px;padding-bottom:9px}.stock-table-panel .stock-result-count{font-size:10px}.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:48px minmax(0,1fr) 80px 115px 92px;gap:14px}.stock-table-panel .stock-list-header{padding:11px 22px;font-size:10px}.stock-table-panel .stock-product-row{padding:11px 22px;min-height:80px}.stock-table-panel .stock-photo{width:48px;height:48px;border-radius:8px}.stock-table-panel .stock-photo>svg{width:17px;height:17px}.stock-table-panel .stock-photo>span:not(.stock-photo-change){font-size:7px;line-height:1.2}.stock-table-panel .stock-product-name>strong{font-size:12px;line-height:1.5}.stock-table-panel .stock-product-name>span{font-size:9px;line-height:1.5;margin-top:3px}.stock-table-panel .stock-edit-history{font-size:8px;min-height:21px;margin-top:3px;padding:3px 0}.stock-table-panel .stock-quantity{font-size:23px;gap:0}.stock-table-panel .stock-quantity.is-empty>strong{color:var(--warning)}.stock-table-panel .stock-product-price{font-size:12px}.stock-product-row .stock-expand.stock-id-toggle{min-height:30px;font-size:10px;padding:6px 8px;gap:5px}.stock-product-row .stock-expand.stock-id-toggle svg{width:13px;height:13px}.stock-table-panel .stock-unit-details{padding:13px 22px 16px 84px}.stock-table-footer{padding:12px 22px;font-size:9px}
@media(max-width:1150px){.stock-summary-grid{gap:9px}.stock-summary-card{padding:12px}.stock-summary-card>span{font-size:9px}.stock-summary-card>strong{font-size:21px}.stock-summary-card>small{font-size:7px}.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:46px minmax(0,1fr) 65px 100px 86px;gap:12px}.stock-table-panel .stock-photo{width:46px;height:46px}.stock-table-panel .stock-product-row{min-height:77px}.stock-table-panel .stock-product-name>strong{font-size:11px}.stock-table-panel .stock-product-price{font-size:11px}}
@media(max-width:900px){.stock-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-summary-card>strong{font-size:23px}.stock-summary-card>small{font-size:8px}.stock-summary-card>span{font-size:10px}.stock-filter-bar{padding-left:18px;padding-right:18px;gap:4px}.stock-filter-button{font-size:9px;padding:6px 8px}}
@media(max-width:760px){.stock-summary-header{padding:14px;gap:10px}.stock-summary-header h2{font-size:12px}.stock-summary-header p{font-size:8px;max-width:190px}.stock-summary-toggle{font-size:8px;padding:5px 7px;gap:5px;min-height:29px}.stock-summary-toggle>svg{width:12px;height:12px}.stock-summary-content{padding:0 14px 14px}.stock-summary-grid{gap:9px}.stock-summary-card{padding:12px}.stock-summary-card>span{font-size:9px;line-height:1.6}.stock-summary-card>strong{font-size:22px;margin-top:7px}.stock-summary-card>small{font-size:7px;margin-top:4px;line-height:1.7}.stock-table-panel .stock-toolbar{padding:13px 12px;gap:9px}.stock-table-panel .stock-search{min-height:37px}.stock-table-panel .stock-search input{font-size:10px}.stock-table-panel .stock-result-count{font-size:9px}.stock-filter-bar{padding:8px 12px;gap:3px}.stock-filter-button{font-size:8px;min-height:29px;padding:5px 6px;gap:4px}.stock-filter-button>span{font-size:7px;min-width:15px;height:15px;padding:0 3px}.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:44px minmax(0,1fr) 39px 72px;gap:8px}.stock-table-panel .stock-list-header{padding:10px 12px;font-size:8px}.stock-table-panel .stock-product-row{padding:10px 12px;min-height:77px}.stock-table-panel .stock-photo{width:44px;height:44px;border-radius:7px}.stock-table-panel .stock-photo>span:not(.stock-photo-change){font-size:6px}.stock-table-panel .stock-photo>svg{width:16px;height:16px}.stock-table-panel .stock-product-name>strong{font-size:10px;line-height:1.55}.stock-table-panel .stock-product-name>span{font-size:7px;margin-top:3px}.stock-table-panel .stock-edit-history{font-size:6.5px;min-height:20px;margin-top:2px}.stock-table-panel .stock-quantity{font-size:21px}.stock-product-row .stock-expand.stock-id-toggle{min-width:54px;min-height:28px;font-size:8px;padding:5px;gap:3px}.stock-product-row .stock-expand.stock-id-toggle svg{width:10px;height:10px}.stock-table-panel .stock-unit-details{padding:12px 15px 15px}.stock-table-footer{padding:11px 12px;font-size:8px}.stock-unit-code>strong{font-size:10px}}
@media(max-width:390px){.stock-summary-header p{max-width:160px}.stock-summary-toggle>span{max-width:58px;line-height:1.4}.stock-summary-card{padding:10px}.stock-summary-card>strong{font-size:20px}.stock-summary-card>span{font-size:8px}.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:42px minmax(0,1fr) 32px 67px;gap:7px}.stock-table-panel .stock-product-row{padding-left:10px;padding-right:10px}.stock-table-panel .stock-photo{width:42px;height:42px}.stock-product-row .stock-expand.stock-id-toggle{min-width:51px;font-size:7.5px}.stock-table-panel .stock-product-name>strong{font-size:9px}.stock-table-panel .stock-edit-history{font-size:6px}}
.stock-table-panel .stock-quantity>small{font-size:9px;line-height:1.2;color:var(--muted);font-weight:400}.stock-summary-card>span{min-height:32px}@media(max-width:760px){.stock-table-panel .stock-quantity>small{font-size:7px}.stock-summary-card>span{min-height:29px}}
.stock-summary-card:first-child>strong{font-size:clamp(18px,1.7vw,23px)}
/* Unit cost uses the same inventory valuation source as the summary. */
.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:48px minmax(0,1fr) 70px 110px 115px 92px;gap:12px}
.stock-table-panel .stock-header-cost{text-align:right}
.stock-table-panel .stock-product-cost{display:block;text-align:right;font-size:12px;font-weight:550;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.stock-product-cost-inline{display:none}
.stock-cost-pending{color:var(--muted);font-size:.92em;font-weight:400}
.stock-detail-identification>.stock-detail-unit-cost{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;margin-top:5px;font-size:10px;line-height:1.6;color:var(--muted)}
.stock-detail-unit-cost>strong{font-size:11px;font-weight:550;color:var(--text);font-variant-numeric:tabular-nums}
@media(max-width:1150px){.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:46px minmax(0,1fr) 55px 100px 100px 82px;gap:10px}.stock-table-panel .stock-product-cost{font-size:11px}}
@media(max-width:760px){
 .stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:44px minmax(0,1fr) 39px 72px;gap:8px}
 .stock-table-panel .stock-header-cost,.stock-table-panel .stock-product-cost{display:none}
 .stock-product-cost-inline{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px;margin-top:3px;color:var(--muted);font-size:8px;line-height:1.5}
 .stock-product-cost-inline>strong{font-size:8px;font-weight:550;color:var(--text);font-variant-numeric:tabular-nums}
 .stock-detail-identification>.stock-detail-unit-cost{font-size:9px}.stock-detail-unit-cost>strong{font-size:10px}
}
@media(max-width:390px){.stock-table-panel .stock-list-header,.stock-table-panel .stock-product-row{grid-template-columns:42px minmax(0,1fr) 32px 67px;gap:7px}.stock-product-cost-inline,.stock-product-cost-inline>strong{font-size:7.5px}}
