@import (once) '../bower_components/bootstrap/less/bootstrap';

@import (once) 'core/styles/mixins.less';
@import (once) '../components/core/styles/colours.less';
@import (once) '../components/core/styles/navbar.less';
@import (once) '../components/core/styles/modals.less';
@import (once) '../components/core/styles/login.less';


@import (once) '../components/core/styles/core.less';
@import (once) '../components/core/styles/table.less';
@import (once) '../components/core/styles/cardList.less';
@import (once) '../components/core/styles/checkbox.less';
@import (once) '../components/time/styles/time.less';
@import (once) '../components/pay/styles/pay.less';
@import (once) '../components/leave/styles/leave.less';
@import (once) '../components/settings/styles/settings.less';


body,html{
  height: 100%;
  font-family: 'Open Sans', sans-serif;
}
h1{
  font-size: 31px;
  margin-top: 17px;
  margin-bottom: 8.5px;
}

input {
  -webkit-appearance: none;
  line-height: 20px !important;
}

.dropdown-toggle{
  font-size: 18px;
  padding: 0;
  width: 34px;
}

.ion {
  font-size: 16px;
  position: relative;
}

.ion-ios-checkmark-empty {
  font-size: 18px;
}

.form-group input:focus {
  outline: -webkit-focus-ring-color auto 5px !important;
}

.btn{
  -webkit-transition: background-color .25s, border-color .25s; /* Safari */
  transition: background-color .25s, border-color .25s;
}

.btn:active, .btn.active {
  outline: 0;
  background-image: none;
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-success{
  background-color: @btnSuccessColor;
  border-color: @btnSuccessColor;

  &:hover{
    background-color: darken(@btnSuccessColor, 5%);
    border-color: darken(@btnSuccessColor, 5%);
  }

  &:active{
    background-color: darken(@btnSuccessColor, 15%);
    border-color: darken(@btnSuccessColor, 15%);
  }

  &:focus {
    background-color: @btnSuccessColor;
    border-color: @btnSuccessColor;
  }

}

.btn-primary{
  background-color: @btnPrimaryColor;
  border-color: @btnPrimaryColor;

  &:hover{
    background-color: darken(@btnPrimaryColor, 5%);
    border-color: darken(@btnPrimaryColor, 5%);
  }

  &:active{
    background-color: darken(@btnPrimaryColor, 15%);
    border-color: darken(@btnPrimaryColor, 15%);
  }

  &:focus{
    background-color: @btnPrimaryColor;
    border-color: @btnPrimaryColor;
  }

}

.btn-default{
  background-color: @btnDefaultColor;
  border-color: @btnDefaultBorder;

  &:hover{
    background-color: darken(@btnDefaultColor, 5%);
    border-color: darken(@btnDefaultBorder, 5%);
  }

  &:active{
    background-color: darken(@btnDefaultColor, 15%);
    border-color: darken(@btnDefaultBorder, 15%);
  }

  &:focus{
    background-color: @btnDefaultColor;
    border-color: @btnDefaultBorder;
  }

}

.loadingIcon{
  position: absolute;
  top: calc(~'50% - 50px');
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 35px;
  max-height: 35px;
  z-index: 11;
}

.loadingIcon img{
  max-width: 35px;
  max-height: 35px;
}

.clickColour{
  color: @clickColor !important;
}

@icon-font-path: '../bower_components/bootstrap/fonts/';

// Styling for content to display when device is too small for app
.container-xs {
  .diagonal-gradient;
  width: 100%;
  height: 100%;
  color: #fafafa;
  text-align: center;
  padding: 15px;

  & > img {
    width: 100px;
    height: 100px;
  }
  & > h3, & > h4, & > h5 {
    margin: 25px 0;
    line-height: 18px;
  }
  & > a {
    line-height: 20px;
  }
}











/*UIB DATEPICKER STYLING*/

.uib-datepicker-popup.dropdown-menu button {
  height: 44px;
}

.uib-datepicker-popup div .btn[disabled] {
  background-color: #f4f4f4 !important;
  border: solid 2px #fff !important;
  color: #999 !important;
  cursor: not-allowed !important;
}

.uib-button-bar .btn {
  height: 34px !important;
  border-width: 1px!important;
  border-radius: 2px!important;
}

.uib-button-bar .btn-primary {
  color: #333 !important;
  background-color: #fff;
  border: solid 1px #ccc !important;
}

.uib-button-bar .btn-primary:hover {
  background-color: #e6e6e6;
  border-color: #adadad !important;
}

.uib-button-bar .btn-danger {
  //margin-left: 7px !important;
  visibility: hidden !important;
}

.uib-button-bar .btn-success {
  border-color: #5eb22e !important;
}

.uib-button-bar .btn-success:hover {
  border-color: #449d44 !important;
}

.uib-weeks td:first-child {
  display: none;
}

.uib-daypicker table:first-child tr:nth-child(2) th:first-child {
  display: none;
}

.uib-daypicker .pull-right{
  margin-left: -50px;
  width: 48px;
}

.uib-datepicker-popup .btn-primary{
  font-size:12px !important;
  margin-left:5px !important;
}

.uib-datepicker-popup .btn-default{
  font-size: 12px;
  background-color: #f4f4f4 !important;
  border-color: #fff;
  border-width: 2px !important;
  padding: 10px 15px;
}

.uib-title{
  background-color: #fff !important;
  border-color: #fff !important;
  max-width: 240px !important;
}

.uib-daypicker tr{
  margin-bottom: 10px;
}

.uib-datepicker-popup .btn-info{
  background-color:#ff6600 !important;
  border-color: #ff6600 !important;
  box-shadow: none;
}

.uib-datepicker-popup .text-center > em{
  display: none;
}

.uib-datepicker-popup .btn-info span{
  color: #fff !important;
}

.uib-datepicker-popup {
  padding: 0 5px 5px 5px;
  /*margin-left: -317px !important;*/
  margin-top: 10px !important;
  background-color: #efefef;
}

.uib-datepicker-popup > li {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 3px;
  border: 1px solid #ccc;
  margin-top: 5px;
}

.uib-datepicker-popup .btn-group .btn, .uib-datepicker-popup .btn-success{
  min-width: 90px;
  padding: 7px 0;
}

.uib-datepicker-popup .uib-button-bar{
  background-color:#efefef;
  border:none;
  padding:10px;
  height: 54px;
}

.uib-datepicker-popup li .pull-left {
  float: none !important;
}



.glyphicon-calendar {
  color: #777 !important;
}


.builtByFlexi {
  position: relative;
  background-color: #0077a2;
  text-align: center;
  color: #fff;
  width: 100%;
  margin: 0 auto;
  display: block;
  padding: 15px 0;
}

.builtByFlexi p{
  margin-bottom: 0;
}

@media screen and (min-height: 750px) {
  .builtByFlexi {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
  }

}

.addNotes:hover{
  text-decoration: underline;
}

.modal-text{
  width: 100%;
  max-width: 100%;
  max-height: 300px;
  border-radius: 2px;
  transition: padding .25s, border .25s, margin-top .25s;
}

.btn-danger:hover {
  color: #fff;
  border-color: #b22e2e !important;
  background-color: #b22e2e !important;
}