.action-preregistration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border-color: rgba(238, 202, 118, .64);
  background: rgba(155, 112, 26, .78);
  color: #fff;
  font-size: 12px;
}

.button.action-preregistration::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h10M9 12h10M9 19h10'/%3E%3Cpath d='M5 5h.01M5 12h.01M5 19h.01'/%3E%3C/svg%3E");
}

.pre-registration-dialog {
  width: min(1120px, calc(100vw - 28px));
}

.pre-registration-add {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(150px, .8fr) minmax(115px, .55fr) minmax(210px, 1.45fr) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(24, 77, 65, .2);
  border-radius: 6px;
  background: rgba(240, 247, 243, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 8px 24px rgba(16, 50, 43, .07);
}

.pre-registration-add label,
.pre-registration-table label {
  display: grid;
  gap: 6px;
  color: #34554e;
  font-size: 12px;
  font-weight: 800;
}

.pre-registration-add input,
.pre-registration-add select,
.pre-registration-table input,
.pre-registration-table select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 46px;
  padding: 0 11px;
  border: 1px solid #b9c9c3;
  border-radius: 4px;
  background: rgba(255, 255, 255, .94);
  color: #173d35;
  font: inherit;
  font-weight: 700;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.pre-registration-add input:focus,
.pre-registration-add select:focus,
.pre-registration-table input:focus,
.pre-registration-table select:focus {
  outline: 0;
  border-color: #2b7565;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 117, 101, .16);
}

.pre-registration-table-wrap {
  max-height: min(48vh, 430px);
  margin-top: 14px;
  overflow: auto;
  border: 1px solid rgba(24, 77, 65, .2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(16, 50, 43, .06);
}

.pre-registration-table {
  width: 100%;
  border-collapse: collapse;
}

.pre-registration-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e6f0ec;
  color: #173d35;
}

.pre-registration-table th,
.pre-registration-table td {
  padding: 10px;
  border-bottom: 1px solid #dce5e1;
  text-align: left;
  vertical-align: middle;
}

.pre-registration-table th:nth-child(1) { width: 23%; }
.pre-registration-table th:nth-child(2) { width: 18%; }
.pre-registration-table th:nth-child(3) { width: 13%; }
.pre-registration-table th:nth-child(4) { width: 39%; }

.pre-registration-delete {
  width: 40px;
  height: 40px;
  border: 1px solid #d7a39f;
  border-radius: 4px;
  background: #fff2f1;
  color: #a5302c;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.pre-registration-delete:hover,
.pre-registration-delete:focus-visible {
  border-color: #a5302c;
  background: #a5302c;
  color: #fff;
  outline: 0;
}

.pre-registration-empty {
  margin: 0;
  padding: 24px;
  color: #697c76;
  text-align: center;
}

@media (max-width: 900px) {
  .pre-registration-add { grid-template-columns: 1fr 1fr; }
  .pre-registration-add label:nth-child(4) { grid-column: 1 / -1; }
  .pre-registration-add .button { grid-column: 1 / -1; }
  .pre-registration-table { min-width: 780px; }
}
