@font-face{font-family:Vazirmatn;src:url(assets/Vazirmatn.woff2) format('woff2');font-weight:100 900;font-display:swap}*{box-sizing:border-box}body{margin:0;background:#f5f6f4;color:#202b29;font-family:Vazirmatn,Tahoma,sans-serif;font-size:13px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c9a565;outline-offset:3px}button{border:0}svg{width:19px;height:19px;stroke-width:1.7;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:27px;font-weight:750;letter-spacing:-.6px}h2{font-size:17px;font-weight:700}h3{font-size:14px}small,.muted{color:#83908a}button,input,select{min-height:40px}input,select,textarea{border:1px solid #e1e6e2;border-radius:9px;background:#fff;color:#263f35;padding:10px 12px;width:100%;outline:0;transition:border .2s}input:focus,select:focus,textarea:focus{border-color:#749687;box-shadow:0 0 0 3px #eaf1ec}textarea{resize:vertical;min-height:80px}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:#1b5144}input[type=number],input[type=date]{direction:ltr;text-align:right}label{display:grid;gap:7px;font-size:12px;font-weight:500}label em{font-style:normal;color:#aa7952}.shell{display:grid;grid-template-columns:246px minmax(0,1fr);direction:rtl;min-height:100vh}.sidebar{position:fixed;right:0;top:0;width:246px;height:100vh;background:#163e34;color:#b2c5bc;padding:32px 21px 20px;display:flex;flex-direction:column;z-index:40}.brand{display:flex;align-items:center;gap:12px;color:#fff;margin:0 6px 39px}.brand-symbol{border:1px solid #acb9a9;border-radius:13px;width:43px;height:45px;display:grid;place-items:center;color:#d2b47c}.brand-symbol svg{width:28px;height:28px;stroke-width:1.3}.brand b{font-size:20px;font-weight:750}.brand span{display:block;font-size:9px;letter-spacing:3.4px;direction:ltr;color:#91aa9d;margin-top:1px}.nav-label{font-size:10px;color:#7c9b8d;margin:0 15px 12px}.nav-list{display:grid;gap:7px}.nav-item{background:transparent;display:flex;align-items:center;gap:12px;color:#b5c8be;padding:12px 15px;border-radius:10px;text-align:right;min-height:46px;font-size:13px;transition:.2s}.nav-item:hover{background:#ffffff0d;color:#fff}.nav-item.active{background:#e8eee5;color:#1f4b3b;font-weight:650}.nav-item.active:before{content:"";position:absolute;right:0;width:3px;height:24px;background:#d6bd86;border-radius:4px}.nav-item .count{margin-right:auto;background:#ffffff13;border-radius:5px;padding:1px 6px;font-size:10px;color:#c8d6ce}.nav-item.active .count{background:#d6e1d5;color:#375343}.sidebar-separator{height:1px;background:#ffffff12;margin:26px 12px}.sidebar-bottom{margin-top:auto;padding-top:25px}.local-note{border:1px solid #ffffff15;padding:13px;border-radius:11px;font-size:10px;line-height:1.9;color:#93afa0;background:#1b4339}.local-note b{display:flex;align-items:center;gap:8px;font-size:11px;color:#d8e4db;margin-bottom:5px}.local-note svg{width:15px;height:15px}.profile{display:flex;gap:10px;align-items:center;margin:22px 4px 0}.avatar{width:35px;height:35px;border-radius:10px;background:#c2d3bf;color:#2a4b3a;display:grid;place-items:center;font-size:13px;font-weight:700}.profile b{display:block;font-size:11px;color:#dae3dc}.profile small{font-size:9px}.profile>svg{margin-right:auto;width:15px}.main{grid-column:2;min-width:0}.topbar{height:82px;border-bottom:1px solid #e7eae5;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:25px}.breadcrumb{display:flex;align-items:center;gap:10px;color:#929b95;font-size:11px;white-space:nowrap}.breadcrumb svg{width:13px;height:13px}.breadcrumb b{color:#375548;font-weight:500}.top-actions{display:flex;align-items:center;gap:17px}.search-box{display:flex;align-items:center;gap:9px;color:#94a098;background:#f7f8f5;border:1px solid #edf0ea;padding:0 12px;border-radius:8px}.search-box input{background:none;border:0;box-shadow:none;width:210px;min-height:37px;padding:8px 0;font-size:11px}.search-box svg{width:16px}.search-box kbd{font:10px sans-serif;border:1px solid #e5e8e1;border-radius:4px;padding:3px;color:#929c93}.icon-btn{display:grid;place-items:center;min-width:37px;min-height:37px;background:#fff;border:1px solid #e6eae4;border-radius:8px;color:#66786b;position:relative}.notification-dot{position:absolute;top:8px;right:10px;width:5px;height:5px;border-radius:50%;background:#c1995e;border:1px solid #fff}.menu-btn{display:none}.workspace{max-width:1650px;margin:auto;padding:32px 40px 24px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{font-size:11px;color:#939c94;display:flex;align-items:center;gap:7px;margin-bottom:8px}.eyebrow svg{width:14px;height:14px}.subtitle{font-size:11px;color:#8a948d;margin-top:7px;line-height:1.9}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 17px;border-radius:9px;background:#fff;border:1px solid #e0e7df;color:#41594a;font-size:12px;white-space:nowrap;transition:.2s}.button:hover{border-color:#9cb2a2;transform:translateY(-1px)}.button.primary{background:#224f3e;color:#fff;border-color:#224f3e;box-shadow:0 3px 6px #173d350d}.button.primary:hover{background:#163d2d}.button.soft{background:#eef3ea;border-color:#eef3ea;color:#3f6147}.button.danger{color:#ad4c45;border-color:#edc7c3}.button.small{font-size:10px;min-height:31px;padding:6px 11px;border-radius:7px}.button.small svg{width:14px;height:14px}.button.text{background:none;border:0;box-shadow:none;padding:0;min-height:28px}.button svg{width:17px;height:17px}.heading-actions{display:flex;gap:10px;align-items:center}.date-chip{display:flex;gap:8px;align-items:center;border:1px solid #e1e6df;border-radius:8px;padding:9px 12px;background:#fafbf9;font-size:11px;color:#677769}.date-chip svg{width:15px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat-card{background:#fff;border:1px solid #e3e8df;border-radius:13px;padding:20px 21px;position:relative}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7c8a7d;margin-bottom:18px}.stat-icon{width:33px;height:33px;display:grid;place-items:center;border-radius:9px;background:#f0f4ec;color:#789468}.stat-icon svg{width:17px}.stat-value{font-size:25px;font-weight:700;letter-spacing:-.8px;display:flex;gap:6px;align-items:baseline;color:#263b2e;direction:rtl}.stat-value small{font-size:10px;font-weight:400;letter-spacing:0}.stat-bottom{display:flex;align-items:center;gap:6px;margin-top:13px;color:#929a91;font-size:10px}.stat-bottom svg{width:13px;height:13px;color:#76945d}.stat-card.warm .stat-icon{background:#f8f2e5;color:#ad8c46}.stat-card.blue .stat-icon{background:#edf2f5;color:#7897a5}.stat-card.highlight{background:#e9efe3;border-color:#dce5d4}.stat-card.highlight .stat-icon{background:#ffffff82;color:#506d47}.stat-card.highlight .stat-value{color:#365030}.two-columns{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(270px,1fr);gap:22px;margin-bottom:23px}.panel{background:#fff;border:1px solid #e2e8de;border-radius:13px;min-width:0;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 23px 0}.panel-head p{font-size:10px;color:#98a092;margin-top:5px}.panel-body{padding:20px 23px}.mini-select{font-size:10px;width:auto;min-height:30px;padding:5px 25px 5px 9px;border-color:#e5eadd;color:#6a7c63;border-radius:6px;background:#fbfcf8}.chart-legend{display:flex;gap:17px;color:#8d9986;font-size:9px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:7px;height:7px;border-radius:2px;background:#819971}.chart-legend span+span i{background:#e8ebdf}.bar-chart{height:178px;display:flex;position:relative;padding:12px 0 24px;gap:22px;margin-top:20px;direction:ltr;border-bottom:1px solid #f0f1eb}.chart-grid{position:absolute;inset:10px 0 25px;display:flex;flex-direction:column;justify-content:space-between;z-index:0}.chart-grid div{border-top:1px dashed #eef0e9;height:1px}.chart-column{flex:1;display:flex;gap:6px;align-items:flex-end;justify-content:center;position:relative;z-index:1}.chart-bar{width:22px;max-width:35%;border-radius:4px 4px 0 0;background:#91a77e;min-height:3px}.chart-bar.alt{background:#e7ebde}.chart-column:nth-last-child(2) .chart-bar:not(.alt){background:#486b45}.chart-label{position:absolute;bottom:-22px;width:120%;text-align:center;color:#9bA590;font-size:9px}.chart-foot{display:flex;justify-content:space-between;padding-top:14px;color:#909b87;font-size:10px}.chart-foot b{color:#536b47;font-weight:500}.tasks-mini{display:grid;gap:0}.task-mini{display:flex;align-items:flex-start;gap:11px;padding:15px 0;border-bottom:1px solid #eef1e9}.task-mini:last-child{border:0;padding-bottom:2px}.task-mini .task-check{border:1.5px solid #cfd9c7;width:17px;height:17px;min-height:17px;border-radius:5px;background:#fff;margin-top:2px;display:grid;place-items:center;color:#fff;flex-shrink:0;padding:0}.task-mini .task-check.done{background:#65825a;border-color:#65825a}.task-check svg{width:12px;height:12px}.task-mini h3{font-size:11px;font-weight:500;color:#465b3c;line-height:1.8}.task-mini p{font-size:9px;color:#9aa38f;margin-top:5px}.task-mini>span{margin-right:auto;margin-top:2px}.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;font-size:9px;line-height:1.4;white-space:nowrap}.tag:before{content:"";width:4px;height:4px;background:currentColor;border-radius:50%}.tag.green{background:#eef4e9;color:#6d9251}.tag.amber{background:#fbf3e3;color:#b69448}.tag.red{background:#faeeeb;color:#b97b6d}.tag.gray{background:#f1f2ef;color:#8f9b87}.tag.blue{background:#ecf2f5;color:#7497a5}.table-wrap{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;text-align:right;white-space:nowrap}th{font-size:10px;font-weight:400;color:#9ca492;padding:14px 22px;border-bottom:1px solid #ecf0e6;background:#fcfdf9}td{padding:17px 22px;border-bottom:1px solid #eff2e9;font-size:11px;color:#536648}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcf7}td strong{font-weight:500;color:#4b6040}td small{font-size:9px;display:block;margin-top:4px}td .button{min-height:25px}.table-top{padding:19px 23px;display:flex;justify-content:space-between;align-items:center;gap:15px}.table-top h2{font-size:15px}.table-footer{padding:13px 22px;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#9ba58f;border-top:1px solid #eef1e7}.table-actions{display:flex;gap:7px}.table-actions .icon-btn{min-width:28px;min-height:28px;border:0;background:transparent}.table-actions svg{width:15px;height:15px}.invoice-number{direction:ltr;display:inline-block;font-family:Vazirmatn,sans-serif;letter-spacing:.5px;color:#4b6540}.customer-avatar{width:29px;height:29px;border:1px solid #e8ecdf;background:#f5f7ee;color:#8b9b75;border-radius:9px;display:grid;place-items:center;font-size:11px}.customer{display:flex;align-items:center;gap:9px}.balance-red{color:#b77a60}.balance-green{color:#5f8764}.bottom-note{margin-top:20px;display:flex;justify-content:space-between;font-size:9px;color:#a4ac9b}.bottom-note span{display:flex;gap:5px;align-items:center}.bottom-note svg{width:12px;height:12px}.demo-badge{font-size:9px;display:inline-flex;align-items:center;gap:5px;color:#8c997f;background:#f0f3e9;border-radius:5px;padding:3px 7px}.tabs{display:flex;gap:5px;border-bottom:1px solid #e8ede1;padding:0 20px;overflow:auto}.tab{padding:15px 13px;color:#929d86;background:transparent;border-bottom:2px solid transparent;font-size:11px;white-space:nowrap;border-radius:0}.tab.active{color:#3f6343;border-bottom-color:#6c8c50}.filters{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;gap:15px}.filters .search-box{background:white;min-width:240px}.empty-state{text-align:center;padding:48px 20px;color:#94a185;display:grid;justify-items:center;gap:13px}.empty-state svg{width:35px;height:35px;stroke-width:1}.empty-state b{color:#566c47}.empty-state p{font-size:11px}.overview-strip{background:#eaf0e2;border:1px solid #dce5d1;border-radius:12px;padding:18px 21px;margin-bottom:21px;display:flex;gap:15px;align-items:center;color:#5f774b}.overview-strip svg{width:28px;height:28px}.overview-strip h3{font-size:13px}.overview-strip p{font-size:10px;line-height:1.9;margin-top:3px}.contact-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.contact-card{padding:23px}.contact-card-top{display:flex;align-items:center;gap:12px;margin-bottom:24px}.contact-card .customer-avatar{width:42px;height:42px;font-size:16px;border-radius:12px}.contact-card-top p{font-size:10px;color:#9aa58e;margin-top:4px}.contact-card h3{font-size:13px}.contact-balance{display:flex;justify-content:space-between;align-items:center;font-size:11px;border-bottom:1px solid #edf1e6;padding-bottom:18px;margin-bottom:15px}.contact-balance b{font-size:16px}.contact-balance small{font-size:9px}.contact-actions{display:flex;justify-content:space-between;gap:8px}.kanban{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.kanban-col{border:1px solid #e3e9dc;border-radius:13px;background:#eef1e9;padding:16px;min-height:430px}.kanban-head{display:flex;align-items:center;gap:8px;padding:5px 3px 17px;color:#5f754c}.kanban-head .dot{width:7px;height:7px;background:#b7a16e;border-radius:50%}.kanban-head.doing .dot{background:#89a0a6}.kanban-head.done .dot{background:#8aa574}.kanban-head h2{font-size:12px}.kanban-head small{background:#e1e7d8;border-radius:5px;padding:2px 6px;font-size:9px}.kanban-head button{margin-right:auto;background:transparent;color:#91a17e;min-height:24px}.task-card{background:#fff;border:1px solid #e1e7d9;border-radius:10px;padding:17px;margin-bottom:12px;box-shadow:0 3px 6px #203c1a03}.task-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.task-card-head .icon-btn{border:0;min-height:23px;min-width:23px}.task-card h3{font-size:12px;line-height:1.9;margin-bottom:12px}.task-card .task-meta{display:flex;align-items:center;gap:5px;color:#a3ac99;font-size:9px;padding-bottom:14px}.task-meta svg{width:13px;height:13px}.task-card .task-controls{border-top:1px solid #eff2e9;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.task-controls select{font-size:9px;padding:5px 8px;min-height:28px;width:auto;border-radius:6px}.task-controls small{font-size:9px}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 296px;gap:23px;align-items:start}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid .full{grid-column:1/-1}.section-label{display:flex;gap:8px;align-items:center;color:#4f6542;font-size:13px;font-weight:650;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #edf0e7}.section-label svg{width:17px;height:17px;color:#93a581}.editor-section{padding:25px;margin-bottom:20px}.editor-section th,.editor-section td{padding:10px 7px}.editor-section th:first-child,.editor-section td:first-child{padding-right:0}.editor-section input{min-height:36px;padding:8px;font-size:11px}.editor-items{min-width:650px}.editor-items .desc{width:40%}.editor-items .qty{width:70px}.editor-items .unit{width:68px}.editor-items .price{width:125px}.editor-items .remove{width:35px}.editor-items .icon-btn{min-width:27px;min-height:30px;border:0;color:#a5ac9c}.editor-items .icon-btn:hover{color:#b76d65}.editor-items td{vertical-align:top}.editor-items .line-total{padding-top:18px;font-size:11px}.editor-summary{padding:23px;position:sticky;top:20px}.editor-summary h2{font-size:14px;margin-bottom:22px}.sum-row{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#80906f;padding:9px 0}.sum-row strong{font-weight:500;color:#4e6540}.sum-row.total{margin:10px 0;padding:18px 0;border-top:1px dashed #dce4d1;border-bottom:1px dashed #dce4d1;color:#49623b}.sum-row.total strong{font-size:17px}.summary-callout{background:#f0f4e9;border-radius:8px;padding:13px;text-align:center;margin-top:14px;font-size:10px;color:#84976e;line-height:1.9}.editor-summary .button{width:100%;margin-top:10px}.inline-note{font-size:10px;line-height:1.9;color:#96a28a;margin-top:12px}.error-box{background:#fcf0ed;border:1px solid #eecfc7;border-radius:9px;padding:14px 17px;font-size:11px;color:#aa6453;margin-bottom:18px;line-height:1.9}.error-box:empty{display:none}.form-help{font-size:9px;font-weight:400;color:#9ba58e}.modal-backdrop{position:fixed;inset:0;background:#112d2366;backdrop-filter:blur(3px);z-index:100;display:flex;align-items:center;justify-content:center;padding:30px;overflow:auto}.modal{width:min(600px,100%);max-height:90vh;background:#fafbf8;border-radius:15px;box-shadow:0 15px 80px #173d3533;overflow:auto}.modal.wide{width:min(1160px,100%)}.modal-head{padding:20px 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8da;gap:20px;background:#fff;position:sticky;top:0;z-index:3}.modal-head h2{font-size:16px}.modal-head p{font-size:10px;color:#97a68a;margin-top:5px}.modal-body{padding:25px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:17px 25px;border-top:1px solid #e4eadb;background:#fff}.preview-toolbar{display:flex;align-items:center;gap:10px}.preview-body{padding:22px;background:#eef0e9;overflow:auto}.preview-pages{display:grid;justify-content:center;gap:25px;min-width:max-content}.print-page{width:277mm;height:188mm;position:relative;padding:10mm 11mm 12mm;background:#fff;color:#25392d;direction:rtl;font-family:Vazirmatn,Tahoma,sans-serif;box-shadow:0 2px 12px #24391f0d;border:1px solid #e3e8dd;overflow:hidden}.invoice-top{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:6mm;border-bottom:1.5px solid #55744d;gap:20px}.invoice-logo{display:flex;gap:11px;align-items:center}.invoice-logo .brand-symbol{color:#466b43;border-color:#a4b397;width:43px;height:43px}.invoice-logo h2{font-size:21px;color:#2d4d2c}.invoice-logo small{font-size:9px;letter-spacing:2.4px;direction:ltr;display:block}.invoice-title{text-align:left}.invoice-title h1{font-size:23px;font-weight:600}.invoice-title p{font-size:9px;color:#80926f;margin-top:5px}.invoice-meta{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:15px;padding:5mm 0}.invoice-meta div{display:flex;flex-direction:column;gap:5px}.invoice-meta span{font-size:9px;color:#8b9980}.invoice-meta b{font-size:11px;font-weight:500}.invoice-meta .invoice-to{font-size:14px}.invoice-paper-table{width:100%;white-space:normal;table-layout:fixed}.invoice-paper-table th{background:#edf2e6;color:#657a52;border-bottom:1px solid #d8e2cb;font-size:9px;font-weight:500;padding:9px 10px}.invoice-paper-table td{padding:10px;border-bottom:1px solid #e8eedf;font-size:10px;vertical-align:top;line-height:1.8;color:#445738;overflow-wrap:anywhere}.invoice-paper-table th:first-child{width:5%}.invoice-paper-table th:nth-child(2){width:43%}.invoice-paper-table th:nth-child(3){width:10%}.invoice-paper-table th:nth-child(4){width:10%}.invoice-paper-table th:nth-child(5){width:16%}.invoice-paper-table th:nth-child(6){width:16%}.invoice-paper-table td:not(:nth-child(2)){white-space:nowrap}.invoice-paper-table tbody tr:nth-child(even){background:#fbfcf8}.invoice-tail{display:grid;grid-template-columns:1fr 280px;gap:32px;padding-top:5mm}.invoice-notes{font-size:9px;line-height:1.9;color:#8d997e;overflow-wrap:anywhere;white-space:pre-wrap}.invoice-notes b{color:#5f7650;font-size:10px}.invoice-totals .sum-row{padding:4px 0;font-size:9px}.invoice-totals .sum-row.total{margin:5px 0;padding:9px 11px;border:0;background:#edf2e7;border-radius:4px;font-size:11px}.invoice-totals .sum-row.total strong{font-size:14px}.invoice-signatures{display:flex;gap:80px;font-size:9px;color:#8e9a80;margin-top:16mm}.invoice-signatures span{border-top:1px solid #dce5d0;padding-top:7px;width:120px;text-align:center}.invoice-page-foot{position:absolute;bottom:6mm;left:11mm;right:11mm;border-top:1px solid #e0e8d4;padding-top:3mm;display:flex;justify-content:space-between;font-size:8px;color:#9aa68d}.invoice-continuation{font-size:10px;color:#849776;margin-top:20px}.settings-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:23px}.settings-card{padding:25px}.settings-card p{font-size:11px;color:#899b79;line-height:2;margin:12px 0}.stack{display:grid;gap:18px}.key-figure{background:#f1f5eb;border-radius:10px;padding:16px;color:#7c916a;font-size:11px;line-height:2}.key-figure strong{color:#4a6840}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#214e3d;color:#fff;border:1px solid #416952;padding:12px 22px;border-radius:10px;z-index:300;box-shadow:0 6px 30px #183d3522;font-size:12px;transition:.25s;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}#print-root{display:none}.mobile-scrim{display:none}.flow-list{display:grid;gap:0}.flow-row{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid #edf1e6}.flow-row:last-child{border:0}.flow-icon{width:35px;height:35px;background:#edf3e6;color:#829b6c;display:grid;place-items:center;border-radius:9px}.flow-icon.out{background:#fbf0e7;color:#b7926e}.flow-row h3{font-size:11px;font-weight:500}.flow-row small{font-size:9px;display:block;margin-top:5px}.flow-amount{margin-right:auto;text-align:left;color:#618351;font-size:12px;white-space:nowrap}.flow-amount.out{color:#b48360}.flow-amount small{font-size:9px}.ledger-totals{display:flex;gap:14px;margin:0 0 20px}.ledger-totals>div{flex:1;background:#eff3e8;border-radius:8px;padding:13px;color:#84966e;font-size:10px}.ledger-totals b{display:block;font-size:17px;color:#4f6e40;margin-top:6px}.date-input-note{font-size:9px;color:#9aa58d;margin-top:5px}.alert-dot{background:#c49a63;color:white;border-radius:50%;font-size:8px;width:15px;height:15px;display:grid;place-items:center}.amount-cell{font-feature-settings:'tnum';direction:ltr;text-align:right}.task-mini.done h3{text-decoration:line-through;color:#a5ae9a}.restore-input{display:none}.row-actions{display:flex;gap:10px;align-items:center}.mono{direction:ltr;display:inline-block}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.workspace{padding-top:40px}.stat-card{padding:24px}.bar-chart{height:210px}.task-mini{padding:20px 0}}
@media(max-width:1200px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{width:210px;padding:27px 16px 18px}.topbar{padding:0 26px}.workspace{padding:28px 26px}.stats-grid{gap:12px}.stat-card{padding:17px 15px}.stat-value{font-size:21px}.two-columns{grid-template-columns:1.4fr 1fr;gap:16px}.bar-chart{gap:10px}.editor-grid{grid-template-columns:1fr 260px;gap:16px}.editor-section{padding:19px}.editor-summary{padding:18px}.contact-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.kanban{gap:14px}.kanban-col{padding:12px}.search-box input{width:160px}}
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-columns{grid-template-columns:1fr}.editor-grid{grid-template-columns:1fr}.editor-summary{position:static}.settings-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}.heading-actions .date-chip{display:none}.kanban{grid-template-columns:1fr}.kanban-col{min-height:0}.kanban-col .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kanban-col .task-card{margin:0}.search-box input{width:145px}.topbar{gap:12px}.top-actions{gap:9px}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.shell{display:block}.sidebar{right:-250px;width:240px;transition:.25s}.shell.menu-open .sidebar{right:0}.shell.menu-open .mobile-scrim{display:block;position:fixed;inset:0;background:#14362488;z-index:35}.main{width:100%}.topbar{height:65px;padding:0 18px}.menu-btn{display:grid}.breadcrumb{display:none}.top-actions{flex:1;justify-content:flex-end}.top-actions .search-box{flex:1;max-width:280px}.search-box input{width:100%}.search-box kbd{display:none}.workspace{padding:24px 18px}.page-heading{margin-bottom:21px;gap:12px}h1{font-size:24px}.subtitle{font-size:10px}.eyebrow{font-size:10px}.heading-actions .button{padding:9px 12px;font-size:10px;min-height:38px}.heading-actions .button svg{width:15px}.heading-actions{gap:7px}.stats-grid{gap:10px;margin-bottom:18px}.stat-card{padding:16px 14px}.stat-top{font-size:10px;margin-bottom:13px}.stat-icon{width:29px;height:29px}.stat-value{font-size:22px}.stat-value small{font-size:8px}.stat-bottom{font-size:8px;margin-top:10px;gap:3px}.panel-head,.panel-body{padding-right:18px;padding-left:18px}.panel-head h2{font-size:15px}.two-columns{gap:18px;margin-bottom:18px}.bar-chart{height:164px}.chart-bar{width:19px}.chart-foot{font-size:9px}.table-top{padding:18px}.table-top h2{font-size:14px}th,td{padding:13px 17px}.table-footer{padding:12px 17px;font-size:8px}.bottom-note{font-size:8px;gap:12px;line-height:1.8}.bottom-note>span:last-child{display:none}.filters{padding:14px;flex-wrap:wrap}.filters .search-box{min-width:100%;flex:1}.tabs{padding:0 8px}.tab{font-size:10px;padding:13px 10px}.contact-cards{grid-template-columns:1fr}.contact-card{padding:20px}.kanban{gap:16px}.kanban-col .cards{grid-template-columns:1fr}.form-grid,.form-grid.three{grid-template-columns:1fr}.editor-section{padding:18px}.editor-section .form-grid{gap:14px}.modal-backdrop{padding:12px}.modal{max-height:94vh}.modal-head{padding:16px;gap:12px}.modal-head h2{font-size:14px}.modal-body{padding:18px}.modal-footer{padding:16px}.modal-head .preview-toolbar{gap:5px}.modal-head .preview-toolbar .button{font-size:10px;padding:8px}.preview-body{padding:12px}.preview-pages{justify-content:start}.ledger-totals{gap:8px}.ledger-totals b{font-size:13px}.overview-strip{padding:15px;align-items:flex-start}.overview-strip svg{width:22px}.overview-strip h3{font-size:12px}.overview-strip p{font-size:9px}.date-chip{font-size:10px}.hide-mobile{display:none}.settings-card{padding:20px}.flow-row{gap:9px}.flow-row h3{font-size:10px}.flow-amount{font-size:11px}.chart-legend{font-size:8px;gap:9px}.heading-actions.wrap{flex-wrap:wrap;justify-content:flex-end}.error-box{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@page{size:A4 landscape;margin:10mm}
@media print{html,body{background:#fff!important;margin:0!important;padding:0!important;width:auto!important;height:auto!important}#app,#modal-root,#toast,noscript{display:none!important}#print-root{display:block!important}#print-root .print-page{margin:0!important;border:0!important;box-shadow:none!important;page-break-after:always;break-after:page;width:277mm!important;height:188mm!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}#print-root .print-page:last-child{page-break-after:auto;break-after:auto}.invoice-paper-table tr{break-inside:avoid}.invoice-paper-table th{print-color-adjust:exact}.invoice-page-foot{bottom:5mm}}
/* Final invoice structure follows the supplied five-column wireframe. */
.invoice-paper-table th:first-child{width:5%}.invoice-paper-table th:nth-child(2){width:43%}.invoice-paper-table th:nth-child(3){width:10%}.invoice-paper-table th:nth-child(4){width:20%}.invoice-paper-table th:nth-child(5){width:22%}.invoice-tail{grid-template-columns:minmax(0,1fr) 22%;gap:0;padding-top:0}.invoice-tail>div:first-child{padding-top:5mm;padding-left:30px}.invoice-totals{border-right:1px solid #dce5d2;border-left:1px solid #dce5d2}.invoice-totals .sum-row{padding:8px 9px;border-bottom:1px solid #e4ebdb;font-size:9px;gap:5px}.invoice-totals .sum-row.total{margin:0;border-radius:0;padding:10px 9px;font-size:10px}.invoice-totals .sum-row.total strong{font-size:11px}
/* Keep the table in its own scroller instead of widening the editor grid. */
.editor-grid>div{min-width:0}.editor-grid{width:100%;min-width:0}
@media(max-width:720px){html,body{overflow-x:clip}.shell,.main,.workspace{min-width:0;max-width:100%}.sidebar{visibility:hidden}.shell.menu-open .sidebar{visibility:visible}}
@media(min-width:1001px) and (max-width:1200px){.editor-grid{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:720px){.sidebar{display:none;right:0;visibility:visible}.shell.menu-open .sidebar{display:flex}}
/* Anchor visually-hidden action labels inside the table scroller. */
.table-wrap{position:relative}
/* Persian calendar input: date-only storage, explicit Tehran today. */
.date-field{display:grid;align-content:start;gap:7px;min-width:0}.date-field>label{display:block}.date-field em{font-style:normal;color:#aa7952}.jalali-input-row{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:6px;align-items:start}.jalali-input-row input[data-jalali-input]{text-align:center;font-variant-numeric:tabular-nums;letter-spacing:.5px;min-width:0;padding-inline:8px}.jalali-input-row input[aria-invalid=true]{border-color:#b9574d;background:#fff9f8}.date-help{min-height:16px;line-height:1.8}.jalali-picker{background:#fff;border:1px solid #dce5d9;border-radius:12px;padding:12px;box-shadow:0 5px 20px #2345300b;width:100%;min-width:0;grid-column:1/-1}.jalali-picker[hidden]{display:none}.jalali-picker-head{display:grid;grid-template-columns:28px minmax(0,1fr) 76px 28px;gap:4px;align-items:center}.jalali-picker-head select{padding:5px 3px;font-size:11px;min-height:32px}.jalali-picker-head .icon-btn{min-width:28px;min-height:32px}.jalali-picker-head svg{width:15px}.jalali-week,.jalali-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}.jalali-week{font-size:10px;color:#8b978b;padding:12px 0 6px}.jalali-day{min-height:32px;border-radius:7px;background:#f6f8f3;color:#35523f;font-size:11px;padding:0}.jalali-day:hover{background:#e5ecdf}.jalali-day.today{box-shadow:inset 0 0 0 1px #95a975}.jalali-day.selected{background:#22503e;color:white}.jalali-picker-foot{display:flex;justify-content:space-between;border-top:1px solid #eef1e8;margin-top:10px;padding-top:5px}.calendar-timezone{font-size:8px;color:#85947c;text-align:center;line-height:1.8;margin-top:5px}.editor-section .form-grid.three .date-field{grid-column:span 1}@media(min-width:721px){.editor-section .form-grid.three:has(.date-field){grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.jalali-picker{display:none!important}}
@media(min-width:721px) and (max-width:1100px){.editor-section .form-grid.three:has(.date-field){grid-template-columns:1fr}}
.form-grid{align-items:start}
/* Consistent spacing and readable hierarchy across the workspace. */
:root{--ink:#263a31;--muted:#68796d;--line:#dfe7df;--accent:#224f3e}body{font-size:14px}.subtitle{font-size:12px;color:var(--muted)}.eyebrow{color:#718273}.muted,small{color:#728174}.form-help,.inline-note{color:#74816d;line-height:1.9}.section-label{font-size:13px;color:#52684a}.panel-head p,.settings-card p{color:#71816a}.bottom-note{color:#7d8979}.date-field>label,label{line-height:1.7}.document-number input{max-width:330px;font-variant-numeric:tabular-nums}.document-number{justify-items:start}.document-number input{direction:ltr;text-align:right}.form-grid .full{width:100%}.editor-section{margin-bottom:20px}.editor-summary h2{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:9px}.editor-summary .button{width:100%;min-height:43px}.editor-summary .inline-note{font-size:10px}.editor-items input{min-height:43px}.editor-items .desc input{min-width:210px}.invoice-number{font-variant-numeric:tabular-nums}.table-actions .icon-btn{min-height:36px;min-width:36px}.search-box:focus-within{border-color:#b8c9b8;background:#fff}.search-box input::placeholder{color:#8d998d}.filters{gap:14px}.panel-head,.table-top{gap:16px}.stats-grid .stat-top{color:#697c6b}.stat-bottom{color:#7e8e7d}.task-meta{color:#6e8068}.task-card-head{align-items:center}.task-card h3{line-height:1.9;overflow-wrap:anywhere}.task-controls{gap:10px}.contact-card h3{line-height:1.8}.contact-balance>span{color:#71816b}.modal-head{gap:15px}.modal-head h2{line-height:1.7}.modal-body .form-grid{align-items:start}.modal-footer{flex-wrap:wrap}.modal-footer .button{min-width:100px}.error-box:not(:empty){margin-bottom:18px}.tag{white-space:nowrap}.sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#48675a transparent}.brand{flex-shrink:0;margin-bottom:30px}.nav-list,.sidebar-separator,.profile{flex-shrink:0}.nav-item{position:relative;font-size:13px;min-height:46px}.nav-item.active:before{right:0;height:22px;width:3px}.nav-item .count{font-variant-numeric:tabular-nums;min-width:23px;text-align:center}.sidebar-bottom{flex-shrink:0}.local-note{line-height:2}.topbar{gap:20px}.workspace{padding-top:28px}.page-heading{align-items:flex-start}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.date-chip{white-space:nowrap}.settings-card .button{min-height:42px}
@media(max-width:960px){.shell{display:block}.main{width:100%}.sidebar{display:none;right:0;visibility:visible;width:245px;z-index:50}.shell.menu-open .sidebar{display:flex}.shell.menu-open .mobile-scrim{display:block;position:fixed;inset:0;background:#14362488;z-index:45}.menu-btn{display:grid}.breadcrumb{display:none}.top-actions{flex:1;justify-content:flex-end}.topbar{padding-inline:24px}.workspace{padding-inline:24px}.editor-grid{grid-template-columns:1fr}.editor-summary{position:static}.settings-grid{grid-template-columns:1fr}.heading-actions .date-chip{display:none}}
@media(max-width:720px){.workspace{padding:22px 16px}.topbar{padding-inline:16px}.subtitle{font-size:11px;line-height:2}.page-heading{gap:12px;margin-bottom:21px}h1{font-size:23px;line-height:1.55}.heading-actions .button{min-height:40px}.editor-section{padding:17px}.document-number input{max-width:none}.panel-head,.table-top{padding:17px}.stat-top{line-height:1.8}.stat-value{font-size:21px}.stat-bottom{line-height:1.8}.sidebar .brand{margin-bottom:25px}.sidebar{padding:25px 18px}.sidebar-bottom .local-note{font-size:10px}.settings-card{padding:20px}.form-help{font-size:10px}.modal{max-height:94dvh}.preview-toolbar{flex-wrap:wrap;justify-content:flex-end}}
@media(max-height:700px) and (min-width:961px){.sidebar{padding-top:22px}.brand{margin-bottom:20px}.sidebar-separator{margin-block:18px}.sidebar-bottom{padding-top:18px}.local-note{padding:10px}.profile{margin-top:15px}}
.backup-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.backup-actions .button{flex:1}.backup-recovery{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.backup-recovery h3{font-size:12px}.backup-recovery p{font-size:10px}.backup-upload{border:1px dashed #b8c9b3;border-radius:13px;background:#f2f6ee;padding:24px;text-align:center}.backup-upload-icon{width:48px;height:48px;display:grid;place-items:center;background:#e1ebda;color:#58734c;border-radius:13px;margin:0 auto 13px}.backup-upload-icon svg{width:25px;height:25px}.backup-upload p{font-size:11px;color:#74856b;margin:8px 0 16px}.backup-file-label{max-width:100%;font-size:11px;text-align:right}.backup-file-label input{direction:rtl;background:#fff;font-size:11px;padding:9px;max-width:100%}.backup-file-label input::file-selector-button{background:#224f3e;color:white;border:0;border-radius:6px;padding:8px 12px;margin-left:10px;font-family:inherit;cursor:pointer}.backup-source{display:flex;align-items:center;gap:12px;background:#edf3e8;border-radius:10px;padding:15px}.backup-source>svg{width:26px;height:26px;color:#668555}.backup-source b{font-size:12px;overflow-wrap:anywhere}.backup-source small{display:block;margin-top:5px;font-size:10px}.backup-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}.backup-counts>div{border:1px solid var(--line);border-radius:10px;padding:12px 8px;text-align:center;display:grid;gap:5px}.backup-counts strong{font-size:24px;color:#355637}.backup-counts span{font-size:11px}.backup-counts small{font-size:9px}.backup-warning{display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:10px;background:#fff6e6;color:#816333;border:1px solid #ecdec2}.backup-warning b{font-size:12px}.backup-warning p{font-size:11px;line-height:2;margin-top:5px}.backup-warning svg{margin-top:3px;color:#a17d43}.backup-confirm{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:2;margin:20px 0}.backup-confirm input{flex:0 0 18px;margin:4px 0 0}.backup-confirm span{flex:1}#backup-read-status{color:#55734b;font-size:12px;margin-top:14px}#backup-error,#restore-error{margin-top:14px}@media(max-width:720px){.backup-upload{padding:18px}.backup-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.backup-actions{flex-direction:column}.backup-warning{padding:13px}.backup-source{align-items:flex-start}.backup-confirm{font-size:11px}.preview-toolbar .button{white-space:normal}}

/* Fixed brand stamp: only the final invoice page, never the business header. */
.invoice-signatures{display:flex;align-items:flex-end;gap:18mm;margin-top:6mm;break-inside:avoid}
.invoice-signatures .invoice-seller-mark{display:grid;justify-items:center;gap:2mm;flex:0 0 auto}
.invoice-seller-mark small{font-size:8px;color:#64736d}
.invoice-stamp{width:55mm;height:29mm;display:block;border:0;border-radius:0;background:transparent;object-fit:contain;break-inside:avoid}
.invoice-signatures .invoice-buyer-signature{flex:0 0 120px;color:#64736d;margin-bottom:2mm}

/* Add contacts in place, without resetting the invoice / transaction / task form. */
.contact-field{display:grid;gap:7px;min-width:0;align-content:start}.contact-field>label{display:block}.contact-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;min-width:0}.contact-input-row select{min-width:0;width:100%}.contact-add-button{min-height:43px;padding:10px 12px;background:#edf3e8;border-color:#d9e5d2;color:#36583c;gap:6px}.contact-add-button svg{width:17px;height:17px}.contact-add-button:disabled{transform:none;background:#f2f4ef}.contact-return-note{display:flex;align-items:flex-start;gap:9px;background:#edf3e8;border:1px solid #dfe8d7;border-radius:9px;padding:12px;color:#506744;font-size:11px;line-height:1.9;margin-bottom:21px}.contact-return-note svg{margin-top:2px;width:18px;height:18px;flex-shrink:0}.modal-head #modal-subtitle{line-height:1.8}.modal{overscroll-behavior:contain}.modal[tabindex="-1"]:focus{outline:none}@media(max-width:420px){.contact-input-row{gap:6px}.contact-add-button{padding-inline:9px;font-size:11px;gap:4px}.contact-add-button svg{width:16px;height:16px}.contact-return-note{padding:10px;font-size:10px}}

/* Transparent signature behind the unchanged combined mark layout. */
.invoice-mark{position:relative;width:100mm;height:38mm;isolation:isolate;break-inside:avoid;flex:none}
.invoice-signature{position:absolute;inset:0;width:100mm;height:38mm;object-fit:contain;display:block;z-index:0;border:0;border-radius:0}
.invoice-mark .invoice-stamp{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;width:55mm;height:29mm}

/* User-selected option 4: invoice header only, not app navigation. */
.invoice-brand-logo{display:block;width:58mm;height:25mm;object-fit:contain;border:0;border-radius:0}

.invoice-balance-unit{display:block;font-size:9px;font-weight:400;line-height:1.8;margin-top:2px;text-align:center}

/* Compact A4 layout: preserve readable type and the large mark, remove wasted space. */
.print-page{box-sizing:border-box;padding:6mm 9mm 12mm}
.invoice-top{padding-bottom:3mm}
.invoice-brand-logo{height:17mm;object-fit:cover;object-position:center}
.invoice-meta{padding:3mm 0;gap:12px}
.invoice-paper-table th{padding:7px 10px}
.invoice-paper-table td{padding:7px 10px}
.invoice-tail>div:first-child{padding-top:3mm}
.invoice-signatures{margin-top:2mm}
.invoice-continuation{margin-top:3mm}
@media print{#print-root{margin:0!important;padding:0!important}.print-page{break-inside:avoid;page-break-inside:avoid}}

/* Document IDs keep LTR digits but align with their own RTL metadata row. */
.invoice-meta .invoice-document-number{display:block;direction:ltr;text-align:right;align-self:stretch;width:100%;unicode-bidi:isolate;overflow-wrap:anywhere}

/* Server connection feedback is persistent and independent of form rendering. */
.server-status{margin:16px;padding:18px;border:1px solid #c7d4cf;border-radius:12px;background:#f5f8f6;color:#253d36;font:inherit;line-height:1.9;position:relative;z-index:1200}
.server-status button{font:inherit;padding:8px 14px;cursor:pointer;border:1px solid #526b61;border-radius:8px;background:white;color:#253d36}
body[aria-busy="true"]{cursor:progress}
.local-note a{color:inherit;text-decoration:underline}
.server-login{max-width:430px;margin:8vh auto;padding:32px}.server-login h1{font-size:24px}.server-login p{line-height:1.9}.server-login form{display:grid;gap:18px}.server-login label{display:grid;gap:8px}.server-login input{padding:12px;border:1px solid #b9c9c2;border-radius:8px}.server-login #login-error{color:#a12c31;margin:0}
