.appointment-service-register {
  margin: 0 28px 24px;
  padding: 22px;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: linear-gradient(145deg, #f7fbff, #fff);
}
.appointment-service-register > .catalog-list-heading > span {
  color: #526176;
  font-size: 13px;
  font-weight: 750;
}
.appointment-service-explainer { margin: 8px 0 16px; color: #647186; }
.appointment-service-list { display: grid; gap: 8px; }
.appointment-service-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(3, minmax(92px, .5fr)) minmax(270px, 1.25fr) minmax(92px, .35fr);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #e1e7ef;
  border-radius: 13px;
  background: #fff;
}
.appointment-service-row > div:first-child,
.appointment-service-row > span { min-width: 0; }
.appointment-service-row h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.35; }
.appointment-service-row small { display: block; color: #718096; font-size: 11px; }
.appointment-service-row > span strong { display: block; margin-top: 4px; font-size: 13px; }
.appointment-service-actions { align-self: start; justify-self: end; }
.appointment-service-actions button { min-height: 32px; padding: 6px 9px; white-space: nowrap; }
.appointment-service-link {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding-left: 14px;
  border-left: 1px solid #e8edf3;
}
.appointment-service-link-head { display: flex; align-items: center; min-width: 0; gap: 8px; }
.appointment-service-link-head strong { color: #3b4a60; font-size: 12px; }
.appointment-service-link-count { margin-left: auto; color: #718096; font-size: 11px; font-weight: 750; white-space: nowrap; }
.appointment-service-link-preview { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.appointment-service-link-chip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid #e0e6ef;
  border-radius: 7px;
  background: #f7f9fc;
  color: #58677c;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-service-link-more { border-color: #cbd8ef; background: #eef3ff; color: #1747b5; font-weight: 800; }
.appointment-service-link-details { border-top: 1px solid #edf0f5; padding-top: 6px; }
.appointment-service-link-details summary { cursor: pointer; color: #1747b5; font-size: 11px; font-weight: 800; }
.appointment-service-link-details-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 5px; max-height: 220px; overflow: auto; margin-top: 8px; padding: 8px; border: 1px solid #e1e7ef; border-radius: 9px; background: #fbfcfe; }
.appointment-service-link-details-list .appointment-service-link-chip { white-space: normal; }
.appointment-service-link-empty p { margin: 0; color: #8a94a5; font-size: 11px; }
@media (max-width: 1100px) {
  .appointment-service-row { grid-template-columns: minmax(210px, 1.15fr) repeat(2, minmax(100px, .6fr)) minmax(240px, 1fr) 100px; }
  .appointment-service-row > span:nth-of-type(3) { display: none; }
}
@media (max-width: 760px) {
  .appointment-service-register { margin-inline: 16px; padding: 16px; }
  .appointment-service-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .appointment-service-row > div:first-child,
  .appointment-service-link { grid-column: 1 / -1; }
  .appointment-service-actions { grid-column: 2; grid-row: 2; }
  .appointment-service-link { padding: 10px 0 0; border-top: 1px solid #e8edf3; border-left: 0; }
}
