/*
** Initial
*/

.flex {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;

    -ms-flex-wrap: wrap;

        flex-wrap: wrap;
    -ms-flex-line-pack: start;
        align-content: flex-start;
}

.flex .flex-child {
    min-width: 0;
}

.spaced {
    margin-bottom: 15px;
}

.main {
    overflow-x: hidden;
    min-height: 100vh;
}

.logged-in {
    padding-left: 66px;
}

.navbar-collapse {
    padding: 0;
}

.navbar-toggle {
    margin-top: 0;
    margin-bottom: 0;
    color: #fff;
}

.navbar-collapse > .navbar-nav {
    margin: 0;
}

.navbar-nav>li>a {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px;
    border-bottom: 2px solid transparent;
}

.navbar-nav>li>a:hover, .navbar-nav>li>a:focus {
    background-color: transparent;
    border-bottom: 2px solid #fff;
}

.swipe-area {
    position: fixed;
    display: none;
    top: 66px;
    left: 0;
    width: 100px;
    height: 100%;
    z-index: 1500;
}

.main:not(.logged-in) .toggle-sidebar {
    display: none!important;
}

.hamburger {
    top: 15px;
}

.hamburger i {
    position: relative;
    top: -9px;
    transition: transform .4s ease;
    color: #808080;
    font-size: 2.5em;
}

.toggled .hamburger i {
    transform: rotate(180deg);
}

.sidebar-nav .li-menu {
    padding-left: 15px;
}

.menu-buttons {
    position: relative;
    padding-left: 55px;
    line-height: 32px;
}

.menu-buttons i,
.menu-buttons span {
    position: absolute;
    left: 0;
}

.menu-buttons .fa-special {
    left: 4px;
}

.overlay {
    width: 100vw;
    height: 100vh;
}

/*
** First Navbar
*/

.first a {
    color: #fff;
}

.navbar-info {
    line-height: 28px;
}

.toggle-sidebar {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 20px;
}

.navbar-collapse {
  padding-right: 30px;
}

.network-status {
  position: absolute;
  top: 12px;
  right: 15px;
}

.network span {
    color: #e0e0e0;
}

.navbar-nav > li > .bar-icon {
  padding-top: 11px;
  padding-bottom: 11px;
}

@media (max-width: 767px) {
  .bar-icon > i {
    float: left;
  }
  .bar-icon > span {
    position: relative;
    left: .5em;
    top: 2px;
  }
}

@media (min-width: 769px) {
    .toggle-sidebar,.navbar-info-refresh {
        display: none!important;
    }
    .navbar-nav>li>a {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

@media (width: 768px) {
  .navbar-nav>li>a {
      padding-top: 21px;
      padding-bottom: 20px;
  }

  .navbar-nav > li > .bar-icon {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 768px) {
    #wrapper {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: left;
        -webkit-transition: left .4s ease-in-out;
        transition: left .4s ease-in-out;
    }

    .main {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: padding;
        -webkit-transition: padding .4s ease-in-out;
        transition: padding .4s ease-in-out;
    }

    .logged-in {
        padding-left: 0;
    }

    .logged-in #wrapper {
        left: -66px;
    }

    .show-sidebar {
        padding-left: 66px;
    }

    .show-sidebar #wrapper {
        left: 0;
    }

    .pages {
        padding-left: 5px;
        padding-right: 5px;
    }

    .secondary-hidden-xs {
        display: none;
    }
}

@media (max-height: 600px) {
    #sidebar-wrapper .new-logo {
        display: none;
    }
}

/*
** Second navbar
*/

.second .logo {
    width: 100%;
    height: 100%;

    padding-top: 10px;
    padding-bottom: 10px;
}

.second .logo img {
    display: block;
    margin: auto;
}

.second .logo p {
    margin-top: 7px;
    margin-bottom: 0;
    text-align: center;
    vertical-align: middle;
    color: #fff;
}

.secondary-visible {
    position: relative;
}

.secondary-toggle {
    text-align: center;
}

.quick-info .secondary-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 80px;
    height: 100%;
}
.secondary-toggle .toggle {
  cursor:pointer;
}
.secondary-toggle small {
    color: #fff;
    opacity: .5;
    -webkit-transition: opacity .4s ease;
    transition: opacity .4s ease;
}

.logo .secondary-toggle small {
    display: block;
}

.show-sidebar .secondary-toggle small {
    opacity: 0;
}

.second-bar .with-risk {
  width: 75%;
  margin-right: 10px;
  float: left;
}

@media (min-width: 769px) {
    .second .logo {
      height: 126px;
      display: table-cell;
      vertical-align: middle;
    }
    .quick-info {
        text-align: right;
    }
    .secondary-toggle {
        display: none!important;
    }
}

/*
** Sidebar
*/

#wrapper .new-logo {
    will-change: transform;
    transition: transform .5s ease, margin .5s ease;
}

#wrapper.toggled .new-logo {
    margin-top: 15px;
    margin-left: 25%;
    transform: rotate(0deg);
}

/*
** Forms
*/

.form-control {
    height: auto;
    padding: 4px 8px;
}

.numpad-input {
    -moz-appearance:textfield;
}

.num-4 {
    width: 4em!important;
}

.num-6 {
    width: 6em!important;
}

.numpad-input::-webkit-outer-spin-button,
.numpad-input::-webkit-inner-spin-button,
.numpad-input::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
    margin: 0;
}


/*
** Use of importants is to counteract awesome-bootstrap checkbox styling
*/

.checkbox label::before {
    display: none!important;
}

/*
** Login page
*/

.welcome-screen {
    height: calc(100vh - 50px);
    position: relative;
}

.logo-duty {
    height: 30%;
    padding-top: 3em;
    padding-bottom: 2em;
}

.logo-duty img {
    max-height: 100%;
    width: auto;
}

.slogan {
    height: 50%;
}

@media (max-width: 767px) {
    .slogan {
        font-size: .75em;
    }
}

.copyright {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
}

.navbar-toggle .tooltip {
    left: auto!important;
    right: 0;
}

.navbar-toggle .tooltip-arrow {
    left: 79%!important;
}

.navbar-toggle .tooltip-inner {
    white-space:pre;
    max-width:none;
}

/*
**  Home page
*/

.nvg-currency, .night_nvg-currency {
    margin-bottom: 10px;
}

.table .title > th {
    border-right: 0;
    border-left: 0;
}

/*
** Flight page
*/

.add-flight {
    display: block;
    margin-bottom: .5em;
    padding: 10px 20px;
    color: #333;

    -webkit-transition: background-color .5s ease;

    transition: background-color .5s ease;
}

.add-flight:hover, .add-flight:focus {
    background-color: #e8e8e8;
    color: #333;
    text-decoration: none;
}

.add-flight i {
    position: relative;
    top: 3px;
}

.add-flight span, .header_info {
    font-size: 18px;
    line-height: 30px;
}
.add-flight span {
    margin-left: 1em;
}

.flight_header {
    padding: 10px 20px;
    position: relative;
}

.riskIndicator {
    position:absolute;
    top:.4em;
    right:.4em;
    height:1em;
    width:1em;
    border-radius:.3em;
}
.riskIndicatorDenied {
    background-color:red;
    border: 1px solid black;
}
.riskIndicatorApproved {
    background-color:green;
    border: 1px solid black;
}
.riskIndicatorPending {
    background-color:yellow;
    border: 1px solid black;
}
.riskIndicatorIncomplete {
}

.header_info {
    padding-left: 2.8em;
}

.header_info > .expand_flight {
    line-height: 30px;
    font-size: 18px;
    height: auto;
    word-wrap: normal;
}

.header_info > .expand_flight > span {
    display: inline-block;
}

@media (min-width: 769px) {
    .header_info .expand_flight > span:not(:first-child) {
        border-left: 1px solid #aaa;
        padding-left: 5px;
    }

    .expanded_to_legs_content {
        padding-left: 15px
    }

    .header-info .first_leg_only, .header-info .expanded_to_legs_content {
        float: left;
    }

    .flight_body_section {
        min-height: 30px;
    }

    .flight_body_section .form-group+.form-group {
        margin-left: 1em;
    }
}

.expand-action {
    display: block;
    float: left;
    color: #333;
    cursor: pointer;
    -webkit-transition: color .2s ease;
    transition: color .2s ease;
}

.expand-action span {
    position: relative;
    top: 2px;
}

.expand-action:hover, .expand-action:focus {
    color: #39f;
}

.flight_actions {
  display: flex;
  flex-flow: row;
  align-items: center;
}

.flight_action {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  margin-bottom: 0;
  line-height: 30px;
  font-size: 15px;
  text-decoration: none;
  margin-right: 15px;
  -webkit-transition: color .25s ease;
  transition: color .25s ease;
}

.flight_action:hover {
  text-decoration: none;
}

.flight_action img {
  height: 20px;
  width: auto;
}

.flight_action span {
  margin-left: .5em;
  color: #4e779c;
}

.flight_action:hover span {
  color: #333;
}

.flight_body_section {
    margin-bottom: 15px;
}

.deleteConfirmPane div {
    margin-top: 15px;
}

.flight_continues, .flight_with_summary {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.flight_with_summary:last-child {
  margin-bottom: 20px;
}

.flight_is_continuation {
    border-top: 0;
    border-top-left-radius:0;
    border-top-right-radius:0;
}

@media (max-width: 767px) {

    .flight_action {
      margin-right: 20px;
    }

    .flight_action img {
      height: 24px;
    }
}

/*
** Modals
*/

.modal {
    max-width: 100vw;
    margin: 0 auto;
}

.modal-300 .modal-dialog {
    width: 300px;
}

.modal-400 .modal-dialog {
    width: 400px;
}

.modal-450 .modal-dialog {
    width: 450px;
}

.modal-500 .modal-dialog {
    width: 500px;
}

.modal-600 .modal-dialog {
    width: 600px;
}

.modal-700 .modal-dialog {
    width: 700px;
}

.modal-750 .modal-dialog {
    width: 750px;
}

.modal-800 .modal-dialog {
    width: 800px;
}

.modal-900 .modal-dialog {
    width: 900px;
}

.modal-1100 .modal-dialog {
    width: 1100px;
}

.modal-1200 .modal-dialog {
    width: 1200px;
}

.modal-1300 .modal-dialog {
    width: 1300px;
}

.modal-700-no-scroll .modal-open .modal {
    overflow: hidden;
    width: 700px;
}

.modal-auto {
    overflow: scroll;
    margin: 0 auto;
}

.modal-login {
    width: 650px;
}

.modal-dialog {
    position: relative;
    margin: 0 auto;
    width: 80%;
}

.modal > .modal-dialog {
    max-width: 100%;
}

.modal-login > .modal-dialog {
    width: 80%;
}

@media (max-width: 1200px) {
  .modal-dialog {
    width: 90vw;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
    .modal-dialog {
        width: 100vw;
        max-height: 100vh;
        margin: 0;
    }
    .modal-login > .modal-dialog {
        width: 100%;
    }
}

.org-choice {
    cursor: pointer;
    padding: 5px;
    border-bottom: 1px solid #efefef;
}

.org-choice:hover, .org-choice:focus {
    background-color: #eee;
}

.wab-modal .modal-footer {
  background-color: #404040;
  border-color: #656565;
  padding: 10px;
}

.wab-modal .modal-footer .btn {
  width: 100%;
}

.wab-modal .bootbox-body {
  display: flex;
  flex-flow: column nowrap;
  height: 100%;
}

#weightAndBalanceScreen {
  margin: 0;
  display: flex;
  flex-flow: column nowrap;
  height: 100%;
}

#weightAndBalanceContent {
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  height: 100%;
}

.wab-config {
  background-color: #404040;
  color: white;
  padding: 10px;
}

@media (max-width: 768px) {
  .wab-config {
    font-size: 80%;
  }
}

#wabConfigEdit {
  position: relative;
  bottom: 2px;
}

.wab-interactive {
  flex-grow: 1;
  background-color: #808080;
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 0;
}

.wab-top-actions,
.wab-bottom-actions {
  display: flex;
  flex-flow: row nowrap;
  position: absolute;
  z-index: 2;
}

.wab-top-actions {
  justify-content: space-between;
  top: 10px;
  left: 10px;
  right: 10px;
}

.wab-bottom-actions {
  justify-content: flex-end;
  bottom: 10px;
  right: 10px;
}

.wab-bottom-actions .btn + .btn {
  margin-left: 10px;
}

#diagramHolder {
  position: relative;
  left: auto!important;
  padding: 10px;
}

#selectedWabFieldName {
  position: absolute;
  left: 10px;
  bottom: 15px;
  text-align: right;
  color: white;
}

.wab-status {
  min-height: 50px;
  background-color: #404040;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  padding: 10px 0;
}

.wab-status .btn {
  flex-grow: 1;
  margin: 0 10px;
}

.wab-popup-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.5);
  z-index: 3;
}

#wabPopup {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  background: white;
  border: 1px solid gray;
  padding: 10px;
}

#wabPopup .form-horizontal .form-group {
  margin-right: 0;
  margin-left: 0;
}

.wabSection {
    font-size: 16px;
    font-weight: bold;
    text-decoration: underline;
}

.balance-summary .form-group {
    margin-bottom: 0;
}

.balance-summary .control-label {
    padding-top: 7px;
    padding-bottom: 7px;
    text-align: right;
}

.landing-fuel input[type="text"],
.fuel-burn input[type="text"] {
    width: 4em;
    float: left;
}

.landing-fuel .wabFuelUnit, .fuel-burn .wabFuelBurnMeasure {
    position: relative;
    top: 3px;
    margin-left: .5em;
}

.wabCheck .form-group {
    min-height: 40px;
}

.wabCheck .control-label {
    padding-top: 7px;
    margin-bottom: 0;
    text-align: right;
}

.to-weight-available {
    position: relative;
    top: 6px;
    margin-left: .5em;
}

.wabPass, .wabFail, .wabWarn {
    display: inline-block;
    position: relative;
    top: 6px;
    width: 5em;
    padding: 2px 5px;
    min-height: auto;
    float: left;
    text-align: center;
    font-weight: bold;
    background: #eee;
    border: 1px solid #333;
}

.wabPass {
    background: #5cb85c;
    border-color: #2e692e;
}

.wabFail {
    background: #d9534f;
    border-color: #962e2a;
    color: #fff;
}

.wabWarn {
    background: #f0ad4e;
    border-color: #af7f3a;
}

.wab-heading {
    text-align: center;
    font-weight: bold;
}

.weightInput-wrapper {
    position: absolute;
}

.weightInput-wrapper span {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0 5px;
    font-size: 18px;
    line-height: 27px;
    cursor: pointer;
}

.weightInput {
    position: relative;
    font-size: 12px;
    border: 1px solid black;
    text-align: center;
    padding: 4px 4px;
    padding-right: 18px;
}

@media (max-width: 767px) {
    .wab-heading:not(.wab-heading-first) {
        border-top: 1px solid #aaa;
        padding-top: 10px;
        text-align: center;
    }
}

@media (min-width: 768px) {
  .to-weight-available {
    width: 10em;
    position: absolute;
    top: 2px;
  }
}

@media (max-width: 1200px) {
  .balance-summary .control-label {
      padding-top: 3px;
      padding-bottom: 3px;
      text-align: right;
  }

  .balance-summary .form-control-static {
    min-height: 0;
    padding-top: 3px;
    padding-bottom: 3px;
  }
}

.wab-modal .modal-content {
  max-height: 100vh;
  display: flex;
  flex-flow: column nowrap;
}

.wab-modal .modal-body {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-flow: column nowrap;
}

.wab-modal .diagram-wrapper {
  width: 100%;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

input:disabled,
select:disabled {
  opacity: .75;
  background-color: rgb(235, 235, 228);
}

.table-management {
  color: white;
}

.table-management .title {
  border: 0;
}

.with-tooltip {
  position: relative;
}

.row-tooltip {
  position: absolute;
  right: -25px;
  top: 5px;
  font-size: 20px;
  color: #12395b;
}

.row-title {

}

.row-controls {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}

.row-controls button {
  font-size: 16px;
  padding: 2px 8px;
  background-color: transparent;
  border-color: #4682B4;
  color: #4682B4;
}

.row-controls button:hover,
.row-controls button:focus,
.row-controls button:active {
  color: #333F50;
  background-color: #4682B4;
  border-color: #4682B4;
}

.row-bold {
  font-weight: bold;
  font-style: italic;
}

.tab-pane {
  padding: 10px 0;
}

.manage-buttons {
  margin-top: 15px;
}

.table-management input {
  color: #000;
}

.table-management tr {
  transition: background-color .3s ease;
}

.table-management tr.highlight {
  background-color: rgba(255,255,255,.5);
  transition: background-color 1s ease;
}

.input-group-addon {
  height: 20px;
  padding: 3px 12px;
}

.checkbox input {
  bottom: -5px;
}

.add_row,
.add_row_popup {
    color: green;
    font-size: 2em;

}

.add_row:hover,
.add_row_popup:hover {
    color: white;
    text-decoration: none;
}

.table-full-width table {
  width: 100%;
}

.entry-readonly {
  color: white;
}

.type_image {
  display: block;
  margin: 0 auto;
}

.manage_link {
  color: #4682B4;
  border-bottom: 1px solid #4682B4;
  font-weight: bolder;
}

.manage_link span {
  color: #4682B4;
}

.manage_link:hover {
  text-decoration: none;
  color: #80b4e0;
  border-color: #80b4e0;
}

.manage_link:hover span {
  color: #80b4e0;
}

.management-header {
  display: flex;
  flex-flow: row nowrap;
}

.management-header h2,
.management-header .alert {
  flex-grow: 1;
}

.management-header .alert {
  opacity: 0;
  transition: all .3s ease;
}

.management-header .alert-visible {
  opacity: 1;
}

.mpe-noimage {
  margin-top: 100px;
  margin-bottom: 100px;
}

.mpe-diagram-wrapper {
  background-color: #808080;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mpe-diagram-holder {
  padding: 10px;
  left: auto;
  position: relative;
}

#mass-placements-edit .row {
  margin: 0;
}

#mass-placements-edit .row > div {
  padding-left: 0;
  padding-right: 0;
}

.mpe-field-highlight {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.ui-autocomplete {
  max-height: 150px;
  overflow-y: auto;
  overflow-x: hidden;
}

.wab-weight-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.wab-graphs-control {
  height: 32px;
}

.wab-crew-member {
  height: 32px;
  margin-bottom: 8px;
}

#wabShare {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
  padding: 20px 0;
  display: flex;
  flex-flow: column;
  align-items: center;
}

#wabShare .btn:first-of-type {
  margin-bottom: 10px;
}

#wabShare .wab-email-separator {
  font-size: 20px;
  margin: 15px 0;
}

#wabShare .wab-email-separator:before, #wabShare .wab-email-separator:after {
  content: '';
  display: inline-block;
  width: 70px;
  height: 2px;
  background-color: lightgray;
  margin: 0 10px;
  margin-bottom: 5px;
}

#wabShare form {
  width: 100%;
}

#wabShare .form-control {
  height: 44px;
  margin-bottom: 10px;
}

.wab-email-status {
  min-height: 1em;
  font-weight: bold;
  text-align: center;
}

.wab-email-error {
  color: darkred;
}

.wab-email-success {
  color: darkgreen;
}

.wab-spinner-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255,255,255, .5);
  transition: all .3s ease;
  pointer-events: none;
}

.wab-spinner-wrapper.display-none {
  display: none;
}

#wabEquipmentPackageMasses table th {
    padding: 0 10px;
    text-align: center;
}

#wabEquipmentPackageMasses table td {
    text-align: center;
}

/*
** Retina fixes
*/

@media
    only screen and (min-device-width: 320px) and (-webkit-min-device-pixel-ratio: 1.5),
    only screen and (min-device-width: 320px) and (min--moz-device-pixel-ratio: 1.5),
    only screen and (min-device-width: 320px) and (-o-min-device-pixel-ratio: 1.5/1),
    only screen and (min-device-width: 320px) and (min-device-pixel-ratio: 1.5),
    only screen and (min-device-width: 320px) and (min-resolution: 192dpi),
    only screen and (min-device-width: 320px) and (min-resolution: 1.5dppx) {
        .navbar {
            min-height: 65px;
            font-size: 1.3em;
        }

        .navbar-header {
            height: 65px;
        }

        .navbar-toggle {
            padding: 14.5px;
        }

        .toggle-sidebar {
            margin-right: 15px;
            padding: 15px 20px;
        }

        .network-status {
            top: 16px;
        }

        .sidebar-nav .li-menu {
            padding-left: 12px;
        }

        .quick-info .secondary-toggle {
            font-size: .77em;
        }
    }
