.rq-solicitation-form.rq-solicitation-compact {
  gap: 10px;
}

.rq-selected-providers.rq-provider-switcher {
  padding: 8px;
}

.rq-provider-switcher [hidden] {
  display: none !important;
}

.rq-provider-views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  margin-block-end: 6px;
  border-radius: 9px;
  background: var(--surface-soft, #f5f6fa);
}

.rq-provider-views button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted, #53637a);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.rq-provider-views button[aria-pressed="true"] {
  border-color: var(--border, #d7def0);
  background: var(--surface, #fff);
  color: var(--text, #1d2940);
}

.rq-provider-switcher .rq-selected-provider:first-child {
  border-top: 0;
}

.rq-provider-switcher .rq-selected-provider-edit {
  min-height: 44px;
  padding-inline: 4px;
}

.rq-provider-switcher .rq-selected-provider-edit small {
  font-size: 12px;
}

.rq-solicitation-compact .rq-add-provider {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  gap: 8px;
}

.rq-suggested-quotes .quote-pending.rq-suggestion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 6px;
}

.rq-suggestion-row .rq-suggestion-open,
.rq-suggestion-row .rq-suggestion-accept {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 44px;
  gap: 5px;
  padding: 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text, #1d2940);
  text-align: start;
  font: inherit;
  cursor: pointer;
}

.rq-suggestion-row .rq-suggestion-open:hover,
.rq-suggestion-row .rq-suggestion-accept:hover:not(:disabled) {
  background: var(--action-soft, #efe9ff);
}

.rq-suggestion-open > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rq-suggestion-open strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rq-suggestion-open small {
  color: var(--muted, #53637a);
}

.rq-suggestion-row .rq-suggestion-accept {
  display: grid;
  place-items: center;
  min-width: 44px;
  color: var(--action, #7137e7);
}

.rq-suggestion-row .rq-suggestion-accept:disabled {
  opacity: .55;
  cursor: default;
}

.rq-suggestion-row .rq-solicitation-error {
  grid-column: 1 / -1;
}

.rq-suggested-quotes .rq-suggestion-utilities summary {
  align-content: center;
  min-height: 44px;
  color: var(--muted, #53637a);
  cursor: pointer;
}

.rq-suggestion-utilities > .concept-edit-card {
  padding-block-start: 0;
}

.rq-suggested-quotes .rq-suggestion-count-action {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--action, #7137e7);
  text-align: start;
  font: inherit;
  cursor: pointer;
}

dialog.rq-supplier-detail {
  position: fixed;
  inset: var(--rq-detail-top, 16px) auto auto clamp(12px, var(--rq-detail-left, 12px), calc(100vw - 492px));
  width: min(480px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - var(--rq-detail-top, 16px) - 14px);
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--border, #d7def0);
  border-radius: 14px;
  background: var(--surface, #fff);
  color: var(--text, #1d2940);
  box-shadow: 0 16px 48px #10182829;
  font-size: 13px;
}

dialog.rq-supplier-detail::backdrop {
  background: #0b13274d;
}

.rq-supplier-detail__panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  min-width: 0;
}

.rq-supplier-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.rq-supplier-detail__header h3 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.rq-supplier-detail__header .icon-button {
  flex: none;
  min-width: 44px;
  min-height: 44px;
}

.rq-supplier-detail .rq-solicitation-manual {
  border: 0;
  padding: 0;
}

.rq-supplier-detail .rq-solicitation-modes button,
.rq-supplier-detail .rq-solicitation-manual > .button,
.rq-supplier-detail__panel > .button {
  min-height: 44px;
}

.rq-supplier-detail .rq-solicitation-lines {
  max-height: min(36dvh, 320px);
}

.rq-supplier-detail .rq-solicitation-lines label {
  min-height: 44px;
}

.rq-supplier-detail .rq-recipient-field {
  display: grid;
  gap: 6px;
}

.rq-supplier-detail .rq-recipient-box input {
  flex: 1 1 130px;
  min-width: 0;
  min-height: 34px;
  max-width: 100%;
  padding: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.rq-supplier-detail .rq-suggestion-materials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  min-width: 0;
}

.rq-suggestion-materials li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  min-width: 0;
  border-top: 1px solid var(--border, #d7def0);
  overflow-wrap: anywhere;
}

.rq-suggestion-materials li svg,
.rq-suggestion-materials li strong {
  color: var(--action, #7137e7);
}

.rq-suggestion-materials li > div {
  display: grid;
  gap: 3px;
}

.rq-suggestion-materials li small {
  color: var(--muted, #53637a);
}

@media (max-width: 700px) {
  dialog.rq-supplier-detail {
    inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
    width: auto;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
  }
}
