:root{--ink:#203c35;--green:#174d42;--muted:#74817b;--line:#e4e8e2;--bg:#f8f9f5;--accent:#e9efcf;--danger:#9d332b;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #6d9a78;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #7a9b87;outline-offset:1px;border-color:transparent}a{color:inherit}button{color:inherit}input,select,textarea{width:100%;min-width:0;background:#fff;border:1px solid #dce2db;border-radius:7px;padding:11px 12px;color:var(--ink);font-size:14px}input,select{min-height:43px}textarea{resize:vertical;line-height:1.5}input::placeholder,textarea::placeholder{color:#9ba49e}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:550;color:#52645b}h1,h2,h3,p{margin:0}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:39px;letter-spacing:-1.4px;line-height:1.2}h2{font-size:17px;font-weight:600}h3{font-size:14px}.muted{color:var(--muted);font-size:13px;line-height:1.6}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#758875;margin-bottom:13px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:7px;padding:11px 17px;min-height:43px;font-size:13px;font-weight:600;white-space:nowrap}.primary{background:var(--green);color:#fff}.primary:hover{background:#103d34}.outline{background:#fff;border-color:#d6ddd5}.outline:hover{background:#f0f4ed}.quiet{background:transparent}.quiet:hover{background:#edf1e8}.topbar{height:84px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1200px)/2));gap:16px;background:#fff}.brand{font-size:25px;font-weight:700;text-decoration:none;letter-spacing:-1.3px;display:inline-flex;align-items:center;gap:9px}.brand-icon{background:var(--green);color:#fff;width:34px;height:36px;border-radius:9px;font-family:Georgia,serif;text-align:center;font-size:30px;line-height:32px;font-weight:400}.brand-dot{color:#7c975d;margin-left:-10px}.privacy{display:flex;align-items:center;gap:7px;color:#7c877e;font-size:11px}.status-dot{width:6px;height:6px;background:#75996c;border-radius:50%}.badge{font-size:10px;border-radius:5px;background:#e9eee4;min-width:20px;padding:3px 5px}.mobile-only{display:none}main{max-width:1200px;margin:auto;padding:40px 24px 130px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:4px 0 35px}.page-heading .muted{margin-top:12px}.page-heading .button{align-self:flex-end;margin-bottom:4px}.workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:28px;align-items:start}.editor{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.editor-heading{display:flex;align-items:center;justify-content:space-between;padding:0 26px;min-height:59px;gap:12px;border-bottom:1px solid var(--line)}.section-tabs{display:flex;gap:22px;font-size:11px;color:#94a092}.section-tabs span{padding:23px 0 19px}.section-tabs .active{border-bottom:2px solid var(--green);color:var(--green);font-weight:650}.save-status{font-size:10px;color:#668266;white-space:nowrap}.save-status.failed{color:var(--danger)}.form-section{padding:26px;border-bottom:1px solid var(--line)}.form-section.last{border:0}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:22px}.step{font-size:10px;background:#f1f4eb;color:#75876e;border-radius:5px;padding:5px 6px}.section-title h2{font-size:15px}.section-hint{font-size:10px;color:#899385;margin-left:auto;text-align:right}.fields{display:grid;gap:17px 16px}.two{grid-template-columns:1fr 1fr}.three{grid-template-columns:1fr 1fr 1fr}.full{grid-column:1/-1}.required{color:#719260;display:contents}.optional{font-size:10px;font-weight:400;color:#9ba398;display:contents}.tax-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px}.helper{font-size:11px;color:#7a857a;line-height:1.6;margin:12px 0}.item-card{border:1px solid var(--line);border-radius:9px;padding:15px;margin:14px 0;background:#fcfdfb}.item-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.item-heading>span{font-size:11px;font-weight:650;color:#7a8874}.item-actions{display:flex;gap:8px}.text-button{background:none;border:0;font-size:11px;padding:6px;color:#687a65;min-height:30px}.text-button.danger{color:var(--danger)}.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.item-grid label{font-size:10px}.item-grid input,.item-grid select{font-size:13px;padding:9px;min-height:40px}.item-grid .description{grid-column:1/-1}.item-grid .hsn{grid-column:span 2}.line-total{font-size:12px;text-align:right;margin-top:14px;color:#61705f}.line-total strong{color:var(--ink);margin-left:10px}.add-item{width:100%;padding:13px;border:1px dashed #b9c8ae;background:#f7faf2;border-radius:7px;color:var(--green);font-size:12px;font-weight:600}.checkbox{flex-direction:row;align-items:center;font-size:11px;margin-top:18px;gap:9px}.checkbox input{width:15px;min-height:15px;accent-color:var(--green)}.preview-panel{position:sticky;top:24px;background:#edf0e7;border:1px solid #e1e6d9;border-radius:var(--radius);padding:25px}.preview-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.preview-top h2{font-size:18px;font-family:Georgia,serif;font-weight:400}.preview-top .eyebrow{font-size:9px;margin-bottom:8px}.paper-tag{border:1px solid #d4ddc9;font-size:10px;border-radius:4px;padding:5px 8px;color:#7e8a73}.template-picker{display:flex;gap:8px;margin:23px 0 19px}.template-picker button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 5px;font-size:11px;background:#f6f8f1;border:1px solid #dce2d3;border-radius:7px}.template-picker button[aria-pressed=true]{background:#fff;border-color:#5f815c;box-shadow:0 0 0 1px #5f815c;color:var(--green)}.template-icon{height:17px;width:13px;border:1px solid #91a08a;background:linear-gradient(#c9d4be 0 3px,transparent 3px 6px,#dce3d4 6px 7px,transparent 7px 10px,#dce3d4 10px 11px,transparent 11px)}.classic-icon{background:repeating-linear-gradient(0deg,transparent 0 3px,#c9d4be 3px 4px)}.compact-icon{height:13px}.invoice-paper{padding:27px 22px;background:#fff;box-shadow:0 5px 18px #263c2410;border:1px solid #dce2d5;border-radius:3px;min-height:360px;font-size:9px;color:#3d4b43;overflow-wrap:anywhere}.paper-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:2px solid #285a48;padding-bottom:17px}.paper-head h3{font-size:17px;font-family:Georgia,serif;color:var(--green);font-weight:400}.paper-head .invoice-label{font-size:11px;color:var(--green);font-weight:700;text-align:right;letter-spacing:1px}.paper-head .invoice-number{text-align:right;color:#8a9489;font-size:8px;margin-top:5px}.invoice-paper .address{white-space:pre-line;font-size:8px;line-height:1.6;color:#82907f;margin-top:6px}.paper-parties{display:flex;justify-content:space-between;gap:20px;margin:20px 0}.paper-parties>*{max-width:60%;min-width:0}.paper-parties p{font-size:8px;color:#879480;margin-bottom:5px}.paper-parties .dates{text-align:right;font-size:8px;line-height:1.9}.invoice-paper table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:8px}.invoice-paper th{text-align:right;background:#f0f4eb;padding:9px 5px;color:#819375;font-weight:600}.invoice-paper th:first-child,.invoice-paper td:first-child{text-align:left;width:48%}.invoice-paper td{text-align:right;padding:10px 5px;border-bottom:1px solid #edf0e8;vertical-align:top}.paper-totals{margin:15px 0 0 auto;width:65%;font-size:8px}.paper-totals div{display:flex;justify-content:space-between;gap:9px;margin:8px 0}.paper-totals .grand{font-size:12px;font-weight:700;color:var(--green);border-top:1px solid #d9e1d1;padding-top:11px}.paper-notes{border-top:1px solid #edf0e8;margin-top:20px;padding-top:14px;font-size:8px;color:#88917e;white-space:pre-line;line-height:1.6}.invoice-paper.classic .paper-head{border-color:#344154}.invoice-paper.classic h3,.invoice-paper.classic .invoice-label{color:#344154}.invoice-paper.classic th{background:#edf0f5}.invoice-paper.classic td,.invoice-paper.classic th{border:1px solid #dce1e8}.invoice-paper.compact{padding:20px;min-height:310px}.invoice-paper.compact .paper-parties{margin:12px 0}.invoice-paper.compact td{padding:6px 5px}.preview-link{display:block;background:transparent;border:0;text-align:center;width:100%;font-size:11px;color:#6b8064;margin:16px 0 21px;padding:5px}.summary{background:#f8faf4;border:1px solid #dde5d4;border-radius:9px;padding:17px;font-size:12px}.summary-row{display:flex;justify-content:space-between;gap:12px;margin:0 0 12px;color:#71816a}.summary-row:last-child{margin-bottom:0}.summary-row.total{border-top:1px solid #dce4d1;padding-top:15px;margin-top:16px;color:var(--green);font-size:15px;font-weight:650}.summary-row.total strong{font-size:22px;font-family:Georgia,serif}.summary small{font-size:10px;color:#809174}.local-note{font-size:10px;color:#839078;text-align:center;margin-top:18px;line-height:1.6}.trust-strip{display:flex;gap:24px;justify-content:space-between;margin:39px 0;padding:23px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.trust-strip>div{display:grid;grid-template-columns:25px auto;gap:5px 9px;align-items:center}.trust-strip>div>span:first-child{grid-row:span 2;background:#eaf0df;border-radius:50%;height:27px;display:grid;place-items:center;color:#6d865b}.trust-strip strong{font-size:11px;font-weight:550}.trust-strip>div>span:last-child{font-size:10px;color:#939a8c}footer{display:flex;align-items:center;gap:20px;flex-wrap:wrap;color:#8c9587}footer .small{font-size:19px;color:#687b5f}footer>p{font-size:11px}footer>div{margin-left:auto;display:flex;gap:12px}footer button{border:0;background:none;color:#738269;font-size:11px;padding:7px 0;text-decoration:underline;text-underline-offset:3px}footer .disclaimer{flex-basis:100%;font-size:10px;line-height:1.7;color:#929b8b}.action-bar{position:fixed;bottom:0;left:0;width:100%;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);z-index:10;padding:15px 24px max(15px,env(safe-area-inset-bottom))}.action-inner{max-width:1152px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:15px}.action-inner>div:first-child{display:flex;flex-direction:column;gap:3px}.action-inner .muted{font-size:10px}.action-inner strong{font-size:23px;font-family:Georgia,serif;font-weight:400}.action-buttons{display:flex;gap:10px}.alert,.notice{padding:14px 17px;font-size:13px;border-radius:8px;line-height:1.6;margin-bottom:18px}.error{background:#fff0eb;border:1px solid #efc2b6;color:var(--danger)}.notice{background:#e9f0df;border:1px solid #cddfc0;color:#35582e}.notice.error{background:#fff0eb;border-color:#efc2b6;color:var(--danger)}[hidden]{display:none!important}dialog{border:1px solid #dce3d5;border-radius:14px;box-shadow:0 20px 80px #12332430;width:min(680px,calc(100% - 28px));max-height:88dvh;padding:25px;color:var(--ink)}dialog::backdrop{background:#112b2566;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.dialog-header .eyebrow{margin-bottom:7px}.icon-button{border:0;background:#eef2e9;border-radius:50%;width:36px;height:36px;font-size:25px;flex-shrink:0}.history-search{margin:20px 0}.history-entry{display:flex;gap:12px;align-items:center;padding:16px 0;border-top:1px solid var(--line)}.history-info{flex:1;min-width:0}.history-info strong,.history-info span{display:block;overflow-wrap:anywhere}.history-info strong{font-size:13px}.history-info span{font-size:11px;color:var(--muted);margin-top:5px}.history-entry .button{padding:8px;font-size:11px}.history-entry .amount{font-size:13px;white-space:nowrap}.empty-state{text-align:center;padding:40px 15px;color:var(--muted);font-size:13px;line-height:1.8}.pdf-dialog{width:min(1000px,calc(100% - 24px));height:90dvh}.pdf-controls{display:flex;gap:15px;align-items:end}.pdf-controls label{max-width:180px}#pdf-frame{width:100%;height:calc(100% - 165px);min-height:250px;border:1px solid var(--line);border-radius:6px}
@media(min-width:1400px){main{padding-top:48px}.page-heading{margin-bottom:40px}}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px}.form-section{padding:22px}.editor-heading{padding:0 22px}.section-tabs .desktop-only{display:none}.preview-panel{padding:20px}.three{grid-template-columns:1fr 1fr}.three label:first-child{grid-column:1/-1}h1{font-size:34px}.section-hint{font-size:9px}.trust-strip{gap:12px}.trust-strip strong{font-size:10px}.trust-strip>div>span:last-child{font-size:9px}}
@media(max-width:760px){.desktop-only{display:none}.mobile-only{display:block}.topbar{height:70px;padding:0 18px}.brand{font-size:22px}.brand-icon{width:29px;height:31px;font-size:26px;line-height:27px}.privacy{font-size:0;gap:0}.privacy .status-dot{display:none}.topbar .button{padding:8px;font-size:12px}.topbar{gap:0}main{padding:27px 16px 170px}.page-heading{align-items:start;margin-bottom:25px;gap:10px;flex-wrap:wrap}.page-heading .eyebrow{font-size:8px;letter-spacing:1.3px}h1{font-size:32px;letter-spacing:-1px}.page-heading .muted{font-size:12px;max-width:300px;line-height:1.7}.page-heading .button{margin-top:8px;font-size:12px;min-height:38px;padding:8px 12px}.workspace{grid-template-columns:1fr;gap:24px}.editor-heading{padding:0 18px;min-height:54px}.form-section{padding:22px 18px}.section-hint{font-size:9px}.section-title{gap:9px}.section-title h2{font-size:15px}.fields{gap:16px 12px}.fields label{font-size:11px}.two{grid-template-columns:1fr 1fr}.three{grid-template-columns:1fr 1fr}input,select,textarea,.item-grid input,.item-grid select{font-size:16px}.fields.two>label:has([name="company.state"]),.fields.two>label:has([name="company.gstin"]),.fields.two>label:has([name="customer.state"]),.fields.two>label:has([name="customer.gstin"]){grid-column:1/-1}.tax-settings{grid-template-columns:1fr}.item-grid{gap:12px 9px}.item-card{padding:13px}.item-grid label{font-size:10px}.preview-panel{position:static;padding:22px}.invoice-paper{padding:26px 21px}.trust-strip{flex-direction:column;gap:22px;padding:24px 0;margin:30px 0}.trust-strip strong{font-size:12px}.trust-strip>div>span:last-child{font-size:11px}.trust-strip>div{justify-content:start;column-gap:14px}footer{gap:12px}footer>p{font-size:10px}footer>div{margin-left:0;flex-basis:100%;gap:20px}.action-bar{padding:12px 16px max(12px,env(safe-area-inset-bottom))}.action-inner{align-items:stretch;flex-wrap:wrap;gap:10px}.action-inner>div:first-child{flex-direction:row;justify-content:space-between;align-items:center;flex-basis:100%}.action-inner strong{font-size:22px}.action-inner .muted{font-size:12px}.action-buttons{width:100%;gap:7px}.action-buttons .button{font-size:11px;min-height:43px;padding:10px 9px}.action-buttons .primary{flex:1}.action-buttons .outline{flex:0 0 auto}dialog{padding:20px}.history-entry{flex-wrap:wrap}.history-info{flex-basis:65%}.history-entry .amount{margin-left:auto}.history-entry .button{min-height:35px}.pdf-dialog{padding:16px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}dialog[open]{animation:appear .15s ease-out}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}
@media print{body>*{display:none!important}body::after{content:"Use Download PDF to generate a print-ready invoice.";display:block;padding:30px}}
