@import (less) 'bootstrap.min.css';
@import (less) 'bootstrap-theme.min.css';
@import (less) 'bootstrap-toggle.min.css';
@import (less) 'style.css';
@import (less) 'docs.css';

@gray-darker:  lighten(#000, 13.5%); // #222
@gray-dark:    lighten(#000, 20%);   // #333
@gray:         lighten(#000, 33.5%); // #555
@gray-light:   lighten(#000, 46.7%); // #777
@gray-lighter: lighten(#000, 93.5%); // #eee

@primary: #357ebd;

html,
body {
  overflow-x: hidden;
  height: 100%!important;
}

body {
  background: #f2f2f2!important;
}

.table-striped {}

.sidebar-offcanvas {}

.basic-table {
  .table;
  .table-striped;
  > thead {
    > .header-row, .header-row-2 {
      > td {
        padding: 5px 10px;
        background-color:wheat;
      }
    };
  }
  > tbody {
    > .header-row, .header-row-2 {
      > td {
        padding: 5px 10px;
        background-color:wheat;
      }
    };
    > tr > td {
      padding: 5px;
    }

    td.label {
      color: inherit;
      font-size: 100%;
      text-align: left;
      white-space: nowrap;
    }
  };
}

.label {
  color: inherit!important;
  white-space: pre-line;
}

.screenlet {
  .panel;
  .panel-default;
  overflow : auto;
}

.screenlet-title-bar {
  .panel-heading;
  .panel-title;
  .panel-primary > .panel-heading;
  &.panel-primary > .panel-heading {
    background-color: #fff;
    border-color: @gray-lighter;
  };
   ul {
    list-style: none;
    padding-left: 0;
    
    >li {
      font-size: 10px;
    };
    
    > li.h3 {
      margin: 0;
      display: inline;
      font-size: 16px;
    }

    ul > li > ul > li {
      float: right; 
      display: inline;
      margin: 0 5px;
    }

    > li.expanded,
    > li.collapsed {
      font-size: 21px!important;
    };

  };

  > .expanded > a, 
  > .collapsed > a {
    margin-top:-10px;
  };
}

.screenlet-body {
  .panel-body;

  form {
    display: inline-block;
  }
}

.screenlet-title-bar .expanded>a:before {
    content: "\2212";/*"\e133"  "\e160"*/
}

.screenlet-title-bar .collapsed>a:before {
    content: "\002b"; /*"\e134" "\e158"*/
}

.buttontext {
  .btn;
  .btn-default;
  &.btn-default {
    border-color: @primary;
  };
  .btn-sm;
}

.create {
  .btn;
  .btn-primary!important;  
}

.delete {
  .btn;
  .btn-danger!important;
}

.refresh, .search {
  .btn;
  .btn-default!important;
}

.search > a {
  color: inherit!important;
}

a.create:before {
  content: "\002b";
}

a.delete:before {
  content: "\2212";
}

a.refresh:before {
  content: "\e031";
}

a.search:before {
  content: "\e003";
}

.expand-all, .collapse-all {
  background: transparent!important;
  border-color: @gray-light!important;

  > a {
    color: #333!important;
  }
}

.login {
    background: url("/images/login-bkg.jpg") no-repeat;
    background-size: 100%;
    margin-left: -15px;
    margin-right: -15px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.login-screenlet {
    max-width: 375px;
    padding: 15px;
    margin: 0 auto;
    background-color: #f7f7f7;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
}

.login-screenlet .basic-table {
    background: transparent;
}

#app-navigation {
  background: #f2f2f2;
  color: #616161;
  overflow-x: hidden;
  overflow-y: auto;
  position: fixed;
  white-space: nowrap;
  width: 216px;
  top: 0;
  height: 100%;
  margin-left: -10px;
  padding-top: 56px;

  > h2 {
     display: none;
  };

  > ul > li > ul > li {
    display: block;
    padding: 12px;
    vertical-align: text-bottom;
    padding-left: 16px
  };

  > ul > li > ul > li > a {
    color: #757575;
    font-weight: normal;
  };

  > ul > li > ul > li.selected  {
    background-color: rgba(0,0,0,.03);
    border-radius: 2px;
  };

  > ul > li > ul > li.selected a{
    color: #3c80f6;
    font-weight: bold;
  };

  > ul {
    display: block;
    list-style: none;
    padding: 10px;
    padding-left: 0;
    padding-right: 0; 
  };

  > ul > li > ul {
     padding-left: 0;
  };

  @media (max-width: 1024px) {
    bottom: 0;
    background-color: #f2f2f2;
  }
}


.button-bar.tab-bar {
   //.btn-toolbar;
  margin: 10px 0;

  > ul {
    list-style: none;
    padding: 0;
  };

  > ul > li > ul {
    .nav!important;
    .nav-tabs!important;
    padding-left: 0; 
  };

  >ul > li > ul::before, >ul > li > ul::after {
    display: table;
    content: " ";
  };

  >ul > li > ul::after {
    clear: both;
  };

  /*
  > ul > li > ul > li {
    .btn;
    .btn-default;
    .btn-sm;
  }*/

  > ul > li > ul > li {
    float: left;
    margin-bottom: -1px;
    position: relative;
    display: block;
  }

  > ul > li > ul > li>a {
    position: relative;
    display: block;
    padding: 10px 15px;
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
  }

    > ul > li > ul > li.selected>a, > ul > li > ul > li.selected>a:focus, > ul > li > ul > li.selected >a:hover {
    color: #555;
    cursor: default;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
  }

  /*> ul > li > ul > li.selected {
    //.active;
    .btn-info;
    > a {
      color: white;
    }
  }*/
}

.button-bar.button-style-1, .button-bar.button-style-2 {
  display: block!important;
  margin: 10px 0;
  .btn-group;

  > ul {
    list-style: none;
    padding: 0;
  };

  > ul > li > ul {
    padding-left: 0; 
  };

  > ul > li > ul > li {
    .btn;
    .btn-primary;
  }

  > ul > li > ul > li > a {
    color: white;
  }

  .disabled {
    .btn;
    .btn.disabled;
  }
}

.in-line-bar {
  > ul {
    list-style: none;
    padding: 0;
  }

  > ul > li > ul {
    padding-left: 0; 
  };

   > ul > li > ul {
    padding-left: 0; 
  };

  li {
    list-style: none;
    display: inline-block;
  }
}

.basic-form {
  > .fieldgroup {
    .form-group;
  
    > .fieldgroup-title-bar {
      .panel-title;
      border-top: 0.1em solid #DADADA;
      font-size: 1em;
      font-weight: bold;
      padding: 0.1em 0.5em 0.2em 0.5em;
     
      ul {
        list-style: none;
        padding: 0;
      };

      ul .collapsed, ul .collapsed:hover {
        background: url(/images/expand.gif) no-repeat left center;
        min-height: 1.1em;
        min-width: 1.1em;
      };

      ul .expanded, ul .expanded:hover {
        background: url(/images/collapse.gif) no-repeat left center;
        min-height: 1.1em;
        min-width: 1.1em;
      };

      a {
        cursor: pointer;
        text-decoration: none;
        padding-left: 10px; /* Setting must be in px */
        color: #000000;
      };
    };

    td > span {
      display: inline-block;
    }
  }

  /*input, select {
    .form-control;
  }*/
}

.smallSubmit {
  .btn;
  .btn-default!important;
  .btn-sm;
  //.btn-block;
  //width: 200px!important;
  display: inline-block!important;
};

.left {
}

.leftonly {
}

.basic-nav {
  .btn-link;
  
  ul {
    list-style: none;
    padding: 0;
  };

  > ul > li > ul {
    padding-left: 0;
  };

  > ul > li > ul > li {
    float: right; 
    display: inline;
  }
}

.lefthalf, .righthalf {
  .col-xs-6;
}

.lefthalf {
  padding-left: 0;
  padding-right: 5px;  
}

.righthalf {
  padding-right: 0;
  padding-left: 5px;
}

input[name='submitButton'] {
  .btn;
  .btn-success!important;
  .btn-block;
  width: 200px!important;
  display: inline-block!important;
}

.site-wrapper {
  min-height: 100%;
  margin-bottom: -26px;
  overflow: auto;
}

br {
  clear: both;
}

.screenlet-body.actions {

    ul {
      padding-left: 0; 
      li {
        list-style: none;
        display: inline-flex;
        margin: 10px;
        vertical-align: middle;
      }
    }
  }

.ui-widget, .ui-datepicker {
  z-index: 1080!important;
}

.ui-dialog {
  //.modal;
  //.modal-dialog;
  margin-top: 60px;
  margin-left: 25%;
}

.ui-front {
  z-index: 1080!important;
}

.dropdown .open {
  > .dropdown-menu {
    left: auto!important;
    right: 0px!important;
  }
}

.paddingL0 {
  padding-left: 0;
}

.paddingR0 {
  padding-right: 0;
}

#filter {
  background: #fff;
  padding:0  64px;
}

.left {
  float: left;
}

.buttontext {
  text-align: left;
}

@media (max-width: 767px) { 
  .site-wrapper {
    /* min-height: auto;*/
    margin-bottom: -26px;
    overflow: auto;
  }   
}


.select2-container{
  z-index: 10070!important;
}