:root {
  font-family: caneladeck-medium, Inter, system-ui, Avenir, Helvetica, Arial,
    sans-serif;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --c-violet: #020050;
  --c-black: #101010;
  --c-white: #fff;
  --c-grey: #f2f2f2;
}
@font-face {
  font-family: caneladeck-medium;
  src: url(assets/fonts/CanelaDeck-Medium.otf);
  font-display: swap;
}
@font-face {
  font-family: caneladeck-regular;
  src: url(assets/fonts/CanelaDeck-Regular.otf);
  font-display: swap;
}
@font-face {
  font-family: suisseintl-bold;
  src: url(assets/fonts/SuisseIntl-Bold.ttf);
  font-display: swap;
}
@font-face {
  font-family: suisseintl-book;
  src: url(assets/fonts/SuisseIntl-Book.ttf);
  font-display: swap;
}
@font-face {
  font-family: suisseintl-medium;
  src: url(assets/fonts/SuisseIntl-Medium.ttf);
  font-display: swap;
}
@font-face {
  font-family: suisseintl-semibold;
  src: url(assets/fonts/SuisseIntl-SemiBold.ttf);
  font-display: swap;
}

.dashboard {
  .c-header {
    top: 0;
    background-color: var(--c-white);
    z-index: 99;
  }

  .pagetitle {
    font-family: caneladeck-regular;
    font-size: 36px;
    font-weight: 400;
    line-height: 50.4px;
    text-align: left;
  }
  .lastupdated {
    font-family: suisseintl-book;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
  }
  .lastupdated span {
    font-family: suisseintl-bold;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
    color: var(--c-violet);
  }

  .filters {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .filter-lhs {
    gap: 8px 21px;
  }

  .filter-rhs {
    gap: 8px 16px;
  }
  .filter-rhs label {
    font-family: suisseintl-book;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
  }
  .filter-rhs select:focus,
  .filter-rhs select:active {
    outline: none;
    box-shadow: none;
  }
  .filter-rhs select option {
    font-family: suisseintl-book;
    font-size: 14px;
    font-weight: 400;
    color: var(--c-black);
  }
  .filter-rhs select {
    font-family: suisseintl-bold;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-violet);
    padding-right: 24px;
    width: auto;
    border: 0;
    padding-top: 0;
    padding-left: 0;
    padding-bottom: 0;
    --bs-form-select-bg-img: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAYCAYAAAAPtVbGAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACsSURBVHgB7dI/EgExFMfx9zbxpzG2VG5B7xg6V+AIjuAWSjcwunUEpZrS9ozOjvyEGQ2JPDPK9y3z8uaTIkSapqXi4GlvVLQsVsSckzTg5ECTutrs3kc2dL/RzMZ+aUi/xP692XPnAzGh++6835pOv2BmMQSHZX0s56GZiS3dLoe1FHoA16qcxubm27IESgFJJAVJABESg6SAGHlBtjvI/S9qA1h4YEaapv2tO8D/T0Di8kgjAAAAAElFTkSuQmCC");
    background-size: 24px 24px;
    background-position: right -1px;
  }

  .bg-grey {
    background-color: var(--c-grey);
  }

  .countcards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 1rem;
  }

  .card {
    width: 100%;
    padding: 24px 16px;
  }
  .card-body {
    padding: 0;
  }
  .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .card-pretitle {
    font-family: suisseintl-bold;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    text-align: left;
  }
  .card-title {
    font-family: suisseintl-bold;
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.04em;
    text-align: left;
  }
  .card-percent {
    font-family: suisseintl-bold;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    text-align: left;
    color: #00a02d;
    background-image: url("increment.svg");
    background-position: right center;
    background-size: 12.5px 8px;
    background-repeat: no-repeat;
    padding-right: 24px;
  }
  .card-percent.-negative {
    color: #dd0000;
    background-image: url("decrement.svg");
  }

  .charts {
    padding: 40px 0 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .charts-card {
    background-color: var(--c-white);
    box-shadow: 0px 2px 32px 0px #071d4929;
    padding: 24px;
  }
  @media only screen and (min-width: 1024px) {
    .charts-card:nth-child(1) {
      grid-column: 1/3;
    }
  }
  .charts-card ul,
  .charts-card canvas {
    margin-top: 30px;
  }
  .charts-cardTitle {
    font-family: caneladeck-medium;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
    color: var(--c-violet);
    margin-bottom: 8px;
  }
  .charts-cardCount {
    font-family: suisseintl-bold;
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.04em;
    text-align: left;
    color: var(--c-black);
    margin-bottom: 0;
  }

  .user-wrap,
  .location-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: center;
  }
  .user-wrap canvas {
    width: 230px !important;
    height: 230px !important;
  }
  .location-wrap canvas {
    width: 180px !important;
    height: 180px !important;
  }

  .custom-legend::-webkit-scrollbar {
    width: 5px;
  }

  /* Track */
  .custom-legend::-webkit-scrollbar-track {
    background: #f2f2f2;
  }

  /* Handle */
  .custom-legend::-webkit-scrollbar-thumb {
    background: #071d49;
  }

  /* Handle on hover */
  .custom-legend::-webkit-scrollbar-thumb:hover {
    background: #071d49;
  }

  .custom-legend {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
  }
  .custom-legend li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-family: suisseintl-book;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-align: left;
    color: var(--c-black);
  }
  .custom-legend li span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
  }
  .custom-legend li .count {
    display: inline-block;
    margin-left: auto;
    width: unset;
    height: unset;
    font-family: suisseintl-bold;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: left;
    color: var(--c-violet);
  }
  .custom-legend li .count2 {
    display: inline-block;
    margin-left: auto;
    width: unset;
    height: unset;
    font-family: suisseintl-bold;
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.04em;
    text-align: left;
    color: var(--c-black);
    width: 100%;
  }

  .catcard {
    background-color: var(--c-violet);
    color: var(--c-white);
    padding: 40px;
  }
  .catcard .charts-cardTitle {
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
    text-align: left;
    color: var(--c-white);
  }
  .charts-cardol {
    margin-top: 30px;
    padding-left: 1.5rem;
  }
  .charts-cardol li:not(:last-child) {
    margin-bottom: 16px;
  }
  .charts-cardol li {
    font-family: suisseintl-book;
    font-size: 20px;
    font-weight: 400;
    line-height: 27.32px;
    text-align: left;
  }

  @media only screen and (max-width: 768px) {
    .pagetitle {
      font-family: caneladeck-regular;
      font-size: 32px;
      font-weight: 400;
      line-height: 38.4px;
      text-align: left;
      margin-bottom: 0;
      width: 100%;
    }
    .lastupdated {
      font-family: suisseintl-book;
      font-size: 14px;
      font-weight: 700;
      line-height: 24px;
      text-align: left;
    }
    .lastupdated span {
      font-size: 14px;
      line-height: 24px;
      text-align: left;
    }

    .countcards {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      margin-top: 2rem;
    }
    .filters {
      padding: 40px 12px;
    }

    .charts {
      grid-template-columns: 1fr;
    }

    .charts-card {
      padding: 16px;
    }

    .location-wrap,
    .user-wrap {
      flex-wrap: wrap;
    }

    .location-wrap canvas,
    .user-wrap canvas {
      width: 100% !important;
      height: unset !important;
    }

    .charts-card .custom-legend {
      margin-top: 10px;
    }

    .catcard {
      padding: 24px;
    }
    .charts-cardol {
      margin-top: 24px;
    }
    .charts-cardol li {
      font-family: suisseintl-book;
      font-size: 14px;
      font-weight: 400;
      line-height: 14px;
      text-align: left;
    }

    .custom-legend.--user {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
    }
    .custom-legend.--user li {
      width: max-content;
      max-width: 50%;
      justify-content: center;
    }
    .custom-legend.--user li .count2 {
      text-align: center;
      margin-right: 0;
      margin-bottom: 16px;
    }

    /* mobile menu styles */
    .mobileNav {
      position: fixed;
      bottom: 20px;
      right: 20px;
    }
    .nav-btn {
      padding: 0;
      border: 0;
    }
    .nav-btn::after {
      content: unset !important;
    }
    .nav-btn.show .nav-icon4 {
      background-color: var(--c-white);
    }
    .nav-btn.show .nav-icon4 span {
      background-color: var(--c-violet);
    }
    .nav-icon4 {
      position: relative;
      width: 48px;
      height: 48px;
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
      -webkit-transition: 0.5s ease-in-out;
      -moz-transition: 0.5s ease-in-out;
      -o-transition: 0.5s ease-in-out;
      transition: 0.5s ease-in-out;
      cursor: pointer;
      background-color: var(--c-violet);
    }
    .nav-icon4 span {
      display: block;
      position: absolute;
      height: 3px;
      width: 28px;
      margin-left: auto;
      margin-right: auto;
      background: var(--c-white);
      border-radius: 9px;
      opacity: 1;
      left: 0;
      right: 0;
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
      -webkit-transition: 0.25s ease-in-out;
      -moz-transition: 0.25s ease-in-out;
      -o-transition: 0.25s ease-in-out;
      transition: 0.25s ease-in-out;
    }

    .nav-icon4 span:nth-child(1) {
      top: 10px;
      -webkit-transform-origin: left center;
      -moz-transform-origin: left center;
      -o-transform-origin: left center;
      transform-origin: left center;
    }

    .nav-icon4 span:nth-child(2) {
      top: 21px;
      -webkit-transform-origin: left center;
      -moz-transform-origin: left center;
      -o-transform-origin: left center;
      transform-origin: left center;
    }

    .nav-icon4 span:nth-child(3) {
      top: 32px;
      -webkit-transform-origin: left center;
      -moz-transform-origin: left center;
      -o-transform-origin: left center;
      transform-origin: left center;
    }

    .nav-icon4.open span:nth-child(1) {
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      transform: rotate(45deg);
      top: 10px;
      left: 8px;
    }

    .nav-icon4.open span:nth-child(2) {
      width: 0%;
      opacity: 0;
    }

    .nav-icon4.open span:nth-child(3) {
      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      transform: rotate(-45deg);
      top: 31px;
      left: 8px;
    }

    .customdropdown {
      padding: 24px;
      margin-bottom: 8px !important;
    }
    .customdropdown li:last-child .dropdown-item {
      border-bottom: 0;
      padding-bottom: 0;
    }
    .customdropdown li:not(:first-child) .dropdown-item {
      padding-top: 8px;
    }
    .customdropdown .dropdown-item {
      padding: 0 0 8px;
      width: 100%;
      font-family: suisseintl-semibold;
      font-size: 12px;
      font-weight: 600;
      line-height: 24px;
      text-align: center;
      color: #222222;
      border-bottom: 0.5px solid #dbdbdb;
    }
  }
}
