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

:root {
  --cr-white: 0, 0%, 100%;
  --cr-concrete: 0, 0%, 95%;
  --cr-firefly: 197, 37%, 16%;
}

.page {
  /*  color: hsl(var(--cr-white));
  background: hsl(var(--cr-firefly));*/
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "nave main";
  min-height: 100vh;
  font-size: 12px;

  font-family: 'Archivo';
}

.page__nav {
  grid-area: nave;
}

.page__main {
  grid-area: main;
}

.logo {
  font-size: 1.5rem;
}

.nave {
  transition: width 220ms linear;
  color: hsl(var(--cr-firefly));
  background: hsl(var(--cr-white));
  position: relative;
  width: 64px;
  overflow: hidden;
  box-shadow: 0.3em 0 0.3em rgba(0, 0, 0, 0.15);
}

.nave:hover {
  width: 200px;
  overflow: auto;
}

.nav__logo {
  margin-top: 0.5em;
  margin-bottom: 2em;
}

.nav__list {
  font-size: 16px;
  font-family: 'Archivo';
  font-style: normal;
}

.nav__list_bottom {
  /* position: absolute;*/
  margin-top: 280px;
  width: 100%;
}

.nav__link:hover {
  background: #D3EAF6;
  text-decoration: none;
}

.nav__link {
  color: inherit;
  display: grid;
  align-items: center;
  padding-block: 12px;
  text-decoration: 0;
  padding-left: 18px;
}

.nav__link-img-box {
  margin-left: 9px;
  width: 2em;
}

.nav__link-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.nav__link-icon {
  padding-left: 16px;
}

.nav__link-txt {
  position: absolute;
  left: 64px;
  width: max-content;
}

.nav__tab-txt {
  position: absolute;
  left: 3.5rem;
}

.main__title {
  margin-bottom: 0.5em;
  font-size: 2rem;
}

.main__desc {
  line-height: 1.5em;
}

.nav__link-logo {
  display: block;
  max-width: 140px;
  width: 100%;
  height: auto;
}

.nav__link-favicon {
  display: block;
  width: 32px;
  height: auto;
}

.nav__logo .nav__link {
  padding-left: 16px;
}

.hidee {
  display: none
}

.nave:hover+.hidee {
  display: block;

}

.nave .nav__item {
  position: relative;
  cursor: pointer;
}

.nave .nav__item .sub-item {
  padding-left: 20px;
}

.nave .nav__item .sub-item:hover {}

.nave .nav__item .sub-item .nav__link-txt {
  left: 68px;
}

.nave .nav__item .sub-btn i {
  margin-right: 15px;
}

.nave .nav__item .sub-btn .dropdown {
  position: absolute;
  left: 13.125rem;
  margin: 20px;
  transition: 0.3s ease;
}

.nave .sub-menu {

  display: none;
}

.nave .menu .item .sub-menu a {
  padding-left: 80px;
}

.rotate {
  transform: rotate(90deg);
}

.admin-layout .nave .sub-btn .dropdown {
  position: absolute;
  left: 13.125rem;
  margin: 20px;
  transition: 0.3s ease;
}

.admin-layout .nave .sub-item {
  padding-left: 20px;
}

.admin-layout .nave .sub-menu .nav__item {
  align-items: center;
  text-decoration: 0;
  font-size: 13px;
}

.admin-layout .nave .sub-menu .nav__link-txt {
  color: #202020;
}

.nav__item a:hover {
  background: #D3EAF6;
  text-decoration: none;
}

/* Cluster devices hover tooltip */
.leaflet-tooltip.cluster-devices-tooltip {
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  color: #222;
  white-space: normal;
  pointer-events: auto;
}

.leaflet-tooltip.cluster-devices-tooltip:before {
  border-right-color: #cfcfcf;
}

.cluster-devices-list {
  max-height: 280px;
  min-width: 280px;
  max-width: 420px;
  overflow-x: hidden;
  overflow-y: auto;
}

.cluster-device-item {
  padding: 8px 12px;
  border-bottom: 1px solid #e6e6e6;
}

.cluster-device-item:last-child {
  border-bottom: 0;
}

.cluster-device-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cluster-device-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.cluster-device-speed {
  font-weight: 400;
  color: #555;
}

.cluster-device-driver {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: #666;
}

.cluster-device-status {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.cluster-device-status.status-moving {
  background: #2eaf61;
}

.cluster-device-status.status-idle {
  background: #f0ad00;
}

.cluster-device-status.status-stopped {
  background: #e54848;
}

.cluster-device-status.status-offline {
  background: #888;
}