/* Presentation only. Scoped to the existing Parts workspaces and inventory history. */
html body main.main .brad-control-ui.brad-view-requests{padding:0!important;gap:0!important;overflow:hidden!important;min-width:0!important}
html body main.main .brad-view-requests>.brad-queue-toolbar{margin:0!important;border-radius:0!important;padding:12px!important}
html body main.main .brad-view-requests>.brad-control-scroll{margin:0!important;min-width:0!important}
html body main.main .brad-purchase-workspace>section>h3{background:linear-gradient(115deg,#d6d9ef,#9da4ce,#d6d9ef)!important;color:#142f43!important;padding:12px!important;margin:0!important;border:0!important}
html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar){display:grid!important;grid-template-columns:minmax(140px,auto) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch!important}
html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>h3{display:flex!important;align-items:center!important;grid-column:1;grid-row:1;white-space:normal!important}
html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>.brad-queue-toolbar{grid-column:2;grid-row:1;margin:0!important;min-width:0!important;border-radius:0!important}
html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>:not(h3):not(.brad-queue-toolbar){grid-column:1/-1;min-width:0!important}
html body main.main .brad-control-ui .brad-queue-filters button[aria-pressed=true]{background:linear-gradient(115deg,#555e99,#3e467e)!important;color:white!important;border-color:#454d87!important}
html body main.main .brad-control-ui .brad-queue-filters button[aria-pressed=true] *{color:white!important}
html body main.main .brad-control-ui .brad-queue-filters button[aria-pressed=false]{background:#f7fbfd!important;color:#142f43!important}
html body main.main .brad-control-ui .brad-queue-filters button[aria-pressed=false] *{color:#142f43!important}
html body:has(#active-hub option[value=parts]:checked) main.main :is(.e8-v76-action,.brad-request-topbar summary){background:linear-gradient(115deg,#626ba3,#41497f)!important;color:#fff!important;border-color:#41497f!important}
html body:has(#active-hub option[value=parts]:checked) main.main :is(.e8-v76-action,.brad-request-topbar summary) *{color:#fff!important}
html body main .v895-history .v895-filters,html body main .v895-filters{background:linear-gradient(115deg,#c6e0e8,#8db5c3,#c6e0e8)!important;color:#142f43!important;margin:0!important;gap:8px!important;padding:12px!important}
html body main .v895-filters label{color:#142f43!important;min-width:110px!important}
html body main .v895-filters :is(input,select){background:#f7fbfd!important;color:#142f43!important;border-color:#8baeba!important;min-width:0!important}
html[data-app-theme=dark] body main.main .brad-purchase-workspace>section>h3{background:linear-gradient(115deg,#182334,#41497f,#182334)!important;color:#f1f6fb!important}
html[data-app-theme=dark] body main .v895-filters{background:linear-gradient(115deg,#254b5d,#376b7c,#254b5d)!important;color:#fff!important}
html[data-app-theme=dark] body main .v895-filters label{color:#fff!important}
html[data-app-theme=dark] body main .v895-filters :is(input,select){background:#172638!important;color:#f1f6fb!important;border-color:#658c9d!important;color-scheme:dark}
@media(max-width:1100px){html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto minmax(0,1fr)}html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>.brad-queue-toolbar{grid-column:1;grid-row:2}html body main.main .brad-view-requests .brad-queue-toolbar>label{flex:1 1 100%!important;max-width:100%!important}}

/* V4: screenshot-driven presentation corrections. */
html body main .wh896-panel{--bar:linear-gradient(115deg,#c6e0e8,#8db5c3,#c6e0e8);--ink:#142f43;--field:#f7fbfd;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);align-content:start;background-image:var(--bar)!important;background-size:100% 72px!important;background-repeat:no-repeat!important}
html body main .wh896-panel>div:first-child,html body main .wh896-panel>.wh896-search{background:transparent!important;color:var(--ink)!important;margin:0!important;padding:12px!important;min-width:0!important;align-items:center!important}
html body main .wh896-panel>div:first-child{grid-column:1;grid-row:1}
html body main .wh896-panel>.wh896-search{grid-column:2;grid-row:1}
html body main .wh896-panel>.wh896-search input{width:100%!important;min-width:0!important;background:var(--field)!important;color:var(--ink)!important;border:1px solid #8baeba!important;border-radius:7px!important}
html body main .wh896-panel>div:first-child :is(h3,p){color:var(--ink)!important}
html body main .wh896-panel>:not(:first-child):not(.wh896-search){grid-column:1/-1}
html body main.v895-history .ni-panel.ni-full>.v895-filters{grid-column:1/-1!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;justify-content:flex-start!important;align-items:end!important}
html body main.v895-history .v895-filters label:first-child{order:5;flex:2 1 240px!important;margin-left:auto!important}
html body main.v895-history .v895-filters label:not(:first-child){flex:0 1 150px!important}
html body main.v895-history .ni-panel.ni-full>.v892-output{grid-column:1/-1!important;min-width:0!important}
html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar){background-image:linear-gradient(115deg,#d6d9ef,#9da4ce,#d6d9ef)!important;background-repeat:no-repeat!important;background-size:100% 65px!important}
html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>h3,html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>.brad-queue-toolbar{background:transparent!important}
html body main.main .brad-control-ui .brad-control-scroll td{padding:7px 6px!important;line-height:1.25!important}
html body main.main .brad-control-ui .brad-queue-status{border:0!important;box-shadow:none!important;font-weight:500!important}
html[data-app-theme=dark] body main .wh896-panel{--bar:linear-gradient(115deg,#254b5d,#376b7c,#254b5d);--ink:#f1f6fb;--field:#172638}
html[data-app-theme=dark] body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar){background-image:linear-gradient(115deg,#182334,#41497f,#182334)!important}
@media(max-width:1100px){html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>h3,html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>.brad-queue-toolbar{background:linear-gradient(115deg,#d6d9ef,#9da4ce,#d6d9ef)!important}html[data-app-theme=dark] body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>h3,html[data-app-theme=dark] body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>.brad-queue-toolbar{background:linear-gradient(115deg,#182334,#41497f,#182334)!important}}
@media(max-width:850px){html body main .wh896-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr);background-image:none!important}html body main .wh896-panel>div:first-child,html body main .wh896-panel>.wh896-search{grid-column:1;grid-row:auto;background:var(--bar)!important}}

/* V5: explicit history row placement and uniform Parts table alignment. */
html body main.v895-history .ni-panel.ni-full:has(>.v895-filters){display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;gap:0!important;min-height:0!important}
html body main.v895-history .ni-panel.ni-full:has(>.v895-filters)>header{display:none!important}
html body main.v895-history .ni-panel.ni-full>.v895-filters{grid-row:1!important;grid-column:1!important;order:-1!important}
html body main.v895-history .ni-panel.ni-full>.v892-output{grid-row:2!important;grid-column:1!important;order:1!important;min-height:0!important;overflow:auto!important}
html body main.main .brad-control-ui :is(.brad-control-scroll,.brad-purchase-workspace) table :is(th,td){text-align:center!important;vertical-align:middle!important;padding:8px 12px!important}
html body main.main .brad-control-ui :is(.brad-control-scroll,.brad-purchase-workspace) table :is(th,td)>:is(div,span,a,button):not(.brad-queue-status){text-align:center!important}
html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar){background:linear-gradient(115deg,#d6d9ef,#9da4ce,#d6d9ef)!important}
html body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar)>:not(h3):not(.brad-queue-toolbar){background:var(--pc-row,#fff)!important}
html[data-app-theme=dark] body main.main .brad-purchase-workspace>section:has(>.brad-queue-toolbar){background:linear-gradient(115deg,#182334,#41497f,#182334)!important}
@media print{html body main.v895-history .ni-panel.ni-full>.v895-filters{display:none!important}html body main.v895-history .ni-panel.ni-full>.v892-output{grid-row:1!important}}

/* V6: left-origin text columns, compact inquiry, department dialog styling. */
html body main.main .brad-control-ui :is(.brad-control-scroll,.brad-purchase-workspace) table :is(th,td){text-align:left!important;padding:8px 16px!important}
html body main.main .brad-control-ui :is(.brad-control-scroll,.brad-purchase-workspace) table :is(th,td)>:is(div,span,a,button):not(.brad-queue-status){text-align:inherit!important}
html body main.main .brad-view-requests table :is(th,td):nth-child(n+5),
html body main.main .brad-purchase-workspace table:has(th:nth-child(8)) :is(th,td):nth-child(n+4),
html body main.main .brad-purchase-workspace table:not(:has(th:nth-child(6))) :is(th,td):is(:nth-child(2),:nth-child(5)),
html body main.main .brad-purchase-workspace table:has(th:nth-child(6)):not(:has(th:nth-child(7))) :is(th,td):nth-child(n+3),
html body main.main .brad-inquiry-table table :is(th,td):nth-child(n+3):nth-child(-n+8){text-align:center!important}
html body main.main .brad-inquiry-list{padding:0!important;gap:0!important;overflow:hidden!important}
html body main.main .brad-inquiry-list>.brad-inquiry-toolbar{margin:0!important;border-radius:0!important;align-items:end!important;justify-content:flex-start!important}
html body main.main .brad-inquiry-toolbar>label:first-child{flex:0 1 210px!important;margin:0!important}
html body main.main .brad-inquiry-toolbar>label:nth-child(2){flex:0 1 110px!important;margin:0!important}
html body main.main .brad-inquiry-toolbar>label:last-child{flex:1 1 220px!important;max-width:none!important;margin-left:auto!important}
html body main.main .brad-inquiry-list>.brad-inquiry-table{margin:0!important}
html body dialog.parts-v3-task:has(.brad-control-ui){--dlg-ink:#142f43;--dlg-bg:#fff;--dlg-head:#e0e3f2;--dlg-a:#d6d9ef;--dlg-b:#9da4ce;--dlg-field:#f7fbfd;border-top:4px solid #454d87!important;background:var(--dlg-bg)!important;color:var(--dlg-ink)!important;border-radius:10px!important;padding:0!important;max-width:calc(100vw - 32px)!important}
html body dialog.parts-v3-task:has(.brad-control-ui)>header{background:linear-gradient(115deg,var(--dlg-a),var(--dlg-b),var(--dlg-a))!important;color:var(--dlg-ink)!important;padding:14px 18px!important;margin:0!important}
html body dialog.parts-v3-task .brad-control-ui{padding:16px!important;color:var(--dlg-ink)!important}
html body dialog.parts-v3-task .brad-control-ui :is(th,td){text-align:left!important;padding:9px 12px!important;color:var(--dlg-ink)!important}
html body dialog.parts-v3-task .brad-control-ui th{background:var(--dlg-head)!important}
html body dialog.parts-v3-task .brad-control-ui :is(label,h3,p){color:var(--dlg-ink)!important}
html body dialog.parts-v3-task .brad-control-ui :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--dlg-field)!important;color:var(--dlg-ink)!important;border:1px solid #777eab!important;border-radius:7px!important;min-height:34px}
html[data-app-theme=dark] body dialog.parts-v3-task:has(.brad-control-ui){--dlg-ink:#edf4ff;--dlg-bg:#182334;--dlg-head:#303b58;--dlg-a:#30365d;--dlg-b:#4c5685;--dlg-field:#172638}

/* V7: record detail surfaces match the approved catalog. */
html body main.main .brad-control-ui.brad-record-detail{padding:0!important;gap:0!important;display:flex!important;flex-direction:column;align-items:stretch;overflow:auto!important;min-height:0}
html body main.main .brad-record-detail>.brad-control-row:first-child{margin:0!important;padding:12px 16px!important;background:linear-gradient(115deg,#d6d9ef,#9da4ce,#d6d9ef)!important}
html body main.main .brad-record-detail .brad-counter-detail{display:flex!important;flex-direction:column;gap:0!important}
html body main.main .brad-record-detail :is(.brad-counter-heading,h3){margin:0!important;padding:12px 16px!important;background:linear-gradient(115deg,#d6d9ef,#9da4ce,#d6d9ef)!important;color:#142f43!important}
html body main.main .brad-record-detail .brad-counter-heading h3{background:none!important;padding:0!important}
html body main.main .brad-record-detail :is(p,.brad-control-row){margin:0!important;padding:10px 16px!important}
html body main.main .brad-record-detail section{gap:0!important;margin:0!important;padding:0!important}
html body main.main .brad-record-detail .brad-control-scroll{margin:0!important;padding:0!important}
html body main.main .brad-control-ui.brad-record-detail table :is(th,td){text-align:left!important;padding:9px 16px!important;vertical-align:middle!important}
html body main.main .brad-control-ui.brad-record-detail table :is(th,td).brad-column-center{text-align:center!important}
html body main.main .brad-record-detail button.outline{min-height:30px;border-radius:6px}
html[data-app-theme=dark] body main.main .brad-record-detail>.brad-control-row:first-child,html[data-app-theme=dark] body main.main .brad-record-detail :is(.brad-counter-heading,h3){background:linear-gradient(115deg,#30365d,#4c5685,#30365d)!important;color:#edf4ff!important}
html[data-app-theme=dark] body main.main .brad-record-detail .brad-counter-heading h3{background:none!important}

/* V8: consistent inset for left-origin list columns. */
html body main.main .brad-control-ui.brad-view-requests:not(.brad-record-detail) .brad-control-scroll table :is(th,td):first-child,
html body main.main .brad-control-ui.brad-purchase-workspace .brad-control-scroll table:has(th:nth-child(8)) :is(th,td):first-child{padding-left:24px!important}
html body main.main .brad-control-ui.brad-view-requests:not(.brad-record-detail) .brad-control-scroll table :is(th,td):nth-child(-n+4):not(:first-child),
html body main.main .brad-control-ui.brad-purchase-workspace .brad-control-scroll table:has(th:nth-child(8)) :is(th,td):nth-child(2),
html body main.main .brad-control-ui.brad-purchase-workspace .brad-control-scroll table:has(th:nth-child(8)) :is(th,td):nth-child(3){padding-left:18px!important}

/* V9: match approved Receiving inset on inquiry and purchasing lists. */
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):first-child,
html body main.main .brad-control-ui.brad-purchase-workspace:not(.brad-record-detail) .brad-control-scroll table:not(:has(th:nth-child(8))) :is(th,td):first-child{padding-left:24px!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(2),
html body main.main .brad-control-ui.brad-purchase-workspace:not(.brad-record-detail) .brad-control-scroll table:not(:has(th:nth-child(8))) :is(th,td):nth-child(2){padding-left:18px!important}

/* V10: balanced inquiry columns, warehouse aligned at right. */
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table{width:100%!important;table-layout:fixed!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td){box-sizing:border-box!important;overflow-wrap:anywhere}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(1){width:10%!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(2){width:17%!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(3){width:9%!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(4){width:10%!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(5){width:9%!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(6){width:9%!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(7){width:9%!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(8){width:9%!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):nth-child(9){width:18%!important}
html body main.main .brad-control-ui.brad-inquiry-list .brad-inquiry-table table :is(th,td):last-child{text-align:center!important;padding:8px 16px!important}
