/* Body Grid Layout: PHONE */
@media screen and (max-width: 768px) {
    body {
        display: grid;
        grid-template-areas: 
            "header"
            "sidebar_left"
            "content"
            "footer";
        grid-template-columns: 1fr;
        grid-template-rows: 3rem 2rem 1fr 2rem;
    }

    .sidebar_left {
        grid-area: sidebar_left;
        display: flex;               /* Arrange child <a> tags in a row */
        overflow-x: auto;            /* Enable scroll if they overflow */
        gap: 1rem;                   /* Space between links */
        padding: 0px;
        white-space: nowrap;
        background-color: #ccc;
    }

    .sidebar_left a {
        font-size: 1rem;
        color: black;
        display: block;
        padding: 0.5rem 1rem 0.5rem 1rem;
        text-decoration: none;
        flex: 0 0 auto; 
    }

    .sidebar_right {
        display: none;
    }

    .header {
        overflow-x: auto;
        white-space: nowrap;
    }

    .header ul {
        display: flex;
        margin: 0;
        padding: 0;
        overflow-x: auto;
        gap: 0.5rem;
        align-items: center;
        white-space: nowrap;
    }

    .header li {
        flex: 0 0 auto; /* Prevent shrinking */
    }

    .header li a {
        transition: background-color 0.2s;
    }

    .header li a:hover {
        background-color: #111;
    }

    .header::-webkit-scrollbar {
        display: none;
    }

    .footer {
        text-align: center;
        padding-right: 0;
    }

    .content {
        grid-area: content;
        padding: 0.5rem 0.5rem;
    }

    .login-table input {
        width: 70%;
    }
}