table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    min-width: 85%;
    max-width: 100%;
    text-align: left;
    margin-top: 0;
}

thead {
    position: sticky;
    top: 0;
}

th {
    background-color: darkcyan;
}

th,
td {
    padding: .7vw;
    padding-top: .6vw;
    padding-bottom: .6vw;
    text-align: center;
}

td:nth-child(2) {
    min-width: 80px;
}

tr.even {
    background-color: rgb(60, 60, 60);
}

hr {
    border: 3px solid #3d3d3d;
    border-radius: 5px;
    width: 99.55%;
}

/* Colori righe tabella */
tr.sconosciuto,
p.sconosciuto {
    background-color: purple;
}

tr.even.sconosciuto {
    background-color: rgb(150, 0, 150);
}

tr.fermo,
p.fermo {
    background-color: rgb(230, 230, 0);
    color: black;
}

tr.even.fermo {
    background-color: rgb(255, 255, 0);
}

tr.dismesso,
p.dismesso {
    background-color: rgb(215, 58, 0);
}

tr.even.dismesso {
    background-color: rgb(255, 68, 0);
}

tr.demolito,
p.demolito {
    background-color: rgb(100, 0, 0);
}

tr.even.demolito {
    background-color: rgb(135, 0, 0);
}

.cursor-pointer {
    cursor: pointer;
}

div.legenda {
    display: flex;
    justify-content: center;
}

div.legenda p {
    border-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
    margin: 2px;
    height: fit-content;
}

@media (max-width: 768px) {
    table {
        width: 100%;
    }

    th,
    td {
        font-size: 2.5vw;
    }
}

@media (max-width: 512px) {
    table {
        margin-top: 10px;
    }

    th,
    td {
        font-size: 3.5vw;
    }

    th:first-child {
        padding-left: 5px;
    }
}