*,
*::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;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.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: 168px;
  width: 100%;
  height: auto;
}

.nav__link-favicon {
  display: block;
  width: 44px;
  height: auto;
  margin: 0 auto;
}

.nav__logo .nav__link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.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: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(232, 237, 245, 0.95);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  white-space: normal;
  pointer-events: auto;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.cluster-devices-list {
  max-height: 320px;
  min-width: 320px;
  max-width: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.cluster-devices-list::-webkit-scrollbar {
  width: 6px;
}

.cluster-devices-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.cluster-device-item {
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  margin-bottom: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  cursor: pointer;
}

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

.cluster-device-item:hover {
  background: #f8fafc;
  border-color: #e8edf5;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

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

.cluster-device-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cluster-device-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.cluster-device-name {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cluster-device-speed {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.3;
  white-space: nowrap;
}

.cluster-device-driver {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cluster-device-status {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.cluster-device-status.status-moving {
  background: #ecfdf5;
  color: #15803d;
  border-color: #bbf7d0;
}

.cluster-device-status.status-idle {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.cluster-device-status.status-stopped {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.cluster-device-status.status-offline {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}