@font-face{font-family:Public Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(../media/public-sans-vietnamese-wght-normal.2xu150hql8jlm.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Public Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(../media/public-sans-latin-ext-wght-normal.18i7opzsmuf9v.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Public Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(../media/public-sans-latin-wght-normal.3l3rp4h9pmto-.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(../media/source-serif-4-cyrillic-ext-wght-normal.15j66v505zruv.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(../media/source-serif-4-cyrillic-wght-normal.2g-_ddaxicwal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(../media/source-serif-4-greek-wght-normal.3gfix38_g8jy1.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(../media/source-serif-4-vietnamese-wght-normal.2viyz1bzxo6ke.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(../media/source-serif-4-latin-ext-wght-normal.1ypawvdr3-tjv.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(../media/source-serif-4-latin-wght-normal.2bbm7w9b-e07f.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--ink:#172554;--brand:#213e93;--brand-soft:#e8edf8;--signal:#c8102e;--signal-soft:#fbe9ec;--ok:#1e7a55;--ok-soft:#e4f3ec;--wait:#8a5a00;--wait-soft:#fbf1dc;--paper:#f3f5f9;--surface:#fff;--line:#dce1eb;--line-strong:#c3cad8;--muted:#5b6478;--focus:#3b6fe0;--serif:"Source Serif 4 Variable", Georgia, serif;--sans:"Public Sans Variable", system-ui, -apple-system, sans-serif;--radius:6px;--radius-lg:10px;--nav-w:232px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--ink:#e6eaf5;--brand:#8fa8ec;--brand-soft:#1f2a4d;--signal:#ff6b7f;--signal-soft:#3a1820;--ok:#5ccf9c;--ok-soft:#12302a;--wait:#f0b84f;--wait-soft:#33280f;--paper:#0f1426;--surface:#161d33;--line:#27304b;--line-strong:#3a4566;--muted:#98a2bd;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--paper);color:var(--ink);font-family:var(--sans);font-variant-numeric:tabular-nums;margin:0;font-size:15px;line-height:1.5}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:3px}h1,h2,h3{margin:0;font-weight:600}h1{font-family:var(--serif);letter-spacing:-.01em;font-size:30px;font-weight:600;line-height:1.15}h2{font-size:16px;line-height:1.3}h3{font-size:14px}p{margin:0}small,.muted{color:var(--muted)}.num{text-align:right;white-space:nowrap}.serif{font-family:var(--serif)}.shell{grid-template-columns:var(--nav-w) 1fr;min-height:100dvh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;height:100dvh;padding:22px 14px;display:flex;position:sticky;top:0}.sidebar .logo{padding:0 8px 26px;display:block}.sidebar .logo img{width:150px;height:auto;display:block}@media (prefers-color-scheme:dark){.sidebar .logo img{background:#fff;border-radius:6px;padding:6px}}.nav{flex-direction:column;gap:2px;display:flex}.nav a{border-radius:var(--radius);color:var(--ink);align-items:center;gap:10px;padding:9px 10px;font-weight:500;display:flex}.nav a:hover{background:var(--paper);text-decoration:none}.nav a[aria-current=page]{background:var(--brand-soft);color:var(--brand)}.nav svg{flex:none;width:18px;height:18px}.sidebar .spacer{flex:1}.sidebar .who{color:var(--muted);border-top:1px solid var(--line);padding:10px;font-size:13px}.sidebar .who button{all:unset;cursor:pointer;color:var(--brand)}main.content{width:100%;max-width:1180px;padding:28px 36px 64px}.mobile-top,.tabbar{display:none}@media (max-width:860px){.shell{grid-template-columns:1fr}.sidebar{display:none}main.content{padding:16px 16px calc(84px + env(safe-area-inset-bottom))}.mobile-top{padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:var(--surface);border-bottom:1px solid var(--line);z-index:10;justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.mobile-top img{width:auto;height:30px}.tabbar{z-index:20;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.tabbar a{color:var(--muted);flex-direction:column;align-items:center;gap:2px;padding:8px 0 7px;font-size:11px;display:flex}.tabbar a:hover{text-decoration:none}.tabbar a[aria-current=page]{color:var(--brand)}.tabbar svg{width:22px;height:22px}h1{font-size:25px}}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:22px;display:flex}.page-head .sub{color:var(--muted);margin-top:4px}.actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.crumb{color:var(--muted);margin-bottom:6px;font-size:13px;display:block}.btn{border-radius:var(--radius);border:1px solid var(--line-strong);background:var(--surface);height:38px;color:var(--ink);font:500 14px/1 var(--sans);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:6px;padding:0 14px;display:inline-flex}.btn:hover{border-color:var(--brand);text-decoration:none}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{filter:brightness(1.08)}@media (prefers-color-scheme:dark){.btn.primary{color:#0f1426}}.btn.danger{color:var(--signal)}.btn.danger:hover{border-color:var(--signal)}.btn.ghost{background:0 0;border-color:#0000}.btn.small{height:30px;padding:0 10px;font-size:13px}.btn:disabled{opacity:.5;cursor:not-allowed}label.field,div.field{color:var(--muted);flex-direction:column;gap:5px;font-size:13px;font-weight:500;display:flex}input,select,textarea{font:400 15px/1.3 var(--sans);color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);width:100%;min-height:38px;padding:8px 10px}textarea{resize:vertical;min-height:76px}input:focus,select:focus,textarea:focus{outline:2px solid var(--focus);outline-offset:-1px;border-color:#0000}input[type=checkbox]{width:auto;min-height:0}.grid-form{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px 16px;display:grid}.grid-form .wide{grid-column:1/-1}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}.panel>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.panel>.body{padding:18px}.stack{flex-direction:column;gap:20px;display:flex}.two-col{grid-template-columns:minmax(0,2fr) minmax(280px,1fr);align-items:start;gap:20px;display:grid}@media (max-width:980px){.two-col{grid-template-columns:1fr}}.alert{border-radius:var(--radius);background:var(--signal-soft);color:var(--signal);padding:11px 14px;font-weight:500}.notice{border-radius:var(--radius);background:var(--brand-soft);color:var(--brand);padding:11px 14px}.success{border-radius:var(--radius);background:var(--ok-soft);color:var(--ok);padding:11px 14px;font-weight:500}.table-wrap{overflow-x:auto}table.list{border-collapse:collapse;width:100%;font-size:14px}table.list th{text-align:left;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap;padding:10px 12px;font-size:12.5px;font-weight:600}table.list td{border-bottom:1px solid var(--line);vertical-align:top;padding:11px 12px}table.list tr:last-child td{border-bottom:0}table.list tbody tr.link{cursor:pointer}table.list tbody tr.link:hover td{background:var(--paper)}table.list td a.row-link{color:var(--ink);font-weight:600}table.list .client{text-overflow:ellipsis;white-space:nowrap;max-width:280px;overflow:hidden}table.list tfoot td{border-top:1px solid var(--line-strong);font-weight:600}@media (max-width:700px){table.list.cards thead{display:none}table.list.cards,table.list.cards tbody,table.list.cards tr,table.list.cards td{display:block}table.list.cards tr{border-bottom:1px solid var(--line);grid-template-columns:1fr auto;gap:2px 12px;padding:12px 14px;display:grid}table.list.cards td{border:0;padding:0}table.list.cards td.hide-sm{display:none}table.list.cards td.num{grid-area:1/2}table.list.cards td.badge-cell{text-align:right;grid-area:2/2}}.badge{white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:12.5px;font-weight:600;display:inline-block}.badge.draft{background:var(--paper);color:var(--muted);border:1px dashed var(--line-strong)}.badge.paid{background:var(--ok-soft);color:var(--ok)}.badge.late{background:var(--signal-soft);color:var(--signal)}.badge.pending,.badge.partial{background:var(--wait-soft);color:var(--wait)}.badge.credit{background:var(--brand-soft);color:var(--brand)}.badge.neutral{background:var(--paper);color:var(--muted)}.filters{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;display:flex}.filters input[type=search]{max-width:280px}.filters select{width:auto}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--line-strong);color:var(--ink);background:var(--surface);border-radius:999px;padding:5px 11px;font-size:13px}.chip:hover{border-color:var(--brand);text-decoration:none}.chip[aria-current=true]{background:var(--ink);color:var(--surface);border-color:var(--ink)}.year-hero{grid-template-columns:minmax(240px,300px) 1fr;gap:0;display:grid}.year-hero .figure{border-right:1px solid var(--line);flex-direction:column;gap:14px;padding:22px 24px;display:flex}.year-hero .big{font-family:var(--serif);letter-spacing:-.02em;font-size:44px;font-weight:600;line-height:1}.year-hero .delta{font-weight:600}.delta.up{color:var(--ok)}.delta.down{color:var(--signal)}.year-hero .chart{min-width:0;padding:18px 22px 12px}@media (max-width:760px){.year-hero{grid-template-columns:1fr}.year-hero .figure{border-right:0;border-bottom:1px solid var(--line)}.year-hero .big{font-size:36px}}.legend{color:var(--muted);gap:16px;margin-bottom:8px;font-size:12.5px;display:flex}.legend i{vertical-align:-1px;border-radius:2px;width:10px;height:10px;margin-right:6px;display:inline-block}.kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}@media (max-width:760px){.kpis{grid-template-columns:1fr}}.kpi{padding:16px 18px}.kpi .label{color:var(--muted);font-size:13px}.kpi .value{font-family:var(--serif);margin-top:2px;font-size:26px;font-weight:600}.kpi .value.alertv{color:var(--signal)}.bars-h{flex-direction:column;gap:10px;display:flex}.bars-h .row{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;font-size:14px;display:grid}.bars-h .track{background:var(--paper);border-radius:3px;grid-column:1/-1;height:6px;overflow:hidden}.bars-h .fill{background:var(--brand);border-radius:3px;height:100%}.sheet{color:#1d2433;border:1px solid var(--line);box-shadow:0 1px 0 var(--line), 0 12px 32px -18px #17255459;background:#fff;border-radius:4px;padding:40px 44px;font-size:13.5px}.sheet .sheet-top{justify-content:space-between;gap:24px;margin-bottom:30px;display:flex}.sheet .sheet-top img{width:190px;height:auto}.sheet .doc-title{font-family:var(--serif);color:#172554;margin-bottom:6px;font-size:26px}.sheet .addr{line-height:1.45}.sheet .meta{margin-bottom:18px;line-height:1.6}.sheet table{border-collapse:collapse;width:100%}.sheet thead th{color:#fff;text-align:left;background:#213e93;padding:8px 10px;font-size:12.5px;font-weight:600}.sheet thead th.num{text-align:right}.sheet tbody td{vertical-align:top;border-bottom:1px solid #e3e7ef;padding:9px 10px}.sheet .line-desc{color:#556;white-space:pre-line}.sheet tr.sheet-title td{text-transform:uppercase;letter-spacing:.03em;color:var(--sheet-brand,#213e93);border-bottom:1.5px solid var(--sheet-brand,#213e93);padding-top:16px;font-weight:700}.sheet tr.sheet-comment td{color:#556;white-space:pre-line;font-style:italic}.sheet tr.sheet-subtotal td{background:#f3f5f9;font-weight:700}.sheet tr.sheet-subtotal td:first-child{text-align:right}.sheet .totals{width:min(320px,100%);margin-top:14px;margin-left:auto}.sheet .totals div{justify-content:space-between;padding:5px 10px;display:flex}.sheet .totals .ttc{background:#e8edf8;border-radius:3px;font-size:15px;font-weight:700}.sheet .foot{color:#556;margin-top:26px;font-size:11.5px;line-height:1.5}.sheet .watermark{color:#c8102e;letter-spacing:.02em;font-weight:700}@media (max-width:700px){.sheet{padding:20px 16px;font-size:13px}.sheet .sheet-top{flex-direction:column}.sheet .sheet-top img{width:140px}}.lines-editor{border-collapse:collapse;width:100%}.lines-editor th{color:var(--muted);text-align:left;padding:6px;font-size:12.5px;font-weight:600}.lines-editor td{vertical-align:top;padding:5px 6px}.lines-editor input{min-height:34px;padding:6px 8px;font-size:14px}.lines-editor .c-qty{width:80px}.lines-editor .c-pu,.lines-editor .c-rem{width:110px}.lines-editor .c-vat{width:80px}.lines-editor .c-tot{text-align:right;width:110px;padding-top:12px;font-weight:600}.lines-editor .c-del{width:108px}.line-tools{justify-content:flex-end;gap:2px;display:flex}.line-tools .btn{padding:4px 8px}.line-tools .btn:disabled{opacity:.3}.lines-editor .line-title input{text-transform:uppercase;letter-spacing:.02em;background:var(--brand-soft);font-weight:700}.lines-editor .line-comment textarea{font-size:13.5px;font-style:italic}.lines-editor .line-subtotal input{text-align:right;border-style:dashed;font-weight:600}.lines-editor .line-subtotal .c-tot{border-top:2px solid var(--line-strong)}.line-add{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.lines-editor tr.line-row+tr.line-row td{border-top:1px solid var(--line);padding-top:10px}.lines-editor .desc{margin-top:5px;font-size:13px}@media (max-width:760px){.lines-editor thead{display:none}.lines-editor,.lines-editor tbody{display:block}.lines-editor tr.line-row{border-top:1px solid var(--line);grid-template-columns:1fr 1fr;gap:6px;padding:12px 0;display:grid}.lines-editor tr.line-row td{width:auto;padding:0;display:block;border:0!important}.lines-editor td.c-label{grid-column:1/-1}.lines-editor tr.line-title,.lines-editor tr.line-comment,.lines-editor tr.line-subtotal{grid-template-columns:1fr auto}.lines-editor tr.line-title td.c-tot,.lines-editor tr.line-comment td.c-tot{display:none}.lines-editor tr.line-title td.c-label,.lines-editor tr.line-comment td.c-label{grid-column:1}.lines-editor tr.line-subtotal td.c-label{grid-column:1/-1}.lines-editor td:before{content:attr(data-label);color:var(--muted);font-size:12px;display:block}.lines-editor td.c-label:before,.lines-editor td.c-del:before{display:none}.lines-editor .c-tot{text-align:left;padding-top:0}}.editor-totals{border-top:1px solid var(--line-strong);flex-wrap:wrap;justify-content:flex-end;gap:28px;margin-top:8px;padding:14px 6px 0;display:flex}.editor-totals strong{font-family:var(--serif);font-size:20px}.auth{place-items:center;min-height:100dvh;padding:24px;display:grid}.auth .box{width:min(400px,100%)}.auth .box img{width:200px;margin:0 auto 26px;display:block}.auth form{flex-direction:column;gap:14px;display:flex}dl.facts{grid-template-columns:auto 1fr;gap:6px 16px;margin:0;font-size:14px;display:grid}dl.facts dt{color:var(--muted)}dl.facts dd{margin:0}.empty{text-align:center;color:var(--muted);padding:40px 20px}.empty .btn{margin-top:12px}@media (prefers-reduced-motion:no-preference){.chart rect.bar{transition:opacity .15s}}.toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.toolbar .lbl{color:var(--muted);margin-right:2px;font-size:13px}.toolbar .sort{background-color:var(--surface);border-radius:999px;width:auto;min-height:34px;padding:5px 30px 5px 10px;font-size:13.5px;font-weight:500}.toolbar .search{gap:6px;margin-left:auto;display:flex}.toolbar .search input{border-radius:999px;width:240px;min-height:34px;padding:6px 14px;font-size:14px}@media (max-width:700px){.toolbar .search{width:100%;margin-left:0}.toolbar .search input{width:100%}}.pill{align-items:center;display:inline-flex;position:relative}.pill details>summary{cursor:pointer;border:1px solid var(--line-strong);background:var(--surface);height:34px;color:var(--ink);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:0 12px;font-size:13.5px;font-weight:500;list-style:none;display:inline-flex}.pill details>summary::-webkit-details-marker{display:none}.pill details>summary svg{width:15px;height:15px;color:var(--muted)}.pill details[open]>summary,.pill details>summary:hover{border-color:var(--brand)}.pill.active details>summary{background:var(--brand-soft);border-color:var(--brand);color:var(--brand);padding-right:30px}.pill.active details>summary svg{color:var(--brand)}.pill b{font-weight:600}.pill-clear{width:20px;height:20px;color:var(--brand);border-radius:50%;place-items:center;font-size:16px;line-height:1;display:grid;position:absolute;top:50%;right:6px;transform:translateY(-50%)}.pill-clear:hover{background:var(--surface);text-decoration:none}.pop{z-index:30;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);flex-direction:column;gap:8px;min-width:230px;max-width:min(340px,90vw);padding:12px;display:flex;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 14px 34px -14px #17255459}.pop label.opt{cursor:pointer;align-items:center;gap:9px;padding:4px 2px;font-size:14px;display:flex}.pop label.opt input{width:auto;min-height:0}.pop .row{gap:8px;display:flex}.pop .presets{flex-wrap:wrap;gap:6px;display:flex}.summary-line{color:var(--muted);flex-wrap:wrap;gap:6px 18px;margin:0 0 10px;font-size:13.5px;display:flex}.summary-line strong{color:var(--ink)}th a.sort-link{color:inherit}th a.sort-link[aria-current=true]{color:var(--brand)}.pop.wide{gap:0;width:340px;max-height:min(70vh,640px);overflow-y:auto}.pop-section{border-bottom:1px solid var(--line);flex-direction:column;gap:8px;padding:10px 2px 12px;display:flex}.pop-section:first-child{padding-top:2px}.pop-section h3{font-size:13.5px}.pop.wide>.btn{margin-top:12px}.pop .row{align-items:center}.pop .row input{min-height:34px}.pop .arrow{color:var(--muted)}.seg{background:var(--paper);border-radius:var(--radius);flex-wrap:wrap;align-self:flex-start;gap:2px;padding:3px;display:inline-flex}.seg label{cursor:pointer}.seg input{opacity:0;width:1px;height:1px;min-height:0;position:absolute}.seg span{border-radius:4px;padding:5px 10px;font-size:13px;display:block}.seg input:checked+span{background:var(--surface);font-weight:600;box-shadow:0 1px 2px #17255426}.seg input:focus-visible+span{outline:2px solid var(--focus)}@media (max-width:700px){.pop,.pop.wide{top:auto;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));width:auto;max-width:none;position:fixed}}table.list.invoices .totals-row td{background:var(--paper);color:var(--muted);padding-top:7px;padding-bottom:7px;font-size:12.5px;font-weight:600}table.list.invoices .client-name{font-weight:600}table.list.invoices .subj{text-overflow:ellipsis;white-space:nowrap;max-width:340px;font-size:13px;overflow:hidden}table.list.invoices .rec{color:var(--brand);font-weight:600}table.list.invoices a.draft-ref{color:var(--muted);font-weight:500}@media (max-width:700px){table.list.invoices .totals-row{display:none}}:root{--y1:#2a78d6;--y2:#eb6834;--y3:#1baf7a;--y4:#eda100;--y5:#e87ba4}@media (prefers-color-scheme:dark){:root{--y1:#3987e5;--y2:#d95926;--y3:#199e70;--y4:#c98500;--y5:#d55181}}.year-dot{vertical-align:-1px;border-radius:2px;width:10px;height:10px;margin-right:6px;display:inline-block}.years-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));display:grid}.years-grid>div{border-right:1px solid var(--line);padding:18px 20px}.years-grid>div:last-child{border-right:0}.years-grid .big{font-family:var(--serif);margin:4px 0 6px;font-size:30px;font-weight:600;line-height:1.1}.years-grid .meta{color:var(--muted);font-size:13px}@media (max-width:760px){.years-grid>div{border-right:0;border-bottom:1px solid var(--line)}}table.compare td,table.compare th{white-space:nowrap}table.compare .share{color:var(--muted);margin-left:6px;font-size:12px}.hint{color:var(--muted);font-size:12.5px}table.list th.num{text-align:right}.purchase{grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr)}.purchase .preview{background:#e9ebef;min-height:70vh;max-height:82vh;position:relative;overflow:hidden auto}.purchase .preview img{background:#fff;width:100%;display:block}.purchase .preview img+img{margin-top:8px}.purchase .preview .open-file{float:right;z-index:1;margin:10px 10px -46px 0;position:sticky;top:10px}@media (max-width:980px){.purchase{grid-template-columns:1fr}.purchase .preview{min-height:0;max-height:70vh}}input.conf-probable,input.conf-doute{border-color:var(--wait);background:var(--wait-soft)}input.conf-doute{border-width:2px}fieldset:disabled input,fieldset:disabled select{background:var(--paper);color:var(--ink)}@media (min-width:861px){.mobile-links{display:none}}.amounts{gap:10px;display:grid}.amount-row{grid-template-columns:minmax(84px,.8fr) repeat(3,minmax(0,1fr)) auto;align-items:end;gap:10px;display:grid}.amount-row .remove{width:30px;color:var(--muted);align-self:end;padding:0;font-size:20px}.amounts .add-rate{justify-self:start}.amount-totals{color:var(--muted);margin:0;font-size:14px}.amount-totals strong{color:var(--ink);font-weight:600}@media (max-width:640px){.amount-row{grid-template-columns:1fr 1fr 1fr}.amount-row>:first-child{grid-column:1/-1}}.company-switch{background:var(--paper);border-left:4px solid var(--co,var(--brand));border-radius:8px;margin:-10px 4px 18px;padding:8px 10px}.company-switch label{color:var(--muted);gap:2px;font-size:12px;display:grid}.company-switch select{font:inherit;color:var(--ink);cursor:pointer;background:0 0;border:0;padding:2px 0;font-size:15px;font-weight:600}.company-switch select:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.company-switch.compact{margin:0;padding:4px 8px}.company-switch.compact select{max-width:130px;font-size:14px}.sheet-company{max-width:260px;font-size:24px;font-weight:700;line-height:1.15}.company-list{gap:8px;display:grid}.company-list a{border:1px solid var(--line);border-left:4px solid var(--co,var(--brand));color:var(--ink);border-radius:8px;align-items:center;gap:12px;padding:10px 12px;display:flex}.company-list a:hover{background:var(--paper);text-decoration:none}.company-list .meta{color:var(--muted);font-size:13px}.company-list .tag{color:var(--muted);margin-left:auto;font-size:12px}.logo-name{font-size:22px;font-weight:700;line-height:1.1;display:block}.sidebar .logo img{object-fit:contain;object-position:left center;max-height:64px}.mobile-top .logo-name{font-size:18px}.shell[data-role=read] [data-need=write],.shell[data-role=read] [data-need=delete],.shell[data-role=read] [data-need=admin],.shell[data-role=write] [data-need=delete],.shell[data-role=write] [data-need=admin],.shell[data-role=delete] [data-need=admin],.shell[data-role=none] [data-need]{display:none!important}.sidebar .who a{color:inherit}.role-grid{border-collapse:collapse;width:100%}.role-grid th,.role-grid td{border-bottom:1px solid var(--line);text-align:left;padding:8px 10px;font-size:14px}.role-grid select{min-width:130px}.client-picker{position:relative}.client-picker>input[role=combobox]{width:100%}.client-options{z-index:20;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;max-height:320px;margin:0;padding:4px;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 8px 24px #1018281f}.client-options li{cursor:pointer;color:var(--ink);border-radius:6px;justify-content:space-between;gap:12px;padding:8px 10px;font-size:14px;display:flex}.client-options li .muted{font-size:12px}.client-options li.active{background:var(--paper)}.client-options li.create{color:var(--brand);border-top:1px solid var(--line);margin-top:4px;font-weight:600}.client-create{border:1px solid var(--line-strong);background:var(--paper);border-radius:8px;gap:10px;margin-top:10px;padding:12px;display:grid}.client-picker,.client-create{color:var(--ink);font-size:14px;font-weight:400}.client-create label.field{color:var(--muted)}.portal{background:var(--paper);min-height:100dvh}.portal-auth{flex-direction:column;gap:18px;max-width:880px;margin:0 auto;padding:40px 16px 60px;display:flex}.portal-auth h1{margin:0;font-size:26px}.portal-auth>.muted{margin:-8px 0 0}.portal-brand img{max-width:240px;max-height:64px;display:block}.portal-brand .logo-name{font-size:26px}.portal-cols{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:start;gap:18px;display:grid}.portal-form{gap:12px}.portal-main{flex-direction:column;gap:18px;max-width:1100px;margin:0 auto;padding:28px 16px 60px;display:flex}.portal-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.portal-who{text-align:right;flex-direction:column;align-items:flex-end;gap:4px;display:flex}.portal-summary{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;display:grid}.portal-summary>div{background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-direction:column;gap:4px;padding:14px 16px;display:flex}.portal-summary strong{font-size:22px}.portal-summary .late-amount{color:var(--signal)}@media (max-width:640px){.portal-who{text-align:left;align-items:flex-start}}.portal-sign{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);align-items:start;gap:18px;display:grid}.portal-sign .preview{background:#e9ebef;max-height:80vh;padding:0;position:relative;overflow-y:auto}.portal-sign .preview img{background:#fff;width:100%;display:block}.portal-sign .preview img+img{margin-top:8px}.portal-sign .preview .open-file{float:right;z-index:1;margin:10px 10px -46px 0;position:sticky;top:10px}.portal-form .check{color:var(--ink);align-items:flex-start;gap:10px;font-size:14px;display:flex}.portal-form .check input{flex:none;width:18px;height:18px;margin-top:3px}@media (max-width:900px){.portal-sign{grid-template-columns:1fr}.portal-sign .preview{max-height:60vh}}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}table.list.invoices th.quick-head,table.list.invoices td.quick-cell{width:84px;padding-left:4px;padding-right:4px}.pastilles{align-items:center;gap:4px;display:flex;position:relative}.pastilles form{display:contents}.pastille{width:34px;height:34px;color:var(--muted);cursor:default;background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:inline-grid}button.pastille,a.pastille{cursor:pointer}button.pastille:hover,a.pastille:hover{background:var(--brand-soft)}button.pastille:focus-visible,a.pastille:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.pastille svg{width:24px;height:24px}.pastille.validate svg circle{fill:none;stroke:var(--line-strong);stroke-width:1.8px}.pastille.validate svg path{fill:none;stroke:var(--line-strong);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.pastille.validate:hover svg circle,.pastille.validate:hover svg path{stroke:var(--ok)}.pastille.done svg circle{fill:var(--ok);stroke:var(--ok);stroke-width:1.8px}.pastille.done svg path{fill:none;stroke:#fff;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round}.pastille.busy{opacity:.45;animation:1s ease-in-out infinite pastille-pulse}@keyframes pastille-pulse{50%{opacity:.9}}@media (prefers-reduced-motion:reduce){.pastille.busy{animation:none}}.pastille.off{opacity:.4}.env{overflow:visible;width:26px!important;height:22px!important}.env .env-body{stroke-width:1.6px}.env .env-flap{fill:none;stroke-width:1.6px;stroke-linejoin:round;stroke-linecap:round}.env-empty .env-body{fill:#0000;stroke:var(--muted)}.env-empty .env-flap{stroke:var(--muted)}button.pastille:hover .env-empty .env-body,button.pastille:hover .env-empty .env-flap{stroke:var(--brand)}.env-green .env-body{fill:var(--ok);stroke:var(--ok)}.env-orange .env-body{fill:#e07b00;stroke:#e07b00}.env-red .env-body{fill:var(--signal);stroke:var(--signal)}.env-grey .env-body{fill:var(--line);stroke:var(--line-strong)}.env-green .env-flap,.env-orange .env-flap,.env-red .env-flap{stroke:#fff}.env-grey .env-flap{stroke:var(--muted)}.env .env-check{stroke-width:2.2px}.env-count circle{fill:var(--surface);stroke-width:1.4px}.env-green .env-count circle{stroke:var(--ok)}.env-orange .env-count circle{stroke:#e07b00}.env-red .env-count circle{stroke:var(--signal)}.env-count text{font:700 8px var(--sans);fill:var(--ink,#1d2433)}.env-green .env-count text{fill:var(--ok)}.env-orange .env-count text{fill:#b35f00}.env-red .env-count text{fill:var(--signal)}.pastille-msg{z-index:50;border-radius:var(--radius);background:var(--signal-soft);width:max-content;max-width:min(420px,100vw - 32px);color:var(--signal);border:1px solid var(--signal);padding:10px 14px;font-size:14px;position:fixed;bottom:88px;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #0000002e}@media (max-width:700px){table.list.cards td.quick-cell{grid-area:3/2;width:auto;padding:4px 0 0}table.list.cards td.quick-cell .pastilles{justify-content:flex-end}}
