:root {
  --blue: #2a2185;
  --white: #fff;
  --gray: #f5f5f5;
  --black1: #222;
  --black2: #999;
}

/* =============== Navigation ================ */
.navigation {
  position: fixed;
  width: 20vh;
  height: 100vh;
  background: #0F0F0F;
  border-left: 1vh solid #0F0F0F;
  transition: 0.5s;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 0 1vh #000;
}

.container {
  position: relative;
  width: 100%;
}

/* Ocultar logotipo contraído por defecto */
.collapsed-logo {
  display: none;
}

/* Cuando el menú esté contraído */
.navigation.active .expanded-logo {
  display: none;
}

.navigation.active .collapsed-logo {
  display: inline;
  margin: 2vh 1vh 0vh auto;
}

.navigation.active {
  width: 7.5vh;
}

.navigation ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.navigation ul li {
  position: relative;
  width: 100%;
  list-style: none;
  border-top-left-radius: 3vh;
  border-bottom-left-radius: 3vh;
}

.navigation ul li.active,
.navigation ul li:hover {
  background-color: #7D0000;
}

.navigation ul li:nth-child(1) {
  margin-bottom: 4vh;
  pointer-events: none;
}

.navigation ul li a {
  position: relative;
  display: block;
  width: 100%;
  display: flex;
  text-decoration: none;
  color: var(--white);
  fill: var(--white);
}
.navigation ul li.active a,
.navigation ul li:hover a {
  color: #c93;
  fill: #c93;
}

.navigation ul li a .icon {
  position: relative;
  display: block;
  min-width: 6vh;
  height: 5vh;
  line-height: 6vh;
  text-align: center;
}
.navigation ul li a .icon svg, .toggle svg {
  font-size: 1.75rem;
  max-width: 2.5vh;
  max-height: 2.5vh;
}

.toggle svg {
	color: #454545 !important;
	fill: #454545 !important;
}

.toggle ion-icon {
  color: #C93;
}

.navigation ul li a .title {
	position: relative;
  display: block;
  padding: 0 1vh;
  height: 5vh;
  line-height: 5vh;
  text-align: start;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.5vh;
  letter-spacing: 0.1vh;
}

/* --------- curve outside ---------- */
.navigation ul li.active a::before,
.navigation ul li:hover a::before {
  content: "";
  position: absolute;
  right: 0;
  top: -5vh;
  width: 5vh;
  height: 5vh;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 3.5vh 3.5vh 0 1vh #7D0000;
  pointer-events: none;
}

.navigation ul li.active a::after,
.navigation ul li:hover a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5vh;
  width: 5vh;
  height: 5vh;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 3.5vh -3.5vh 0 1vh #7D0000;
  pointer-events: none;
}

/* ===================== Main ===================== */
.main {
  position: absolute;
  width: calc(100% - 20vh);
  left: 20vh;
  min-height: 100vh;
  transition: 0.5s;
}

.main.active {
  width: calc(100% - 7vh);
  left: 7vh;
}

.topbar {
  width: 100%;
  height: 6vh;
  display: flex;
  justify-content: right;
  align-items: center;
  position: absolute;
}

.toggle {
  position: relative;
  width: 6vh;
  height: 6vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  cursor: pointer;
}

.user {
  position: relative;
  width: 4vh;
  height: 4vh;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  right: 1vh;
}

.user img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====================== Responsive Design ========================== */
@media (max-width: 991px) {
  .navigation {
    width: 20vh;
    left: 0vh;
    z-index: 1000;
  }
  .navigation.active {
    width: 7.5vh;
    left: -7.5vh;
  }
  .main {
    width: 100%;
    left: 0vh;
  }
  .main.active {
    width: 100%;
    left: 0vh;
  }
  .toggle {
    z-index: 10001;
    transition: 0.5s;
  }
  .main.active .toggle {
    left: 0vh;
    transition: 0.5s;
  }
}

@media (max-width: 768px) {
  .details {
    grid-template-columns: 1fr;
  }
  .recentOrders {
    overflow-x: auto;
  }
  .status.inProgress {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .user {
    min-width: 4vh;
  }
  /* .navigation {
    width: 100%;
    left: -100%;
    z-index: 1000;
  }
  .navigation.active {
    width: 100%;
    left: 0;
  } */
  .toggle {
    z-index: 10001;
  }
  .main.active .toggle {
    right: 0;
    left: initial;
  }
  .chart-container {
    gap: 1vh;
  }
}