.pdfPreview{
    width: 794px;
    height: 1123px;
    border: 1px solid #ccc;

    transform-origin: top left;
    position: relative;
}

.previewMiddle{
    transform: scale(0.5);
}

.previewSmall{
    transform: scale(0.3);
}

.previewSmallItem{
    width:260px;
    height: 360px;
}

.previewMiddleItem{
    width: 400px;
    height: 650px;
}

.voucher{
    background-color: var(--vc-default-background);
    color:var(--vc-default-text);
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

/*for dompdf set as default 0 margin*/
.voucher p{
    margin: 0;
}


.voucher div {
    page-break-inside: avoid;
}

/* Header Image Container */
.voucher-header-image-container {
    margin-bottom: 20px;
    width: 100%;
    height: 479px;
    overflow: hidden;

}

.voucher-header-image-container img {
    width: 100%!important;
    height: auto; /* scales width */
    display: block;
    /*object fit cover does not work for dompdf*/
    /*object-fit: cover; */
    /*img layout max 5:3 794(pdf width)x479 but the height can also be smaller*/
    /*max-height: 479px;*/

}


/* Voucher Card */
.voucher-card {
    text-align: center;
    position: relative;
    border: 1px solid var(--vc-footer-background);
    padding: 20px;
    margin: 6em 6em 0 6em;
    border-radius: var(--vc-border-radius);
}

.voucher-card div p{
    color:var(--vc-default-text)!important;
    font-family: var(--vc-font-text)!important;
}

.voucher-company-logo img {
    margin: -50px auto 0 auto;
    max-height: 50px;
    padding: 0 20px;
    background:  var(--vc-default-background);
}

.voucher-circle {
    background: var(--vc-primary-background);
    position: absolute;
    height: 7em;
    width: 7em;
    top: -45px;
    right: -22px;
    border-radius: 50%;
    display: flex;
}

.voucher-circle div {
    position: relative;
    height: 100%;
    width: 100%;


}
.voucher-circle div p {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 14px;
    margin: 0 5px;
    text-align: center;
    color:var(--vc-primary-text)!important;

}

.voucher-heading {
    margin-top: 20px;
    margin-bottom: 5px;
}
.voucher .voucher-card .voucher-heading p{
    font-family: var(--vc-font-heading)!important;
}

.voucher-card div .voucher-value {
    margin-top: 10px;
    color: var(--vc-primary-background)!important;
}

.voucher-value, .voucher-heading {
    font-size: 35px;
    line-height: 35px;
}
.voucher-card div .voucher-elements{
    margin-top: 10px;
    font-size: 24px;
    line-height: 24px;
    color: var(--vc-primary-background)!important;
}

.voucher-salutation{
    margin-bottom: 5px;
    font-weight: bold;
}
.voucher-message {
    margin-top: 5px;
    overflow-wrap: anywhere;   /* breaks long words if needed */
    word-break: normal;        /* keeps words intact unless necessary */
    white-space: normal;
}

.voucher-salutation, .voucher-message {
    font-size: 20px;
    /*hotel erika more line height*/
    line-height: 26px;
    margin: 0;
}

/* Footer */
.voucher_footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 1em;
    background: var(--vc-secondary-background);

}
.voucher_footer table p{
    color: var(--vc-secondary-text)!important;
    font-family: var(--vc-font-text)!important;
}

.voucher_footer table {
    font-size: 14px;
    line-height: 14px;
    border-collapse: separate;
    border-spacing: 0 1em;
    width: 100%;
}

.voucher_footer table td {
    height: 7em;
    vertical-align: middle;
}

.voucher_footer table td p {
    margin: 0.3em 0;
}

.voucher_footer table td#left-col {
    text-align: left;
}

.voucher_footer table td#center-col {
    text-align: center;
}

.voucher_footer table td#right-col {
    text-align: right;
}


.qrcode img {
    width: 60px;
    height: 60px;
    display: inline-block;
}




/* --- voucher 2 --- */
.v2-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 16em;
    height: 100%;
    background-color: var(--vc-secondary-background);

    box-sizing: border-box;
}

.v2-sidebar div p{
    color: var(--vc-secondary-text)!important;
    font-family: var(--vc-font-text)!important;
}

.v2-main-content {
    position: absolute;
    top: 0;
    left: 40px;
    right: 0;
    height: 100%;
    box-sizing: border-box;
}

.v2-sidebar-content{
    position: absolute;
    bottom: 120px;
    left: 40px;
    right: 40px;
}

/* --- Sidebar Elements --- */
.v2-company-logo img {
    max-height: 60px;
    max-width: 10em;
    margin-bottom:20px;
}

.v2-company-details {
    font-size: 14px;
    /*hotel erika more line height*/
    line-height: 18px;
}

.v2-company-details p {
    margin: 0.2em 0;
}

.v2-qr-code {
    position: absolute;
    bottom: 40px;
    left: 40px;
}



/* --- Main Content Elements --- */
.v2-header-image-container {
    margin-top: 40px;
    margin-right: 40px;
    height: 479px;
    overflow: hidden;

}

.v2-header-image-container img {
    /*max-height: 479px;*/
    width: 100%;
    height: auto; /* scales width */
    display: block;
}

.v2-text-content {
    text-align: left;
    margin-top: 40px;
    margin-left: 16em;
    margin-right: 40px;

}

.v2-text-content div p{
    font-family: var(--vc-font-text)!important;
    color: var(--vc-default-text)!important;
}

.v2-title {
    font-size: 35px;
    line-height: 35px;
    margin: 0 0 10px 0;
}

.voucher .v2-text-content .v2-title p{
    font-family: var(--vc-font-heading)!important;
}


.v2-value {
    font-size: 32px;
    line-height: 32px;
    margin: 0 0 25px 0;
    color: var(--vc-primary-background)!important;
}

.v2-elements {
    font-size: 24px;
    line-height: 24px;
    margin: 0 0 25px 0;
    color: var(--vc-primary-background)!important;
}

.v2-circle-text {
    font-size: 20px;
    line-height: 20px;
    margin-top: 10px;
}


.v2-salutation {
    font-size: 22px;
    line-height: 22px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.v2-message {
    font-size: 20px;
    /*hotel erika more line height*/
    line-height: 26px;
    margin: 0;
}

/* --- Footer in Main Content --- */
.v2-footer {
    position: absolute;
    bottom: 40px;
    font-size: 14px;
    line-height: 14px;
    border-top: 1px solid var(--vc-footer-background);
    padding-top: 20px;
    width: 500px;
}


