.sidebar {
   position: fixed;
   width: 345px;
   height: 100%;
   background: #1D203C;
   border-right: 2px solid #575C81;
   transition: width 300ms;
   top: 0;
   left: 0;
   z-index: 100;
}

.sidebar-brand {
   display: flex;
   height: 70px;
   padding: 1rem 0rem 1rem 2rem;
   color: white;
}

.sidenav-img {
   margin-top: -5px;
}

.sidebar-brand span {
   display: flex;
   align-items: center;
   white-space: nowrap;
   padding-right: 1rem;
   font-size: 1.5rem;
   width: 2.7rem;
}

.sidebar-brand span:first-child {
   display: flex;
   padding-right: 5rem;
   width: 50px;
}

.sidebar-menu {
   margin-top: 1rem;
}

.sidebar-menu ul {
   padding: 0;
}

.sidebar-menu .logout-btn,
.sidebar-menu li {
   width: 100%;
   margin-bottom: 0.7rem;
   padding-left: 1rem;
}

.sidebar-menu .logout-btn {
   position: absolute;
   bottom: 0;
}

.sidebar-menu a {
   display: flex;
   flex-direction: row;
   align-items: center;
   background: transparent;
   color: white;
   font-size: 1.1rem;
   padding-top: 1rem;
   padding-bottom: 1rem;
   padding-left: 1rem;
   border-radius: 30px 0 0 30px;
}

.sidebar-menu a.whitelist-btn {
   background: #1e54a5;
}

.sidebar-menu .logout {
   display: flex;
   flex-direction: row;
   align-items: center;
   color: #f94f4f;
   font-size: 1.1rem;
   padding-top: 1rem;
   padding-bottom: 1rem;
   padding-left: 1rem;
}

.sidebar-menu .logout:hover,
.sidebar-menu a:hover {
   background: #2b3057;
   border-radius: 30px 0 0 30px;
}

.sidebar-menu a.whitelist-btn:hover {
   background: #2667c8;
}

.sidebar-menu a.active {
   background: #2b3057;
   border-radius: 30px 0 0 30px;
}

.sidebar-menu a.whitelist-btn.active {
   background: #2667c8;
}

.sidebar-menu a.whitelist-btn.pending {
   background: #ce6917;
   cursor: unset;
}

.sidebar-menu a.whitelist-btn.done {
   background: #1d770e;
   cursor: unset;
}

.sidebar-menu .logout span:first-child,
.sidebar-menu a span:first-child {
   font-size: 1.5rem;
   padding-right: 1rem;
   width: 2.7rem;
}

#nav-toggle:checked+.sidebar {
   width: 70px;
}

#nav-toggle:checked+.sidebar .sidebar-brand {
   padding-left: 1rem;
   text-align: center;
}

#nav-toggle:checked+.sidebar .sidebar-brand span:first-child {
   display: inline;
   margin-left: -.5rem;
}

#nav-toggle:checked+.sidebar .logout-btn,
#nav-toggle:checked+.sidebar li {
   padding-left: 0rem;
   text-align: center;
}

#nav-toggle:checked+.sidebar .logout-btn a,
#nav-toggle:checked+.sidebar li a {
   padding-left: 1rem;
   border-radius: 0;
}

#nav-toggle:checked+.sidebar .logout:hover,
#nav-toggle:checked+.sidebar a:hover,
#nav-toggle:checked+.sidebar a.active {
   border-radius: 0;
}

#nav-toggle:checked+.sidebar .sidebar-brand span:last-child,
#nav-toggle:checked+.sidebar li a span:last-child,
#nav-toggle:checked+.sidebar .logout-btn a span:last-child {
   display: none;
}

@media only screen and (max-width: 1200px) {
   .sidebar {
      width: 70px;
   }

   .sidebar .sidebar-brand {
      padding-left: 1rem;
      text-align: center;
   }

   .sidebar .logout-btn,
   .sidebar li {
      padding-left: 0rem;
      text-align: center;
   }

   .sidebar .logout-btn a,
   .sidebar li a {
      padding-left: 1rem;
      border-radius: 0;
   }

   .sidebar .logout:hover,
   .sidebar a:hover,
   .sidebar a.active {
      border-radius: 0;
   }

   .sidebar .sidebar-brand span:last-child,
   .sidebar li a span:last-child,
   .sidebar .logout-btn a span:last-child {
      display: none;
   }

   .sidebar .sidebar-brand span:first-child {
      display: inline;
      margin-left: -.5rem;
   }

   #nav-toggle:checked+.sidebar {
      width: 345px;
   }

   #nav-toggle:checked+.sidebar .sidebar-brand {
      padding-left: 2rem;
      text-align: left;
   }

   #nav-toggle:checked+.sidebar .logout-btn,
   #nav-toggle:checked+.sidebar li {
      padding-left: 1rem;
      text-align: left;
   }

   #nav-toggle:checked+.sidebar .logout-btn a,
   #nav-toggle:checked+.sidebar li a {
      padding-left: 2rem;
      border-radius: 30px 0 0 30px;
   }

   #nav-toggle:checked+.sidebar .logout:hover,
   #nav-toggle:checked+.sidebar a:hover,
   #nav-toggle:checked+.sidebar a.active {
      border-radius: 30px 0 0 30px;
   }

   #nav-toggle:checked+.sidebar .sidebar-brand span:last-child,
   #nav-toggle:checked+.sidebar li a span:last-child,
   #nav-toggle:checked+.sidebar .logout-btn a span:last-child {
      display: inline;
   }

   #nav-toggle:checked+.sidebar .sidebar-brand span:first-child {
      display: none;
   }
}

@media only screen and (max-width: 768px) {
   .sidebar {
      left: -100% !important;
   }

   #nav-toggle:checked+.sidebar {
      left: 0 !important;
      z-index: 100;
      width: 345px;
   }

   #nav-toggle:checked+.sidebar .sidebar-brand {
      padding-left: 2rem;
      text-align: left;
   }

   #nav-toggle:checked+.sidebar .logout-btn,
   #nav-toggle:checked+.sidebar li {
      padding-left: 1rem;
      text-align: left;
   }

   #nav-toggle:checked+.sidebar .logout-btn a,
   #nav-toggle:checked+.sidebar li a {
      padding-left: 1rem;
   }

   #nav-toggle:checked+.sidebar .logout:hover,
   #nav-toggle:checked+.sidebar a:hover,
   #nav-toggle:checked+.sidebar a.active {
      border-radius: 30px 0 0 30px;
   }

   #nav-toggle:checked+.sidebar li a span:last-child,
   #nav-toggle:checked+.sidebar .logout-btn a span:last-child {
      display: inline;
   }
}