.modality-list {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 4px;
  margin: 0;
  background-color: #F5F5F5;
  border: 2px solid #E9EAEB;
  border-radius: 6px;
  gap: 6px;
  overflow-x: auto;        /* handles smaller screens gracefully */
  white-space: nowrap;
}

.modality-list li {
  display: flex;              /* replaces inline-block */
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering (already fine) */
  padding: 4px 16px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #717680;
  cursor: pointer;
  background-color: #F5F5F5;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.modality-list12 li {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #717680;
  cursor: pointer;
  background-color: #F5F5F5;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.modality-list li:hover {
  background-color: #e2e8f0;
}

.modality-list li.selected,
.modality-list li.active {
  background-color: #02369C;
  color: #ffffff;
  border-color: #02369C;
}

.modality-planner {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
}

.divMenu
{
  background-color: #FFFFFF;
}

.patient-list-container {
  width: 200px;              /* fixed width as requested */
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 12px 4px 4px; /* more space on the right (top right bottom left) */
  box-sizing: border-box;
  margin-left: auto;         /* right-aligns the container */
  /* No margin-right needed – the extra right padding creates internal spacing */
}

.patient-card {
  background: white;
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
  cursor: grab;
  width: 100%;               /* fills the container width minus padding */
  box-sizing: border-box;
}

.patient-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fafcfc;
}

.patient-card:active {
  cursor: grabbing;
  background-color: #f0f4f8;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

.patient-name {
  font-weight: 600;
  font-size: 12px;
  color: #1e2a3a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.patient-age {
  font-size: 11px;
  color: #5e6f88;
  background: #f0f3f7;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-detail {
  font-size: 11px;
  color: #2e3f53;
  margin-bottom: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-indications {
  font-size: 11px;
  color: #3f4f66;
  font-style: italic;
  margin-top: 4px;
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
}
