@font-face{font-family:sans;src:url(../media/hedvig_letters_sans_latin_400_normal-s.p.0rwpw86-y_wen.woff2)format("woff2");font-display:swap}@font-face{font-family:sans Fallback;src:local(Arial);ascent-override:99.59%;descent-override:31.25%;line-gap-override:0.0%;size-adjust:102.42%}.sans_63ed988d-module__tnSXTW__className{font-family:sans,sans Fallback}.sans_63ed988d-module__tnSXTW__variable{--font-sans:"sans", "sans Fallback"}
@font-face{font-family:"serif";src:url(../media/hedvig_letters_serif_latin_opsz_normal-s.p.0y696uvag7af4.woff2)format("woff2");font-display:swap}@font-face{font-family:serif Fallback;src:local(Arial);ascent-override:97.55%;descent-override:30.6%;line-gap-override:0.0%;size-adjust:104.56%}.serif_dbdcad01-module__80drCq__className{font-family:"serif",serif Fallback}.serif_dbdcad01-module__80drCq__variable{--font-serif:"serif", "serif Fallback"}
:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fff;--workspace-bg:#f3f4f6;--surface:#fbfcfd;--surface-hover:#edf0f4;--text:#172637;--muted:#56657a;--line:#dce2e9;--accent:#172637;--accent-hover:#344052;--on-accent:#fff;--focus:#2955bf;--focus-soft:#eaf0ff;--danger:#a33137;--shadow:0 18px 80px #14182126}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#000;--workspace-bg:#000;--surface:#0b0b0b;--surface-hover:#1a1a1a;--text:#f5f5f5;--muted:#a3a3a3;--line:#292929;--accent:#f5f5f5;--accent-hover:#ddd;--on-accent:#111;--focus:#e5e5e5;--focus-soft:#1a1a1a;--danger:#ff999f;--shadow:0 18px 80px #0008}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font:14px/1.5 var(--font-sans), "Hedvig Letters Sans", sans-serif;-webkit-font-smoothing:antialiased;margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,a,input,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:3px}h1,h2,h3,p{margin:0}svg{flex-shrink:0}.button{background:var(--bg);min-height:36px;color:var(--text);border:1px solid var(--line);white-space:nowrap;border-radius:0;justify-content:center;align-items:center;gap:7px;padding:7px 12px;font-weight:400;text-decoration:none;display:inline-flex}.button:hover:not(:disabled){background:var(--surface-hover)}.button-primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.button-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.button-ghost{background:0 0;border-color:#0000}.button-danger{color:var(--danger)}.button-danger:hover:not(:disabled){background:var(--surface-hover)}.brand-mark{place-content:center;width:32px;height:32px;display:grid}.brand-mark img{width:100%;height:100%;display:block}.workspace-shell{min-height:100dvh;display:flex}.sidebar{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;flex-shrink:0;width:72px;height:100dvh;padding:22px 12px 16px;display:flex;position:sticky;top:0}.workspace-identity{justify-content:center;align-items:center;gap:11px;padding:0 0 34px;display:flex}.workspace-identity>div:last-child,.sidebar-heading,.nav-item>span,.nav-item>small,.account-row>div:not(.account-avatar),.site-link{display:none}.workspace-identity strong{font-size:15px;display:block}.workspace-identity span{color:var(--muted);margin-top:1px;font-size:11px;display:block}.sidebar-heading{color:var(--muted);letter-spacing:.09em;margin-bottom:10px;padding:0 12px;font-size:10px;font-weight:600}.sidebar nav{gap:4px;display:grid}.nav-item{width:100%;min-height:40px;color:var(--muted);justify-content:center;padding:8px 10px;font-size:13px}.nav-item small{margin-left:auto;font-size:11px}.nav-active{background:var(--focus-soft);color:var(--focus);box-shadow:inset 2px 0 var(--focus)}.sidebar-bottom{margin-top:auto}.site-link{color:var(--muted);justify-content:space-between;align-items:center;padding:12px;font-size:12px;text-decoration:none;display:flex}.site-link:hover{color:var(--text)}.account-row{border-top:1px solid var(--line);flex-direction:column;align-items:center;gap:8px;padding:17px 0 0;display:flex}.account-avatar,.client-avatar{background:var(--surface-hover);border:1px solid var(--line);border-radius:5px;flex-shrink:0;place-items:center;width:30px;height:30px;font-size:10px;font-weight:600;display:grid}.account-row strong{font-size:11px;display:block}.account-row span{color:var(--muted);font-size:10px;display:block}.signout{padding:5px}.workspace-main{background:var(--workspace-bg);flex:1;min-width:0}.workspace-topbar{background:var(--bg);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;min-height:61px;padding:0 32px;display:flex}.breadcrumb{color:var(--muted);gap:12px;font-size:12px;display:flex}.breadcrumb strong{color:var(--text);font-weight:500}.topbar-actions{align-items:center;gap:12px;display:flex}.private-label{color:var(--muted);align-items:center;gap:5px;font-size:11px;display:flex}.page-content{max-width:1600px;padding:38px 36px}.page-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px;display:flex}.page-heading h1{letter-spacing:-.025em;font-size:25px;font-weight:400;line-height:1.2}.page-heading p{color:var(--muted);margin-top:7px;font-size:13px}.search-row{color:var(--muted);align-items:center;gap:9px;margin-bottom:23px;display:flex}.search-row .field{gap:0;width:100%;max-width:420px}.search-row .field label{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.search-row .input{background:0 0;border:0;min-height:32px;padding:5px 0;font-size:12px}.search-row .input:focus{box-shadow:none}.search-context{white-space:nowrap;margin-left:auto;font-size:11px}.metrics{background:var(--bg);border:1px solid var(--line);grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-bottom:32px;display:grid}.metrics>div{border-left:1px solid var(--line);flex-direction:column;gap:7px;padding:24px;display:flex}.metrics>div:first-child{border-left:0;padding:24px}.metrics span{color:var(--muted);font-size:11px}.metrics strong{font:400 clamp(20px, 2.2vw, 27px)/1.2 var(--font-serif), serif;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metrics small{color:var(--muted);font-size:10px}.metrics .overdue-value{color:var(--danger)}.filter-row{flex-wrap:wrap;align-items:center;gap:3px;margin-bottom:13px;display:flex}.filter-row .button{min-height:30px;color:var(--muted);padding:5px 10px;font-size:12px}.filter-row .filter-active{background:var(--bg);border-color:var(--line);color:var(--text)}.record-count{color:var(--muted);margin-left:auto;font-size:11px}.table-scroll{width:100%;overflow-x:auto}.records-table{background:var(--bg);border-collapse:collapse;white-space:nowrap;width:100%;font-size:12px}.records-table th{text-align:left;color:var(--muted);background:var(--surface);border-block:1px solid var(--line);padding:11px 16px;font-size:10px;font-weight:500}.records-table th:first-child{border-left:1px solid var(--line);border-radius:4px 0 0 4px}.records-table th:last-child{border-right:1px solid var(--line)}.records-table td{border-bottom:1px solid var(--line);padding:13px 16px}.records-table td:first-child{padding-left:4px}.records-table tbody tr:hover{background:var(--surface)}.numeric{font-variant-numeric:tabular-nums;text-align:right!important}.amount-cell{font-weight:600}.record-link{padding:5px 10px;font-size:12px;font-weight:500}.record-link svg{color:var(--muted)}.client-cell{text-overflow:ellipsis;max-width:240px;font-weight:500;display:block;overflow:hidden}.cell-secondary{color:var(--muted);font-size:10px;display:block}.muted{color:var(--muted)}.status{white-space:nowrap;align-items:center;gap:6px;font-size:11px;font-weight:500;display:inline-flex}.status>span{background:currentColor;border-radius:50%;width:6px;height:6px}.status-draft{color:var(--muted)}.status-issued{color:#4264bb}.status-paid{color:#267757}.status-overdue{color:var(--danger)}.status-void{color:var(--muted)}:root[data-theme=dark] .status-issued{color:#99b3ff}:root[data-theme=dark] .status-paid{color:#78c9a8}.row-actions{justify-content:flex-end;gap:2px;display:flex}.row-actions .button{padding:5px 8px}.empty-state{text-align:center;border-bottom:1px solid var(--line);flex-direction:column;align-items:center;padding:84px 20px;display:flex}.empty-icon{background:var(--surface);border:1px solid var(--line);width:52px;height:52px;color:var(--muted);border-radius:10px;place-items:center;margin-bottom:18px;display:grid}.empty-state h2{letter-spacing:-.02em;font-size:17px;font-weight:550}.empty-state p{max-width:320px;color:var(--muted);margin:8px 0 22px;font-size:12px;line-height:1.7}.field{flex-direction:column;gap:7px;min-width:0;display:flex}.field label{font-size:12px;font-weight:550}.input{border:1px solid var(--line);background:var(--bg);width:100%;min-width:0;min-height:38px;color:var(--text);border-radius:4px;outline:none;padding:8px 10px;line-height:1.4}.input:focus{border-color:var(--focus);box-shadow:0 0 0 2px color-mix(in srgb, var(--focus) 12%, transparent)}.input::placeholder{color:var(--muted);opacity:1}textarea.input{resize:vertical;min-height:80px}.field-hint{color:var(--muted);margin-top:1px;font-size:11px;font-weight:400;line-height:1.6}.select-trigger{text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:8px;display:flex}.select-positioner{z-index:80;outline:none}.select-popup{background:var(--bg);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow);min-width:var(--anchor-width);border-radius:6px;max-width:min(500px,100vw - 30px);max-height:300px;padding:5px;overflow-y:auto}.select-item{cursor:pointer;border-radius:3px;justify-content:space-between;gap:12px;padding:9px;display:flex}.select-item[data-highlighted]{background:var(--surface-hover);outline:none}.dialog-backdrop{-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);z-index:50;background:#0006;position:fixed;inset:0}.dialog-popup{z-index:60;background:var(--bg);border:1px solid var(--line);width:min(580px,100vw - 32px);max-height:calc(100dvh - 40px);box-shadow:var(--shadow);border-radius:9px;outline:none;flex-direction:column;display:flex;position:fixed;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.dialog-wide{width:min(1000px,100vw - 32px)}.dialog-heading{border-bottom:1px solid var(--line);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:12px;padding:22px 26px;display:flex}.dialog-heading h2{letter-spacing:-.02em;font-size:18px;font-weight:550}.dialog-heading p{color:var(--muted);max-width:650px;margin-top:5px;font-size:12px}.icon-button{color:var(--muted);background:0 0;border:0;border-radius:4px;place-items:center;min-width:32px;min-height:32px;display:grid}.icon-button:hover{background:var(--surface-hover)}.dialog-popup>form{flex-direction:column;min-height:0;display:flex}.dialog-body{min-height:0;padding:24px 26px;overflow-y:auto}.login-form{gap:18px;display:grid}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.full-width{grid-column:1/-1}.dialog-footer{border-top:1px solid var(--line);flex-shrink:0;justify-content:flex-end;align-items:center;gap:8px;padding:16px 26px;display:flex}.footer-note{color:var(--muted);margin-right:auto;font-size:11px}.invoice-sheet{--bg:#fff;--surface:#fcfcfc;--surface-hover:#f2f2f2;--text:#121212;--muted:#616161;--line:#e0e0e0;--accent:#121212;--accent-hover:#333;--on-accent:#fafafa;border-block:0;border-right:0;border-radius:0;width:min(650px,100vw);height:100dvh;max-height:100dvh;inset:0 0 0 auto;transform:none;box-shadow:-8px 0 40px #00000008}:root[data-theme=dark] .invoice-sheet{--bg:#000;--surface:#080808;--surface-hover:#1d1d1d;--text:#fafafa;--muted:#a3a3a3;--line:#292929;--accent:#fafafa;--accent-hover:#ddd;--on-accent:#121212}.invoice-sheet>.dialog-heading{z-index:2;border:0;padding:5px;position:absolute;top:0;right:0}.invoice-sheet>.dialog-heading>div{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.invoice-sheet>form{flex:1;overflow:hidden}.invoice-sheet .dialog-footer{background:var(--bg);min-height:72px;padding:16px 24px}.invoice-sheet .footer-note{margin:0 auto 0 0}.invoice-editor-scroll,.invoice-preview-scroll{background:var(--bg);flex:1;min-height:0;padding:24px;overflow:auto}.invoice-editor-fields{border:0;min-width:0;margin:0;padding:0;display:contents}.invoice-editor-scroll>.error-message{padding-top:16px}.invoice-paper{background:var(--surface);width:100%;max-width:720px;min-height:max(650px,100dvh - 120px);color:var(--text);box-shadow:none;border:0;flex-direction:column;margin-inline:auto;padding:32px;font-size:11px;line-height:18px;display:flex}.paper-header{justify-content:space-between;gap:24px;display:flex}.paper-invoice-title{font:400 21px/24px var(--font-serif), serif;letter-spacing:0;margin-bottom:8px}.paper-meta-list{color:var(--muted);margin:0;font-size:11px}.paper-meta-list>div{gap:4px;display:flex}.paper-meta-list dd{margin:0}.paper-parties{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:32px 0;display:grid}.invoice-paper h3{font:400 11px/18px var(--font-sans), sans-serif;color:var(--muted);margin-bottom:12px}.paper-party-details{overflow-wrap:anywhere}.paper-address{white-space:pre-wrap;overflow-wrap:anywhere}.paper-table-scroll{overflow:auto}.paper-table{border-collapse:collapse;width:100%;font-size:11px;line-height:18px}.paper-table th{color:var(--muted);text-align:left;white-space:nowrap;padding:0 8px 12px;font-weight:400}.paper-table td{text-align:left;vertical-align:top;padding:0 8px 12px}.paper-table :is(th,td):first-child{white-space:pre-wrap;overflow-wrap:anywhere;width:49%;padding-left:0}.paper-table :is(th,td):last-child{text-align:right;padding-right:0}.paper-table td:not(:first-child){white-space:nowrap}.totals-block{margin:0;font-size:11px}.totals-block>div{justify-content:space-between;align-items:center;gap:15px;padding:4px 0;display:flex}.totals-block dt{color:var(--muted)}.totals-block dd{font-variant-numeric:tabular-nums;margin:0}.paper-totals{width:min(320px,100%);margin:48px 0 32px auto}.totals-block .total-row{border-top:1px solid var(--line);margin-top:8px;padding:16px 0}.total-row dd{color:var(--text);font-size:21px;line-height:25px}.paper-currency{font-size:9px}.paper-bottom{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:auto;padding-top:48px;display:grid}.paper-bottom h3{margin-bottom:10px}.paper-paid{margin-top:12px}.invoice-actions{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:8px;padding:28px 24px 12px;display:flex}.invoice-actions .button{font-size:11px}.action-spacer{flex:1}.invoice-edit-paper .input{background:0 0;border:0;border-bottom:1px solid #0000;border-radius:0;min-height:24px;padding:0;font-size:11px;line-height:18px}.invoice-edit-paper .input:focus{border-bottom-color:var(--line);box-shadow:none}.invoice-edit-paper .field-hint{display:none}.invoice-edit-meta{width:100%}.invoice-edit-meta .field{flex-direction:row;align-items:center;gap:4px}.invoice-edit-meta .field label{width:72px;color:var(--muted);flex-shrink:0;font-size:11px;font-weight:400}.invoice-edit-meta .input{width:125px;color:var(--muted)}.invoice-date-field{position:relative}.invoice-date-field .input{color:#0000}.invoice-date-field .input::-webkit-datetime-edit{opacity:0}.invoice-date-display{color:var(--muted);pointer-events:none;font-size:11px;line-height:18px;position:absolute;top:3px;left:76px}.invoice-number-line{color:var(--muted)}.invoice-edit-client>.field label,.line-editor .field label,.invoice-edit-bottom>section:first-child>.field label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.invoice-edit-client .select-trigger{white-space:normal;text-align:left;justify-content:flex-start;gap:5px}.line-editor{--line-columns:minmax(0, 1.5fr) 15% 15% 22%}.line-editor-tax{--line-columns:minmax(0, 1.5fr) 12% 16% 10% 20%}.line-editor-heading,.line-editor-row{grid-template-columns:var(--line-columns);align-items:start;gap:12px;display:grid}.line-editor-heading{color:var(--muted);margin-bottom:14px}.line-editor-heading>:last-child{text-align:right}.line-editor-row{margin-bottom:12px;position:relative}.line-editor-row textarea.input{resize:vertical;height:36px;min-height:24px}.line-amount{text-align:right;overflow-wrap:anywhere;padding-top:2px}.line-delete{opacity:0;min-width:24px;min-height:28px;padding:4px;position:absolute;top:-5px;right:-30px}.line-editor-row:hover .line-delete,.line-delete:focus-visible{opacity:1}.invoice-edit-paper .add-line{color:var(--muted);align-self:flex-start;min-height:28px;padding:0;font-size:11px}.invoice-edit-bottom textarea.input{resize:vertical;min-height:72px}.invoice-edit-bottom>section:last-child .field label{color:var(--muted);font-size:11px;font-weight:400}.settings-page{max-width:1000px}.settings-section{border-top:1px solid var(--line);grid-template-columns:230px minmax(0,1fr);gap:35px;padding:30px 0;display:grid}.settings-section h2{font-size:14px;font-weight:600}.settings-section header p{color:var(--muted);margin-top:7px;font-size:12px;line-height:1.7}.settings-save{justify-content:flex-end;align-items:center;gap:20px;margin:5px 0 30px;display:flex}.backup-actions{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}.backup-section>.field-hint{grid-column:2;margin-top:-25px}.error-message{color:var(--danger);font-size:12px;line-height:1.6}.workspace-error{border:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;padding:10px 14px;display:flex}.toast{z-index:100;background:var(--text);color:var(--bg);box-shadow:var(--shadow);border-radius:6px;align-items:center;gap:8px;max-width:calc(100vw - 30px);padding:12px 18px;font-size:12px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.auth-page{background:var(--workspace-bg);place-items:center;min-height:100dvh;padding:25px;display:grid}.auth-card{background:var(--bg);border:1px solid var(--line);border-radius:10px;width:min(410px,100%);padding:38px}.auth-card .brand-mark{margin-bottom:30px}.auth-eyebrow{color:var(--muted);letter-spacing:.13em;font-size:9px;font-weight:600}.auth-card h1{letter-spacing:-.04em;margin-top:12px;font-size:26px;font-weight:550;line-height:1.2}.auth-card>p{color:var(--muted);margin:12px 0 28px;font-size:12px;line-height:1.7}.auth-card form{gap:18px;display:grid}.auth-card form>.button{width:100%;min-height:40px;margin-top:3px}.auth-footnote{color:var(--muted);border-top:1px solid var(--line);align-items:center;gap:7px;margin-top:30px;padding-top:20px;font-size:10px;display:flex}.visually-hidden{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{background:var(--bg);z-index:200;border:1px solid var(--accent);border-radius:4px;padding:10px 20px;position:fixed;top:8px;left:8px;transform:translateY(-200%)}.skip-link:focus{transform:none}.empty-hint{color:var(--muted);font-size:13px}.sidebar .site-link{display:none}@media (max-width:1100px){.page-content,.workspace-topbar{padding-inline:24px}.metrics>div,.metrics>div:first-child{padding:18px}.settings-section{grid-template-columns:180px minmax(0,1fr);gap:24px}.records-table th,.records-table td{padding-inline:12px}}@media (max-width:800px){.workspace-shell{flex-direction:column}.sidebar{border-right:0;border-bottom:1px solid var(--line);width:100%;height:auto;padding:14px 20px 10px;position:static}.workspace-identity{justify-content:flex-start;padding:0 0 13px}.workspace-identity>div:last-child{display:block}.workspace-identity span{display:none}.workspace-identity .brand-mark{width:26px;height:26px;font-size:23px}.sidebar-heading,.sidebar-bottom{display:none}.sidebar nav{gap:8px;display:flex}.nav-item{gap:8px;width:auto;min-height:36px;padding-inline:12px}.nav-item>span{display:inline}.workspace-topbar{min-height:51px}.page-content{padding-top:28px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics>div:nth-child(3){border-left:0}.metrics>div:nth-child(n+3){border-top:1px solid var(--line)}.settings-section{grid-template-columns:1fr;gap:20px}.backup-section>.field-hint{grid-column:1;margin-top:0}}@media (max-width:560px){.sidebar{padding-inline:16px}.sidebar nav{gap:2px}.nav-item{padding-inline:10px;font-size:12px}.workspace-topbar{padding-inline:18px}.page-content{padding:24px 18px}.page-heading{align-items:flex-start;gap:10px;margin-bottom:24px}.page-heading h1{font-size:25px}.page-heading p{max-width:180px;font-size:11px}.page-heading>.button{padding-inline:10px;font-size:12px}.search-context,.private-label{display:none}.search-row{margin-bottom:18px}.metrics>div,.metrics>div:first-child{padding:16px}.metrics strong{font-size:24px}.record-count{display:none}.filter-row .button{padding-inline:8px;font-size:11px}.empty-state{padding:58px 10px}.dialog-popup{border-radius:7px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.dialog-popup.invoice-sheet{border-radius:0;width:100vw;max-height:100dvh}.dialog-heading{padding:18px}.dialog-heading h2{font-size:17px}.dialog-body{padding:20px 18px}.dialog-footer{flex-wrap:wrap;padding:14px 18px}.footer-note{flex-basis:100%;margin-bottom:5px;font-size:10px}.invoice-sheet .footer-note{flex-basis:auto;margin:0 auto 0 0}.invoice-sheet .dialog-footer{gap:6px;padding:12px 16px}.invoice-sheet .dialog-footer .button{padding-inline:9px;font-size:12px}.form-grid{gap:16px}.invoice-preview-scroll,.invoice-editor-scroll{padding:16px}.invoice-paper{min-width:0;padding:20px}.paper-parties,.paper-bottom{gap:16px}.paper-table{min-width:410px}.line-editor-heading{display:none}.line-editor-row{border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:16px;padding-bottom:16px}.line-editor-tax .line-editor-row{grid-template-columns:1fr 1fr 1fr 1fr}.line-editor-row>.field:first-child{grid-column:1/-1;margin-right:20px}.line-editor .field label{clip-path:none;width:auto;height:auto;color:var(--muted);font-size:10px;font-weight:400;position:static;overflow:visible}.line-editor-row>.field:first-child label{display:none}.invoice-edit-paper .input{min-height:28px;font-size:14px}.invoice-edit-meta .input{font-size:12px}.invoice-date-display{top:5px}.invoice-edit-client .select-trigger{font-size:12px}.line-delete{opacity:1;right:-12px}.line-amount{padding-top:22px}.invoice-actions{gap:7px;padding:28px 18px 12px}.invoice-actions .button{padding:7px 9px;font-size:11px}.invoice-actions>.status{flex-basis:100%}.action-spacer{display:none}.settings-fields{grid-template-columns:1fr}.auth-card{padding:28px}.toast{bottom:14px}}@media (pointer:coarse){.button,.nav-item,.icon-button{min-height:44px}.icon-button{min-width:44px}.input{min-height:44px;font-size:16px}.invoice-edit-paper .input{min-height:36px;font-size:16px}.invoice-edit-meta .field{flex-wrap:wrap}.invoice-edit-meta .input{width:160px}.invoice-date-display{font-size:16px;top:9px}.line-editor-row textarea.input{height:48px}.line-delete{opacity:1}}@media (prefers-reduced-motion:no-preference){.button{transition:background-color .13s,border-color .13s}.dialog-backdrop{animation:.15s ease-out fade-in}.dialog-popup{animation:.15s ease-out popup-in}.invoice-sheet{animation:.18s ease-out sheet-in}}@keyframes sheet-in{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes popup-in{0%{opacity:0;transform:translate(-50%,calc(8px - 50%))}to{opacity:1;transform:translate(-50%,-50%)}}.mobile-signout{display:none}@media (max-width:800px){.mobile-signout{display:inline-flex}}.detail-error{background:var(--surface);border-bottom:1px solid var(--line);padding:12px 26px}.records-mobile{margin:0;padding:0;list-style:none;display:none}.client-invoice-action{margin-right:6px;font-size:11px}@media (max-width:800px){.records-desktop{display:none}.records-mobile{border:1px solid var(--line);background:var(--bg);display:block}.records-mobile>li+li{border-top:1px solid var(--line)}.invoice-mobile-row{text-align:left;white-space:normal;flex-direction:column;align-items:stretch;gap:10px;width:100%;padding:18px;display:flex}.invoice-mobile-row:focus-visible{outline-offset:-3px}.mobile-record-heading,.mobile-record-meta,.mobile-record-foot{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.mobile-record-client{overflow-wrap:anywhere;min-width:0;font-size:14px;font-weight:500}.mobile-record-amount{font-variant-numeric:tabular-nums;text-align:right;flex-shrink:0;font-size:14px;font-weight:500}.mobile-record-meta>:first-child{overflow-wrap:anywhere;min-width:0}.mobile-record-meta{color:var(--muted);font-size:12px}.mobile-record-foot{color:var(--muted);align-items:center;font-size:11px}.client-mobile-row{padding:18px}.client-mobile-heading{text-align:left;white-space:normal;justify-content:flex-start;gap:12px;max-width:100%;padding:0}.client-mobile-heading>span:last-child{overflow-wrap:anywhere;min-width:0}.client-mobile-heading strong{font-size:14px;font-weight:500;display:block}.client-mobile-heading>span>span{color:var(--muted);font-size:12px;display:block}.mobile-client-email{color:var(--muted);overflow-wrap:anywhere;margin-top:10px;font-size:12px}.mobile-client-summary{justify-content:space-between;gap:16px;margin:18px 0;display:flex}.mobile-client-summary>div{min-width:0}.mobile-client-summary>div:last-child{text-align:right}.mobile-client-summary dt{color:var(--muted);margin-bottom:2px;font-size:11px}.mobile-client-summary dd{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:0;font-size:13px}.client-mobile-row .row-actions{justify-content:flex-start}.client-mobile-row .client-invoice-action{margin-right:auto}}.branding-editor{gap:24px;display:grid}.branding-group{gap:18px;min-width:0;display:grid}.branding-group+.branding-group{border-top:1px solid var(--line);padding-top:24px}.branding-image-control{grid-template-columns:96px minmax(0,1fr);align-items:start;gap:16px;display:grid}.branding-swatch{color:#616161;border:1px solid var(--line);background:#fff;place-items:center;width:96px;height:80px;padding:8px;font-size:11px;display:grid}.branding-swatch img{object-fit:contain;max-width:100%;max-height:62px}.branding-selection{gap:8px;min-width:0;display:grid}.image-upload-label{color:var(--muted);font-size:11px}.image-upload{width:100%;min-width:0;color:var(--muted);font-size:11px}.image-upload::file-selector-button{background:var(--bg);color:var(--text);border:1px solid var(--line);cursor:pointer;margin-right:8px;padding:8px}.branding-placement{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.invoice-appearance-toolbar{margin:0 18px 16px 0}.invoice-appearance-panel{border-bottom:1px solid var(--line);margin-bottom:20px;padding:4px 0 24px}.paper-artwork{flex-direction:column;flex-shrink:0;align-items:flex-start;display:flex}.paper-artwork-right{text-align:right;align-items:flex-end}.paper-artwork img{object-fit:contain;background:#fff;max-width:100%;display:block}.paper-logo{margin-bottom:20px}.paper-signature{margin-top:32px}.paper-signature p{overflow-wrap:anywhere;max-width:200px;margin-top:8px;font-size:9px}@media (max-width:420px){.branding-image-control{grid-template-columns:64px minmax(0,1fr);gap:12px}.branding-swatch{width:64px;height:64px}.branding-swatch img{max-height:46px}}
