﻿/* TEMPLATE 1 */
.container-template-1 {
    width: 100%;
    margin: auto;
    overflow: hidden auto;
    padding: var(--px-24);
    background: white;
}

    .container-template-1 table {
        width: 100%;
        border-collapse: collapse;
        font-size: var(--px-14);
    }

    .container-template-1 .header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 16px;
        position: relative;
        font-size: var(--px-32);
    }

        .container-template-1 .header img {
            width: var(--px-80);
            height: var(--px-80);
            border-radius: var(--px-80);
            position: absolute;
            left: 0;
        }


p {
    margin: 0;
}

.container-template-1 th, .container-template-1 td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
    vertical-align: baseline;
}

.container-template-1 .form-row-1 th,
.container-template-1 .form-row-1 td {
    text-align: center;
}

.container-template-1 td.p-0 {
    padding: 0;
}

.container-template-1 table.table-borderless td[colspan="1"] {
    border-width: 0 0 1px 0;
}

.container-template-1 table.table-borderless td[colspan="2"] {
    border-width: 0 0 1px 1px;
    vertical-align: middle;
}

.container-template-1 table.table-borderless .form-row-2:last-of-type td {
    border-bottom: 0;
}

.container-template-1 .d-row {
    display: flex;
    align-items: center;
}

    .container-template-1 .d-row span,
    .container-template-1 .d-row .flex-1 {
        flex: 1;
        gap: 24px;
        white-space: nowrap;
    }

    .container-template-1 .d-row p {
        flex: 3;
        margin: 4px;
    }

.container-template-1 .text-line {
    line-height: 2.4;
    font-size: var(--px-16);
}

.container-template-1 .d-col {
    margin-top: 24px;
    display: flex;
    gap: 1px !important;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

    .container-template-1 .d-col p {
        margin: 0 !important;
    }


.container-template-1 div.divider {
    width: 100%;
    margin: 30px 0;
    border-top: 2px dotted #000;
}

.container-template-1 .font-light {
    font-size: var(--px-24);
}

.container-template-1 table .fix-w {
    width: 156px;
}

.container-template-1 .container-template-1 h2 {
    margin: var(--px-6) 0;
    font: normal normal 700 var(--s-38);
}


/* TEMPLATE RECEIPT */
#printArea {
    display: flex;
    flex-direction: column;
    background: white;
}

.render-receipt {
    margin: auto;
    width: 500px;
    padding: 20px;
    font-size: 10px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

    .render-receipt * {
        font-family: Arial, sans-serif;
    }

    .render-receipt .header {
        text-align: center;
        margin-bottom: 20px;
    }

        .render-receipt .header h1 {
            margin: 0;
            display: block;
            font-size: 2em;
            margin-block-start: 0.67em;
            margin-block-end: 0.67em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
            font-weight: bold;
            unicode-bidi: isolate;
        }

    .render-receipt h2 {
        display: block;
        font-size: 1.5em;
        margin-block-start: 0.83em;
        margin-block-end: 0.83em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        font-weight: bold;
        unicode-bidi: isolate;
    }

    .render-receipt .details {
        display: flex;
        margin-top: 20px;
        padding-bottom: 10px;
        justify-content: space-between;
        border-bottom: 1px dashed #a7a7a7;
    }

        .render-receipt .details p {
            display: block;
            margin-block-start: 1em;
            margin-block-end: 1em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
            unicode-bidi: isolate;
            margin: 0 10px;
        }

    .render-receipt p {
        margin-block-start: .6em;
        margin-block-end: .6em;
    }

    .render-receipt .booking-info, .summary {
        margin-top: 20px;
    }

    .render-receipt table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .render-receipt table, .render-receipt th, .render-receipt td {
        border: 1px solid #ddd;
    }

    .render-receipt th, .render-receipt td {
        padding: 8px;
        text-align: left;
    }

    .render-receipt .summary p {
        display: flex;
        justify-content: space-between;
        width: 50%;
        margin-left: auto;
    }

    .render-receipt .print-button {
        display: block;
        width: 150px;
        margin: 20px auto;
        padding: 10px;
        text-align: center;
        background-color: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }

        .render-receipt .print-button:hover {
            background-color: #0056b3;
        }



/* Table styling */
#render-receipt table {
    width: 100%;
    border-collapse: collapse;
}

#render-receipt th, #render-receipt td {
    border: unset;
    border-bottom: 1px solid #a7a7a7;
    padding: 8px;
    text-align: left;
    font-size: 12px;
}

#render-receipt th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Adjust column width */
#render-receipt .guest-name {
    width: 30%;
}

#render-receipt .room-code {
    width: 15%;
    text-align: center;
}

#render-receipt .dates {
    width: 20%;
    text-align: center;
}

#render-receipt .nights {
    width: 10%;
    text-align: center;
}

#render-receipt .grid-photos {
    display: grid;
    gap: 4px;
    align-items: center;
    grid-template-columns: 1fr 1fr
}

/* Page break handling */
#render-receipt tr {
    page-break-inside: avoid;
}


/* TEMPLATE 2 */


.container-template-2 {
    width: 100%;
    margin: auto;
    overflow: hidden auto;
    padding: var(--px-24);
    background: white;
    /* max-width: var(--px-1200); */
}

    .container-template-2 .title {
        text-align: center;
        font-size: var(--px-24);
        font-weight: bold;
        margin-bottom: var(--px-20);
    }

    .container-template-2 .header {
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--px-16);
        position: relative;
        font-size: var(--px-32);
    }

        .container-template-2 .header img {
            height: var(--px-120);
            border-radius: var(--px-8);
            margin-bottom: var(--px-12);
            padding: 6px;
            width: auto;
        }

    .container-template-2 table {
        width: 100%;
        border-collapse: collapse;
    }

    .container-template-2 th, .container-template-2 td {
        border: 1px solid #000;
        padding: var(--px-6);
        text-align: left;
        font-size: var(--px-14);
    }

    .container-template-2 td {
        overflow: hidden;
    }

    .container-template-2 .bold {
        font-weight: bold;
    }

    .container-template-2 .break-line {
        display: block;
        font-weight: bold;
        white-space: nowrap;
    }

    .container-template-2 .light {
        font-weight: normal;
        font-size: var(--px-12);
    }

    .container-template-2 .txt-center {
        width: 20%;
        font-size: var(--px-14);
        text-align: center;
    }

.scale-pdf .txt-center {
    font-size: var(--px-8) !important;
}

.scale-pdf td {
    font-size: var(--px-8) !important;
}

.scale-pdf .title {
    font-size: var(--px-12) !important;
}

.scale-pdf .light {
    font-size: var(--px-8) !important;
}

.scale-pdf .header img {
    width: var(--px-40);
    height: var(--px-40);
}

.container-template-2 .info-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--px-8);
}

    .container-template-2 .info-ticket .col--1 {
        gap: var(--px-4);
        display: flex;
        align-items: center;
    }

.container-template-2 ol, .container-template-2 ul {
    padding-left: 1rem;
}

.container-template-2 ol, td.bolder-unset {
    border: unset;
}

.container-template-2 td[colspan="2"] {
    vertical-align: baseline;
}

.container-template-2 td[colspan="4"] {
    padding: 4px var(--px-12);
}

table img.signature-show {
    height: var(--px-40);
}

    table img.signature-show.large {
        height: var(--px-100);
        margin: auto;
        width: 100%;
    }

table signature-for-guest-text.registration-card-trans {
    color: red;
    min-height: var(--px-60);
    display: flex;
    align-items: center;
    justify-content: center;
    font: normal normal 600 var(--s-18);
}

/* Set the fixed widths for each column */
.container-template-2 tr td {
    max-width: var(--px-100);
    word-wrap: break-word;
}

    .container-template-2 tr td:nth-child(1) {
        width: 20%;
    }

    .container-template-2 tr td:nth-child(2) {
        width: 30%;
    }

    .container-template-2 tr td:nth-child(3) {
        width: 20%;
    }

    .container-template-2 tr td:nth-child(4) {
        width: 30%;
    }

.custom-td-border td:not(:first-child) {
    border-left: 1px solid black;
}

.custom-td-border td:not(:last-child) {
    border-right: 1px solid black;
}
