/* Global */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #eef2f5;
    margin: 0;
    padding: 0;
    color: #333;
}

/* INPUT FORM STYLES */
.user-layout {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.app-header {
    text-align: center;
    margin-bottom: 20px;
}

.app-header h1 {
    color: #2c3e50;
    font-size: 24px;
}

.clean-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flex-container {
    display: flex;
    gap: 30px;
}

.form-column {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;

}

h3 {
    margin-top: 0;
    font-size: 16px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #495057;
}

.group {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 12px;
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 4px;
}

input,
textarea {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

input:focus {
    border-color: #80bdff;
    outline: none;
}

/* GUEST MANAGEMENT */
.guest-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.guest-header-flex h3 {
    border: none;
    margin: 0;
    padding: 0;
}

.btn-add-guest {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-add-guest:hover {
    background: #0056b3;
}

.guest-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.guest-mini-card {
    background: white;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    position: relative;
}

.guest-mini-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
    display: flex;
    justify-content: space-between;
}

.remove-guest {
    color: #dc3545;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.remove-guest:hover {
    color: #a71d2a;
}

.btn-generate-main {
    padding: 15px 40px;
    background-color: #28a745;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-generate-main:hover {
    background-color: #218838;
    transform: translateY(-2px);
}


/* HIDDEN TEMPLATE / PDF STYLE Base */
.voucher-paper {
    width: 210mm;
    min-height: 297mm;
    background: white;
    padding: 15mm;
    box-sizing: border-box;
    font-family: 'Times New Roman', serif;
    color: #000;
}

/* ... (Standard Voucher CSS) ... */
.v-header {
    position: relative;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    height: 50mm;
}

/* .v-header-left removed */

.v-company-center {
    text-align: center;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.v-company-name {
    font-weight: bold;
    font-size: 16pt;
    text-transform: uppercase;
    margin-bottom: 2mm;
    color: #000;
}

.v-text {
    font-size: 11pt;
    line-height: 1.3;
}

.v-header-right {
    position: absolute;
    right: 0;
    top: 0;
    text-align: right;
    font-size: 10pt;
    z-index: 2;
    padding-top: 5mm;
}

.v-info-row {
    margin-bottom: 2px;
}

.v-ref-bar {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #bbb;
    margin-bottom: 5mm;
    font-family: 'Arial', sans-serif;
    font-size: 10pt;
}

.v-ref-bar td {
    padding: 6px 10px;
}

.v-ref-left {
    border-right: 1px solid #bbb;
    width: 50%;
}

.v-ref-right {
    text-align: right;
    width: 50%;
}

.v-table,
.v-guest-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 5mm;
    font-family: 'Arial', sans-serif;
    font-size: 9pt;
}

.v-table th,
.v-table td,
.v-guest-table th,
.v-guest-table td {
    border: 1px solid #bbb;
    padding: 5px;
}

.v-table th {
    font-weight: bold;
    text-align: center;
    padding: 8px 5px;
}

.v-hotel-info {
    vertical-align: top;
    padding: 5px 10px;
}

.v-hotel-row {
    display: flex;
    margin-bottom: 3px;
    font-size: 9pt;
}

.v-label {
    width: 110px;
    font-weight: normal;
}

.v-val {
    flex: 1;
    font-weight: bold;
    padding-left: 5px;
}

.v-dates-box {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #bbb;
    margin-bottom: 5mm;
    font-family: 'Times New Roman', serif;
}

.v-dates-box th {
    text-align: center;
    font-weight: bold;
    font-size: 10pt;
    padding: 5px;
    border-bottom: 1px solid #bbb;
    text-transform: uppercase;
}

.v-dates-box td {
    text-align: center;
    padding: 10px;
    vertical-align: middle;
}

.v-dates-box td.v-night-val {
    border-left: 1px solid #bbb;
    border-right: 1px solid #bbb;
}

.v-date-val {
    font-weight: bold;
    font-size: 14pt;
}

.v-guest-header {
    border: 1px solid #bbb;
    border-bottom: none;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    font-family: 'Times New Roman', serif;
    font-size: 10pt;
    background: white;
}

.v-guest-table {
    margin-top: 0;
}

.v-guest-table th {
    text-align: left;
    font-size: 9pt;
    font-weight: bold;
}

.v-guest-table td {
    padding: 8px 5px;
}

/* TERMS AND ADDITIONAL CHARGES */
.v-terms-box,
.v-additional-box {
    margin-top: 35px;
    /* border: 1px solid #bbb; */
    /* Removed global border, applied to specific container if needed, sticking to screenshot style matching */
    font-family: 'Times New Roman', serif;
    font-size: 9pt;
    border: 1px #bbb;
    /* Smaller font for long lists */
    page-break-inside: avoid;
}

/* Specific Style for Terms Box */
.v-terms-box {
    border: 1px solid #bbb;
}

.v-terms-header {
    font-weight: bold;
    padding: 5px 10px;
    border-bottom: 1px solid #bbb;
    font-size: 10pt;
}

.v-terms-list {
    margin: 0;
    padding: 10px 10px 10px 25px;
    line-height: 1.3;
}

.v-terms-list li {
    margin-bottom: 2px;
    list-style-type: disc;
}

/* Additional Charges Style */
/* Additional Charges Style */
.v-additional-box {
    margin-top: 20px;
    border: 1px solid #bbb;
    /* border added like terms box */
    font-family: 'Times New Roman', serif;
    font-size: 9pt;
    color: #000;
    page-break-inside: avoid;
    padding: 0;
    /* remove loose spacing */
}

/* Header like terms section */
.v-add-title {
    font-weight: bold;
    font-size: 10pt;
    padding: 5px 10px;
    border-bottom: 1px solid #bbb;
    background: #e0e0e0;
}

/* Note under header */
.v-add-note {
    padding: 6px 10px;
    font-style: normal;
    border-bottom: 1px solid #bbb;
    color: #555;
}

/* List styling */
.v-add-list {
    list-style: none;
    padding: 10px 10px 10px 15px;
    margin: 0;
}

.v-add-list li {
    margin-bottom: 4px;
    padding-left: 10px;
    text-indent: -10px;
}

/* Footer */.voucher-paper
.v-footer-service {
    text-align: center;
    color: red;
    font-size: 9pt;
    margin-top: 15px;
}
