﻿@import "./_Constant.css";
@import "./_LoadingPanel.css";
@import "./_Datatables.css";
@import "./_Breadcrumb.css";
@import "./_Dashboard.css";
@import "./_Accordion.css";

@import "./_Footer.css";
@import "./_Login.css";

@import "./_Users.css";
@import "./_Customers.css";
@import "./_Customers_Datatables.css";
@import "./_ToDoList.css";

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Roboto",sans-serif;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll !important;
}

.h-90 {
    height: 90% !important;
}


.body-content {
    flex: 1 0 auto;
}

body.modal-open {
    /*padding-right: 0 !important;*/ overflow-y: scroll !important;
    /*overflow: auto !important;*/
}

body.swal2-shown {
    padding-right: 0 !important;
}



/* Card */
/* Buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--secondary-font-color) !important;
}

    .btn-primary:hover {
        color: var(--primary-color) !important;
        background-color: var(--secondary-color) !important;
    }


    .btn-primary:active {
        color: var(--primary-color) !important;
        background-color: var(--secondary-color) !important;
    }

    .btn-primary.active {
        color: var(--primary-color) !important;
        background-color: var(--secondary-color) !important;
    }

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

    .btn-secondary:hover {
        color: var(--secondary-color) !important;
        background-color: var(--primary-color) !important;
    }


.btn-info {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

    .btn-info:hover {
        color: var(--secondary-color) !important;
        background-color: var(--primary-color) !important;
    }

/* Buttons */



a:focus {
    color: var(--secondary-font-color) !important;
}

.a-meters:focus {
    color: var(--primary-color) !important;
}

/* Card */

.dropdown-item.active, .dropdown-item:active, .dropdown-item:focus, .dropdown-item:hover {
    color: var(--primary-color) !important;
    background-color: var(--secondary-color) !important;
}



.font-header {
    font-size: 32px;
    font-weight: 600;
    background-image: linear-gradient(180deg, #141d3e, #76bb43);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    line-height: 1.5 !important;
}

.font-header-sm {
    font-size: 20px;
    font-weight: 600;
    background-image: linear-gradient(180deg, #141d3e, #76bb43);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.font-header-xs {
    font-size: 15px;
    font-weight: 600;
    background-image: linear-gradient(180deg, #141d3e, #76bb43);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

hr {
    border: none !important; /* Remove default border */
    height: 2px !important; /* Adjust height as needed */
    background: linear-gradient(180deg, #141d3e, #76bb43) !important; /* Example gradient colors */
    width: 100% !important; /* Full width of the container */
}

.input-group > .btn {
    padding-top: .3rem !important;
}


.disabled-link {
    pointer-events: none; /* Prevents clicking */
    opacity: 0.5; /* Makes the link appear faded */
    cursor: not-allowed; /* Changes cursor to indicate it's disabled */
    display: none !important;
    color: #6c757d; /* Grayed out text */
}

    /* Disable hover effect for disabled links */
    .disabled-link:hover {
        color: #6c757d; /* Grayed out text on hover as well */
        cursor: not-allowed; /* Ensure the cursor remains "not-allowed" */
        text-decoration: none; /* Remove text decoration if any */
    }

.disabled-link-customer {
    pointer-events: none; /* Prevents clicking */
    opacity: 0.5; /* Makes the link appear faded */
    cursor: not-allowed; /* Changes cursor to indicate it's disabled */
    color: #6c757d; /* Grayed out text */
}

    /* Disable hover effect for disabled links */
    .disabled-link-customer:hover {
        color: #6c757d; /* Grayed out text on hover as well */
        cursor: not-allowed; /* Ensure the cursor remains "not-allowed" */
        text-decoration: none; /* Remove text decoration if any */
    }

.floating-action-button ul.active li a.disabled-link:hover {
    cursor: not-allowed !important; /* Ensure the cursor stays "not-allowed" */
    background-color: var(--primary-color) !important;
}

.padding-search {
    padding-left: 1rem;
    padding-right: 1rem;
}

.padding-search-div {
    background-color: #f7f7f7;
    opacity: 1;
    padding: 1rem;
    border-radius: 25px;
}

.nav-pills > li > .nav-link.active {
    background: var(--secondary-color) !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: var(--primary-font-color) !important;
}

.nav-pills > li > .nav-link {
    border: 1px solid var(--primary-color) !important;
}

.navbar .navbar-nav .nav-item .nav-link:focus, .navbar .navbar-nav .nav-item .nav-link:hover {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

.navbar .navbar-nav .nav-item.active .nav-link {
    background: var(--secondary-font-color) !important;
}

.form-check-label, .form-radio-label {
    margin-right: 0px !important;
}

/* -------- Select CSS -------- */
/* class applies to select element itself, not a wrapper element */
.select-css {
    display: block;
    font-size: 14px;
    font-family: sans-serif;
    /*font-weight: 700;*/
    color: #444;
    line-height: 1.3;
    /*padding: .6em 1.4em .5em .8em;*/
    width: 100%;
    max-width: 100%; /* useful when width is set to anything other than 100% */
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #aaa;
    box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
    border-radius: .25rem;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    /* note: bg image below uses 2 urls. The first is an svg data uri for the arrow icon, and the second is the gradient. 
		for the icon, if you want to change the color, be sure to use `%23` instead of `#`, since it's a url. You can also swap in a different svg icon or an external image reference
		
	*/
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'), linear-gradient(to bottom, #ffffff 0%,#ffffff 100%) !important;
    background-repeat: no-repeat, repeat !important;
    /* arrow icon position (1em from the right, 50% vertical) , then gradient position*/
    background-position: right .7em top 50%, 0 0 !important;
    /* icon size, then gradient */
    background-size: .65em auto, 100% !important;
    cursor: pointer;
}
    /* Hide arrow icon in IE browsers */
    .select-css::-ms-expand {
        display: none;
    }
    /* Hover style */
    .select-css:hover {
        border-color: #888;
    }
    /* Focus style */
    .select-css:focus {
        border-color: #aaa;
        /* It'd be nice to use -webkit-focus-ring-color here but it doesn't work on box-shadow */
        /*  box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
        box-shadow: 0 0 0 3px -moz-mac-focusring;*/
        color: #222;
        outline: none;
    }

    /* .select-css:invalid {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }*/


    /* Set options to normal weight */
    .select-css option {
        font-weight: normal;
    }

/* Support for rtl text, explicit support for Arabic and Hebrew */
*[dir="rtl"] .select-css, :root:lang(ar) .select-css, :root:lang(iw) .select-css {
    background-position: left .7em top 50%, 0 0;
    padding: .6em .8em .5em 1.4em;
}

/* Disabled styles */
.select-css:disabled, .select-css[aria-disabled=true] {
    color: graytext;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22graytext%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'), linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
    /*background: #e9ecef !important;*/
}

    .select-css:disabled:hover, .select-css[aria-disabled=true] {
        border-color: #aaa;
    }
/* -------- Select CSS -------- */


/* -------- Checkbox -------- */
.form-check-input:checked::before {
    opacity: 0 !important;
}

.form-check-input[type="checkbox"]:checked {
    background-image: none;
    background-color: var(--secondary-color) !important;
}

.form-check-input:checked:focus {
    border-color: var(--secondary-color) !important;
}

.form-check-input:checked {
    border-color: var(--secondary-color) !important;
}

.form-check-input:focus::before {
    opacity: unset !important;
    box-shadow: unset !important;
    transform: unset !important;
    transition: unset !important;
}

/* -------- Checkbox -------- */



/* 
  ##Device = Ultra-Wide Screens or 8K TVs
  ##Screen = 3840px to higher resolution desktops
*/
@media (min-width: 3840px) {
    .UIU-sm {
        /*width: 20% !important;*/
    }
    .meter-events-sm {
        /*width: 60% !important;*/
    }
}

/* 
  ##Device = TVs with 4K or Higher Resolution
  ##Screen = 1921px to higher resolution desktops
*/
@media (min-width: 1921px) {
    .UIU-sm {
        /*width: 20% !important;*/
    }

    .meter-events-sm {
        /*width: 60% !important;*/
    }
}


/* 
  ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
}

/* 
  ##Device = Laptops, Desktops
  ##Screen = B/w 1025px to 1280px
*/
@media (min-width: 1025px) and (max-width: 1280px) {
    .card-stats .col-icon {
        width: 35px !important;
        height: 35px !important;
        margin-left: 12px;
    }

    .card-stats .icon-big {
        min-height: 33px !important;
        font-size: 1.5rem !important;
    }

    .card-category {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0rem !important;
    }

    .card-stats .card-title {
        font-size: 15px !important;
        line-height: 1.3;
    }

    .small-text-header {
        font-size: 1rem !important;
    }

    p {
        font-size: 0.8rem !important;
        line-height: 1.7 !important;
    }

    .switch {
        width: 35px !important;
        height: 35px !important;
    }
}

/* 
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) {
    .font-header {
        font-size: 20px !important;
    }

    .card-stats .col-icon {
        width: 35px !important;
        height: 35px !important;
        margin-left: 12px;
    }

    .card-stats .icon-big {
        min-height: 33px !important;
        font-size: 1.5rem !important;
    }

    .card-category {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0rem !important;
    }

    .card-stats .card-title {
        font-size: 15px !important;
        line-height: 1.3;
    }

    .small-text-header {
        font-size: 1rem !important;
    }

    p {
        font-size: 0.8rem !important;
        line-height: 1.7 !important;
    }

    .switch {
        width: 35px !important;
        height: 35px !important;
    }
}

/* 
  ##Device = Tablets, Ipads (landscape)
  ##Screen = B/w 768px to 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .font-header {
        font-size: 20px !important;
        margin-top: 0.5rem !important;
    }

    .card-stats .col-icon {
        width: 35px !important;
        height: 35px !important;
        margin-left: 12px;
    }

    .card-stats .icon-big {
        min-height: 33px !important;
        font-size: 1.5rem !important;
    }

    .card-category {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0rem !important;
    }

    .card-stats .card-title {
        font-size: 15px !important;
        line-height: 1.3;
    }

    .small-text-header {
        font-size: 1rem !important;
    }

    p {
        font-size: 0.8rem !important;
        line-height: 1.7 !important;
    }

    .switch {
        width: 35px !important;
        height: 35px !important;
    }
}

/* 
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
  ##Screen = B/w 481px to 767px
*/
@media (min-width: 481px) and (max-width: 767px) {
    .font-header {
        font-size: 20px !important;
    }

    .card-stats .col-icon {
        width: 35px !important;
        height: 35px !important;
        margin-left: 12px;
    }

    .card-stats .icon-big {
        min-height: 33px !important;
        font-size: 1.5rem !important;
    }

    .card-category {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0rem !important;
    }

    .card-stats .card-title {
        font-size: 15px !important;
        line-height: 1.3;
    }

    .small-text-header {
        font-size: 1rem !important;
    }

    p {
        font-size: 0.8rem !important;
        line-height: 1.7 !important;
    }

    .switch {
        width: 35px !important;
        height: 35px !important;
    }
}

/* 
  ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 479px
*/
@media (min-width: 320px) and (max-width: 480px) {
    .font-header {
        font-size: 20px !important;
    }

    #SearchMeter_Dashboard {
        margin-top: 1rem;
        width: 100% !important;
    }

    #ResetMeter_Dashboard {
        width: 100% !important;
    }

    .select2-container {
        width: 100% !important;
    }

    .jsPanel {
        width: auto !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
    }

    #nabar_regions_sm{
        padding:0.5rem !important;
    }

}
