:root{--color-surface:#fff;--color-surface-sunken:#f7f7f7;--color-surface-hover:#fafafa;--color-border:#e5e5e5;--color-border-faint:#f0f0f0;--color-border-strong:#d4d4d4;--color-text:#111;--color-text-secondary:#5c5c5c;--color-text-muted:#767676;--color-text-inverse:#fff;--color-action-hover:#333;--color-link:#2f5fc4;--color-link-hover:#1f4291;--color-success:#1d7a4c;--color-warning:#9a5b00;--color-danger:#b42318;--color-track:#ececec;--color-scrim:#11111152;--focus-ring:var(--color-link);--font-sans:ui-sans-serif, -apple-system, system-ui, "Segoe UI", sans-serif;--text-xs:12px;--text-sm:13px;--text-md:14px;--text-base:15px;--text-lg:17px;--text-xl:19px;--text-2xl:22px;--text-3xl:28px;--text-4xl:44px;--text-touch:16px;--leading:1.55;--space-xs:4px;--space-sm:8px;--space-md:12px;--space-lg:16px;--space-xl:24px;--space-2xl:32px;--space-3xl:40px;--space-4xl:48px;--space-5xl:64px;--gutter:20px;--control-h:44px;--control-h-sm:32px;--control-h-lg:52px;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--radius-full:999px;--width-page:960px;--width-prose:720px;--width-form:420px;--shadow-dialog:0 1px 2px #0000000f, 0 16px 48px #0000002e;--shadow-menu:0 8px 24px #00000014}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--color-surface);color:var(--color-text);font:var(--text-base)/var(--leading) var(--font-sans);margin:0}a{color:var(--color-link)}a:hover{color:var(--color-link-hover)}h1{font-size:var(--text-3xl);letter-spacing:-.02em;margin:0;font-weight:650;line-height:1.2}h2{font-size:var(--text-xl);margin:0 0 var(--space-lg);letter-spacing:-.01em;font-weight:650}p{margin:0 0 var(--space-md);max-width:40em}p:last-child{margin-bottom:0}[hidden]{display:none!important}.soft{color:var(--color-text-secondary)}.muted{color:var(--color-text-muted)}.small{font-size:var(--text-sm)}.num{font-variant-numeric:tabular-nums}.ok{color:var(--color-success)}.warn{color:var(--color-warning)}.err{color:var(--color-danger)}.nowrap{white-space:nowrap}.grow{flex:1;min-width:0}.note{font-size:var(--text-sm);color:var(--color-text-muted);margin:var(--space-sm) 0 0}.inline{align-items:center;gap:var(--space-sm) var(--space-lg);flex-wrap:wrap;display:flex}.mt{margin-top:var(--space-xl)}.full{width:100%}.strong{color:var(--color-text);font-weight:600}.testline{max-width:var(--width-page);margin:var(--space-lg) auto 0;padding:0 var(--gutter)}.split{justify-content:space-between;align-items:baseline;gap:var(--space-lg);flex-wrap:wrap;display:flex}.page{max-width:var(--width-page);padding:var(--space-2xl) var(--gutter) var(--space-5xl);margin:0 auto}.title{justify-content:space-between;align-items:center;gap:var(--space-lg);padding-bottom:var(--space-xl);flex-wrap:wrap;display:flex}.title h1{min-width:0}section+section{margin-top:var(--space-3xl);padding-top:var(--space-2xl);border-top:1px solid var(--color-border)}.bar{z-index:10;background:var(--color-surface);border-bottom:1px solid var(--color-border);position:sticky;top:0}.bar .in{max-width:var(--width-page);padding:0 var(--gutter);align-items:center;gap:var(--space-xl);min-height:56px;margin:0 auto;display:flex}.bar .who{color:var(--color-text);text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:260px;font-weight:600;text-decoration:none;overflow:hidden}.bar nav{gap:var(--space-xl);font-size:var(--text-md);flex:1;display:flex}.bar nav a{color:var(--color-text-secondary);padding:var(--space-lg) 0;text-decoration:none}.bar nav a:hover,.bar nav a.active{color:var(--color-text)}.bar nav a.active{font-weight:600}.bar .end{font-size:var(--text-md);color:var(--color-text-secondary);gap:var(--space-lg);align-items:center;display:flex}.bar .end button{font:inherit;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;padding:0}.bar .end button:hover{color:var(--color-text)}.bar .end b{color:var(--color-text);font-weight:600}@media (width<=640px){.bar .in{gap:0 var(--space-lg);padding-top:var(--space-sm);flex-wrap:wrap}.bar .who{flex:1}.bar nav{flex-basis:100%;order:3}.bar nav a{padding:var(--space-md) 0}.bar .email{display:none}}.button{justify-content:center;align-items:center;gap:var(--space-sm);height:var(--control-h);padding:0 var(--space-lg);border-radius:var(--radius-sm);background:var(--color-text);color:var(--color-text-inverse);font:600 var(--text-base)/1 var(--font-sans);cursor:pointer;white-space:nowrap;border:0;text-decoration:none;display:inline-flex}.button:hover{background:var(--color-action-hover);color:var(--color-text-inverse)}.button.quiet{background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border-strong);font-weight:500}.button.quiet:hover{background:var(--color-surface-sunken)}.button.danger{background:var(--color-surface);color:var(--color-danger);border:1px solid var(--color-danger)}.button:disabled{opacity:.4;cursor:default}.button .mark{flex:none;width:18px;height:18px}.button.small{height:var(--control-h-sm);padding:0 var(--space-md);font-size:var(--text-md)}.textbutton{padding:var(--space-sm) 0;font:inherit;font-size:var(--text-md);color:var(--color-link);cursor:pointer;background:0 0;border:0;text-decoration:none}.textbutton:hover{color:var(--color-link-hover)}.textbutton.danger{color:var(--color-text-secondary)}.textbutton.danger:hover{color:var(--color-danger)}.textbutton:disabled{color:var(--color-text-muted);cursor:default}.actionsrow{gap:var(--space-sm);flex-wrap:wrap;align-items:center;display:flex}label{display:block}.field{gap:var(--space-sm);margin-bottom:var(--space-lg);flex-direction:column;min-width:0;display:flex}.field>span:first-child{font-size:var(--text-md);font-weight:500}.field>.note{margin-top:0}.fields{gap:0 var(--space-lg);grid-template-columns:repeat(auto-fill,minmax(200px,1fr));display:grid}.fields .wide{grid-column:1/-1}.fields .span2{grid-column:span 2}.fields.cols3{grid-template-columns:repeat(3,minmax(0,1fr))}@media (width<=640px){.fields.cols3{grid-template-columns:1fr}.fields .span2{grid-column:1/-1}}.form{max-width:760px}input[type=text],input[type=email],input[type=number],input[type=date],input[type=search],select,textarea{font:inherit;font-size:var(--text-base);color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);padding:0 var(--space-md);height:var(--control-h);width:100%;min-width:0}textarea{height:auto;padding:10px var(--space-md);field-sizing:content;min-height:var(--control-h);resize:vertical}input[type=number]{font-variant-numeric:tabular-nums}td input[type=number]{text-align:right}@media (pointer:coarse){input[type=text],input[type=email],input[type=number],input[type=date],input[type=search],select,textarea{font-size:var(--text-touch)}.button.small{height:var(--control-h)}}select{appearance:none;padding-right:var(--space-3xl);cursor:pointer;background:var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center}input:disabled,select:disabled{background-color:var(--color-surface-sunken);color:var(--color-text-secondary);cursor:default}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--color-text);cursor:pointer;flex:none;margin:0}.check{align-items:center;gap:var(--space-sm);padding:var(--space-xs) 0;cursor:pointer;display:flex}.field.check{min-height:var(--control-h);font-size:var(--text-md);flex-direction:row;align-self:end;align-items:center}.fielderror{color:var(--color-danger);font-size:var(--text-sm)}.formerror{color:var(--color-danger);font-size:var(--text-md);margin:0 0 var(--space-lg)}.formerror ul,.problems{margin:var(--space-xs) 0 0;padding-left:var(--space-xl)}.tablebox{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--text-md)}th{text-align:left;color:var(--color-text-muted);font-weight:500;font-size:var(--text-xs);letter-spacing:.02em;padding:var(--space-sm) var(--space-md) var(--space-sm) 0;border-bottom:1px solid var(--color-border);white-space:nowrap}td{padding:var(--space-md) var(--space-md) var(--space-md) 0;border-top:1px solid var(--color-border-faint);vertical-align:baseline}tbody tr:first-child td{border-top:0}th.r,td.r{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}th:last-child,td:last-child{padding-right:0}th.pick,td.pick{vertical-align:middle;width:30px}tbody tr.link{cursor:pointer}tbody tr.link:hover td{background:var(--color-surface-hover)}tr.total td{border-top:1px solid var(--color-border);font-weight:600}.sub{font-size:var(--text-sm);color:var(--color-text-secondary);font-weight:400;display:block}.show-sm{display:none}@media (width<=560px){.hide-sm{display:none}.show-sm{display:block}}.rows>*{justify-content:space-between;align-items:baseline;gap:var(--space-lg);padding:var(--space-md) 0;border-top:1px solid var(--color-border-faint);display:flex}.rows>:first-child{border-top:0}.rows>*>:nth-child(2){text-align:right}.kv{gap:var(--space-sm) var(--space-lg);grid-template-columns:160px minmax(0,1fr);margin:0;display:grid}.kv dt{color:var(--color-text-secondary)}.kv dd{overflow-wrap:anywhere;min-width:0;margin:0}dialog{border-radius:var(--radius-lg);width:min(520px,100% - 32px);color:var(--color-text);background:var(--color-surface);box-shadow:var(--shadow-dialog);border:0;padding:0}dialog.wide{width:min(980px,100% - 32px)}.withpreview{gap:var(--space-2xl);grid-template-columns:minmax(0,1fr) 280px;align-items:start;display:grid}.partypreview{gap:var(--space-sm);flex-direction:column;display:flex;position:sticky;top:0}.partypreview .paper{padding:var(--space-lg);border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);font-size:var(--text-sm);overflow-wrap:anywhere;flex-direction:column;gap:3px;display:flex}.partypreview .label{letter-spacing:.04em;text-transform:uppercase;color:var(--color-text-muted);padding-bottom:var(--space-xs);margin-bottom:var(--space-xs);border-bottom:1px solid var(--color-border);font-size:11px}.partypreview b{font-size:var(--text-base);margin-bottom:2px;font-weight:600}dialog .pdfframe{height:68vh;min-height:420px}@media (width<=760px){.withpreview{grid-template-columns:1fr}.partypreview{position:static}}dialog[open]{flex-direction:column;max-height:calc(100dvh - 32px);display:flex}dialog::backdrop{background:var(--color-scrim)}dialog>h2{padding:var(--space-xl) var(--space-xl) var(--space-lg);flex:none;margin:0}dialog .dialogbody h2{font-size:var(--text-lg);margin-bottom:var(--space-md)}dialog .dialogbody{padding:0 var(--space-xl);flex:auto;min-height:0;overflow-y:auto}dialog .actions{justify-content:flex-end;gap:var(--space-sm);padding:var(--space-lg) var(--space-xl) var(--space-xl);border-top:1px solid var(--color-border-faint);margin-top:var(--space-lg);flex:none;display:flex}.spinner{border:2px solid var(--color-border);border-top-color:var(--color-text);border-radius:50%;flex:none;width:22px;height:22px;animation:.8s linear infinite spin;display:inline-block}.spinner.small{width:14px;height:14px}@keyframes spin{to{transform:rotate(360deg)}}.pageloading{place-items:center;min-height:50vh;display:grid}.auth{max-width:var(--width-form);padding:var(--space-5xl) var(--gutter);margin:0 auto}.auth h1{margin-bottom:var(--space-sm)}.auth p{color:var(--color-text-secondary);margin-bottom:var(--space-xl)}.auth .or{align-items:center;gap:var(--space-md);margin:var(--space-xl) 0;color:var(--color-text-secondary);font-size:var(--text-sm);display:flex}.auth .or:before,.auth .or:after{content:"";border-top:1px solid var(--color-border);flex:1}.month{align-items:center;gap:var(--space-sm);display:flex}.month b{text-align:center;min-width:150px;font-weight:600}.month button{width:var(--control-h-sm);height:var(--control-h-sm);border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface);cursor:pointer;font:inherit;color:var(--color-text)}.month button:hover{background:var(--color-surface-sunken)}.toolbar{justify-content:space-between;align-items:center;gap:var(--space-md);padding:var(--space-md) 0;border-bottom:1px solid var(--color-border);margin-bottom:var(--space-sm);flex-wrap:wrap;display:flex}.figures{gap:var(--space-3xl);padding:var(--space-lg) 0 var(--space-xl);flex-wrap:wrap;display:flex}.figures div>span{font-size:var(--text-sm);color:var(--color-text-secondary);display:block}.figures div>b{font-size:var(--text-2xl);font-variant-numeric:tabular-nums;font-weight:600}.empty{padding:var(--space-3xl) 0;color:var(--color-text-secondary)}.lines{width:100%}.lines td{vertical-align:top;padding-top:var(--space-sm);padding-bottom:var(--space-sm)}.lines td input,.lines td select{height:var(--control-h)}.lines .c-name{min-width:220px}.lines .c-unit{width:104px}.lines .c-qty{width:88px}.lines .c-price{width:120px}.lines .c-vat{width:130px}.lines .c-value{width:120px;padding-top:calc(var(--space-sm) + 12px)}.lines .c-del{width:32px;padding-top:calc(var(--space-sm) + 4px)}.lines textarea{margin-top:var(--space-xs);font-size:var(--text-md);min-height:36px;padding-top:7px;padding-bottom:7px}@media (width<=640px){.lines thead{display:none}.lines tbody tr{gap:var(--space-sm) var(--space-md);padding:var(--space-lg) 0;border-top:1px solid var(--color-border-faint);grid-template-columns:1fr 1fr;display:grid}.lines tbody tr:first-child{border-top:0}.lines td{border:0;padding:0;display:block;width:auto!important;min-width:0!important}.lines td[data-label]:before{content:attr(data-label);font-size:var(--text-xs);color:var(--color-text-muted);margin-bottom:var(--space-xs);display:block}.lines .c-name{grid-column:1/-1}.lines .c-value{align-self:end;padding-top:0}.lines .c-del{grid-column:2;justify-self:end;padding-top:0}}.totals{width:min(100%,340px);margin-left:auto}.totals .rows>:last-child{font-weight:600;font-size:var(--text-lg);border-top:1px solid var(--color-border)}.formfoot{justify-content:space-between;gap:var(--space-xl);margin-top:var(--space-xl);flex-wrap:wrap;align-items:flex-start;display:flex}.sticky{background:var(--color-surface);border-top:1px solid var(--color-border);padding:var(--space-lg) 0;margin-top:var(--space-2xl);justify-content:space-between;align-items:center;gap:var(--space-md);flex-wrap:wrap;display:flex;position:sticky;bottom:0}.invoicepage{gap:var(--space-2xl);grid-template-columns:minmax(0,1fr) 300px;align-items:start;display:grid}.pdfframe{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-sunken);width:100%;height:80vh;min-height:560px;display:block}.invoicepage aside>*+*{margin-top:var(--space-xl)}.invoicepage aside .actionsrow{flex-direction:column;align-items:stretch}@media (width<=860px){.invoicepage{grid-template-columns:1fr}.invoicepage aside{order:-1}.pdfframe{height:70vh}}.state{font-size:var(--text-xl);margin:var(--space-xs) 0;font-weight:600}.bank{gap:var(--space-sm);margin-bottom:var(--space-sm);grid-template-columns:96px minmax(0,2.3fr) minmax(0,1.4fr) minmax(0,1fr) 32px;align-items:center;display:grid}@media (width<=640px){.bank{grid-template-columns:80px minmax(0,1fr) 32px}.bank .b-bank,.bank .b-swift{grid-column:2}}.logo{align-items:center;gap:var(--space-lg);display:flex}.logo img{object-fit:contain;border:1px solid var(--color-border);border-radius:var(--radius-sm);width:72px;height:72px}.iconbutton{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;place-items:center;font-size:18px;line-height:1;display:grid}.iconbutton:hover{background:var(--color-surface-sunken);color:var(--color-danger)}
