body {
    display: flex;
}

a {
    color: black;
    text-decoration: none;
}

.sidebar {
    width: 220px;
    height: 100vh;
    background: #343a40;
    color: white;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 100;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content {
    flex-grow: 1;
    padding: 20px;
    margin-left: 250px;
    transition: margin-left 0.3s ease-in-out;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;

}

.sidebar a:hover {
    background: #495057;
}


.sidebar form button {
    color: white;
    width: 100%;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.menu-toggle {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    background: #343a40;
    border: 2px solid #FFF;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}


.user-section {
    margin-top: auto;
    padding-top: 1rem;
    /* border-top: 1px solid #495057; */
    font-size: 0.9rem;
}

.user-info {
    color: #ccc;
}

.user-info strong {
    color: #fff;
}

.user-info a {
    display: inline;
    padding: 0;
    border-radius: 0;
    color: #fff; /* or inherit */
    text-decoration: none;
}

.user-info a:hover {
    text-decoration: none; /* optional */
}


table.table tbody tr[data-stint-phase="qualifying"] td {
    border-bottom: 4px solid #dee2e6 !important; 
}

.rebase-closed {
    background-color: #e9ecef !important;
    color: #6c757d;
    opacity: 0.4;
}

@media (max-width: 920px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .dashboard {
        margin: 10px 0px;
    }
    .user-section{
        margin-bottom: 40px;
    }
}

@media (max-height: 650px) {
    .sidebar-logo {
        display: none;
    }
}

.pit-tires {
    display: grid;
    grid-template-columns: 60px 40px 60px;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-items: center;
    justify-items: center;
    font-size: 12px;
}

.tire {
    text-align: center;
    line-height: 1.1;
}

.tire-fl { grid-column: 1; grid-row: 1; }
.tire-fr { grid-column: 3; grid-row: 1; }
.tire-rl { grid-column: 1; grid-row: 2; }
.tire-rr { grid-column: 3; grid-row: 2; }

.tire-center {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 18px;
    opacity: 0.8;
}