.access-rules-table td:last-child {
  border-right: 0;
}

.access-rules-table td strong,
.access-rules-table td span {
  display: block;
}

.access-rules-table td span {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.radio-line {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  margin-right: 14px;
  white-space: nowrap;
}

.radio-option-cell {
  white-space: nowrap;
}

.admin-entity-onboarding-panel {
  gap: 8px !important;
}

.admin-entity-onboarding-panel > .view-panel,
.admin-entity-onboarding-panel > section,
.admin-entity-onboarding-panel > div {
  max-width: 100%;
}

.entity-template-hub,
.entity-onboarding-master-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.entity-template-hub {
  display: grid;
  grid-template-columns: 245px 176px;
  gap: 10px;
  align-items: end;
  margin: 0 0 0 auto;
  min-width: 430px;
  padding: 0;
  border: 0;
  background: transparent;
}

.entity-template-hub h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.entity-onboarding-master-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.entity-template-hub label,
.entity-onboarding-grid label {
  margin: 0 !important;
}

.entity-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 10px;
  align-items: end;
}

.entity-onboarding-master-card .panel-note {
  margin: 8px 0 0 !important;
}

.entity-setup-name-field {
  display: block !important;
  margin: 0 0 10px !important;
  max-width: 420px;
}

.entity-setup-name-field > .field-help-button {
  margin-left: 6px !important;
  margin-bottom: 6px !important;
  vertical-align: middle;
}

.entity-setup-name-field > input {
  margin-top: 7px !important;
}

#adminView .admin-tabs,
#adminView .admin-tab-row,
#adminView .tab-row,
#adminView [role="tablist"],
#adminPanel .admin-tabs,
#adminPanel .admin-tab-row {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--panel, #ffffff);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.entity-setup-save-all {
  width: 176px !important;
  min-width: 176px !important;
  height: 34px !important;
  min-height: 34px !important;
  white-space: nowrap;
}

.entity-template-hub .eyebrow,
.entity-template-hub h3 {
  display: none !important;
}

.entity-onboarding-master-card {
  margin-bottom: 8px;
}

.entity-onboarding-master-card .section-title {
  margin-bottom: 8px;
}

.admin-tabs-anchored-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 300 !important;
  width: 100% !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--line);
  padding: 6px 8px !important;
  margin: 0 0 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.entity-setup-mapping-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.36);
}

.entity-setup-mapping-modal.hidden {
  display: none !important;
}

.entity-setup-mapping-card {
  width: min(720px, calc(100vw - 42px));
  max-height: min(680px, calc(100vh - 42px));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
}

.entity-setup-mapping-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
