.admin-model-type-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: none;
  place-items: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(3px);
}

.admin-model-type-modal.is-open {
  display: grid;
}

.admin-model-type-card {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(33, 43, 67, 0.16);
}

.admin-model-type-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px 10px;
}

.admin-model-type-title {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.admin-model-type-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  color: #667085;
  background: #fff;
}

.admin-model-type-close:hover,
.admin-model-type-close:focus-visible {
  color: #111827;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.admin-model-type-close svg {
  width: 16px;
  height: 16px;
}

.admin-model-type-form {
  min-height: 0;
  display: grid;
  gap: 14px;
  padding: 10px 20px 20px;
}

.admin-model-type-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-model-type-input {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  padding: 0 12px;
  color: #111827;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  outline: 0;
}

.admin-model-type-input::placeholder {
  color: #98a2b3;
}

.admin-model-type-input:focus {
  border-color: rgba(0, 175, 233, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 175, 233, 0.1);
}

.admin-model-type-submit {
  min-width: 72px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #00afe9;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: #00afe9;
  font-size: 14px;
  font-weight: 500;
}

.admin-model-type-submit:hover,
.admin-model-type-submit:focus-visible {
  border-color: #009dcc;
  background: #009dcc;
}

.admin-model-type-error {
  min-height: 18px;
  margin: -6px 0 0;
  color: #cd140f;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.admin-model-type-error:empty {
  min-height: 0;
}

.admin-model-type-section {
  min-height: 0;
  display: grid;
  gap: 8px;
}

.admin-model-type-section-title {
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.admin-model-type-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  background: #fff;
  scrollbar-color: #9aa7b8 #f3f6f9;
  scrollbar-width: thin;
}

.admin-model-type-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  border-bottom: 1px solid #edf1f5;
}

.admin-model-type-row:last-child {
  border-bottom: 0;
}

.admin-model-type-row-name {
  min-width: 0;
  overflow: hidden;
  color: #344054;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-model-type-delete {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #cd140f;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
}

.admin-model-type-delete:not(:disabled):hover,
.admin-model-type-delete:not(:disabled):focus-visible {
  background: rgba(205, 20, 15, 0.06);
}

.admin-model-type-delete:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.admin-model-type-empty {
  margin: 0;
  padding: 22px 12px;
  color: #98a2b3;
  font-size: 13px;
  text-align: center;
}

.admin-model-type-helper {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

@media (max-width: 480px) {
  .admin-model-type-create-row {
    grid-template-columns: 1fr;
  }

  .admin-model-type-submit {
    width: 100%;
  }
}
