.paginationbar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.paginationbar .pagination {
    aspect-ratio: 1;
    display: inline-block;
    padding: 0.5em;
    height: 3em;
    background: none;
    border: 1px solid;
    margin: 0 0.25em;
}

.paginationbar .pagination.active{
    background:palegreen;
}

table.results {
    margin: 0 auto;
}

.cardadminpage{
    display:flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: flex-start;
}

.halfwide {
    width: calc( 50% - 1.5em );
    outline: 0.5px solid black;
    padding: 0.5em;

    h2 {    
        border-bottom:1px solid;
    }

    label {
        width: calc( 25% - 0.5em );
        text-align: right;
        vertical-align: top;
        margin-top: 0.5em;
    }

    input,textarea, select {
        width: 75%;
        border-width: 0.5px;
        margin-top: 0.5em;    
    }

    input.button[type="submit"] {
        margin-left: calc( 25% - 0.5em );
        margin-top: 0.5em;
    }


    input:valid ~ .errorMSG {
       display: none;
    }

    div:has(>:invalid){
        --error-colour:#dc3545;
        label,.errorMSG {
            color:var(--error-colour);
        }
        input{
            border-color:var(--error-colour);
        }
    }

    .greybox {
        min-height: 150px;
        background-color: #eee;
        border: 1px solid #ccc;
        padding: 10px;
    }

}

.saldo {
    margin-bottom:2em;
    width:100%;
    td { vertical-align: text-top;}
}

.center {
    margin: 0 auto;
}

.date{
    white-space:nowrap;
}



#gavekort-cvc.valid {
    border-color: #198754;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

#gavekort-cvc.invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

#qrscan {
    width: 44px;
    height: 44px;
    background-image: url('/typo3conf/ext/idefa_gavekort/res/qr/qrbutton.png');
    background-size: cover;
    background-repeat: no-repeat;
    border: none;
    outline: none;
    background-color: transparent;
    display: inline-block;
    margin-top: 15px;
    cursor: pointer;
}


.usercardadmin{
    #reader {top: -200px;}
    .greybox{background-color: #eee;padding: 30px;margin-bottom: 30px;}
}