/**
 * CONTENT
 * - Fonts
 * - Icons
 * - Helpers
 * - Typography
 * - Layout
 * - Common styles
 * - Login Page
 * - Info Page
 * - Link Device Page
 * - Plugins/Widgets
 * -- bootstrap-select
 * -- pagination
 * -- bootstrap modal
 * -- spiner
 * - Responsive
 */
/**
 * - Fonts
 */
@font-face {
    font-family: 'GothamProRegular';
    src: url('../fonts/GothaProReg.eot');
    src: url('../fonts/GothaProReg.eot') format('embedded-opentype'),
         url('../fonts/GothaProReg.woff2') format('woff2'),
         url('../fonts/GothaProReg.woff') format('woff'),
         url('../fonts/GothaProReg.ttf') format('truetype'),
         url('../fonts/GothaProReg.svg#GothaProReg') format('svg');
}
@font-face {
    font-family: 'GothamProLight';
    src: url('../fonts/GothaProLig.eot');
    src: url('../fonts/GothaProLig.eot') format('embedded-opentype'),
         url('../fonts/GothaProLig.woff2') format('woff2'),
         url('../fonts/GothaProLig.woff') format('woff'),
         url('../fonts/GothaProLig.ttf') format('truetype'),
         url('../fonts/GothaProLig.svg#GothaProLig') format('svg');
}
@font-face {
    font-family: 'GothamProNarrowMedium';
    src: url('../fonts/GothamProNarrowMedium.eot');
    src: url('../fonts/GothamProNarrowMedium.eot') format('embedded-opentype'),
         url('../fonts/GothamProNarrowMedium.woff2') format('woff2'),
         url('../fonts/GothamProNarrowMedium.woff') format('woff'),
         url('../fonts/GothamProNarrowMedium.ttf') format('truetype'),
         url('../fonts/GothamProNarrowMedium.svg#ofont_ru_GothamProNarrowMedium') format('svg');
}

@font-face {
    font-family: 'GothamProMedium';
    src: url('../fonts/GothaProMed.eot');
    src: url('../fonts/GothaProMed.eot') format('embedded-opentype'),
         url('../fonts/GothaProMed.woff2') format('woff2'),
         url('../fonts/GothaProMed.woff') format('woff'),
         url('../fonts/GothaProMed.ttf') format('truetype'),
         url('../fonts/GothaProMed.svg#GothaProMed') format('svg');
}
@font-face {
  font-family: 'icomoon';
  src:  url('../fonts/icomoon.eot?ttjmfb');
  src:  url('../fonts/icomoon.eot?ttjmfb#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?ttjmfb') format('truetype'),
    url('../fonts/icomoon.woff?ttjmfb') format('woff'),
    url('../fonts/icomoon.svg?ttjmfb#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}
/**
 * - Icons
 */

[class^="icon-"], [class*=" icon-"],.bootstrap-select.btn-group .dropdown-toggle .caret {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-check:before {
  content: "\f00c";
}
.icon-stats:before {
  content: "\e907";
  color: #fff;
}
.icon-accounts:before {
  content: "\e905";
  color: #fff;
}
.icon-admins:before {
  content: "\e906";
  color: #fff;
}
.icon-caret:before {
  content: "\e904";
  color: #fff;
}
.icon-connect:before {
  content: "\e900";
  color: #fff;
}
.icon-statistic:before {
  content: "\e901";
  color: #fff;
}
.icon-numbers:before {
  content: "\e902";
  color: #fff;
}
.icon-account:before {
  content: "\e903";
  color: #fff;
}

/**
 * - Helpers
 */
.btn { font-size: 1rem; padding: 0 0.2rem; height: 3.4375rem; line-height: 3.2rem; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }
.form-control {
    font-size: 1rem;
    padding: 0 0.2rem;
    height: 3.4375rem;
    line-height: 3.2rem;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;    
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    border: 1px solid #757575;
    border-width: 0 0 1px 0;
    padding-left: 0;
}
.form-control[disabled], fieldset[disabled] .form-control, .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control
{
    background: none;
    color: #CCC;
    border-color: #CCC;
}
.row .btn { margin-bottom: 1rem;}
.btn-lg { font-size: 1.367rem; font-family: 'GothamProNarrowMedium', sans-serif; padding-left: 1.84rem; padding-right: 1.84rem; }
.btn-market { display: inline-block; }
.btn-bold { font-family: 'GothamProNarrowMedium', sans-serif; }
#page .btn { font-size: 1.343rem;  }
.form-group { margin-bottom: 2rem; }
.form-group label { font-family:'GothamProNarrowMedium', sans-serif; font-weight: normal; }
.form-control:focus { box-shadow: none;}
.table th, .table td { border-bottom: 1px solid #c2c2c2 !important; }
.table th:first-child, .table td:first-child { padding-left: 0; } 

/**
 * - Typography
 */
html { font-size: 16px; }
body {
    background: url(../img/bg.png) #edf4fb center center no-repeat;
    background-size: cover;
    position: relative;
    font-family: 'GothamProRegular', sans-serif;
}
h1,h2,h3,h4,h5 { font-family:'GothamProNarrowMedium',sans-serif; font-weight: normal; }
h1 { font-size: 3rem;}
h2 { font-size: 2.01rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
a { text-decoration: none !important; color: #1479bf; }
a:hover { color: #333;}

a ,a img, .btn,.pagination span{
    -webkit-transition: all  0.5s ease;
	-moz-transition: all   0.5s ease;
	-ms-transition: all  0.5s ease; 	
	transition: all   0.5s ease;
}
b { font-family: 'GothamProNarrowMedium', sans-serif; font-weight: normal; }
/**
 *  -Layout
 */
body,html { min-height: 100%; height: 1px;}
#page { position: relative; background: #ffffff; margin-right: 12.5rem; padding:3.1rem 5rem 2rem 21.5rem;  box-shadow: 0 0 5px #DDD; min-height: 100%; color: #394147; }
body.phone-log #page { padding-top: 4.1rem;}
#main_nav { position: fixed; left:0; top: 0;  height: 100%; width: 15.25rem; padding: 2.5rem 0 10rem;
        background: #2b333f; color: #FFF;  font-size: 1rem; }
    .logo, .inner { padding: 0 1.125rem; }
    .logo { max-width: 12.25rem; margin-bottom: 2rem; }
    .menu-heading , #main_nav .logout .inner:first-child{ padding-bottom:1rem; margin-bottom: 1rem; margin-right: 0.25rem; font-size: 1.343rem; border-bottom: 1px solid #FFF; font-family: 'GothamProMedium', sans-serif; }
    #main_nav .logout { position: absolute; bottom: 3.18rem; font-size: 1.112rem; width: 100%; }
    #main_nav .logout a { color: #5198cd; font-size: 1.37rem; font-family:'GothamProNarrowMedium',sans-serif;  }
    #main_nav .logout a:hover { color: #edf6fc; }
    .nav li {    margin-bottom: 1.5rem;}
    .nav li a,.nav li button { color: #FFF; font-size: 1.125rem; line-height: 1.1rem; padding-left: 1.375rem;}
    .nav li a span,.nav li button span { margin-right: 0.8rem; float: left; font-size: 2rem; min-width:1.8rem; text-align: center;   }
    .nav li a.one-line { line-height: 2rem;}
    .nav li button { color: #BBB; background: none; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; border: 0; opacity: 0.5; cursor: auto; }
    .nav li button .icon:before { color: #BBB !important; }
/***
 * - Common styles
 */
#page .action-buttons {
    position: absolute;
    right: 12rem;
    top: 2.2rem;
}

.action-buttons .glyphicon {
    padding: 0 .2em;
}

#page .language-switch {
    position: absolute;
    right: 5rem;
    top: 3.2rem;
}
    .language-switch {  font-size: 1.1875rem; color: #1479bf; }
    .language-switch .bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) { width: 4.4rem; }
    .language-switch .glyphicon { top: 0.2rem;}
    #page .language-switch .btn { font-size: 1.26rem; line-height: 1.26rem; height: 1.26rem; font-family: 'GothamProNarrowMedium', sans-serif; font-weight: normal; }
    
#content > .alert { margin-top: 3rem; }
.page-title { font-size: 1.875rem; margin: 0 0 2.8rem; padding-bottom: 1.3125rem; border-bottom: 1px solid #757575; color: #353d43; }
#content { font-size: 1.262rem;   }
.info, .change-controls,.text  { font-family: 'GothamProNarrowMedium', sans-serif;}
    .info p { margin-bottom: 2.1rem; }
.change-controls .change-label { margin-bottom: 0.6rem; }
.change-controls .change-control { font-family: 'GothamProRegular', sans-serif; padding-bottom: 0.6rem; border-bottom: 1px solid #757575;  margin-bottom: 4.5rem; }    
    .change-controls .change-control a { float: right;  }
.text { font-family: 'GothamProRegular'; }
    .text b { font-family: 'GothamProNarrowMedium', sans-serif; }
    .text ol { margin: 3rem 0 3rem 0.1rem ; padding-left: 0;   counter-reset: item;}
    .text ol > li {
        margin: 0;
        padding: 0 0 0 1em;
        text-indent: -1em;
        list-style-type: none;
        counter-increment: item;
      }

    .text ol > li:before {
      display: inline-block;
      width: 1em;
      padding-right: 0.2em;
      font-family: 'GothamProNarrowMedium', sans-serif; 
      text-align: right;
      content: counter(item) ".";
    }
.bottom-controls { margin-top: 3rem; bottom: 4rem; width: 66%; width: calc(100% - 26.5rem); }
.total { margin: 2rem 0 1rem; }
.total .btn { margin-top: -0.8rem;}
.table-actions a { font-size: 1.1rem; display: inline-block; padding-right: 1.25rem;}
.table-actions a:last-child { padding-right: 0; }

/**
 * - Login Page
 */

.content.login .logo {
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3.7rem;
}
.content.login{
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    background: #FFF;
    margin: 0 auto;
    border-radius: 4px;
    -moz-box-shadow: 0 1px 10px #DDD;
    -webkit-box-shadow: 0 1px 10px #DDD;
    box-shadow: 0 1px 10px #DDD;
 }
    .content.login .col-form {
       padding: 13rem 11rem 10rem 9rem;
    }
        .content.login .col-form label {
            font-size: 1.262rem;
            margin: 0;
        }
        .form-group-change {
            position: relative;
        }
        .form-group-change input.form-control {
            padding-right: 10rem;
        }
            .form-group-change .btn-change {
                position: absolute;
                color: #1479bf;
                bottom: 1.4rem;
                right: 0;
                font-size: 1rem;
            }
    
    .content.login .col-greetings {
       padding: 5rem;
       text-align: center;
       border-left: 2px solid #eff0f1;
    }
        .content.login  .greetings-title { font-size: 2.1525rem; margin: 3rem auto 2.4rem; }
        
        .greetings-text { font-size: 1.25rem; }
    .content.login h2{
        margin-top: 0;
        margin-bottom: 2.5rem;
    }
    .content.login .reset-form h2 { margin-bottom: 4rem; }
    .content.login .reset-form .buttons { margin-top: 4rem;}
    .content.login .reset-form label { font-size: 1.13125rem; }
/**
 * - Info page
 */
.account-info .info { margin-bottom: 6rem; }
/**
 * - Link device page
 */
.link-device .page-title { margin-bottom: 2.5rem;}
.link-device .btn-market { width: 12rem; margin-right: 3rem; }
.link-device .bottom-controls { position: static; }

/**
 * - Phone Log Page
 */
.search-panel { margin-bottom: 6rem;}
.search-panel .action-btn .btn { margin: 2rem 0;}
.search-panel .action-btn .btn + .btn { margin-top: 4rem; }

/**
 * - Plugins/Widgets
 */
/** -- bootstrap-select  **/
#page .bootstrap-select.form-control{  border: 1px solid #757575 !important; border-width: 0 0 1px 0 !important;    }
.bootstrap-select > .dropdown-toggle { background: none !important; border: none !important;
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; color: #394147;
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
outline: none !important; 
padding-right: 1rem;
}

.bootstrap-select .dropdown-toggle:focus { outline: none !important; }
.bootstrap-select .dropdown-menu {
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    -moz-border-radius:0 0  0.25rem 0.25rem; -webkit-border-radius: 0 0  0.25rem 0.25rem; border-radius: 0 0  0.25rem 0.25rem; color: #1479bf;    
    background: #edf6fc;
    border: 2px solid #c0d6e6;
    margin-top: 0;
}
.bootstrap-select .dropdown-menu a { color: #1479bf; background:none !important;  font-family: 'GothamProNarrowMedium', sans-serif;  font-weight: bold; font-size: 1.343rem; padding: 0.25rem 1rem; }
.bootstrap-select .dropdown-menu a:hover { color: #333;  }

.bootstrap-select.btn-group .dropdown-toggle .caret { border: none; margin-top: -0.8rem; right: 1rem; }
.bootstrap-select.btn-group .dropdown-toggle .caret:before {
      content: "\e904";
      color: #c0d6e6;
      font-size: 0.8rem;
}
.bootstrap-select.btn-group.open .dropdown-toggle .caret:before {
    color: #1479bf;
}


/** -- pagination **/
.pagination span { display: block;  float: left; }
.pagination span a,.pagination span.current {color: #1479bf; display: block;  height: 2.84rem; width: 2.84rem; line-height: 2.6rem; background:#edf6fc;
border: 1px solid #c0d6e6; border-width: 1px 0 1px 1px; font-family: 'GothamProNarrowMedium', sans-serif; font-size: 1.343rem; }
.pagination span:first-child a,.pagination span.current:first-child {-webkit-border-radius: 0.25rem 0 0 0.25rem; -moz-border-radius: 0.25rem 0 0 0.25rem; border-radius: 0.25rem 0 0 0.25rem;  }
.pagination span:last-child a,.pagination span.current:last-child{ border-right-width:1px; -webkit-border-radius: 0 0.25rem 0.25rem 0; -moz-border-radius:  0 0.25rem 0.25rem 0; border-radius: 0 0.25rem 0.25rem 0;  }
.pagination span.current,.pagination span a:hover  {background-color:#1479bf; color: #FFF; border-color:#0070b4;  }
.pagination span.first a,.pagination span.last a { width:  3.84rem; }

/** -- bootstrap modal **/
.modal-body .loading {
    min-height: 100px;
    width: 100%;
    opacity: 0.4;
    background: url(../img/content-loader.gif) no-repeat center center;
}

.modal {
  text-align: center;
  padding: 0!important;
}

.modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px;
}

.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}
.modal-content {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: none;
}
.modal-header{ padding-bottom: 0; border: none;}

.modal-content .page-title {
    font-size: 2.05rem;
    text-align: center;
    border:none;
    color:#353d43;
}
.modal-body #ajax-content-wrap {
    padding: 0 4rem 4rem;
}
.modal-body button { display: block; width: 100%;}

/** -- spinner **/
.input-group.spinner { width: 100%; position: relative; }
.input-group.spinner input[type=number] {
    -moz-appearance:textfield;
}

.input-group.spinner input[type=number]::-webkit-inner-spin-button,
.input-group.spinner input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.spinner .input-group-btn-vertical {
  background: #FFF;
  position: absolute;
  white-space: nowrap;
  right: 0;
  top: 0.8rem;
  vertical-align: middle;
  z-index: 99;
}
.spinner
.input-group-btn-vertical > .btn {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  border-radius: 0;
  height: inherit;
  background: none;
  border: none;
  line-height: 1rem;
  font-size: 1rem !important;
  cursor: pointer;
  outline: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  
}
.spinner
.input-group-btn-vertical > .btn:hover { color: #333;}
.input-group-btn-vertical > .btn:first-child {
}
.input-group-btn-vertical > .btn:last-child {
}

/***
 * - Responsive
 */
@media only screen and (min-width : 3840px) {
    html { font-size: 32px; }
}


@media only screen and (min-width: 1440px)
{
    .content.login.container { width: 1360px; }
}

@media only screen and (min-width: 1500px)
{
    .content.login.container { width: 1474px; }
}


@media only screen and (max-width : 1500px) {
    #page { margin-right: 5rem; padding-right: 3rem; padding-left: 18.5rem;}
}
@media only screen and (max-width : 1366px) {
    .content.login .col-form {      
       padding: 10rem 8rem 10rem 8rem;
    }
}
@media only screen and (max-width : 1280px) {
    html { font-size: 12px; }
}
@media only screen and (max-width : 767px) {
    .bottom-controls, #main_nav .logout { position: static; width: 100%; transform: none;  }
    html { font-size: 12px; }
    .content.login .col-form {
       padding:2rem;
    }
    .table-responsive { border: none;}
    #page{ margin-right: 0; padding-left: 3rem; }
    #main_nav.navbar-offcanvas { left: -250px; max-width: inherit; width: 18rem; }
    .navbar-toggle { position: absolute; right: 0; top:0; }
    #page .language-switch { position: static; margin-top: -1.6rem ; margin-bottom: 2rem; }
    #page .action-buttons { position: absolute; left: 10rem ; top: .8rem; }
    body.phone-log #page .language-switch  { margin-top: -2.6rem; }
}
@media only screen and (max-width : 480px) {

   .content.login { min-width: 90%; padding: 2rem 1rem; }
}


@media only screen and (max-height : 760px) {
   .content.login , .bottom-controls, #main_nav .logout { position: static; max-width: 100%;transform: none;  }
    .bottom-controls { width: 100%; }
}
@media only screen and (max-height : 560px) {

   .content.login {position: static; transform: none; padding: 2rem 1rem;  }
}

@media only screen and (min-height : 700px) , only screen and (max-width : 480px) and (max-height : 760px) {
   .content.login {
        position: relative;
        transform: translateY(-50%);
    }
}

/*** Retina ***/
@media (-webkit-min-device-pixel-ratio: 2),
       (min-device-pixel-ratio: 2),
       (min-resolution: 192dpi)
{
 
}

.stats-chart {
    width: 700px;
    height: 500px;
    max-width: 100%;
    overflow-x: auto;
}
