/* ================ MEDIA QUERIES (Tablet)  ============ */
@media screen and (max-width: 1200px) {
    .container{
        width: 94%;
        grid-template-columns: 7rem 2fr 1fr;
    }
    
    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 .table-container {
        width: 100%;
        position: static;
        left: auto;
        transform: none;
        margin: 2rem 0 0 0;
    }

    main .table-container table {
        width: 100%;
    }
    
    main table tbody tr th:last-child, 
    main table tbody tr th:first-child {
        display: none;
    }
}


/* ========= MEDIA QUERIES (Phone/Mobile) ========== */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        grid-template-columns: 1fr;
    }

    main {
        order: 2;
    }

    aside {
        position: fixed;
        left: -100%;
        background: var(--color-white);
        width: 18rem;
        z-index: 3;
        box-shadow: 1rem 3rem 4rem var(--color-light);
        height: 100vh;
        padding-right: var(--card-padding);
        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 {
        width: 100%;
        height: 3.4rem;
    }
    
    aside .close {
        display: inline-block;
        cursor: pointer;
    }
    
    main {
        margin-top: 8rem;
        padding: 0 1rem;
    }

    main .table-container {
        position: relative;
        margin: 3rem 0 0 0;
        width: 100%;
    }

    main .table-container table {
        width: 100%;
        margin: 0;
    }
    
    .right {
        width: 94%;
        margin: 0 auto 4rem;
        order: 1;
        
    }

    .right .top {
        position: relative;
        top: unset;
        left: unset;
        height: auto;
        padding: 1rem 0;
        box-shadow: none; 
    }

    .right .profile .info {
        display: none;
    }
    
    .right .top button {
        display: inline-block;
        background: transparent;
        cursor: pointer;
        color: var(--color-dark);
        position: absolute;
        left: 1rem;
    }
    
    .right .top button span {
        font-size: 2rem;
    }
}
