.record-header-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  min-width: min(540px, 100%);
}

.record-header-actions .record-selector {
  flex: 1;
  margin: 0;
}

.record-pdf-action {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 58, 53, 0.12);
  border-radius: 12px;
  background: #173a35;
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 58, 53, 0.14);
  text-decoration: none;
}

.record-pdf-action svg {
  width: 18px;
}

@media (max-width: 900px) {
  .record-header {
    align-items: stretch;
    flex-direction: column;
  }

  .record-header-actions {
    min-width: 0;
    width: 100%;
  }

  .record-header-actions .record-selector {
    width: auto;
  }
}

@media (max-width: 560px) {
  .record-header-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .record-header-actions .record-selector {
    width: 100%;
  }

  .record-patient {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
  }
}
