/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 59px tall */
body {
  padding-top: 59px;
  /* Margin bottom by footer height */
  margin-bottom: 20px;
  font-family: 'Gill Sans MT','Gill Sans', 'Trebuchet MS', sans-serif;
  color: rgba(0, 0, 0, 0.70);
  font-size: 1rem;
}

html {
  position: relative;
  /*background: #FAFAFA;*/
}

@media print { /*adjusts body positio for print functionality*/
body{
    padding-top: 0px;
  }
}

/*
 * Fonts
 */

/* black with opacity instead of grey when possible  as it remains legible against background colour changes.  */
/* primary:70 secondary:54 */
h1, h2, h3, h4, h5, span, p, a, a:hover, text, .amcharts-title, th, select, table, input{
  color: rgba(0, 0, 0, 0.70);
  text-decoration: none;
}

h2{
  font-size:20px;
}

h3{
  font-size:17px;
}

h4{
  font-weight:bold;
  color: rgba(0, 0, 0, 0.54);
  font-size:15px;
}

text{
  /* this is for some texts in AmCharts */
  font-family: 'Gill Sans MT','Gill Sans', 'Trebuchet MS', sans-serif!important;
  fill:rgba(0, 0, 0, 0.70);
}

text.amcharts-title{
  /* this is for some texts in AmCharts */
  font-size: 15px;
}

input{
  font-size:14px;
}

/*
 * Modal Buttons
 */

.close{
  opacity: 0.7;
}

.close span{
  color: #EF5350;
}

.close .material-icons{
  font-weight: 700;
}

.small-thick-button .thick-icon{
    vertical-align: middle;
    color: #66BB6A;
}

.small-thick-button{
    position: absolute;
    right: 40px;
    top: 12px;
    padding: 0px;
    margin-top: 0px;
}

/*
 * Buttons (material design style)
 */

 .flatButton, button.flatButton, .raisedButton, button.raisedButton{
  height: 36px;
  margin-top: 24px;
  padding: 8px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 600;
  font-size: 13.3px!important;
  text-align: center;
  vertical-align: middle;
  line-height: 20px;
  border: none;
}

/* Flat Button */

 .flatButton, button.flatButton{
   color: #42A5F5;
   background-color: white;
 }

 .flatButton:hover, button.flatButton:hover{
   background-color: rgba(66,165,245,0.12);
 }

 .flatButton:focus, button.flatButton:focus{
   outline: none;
 }

 .flatButton.disabled, button.flatButton.disabled, .flatButton.disabled:hover, button.flatButton.disabled:hover{
  color: rgba(0,0,0,0.26);
  cursor: default;
  background-color: white;
}

/* Raised Buton*/

.raisedButton, button.raisedButton{
  background-color: #42A5F5;
  color: white;
}

.raisedButton:hover, button.raisedButton:hover{
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}

.raisedButton:active, button.raisedButton:active{
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.raisedButton:focus, button.raisedButton:focus{
  outline: none;
}

.raisedButton.disabled, button.raisedButton.disabled, .raisedButton.disabled:hover, button.raisedButton.disabled:hover{
  color: rgba(0,0,0,0.26);
  cursor: default;
  background-color: rgba(0,0,0,0.12);
  box-shadow: none;
}

/* Switch / Toggle Button */

.switch-input {
  display: none;
}
.switch-label {
  position: relative;
  display: inline-block;
  min-width: 112px;
  cursor: pointer;
  font-weight: 500;
  text-align: left;
  /*margin: 16px;*/
  padding: 16px 0 16px 44px;
}
.switch-label:before, .switch-label:after {
  content: "";
  position: absolute;
  margin: 0;
  outline: 0;
  top: 50%;
  -ms-transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.switch-label:before {
  left: 1px;
  width: 34px;
  height: 14px;
  background-color: #9E9E9E;
  border-radius: 8px;
}
.switch-label:after {
  left: 0;
  width: 20px;
  height: 20px;
  background-color: #FAFAFA;
  border-radius: 50%;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
}
.switch-input:checked + .switch-label:before {
  background-color: #A5D6A7;
}
.switch-input:checked + .switch-label:after {
  background-color: #4CAF50;
  -ms-transform: translate(80%, -50%);
  -webkit-transform: translate(80%, -50%);
  transform: translate(80%, -50%);
}

 /*
 * alert messages
 */

 .alert{
    margin-top:10px;
    margin-bottom:10px;
    padding: 12px 12px ;
    font-size: 13px;
}

/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;
}

.navbar-custom {
    background-color: #FAFAFA;
    border-radius:0;
    border-bottom: 1px #E0E0E0 solid;
    height:59px;
}

.navbar-toggleable-md .navbar-nav{
  margin-top: 0px!important;
}

.navbar{
  padding:0px;
  padding-right:50px;
}

.navbar-brand{
  padding:0px;
  width:75px;
  background: #221E1F!important;
  opacity:1!important;
  filter: alpha(opacity=100)!important;
}

.navbar-brand img{
  display:block;
  border-bottom:1px black solid;
  width:58px;
  margin:auto;
}

.dropdown-toggle::after{
  display:none; /* to hide the dropdown arrow */
}

.dropdown-toggle.arrow::after{
  display:inline-block; /* show the dropdown arrow for class arrow */
  margin-right:5px;
}

.dropdown-item{
  cursor: pointer;
}

/* creates left arrow for dropdown submenu */
.dropdown-item.arrow-left:before{
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: .3em;
  vertical-align: middle;
  content: "";
  border-right: .3em solid;
  border-top: .3em solid transparent;
  border-bottom: .3em solid transparent;
}

.dropdown-item.arrow-left{
  padding-left: 1.1em;
}

@media (min-width: 1009px) { /* makes top navbar more responsive */
  /*wider padding for profile & settings nav-links to hover over them more easily*/
  .nav-item.settings{
    width: 80px;
  }
  .settings .dropdown-menu{ /*pulls settings dropdown to right edge*/
    position: fixed;
    top: auto;
    left: auto;
    right: 0px;
  }
  /*
  .nav-item.profile{
    width: 140px;
  }
  */
  .nav-item.aircraft{
    width: 195px;
  }
  .link-right{
    text-align: right;
  }

  .nav.pull-right{
    position: absolute;
    right: 50px;
  }

  .nav-link{
    padding: 0 12px 0 12px! important;
    height: 59px;
    line-height: 59px;
    color: rgba(0, 0, 0, 0.70);
    font-weight: bold;
    cursor: pointer;
  }

}

.material-icons{
  vertical-align: middle;
}

.material-icons.md-48 { font-size: 48px; }

.material-icons.md-36 { font-size: 36px; }

.material-icons.md-18 { font-size: 18px; }

.nav-link .material-icons.md-dark, .material-icons.md-dark {
  color: rgba(0, 0, 0, 0.54);
  }

.nav-link:hover .material-icons.md-dark, .nav-link:not(#help):focus .material-icons.md-dark, .material-icons.md-dark:hover{
  color: rgba(0, 0, 0, 0.70);
  }

.nav-link .material-icons.md-inactive .material-icons.md-dark{
  color: rgba(0, 0, 0, 0.26);
 }

 .md-chevron{
   margin-right:-8px;
 }

 .nav-link .icon{
   opacity:0.85;
   filter: alpha(opacity=85);
 }

 .nav-link:hover .icon, .nav-link:focus .icon{
   opacity:1;
   filter: alpha(opacity=100);
 }

.group-icon{
  width:2.5em;
  height:2.5em;
  margin-top:-10px;
}

.aircraft-icon{
  width:4.5em;
  height:auto;
  margin-top:-7px;
}

.nav-center{
  margin:0;
  float:none;
  width:360px;
  margin:auto;
  position: relative;
}

.operations-container{
  width: 100%;
}

.h-divider{
  display:block;
  float:right;
  width:1px;
  height:48px;
  line-height:58px;
  margin:5px 40px 5px 12px;
  border-right:1px black solid;
  opacity:0.18;
  filter: alpha(opacity=18);
}
.dropdown-menu .selected{
    background-color: #F5F5F5;
}

#notification{
    position:fixed;
    top:0px;
    right: 0;
    z-index:999;
    padding-right:20px;
    line-height: 59px;
    cursor: pointer;
  }

/* notifications icon */

.material-icons.md-dark.red{
  color: #E53935; /* using color 600 here (gives better contrast to the icon)*/
}

.material-icons.md-dark.green{
  color: #43A047; /*600*/
}

.material-icons.md-dark.yellow, .material-icons.md-dark.amber{
  color: #FFB300; /*600*/
}

#notification:hover .material-icons.md-dark.red, .alert-icon:hover .material-icons.md-dark.red{
  color: #D32F2F;/*700*/
}

#notification:hover .material-icons.md-dark.green, .alert-icon:hover .material-icons.md-dark.green{
  color: #388E3C; /*700*/
}

#notification:hover .material-icons.md-dark.yellow,
#notification:hover .material-icons.md-dark.amber,
.alert-icon:hover .material-icons.md-dark.yellow,
.alert-icon:hover .material-icons.md-dark.amber{
  color: #FFA000; /*700*/
}

@media (max-width: 1008px) { /*toogled navbar for mobile*/

  .top-toogler{
    /* showing nav toogler on mobile */
    display: block!important;
    position: absolute;
    left: 90px;
  }

  .pull-left, .pull-right{
    float:none!important;
  }

  .h-divider{
    display:none;
  }

  .navbar-toggleable-md{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    position:absolute;
    background-color:white;
    top:59px;
    text-align:left;
    width:100%;
    z-index:995;
  }

  .navbar-toggleable-md .navbar-nav{
    margin:0px;
  }

  #navbar.collapse{
    display: none!important;
  }

  #navbar.collapse.in{
    display: block!important;
  }

  .nav-center{
    width:100%;
    padding-left:0px;
  }

  .navbar-toggler, .navbar-toggler .material-icons{
    line-height:57px;
    padding:0px;
    cursor:pointer;
  }

  .navbar .navbar-toggler .material-icons{
   color: rgba(0, 0, 0, 0.54);
  }

  .navbar .navbar-toggler:hover .material-icons{
   color: rgba(0, 0, 0, 0.80);
  }

  .navbar-toggler:focus{
    outline:none;
  }

  .navbar-nav .nav-item{
    float: none;
    /*border: 1px red solid;*/
  }

  .nav-link{
    text-align: center;
    border-bottom: 1px rgba(0, 0, 0, 0.1) solid!important;
    height: 59px;
    line-height: 59px;
    padding: 0 12px 0 12px!important;
  }

 }


 @media (min-width: 1009px) { /*toogled navbar for mobile*/
  /* hiding nav toogler on non mobile */
  .top-toogler{
    display: none;
  }
 }

/*
 * Sidebar
 */

.sidebarStyle {
    z-index: 1002;
    padding:5px 0 0 0;
    overflow-x: hidden;
    /*overflow-y: auto;*/ /* Scrollable contents if viewport is shorter than content. */
    background-color: #293850;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.sidebarStyle::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE and Edge */
.sidebarStyle {
  -ms-overflow-style: none;
}


@media (min-width: 768px) {


  .sidebarStyle {
    position: fixed;
    top: 59px;
    bottom: 0;
    left: 0;
    width:75px;
    padding-top:35px;
  }

  /* hiding nav toogler on non mobile */
  .navbar-toggler{
    display: none;
  }

}

.subheader{
  text-align: center;
  color:white;
  opacity:0.54;
  margin-top:5px;
  margin-bottom:5px;
}

.nav-sidebar > li{
  font-size: 12px;
}

.svg-icon-nav path, .svg-icon-nav rect{
  fill:white!important;
  opacity: 0.54;
  filter: alpha(opacity=54);
}

.fa-icon-nav{
  color: white;
  opacity: 0.54;
}

.nav-sidebar .active a .svg-icon-nav path,
.nav-sidebar .active a .svg-icon-nav rect,
.nav-sidebar a:hover .svg-icon-nav path,
.nav-sidebar a:hover .svg-icon-nav rect{
  opacity: 1;
  filter: alpha(opacity=100);
}

.nav-sidebar .active a .fa-icon-nav,
.nav-sidebar a:hover .fa-icon-nav{
  opacity: 1;
  filter: alpha(opacity=100);
}

.deactivate .svg-icon-nav path, .deactivate .svg-icon-nav rect, .deactivate a:hover .svg-icon-nav path, .deactivate a:hover .svg-icon-nav rect{
  opacity: 0.20;
  filter: alpha(opacity=20);
}

.deactivate .fa-icon-nav, .deactivate a:hover .fa-icon-nav{
  opacity: 0.20;
  filter: alpha(opacity=20);
}

.deactivate a{
  pointer-events: none!important;
  cursor:not-allowed;
}

hr.divider{
  color:white;
  line-height: 0px;
  border-bottom:1px white solid;
  width:85%;
  margin:0px auto 0px auto;
  opacity: 0.18;
  filter: alpha(opacity=18);
}


@media (max-width: 767px) { /*toogled sidebar for mobile*/

  .nav-sidebar {
    margin-left: 15px;
    margin-right: 15px;
    /*margin-bottom: 10px;*/
  }

  .sidebarStyle{
    position: fixed;
    width: 100%;
    top: 59px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

  /* spreading nav icon horizontally */
  .sidebarStyle li{
    display: inline-block;
    margin:0px;
    padding: 0px 5px;
  }

  .sidebarStyle .divider{
    display: none;
  }

  .sidebarStyle li.subheader{
    display: none!important;
  }

  .svg-icon-nav{
    margin: 0px;
    padding: 0px;
  }

  .sidebarStyle::-webkit-scrollbar {
      display: none;
  }

  .sidebarStyle.navbar-toggleable-xs.collapse.in{
    left:0px;
  }

  /* space in sidebar for toogle button */
  .sidebar-button-space{
      width: 75px;
      height: 59px;
      display: inline-block;
    }

  .sidebar-button{
    position:fixed;
    z-index:1010;
    top:59px;
    left:0px;
    width:75px;
    height:59px;
    background-color:#293850;
    border-radius: 0;
    cursor:pointer;
  }

  .sidebar-button:focus{
    outline:none;
  }

  .sidebar-button .material-icons{
    color: white;
    opacity: 0.54;
  }

  .sidebar-button .material-icons:hover{
    opacity: 1;
  }

  .main{
    /*margin-top:60px;*/
    /* adapting margin when no sidebar */
    margin-top: 10px;
  }

  .portlet-title{
    margin-left: 85px!important;
  }

}

/* --- tooltip --- */

tooltip-content{
  display:block;
  height:60px; /* important to keep it for jquery positioning even if not visible */
  position: absolute;
  top:0;
  left:0;
}

.tooltip-inner{
  width:100px;
}

tooltip-content span{
  color:white;
  opacity: 0.54;
  filter: alpha(opacity=54);
  text-align:left;
  color:white!important;
}

.tooltip-arrow,
.tooltip > .tooltip-inner {
  background-color: #293850;
  z-index: 1999;
}


/* --- modals --- */

.modal-backdrop {
   background-color: white!important;
   top:59px; /* space for top navbar */
   left: 75px; /* space for left navbar */
}

.modal-backdrop.in {
   opacity:0.8;
}


/*
 * Main content
 */

.main {
  padding: 20px 20px 20px 20px;
}
@media (min-width: 768px) {
  .main {
    padding-right: 20px;
    padding-left: 95px; /* 75 (sidebar witdh) + 20 padding */
  }
}

/* Sticky footer styles
-------------------------------------------------- */


.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 20px;
  line-height: 20px; /* Vertically center the text there */
  background-color: #FAFAFA;
  border-top: 1px #E0E0E0 solid;
  font-size:12px;
}

.footer .container{
  margin-left:85px;
}

.text-muted{
  color:black!important;
  opacity: 0.54;
  filter: alpha(opacity=54);
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

/*.container {
  width: auto;
  max-width: 680px;
  padding: 0 15px;
}*/

/* utilities */

.pull-right{
  float: right;
}

.pull-left{
  float: left;
}

.center{
  text-align: center;
}