@charset "UTF-8";

table {
    color: unset;
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td, th {
    border: 1px solid var(--middle-color);
    padding: 8px;
}

td.right {
    text-align: right;
}

td.center {
    text-align: center;
}

tr {
    background-color: var(--background-color);
}

tr:hover {background-color: var(--light-color);}

thead {
    position: sticky;
    top: 0;
    border: 1px solid var(--font-color);
    background-color: var(--font-color);
}

th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--background-color);
}

td form {
    display: inline-block;
}

td > div {
    white-space: nowrap;
}

@media
only screen
and (max-width: 900px), (min-device-width: 900px)
and (max-device-width: 1024px)  {

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    tr {
        margin: 0 0 1rem 0;
    }

    tr:nth-child(odd) {
        background: var(--secondary-color);
    }

    td {
        border: 1px solid var(--middle-color);
        border-bottom: 1px solid var(--background-color);
        position: relative;
        padding-left: 50%;
        background: linear-gradient(to right, var(--secondary-color) 50%, transparent 50%);
    }

    td:before {
        position: absolute;
        top: 0;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }

    td:nth-of-type(1):before { color: var(--background-color); font-weight: bold; content: "SKU"; }
    td:nth-of-type(2):before { color: var(--background-color); font-weight: bold; content: "Artikel"; }
    td:nth-of-type(3):before { color: var(--background-color); font-weight: bold; content: "Kurzbeschreibung"; }
    td:nth-of-type(4):before { color: var(--background-color); font-weight: bold; content: "Beschreibung"; }
    td:nth-of-type(5):before { color: var(--background-color); font-weight: bold; content: "Nettopreis"; }
    td:nth-of-type(6):before { color: var(--background-color); font-weight: bold; content: "Bruttopreis"; }
    td:nth-of-type(7):before { color: var(--background-color); font-weight: bold; content: "Steuerklasse"; }
    td:nth-of-type(8):before { color: var(--background-color); font-weight: bold; content: "Aktionen"; }
}

@media (max-width: 1090px) {
    main {
        width: 100%;
        margin: unset;
    }
}