/* DealerOS universal search.
 * Department pages keep their native header, tabs, spacing, Pulse hierarchy and
 * right rail. Nothing in this file styles department content.
 */
.ms-dealeros-v2 {
  --ms-v2-border: rgba(148, 163, 184, .28);
  --ms-v2-surface: rgba(255, 255, 255, .96);
  --ms-v2-text: #0f172a;
  --ms-v2-muted: #64748b;
  --ms-v2-blue-soft: rgba(37, 99, 235, .08);
}

.dark.ms-dealeros-v2 {
  --ms-v2-border: rgba(71, 85, 105, .58);
  --ms-v2-surface: rgba(15, 23, 42, .96);
  --ms-v2-text: #f8fafc;
  --ms-v2-muted: #94a3b8;
  --ms-v2-blue-soft: rgba(59, 130, 246, .14);
}



.ms-v2-group-context {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--ms-v2-border);
  border-radius: 10px;
  background: rgba(148, 163, 184, .055);
  color: var(--ms-v2-text);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ms-v2-group-context strong {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(99, 102, 241, .1);
  color: #4f46e5;
  font-size: 9px;
}

.dark .ms-v2-group-context strong {
  color: #a5b4fc;
}

.ms-v2-group-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(12vh, 96px) 16px 24px;
}

.ms-v2-group-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(2, 6, 23, .58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.ms-v2-group-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--ms-v2-border);
  border-radius: 20px;
  background: var(--ms-v2-surface);
  box-shadow: 0 32px 80px -28px rgba(2, 6, 23, .66);
}

.ms-v2-group-top,
.ms-v2-group-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.ms-v2-group-top {
  border-bottom: 1px solid var(--ms-v2-border);
}

.ms-v2-group-top h2 {
  margin: 2px 0 0;
  color: var(--ms-v2-text);
  font-size: 18px;
  font-weight: 850;
}

.ms-v2-group-top p,
.ms-v2-group-footer span {
  margin: 4px 0 0;
  max-width: 600px;
  color: var(--ms-v2-muted);
  font-size: 10px;
  line-height: 1.45;
}

.ms-v2-group-eyebrow {
  color: #6366f1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ms-v2-group-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px;
}

.ms-v2-group-total {
  padding: 11px;
  border: 1px solid var(--ms-v2-border);
  border-radius: 12px;
  background: rgba(148, 163, 184, .05);
}

.ms-v2-group-total small,
.ms-v2-group-total strong {
  display: block;
}

.ms-v2-group-total small {
  color: var(--ms-v2-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.ms-v2-group-total strong {
  margin-top: 3px;
  color: var(--ms-v2-text);
  font-size: 18px;
  font-weight: 900;
}

.ms-v2-group-stores {
  padding: 0 16px 14px;
}

.ms-v2-group-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--ms-v2-border);
}

.ms-v2-group-store-copy {
  min-width: 0;
  flex: 1;
}

.ms-v2-group-store-copy strong,
.ms-v2-group-store-copy small {
  display: block;
}

.ms-v2-group-store-copy strong {
  color: var(--ms-v2-text);
  font-size: 12px;
  font-weight: 850;
}

.ms-v2-group-store-copy small {
  margin-top: 2px;
  color: var(--ms-v2-muted);
  font-size: 10px;
}

.ms-v2-group-store-stats {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.ms-v2-group-store-stats span {
  padding: 5px 7px;
  border: 1px solid var(--ms-v2-border);
  border-radius: 999px;
  color: var(--ms-v2-muted);
  font-size: 9px;
  font-weight: 800;
}

.ms-v2-group-footer {
  align-items: center;
  border-top: 1px solid var(--ms-v2-border);
}

.ms-v2-group-link {
  flex: 0 0 auto;
  border-radius: 10px;
  padding: 9px 11px;
  background: #4f46e5;
  color: white;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.ms-v2-record-context {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  max-width: 190px;
  padding: 0 10px;
  border: 1px solid rgba(99, 102, 241, .22);
  border-radius: 10px;
  background: rgba(99, 102, 241, .07);
  color: var(--ms-v2-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.ms-v2-record-context:hover {
  border-color: rgba(99, 102, 241, .45);
  background: rgba(99, 102, 241, .12);
}

.ms-v2-record-context [data-record-context-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-v2-record-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.ms-v2-global-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--ms-v2-border);
  border-radius: 10px;
  background: rgba(148, 163, 184, .055);
  color: var(--ms-v2-text);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}

.ms-v2-global-search:hover {
  border-color: rgba(37, 99, 235, .36);
  background: var(--ms-v2-blue-soft);
}

.ms-v2-global-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.ms-v2-global-search kbd {
  border: 1px solid var(--ms-v2-border);
  border-radius: 5px;
  padding: 2px 4px;
  background: rgba(148, 163, 184, .07);
  color: var(--ms-v2-muted);
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
}

.ms-v2-palette {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(15vh, 120px) 16px 24px;
}

.ms-v2-palette.hidden {
  display: none !important;
}

.ms-v2-palette-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(2, 6, 23, .56);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  cursor: default;
}

.ms-v2-palette-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(680px, 72vh);
  overflow: hidden;
  border: 1px solid var(--ms-v2-border);
  border-radius: 20px;
  background: var(--ms-v2-surface);
  box-shadow: 0 32px 80px -28px rgba(2, 6, 23, .66);
}

.ms-v2-palette-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--ms-v2-border);
}

.ms-v2-palette-search input {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 1px solid var(--ms-v2-border);
  border-radius: 12px;
  padding: 0 13px;
  outline: none;
  background: rgba(148, 163, 184, .06);
  color: var(--ms-v2-text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.ms-v2-palette-search input:focus {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

.ms-v2-key {
  min-width: 42px;
  height: 32px;
  border: 1px solid var(--ms-v2-border);
  border-radius: 8px;
  background: rgba(148, 163, 184, .08);
  color: var(--ms-v2-muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ms-v2-palette-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 15px;
  border-bottom: 1px solid var(--ms-v2-border);
  color: var(--ms-v2-muted);
  font-size: 10px;
  font-weight: 650;
}

.ms-v2-command-results {
  max-height: min(555px, 60vh);
  overflow-y: auto;
  padding: 8px;
}

.ms-v2-command-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  padding: 9px 11px;
  background: transparent;
  color: var(--ms-v2-text);
  text-align: left;
  cursor: pointer;
}

.ms-v2-command-row:hover,
.ms-v2-command-row:focus-visible {
  outline: none;
  background: var(--ms-v2-blue-soft);
}

.ms-v2-command-copy {
  display: block;
  min-width: 0;
  flex: 1;
}

.ms-v2-command-copy strong,
.ms-v2-command-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-v2-command-copy strong {
  font-size: 13px;
  font-weight: 800;
}

.ms-v2-command-copy small {
  margin-top: 3px;
  color: var(--ms-v2-muted);
  font-size: 10px;
  font-weight: 650;
}

.ms-v2-command-arrow {
  flex: 0 0 auto;
  color: var(--ms-v2-muted);
  font-size: 15px;
}

.ms-v2-palette-empty,
.ms-v2-palette-section {
  padding: 14px 12px;
  color: var(--ms-v2-muted);
  font-size: 11px;
  font-weight: 750;
}

.ms-v2-palette-section {
  padding-top: 8px;
  padding-bottom: 6px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

html.ms-v2-palette-open,
html.ms-v2-palette-open body {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .ms-v2-record-context {
    max-width: 120px;
  }

  .ms-v2-global-search span,
  .ms-v2-global-search kbd {
    display: none;
  }

  .ms-v2-global-search {
    width: 34px;
    min-height: 34px;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .ms-v2-group-context span {
    display: none;
  }

  .ms-v2-group-context {
    width: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }

  .ms-v2-group-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-v2-group-store {
    align-items: flex-start;
  }

  .ms-v2-group-store-stats {
    display: grid;
  }

  .ms-v2-group-footer {
    display: block;
  }

  .ms-v2-group-footer span {
    display: block;
  }


  .ms-v2-palette {
    align-items: flex-end;
    padding: 8px;
  }

  .ms-v2-palette-panel {
    max-height: 86vh;
    border-radius: 20px 20px 14px 14px;
  }

  .ms-v2-palette-helper {
    display: block;
  }

  .ms-v2-palette-helper span {
    display: block;
  }

  .ms-v2-palette-helper span + span {
    margin-top: 3px;
  }

  .ms-v2-command-row {
    min-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-v2-global-search,
  .ms-v2-command-row {
    transition: none !important;
  }
}
