/* ====================================================
   Tabellen-Styles
   (Basis-Layout für html/body/div.top in dg.css)
   ==================================================== */

.styled-table {
    border-collapse: collapse;
    margin: 25px auto;
    font-size: 0.9em;
    font-family: sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
}

.styled-table::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
}

.styled-table::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 3px solid #fff;
    background-color: rgba(0, 0, 0, .3);
}

.styled-table thead tr {
    background-color: #1a3a5c;;
    color: #ffffff;
    text-align: left;
}

.styled-table th {
    padding: 6px 8px;
    text-align: center;
    border-left: 1px solid #dddddd;
    border-right: 1px solid #dddddd;
}

.styled-table th.top-border {
    border-top: 1px solid #dddddd;
}

.styled-table th.border {
    border: 1px solid #dddddd;
}

.styled-table td {
    padding: 6px 10px;
    border: 1px solid #000000;
}

.styled-table tbody tr {
    border: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #007AFF;
}

.styled-table tbody tr.average {
    font-weight: bold;
    text-align: center;
}

/* ====================================================
   Scrollable Wrapper (greift auf Mobile)
   ==================================================== */

.table-scrollable {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    overflow-x: auto;
    margin: 0 0 1em;
}

.table-scrollable::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
}

.table-scrollable::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 3px solid #fff;
    background-color: rgba(0, 0, 0, .3);
}

/* ====================================================
   Mobile
   ==================================================== */

@media only screen and (max-width: 600px) {
    .table-scrollable {
        padding: 0 5px;
    }
    .styled-table {
        font-size: 0.85em;
    }
    .styled-table th,
    .styled-table td {
        padding: 4px 6px;
    }
}
