﻿/* MAIN LAYOUT */

.error {
    border-color: red !important;
    position: center !important;
    z-index: 999 !important;
    border-width: 1px !important;
}

.logo {
    max-width: 200px;
    max-height:30px;
}

.navbar-brand:hover {
    border-bottom:none;
}

.form-group label {
    font-weight: bold;
}
/* Sidebar sizes when expanded and expanded */
.sidebar-expanded .position-sticky {
    width: 240px;
}

.sidebar-collapsed .position-sticky {
    width: 60px;

}

#sidebar-container {
    transition: all .2s linear;
    border-right: 1px solid #ccc;
}

#sidebar-container .position-sticky {
  top:50px;
}

#sidebar-container a {
    color: white !important
}

#sidebar-container .has-sub.collapsed:after {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(00deg);
}

#sidebar-container .has-sub:after {
    content: "\F285";
    font-family: 'bootstrap-icons';
    font-size: 0.7rem;
    display: inline-block;
    float: right;
    margin-top: 5px;
    margin-right:10px;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}

.sidebar-collapsed .nav-item .collapse {
    display: none;
}

#sidebar-container > div >ul > li.selected {
    background-color:white;
    border-radius: 10px 0px 0px 10px;
    border:1px solid #ccc;
    border-right:1px solid white;
    position:relative;
    z-index:10000;
    left:1px;
    color:black;
}

    #sidebar-container .selected a{
        color:black !important
    }

    #sidebar-container ul li.nav-item div ul li.nav-item  > a {
        width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block !important;
    }



.select2-container--default .select2-selection--single {
    border: 1px solid #ccc !important;
    height: 38px !important;
    padding-top: 4px !important;
}
.select2-container--default .select2-selection--single.error{
    border: 1px solid red !important;
    height: 38px !important;
    padding-top: 4px !important;
}
    #meter_state .active {
    font-weight: bold;
    text-decoration: underline;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    /* border-color: #888 transparent transparent transparent; */
     border-style: none !important; 
     border-width: 0px !important;
    /* height: 0; */
    /* left: 50%; */
    margin-left: -18px !important;
    margin-top: -2px !important;
    position: absolute !important;
    top: 50% !important;
    width: 30px !important;
    /* background-color: #fff; */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    /* background-position: right 0.75rem center; */
    background-size: 16px 12px !important;
    height: 30px !important;
}

.button-bar {
    background-color: white;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 10px 0px 0px 10px;
    position: fixed;
    bottom:25px;
    right:0px;
    margin-bottom:10px;
    border-right:0px solid white;
}
.spinner {
    animation: spin-animation 0.8s infinite;
    display: inline-block;
}
.form-group {
    margin-bottom: 1.25rem;
}
.label-control{font-weight:bold;text-align:right;}

@keyframes spin-animation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

/* COMMON COMPONENTS */
#meter_list_wrapper a {
    color: #BA0808 !important;
}

#meter_list {
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--bs-card-border-radius);
}

.meter-panel {
    background: rgb(167,166,170);
    border-top: #404E67 1px solid;
    background: linear-gradient(180deg, rgba(167,166,170,0.8575805322128851) 0%, rgba(206,206,218,0.7931547619047619) 48%, rgba(246,246,246,0) 100%);
}

.e-copy-ready:hover:after {
    content: "\F290";
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    margin-top: -4px;
    font-size: small;
    margin-left: 3px;
    -webkit-font-smoothing: antialiased;
}

.b-copy-ready:hover:before {
    content: "\F290";
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    margin-top: -4px;
    font-size: small;
    margin-left: 3px;
    -webkit-font-smoothing: antialiased;
}

.e-copy-ready:active:after, .e-copy-ready.copied::after {
    content: "\F28B";
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    margin-top: -4px;
    font-size: small;
    margin-left: 3px;
    -webkit-font-smoothing: antialiased;
}

.b-copy-ready:active:before, .b-copy-ready.copied::before {
    content: "\F28B";
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    margin-top: -4px;
    font-size: small;
    margin-left: 3px;
    -webkit-font-smoothing: antialiased;
}


element.style {
}

input:read-only {
    background-color: #eee;
    color: #999;
}
input:read-only:focus {
    background-color: #eee;
    color: #999;
}

/* Media Queries */
@media (max-width: 991.98px) {
    #sidebar-container {
        position: absolute;
        z-index: 999999;
        top: 50px;
        width: 100%;
        display: none;
    }

    #sidebar-container.expanded {
        display: block;
        transition: all .2s linear;
    }
}

@media (min-width: 991.98px) {
    html{min-height:100%;}
    body {
        min-height: 100%;
    }
    #main-container{min-height:100%}
    #flex-container{min-height:100%;}
}

@page {
    size: auto;
    margin-bottom: 0mm;
}

@media print {
    body {
        margin-bottom: 2cm;
    }
}