:root{--bg:#f6f6ef;--paper:#fffefd;--ink:#182f29;--muted:#546861;--line:#dce4d9;--green:#174f43;--soft:#e7efe6;--gold:#eab66f;--danger:#922e30;font-family:"Noto Sans Bengali","Noto Sans",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}a{color:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}
.top{display:flex;justify-content:space-between;align-items:center;padding:.9rem max(1rem,calc((100vw - 1110px)/2));background:var(--paper);border-bottom:1px solid var(--line);min-height:68px;gap:1rem}.brand{display:inline-flex;align-items:center;gap:.65rem;text-decoration:none;font-weight:780;line-height:1.2}.brand img{width:36px;height:36px}.brand small{display:block;font-size:.69rem;color:var(--muted);font-weight:500;margin-top:.18rem}
main{width:min(1110px,100% - 2rem);margin:1.5rem auto 4rem}.narrow{max-width:540px}.hero{background:var(--green);color:white;border-radius:20px;padding:clamp(1.25rem,4vw,2.65rem);margin-bottom:1.2rem}.hero p{color:#d7e9db;margin:.45rem 0 0}.hero .eyebrow{color:#f5d59d}.hero .eyebrow a{color:inherit}.eyebrow{font-size:.82rem;font-weight:670}
h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.7rem,5vw,2.6rem);line-height:1.2;margin-bottom:.35rem}h2{font-size:1.28rem;margin-bottom:.85rem}h3{font-size:1.02rem;margin-bottom:.4rem}p{line-height:1.6}.muted,small{color:var(--muted)}.compact{margin:.5rem 0 0}.section{margin-top:1.25rem}.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:1.1rem;min-width:0}.projects,.metrics,.grid,.actions{display:grid;gap:.8rem}.projects,.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.actions{grid-template-columns:repeat(4,minmax(0,1fr))}.project-card{display:block;text-decoration:none;padding:1.35rem}.project-card p{margin-bottom:.5rem}.project-card strong{color:var(--green)}.metric strong{display:block;font-size:clamp(1.12rem,3vw,1.55rem);margin-top:.35rem;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.metric:first-child{background:var(--soft)}.negative,.error{color:var(--danger)}.metric span{font-size:.88rem;color:var(--muted)}.nav{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1rem}.nav a,.button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border-radius:10px;border:1px solid var(--line);text-decoration:none;padding:.58rem .85rem;min-height:42px;background:white;color:var(--green);font-weight:650}.nav a[aria-current],.primary{background:var(--green);border-color:var(--green);color:white}.button.small{padding:.35rem .65rem;min-height:36px;font-size:.84rem}.actions .button{min-height:50px}.heading{display:flex;justify-content:space-between;align-items:center;gap:.7rem;flex-wrap:wrap}.heading h2{margin-bottom:0}
form label{display:grid;gap:.27rem;font-size:.9rem;font-weight:600;min-width:0}input,select,textarea{min-width:0;width:100%;border:1px solid #aebfb4;background:white;border-radius:8px;padding:.56rem;color:var(--ink);min-height:44px}input[type=checkbox]{width:auto;min-height:auto}input:focus,button:focus-visible,a:focus-visible,select:focus,textarea:focus{outline:2px solid #237b62;outline-offset:2px}textarea{resize:vertical}form .grid{margin-bottom:.8rem}.form-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-top:.85rem}.line{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:.55rem;align-items:end;padding:.65rem 0;border-bottom:1px solid var(--line)}.line:has(label[hidden]){grid-template-columns:2fr 1fr 1fr auto}.line [hidden]{display:none}.line button{align-self:end}.number{font-variant-numeric:tabular-nums;white-space:nowrap}.pill{display:inline-block;border-radius:999px;padding:.18rem .6rem;background:var(--soft);color:var(--green);font-size:.76rem}.warning{background:#fff4df;border:1px solid #ead8ae;padding:.65rem .85rem;border-radius:9px}.table-wrap{overflow:auto;margin-top:.7rem}table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}th,td{padding:.58rem .55rem;border-bottom:1px solid var(--line);vertical-align:top}th{background:var(--soft);white-space:nowrap}tr:last-child td{border-bottom:0}.entry-row{display:flex;justify-content:space-between;gap:.75rem;padding:.7rem 0;border-bottom:1px solid var(--line);align-items:center}.entry-row:last-child{border-bottom:0}.entry-row p{margin:0}.entry-row small{display:block}.entry-row>div:last-child{text-align:right}.filters{display:flex;gap:.55rem;align-items:end;flex-wrap:wrap}.filters label{display:grid;gap:.25rem;font-size:.82rem}.filters input,.filters select{width:auto}.list{padding-left:1.2rem;margin:.5rem 0 0;line-height:1.6}.check-row{display:flex;gap:.6rem;padding:.65rem 0;border-bottom:1px solid var(--line);align-items:center}.check-row:last-child{border-bottom:0}.check-row input{min-height:auto}
#notice:empty,#print-view{display:none}#notice:not(:empty){max-width:1110px;margin:1rem auto 0;padding:.65rem 1rem;background:var(--soft);border:1px solid var(--line);border-radius:10px}#notice.error{background:#fff1ed;border-color:#ecc6be}#print-view.open{display:block;width:min(860px,100% - 2rem);margin:1rem auto 4rem}.invoice{background:white;color:#202923;border:1px solid #cddacf;border-radius:8px;padding:clamp(.8rem,4vw,2rem)}.invoice header{text-align:center;background:#e1eddd;padding:1rem}.invoice header h2{font-family:Georgia,serif;font-size:1.8rem;margin:0}.invoice td,.invoice th{font-size:.83rem}.invoice .summary{margin-top:1rem;margin-left:auto;max-width:20rem}.invoice .summary p{display:flex;justify-content:space-between;margin:.2rem 0}.invoice .bill-total{background:var(--green);color:white;padding:.5rem}.invoice-tools{display:flex;gap:.5rem;margin-bottom:1rem}.no-print{margin-top:.6rem}
@media(max-width:760px){.metrics,.actions{grid-template-columns:repeat(2,minmax(0,1fr))}.line,.line:has(label[hidden]){grid-template-columns:1fr 1fr;gap:.45rem}.line label:first-child{grid-column:1/-1}.line button{justify-self:start}.projects{grid-template-columns:1fr}#notice:not(:empty){margin-left:1rem;margin-right:1rem}}
@media(max-width:435px){.grid{grid-template-columns:1fr}.nav a{font-size:.83rem;padding:.45rem .65rem}.card{padding:.9rem}.top{padding:.75rem 1rem}.heading h2{font-size:1.13rem}}
@page{size:A4;margin:12mm}@media print{body{background:white}.top,#notice,#app,.invoice-tools,.no-print{display:none!important}#print-view.open{display:block;width:100%;margin:0}.invoice{border:0;padding:0}.invoice header,.invoice th,.invoice .bill-total{print-color-adjust:exact;-webkit-print-color-adjust:exact}.table-wrap{overflow:visible}thead{display:table-header-group}tr{break-inside:avoid}}

/* Workbook view */
.workbook{max-width:1200px;width:calc(100% - 2rem);margin-top:1rem}
.sheet-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.25rem 1rem;padding:.45rem 0}
.sheet-heading h1{margin:0;font-size:clamp(1.3rem,4vw,1.8rem)}
.sheet-heading small{font-size:.8rem;font-weight:550}
.sheet-heading p{margin:0;color:var(--muted);font-size:.77rem}
.sheet-tabs{flex-wrap:nowrap;overflow:auto;gap:0;border-bottom:1px solid #abc0b4;margin:.65rem 0 1rem;padding:0 0 2px;scrollbar-width:thin}
.sheet-tabs a{flex:none;min-height:36px;border-radius:7px 7px 0 0;padding:.42rem .73rem;border-color:transparent;background:transparent;white-space:nowrap}
.sheet-tabs a[aria-current]{background:#dcecdf;border:1px solid #abc0b4;border-bottom:2px solid #2d7047;color:#194b34}
.workbook h2{font-size:1rem;margin-bottom:.35rem}
.sheet-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
.sheet-panels .table-wrap{margin-top:0}
.sheet-table{min-width:100%;background:#fff;border:1px solid #c2d2c7;font-size:.86rem}
.sheet-table th,.sheet-table td{border:1px solid #c4d5cb;padding:.48rem .55rem;vertical-align:middle}
.sheet-table tr:last-child th,.sheet-table tr:last-child td{border-bottom:1px solid #c4d5cb}
.sheet-table thead th{background:#38751d;color:white;border-color:#679054}
.sheet-table.blue thead th{background:#29598d;border-color:#5382a9}
.sheet-table tbody th{background:#edf5ed;font-weight:550}
.sheet-table.blue tbody th{background:#e0ecf7}
.sheet-table tbody tr:nth-child(even) td{background:#f2f8f3}
.sheet-table tfoot th,.sheet-table tfoot td,.sheet-table .sheet-total th,.sheet-table .sheet-total td{background:#d5e9dc;font-weight:700}
.sheet-table.blue tfoot th,.sheet-table.blue tfoot td{background:#d5e5f5}
.sheet-table .sheet-due th,.sheet-table .sheet-due td{background:#ffe7e3}
.sheet-table .number{text-align:right}
.sheet-table td{overflow-wrap:anywhere}
.sheet-table thead th,.sheet-table .number{white-space:nowrap}
.sheet-table.input-sheet td{padding:.18rem .28rem}
.sheet-table.input-sheet select,.sheet-table.input-sheet input{border:1px solid transparent;border-radius:3px;padding:.31rem .32rem;min-height:36px;min-width:78px}
.sheet-table.input-sheet input:focus,.sheet-table.input-sheet select:focus{outline-offset:0}
.sheet-table.input-sheet select[name=product]{min-width:155px}
.sheet-table.input-sheet input[name=note],.sheet-table.input-sheet input[name=proof]{min-width:125px}
.sheet-table .sheet-remove{width:1%;padding:.15rem .3rem}
.sheet-fields{display:flex;gap:.7rem;flex-wrap:wrap;margin:.65rem 0}
.sheet-fields label{flex:0 1 210px}
.sheet-fields input{min-height:38px}
#sheet-add{margin-top:.45rem}
@media(max-width:600px){.sheet-panels{grid-template-columns:1fr}.workbook{width:calc(100% - 1.1rem)}.sheet-heading{display:block}.sheet-fields label{flex:1 1 140px}.workbook .table-wrap{overscroll-behavior-inline:contain}}

.source-toolbar,.source-pages{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
.source-toolbar h2{margin:0}
.source-file{position:absolute;width:1px;height:1px;min-height:0;opacity:0;padding:0}
.source-toolbar label:focus-within{outline:2px solid #237b62}
.source-grid-wrap{max-height:65vh;overflow:auto;overscroll-behavior-inline:contain;margin-top:.65rem;border:1px solid #bdc9c1;background:white}
.source-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:.8rem;line-height:1.25}
.source-grid th,.source-grid td,.source-grid tr:last-child td{border-right:1px solid #dce4df;border-bottom:1px solid #dce4df;padding:.32rem .45rem;min-width:68px;max-width:250px;height:27px;vertical-align:middle;white-space:pre-wrap;overflow-wrap:anywhere}
.source-grid thead{position:sticky;top:0;z-index:2;background:white}
.source-grid thead tr:first-child th,.source-grid .source-index{background:#edf2ee;color:#46564c;text-align:center;font-weight:500}
.source-grid .source-index{position:sticky;left:0;z-index:1;min-width:39px;width:39px}
.source-grid .source-first{min-width:98px}
.source-grid .source-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.source-grid .source-bold{font-weight:700}
.source-tabs{margin:.2rem 0 .65rem;border-top:1px solid #c1cfc6;border-bottom:0;padding:.3rem .2rem;background:#edf2ee}
.source-tabs button{flex:none;border-radius:4px;white-space:nowrap}
.source-tabs button[aria-current]{background:#d8ebdc;color:#164f37;border-color:#7cab8e}
.source-pages{justify-content:flex-end;color:var(--muted);font-size:.85rem}

.source-hint{margin:.42rem 0;font-size:.81rem}
.source-grid td.source-editable{background:#eef6ff}
.source-grid td.source-editable:hover,.source-grid td.source-editable:focus-within{background:#dcecff}
.source-grid td.source-calculated{background:#f2f7f3}
.source-grid td:has(.source-cell-button){padding:0}
.source-cell-button{display:block;border:0;background:none;text-align:inherit;color:inherit;font:inherit;min-height:27px;width:100%;padding:.32rem .45rem;white-space:inherit}
.source-cell-button:focus-visible{outline-offset:-2px}
.source-editor{display:flex;align-items:center;gap:.45rem;margin:.55rem 0;padding:.5rem;border:1px solid #abc0b4;background:#fff;border-radius:6px}
.source-editor strong{min-width:3.3rem;text-align:center;font-variant-numeric:tabular-nums}
.source-editor input,.source-editor select{flex:1 1 13rem;width:auto;min-height:36px;padding:.34rem .45rem}
.source-editor .button{min-height:36px}
@media(max-width:600px){.source-editor{flex-wrap:wrap}.source-editor input,.source-editor select{flex-basis:calc(100% - 4.3rem)}}

.source-filters{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap}
.source-filters label{display:grid;gap:.2rem;font-size:.78rem;font-weight:650}
.source-filters select{width:auto;min-width:124px;min-height:34px;padding:.3rem .45rem}
.source-edit-status{font-size:.78rem;min-width:4rem}
.source-grid .source-index{box-sizing:border-box;width:39px;min-width:39px;max-width:39px}
.source-grid .source-first{position:sticky;left:39px;z-index:1;background:#f7faf8}
.source-grid thead .source-first{background:#edf2ee;z-index:2}
.source-grid tfoot th,.source-grid tfoot td{background:#dcecdf;font-weight:700}
.source-grid td:has(.source-inline-input){padding:0;outline:2px solid #3677a8;outline-offset:-2px}
.source-inline-input{display:block;border:0;border-radius:0;padding:.28rem .36rem;min-height:27px;font:inherit;background:#fff;min-width:64px}
.source-inline-input:focus{outline:0}

.source-mobile-jumps{display:none}
@media(max-width:700px){
  .top{min-height:60px;gap:.45rem}
  .top .button{min-height:44px}
  .brand{gap:.45rem}
  .brand img{width:31px;height:31px}
  .workbook{margin-top:.55rem;margin-bottom:1.5rem}
  .sheet-tabs a,.source-tabs button{min-height:44px}
  .source-toolbar .button,.source-pages .button{min-height:44px}
  .source-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.32rem .55rem}
  .source-filters select{width:100%;min-width:0;min-height:44px;font-size:1rem;padding:.35rem .42rem}
  .source-edit-status{font-size:.75rem;justify-self:end;align-self:center;min-width:0}
  .source-mobile-jumps{display:flex;gap:.4rem;flex-wrap:nowrap}
  .source-mobile-jumps .button{min-height:44px;padding:.25rem .55rem}
  .source-grid-wrap{max-height:min(63vh,calc(100dvh - 180px));scroll-padding-left:98px}
  .source-grid{font-size:.83rem}
  .source-grid th,.source-grid td,.source-grid tr:last-child td{min-width:68px;height:41px}
  .source-grid thead tr:first-child th{height:26px}
  .source-grid .source-index{width:30px;min-width:30px;max-width:30px}
  .source-grid .source-first{left:30px;min-width:68px;max-width:96px;white-space:nowrap}
  .source-grid tbody .source-first .source-cell-button{font-size:.77rem}
  .source-cell-button{min-height:41px}
  .source-inline-input{min-height:41px;font-size:16px;min-width:52px}
  .source-editor input,.source-editor select,.workbook form input,.workbook form select,.workbook form textarea{font-size:16px;min-height:44px}
  .source-editor .button,.workbook form .button{min-height:44px}
  .filters{gap:.45rem}
  .filters select,.filters input{max-width:100%;min-height:44px;font-size:16px}
  .table-wrap{overscroll-behavior-inline:contain}
  .invoice-tools .button{min-height:44px}
}
@media(max-width:370px){
  .source-mobile-jumps{gap:.25rem}
  .source-mobile-jumps .button{padding:.22rem .4rem;font-size:.74rem}
}
.source-toolbar h2{margin-right:auto;color:#602f18}.source-tabs{margin:14px 0;display:flex;gap:6px;flex-wrap:nowrap;overflow:auto;padding-bottom:8px}.source-tabs button{white-space:nowrap;flex-shrink:0}.source-tabs button[aria-current=page]{background:#8e451f;color:white}.account-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px;margin:12px 0}.account-summary>div{background:#fff7e9;border:1px solid #e6d2b9;border-radius:8px;padding:10px 14px}.account-summary span,.account-summary strong{display:block}.account-summary strong{color:#395538;font-size:1.25rem}.source-grid td.source-editable{background:#fff4dd}.source-grid td.source-editable:hover{background:#ffe3ad}.source-mobile-jumps{display:flex;gap:6px}.legacy{margin-top:22px;color:#59695f}.legacy summary{cursor:pointer}.source-toolbar{flex-wrap:wrap}
