body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f3f4f6;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.panel {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#form-panel {
    max-width: 360px;
    flex: 1 1 320px;
}

#receipt-panel {
    max-width: 480px;
    flex: 1 1 360px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 6px 8px;
    margin-top: 4px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

button {
    margin-top: 16px;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #111827;
    background: #111827;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

button.secondary {
    background: white;
    color: #111827;
    margin-left: 8px;
}

button:hover {
    opacity: 0.9;
}

#receipt {
    min-width: 360px;
    min-height: 400px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    background: white;
}

#receipt h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 16px;
}

.receipt-line {
    margin-bottom: 4px;
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    #form-panel, h1 {
        display: none !important;
    }
    #receipt-panel {
        box-shadow: none;
        border-radius: 0;
    }
    #receipt {
        border: none;
        margin: 0;
    }
    button {
        display: none;
    }
}