﻿.unit-table-container {
    margin: 1rem auto;
    overflow-x: auto;
    max-width: 1800px;
    width:95%;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size:1.2rem;
}


.unit-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

    .unit-table * {
        font-size: 1em;
    }

    .unit-table thead {
        background-color: #222;
        color: #fff;
        text-align: left;
    }

    .unit-table th,
    .unit-table td {
        padding: 1rem 1em;
        border-bottom: 1px solid #e0e0e0;
        min-width: 10px;
    }

    .unit-table tbody tr:hover {
        background-color: #f0f0f0;
    }

.logout-container {
    display: flex;
    max-width:1800px;
    width:100%;
    margin:auto;
    justify-content: center;
    margin-top: 0rem;
}

.logout-button {
    margin:0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ff4d4f;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    .logout-button:hover {
        background-color: #e04345;
        transform: translateY(-1px);
    }

    .logout-button img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

.unit-link {
    color: #007bff;
    text-decoration: none;
}

    .unit-link:hover {
        text-decoration: underline;
    }

.no-units {
    text-align: center;
    color: #555;
    font-style: italic;
}

@media(max-width:800px){
    .unit-table-container{
        font-size:0.8rem;
    }
}
@media(max-width:400px) {
    .unit-table-container {
        font-size: 0.6rem;
    }
}