/* Calm financial workspaces; wide sheets scroll within their own frames. */
.pgd-main .pgds-surface{padding:0;overflow:hidden}.pgds-toolbar{padding:27px 28px 19px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.pgds-toolbar h2{font-size:25px!important;margin:0 0 8px!important}.pgds-toolbar p{font-size:12px!important;line-height:1.8;color:#6b778b;margin:0}.pgds-toolbar-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:15px}.pgds-lock{display:block;color:#657285}.pgds-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;padding:0 28px 16px}.pgds-filters label{display:flex;flex-direction:column;gap:7px;min-width:120px}.pgds-filters label:first-child{flex:1;min-width:180px}.pgds-filters span{font-size:11px;color:#526079;font-weight:600}.pgds-filters input{padding:10px 12px;border:1px solid #d6deea;border-radius:6px;background:#fff;color:#223149;min-height:42px;width:100%;font-size:13px}.pgds-sheet-note{padding:0 28px 18px;margin:0!important;font-size:12px!important;line-height:1.85!important;color:#617088}.pgds-scroll{overflow:auto;max-height:590px;overscroll-behavior:contain;border-block:1px solid #dce3ee;background:#fff;scrollbar-color:#b7c3d7 #f4f6fa}.pgds-sheet{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:12px}.pgds-sheet thead{position:sticky;top:0;z-index:3}.pgds-sheet th{font-weight:600;color:#4f5f77;background:#edf2f8;font-size:11px;white-space:nowrap;text-align:left;padding:13px 12px;border-right:1px solid #dce3ee;border-bottom:1px solid #dce3ee;min-width:145px}.pgds-sheet thead th:first-child{width:64px;min-width:64px}.pgds-sheet tbody th{position:sticky;left:0;z-index:2;width:64px;min-width:64px;background:#f2f5f9;color:#8390a5;font-size:11px}.pgds-sheet thead th:first-child{position:sticky;left:0;z-index:4}.pgds-sheet td{padding:0;border-right:1px solid #e3e8ef;border-bottom:1px solid #e3e8ef;min-width:145px;background:#fff}.pgds-sheet tr:nth-child(even) td{background:#fafbfd}.pgds-sheet input,.pgds-sheet select{border:0;border-radius:0;background:transparent;color:#233248;padding:13px 12px;outline:none;min-height:49px;width:100%;max-width:none;font-size:12px;box-shadow:none!important;min-width:145px}.pgds-sheet input:focus,.pgds-sheet select:focus{outline:2px solid #c15899;outline-offset:-2px;background:#fff6fc}.pgds-sheet .pgds-col-title,.pgds-sheet .pgds-col-name,.pgds-sheet .pgds-col-address,.pgds-sheet .pgds-col-notes{width:250px;min-width:250px}.pgds-col-title input,.pgds-col-name input,.pgds-col-address input,.pgds-col-notes input{min-width:250px}.pgds-sheet .pgds-col-income input,.pgds-sheet .pgds-col-expense input,.pgds-sheet .pgds-col-tax_amount input{font-variant-numeric:tabular-nums;text-align:right}.pgds-sheet .pgds-calculated{background:#eef6f3!important;color:#2b6754;min-width:190px;width:190px;padding:12px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.pgds-sheet .pgds-row-state{min-width:225px;width:225px;padding:9px 10px}.pgds-row-state span{display:block;max-width:205px;font-size:10px;color:#478272;line-height:1.6;margin-bottom:4px}.pgds-row-state span.is-error,.pgds-bottom .is-error{color:#ac4155}.pgds-row-state button,.pgdi-items button{border:0;background:transparent;padding:4px 10px;cursor:pointer;color:#8090a6;font-size:18px}.pgds-row-state button:last-child{color:#ac596c}.pgds-empty{padding:35px!important;color:#7c899b}.pgds-bottom{padding:16px 28px;display:flex;justify-content:space-between;align-items:center;gap:15px}.pgds-bottom>p{font-size:11px;margin:0;line-height:1.7}.pgds-bottom .pgd-pagination{gap:12px}.pgds-bottom .pgd-pagination span{font-size:11px}.pgds-import{position:relative;cursor:pointer;white-space:nowrap}.pgds-import input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.pgds-import:focus-within{outline:2px solid #c15899;outline-offset:4px}.pgds-import-help{padding:0 28px 20px;font-size:12px;color:#63748c;line-height:1.8}.pgds-import-help summary{cursor:pointer}.pgds-month-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.pgds-month-stats div:last-child{grid-column:1/-1;border-top:1px solid #e3e8ee;padding-top:18px}.pgds-month-stats span{display:block;color:#708099;font-size:12px;margin-bottom:8px}.pgds-month-stats strong{font-size:25px;font-variant-numeric:tabular-nums}.pgds-month-stats div:last-child strong{font-size:33px}.pgds-category-chart{display:grid;gap:19px;margin-top:25px}.pgds-category-chart>div{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:12px;color:#617088}.pgds-category-chart strong{color:#25364f;font-size:12px}.pgds-category-chart i{grid-column:1/-1;height:5px;background:#edf1f6;border-radius:5px;overflow:hidden}.pgds-category-chart b{display:block;height:100%;background:#a76791;border-radius:5px}.pgdi-billing{margin:25px 0;padding:23px 0;border-block:1px solid #e0e5ed}.pgdi-billing summary{cursor:pointer;color:#33455f;font-size:14px;font-weight:600}.pgdi-billing>p{font-size:12px!important;color:#76839a}.pgdi-billing .pgd-form-grid{margin-top:20px}.pgdi-items-scroll{overflow:auto;margin:15px 0 25px}.pgdi-items{border-collapse:collapse;min-width:650px;width:100%;font-size:12px}.pgdi-items th{font-size:11px;color:#65758d;background:#f1f4f8;text-align:left;padding:12px}.pgdi-items td{border-bottom:1px solid #dde4ed;padding:10px 6px}.pgdi-items th:first-child{width:45%}.pgdi-items td input{width:100%;padding:11px;border:1px solid #d6deea;border-radius:5px;background:#fff;color:#263750;font-size:13px;min-height:43px}.pgdi-items td:nth-child(2){width:90px}.pgdi-items td:nth-child(3){width:120px}.pgdi-items output{display:block;white-space:nowrap;padding:10px;color:#566781}.pgdi-calculation{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:32px}.pgdi-calculation #pgdi-totals{background:#f1f5fa;border-radius:10px;padding:23px;height:max-content}.pgdi-calculation #pgdi-totals>div{display:flex;justify-content:space-between;gap:15px;font-size:12px;line-height:2.8;color:#6e7d94}.pgdi-calculation #pgdi-totals strong{color:#263750}.pgdi-grand-total{border-top:1px solid #dbe3ed;margin-top:10px;padding-top:10px;font-size:17px!important}.pgdi-calculation #pgdi-totals small{display:block;font-size:10px;color:#78869b;line-height:1.7;margin-top:13px}.pgdi-brand-note{font-size:12px!important;line-height:1.8!important;background:#f8f5fa;padding:15px 18px;border-radius:7px;color:#6d6080;margin:25px 0!important}.pgdi-brand-note button{display:block;margin-top:7px}.pgdi-business-brand{margin-top:13px;padding-top:25px;border-top:1px solid #e1e6ef}.pgdi-business-brand h3{font-size:20px!important}.pgdi-business-brand p{font-size:12px!important;color:#718098}.pgdi-logo-field{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin:25px 0}.pgdi-logo-field>img{width:90px;height:90px;object-fit:contain;background:#f4f6fa;border-radius:8px;padding:10px}.pgdi-logo-field>.pgd-field{flex:1;min-width:180px}.pgdi-logo-field input{font-size:12px!important}.pgdi-preview-head{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:30px 0 20px}.pgdi-preview-head>div{flex:1}.pgdi-preview-head h2{font-size:26px!important;margin:10px 0!important}.pgdi-paper{background:#fff;color:#25364e;max-width:900px;margin:0 auto 30px;padding:clamp(25px,5vw,56px);border:1px solid #dfe5ed;border-radius:8px;box-shadow:0 8px 28px #30446108;font:13px/1.8 Arial,'Noto Sans Bengali',sans-serif}.pgdi-paper header{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:30px;padding:0 0 25px;border-bottom:2px solid #25364e}.pgdi-paper h3{font-family:inherit!important;font-size:22px!important;line-height:1.4!important;margin:15px 0 8px!important;color:#25364e!important}.pgdi-paper p{font-size:12px!important;color:#718098;line-height:1.8!important;margin:5px 0!important;overflow-wrap:anywhere}.pgdi-logo{max-width:160px;max-height:65px;object-fit:contain;object-position:left}.pgdi-paper header>div:last-child{text-align:right}.pgdi-paper header>div:last-child>*{display:block}.pgdi-document-title{font-size:24px;letter-spacing:.04em;font-weight:700;margin-bottom:10px}.pgdi-parties{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:30px;margin:30px 0}.pgdi-parties>div:last-child{text-align:right}.pgdi-parties small,.pgdi-parties strong{display:block}.pgdi-parties small{color:#8e99ab;font-size:10px;letter-spacing:.06em;margin-top:10px}.pgdi-paper-table{overflow:auto}.pgdi-paper table{border-collapse:collapse;width:100%;min-width:470px;font-size:12px}.pgdi-paper th{background:#f2f5f9;padding:13px 10px;text-align:right;color:#718098;font-size:10px;white-space:nowrap}.pgdi-paper td{padding:14px 10px;border-bottom:1px solid #e3e8ef;text-align:right}.pgdi-paper td:first-child,.pgdi-paper th:first-child{text-align:left;min-width:200px}.pgdi-paper-totals{margin:25px 0 30px 40%;min-width:200px}.pgdi-paper .pgdi-paper-totals p{display:flex;justify-content:space-between;gap:15px;margin:9px 0!important}.pgdi-paper-totals strong{color:#25364e;white-space:nowrap}.pgdi-paper .pgdi-due{border-top:1px solid #dce3ec;padding-top:15px;font-size:18px!important;color:#25364e!important}.pgdi-paper section{margin-top:20px}.pgdi-paper footer{border-top:1px solid #e4e9f0;margin-top:30px;padding-top:20px;color:#8995a7;font-size:11px}
@media(max-width:1050px){.pgds-toolbar{flex-direction:column}.pgds-toolbar-actions{justify-content:flex-start}.pgdi-calculation{grid-template-columns:1fr}.pgds-bottom{flex-direction:column;align-items:flex-start}}
@media(max-width:600px){.pgds-toolbar{padding:22px 18px 17px}.pgds-filters{padding:0 18px 16px;gap:12px}.pgds-filters label:first-child{flex-basis:100%}.pgds-filters label{flex:1;min-width:0}.pgds-filters .pgd-text-button{flex-basis:100%;text-align:left}.pgds-sheet-note{padding:0 18px 17px}.pgds-bottom{padding:16px 18px}.pgds-bottom .pgd-pagination{flex-wrap:wrap}.pgds-import-help{padding:0 18px 18px}.pgds-month-stats strong{font-size:21px}.pgds-month-stats div:last-child strong{font-size:29px}.pgdi-calculation{gap:20px}.pgdi-logo-field{align-items:flex-start}.pgdi-logo-field>.pgd-field{flex-basis:100%}.pgdi-parties,.pgdi-paper header{gap:15px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.pgdi-document-title{font-size:20px}.pgdi-paper-totals{margin-left:10%;min-width:0}.pgdi-paper h3{font-size:18px!important}}
/* 3.19.0 — owner equity, review prompt and change history */
.pgds-month-stats small{display:block;margin-top:6px;font-size:11px;color:#8090a6;line-height:1.4}
.pgds-review{margin:16px 0 0;padding:14px 16px;border-radius:10px;background:#fff8e6;border:1px solid #f0d9a0;color:#5c4a17;font-size:13px;line-height:1.55}
.pgds-review strong{display:block;margin-bottom:4px;color:#3f3209}
.pgds-row-state button[data-sheet-row-history]{font-size:16px}
.pgds-history{width:min(980px,calc(100vw - 32px));max-height:min(86vh,820px);padding:0;border:1px solid #e1e5ed;border-radius:14px;box-shadow:0 30px 80px rgba(20,28,45,.28);color:#202b3e;background:#fff}
.pgds-history::backdrop{background:rgba(16,22,36,.55)}
.pgds-history[open]{display:flex;flex-direction:column}
.pgds-history-head{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;padding:24px 26px 16px;border-bottom:1px solid #e1e5ed}
.pgds-history-head h2{margin:6px 0 6px;font-size:22px}
.pgds-history-head p{margin:0;color:#68758a;font-size:13px}
.pgds-history-body{overflow:auto;padding:8px 26px 4px;flex:1;min-height:120px}
.pgds-history .pgd-pagination{padding:12px 26px 20px;border-top:1px solid #e1e5ed}
.pgds-history-table{width:100%;border-collapse:collapse;font-size:13px}
.pgds-history-table th{position:sticky;top:0;background:#f7f8fc;text-align:left;font-weight:600;padding:10px 12px;color:#4a5670;white-space:nowrap}
.pgds-history-table td{padding:11px 12px;border-top:1px solid #eef1f5;vertical-align:top;font-variant-numeric:tabular-nums}
.pgds-history-table td:nth-child(4){min-width:220px}
.pgds-history :focus-visible{outline:2px solid #b00065;outline-offset:2px}
@media(max-width:600px){.pgds-history{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;margin:0}.pgds-history-head{padding:18px 16px 12px}.pgds-history-body{padding:6px 12px}.pgds-history .pgd-pagination{padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px))}}
/* 3.19.0 — keep the history dialog independent of global site styles */
.pgds-history[open]{position:fixed!important;inset:0!important;margin:auto!important;height:auto;opacity:1!important;visibility:visible!important;transform:none!important}
.pgds-history,.pgds-history h2,.pgds-history td,.pgds-history th{color:#202b3e!important}
.pgds-history-head h2{font-size:22px!important;line-height:1.2!important}
.pgds-history-head p{color:#68758a!important}
.pgds-history .pgd-kicker{color:#b00065!important}
@media(max-width:600px){.pgds-history[open]{margin:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important}
 .pgds-month-stats{gap:16px}.pgds-month-stats>div{min-width:0}.pgds-month-stats strong{font-size:clamp(15px,4.4vw,21px)!important;white-space:nowrap}
 .pgds-month-stats div:last-child strong{font-size:clamp(22px,7vw,29px)!important}}
.pgds-history[open]{height:fit-content}
.pgds-history [data-history-close]{white-space:nowrap;flex:0 0 auto}
