@use '@carbon/layout';
@use '@carbon/type';
@use '@carbon/themes';
@use '@carbon/colors';

.modalContentWrapper {
  display: flex;
  flex-direction: column;
}

.modalBody {
  display: flex;
  flex-direction: row;
  gap: layout.$spacing-06;
  flex: 1;
  padding: layout.$spacing-05;
  min-height: 200px;
}

.patientPanel {
  flex: 1;
  min-width: 0;
}

.selectionPanel {
  flex: 1;
  min-width: 0;
  padding-left: layout.$spacing-05;
  border-left: 1px solid themes.$border-subtle-01;
}

.sectionHeader {
  @include type.type-style('label-02');
  margin-bottom: layout.$spacing-04;
  font-weight: bold;
  color: colors.$cool-gray-90;
  margin-top: 0;
}

.titleHeader {
  @include type.type-style('label-02');
  margin-bottom: layout.$spacing-05;
  font-weight: bold;
  color: colors.$cool-gray-90;
}

.patientContent {
  background: transparent;
  width: 100%;
}

.patientInfo {
  display: flex;
  flex-direction: column;
  gap: layout.$spacing-05;
}

.patientDetailsSection {
  display: flex;
  flex-direction: column;
  gap: layout.$spacing-03;
}

.encounterDetails {
  display: flex;
  flex-direction: column;
  gap: layout.$spacing-03;
  padding-top: layout.$spacing-04;
  border-top: 1px solid themes.$border-subtle-01;
}

.itemLabel {
  @include type.type-style('body-02');
  color: colors.$cool-gray-90;
  display: flex;
  align-items: baseline;
  margin-bottom: 0;
}

.labelKey {
  font-weight: 600;
  min-width: 80px;
  margin-right: layout.$spacing-03;
  color: colors.$cool-gray-70;
}

.labelValue {
  color: colors.$cool-gray-90;
  flex: 1;
}

.radioGroup {
  display: flex;
  flex-direction: column;
  gap: layout.$spacing-03;
}

.radioItem {
  display: flex;
  align-items: center;
  gap: layout.$spacing-02;
  margin-top: 0;
  padding: layout.$spacing-02 0;
}

.radioLabel {
  @include type.type-style('body-02');
  color: colors.$cool-gray-90;
}

:global(.omrs-breakpoint-lt-desktop) {
  .modalBody {
    flex-direction: column;
    gap: layout.$spacing-05;
  }

  .selectionPanel {
    border-left: none;
    border-top: 1px solid themes.$border-subtle-01;
    padding-left: 0;
    padding-top: layout.$spacing-05;
  }

  .labelKey {
    min-width: 60px;
  }
}
