:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#14271e;background:#f3f6f3;font-size:16px;--green:#126d3d;--yellow:#facc15;--border:#d5dfd7}*{box-sizing:border-box}body{margin:0}header{background:#102d20;color:white;display:flex;justify-content:space-between;align-items:center;padding:20px max(20px,calc((100vw - 1320px)/2));gap:24px}.brand{font-size:26px;font-weight:950;text-decoration:none;letter-spacing:-1.5px;color:var(--yellow)}.brand span{color:#66e69c}.brand small{display:block;color:white;font-size:12px;letter-spacing:4px;margin-top:4px}nav{display:flex;align-items:center;gap:20px}a{color:inherit;text-underline-offset:4px}button,.button{font:inherit;cursor:pointer;border:1px solid var(--border);background:white;color:#173824;border-radius:9px;padding:11px 17px;min-height:44px;font-weight:650;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{border-color:var(--green);background:#eaf6ed}button.primary,.button.primary{background:var(--green);color:white;border-color:var(--green)}button.yellow{background:var(--yellow);border-color:var(--yellow)}button:disabled{opacity:.55;cursor:wait}input,select,textarea{font:inherit;width:100%;padding:11px 12px;border:1px solid #b8c9bc;border-radius:8px;background:white;color:#132d1e;min-height:44px}textarea{resize:vertical;min-height:85px}input[type=checkbox]{width:20px;min-height:20px}label{display:grid;gap:7px;font-size:14px;font-weight:650;align-content:start}label.check{display:flex;align-items:center;gap:8px}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #e2b500;outline-offset:2px}main{max-width:1320px;margin:auto;padding:32px 24px 90px}h1{font-size:clamp(28px,4vw,42px);letter-spacing:-1.4px;line-height:1.15;margin:10px 0 12px}h2{font-size:23px;letter-spacing:-.5px;margin:0 0 20px}h3{font-size:17px;margin:0 0 15px}p{line-height:1.6}.muted,small{color:#597061}.eyebrow{color:var(--green);font-size:13px;letter-spacing:2px;font-weight:850;text-transform:uppercase}.hero{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:26px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.tabs .active{background:#163e28;color:white}.card{background:white;border:1px solid var(--border);border-radius:16px;padding:25px;margin-bottom:22px;box-shadow:0 4px 18px #173d1604}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.wide{grid-column:1/-1}.layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px}.summary{position:sticky;top:20px;align-self:start;background:#123a27;color:white}.summary .muted{color:#c3dfce}.summary hr{border:0;border-top:1px solid #42604e;margin:20px 0}.sumrow{display:flex;justify-content:space-between;gap:14px;margin:13px 0}.sumrow.total{font-size:25px;font-weight:800}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.sectiontitle{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:20px}.sectiontitle h2{margin:0}.record,.charge{border:1px solid var(--border);border-left:4px solid #a5d9b6;border-radius:10px;padding:20px;margin-top:16px}.charge .grid{grid-template-columns:2fr repeat(2,minmax(0,1fr))}.charge .description{grid-column:1/-1}.charge footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px}.danger{color:#9d2525}.error{font-size:14px;color:#a51e19;margin:5px 0;line-height:1.5}.notice{background:#fff6cd;border:1px solid #e9cd56;border-radius:10px;padding:14px;margin-bottom:20px;font-size:14px;line-height:1.6}.auth{max-width:490px;margin:45px auto}.auth form{display:grid;gap:20px}.empty{text-align:center;padding:40px;color:#567360}.history{display:grid;gap:14px}.history article{display:flex;justify-content:space-between;gap:20px;padding:22px;border:1px solid var(--border);background:white;border-radius:12px}.history h3{margin-bottom:5px}.pill{font-size:13px;background:#e3f4e7;border-radius:99px;padding:5px 10px;color:#24623a}.row{display:flex;gap:12px;align-items:center}.spaced{margin-top:20px}.template-field{padding:16px;border:1px solid var(--border);margin:14px 0;border-radius:10px}.template-field .grid{grid-template-columns:2fr 1fr 1fr}.summary button{width:100%;margin-top:10px}.summary .primary{background:var(--yellow);color:#15311f;border-color:var(--yellow)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:#153e28;color:white;padding:14px 22px;border-radius:12px;box-shadow:0 4px 30px #0002;z-index:50}#toast:empty{display:none}dialog{width:min(1100px,95vw);border:1px solid var(--border);border-radius:16px;padding:22px;max-height:94vh}dialog::backdrop{background:#061c12aa}iframe{width:100%;height:70vh;border:0}pre{white-space:pre-wrap}.logo-preview{max-width:130px;max-height:70px}.steps{display:flex;gap:10px;color:#56735e;font-size:14px;flex-wrap:wrap;margin:16px 0 24px}.steps b{color:var(--green)}.hide-settings{margin-top:18px}summary{cursor:pointer;font-size:14px;font-weight:650}.save-status{font-size:14px;color:#d7f0df}
@media(max-width:900px){.layout{grid-template-columns:1fr}.summary{position:static}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){header{padding:16px;gap:14px}header nav{gap:10px;font-size:13px}.brand{font-size:23px}main{padding:24px 14px 60px}.hero{display:block}.hero .actions{margin-top:20px}.card{padding:19px}.grid,.grid.three,.charge .grid,.template-field .grid{grid-template-columns:1fr}.history article{display:block}.history .actions{margin-top:15px}.sectiontitle{align-items:flex-start}.record,.charge{padding:15px}.tabs button{flex:1;font-size:14px;padding:9px}.summary .total{font-size:25px}.row{flex-wrap:wrap}}@media print{header,.tabs,.actions,button,#toast{display:none}main{padding:0}.card{box-shadow:none;border:0}.layout{display:block}.charge,.record{break-inside:avoid}@page{size:A4;margin:15mm}}
[hidden]{display:none!important}select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22m4 6 4 4 4-4%22 fill=%22none%22 stroke=%22%23224631%22 stroke-width=%221.5%22/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat}
