﻿/* MAIN LAYOUT */
.clear{
    clear:both;
}
.error {
    border-color: red !important;
    position: center !important;
    z-index: 999 !important;
    border-width: 1px !important;
}

.logo {
    max-width: 200px;
    max-height:45px;
}

a.action-link {
    color: var(--primary) !important;
}

    a.action-link:hover {
        border-bottom-color: var(--primary) !important;
    }

.navbar-brand:hover {
    border-bottom:none;
}

.form-group label {
    font-weight: bold;
}


.widget-container {
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%
}

.status-icon {
    width: 43px;
    height: 43px;
    padding: 0px;
    text-align: center;
    border-radius: 5px;
}

.dashboard_container {
    max-width: 1400px;
}

.device-nameplate img.thumbnail {
    width: 90%;
    height: auto;
}
/* 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: var(--bs-light);
    border-radius: 10px 0px 0px 10px;
    border: 1px solid #ccc;
    border-right: 1px solid var(--bs-light);
    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:5px;
    right:0px;
    margin-bottom:10px;
    border-right:0px solid white;
    z-index:100000;
}
.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);
    }
}

.pending {
    font-style: italic;
    margin-left: 5px;
}

/* 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;
}

#device_state button i {
    display: none;
}

#device_state button.active {
    font-weight: bold;
    text-decoration: underline;
}

    #device_state button.active i {
        display: block;
    }


/* 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;
    }
}

/* FORM VALIDATION */
input.invalid, select.invalid {
    border: 1px solid var(--red) !important;
}

a.invalid {
    color: var(--red) !important
}

/* GADGTS, WIDGETS, AMD COMPONENTS */

/* Nav bar/tabs */
.navbar.ems-navbar .navbar-collapse {
    border-bottom: 1px solid var(--light);
    padding-bottom: 0px !important;
    margin-bottom: 10px;
}

.navbar.ems-navbar .active {
    border-bottom: 2px solid var(--active);
}

.navbar.ems-navbar .active a {
    color: var(--active);
    font-weight: bold;
}

.navbar.ems-navbar a:hover {
    color: var(--active);
    text-decoration: none;
    border-bottom: 1px solid white
}


/* EDITING FORM CONTAINER */
.editing-form {
    margin-bottom: 85px; /*makes room for persistent save button bar*/
}

/* Link that acts like a button */
a.link_button {
    color: var(--primary) !important;
}

a.link_button:hover {
    border-bottom-color: var(--primary) !important;
}

/* Communication Status Indicators */
.status-online {
    color: var(--online);
}
.status-offline {
    color: var(--offline);
}

/* EMS DataTable Design */
.ems-table table thead > tr > th.dt-orderable-asc span.dt-column-order:before {
    line-height: 12px !important;
}

.ems-table table thead > tr > th {
    border-bottom: 1px solid black !important;
}
.ems-table .dt-search > * {
    line-height: 30px;
}

.ems-table .dt-search {
    width: 100% !important;
    padding: 0px;
    margin-bottom: 10px;
    display: flex;
}

    .ems-table .dt-search label {
        display: flex;
        margin-right: 5px;
    }

    .ems-table .dt-search input {
        flex: 1;
        display: block;
        float: right;
        padding: 0px !important;
        border-radius: 5px;
        margin-left: 0px !important;
        border: 1px solid var(--light-grey) !important
    }

        .ems-table .dt-search input:focus {
            border: 1px solid var(--primary);
            box-shadow: unset;
            outline: none;
        }


.ems-table table tbody tr a {
    color: var(--primary) !important;
}

    .ems-table table tbody tr a:hover {
        border-bottom-color: var(--primary) !important;
    }

ems-table table > tbody > tr.selected > * {
    background-color: #c6e0f4 !important;
    color: unset;
    box-shadow: unset;
}

.ems-table .dt-layout-cell.dt-layout-start {
    width: 30%;
}

.ems-table div.dt-container .dt-paging .dt-paging-button {
    background-color: white;
    color: var(--primary) !important;
    border: 1px solid var(--light-grey) !important;
    border-radius: 0px;
    margin: 0px;
    border-right-width: 0px !important;
}

    .ems-table div.dt-container .dt-paging .dt-paging-button:first-child {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }

    .ems-table div.dt-container .dt-paging .dt-paging-button:last-child {
        border-right-width: 1px !important;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .ems-table div.dt-container .dt-paging .dt-paging-button:hover {
        background-color: var(--primary) !important;
        color: #FFFFFF !important;
        background-image: none !important;
    }

    .ems-table div.dt-container .dt-paging .dt-paging-button.current, .ems-table div.dt-container .dt-paging .dt-paging-button.current:hover {
        background-color: var(--primary) !important;
        border: 1px solid var(--primary) !important; /* Light border */
        color: #FFFFFF !important;
    }

    .ems-table div.dt-container .dt-paging .dt-paging-button.disabled, .ems-table div.dt-container .dt-paging .dt-paging-button.disabled:hover {
        background-color: white; /* Light blue background */
        color: var(--light-grey) !important;
    }

    .ems-table div.dt-container .dt-paging .ellipsis {
    border-left: 1px solid var(--light-grey);
    display: inline-block;
    box-sizing: border-box;
    height: 42px;
    position: relative;
    padding-top: 9px;
}

.ems-table tbody td {
    vertical-align: middle;
}
     
/* END GADGES, WIDGETS, AND COMPONENTS */