/* GLOBAL */
body {
    color: #606060;
    font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: #333;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #333;
  text-decoration: none;
}

.nav:not(.nav-stacked, .add-item) > li > a:focus,
.nav:not(.nav-stacked, .add-item) > li > a:hover {
  text-decoration: none;
  background-color: transparent;
}

.tab-pane {
    margin-top: 15px;
}

td > .form-group {
    margin-bottom: 0;
}

.panel-footer ul.pagination {
    margin: 0;
}
.panel.panel-default .panel-footer {
    background: none;
}

.panel-heading h4 a:after {
    font-family: 'FontAwesome';
    content: "\f107";
    margin-right: 10px;
}

.panel-heading h4 a.collapsed:after {
    content:"\f105";
}

body {
    margin-bottom: 20px;
}

/* HEADER */
header {
    line-height: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
}

h1 {
    font-size: 20px;
    margin: 0;
    line-height: 50px;
}

h2 {
    font-size: 18px;
}

.logout a {
    color: #606060;
    font-weight: bold;
}

.logout i {
    color: #333;
    padding: 0 8px;
    vertical-align: middle;
    font-size: 1.60em;
}

.padded-top {
  margin-top: 15px;
}

/* NAVBAR */
.navbar {
    border-radius: 0px;
}

.navbar-blue .nav>li {
    padding: 0 10px;
}

.navbar-blue a {
    color: #fff;
}

.navbar-blue {
    background: #444D56;
}

.navbar-blue .active {
    background: #4E5965;
}

.navbar-blue li:hover {
    background: #4E5965;
}
.navbar-blue .nav>li>a:hover,
.navbar-blue .nav>li>a:focus {
  background-color: transparent;
}

/* Logo Style */
.brand-logo {
    height: 50px;
}

/* Subtitle */
.page-header h2 {
  margin: 0;
}

/* Ajax spinner */
.spinner {
  margin: 7px;
  display: block;
  width: 16px;
  height: 16px;
  background: url(../ajax-loader.gif) no-repeat center;


}/* The surveys editor */

    /* Make inputs and textarea the same size */
    .page-cms-surveys form input[type=text], .page-cms-surveys form textarea {
        width: 90%;
    }

/* Metaplan Colors */
.metaplan_type1.panel-heading
{
    background-color: #7dd6da;
}

.metaplan_type2.panel-heading
{
    background-color: #f56dc1;
}

.metaplan_type3.panel-heading
{
    background-color: #a5de4f;
}

.metaplan_type4.panel-heading
{
    background-color: #fed201;
}

.flag {
  vertical-align: initial;
}

/* Filtering forms */
.form-inline.form-filter .form-group {
    margin-right: 10px;
}

.form-inline.form-filter fieldset {
    border: 1px solid #ddd;
    padding: 0 1.4em 1.4em 1.4em;
    margin: 0 0 1.5em 0;
}

.form-inline.form-filter legend {
    font-size: 1.2em;
    font-weight: bold;
    text-align: left;
    width: auto;
    padding: 0 10px;
    border-bottom: none;
    color: #606060
}

/* Waiting trainings */
tbody.waiting-trainings, tbody.recent-trainings {
    border-left: solid 2px #286090;
}
tbody.waiting-trainings + thead th {
    border-top-width: 2px;
}
.waiting-trainings .spinner {
    margin: 2px 1ex 0 0;
    display: inline-block;
    position: relative;
    top: 2px;
}
.waiting-trainings td:first-of-type {
    font-style: italic;
}
.waiting-trainings th:not(:first-of-type),
.waiting-trainings td:not(:first-of-type) {
    text-align: center;
}
tbody.recent-trainings aside {
    font-style: italic;
    font-size: smaller;
    color: #286090;
}

/* Pagination using <button>

This is a copy of styles from bootstrap that only works for <a>

 */

.pagination > li > button {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #337ab7;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
}
.pagination > li:first-child > button {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.pagination > li:last-child > button {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.pagination > li > button:hover,
.pagination > li > button:focus {
  z-index: 3;
  color: #23527c;
  background-color: #eee;
  border-color: #ddd;
}
.pagination > .active > button,
.pagination > .active > button:hover,
.pagination > .active > button:focus {
  z-index: 2;
  color: #fff;
  cursor: default;
  background-color: #337ab7;
  border-color: #337ab7;
}
.pagination > .disabled > button,
.pagination > .disabled > button:hover,
.pagination > .disabled > button:focus {
  color: #777;
  cursor: not-allowed;
  background-color: #fff;
  border-color: #ddd;
}
.pagination-lg > li > button {
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
}
.pagination-lg > li:first-child > button {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.pagination-lg > li:last-child > button {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.pagination-sm > li > button {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
}
.pagination-sm > li:first-child > button {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.pagination-sm > li:last-child > button {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

/* Training activities */
.activity-action {
    background: white;
    box-shadow: 0 0 1px 4px rgba(0,0,0,0.1)
}

.media-list.media-list-numbered {
    counter-reset: items;
    margin-bottom: 70px; /* For the activity-action fixed toolbar */
}
.media-list.media-list-numbered .media {
    counter-increment: items;
    padding-left: 30px;
    position: relative;
}
.media-list.media-list-numbered .media:before {
    content: counter(items);
    position: absolute;
    left: 0;
}
.media-list.media-list-numbered .answer {
    padding-left: 15px;
    position: relative;
}
.media-list.media-list-numbered .answer .correct-flag {
    width: 20px;
    display: inline-block;
}

/* Quiz question edition */
.workshop-question-answers .answer-item {
    margin-bottom: 10px;
}
.workshop-question-answers .answer-item input[type='text'] {
    width: 80%;
}
.workshop-question-answers .alert-danger {
    margin-top: 10px;
}
.workshop-question-answers .inline-choice {
    text-align: left;
}
.workshop-question-answers {
    text-align: center;
}
.workshop-question-answers #answers-empty {
    display: none;
}
.workshop-question-answers .sorthandle {
    margin-right: 10px;
}
.workshop-question-answers .inline-deletelink {
    margin-left: 10px;
}

/* Evaluation exercise edition */
.evaluation-exercise-criteria {
    text-align: center;
}
.evaluation-exercise-criteria #criteria-empty {
    display: none;
}
.evaluation-exercise-criteria .inline-choice {
    text-align: left;
}
.evaluation-exercise-criteria .criterion-item {
    margin-bottom: 10px;
}
.evaluation-exercise-criteria .alert-danger {
    margin-top: 10px;
}
.evaluation-exercise-criteria .sorthandle {
    margin-right: 10px;
}
.evaluation-exercise-criteria .inline-deletelink {
    margin-left: 10px;
}

/* Questionnaire question edition */
.questionnaire-question-choices .choice-item {
    margin-bottom: 10px;
}
.questionnaire-question-choices .choice-item input[type='text'] {
    width: 80%;
}
.questionnaire-question-choices .alert-danger {
    margin-top: 10px;
}
.questionnaire-question-choices .inline-choice {
    text-align: left;
}
.questionnaire-question-choices {
    text-align: center;
}
.questionnaire-question-choices .empty-form {
    display: none;
}
.questionnaire-question-choices .sorthandle {
    margin-right: 10px;
}
.questionnaire-question-choices .inline-deletelink {
    margin-left: 10px;
}

a .activity-thumbnail:hover,
a .activity-thumbnail:active,
a .activity-thumbnail:hover .caption,
a .activity-thumbnail:active .caption,
a.a-default {
  color: #337ab7;
}

/* Training and Activities list */

.training-thumbnail {
    margin-right: 20px;
}

.back-button {
    margin-right: 10px;
}

.page-title {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1em;
  margin: 6px 0 20px 0;
  color: #333;
}
.content-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1em;
  margin: 6px 0 20px 0;
  color: #333;
}
.small-title {
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  color: #777;
  margin: 16px 0 2px 0;
}
.separator-bottom {
  padding-bottom: 12px;
  margin-bottom: 36px;
  border-bottom: 1px solid #e5e5e5;
}

.list-filters {
    margin-bottom: 20px;
}

.list-filters .dropdown-menu {
  min-width: 560px;
  margin: -37px 0 0 -3px;
}

.list-filters .dropdown-menu .form-group {
    min-height: 50px;
}

.list-filters .dropdown-menu > div {
    padding: 10px 15px;
}

.activity-list-filters .select2-container,
.training-list-filters .select2-container {
    display: block;
}


.training-list-filters .pagination,
.activity-list-filters .pagination {
    margin: 0;
}

.scrolling-table-wrapper {
    height: calc(100vh - 300px);
    overflow-y: auto;
}

.scrolling-table-wrapper thead {
    background: white;
}

.training-row .training-actions .btn,
.activity-row .activity-actions .btn {
    visibility: hidden;
    margin: -5px 0;
}

.training-row:hover .training-actions .btn ,
.activity-row:hover .activity-actions .btn {
    visibility: visible;
}

.dropdown-menu.dropdown-training-filters,
.dropdown-menu.dropdown-activity-filters {
    min-width: 410px;
}

.dropdown-menu.dropdown-training-filters .form-group,
.dropdown-menu.dropdown-activity-filters .form-group {
    min-height: 50px;
}

.dropdown-menu.dropdown-training-filters > div,
.dropdown-menu.dropdown-activity-filters > div {
    padding: 10px 15px;
}

.training-actions .btn,
.activity-actions .btn {
    padding-top: 0;
    padding-bottom: 0;
}

.scrolling-training-wrapper {
  height: calc(100vh - 225px);
  overflow-y: auto;
}

.trainings-table td,
.activities-table td {
  color: rgba(0,0,0,.5);
}
.trainings-table thead button {
  margin: -3px 0;
}
.training-status-icon {
  color: #606060;
}
.activity-type-icon {
  color: #606060;
  font-size: 1.72em;
  width: 1em;
  display: inline-block;
  position: relative;
}
.activity-type-icon::before {
  position: absolute;
  margin-top: -.7em;
}
.trainings-table td strong,
.activities-table td strong {
  font-weight: normal;
  color: #333;
}


.add-item>li {
  float: right;
}


/* Presentation */
.presentation-thumbnail .thumbnail {
    width: 200px;
    height: 100px;
}

.presentation-thumbnail .thumbnail .img-wrapper {
    width: 190px;
    height: 90px;
    overflow: hidden;
}

.presentation-thumbnail .thumbnail .img-wrapper img {
    max-width: 190px;
}

.presentation-thumbnail .thumbnail.thumbnail-loading {
    padding-top: 20px;
    color: #8c8c8c;
}

/* Quiz */
.questions-list .question-img {
    padding: 0;
    width: 66px; /*16/9 ratio*/
    height: 37px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.question-type-thumbnail {
  min-height: 134px;
  line-height: 1.2em;
}

/* Progress bar container */
#progressWrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    padding: 50% 40% 0 40%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7);
}
#progressContainer {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
