/* Loaded only by the PC SMD parts page; narrow view retains the original dialog. */
#smdPinnedPhoto,#smdDetailTabs,#smdDetailEmpty,#smdListControls,#smdPartActions{display:none}
#smdPhotoZoom{width:min(780px,94vw);max-width:94vw;border:1px solid var(--line2);border-radius:16px;background:var(--panel);color:var(--ink);padding:20px;z-index:10000}
#smdPhotoZoom::backdrop{background:#17251f99}#smdPhotoZoom header{display:flex;justify-content:space-between;align-items:center;gap:20px}#smdPhotoZoom img{width:100%;height:min(65vh,620px);object-fit:contain;display:block;margin-top:14px}#smdPhotoZoom p{color:var(--muted);font-size:13px}
@media screen{
 html[data-smd-split]:is(html,#erp-pc-theme) body .wrap.smdPartsLayout{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(440px,1fr)!important;gap:18px!important;align-items:start!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsLayout>.pagehd{grid-column:1/-1;margin-bottom:0!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsLayout>#qpanel,html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsLayout>.smdPartsList{height:calc(100dvh - var(--erp-nav-h,80px) - 28px)!important;min-height:480px;max-height:none!important;min-width:0!important;margin:0!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsLayout>.smdPartsList{display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsLayout>#qpanel{height:calc(100dvh - var(--erp-nav-h,80px) - 40px)!important;min-height:0;position:sticky!important;top:calc(var(--erp-nav-h,80px) + 12px)!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;translate:none!important;width:100%!important;max-width:100%!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:1!important;display:flex!important;flex-direction:column!important;animation:none!important;transition:none!important;border-radius:16px!important;border-top:3px solid var(--brand)!important;overflow:hidden!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qov,html[data-smd-split]:is(html,#erp-pc-theme) body #erp-fixed-table-header{display:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qh{padding:12px 18px!important;flex-shrink:0;cursor:default!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qh button,html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qf .elpusk-modal-bottom-cancel,html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qf>button[onclick="closeQuick()"]{display:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qb{display:block!important;grid-template-columns:none!important;overflow:auto!important;flex:1!important;min-height:0!important;padding:14px 18px!important;width:100%!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qf{padding:12px 16px!important;flex-shrink:0!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPartActions{display:flex;gap:8px;margin-left:auto}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPartActions button[hidden],html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #qEditBtn[hidden]{display:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto{display:block;padding:0 16px;flex-shrink:0}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto .qphoto{padding:10px!important;gap:12px!important;margin:0 0 10px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto .qphoto-box{width:116px!important;height:116px!important;flex:0 0 116px!important;cursor:zoom-in}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto .qphoto-title{font-size:19px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto .qphoto-help{display:none}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdDetailTabs{display:flex;gap:6px;flex-wrap:wrap;padding:0 16px 9px;border-bottom:1px solid var(--line);flex-shrink:0}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdDetailTabs button{background:var(--erp-raised);color:var(--ink2);border:1px solid var(--line2);border-radius:8px;padding:8px 10px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdDetailTabs button.on{background:var(--ink2);color:var(--panel);border-color:var(--ink2)}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto[hidden],html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdDetailTabs[hidden],html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .smd-tab-hidden{display:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel:not(.smd-has-part)>:is(.qb,.qf){display:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel:not(.smd-has-part)>#smdDetailEmpty{display:block;padding:40px 20px;color:var(--muted);text-align:center}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid{display:grid!important;grid-template-columns:1fr 1fr!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid .qrow{display:block!important;padding:12px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid .qv{display:block!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;margin-top:6px}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qused-list{display:flex!important;max-height:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .elph-table{overflow:auto!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .elph-table table{min-width:600px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls{display:block;padding:12px 16px;border-bottom:1px solid var(--line)}
 html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}
 html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls input,html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls select{width:100%;min-width:0!important;box-sizing:border-box}
 html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls .smdListOptions{display:grid;grid-template-columns:minmax(100px,1fr) 100px 38px auto;align-items:end;gap:7px;margin-top:9px}
 html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls button{min-height:36px;border:1px solid var(--line2);background:var(--erp-raised);color:var(--ink2);border-radius:8px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.cardhd{padding:12px 16px!important;flex-wrap:wrap;gap:10px!important;flex-shrink:0}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.cardhd .seg{flex-wrap:wrap!important;gap:4px}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.track{flex:1!important;overflow:auto!important;min-height:0!important;max-height:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.track>table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.track>table colgroup{display:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.track>table thead{position:sticky!important;top:0!important;z-index:2}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList .smd-extra-col{display:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList th[data-smd-col="0"]{width:45px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList th[data-smd-col="1"]{width:104px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList th[data-smd-col="2"]{width:auto!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList th[data-smd-col="3"]{width:130px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList :is(th,td){overflow-wrap:anywhere!important;white-space:normal!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList #rows tr.smd-current{background:var(--erp-active)!important;box-shadow:inset 4px 0 var(--brand)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList :is(.foot,.pgbar){flex-shrink:0;padding:9px!important;font-size:12px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList .pgbar button{padding:5px 9px!important;min-width:30px!important}
 @media(max-width:1200px){html[data-smd-split]:is(html,#erp-pc-theme) body .wrap.smdPartsLayout{grid-template-columns:minmax(0,1fr) 440px!important;gap:12px!important}html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList th[data-smd-col="1"]{width:90px!important}html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList th[data-smd-col="3"]{width:110px!important}}
}
@media print{#qpanel,#smdPhotoZoom,#smdListControls{display:none!important}}

@media screen{html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls .el-combo{width:100%!important;min-width:0!important;max-width:100%!important}html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls .smdListOptions>label{min-width:0}}

@media screen{html[data-smd-split] .smdPartsList{--smd-col-0:45px;--smd-col-1:104px;--smd-col-2:auto;--smd-col-3:130px}}
@media screen and (max-width:1200px){html[data-smd-split] .smdPartsList{--smd-col-1:90px;--smd-col-3:110px}}

/* SMD desktop only: distinct navigation, selection, actions and readable values. */
@media screen {
 html[data-smd-split][data-erp-theme=light]{
  --paper:#f1f3f5;--ink:#20252d;--ink2:#39424e;--muted:#535e6b;--faint:#586474;
  --line:#ccd2da;--line2:#87929f;--erp-raised:#f3f5f7;--erp-hover:#e9edf2;
  --smd-heading:#303945;--smd-heading-text:#fff;--smd-selection:#fff0cf;--smd-selection-line:#956000;
  --smd-field:#f6f7f9;--smd-stock-bg:#efebf7;--smd-stock-text:#563b86;
  --smd-danger-bg:#ffebef;--smd-danger-text:#9b233e;--smd-primary:#6243a8;
 }
 html[data-smd-split][data-erp-theme=dark]{
  --smd-heading:#30343c;--smd-heading-text:#fff;--smd-selection:#483a20;--smd-selection-line:#efbd5b;
  --smd-field:#2a2e34;--smd-stock-bg:#342c45;--smd-stock-text:#deccff;
  --smd-danger-bg:#482735;--smd-danger-text:#ffc0cb;--smd-primary:#6849a9;
 }
 html[data-smd-split]:is(html,#erp-pc-theme) body::before{background:var(--paper)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .topnav .tnitem{border-radius:9px!important;min-height:44px!important;padding:7px 10px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .topnav .tnitem.on{background:var(--smd-heading)!important;color:var(--smd-heading-text)!important;border-color:var(--smd-heading)!important;box-shadow:inset 0 -3px 0 #eab761!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .topnav .tnitem.on small{color:#edf0f5!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.cardhd .d{display:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.cardhd .seg{background:transparent!important;border:0!important;padding:0!important;gap:4px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.cardhd .seg button{border:1px solid var(--line2)!important;border-radius:8px!important;background:var(--panel)!important;color:var(--ink2)!important;padding:8px 10px!important;font-size:13px!important;min-height:38px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.cardhd .seg button.on,
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #qEditBtn{background:var(--smd-primary)!important;color:#fff!important;border-color:var(--smd-primary)!important;box-shadow:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls{background:var(--smd-field);padding:14px 16px}
 html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls label{font-size:13px;font-weight:700;color:var(--ink2)}
 html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls :is(input,select){min-height:42px!important;font-size:14px!important;padding:9px 12px!important;border-radius:8px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #smdListControls button{min-height:42px;font-size:13px;background:var(--panel)}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.track>table thead th{background:var(--erp-hover)!important;color:var(--ink)!important;font-size:14px!important;border-bottom:2px solid var(--line2)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList #rows td{height:48px!important;font-size:15px!important;line-height:1.4!important;text-align:center!important;border-bottom:1px solid var(--line)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList #rows tr:nth-child(even){background:var(--smd-field)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList #rows tr:hover{background:var(--erp-hover)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList #rows tr.smd-current{background:var(--smd-selection)!important;box-shadow:inset 4px 0 var(--smd-selection-line)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList #rows tr.smd-current td[data-smd-col="2"]{font-weight:850!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList #rows tr:focus-visible{outline:2px solid var(--smd-selection-line)!important;outline-offset:-3px}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList .tag{font-size:13px!important;padding:5px 9px!important;line-height:1.35!important;border-radius:6px!important;border:1px solid var(--line2)!important}
 html[data-smd-split][data-erp-theme=light]:is(html,#erp-pc-theme) body .smdPartsList .tag[data-smd-family]{background:var(--smd-badge-bg,#e8ecf1)!important;color:var(--smd-badge-ink,#354457)!important;border-color:var(--smd-badge-line,#8a98aa)!important}
 html[data-smd-split] [data-smd-family=capacitor]{--smd-badge-bg:#eee3f9;--smd-badge-ink:#613a83;--smd-badge-line:#a487c0}
 html[data-smd-split] [data-smd-family=ic]{--smd-badge-bg:#d8eee9;--smd-badge-ink:#195b50;--smd-badge-line:#74a89c}
 html[data-smd-split] [data-smd-family=inductor]{--smd-badge-bg:#fae8c9;--smd-badge-ink:#765015;--smd-badge-line:#b89760}
 html[data-smd-split] [data-smd-family=diode]{--smd-badge-bg:#f5e0e7;--smd-badge-ink:#873751;--smd-badge-line:#ba8496}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList .pgbar button{min-height:36px!important;min-width:36px!important;font-size:14px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList .pgbar button:is(.on,[aria-current=page]){background:var(--smd-heading)!important;color:var(--smd-heading-text)!important;border-color:var(--smd-heading)!important;box-shadow:none!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsLayout>#qpanel{border-top:0!important;border-color:var(--line2)!important;box-shadow:0 4px 16px #20252d0c!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qh{background:var(--smd-heading)!important;color:var(--smd-heading-text)!important;min-height:50px;box-sizing:border-box}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qh .qt{color:inherit!important;font-size:16px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #qNo{background:#515e6e!important;color:#fff!important;font-size:12px!important;padding:4px 10px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto{padding:14px 16px 0}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto .qphoto{border:0!important;background:var(--panel)!important;padding:0!important;gap:16px!important;margin-bottom:14px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto .qphoto-box{width:144px!important;height:144px!important;flex-basis:144px!important;border:1px solid var(--line2)!important;border-radius:10px!important;background:#fff!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto .qphoto-title{font-size:24px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto :is(.qphoto-meta,.qphoto-empty){font-size:13px!important;color:var(--muted)!important;line-height:1.5!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdDetailTabs{gap:6px;padding-bottom:12px;flex-wrap:nowrap}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdDetailTabs button{flex:1;min-height:40px;font-size:13px;padding:8px 6px;white-space:nowrap;background:var(--panel)}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdDetailTabs button.on{background:var(--smd-heading);color:var(--smd-heading-text);border-color:var(--smd-heading);box-shadow:inset 0 -3px 0 #eab761}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qb{padding:14px 16px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qsection{border:0!important;border-radius:0!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qsection-head{background:var(--panel)!important;padding:0 0 12px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid{gap:8px!important;padding:0!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid .qrow{background:var(--smd-field)!important;border:1px solid var(--line)!important;border-radius:8px!important;padding:12px!important;text-align:left!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid .qk{font-size:13px!important;line-height:1.4!important;font-weight:650!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid .qv{font-size:16px!important;line-height:1.45!important;text-align:left!important;margin-top:6px!important;font-weight:750!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid [data-smd-field=stock]{background:var(--smd-stock-bg)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid [data-smd-field=stock] .qv{font-size:22px!important;color:var(--smd-stock-text)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid [data-smd-field=price] .qv{font-size:20px!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid .smd-stock-empty{background:var(--smd-danger-bg)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid .smd-stock-empty .qv{color:var(--smd-danger-text)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel .qbasic-grid [data-smd-field=note]{grid-column:1/-1}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qf{background:var(--smd-field)!important;border-top:1px solid var(--line2)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel>.qf button{font-size:14px!important;min-height:42px!important;border-radius:8px!important}
 @media(max-width:1200px){
  html[data-smd-split]:is(html,#erp-pc-theme) body #qpanel #smdPinnedPhoto .qphoto-box{width:112px!important;height:112px!important;flex-basis:112px!important}
  html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.cardhd .seg{gap:5px!important}
  html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList #rows td{font-size:14px!important}
 }
}

/* Keep search results reachable when toolbars wrap on a short/wide-zoom viewport. */
@media screen {
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsLayout>.smdPartsList{height:auto!important;min-height:calc(100dvh - var(--erp-nav-h,80px) - 28px)!important}
 html[data-smd-split]:is(html,#erp-pc-theme) body .smdPartsList>.track{flex:1 0 auto!important;min-height:180px!important;max-height:60dvh!important}
}
