/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@import "base/environment";

.course_details {
  border-collapse: collapse;
  margin-#{direction(left)}: 20px;
  border-spacing: 0;

  @include mobile-only {
    display: flex;
    flex-direction: column;
    margin-#{direction(left)}: 0;

    tr {
      display: flex;
      flex-direction: column;
      align-items: start;
      justify-content: start;

      margin-top: 0;
      margin-bottom: 1.5rem;
    }
  }
  th {
    text-align: direction(left);
  }
  td {
    border-bottom: 1px solid #ccc;

    @include mobile-only {
      border: 0;
    }
  }

  .content-box {
    @include mobile-only {
      margin-top: 0;
      margin-bottom: 0;
    }
  }
  .course {
    font-size: 1.2em;
    padding: direction-sides(6px 50px 6px 5px);

    @include mobile-only {
      padding: 0;
    }
  }
  .percent {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    min-width: 73px;

    @include mobile-only {
      text-align: direction(left);
    }
  }
  .report {
    padding: 12px;

    @include mobile-only {
      padding: 0;
    }
  }
}
