:root {
    --primary-color: whitesmoke;
    --font-color: black;
    --line-color: steelblue;
    --spinner-color:#ffab00;
    --shadow:rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] {
    --primary-color: #1a1a27;
    --font-color: whitesmoke;
    --line-color: #ffab00;
}

.box-style {
    box-shadow: 0 0 3px -1px;
    background-color: white;
    border-radius: 4px;
}
.container-shadow {
    box-shadow: 0px 0px 5px 0px var(--shadow);
    background-color: var(--bs-white);
}

.btn-circle.btn-sm {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 15px;
    font-size: 8px;
    text-align: center;
}
.modal-dialog-scrollable {
    height: calc(100% - 1rem) ;
}

.btn-circle.btn-md {
    width: 50px;
    height: 50px;
    padding: 7px 10px;
    border-radius: 25px;
    font-size: 10px;
    text-align: center;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 12px;
    text-align: center;
}

.fa-info-button {
    color: var(--bs-secondary);
    cursor: pointer;
    transition: color .15s ease-in-out;
}
.fa-info-button:hover {
    color: var(--bs-primary);
    cursor: pointer;
    
}

body,
html {
    background-color: var(--primary-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

main {
    background-color: var(--primary-color);
    min-height: calc(100vh - 80px);
    /* color: var(--font-color); */
}

.page-title {
    color: var(--font-color);
    stroke: none;
    font-size: 2.5rem;
    /* padding: 0.6rem; */
}

#page-number,
.page-content {
    font-size: 1.1rem;
    padding: 2px;
}
.date-panel{
    max-width: fit-content;
}



.x-axis,
.y-axis {
    fill: none;
    stroke: none;
    color: var(--font-color);
    font-size: 0.8rem;
}

.dot {
    fill: var(--line-color);
    stroke: var(--font-color);
}

.label,
.chart-title {
    stroke: none;
    fill: var(--font-color);
}

.chart-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.chart-subtitle {
    font-size: 1rem;
    color: gray;
}
.chart-box {
    padding: 7px;
}
.chart-box > div {
    background-color: var(--bs-white);
    box-shadow: 0 0 5px 0 var(--shadow);
}

.graph-div {
    min-width: calc(100vw-150px);

    margin-bottom: 1rem;
    /* border-radius: 15px; */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 2px rgba(0, 0, 0, 0.3), 0 0 4px 1px rgba(0, 0, 0, 0.2);
}

.time-card {
    margin-top: 1rem;
    margin-left: 2rem;
    margin-right: 2rem;
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 2px rgba(0, 0, 0, 0.3), 0 0 4px 1px rgba(0, 0, 0, 0.2);
}

.grid-background {
    stroke: none;
    fill-opacity: 0;
    fill: black;
}

.grid line {
    stroke: var(--font-color);
    stroke-opacity: 0.15;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

em {
    margin-left: 10px;
    font-size: 1rem;
    color: var(--font-color);
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked+.slider {
    background-color: #66bb6a;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.spinner > div {
  width: 18px;
  height: 18px;
  background-color: var(--bs-white);
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.sk-fading-circle {
    position: relative;
    display: none;
}

.sk-fading-circle .sk-circle {
    width: 50px;
    height: 50px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9999;
}

.sk-fading-circle .sk-circle:before {
    content: '';
    display: block;
    margin: 0 auto;
    width: 26%;
    height: 61%;
    background-color: var(--spinner-color);
    border-radius: 100%;
    -webkit-animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
    animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
}

.sk-fading-circle .sk-circle2 {
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg);
}

.sk-fading-circle .sk-circle3 {
    -webkit-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    transform: rotate(60deg);
}

.sk-fading-circle .sk-circle4 {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.sk-fading-circle .sk-circle5 {
    -webkit-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    transform: rotate(120deg);
}

.sk-fading-circle .sk-circle6 {
    -webkit-transform: rotate(150deg);
    -ms-transform: rotate(150deg);
    transform: rotate(150deg);
}

.sk-fading-circle .sk-circle7 {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.sk-fading-circle .sk-circle8 {
    -webkit-transform: rotate(210deg);
    -ms-transform: rotate(210deg);
    transform: rotate(210deg);
}

.sk-fading-circle .sk-circle9 {
    -webkit-transform: rotate(240deg);
    -ms-transform: rotate(240deg);
    transform: rotate(240deg);
}

.sk-fading-circle .sk-circle10 {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.sk-fading-circle .sk-circle11 {
    -webkit-transform: rotate(300deg);
    -ms-transform: rotate(300deg);
    transform: rotate(300deg);
}

.sk-fading-circle .sk-circle12 {
    -webkit-transform: rotate(330deg);
    -ms-transform: rotate(330deg);
    transform: rotate(330deg);
}

.sk-fading-circle .sk-circle2:before {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.sk-fading-circle .sk-circle3:before {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.sk-fading-circle .sk-circle4:before {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.sk-fading-circle .sk-circle5:before {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

.sk-fading-circle .sk-circle6:before {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s;
}

.sk-fading-circle .sk-circle7:before {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s;
}

.sk-fading-circle .sk-circle8:before {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

.sk-fading-circle .sk-circle9:before {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s;
}

.sk-fading-circle .sk-circle10:before {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s;
}

.sk-fading-circle .sk-circle11:before {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s;
}

.sk-fading-circle .sk-circle12:before {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleFadeDelay {
    0%,
    39%,
    100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

@keyframes sk-circleFadeDelay {
    0%,
    39%,
    100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

.grayscale-filter {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
}

.sk-text {
    margin-top: calc(100vh *0.17);
    text-align: center;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0) }
  40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
  0%, 80%, 100% { 
    -webkit-transform: scale(0);
    transform: scale(0);
  } 40% { 
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
  }
}

.full-height {
    height: 100%;
}

.dropdown-item:hover {
    background-color: rgb(206, 235, 227);
}

.vertical-center {
    display: flex;
    align-items: center;
}

.main-hr {
    width: 30%;
    border: none;
    border-top: 1px solid #c3c3c3;
}

.icon-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #cdcdcd;
    background: #fafafa;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    transition: width 0.2s ease-in-out;
}

.add-btn:hover {
    width: 120px;
}

.add-btn::before,
.add-btn::after {
    transition: width 0.2s ease-in-out, border-radius 0.2s ease-in-out;
    content: "";
    position: absolute;
    height: 4px;
    width: 10px;
    top: calc(50% - 2px);
    background: black;
}

.add-btn::after {
    right: 14px;
    overflow: hidden;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.add-btn::before {
    left: 14px;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.icon-btn:focus {
    outline: none;
}

.btn-txt {
    opacity: 0;
    transition: opacity 0.2s;
}

.add-btn:hover::before,
.add-btn:hover::after {
    width: 4px;
    border-radius: 2px;
}

.add-btn:hover .btn-txt {
    opacity: 1;
}

.add-icon::after,
.add-icon::before {
    transition: all 0.2s ease-in-out;
    content: "";
    position: absolute;
    height: 20px;
    width: 2px;
    top: calc(50% - 10px);
    background: black;
    overflow: hidden;
}

.add-icon::before {
    left: 22px;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.add-icon::after {
    right: 22px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.add-btn:hover .add-icon::before {
    left: 15px;
    height: 4px;
    top: calc(50% - 2px);
}

.add-btn:hover .add-icon::after {
    right: 15px;
    height: 4px;
    top: calc(50% - 2px);
}

svg text {
    font-family: Helvetica, Arial, Verdana, sans-serif;
    fill: #666;
    font-size: 12px;
}



/* .path-fill {
    fill: #3880aa;
    opacity: 0.3;
    stroke: none;
} */

.axis .domain {
    fill: none;
    stroke: #fff;
}

.axis .tick line {
    stroke: #EEE;
    stroke-width: 1px;
}

.tooltip .tooltip-line {
    fill: none;
    stroke: #3880aa;
    stroke-width: 1px;
    stroke-dasharray: 3px;
}

.tooltip .tooltip-point {
    fill: #3880aa;
    stroke: #3880aa;
    stroke-width: 1px;
}

.avg-line {
    fill: none;
    stroke: #3880aa;
    stroke-width: 1px;
    stroke-dasharray: 5px;
}

.wrapper {
    position: relative;
}

.trash-btn {
    position: absolute;
    top: 0;
    right: 0;
}

.verticaltext {
    transform: rotate(-90deg);
    transform-origin: right, top;
    -ms-transform: rotate(-90deg);
    -ms-transform-origin: right, top;
    -webkit-transform: rotate(-90deg);
    -webkit-transform-origin: right, top;
    position: inherit;
}

.checkboxes-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blinking {
    animation: blinkingText 1.2s infinite;
}

@keyframes blinkingText {
    0% {
        /* color: #000; */
    }
    49% {
        /* color: #000; */
    }
    60% {
        color: transparent;
    }
    99% {
        color: transparent;
    }
    100% {
        /* color: #000; */
    }
}

.loading-div {
    padding: 20% 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: auto;
    background: whitesmoke;
    vertical-align: middle;
    text-align: center;
    opacity: 50%;
    /* Just to visualize the extent */
}

.login-form {
    width: 300px;
    margin: 0 auto;
    font-family: Tahoma, Geneva, sans-serif;
}

.login-form h1 {
    text-align: center;
    color: #4d4d4d;
    font-size: 24px;
    padding: 20px 0 20px 0;
}

.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #dddddd;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #535b63;
    border: 0;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
}

.card-alert {
    display: flex;
    position: relative;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 320px;
    background-color: white;
    box-shadow: 0 0 5px 0 var(--shadow);
    border-radius: 7px;
    margin: 5px;
    max-width: 400px;
}

.card-header {
    margin-top: 7px;
}

#tableDiv,
#userstable {
    border-radius: 7px;
}

#logo-myHound,
#logo-benconnect {
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.3));
}

#logo-benconnect {
    max-height: 150px;
}

.liveData,
.vehicleStatus,
.vehicleInfo {
    margin: 5px;
}

.filter-table-time-container {
    display:grid;
    grid-template-columns: auto repeat(1, 1fr);
    grid-template-rows: auto auto;
}
.filter-table-time-output {
    grid-area: 2 / 2 / auto / span 2;
    width: 100% !important;
    height: 50%;
}

@media(max-width:543px) {
    #logo-benconnect {
        max-height: 200px;
    }
    .mb-1 span {
        font-size: 0.8rem;
    }
    .filter-date-content {
        margin-left: 21%;
    }
    .filter-table-time-output {
        height: 100%;
    }
}

@media(min-width: 1200px) and (max-width:1430px) {
    #customBg {
        max-width: 125px !important;
    }
    #customBg::before {
        width: 147px !important;
    }
}

#customBg {
    position: relative;
    z-index: 1001;
    max-width: 140px;
    max-height: 40px;
    margin-top: -10px;
}

#customBg::before {
    content: '';
    background-color: var(--primary-color);
    position: absolute;
    width: 162px;
    z-index: -1;
    transform: translate(-17px, -29px);
    height: 74px;
}

.chartList label span:hover {
    color: #3880aa;
}

.chartList label span {
    position: absolute !important;
    margin-top: 5px;
    margin-right: 5px;
}

#customBg::after {
    content: '';
    background-color: var(--primary-color);
    position: absolute;
    z-index: -1;
    width: 30px;
    height: 70px;
    transform: translate(-11px, -28px) rotate(20deg);
}

#timePickerBtn label {
    display: grid;
    align-content: center;
    border-radius: 3px !important;
}

meter {
    /* Reset the default appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5em;
    /* Applicable only to Firefox */
    background: none;
    background-color: rgba(0, 0, 0, 0.1);
}

meter::-webkit-meter-bar {
    background: none;
    background-color: rgba(0, 0, 0, 0.1);
}

meter[value="1"]::-webkit-meter-optimum-value {
    background: red;
}

meter[value="2"]::-webkit-meter-optimum-value {
    background: yellow;
}

meter[value="3"]::-webkit-meter-optimum-value {
    background: orange;
}

meter[value="4"]::-webkit-meter-optimum-value {
    background: green;
}


/* Gecko based browsers */

meter[value="1"]::-moz-meter-bar {
    background: red;
}

meter[value="2"]::-moz-meter-bar {
    background: yellow;
}

meter[value="3"]::-moz-meter-bar {
    background: orange;
}

meter[value="4"]::-moz-meter-bar {
    background: green;
}

#cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px,1fr));
    justify-items: center;
    grid-gap: 10px;
    margin: 2px;
    margin-top: 10px;
}
#cards-container > .card {
    display: flex;
    flex-direction: column;
    background-color: var(--bs-white);
    box-shadow: 0 0 5px 0 var(--shadow);
    border-radius: 7px;
}

@media only screen and (min-width: 400px) and (max-width: 750px) {
    #cards-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
@media only screen and (max-width: 400px){
    #cards-container {
        grid-template-columns: 1fr;
    }
}

.card-header {
    -webkit-transition: all 0.75s ease;
    -moz-transition: all 0.75s ease;
    -o-transition: all 0.75s ease;
    transition: all 0.75s ease;
}

.gps-legend-btn {
    border-radius: 6px;
    margin-right: 6px;
    height: 100%;
    padding: 0 !important;
    font-size: 1.45rem;
}

.legend {
    line-height: 18px;
    color: #555;
}

.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

legend {
    float: none;
    padding: inherit;
}

.autocomplete-container {
    position: absolute;
    z-index: 3;
    top:100%;
    max-height: 700%;
    overflow: hidden;
    overflow-y: auto;

}
.autocomplete-container > li{
    display: none;
    cursor: grab;
}
/* .autocomplete-container li:hover{
    background-color: var(--bs-primary);
    color:var(--bs-white);
    cursor:pointer;
} */

@keyframes loader {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.topicLoading {
    border-radius: 60px;
    overflow: hidden;
    width: 100%;
}

.progress-loading-bar {
    background: rgba(235, 222, 222, 0.075);
}

.loading-progress {
    animation: ease 3s infinite loader;
    background: #a4ff07;
    color: #fff;
    padding: 5px;
    width: 0;
}

.topicLoading {
    height: 5%;
}

.bullet-list>li::before {
    content: "\26AC";
}

.custom-checkbox-success:checked {
    background-color: var(--bs-green);
    border-color: var(--bs-green);
}

.config-include-topic:checked {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--bs-green);
    border-color: var(--bs-green);
    cursor: pointer;
}

.config-include-topic:checked:hover {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.config-include-topic {
    width: 25px;
    height: 25px;
    border-radius: 50% !important;
    position: relative;
    color: var(--bs-secondary);
    border: 2px solid var(--bs-secondary);
}

.config-include-topic:hover {
    width: 25px;
    height: 25px;
    border-radius: 50% !important;
    position: relative;
    background-color: var(--bs-green);
    color: var(--bs-white);
    border: 2px solid var(--bs-green);
}

.config-include-topic:not(:checked)::before {
    font-weight: 500;
    --element-height: 8px;
    content: "+";
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    left: 51%;
    transform: translate(-50%, -50%);
    top: 34%
}

.var-key{
    color:var(--bs-orange)
}
.var-value{
    color:var(--bs-success)
}

#alert-btn{
    left:80%;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {

    #configuration-table-form {
        max-height: 80vh !important;
    }

}
.legend-btn {
    position: absolute;
    right:2vw;
    background-color: var(--primary-color);
    line-height: 1.2rem;
}

@media only screen and (pointer:coarse){
    .tooltip{
        display: none !important;
    }
    .config-include-topic:not(:checked)::before {
        top: 50%
    }
    #alert-btn{
        left: 20%;
    }
}

@supports (-webkit-touch-callout: none) {
    .config-include-topic:not(:checked)::before {
        top: 34%
    }
}
@supports (-webkit-overflow-scrolling: none) {
    .config-include-topic:not(:checked)::before {
        top: 34%
    }
}
