.add-distance-select2 .select2-container--focus {
    border-bottom: 1px solid $accent-color !important;
}

.google-add-destination {
    border: 1px solid $divider-color !important;
}

#add-distance-btn-id {
    width: 50px;
}

.disabled-td {
    background-color: $input-disabled-background-color !important;
}

.travelorder-panel,
.travelorder-panel-body {
    background-color: $content-background-color !important;
}
.to-panel-table > thead > tr > th {
    background-color: $modul-background-color !important;
}

.dropify-wrapper {
    border-style: dashed !important;
    color: $main-text-color;
    background-color: $content-background-color
}

.attachment-table > tbody > tr > td {
    background-color: $content-background-color !important;
    color: $main-text-color;
}

.add-distane-row {
    margin-left: -20px;
    margin-right: -20px;
    min-height: 80px;
    border-bottom: 1px solid $divider-color;
    background-color: $content-background-color;
}

.add-distance-select2 .select2-container {
    border: 1px solid $divider-color;
}

.destination-table:hover {
    background-color: $input-disabled-background-color !important;
}

.destination-table:hover 
.select2-selection {
    background-color: $input-disabled-background-color !important;
}

.add-distance-select2 
.select2-container--bootstrap 
.selection 
.select2-selection--single 
{
    padding-left: 6px !important;
    padding-bottom: 36px !important;
}

.add-distance-select2 
.select2-container--bootstrap 
.selection .select2-selection--single
.select2-selection__rendered 
{
    border-bottom: none !important;
    padding-top: 4px !important;
}

.panel-title > a:before {
    font-family: FontAwesome;
    content: "\f0d7";
    font-size: 15px;
}

.panel-title > a.collapsed:before {
    content: "\f0da";
}

.destination-table tbody tr td {
    padding-left: 10px !important;
}

.node-distance .select2-container--bootstrap {
    padding-top: 3px !important;
    max-width: auto;
}

.destination-table tbody tr td {
    padding-left: 10px !important;
}

.travelorder-dtpicker
.bootstrap-datetimepicker-widget.dropdown-menu {
    width: unset;
}

.travelorders-checkbox {
    margin-top: 12px !important;
}

#select2-EndLocation-results, #select2-StartLocation-results {
    height: 350px;
}

.destination-collapse-table {
    margin-bottom: 5px !important;
    border-left: none;
    border-right: none;
}

.destination-collapse-table .form-group {
    margin-bottom: 0px !important;
}

.destination-collapse-table tbody tr td {
    padding: 10px !important;
}

.travelorder-panel td {
    padding: 0px !important;
}

.travelorder-panel-body td {
    padding-left: 10px;
    padding-top: 10px;
    vertical-align: middle;
}

.travelorder-dtpicker
.bootstrap-datetimepicker-widget table td.day {
    height: 5px;
    line-height: 5px;
    width: 5px;
}

.add-distance-table {
    margin-top: 10px;
    margin-left: 10px
}

.travel-order-content .divided-content-toggle{
    top:112px !important;
}

.select2-container {
    background-color: unset !important;
}

.dropdown-preview {
    position: relative;
    display: inline-block;
}

.dropdown-content-preview {
    display: none;
    position: absolute;
    background-color: $content-background-color;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content-preview a {
    color: $main-text-color;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align:left;
}

.dropdown-content a:hover {
    background-color: $input-disabled-background-color;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.open-position {
    color: $main-text-color;
    cursor:pointer !important;
}

a.open-position:hover {
    color: $main-text-color;
}

input[type=file]:focus, input[type=radio]:focus, input[type=checkbox]:focus {
    outline: 5px auto $success-color;
}

.travel-order-map{
    height: 84vh;
}

.table.to-custom-mobile-table th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.to-footer {
    z-index: 3;
}

.to-footer > .col-sm-4 > .form-group {
    display: table-cell;
}

.distances-icons {
    padding-top: 7px;
}

#to-docType-div .select2-selection--single {
    background: transparent !important;
}

#purposeDropdown .select2-selection__rendered {
    width: 180px;
}

.wf-modal-title {
    height: 30px;
    background-color: $input-disabled-background-color;
    padding: 5px 10px;
}

.wf-modal-title button {
    opacity: 1;
}

.z-index-4 {
    z-index: 4 !important;
}

.filter-search-icon {
    position: absolute;
    top: 50%;
    right: 0;
    padding: 3px;    
}

.theme-color {
    color: $accent-color;
}

.destination-table {
    position: relative;
}

.destination-table > tbody > tr > .showHideDropdown {
    position: absolute;
    display: block;
    z-index: 11;
    right: 19px;
    top: 3px;
}

.destination-table > tbody > tr > .showHideDropdown > a {
    background-color: unset !important;
}

.icons-padding {
    padding-right: 1px;
    padding-top: 0px
}

.dropdown-position {
    top: 45px;
    left: calc(100% - 75px);
}

.google-btn-focused {
    background-color: #FFF8E9 !important;
}

.document-head-disabled-input .select2-selection--single {
    pointer-events: none;
    background-color: $input-disabled-background-color;
}

.document-head-disabled-input .select2-container {
    cursor: not-allowed;
}

.print-btn-disable {
    display: block !important;
    color: #a1a1a1 !important;
    background-color: #f1f2f4 !important;
    pointer-events: none;
    cursor: not-allowed !important;
}

input.neutral-cb ~ span > small {
    left: 6px !important;
}

.neutral-cb-bg input.neutral-cb ~ span {
    background-color: rgb(237, 237, 237) !important;
}

.sumhours-checkbox {
    text-align: right;
    padding-right: 0px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.custom-typeahead-dropdown{
    padding-top: 0px !important;
}

.custom-typeahead-content{
    margin-top: 8px !important;
}

#TrvlPositionRenumber {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;

    th, td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }

    thead th {
        background-color: #f2f2f2;
    }

    tbody tr {
        cursor: move;

        &:hover {
            background-color: #f9f9f9;
        }
    }

    .icon-cell {
        width: 30px;
        text-align: center;
        font-size: 16px;
        cursor: move;
    }

    &.table-striped > tbody > tr:nth-of-type(odd) {
        background-color: #f9f9f9;
    }
}

.renumbering-table-wrapper{
    margin-bottom: 30px;
    margin-left: 15px;
    margin-right: 15px;
}

.travel-order-task {
    float: left;

    button.btn {
        padding: 6px;
        border-radius: 6px;
        margin-top: 6px;
        margin-bottom: 6px;
        border: none;

        &.btn-outline {
            border: 1px solid $divider-color;
        }
    }

    .travel-order-task-comment {
        padding-left: 16px;
        padding-right: 16px;
    }

    .travel-order-task-actions {
        padding-right: 12px;
    }

    .travel-order-task-completed-msg {
        padding-right: 12px;
    }

    &.travel-order-task-completed {
        .travel-order-task-comment {
            padding-left: 16px;
            padding-right: 12px;
        }
    }

    &.travel-order-task-has-actions {
        .travel-order-task-comment {
            padding-left: 16px;
            padding-right: 12px;
        }
    }
}

.purposeDropdown {
    display: flex;
    justify-content: space-between;
}

// Custom media queries
@media only screen and (min-width: 1400px) {
    #th-button {
        width: 38.25px !important;
    }
}

@media only screen and (min-width: 1300px) {
    .travelorder-dtpicker {
        min-width: 155px;
    }
}

@media only screen and (max-width: 1400px) {
    .travel-order-map {
        height: 83vh;
    }
}

@media only screen and (min-width: 425px) and (max-width: $min-screen-sm) {
    .destination-table td:first-child .row {
        width: 315px !important;
    }

    .distances-icons {
        display: inline-table;
    }
}

@media only screen and (min-device-width: 425.1px) {
    .divided-content-scrollable-not-mobile {
        max-height: calc(100vh - 320px);
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
    }
}

@media only screen and (max-width: 425px) {
    #travel-orders-footer {
        margin-top: 60%;
    }

    .node-distance .select2-container--bootstrap {
        width: 200px !important;
    }

    .destination-table td {
        width: 100% !important;
    }

    .travel-order-buttons a.close-btn {
        padding-bottom: 12px;
        background-color: $content-background-color;
    }

    .destination-table tr {
        display: grid;
    }
}

@media only screen and (min-width: 1280px) and (max-width: 1380px) {
    .distances-icons {
        padding-left: 0;
    }
}

//tablet and mobile
@media only screen and (max-device-width: $min-screen-sm) {
    .travel-order-map {
        height: 82vh;
    }

    // Allows-Expenses table
    .allows-expenses-table > tbody > tr > td input {
        height: 38px;
    }

    .allows-expenses-table label.custom-checkbox-container {
        margin-top: 6px;
    }

    .add-del-allow-expense {
        width: 100%;
        padding-top: 10px;
    }

    .allows-expenses-table .select2-container--bootstrap {
        width: -webkit-fill-available !important;
    }

    .allows-expenses-table .select2-selection--single {
        background: transparent;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(1n):before {
        content: attr(label);
        font-weight: bold;
        width: 120px;
        min-width: 120px;
        place-self: center;
    }

    .sumhours-checkbox{
        text-align:left;
    }

    .mobile-scroll-wrapper .document-footer {
        margin: 0px !important;
    }

    .travel-order-task-actions {
        width: 100%;

        button {
            width: 49%;
        }
    }
}

//tablet
@media only screen and (min-device-width: $max-screen-xs) and (max-device-width: $min-screen-sm) {
    .to-custom-mobile-table > thead > tr > th:nth-child(1n) {
        display: none;
    }

    .to-custom-mobile-table > tbody > label {
        height: 30px;
        padding-left: 10px;
        padding-top: 10px;
    }

    .to-custom-mobile-table > thead > tr > th:nth-child(1),
    .to-custom-mobile-table > thead > tr > th:nth-child(2),
    .to-custom-mobile-table > thead > tr > th:nth-child(3),
    .to-custom-mobile-table > thead > tr > th:nth-child(4) {
        display: inline-flex;
        width: 25% !important;
    }

    .to-custom-mobile-table > tbody > tr > td:nth-child(1n) {
        display: flex;
        background: $content-background-color;
        width: auto !important;
        padding: 10px !important;
    }

    .to-custom-mobile-table > tbody > tr > td:nth-child(1),
    .to-custom-mobile-table > tbody > tr > td:nth-child(2),
    .to-custom-mobile-table > tbody > tr > td:nth-child(3),
    .to-custom-mobile-table > tbody > tr > td:nth-child(4),
    .to-custom-mobile-table > tbody > tr > td:nth-child(5) {
        display: inline-table;
        width: 25% !important;
        background: $modul-background-color;
        border-top: 1px solid $divider-color;
        border-bottom: 1px solid $divider-color;
        height: 36px;
    }

    .to-custom-mobile-table > tbody > tr > td:nth-child(1n):before {
        content: attr(label);
        font-weight: bold;
        width: 120px;
        min-width: 120px;
        text-align: left;
    }

    .to-custom-mobile-table > tbody > tr > td:nth-child(2):before,
    .to-custom-mobile-table > tbody > tr > td:nth-child(3):before,
    .to-custom-mobile-table > tbody > tr > td:nth-child(4):before,
    .to-custom-mobile-table > tbody > tr > td:nth-child(5):before {
        display: none;
    }

    .dailyallows-table > tbody > tr > td:last-child {
        display: none;
    }

    .to-dailyallow-create {
        border-left: 5px solid $accent-color;
    }

    .custom-checkbox-container .custom-checkbox-checkmark:first-child {
        margin-top: 7px;
    }

    .divided-content-scrollable {
        margin-bottom: 120px;
    }

    .icons-padding {
        padding-right: 35px;
    }

    .date-mobile-padding i {
        padding-left: 12px;
    }

    // Allows-Expenses table

    .allows-expenses-table > thead > tr > th:nth-child(1n) {
        display: none;
    }

    .allows-expenses-table > thead > tr > th:nth-child(1),
    .allows-expenses-table > thead > tr > th:nth-child(2),
    .allows-expenses-table > thead > tr > th:nth-child(3),
    .allows-expenses-table > thead > tr > th:nth-child(4) {
        display: inline-flex;
        width: 23% !important;
    }

    .allows-expenses-table > thead > tr > th:nth-child(5) {
        display: inline-flex;
        width: 8% !important;
        padding: 17px;
    }

    .allows-expenses-table > thead > tr > th:nth-child(4) {
        min-width: unset !important;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(1n) {
        display: none;
        background: $content-background-color;
        height: 40px;
        padding-left: 6px !important;
        text-align: unset;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(2),
    .allows-expenses-table > tbody > tr > td:nth-child(3),
    .allows-expenses-table > tbody > tr > td:nth-child(4),
    .allows-expenses-table > tbody > tr > td:nth-child(5) {
        display: inline-flex;
        width: 23% !important;
        background: $modul-background-color;
        border-top: 1px solid $divider-color;
        border-bottom: 1px solid $divider-color;
        place-items: center;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(3) input,
    .allows-expenses-table > tbody > tr > td:nth-child(4) input,
    .allows-expenses-table > tbody > tr > td:nth-child(5) input {
        background: transparent;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(2):before,
    .allows-expenses-table > tbody > tr > td:nth-child(3):before,
    .allows-expenses-table > tbody > tr > td:nth-child(4):before,
    .allows-expenses-table > tbody > tr > td:nth-child(5):before {
        display: none;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(6) {
        display: inline-table;
        width: 8% !important;
        background: $modul-background-color;
        border-top: 1px solid $divider-color;
        border-bottom: 1px solid $divider-color;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(5) {
        display: inline-grid;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(5) label.custom-checkbox-container {
        margin-top: 0px;
    }
}

//mobile
@media only screen and (max-width: $max-screen-xs) {
    .travelOrder-form-group {
        width: 80%;
    }

    table.to-custom-mobile-table > thead > th:nth-child(1n) {
        display: none;
    }

    table.to-custom-mobile-table > thead > tr > th > label,
    table.to-custom-mobile-table > tbody > tr > td > div > label {
        height: 30px;
        padding-left: 10px;
        padding-top: 10px;
    }

    table.to-custom-mobile-table > thead > tr > th:nth-child(1),
    table.to-custom-mobile-table > thead > tr > th:nth-child(2) {
        display: inline-flex;
        width: 50% !important;
    }

    table.to-custom-mobile-table > tbody > tr > td:nth-child(1n) {
        display: flex;
        background: $content-background-color;
        width: auto !important;
        padding: 10px !important;
    }

    table.to-custom-mobile-table > tbody > tr > td:nth-child(1),
    table.to-custom-mobile-table > tbody > tr > td:nth-child(2),
    table.to-custom-mobile-table > tbody > tr > td:nth-child(3) {
        display: inline-table;
        width: 50% !important;
        background: $modul-background-color;
        border-top: 1px solid $divider-color;
        border-bottom: 1px solid $divider-color;
        height: 36px;
    }

    table.to-custom-mobile-table > tbody > tr > td:nth-child(1n):before {
        content: attr(label);
        font-weight: bold;
        width: 120px;
        min-width: 120px;
        text-align: left;
    }

    table.to-custom-mobile-table > tbody > tr > td:nth-child(2):before,
    table.to-custom-mobile-table > tbody > tr > td:nth-child(3):before {
        display: none;
    }

    .icons-right-mobile {
        display: flex;
        justify-content: flex-end;
        margin-right: 20px;
    }

    .destination-table > tbody > tr > .showHideDropdown {
        bottom: 32px;
        top: unset !important;
    }

    .date-mobile-padding i {
        padding-left: 12px;
    }

    // Allows-Expenses table
    .allows-expenses-table > thead > tr > th:nth-child(1n) {
        display: none;
    }

    .allows-expenses-table > thead > tr > th:nth-child(2) {
        display: inline-flex;
        width: 80%;
    }

    .allows-expenses-table > thead > tr > th:nth-child(3) {
        display: inline-flex;
        width: 20% !important;
        padding: 17px;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(1n) {
        display: none;
        background: $content-background-color;
        height: 40px;
        padding-left: 6px !important;
        text-align: unset;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(2) {
        display: inline-flex;
        width: 80%;
        background: $modul-background-color;
        border-top: 1px solid $divider-color;
        border-bottom: 1px solid $divider-color;
        place-items: center;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(3) {
        display: inline-flex;
        width: 20%;
        background: $modul-background-color;
        border-top: 1px solid $divider-color;
        border-bottom: 1px solid $divider-color;
        padding-left: 0px !important;
    }

    .allows-expenses-table > tbody > tr > td:nth-child(2):before,
    .allows-expenses-table > tbody > tr > td:nth-child(3):before {
        display: none;
    }
}