/* Medication table styles are currently shared from shared.css. */

.medication-schedule-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.medication-schedule-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

#saveMedicationScheduleBtn {
  min-width: 170px;
}

html[dir="rtl"] .medication-schedule-actions {
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .medication-schedule-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .medication-schedule-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .medication-schedule-actions {
    margin-top: 12px;
  }

  #saveMedicationScheduleBtn {
    width: 100%;
    min-width: 0;
  }

  html[dir="rtl"] #medications td {
    text-align: right;
  }

  html[dir="rtl"] #medications td::before {
    text-align: right;
  }

  html[dir="rtl"] #medications .status-taken,
  html[dir="rtl"] #medications .status-pending {
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
}
