.portal-table tr.appointment-status-row.session-status-requested > td {
  background-color: #fff4cc;
}

.portal-table tr.appointment-status-row.session-status-approved > td {
  background-color: #e5f4e8;
}

.portal-table tr.appointment-status-row.session-status-rejected > td {
  background-color: #fde8e7;
}

.portal-table tr.appointment-status-row.session-status-neutral > td {
  background-color: #fff;
}

.portal-table tbody tr.appointment-status-row:hover > td {
  filter: brightness(0.98);
}

.portal-table .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 3px 12px;
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.portal-table .status.status-multiline {
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 5px 12px;
  white-space: normal;
}

.visit-manage-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.scheduled-sessions-table {
  table-layout: fixed;
}

.scheduled-sessions-table th:nth-child(1) { width: 16%; }
.scheduled-sessions-table th:nth-child(2) { width: 10%; }
.scheduled-sessions-table th:nth-child(3) { width: 18%; }
.scheduled-sessions-table th:nth-child(4) { width: 26%; }
.scheduled-sessions-table th:nth-child(5) { width: 30%; }
.scheduled-sessions-table td { overflow-wrap: anywhere; }
.session-cell-label { display: none; white-space: nowrap; overflow-wrap: normal; }

@media (max-width: 1100px) {
  .scheduled-sessions-table,
  .scheduled-sessions-table tbody {
    display: block;
    width: 100%;
    background: transparent;
  }

  .scheduled-sessions-table thead { display: none; }
  .scheduled-sessions-table tbody tr.appointment-status-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    margin: 0 0 16px;
    border: 1px solid #d8e0e8;
    border-radius: 12px;
  }

  .scheduled-sessions-table tbody tr > td {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid #d8e0e8;
    overflow-wrap: anywhere;
  }

  .scheduled-sessions-table tbody tr > td:first-child,
  .scheduled-sessions-table tbody tr > td:nth-child(3),
  .scheduled-sessions-table tbody tr > td.session-details-cell,
  .scheduled-sessions-table tbody tr > td.session-reschedule-cell {
    grid-column: 1 / -1;
  }

  .scheduled-sessions-table tbody tr > td.session-details-cell,
  .scheduled-sessions-table tbody tr > td.session-reschedule-cell {
    display: block;
  }

  .session-cell-label {
    display: inline-block;
    flex: 0 0 88px;
    color: #34465a;
    font-size: 15px;
    font-weight: 700;
  }

  .session-details-cell > .session-cell-label,
  .session-reschedule-cell > .session-cell-label {
    display: block;
    margin-bottom: 8px;
  }

  .scheduled-sessions-table td > form {
    width: 100%;
    min-width: 0;
  }

  .scheduled-sessions-table .appointment-calendar {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .scheduled-sessions-table tbody tr.appointment-status-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .scheduled-sessions-table tbody tr > td:first-child,
  .scheduled-sessions-table tbody tr > td:nth-child(3),
  .scheduled-sessions-table tbody tr > td.session-details-cell,
  .scheduled-sessions-table tbody tr > td.session-reschedule-cell {
    grid-column: auto;
  }

  .scheduled-sessions-table tbody tr > td:nth-child(2),
  .scheduled-sessions-table tbody tr > td:nth-child(3) {
    grid-column: auto;
  }
}
