select{font:inherit;padding:12px;border:1px solid #b9c3d0;border-radius:10px;background:#fcfdff;color:var(--ink)}.restaurant-group{border-top:1px solid var(--line)}.compact-form{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin-top:12px}.compact-form button{align-self:end;margin:14px 0}summary{cursor:pointer;color:var(--navy);font-weight:700}.archived-card>div:first-child{opacity:.62}.archived-card button:disabled,.archived-card a[aria-disabled=true]{background:#e5e8ec;color:#8a929e;cursor:not-allowed;pointer-events:none}

#ownership-transfer-error {
  min-height: 1.5em;
  margin: .25rem 0;
  color: #8a3328;
  font-weight: 700;
}

/* Card names keep the available reading space while every action starts on a
   consistent right edge, regardless of the name length. */
#cards .card {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(20rem, 2fr);
  align-items: start;
}

#cards .card > div:first-child {
  min-width: 0;
}

#dashboard #cards .card h3 {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.3;
}

#cards .actions {
  justify-content: flex-end;
  align-items: center;
}

#cards .actions > * {
  flex: 0 0 auto;
  max-width: 100%;
}

#restaurants .table-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(18rem, 2fr);
  align-items: start;
}

#restaurants .table-row > div:first-child {
  min-width: 0;
}

#dashboard #restaurants .table-row strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.3;
}

#restaurants .table-row > .actions {
  justify-content: flex-end;
  align-items: center;
}

#restaurants .table-row > .actions > .reorder-controls {
  flex: 0 0 100%;
  justify-content: flex-end;
}

#dashboard #restaurants .table-row > .actions > span {
  flex: 0 0 100%;
  overflow: visible;
  text-align: right;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

#restaurants .table-row > .actions > * {
  flex: 0 0 auto;
  max-width: 100%;
}

#restaurants .table-row > .actions select {
  width: min(14rem, 100%);
}

/* Other named records use the same readable-name/right-actions pattern. */
#dashboard .team-member,
#inventory-cards > .card,
#platform-businesses > .card,
#internal-account-list > .card {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(12rem, auto);
  align-items: start;
}

#dashboard .team-member > div:first-child,
#inventory-cards > .card > div:first-child,
#platform-businesses > .card > div:first-child,
#internal-account-list > .card > div:first-child {
  min-width: 0;
}

#dashboard .team-member h3,
#dashboard .team-member p,
.restaurant-summary h3,
.restaurant-summary p,
#dashboard .service-table h3,
#dashboard .menu-section > .collapse-summary > span,
#dashboard .menu-item-summary strong,
#inventory-cards > .card h3,
#inventory-cards > .card p,
#platform-businesses > .card h3,
#platform-businesses > .card p,
#internal-account-list > .card h3,
#internal-account-list > .card p {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

#dashboard .team-member h3,
.restaurant-summary h3,
#dashboard .service-table h3,
#dashboard .menu-item-summary strong,
#inventory-cards > .card h3,
#platform-businesses > .card h3,
#internal-account-list > .card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.3;
}

#dashboard .team-member > .team-actions,
#inventory-cards > .card > .actions,
#platform-businesses > .card > .actions,
#internal-account-list > .card > .actions {
  justify-content: flex-end;
  align-items: center;
}

#dashboard .team-member > .team-actions > *,
#inventory-cards > .card > .actions > *,
#platform-businesses > .card > .actions > *,
#internal-account-list > .card > .actions > * {
  flex: 0 0 auto;
  max-width: 100%;
}

#platform-admin > .panel-title > .actions {
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

#platform-admin > .panel-title > .actions input {
  min-width: 0;
  max-width: 100%;
}

[data-view="cards"] > .wide .panel-title {
  align-items: flex-start;
}

[data-view="cards"] > .wide .list-controls {
  margin-left: auto;
}

@media(max-width:1000px) {
  #cards .card,
  #restaurants .table-row,
  #dashboard .team-member,
  #inventory-cards > .card,
  #platform-businesses > .card,
  #internal-account-list > .card {
    grid-template-columns: minmax(0, 1fr);
  }

  #cards .actions,
  #restaurants .table-row > .actions,
  #dashboard .team-member > .team-actions,
  #inventory-cards > .card > .actions,
  #platform-businesses > .card > .actions,
  #internal-account-list > .card > .actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media(max-width:760px) {
  .compact-form{grid-template-columns:1fr}

  [data-view="cards"] > .wide .panel-title {
    align-items: stretch;
  }

  [data-view="cards"] > .wide .list-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-left: 0;
  }

  [data-view="cards"] > .wide .list-controls input {
    grid-column: 1 / -1;
  }

  [data-view="cards"] > .wide .list-controls button {
    justify-self: end;
  }

  #cards .actions > a,
  #cards .actions > button {
    padding: .65rem .75rem;
    font-size: .82rem;
  }

  #cards .reorder-controls {
    flex-basis: 100%;
    justify-content: flex-end;
  }

  #restaurants .table-row > .actions > a,
  #restaurants .table-row > .actions > button {
    padding: .65rem .75rem;
    font-size: .82rem;
  }

  #restaurants .table-row > .actions > .reorder-controls {
    flex-basis: 100%;
    justify-content: flex-end;
  }

  #dashboard .team-member > .team-actions > button,
  #inventory-cards > .card > .actions > *,
  #platform-businesses > .card > .actions > button,
  #internal-account-list > .card > .actions > button {
    padding: .65rem .75rem;
    font-size: .82rem;
  }

  #platform-admin > .panel-title > .actions {
    width: 100%;
  }

  #platform-admin > .panel-title > .actions input {
    flex: 1 1 12rem;
  }
}

@media(max-width:420px) {
  [data-view="cards"] > .wide .list-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-view="cards"] > .wide .list-controls input {
    grid-column: auto;
  }
}
