/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error, .invalid-feedback {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

[hidden][style="display: block;"] {
  display: block !important;
}

@media (max-width: 767px){
  .title {
    color: #003888;
    font-size: 14pt;
  }
}

@media (min-width: 768px) {
  .title {
    color: #003888;
    font-size: 20pt;
  }
}

.app-title {
  color: #003888;
  font-size: 16pt;
}

.grid {
  background: #FFFFFF;
  max-width: 1200px;
}

/* clearfix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/*!
 * Bootstrap v2.3.2
 *
 * nav-list
 */

/* Close-Buttons für Alerts einfärben */
div.alert-success i.fa-times-circle {
  color: green;
}

div.alert-danger i.fa-times-circle {
  color: red;
}

div.alert-warning i.fa-times-circle {
  color: orange;
}

div.alert-success i.fa-times-circle {
  color: green;
}

div.alert-info i.fa-times-circle {
  color: blue;
}

/* Hand pointer for clickable elements*/
.clickable {
  cursor: pointer;
}

/* Abstand für Nav-Bar */
body {
  padding-top: 60px;
}

/* Highlight bei Hover */
.hover:hover {
  background-color: #F5F5F5 !important;
}

/* Dropdown in Überschrift */
h1 a.dropdown-toggle,
h1 a:hover.dropdown-toggle,
h1 a:active.dropdown-toggle,
h1 a:visited.dropdown-toggle {
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

.row { margin-top:10px }

span.label {
  font-weight: normal;
  font-size: small;
}

.fa-ul li {
  margin-bottom: 5px;
}

.fa-ul .fa-li {
  top: 4px;
}

/* Standardgrösse für Portraits */
img.portrait {
  width: 117px;
}

/* Panels mit Listen */
ul.panel-heading {
    padding-bottom: 0;
    padding-top: 0;
}

ul.panel-heading li {
    font-weight: bold;
}

ul.panel-body {
    padding-bottom: 0;
    padding-top: 0;
}

li.row {
    list-style-type: none;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 8px;
    padding-top: 8px;
}

/* Weitere */
.nav-header {
  display: block;
  padding: 3px 15px;
  font-size: 11px;
  font-weight: bold;
  line-height: 20px;
  color: #999999;
  text-transform: uppercase;
}


html {
  overflow-y: scroll;
}


@media (min-width: 768px) {
  .panel-heading {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .panel-body {
    margin-bottom: 10px;
  }
  /* alles etwas nach oben */
  .page-header {
    margin-top: 0px;
  }
}



@media (max-width: 767px) {
  .panel-heading {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
  }
  .panel-body {
    margin-bottom: 5px;
  }
  /* alles etwas nach oben */
  .page-header {
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

/* Bugfix für Fehler von bootstrap-select in Modals
https://github.com/silviomoreto/bootstrap-select/issues/875
http://stackoverflow.com/questions/27381311/bootstrap-select-inside-modal-dont-show-properly

.bootstrap-select.btn-group .dropdown-menu.inner {
    position: static;
    margin: 0;
    border-style: none;
    box-shadow: none;
}

a:focus {outline:none;}
:focus {outline:none;}
::-moz-focus-inner {border:0;}
*/

/* https://github.com/twbs/bootstrap/issues/3640
.btn-group .pagination a {
    line-height: 26px;
}
.btn-group .pager a {
    line-height: 16px;
    float: left;
}

.btn-group .pagination,
.btn-group .pager {
    margin: 0;
}
*/
/* http://stackoverflow.com/questions/13311574/how-to-enable-bootstrap-tooltip-on-disabled-button
.btn.disabled {
    pointer-events: auto;
}

img.party-hat {
    margin-right:-105px;
    margin-top:-85px;
}

@media screen and (min-width: 1000px) and (max-width: 1200px) {
    img.party-hat {
        position:absolute;
    }
}
*/

/* Diverses */

.tel-nr-cell {
  white-space: nowrap;
}

.gallery-item {
  width: 140px;
  height: 245px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  background: #EEEEEE;
  border: 1px solid lightblue;
  border-radius: 5px;
  padding: 5px;
  margin: 15px;
}

.tooltip-gallery-item {
  width: 96px;
  height: 200px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  background: #EEEEEE;
  border: 1px solid lightblue;
  border-radius: 5px;
  padding: 2px;
  margin: 3px;

}

.gallery-item:hover {
  background: #DDDDDD;
  border: 1px solid #333;
  border-color: hsla(0, 0%, 0%, 0.5);
  cursor: pointer;
}

.sortable {
  margin: 2px;
  padding: 5px;
  width: 200px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: lightblue solid 1px;
}

.sortable-container {;
  float: left;
  width: 220px;
}

.sortable-container span {
  font-weight: bold;
}

.sortable div {
  border-radius: 5px;
  padding: 3px;
  background-color: white;
  color: black;
  cursor: pointer;
  border: 1px solid transparent;
}

.sortable div:hover {
  border: 1px solid #356AA0;
}

.table-fixed thead {
  width: 97%;
}

.table-fixed tbody {
  height: 230px;
  overflow-y: auto;
  width: 100%;
}

.table-fixed thead, .table-fixed tbody, .table-fixed tr, .table-fixed td, .table-fixed th {
  display: block;
}

.table-fixed tbody td, .table-fixed thead > tr > th {
  float: left;
  border-bottom-width: 0;
}

/* Logbooks */

.logbook-tools .add-exam .load-day-lessons {
  font-size: 12pt;
}

.logbook-body {
  height: 75vh;
  overflow-y: auto;
}

.day-header {
  color: #4b88a6;
  background-color: whitesmoke;
  text-align: center;
}


.lesson-row {
  height: 100px;
}

.lesson-attendances-row {
  display: none;
  height: 100px;
}

.assignment {
}

.lesson-can-edit {
  background: #e0e9f5;
}

.lesson-nonattendance, .lesson-attendance, .exam {
  background: #EEEEEE;
  border: 1px solid lightblue;
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
  display: inline-block;
  cursor: pointer;
}

div.exam-info::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f891";
}

.ptr {
  cursor: pointer;
  color: #007DB3;
}

.nonattendance, .justification {
  background: #EEEEEE;
  border: 1px solid lightblue;
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
}

.status-selector, .case-qtip, .timetable-entry {
  cursor: pointer;
}


.justification-qtip::before, .nonattendance-qtip::before{
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f129";
  cursor: pointer
}

.selected :first-child:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f14a";
  clear: both;
}

.deselected :first-child:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f0c8";
  clear: both;
}

.printable :first-child:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f02f";
  clear: both;;
}

.PENDING {
  background: #fff686;
}

.JUSTIFIED, .ANNOUNCED, .SUBMITTED {
  background: #add9ff;
}

.EXCUSED, .ACCEPTED {
  background: #91ffce;
}

.UNEXCUSED, .REJECTED {
  background: #dc655f;
}

.tooltip-form {
  padding: 5px;
  margin: 5px;
  width: 100%;
}

.qtip-modal {
  max-width: 95%;
  width: 1024px;
}

.lesson-canceled {
  color: #7f7f7f;
}

.lesson-dropped {
  color: #bbb2ab;
  background: #e5dcd5;
}

.lesson-overdue {
  color: #f1675b;
}

.lesson-receipted {
  color: #7dbe59;
}

.lesson-open {
  color: black;
}

.lesson-substituted {
  color: #28a6d9;
}

.action-required {
  color: #f1675b;
}

.add-exam {
  vertical-align: bottom;
}

.rotate-270 {
    display: inline-block;
    #writing-mode: vertical-lr;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    transform-origin: center;
    transform: rotate(180deg);
    padding-top: 2mm;
    padding-bottom: 3mm;
}

.rotate-270 div {
     -moz-transform: rotate(-90.0deg);  /* FF3.5+ */
       -o-transform: rotate(-90.0deg);  /* Opera 10.5 */
  -webkit-transform: rotate(-90.0deg);  /* Saf3.1+, Chrome */
             filter:  progid:DXImageTransform.Microsoft.BasicImage(rotation=0.083);  /* IE6,IE7 */
         -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0.083)"; /* IE8 */
         margin-left: -10em;
         margin-right: -10em;
}

#lesson-attendants {
  width: 90%;
}
/* Timetable wish */

@media (max-width: 767px) {
  .timetable {
    font-size: 10pt;
  }
}

.input-cell {
  width: 130px;
  padding: 5px;
}

.form-control-danger {
  border: 2px red solid;
}

.reservable {
  padding: 1pt 3pt;
  border: 1pt;
  margin: 0 2pt;
}
.available {
  cursor: pointer;
  border: 1pt solid lightblue;
}
.selected-reservable {
  color: black;
  background: #dc655f;
}
.reserved {
  cursor: pointer;
  background: lightgrey;
  color: darkgrey;
  border: 1pt solid lightgrey;
}

.student-table {
  white-space: nowrap;
}
