body { font-family: DIN, Arial, Helvetica, sans-serif; background: #f0f2f5; padding: 20px; color: #333; }
        .card { background: white; max-width: 1100px; margin: auto; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); position: relative; }
        .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; border-bottom: 3px solid #3498db; padding-bottom: 15px; }
        .logo { background: #0047bb; color: white !important; padding: 10px 20px; font-weight: bold; font-size: 24px; border-radius: 4px; display: inline-block; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
        
        .res-table { width: 100%; border-collapse: collapse; margin-top: 10px; margin-bottom: 20px; font-size: 14px; table-layout: fixed; }
        .res-table th { background: #f8f9fa; padding: 12px; border-bottom: 2px solid #ddd; color: #2c3e50; }
        .res-table td { padding: 12px; border-bottom: 1px solid #eee; }
        .text-right { text-align: right; }
        .res-table .total-row { font-weight: bold; background: #f9f9f9; }
        .res-table .grand-total { background: #0047bb; color: white; font-size: 16px; font-weight: bold; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
        .res-table .discount-row { background: #f9f9f9; font-weight: bold; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
        
        .button-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; justify-content: flex-start;}
        .reset-btn, .print-btn, .btn-pdf { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; font-size: 14px; font-weight: 600; border-radius: 6px; cursor: pointer; border: 1px solid #ccc; text-decoration: none; transition: all 0.2s ease; font-family: inherit; gap: 8px; }
        .reset-btn { background-color: #fff; color: #333; }
        .reset-btn:hover { background-color: #f8f9fa; border-color: #bbb; }
        .print-btn { background-color: #fff; color: #333; border-color: #bbb; display: none; }
        .print-btn:hover { background-color: #f8f9fa; }
        .btn-pdf { background-color: #fff; color: #d9534f; border-color: #d9534f; }
        .btn-pdf:hover { background-color: #fdf7f7; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        
        .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 20px; }
        .label-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; position: relative;}
        label { display: block; font-size: 15px; font-weight: bold; margin-bottom: 0; color: #2c3e50; pointer-events: none; }
        input, select { width: 100%; padding: 14px; border: 2px solid #0047bb; border-radius: 8px; box-sizing: border-box; font-size: 16px; }
        input:invalid { border-color: red; }
        .help-btn { background-color: #0047bb; color: white; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; position: relative; z-index: 999; pointer-events: auto; }
        .help-btn:hover { background-color: #0056b3; transform: scale(1.15); transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.2); cursor: help; }
        dialog { border: none; border-radius: 10px; padding: 20px; max-width: 400px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
        dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
        .sluit-knop { background: #0047bb; color: white; border: 1px solid; border-radius: 10px; padding: 5px 10px; cursor: pointer; margin-top: 10px; }

        .calc-btn { width: 100%; background: #0047bb; color: white; border: none; padding: 18px; border-radius: 8px; cursor: pointer; font-size: 18px; font-weight: bold; margin: 25px 0; transition: background 0.3s; }
        .section-title { background: transparent; color: #0047BB; padding: 5px 0; font-size: 22px; border-radius: 0; margin-top: 20px; font-weight: 700; border-bottom: 2px solid #0047BB; border-left: none; }
        .result-box { background: #e1f5fe; padding: 25px; border-radius: 10px; border: 2px solid #3498db; text-align: center; margin-top: 25px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
        .highlight-blue { color: #3498db; font-weight: bold; font-size: 2.2em; }
        .footer-note { margin-top: 30px; font-size: 12px; color: #7f8c8d; text-align: center; font-style: italic; border-top: 1px solid #eee; padding-top: 10px; }

        @media print {
            @page { size: A4; margin: 0.2cm; }
            body { background: white; padding: 0; }
            .card { box-shadow: none; max-width: 100%; border: none; padding: 0; }
            .button-group, .calc-btn, .print-btn, .reset-btn, .grid { display: none !important; }
            .header { border-bottom: 2px solid #0047bb !important; margin-bottom: 5px; }
            .logo { background: #0047bb !important; color: white !important; font-size: 18pt !important; padding: 8px 15px !important; }
            .section-title { background: transparent; color: #0047BB; padding: 5px 0; font-size: 22px; border-radius: 0; margin-top: 20px; font-weight: 700; border-bottom: 2px solid #0047BB; border-left: none;}
            .grand-total { background: #3498db !important; color: white !important; }
            .result-box { margin-top: 5px; padding: 15px; border: 2px solid #3498db; }
            .footer-note { font-size: 10pt; margin-top: 10px; color: #333; }
        }