/* =========================================================
   🖥️ DESKTOP & TABLET (INTE MOBIL)
   ========================================================= */

@media screen and (min-width: 721px) {

    table#list {
        width: 97%;
        margin: 20px auto;
        border-collapse: collapse;
        font-size: 11px !important;
        font-family: Arial, sans-serif;
        border: 0;
        color: #fff;
    }

    table#list th,
    table#list td {
        padding: 10px;
        border: 1px solid #444;
        font-size: 11px;
        color: #fff;
        display: table-cell;
        vertical-align: middle;

        /* 🔥 ALLT VÄNSTERSTÄLLT PÅ DESKTOP */
        text-align: left !important;
    }

    table#list thead tr {
        background-color: #3a3a3a;
    }

    table#list tbody tr:nth-child(odd) {
        background-color: #2e2e2e;
    }

    table#list tbody tr:nth-child(even) {
        background-color: #1f1f1f;
    }

    /* Sektion-rubriker */
    table#list .section-header {
        background-color: #444;
        color: #66CC00;
        font-weight: bold;
        text-align: center !important;
    }

    /* Länkar */
    table#list a {
        display: inline-block;
        text-decoration: none;
        border-bottom: 1px dashed #999;
        padding-bottom: 2px;
        color: #999 !important;
    }

    table#list a:hover {
        border-bottom: 1px solid #66CC00 !important;
        color: #66CC00 !important;
    }

    /* Inga mobila labels på desktop */
    table#list td::before {
        content: none !important;
        display: none !important;
    }
}


/* =========================================================
   📱 MOBIL
   ========================================================= */

@media screen and (max-width: 720px) {

    /* 🔥 10px luft runt hela tabellen */
    table#list {
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    table#list,
    table#list thead,
    table#list tbody,
    table#list th,
    table#list td,
    table#list tr {
        display: block;
    }

    table#list thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table#list tr {
        margin: 0 0 1rem 0;
        border: 1px solid #444;
        border-radius: 6px;
        background-color: #2a2a2a;
        padding: 10px;
    }

    table#list td {
        border: none;
        border-bottom: 1px solid #444;
        position: relative;
        padding: 10px 10px 10px 50%;
        font-size: 11px;
        color: #fff;
        text-align: right !important;
    }

    table#list td:last-child {
        border-bottom: none;
    }

    table#list td::before {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #66CC00;
        content: attr(data-label);
        font-size: 11px;
    }
}


