/* Scoped to the tenant pane; the signed-in shell supplies branding/navigation. */
#inventory-view .hero{display:flex;align-items:center;justify-content:space-between;gap:20px}
#inventory-view h1{font-size:32px;letter-spacing:-1px;margin:10px 0}
#inventory-view .notice{background:#fff6e5;border:1px solid #ead5ad;padding:16px;border-radius:12px;line-height:1.6;margin:20px 0}
#inventory-view .load,#inventory-view .filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:18px 0}
#inventory-view .load details{flex-basis:100%}
#inventory-view label{display:block;font-size:13px;font-weight:600}
#inventory-view input:not([type=checkbox]),#inventory-view select{display:block;width:100%;padding:10px;border:1px solid #ccd6de;border-radius:8px;margin-top:6px;background:white}
#inventory-view .metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}
#inventory-view .metric,#inventory-view .panel{padding:20px;background:white;border:1px solid #dce4e9;border-radius:12px;margin-bottom:16px;min-width:0}
#inventory-view .metric strong{display:block;font-size:26px;margin-top:8px}
#inventory-view .metric span,#inventory-view .footnote,#inventory-tenant-context{font-size:12px;color:#526b7a}
#inventory-view .layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px}
#inventory-view aside{display:block;background:transparent;padding:0;border:0}
#inventory-view .panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
#inventory-view .table-wrap{overflow-x:auto}
#inventory-view table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
#inventory-view th{font-size:11px;text-transform:uppercase;background:#f4f7f9;color:#506b7b}
#inventory-view td,#inventory-view th{padding:13px 10px;border-bottom:1px solid #e3eaf0}
#inventory-view td strong,#inventory-view td small{display:block}
#inventory-view td small{color:#526b7a;margin-top:4px}
#inventory-view .checks{list-style:none;padding:0}
#inventory-view .checks li{border-left:3px solid #cc9a40;padding-left:12px;margin:20px 0}
#inventory-view .checks span{display:block;font-size:12px;color:#526b7a;line-height:1.6;margin-top:5px}
#inventory-view dt{font-size:12px;color:#526b7a;margin-top:15px}
#inventory-view dd{margin:5px 0;overflow-wrap:anywhere}
#inventory-view button:disabled{background:#e5e9ed;color:#526b7a;cursor:not-allowed}
#inventory-view [hidden]{display:none!important}
#inventory-view .stock-capture-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
#inventory-view .stock-capture-form input,#inventory-view .stock-capture-form select{box-sizing:border-box;min-width:0;font-size:16px;min-height:48px}
#inventory-view [data-stock-capture] button{min-height:48px;margin:6px 8px 6px 0}
#inventory-view .stock-capture-rows{padding:0;list-style:none;overflow-wrap:anywhere}
#inventory-view [data-capture="receipt"]{overflow-wrap:anywhere}
#inventory-view .stock-capture-rows li{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-bottom:1px solid #dce4e9;padding:10px 0}
@media(max-width:1050px){#inventory-view .layout{grid-template-columns:1fr}}
@media(max-width:600px){#inventory-view .metrics{grid-template-columns:1fr 1fr}#inventory-view .filters{align-items:stretch;flex-direction:column}#inventory-view table{min-width:560px}#inventory-view h1{font-size:26px}}
/* Stocktake: keep the capture sequence distinct from saved review records. */
#inventory-view button{font:inherit;font-size:13px;font-weight:650;line-height:1.4;min-height:44px;height:auto;padding:11px 16px;border:1px solid #bdcddd;background:#fff;color:#17334c;border-radius:9px;cursor:pointer;white-space:normal;max-width:100%}
#inventory-view button:hover:not(:disabled){background:#edf3f8;border-color:#69869e}
#inventory-view button:disabled{background:#edf1f5;border-color:#dbe3eb;color:#758595;cursor:not-allowed}
#inventory-view button:focus-visible,#inventory-view summary:focus-visible{outline:3px solid #80b5ea;outline-offset:3px}
#inventory-view>.hero{padding:24px;background:linear-gradient(115deg,#112f46,#30424a 65%,#665035);border-radius:16px;color:#fff;flex-wrap:wrap}
#inventory-view>.hero h1{color:#fff}
#inventory-view>.hero p{line-height:1.6}
#inventory-view .load{padding:20px;background:#fff;border:1px solid #dce5ef;border-radius:14px}
#inventory-view input[type=file]::file-selector-button{border:0;border-radius:5px;background:#eaf1f7;color:#17334c;padding:7px;margin-right:8px}
#inventory-view [data-stock-capture]{padding:0;overflow:hidden;border-radius:18px;color:#17334c}
#inventory-view [data-stock-capture]>*:not(.capture-hero){margin-left:24px;margin-right:24px}
#inventory-view .capture-hero{display:block;height:auto;min-height:0;max-height:none;flex:none;box-sizing:border-box;background:linear-gradient(115deg,#112f46,#30424a 65%,#665035);color:#fff;padding:28px 30px}
#inventory-view .capture-hero h2{font-size:30px;letter-spacing:-.8px;margin:8px 0 12px;color:#fff}
#inventory-view .capture-hero p{line-height:1.6;margin:0 0 12px}
#inventory-view .capture-eyebrow{color:#ffae45;font-size:11px;font-weight:800;letter-spacing:1.8px}
#inventory-view .capture-badge{display:inline-block;border:1px solid #ffffff40;border-radius:30px;padding:7px 12px;font-size:12px;background:#ffffff0c}
#inventory-view .capture-safety{background:#fff8ec;border:1px solid #f0dfbd;border-radius:12px;padding:16px 18px;margin-top:22px;line-height:1.6;font-size:13px}
#inventory-view [data-stock-capture] summary{cursor:pointer;font-weight:650;line-height:1.6;padding:9px 0}
#inventory-view .capture-catalogue{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:16px 0}
#inventory-view .capture-catalogue p{flex:1;min-width:200px;font-size:13px;line-height:1.6;color:#526b7a}
#inventory-view [data-stock-capture] button{font:inherit;font-size:13px;font-weight:650;line-height:1.4;min-height:44px;height:auto;padding:11px 16px;border:1px solid #bdcddd;background:#fff;color:#17334c;border-radius:9px;cursor:pointer;white-space:normal;max-width:100%;align-self:end;transition:background .15s}
#inventory-view [data-stock-capture] button:hover:not(:disabled){background:#edf3f8;border-color:#69869e}
#inventory-view [data-stock-capture] button:focus-visible,#inventory-view [data-stock-capture] summary:focus-visible{outline:3px solid #80b5ea;outline-offset:3px}
#inventory-view [data-stock-capture] button.capture-primary{background:#ff8900;border-color:#eb7c00;color:#122e44}
#inventory-view [data-stock-capture] button.capture-primary:hover:not(:disabled){background:#ffa32d}
#inventory-view [data-stock-capture] button:disabled{background:#edf1f5;border-color:#dbe3eb;color:#758595;cursor:not-allowed}
#inventory-view .stock-capture-form{display:block}
#inventory-view .capture-step{min-width:0;margin:0 0 22px;padding:18px 20px 22px;border:1px solid #dce5ef;border-radius:14px;background:#fff}
#inventory-view .capture-step legend,#inventory-view .capture-step-title{font-size:18px;font-weight:750;padding:0 8px;color:#17334c}
#inventory-view .capture-step legend span,#inventory-view .capture-step-title span{display:inline-grid;place-items:center;background:#17334c;color:#fff;border-radius:50%;width:28px;height:28px;font-size:13px;margin-right:8px}
#inventory-view .capture-help{color:#60758a;font-size:13px;line-height:1.6;margin:0 0 18px}
#inventory-view .capture-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:end}
#inventory-view .capture-count-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#inventory-view .capture-wide{grid-column:1/-1}
#inventory-view .capture-grid>*{min-width:0;margin:0}
#inventory-view .capture-grid input,#inventory-view .capture-grid select{font:inherit;font-size:14px;width:100%;box-sizing:border-box;min-width:0;min-height:46px}
#inventory-view .capture-grid input[type=file]{font-size:12px;padding:8px}
#inventory-view .capture-grid input::file-selector-button{border:0;border-radius:5px;background:#eaf1f7;color:#17334c;padding:7px;margin-right:8px}
#inventory-view .capture-barcode,#inventory-view .capture-evidence{border-top:1px solid #e0e8f0;margin-top:20px;padding-top:8px}
#inventory-view .capture-barcode p{font-size:12px;color:#60758a;line-height:1.6}
#inventory-view .capture-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding-top:16px;border-top:1px solid #e0e8f0}
#inventory-view .capture-actions p{font-size:12px;color:#60758a}
#inventory-view .capture-unmatched{background:#f5f8fb;border:1px dashed #bacddd;border-radius:12px;padding:16px 20px;font-size:13px;line-height:1.6}
#inventory-view .capture-unmatched h3{margin:0 0 8px}
#inventory-view .capture-draft{background:#f5f8fb;border:1px solid #dce5ef;border-radius:14px;padding:20px;margin-top:22px;margin-bottom:24px}
#inventory-view .capture-draft>p{font-size:13px;color:#60758a;line-height:1.6}
#inventory-view [data-stock-capture]>section[aria-label]:not(.capture-unmatched){padding-top:20px;padding-bottom:20px;border-top:1px solid #e0e8f0;font-size:13px;line-height:1.6}
#inventory-view [data-stock-capture] [role=status]{line-height:1.6;overflow-wrap:anywhere;font-size:13px}
@media(max-width:700px){#inventory-view [data-stock-capture]>*:not(.capture-hero){margin-left:14px;margin-right:14px}#inventory-view .capture-hero{padding:22px 20px}#inventory-view .capture-hero h2{font-size:26px}#inventory-view .capture-grid,#inventory-view .capture-count-grid{grid-template-columns:minmax(0,1fr)}#inventory-view .capture-actions{align-items:stretch;flex-direction:column}#inventory-view .capture-step{padding:14px}#inventory-view .capture-actions button{align-self:stretch}}
#inventory-view .inventory-workspace-header{border:1px solid #d6e1ef;border-radius:18px;overflow:hidden;background:#fff;margin:12px 0 18px;box-shadow:0 4px 18px #142f4810}
#inventory-view .inventory-workspace-intro{padding:28px 30px;background:linear-gradient(110deg,#142f46 0%,#263b47 65%,#604c34 100%);color:#fff}
#inventory-view .inventory-workspace-intro h1{font-size:30px;line-height:1.2;color:#fff;margin:8px 0 10px;letter-spacing:-.7px}
#inventory-view .inventory-workspace-intro p{margin:0;color:#d6e0e9;line-height:1.6;font-size:14px}
#inventory-view .inventory-workspace-intro .inventory-workspace-eyebrow{font-size:11px;font-weight:750;letter-spacing:1.8px;color:#ff9800}
#inventory-view .inventory-workspace-badge{display:inline-block;margin-top:16px;padding:6px 11px;border:1px solid #ffffff35;border-radius:20px;color:#e6edf2;font-size:12px}
#inventory-view .inventory-tabs{display:flex;gap:28px;padding:0 30px;background:#fff;border:0;border-radius:0;margin:0;max-width:none}
#inventory-view .inventory-tabs button{flex:0 1 auto;min-width:100px;min-height:55px;padding:15px 12px;border:0;border-bottom:3px solid transparent;background:transparent;color:#60758a;font-size:14px;font-weight:700;border-radius:0;margin:0}
#inventory-view .inventory-tabs button[aria-selected="true"]{background:transparent;color:#17334c;border-bottom-color:#ff8900;box-shadow:none}
#inventory-view .inventory-tabs button:hover{background:#f6f8fb;color:#17334c}
#inventory-view .inventory-tabs button:focus-visible,#inventory-view .inventory-part-results button:focus-visible{outline:3px solid #568ed5;outline-offset:2px}
#inventory-view .inventory-tab-host{padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
#inventory-view .inventory-tab-panel{min-width:0}
#inventory-view .inventory-tab-help{display:none}
#inventory-view .inventory-tab-host>.inventory-tab-panel{margin-left:0;margin-right:0}
#inventory-view .inventory-tab-panel .capture-hero,#inventory-view .inventory-tab-panel .inventory-section-hero{background:#fff;border:1px solid #dce5ef;border-radius:14px;padding:24px;color:#17334c;margin-bottom:20px}
#inventory-view .inventory-tab-panel .capture-hero h2,#inventory-view .inventory-tab-panel .inventory-section-hero h2{color:#17334c;font-size:25px}
#inventory-view .inventory-tab-panel .capture-hero p,#inventory-view .inventory-tab-panel .inventory-section-hero p{color:#60758a}
#inventory-view .inventory-tab-panel .capture-eyebrow,#inventory-view .inventory-tab-panel .inventory-section-hero .eyebrow{display:none}
#inventory-view .inventory-tab-panel .capture-badge,#inventory-view .inventory-tab-panel .inventory-section-badge{background:#edf4fa;border-color:#d6e1ef;color:#38576e}
#inventory-view .inventory-part-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:290px;overflow:auto;margin:12px 0 22px;padding:3px}
#inventory-view .inventory-part-results button{display:block;width:100%;height:auto;min-height:58px;white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.5;padding:12px 14px;background:#f4f8fd;border:1px solid #d4e1f1;border-radius:10px;color:#183550}
#inventory-view .inventory-part-results button:hover{background:#e7f1fc;border-color:#7eabd9}
#inventory-view [data-capture="part-status"]{color:#5b708a;font-size:13px}
@media(max-width:700px){#inventory-view .inventory-part-results{grid-template-columns:1fr;max-height:260px}#inventory-view .inventory-workspace-intro{padding:22px 20px}#inventory-view .inventory-tabs{padding:0 12px;gap:0}#inventory-view .inventory-tabs button{flex:1;min-width:0;padding:12px 6px}#inventory-view .inventory-tab-panel .capture-hero,#inventory-view .inventory-tab-panel .inventory-section-hero{padding:20px}}
#inventory-view .capture-quick-summary{position:sticky;top:8px;z-index:5;display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;padding:12px 18px;background:#fff;border:1px solid #ceddec;border-left:4px solid #ff8900;border-radius:12px;box-shadow:0 4px 14px #17334c14;margin:16px 0}
#inventory-view .capture-quick-summary strong{flex:1;color:#17334c;font-size:14px}
#inventory-view .capture-quick-summary small{flex-basis:100%;color:#60758a;font-size:12px}
#inventory-view .count-row-editor{flex-basis:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;background:#fff;border:1px solid #cadbea;border-radius:10px}
#inventory-view .stock-capture-rows>li{flex-wrap:wrap}
@media(max-width:700px){#inventory-view .count-row-editor{grid-template-columns:1fr}#inventory-view .capture-quick-summary{position:static}}
#inventory-view .capture-evidence .capture-grid{align-items:start}
#inventory-view .capture-photo-group{min-width:0}
#inventory-view .capture-photo-group small{display:block;margin-top:8px;color:#60758a;font-size:12px;line-height:1.5}
#inventory-view .capture-photo-group [data-capture="photo-status"]{margin:8px 0}
#inventory-view .capture-duplicate-warning{margin:16px 0;padding:16px;border:1px solid #efc786;border-radius:12px;background:#fff8ed;color:#17334d}
#inventory-view .capture-duplicate-warning[hidden]{display:none}
#inventory-view .library-approved-parts{padding:20px;margin-bottom:24px;border:1px solid #cbd9e7;border-radius:14px;background:#f7fafd}
#inventory-view .library-approved-parts>div{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:10px 0;border-top:1px solid #dce5ed}
#inventory-view .library-approved-parts button{flex-shrink:0}
@media(max-width:600px){#inventory-view .library-approved-parts>div{align-items:stretch;flex-direction:column}}
#inventory-view .library-approved-parts:empty{display:none}
