@use "../colors" as c;
@use "../mixins" as m;

.course-sessions {
  @include m.detail-container(c.$orange);
  @include m.main-section;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;

  .course-sessions-header {
    @include m.detail-container-header;
    height: 2rem;
    @include m.for-phone-only {
      height: 3rem;
    }
  }

  .title {
    @include m.detail-container-title;
  }

  .actions {
    @include m.detail-container-actions;
  }

  .save-result {
    border: 1px solid c.$fernGreen;
    margin: 1rem;
    padding: 0.75rem;
  }

  .filter {
    display: block;
    margin: 1rem 0 0.5rem 0;
    text-align: right;
    width: 100%;

    input {
      width: 90%;
      @include m.for-tablet-and-up {
        width: 300px;
      }
    }
  }

  .course-sessions-table {
    @include m.ilios-table-colors;

    border-collapse: collapse;
    margin-top: 0.25rem;
    width: 100%;

    td {
      padding: 0;
    }

    th:nth-of-type(1),
    td:nth-of-type(1) {
      padding: 0 0.25rem;
    }
  }
}
