@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;550;700;900&display=swap");

/* ------------------------------------SIDENAV------------------------------------ */
:root {
    --c0: rgba(0, 0, 255, 0.02);
    --c1: #fdfefe;
    --para-grey: #434343;
    --c2 : #197ac0;
    --c3 : #c31e2c;
    --c4 : #03a5e7;
    --c5 : #c71d2b;
    --radius :.25rem!important;
    --g1  : linear-gradient(255deg, rgba(255,255,255,1) 80%, rgba(233,233,233,1) 100%);
}

.btn.btn { padding:.1em 1em; }
/*.btn-group { border-radius:var(--radius); }*/
.btn-group > .btn { display:grid!important; align-items:center!important; }
.btn-group > .btn:hover { background:var(--c5); }

.input-field input { min-width:75px; }

.bod {
    display: grid;
    grid-template-columns: auto 1fr;
    /* background: var(--c0); */
    font-family: "Poppins", sans-serif;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar.is-visible {
    display: grid;
    position: sticky;
    left: 0px;
    top: 0px;
    bottom: 0px;
    width: 220px;
    background: var(--g1)!important;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    overflow-y: auto;
/*    grid-gap: .5em;*/
    align-content: start;
    background: inherit;
    border-right: 3px solid var(--btn-color);
}

#sidebar ul { border-top:1px solid rgba(0, 0, 0, .1); }

#sidebar:not(is-visible) {
    padding: 0px;
    width: 0px;
    overflow: hidden;
}

#sidebar.is-phidden {
    min-width: 90px;
    border-right: 3px solid var(--btn-color);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    position: sticky;
    top: 0;
}

#sidebar.is-phidden a>span {
    display: none;
}

#sidebar .brand {
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: center;
    padding: 0.5em 1em;
    position: sticky;
    top: 0px;
    background: inherit;
    min-height: 61.55px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

#sidebar .brand i.mdi {
    font-size: 1.7em;
    color: rgba(0, 0, 0, 0.6);
}

#sidebar ul {
    display: grid;
    grid-gap: 0.2em;
    padding: 0.5em;
}

#sidebar ul li {
    display: grid;
}

#sidebar ul li a {
    padding: 0.2em 1em;
    font-size: 1.2em;
    border-radius: 10px;
    color: rgba(0, 0, 0, 0.8);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    grid-gap: 0.5em;
    transition: 0.1s all ease-in-out;
}

#sidebar ul li a.mdi::before {
    font-size: 1.5em;
}

/*#sidebar li a.active {
    color: var(--btn-color);
}*/

#sidebar li a:hover,#sidebar li a.active {
    background-color: var(--btn-color);
    color: var(--c1);
}

#sidebar ul li.active a.mdi::before {
    font-size: 1.5em;
    color: var(--c1);
}

#sidebar ul>li>ul:not(active) {
    display: none;
    transition: 0.5s all;
}

#sidebar ul>li>ul.active {
    display: grid;
    animation: fadeInLeft 1s;
    transition: 1s all;
    background: var(--c0);
    border-radius: var(--radius);
    margin: var(--margin);
}

#sidebar ul>li>ul.active li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* // */

#sidebar .brand img { margin:0 auto; }
#sidebar.is-phidden .brand img.big { display:none; }
#sidebar.is-phidden .brand img.small { display:block; }

#sidebar.is-visible .brand img.big { display:block; }
#sidebar.is-visible .brand img.small { display:none; }

/* ------------------------------TOPBAR---------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    background-color: var(--c1);
    padding: 0.4em 0em;
    z-index: 3;
    box-shadow: 0px 1px 8px 0px #c1c1c1;
}

.topbar a span {
    font-size: 0.7em;
}

.topbar .mdi {
    font-size: 2em !important;
}

.mdi-store::before {
    color: var(--c3);
}

.topbar div {
    margin-left: 0.3em;
    margin-right: 0.5em;
}

.page {
    min-height: 90vh;
    display: grid;
    background-color: var(--c1);
    padding: 0em 1em;
    border-radius: var(--radius);
    margin: var(--margin);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.05);
    align-content: start;
    overflow: hidden;
    overflow-y: auto;
    margin-left: 1em;
    margin-right: 1em;
}

.page>.heading {
    color: var(--btn-color);
}

/*------------------------------------PRODUCTS------------------------------------*/
.previewbox,
.previewbox1,
.previewbox2,
.previewbox3 {
    display: grid;
    grid-template-columns: auto auto;
    max-width: calc(400px + 3em);
    max-height: 300px;
    overflow: hidden;
    overflow-y: auto;
    gap: 1em;
    padding: 1em;
}

.previewbox img,
.previewbox1 img,
.previewbox2 img,
.previewbox3 img {
    border-radius: 1em;
    width: 200px;
    height: 200px;
    object-fit: contain;
    object-position: top left;
    transition: 3s all;
}

.previewbox img:hover,
.previewbox1 img:hover,
.previewbox2 img:hover,
.previewbox3 img:hover {
    object-position: bottom right;
}

/*btn*/
.clr {
    color: #235a8d;
}

/* Adding users */
.r-container {
    width: fit-content !important;
    padding: 2em !important;
}

/* ------------------------------------DASHBOARD-------------------------------------- */
.boxcontain1 {
    position: relative;
    background: #fff;
    padding-left: 2em;
    padding-right: 2em;
    background-color: rgba(0, 217, 255, 0.5);
}

.boxcontain2 {
    position: relative;
    background: #fff;
    padding-left: 2em;
    padding-right: 2em;
    background-color: rgba(0, 255, 55, 0.5);
}

.boxcontain3 {
    position: relative;
    background: #fff;
    padding-left: 2em;
    padding-right: 2em;
    background-color: rgba(255, 149, 0, 0.5);
}

.boxcontain4 {
    position: relative;
    background: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 1);
    padding: 2em;
}

.staffbox {
    position: relative;
    color: rgba(25, 24, 24, 0.944);
    border-color: rgba(0, 0, 0, 0.8);
    border-style: groove;
    padding: 2em;
}

.staffpic img {
    border-radius: 50%;
}

.gtext {
    color: rgba(255, 255, 255, 0.7);
}

.dasmn {
    font-size: 2em;
}

.dasmnl {
    font-size: 1em;
}

.dasmnl .da {
    font-size: 2em;
}

.adchart {
    display: block;
    width: 60vw;
}

.staff {
    background-color: rgba(71, 69, 69, 0.8);
    color: rgba(255, 255, 255, 1);
    padding: 10px;
}

/* ---------------------- ---------------- TABLES---------------------- -----------------  */
table tbody td {
    font-size: 13px;
}

/* ---------------------- STAFF LOGIN ------------------------------------------*/
.input-info {
    width: 100%;
}

.login-main {
    margin-right: auto;
    width: 60vw;
    margin-left: auto;

    /* From https://css.glass */
background: rgba(255, 255, 255, 0.7);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(9.4px);
-webkit-backdrop-filter: blur(9.4px);
border: 1px solid rgba(255, 255, 255, 0.44);
}

.login-background-admin {
    height: 100vh;
    background: linear-gradient(186deg,
            rgb(201, 197, 217) 38%,
            rgb(168, 243, 255) 76%,
            rgb(3, 72, 81) 100%);
}

.btn.small {
    font-size: 1em !important;
}

/* ---------------------------- ADMIN SETTING ---------------------------------*/
.admin-password p {
    color: var(--c);
}

/* ---------------------------- MODALS in dashboard ---------------------------------*/
.modal.active .modalclosebtn {
    color: rgba(255, 0, 0, 1) !important;
    font-size: 30px !important;
    right: 0px !important;
    padding: 0 5px !important;
}

.modal.active .modal-container {
    padding: 0 !important;
}

.modal-header {
    border-bottom: 2px solid var(--btn-color);
    padding: 0.7em;
}

/* border-radius: 10px;
} */

.login-background {
    height: 100vh;
    background: linear-gradient(186deg,
            rgb(201, 197, 217) 38%,
            rgb(168, 243, 255) 76%,
            rgb(3, 72, 81) 100%);
    background:url("../img/indexbg.jpg");
    background-size: cover;
}

.btn.small {
    font-size: 1em !important;
}

/* ---------------------------- ADMIN SETTING ---------------------------------*/
.admin-password p {
    color: var(--para-grey);
}

.admin-table td,
.admin-table th {
    font-size: 1em;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0 15px;
    width: 100%;
}

.admin-table td {
    padding: 1em;
}

.admin-table td,
.admin-table th {
    border-bottom: 1px solid #cacaca;
}

/* ---------------------------- MODALS in dashboard ---------------------------------*/
.modal.active .modalclosebtn {
    color: rgba(255, 0, 0, 1) !important;
    font-size: 30px !important;
    right: 0px !important;
    padding: 0 5px !important;
}

.modal.active .modal-container {
    padding: 0 !important;
}

.modal-header {
    border-bottom: 2px solid var(--btn-color);
    padding: 0.7em;
}

.container-s {
/*    width: 50vw !important;*/
}

.inimg {
    background: rgba(255, 255, 255, 1);
    position: relative;
    padding: 0em;
    border-radius: var(--radius);
    transition: 2s all;
    display: inline-grid;
    align-items: center;
    margin: var(--margin);
}


.newicon-percent::after { content:"%"; color:grey; }
.newicon-flat::after { content:"/-";  color:grey; }

.viewonhover { position: relative; background:rgba(0,0,0,.05); padding:.5em; display:inline-block; border-radius:var(--radius); }
.viewonhover::after { animation:fadeIn .2s; content:"****"; background:#ddd; position:absolute; display: grid; align-content:center; top:0px; bottom:0px; left:0px; right:0; height:100%; width:100%; box-sizing: border-box; padding: .5em; transition:.5s all; }
.viewonhover:hover::after { display:none;  }

.input-checkbox { background: transparent !important; }
.switchbox::before { font-size: 3.5em !important; content:"\F0522"!important; color:rgba(255, 0, 0, 0.64) !important; }
.switchbox:checked::before { content:"\F0521"!important; }

.adset  ul.tabs { 
    width: 100%!important;
    width:fit-content;
overflow: hidden;
  overflow-x: hidden;
overflow-x: auto; }

.adset  ul.tabs li a { white-space:nowrap; }

.modal-body { min-width: fit-content; }

.status.Active { background:green!important; color:white; }
.status.Inactive { background:red!important; color:white; }

.adchart { background:var(--c1); width:calc(100% - .5em);  max-width:70vw; }

.staffbox { min-width:20vw; padding: 0px; background:var(--c1); border:1px solid rgba(0,0,0,.1); }
.staffbox > div { padding: 1em; border-bottom: 1px solid rgba(0,0,0,.1); }

.staffbox .badge { background:rgba(0,0,0,.1); width:20px; height:20px; display:block; border-radius:50px; }
.staffbox .badge.active { background:var(--editable_status_active); }
.staffbox .badge.inactive { background:var(--x1); }


.boxcontain4 { padding:0px; }
.boxcontain4 > div { padding:.5em 1em; }
.boxcontain4 .gtext { padding: 1em 1em; border-top: 1px solid rgba(255,255,255,.1); }


.modal.active .modal-container { min-width:400px; width:max-content!important; }
.modal.active .modal-container .modal-body { padding:1em; }

.modal {
background: rgba(0, 0, 0, 0.5)!important;
border-radius: 0px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);    
}

.combomodal { grid-template-columns:auto!important; justify-content:end!important; align-items:start!important; padding:1em; 
    background: rgba(0, 0, 0, 0.5)!important;
    border-radius: 0px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.4px);
    -webkit-backdrop-filter: blur(2.4px);
}
.combomodal.modal.active .modal-container { min-width: 500px; width:90%!important; max-height:calc(100vh - 2em); }

.combosearchresult { width:auto!important; }
.combosearchresult li { width:100%!important; display:grid; grid-template-columns:1fr auto; }
.combosearchresult li strong { text-align:left; }

.comboitem { position:relative; }
.removebtn { position:absolute; top:.7em; left:-1.5em; opacity:.3; width:30px; height:30px; border-radius: 100%; background:var(--c5); color:var(--c1); text-align:center; display:grid; align-items:center; justify-content:center; transition:.5s all; }

.comboitem:hover .removebtn { left:.5em; opacity:1; }

.searchoptions { display: block; position:absolute; background:var(--c1); z-index: 3; }
.searchoptions li { animation:slideInDown .5s; }
.searchoptions::empty { display:none; }


#newcombomod section { position:relative; }

.modal.tightmodal  .modalclosebtn {  

margin-top: -1.2em;
margin-right: -1.2em;
color: #e3e3e38c !important;

}

.modal .eli-searchable-select-tag-searchbox.default{
    width: 100%;
border: none!important;
border-bottom: 1px solid rgba(0,0,0,.1);
background: rgba(0,0,0,.05);
border-radius: var(--radius)!important;
}

.modal .eli-searchable-select-tag-searchbox::before { content:"Search"; position:absolute; top:0px; left:0px; color:red; }
.modal-container { max-height:90vh; overflow: hidden; overflow-y:auto; }


/* Analog Settings New Switchbox with status */
.switchstatus { width:50px; height:30px; overflow: hidden;  border-radius:var(--radius); color:transparent; }
.switchstatus::before { display: block; width:100%; min-width:50px; height:30px; font-size:3.5em; display:grid; justify-content:center; align-content:center; }
.switchstatus.red::before {
    content: "\F0522";    
    font-family: "Material Design Icons";
    color: rgba(255, 0, 0, 0.64);
    background: white!important;
    opacity:1;
}

.switchstatus.green::before {
    content: '\F0521'!important;
    font-family: "Material Design Icons";
    color: var(--btn-color);
    background: white!important;
}

/* ============ */
