/* ========== BIG TABLETS AND SMALL LAPTOPS ========== */
@media screen and (max-width: 1200px) {
  .container {
    width: 94%;
    grid-template-columns: 7rem auto 23rem;
  }

  aside .logo h2 {
    display: none;
  }

  aside .sidebar h3 {
    display: none;
  }

  aside .sidebar a {
    width: 5.6rem;
  }

  aside .sidebar a:last-child {
    position: relative;
    margin-top: 1.8rem;
  }

  main .insights {
    grid-template-columns: 1fr;
    gap: 0;
  }

  main .recent-orders {
    width: 94%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 2rem 0 0 8.8rem;
  }

  main .recent-orders table {
    width: 83vw;
  }

  main table thead tr th:first-child,
  main table thead tr th:last-child,
  main table tbody tr td:first-child,
  main table tbody tr td:last-child {
    display: none;
  }
}

/* ========== SMALL TABLETS AND MOBILE PHONES ========== */
@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    grid-template-columns: 1fr;
  }

  aside {
    position: fixed;
    left: -100%;
    background-color: var(--color-white);
    padding-right: var(--card-padding);
    width: 18rem;
    box-shadow: 1rem 3rem 4rem var(--color-light);
    z-index: 3;
    display: none;
    animation: showMenu 400ms ease forwards;
  }

  @keyframes showMenu {
    to {
      left: 0;
    }
  }

  aside .logo {
    margin-left: 1rem;
  }

  aside .logo h2 {
    display: inline;
  }

  aside .sidebar h3 {
    display: inline;
  }

  aside .sidebar a {
    height: 3.4rem;
    width: 100%;
  }

  aside .sidebar a:last-child {
    position: absolute;
    bottom: 5rem;
  }

  aside .close {
    display: inline-block;
    cursor: pointer;
  }

  main {
    margin-top: 8rem;
    padding: 0 1rem;
  }

  main .recent-orders {
    position: relative;
    margin: 3rem 0 0 0;
    width: 100%;
  }

  main .recent-orders table {
    width: 100%;
    margin: 0;
  }

  .right {
    width: 94%;
    margin: 0 auto 4rem;
  }

  .right .top {
    align-items: center;
    background-color: var(--color-white);
    position: fixed;
    top: 0;
    left: 0;
    height: 4.6rem;
    padding: 0 0.8rem;
    width: 100%;
    z-index: 2;
    box-shadow: 0 1rem 1rem var(--color-light);
  }

  .right .top .theme-toggler {
    position: absolute;
    left: 66%;
    width: 4.4rem;
  }

  .right .profile .info {
    display: none;
  }

  .right .profile .profile-photo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
  }

  .right .top button {
    display: inline-block;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-dark);
    position: absolute;
    left: 1rem;
  }

  .right .top button span {
    font-size: 2rem;
  }
}
