:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#152238;background:#f7f9fc;font-synthesis:none;--blue:#2563eb;--ink:#17253b;--muted:#68768d;--line:#e2e8f0;--surface:#fff;--shadow:0 16px 48px rgba(23,39,75,.035)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}button:hover:not(:disabled){filter:brightness(.975)}.skip{position:absolute;top:-100px;background:#fff;z-index:100}.skip:focus{top:0}.sitebar{height:67px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:30}.brand{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800;letter-spacing:-.04em}.brandmark{height:30px;width:30px;background:#2563eb;color:#fff;border-radius:9px;display:grid;place-items:center;font-size:18px}.branddivider{height:20px;border-left:1px solid #dae1ed;margin:0 4px}.brandtool{font-size:14px;font-weight:650;color:#526179;letter-spacing:0}.headright{display:flex;align-items:center;gap:19px}.localbadge{font-size:12px;color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:100px;padding:7px 11px;font-weight:700}.textbtn{border:0;background:0 0;color:#475569;font-size:12px;font-weight:650}.app-shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:calc(100vh - 105px)}.sidebar{padding:32px 14px 24px 20px;border-right:1px solid #e5eaf2;background:#fff;display:flex;flex-direction:column;gap:5px}.eyebrow,.side-eyebrow{font-size:10px;font-weight:800;letter-spacing:.13em;color:#74829a;margin:0 0 13px}.side-eyebrow{padding-left:13px}.navlink{width:100%;display:flex;gap:13px;align-items:center;border:0;border-radius:10px;background:0 0;padding:13px 13px;text-align:left;color:#56647b;font-size:13px;font-weight:650}.navlink span{font-size:20px;width:20px;text-align:center;font-weight:400;color:#8491a6}.navlink small{margin-left:auto;background:#eaf1fb;padding:3px 8px;border-radius:100px}.navlink.active{background:#eff5ff;color:#1d4ed8}.navlink.active span{color:#2563eb}.side-divider{border-top:1px solid #edf0f4;margin:21px 0 22px}.sidebar-bottom{margin-top:auto;padding:17px 7px 0}.side-help{background:#f3f7fd;border:1px solid #e7edf7;border-radius:12px;padding:15px}.side-help b{font-size:12px}.side-help p{font-size:11px;line-height:1.6;color:#6b798f;margin:7px 0 0}.side-version{font-size:10px;color:#a1abba;display:block;margin-top:18px;padding-left:6px}main{padding:34px min(2.5vw,38px) 65px;min-width:0;max-width:1920px;width:100%;margin:auto}.view[hidden]{display:none}.pageheading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:24px}.pageheading h1{font-size:clamp(25px,2.3vw,34px);line-height:1.15;letter-spacing:-.045em;margin:0 0 10px;font-weight:760}.lede{font-size:13px;color:#738097;line-height:1.6;margin:0}.toolbarbuttons,.topactions{display:flex;flex-wrap:wrap;gap:9px}.btn{border:1px solid #dbe3ee;background:#fff;color:#314158;padding:10px 15px;border-radius:9px;box-shadow:0 2px 4px rgba(15,23,42,.02);font-size:12px;font-weight:750;white-space:nowrap;min-height:36px}.btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}.btn.soft{background:#edf4ff;border-color:#dce9ff;color:#1d4ed8}.btn.ghost{background:#fff}.btn.small{padding:7px 10px;min-height:30px;font-size:11px}.toolbar{background:#fff;border:1px solid var(--line);padding:13px 17px;margin-bottom:15px;border-radius:13px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.toolbarleft{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.field-inline{display:flex;align-items:center;gap:8px;color:#64748b;font-size:12px;font-weight:700}.field-inline select{padding:7px 10px;border:1px solid #dbe2ed;border-radius:7px;font-size:12px;color:#334155;max-width:200px;background:#fff}.edit-state{font-size:11px;color:#b45309;background:#fffbeb;border-radius:100px;padding:6px 10px}.edit-state.saved{color:#166534;background:#f0fdf4}.workgrid{display:grid;grid-template-columns:minmax(460px,1.18fr) minmax(325px,.82fr);gap:16px;align-items:start}.form-pane,.panel,.preview-pane{background:#fff;border:1px solid #e4eaf2;border-radius:15px;box-shadow:var(--shadow);min-width:0}.pane-head,.preview-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #edf0f5}.pane-head .eyebrow,.preview-head .eyebrow{margin-bottom:6px}.pane-head h2,.panel h2,.preview-head h2{font-size:16px;letter-spacing:-.02em;margin:0}.pill{font-size:10px;background:#edf4ff;color:#2563eb;padding:7px 9px;border-radius:100px;font-weight:700}.form-body{padding:2px 22px 26px}.sectiontitle{display:flex;align-items:center;gap:10px;margin:23px 0 14px;color:#94a3b8;font-size:11px;letter-spacing:.02em;font-weight:800}.sectiontitle span{color:#2e4059;font-size:13px;letter-spacing:0}.sectiontitle.section-row{justify-content:flex-start}.section-row .btn{margin-left:auto}.formgrid{display:grid;gap:12px}.formgrid.cols2{grid-template-columns:repeat(2,minmax(0,1fr))}.formgrid.cols3{grid-template-columns:repeat(3,minmax(0,1fr))}label{display:flex;flex-direction:column;gap:6px;color:#5e6d83;font-size:11px;font-weight:720}input,select,textarea{width:100%;border:1px solid #dce3ef;border-radius:8px;background:#fff;min-height:39px;color:#192941;padding:9px 11px;font-size:12px;outline-offset:1px}input::placeholder,textarea::placeholder{color:#a4afbf}textarea{resize:vertical;line-height:1.5}input:focus,select:focus,textarea:focus{border-color:#60a5fa}fieldset.party{border:1px solid #e5ebf4;border-radius:11px;margin:0;padding:16px 13px;min-width:0;display:flex;flex-direction:column;gap:11px}fieldset.party legend{color:#334155;font-size:12px;font-weight:800;padding:0 5px}.toggleline{flex-direction:row;align-items:center;margin-top:12px;gap:8px}.toggleline input{width:17px;height:17px;min-height:17px}.hint,.subtle{font-size:11px;color:#8491a6;font-weight:400;line-height:1.55}.item-head{display:grid;grid-template-columns:minmax(120px,2fr) minmax(48px,.52fr) minmax(62px,.75fr) minmax(45px,.52fr) minmax(52px,.52fr) 28px;gap:6px;padding:10px 4px;color:#94a3b8;font-size:10px;font-weight:750}.item-line{display:grid;grid-template-columns:minmax(120px,2fr) minmax(48px,.52fr) minmax(62px,.75fr) minmax(45px,.52fr) minmax(52px,.52fr) 28px;gap:6px;padding:10px 3px;border-top:1px solid #ecf0f6}.item-line input,.item-line select{padding:8px 6px;min-width:0;font-size:11px}.desc-fields{display:flex;flex-direction:column;gap:6px;min-width:0}.item-remove{border:0;background:#fff3f3;color:#b91c1c;height:33px;border-radius:7px;padding:0;font-size:18px}.itemfooter{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:11px;color:#94a3b8;font-size:10px}.full{margin-top:12px}.validation{padding-top:8px;font-size:11px;line-height:1.7}.validation .warn{color:#a16207}.validation .error{color:#b91c1c}.preview-head{padding:20px}.preview-scroll{background:#f3f6fb;padding:20px 13px 23px;overflow:auto;min-width:0}.invoice-paper{width:100%;max-width:710px;min-width:292px;margin:auto;min-height:515px;background:#fff;border:1px solid #e8edf5;border-radius:4px;box-shadow:0 8px 30px rgba(37,56,85,.05);padding:28px 25px;color:#25334b;overflow-wrap:anywhere}.paper-top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e5eaf2;padding-bottom:20px}.paper-kicker{font-size:9px;font-weight:800;letter-spacing:.1em;color:#2563eb}.paper-title{text-align:right}.paper-title h3{font-size:20px;letter-spacing:-.04em;margin:0 0 4px;color:#142238}.paper-title p{font-size:10px;color:#2563eb;font-weight:750;margin:0}.paper-addresses{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0 23px}.paper-addresses .ptitle,.paper-meta b{display:block;font-size:9px;color:#94a3b8;margin-bottom:7px;text-transform:uppercase;letter-spacing:.07em}.paper-addresses strong{font-size:12px;display:block;color:#1d2d44;white-space:pre-wrap}.paper-addresses p{font-size:10px;color:#64748b;margin:4px 0 0;white-space:pre-wrap;line-height:1.6}.paper-meta{display:flex;gap:18px;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7;padding:14px 0;margin-bottom:16px}.paper-meta div{flex:1}.paper-meta span{font-size:10px}.paper-items{width:100%;border-collapse:collapse;font-size:10px;table-layout:fixed}.paper-items th{font-size:9px;color:#66748a;background:#f1f6ff;text-align:left;padding:10px 6px}.paper-items td{border-bottom:1px solid #eef1f5;padding:11px 6px;vertical-align:top;line-height:1.5}.paper-items td:nth-child(n+2),.paper-items th:nth-child(n+2){text-align:right}.paper-items th:first-child{width:47%}.paper-items small{display:block;color:#94a3b8;font-size:9px}.paper-items .nothing{color:#a3afc0}.paper-summary{margin:16px 0 0 auto;max-width:240px}.paper-sumline{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:10px;color:#64748b}.paper-sumline strong{color:#334155;font-size:10px}.paper-grand{background:#eef4ff;color:#1d4ed8;display:flex;justify-content:space-between;gap:8px;padding:12px;margin-top:6px;font-size:12px;font-weight:800;border-radius:5px}.paper-notes{margin-top:22px;border-top:1px solid #eef1f5;padding-top:15px;font-size:10px;color:#64748b;white-space:pre-wrap}.paper-notes strong{display:block;color:#334155;font-size:10px;margin-bottom:5px}.paper-footer{margin-top:28px;font-size:9px;color:#94a3b8;text-align:center;border-top:1px solid #eef1f5;padding-top:15px}.preview-totals{padding:14px 21px;font-size:11px;color:#475569;border-top:1px solid #ecf0f7;display:flex;justify-content:space-between}.preview-totals strong{font-size:16px;color:#1d4ed8}.preview-note{padding:0 21px 18px;color:#94a3b8;font-size:10px;line-height:1.5}.panel{padding:23px;margin-top:16px}.list-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.list-head input{max-width:275px}.record-row{display:flex;justify-content:space-between;align-items:center;gap:17px;border-top:1px solid #ecf0f6;padding:16px 0}.record-info{min-width:0}.record-info b{font-size:13px;color:#26364a}.record-info p{font-size:11px;color:#8491a6;margin:5px 0 0}.record-actions{display:flex;gap:6px;flex-wrap:wrap}.empty{text-align:center;color:#64748b;padding:62px 12px}.empty b{display:block;font-size:16px;color:#334155}.empty p{font-size:12px}.settings-panel{max-width:720px}.settings-panel .btn{margin-top:19px}.safety-panel{max-width:720px;font-size:12px;color:#64748b;line-height:1.7}.safety-panel .btn{margin:8px 8px 0 0}.notice{margin:0 0 14px;padding:13px 17px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;color:#1d4ed8;font-size:12px;line-height:1.5}.notice.warn{background:#fff7ed;color:#9a3412;border-color:#fed7aa}.notice.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}.sitefoot{background:#fff;border-top:1px solid #edf0f5;padding:15px 30px;font-size:11px;color:#9ba6b8;text-align:center}#mobileEditorBtn{display:none}dialog{border:1px solid #dbe3ee;border-radius:17px;padding:0;max-width:525px;width:calc(100vw - 30px);box-shadow:0 40px 80px rgba(15,23,42,.22)}dialog::backdrop{background:rgba(15,23,42,.5)}.dialog-body{padding:25px}.dialog-body p{font-size:12px;line-height:1.75;color:#64748b}.dialogtop{display:flex;justify-content:space-between;align-items:center}.dialogtop h2{margin:0;font-size:19px}.closebtn{border:0;background:#f1f5f9;border-radius:8px;font-size:25px;line-height:28px;width:31px}.record-badge{background:#f1f5f9;border-radius:100px;font-size:10px;padding:4px 7px;color:#64748b}.record-badge.paid{background:#dcfce7;color:#166534}@media (max-width:1320px){.app-shell{grid-template-columns:198px minmax(0,1fr)}.workgrid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}.sidebar{padding-left:9px}main{padding:25px 20px 50px}.item-head,.item-line{grid-template-columns:minmax(90px,2fr) 41px 58px 42px 45px 25px;gap:4px}.item-line input{padding:7px 4px}}@media (max-width:1060px){.workgrid{grid-template-columns:1fr}.sidebar{padding-left:8px}.preview-pane{max-width:none}.invoice-paper{max-width:720px}}@media (max-width:760px){.sitebar{padding:0 15px;height:57px}.brandtool{display:none}.headright{gap:7px}.localbadge{font-size:10px;padding:6px}.app-shell{display:block}.sidebar{border-bottom:1px solid var(--line);border-right:0;display:flex;flex-direction:row;overflow-x:auto;padding:8px;gap:3px}.side-top{display:contents}.sidebar .side-divider,.sidebar .side-eyebrow,.sidebar-bottom,.sidebar>#newInvoiceSide,.sidebar>#newPOSide,.sidebar>#newQuoteSide{display:none}.navlink{width:auto;white-space:nowrap;padding:10px}.navlink span{font-size:16px;width:auto}main{padding:21px 11px 45px}.pageheading{display:block}.pageheading .topactions{margin-top:16px}.pageheading h1{font-size:26px}.toolbar{padding:12px}.toolbarbuttons{width:100%}.toolbarbuttons .btn{flex:1}.form-body{padding:0 13px 20px}.pane-head,.preview-head{padding:17px}.formgrid.cols3{grid-template-columns:repeat(2,minmax(0,1fr))}.paper-addresses{gap:10px}.invoice-paper{padding:21px 14px}.item-head{display:none}.item-line{grid-template-columns:1fr 1fr 1fr 1fr 31px;gap:7px}.item-line>.desc-fields{grid-column:1/-1}.item-line>input:first-of-type{grid-column:1}.item-line>button{grid-column:5;grid-row:2}.itemfooter{align-items:flex-start;flex-direction:column}.record-row{align-items:flex-start;flex-direction:column}.record-actions{width:100%}}@media (max-width:420px){.formgrid.cols2,.formgrid.cols3{grid-template-columns:1fr}.party{grid-column:1}.localbadge{display:none}.paper-title h3{font-size:15px}.paper-addresses{grid-template-columns:1fr 1fr}.preview-scroll{padding:8px}.invoice-paper{min-width:0}.paper-items td,.paper-items th{font-size:8px;padding:7px 3px}.record-actions .btn{font-size:10px}}@media print{#alert,.form-pane,.notice,.pageheading,.preview-head,.preview-note,.preview-totals,.sidebar,.sitebar,.sitefoot,.toolbar{display:none!important}.app-shell,.preview-pane,.preview-scroll,.view,.workgrid,body,main{display:block!important;background:#fff!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;overflow:visible!important}.invoice-paper{box-shadow:none!important;border:0!important;border-radius:0!important;width:100%!important;max-width:none!important;padding:0!important;font-size:11pt;min-height:0!important}.paper-items tr{break-inside:avoid}.paper-notes,.paper-summary{break-inside:avoid}@page{size:A4;margin:14mm}}@media print{#businessView,#libraryView,#templatesView{display:none!important}#editorView{display:block!important}}.payments-panel{border:1px solid #e2eaf6;background:#fafcff;border-radius:12px;padding:2px 14px 15px;margin-top:19px}.payments-panel[hidden]{display:none}.payments-panel .sectiontitle{margin:13px 0 7px}.payments-panel>.hint{margin:0 0 12px}.payment-summary{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#eef4ff;padding:11px;border-radius:8px;color:#25466f;font-size:12px;font-weight:750;margin-bottom:10px}.payment-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.payment-actions{display:flex;justify-content:flex-end;margin-top:11px}.payment-list{margin-bottom:11px}.payment-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e3e9f3;padding:8px 0;font-size:11px}.payment-row>span{color:#475569;overflow-wrap:anywhere}.payment-row button{flex-shrink:0}.payment-row strong{color:#0f172a}.paper-payment{padding:13px 0 0;font-size:10px;color:#475569}.paper-payment b{font-size:11px;color:#1e40af}.record-badge.partial{background:#fff7ed;color:#9a3412}@media(max-width:760px){.payment-fields{grid-template-columns:1fr 1fr}}@media(max-width:420px){.payment-fields{grid-template-columns:1fr}}@media print{body>.pk-goal-navigation,body>.pk-studio-footer,body>.pk-studio-guide,body>.skip,body>.tool-beta-notice{display:none!important}}.library-filters,.report-toolbar,.reuse-strip{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:12px 0 18px;min-width:0}.library-filters label,.reuse-strip label{font-size:11px;font-weight:700;color:#475569;display:grid;gap:5px;min-width:130px;flex:1}.library-filters select,.reuse-strip select{width:100%;max-width:100%;min-width:0}.item-tools{grid-column:1/-1;display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:-1px}.item-tools button{font-size:10px;padding:5px 9px;min-height:28px}.billing-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:12px 0}.billing-metric{background:#f5f8fc;border:1px solid #e7edf5;border-radius:9px;padding:12px 10px;min-width:0;overflow-wrap:anywhere}.billing-metric span{display:block;font-size:10px;color:#64748b;margin-bottom:6px}.billing-metric strong{font-size:14px;color:#18375c}.report-toolbar button{white-space:normal}.pk-site-search .pk-search-field svg{width:20px;max-width:20px;height:20px;flex:none}.pk-goal-navigation,.pk-studio-footer{max-width:100%;min-width:0;overflow-wrap:anywhere}.pk-studio-footer nav{display:flex;flex-wrap:wrap;gap:6px 14px}.pk-studio-guide{min-width:0;max-width:100%;overflow-wrap:anywhere}.pk-studio-guide code,.pk-studio-guide pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:760px){.billing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.reuse-strip button{flex:1}.billing-metric strong{font-size:12px}}@media print{.billing-metrics,.library-filters,.report-toolbar,.reuse-strip{display:none!important}}.pk-site-search .pk-search-field svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.pk-goal-navigation{display:flex;align-items:center;gap:12px;padding:8px 18px;flex-wrap:wrap;background:#fff;border-bottom:1px solid #e5eaf1;font-size:11px}.pk-goal-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.pk-goal-links a{text-decoration:none;color:#47627f}.tool-beta-notice{display:flex;align-items:center;gap:8px;padding:6px 18px;max-width:100%;font-size:11px;color:#677589}.tool-beta-badge{border-radius:5px;background:#e8eef9;padding:2px 5px;font-weight:700;color:#405479}@media(max-width:420px){.pk-goal-navigation{padding:7px 11px;gap:5px}.pk-goal-links{gap:7px}.tool-beta-notice{padding:5px 11px}}@media print{.pk-goal-navigation,.tool-beta-notice{display:none!important}}