* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.app-header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.app-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-section, .preview-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-section h2, .preview-section h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.preview-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.preview-header-bar h2 {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.preview-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #ebf4ff;
    color: #3182ce;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #bee3f8;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13.5px;
    color: #4a5568;
}

.btn-link-action {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-link-action:hover {
    text-decoration: underline;
    background: rgba(102, 126, 234, 0.1);
}

.btn-link-action.text-danger {
    color: #e53e3e;
}

.btn-link-action.text-danger:hover {
    background: rgba(229, 62, 62, 0.1);
}

.officials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e0;
}

.section-sublabel {
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.officials-actions {
    display: flex;
    gap: 8px;
}

.helper-text {
    font-size: 11.5px;
    color: #718096;
    margin-top: 4px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.readonly-input {
    background: #f7fafc;
    color: #4a5568;
    cursor: not-allowed;
    font-style: italic;
}

.date-inputs {
    display: flex;
    gap: 10px;
}

.date-inputs input {
    width: 100px;
    text-align: center;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.file-input {
    padding: 8px !important;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 11px 22px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #4a5568;
    color: white;
}

.btn-success {
    background: #38a169;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #cbd5e0;
    color: #4a5568;
}

.btn-outline:hover {
    background: #edf2f7;
    border-color: #a0aec0;
    color: #2d3748;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Format & Paper Selection Buttons */
.format-selection {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.btn-format {
    padding: 7px 14px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-format:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-format.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.format-description {
    color: #718096;
    font-size: 11.5px;
    font-style: italic;
    display: block;
}

/* Receipt Preview Styles */
.receipt-preview {
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    overflow: hidden;
    background: #edf2f7;
    padding: 15px;
}

.receipt-container {
    background: white;
    padding: 15px 15px 15px 40px; /* Batas: Atas 1cm (15px), Kanan 1cm (15px), Bawah 1cm (15px), Kiri 3cm (40px) */
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 13.5px;
    color: #000000;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Header / Kop Kwitansi (Pas Kanan Kiri) */
.receipt-header {
    width: 100%;
    margin-bottom: 25px;
    padding: 0;
}

.receipt-header img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: fill;
    display: block;
    margin: 0;
}

.receipt-content {
    position: relative;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 65%;
    max-height: 65%;
    opacity: 0.12;
    filter: none;
    pointer-events: none;
    z-index: 1;
}

.receipt-content > *:not(.watermark) {
    position: relative;
    z-index: 2;
}

/* Judul KWITANSI */
.receipt-title {
    text-align: center;
    margin-bottom: 22px;
}

.receipt-title h2 {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #000000;
    border: 2px solid #000000;
    padding: 6px 30px;
    display: inline-block;
    margin: 0;
    text-transform: uppercase;
}

.receipt-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #000000;
    color: #000000;
    font-size: 14px;
}

.info-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 14px;
    color: #000000;
}

.info-row .label {
    font-weight: bold;
    color: #000000;
}

.info-row .separator {
    font-weight: bold;
    padding: 0 4px;
    color: #000000;
}

.info-row .value {
    font-weight: 600;
    color: #000000;
}

.receipt-body {
    margin-bottom: 28px;
    font-size: 14px;
    color: #000000;
}

.body-row {
    display: flex;
    margin-bottom: 15px;
    align-items: baseline;
    color: #000000;
    font-size: 14px;
}

.body-row .label {
    width: 165px;
    min-width: 165px;
    font-weight: bold;
    color: #000000;
}

.body-row .separator {
    width: 20px;
    min-width: 20px;
    font-weight: bold;
    text-align: center;
    color: #000000;
}

.body-row .value {
    flex: 1;
    padding: 2px 6px;
    color: #000000;
}

.underline {
    border-bottom: 1.5px solid #000000;
    min-height: 28px;
    padding-bottom: 2px;
}

.amount-highlight {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #000000;
}

.terbilang-text {
    font-style: italic;
    font-weight: 600;
    color: #000000;
}

.receipt-signature {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    color: #000000;
    width: 100%;
}

.receipt-signature.format-2 {
    justify-content: space-around;
    gap: 80px;
}

.receipt-signature.format-2 #receiverSection {
    display: none !important;
}

.signature-section {
    text-align: center;
    flex: 1;
    min-width: 170px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000000;
    font-size: 13.5px;
}

.signature-role {
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.signature-role p {
    color: #000000;
    line-height: 1.35;
    margin: 0;
}

.paid-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    white-space: nowrap;
    color: #000000;
}

.paid-label, .paid-date {
    font-weight: bold;
    font-size: 12.5px;
    color: #000000;
}

.signature-space {
    height: 75px;
    border-bottom: 1.5px solid #000000;
    margin: 8px auto;
    width: 100%;
    max-width: 210px;
    min-width: 170px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meterai-box {
    width: 58px;
    height: 68px;
    border: 1.5px dashed #000000;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 8px;
    font-weight: bold;
    color: #333333;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.has-meterai .meterai-box {
    display: flex !important;
}

.receipt-container:not(.has-meterai) .meterai-box {
    display: none !important;
}

.signature-name {
    font-weight: bold;
    line-height: 1.35;
    font-size: 14px;
    color: #000000;
    text-align: center;
    width: 100%;
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signature-nip, .signature-position {
    font-weight: normal;
    font-size: 12px;
    color: #000000;
    margin-top: 3px;
    line-height: 1.2;
}

#previewCityDate {
    margin-bottom: 2px;
}

.select-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.select-input:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    user-select: none;
    padding: 4px 0;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.signature-name {
    font-weight: bold;
    line-height: 1.4;
    font-size: 13px;
    color: #000000;
    text-align: center;
    width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receipt-footer {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #000000;
    padding-top: 10px;
}

.receipt-footer p {
    font-size: 10.5px;
    color: #222222;
    font-style: italic;
    margin: 0;
}

/* History Section Styles */
.history-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}

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

.history-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-title-group h2 {
    color: #4a5568;
    font-size: 1.35rem;
    margin: 0;
}

.badge {
    background: #edf2f7;
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

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

.search-input {
    padding: 8px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    width: 260px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px;
}

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

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.history-table th {
    background: #f7fafc;
    color: #4a5568;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.history-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    vertical-align: middle;
}

.history-table tr:hover {
    background: #f8fafc;
}

.history-table .empty-row {
    text-align: center;
    color: #a0aec0;
    padding: 30px;
    font-style: italic;
}

.btn-table {
    padding: 4px 8px;
    font-size: 11.5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-right: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-table-load {
    background: #ebf8ff;
    color: #2b6cb0;
}

.btn-table-load:hover {
    background: #bee3f8;
}

.btn-table-delete {
    background: #fff5f5;
    color: #c53030;
}

.btn-table-delete:hover {
    background: #fed7d7;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================================
   CUSTOM TOAST & MODAL NOTIFICATION (No 'This page says')
   ========================================================= */

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #2d3748;
    border-left: 5px solid #667eea;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
}

.toast.toast-hide {
    opacity: 0;
    transform: translateX(50px);
}

.toast-success {
    border-left-color: #38a169;
}

.toast-warning {
    border-left-color: #dd6b20;
}

.toast-error {
    border-left-color: #e53e3e;
}

.toast-info {
    border-left-color: #3182ce;
}

.toast-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.toast-text {
    flex: 1;
    line-height: 1.45;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #a0aec0;
    padding: 0 4px;
    transition: color 0.2s;
    line-height: 1;
}

.toast-close:hover {
    color: #4a5568;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Custom Modal Dialog */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.2s ease-out;
}

.custom-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: modalZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.custom-modal-message {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 22px;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-modal {
    padding: 10px 22px;
    font-size: 13px;
    min-width: 110px;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive UI */
@media (max-width: 1080px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    .form-section, .preview-section, .history-section {
        padding: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .history-controls {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* =========================================================
   PRINT STYLES (Clean Edge-to-Edge Header, Pure Black Text)
   ========================================================= */
@media print {
    html, body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .app-header,
    .form-section,
    .preview-header-bar,
    .history-section,
    .toast-container,
    .custom-modal-overlay {
        display: none !important;
    }
    
    .main-content {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .preview-section {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    
    .receipt-preview {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .receipt-container {
        padding: 0 !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        font-family: 'Times New Roman', Times, Georgia, serif !important;
        font-size: 13px !important;
        color: #000000 !important;
        min-height: auto !important;
        page-break-inside: avoid !important;
        border: none !important;
    }

    /* Header Pas Kanan Kiri di Cetakan */
    .receipt-header { 
        width: 100% !important;
        padding: 0 !important; 
        margin: 0 0 25px 0 !important;
        min-height: auto !important;
    }

    .receipt-header img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: fill !important;
        display: block !important;
        margin: 0 !important;
    }
    
    .receipt-content { 
        position: relative !important; 
    }
    
    .watermark {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: 65% !important;
        max-height: 65% !important;
        opacity: 0.12 !important;
        filter: none !important;
        pointer-events: none !important;
        z-index: 1 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .receipt-content > *:not(.watermark) {
        position: relative !important;
        z-index: 2 !important;
    }

    .receipt-title {
        margin-bottom: 22px !important;
        text-align: center !important;
    }

    .receipt-title h2 {
        font-family: 'Times New Roman', Times, Georgia, serif !important;
        border: 2px solid #000000 !important;
        font-size: 24px !important;
        font-weight: bold !important;
        letter-spacing: 3px !important;
        padding: 6px 30px !important;
        color: #000000 !important;
    }

    .receipt-info {
        margin-bottom: 22px !important;
        padding-bottom: 8px !important;
        border-bottom: 1.5px solid #000000 !important;
        color: #000000 !important;
        font-size: 14px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .info-row {
        color: #000000 !important;
        display: flex !important;
        align-items: baseline !important;
        gap: 4px !important;
        font-size: 14px !important;
    }

    .info-row .label {
        font-weight: bold !important;
    }

    .info-row .separator {
        font-weight: bold !important;
        padding: 0 4px !important;
    }

    .info-row .value {
        font-weight: 600 !important;
    }

    .receipt-body {
        margin-bottom: 28px !important;
        font-size: 14px !important;
        color: #000000 !important;
    }

    .body-row {
        margin-bottom: 15px !important;
        color: #000000 !important;
        display: flex !important;
        align-items: baseline !important;
        font-size: 14px !important;
    }

    .body-row .label {
        width: 165px !important;
        min-width: 165px !important;
        font-weight: bold !important;
    }

    .body-row .separator {
        width: 20px !important;
        min-width: 20px !important;
        font-weight: bold !important;
        text-align: center !important;
    }

    .body-row .value {
        flex: 1 !important;
        padding: 2px 6px !important;
    }

    .underline {
        border-bottom: 1.5px solid #000000 !important;
        min-height: 28px !important;
    }

    .amount-highlight {
        font-size: 16px !important;
        font-weight: bold !important;
        letter-spacing: 0.5px !important;
        color: #000000 !important;
    }

    .terbilang-text {
        font-style: italic !important;
        font-weight: 600 !important;
        color: #000000 !important;
    }
    
    .receipt-signature {
        margin-top: 32px !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 20px !important;
        width: 100% !important;
        align-items: flex-start !important;
        page-break-inside: avoid !important;
        color: #000000 !important;
    }

    .receipt-signature.format-2 {
        justify-content: space-around !important;
        gap: 80px !important;
    }

    .receipt-signature.format-2 #receiverSection {
        display: none !important;
    }
    
    .signature-section {
        text-align: center !important;
        flex: 1 !important;
        min-width: 170px !important;
        max-width: 220px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        page-break-inside: avoid !important;
        color: #000000 !important;
        font-size: 13.5px !important;
    }

    .signature-role {
        height: 48px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 100% !important;
    }

    .signature-role p {
        color: #000000 !important;
        line-height: 1.35 !important;
        margin: 0 !important;
    }
    
    .signature-space {
        height: 75px !important;
        border-bottom: 1.5px solid #000000 !important;
        margin: 8px auto !important;
        width: 100% !important;
        max-width: 210px !important;
        min-width: 170px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .receipt-container:not(.has-meterai) .meterai-box {
        display: none !important;
    }

    .has-meterai .meterai-box {
        display: flex !important;
        width: 58px !important;
        height: 68px !important;
        border: 1.5px dashed #000000 !important;
        color: #222222 !important;
        font-size: 8px !important;
        font-weight: bold !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.2 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .signature-nip, .signature-position {
        color: #000000 !important;
        font-size: 12px !important;
        font-weight: normal !important;
        margin-top: 3px !important;
        line-height: 1.2 !important;
    }
    
    .signature-name {
        font-weight: bold !important;
        font-size: 14px !important;
        width: 100% !important;
        max-width: 210px !important;
        color: #000000 !important;
        margin: 0 auto !important;
    }

    .paid-row, .paid-label, .paid-date {
        color: #000000 !important;
    }

    .paid-row {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 3px !important;
        white-space: nowrap !important;
    }

    .paid-label, .paid-date {
        font-size: 12.5px !important;
    }

    .receipt-footer {
        margin-top: 28px !important;
        padding-top: 10px !important;
        border-top: 1px solid #000000 !important;
    }

    .receipt-footer p {
        font-size: 11px !important;
        color: #222222 !important;
        font-style: italic !important;
    }
}
