*{box-sizing:border-box}html{overflow-x:hidden}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f4f7fb;color:#172033;overflow-x:hidden}button,input,select,textarea{font:inherit}button{touch-action:manipulation}.app{min-height:100vh}.topbar{min-height:72px;background:#fff;border-bottom:1px solid #e7ebf2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 34px;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brandMark{width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#172033;color:#fff;display:grid;place-items:center;font-weight:800;font-size:20px}.brand strong{display:block;font-size:16px}.brand span{display:block;font-size:11px;color:#8490a4;margin-top:2px}.primary,.secondary{border:0;border-radius:9px;min-height:40px;padding:10px 15px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;touch-action:manipulation}.primary{background:#172033;color:#fff}.secondary{background:#edf1f7;color:#253047}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,610px);gap:28px;max-width:1500px;margin:auto;padding:30px 34px}.pageTitle h1{font-size:28px;line-height:1.2;margin:0 0 5px}.pageTitle p{margin:0 0 20px;color:#7a8599}.segmented{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%;background:#e9edf4;border-radius:10px;padding:4px;margin-bottom:18px}.segmented button{border:0;background:transparent;border-radius:7px;min-height:40px;padding:9px 17px;display:flex;align-items:center;justify-content:center;gap:7px;color:#657087;font-weight:700;cursor:pointer;touch-action:manipulation}.segmented .active{background:#fff;color:#172033;box-shadow:0 1px 4px #00000010}.card{background:#fff;border:1px solid #e6eaf1;border-radius:14px;padding:20px;margin-bottom:16px;box-shadow:0 2px 8px #18223808}.card h2{font-size:15px;margin:0 0 16px}.grid{display:grid;gap:13px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid .full{grid-column:1 / -1}label{display:block;font-size:12px;font-weight:700;color:#667187}label small{font-weight:400;color:#9aa3b2}input,select,textarea{width:100%;margin-top:6px;border:1px solid #dfe4ec;border-radius:8px;padding:10px 11px;background:#fff;color:#172033;font-size:13px;outline:none;min-height:40px}input:focus,select:focus,textarea:focus{border-color:#7d8ba4;box-shadow:0 0 0 3px #64748b12}textarea{resize:vertical;min-height:66px}.logoDrop{min-height:125px;border:1.5px dashed #cbd3df;border-radius:11px;display:grid;place-items:center;position:relative;background:#fafbfd;margin-bottom:7px}.logoDrop label{min-height:122px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;color:#5d6a80}.logoDrop label span{font-weight:500;color:#98a1af;font-size:11px}.logoDrop input{display:none}.logoDrop img{max-width:180px;max-height:82px;object-fit:contain}.removeLogo{position:absolute;right:8px;top:8px;border:0;border-radius:7px;background:#fff;box-shadow:0 2px 7px #0002;min-width:32px;min-height:32px;padding:5px;cursor:pointer}.hint{font-size:11px;color:#929bab;margin:0 0 16px}.sectionHead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.sectionHead h2{margin:0}.itemHeader,.itemRow{display:grid;grid-template-columns:minmax(0,1fr) 70px 105px 105px 32px;gap:9px;align-items:center}.itemHeader{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#929bab;font-weight:800;padding:0 3px}.itemRow{margin-top:7px}.itemRow input{margin:0}.itemRow strong{font-size:12px;text-align:right}.iconBtn{border:0;background:transparent;color:#8d96a6;cursor:pointer;min-width:32px;min-height:32px;display:grid;place-items:center}.totalsControls{margin-top:18px;max-width:330px}.largeText{min-height:100px}.previewPane{position:sticky;top:102px;align-self:start;min-width:0}.previewLabel{display:flex;justify-content:space-between;gap:12px;color:#7c8799;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin:0 3px 10px}.paper{background:#fff;min-height:790px;width:100%;box-shadow:0 12px 35px #16203916;border:1px solid #e5e8ee;padding:44px 43px;font-family:Arial,sans-serif;color:#202938;overflow:hidden}.docTop{display:flex;justify-content:space-between;gap:20px;font-size:9px;color:#7d8795;line-height:1.6}.docLogo{max-width:120px;max-height:55px;object-fit:contain;margin-bottom:5px}.businessName{font-size:17px;font-weight:800;color:#202938}.docTitle{text-align:right;display:flex;flex-direction:column;gap:3px}.docTitle h3{font-size:27px;margin:0 0 4px;letter-spacing:.08em;color:#172033}.docTitle b{color:#59667b}.billTo{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-top:55px;border-bottom:1px solid #e7e9ed;padding-bottom:18px}.billTo>div:first-child{display:flex;flex-direction:column;gap:2px;font-size:9px;color:#7d8795;min-width:0}.billTo small,.docNotes small{font-size:8px;letter-spacing:.1em;font-weight:800;color:#98a0ad;margin-bottom:5px}.billTo strong{font-size:12px;color:#202938}.amountBox{text-align:right;flex:0 0 auto}.amountBox small{display:block;font-size:8px;color:#98a0ad}.amountBox strong{font-size:19px;color:#172033}.paper table{width:100%;border-collapse:collapse;margin-top:28px;font-size:9px}.paper th{background:#f3f5f8;text-align:left;color:#6d7787;font-size:8px;text-transform:uppercase;letter-spacing:.05em;padding:9px}.paper td{padding:10px 9px;border-bottom:1px solid #edf0f4}.paper th:nth-child(n+2),.paper td:nth-child(n+2){text-align:right}.summary{margin:22px 0 0 auto;width:48%;min-width:180px;font-size:9px}.summary>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;color:#697486}.summary .grand{border-top:1px solid #dfe3e9;margin-top:5px;padding-top:10px;font-size:12px;color:#172033}.docNotes{margin-top:55px;border-top:1px solid #edf0f4;padding-top:14px}.docNotes p{font-size:9px;color:#7b8594;line-height:1.6;margin:5px 0}.footerDoc{border-top:1px solid #edf0f4;margin-top:45px;padding-top:11px;font-size:8px;color:#a0a7b1;text-align:center}@media(max-width:1050px){.layout{grid-template-columns:1fr}.previewPane{position:static;max-width:760px;width:100%;margin:8px auto 0}}@media(max-width:760px){.topbar{padding:12px 18px}.layout{padding:24px 18px}.grid.two{grid-template-columns:1fr}.grid .full{grid-column:auto}.itemHeader{display:none}.itemRow{grid-template-columns:minmax(0,1fr) 60px 90px 85px 32px;gap:7px}.paper{padding:32px 28px}}@media(max-width:560px){.topbar{min-height:64px;padding:10px 14px;gap:10px}.brand{gap:8px}.brandMark{width:34px;height:34px;flex-basis:34px;border-radius:9px;font-size:17px}.brand strong{font-size:14px}.brand span{font-size:10px}.topbar .primary{min-width:40px;width:40px;padding:8px}.topbar .primary span{display:none}.layout{padding:18px 12px 28px;gap:18px}.pageTitle h1{font-size:23px}.pageTitle p{font-size:13px;line-height:1.5;margin-bottom:16px}.segmented{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.segmented button{width:100%;padding:9px 8px;font-size:12px}.card{padding:16px;border-radius:12px}.sectionHead{align-items:flex-start}.sectionHead .primary,.sectionHead .secondary{white-space:nowrap}.itemRow{grid-template-columns:minmax(0,1fr) 55px 80px 78px 30px;gap:5px}.itemRow input{padding:9px 7px;font-size:12px}.itemRow strong{font-size:11px}.totalsControls{max-width:none}.previewPane{margin-top:0}.previewLabel{font-size:10px}.paper{min-height:0;padding:24px 18px}.docTop{gap:12px;font-size:8px}.docLogo{max-width:90px;max-height:45px}.businessName{font-size:14px}.docTitle h3{font-size:21px}.billTo{margin-top:32px;gap:12px}.amountBox strong{font-size:16px}.paper table{margin-top:20px;font-size:8px}.paper th,.paper td{padding:7px 5px}.summary{width:65%;min-width:0}.docNotes{margin-top:35px}.footerDoc{margin-top:30px}}@media(max-width:380px){.layout{padding-left:9px;padding-right:9px}.card{padding:13px}.segmented button{font-size:11px;gap:4px}.itemRow{grid-template-columns:minmax(0,1fr) 48px 68px 68px 28px;gap:4px}.itemRow input{padding:8px 5px;font-size:11px}.paper{padding:20px 13px}.docTitle h3{font-size:18px}.summary{width:72%}}@media(max-width:650px){input,select,textarea{font-size:16px}.layout,.card,.grid,.itemRow,.previewPane,.paper{min-width:0;max-width:100%}button,select,input{min-height:44px}.itemRow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:center;width:100%;min-width:0;padding:12px 0;margin-top:0;border-bottom:1px solid #edf0f4}.itemRow input:first-child{grid-column:1 / -1}.itemRow input{min-width:0;width:100%;margin:0;font-size:16px}.itemRow strong{min-width:0;display:flex;align-items:center;justify-content:flex-start;min-height:44px;font-size:13px;text-align:left}.itemRow .iconBtn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;justify-self:end}.sectionHead{gap:10px;flex-wrap:wrap}.sectionHead .secondary{min-height:44px}.totalsControls{width:100%;max-width:none}.addItemTop{display:none}.addItemBottom{display:inline-flex;width:100%;justify-content:center;margin-top:12px}.itemsList{display:flex;flex-direction:column;min-width:0}}@media(max-width:380px){.itemRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.itemRow input{padding:10px 8px}.itemRow strong{font-size:12px}}@media(min-width:651px){.addItemTop{display:inline-flex}.addItemBottom{display:none}}.downloadPdfBtn{min-height:40px}@media(max-width:650px){.downloadPdfBtn{min-height:40px;padding:9px 12px;font-size:12px;gap:6px}.downloadPdfBtn svg{width:16px;height:16px}.downloadPdfBtn span{display:none}}
