:root{
    --mg-top: 30px !important;
}

.desktop,
.tablet {
    display: none !important;
}

.mobile {
    display: inline-block !important;
}

.top-large .form form{
    grid-template-columns: 100% !important;
    column-gap: 0 !important;
}

.top-large .form form .form-btn{
    grid-column: unset;
}
/* QR pages on a phone: stacks on top, cards two per row, toolbar buttons full width */
.qr-list-grid{
    grid-template-columns: 100% !important;
    grid-template-rows: auto auto !important;
    row-gap: 10px;
    padding: 10px 8px !important;
}

.qr-list-grid ul{
    height: auto !important;
    max-height: 132px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qr-list-grid ul li{
    width: auto !important;
    margin-bottom: 0 !important;
    padding: 0 10px;
}

.qr-list-grid .qr{
    height: auto !important;
    justify-content: center;
}

.qr-list-grid .qr .img-con{
    width: calc(50% - 4px) !important;
}

.qr-list-grid .qr img{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
}

.qr-list-grid .qr .img-con .btn-action{
    height: auto !important;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 5px;
}

.qr-toolbar button{
    flex: 1 1 100%;
    justify-content: center;
}

.qr_images{
    padding: 20px 8px 10px;
    justify-content: center;
}

.qr_images .img{
    width: calc(50% - 8px);
    min-width: 150px;
}
