* {
    box-sizing: border-box;
}

table {
    height: 100%;
    border-collapse: collapse;
    width: 100%;
    font-size: x-small;
    table-layout: fixed;
    font-family: Arial, Helvetica, sans-serif;
    color: #232528;
    background-color: white;
    border-collapse: collapse;
    border-top: 0 !important;
    border-bottom: 0 !important;
}

thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

thead.dark {
    color: white;
    background-color: #232528;
}

thead.white {
    background-color: white;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
    border: 0px;
}

table.draeger{
    background-color: #6b8199 !important;
}

thead.draeger, thead.draeger tr{
    background-color: #465a71 !important;
    color: white;
}

tbody {
    overflow: hidden;
}

tfoot {
    position: sticky;
    bottom: 0;
}

tfoot.dark {
    border-top: 1px solid rgb(235, 235, 235);
    background-color: #ebebeb;
}

tfoot.white {
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
    background-color: white;
}

tfoot.draeger {
    color: white !important;
}

tfoot td {
    color: white;
    text-align: right;
    padding: 5px;
}

tfoot * {
    font-size: 15px;
    background-color: transparent !important;
}

tfoot div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 5px;
    gap: 5px;
    color: white;
}

tfoot button {
    font-size: 30px;
    padding: 0px;
    border: none;
    background-color: transparent;
    color: white;
    transition: .2s;
}

tfoot button:active {
    transform: translateY(2px);
}

tfoot input {
    width: 25px;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    outline: none;
    color: white;
}

tfoot select {
    padding: 10px;
    border-radius: 5px;
    border-color: #cfcfcf;
    color: white;
    background-color: #232528;
}

tfoot select option{
    color: black !important;
    text-align: center;
}

/* td:empty {
    width: 50px;
} */

th,
td {
    text-align: left;
    padding: 12px;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    cursor: pointer;
}

tr,td,th{
    vertical-align: middle;
    border: 0px solid #586d85;
    border-left: 1px solid #586d85;
    /* animation: none !important; */
}

tbody tr {
    line-height: 25px;
    height: 25px;
    animation: fade 0.5s ease-in;
    color: white;
}

tr:nth-child(even) {
    background-color: rgba(33,45,56,.1) !important;
    animation: fade 0.5s ease-in;
}

tr:nth-child(odd) {
    background-color: #6b8199 !important;
    animation: fade 0.2s ease-in;
}

tr.white {
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.table-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    overflow-y: auto;
}

.aktiv-sort-filter {
    color: #6E9CFF;
}

.link {
    cursor: pointer;
    text-decoration: underline;
}
.link:hover{
    opacity: 0.5;
}

.marked {
    border-radius: 5px;
    padding: 4px;
}

.scroll-x {
    min-height: 300px;
    width: 100%;
    flex: 1;
    overflow-x: auto;
    position: relative;
}

.table {
    flex: 1;
    flex-grow: 1;
    padding: 5px;
    width: 100%;
}

.lasttr {
    background-color: transparent !important;
    height: auto;
}

.lasttr td {
    padding: 0px;
}

.table-loading{
    width: 100%;
    height: 25px;
    background-color: #465a71;
    animation-name: loading-fade;
    animation-duration: 2s;
    animation-direction: alternate-reverse;
    animation-iteration-count: infinite;
}

@keyframes loading-fade {
    0% {
        opacity: 1;
        /* background-color: #e9e9e9; */
    }
    50%{
        opacity: 0.5;
    }
    100%{
        opacity: 1;
        /* background-color: #eeeeee; */
    }
}

@keyframes fade {
    from {
        opacity: 0%;
    }

    to {
        opacity: 100%;
    }
}

/*  */

@media screen and (max-width: 600px) {
    table {
        border: 0;
        background-color: transparent;
    }

    .lasttr{
        display: none;
    }

    .scroll-x::-webkit-scrollbar {
        display: none;
    }

    .scroll-x {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
        padding: 0px;
        margin: 0px;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tbody tr {
        /* border: 3px solid rgb(0, 0, 0); */
        height: auto;
        display: block;
        /* margin-bottom: .625em; */
        margin-bottom: 12px;
        -webkit-box-shadow: 0px 10px 20px -15px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
        box-shadow: 0px 10px 20px -15px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
    }

    table tbody td {
        border-bottom: 1px solid #ddd;
        display: block;
        /* font-size: .8em; */
        text-align: right;
    }

    table tfoot td {
        display: block;
    }

    table tbody td::before {
        /*
      * aria-label has no advantage, it won't be read inside a table
      content: attr(aria-label);
      */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    table tbody td:last-child {
        border-bottom: 0;
    }
    .table-loading{
        width: 50%;
        float: right;
    }
}