:root { font:16px/1.6 system-ui,sans-serif; color:#272420; background:#f7f3ef }
* { box-sizing:border-box }
main { max-width:960px; margin:auto; padding:24px }
header,.toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px }
header { padding:14px 18px; background:#252322; color:#fff; border-bottom:4px solid #c36930 }
section { background:#fff; padding:20px; border:1px solid #ded7cf; border-radius:8px }
form,label { display:grid; gap:6px }
form { gap:14px }
label { font-weight:600 }
input,select,textarea,button { padding:9px; font:inherit; border:1px solid #bcb1a6; border-radius:5px; min-width:0 }
button { background:#8b441d; color:white; width:fit-content; cursor:pointer }
button:disabled { opacity:.5; cursor:default }
fieldset { border:1px solid #ded7cf; display:grid; gap:8px; grid-template-columns:2fr 1fr 1fr 1fr 1fr; margin:0 0 12px }
#document { background:white; margin-top:24px; padding:20px }
#document table { width:100%; border-collapse:collapse }
#document :is(th,td) { text-align:left; padding:8px; border-bottom:1px solid #ded7cf }
#document .amount { font-size:25px; color:#8b441d }
#document .notes { white-space:pre-wrap; overflow-wrap:anywhere }
@media(max-width:650px) { main { padding:12px } fieldset { grid-template-columns:1fr 1fr } }
@media print { body { background:#fff } main > :not(#document), #document button { display:none } #document { margin:0; padding:0 } }
