:root {
    --grey: #ccc;
    --lightgrey: #f5f5f5;
    --black: #000;
    --white: #fff;
    --lightgreen: lightgreen;
}

.tippspiel .tippspiel_tabs {
    overflow: hidden;
    position: relative;
}

/* Tablist */
.tippspiel .tippspiel_tabs [role="tablist"] {
    position: relative;
    min-width: 100%;
    display: flex;
    flex-wrap: wrap;
    scroll-snap-type: x mandatory;
    box-sizing: content-box;
    z-index: 2;
    margin-bottom: -1px;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .tippspiel .tippspiel_tabs [role="tablist"] {
        display: none;
    }
}

.tippspiel .tippspiel_tabs button.prev,
.tippspiel .tippspiel_tabs button.next {
    padding: 10px !important;
}

/* Tabs */
.tippspiel .tippspiel_tabs [role="tab"] {
    display: inline-block;
    position: relative;
    z-index: 2;
    margin: 0;
    top: 2px;
    padding: 1rem !important;
    border: 1px solid var(--grey);
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: var(--lightgrey);
    color: var(--black);
    font-weight: bold;
    cursor: pointer;
    outline: none;
    scroll-snap-align: start;
    flex: 1 1 0;
    font-size: 1rem;
}

@media screen and (max-width: 768px) {
    .tippspiel .tippspiel_tabs [role="tab"] {
        display: block;
        width: 100%;
        padding: 1rem 0.5rem !important;
        margin-bottom: 2px;
        border-bottom: 1px solid var(--grey);
    }
    .tippspiel .tippspiel_tabs [role="tab"]::after {
        display: inline-block;
        content: "▾";
    }
}

@media screen and (min-width: 769px) {
    .tippspiel .tippspiel_tabs [role="tab"].mobile-tab {
        display: none;
    }
}

.tippspiel .tippspiel_tabs [role="tab"]:hover,
.tippspiel .tippspiel_tabs [role="tab"]:focus {
    z-index: 3;
    border-color: var(--black);
}

.tippspiel .tippspiel_tabs [role="tab"][aria-selected="true"] {
    background: var(--white);
}

/* Tabpanel */
.tippspiel .tippspiel_tabs [role="tabpanel"] {
    width: 100%;
    max-width: stretch;
    padding: 1rem;
    border: 1px solid var(--grey);
    background: var(--white);
    overflow: auto;
}

@media screen and (max-width: 768px) {
    .tippspiel .tippspiel_tabs [role="tabpanel"] {
        padding: 5px;
    }
}

.tippspiel .tippspiel_tabs [role="tabpanel"].is-hidden {
    display: none;
}

/* Accordion */
.tippspiel_accordion .title {
    cursor: pointer;
    display: flex;
    padding: 10px;
    background-color: var(--lightgrey);
    margin: 2px 0;
    font-weight: bold;
}

.tippspiel_accordion .title:after {
    content: "";
    background: url("../img/chevron.svg") no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
    margin-left: auto;
    margin-right: 0;
    transition: all 0.2s ease-in-out;
}

.tippspiel_accordion .title[aria-expanded="true"]:after {
    transform: rotateZ(180deg);
}

.tippspiel_accordion .description {
    display: none;
}

.tippspiel_accordion .description[aria-hidden="false"] {
    display: block;
}

.tippspiel_pagination nav {
    display: flex;
    padding: 10px;
    background-color: var(--lightgrey);
    font-weight: bold;
    align-items: center;
    justify-content: space-between;
}

.tippspiel select,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
    height: 42px;
    border: 1px solid var(--color__grey);
    border-radius: 3px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    min-width: 25px;
}

.tipps input[type="number"]{
    width: 40px;
    text-align: center;
}

body form input[type="checkbox"] {
    display: inline-block;
}

.hp-field {
    position: absolute;
    left: -99999px;
}

.tippspiel table td {
    overflow: hidden;
}

.tippspiel.datatable {
    th {
        select {
            border: 0;
            box-shadow: none;
            width: 100%;
            height: 100%;
            font-weight: bold;
            font-size: 1rem;
            position: relative;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background: transparent;
            background-image: url("data:image/svg+xml;utf8,<svg width='12' height='14' viewBox='0 0 12 14' xmlns='http://www.w3.org/2000/svg'><path fill='black' fill-opacity='0.125' d='M2 3h8L6 12z'/></svg>");
            background-position: right 2px;
            background-size: contain;
            background-repeat: no-repeat;
        }
    }
}

@media screen and (max-width: 768px) {
    table.tippspiel img {
        display: none;
    }
}

.tippspiel table .legend {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    > span {
        font-size: 14px;
        display: inline-block;
        width: 20px;
        height: 14px;
    }
}

.tippspiel fieldset {
    margin: 1rem 0;
    padding: 1rem;
}

.tippspiel fieldset legend {
    font-weight: bold;
}

.tippspiel fieldset button {
    margin-top: 1rem;
}

.tippspiel fieldset .field {
    margin: 1rem 0;
}
.tippspiel fieldset .field .heading {
    font-weight: bold;
    display: block;
}
.tippspiel fieldset .field input[type="checkbox"] {
    display: inline-block;
    opacity: 0;
    position: absolute;
    left: -9999999px;
    z-index: 1;
}

.tippspiel fieldset .field label {
    display: inline-block;
    min-width: 200px;
}
.tippspiel fieldset .field input[type="text"],
.tippspiel fieldset .field input[type="password"],
.tippspiel fieldset .field select,
.tippspiel fieldset .field select {
    display: inline-block;
    min-width: 250px;
    max-width: 250px;
    padding: 0 0.5rem;
}

.tippspiel fieldset .field input:disabled {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.tipp-saved {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(calc(50% + 4px));
    background: var(--lightgreen);
    color: #000;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
}

.tipp-error {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(calc(50% + 4px));
    background: var(--lightsalmon, #ffa07a);
    color: #000;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
}

@media screen and (max-width: 768px) {
    .tipp-saved,
    .tipp-error {
        transform: translateY(-50%);
    }
}

table.dataTable>tbody>:hover td {
    background-color: var(--lightgrey) !important;
}