﻿:root,
[data-bs-theme=light] {
    --bs-tertiary-color: rgba(33, 37, 41, 0.5);
    --bs-tertiary-color-rgb: 33, 37, 41;
    --bs-tertiary-bg: #f8f9fa;
    --bs-tertiary-bg-rgb: 248, 249, 250;
    --bs-heading-color: inherit;
    --bs-link-color: var(--bs-primary);
    --bs-link-color-rgb: 66, 118, 206;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #0a58ca;
    --bs-link-hover-color-rgb: 10, 88, 202;
    --bs-code-color: #d63384;
    --bs-highlight-color: #212529;
    --bs-highlight-bg: #fff3cd;
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.625rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-border-radius-pill: 50rem;
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
    --bs-form-valid-color: #198754;
    --bs-form-valid-border-color: #198754;
    --bs-form-invalid-color: #dc3545;
    --bs-form-invalid-border-color: #dc3545;
}


body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    /*word-spacing: 0.3rem;*/
}

p > a {
    text-decoration : none!important
}



.table > thead > tr th {
    color: var(--bs-primary-on-secondary) !important;
    background-color: var(--bs-secondary) !important;
    vertical-align: middle;
    border-bottom-width: 0;
}
.table > thead > tr:first-child th:first-child {
    border-top-left-radius: var(--bs-border-radius);
    border-bottom-left-radius: var(--bs-border-radius);
    border-bottom-width: 0;
}

.table > thead > tr:first-child th:last-child {
    border-top-right-radius: var(--bs-border-radius);
}
.table > thead > tr:last-child th:last-child {
    border-bottom-right-radius: var(--bs-border-radius);
}


.table > thead > tr th[colspan]:not([colspan="1"]) {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

dt {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom:0.5rem;
}

div.dropdown-menu.dt-button-collection {
    width: auto;
}

.form-select {
    background-image: linear-gradient(60deg, transparent 50%, var(--bs-primary) 60%), linear-gradient(120deg, var(--bs-primary) 40%, transparent 50%) !important;
    background-position: calc(100% - 20px) center, calc(100% - 11.5px) center, 100% 0;
    background-size: 9px 12px, 9px 12px;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.btn:not(.btn-link):not(.btn-tool) {
    --bs-btn-border-color: #d7dde4;
    --bs-btn-active-border-color: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
}


.btn-primary {
    --bs-btn-color: var(--bs-secondary-on-primary);
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: var(--bs-secondary-on-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: var(--bs-secondary-on-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-secondary-on-primary);
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-secondary {
    --bs-btn-color: var(--bs-primary-on-secondary);
    --bs-btn-bg: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-hover-color: var(--bs-primary-on-secondary);
    --bs-btn-hover-bg: var(--bs-secondary);
    --bs-btn-hover-border-color: #565e64;
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: var(--bs-primary-on-secondary);
    --bs-btn-active-bg: var(--bs-secondary);
    --bs-btn-active-border-color: #51585e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-primary-on-secondary);
    --bs-btn-disabled-bg: var(--bs-secondary);
    --bs-btn-disabled-border-color: var(--bs-secondary);
}

.btn-close-on-secondary {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
}

.app-sidebar, .app-sidebar-right {
    --lte-sidebar-hover-bg: var(--bs-secondary);
    --lte-sidebar-color: var(--bs-secondary);
    --lte-sidebar-hover-color: var(--bs-primary-on-secondary);
    --lte-sidebar-active-color: var(--bs-primary-on-secondary);
    --lte-sidebar-menu-active-bg: var(--bs-secondary);
    --lte-sidebar-menu-active-color: var(--bs-primary-on-secondary);
    --lte-sidebar-submenu-bg: transparent;
    --lte-sidebar-submenu-color: #777;
    --lte-sidebar-submenu-hover-color: var(--bs-primary-on-secondary);
    --lte-sidebar-submenu-hover-bg: var(--bs-secondary);
    --lte-sidebar-submenu-active-color: var(--bs-primary-on-secondary);
    --lte-sidebar-submenu-active-bg: var(--bs-secondary);
    --lte-sidebar-header-color: #31373d;
}

.sidebar-wrapper .sidebar-menu > .nav-item.menu-open .nav-link.active:not(:hover) {
    --lte-sidebar-menu-active-color: var(--bs-primary);
}

.progress,
.progress-stacked {
    --bs-progress-height: 1rem;
    --bs-progress-font-size: 0.75rem;
    --bs-progress-bg: var(--bs-secondary-bg);
    --bs-progress-border-radius: var(--bs-border-radius);
    --bs-progress-box-shadow: var(--bs-box-shadow-inset);
    --bs-progress-bar-color: #fff;
    --bs-progress-bar-bg: var(--bs-secondary);
    --bs-progress-bar-transition: width 0.6s ease;
}


.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--bs-secondary);
    --bs-pagination-bg: var(--bs-body-bg);
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: var(--bs-border-color);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: var(--bs-secondary);
    --bs-pagination-hover-bg: var(--bs-tertiary-bg);
    --bs-pagination-hover-border-color: var(--bs-border-color);
    --bs-pagination-focus-color: var(--bs-secondary);
    --bs-pagination-focus-bg: var(--bs-primary-bg);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-pagination-active-color: var(--bs-primary-on-secondary);
    --bs-pagination-active-bg: var(--bs-secondary);
    --bs-pagination-active-border-color: var(--bs-secondary);
    --bs-pagination-disabled-color: var(--bs-primary-color);
    --bs-pagination-disabled-bg: var(--bs-primary-bg);
    --bs-pagination-disabled-border-color: var(--bs-border-color);
}




.app-sidebar-right {
    z-index: 1010;
    grid-area: lte-app-sidebar-right;
    min-width: var(--lte-sidebar-width);
    max-width: var(--lte-sidebar-width);
    
    position: fixed;

    bottom: 0;
    height: calc(100vh - 57px);

    top: 57px;
    right: -250px;
    width: 250px;
    -webkit-transition: right .3s ease-in-out;
    -o-transition: right .3s ease-in-out;
    transition: right .3s ease-in-out;
}


.dropdown-menu {
    --bs-dropdown-link-active-color: var(--bs-secondary-on-primary);
    --bs-dropdown-link-active-bg: var(--bs-primary);
}

.os-theme-light {
    --os-handle-bg: hsla(0, 0%, 50%, 0.3);
    --os-handle-bg-hover: hsla(0, 0%, 50%, 0.55);
    --os-handle-bg-active: hsla(0, 0%, 50%, 0.66);
}


.app-sidebar-right > .tab-content {
    padding: 10px 15px;
}


.app-sidebar-right-heading {
    font-weight: 400;
    font-size: 16px;
    padding: 10px 0;
    margin-bottom: 10px;
    color: var(--lte-sidebar-color);
}


.app-sidebar-right-subheading {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: var(--lte-sidebar-color);
}

.app-sidebar-right .app-sidebar-right-menu > li > a .menu-info > p {
    color: #5e5e5e;
    margin: 0;
    padding:0;
    font-size: 11px;
}

.app-sidebar-right-menu {
    list-style: none;
    padding: 0;
    margin: 0 -15px;
}

.app-sidebar-right-menu > li > a {
    display: block;
    padding: 10px 15px;
}

.app-sidebar-right-menu > li > a:before,
.app-sidebar-right-menu > li > a:after {
    content: " ";
    display: table;
}

.app-sidebar-right-menu > li > a:after {
    clear: both;
}

.app-sidebar-right-menu > li > a:hover {
    background: #f4f4f5;
}

.app-sidebar-right-menu > li > a > .app-sidebar-right-subheading {
    margin-top: 0;
}

.app-sidebar-right-menu .menu-icon {
    float: left;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
}

.app-sidebar-right-menu .menu-info {
    margin-left: 45px;
    margin-top: 3px;
    line-height: 12px;
}

.app-sidebar-right-menu .menu-info > .app-sidebar-right-subheading {
    margin: 0;
}

.app-sidebar-right-menu .menu-info > p {
    margin: 0;
    font-size: 11px;
}

.app-sidebar-right-menu .progress {
    margin: 0;
}


@media (prefers-reduced-motion: reduce) {
    .app-sidebar-right {
        transition: none;
    }
}


.sidebar-right-open.layout-fixed .app-sidebar-right {
    right: 0;
}

.sidebar-right-open.layout-fixed .app-sidebar-right .sidebar-wrapper {
    height: calc(100vh - (calc(3.5rem + 1px)));
}

@media (min-width: 768px) {
    .sidebar-right-open .app-main, .sidebar-right-open .right-side, .sidebar-right-open .app-footer {
        margin-right: 250px
    }
}



@media (min-width: 992px) {

    .sidebar-expand-lg.sidebar-mini.sidebar-open .app-header,
    .sidebar-expand-lg.sidebar-mini.sidebar-open .app-main,
    .sidebar-expand-lg.sidebar-mini.sidebar-open .app-footer {
        -webkit-transition: left .3s ease-in-out;
        -o-transition: left .3s ease-in-out;
        transition:left .3s ease-in-out;
    }

    .sidebar-expand-lg.sidebar-mini.sidebar-collapse .app-header,
    .sidebar-expand-lg.sidebar-mini.sidebar-collapse .app-main,
    .sidebar-expand-lg.sidebar-mini.sidebar-collapse .app-footer {
        margin-left: 74px;
 
    }

    .sidebar-expand-lg.sidebar-mini.sidebar-collapse .app-sidebar {
        position: fixed;
    }
}


.skin-blue .sidebar-menu > li > a,
.skin-blue .treeview-menu > li > a {
    display: flex;
    line-height: 24px;
}

.sidebar-menu > li > a > .fa, .sidebar-menu > li > a > .glyphicon, .sidebar-menu > li > a > .ion,
.sidebar-menu > li > a > .oi,
.treeview-menu > li > a > .fa, .treeview-menu > li > a > .glyphicon, .treeview-menu > li > a > .ion,
.treeview-menu > li > a > .oi {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 24px;
    mask-position: left !important;
    background-position: left !important;
    /*margin-right: 12px;*/
}


.skin-blue .main-header .navbar .sidebar-toggle:hover {
    background: rgba(0,0,0,0.2) !important;
}

.fixed .app-sidebar-right {
    overflow-y: hidden;
}
.app-sidebar-right > .tab-content {
    overflow-y: auto;
    overflow-x: auto;
    height: calc(100% - 125px);
}

.app-sidebar-right-light .nav-tabs.app-sidebar-right-tabs {
    display: flex;
    flex-direction: row;
    align-items: stretch
}

.app-sidebar-right .nav-tabs.app-sidebar-right-tabs > li {
    width: auto;
    display: flex;
}

.app-sidebar-right .nav-tabs.app-sidebar-right-tabs > li a {
    width: auto;
    display: flex;
    margin-bottom: 0;
    padding: 0.25rem 0.25rem;
    font-size: 0.9rem;
}

.app-sidebar-right .nav-tabs.app-sidebar-right-tabs > li i {
    align-self: center
}







.text-primary-on-secondary {
    color: var(--bs-primary-on-secondary) !important
}

.text-secondary-on-primary {
    color: var(--bs-secondary-on-primary) !important
}


.bg-primary-on-secondary {
    background-color: var(--bs-primary-on-secondary) !important
}

.bg-secondary-on-primary {
    background-color: var(--bs-secondary-on-primary) !important
}


input[type=range]::-webkit-slider-thumb {
    background-color: var(--bs-secondary) !important;
}

input[type=range]::-moz-range-thumb {
    background-color: var(--bs-secondary) !important;
}




.bg-gray {
    color: #000;
    background-color: #d2d6de !important;
}

.bg-gray-light {
    background-color: #f7f7f7;
}

.bg-black {
    background-color: #111111 !important;
}


.bg-red {
    background-color: #dd4b39 !important;
    color: #fff;
}

.bg-green {
    background-color: #00a65a !important;
    color: #fff;
}


@media (max-width: 575.98px) {
    .small-box .small-box-icon {
       display: block!important;
    }
}

.daterangepicker {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow);
}

.daterangepicker, .daterangepicker .ranges, .daterangepicker .ranges ul {
    width: 100% !important;
}
.daterangepicker .ranges li {
    font-size: inherit;
}

.small-box, .sidebar-menu .nav-link, .treeselect-input, .card-body.table-responsive {
    border-radius: var(--bs-border-radius);
}


.total-section .small-box-icon {
    height: 70px;
    font-size: 70px;
    line-height: 70px;
    margin-top: 15px
}

.loader-overlay {
}

    .loader-overlay:after {
        content: '';
        background-image: url('../images/site/ajax-loader4.gif');
        background-color: rgba(0,0,0,.1);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-position: center center;
        background-repeat: no-repeat;
        z-index: 2000;
    }

.modal-dialog-scrollable .modal-body {
    overflow: auto;
    max-height: calc(100vh - 190px);
}


#posModal.modal {
    max-width: 380px;
    width: 100%;
    height: auto;
    /*margin: 0 auto;*/
    overflow: visible;
    background: none;
    /*position: static;*/
    left: calc(50% - 190px);
    bottom: 24px;
    pointer-events: none;
    top: auto;
}


/*@media (max-width: 767px) {
    #posModal.modal {
        transform: translate(-45%, 0);
    }
}*/

#posModal .modal-dialog {
    max-width: 380px;
    width: 100%;
    margin: 0;
    pointer-events: all;
}

.MuiTableBody-root tr td {
    padding: 5px;
}


#hide_geo, #hide_map {
    width: 100%;
    padding: 0 10px;
}

.ol-custom-left {
    z-index: 100;
    top: 4.5em;
    left: .5em;
}

.ol-custom-right {
    z-index: 100;
    top: 0.5em;
    right: .5em;
}


.ol-custom-left-top {
    z-index: 100;
    top: 0.5em;
    left: 3em;
}

    .ol-custom-left-top button {
        margin: 0 5px !important;
        font-size: 18px !important;
    }

    .ol-custom-left-top label {
    }



div.dataTables_wrapper {
    min-height: 300px;
}

input[type=range] {
    -webkit-appearance: none;
}

    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 5px;
        background: #dddddd;
        border: none;
        border-radius: 3px;
    }

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        border: none;
        height: 16px;
        width: 16px;
        border-radius: 50%;
        margin-top: -4px;
    }


    input[type=range]:focus {
        outline: none;
    }

        input[type=range]:focus::-webkit-slider-runnable-track {
            background: #ccc;
        }

input[type=range] {
    /* fix for FF unable to apply focus style bug  */
    border: 1px solid white;
    /*required for proper track sizing in FF*/
    width: 100%;
}

    input[type=range]::-moz-range-track {
        width: 100%;
        height: 5px;
        background: #ddd;
        border: none;
        border-radius: 3px;
    }

    input[type=range]::-moz-range-thumb {
        border: none;
        height: 16px;
        width: 16px;
        border-radius: 50%;
    }

    /*hide the outline behind the border*/
    input[type=range]:-moz-focusring {
        outline: 1px solid white;
        outline-offset: -1px;
    }

    input[type=range]:focus::-moz-range-track {
        background: #ccc;
    }


hr {
    border-top: 3px solid var(--bs-secondary);
    margin-top: 5px;
    margin-bottom: 20px;
    opacity: 1;
}


.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    min-height: 175px;
    height: auto;
}

option:disabled {
    color: #c5c5c5;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #333 !important;
    background-color: #e4e4e4;
    border: 1px solid #aaa;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999;
}
.select2-container .select2-selection--single {
    height: 34px;
}

.select2-container .select2-selection--multiple {
    min-height: 34px;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline;
}


.pagination {
    margin: 5px 0;
}


/*.btn-default.btn {
    background-color: #5BB75B;
    color: white;
}*/

.btn-default.btn.active {
    background-color: #5BB75B;
    color: white;
}


.btn-default.btn-on, .btn-default.btn-off {
    background-color: white;
    color: black;
}

.btn-default.btn-on.active {
    background-color: #5BB75B;
    color: white;
}

.btn-default.btn-off.active {
    color: black;
    background-color: #e7e7e7;
}

.btn-switch {
    height: 38px;
    line-height: 38px;
}


.btn-list {
    width: 100%;
    text-align: left;
    padding: 3px 20px;
}

.btn-excel {
    color: #3c763d!important;
}


    .btn-list:hover {
        text-decoration: none;
        background-color: #e1e3e9;
        color: #333;
    }



/*tree select*/

.treeselect-list__item--checked .treeselect-list__item-checkbox-container, .treeselect-list__item--partial-checked .treeselect-list__item-checkbox-container {
    background-color: var(--bs-secondary) !important;
}

@media (min-width: 768px) {

    .treeselect-list {
        min-width: 100%;
        width: auto;
    }
}


.treeselect-input {
    min-height: 38px !important;
}

.driver-vehicle-item i {
    opacity: 0;
}

.driver-vehicle-item.active i {
    opacity:1;
}



.app-footer {
    color: var(--bs-secondary);
}



.vehicle-block {
}



.vehicle-block .title, .vehicle-block .modal-title{
    display: block;
    margin-left: 50px;
    font-size: 16px;
    font-weight: 600;
}

.vehicle-block .description, .vehicle-block .modal-sub-title {
    display: block;
    margin-left: 50px;
}

.vehicle-block .rounded-circle {
    position: relative;
    float: left;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    background-color: #f2f2f2;
}

.vehicle-block .rounded-circle.online:after, .vehicle-block .rounded-circle.offline:after {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 9px;
    height: 9px;
    content: '';
    border-radius: 50%;
}

.vehicle-block .rounded-circle.online:after {
    background-color: green;
}
.vehicle-block .rounded-circle.offline:after {
    background-color: red;
}