.shift--card {
  width: 100%;
  height: max-content;
  padding: 24px;
  background-color: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

.shift--in-schedule {
  margin-top: var(--margin); /*  align with the first card in the schedule */
  position: sticky;
  top: calc(var(--navbar-height) + 24px);
}

/* TODO: Likely move divider styles into calendar */
.shift--in-calendar {
  position: relative;

  --divider-width: 32px;

  &::before {
    content: "";
    position: absolute;
    top: -24px;
    left: calc(50% - var(--divider-width));
    width: var(--divider-width);
    height: 4px;
    background-color: var(--theme-color);
    border-radius: var(--border-radius);
  }
}

.shift--empty {
  margin-top: 0;
}

/* When no shift is selected */
.shift__empty-state {
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  color: var(--gray-500);
}

.shift__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;

  h3 {
    color: var(--gray-700);
  }
}

.shift__cancellation_details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shift__cancellation_detail {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.shift__date-header {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;

  h4 {
    font-weight: var(--font-weight-bold);
  }

  h5 {
    font-size: 1.25rem;
    color: var(--gray-500);
    font-weight: var(--font-weight-medium);
  }
}

/* Pay rates table */
.shift__table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;

  th {
    background-color: var(--gray-200);
    color: var(--gray-500);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
    text-transform: uppercase;

    &:first-child {
      border-top-left-radius: 8px;
      border-bottom-left-radius: 8px;
    }

    &:last-child {
      border-top-right-radius: 8px;
      border-bottom-right-radius: 8px;
    }
  }

  th {
    padding: 8px 24px;
  }

  td {
    padding: 16px 24px;
  }

  tr {
    &:not(:last-child):not(:first-child) {
      border-bottom: 1px solid var(--gray-200);
    }
  }
}

article.shift-page {

  section.shift-page__section {

    .shift-page__section-header {
      margin-bottom: 1rem;
    }

    .shift-page__section-contents--border {
      border: 1px solid var(--light-gray);
      border-radius: var(--border-radius);
      padding: 0.5rem 1rem;
    }
  }
}
