/* --- CSS VARIABLES & THEME --- */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    /* Sky Blue */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;
    --transition: all 0.3s ease;
    --shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* Reservation History Specific Colors */
    --res-avl: #10b981;
    /* Green */
    --res-bkd: #1130a3;
    /* Orange */
    --res-blk: #ef4444;
    /* Red */
}

body.dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    transition:
        background-color 0.3s,
        color 0.3s;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

/* --- LAYOUT STRUCTURE --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.logo-area {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
}

.logo-area i {
    font-size: 1.2rem;
    margin-right: 15px;
}

.sidebar.collapsed .logo-area {
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .logo-area span {
    display: none;
}

.nav-links {
    padding: 20px 10px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
}

.nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.nav-item-wrapper {
    position: relative;
}

.sub-menu {
    display: none;
    padding-left: 48px;
    margin-top: 4px;
}

.nav-item-wrapper:hover .sub-menu {
    display: block;
}

.sidebar.collapsed .sub-menu {
    display: none !important;
}

.sub-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 2px;
    border-radius: 6px;
    transition: var(--transition);
}

.sub-item:hover {
    background-color: rgba(79, 70, 229, 0.05);
    color: var(--primary-color);
}

.sub-item.active {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.user-profile-mini {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.sidebar.collapsed .user-profile-mini {
    justify-content: center;
    padding: 20px 10px;
}

.sidebar.collapsed .user-profile-mini .profile-info {
    display: none;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

/* --- Sidebar Hover Expansion --- */
.sidebar.collapsed:hover {
    width: var(--sidebar-width);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed:hover .logo-area {
    justify-content: flex-start;
    padding: 0 24px;
}

.sidebar.collapsed:hover .logo-area span,
.sidebar.collapsed:hover .nav-item span {
    display: inline;
}

.sidebar.collapsed:hover .nav-item {
    justify-content: flex-start;
    padding: 12px 16px;
}

.sidebar.collapsed:hover .nav-item-wrapper:hover .sub-menu {
    display: block !important;
}

.sidebar.collapsed:hover .user-profile-mini {
    justify-content: flex-start;
    padding: 20px;
}

.sidebar.collapsed:hover .user-profile-mini .profile-info {
    display: flex;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: var(--transition);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* --- HEADER --- */
.top-header {
    height: var(--header-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.toggle-sidebar-btn {
    font-size: 1.2rem;
    color: var(--text-muted);
    display: none;
    /* Hidden on desktop */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    font-size: 1.2rem;
    color: var(--text-muted);
    position: relative;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
}

.theme-toggle {
    font-size: 1.1rem;
}

/* --- DASHBOARD CONTENT --- */
.content-body {
    padding: 30px;
}

.page-title {
    margin-bottom: 24px;
    font-size: 1.8rem;
}

/* --- RESERVATION HISTORY CALENDAR STYLES --- */
.res-history-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    display: none;
    /* Hidden by default, shown via JS */
}

.res-history-container.active {
    display: block;
}

.res-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.res-tabs {
    display: flex;
    gap: 5px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 8px;
}

.res-tab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.res-tab.active {
    background-color: var(--bg-card);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.res-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.res-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-body);
    color: var(--text-main);
}

.res-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.res-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-icon {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Specific Legend Icon Colors */
.legend-icon-success {
    color: var(--res-avl);
}

.legend-icon-booked {
    color: var(--res-bkd);
}

.legend-icon-muted {
    color: var(--text-muted);
}

.legend-icon-maintenance {
    color: var(--warning);
}

.legend-icon-arrival {
    color: var(--info);
}

.legend-icon-departure {
    color: var(--primary-color);
}

.legend-icon-checkin {
    color: #0d9488;
}

.legend-icon-checkout {
    color: #e11d48;
}

.calendar-checkin-text {
    color: #0d9488;
    font-size: 0.75rem;
    font-weight: 600;
}

.calendar-checkout-text {
    color: #e11d48;
    font-size: 0.75rem;
    font-weight: 600;
}

.res-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.res-day-header {
    background-color: var(--bg-body);
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.res-day-cell {
    background-color: var(--bg-card);
    padding: 12px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.res-day-cell:hover {
    background-color: rgba(79, 70, 229, 0.02);
}

.res-day-past {
    background-color: rgba(128, 128, 128, 0.1);
    opacity: 0.6;
}

.res-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}

.res-date span:first-child {
    font-size: 1.1rem;
}

.res-room-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

.res-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-family: monospace;
}

.stat-avl {
    color: var(--res-avl);
    font-weight: 700;
    font-size: 1rem;
}

.stat-bkd {
    color: var(--res-bkd);
    font-weight: 700;
    font-size: 1rem;
}

.stat-blk {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
}

.res-empty {
    background-color: var(--bg-body);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* --- OTHER COMPONENTS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-blue {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.bg-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.bg-orange {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.bg-red {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.chart-card {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h4 {
    font-size: 1.1rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    padding-top: 20px;
    gap: 10px;
}

.bar {
    flex: 1;
    background-color: var(--primary-color);
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
    transition:
        height 1s ease,
        opacity 0.2s;
    position: relative;
}

.bar:hover {
    opacity: 1;
}

.bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-main);
    opacity: 0;
    transition: opacity 0.2s;
}

.bar:hover::after {
    opacity: 1;
}

.table-section {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.table-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.search-input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    background-color: var(--bg-body);
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.action-btn {
    color: var(--text-muted);
    margin-right: 8px;
    transition: color 0.2s;
}

.action-btn.delete:hover {
    color: var(--danger);
}

.action-btn.edit:hover {
    color: var(--primary-color);
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.open,
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.btn-action-modal {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
}

.btn-primary.btn-booking {
    background-color: var(--primary-color);
}

.btn-primary.btn-booking:hover {
    background-color: var(--primary-hover);
}

.btn-primary.btn-reservation {
    background-color: var(--info);
}

.btn-primary.btn-reservation:hover {
    filter: brightness(0.9);
}

.btn-primary.btn-maintenance {
    background-color: var(--warning);
}

.btn-primary.btn-maintenance:hover {
    filter: brightness(0.9);
}

.btn-primary.btn-checkin {
    background-color: var(--success);
}

.btn-primary.btn-checkin:hover {
    filter: brightness(0.9);
}

.btn-primary.btn-checkout {
    background-color: var(--danger);
}

.btn-primary.btn-checkout:hover {
    filter: brightness(0.9);
}

.modal {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-body);
    color: var(--text-main);
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.btn-secondary {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease forwards;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.res-day-booked {
    background-color: rgba(100, 222, 77, 0.07);
}

.res-day-full {
    background-color: rgba(239, 68, 68, 0.7);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
.res-day-active {
    background-color: rgba(79, 70, 229, 0.1) !important;
    border-color: var(--primary-color) !important;
}

@media (max-width: 992px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .toggle-sidebar-btn {
        display: block;
    }

    .res-calendar-grid {
        font-size: 0.8rem;
    }

    .res-day-cell {
        padding: 8px;
        min-height: 80px;
    }
}

/* --- INLINE STYLE MIGRATION: Booking Modal & Calendar Extra HTML --- */
.booking-room-card {
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
}

.booking-room-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-room-label {
    margin: 0;
    flex-grow: 1;
    cursor: pointer;
}

.pax-controls {
    display: none;
    margin-top: 10px;
    gap: 15px;
    align-items: center;
}

.pax-field {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pax-label {
    margin: 0;
    font-size: 0.9rem;
}

.pax-input {
    padding: 4px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.pax-error {
    color: var(--danger);
    font-size: 0.8rem;
    display: none;
}

.calendar-extra-wrapper {
    text-align: right;
    font-size: 0.8rem;
    margin-top: 5px;
}

.calendar-checkin-text {
    color: var(--warning);
}

.calendar-checkout-text {
    color: var(--secondary-color);
}

.calendar-flex-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.calendar-muted-small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.calendar-primary-color {
    color: var(--primary-color);
}

.calendar-bold-primary {
    color: var(--primary-color);
    font-weight: bold;
}

.booked-room-label {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* --- Legend Icon Colors --- */
.legend-icon-success {
    color: var(--success);
}

.legend-icon-primary {
    color: var(--primary-color);
}

.legend-icon-muted {
    color: var(--text-muted);
}

.legend-icon-warning {
    color: var(--warning);
}

.legend-icon-danger {
    color: var(--danger);
}

/* --- Inline Style Replacements --- */
.header-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title-text {
    font-size: 1.2rem;
}

.section-heading {
    margin-bottom: 20px;
}

.res-history-container {
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.form-spacer {
    margin-top: 20px;
}

.room-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.month-nav-btn {
    padding: 0.5rem 0.8rem;
}

.action-modal {
    max-width: 400px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.modal-actions-spacer {
    margin-top: 20px;
}

/* --- VOUCHER PRINT STYLES --- */
@media print {
    body * {
        visibility: hidden;
    }
    #voucher-print-area.print-active, #voucher-print-area.print-active *,
    #maint-voucher-print-area.print-active, #maint-voucher-print-area.print-active *,
    #daily-activities-print-area.print-active, #daily-activities-print-area.print-active * {
        visibility: visible;
    }
    #voucher-print-area.print-active, #maint-voucher-print-area.print-active, #daily-activities-print-area.print-active {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Black and white optimizations */
    .voucher-container {
        font-family: Arial, sans-serif;
        color: #000 !important;
        background: #fff !important;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .voucher-header {
        display: flex;
        align-items: center;
        border-bottom: 2px solid #000;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .voucher-logo {
        font-size: 24px;
        font-weight: bold;
        border: 2px solid #000;
        padding: 10px;
        margin-right: 15px;
        border-radius: 50%;
    }
    
    .voucher-hotel-info h2 { margin: 0; font-size: 20px; }
    .voucher-hotel-info p { margin: 0; font-size: 14px; color: #333 !important; }
    
    .voucher-booking-ref {
        margin-left: auto;
        text-align: right;
    }
    .voucher-booking-ref h2 { margin: 0; font-size: 20px; }
    .voucher-booking-ref p { margin: 0; font-size: 14px; color: #333 !important; }
    
    .voucher-status { margin-bottom: 20px; }
    #voucherStatusBadge {
        border: 1px solid #000;
        padding: 5px 10px;
        border-radius: 15px;
        font-weight: bold;
        display: inline-block;
    }
    
    .voucher-section-title {
        font-size: 16px;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
        text-transform: uppercase;
        border-bottom: 1px dotted #000;
        padding-bottom: 5px;
    }
    
    .voucher-guest-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    .voucher-guest-info div { flex: 1; }
    .voucher-label { font-size: 12px; color: #666 !important; margin: 0 0 5px 0; }
    .voucher-value { font-size: 16px; font-weight: bold; margin: 0; }
    
    .voucher-stats-container {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
    }
    .voucher-stat-box {
        border: 1px solid #000;
        border-left: 5px solid #000;
        padding: 15px;
        flex: 1;
    }
    
    .voucher-payment { margin-bottom: 30px; }
    .voucher-pay-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
        font-size: 14px;
    }
    .voucher-pay-total {
        display: flex;
        justify-content: space-between;
        border-top: 2px solid #000;
        padding-top: 10px;
        margin-top: 10px;
        font-weight: bold;
        font-size: 18px;
    }
    
    .voucher-qr-container {
        text-align: center;
        background: #f9f9f9 !important;
        padding: 20px;
        border: 1px solid #000;
        border-radius: 8px;
        margin-bottom: 30px;
    }
    #voucherQrCode {
        display: inline-block;
        background: #fff;
        padding: 10px;
        border: 1px solid #000;
        margin-bottom: 10px;
    }
    #voucherQrCode img {
        margin: auto;
    }
    .voucher-qr-text { font-size: 12px; color: #666 !important; margin: 0; }
    
    .voucher-footer {
        border-top: 1px solid #000;
        padding-top: 15px;
        font-size: 12px;
        text-align: center;
    }
    .voucher-footer p { margin-bottom: 10px; text-align: left; }
    .voucher-contact {
        display: flex;
        justify-content: center;
        gap: 20px;
        font-weight: bold;
    }
}