@import "../vendor/bootstrap-less/less/bootstrap.less";
@import "glyphicons/glyphicons.less";
@import "glyphicons/glyphicons-filetypes.less";

body {
  //&.app {
  //  padding-top: 50px;
  //}
  overflow-x: hidden;
}

img.profilePicture.studentView {
  height: 90px;
  width: 90px;
  float: left;
  margin: 10px;
  margin-right: 25px;
}

h1.studentName {
  padding-top: 11px;
}

img.profilePicture {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 30%;
}

.no-close .ui-widget-header {
  border: 0;
  background: transparent;
}

.no-close .ui-dialog-buttonpane {
  border: 0;
}

.no-close .ui-dialog-titlebar-close {
  display: none;
}

.ui-dialog {
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

.company-details {
  margin-top: 15px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-button {
  display: none;
}

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.navbar-fixed-top {
  border: 0;
}

.sidebar {
  position: fixed !important;
  display: none;
}

.nav-sidebar {
  margin-right: -21px;
  margin-bottom: 10px;
  margin-left: -20px;

  li {
    a {
      padding-right: 20px;
      padding-left: 20px;
    }
  }

  .active {
    a, a:hover, a:focus {
      color: #fff;
      background-color: #428bca;
    }
  }
}

.main {
  padding: 20px;
}

@media (min-width: 768px) {
  .navbar {
    border-bottom: 1px solid #eee !important;
  }

  .sidebar {
    position: fixed;
    width: 205px !important;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px 20px 4px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #f8f8f8;
    border-right: 1px solid #eee;
  }

  .main {
    margin-left: 205px;
  }

  .main {
    padding-right: 40px;
    padding-left: 40px;

    .page-header {
      margin-top: 0;
    }
  }
}

fieldset {
  .checkbox:first-of-type {
    margin-top: 0;
  }
}

@media (max-width: 991px) {
  .searchbox {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  i.glyphicon.glyphicon-trash.remove {
    margin: 20px;
  }

  i.glyphicon.glyphicon-pencil.edit {
    margin: 20px;
  }

  .feed {
    background-color: #fff !important;
  }

  .form-control {
    min-width: 60px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .table-responsive {
    width: 100% !important;
  }
}

.table {
  .form-group {
    margin-bottom: 0px !important;
  }
}

.action-button, .searchbox {
  margin-bottom: 10px;
}

.searchbox {
  input[type="text"] {
    border-bottom-left-radius: 4px !important;
    border-top-left-radius: 4px !important;
  }
}

.filter {
  line-height: 30px;
}

.legend {
  list-style: none;
  padding-left: 0;

  li {
    float: left;
    margin-right: 15px;
    padding-left: 15px;
    margin-left: 0;
    div {
      width: 10px;
      height: 10px;
      display: inline-block;
    }
  }
}

.inline-choice {
  display: inline;
  width: auto;
  margin-left: 7px;
}

.table {
  thead, &.stacktable {
    th, .st-key {
      a, a:hover, a:link, a:focus, a:visited {
        color: #333333;
        text-decoration: none;
        &.desc, &.asc, &.desc:hover, &.asc:hover {
          border-bottom: 1px dashed #333333;
        }

        &.desc::after, &.asc::after {
          position: relative;
          top: 1px;
          display: inline-block;
          font-family: 'Glyphicons Halflings';
          font-style: normal;
          font-weight: 400;
          line-height: 1;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
          margin-left: 5px;
          font-size: 11px;
        }

        &.asc::after {
          content: "\e094";
        }

        &.desc::after {
          content: "\e093";
        }
      }
    }
  }
}

.clear-val, .show-password {
  cursor: pointer;
}

.container {
  padding-top: 15px;
}

.calendar {
  th {
    text-align: center;
  }

  tbody {
    td, th {
      border-top: 0 !important;
      height: 36px;
    }
    td {
      padding-top: 18px !important;
      border-left: 1px solid #ddd;
      width: auto;
      background-color: #FCFCFC;
    }
    .calendar-item {
      position: relative;
      overflow: hidden;
      text-align: center;
    }
  }
}

.tab-content {
  margin-top: 8px;
}

.avatar {
  height: 20px;
  border-radius: 10px;
  margin-left: 4px;
  margin-right: 4px;
}

textarea {
  resize: vertical;
}

.messages-box {
  width: 100%;
  max-height: 200px;
  overflow-x: hidden;
  overflow-y: auto;
  .row {
    div {
      padding: 6px 23px;
    }

    &:nth-of-type(even) {
      background-color: #fcfcfd;
    }
  }
}

.day-navigation {
  input {
    width: 86px;
    display: inline;
  }
}

.arrows {
  position: relative;

  &.dashboard {
    margin-bottom: 15px;

    .week-number {
      font-size: 18px;
    }
  }
}

.day-navigation {
  margin-top: 15px;
  margin-bottom: 15px;
}

.student-color {
  display: inline-block;
  height: 25px;
  width: 6px;
  margin: 0 -1px;
}

.dashboard-summary .table select {
  height: 26px;
  padding: 2px 12px;
}

.dashboard-summary {
  tr.success, th.success {
    td {
      background-color: #edf6e9 !important;
    }
  }
  tr.danger, th.danger {
    td {
      background-color: #f8eded !important;
    }
  }
  tr.warning, th.warning {
    td {
      background-color: #fefdf6 !important;
    }
  }
}

.toggle-modal {
  cursor: pointer;
}

.tab-pane table tr:first-of-type td {
  border-top: 0;
}

form.location {
  margin-bottom: 10px;
  padding: 0;
}

.email-templates-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
  max-height: 376px;
  overflow-x: hidden;
  overflow-y: auto;
  .thumbnail {
    cursor: pointer;
    padding: 10px 15px;
    margin-bottom: 5px;

    &.active {
      border-color: #337ab7;
    }
  }
}

.textarea-items {
  h3 {
    margin-top: 0;
  }
}

.max-results {
  float: right;
  select {
    margin: 0;
  }
}

.dashboard-summary {
  tbody {
    tr {
      td {
        a, a:hover, a:active, a:link, a:visited {
          color: #333;
        }
      }
    }
  }
}

.time-from-edit, .time-till-edit, .presence-from-edit, .presence-till-edit, .time-tutoring-edit {
  input {
    width: 60px;
  }
}

.birthdays {
  ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
  }

  h4 {
    margin-bottom: 0;
  }
}

.feed {
  margin-bottom: 10px;
}

#grades {
  h4 {
    margin-bottom: 0px;
    margin-top: 4px;
  }

  .test-row {
    margin-top: 6px;
  }

  .content {
    float: left;
  }
}

.navbar {
  .navbar-brand.has-logo {
    padding: 3px 15px !important;
    .logo {
      max-height: 46px;
    }
  }
}

.feed {
  background-color: #F2F4F8;
  padding: 10px 6px;
}

.choose-receivers {
  display: none;
}

.receiver-list {
  height: auto;
  padding: 6px 6px 3px 6px;
  .receiver-label {
    color: white;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    height: 20px;
    min-height: 20px;
    padding: 0 10px;
    background-color: #428bca;
    float: left;
    margin-right: 5px;
    margin-bottom: 3px;
  }
}

.output {
  height: 300px;
  width: 100%;
  overflow: auto;
}

.edit-location-information {
  cursor: pointer;
}

legend {
  color: #337ab7;
  font-weight: bold;
  border-bottom: 1px solid #337ab7;
}

h3, h4, h5, h6 {
  color: #337ab7;
}

.support {
  .unread {
    font-weight: bold;
  }
}

.conversation {
  .item {
    &:nth-child(odd) {
      background-color: #f8f8f8;
    }
    .attachments {
      margin-top: 20px;
    }
    padding: 20px;
    h4 {
      margin-top: 0px;
      margin-bottom: 3px;
    }
  }
}

.label-as-badge {
  border-radius: 1em;
}

.day-navigation {
  .current-day-input {
    border: 1px solid #FFC852;
    background-color: #FFC852;
    outline: 0;
    color: #fff;

    &:focus {
      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(255, 200, 82, 0.6);
      box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(255, 200, 82, 0.6);
    }
  }

  .previous-day, .next-day {
    &:link, &:visited {
      color: #FFC852;
    }
    &:hover, &:active {
      color: #d09801;
    }
  }
}

.select-items {
  width: 10px;
}

.amount-of-educators {
  font-size: 40px;
}

.warning-late {
  color: #8a6d3b;
}

.call-warning {
  color: #a94442;
  animation: blinker 1s ease infinite;
}

@keyframes blinker {
  50% { opacity: 0.1; }
}

.type-form {
  margin-top: 8px;
}

.export-button, .synchronize {
  margin-right: 5px;
}

.tutoring-list {
  font-size: 11px;
  width: 100%;
  padding: 5px;
  list-style-type: none;

  a {
    &, &:hover, &:link, &:visited, &:active {
      color: #333 !important;
      text-decoration: none;
    }
  }
}

.filetypes {
  &.filetypes-pdf {
    color: #E14045;
  }
  &.filetypes-xlsx {
    color: #80AF63;
  }
}

.export {
  margin-right: 5px;
}

.form-block {
  margin-top: -50px;
}

.action-4-block {
  width: 164px;
}

.action-3-block {
  width: 126px;
}

.action-2-block {
  width: 88px;
}

.action-1-block {
  width: 59px;
}

.student-connect-column, .educator-rooms-column {
  display: none;
  padding-top: 35px;
  padding-bottom: 10px;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 20px;
  .thumbnail {
    color: #333;
    text-align: center;
    width: 100%;
    display: block;
    text-decoration: none !important;
    margin: 1px 0;
    strong {
      &:link, &:active, &:visited, &:hover {
        color: #333 !important;
      }
    }
  }
  .connect-items {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 250px;
    &:first-of-type {
      margin-bottom: 10px;
    }
  }
}

.connect-rooms-educator, .connect-student {
  margin-left: 3px;
}

.list {
  list-style-type: none;

  .add {
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
  }

  li {
    &.success {
      .item {
        background: rgba(92, 184, 92, .2);
      }
    }

    &.danger {
      .item {
        background: rgba(217, 83, 79, .2);
      }
    }
  }

  .item {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 5px;
    border: 1px solid rgba(0,0,0,.125);

    &::after {
      content: ' ';
      clear: both;
      display: block;
    }

    .save, .edit, .remove, .save-test, .remove-test, .edit-test {
      float: right;
      margin-bottom: 2px;
      margin-left: 2px;
      cursor: pointer;
    }

    .editor {
      width: 100%;
      height: auto;
      border: 0;
      outline: 0 !important;
      background: transparent;
      box-shadow: none;
      resize: none;
    }

    .information {
      display: inline-block;
      font-size: 11px;
    }

    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
  }

  padding-left: 0;
}

.select2-container { width: 100% !important; }

.next-step {
  margin-left: 5px;
}

.support-bar {
  display: none;
  position: fixed;
  top: 52px;
  right: 0;
  bottom: 0;
  width: 300px;
  background: white;
  border-left: 1px solid #ddd;
  z-index: 400;

  h3 {
    color: #333;
    padding: 0 20px;
    float: left;
  }

  .create-ticket {
    float: right;
    margin-top: 17px;
    margin-right: 20px;
  }

  .ticket-explanation {
    padding: 0 20px;
  }

  .list-items {
    max-height: 100%;
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    bottom: 0;
    .list-group-item {
      border-radius: 0;
      border: 0 solid #ddd;
      border-bottom-width: 1px;

      .col-xs-2 {
        padding: 0;

        .avatar {
          height: 40px;
        }
      }

      &:first-of-type {
        border-top-width: 1px;
      }

      margin: 0;
      cursor: pointer;

      .text {
        font-weight: bold;
      }

      .description {
        font-size: 12px;
      }

      &.active {
        .description {
          color: white;
        }
      }
    }
  }
}

#supportTicketModal {
  h4 {
    color: #333;
    float: left;
  }

  .screenshots {
    .item {
      display: inline-block;
      max-width: 100%;
      padding: 4px;
      background-color: #fff;
      border: 1px solid #ddd;
      margin-right: 10px;
      border-radius: 4px;
      width: 140px;
      height: 140px;
      text-align: center;
      vertical-align: middle;
      line-height: 140px;
      position: relative;
      background-size: cover;

      .glyphicon {
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
      }
      .remove {
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        top: 0;
        display: block;
        position: absolute;
        right: 5px;
      }
    }
  }
}

.linethrough-text {
  text-decoration: line-through;
}

select.form-control+.chosen-container .chosen-search input[type=text],select.form-control+.chosen-container.chosen-container-single .chosen-single{height:34px;padding:6px 12px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}select.form-control+.chosen-container.chosen-container-single .chosen-single{display:block;width:100%;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;background-image:none}select.form-control+.chosen-container.chosen-container-single .chosen-single div{top:4px;color:#000}select.form-control+.chosen-container .chosen-drop{background-color:#FFF;border:1px solid #CCC;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box;margin:2px 0 0}select.form-control+.chosen-container .chosen-search input[type=text],select.form-control+.chosen-container-multi .chosen-choices{display:block;width:100%;border:1px solid #CCC;background-image:none;font-size:14px;line-height:1.428571429;vertical-align:middle}select.form-control+.chosen-container .chosen-search input[type=text]{color:#555;background-color:#FFF;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}select.form-control+.chosen-container .chosen-results{margin:2px 0 5px;padding:5px 0;font-size:14px;list-style:none;background-color:#fff}select.form-control+.chosen-container .chosen-results li,select.form-control+.chosen-container .chosen-results li.active-result{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.428571429;color:#333;white-space:nowrap;background-image:none}select.form-control+.chosen-container .chosen-results li.active-result:hover,select.form-control+.chosen-container .chosen-results li.highlighted,select.form-control+.chosen-container .chosen-results li:hover{color:#FFF;text-decoration:none;background-color:#428BCA;background-image:none}select.form-control+.chosen-container-multi .chosen-choices{min-height:34px;padding:6px;color:#555;background-color:#FFF;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}select.form-control+.chosen-container-multi .chosen-choices li.search-field input[type=text]{height:auto;padding:5px 0}select.form-control+.chosen-container-multi .chosen-choices li.search-choice{background-image:none;padding:3px 24px 3px 5px;margin:0 6px 0 0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid #CCC;border-radius:4px;color:#333;background-color:#FFF}select.form-control+.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{top:8px;right:6px}select.form-control+.chosen-container .chosen-search input[type=text]:focus,select.form-control+.chosen-container-multi.chosen-container-active .chosen-choices,select.form-control+.chosen-container.chosen-container-single.chosen-container-active .chosen-single{border-color:#66AFE9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}select.form-control+.chosen-container-multi .chosen-results li.result-selected{display:list-item;color:#ccc;cursor:default;background-color:#fff}.chosen-container .chosen-choices .search-field input{width:auto!important;}
.chosen-container { width: 100% !important; }

.new {
  background-color: #edf6e9;
}

.tests {
  .item {
    width: 100%;
    position: relative;

    .head {
      margin-right: 60px;
      h4 {
        display: inline;
        color: #333;
      }
    }

    .note {
      width: 50px;
      height: 50px;
      right: 10px;
      bottom: 10px;
      position: absolute;
      top: 10px;
      border-radius: 3px;
      background-color: #eee;
      line-height: 50px;
      text-align: center;
      z-index: 400;

      input {
        height: 100%;
        width: 100%;
        border: 0;
        outline: none;
        background: transparent;
        padding: 0 2px;
        text-align: center;
      }
    }

    &.not-visible {
      background: #eee;
      .note {
        background: white;
      }
    }
  }

  &.connection {
    .item {
      .note {
        width: 40px;
        height: 40px;
        line-height: 40px;
      }
    }
  }
}

.grade-overview {
  .overview {
    width: auto;
    display: inline-block;
    border-radius: 3px;
    background-color: #eee;
    text-align: center;
    padding: 3px 5px;
    height: 26px;
    min-width: 20px;

    &.zero-weight {
      background-color: #ccc;
    }
  }
}

.add-attachment {
  text-align: right;
  font-size: 11px;
  margin-top: 4px;
  float: right;

  i {
    cursor: pointer;
    vertical-align: middle;
  }

  input[type="file"] {
    width: 0;
    height: 0;
    display: none;
  }

  .file-name {
    display: inline-block;
    margin-right: 5px;
    font-size: 11px;
    vertical-align: middle;
  }

  .download {
    margin-right: 5px;
  }

  .remove-file {
    display: none;
    margin-right: 5px;
    cursor: pointer;
  }
}

#tutoring-calendar {
  min-width: 1024px;
}

.cal-weeks {
  display: flex;

  .cal-row {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

// stacktables
.stacktable { width: 100%; }
.st-head-row { padding-top: 1em; }
.st-head-row.st-head-row-main { font-size: 1.5em; padding-top: 0; }
.st-key { width: 49%; text-align: right; padding-right: 1%; }
.st-val { width: 49%; padding-left: 1%; }

.stacktable.large-only { display: table; }
.stacktable.small-only { display: none; }

@media (max-width: 991px) {
  .stacktable.large-only { display: none; }
  .stacktable.small-only { display: table; }

  .stacktable .st-head-row {
    opacity: 0;

    &:before {
      content: ' ';
      display: block;
      margin-top: 10px;
    }

    &.st-head-row-main {
      display: none;
    }
  }

  .dashboard-summary {
    .st-head-row:not(.student-row):not(.educator-row) {
      display: block;
      opacity: 1;
      margin-bottom: -30px;
    }

    .student-row .st-head-row:not(.student-row):not(.educator-row) {
      opacity: 0;
      margin-bottom: -30px;
    }

    .stacktable tr:last-of-type .st-head-row {
      margin-bottom: 0;
    }
  }
}

.glyphicons-flower:before {
  content: "\e311";
}

.spring-summer-school-icon {
  color: green;
}

.room-item-disabled {
  cursor: default;
  background: #e4b9b9;
}

.cursor-pointer {
  cursor: pointer;
}

.full-width {
  width: 100%
}

.day-view-field {
  max-width: 220px;
}
.day-view-location {
  margin-right: 10px;
}

.col-print-1 {width:8%;  float:left;}
.col-print-2 {width:16%; float:left;}
.col-print-3 {width:25%; float:left;}
.col-print-4 {width:33%; float:left;}
.col-print-5 {width:42%; float:left;}
.col-print-6 {width:50%; float:left;}
.col-print-7 {width:58%; float:left;}
.col-print-8 {width:66%; float:left;}
.col-print-9 {width:75%; float:left;}
.col-print-10{width:83%; float:left;}
.col-print-11{width:92%; float:left;}
.col-print-12{width:100%; float:left;}

.datepicker.dropdown-menu {
  z-index: 100000 !important;
}
