/* Shared portal controls and layout, after the base and theme styles. */
.validation-summary-valid,
.field-validation-valid {
  display: none;
}

.validation {
  color: var(--danger);
}

.validation-box {
  color: #f2a098;
  background: #382220;
  border-color: var(--danger);
}

.input-validation-error {
  border-color: var(--danger);
}

.form-grid,
.inline-form,
.inline-request {
  min-width: 0;
}

.form-grid > *,
.editor-main,
.panel-heading > div {
  min-width: 0;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  accent-color: var(--green);
}

.selection-mode-option input[type="radio"] {
  margin: 3px 0 0;
}

label.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  line-height: 1.5;
}

.checkbox-line input[type="checkbox"] {
  margin: 2px 0 0;
}

.feature-editor:has(.feature-editor-head input[type="checkbox"]:checked) {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--green);
}

.feature-editor-head {
  grid-template-columns: minmax(0, auto) 48px minmax(0, 1fr);
}

.feature-editor-head .check {
  align-items: flex-start;
}

.page > .panel + .panel,
.page > .partner-summary + .panel {
  margin-top: 20px;
}

.panel-heading > div:has(> p) {
  display: block;
}

.panel-heading > div > p {
  margin-bottom: 0;
}

.panel-heading > .button {
  flex-shrink: 0;
}

.credential-panel code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.admin-layout .shell.narrow {
  max-width: 700px;
}

.table-wrap {
  min-width: 0;
}

table:has(.quota-cell) {
  min-width: 1120px;
}

table:has(.quota-cell) th:first-child {
  width: 20%;
}

table:has(.quota-cell) td:nth-child(3) {
  min-width: 130px;
  white-space: nowrap;
}

table:has(.quota-cell) td:nth-child(4) {
  min-width: 150px;
}

table:has(.quota-cell) td:nth-child(5) {
  width: 23%;
}

table:has(.quota-cell) td:nth-child(6),
.table-action .button {
  white-space: nowrap;
}

.site-header {
  min-height: 76px;
  height: auto;
  flex-wrap: wrap;
  padding-block: 12px;
}

.site-header .brand,
.site-header .header-actions {
  flex-shrink: 0;
}

.site-header .top-nav {
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-header .top-nav a {
  white-space: nowrap;
}

.site-header .header-actions {
  margin-left: auto;
}

.hero .hero-availability .public-user-summary {
  width: max-content;
  max-width: 100%;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .site-header .top-nav {
    flex: 1 0 100%;
    width: 100%;
    order: 3;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 760px) {
  .panel-heading {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .panel-heading > div {
    max-width: 100%;
  }

  .feature-editor-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .feature-editor-head > div {
    grid-column: 1 / -1;
  }

  .page-heading-row .heading-badges {
    flex-wrap: wrap;
  }
}
