:root{--navy-950:#08264d;--navy-900:#0b3268;--navy-800:#104884;--teal-700:#087f82;--teal-600:#0a9692;--teal-500:#10a6a1;--green-500:#70bd44;--green-100:#eaf8e4;--ink:#142033;--muted:#65738a;--line:#dce5ed;--soft-line:#e8eef3;--surface:#fff;--canvas:#eff5f7;--danger:#c3394a;--shadow:0 18px 50px #1433531a}*{box-sizing:border-box}html{background:var(--canvas);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;min-width:320px}body{background:radial-gradient(circle at 92% 0%, #0a969214, transparent 32rem), var(--canvas);min-height:100vh;color:var(--ink);-webkit-font-smoothing:antialiased;margin:0;font-family:Inter,Noto Sans Bengali,Hind Siliguri,Segoe UI,Arial,sans-serif;overflow-x:hidden}button,input,select,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-offset:2px;outline:3px solid #0a969233}.app-shell{min-height:100vh}.topbar{z-index:30;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffe6;border-bottom:1px solid #d4e2ebd9;justify-content:space-between;align-items:center;min-height:72px;padding:10px clamp(16px,3vw,44px);display:flex;position:sticky;top:0;box-shadow:0 6px 24px #1e44630a}.brand-lockup,.topbar-actions,.language-toggle,.sync-chip,.ghost-button,.section-title,.editor-heading,.preview-toolbar,.preview-note,.settings-block-title,.backup-actions,.action-bar{align-items:center;display:flex}.save-location-note{color:#68778a;align-items:flex-start;gap:7px;margin:8px 2px 0;font-size:10px;line-height:1.45;display:flex}.save-location-note svg{color:var(--teal-700);flex:none;margin-top:1px}.brand-lockup{gap:11px;min-width:0}.brand-logo-image{object-fit:contain;object-position:left center;flex:none;width:112px;height:50px;display:block}.brand-mark{background:linear-gradient(145deg, var(--navy-900), #0b68a0 58%, var(--teal-500));color:#fff;border-radius:13px;flex:none;place-items:center;width:42px;height:42px;display:grid;box-shadow:0 8px 18px #0a568038}.brand-lockup strong,.brand-lockup span{display:block}.brand-lockup strong{color:var(--navy-950);letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:800;overflow:hidden}.brand-lockup span{color:var(--muted);margin-top:2px;font-size:11px;font-weight:650}.topbar-actions{gap:9px}.sync-chip{color:#27725f;white-space:nowrap;background:#f1faf7;border:1px solid #d9e9e4;border-radius:999px;gap:6px;min-height:34px;padding:0 11px;font-size:11px;font-weight:750}.sync-saving{color:var(--muted);background:#f5f8fa;border-color:#dbe4ec}.sync-offline{color:#5f6c7c;background:#f7f8f9;border-color:#e2e5e9}.language-toggle{border:1px solid var(--line);min-height:38px;color:var(--muted);background:#f8fafb;border-radius:11px;gap:3px;padding:3px 4px 3px 9px}.language-toggle button{color:#5f6c7c;cursor:pointer;background:0 0;border:0;border-radius:8px;min-height:29px;padding:0 9px;font-size:11px;font-weight:800}.language-toggle button.active{color:var(--navy-900);background:#fff;box-shadow:0 2px 8px #1a3b551c}.ghost-button,.icon-button,.secondary-button,.primary-button,.action-button,.small-button,.add-line,.remove-line{cursor:pointer;border:0;transition:transform .16s,box-shadow .16s,border-color .16s,background .16s}.ghost-button{border:1px solid var(--line);color:#415066;background:#fff;border-radius:11px;gap:7px;min-height:38px;padding:0 10px;font-size:12px;font-weight:750}.ghost-button b{min-width:20px;height:20px;color:var(--teal-700);background:#eaf4f5;border-radius:999px;place-items:center;font-size:10px;display:grid}.icon-button{border:1px solid var(--line);color:#45546a;background:#fff;border-radius:11px;flex:none;place-items:center;width:38px;height:38px;display:grid}.ghost-button:hover,.icon-button:hover,.secondary-button:hover,.action-button:hover,.small-button:hover,.add-line:hover{color:var(--teal-700);background:#f5fbfb;border-color:#b9d8d7}.workspace{grid-template-columns:minmax(620px,750px) minmax(500px,1fr);gap:clamp(20px,2.4vw,38px);width:min(100%,1640px);margin:0 auto;padding:30px clamp(16px,3vw,44px) 64px;display:grid}.editor-column,.preview-column{min-width:0}.editor-heading{justify-content:space-between;gap:18px;margin-bottom:16px}.editor-heading p,.modal-header p{color:var(--teal-700);letter-spacing:.1em;text-transform:uppercase;margin:0 0 4px;font-size:10px;font-weight:850}.editor-heading h1,.modal-header h2{color:var(--navy-950);letter-spacing:-.035em;margin:0;font-size:clamp(23px,2.2vw,30px);font-weight:820}.secondary-button{border:1px solid var(--line);color:#394960;white-space:nowrap;background:#fff;border-radius:11px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-size:12px;font-weight:800;display:inline-flex}.form-section{background:#fffffff2;border:1px solid #dae5ecf2;border-radius:18px;margin-bottom:15px;padding:clamp(16px,2vw,22px);box-shadow:0 10px 30px #193e590b}.section-title{align-items:flex-start;gap:11px;margin-bottom:17px}.section-title>span{width:30px;height:30px;color:var(--teal-700);background:linear-gradient(145deg,#edf8f7,#e9f2f8);border-radius:9px;flex:none;place-items:center;font-size:10px;font-weight:900;display:grid}.section-title h2{color:var(--navy-950);letter-spacing:-.015em;margin:0;font-size:15px;font-weight:830}.section-title p,.settings-block-title p{color:var(--muted);margin:3px 0 0;font-size:11px;line-height:1.45}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;display:grid}.patient-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.field,.line-field{min-width:0;display:block}.field>span,.line-field>span{color:#59677a;margin-bottom:6px;font-size:10px;font-weight:780;display:block}.field input,.field select,.field textarea,.line-field input,.line-field select,.search-box input{width:100%;min-width:0;color:var(--ink);background:#fbfcfd;border:1px solid #dce5eb;border-radius:10px;font-size:13px;transition:border-color .15s,box-shadow .15s,background .15s}.field input[type=date]{box-sizing:border-box;text-align:center;text-align-last:center;appearance:none;block-size:42px;inline-size:100%;min-inline-size:0;max-inline-size:100%;padding-block:0;padding-inline:8px;line-height:42px;display:block;overflow:hidden}.field input[type=date]::-webkit-date-and-time-value{text-align:center;justify-content:center;align-items:center;min-height:100%;margin:0;padding:0;line-height:42px;display:flex}.field input[type=date]::-webkit-datetime-edit{justify-content:center;align-items:center;height:100%;padding:0;line-height:42px;display:flex}.field input[type=date]::-webkit-calendar-picker-indicator{margin-inline-start:2px;padding:0}.field input,.field select,.line-field input,.line-field select{height:42px;padding:0 11px}.field textarea{resize:vertical;min-height:68px;padding:10px 11px}.field input:hover,.field select:hover,.field textarea:hover,.line-field input:hover,.line-field select:hover{border-color:#c5d7df}.field input:focus,.field select:focus,.field textarea:focus,.line-field input:focus,.line-field select:focus,.search-box input:focus{border-color:var(--teal-500);background:#fff;outline:0;box-shadow:0 0 0 3px #10a6a11a}.field input::placeholder,.field textarea::placeholder,.line-field input::placeholder{color:#a4afbd}.line-items{border:1px solid var(--soft-line);background:#fcfdfe;border-radius:13px;overflow:hidden}.line-head,.line-item{grid-template-columns:minmax(205px,2.4fr) minmax(70px,.8fr) 62px 55px 88px 94px 34px;align-items:center;gap:8px;display:grid}.line-head{border-bottom:1px solid var(--soft-line);color:#69778a;letter-spacing:.03em;text-transform:uppercase;background:#f3f7f9;min-height:35px;padding:0 10px;font-size:9px;font-weight:850}.line-item{border-bottom:1px solid var(--soft-line);padding:10px;position:relative}.line-item:last-of-type{border-bottom:0}.line-field>span,.line-amount>span{display:none}.line-field input,.line-field select{background:#fff;height:38px;padding:0 8px;font-size:11px}.service-field select{font-weight:680}.custom-service{margin-top:6px}.line-amount{text-align:right;min-width:0}.line-amount strong{color:var(--navy-900);text-overflow:ellipsis;white-space:nowrap;font-size:12px;display:block;overflow:hidden}.remove-line{color:#8994a3;background:0 0;border-radius:9px;place-items:center;width:32px;height:32px;display:grid}.remove-line:hover:not(:disabled){color:var(--danger);background:#fff0f2}.remove-line:disabled{cursor:not-allowed;opacity:.28}.mobile-line-index{display:none}.add-line{width:100%;min-height:43px;color:var(--teal-700);background:#f7fbfb;border-top:1px dashed #d9e4e9;justify-content:center;align-items:center;gap:7px;font-size:11px;font-weight:820;display:flex}.payment-layout{grid-template-columns:minmax(0,1.35fr) minmax(205px,.65fr);align-items:start;gap:16px;display:grid}.money-input{position:relative}.money-input i{z-index:1;color:var(--navy-900);font-size:13px;font-style:normal;font-weight:800;position:absolute;top:50%;left:11px;transform:translateY(-50%)}.money-input input{padding-left:27px}.totals-card{background:linear-gradient(145deg,#f7fbfb,#f7fafc);border:1px solid #d8e7e4;border-radius:13px;padding:13px 14px}.totals-card>div:not(.status-badge){color:#627084;justify-content:space-between;align-items:center;gap:12px;min-height:29px;font-size:10px;display:flex}.totals-card b{color:#334157;font-size:11px}.totals-card .minus{color:#9b4f5d}.totals-card .grand-total{min-height:45px;color:var(--navy-900);border-top:1px solid #d8e5e7;border-bottom:1px solid #d8e5e7;margin:6px -4px;padding:0 8px;font-weight:800}.totals-card .grand-total strong{color:var(--navy-900);letter-spacing:-.02em;font-size:17px}.totals-card .due-total{color:#9e3d4b;min-height:34px;font-weight:850}.totals-card .due-total strong{font-size:14px}.status-badge{border-radius:8px;justify-content:center;align-items:center;gap:5px;min-height:29px;margin-top:7px;font-size:10px;font-weight:850;display:flex}.status-paid{color:#3c7b2e;background:#e7f7e3}.status-partial{color:#9a6e13;background:#fff5dc}.status-unpaid{color:#a33f50;background:#fff0f2}.action-bar{z-index:20;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffffeb;border:1px solid #d5e1e9f2;border-radius:16px;flex-wrap:wrap;gap:8px;padding:10px;position:sticky;bottom:14px;box-shadow:0 14px 34px #11365224}.primary-button,.action-button{white-space:nowrap;border-radius:11px;flex:auto;justify-content:center;align-items:center;gap:7px;min-height:43px;padding:0 14px;font-size:11px;font-weight:850;display:inline-flex}.primary-button{background:linear-gradient(135deg, var(--navy-900), #0c5c94);color:#fff;min-width:145px;box-shadow:0 9px 18px #0b3e6f33}.primary-button:hover{transform:translateY(-1px);box-shadow:0 11px 22px #0b3e6f40}.action-button{border:1px solid var(--line);color:#3f4d61;background:#fff;min-width:118px}.whatsapp-button{color:#28785c;border-color:#cce8db}.share-action{flex:auto;min-width:118px;display:flex;position:relative}.share-action>.action-button{width:100%;min-width:0}.share-format-menu{z-index:35;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffffffa;border:1px solid #d7e5e4;border-radius:14px;gap:5px;width:min(260px,100vw - 28px);padding:7px;display:grid;position:absolute;bottom:calc(100% + 9px);right:0;box-shadow:0 18px 45px #103d4f33}.share-format-menu button{color:#24465b;text-align:left;background:0 0;border:0;border-radius:10px;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:9px;min-height:55px;padding:8px 10px;display:grid}.share-format-menu button:hover{background:#eef8f5}.share-format-menu button>svg{color:#188563;justify-self:center}.share-format-menu b,.share-format-menu small{display:block}.share-format-menu b{font-size:11px;font-weight:900}.share-format-menu small{color:#748592;margin-top:2px;font-size:9px;font-weight:650}.action-button:disabled{cursor:wait;opacity:.68}.preview-column{align-self:start;position:sticky;top:96px}.preview-toolbar{justify-content:space-between;gap:12px;margin-bottom:10px}.preview-toolbar>div:first-child{color:#526176;align-items:center;gap:7px;font-size:11px;display:flex}.live-dot{background:var(--teal-500);border-radius:999px;width:7px;height:7px;box-shadow:0 0 0 4px #10a6a11f}.print-mode-toggle{border:1px solid var(--line);background:#e9f0f3;border-radius:10px;gap:3px;padding:3px;display:flex}.print-mode-toggle button{color:#6c7888;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:5px;min-height:30px;padding:0 9px;font-size:9px;font-weight:800;display:inline-flex}.print-mode-toggle button.active{color:var(--navy-900);background:#fff;box-shadow:0 2px 7px #2842591c}.sheet-stage{background:linear-gradient(135deg,#ffffff9e 25%,#0000 25%) 0 0/18px 18px,linear-gradient(315deg,#ffffff80 25%,#0000 25%) 0 0/18px 18px,#dce7eb;border:1px solid #d9e4e9;border-radius:20px;place-items:center;min-height:640px;padding:clamp(14px,2vw,26px);display:grid;overflow:hidden;box-shadow:inset 0 1px #fffc}.invoice-sheet{width:min(100%,670px);aspect-ratio:var(--paper-ratio);background:#fff;border:1px solid #14344d14;position:relative;overflow:hidden;box-shadow:0 22px 60px #17344d33,0 2px 6px #17344d1f;container-type:inline-size}.pad-art{object-fit:fill;width:100%;height:100%;transition:opacity .18s,filter .18s;position:absolute;inset:0}.invoice-sheet.preprinted .pad-art{opacity:.13;filter:grayscale()}.print-content{color:#12243a;transform:translate(var(--content-offset-x), var(--content-offset-y)) scale(var(--content-scale));transform-origin:0 0;position:absolute;inset:0}.pad-patient-value{color:#0c294e;text-overflow:ellipsis;white-space:nowrap;font-size:1.35cqw;font-weight:650;line-height:1.2;position:absolute;top:15.55%;overflow:hidden}.patient-name{width:38.6%;left:11.6%}.patient-age{text-align:center;width:8.3%;left:56.3%}.patient-sex{text-align:center;width:6%;left:71.2%}.patient-date{text-align:center;width:12.6%;font-size:1.17cqw;left:84.7%}.pad-invoice-body{-webkit-backdrop-filter:blur(.3px);backdrop-filter:blur(.3px);background:#ffffffbd;border:.13cqw solid #094b7d40;border-radius:1.05cqw;flex-direction:column;min-width:0;padding:1.25cqw 1.35cqw 1.1cqw;display:flex;position:absolute;inset:19.1% 3.1% 9.8% 32.6%}.preprinted .pad-invoice-body{background:#fff}.pad-title-row{border-bottom:.13cqw solid #94b9ca;justify-content:space-between;align-items:flex-start;gap:1cqw;padding-bottom:.9cqw;display:flex}.pad-title-row small,.pad-title-row strong{display:block}.pad-title-row small{color:var(--navy-900);letter-spacing:-.02em;font-size:1.62cqw;font-weight:900;line-height:1.2}.pad-title-row strong{color:#4d6072;margin-top:.3cqw;font-size:1.08cqw;font-weight:750}.pad-status{white-space:nowrap;border-radius:99px;flex:none;padding:.45cqw .65cqw;font-size:.88cqw;font-weight:900;line-height:1}.pad-status-paid{color:#39772d;background:#e7f7e3eb;border:.12cqw solid #a7d197}.pad-status-partial{color:#906613;background:#fff7dbf0;border:.12cqw solid #efd58e}.pad-status-unpaid{color:#a03d4c;background:#ffeff2f0;border:.12cqw solid #e2a9b2}.pad-patient-meta{color:#52657a;align-items:center;gap:1.25cqw;min-height:2.4cqw;padding:.45cqw 0;font-size:.95cqw;font-weight:650;display:flex}.pad-table{table-layout:fixed;border-collapse:collapse;color:#233447;width:100%;font-size:1.05cqw}.pad-table th,.pad-table td{overflow-wrap:anywhere;vertical-align:top}.pad-table th{color:#153f67;text-align:left;text-transform:uppercase;background:#def0f5c2;border-top:.12cqw solid #91b6c8;border-bottom:.12cqw solid #91b6c8;padding:.6cqw .34cqw;font-size:.84cqw;font-weight:900}.pad-table td{border-bottom:.09cqw solid #688fa659;padding:.68cqw .34cqw;line-height:1.32}.pad-table th:first-child,.pad-table td:first-child{text-align:center;width:5%;padding-left:0}.pad-table th:nth-child(2),.pad-table td:nth-child(2){width:42%;font-weight:680}.pad-table th:nth-child(3),.pad-table td:nth-child(3){text-align:center;width:13%}.pad-table th:nth-child(4),.pad-table td:nth-child(4){text-align:center;width:8%}.pad-table th:nth-child(5),.pad-table td:nth-child(5){text-align:right;width:14%}.pad-table th:nth-child(6),.pad-table td:nth-child(6){text-align:right;width:18%;padding-right:0}.pad-table em{color:#708094;font-size:.87em;font-style:normal;font-weight:600}.pad-summary{justify-content:space-between;align-items:flex-end;gap:1.1cqw;margin-top:auto;padding-top:.9cqw;display:flex}.pad-notes{color:#4d5d70;flex:48%;font-size:.92cqw;line-height:1.45}.pad-notes p{-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0 0 .4cqw;display:-webkit-box;overflow:hidden}.pad-thanks{color:#55748a;font-style:italic}.pad-totals{background:#f5fbfce6;border:.1cqw solid #aac4d0;border-radius:.55cqw;flex:0 0 49%;padding:.45cqw .65cqw;font-size:.92cqw}.pad-totals>div{justify-content:space-between;align-items:center;gap:.8cqw;min-height:1.75cqw;display:flex}.pad-totals b{white-space:nowrap}.pad-totals .pad-payable{color:var(--navy-900);border-top:.1cqw solid #8fb4c4;border-bottom:.1cqw solid #8fb4c4;margin:.3cqw -.18cqw;padding:.35cqw .18cqw;font-size:1.02cqw;font-weight:900}.pad-totals .pad-due{color:#9d3f4d;font-weight:900}.pad-bottom-row{color:#455a6e;border-top:.1cqw dashed #a5bbc7;justify-content:space-between;align-items:flex-end;gap:1cqw;min-height:3.8cqw;margin-top:.75cqw;padding-top:.6cqw;font-size:.88cqw;font-weight:680;display:flex}.signature-line{color:#4b5e72;text-align:center;flex:0 0 37%}.signature-line i{border-top:.1cqw solid #425a6e;margin-bottom:.35cqw;display:block}.dense-sheet .pad-invoice-body{padding-top:.9cqw}.dense-sheet .pad-title-row{padding-bottom:.5cqw}.dense-sheet .pad-table{font-size:.94cqw}.dense-sheet .pad-table td{padding-top:.42cqw;padding-bottom:.42cqw}.dense-sheet .pad-patient-meta{min-height:1.7cqw;padding:.2cqw 0}.a4-chip{color:#36566e;white-space:nowrap;background:#f8fbfc;border:1px solid #cedfe5;border-radius:9px;align-items:center;gap:6px;min-height:32px;padding:0 10px;font-size:9px;font-weight:850;display:inline-flex}.invoice-sheet{aspect-ratio:210/297;background:#fff}.invoice-page{color:#183149;background:radial-gradient(circle at 96% 9%,#139d9c0e,#0000 22cqw),linear-gradient(#fff 0% 82%,#f8fbfc 100%);flex-direction:column;min-height:100%;padding:4.2cqw 4.6cqw 3.6cqw;display:flex;position:relative;overflow:hidden}.invoice-page:before{display:none}.invoice-watermark{z-index:0;opacity:.048;pointer-events:none;width:48cqw;position:absolute;top:51%;left:50%;transform:translate(-50%,-50%)rotate(-7deg)}.invoice-watermark img{width:100%;height:auto;display:block}.invoice-top-accent{background:linear-gradient(90deg,#0a3470 0 45%,#07979b 45% 82%,#70bd44 82%);height:1.25cqw;position:absolute;top:0;left:0;right:0}.invoice-header{z-index:1;border-bottom:.12cqw solid #d9e7eb;justify-content:space-between;align-items:flex-start;gap:3cqw;padding-bottom:2.3cqw;display:flex;position:relative}.invoice-brand{flex-direction:column;flex:46%;align-items:flex-start;gap:.45cqw;min-width:0;display:flex}.invoice-logo-image{object-fit:contain;object-position:left center;filter:drop-shadow(0 .6cqw .9cqw #0a34701a);width:29cqw;height:auto;max-height:15cqw;display:block}.invoice-tagline,.invoice-doctor strong,.invoice-doctor span,.invoice-doctor small,.invoice-doctor b{display:block}.invoice-tagline{color:#537487;letter-spacing:.012em;margin:0 0 0 1.1cqw;font-size:1.14cqw;font-weight:760;line-height:1.3}.invoice-doctor{text-align:right;flex:0 48%}.invoice-doctor strong{color:#0a3470;font-size:1.88cqw;font-weight:900;line-height:1.25}.invoice-doctor span{color:#36536c;margin-top:.45cqw;font-size:1.16cqw;font-weight:750;line-height:1.3}.invoice-doctor small{color:#667d8f;margin-top:.5cqw;font-size:1.03cqw;font-weight:650;line-height:1.35}.invoice-doctor b{color:#087b7d;background:#eaf6f4;border-radius:99px;width:fit-content;margin:.75cqw 0 0 auto;padding:.45cqw .75cqw;font-size:1.02cqw;font-weight:900}.invoice-title-band{z-index:1;color:#fff;background:linear-gradient(105deg,#0a3470,#0a4b7e 62%,#087f82);border-radius:1.65cqw;justify-content:space-between;align-items:center;gap:2cqw;margin-top:2.9cqw;padding:2.15cqw 2.4cqw;display:flex;position:relative;box-shadow:0 1.5cqw 3.3cqw #0a347024}.invoice-title-band span,.invoice-title-band h1{margin:0;display:block}.invoice-title-band>div:first-child>span{color:#ffffffb8;letter-spacing:.12em;font-size:1.02cqw;font-weight:850}.invoice-title-band h1{letter-spacing:-.02em;margin-top:.45cqw;font-size:2.42cqw;font-weight:900;line-height:1.15}.invoice-status{white-space:nowrap;background:#ffffff24;border:.1cqw solid #ffffff6b;border-radius:99px;flex:none;align-items:center;gap:.6cqw;min-height:3.2cqw;padding:.55cqw 1cqw;font-size:1.08cqw;font-weight:900;display:inline-flex}.invoice-status-paid{background:#70bd4447}.invoice-status-partial{background:#f1b8374d}.invoice-status-unpaid{background:#db596947}.invoice-meta-grid{z-index:1;background:#fbfdfe;border:.1cqw solid #dbe7ec;border-radius:1.35cqw;grid-template-columns:1.45fr 1fr .7fr .8fr;margin:2.3cqw 0;display:grid;position:relative;overflow:hidden}.invoice-meta-grid>div{border-right:.1cqw solid #dbe7ec;min-width:0;padding:1.25cqw 1.45cqw}.invoice-meta-grid>div:last-child{border-right:0}.invoice-meta-grid span,.invoice-meta-grid b{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.invoice-meta-grid span{color:#7b8e9e;font-size:1.05cqw;font-weight:800}.invoice-meta-grid b{color:#193b58;margin-top:.45cqw;font-size:1.3cqw;font-weight:850}.invoice-patient-card{z-index:1;background:#f8fbfc;border:.1cqw solid #d9e7eb;border-left:.45cqw solid #0a9998;border-radius:1.35cqw;padding:1.45cqw 1.65cqw 1.35cqw;position:relative}.invoice-section-label{color:#078184;letter-spacing:.11em;font-size:1.08cqw;font-weight:950}.invoice-patient-main{grid-template-columns:1.3fr .95fr;gap:1.45cqw;margin-top:.85cqw;display:grid}.invoice-patient-name span,.invoice-patient-name strong,.invoice-patient-name small{display:block}.invoice-patient-name span,.invoice-patient-facts span{color:#7c8e9c;font-size:.98cqw;font-weight:750}.invoice-patient-name strong{color:#153b5a;margin-top:.25cqw;font-size:1.58cqw;font-weight:900;line-height:1.25}.invoice-patient-name small{color:#5e7486;margin-top:.35cqw;font-size:1.04cqw;line-height:1.35}.invoice-patient-facts{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:.7cqw 1cqw;display:grid}.invoice-patient-facts b{color:#28475f;text-overflow:ellipsis;white-space:nowrap;margin-top:.16cqw;font-size:1.08cqw;font-weight:800;display:block;overflow:hidden}.invoice-services{z-index:1;margin-top:2.4cqw;position:relative}.invoice-section-heading{justify-content:space-between;align-items:flex-end;gap:2cqw;margin-bottom:1cqw;display:flex}.invoice-section-heading span,.invoice-section-heading small{display:block}.invoice-section-heading span{color:#153f67;letter-spacing:.09em;font-size:1.2cqw;font-weight:950}.invoice-section-heading small{color:#84939e;margin-top:.35cqw;font-size:1cqw;font-weight:650}.invoice-section-heading>b{color:#618092;white-space:nowrap;font-size:1.08cqw;font-weight:800}.invoice-table-wrap{background:#fff;border:.1cqw solid #d3e2e8;border-radius:1.25cqw;overflow:hidden}.invoice-table{table-layout:fixed;border-collapse:collapse;color:#2a4358;width:100%;font-size:1.4cqw}.invoice-table th,.invoice-table td{overflow-wrap:anywhere;vertical-align:middle}.invoice-table th{color:#174a6a;letter-spacing:.035em;text-align:left;text-transform:uppercase;background:#eaf4f6;padding:1.05cqw .7cqw;font-size:1.12cqw;font-weight:950}.invoice-table td{border-top:.08cqw solid #e2ebef;height:3.75cqw;padding:.9cqw .7cqw;line-height:1.3}.invoice-table tbody tr:nth-child(2n){background:#fbfdfe}.invoice-table th:first-child,.invoice-table td:first-child{text-align:center;width:5%}.invoice-table th:nth-child(2),.invoice-table td:nth-child(2){color:#173b58;width:33%;font-weight:780}.invoice-table th:nth-child(3),.invoice-table td:nth-child(3){text-align:center;width:12%}.invoice-table th:nth-child(4),.invoice-table td:nth-child(4){text-align:center;width:10%}.invoice-table th:nth-child(5),.invoice-table td:nth-child(5){text-align:center;width:8%}.invoice-table th:nth-child(6),.invoice-table td:nth-child(6){text-align:right;width:14%}.invoice-table th:nth-child(7),.invoice-table td:nth-child(7){text-align:right;white-space:nowrap;width:18%;padding-right:1.1cqw}.invoice-settlement{z-index:1;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:stretch;gap:2.2cqw;margin-top:2.4cqw;display:grid;position:relative}.invoice-payment-card{background:#fbfdfe;border:.1cqw solid #dce7eb;border-radius:1.3cqw;padding:1.6cqw 1.8cqw}.invoice-payment-card dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:1cqw 1.8cqw;margin:1.05cqw 0 0;display:grid}.invoice-payment-card dt,.invoice-payment-card dd{margin:0}.invoice-payment-card dt{color:#81919e;font-size:1.02cqw;font-weight:750}.invoice-payment-card dd{color:#28475e;margin-top:.28cqw;font-size:1.2cqw;font-weight:800}.invoice-payment-card p{color:#64798a;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:1.1cqw 0 0;font-size:1.1cqw;line-height:1.45;display:-webkit-box;overflow:hidden}.invoice-totals{background:#fff;border:.1cqw solid #cfe0e5;border-radius:1.3cqw;overflow:hidden}.invoice-totals>div{border-bottom:.08cqw solid #e2ebef;justify-content:space-between;align-items:center;gap:1cqw;min-height:2.7cqw;padding:.52cqw 1.25cqw;font-size:1.16cqw;display:flex}.invoice-totals>div:last-child{border-bottom:0}.invoice-totals span{color:#697f90;font-weight:700}.invoice-totals b,.invoice-totals strong{color:#1e425e;white-space:nowrap;font-weight:850}.invoice-totals .invoice-total-payable{background:#eaf4f6;padding-top:.85cqw;padding-bottom:.85cqw}.invoice-totals .invoice-total-payable span,.invoice-totals .invoice-total-payable strong{color:#0a4671;font-size:1.24cqw;font-weight:950}.invoice-totals .invoice-total-due span,.invoice-totals .invoice-total-due strong{color:#a03d4c;font-size:1.2cqw;font-weight:950}.invoice-document-note{z-index:1;color:#56756f;background:#f2f8f7;border-radius:.9cqw;align-items:center;gap:.8cqw;margin-top:1.7cqw;padding:.9cqw 1.15cqw;font-size:1.06cqw;font-weight:700;line-height:1.35;display:flex;position:relative}.invoice-document-note svg{color:#0a9290;flex:none}.invoice-signatures{z-index:1;grid-template-columns:repeat(2,16cqw);justify-content:space-between;margin-top:6.2cqw;display:grid;position:relative}.invoice-signatures div{color:#61788a;text-align:center;font-size:1.05cqw;font-weight:750}.invoice-signatures i{border-top:.1cqw solid #8093a0;margin-bottom:.6cqw;display:block}.invoice-footer{z-index:1;color:#fff;background:linear-gradient(100deg,#082e64,#0a4d79 62%,#087f82);grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr);align-items:center;gap:2.5cqw;margin:auto -4.6cqw -3.6cqw;padding:2.4cqw 4.6cqw 2.5cqw;display:grid;position:relative}.invoice-footer strong,.invoice-footer span{display:block}.invoice-footer>div:first-child strong{font-size:1.28cqw;font-weight:900}.invoice-footer>div:first-child span{color:#ffffffb8;margin-top:.4cqw;font-size:1.02cqw;font-weight:600;line-height:1.35}.invoice-contact{text-align:right}.invoice-contact span{color:#ffffffad;text-transform:uppercase;font-size:.88cqw;font-weight:750}.invoice-contact strong{margin-top:.45cqw;font-size:1.2cqw;font-weight:900}.dense-sheet .invoice-page{padding-top:3.25cqw}.dense-sheet .invoice-header{padding-bottom:2cqw}.dense-sheet .invoice-title-band,.dense-sheet .invoice-meta-grid,.dense-sheet .invoice-services,.dense-sheet .invoice-settlement{margin-top:1.45cqw}.dense-sheet .invoice-meta-grid{margin-bottom:1.45cqw}.dense-sheet .invoice-table td{height:2.85cqw;padding-top:.5cqw;padding-bottom:.5cqw;font-size:1.2cqw}.dense-sheet .invoice-payment-card,.dense-sheet .invoice-totals{font-size:.94cqw}.dense-sheet .invoice-signatures{margin-top:4.6cqw}.invoice-sheet.share-export{aspect-ratio:auto!important;height:auto!important;min-height:0!important;margin:0!important;overflow:visible!important}.invoice-sheet.share-export .invoice-page{min-height:0;padding-bottom:0;height:auto!important;overflow:visible!important}.invoice-sheet.share-export .invoice-footer{margin-top:2cqw;margin-bottom:0}.preview-note{color:#68778a;gap:7px;margin-top:9px;font-size:10px;line-height:1.45}.preview-note svg{color:var(--teal-700);flex:none}.modal-backdrop{z-index:80;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#061d3794;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-card{background:#fff;border:1px solid #ffffff85;border-radius:20px;flex-direction:column;width:min(100%,880px);max-height:min(88vh,900px);display:flex;overflow:hidden;box-shadow:0 30px 90px #02193257}.history-modal{width:min(100%,820px)}.modal-header{border-bottom:1px solid var(--soft-line);flex:none;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;display:flex}.modal-header h2{font-size:21px}.modal-content{min-height:0;padding:18px 20px 22px;overflow-y:auto}.search-box{margin-bottom:14px;display:block;position:relative}.search-box svg{z-index:1;color:#8390a0;position:absolute;top:50%;left:13px;transform:translateY(-50%)}.search-box input{height:45px;padding:0 13px 0 42px;font-size:13px}.invoice-history{gap:8px;display:grid}.history-item{border:1px solid var(--soft-line);background:#fbfcfd;border-radius:12px;grid-template-columns:40px minmax(0,1fr) auto auto 32px;align-items:center;gap:10px;padding:11px;display:grid}.history-icon{width:38px;height:38px;color:var(--teal-700);background:#eaf5f5;border-radius:10px;place-items:center;display:grid}.history-main,.history-amount{min-width:0}.history-main strong,.history-main span,.history-main small,.history-amount strong,.history-amount span{display:block}.history-main strong{color:var(--navy-950);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.history-main span,.history-main small{color:#748195;margin-top:2px;font-size:9px}.history-amount{text-align:right;min-width:95px}.history-amount strong{color:var(--navy-900);font-size:12px}.history-amount span{margin-top:2px;font-size:9px;font-weight:750}.history-amount .due{color:#a34150}.history-amount .paid{color:#3a7a38}.small-button{min-height:33px;color:var(--teal-700);background:#fff;border:1px solid #cfe0e5;border-radius:9px;padding:0 12px;font-size:10px;font-weight:820}.empty-state{color:#8a96a5;text-align:center;align-content:center;place-items:center;gap:10px;min-height:220px;display:grid}.empty-state p{margin:0;font-size:12px}.settings-content{background:#f7f9fa;gap:14px;display:grid}.settings-block{border:1px solid var(--soft-line);background:#fff;border-radius:14px;padding:16px}.settings-block-title{color:var(--teal-700);align-items:flex-start;gap:10px;margin-bottom:14px}.settings-block-title svg{flex:none;margin-top:1px}.settings-block-title h3{color:var(--navy-950);margin:0;font-size:13px;font-weight:830}.print-settings-grid{max-width:620px}.a4-settings-note{max-width:620px;color:var(--teal-700);background:#f5fafb;border:1px solid #d6e6e9;border-radius:12px;align-items:center;gap:12px;padding:13px 14px;display:flex}.a4-settings-note svg{flex:none}.a4-settings-note strong,.a4-settings-note span{display:block}.a4-settings-note strong{color:var(--navy-900);font-size:12px;font-weight:850}.a4-settings-note span{color:#687c8c;margin-top:3px;font-size:10px;line-height:1.45}.range-input{accent-color:var(--teal-600)}.check-field{cursor:pointer;background:#f6fbf9;border:1px solid #d9e9e4;border-radius:11px;align-items:flex-start;gap:10px;margin:12px 0;padding:11px 12px;display:flex}.check-field input{width:17px;height:17px;accent-color:var(--teal-600);flex:none;margin:1px 0 0}.check-field b,.check-field small{display:block}.check-field b{color:#395348;font-size:11px}.check-field small{color:#718277;margin-top:3px;font-size:9px;line-height:1.4}.setup-details{border:1px solid var(--soft-line);background:#fbfcfd;border-radius:11px}.setup-details summary{color:#526176;cursor:pointer;padding:11px 12px;font-size:11px;font-weight:800}.setup-details[open]{padding-bottom:12px}.setup-details[open] summary{border-bottom:1px solid var(--soft-line)}.setup-details ol{color:#627084;margin:12px 20px 12px 36px;padding:0;font-size:10px;line-height:1.7}.setup-details .secondary-button{margin-left:12px}.secret-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:11px;display:grid}.backup-actions{flex-wrap:wrap;gap:8px}.visually-hidden{clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}.toast{z-index:120;color:#fff;background:#123d3b;border:1px solid #9dd3c1b3;border-radius:12px;align-items:center;gap:8px;max-width:min(360px,100vw - 28px);min-height:45px;padding:9px 14px;font-size:11px;font-weight:750;animation:.18s ease-out toast-in;display:flex;position:fixed;bottom:22px;right:22px;box-shadow:0 16px 40px #05282647}.spin{animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (width<=1240px){.workspace{grid-template-columns:minmax(560px,700px) minmax(430px,1fr);gap:22px}.line-head,.line-item{grid-template-columns:minmax(185px,2.2fr) 70px 58px 50px 78px 83px 32px;gap:6px}}@media (width<=1080px){.workspace{grid-template-columns:minmax(0,1fr);width:min(100%,860px)}.preview-column{position:static}.sheet-stage{min-height:560px}.sync-chip span{display:none}}@media (width<=760px){.topbar{min-height:64px;padding:8px 12px}.brand-logo-image{width:92px;height:47px}.brand-lockup>div{display:none}.brand-lockup strong{max-width:150px;font-size:13px}.brand-lockup span,.sync-chip,.ghost-button span,.language-toggle>svg{display:none}.topbar-actions{gap:5px}.language-toggle{padding-left:4px}.ghost-button{justify-content:center;width:38px;padding:0}.ghost-button b{border:1px solid #fff;min-width:16px;height:16px;margin:-24px -24px 0 0;font-size:8px;position:absolute}.workspace{gap:20px;padding:18px 12px 40px}.editor-heading{align-items:flex-end}.editor-heading h1{font-size:23px}.editor-heading .secondary-button{color:#0000;white-space:nowrap;width:40px;min-width:40px;padding:0;overflow:hidden}.editor-heading .secondary-button svg{color:#394960;position:absolute}.form-section{border-radius:15px;padding:15px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.patient-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%;overflow:hidden}.patient-grid>*{width:100%;min-width:0;max-width:100%}.patient-grid .span-2,.patient-grid .span-3{grid-column:1/-1!important}.patient-grid input,.patient-grid select,.patient-grid textarea{width:100%;min-width:0;max-width:100%;display:block}.span-3{grid-column:span 2}.field input,.field select,.field textarea,.line-field input,.line-field select,.search-box input{font-size:16px;max-width:100%!important}.field input[type=date]{letter-spacing:-.01em;font-size:15px;line-height:42px;padding-inline:5px!important}.payment-fields .form-grid{width:100%;max-width:100%;overflow:hidden}.payment-fields .field.span-2{grid-column:1/-1}.line-head{display:none}.line-item{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 12px}.mobile-line-index{width:23px;height:23px;color:var(--teal-700);background:#edf5f6;border-radius:7px;place-items:center;font-size:8px;font-weight:900;display:grid;position:absolute;top:10px;right:10px}.line-field>span,.line-amount>span{color:#68768a;margin-bottom:5px;font-size:9px;font-weight:800;display:block}.service-field{grid-column:span 2;padding-right:29px}.line-amount{text-align:left;align-self:end;min-height:40px}.line-amount strong{background:#f1f7f8;border:1px solid #dce5eb;border-radius:10px;min-height:38px;padding:10px;font-size:13px}.line-item .remove-line{position:absolute;bottom:18px;right:40px}.payment-layout{grid-template-columns:minmax(0,1fr)}.action-bar{border-radius:14px;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px;display:grid;bottom:8px}.save-location-note{margin-left:2px;margin-right:2px;font-size:10px}.share-action{min-width:0}.primary-button,.action-button{white-space:normal;flex-direction:column;gap:3px;min-width:0;min-height:48px;padding:5px 3px;font-size:8px;line-height:1.15}.preview-toolbar{align-items:flex-end}.print-mode-toggle button{min-width:34px;padding:0 7px;font-size:0}.sheet-stage{border-radius:15px;min-height:0;padding:10px}.modal-backdrop{align-items:end;padding:0}.modal-card{border-radius:20px 20px 0 0;width:100%;max-height:94vh}.modal-header,.modal-content{padding-left:14px;padding-right:14px}.history-item{grid-template-columns:38px minmax(0,1fr) auto 32px}.history-amount{display:none}.history-item .small-button{grid-column:2/4;width:fit-content}.settings-block{padding:13px}.settings-content .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-content .span-2{grid-column:1/-1}.secret-row{grid-template-columns:minmax(0,1fr)}.toast{bottom:82px;right:14px}}@media (width<=420px){.brand-lockup strong{max-width:112px}.brand-lockup span{display:none}.patient-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-grid .span-2,.patient-grid .span-3{grid-column:1/-1!important}.form-section{padding:13px}.section-title p{font-size:10px}.action-bar{margin-left:-4px;margin-right:-4px}}@media print{@page{size:A4 portrait;margin:0}html,body,.app-shell{background:#fff!important;width:210mm!important;min-width:0!important;height:297mm!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}.topbar,.editor-column,.preview-toolbar,.preview-note,.modal-backdrop,.toast{display:none!important}.workspace,.preview-column,.sheet-stage{width:210mm!important;min-width:0!important;max-width:none!important;height:297mm!important;min-height:0!important;box-shadow:none!important;background:#fff!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;display:block!important;overflow:hidden!important}.preview-column{position:static!important}.invoice-sheet{-webkit-print-color-adjust:exact;print-color-adjust:exact;aspect-ratio:auto!important;width:210mm!important;max-width:none!important;height:297mm!important;box-shadow:none!important;border:0!important;margin:0!important;position:fixed!important;top:0!important;left:0!important;overflow:hidden!important}.invoice-page{width:210mm!important;height:297mm!important;min-height:297mm!important}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
