/* Sales uses the page as the vertical scroll container. */
body.wb-live:has(#hubPanel:not([hidden]) .sd-toolbar) {
  height:auto!important;
  min-height:100dvh;
  overflow:visible!important;
}
body.wb-live:has(#hubPanel:not([hidden]) .sd-toolbar) main.wb-workspace {
  flex:0 0 auto;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0 clamp(6px,1vw,16px) 12px;
  overflow:visible!important;
}
body.wb-live:has(#hubPanel:not([hidden]) .sd-toolbar) > #workbenchDock,
#hubPanel:has(.sd-toolbar) > #hubCrumbs,
#hubPanel:has(.sd-toolbar) > #hubProgress:empty {
  display:none!important;
}
#hubPanel:has(.sd-toolbar) {
  flex:0 0 auto!important;
  height:auto!important;
  max-height:none!important;
  min-height:0;
  overflow:visible!important;
}
#hubPanel:has(.sd-toolbar) > #hubBody {
  min-width:0;
  padding:6px 8px;
  gap:6px;
  overflow:visible!important;
}
body.wb-live #hubPanel:has(.sd-toolbar) > .hub-header {
  flex-wrap:wrap;
  min-height:0;
  padding:5px 9px;
  gap:5px 8px;
}
#hubPanel:has(.sd-toolbar) > .hub-header h2 {
  font-size:16px;
  line-height:1.3;
}
#hubPanel .sd-dock-button {display:none;}
#hubPanel:has(.sd-toolbar) .sd-dock-button {display:inline-flex;}
#hubPanel:has(.sd-toolbar) .hub-tools:empty {display:none;}
.sd-toolbar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:5px 8px;
  padding:4px;
  border:1px solid #e2d6ed;
  border-radius:8px;
  background:#f5f1fa;
}
#hubPanel .sd-toolbar :is(.sd-tabs,.sd-actions) {
  min-width:0;
  margin:0;
  padding:0;
  gap:4px;
  border:0;
  background:transparent;
}
#hubPanel .sd-toolbar .button {
  flex:0 0 auto;
  min-height:30px;
  padding:3px 8px;
  font-size:11px;
  white-space:nowrap;
}
#hubPanel .sd-stock-heading {font-size:13px;margin:0 6px;}
#hubPanel:has(.sd-toolbar) :is(.sd-filters,.sd-result-count) {margin-block:0;}
#hubPanel:has(.sd-toolbar) .sd-filters {padding:5px;gap:5px;}
#hubPanel:has(.sd-toolbar) .sd-filters :is(input,select) {min-height:30px;}
#hubPanel:has(.sd-toolbar) #hubBody :is(.sd-table-scroll,.hub-table-scroll) {
  flex:0 0 auto!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior:auto;
}
#sdInventoryPane {
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:100%;
  height:auto;
  max-height:none;
  border-radius:8px;
  box-shadow:none;
  overflow:visible;
}
#sdInventoryPane .inv-header {min-height:0;padding:5px 9px;gap:8px;}
#sdInventoryPane .inv-header h2 {font-size:15px;line-height:1.3;margin:0;}
#sdInventoryPane .inv-header p {margin:1px 0 0;}
#sdInventoryPane .inv-eyebrow,
#sdInventoryPane #invClose,
#sdInventoryPane #invBreadcrumb:has(> :only-child) {display:none;}
#sdInventoryPane .inv-tools {
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  align-items:center;
  gap:4px 7px;
  padding:5px 8px;
}
#sdInventoryPane #invSearch {min-height:32px;padding:4px 8px;font-size:12px;}
#sdInventoryPane .inv-tabs {margin:0;gap:3px;flex-wrap:wrap;}
#sdInventoryPane .inv-tabs :is(button,select) {min-height:30px;padding:3px 7px;}
#sdInventoryPane .inv-tabs strong {font-size:12px;padding-inline:5px;}
#sdInventoryPane #invFilterToggle {display:inline-block;}
#sdInventoryPane :is(.inv-filters,#invBreadcrumb) {grid-column:1/-1;margin:0;}
#sdInventoryPane:not(.inv-filter-open) .inv-filters {display:none;}
#sdInventoryPane .inv-filters {
  padding:5px;
  gap:5px;
  align-items:end;
}
#sdInventoryPane .inv-filters label {gap:2px;}
#sdInventoryPane .inv-filters :is(input,select) {height:30px;padding:3px 7px;}
#sdInventoryPane .inv-body {
  flex:0 0 auto;
  min-height:0;
  max-height:none;
  padding:0 8px 6px;
  gap:8px;
  overflow:visible;
  scrollbar-gutter:auto;
}
#sdInventoryPane .inv-body > main {min-width:0;width:100%;margin:0;padding:0;}
#sdInventoryPane .inv-facets {
  grid-template-columns:repeat(auto-fill,minmax(min(100%,148px),1fr));
  gap:5px;
  padding:0;
}
#sdInventoryPane .inv-facet {
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  min-height:48px;
  align-items:center;
  gap:4px;
  padding:4px 6px;
  border-radius:7px;
  text-align:start;
  box-shadow:none;
}
#sdInventoryPane .inv-facet :is(.inv-logo,.inv-logo-fallback,.inv-facet-symbol) {
  width:34px;
  height:23px;
  margin:0;
  font-size:16px;
}
#sdInventoryPane .inv-facet strong {
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
#sdInventoryPane .inv-facet b {font-size:16px;line-height:1.2;}
#sdInventoryPane .inv-facet small {
  position:absolute;
  width:1px;
  height:1px;
  clip-path:inset(50%);
  overflow:hidden;
}
#sdInventoryPane .inv-cars {
  grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));
  gap:6px;
  padding:0;
}
#sdInventoryPane .inv-car-card {padding:7px;border-radius:7px;box-shadow:none;}
#sdInventoryPane .inv-car-card h3 {min-height:0;margin:4px 0;font-size:12px;}
#sdInventoryPane .inv-car-card p {margin:1px 0;}
#sdInventoryPane .inv-car-card .inv-price {margin:4px 0;}
#sdInventoryPane .inv-footer {padding:5px 8px;gap:5px;flex-wrap:wrap;}
#sdInventoryPane .inv-table-wrap {max-height:none;overflow-y:hidden;}
html:has(#sdDockDialog[open]) {overflow:hidden;}
#sdDockDialog {
  box-sizing:border-box;
  width:min(920px,calc(100vw - 24px));
  max-height:calc(100dvh - 24px);
  padding:8px;
  border:1px solid #d9cce4;
  border-radius:10px;
  color:inherit;
  background:#fff;
  overflow:auto;
  overscroll-behavior:contain;
}
#sdDockDialog::backdrop {background:#261a3f70;}
#sdDockDialog .sd-dock-actions {display:flex;justify-content:space-between;gap:5px;}
#sdDockDialog #workbenchDock {
  display:block!important;
  position:static;
  width:100%;
  margin:0;
  max-height:none;
  overflow:visible;
  box-shadow:none;
}
#sdDockDialog .dock-roles {flex-wrap:wrap;overflow:visible;}
#sdDockDialog #dockTools {
  display:block;
  max-height:none;
  overflow:visible;
}
#sdDockDialog #workbenchDock #dockTools > section {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,164px),1fr));
  gap:5px;
}
@media(max-width:750px) {
  #hubPanel:has(.sd-toolbar) > #hubBody {padding:5px;}
  #hubPanel:has(.sd-toolbar) > .hub-header > div:has(>#hubTitle) {min-width:0;flex:1 1 92px;width:auto;}
  #hubPanel:has(.sd-toolbar) > .hub-header > .mw-panel-mark {flex:none;}
  #hubPanel:has(.sd-toolbar) > .hub-header > .button {
    margin:0;
    padding-inline:5px;
    min-height:29px;
    width:auto!important;
    flex:0 0 auto;
    white-space:nowrap;
  }
  #hubPanel:has(.sd-toolbar) > .hub-header .hub-company {display:none;}
  #hubPanel:has(.sd-toolbar) > .hub-header > .hub-tools:not(:empty) {order:2;flex:1 1 100%;}
  #hubPanel .sd-toolbar .sd-tabs {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    flex:1 1 100%;
  }
  #hubPanel .sd-toolbar .button {min-height:30px;}
  #hubPanel .sd-toolbar .sd-tabs .button {
    min-width:0;
    padding:3px 2px;
    white-space:normal;
    font-size:10px;
    line-height:1.2;
    justify-content:center;
  }
  #sdInventoryPane .inv-header {padding-block:4px;}
  #sdInventoryPane .inv-header p {font-size:9px;}
  #sdInventoryPane .inv-tabs :is(button,select) {min-height:27px;padding-inline:4px;}
  #sdInventoryPane .inv-tabs select {flex:0 0 58px;margin-inline-start:0;}
  #sdInventoryPane .inv-tabs strong {font-size:10px;padding-inline:1px;}
  #sdInventoryPane .inv-tools {grid-template-columns:minmax(0,1fr);}
  #sdInventoryPane .inv-facets {grid-template-columns:repeat(2,minmax(0,1fr));}
  #sdInventoryPane .inv-facet {grid-template-columns:26px minmax(0,1fr) auto;}
  #sdInventoryPane .inv-facet :is(.inv-logo,.inv-logo-fallback,.inv-facet-symbol) {width:26px;}
  #sdInventoryPane .inv-cars {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:350px) {
  #sdInventoryPane .inv-cars {grid-template-columns:1fr;}
}
