
/*
  Sticky footer with table "hack".
  http://galengidman.com/2014/03/25/responsive-flexible-height-sticky-footers-in-css/
*/

html {
  height: 100%;
  position: relative;
  background-color: #f0f0f0;
}
body {
  display: table;
  table-layout: fixed;
  position: relative;
  height: 100%;
  width: 100%;
  background-color: transparent;
}
header,
main,
footer {
  position: relative;
  display: table-row;
  height: 1px;
  vertical-align: top;
  text-align: left;
}
header {
  background-color: #e5e5e5;
}
main {
  height: 100%;
}
footer {
  background-color: #e5e5e5;
}

/* Bootstrap overrides */

.control-label {
  cursor: pointer;
}
.glyphicon.align-left {
  margin-right: 10px;
}
.glyphicon.align-right {
  margin-left: 10px;
}
.form-control::-moz-placeholder {
  font-style: italic;
}
.form-control:-ms-input-placeholder {
  font-style: italic;
}
.form-control::-webkit-input-placeholder {
  font-style: italic;
}
.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}
.modal-title {
  line-height: 30px;
}
.modal-header .close {
  margin: 0;
  font-size: 30px;
  line-height: 30px;
}

a.list-group-item.device {
  height: 80px;
}

a.list-group-item:hover,
a.list-group-item:focus {
  color: #fff;
  background-color: #337ab7;
}
.panel-default > .panel-heading {
  background-color: #fff;
}
.panel-default > .panel-heading.has-actions {
  min-height: 54px;
}
.panel-heading h1,
.panel-heading h2,
.panel-heading h3,
.panel-heading h4,
.panel-heading h5,
.panel-heading h6{
  font-size: 18px;
  margin: 0;
  padding: 5px;
  line-height: 24px;
}
.dl-horizontal.align-left dt {
  text-align: left;
  color: #999;
  font-style: italic;
  font-weight: 400;
}
.dl-horizontal.align-left dd {
  padding-bottom: 5px;
}
.btn-as-form {
  display: inline;
  border: 0;
  background: transparent;
  padding: 6px 12px;
  margin: -6px -12px;
  outline: 0;
}
.nowrap {
  white-space: nowrap;
}
.dropdown-menu > li > a {
  padding-top: 7px;
  padding-bottom: 7px;
}
.dropdown-divider {
  height: 1px;
  margin: .5rem 0;
  overflow: hidden;
  background-color: #e9ecef;
}
.navbar-action-nav {
  margin-left: 15px !important;
}

/* Component - Empty */

.empty {
  color: #999;
  font-style: italic;
}

/* Component - Actionbar */

#actionbar {
  margin: 0;
  border-radius: 0;
}

@media (max-width: 767px) {
  #actionbar .navbar-collapse {
    border-color: #000;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
}

/* Component - Actionbar - Nav */

@media (min-width: 768px) {
  #actionbar .navbar-nav {
    margin-left: -15px;
  }
  #actionbar .navbar-nav > li > a {
    border-right: 1px solid #000;
  }
  #actionbar .navbar-nav > li:first-child > a {
    border-left: 1px solid #000;
  }
}
@media (max-width: 767px) {
  #actionbar .navbar-nav > li > a {
    border-bottom: 1px solid #000;
  }
  #actionbar .navbar-nav {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* Component - Actionbar - Search */

@media (min-width: 768px) {
  #actionbar .navbar-form {
    position: absolute;
    left: 50%;
    margin-left: -100px;
    width: 200px;
  }
  #actionbar .navbar-form .input-group {
    width: 100% !important;
  }
  #actionbar .navbar-form .input-group-btn {
    width: 40px !important;
  }
}
@media (min-width: 992px) {
  #actionbar .navbar-form {
    margin-left: -150px;
    width: 300px;
  }
}
@media (max-width: 767px) {
  #actionbar .navbar-form {
    display: none;
  }
}
#actionbar .navbar-static {
  position: static;
}
#actionbar .navbar-form-collapsed {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 8px;
  margin-left: 15px;
  position: absolute;
  left: 0;
  right: 75px;
}

@media (min-width: 767px) {
  #actionbar .navbar-form-collapsed {
    display: none;
  }
}

/* Component - Actionbar - Actions */

@media (max-width: 767px) {
  #actionbar .btn-group {
    width: 100%;
  }
  #actionbar .btn-group .btn {
    display: block;
    border-radius: 3px !important;
    float: none !important;
  }
}

/* Component - Content */

#content {
  padding: 20px 0;
}

/* Component - Banner */

#banner {
  display: block;
  height: 200px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto 150px;
}
@media (max-width: 767px) {
  #banner {
    height: 120px;
    background-size: auto 80px;
  }
}

/* Component - Footer text */

.footer-text {
  margin: 0;
  padding: 20px 0;
  color: #999;
}
@media (max-width: 767px) {
  .footer-text {
    float: none !important;
    text-align: center;
  }
  .footer-text + .footer-text {
    padding-top: 0;
    margin-top: -10px;
  }
}

/* Component - Login box */

#login-box {
  max-width: 330px;
  margin: 20px auto;
}

/* Component - Customer list */

.customer-list .customer {
  font-size: 18px;
}
.customer-list .device-date {
  color: #999;
}
.customer-list a.list-group-item:hover .device-date,
.customer-list a.list-group-item:focus .device-date {
  color: #fff;
}

/* Component - Customer device list */

.customer-device {
  padding: 0 0 20px 0;
  margin: 0 0 20px 0;
  border-bottom: 1px solid #ddd;
}
.customer-device:last-child {
  padding: 0;
  margin: 0;
  border-bottom: 0;
}
.customer-device-title {
  font-size: 18px;
  margin: 0;
  padding: 0 0 10px 0;
}
.customer-device-info {
  margin: 0;
  padding: 0;
}

/* Component - Device image */

.customer-device-image {
  max-width: 100%;
}
.device-picture-ticket,
.device-picture {
  margin-left: 10px;
  width: 60px;
  height: 60px
}
.device-picture-ticket a,
.device-picture-ticket a:visited,
.device-picture div, .device-picture div:visited {
  display: block;
  width: 60px;
  height: 60px;
  text-decoration: none;
  top: 0;
  left: 0;
  border: 0;
}
.device-picture div img,
.device-picture-ticket a img {
  border: 0;
}
.device-picture div:hover,
.device-picture-ticket a:hover {
  text-decoration: none;
}
.device-picture div .device-hover-image-list,
.device-picture-ticket a .device-hover-image-list {
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  top: 0;
  left: 0;
}
.device-picture div:hover .device-hover-image-list,
.device-picture-ticket a:hover .device-hover-image-list {
  display: block;
  position: relative;
  left: -420px;
  top: -100px;
  width: auto;
  height: auto;
  z-index: 999;
}
.modal-device-image {
  max-width: 100%;
}
.modal-device-image-container {
  text-align: center;
}
@media (max-width: 767px) {
  .hide-in-mobile {
    display: none;
  }
}

span.maintenance_step {
  background: #cccccc;
  border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 1.6em;
  margin-right: 5px;
  text-align: center;
  width: 1.6em;
}

span.maintenance_step.current {
  background: #8daf0b;
}

.hidden-device-container {
  display: none;
}

.show-more-devices {
  text-align: center;
}

form.payment-form {
  display: inline-block;
}

button.payment-button {
  width: 95px;
}

p.header-payment {
  margin-top: 10px;
  font-weight: bold;
}

a.payment-cancel {
  font-size: 80%;
  cursor: pointer;
}

.small-text {
  font-size: 12px;
}

/* Component - Pagination menu */

.pagination-menu {
  margin-bottom: 20px;
  text-align: center;
  height: 34px;
  line-height: 34px;
}

/* Fullcalendar */
.fc-event-time, .fc-event-title {
  padding: 0 1px;
  white-space: normal;
  color: black;
}

a.fc-daygrid-day-number {
  text-decoration: none;
  color: black;
  font-size: 20px;
}

a.fc-col-header-cell-cushion {
  text-decoration: none;
  color: black;
}

:root {
  --fc-bg-event-opacity: 1;
}

.fullCalendarOpenDate {
  cursor: pointer;
}

.fullCalendarFullDate {
  cursor: not-allowed;
}

.fc-daygrid-event-harness {
  margin-bottom: 5px;
}

.fc-daygrid-day-events a {
  cursor: pointer;
}

#id_reservecreateticket-description{
  max-height: 150px;
  max-width: 100%;
}

.fc-daygrid-day-top, .fc-daygrid-day-number { 
  pointer-events: none;
}

.new-massmessage-table {
  width: 100%;

  tr {
    padding-bottom: 2px;
    border-bottom: 1px solid black;

    width: 100%;
  }

  td, th {
    padding-right: 4px;
    padding-left: 2px;

    &.col-select {
      width: 60px;
    }

    &.col-checkmark-bool {
      width: 180px;
    }
  }
}

td.col-checkmark-bool {
  text-align: center;
}

/* pad bottom */
.pb {
  padding-bottom: 20px
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table.table-headers-align-top > thead > tr > th  {
  vertical-align: top;
}