html {
    height: 100%;
}
body {
    /*padding: 10px;*/
    height: 100%;
    color: #2a2e31;
}
.top-icon-panel {
    float: right;
    text-align: right;
    width: 500px;
    height: 35px;
    line-height: 35px;
    vertical-align: middle;
    font-size: 22px;
    color: #2a2e31;
}
.top-icon-panel .vr {
    color: #2a2e31;
}
.top-icon-panel .logged-in-user {
    display: inline-block;
    font-size: .65rem;
    font-weight: bold;
    line-height: 2rem;
    vertical-align: middle;
    margin-right: 10px;
}
.top-icon-panel .current-date-time {
    display: inline-block;
    font-size: .65rem;
    line-height: 2rem;
    vertical-align: middle;
    margin-right: 10px;
}
.logo {
    float: left;
    margin-top: 5px;
    vertical-align: middle;
    max-height: 70px;
}
a.icon, a.icon:hover {
    text-decoration: none;
}
a.icon, a.icon i {
    color: #2a2e31;
}
a.icon:hover, a.icon:hover i {
    color: #0073b7;
}

header {
    padding-left: 10px;
    padding-right: 10px;
    clear: both;
    height: 80px;
    overflow: hidden;
    margin-bottom: 0px;
}

.login {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-image: url(/assets/images/login-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.login-left {
    flex: 1;
    height:100%;
}
.login-right {
    display: flex;
    align-items: center;
    align-content: center;
    flex-basis: 600px;
    height: 100%;
}
.login-box {
    width: 300px;
    box-shadow: 10px 10px 5px rgba(127, 127, 127, 0.5);
}
.login-box .btn-primary {
    margin-top: 15px;
}

.login-box p.login-error {
    text-align: center;
    color: #ff0000;
    margin-top: 0px;
    margin-bottom: 0px;
}

.main {
    display: flex;
    margin-top: 0px;
    align-content: stretch;
    width: 100%;
    height: calc(100% - 80px);
}

.left-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 330px;
    overflow: hidden;
}

.left-panel.alerts {
    border-top: solid 1px #ccc;
    border-right: solid 1px #ccc;
    flex-basis: 240px;
}

.left-panel h3 {
    margin-bottom: 0px;
    height: 40px;
}

.right-panel .title-bar {
    background-color: #eee;
    font-size: .975rem;
    font-weight: bold;
    padding: 5px 10px 5px 10px;
}

.alerts-list {
    height: 100%;
    overflow-y: auto;
    padding: 10px;
}

.alerts-list .heading {
    margin-left: 5px;
    padding: 5px;
    font-weight: bold;
    font-size: .7rem;
    text-transform:uppercase;
    border-bottom: solid 1px #ddd;
    cursor: pointer;
}
.alerts-list .content {
    margin-bottom: 15px;
}
.alerts-list .content-item {
    font-weight: normal;
    font-size: .7rem;
    padding: 5px 10px 5px 5px;
    margin-left: 5px;
    border-left: solid 5px #ffffff;
    margin-top: 1px;
    border-bottom: solid 1px #ddd;
    cursor: pointer;
    clear: right;
}

.alerts-list .content-item:hover {
    border-left: solid 5px #0073b7;
}
.alerts-list .content-item.active {
    border-left: solid 5px #0073b7;
    color: #ffffff;
    background-color: #0073b7;
}

.alerts-panel {
    padding: 15px;
}

.alerts-filter {
    background-color: #d2d3d9;
    padding: 5px 10px 10px 10px;
    margin-bottom: 5px;
}
.alerts-filter .title {
    font-size: .7rem;
    clear: right;
}

.alerts-results {
    width: 100%;
    color: #2a2e31;
    font-size: .7rem;
    margin-bottom: 5px;
}

.alerts-results .table-head {
    width: 100%;
}
.alert-results .table-head i {
    color: #ffffff;
    font-size: .7rem;
}

.alerts-results .table-row {
    display: flex;
    width: 100%;
    align-items: center;
    align-content: center;
    justify-content: center;
    color: #2a2e31;
    background-color: #ffffff;
    clear: right;
}

.alerts-results .table-head .table-row {
    color: #ffffff;
    background-color: #2a2e31;
    font-weight: bold;
}
.alerts-results .table-row.table-row-striped {
    background-color: #eee;
}

.alerts-results .table-body {
    width: 100%;
}

.alerts-results .table-body .table-row:hover {
    color: #ffffff;
    background-color: #0073b7;
    cursor: pointer;
}

.alerts-results .table-column {
    padding: 5px;
    border-left: 1px solid #d2d3d9;
    border-bottom: 1px solid #d2d3d9;
    flex: 1;
}
.alerts-results .table-head .table-column {
    cursor: pointer;
}
.alerts-results .table-column:last-child {
    border-right: 1px solid #d2d3d9;
}

.alerts-results .table-column.table-column-narrow {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 25px;
}
.alerts-results .table-column.table-column-wide {
    flex: 2;
}

.alert-results-row-count {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 100%;
    padding: 5px;
    font-size: .7rem;
    background-color: #eee;
    color: #2a2e31;
    border: 1px solid #d2d3d9;
}
.alert-results-row-count div {
    flex: 1;
    text-align: right;
}

.priority-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
}
.priority-circle.priority_0_white {
    background-color: #ffffff;
}
.priority-circle.priority_1_red {
    background-color: #aa0000;
}
.priority-circle.priority_2_amber {
    background-color: #aa5500;
}
.priority-circle.priority_3_green {
    background-color: #00aa00;
}

.right-panel {
    flex: 1;
    flex-basis: 1;
    height: 100%;
    border-top: solid 1px #ccc;
    font-size: .65rem;
}

.company-title-bar {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    height: 40px;
    background-color: #b2b3b9;
    border-bottom: 1px solid #2a2e31;
}

.company-title-bar:hover {
    background-color: #b9bac0;
    cursor: pointer;
}

.company-title-bar .check {
    flex-basis: 20px;
    padding: 10px 0px 10px 5px;
    font-size: .85rem;
    font-weight: bold;
    color: #2a2e31;
}

.company-title-bar .toggle {
    flex-basis: 30px;
    padding: 10px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #2a2e31;
}

.company-title-bar .name {
    flex: 1;
    padding: 10px 10px 10px 0px;
    font-size: .85rem;
    font-weight: bold;
    color: #2a2e31;
}

/*
.company-title-bar:hover .name,
.company-title-bar:hover .toggle {
}
*/

.company .content {
    display: block;
}

#tracker-search {
    padding: 5px;
    width: 100%;
    border-bottom: 1px solid #2a2e31;
    height: 40px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    column-gap: 5px;
}
#tracker-search input {
    font-size: 0.85rem;
    /*width: 100%;*/
}
#tracker-search input[type='checkbox'] {
}
#tracker-search input[type='text'] {
    flex: 1;
}


#liveResults {
    height: calc(100% - 70px);
    overflow-y: auto;
    font-size: .65rem;
}

.tracker:not(:first-child) {
    border-top: 1px solid #2a2e31; 
}

.tracker-title-bar {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    height: 40px;
    background-color: #d2d3d9;
}
.tracker-title-bar .icon {
    display: flex;
    align-items:center;
    align-content: center;
    justify-content: center;
    flex-basis: 75px;
    height: 100%;
    background-color: #eee;
    text-align: center;
    font-size: 1.1rem;
    color: #777;
    padding-left: 5px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: 40px;
}

.tracker-title-bar .icon input[type='checkbox'] {
}
.tracker-title-bar .icon i {
    flex: 1;
}

.tracker-title-bar .icon.live {
    color: #5c5;
}
.tracker-title-bar .name {
    flex: 1;
    padding: 10px;
    font-size: .75rem;
    font-weight: bold;
    color: #2a2e31;
}
.tracker-details {
    border-top: 1px solid #2a2e31;
    padding: 10px;
    color: #2a2e31;
}
.tracker-details:hover {
    background-color:#efefef;
}

.tracker-details .pills-panel {
    margin-bottom: 10px;
}
.tracker-details .pill {
    display: inline;
    height: 20px;
    line-height: 20px;
    vertical-align: middle;
    border-radius: 10px;
    font-size: .7rem;
    padding: 5px 10px 5px 10px;
    margin-right: 10px;
    color: #2a2e31;
    background-color: #efefef;
}
.tracker-details .pill i {
    font-size: .8rem;
    margin-right: 5px;
    color: #2a2e31;
}
.tracker-details:hover .pill {
    background-color: #ffffff;
}
.tracker-details .pill:hover i {
    color: #0073b7;
}
.tracker-details .stats-panel {
    font-size: .8rem;
    color: #2a2e31;
}
.tracker-details .stats-panel i {
    font-size: .85rem;
    color: #2a2e31;
}

.tracker-details .stats-row {
    display: block;
    width: 100%;
    clear: both;
    padding-bottom: 5px;
}

#tracker-count {
    height: 30px;
    background-color: #0073b7;
    font-size: .8rem;
    font-weight: bold;
    color: #ffffff;
    border-top: 1px solid #2a2e31;
    padding: 5px 10px 5px 10px;
}

#map {
    flex: 1;
    flex-basis: 1;
    height: 100%;
}

.marker {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;                                
}

.marker .icon {
    border-radius: 50%;
    background-color: #2a2e31;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: 5px 5px 3px #777;
}

.marker .icon i {
    color: #d2d3d9;
    font-size: .75rem;
}

.marker .icon.live i {
    color: #5c5
}

.marker .label {
    display: inline;
    color: #2a2e31;
    background-color: #ffffff;
    border: 1px solid #2a2e31;
    padding: 2px;
    font-size: .5rem;
}

.info-window {
    font-size: .8rem;
    color: #2a2e31;    
    max-width: 250px;
}

.info-window .info-window-row {
    display: block;
    width: 100%;
    clear: both;
    padding-bottom: 5px;
}

.info-window hr {
    margin: 0.5rem 0;
}

.info-window i {
    font-size: .85rem;
    color: #2a2e31;
}

.info-window i.fa-motorcycle {
    color: #777;
}

.info-window i.fa-motorcycle.live {
    color: #5c5
}

nav {
    width: calc(100% - 200px);
    border-top: solid 1px #ccc;
    text-align: right;
    float: right;
    padding: 0 2em;
    clear: right;
    min-width: 200px;
  }
  nav ul {
    display: inline-block;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #fff;
  }
  nav li {
    float: left;
  }
  nav li a {
    display: block;
    color: #2a2e31;
    font-size: .875rem;
    text-align: center;
    padding: .7em .8em;
    text-decoration: none;
    border-top: solid .3em #fff;
  }
  nav li a:hover {
    border-top: solid .3em #0073b7;
  }
  nav li a.active,
  nav li a.active:hover {
    border-top: solid .3em #0073b7;
    color: #2a2e31;
  }

  .modal-dialog label,
  .modal-dialog input,
  .modal-dialog select,
  .modal-dialog textarea {
    font-size: .7rem !important;
  }

  .modal-title {
    font-size: .975rem !important;
  }

  .modal-subtitle {
    font-size: .8rem !important;
    font-weight: bold;
    background-color: #eeeeee;
    color: #2a2e31;
    padding: 5px 10px 5px 10px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .modal-body {
    font-size: .7rem !important;
    min-height: 300px;
  }

  .modal-header .btn-close {
    font-size: .75rem;
  }

  .modal-footer .btn {
    font-size: .75rem !important;
  }

  .filterable-dropdown .btn {
    font-size: .7rem !important;
  }

  .filterable-dropdown .dropdown-menu {
    width: 200px;
  }

  .filterable-dropdown .dropdown-menu ul {
    max-height: 135px;
    overflow-y: auto;
    padding-left: 0px;
    border-top: 1px solid #d1d1d1;
    border-bottom: 1px solid #d1d1d1;
    margin-bottom: 0px;
  }

  .filterable-dropdown .dropdown-menu li {
    list-style: none;
    font-size: .7rem !important;
    text-decoration: none;
    padding: 5px;
    color: #2a2e31;
  }

  .filterable-dropdown li:hover {
    cursor: pointer;
    color: #ffffff;
    background: #0d6efd;
  }

  .filterable-dropdown .dropdown-menu li:not(.active) i.fa-check {
    color: #ffffff;
  }

  .filterable-dropdown .dropdown-menu li.active i.fa-check {
    color: #2a2e31;
  }

  .filterable-dropdown .dropdown-menu li.active:hover i.fa-check {
    color: #ffffff!important;
  }

  .filterable-dropdown .dropdown-menu li:not(.active):hover i.fa-check {
    color: #0d6efd!important;
  }

  .filterable-dropdown input[type='text'] {
    padding: 5px;
    margin-top: -6px;
    border: 0;
    border-radius: 0;
    background: #f1f1f1;
  }

  .filterable-dropdown .select-all {
    font-size: .7rem !important;
    font-weight: normal;
    color: #2a2e31;
    padding: 5px;
  }

  .filterable-dropdown .select-all.active {
    font-weight: bold;
  }

  .filterable-dropdown .select-all:hover {
    cursor: pointer;
    color: #ffffff;
    background: #0d6efd;
  }

  .filterable-dropdown .select-all:not(.active) i.fa-check {
    color: #ffffff;
  }

  .filterable-dropdown .select-all.active i.fa-check {
    color: #2a2e31;
  }

  .filterable-dropdown .select-all.active:hover i.fa-check {
    color: #ffffff!important;
  }

  .filterable-dropdown .select-all:not(.active):hover i.fa-check {
    color: #0d6efd!important;
  }

.colour-swatch-picker.dropdown-menu {
    min-width: auto;
    padding: 5px;
    white-space: nowrap;
    line-height: 0.5rem;
}
.dropend .colour-swatch.dropdown-toggle::after {
    display: none;
}
.colour-swatch-picker li {
    display: inline-block;
}
.colour-swatch-picker a {
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 10px;
    border-bottom: solid 5px #ffffff;
    display: block;
}
.colour-swatch-picker a:hover,
.colour-swatch-picker a.active {
    border-bottom: solid 5px #0073b7;
}
.colour-swatch {
    width: 1rem;
    height: 1rem;
    background: #ffffff;
    border:1px solid #d1d1d1;
    border-radius: 5px;
}

.colour-swatch.red {
    background: #aa0000;
}
.colour-swatch.green {
    background: #00aa00;
}
.colour-swatch.orange {
    background: #aa5500;
}
.colour-swatch.white {
    background: #ffffff;
}

.form-group.row {
    align-items: center;
}

.modal-footer {
    justify-content: flex-start;
    background-color: #eee;
    padding-top: 1px;
    padding-bottom: 1px;
}

.loading-spinner-wrapper {
    display: flex; 
    width: 100%; 
    height: 100%; 
    align-items: center; 
    align-content: center; 
    justify-content: center;
}