@import "elements.less";
@import "colors.less";

#additionalResources {
  display: inline;
}

#additionalResources p {
  margin: 0px;
  font-style: italic;
}

.durationText {
  font-size: .9em;
  font-weight: bold;
  display: inline;
  color: #000;
}

#reservationbox {
  width: 100%;
  margin: 3em auto 1em;
}

#reservationbox ul {
  list-style: none;
}

#reservationbox input[type="file"] {
  font-size: 10pt;
}

#reservationbox .input {
  font-size: 16px;
  width: 98%;
  padding: 3px;
  margin: 2px 0 5px 0;
  border: 1px solid #e5e5e5;
  background: #fbfbfb;
  color: #777;
}

#reservationbox.readonly label {
  font-size: 16px;
  font-weight: bold;
  color: #000;
}

#reservationbox.readonly ul {
  font-size: 16px;
  color: #333;
}

#reservationbox.readonly .section {
  padding-top: 15px;
}

#reservationbox.readonly .repeat-details, #reservationbox.readonly .repeat-details label {
  margin-left: 10px;
  font-size: 15px;
}

#reservationDetails {
  padding-right: 25px;
  #userName {
    font-size: 1.2em;
  }
}

.reservationButtons {
  margin-top: 20px;
}

.reservationReminders, .reservationAttachments, .customAttributes {
  margin-top: -9px;
  padding-top: 0px;
}

.reservationDeleteButtons {
  float: left;
}

.reservationSubmitButtons {
  float: right;
}

#reservationParticipation {
  padding-left: 25px;
  //   border-left: solid 1px @mid-gray;
}

#participantList, #inviteeList {
  height: 100px;
  width: 98%;
  overflow-y: auto;
  border: solid 1px @light-gray;
  padding: 2px;
  .rounded(2px);
  margin: 2px 0 5px 0;
  background-color: #fff;
  .user {
    float: left;
    padding-right: 5px;
  }
}

#accessories {
  max-height: 200px;
  overflow: auto;
}

#accessories p {
  margin: 1px;
}

#reservationbox a {
  font-size: 12pt;
}

#dialogSave ul {
  text-align: left;
}

#dialogSave .error {
  background-image: none;
}

#dialogSave h2 {
  font-size: 18pt;
}

#dialogSave div {
  font-size: 16pt;
  text-align: center;
}

#dialogSave input, #dialogSave button {
  font-size: 11pt;
}

.res-attachments {

  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #dedede;
}

.res-attachments .heading {
  font-size: 10pt;
  font-weight: bold;
}

#reservationbox .res-attachments a {
  font-size: 9pt;
}

#reminderOptionsStart, #reminderOptionsEnd {
  display: inline-block;
  padding-right: 30px;
}

.reminderLabel {
  font-size: 10pt;
}

#reservationbox a.small-action {
  font-size: 9pt;
  color: #3d5b74;
}

.customAttributes {
  margin-top: 10px;
}

ul.jqtree-tree li.jqtree-selected > .jqtree-element, ul.jqtree-tree .jqtree-toggler {
  top: 10%;
}

ul.jqtree-tree .group-resource .jqtree-title {
  color: #111111;
}

.buttonsTop {
  margin-bottom: 10px;
}

.reservationDate {
  width: 50px;
  display: inline-block;
}

.reservationDates, .reservationTitle, .reservationResources {
  padding-top: 12px;
}

.reservationLength .form-group {
  margin: 5px 0;
}

#reservationCreated .approvalMessage, #reservationUpdated .approvalMessage {
  margin: 15px 0;
  font-size: smaller;
}

#changeUsers {
  display: none;
}

.reservationHeader h3 {
  margin: 0;
  .pendingApproval {
    color: #ffb540;
  }
}

.repeat-drop {
  width: auto;
}

.repeat-interval-drop {
  width: auto;
}

.weeks, .months {
  margin-top: 5px;
}

.weeks .btn-sm {
  width: 55px;
}

#reservation-box label {
  min-width: 50px;
}

.accessory-quantity {
  width: 60px;
}

.reminderTime {
  width: 65px;
}

.reminderInterval {
  width: auto;
  padding: 0px;
}

a.add {
  color: @almost-black;
  text-decoration: none;
}

a.add .icon {
  color: @primary-green;
}

a.remove {
  color: @muted-red;
}

#reservation-response-image .error {
  color: @muted-red;
}

#reservation-response-image .warning {
  color: @dark-orange;
}

#reservation-response-image .success {
  color: @primary-green;
}

.reservation-message {
  font-size: 2em;
  font-weight: bold;
}

.accessoriesDiv {
  float: right;
}

.participationText, .participationButtons {
  display: inline;
}

@media only screen and (max-device-width: 480px) {
  .reservation-message {

    font-size: 1em;
    font-weight: bold;
  }

  .btnCreate, .btnEdit {
    width: 70%;
    float: right;
  }

  .accessoriesDiv {
    padding-top: 10px;
    float: none;
    clear: both;
  }

  .participationText, .participationButtons {
    width: 100%;
    display: block;
    input[type=text].user-search {
      width: 100%;
    }
  }

  .participationButtons {
    padding: 3px 0;
    button {
      //height:30px;
      line-height: 15px;
    }
  }

  #reservationDetails {
    padding-right: 0;
  }

  #reservationParticipation {
    padding-right: 15px;
  }

}

@media only screen and (min-device-width: 480px) {
  .detailsBorder {
    border-right: solid 1px @blue-gray;
  }
}

#custom-attributes-placeholder .form-group {
  margin: 0;
}

//#custom-attributes-placeholder .customAttribute {
//  max-width: 250px;
//  //display:inline-block;
//  float:left;
//  //padding-bottom: 500em;
//  //margin-bottom: -500em;
//}

#allowParticipation {
  margin-top: 5px;
}

#invite-error {
  font-weight: bold;
  color: @muted-red;
}

#reservation-box {
  .resourceName {
    color: @color-secondary-2-3;
    a {
      color: @color-secondary-2-3;
    }
    .rounded(2px);
    padding: 2px 1px;
    display: inline-block;
    margin-right: 2px;
    .fa:last-of-type {
      margin-right: 2px;
    }
    background-color: @color-secondary-2-1;
  }
}

.autoReleaseButtonMessage {
  display: none;
}

.unavailableResource {
  text-decoration: line-through;
  color: @muted-red;
}

#availableCreditsCount, #requiredCreditsCount, #creditCost {
  font-weight: bold;
}

#requiredCreditsCount.insufficient-credits, #creditCost.insufficient-credits {
  color: @muted-red;
}

.availability-highlighter {
  position:absolute;
  background-color:rebeccapurple;
  opacity: .25;
}

#page-view-reservation {
  .participationAction {
    margin-bottom: 5px;
  }
}

#page-reservation {
  .form-control.timeinput.input-sm {
    padding: 0px;
  }
  .resourceDetails {
    text-decoration: none;
    cursor: pointer;
  }
}

#user-availability-box {
  table.reservations td.resourcename {
    color: #333;
  }
}
