﻿/* A5 Landscape */
@page {
    size: A5 landscape;
    margin: 0;
}



.voucher {
    width: 210mm;
    height: 148mm;
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    padding: 5mm;
}

/* Header with Logo */
.headerss {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e63946;
}

.logo-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1d3557;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    border-radius: 4px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.company-info {
    text-align: left;
}

.company-name {
    font-size: 25px;
    font-weight: 800;
    color: #1d3557;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.company-address {
    font-size: 12px;
    color: #457b9d;
    margin-bottom: 5px;
    line-height: 1.4;
}

.company-contact {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 8px;
}

.company-website {
    font-size: 11px;
    color: #e63946;
    font-weight: 600;
    letter-spacing: 1px;
}

.voucher-title {
    font-size: 24px;
    color: #e63946;
    font-weight: 700;
    margin-top: 0px;
    letter-spacing: 1.5px;
    text-align: right;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.info-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.info-item {
    margin-bottom: 12px;
}

.info-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: #1d3557;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
}

/* Amount Box */
.amount-box {
    background: #f8f9fa;
    border: 2px solid #1d3557;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.amount-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.amount-value {
    font-size: 32px;
    font-weight: 800;
    color: #e63946;
    margin: 10px 0;
}

/* Payment Details */
/* Info Section */


.payment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;

    background: #f1faee;
    border-radius: 6px;
    padding: 10px;
    margin: 20px 0;
    border-left: 4px solid #a8dadc;
}

.detail-row {
    display: flex;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 1px dashed #c1d6cc;
}

.detail-label {
    width: 140px;
    font-weight: 600;
    color: #1d3557;
    font-size: 13px;
    flex-shrink: 0;
}

.detail-value {
    color: #2d3748;
    font-size: 14px;
    padding-left: 10px;
}

/* In Words */
.in-words-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    background: #a8dadc;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #457b9d;
}

.in-words-label {
    font-size: 12px;
    color: #1d3557;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.in-words-value {
    font-size: 14px;
    color: #1d3557;
    font-weight: 400;
    line-height: 1.4;
}

/* Signatures */
.signature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 15px;
    padding-top: 25px;
    border-top: 2px solid #e63946;
}

.signature-box {
    text-align: center;
}

.signature-label {
    font-size: 14px;
    color: #1d3557;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.signature-line {
    width: 200px;
    height: 1px;
    background: #333;
    margin: 0 auto 8px;
}

.signature-name {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 15mm;
    left: 15mm;
    right: 15mm;
    text-align: center;
    font-size: 10px;
    color: #adb5bd;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

/* Watermark */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 120px;
    color: rgba(29, 53, 87, 0.04);
    font-weight: 900;
    pointer-events: none;
    z-index: 1;
}

/* Print Controls */
.controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.btn-v {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-v-print {
    background: #1d3557;
    color: white;
}

    .btn-v-print:hover {
        background: #14213d;
        transform: translateY(-2px);
    }

.btn-v-back {
    background: #6c757d;
    color: white;
}

    .btn-v-back:hover {
        background: #495057;
        transform: translateY(-2px);
    }

/* Logo Upload */
.logo-upload {
    position: fixed;
    top: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.upload-label {
    font-size: 12px;
    color: #1d3557;
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-input {
    font-size: 12px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.remove-logo {
    background: #e63946;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
}

/* Print Styles */
@media print {
    body {
        background: none;
        padding: 0;
    }

    .voucher {
        box-shadow: none;
        margin: 0;
        padding: 15mm;
    }

    .controls, .logo-upload {
        display: none;
    }
}
