.glance-portal.assets-workspace{height:100dvh;overflow:hidden}
.assets-workspace .portal-layout{height:calc(100dvh - 64px);min-height:0}
.assets-workspace .sidebar{min-height:0;overflow:auto}
.assets-workspace .portal-main{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden;padding-block:12px}
.assets-workspace .portal-main,.asset-workspace,.asset-list-panel{min-width:0}
.assets-workspace .page-header{flex:none;margin-bottom:14px}
.assets-workspace #viewEyebrow:empty{display:none}
.assets-workspace #viewContent,.asset-workspace{display:flex;flex-direction:column;flex:1;min-height:0;gap:14px}
.asset-status-cards{grid-template-columns:repeat(5,minmax(0,1fr))}
.asset-sms-mismatch{color:#c92a38!important;background:color-mix(in srgb,#d83848 10%,transparent);font-weight:750}
.expiry-refresh.is-refreshing svg{animation:asset-refresh-spin .8s linear infinite}@keyframes asset-refresh-spin{to{transform:rotate(360deg)}}
.asset-line-decision>span{display:block;margin-bottom:5px;font-size:11px}
.asset-line-note{width:190px;display:block;margin-top:6px;font:inherit;padding:7px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text)}
.asset-case-copy{display:inline-flex;gap:6px;align-items:center;padding:4px 9px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--blue);font:inherit;font-weight:700;cursor:pointer}.asset-case-copy svg{width:14px;height:14px}
.asset-context-compact{padding-block:8px}.asset-context-compact dl{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.asset-ops-plan{display:flex;gap:12px;align-items:end;margin-bottom:8px;flex-wrap:wrap}.asset-ops-plan label{display:grid;gap:4px;font-size:11px}.asset-ops-plan select,.asset-ops-plan textarea{padding:7px;border:1px solid var(--line);border-radius:6px;font:inherit;background:var(--panel);color:var(--text)}.asset-planning-note{flex:1;min-width:250px}.asset-ops-plan textarea{min-height:40px}.asset-ops-badge{font-size:11px;color:var(--muted)}
@media(max-width:900px){.asset-context-compact dl{grid-template-columns:repeat(3,minmax(0,1fr))}}
.asset-status-cards .expiry-card-label{font-size:10px}
.asset-list-table{width:100%;border-collapse:collapse;font-size:11px}
.asset-list-table thead th{position:sticky;top:0;background:var(--color-surface-alt,#f5f7fa);z-index:1;white-space:nowrap}
.asset-list-table td{vertical-align:middle}
.asset-open{border:0;background:none;color:var(--text);padding:0;text-align:left;font:inherit;cursor:pointer;max-width:280px}
.asset-open strong{color:var(--blue)}.asset-open span{display:block;margin-top:5px;line-height:1.4}
.asset-status{--status-color:#b56911;display:inline-block;border-radius:6px;padding:5px 7px;font-size:10px;font-weight:650;background:color-mix(in srgb,var(--status-color) 12%,var(--color-surface,#fff));color:var(--status-color);white-space:nowrap}
.asset-status:is(.status-denied,.status-cancelled){--status-color:#c53b36}
.asset-status.status-ready{--status-color:#23824e}
.asset-status:is(.status-done,.status-closed,.status-complete,.status-completed){--status-color:#2563eb}
.asset-status.status-manager_review{background:#fde047;color:#594400}
.asset-status:is(.status-operations_review,.status-approved,.status-new,.status-submitted){background:#000;color:#fff}
.asset-status:is(.status-sourcing,.status-working){--status-color:#f28c00;background:#f28c00;color:#3f2600}
[data-glance-theme=dark] .asset-status{background:color-mix(in srgb,var(--status-color) 20%,var(--color-surface,#1b2b3d));color:color-mix(in srgb,var(--status-color) 60%,#fff)}
[data-glance-theme=dark] .asset-status.status-manager_review{background:#fde047;color:#594400}
[data-glance-theme=dark] .asset-status:is(.status-operations_review,.status-approved,.status-new,.status-submitted){background:#000;color:#fff}
[data-glance-theme=dark] .asset-status:is(.status-sourcing,.status-working){background:#f28c00;color:#3f2600}
.asset-status-cards .status-filter-manager_review .expiry-card-icon{background:#fff3c4;color:#b88800}
.asset-status-cards .status-filter-operations_review .expiry-card-icon{background:#eef0f3;color:#000}
.asset-status-cards .status-filter-sourcing .expiry-card-icon{background:#fff0d9;color:#f28c00}
.asset-status-cards .status-filter-ready .expiry-card-icon{background:#e3f2eb;color:#23824e}
.asset-status-cards .status-filter-closed .expiry-card-icon{background:#dbeafe;color:#c53b36;box-shadow:inset 0 0 0 1px #2563eb55}
#assetDialog{width:min(1060px,calc(100vw - 32px));max-height:none;height:min(860px,90dvh);padding:0;background:var(--color-surface,#fff);color:var(--text);overflow:hidden}
#assetDialogContent,#assetDetailPanel{display:flex;flex-direction:column;height:100%;min-height:0}
#assetDialog .dialog-head,#assetDetailPanel .dialog-head{padding:16px 22px;flex:none;border-bottom:1px solid var(--line)}
#assetDialog .dialog-head,#assetDetailPanel .dialog-head p{font-size:11px;margin:0 0 5px;color:var(--muted)}
#assetDialog h2,#assetDetailPanel h2{font-size:18px;line-height:1.35;max-width:850px;margin:0;max-height:50px;overflow:hidden}
.asset-context{padding:12px 22px;flex:none}
.asset-context dl{display:grid;grid-template-columns:1fr 1fr;gap:9px 20px;margin:0}
.asset-context dt{font-size:10px;color:var(--muted);margin-bottom:3px}
.asset-context dd{margin:0;font-size:12px;max-height:34px;overflow:hidden}
.asset-category-tabs{display:flex;gap:6px;padding:0 22px;border-bottom:1px solid var(--line);flex:none}
.asset-category-tabs button{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);padding:10px 13px;font:inherit;font-size:12px;font-weight:650}
.asset-category-tabs button[aria-selected=true]{color:var(--blue);border-bottom-color:var(--blue)}
.asset-category-tabs span{margin-left:6px;font-size:10px}
.asset-products-scroll{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;padding:0 22px;overscroll-behavior:contain}
.asset-products-table{width:100%;table-layout:fixed;font-size:12px;border-collapse:collapse}
.asset-products-table thead th{position:sticky;top:0;z-index:1;background:var(--color-surface-alt,#f5f7fa)}
.asset-products-table th:first-child{width:auto}.asset-products-table th:not(:first-child){width:120px}
.asset-products-table td{padding:10px;vertical-align:middle}.asset-products-table .numeric{text-align:center}
.asset-products-table small{display:block;font-size:11px;margin-top:4px;line-height:1.4;color:var(--muted)}
.asset-products-table .review-line-input{width:68px;text-align:center;background:var(--color-surface,#fff);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:6px}
.asset-products-table tr[hidden]{display:none}.asset-products-table .btn{font-size:10px;padding:6px 8px;min-height:28px}
.asset-history{font-size:12px}.asset-history small{display:block;color:var(--muted);margin-bottom:5px}.asset-history p{padding-block:9px;border-bottom:1px solid var(--line)}
.asset-decision{padding:12px 22px;border-top:1px solid var(--line);flex:none;background:var(--color-surface,#fff)}
.asset-decision-note{display:block;font-size:10px;color:var(--muted)}
.asset-decision textarea{display:block;width:100%;min-height:36px;max-height:65px;margin-top:5px;border:1px solid var(--line);border-radius:6px;padding:8px;background:var(--color-surface,#fff);color:var(--text);font:inherit;font-size:12px;resize:vertical}
.asset-decision .review-actions{margin-top:10px;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.asset-cancel-request{margin-right:auto}
@media(max-width:1050px){.asset-status-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.asset-status-cards .expiry-card{padding:10px 13px;gap:3px}.asset-status-cards .expiry-card strong{font-size:24px}}
@media(max-width:700px){.assets-workspace .portal-layout{display:flex;flex-direction:column}.assets-workspace .sidebar{flex:none}.assets-workspace .portal-main{flex:1}.asset-list-table{min-width:850px}.asset-context dl{grid-template-columns:1fr}.asset-context dl>div:nth-child(n+3){display:none}.asset-products-table{min-width:540px}#assetDialog .dialog-head,#assetDetailPanel .dialog-head,.asset-context,.asset-decision{padding:10px 14px}.asset-products-scroll{padding:0 10px}.asset-category-tabs{padding:0 10px}}

.asset-source-tabs{display:flex;gap:7px;align-items:center;flex-wrap:wrap;flex:none}
.asset-source-tabs>button[role=tab]{border:1px solid var(--line);border-radius:7px;background:var(--color-surface,#fff);color:var(--muted);padding:8px 12px;font:inherit;font-size:11px;font-weight:650}
.asset-source-tabs>button[aria-selected=true]{background:color-mix(in srgb,var(--blue) 10%,var(--color-surface,#fff));border-color:var(--blue);color:var(--blue)}
.asset-source-tabs>.btn{margin-left:auto}.asset-source-note,.asset-source-error{font-size:11px;padding:0 15px;color:var(--muted)}.asset-source-error{color:#c3464c}
#assetDetailPanel{border:1px solid var(--line);border-radius:11px;background:var(--color-surface,#fff);color:var(--text);overflow:hidden;flex:1}
#assetDetailPanel .dialog-head{display:flex;align-items:center;gap:15px}#assetDetailPanel .dialog-head>div{flex:1;min-width:0}
.asset-list-table tr[data-asset]{cursor:pointer}.asset-list-table tr[data-asset]:hover{background:var(--color-surface-alt,#f5f7fa)}
.asset-detail-open .page-header{display:none}
.asset-detail-open .asset-decision .review-actions{padding-right:110px}
.asset-products-table{min-width:900px}.asset-products-table th:first-child{width:30%}.asset-products-table th:not(:first-child){width:auto}
.asset-refresh-caption{font-size:10px;color:var(--muted);margin:0;padding:0 22px 8px;flex:none}.asset-added-line{font-weight:650;color:var(--blue)!important}

.asset-products-table th,.asset-products-table th.numeric{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35;vertical-align:middle}
.asset-products-table{min-width:1100px}.asset-products-table th.numeric,.asset-list-table th.numeric,.asset-list-table td.numeric{text-align:center}.asset-list-table th.numeric>div{justify-content:center}
.asset-products-table th:first-child{width:25%}.asset-products-table .asset-review-origin{font-size:9px;line-height:1.3;max-width:130px;margin-inline:auto}
.asset-change-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 22px;border-block:1px solid var(--line);font-size:10px;flex:none}.asset-change-summary .btn{min-height:25px;padding:4px 8px;font-size:10px}
.asset-override-note{margin:0;padding:6px 22px;background:color-mix(in srgb,#d47a13 12%,var(--panel));color:var(--text);font-size:11px}.asset-ready-note{font-size:11px;color:var(--muted)}
.asset-list-table th>div{display:flex;align-items:center;gap:4px;justify-content:space-between}
.asset-list-table .expiry-sort{font-size:11px;white-space:nowrap}.asset-list-table .expiry-filter{flex:none}
.asset-row-actions{display:flex;gap:6px;white-space:nowrap}.asset-row-actions .btn{font-size:10px;padding:6px 8px;min-height:28px}
.asset-list-panel{min-height:0;flex:1;display:flex;flex-direction:column}.asset-list-panel>.expiry-table-scroll{flex:1;min-height:0}
.asset-create-dialog{width:min(800px,calc(100vw - 32px));max-height:90dvh}.asset-create-form{overflow:auto;max-height:calc(90dvh - 90px)}
.asset-create-form .field-grid>label{font-size:12px}.asset-load-case{display:flex;align-items:flex-end;padding-bottom:2px}
.asset-create-products{max-height:185px;overflow:auto;border:1px solid var(--line);border-radius:6px;scrollbar-gutter:stable}
.asset-create-products table{width:100%;font-size:11px}.asset-create-products th{position:sticky;top:0;background:var(--panel)}
.asset-create-products td{padding:8px 12px}.asset-create-products td small{display:block;margin-top:4px;color:var(--muted)}
.asset-volume-input{display:flex;align-items:center;gap:6px}.asset-insightz-check{display:flex!important;align-items:center;gap:8px}.asset-insightz-check input{width:auto!important}
.asset-context.asset-context-compact dl{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.asset-context.asset-context-compact dd{max-height:none;overflow-wrap:anywhere}
.asset-status-cards .status-filter-pending .expiry-card-icon{background:#fff0d9;color:#c47613}
@media(max-width:900px){.asset-context.asset-context-compact dl{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Keep the request frame fixed; only the step's content/product rows scroll. */
.asset-create-dialog{height:min(740px,90dvh);padding:0}
.asset-create-dialog #usageDialogContent{display:flex;flex-direction:column;height:100%;min-height:0}
.asset-create-dialog .dialog-head{flex:none;gap:18px}
.asset-create-form{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;max-height:none;gap:16px}
.asset-create-steps{min-height:0;overflow:auto;flex:1;padding:2px 3px 4px}
.asset-create-form .review-actions{flex:none;margin:0;padding-top:12px;border-top:1px solid var(--line)}
.asset-create-form .field-grid{gap:20px}
.asset-create-form .field-grid p{margin:0}
.asset-create-form .field-grid>[hidden],.asset-create-form [hidden],.asset-create-case-context[hidden]{display:none!important}
.asset-create-form .asset-hospital select,.asset-create-form .asset-hospital input{font-size:20px;font-weight:750;padding:12px}
.asset-create-form .asset-temporary-toggle{display:flex;align-items:center;justify-content:space-between;margin:0 0 4px;font-size:12px}
.asset-temporary-toggle input{appearance:none;width:36px;height:21px;border-radius:12px;background:var(--line);padding:0;position:relative;cursor:pointer}
.asset-temporary-toggle input:before{content:'';position:absolute;width:15px;height:15px;border-radius:50%;top:2px;left:2px;background:var(--panel);transition:transform .15s}
.asset-temporary-toggle input:checked{background:var(--blue)}.asset-temporary-toggle input:checked:before{transform:translateX(15px)}
.asset-type-trigger{display:flex;justify-content:space-between;align-items:center;text-align:left;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--text);padding:12px;font:inherit;cursor:pointer}
.asset-type-description{font-size:12px;line-height:1.5;color:var(--muted)}
.asset-type-dialog{width:min(440px,calc(100vw - 32px));padding:0;max-height:85dvh}
.asset-type-options{padding:4px 18px 18px;overflow:auto;max-height:calc(85dvh - 80px)}
.asset-type-options button{display:block;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:6px;background:transparent;color:var(--text);text-align:left;padding:14px 7px;cursor:pointer;font:inherit}
.asset-type-options button:hover,.asset-type-options button:focus-visible{background:color-mix(in srgb,var(--blue) 8%,var(--panel))}
.asset-type-options strong{font-size:13px}.asset-type-options small{display:block;padding-left:14px;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.45}
.asset-create-case-context{display:grid;gap:4px;margin-left:auto;text-align:right;font-size:11px;max-width:52%}.asset-create-case-context strong{font-size:14px}
.inventory-loaded .asset-create-steps{overflow:hidden;display:flex;flex-direction:column}
.inventory-loaded .asset-inventory-step{flex:1;min-height:0;display:flex;flex-direction:column;gap:14px}
.inventory-loaded #createCasePreview{flex:1;min-height:0;display:flex}
.inventory-loaded .asset-create-products{max-height:none;flex:1;min-height:0}
.asset-create-products .numeric{text-align:center;width:100px}
.asset-catalog-refresh{display:flex;align-items:center;justify-content:flex-end;gap:10px;position:absolute;right:0;top:0;font-size:11px;color:var(--muted)}
.assets-workspace .page-header>div:first-child{position:relative;width:100%;padding-right:360px}
.asset-catalog-refresh .expiry-refresh{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:6px}.asset-catalog-refresh svg{width:18px;height:18px}
.asset-line-decision .btn{font-size:11px;min-height:28px;padding:4px 8px}.asset-line-note{width:160px;padding:5px 7px;font-size:11px}
.asset-products-table .review-line-input{font-size:inherit;width:64px;padding:5px 7px}.asset-team-name{align-content:center}
@media(max-width:700px){.assets-workspace .page-header>div:first-child{padding-right:0}.asset-catalog-refresh{position:static;justify-content:flex-start;margin-top:10px}.asset-create-dialog .dialog-head{gap:10px}.asset-create-case-context{max-width:45%}}

.asset-request-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.asset-header-controls{display:flex;gap:8px;align-items:center}.asset-ops-select,.asset-priority{font:inherit;font-size:11px;font-weight:650;border:1px solid transparent;cursor:pointer;min-height:29px}
.asset-ops-select option,.asset-priority option{background:var(--panel);color:var(--text)}
.ops-submitted{background:#e4e8ef;color:#34445c}.ops-sourcing{background:#dbeafe;color:#1d4ed8}.ops-planned{background:#ede9fe;color:#6d28d9}.ops-ordered{background:#cffafe;color:#0e7490}.ops-finalizing{background:#fef3c7;color:#92400e}.ops-ready{background:#dcfce7;color:#166534}
.priority-low{background:#e4e8ef;color:#34445c}.priority-medium{background:#dbeafe;color:#1d4ed8}.priority-high{background:#fef3c7;color:#92400e}.priority-urgent{background:#fee2e2;color:#b91c1c}
.asset-line-planning{display:block;width:100%;min-width:160px;min-height:46px;resize:vertical;max-height:140px;border:1px solid var(--line);border-radius:6px;padding:6px 8px;font:inherit;font-size:11px;color:var(--text);background:var(--panel)}
.asset-products-table th:last-child{width:220px}.asset-reason-dialog{width:min(440px,calc(100vw - 32px));padding:0}.asset-reason-dialog label{display:grid;gap:8px;font-size:12px}.asset-reason-dialog textarea{font:inherit;padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text)}
.asset-status.ops-submitted{background:#e4e8ef;color:#34445c}.asset-status.ops-sourcing{background:#dbeafe;color:#1d4ed8}.asset-status.ops-planned{background:#ede9fe;color:#6d28d9}.asset-status.ops-ordered{background:#cffafe;color:#0e7490}.asset-status.ops-finalizing{background:#fef3c7;color:#92400e}.asset-status.ops-ready{background:#dcfce7;color:#166534}
.asset-products-table{min-width:900px}.asset-products-table th.numeric{width:76px}.asset-products-table th:first-child{width:24%}
/* The three request indicators share one size and align with Refresh. */
#assetDetailPanel .dialog-head .asset-request-heading{flex:1;min-width:90px}
#assetDetailPanel .dialog-head .asset-header-fields{flex:none;display:flex;gap:10px;align-items:end;margin-left:auto}
.asset-header-fields label{display:grid;gap:5px;font-size:10px;color:var(--muted);line-height:1.2}
.asset-header-fields .asset-status{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:108px;height:32px;padding:5px 9px;border:1px solid transparent;font-size:12px;font-weight:650;line-height:1.2}
#assetDetailPanel .dialog-head>.expiry-refresh{align-self:flex-end;width:32px;height:32px;padding:6px}
.asset-list-table .asset-status,.asset-list-table .asset-case-copy{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:30px;min-width:96px;padding:5px 9px;font-size:inherit;font-weight:650;line-height:1.2;white-space:nowrap}
.asset-list-table [data-asset-case-cell]{cursor:copy}.asset-list-table .asset-case-copy{gap:6px;background:var(--panel);color:var(--blue)}
.asset-status.ops-submitted,.asset-status.priority-low{background:#000;color:#fff}
.asset-status.status-operations_review,.asset-status.status-sourcing,.asset-status.status-working{background:#f28c00;color:#3f2600}
.asset-status.asset-unassigned{background:var(--canvas);color:var(--muted)}
@media(max-width:800px){#assetDetailPanel .dialog-head{flex-wrap:wrap}.asset-header-fields{order:3;width:100%}.asset-header-fields label{flex:1}.asset-header-fields .asset-status{min-width:0;width:100%}#assetDetailPanel .dialog-head>.expiry-refresh{align-self:center}}

/* Product identity stays compact; quantity headers fit; notes take the balance. */
#assetDetailPanel .asset-products-scroll{container-type:inline-size}
#assetDetailPanel .asset-products-table{width:100%;min-width:900px;table-layout:fixed}
#assetDetailPanel .asset-products-table th:first-child{width:clamp(160px,18cqw,240px)}
#assetDetailPanel .asset-products-table th[data-quantity="original"]{width:clamp(94px,8cqw,110px)}
#assetDetailPanel .asset-products-table th[data-quantity="rsd"],#assetDetailPanel .asset-products-table th[data-quantity="ops"]{width:clamp(74px,7cqw,90px)}
#assetDetailPanel .asset-products-table th[data-quantity="requested"]{width:clamp(100px,9cqw,120px)}
#assetDetailPanel .asset-products-table th[data-quantity="open"]{width:clamp(84px,8cqw,100px)}
#assetDetailPanel .asset-products-table th[data-quantity="fulfilled"]{width:clamp(100px,9cqw,120px)}
#assetDetailPanel .asset-products-table th:last-child{width:auto}
#assetDetailPanel .asset-products-table th.numeric .glance-table-head{padding-inline:0 14px}
#assetDetailPanel .asset-products-table td:first-child{overflow-wrap:anywhere}
#assetDetailPanel .asset-products-table td:first-child strong{white-space:nowrap}
#assetDetailPanel .asset-products-table td.numeric{white-space:nowrap}
#assetDetailPanel .asset-products-table .review-line-input{max-width:100%}
#assetDetailPanel .asset-line-note,#assetDetailPanel .asset-line-planning{width:100%;min-width:0}
#assetDetailPanel .asset-line-planning{min-height:54px}
.asset-due{white-space:nowrap}.asset-due-overdue{color:var(--red,#b34f45);font-weight:700}.asset-due-today{color:var(--amber,#ad7521);font-weight:700}
