.receipt-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #cbd5df; border-radius: 8px; color: #162230; background: #fff; }
.receipt-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.receipt-controls { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #d6dfe6; background: #fff; }
.receipt-controls h2 { margin: 0; font-size: 17px; }
.receipt-controls > div { display: flex; flex-wrap: wrap; gap: 8px; }
.receipt-paper { padding: 28px; font: 14px/1.5 Arial, sans-serif; color: #162230; background: #fff; overflow-wrap: anywhere; letter-spacing: 0; }
.receipt-paper * { box-sizing: border-box; }
.receipt-brand { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid #127b72; padding-bottom: 18px; }
.receipt-brand img { width: 64px; height: 64px; object-fit: contain; }
.receipt-paper h2 { margin: 0; font-size: 22px; }
.receipt-paper h3 { margin: 18px 0 10px; font-size: 14px; border-bottom: 1px solid #d6dfe6; padding-bottom: 6px; }
.receipt-paper p { margin: 4px 0; }
.receipt-reference { margin-left: auto; text-align: right; font-size: 12px; min-width: 120px; }
.receipt-period { padding: 10px 0; }
.receipt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.receipt-fields dt { font-size: 11px; color: #52606b; }
.receipt-fields dd { margin: 2px 0 0; font-weight: 600; }
.receipt-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.receipt-paper table { width: 100%; border-collapse: collapse; font-size: 12px; }
.receipt-paper td, .receipt-paper th { padding: 7px 0; border-bottom: 1px solid #e4e8ec; text-align: left; }
.receipt-paper td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.receipt-note { font-size: 11px; color: #52606b; padding-top: 8px; }
.receipt-net { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 12px; padding: 16px; background: #e7f4ed; border: 1px solid #a8c9b6; }
.receipt-net strong { font-size: 24px; }
.receipt-net small { font-size: 12px; }
.receipt-paper footer { margin-top: 24px; font-size: 11px; }
.receipt-signature { width: min(340px, 100%); border-top: 1px solid #52606b; padding-top: 6px; margin: 60px auto 0; text-align: center; font-weight: bold; }
.receipt-signature span { display: block; font-weight: normal; }
.receipt-print-frame { position: fixed; width: 1px; height: 1px; border: 0; left: -10000px; }
@media (max-width: 600px) { .receipt-paper { padding: 16px; } .receipt-brand { flex-wrap: wrap; } .receipt-reference { width: 100%; text-align: left; margin: 0; } .receipt-columns { grid-template-columns: 1fr; gap: 0; } .receipt-controls { flex-wrap: wrap; } .receipt-net strong { font-size: 20px; } }
@media print { @page { size: A4; margin: 12mm; } body { margin: 0; } .receipt-paper { padding: 0; font-size: 12px; } .receipt-paper section, .receipt-net, .receipt-signature { break-inside: avoid; } .receipt-net { print-color-adjust: exact; } }

.receipt-dialog { width: min(850px, calc(100vw - 24px)); border-color: #303035; color: #f2f3f5; background: #111113; }
.receipt-controls { background: #19191c; border-color: #303035; }
.receipt-controls h2 { color: #f2f3f5; font-size: 15px; }
.receipt-controls button { background: #242428; border: 1px solid #48484e; color: #f2f3f5; font-size: 12px; }
.receipt-controls button:hover { background: #34343a; }
.receipt-paper { color: #f2f3f5; background: #111113; font-size: 12px; }
.receipt-brand { align-items: flex-start; border-color: #303035; }
.receipt-paper h2 { color: #fff; font-size: 18px; text-transform: uppercase; }
.receipt-brand > div:first-child p { color: #b8c7dc; font-size: 11px; }
.receipt-reference { padding: 12px; background: #19191c; border: 1px solid #303035; border-radius: 6px; }
.receipt-reference strong { display: block; color: #fff; margin-top: 6px; }
.receipt-reference p { font-size: 10px; color: #b8c7dc; }
.receipt-status { color: #45e9a0; background: #083620; padding: 3px 6px; font-size: 9px; font-weight: 800; }
.receipt-paper h3 { color: #b8c7dc; text-transform: uppercase; font-size: 11px; border: 0; margin-top: 24px; }
.receipt-identity { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #303035; background: #19191c; border-radius: 7px; padding: 14px; }
.receipt-fields dt { color: #b8c7dc; text-transform: uppercase; font-size: 9px; }
.receipt-fields dd { color: #fff; font-size: 12px; }
.receipt-factors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.receipt-factors > div { background: #19191c; border: 1px solid #303035; border-radius: 6px; padding: 12px; }
.receipt-factors dd { font-size: 15px; }
.receipt-adjustments { background: #062b19; color: #8df5bb; border: 1px dashed #148449; border-radius: 6px; padding: 12px; margin-top: 9px; font-size: 10px; line-height: 1.7; }
.receipt-columns { gap: 18px; }
.receipt-columns h3 { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; padding-bottom: 8px; border-bottom: 1px solid; }
.receipt-columns .receipt-earnings h3 { color: #3ce6a2; }
.receipt-columns .receipt-deductions h3, .receipt-red { color: #ff5576; }
.receipt-paper table { font-size: 10px; }
.receipt-paper th { color: #b8c7dc; text-transform: uppercase; font-size: 9px; }
.receipt-paper td, .receipt-paper th { border-color: #303035; padding: 9px 3px; }
.receipt-paper tfoot th { text-align: right; text-transform: none; }
.receipt-earnings tfoot td { color: #3ce6a2; font-weight: 700; }
.receipt-deductions tfoot td { color: #ff5576; font-weight: 700; }
.receipt-paper .receipt-empty { color: #b8c7dc; font-style: italic; text-align: center; white-space: normal; }
.receipt-note { color: #b8c7dc; font-size: 10px; }
.receipt-net { background: #101c18; color: #cdd9e8; border-color: #00b980; border-radius: 7px; padding: 18px; }
.receipt-net p { font-size: 10px; }
.receipt-net b { margin-left: 12px; }
.receipt-net-amount { text-align: right; }
.receipt-net-amount span { display: block; font-size: 10px; color: #3ce6a2; font-weight: 800; }
.receipt-net strong { color: #3ce6a2; font-size: 26px; display: block; }
.receipt-net small { color: #b8c7dc; font-size: 10px; font-weight: normal; }
.receipt-paper footer { border-top: 1px solid #303035; padding-top: 18px; margin-top: 30px; color: #b8c7dc; font-size: 10px; }
.receipt-signature { border-color: #b8c7dc; color: #fff; margin-top: 42px; }
@media (max-width: 600px) { .receipt-identity, .receipt-factors { grid-template-columns: repeat(2,minmax(0,1fr)); } .receipt-net { flex-direction: column; align-items: stretch; } .receipt-net-amount { text-align: right; } .receipt-reference { width: 100%; } }
@media print { body { background: #111113; } .receipt-paper, .receipt-paper * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .receipt-paper { padding: 18px; font-size: 11px; } .receipt-columns { grid-template-columns: repeat(2,minmax(0,1fr)); } .receipt-paper h3 { margin-top: 15px; } .receipt-signature { margin-top: 35px; } }
