@font-face { font-family: 'Speda'; src: local('Speda'); }
* { box-sizing: border-box; }
body { background: #444; font-family: 'Speda', Tahoma; margin: 0; padding: 20px; }

.page-a4 {
    width: 210mm;
    min-height: 148mm;
    background: #fff;
    margin: auto;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.receipt-border {
    border: 3px double #333;
    padding: 30px;
    height: 100%;
    position: relative;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-side p { margin: 2px 0; font-size: 11px; font-weight: bold; color: #333; text-align: right; }
.logo-side { text-align: center; flex: 1; }
.main-logo { height: 75px; margin-bottom: 5px; }
.logo-side h1 { margin: 0; font-size: 26px; color: #b08d23; letter-spacing: 2px; }
.slogan { font-size: 12px; font-weight: bold; color: #666; margin-top: -5px; }

.serial-box { color: red; font-weight: bold; font-size: 18px; }
.serial-box input { border: none; border-bottom: 1px solid red; width: 80px; color: red; font-weight: bold; text-align: center; outline: none; }

.voucher-banner {
    text-align: center;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    margin: 20px 0;
    padding: 8px 0;
}
.voucher-banner h2 { margin: 0; font-size: 22px; letter-spacing: 1px; }

.receipt-content { margin-top: 30px; }
.input-line { display: flex; align-items: flex-end; margin-bottom: 25px; gap: 10px; }
.input-line label { font-weight: bold; font-size: 16px; white-space: nowrap; color: #222; }

.dotted-input {
    flex: 1;
    border: none;
    border-bottom: 1px dotted #333;
    font-family: 'Speda';
    font-size: 18px;
    padding: 0 10px;
    outline: none;
    background: transparent;
}

.dotted-textarea {
    flex: 1;
    border: none;
    border-bottom: 1px dotted #333;
    font-family: 'Speda';
    font-size: 18px;
    resize: none;
    outline: none;
    background: transparent;
    line-height: 1.8;
}

.currency-tag select { border: 1px solid #333; padding: 3px 8px; font-weight: bold; font-family: 'Speda'; }

.payment-types { display: flex; align-items: center; gap: 40px; margin-top: 25px; font-weight: bold; }
.checkbox-container { cursor: pointer; margin-right: 15px; display: inline-flex; align-items: center; gap: 5px; }

.receipt-footer { display: flex; justify-content: space-between; margin-top: 60px; align-items: flex-end; }
.date-input { border: none; border-bottom: 1px solid #000; width: 160px; text-align: center; font-size: 16px; outline: none; font-family: 'Speda'; }

.signatures { display: flex; gap: 80px; }
.sig-item { text-align: center; width: 180px; font-weight: bold; }
.sig-line { border-top: 1px solid #000; margin-top: 45px; }

.action-bar { text-align: center; margin-top: 30px; }
.btn { padding: 12px 45px; border: none; border-radius: 5px; cursor: pointer; font-family: 'Speda'; font-weight: bold; margin: 0 10px; }
.print { background: #b08d23; color: white; }
.reset { background: #f0f0f0; color: #333; }

@media print {
    .no-print { display: none; }
    body { background: white; padding: 0; }
    .page-a4 { box-shadow: none; border: none; margin: 0; width: 100%; height: 100%; }
    .receipt-border { border: 2px solid #000; }
    input, textarea { border-bottom: 1px dotted #000 !important; }
}