/* Shared native dropdowns. Load after page styles, including in shadow roots. */
:root, :host {
  --select-height: 44px;
  --select-padding: 12px;
  --select-arrow-inset: 14px;
  --select-arrow-size: 16px;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352636b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

select:not([multiple]):not([size]), select[size="1"]:not([multiple]), summary.select-control {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  min-height: var(--select-height);
  height: auto;
  max-width: 100%;
  border: 1px solid var(--select-border, var(--line-strong, #afbec6));
  border-radius: var(--radius-control, 5px);
  padding-block: 10px;
  padding-inline-start: var(--select-padding);
  padding-inline-end: calc(var(--select-arrow-inset) + var(--select-arrow-size) + var(--select-padding));
  background-color: var(--select-surface, var(--surface, #fff));
  background-image: var(--select-arrow);
  background-position: right var(--select-arrow-inset) center;
  background-size: var(--select-arrow-size) var(--select-arrow-size);
  background-repeat: no-repeat;
  color: var(--select-ink, var(--ink, #17252a));
  font-family: var(--font, Roboto, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  cursor: pointer;
}

.appliance-role-config, .appliance-metadata-fields {
  --select-surface: #203238;
  --select-ink: #f4f7f8;
  --select-border: #52636b;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f4f7f8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

select:not([multiple]):not([size]):hover:not(:disabled), select[size="1"]:not([multiple]):hover:not(:disabled), summary.select-control:hover {
  border-color: var(--accent, #007c82);
}
select:not([multiple]):not([size]):focus-visible, select[size="1"]:not([multiple]):focus-visible, summary.select-control:focus-visible {
  outline: 2px solid var(--accent, #007c82);
  outline-offset: 2px;
}
select:disabled { cursor: not-allowed; opacity: .6; }
select:dir(rtl) { background-position: left var(--select-arrow-inset) center; }

@media (max-width: 700px) {
  select:not([multiple]):not([size]), select[size="1"]:not([multiple]), summary.select-control { font-size: 16px; }
}
@media (forced-colors: active) {
  select:not([multiple]):not([size]), select[size="1"]:not([multiple]), summary.select-control {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none;
    padding-inline-end: var(--select-padding);
  }
}
