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

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

input,
select {
  outline: none;
}

.hide {
  display: none;
}

:root {
  --backgroundColor: #f8f8f8;
  --primaryColor: #527cff;
  --iris80: #7879f1;
  --gray1: #bdc0ce;
  --gray2: #828282;
  --gray3: #7e8494;
  --darkGray: #252f3e;
  --darkgGray2: #303237;
  --lightGray3: #e5e9eb;
  --lightGray4: #e5e7ef;
  --neutral100: #e7eaee;
  --neutral400: #64748b;
  --whiteColor: #fff;
  --blackColor: #000;
  --headerHeightDesktop: 4rem;
  --headerHeightDesktop: 3.5rem;
  --sidebarWidth: 4.5rem;
}

body {
  background-color: var(--backgroundColor);
  font-family: "Inter";
}

#main {
  /* display: flex; */
  /* flex-direction: column; */
  /* background-color: green; */
  min-height: 100dvh;
  /* position: relative; */
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.69rem;
  padding-inline: 0.85rem 2.5rem;
  border-bottom: 1.5px solid var(--lightGray3);
  position: sticky;
  background-color: var(--backgroundColor);
  top: 0;
  z-index: 100;
  height: var(--headerHeightDesktop);
}

#header .logoContainer img {
  width: 14.9375rem;
  height: 2.6875rem;
}

#header .header--settings {
  display: flex;
  gap: 0.5rem;
}
#header .header--settings svg {
  font-size: 1.5rem;
  color: #5b6871;
}

.menuToggleContainer {
  margin-left: 0.7rem;
  display: none;
}
.menuToggleContainer svg {
  color: var(--darkgGray2);
  font-size: 2rem;
}

/* 
======================================================
  Sidebar + Main Content
======================================================
*/

#sidebarMainContent {
  flex: 1;
  margin: 0;
  margin-left: var(--sidebarWidth);
  min-height: calc(100dvh - --headerHeightDesktop);
}

#sidebar {
  background-color: var(--primaryColor);
  padding: 1rem;
  max-width: 13.5rem;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  overflow-x: hidden;
  z-index: 1;
  margin-top: var(--headerHeightDesktop);
  height: calc(100dvh - var(--headerHeightDesktop));
}

#sidebar .routesLogoContainer {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-block: 2.5rem;
  margin-top: 1.75rem;
  border-block: 1px solid var(--whiteColor);
}
#sidebar .routesLogoContainer svg {
  color: var(--whiteColor);
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
}
#sidebar .routesLogoContainer .routeActive svg {
  color: var(--primaryColor);
}

#sidebar .routesLogoContainer .routeActive {
  background-color: var(--whiteColor);
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
}

#mainContent {
  padding-inline: 7.75rem 2.5rem;
  padding-top: 2.75rem;
  padding-bottom: 3rem;
}
/* 
======================================================
  General
======================================================
*/
.heavyText,
.mediumText {
  font-size: 1.3rem;
  font-family: "Inter";
  color: var(--darkGray);
  font-weight: 500;
  text-decoration: none !important;
}
.heavyTextBold {
  font-size: 1.5rem;
  font-family: "Inter";
  color: var(--darkGray);
  font-weight: 700;
}
.card {
  border-radius: 0.625rem;
  border: 0.5px solid #eceef0;
  background: #fff;
  box-shadow: 0px 4px 13px 6px rgba(193, 193, 193, 0.05);
}

/* 
======================================================
  Dashboard
======================================================
*/
.dashboardContainer--header,
.alarmContainer--header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboardContainer--content {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.06rem;
  margin-top: 1.8rem;
}

.rangeButton {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 2rem;
  border: 1px solid var(--gray1);
  padding: 0.62rem 1rem;
  font-family: "Inter";
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--darkgGray2);
  cursor: pointer;
}
.rangeButton svg {
  font-size: 1.15rem;
}

/* 
======================================================
  Dashboard -- Right
======================================================
*/
.dataCategoryContainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 0.7rem;
  row-gap: 1rem;
}

.cardNumber {
  padding: 0.75rem;
  height: 12.3125rem;
  display: flex;
  flex-direction: column;
}
.cardNumber--title {
  font-size: 1.025rem;
  font-family: "Inter";
  color: var(--darkGray);
  font-weight: 400;
  font-style: normal;
  opacity: 0.6;
}
.cardNumber--icon {
  width: 2.30469rem;
  height: 2.5rem;
  margin-top: auto;
}

/* 
======================================================
  Dashboard -- Left
======================================================
*/
.dashboardContainer--content__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cardDataContainer {
  min-height: 30.625rem;
}
.cardDataContainer--options {
  display: flex;
  margin-left: 0.2rem;
}
.cardDataContainer--options--item {
  min-width: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 0.0625rem solid var(--lightGray4);
  padding-block: 0.88rem;
  padding-inline: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--gray3);
}

.cardDataContainer--options--item--active {
  color: var(--iris80);

  border-color: var(--iris80);
  border-width: 0.125rem;
}

.summaryContainer {
  display: flex;
  padding: 2.5rem;
  flex: 1;
}
.summaryContainer > div {
  flex: 1;
}
.cardReportContainer {
  min-height: 30.625rem;
  padding: 2.37rem 2.56rem;
}

/* 
======================================================
  Alarm
======================================================
*/
.alarmContainer--header--right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.selectCard {
  border-radius: 3rem;
  background: var(--neutral100);
  color: var(--neutral400);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 7.84375rem;
  height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.filterCard {
  height: 2.75rem;
  gap: 0.62rem;
}
.filterCard svg {
  font-size: 1.25rem;
}

.selectCard select {
  border: none;
  background: transparent;
  color: var(--neutral400);
}

.searchCard {
  background-color: var(--whiteColor);
  border-radius: 2.8125rem;
  border: 1px solid var(--gray2);
  max-width: 21.3rem;
  height: 2.75rem;
  display: flex;
  overflow: hidden;
  gap: 1rem;
  /* align-items: center; */
  /* justify-content: center; */
}
.searchCard label {
  background-color: var(--primaryColor);
  color: var(--whiteColor);
  padding-inline: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
}
.searchCard input {
  height: 100%;
  flex: 1;
  border: none;
  color: var(--blackColor);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
}
.searchCard--searchIcon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin-right: 1rem;
}

.alarmContainer--content {
  margin-top: 1.8rem;
}
.cardAlarmContainer {
  padding: 2.37rem 2.56rem;
  min-height: 42.8rem;
}
/* .active {
  transform: translateX(0);
  box-shadow: 0 0 10px 1000px rgba(0, 0, 0, 0.2);
} */
/* 
======================================================
  Responsiveness
======================================================
*/
/* Extra large devices (large laptops and desktops, 1200px and down) */
@media only screen and (max-width: 1200px) {
  .dataCategoryContainer {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Large devices (laptops/desktops, 992px and down) */
@media only screen and (max-width: 992px) {
  .mediumText {
    font-size: 1.1rem;
  }
  #header {
    padding-inline: 1rem;
  }
  #mainContent {
    padding-inline: 1rem;
    padding-top: 2rem;
  }

  .dashboardContainer--content {
    grid-template-columns: 1fr;
    gap: 1.06rem;
  }
  .dataCategoryContainer {
    grid-template-columns: repeat(3, 1fr);
  }
  .summaryContainer {
    padding: 1rem;
  }
}
/* Medium devices (landscape tablets, 768px and down) */
@media only screen and (max-width: 768px) {
  .heavyText {
    font-size: 1.3rem;
  }
  .mediumText {
    font-size: 0.9rem;
  }
  .menuToggleContainer {
    display: flex;
  }
  .sidebar {
    transform: translateX(-10rem);
    transition: all 0.5s ease-in-out;
  }
  .active {
    transform: translateX(0);
  }
  #sidebarMainContent {
    margin-left: 0;
  }
  #mainContent {
    padding-top: 1rem;
  }
  .cardDataContainer--options {
    display: flex;
    /* margin-left: 0.2rem; */
  }
  .cardDataContainer--options--item {
    padding-block: 0.6rem;
    flex: 1;
    min-width: unset;
    font-size: 0.7rem;
    text-align: center;
  }
  .summaryContainer {
    padding: 1rem 0.5rem;
    flex-direction: column;
  }
  /* .summaryContainer {
  display: flex;
  padding: 2.5rem;
} */
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  #header {
    padding-inline: 0.5rem 0.5rem;
  }
  #header .logoContainer img {
    width: 12.9375rem;
    height: 2.6875rem;
  }

  #header .header--settings {
    display: flex;
    gap: 0.3rem;
  }
  #header .header--settings svg {
    font-size: 1.2rem;
  }
  .cardDataContainer--options--item {
    padding-block: 0.4rem;
    font-size: 0.65rem;
  }
  .dataCategoryContainer {
    grid-template-columns: repeat(2, 1fr);
  }
  .alarmContainer--header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .alarmContainer--header--right {
    flex-wrap: wrap;
  }
  .alarmContainer--header--right .selectCard {
    flex: 1;
    height: 2.35rem;
  }
  .alarmContainer--header--right .searchCard {
    width: 100%;
    height: 2.45rem;
  }
  .rangeButton {
    padding: 0.4rem 1rem;
  }
}

.text-center{
  text-align: center !important;
}

#logout{
  cursor: pointer;
}

.routeContainer a{
  text-decoration: none !important;
  color: #ffffff;
  font-size: 14px;
      padding: 0.25rem 0.45rem;
}

.routeActive a{
  color: #527cff;
  font-size: 14px;
}

.cursor{
  cursor: pointer !important;
}

.blockOverlay,
.blockElement,
.blockPage {
  z-index: 999999 !important;
}

.h5,
h5 {
  font-size: 1.1rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #000 !important;
  /* line-height: 17px !important; */
}

.form-control {
  font-size: 14px !important;
}

.select2-dropdown {
  font-size: 14px;
}

span.select2{
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: 35px !important;
}

.select2-container {
  z-index: 999;
}
.select2-container--default .select2-results>.select2-results__options {
  z-index: 99999999999;
}