/******************************************************************************************************
*
* Project		: RT Live
* File			: home.css
* Description	: Styles for the RT Live home.
* Author		: Harindra Herath
* Copyright		: Race Technology Ltd, UK
*
*
* Version	  Date			Author					Change/Reason
* -------	----------		--------------------	-------------------------------------------------------
*	1.0		06/04/2015		Harindra Herath		    Created
*   1.1     08/04/2015      Harindra Herath         Completed the styles for the data table
*******************************************************************************************************/

/*region Desktop*/
.safety {
    height: 34px;
    width: auto;
    max-width: 823px;
}

.safety * {
    /*float: left;
    text-align: center;*/
    /*height: 21px;*/
}

div.safety div span label {
    float: left;
    width: 100%;
    margin-top: 10px;
    font-size: 9pt;
    font-weight: bold;
}

#click-on-journey-heading {
    margin-top: 32px;
    margin-bottom: 0;
}

#data-filter-div{
    height: 50px;
}
#export-data-div {
    margin: 30px 40px 0 0;
}

div#home-selected-actions {
    float: left;
    margin-left: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0;
    height: 30px;
}

div.home-selected-summary {
    width: auto;
    float: left;
    display: flex;
    margin: 20px 40px 20px 40px;
    /*margin-left: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 40px;*/
    padding: 0;
    height: auto;
}

div.home-selected-summary > div {
    width: auto;
    float: left;
    margin-top: 3px;
    display: flex;
}

.home-selected-div {
    color: red;
    width: auto;
    display: inline;
    float: left;
    font-size: 11px;
    height: 50%;
    vertical-align: middle;
    margin-top: 5px;
}

#total-laps-selected-label, #total-distance-selected-label {
    margin-left: 12px;
}

#entry-count-note-div {
    display: block;
    width: 100%;
    min-height: 10px;
    height: auto;
    clear: both;
    margin-left: 40px;
}

#entry-count-note-div span {
    color: white;
    font-size: 11px;
}

div#home-selected-actions ul li,
div.home-selected-summary ul li {
    line-height: 1em;
    display: inline;
    border: 2px solid #747474;
    border-top-style: none;
    border-bottom-style: none;
    margin: 0;
    padding: 1px 10px 1px 10px;
    height: 80%;
}

div.home-selected-summary ul {
    height: 100%;
}

div#home-selected-item-actions {
    margin-left: 10px;
    width: 703px;
    float: left;
    height: 30px;
}

/*Rule to remove extra unnecessary horizontal lines in selected actions
*/
div#home-selected-actions ul li,
div.home-selected-summary ul li {
    border-right-style: none;
}

div#home-selected-actions ul li + li + li + li + li + li,
div.home-selected-summary ul li + li + li + li {
    border-right-style: solid;
}

label.stat-box {
    float: left;
    display: inline;
    width: 84px;
    height: 10px;
    background-color: white;
    font-size: 11px;
    text-align: center;
    padding-top: 5px;
    margin-left: 5px;

    padding-bottom: 5px;

}

label.stat-label {
    display: inline;
    text-decoration: none;
    float: left;
    margin-top: 5px;
    margin-left: 5px;
    font-size: 11px;
    font-weight: bold;

}

.link.stat-label.safety:first-child, .link.stat-label.safety:nth-child(2) {
    float: right;
    margin-bottom: 5px;
    margin-left: 0;
    margin-right: 5px;
}

.link.stat-label.safety:nth-child(3) {
    float: right;
    margin-bottom: 5px;
    margin-left: 0;
    margin-right: 5px;
}

#date-inputs {
    width: auto;
    display: inline-block;
    margin-left: 5px;
}

.action-link {
    color: white;
    text-decoration: underline;
    font-size: 12px;
    cursor: pointer;
}

#header-start-date {
    width: 88px;
    float: left;
}

#header-end-date {
    width: 105px;
}

#header-safety-rating {
    width: 65px;
}

#header-calculated-power {
    width: 55px;
}

#header-total-distance {
    width: 70px;
}

#header-max-speed {
    width: 85px;
}

#header-avg-speed {
    width: 85px;
}

#header-start-address,
#header-end-address {
    width: 100px;
}

#header-total-duration {
    width: 80px;
}

#header-time-stationary {
    width: 80px;
}

#header-vehicle-name {
    width: 75px;
}

#header-driver-name {
    width: 75px;
}

#header-speed-rating, #header-dynamics-rating, #header-cornering-rating, #header-braking-rating, #header-acceleration-rating {
    width: 95px;
}

#safety-home-table-body {
    overflow-y: scroll;
    overflow-x: hidden;
    max-width: 848px;
    margin-left: -26px;
    height: 210px;
}

/**
Styles for safety home page data table.
**/
.safety-home-table-data-row {
    float: left;
    background-color: white;
    text-align: center;
    clear: both;
}

.safety-home-table-data-row * {
    float: left;
    height: 20px;
    border-left: gray 1px solid;
    border-bottom: black 1px solid;
    font-size: 11px;
    font-weight: bold;
    margin: 0 auto;
    border-bottom: 2px solid black;
    margin-bottom: -1px;
}

.safety-home-table-data-row p {
    width: 100%;
    vertical-align: middle;
    display: table-cell;
    line-height: 20px;
    overflow: hidden;
}

.safety-table-data-cell {
    height: 20px;
    vertical-align: middle;
    display: table-cell;
    margin: 0 auto;
    overflow: hidden;
    float: left;
}

.table-data-cell-start-date {
    width: 103px;
}

.table-data-cell-end-date {
    width: 103px;
}

.table-data-cell-safety-rating {
    width: 63px;
}

.safety-table-data-cell-power {
    width: 54px;
}

.table-data-cell-distance {
    width: 68px;
}

.table-data-cell-max-speed {
    width: 83px;
}

.table-data-cell-avg-speed {
    width: 83px;
}

.table-data-cell-duration {
    width: 78px;
}

.table-data-cell-stationary-time {
    width: 77px;
}

.table-data-cell-unit-name {
    width: 73px;
    float: left;
    height: 20px;
}

.table-data-cell-driver-name {
    width: 73px;
}

.table-data-cell-start-address {
    width: 98px;
}

.safety-table-data-cell-speed-rating, .table-data-cell-dynamics-rating, .table-data-cell-cornering-rating, .table-data-cell-braking-rating, .table-data-cell-acceleration-rating {
    width: 93px;
}

.table-data-cell-cornering-violations, .table-data-cell-braking-violations, .safety-table-data-cell-acceleration-violations {
    width: 93px;
}

.work {
    background-image: url('../img/person_working.png');
    background-repeat: no-repeat;

}

.icon-left-align {
    background-position: left;
}

.icon-right-align {
    background-position: right;
}

.personal {
    background-image: url('../img/person_normal.png');

    background-repeat: no-repeat;
}

.trafi-stat-box {
    float: left;
    width: 80px;
    height: 10px;
    background-color: white;
    font-size: 11px;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

#home-overall-summary > div {
    display: flex;
}

#home-overall-summary > div:first-child {
    width: 273px;
    float: left;
}

#home-overall-summary > div:nth-child(2) {
    width: 273px;
    float: left;
}

#home-overall-summary > div:nth-child(3) {
    width: 273px;
    float: left;
}

#home-overall-summary > div > div:first-child {
    width: 178px;
    float: left;
}

.summary-title {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.summary-title > label {
    text-align: end;
    margin: 0 0 0 0;
}

/*
========================================================================================================================
*/
/* Styles for the data table
*/
.full-width-element {
    width: 100%;
    min-height: 10px;
    height: auto;
    float: left;
}

.table-data-cell-file-name.safety {
    width: 98px;
    float: left;
    height: 20px;
}

input#btn-data-export-export, input#btn-data-export-cancel {
    height: 22px;
    /*float: right;*/
    margin-left: 20px;
    min-width: 80px;
    width: auto;
    /*margin-top: 10px;*/
}

.font-size-12px {
    font-size: 12px;
}

.font-weight-bold {
    font-weight: bold;
}

.left-margin-40 {
    margin-left: 40px;
}

div#home-data-table {
    max-width: 830px;
    width:100%;
    float: left;
    display: block;
    margin-left: 40px;
    margin-top: 10px;
    height: 250px;
}

div#home-table-header {
    color: white;
    text-align: center;
    height: 34px;
}

.home-table-header {
    float: left;
}

#home-table-header > div label {
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
}

#header-start-address,
#header-end-address {
    width: 100px;
    float: left;
}

#header-avg-speed {
    width: 85px;
    float: left;
}

#header-max-speed {
    width: 85px;
    float: left;
}

#header-cornering-violations, #header-braking-violations, #header-acceleration-violations {
    width: 95px;
}

div#data-export-format-div.safety {
    width: 100%;
    margin-top: 10px;
}

label#export-as-label.safety {
    width: auto;
    float: left;
}

div#data-export-format-select-div.safety {
    display: inline-block;
    width: 70px;
}

div#data-export-btn-div.safety {
    display: inline-block;
    width: 100%;
}

div#data-export-btn-div {
    display: inline-block;
    width: 100%;
}

div#home-table-header div span label {
    float: left;
    width: 100%;
    margin-top: 10px;
    font-size: 9pt;
    font-weight: bold;
}

div#header-end-date {
    float: left;
    width: 87px;
}

div#header-vehicle-name {
    width: 75px;
    float: left;
}

div#header-file-name {
    width: 100px;
    float: left;
}

div#header-number-of-laps {
    float: left;
    width: 55px;
}

#header-alarm-one,
#header-alarm-two,
#header-alarm-three,
#header-alarm-four,
#header-alarm-five {
    float: left;
}

div#header-alarms div#alarm {
    width: 21px;
    float: left;
    height: 30px;
    border: solid 1px #747474;
    border-top-style: none;
    font-weight: bold;
}

div#header-alarms div#alarm + div + div + div + div {
    border-right-style: none;
}

div#header-data {
    float: left;
    width: 482px;
    height: 100px;
}

div#header-data span.middle label#data-filter {
    margin-top: 0;
    padding-bottom: 5px;
}

div#header-data-parent-1 {
    width: 332px;
    float: left;
}

div#header-data-parent-2 {
    float: left;
    height: 38px;
}

div#header-best-lap {
    float: left;
    width: 85px;
}

div#header-total-duration {
    float: left;
    width: 82px;
}

div#header-total-distance {
    float: left;
    width: 70px;
}

div#header-calculated-power {
    float: left;
    width: 75px;
}

div#header-comment {
    float: left;
    width: 189px;
}

div#header-user-note-one, #header-user-note-two, #header-user-note-three, #header-user-note-four, #header-user-note-five {
    float: left;
    width: 189px;
}

div#header-data p#data-filter {
    text-align: left;
    padding-top: 5px;
    font-weight: bold;
    font-size: 9pt;
}

div#home-data-table div#home-table-header div#header-data input[type=text] {
    width: 65px;
    background-color: #414141;
    border: none;
    color: white;
    font-weight: bold;
    height: 16px;
    text-align: center;
    vertical-align: middle;
    float: left;
    margin-top: 5px;
}

div#home-data-table div#home-table-header div#header-data p#data-filter span {
    display: inline;
    font-size: 10pt;
    margin-top: 5px;
    margin-left: 3px;
    margin-right: 3px;
    float: left;
}

div#header-start-date:hover,
div#header-end-date:hover,
div#header-vehicle-name:hover,
div#header-file-name:hover,
div#header-number-of-laps:hover,
div#header-best-lap:hover,
div#header-total-duration:hover,
div#header-calculated-power:hover,
div#header-total-distance:hover,
div#header-start-address:hover,
div#header-end-address:hover,
div#header-alarm-one:hover,
div#header-alarm-two:hover,
div#header-alarm-three:hover,
div#header-alarm-four:hover,
div#header-alarm-five:hover,
div#header-user-note-one:hover,
div#header-user-note-two:hover,
div#header-user-note-three:hover,
div#header-user-note-four:hover,
div#header-user-note-five:hover,
div#header-max-speed:hover,
div#header-avg-speed:hover,
div#header-start-date label:hover,
div#header-end-date label:hover,
div#header-vehicle-name label:hover,
div#header-file-name label:hover,
div#header-number-of-laps label:hover,
div#header-best-lap label:hover,
div#header-total-duration label:hover,
div#header-calculated-power label:hover,
div#header-max-speed label:hover,
div#header-avg-speed label:hover,
div#header-total-distance label:hover,
div#header-start-address label:hover,
div#header-end-address label:hover,
div#header-alarm-one label:hover,
div#header-alarm-two label:hover,
div#header-alarm-three label:hover,
div#header-alarm-four label:hover,
div#header-alarm-five label:hover,
div#header-user-note-one label:hover,
div#header-user-note-two label:hover,
div#header-user-note-three label:hover,
div#header-user-note-four label:hover,
div#header-user-note-five label:hover {
    cursor: pointer;
}

/*
========================================================================================================================
/*
Styles for table header
*/

#header-cornering-violations span.middle,
#header-braking-violations span.middle,
#header-acceleration-violations span.middle {
    width: 75px;
}

#header-cornering-violations span.middle-selected,
#header-braking-violations span.middle-selected,
#header-acceleration-violations span.middle-selected {
    width: 75px;
}

#header-driver-name span.middle {
    width: 55px;
}

#header-driver-name span.middle-selected {
    width: 55px;
}

#header-safety-rating span.middle {
    width: 45px;
}

#header-safety-rating span.middle-selected {
    width: 45px;
}

#header-number-of-laps span.middle {
    width: 35px;
}

#header-number-of-laps span.middle-selected {
    width: 35px;
}

#header-end-address span.middle {
    width: 80px;
}

#header-end-address span.middle-selected {
    width: 80px;
}

#header-best-lap span.middle {
    width: 65px;
}

#header-best-lap span.middle-selected {
    width: 65px;
}

#header-avg-speed span.middle {
    width: 65px;
}

#header-avg-speed span.middle-selected {
    width: 65px;
}

#header-time-stationary span.middle {
    width: 60px;
}

#header-time-stationary span.middle-selected {
    width: 60px;
}

#header-total-distance span.middle {
    width: 50px;
}

#header-total-distance span.middle-selected {
    width: 50px;
}

#header-start-address span.middle {
    width: 80px;
}

#header-start-address span.middle-selected {
    width: 80px;
}

#header-calculated-power span.middle {
    width: 55px;
}

#header-calculated-power span.middle-selected {
    width: 55px;
}

#header-start-date span.middle {
    width: 68px;
}

#header-start-date span.middle-selected {
    width: 68px;
}

#header-vehicle-name span.middle {
    width: 55px;
}

#header-vehicle-name span.middle-selected {
    width: 55px;
}

#header-end-date span.middle {
    width: 67px;
}

#header-end-date span.middle-selected {
    width: 67px;
}

#header-max-speed span.middle {
    width: 65px;
}

#header-max-speed span.middle-selected {
    width: 65px;
}

#header-total-duration span.middle {
    width: 62px;
}

#header-total-duration span.middle-selected {
    width: 62px;
}

#header-file-name span.middle {
    width: 80px;
}

#header-file-name span.middle-selected {
    width: 80px;
}

#header-alarm-one > span.middle, #header-alarm-two > span.middle, #header-alarm-three > span.middle, #header-alarm-four > span.middle, #header-alarm-five > span.middle {
    width: 15px;
}

#header-alarm-one > span.middle-selected, #header-alarm-two > span.middle-selected, #header-alarm-three > span.middle-selected, #header-alarm-four > span.middle-selected, #header-alarm-five > span.middle-selected {
    width: 15px;
}

div#header-user-note-one > span.middle, #header-user-note-two > span.middle, #header-user-note-three > span.middle, #header-user-note-four > span.middle, #header-user-note-five > span.middle {
    width: 169px;
}

div#header-user-note-one > span.middle-selected, #header-user-note-two > span.middle-selected, #header-user-note-three > span.middle-selected, #header-user-note-four > span.middle-selected, #header-user-note-five > span.middle-selected {
    width: 169px;
}

#header-speed-rating span.middle,
#header-dynamics-rating span.middle,
#header-cornering-rating span.middle,
#header-braking-rating span.middle,
#header-acceleration-rating span.middle {
    width: 75px;
}

#header-speed-rating span.middle-selected,
#header-dynamics-rating span.middle-selected,
#header-cornering-rating span.middle-selected,
#header-braking-rating span.middle-selected,
#header-acceleration-rating span.middle-selected {
    width: 75px;
}

/*
========================================================================================================================
/*
Styles for table body
*/

#table-body {
    overflow-y: scroll;
    overflow-x: hidden;
    float: left;
    /*width: 861px;*/
    max-width: 848px;
    margin-left: -30px;
    height: 210px;
    clear: left;
}

#date-range-select {
    width: auto;
    font-size: 11px;
    vertical-align: baseline;
}

.table-data-row-checkbox {
    background-color: #272727;
    float: left;
    padding-right: 6px;
    padding-left: 6px;
    width: 18px;
    height: 21px;
}

.hidden {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

.table-data-row {
    background-color: white;
    float: left;
    clear: both;
}

.table-data-row * {

}

.table-data-row > div:nth-child(2) {
    border-left: 1px solid #414141;
}

.table-data-row > div:last-child {
    border-right: 1px solid #414141;
}

.table-data-row:hover,
.table-data-row-selected {
    background-color: #fd9921;
    cursor: pointer;
}

div.table-data-row > div {
    border-bottom: 1px solid #414141;
    border-right: 2px solid #999999;
    border-bottom: 2px solid black;
    margin-bottom: -1px;
}

.table-data-cell-start-date, .table-data-cell-end-date {
    width: 85px;
    float: left;
    height: 20px;
}

.table-data-cell-start-address,
.table-data-cell-end-addr {
    width: 98px;
    float: left;
    height: 20px;
    overflow: hidden;
}

.table-data-cell-max-speed {
    width: 83px;
    float: left;
    height: 20px;
}

.table-data-cell-avg-speed {
    width: 83px;
    float: left;
    height: 20px;
}

.table-data-cell-driver-name {
    width: 73px;
    float: left;
    height: 20px;
}

.table-data-cell-file-name {
    width: 98px;
    float: left;
    height: 20px;
}

.table-data-cell-no-of-laps {
    width: 53px;
    float: left;
    height: 20px;
}

.table-data-row-alarms {
    width: 33px;
    height: 20px;
    float: left;
    text-align: center;
}

.table-data-row-alarms > div {
    width: 21px;
    height: 100%;
    float: left;
}

.table-data-row-alarms div + div + div + div + div {
    border-right-style: none;
    width: auto;
}

.table-data-row-best-lap {
    float: left;
    height: 20px;
    width: 83px;
}

.table-data-cell-duration {
    float: left;
    height: 20px;
    width: 80px;
}

.table-data-cell-distance {
    float: left;
    height: 20px;
}

.table-data-cell-calculated-power {
    float: left;
    height: 20px;
    width: 73px;
}

.table-data-row-comment, .table-data-cell-user-note {
    float: left;
    height: 20px;
    width: 187px;
}

div.table-data-row div p {
    font-size: 11px;
    font-weight: bold;
    margin-left: 4px;
    overflow-y: hidden;
    line-height: 20px;
}

.cell-text-align-center {
    text-align: center;
}

.progress {
    top: -150px;
    left: 350px;
    position: relative;
    width: 100px;
    height: 100px;
    opacity: 10
}

#home-overall-summary div#summary-stationary-time-titles-div {
    width: 178px;
    float: left;
}

#home-overall-summary div#summary-distance-titles-div {
    width: 178px;
    float: left;
}

div#data-export-btn-div.safety > * {
    float: right;
}

div#home-selected-item-actions.safety {
    height: auto;
}

#data-to-list-and-export-div {
    min-height: 50px;
    display: block;
    width: 100%;
}

#date-range-select-and-label-div {
    display: inline-block;
}

div#home-selected-item-actions.safety {
    height: auto;
}

#home-selected-item-actions.safety > ul {
    /*width: 694px;*/
    width: 756px;
}

div#home-selected-item-actions.safety ul li:nth-child(6) {
    border-right: none;
}

div#home-selected-actions.safety {
    height: auto;
}

div#home-selected-actions.safety ul li, div.home-selected-summary ul li {
    display: inline-block;
}

/*
Special styling for alarms header
*/

.alarm-left {
    background-image: url('../img/alarm-left.png');
    background-repeat: no-repeat;
    background-position: left top;
    float: left;
    width: 10px;
    height: 35px;
}

.alarm-middle {
    background-image: url('../img/alarm-middle.png');
    background-repeat: repeat-x;
    background-position: left top;
    float: left;
    height: 30px;
    width: 100%;
    background-color: #272727;
}

.alarm-right {
    background-image: url('../img/alarm-right.png');
    background-repeat: no-repeat;
    background-position: right top;
    float: right;
    height: 35px;
    width: 10px;
}

.incomplete-run {
    color: red;
}

#summary-label {
    margin-top: 6px;
    display: inline;
    width: 93%;
    margin-bottom: 0;
}

#summary-label.safety {
    margin-top: 0;
    margin-bottom: 20px;
    display: inline;
    width: 93%;
}

#arrange-by-label {
    display: none;
}

#home-overall-summary {
    margin: 0 40px 0 40px;
}

.summary-values {
    width: 93px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#safety-home-table-header > div, #safety-home-table-header > div label:hover {
    cursor: pointer;
}

#safety-home-table-header > div label {
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
}

/*endregion*/

/*region Mobile*/

@media screen and (max-device-width: 912px) {

    #safety-home-table-body {
        float: left;
    }

    #summary-label.safety {
        font-size: 12pt;
    }

    select#data-export-format {
        font-size: 7pt;
    }

    a#export-data {
        font-size: 7pt;
    }

    #home-overall-summary {
        height: 219px;
        width: 286px;
        margin-right: 32px;
        float: right;
    }

    .summary-values {
        width: 85px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    #main-content div#home-overall-summary > div {
        display: block;
        width: 100%;
        height: 63px;
    }

    #main-content #home-overall-summary > div > div:first-child {
        width: 198px;
        float: left;
        height: 100%;
    }

    .trafi-stat-box {
        width: 80px;
    }

    #home-overall-summary label.link.stat-label.safety {
        font-size: 7pt;
        margin-bottom: 5px;
        float: left;
    }

    .trafi-stat-box {
        font-size: 7pt;
    }

    .home-selected-div.safety {
        height: 14px;
        margin-top: 15px;
    }

    div#home-selected-item-actions.safety ul li {
        display: inline-block;
        padding: 0;
    }

    #home-selected-item-actions.safety ul {
        width: 100%;
    }

    #summary-label.safety {
        margin-top: 6px;
        margin-bottom: 0;
        display: inline;
        width: 80%;
        width: calc(100% - 40px);
    }

    /*safety home table*/
    div#safety-home-table-header div span label {
        float: left;
        width: 100%;
        margin-top: 7px;
        font-size: 7pt;
        font-weight: bold;
    }

    #safety-home-table-header {
        height: 20px;
        width: auto;
        max-width: 823px;
    }

    #safety-home-table-header * {
        float: left;
        color: white;
        text-align: center;
        height: 25px;
    }

    .safety-home-table-data-row p {
        font-size: 6.5pt;
    }

    div.progress.safety {
        top: 167px;
        left: 37vw;
        position: absolute;
    }

    div#home-data-table.safety {
        margin-top: 10px;
    }

    .safety-home-table-data-row * {
        font-size: 6.5pt;
    }

    .trafi-stat-box {
        margin-bottom: 0;
        margin-left: 0;
    }

    #home-overall-summary > div:first-child {
        margin-top: 13px;
        width: 320px;
    }

    #main-content div#navigation {
        margin: -57px 20px 8px 20px;
        clear: both;
    }

    #table-body {
        float: left;
        margin-left: -29px;
    }

    #home-table-header > div {
        display: none;
    }

    .table-data-row > div {
        display: none;
    }

    #main-content > div#data-filter {
        margin: 0 10px 0 0;
        width: auto;
    }

    div#data-filter > div#date-range-select-div {
        float: right;
    }

    #main-content > #data-filter label {
        font-size: 7pt;
        font-weight: normal;
        display: inline-block;
    }

    #date-range-select {
        width: auto;
    }

    #data-to-list-and-export-div {
        min-height: 25px;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: auto;
        margin-right: 38px;
    }

    #main-content div#data-filter.safety {
        margin: 0;
        order: 1;
        float: none;
        padding-right: 0;
    }

    #export-data-div.safety {
        order: 2;
        margin: 0;
        margin-left: 11px;
        float: none;
    }

    #export-as-a-list.safety {
        font-size: 7pt;
    }

    #safety-home-table-header > div {
        border: none;
    }

    #main-content div#navigation ul li a {
        font-size: 12pt;
    }

    #home-selected-item-actions.safety ul > li:first-child {
        width: 108.8px;
    }

    #home-selected-item-actions.safety ul > li:nth-child(2) {
        width: 108.8px;
    }

    #home-selected-item-actions.safety ul > li:nth-child(3) {
        width: 108.8px;
    }

    #home-selected-item-actions.safety ul > li:nth-child(4) {
        width: 108.8px;
    }

    #home-selected-item-actions.safety ul > li:nth-child(5) {
        width: 108px;
    }

    #home-selected-item-actions.safety ul > li:nth-child(6) {
        width: 42.5px;
        border-right: none;
    }

    #home-selected-item-actions.safety ul > li:nth-child(7) {
        border-right: none;
    }

    #click-on-journey-heading {
        display: none;
    }

    #safety-home-table-header > div {
        display: none;
    }

    .safety-home-table-data-row > div {
        display: none;
    }

    div#data-filter > #date-inputs {
        display: block;
    }

    #arrange-by-label {
        color: white;
        font-size: 10pt;
        margin-top: 7px;
        margin-left: 24px;
    }

    #summary-label {
        color: white;
        font-size: 12pt;
        width: 80%;
        margin-left: 40px;
    }

    label.stat-box {
        float: right;
        display: inline;
        width: 84px;
        height: 10px;
        background-color: white;
        font-size: 7pt;
        text-align: center;
        padding-top: 5px;
        margin-left: 5px;
        margin-right: 5px;
        padding-bottom: 5px;
    }

    div.home-selected-summary {
        /*width: 322px;*/
        width: auto;
        float: right;
        display: block;
        margin-left: 0;
        margin-top: 3px;
        margin-bottom: 3px;
        margin-right: 32px;
        padding: 0;
        height: auto;
    }

    #home-overall-summary label.link.stat-label.safety {
        font-size: 7pt;
        margin-bottom: 5px;
        float: left;
    }

    div.home-selected-summary > div {
        /*width: 230px;*/
        width: auto;
        float: none;
        margin-bottom: 3px;
    }

    div#home-selected-actions {
        width: auto;
        width: calc(100% - 80px);
        float: left;
        margin-left: 0;
        margin-right: 0;
        padding-left: 40px;
        padding-right: 40px;
        margin-top: 0;
        margin-bottom: 0;
        height: auto;
    }

    div#home-selected-item-actions {
        margin-left: 0;
        width: 100%;
        float: left;
        height: 100%;
    }

    div#home-selected-actions .home-selected-div {
        margin-left: 0;
    }

    div#home-data-table {
        margin-top: 6px;
        margin-bottom: 10px;
        height: auto;
    }

    div#home-table-header {
        color: white;
        text-align: center;
        height: 20px;
    }

    div#home-table-header div span label {
        float: left;
        width: 100%;
        font-size: 7pt;
        font-weight: bold;
    }

    div#home-table-header div span label {
        margin-top: 6px;
    }

    span.middle {
        height: 25px;
    }

    span.right {
        height: 25px;
    }

    span.left {
        height: 25px;
    }

    div.table-data-row > div > p {
        font-size: 6.5pt;
    }

    .table-data-row-alarms > div {
        width: 12px;
        height: 12px;
        margin-left: 10px;
    }

    .table-data-row > div:nth-child(2) {
        border-left: 0 solid #414141;
    }

    div.progress.racing {
        top: 167px;
        left: 35%;
        left: 35vw;
        position: absolute;
    }

    div#home-data-table {
        /*width: 82vw;*/
        width: auto;
    }

    label.stat-label {
        font-size: 7pt;
        margin-top: 5px;
        float: none;
        display: flex;
        flex-direction: column;
    }

    div#home-selected-actions ul li, div.home-selected-summary ul li {
        border-left: none;
    }

    #date-range-select-div.styled-select > select {
        font-size: 7pt;
        text-align: center;
    }

    div#data-filter label {
        font-size: 7pt;
    }

    #main-content div#data-filter {
        border: none;
    }

    div#main-content > div#data-filter input[type="text"] {
        width: 52px;
        font-size: 6pt;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #main-content #data-to-list-and-export-div #data-filter.safety {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: wrap-reverse;
        margin-left: 36px;
    }

    #date-range-select-and-label-div {
        order: 2;
        margin-bottom: 5px;
    }

    #date-inputs.safety {
        order: 1;
    }

    div#home-selected-item-actions ul li {
        display: inline-block;
        width: auto;
    }

    div#home-selected-item-actions ul li:first-child {
        padding-left: 0;
    }

    #home-selected-item-actions ul {
        width: 100%;
    }

    /*#home-selected-item-actions ul > li:first-child {
        width: 108px;
    }

    #home-selected-item-actions ul > li:nth-child(2) {
        width: 94.8px;
    }

    #home-selected-item-actions ul > li:nth-child(3) {
        width: 108px;
    }

    #home-selected-item-actions ul > li:nth-child(4) {
        width: 72.5px;
    }*/
    #home-selected-actions > p {
        margin-top: 0;
        height: 15px;
    }

    #home-selected-actions > * {
        display: block;
        width: 100%;
    }

    #home-selected-item-actions a {
        font-size: 7pt;
    }

    .home-selected-div {
        font-size: 7pt;
        margin-top: 5px;
        float: none;
        flex: 1;
    }

    #total-laps-selected-label, #total-distance-selected-label {
        margin-left: 0;
    }

    div.apprise {
        left: 3% !important;
    }

    div#home-selected-actions.safety {
        /*  height: 100%;*/
        margin-bottom: 3px;
    }

    div#home-selected-actions.safety a {
        /*font-size: 8.3px;*/
    }

    div#home-selected-actions.safety ul li, div.home-selected-summary ul li {
        white-space: nowrap;
    }

    div#home-selected-actions.safety {
        margin-top: 0;
    }

    div#home-selected-actions.safety {
        margin-left: 0;
    }

    #home-selected-actions.safety > * {
        display: block;
    }
}

@media screen and (min-device-width: 0px) and (max-device-width: 400px) {
    label.trafi-stat-box {
        font-size: 6pt;
    }
}

@media screen and (max-device-width: 666px) {
    div#home-selected-item-actions ul li {
        display: inline-block;
        padding: 0;
    }

    /* div#home-selected-actions {
         width: 75%;
     }*/
}

/*endregion*/
