@font-face{font-family:IRANYekanX;src:url(/assets/IRANYekanX-Regular-31RPCiND.ttf)format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:IRANYekanX;src:url(/assets/IRANYekanX-Medium-DGGSeKHu.ttf)format("truetype");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:IRANYekanX;src:url(/assets/IRANYekanX-Medium-DGGSeKHu.ttf)format("truetype");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:IRANYekanX;src:url(/assets/IRANYekanX-ExtraBold-7XKoCdUq.ttf)format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:IRANYekanX;src:url(/assets/IRANYekanX-ExtraBold-7XKoCdUq.ttf)format("truetype");font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:IRANYekanX;src:url(/assets/IRANYekanX-Black-CoPEcceW.ttf)format("truetype");font-weight:900;font-style:normal;font-display:swap}.info-container{gap:20px;margin-top:20px;display:flex}.info-box{background:#fff;border:1px solid #d1d5db;border-radius:10px;flex:1;padding:20px}.info-box h3{border-bottom:1px solid #ddd;margin-bottom:15px;padding-bottom:10px}.app-header{background:#fff;border-bottom:1px solid #ddd;justify-content:space-between;align-items:center;height:70px;padding:0 30px;display:flex}.app-header h2{color:#1f2937;margin:0}.user-info{align-items:center;gap:20px;display:flex}.user-info span{color:#374151;font-size:14px}.user-info button{color:#fff;cursor:pointer;background:#ef4444;border:none;border-radius:6px;padding:8px 15px}.app-layout{direction:rtl;background:#fff;min-height:calc(100vh - 70px);display:flex}.main-content{background:#fff;flex:1;min-width:0;padding:28px 32px 40px}.sidebar{background:#111827;width:240px;padding:25px 15px}.dashboard-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:25px;display:grid}.dashboard-card{min-height:135px;color:inherit;background:#fff;border-radius:14px;padding:28px 24px;text-decoration:none;transition:all .2s}.dashboard-card:hover{transform:translateY(-5px)}.dashboard-card h2{color:#2563eb;margin-top:0}.dashboard-card p{color:#6b7280}.invoice-list-page{direction:rtl;width:100%;max-width:1180px;margin:0 auto}.invoice-list-top{justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;display:flex}.invoice-list-top h1{color:#111827;margin:0 0 6px;font-size:26px;font-weight:800}.invoice-list-top p{color:#64748b;margin:0;font-size:12px}.new-invoice-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:10px;height:42px;padding:0 18px;font-family:IRANYekanX,sans-serif;font-size:12px;font-weight:700;transition:all .2s}.new-invoice-button:hover{background:#1d4ed8;transform:translateY(-1px)}.invoice-list-toolbar{align-items:center;margin-bottom:14px;display:flex}.invoice-search-box{color:#94a3b8;background:#fff;border:1px solid #e2e8f0;border-radius:10px;align-items:center;gap:9px;width:340px;height:42px;padding:0 12px;transition:all .2s;display:flex}.invoice-search-box:focus-within{border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb12}.invoice-search-box input{color:#334155;background:0 0;border:none;outline:none;width:100%;font-family:IRANYekanX,sans-serif;font-size:12px}.invoice-search-box input::placeholder{color:#94a3b8}.invoice-list-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;width:100%;overflow:hidden;box-shadow:0 4px 18px #0f172a0a}.invoice-list-header{color:#64748b;background:#f8fafc;border-bottom:1px solid #e2e8f0;grid-template-columns:minmax(170px,2fr) minmax(100px,1fr) minmax(105px,1fr) minmax(130px,1.3fr) minmax(120px,1fr) 170px;align-items:center;min-height:48px;padding:0 18px;font-size:11px;font-weight:700;display:grid}.invoice-row{color:#334155;background:#fff;border-bottom:1px solid #eef2f7;grid-template-columns:minmax(170px,2fr) minmax(100px,1fr) minmax(105px,1fr) minmax(130px,1.3fr) minmax(120px,1fr) 170px;align-items:center;min-height:58px;padding:0 18px;font-size:12px;transition:all .15s;display:grid}.invoice-row:last-child{border-bottom:none}.invoice-row:hover{background:#f8fafc}.list-actions{align-items:center;gap:6px;display:flex}.list-actions button{color:#64748b;cursor:pointer;background:#f8fafc;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;padding:0;transition:all .15s;display:flex}.list-actions button:hover{color:#2563eb;background:#eff6ff;border-color:#dbeafe}.list-actions button:last-child:hover{color:#dc2626;background:#fef2f2;border-color:#fee2e2}.list-actions{gap:8px;display:flex}.list-actions button{cursor:pointer;color:#475569;background:#f8fafc;border:none;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;transition:all .2s;display:flex}.list-actions button:hover{background:#dbeafe}.delete-modal{z-index:1000;background:#00000059;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.delete-box{text-align:center;background:#fff;border-radius:12px;width:350px;padding:25px}.delete-buttons{justify-content:center;gap:15px;margin-top:20px;display:flex}.delete-buttons button{cursor:pointer;border:none;border-radius:7px;padding:8px 20px}.confirm-delete{color:#fff;background:#ef4444}.sidebar-menu-button{color:#cbd5e1;text-align:right;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:11px;width:100%;margin-bottom:6px;padding:12px 14px;font-family:IRANYekanX,sans-serif;font-size:13px;font-weight:600;transition:all .2s;display:flex}.sidebar-menu-button svg{color:#94a3b8;flex-shrink:0;transition:all .2s}.sidebar-menu-button:hover{color:#fff;background:#1e293b}.sidebar-menu-button:hover svg{color:#60a5fa}.sidebar-menu-locked{opacity:.6}.login-page{direction:rtl;background:radial-gradient(circle at 100% 0,#eef2ff 0,#0000 35%),linear-gradient(135deg,#f8fafc,#eef2f7);justify-content:center;align-items:center;width:100%;min-height:100vh;padding:30px;font-family:IRANYekanX,sans-serif;display:flex}.login-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;width:100%;max-width:420px;padding:38px;box-shadow:0 20px 50px #0f172a14}.login-heading{text-align:center;margin-bottom:32px}.login-logo{color:#fff;background:#2563eb;border-radius:16px;justify-content:center;align-items:center;width:58px;height:58px;margin:0 auto 18px;font-size:26px;font-weight:800;display:flex}.login-heading h1{color:#0f172a;margin:0 0 8px;font-size:22px;font-weight:800}.login-heading p{color:#64748b;margin:0;font-size:12px;line-height:2}.login-form{width:100%}.login-field{margin-bottom:18px}.login-field label{color:#334155;margin-bottom:7px;font-size:12px;font-weight:700;display:block}.login-field input{background:#f8fafc;border:1px solid #dbe1e8;border-radius:10px;outline:none;width:100%;height:46px;padding:0 14px;font-family:IRANYekanX,sans-serif;font-size:13px;transition:all .2s}.login-field input:focus{background:#fff;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb14}.login-error{color:#dc2626;background:#fef2f2;border-radius:8px;margin-bottom:15px;padding:10px 12px;font-size:11px;font-weight:600}.login-submit{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:10px;width:100%;height:47px;margin-top:5px;font-family:IRANYekanX,sans-serif;font-size:13px;font-weight:700;transition:all .2s}.login-submit:hover{background:#1d4ed8;transform:translateY(-1px)}.login-footer{text-align:center;color:#94a3b8;border-top:1px solid #f1f5f9;margin-top:28px;padding-top:20px;font-size:10px}@media (width<=600px){.login-page{padding:18px}.login-card{padding:28px 22px}}.invoice-print-document{display:none}@page{size:21cm 29.7cm;margin:1.2cm}@media print{html,body{background:#fff!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}.invoice-screen-document,.app-header,.sidebar,.no-print{display:none!important}.app-layout,.main-content,.create-invoice-page,.invoice-view-page{width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important;overflow:visible!important}.invoice-print-document{color:#111;box-sizing:border-box;-webkit-print-color-adjust:exact;print-color-adjust:exact;--print-line-color:#000;--print-hairline:.666667;direction:rtl;background:#fff;font-family:IRANYekanX,Tahoma,sans-serif;font-size:6.5px;line-height:1.25;position:relative;left:-.02cm;width:18.6cm!important;margin:.7cm auto 0!important;padding:0!important;display:block!important}.invoice-print-document *,.invoice-print-document :before,.invoice-print-document :after{box-sizing:border-box}.invoice-print-main-content,.invoice-print-notes{width:100%}.print-invoice-header,.print-party-box,.print-products-box,.print-closing-box,.invoice-print-notes{border:1px solid var(--print-line-color);background:#fff;border-radius:.12cm;position:relative;overflow:hidden}.print-invoice-header:before,.print-party-box:before,.print-products-box:before,.print-closing-box:before,.invoice-print-notes:before{content:"";z-index:20;pointer-events:none;border:1px solid var(--print-line-color);width:150%;height:150%;transform:scale(var(--print-hairline));transform-origin:0 0;border-radius:.18cm;display:none;position:absolute;top:0;left:0}.print-party-box,.print-products-box,.print-closing-box,.invoice-print-notes{margin-top:.25cm}.print-invoice-header{justify-content:space-between;align-items:center;height:2cm;padding:.25cm;display:flex}.print-invoice-header h1{margin:0;padding:0;font-size:14px;font-weight:800;line-height:1.2}.print-header-fields{gap:.1cm;width:4.5cm;display:grid}.print-header-fields>div{width:100%;height:.55cm;position:relative}.print-header-fields strong{white-space:nowrap;direction:rtl;font-size:7px;font-weight:700;line-height:1;position:absolute;top:50%;left:2.23cm;transform:translateY(-50%)}.print-header-fields span{text-align:right;direction:ltr;background:#fff;border:.015cm solid #d9dcdf;border-radius:.1cm;justify-content:flex-end;align-items:center;width:2.15cm;height:.52cm;padding:.03cm .18cm 0 .1cm;font-size:7.5px;font-weight:500;line-height:1;display:flex;position:absolute;top:50%;left:0;transform:translateY(-50%)}.print-section-title{background:#e5e5e5;border-bottom:0;justify-content:flex-start;align-items:center;height:.6cm;margin:0;padding:.03cm .2cm 0;font-size:8px;font-weight:700;line-height:1;display:flex;position:relative}.print-section-title:after,.print-products-title:after{content:"";background:var(--print-line-color);height:1px;transform:scaleY(var(--print-hairline));transform-origin:bottom;pointer-events:none;position:absolute;bottom:0;left:0;right:0}.print-party-box.is-official,.print-party-box:not(.is-unofficial){height:2.4cm}.print-party-box.is-unofficial{height:1.8cm}.print-party-table,.print-products-table{border-collapse:collapse;border-spacing:0;table-layout:fixed;width:100%}.print-party-table{direction:ltr}.print-party-table tr{height:.6cm}.print-party-table td{vertical-align:middle;white-space:nowrap;text-overflow:ellipsis;text-align:right;direction:rtl;border:0;height:.6cm;padding:0 .18cm;font-size:7px;font-weight:500;position:relative;overflow:hidden}.print-party-table td:before,.print-party-table td:after,.print-products-table th:before,.print-products-table th:after,.print-products-table td:before,.print-products-table td:after,.print-signatures-panel>div:after,.print-payment-panel>div:after{content:"";background:var(--print-line-color);pointer-events:none;position:absolute}.print-party-table td:before{width:1px;transform:scaleX(var(--print-hairline));transform-origin:100%;top:0;bottom:0;right:0}.print-party-table td:after{height:1px;transform:scaleY(var(--print-hairline));transform-origin:bottom;bottom:0;left:0;right:0}.print-party-table td:last-child{border-right:0}.print-party-table td:last-child:before,.print-party-table tr:last-child td:after,.print-party-table td.print-party-empty-cell:before{display:none}.print-party-table tr:last-child td{border-bottom:0}.print-party-col-compact{width:20.5%}.print-party-col-wide{width:59%}.print-party-table strong{margin-left:.08cm;font-weight:700}.print-products-title{background:#e5e5e5;border-bottom:0;justify-content:space-between;align-items:center;height:.6cm;padding:.03cm .2cm 0;font-size:8px;display:flex;position:relative}.print-products-title strong{font-weight:700}.print-products-title span{font-size:7px;font-weight:500}.print-products-table th,.print-products-table td{text-align:center;vertical-align:middle;border:0;padding:.03cm .06cm;font-size:7px;line-height:1.2;position:relative}.print-products-table th:before,.print-products-table td:before{width:1px;transform:scaleX(var(--print-hairline));transform-origin:0;top:0;bottom:0;left:0}.print-products-table th:after,.print-products-table td:after{height:1px;transform:scaleY(var(--print-hairline));transform-origin:bottom;bottom:0;left:0;right:0}.print-products-table tr>:last-child{border-left:0}.print-products-table tr>:last-child:before{display:none}.print-products-table thead tr{height:.8cm}.print-products-table thead th{background:#fff;height:.8cm;font-weight:700}.print-product-row,.print-product-row td{height:.6cm}.print-product-row td{font-weight:500}.print-product-row.print-title-lines-2,.print-product-row.print-title-lines-2 td{height:.9cm}.print-product-row.print-title-lines-3,.print-product-row.print-title-lines-3 td{height:1.1cm}.print-product-title{white-space:normal;overflow-wrap:anywhere;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;line-height:1.45;display:-webkit-box;overflow:hidden}.print-total-row,.print-sale-row,.print-sale-row td{height:.6cm}.print-total-row,.print-total-row td{height:.7cm}.print-description-row,.print-description-row td{height:.9cm}.print-total-row td{background:#e5e5e5;font-weight:700}.print-sale-row td,.print-description-row td{text-align:right;padding:0 .18cm}.print-description-row td{white-space:normal;overflow-wrap:anywhere;border-bottom:0;line-height:1.5;border-left:0!important}.print-description-row td:before{display:block!important}.print-description-row td:after,.print-total-words:after{display:none}.print-sale-row strong,.print-description-row strong,.print-total-words strong{margin-left:.12cm;font-weight:700}.print-total-words{text-align:right!important;border-bottom:0!important;height:1.5cm!important}.print-col-row{width:4%}.print-col-code{width:8%}.print-col-title{width:20%}.print-col-count{width:6%}.print-col-price,.print-col-total{width:10%}.print-col-discount{width:9%}.print-col-after{width:11%}.print-col-tax{width:10%}.print-col-final{width:12%}.print-closing-box{direction:ltr;grid-template-columns:52% 48%;min-height:3cm;display:grid}.print-signatures-panel{direction:rtl;border-right:0;grid-template-columns:1fr 1fr;min-height:3cm;display:grid;position:relative}.print-signatures-panel:before{content:"";z-index:2;background:var(--print-line-color);width:1px;transform:scaleX(var(--print-hairline));transform-origin:100%;pointer-events:none;position:absolute;top:0;bottom:0;right:0}.print-signatures-panel>div{text-align:center;justify-content:center;align-items:flex-end;min-height:3cm;padding:.18cm;display:flex;position:relative}.print-signatures-panel>div+div{border-right:0}.print-signatures-panel>div+div:after{width:1px;transform:scaleX(var(--print-hairline));transform-origin:100%;top:0;bottom:0;right:0}.print-signatures-panel strong{font-size:7px;font-weight:700}.print-seller-signature img{object-fit:contain;width:4.15cm;max-width:calc(100% - .3cm);max-height:2.55cm;position:absolute;top:.1cm;right:.15cm}.print-payment-panel{direction:rtl;min-height:3cm}.print-payment-panel>div{border-bottom:0;grid-template-columns:1.55cm 1fr;align-items:center;height:.6cm;padding:0 .18cm;font-size:7px;display:grid;position:relative}.print-payment-panel>div:after{height:1px;transform:scaleY(var(--print-hairline));transform-origin:bottom;bottom:0;left:0;right:0}.print-payment-panel>div:last-child{border-bottom:0}.print-payment-panel>div:last-child:after{display:none}.print-payment-panel strong{font-weight:700}.print-payment-panel span{text-align:center;font-weight:500}.print-closing-box.signatures-only{grid-template-columns:1fr}.print-closing-box.signatures-only .print-signatures-panel{border-right:0}.print-closing-box.signatures-only .print-signatures-panel:before{display:none}.print-closing-box.manual-signatures,.print-closing-box.manual-signatures .print-signatures-panel,.print-closing-box.manual-signatures .print-signatures-panel>div{min-height:4.5cm}.print-closing-box.manual-signatures{border:0;border-radius:0;overflow:visible}.print-closing-box.manual-signatures:before{display:none}.print-closing-box.manual-signatures .print-signatures-panel{grid-template-columns:1fr 1fr;width:100%}.print-closing-box.manual-signatures .print-signatures-panel>div{align-items:flex-start;padding-top:.4cm}.print-closing-box.manual-signatures .print-signatures-panel>div+div{border-right:0}.print-closing-box.manual-signatures .print-signatures-panel>div+div:after{display:none}.print-closing-box.manual-signatures .print-seller-signature img{display:none!important}.invoice-print-notes{break-inside:avoid;page-break-inside:avoid}.invoice-print-notes.force-page-two{break-before:page;page-break-before:always;margin-top:0}.print-note-row{white-space:nowrap;border-bottom:0;align-items:center;gap:.1cm;height:.6cm;padding:0 .2cm;font-size:7.3px;font-weight:500;display:flex;overflow:hidden}.print-note-row:last-child{border-bottom:0}.print-note-row strong{flex:none;font-weight:700}}*{box-sizing:border-box}body{direction:rtl;background:#fff;margin:0;font-family:IRANYekanX,sans-serif}button,input,textarea,select,table,th,td{font-family:IRANYekanX,sans-serif}.invoice-container{direction:rtl;background:#fff;border-radius:10px;width:95%;max-width:1200px;margin:30px auto;padding:25px}.form-row{gap:20px;margin-bottom:15px;display:flex}.form-group{flex-direction:column;flex:1;display:flex}.form-group input{border:1px solid #ccc;border-radius:6px;outline:none;padding:10px}.invoice-header{direction:rtl;background:#fff;border:1px solid #d1d5db;border-radius:6px;justify-content:space-between;align-items:center;width:100%;margin-bottom:12px;padding:18px 20px;display:flex}.invoice-title{margin:0;font-size:22px;font-weight:700;line-height:1.4}.header-details-new{flex-direction:column;gap:3px;width:190px;display:flex}.header-field{direction:rtl;align-items:center;gap:8px;width:100%;display:flex}.header-field label{white-space:nowrap;text-align:right;flex-shrink:0;width:55px;font-size:10px;font-weight:700}.header-field input{text-align:right;direction:rtl;background:#fff;border:1px solid #dbdbdb;border-radius:5px;outline:none;flex:1;min-width:0;padding:6px 8px;font-size:12px}.header-field input:focus{border-color:#2563eb}.party-section{flex-direction:column;gap:12px;width:100%;display:flex}.party-box{background:#fff;border:1px solid #ccc;border-radius:6px;width:100%;padding:0;overflow:hidden}.party-title{text-align:right;background:#e7e7e7;border-bottom:1px solid #ccc;margin:0;padding:8px 12px;font-size:14px;font-weight:700}.party-table{border-collapse:separate;border-spacing:0;table-layout:fixed;direction:ltr;width:100%}.party-col-small{width:25%}.party-col-large{width:50%}.party-table td{vertical-align:middle;text-align:right;direction:rtl;border-bottom:.1px solid #c9c9c9;border-left:1px solid #c9c9c9;height:48px;padding:7px 10px;font-size:12px}.party-table tr:last-child td{border-bottom:none}.party-table td:first-child{border-left:none}.party-label{color:#3b3b3b;white-space:nowrap;font-size:12px;font-weight:700}.party-value{color:#252525;margin-right:5px;font-size:12px}.buyer-field{direction:rtl;align-items:center;gap:6px;width:100%;display:flex}.buyer-field .party-label{white-space:nowrap;color:#3b3b3b;flex-shrink:0;font-size:12px;font-weight:700}.buyer-field .party-input{text-align:right;direction:rtl;background:0 0;border:none;border-bottom:1px dashed #e9e9e9;outline:none;flex:1;width:auto;min-width:0;margin:0;padding:4px 6px;font-size:12px}.buyer-field .party-input:focus{background:#fff;border-bottom:1px solid #560869}.party-box.buyer-party-box{position:relative;overflow:visible}.buyer-autocomplete{flex:1;min-width:0;position:relative}.buyer-autocomplete .party-input{width:100%}.buyer-suggestions{z-index:100;direction:rtl;background:#fff;border:1px solid #d8deea;border-radius:8px;max-height:260px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow-y:auto;box-shadow:0 12px 28px #0f172a24}.buyer-suggestion{color:#26344d;width:100%;font:inherit;text-align:right;cursor:pointer;background:#fff;border:0;border-bottom:1px solid #edf0f5;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.buyer-suggestion:last-child{border-bottom:0}.buyer-suggestion:hover,.buyer-suggestion:focus-visible{background:#f3f6ff;outline:none}.buyer-suggestion-person{font-weight:700}.buyer-suggestion-company{color:#65738b;font-size:11px}.buyer-suggestion-new{color:#2563eb;justify-content:flex-start;font-weight:700}.invoice-table tfoot tr:last-child td{border-bottom:none!important}.product-section{width:100%;margin-top:10px}.product-table-wrapper{background:#fff;border:1px solid #bfc5cc;border-radius:6px;width:100%;overflow:hidden}.invoice-table{border-collapse:collapse;table-layout:fixed;direction:rtl;background:#fff;border:none;width:100%;margin:0;font-size:12px}.col-row{width:4%}.col-code{width:8%}.col-title{width:18%}.col-count{width:6%}.col-unit-price,.col-total{width:10%}.col-discount{width:8%}.col-after-discount{width:10%}.col-tax{width:9%}.col-final{width:10%}.col-operation{width:7%}.product-main-title-row th{text-align:right;background:#e7e7e7;border:none;border-bottom:1px solid #bfc5cc;height:auto;padding:8px 12px;font-size:14px;font-weight:700;line-height:1.6}.invoice-table thead tr:not(.product-main-title-row) th{text-align:center;vertical-align:middle;color:#383838;background:#fff;border-bottom:1px solid #d1d5db;border-left:1px solid #d1d5db;height:48px;padding:7px 5px;font-size:12px;font-weight:700;line-height:1.6}.invoice-table tbody td{text-align:center;vertical-align:middle;color:#111827;background:#fff;border-bottom:1px solid #d1d5db;border-left:1px solid #d1d5db;height:40px;padding:5px;font-size:12px}.invoice-table tbody td:last-child{border-left:none}.invoice-table tbody tr,.invoice-table tbody tr:nth-child(odd),.invoice-table tbody tr:nth-child(2n){background:#fff}.product-input{text-align:center;color:#111827;background:0 0;border:none;outline:none;width:100%;padding:4px 3px;font-family:IRANYekanX,sans-serif;font-size:12px}.product-input:focus{background:#f8fafc}.product-title-input{text-align:right;direction:rtl}.product-title-textarea{resize:none;white-space:pre-wrap;overflow-wrap:anywhere;min-height:24px;line-height:1.55;display:block;overflow:hidden}.calculated-cell{text-align:center;direction:ltr;font-size:12px;font-weight:600}.invoice-table tfoot td{vertical-align:middle;background:#fff;border-bottom:1px solid #d1d5db;border-left:1px solid #d1d5db;padding:8px;font-size:12px}.invoice-table tfoot td:last-child{border-left:none}.invoice-table tfoot .product-total-row td{text-align:center;height:46px;padding:8px;font-size:12px;font-weight:700;background:#e7e7e7!important}.invoice-extra-row td{background:#fff;border-bottom:1px solid #d1d5db;border-left:1px solid #d1d5db}.total-words-cell{color:#111827;font-size:12px;line-height:2;text-align:right!important;vertical-align:middle!important;padding:12px 15px!important}.total-words-cell strong{margin-left:6px;font-size:12px;font-weight:700}.total-words-cell span{font-size:12px;font-weight:400}.sale-condition-cell{height:42px;text-align:right!important;padding:8px 15px!important}.sale-condition-content{align-items:center;gap:28px;width:100%;display:flex}.sale-condition-content strong{white-space:nowrap;margin-left:10px;font-size:12px;font-weight:550}.sale-option{white-space:nowrap;cursor:pointer;align-items:center;gap:6px;font-size:12px;display:inline-flex}.sale-option input{appearance:none;cursor:pointer;background:#fff;border:1px solid #9ca3af;border-radius:2px;width:14px;height:14px;margin:0;position:relative}.sale-option input:checked:after{content:"✓";color:#111827;font-size:12px;font-weight:700;position:absolute;top:50%;left:50%;transform:translate(-50%,-55%)}.product-description-row td{vertical-align:top;background:#fff;border-bottom:1px solid #d1d5db;border-left:1px solid #d1d5db;height:70px;padding:8px 15px!important}.description-field{align-items:flex-start;gap:8px;width:100%;display:flex}.description-field strong{white-space:nowrap;flex-shrink:0;font-size:12px;font-weight:550}.description-field textarea{resize:none;text-align:right;direction:rtl;background:0 0;border:none;outline:none;flex:1;min-height:50px;padding:2px 5px;font-family:IRANYekanX,sans-serif;font-size:12px}.invoice-signature-row td{vertical-align:top;background:#fff;border-bottom:none;border-left:1px solid #d1d5db;height:120px;padding:10px 15px;font-size:12px;position:relative}.invoice-signature-row td:last-child{border-left:none}.buyer-signature-cell,.seller-signature-cell{text-align:right}.buyer-signature-cell strong,.seller-signature-cell strong{font-size:12px;font-weight:700}.invoice-stamp-image{object-fit:contain;width:300px;display:block;position:absolute;top:-4px;bottom:0;left:60%;transform:translate(-50%)}.product-actions{align-items:center;gap:10px;margin-top:12px;display:flex}.product-actions .invoice-button{margin-top:0}.stamp-toggle-button.active{background:#16a34a}.invoice-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;margin-top:15px;padding:9px 18px;font-size:13px;transition:all .2s}.invoice-button:hover{opacity:.85}.delete-button{color:#111827;cursor:pointer;background:#e0e0e0;border:none;border-radius:5px;padding:5px 10px;transition:all .2s}.delete-button:hover{background:#fedbdb}.print-actions{direction:ltr;justify-content:flex-start;width:100%;margin-top:20px;display:flex}.payment-section{direction:rtl;background:#fff;border:1px solid #bfc5cc;border-radius:6px;width:100%;margin-top:20px;overflow:hidden}.payment-title{text-align:right;background:#e7e7e7;border-bottom:1px solid #bfc5cc;margin:0;padding:9px 12px;font-size:14px;font-weight:700}.payment-account-buttons{background:#fafafa;border-bottom:1px solid #e5e7eb;align-items:center;gap:8px;padding:10px 12px;display:flex}.payment-account-button{color:#111827;background:#e5e7eb;margin:0;padding:7px 15px}.payment-account-button:hover{opacity:1;background:#d1d5db}.payment-account-button.active{color:#fff;background:#386fe7}.payment-table{border-collapse:collapse;table-layout:fixed;width:100%}.payment-table td{vertical-align:middle;border-bottom:1px solid #d1d5db;height:44px;padding:7px 12px;font-size:13px}.payment-table tr:last-child td{border-bottom:none}.payment-label{color:#374151;text-align:right;background:#fafafa;border-left:1px solid #d1d5db;width:22%;font-weight:700}.payment-value{color:#111827;text-align:center;width:78%;font-size:14px;font-weight:600}.payment-bank{color:#374151;border-right:1px solid #d1d5db;margin-right:25px;padding-right:25px;font-weight:700;display:inline-block}.additional-notes{background:#fff;border:1px solid #bfc5cc;border-radius:6px;width:100%;margin-top:20px;overflow:hidden}.additional-notes-title{text-align:right;background:#e7e7e7;border-bottom:1px solid #bfc5cc;margin:0;padding:9px 12px;font-size:14px;font-weight:700}.additional-notes-content{padding:8px 12px}.additional-note-item{color:#1f2937;text-align:right;border-bottom:1px dashed #e5e7eb;align-items:flex-start;gap:6px;padding:6px 0;font-size:11.5px;line-height:1.9;display:flex}.additional-note-item:last-child{border-bottom:none}.additional-note-number{flex-shrink:0;min-width:18px;font-weight:700}.party-box,.product-table-wrapper{background:#fff;border:1px solid #d1d5db;border-radius:6px;overflow:hidden}.invoice-type-buttons{direction:rtl;justify-content:flex-start;gap:10px;margin:15px 0;display:flex}.invoice-type-button{color:#374151;cursor:pointer;background:#e5e7eb;border:none;border-radius:6px;padding:9px 18px;font-family:inherit;font-size:13px;transition:all .2s}.invoice-type-button:hover{background:#e8dbfe}.invoice-type-button.active{color:#fff;background:#7c15d1}@media (width<=900px){.invoice-container{width:98%;padding:15px}.invoice-header{gap:15px}.invoice-table{font-size:11px}.party-table td{padding:6px;font-size:11px}.party-label,.party-value,.buyer-field .party-label,.buyer-field .party-input{font-size:11px}}@page{size:A4 portrait;margin:5mm}@media print{.no-print,.create-invoice-top,.invoice-list-shortcut{display:none!important}html,body{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff;margin:0;padding:0}.app-header,.sidebar{display:none!important}.app-layout{min-height:0!important;margin:0!important;padding:0!important;display:block!important}.main-content,.create-invoice-page,.invoice-view-page{width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important}.party-box,.product-table-wrapper{clip-path:inset(0 round 5px);-webkit-print-color-adjust:exact;print-color-adjust:exact;border-radius:5px!important;overflow:hidden!important}.invoice-container{box-shadow:none;background:#fff;border-radius:0;width:var(--print-content-width,100%)!important;zoom:var(--print-scale,1)!important;max-width:none!important;margin:0 auto!important;padding:0!important;transform:none!important}.invoice-actions,.product-actions,.payment-account-buttons,.invoice-type-buttons,.invoice-button,.invoice-type-button,.delete-button,.stamp-toggle-button,.operation-column{display:none!important}.invoice-header{break-inside:avoid;page-break-inside:avoid;border-radius:5px!important;justify-content:space-between!important;align-items:center!important;min-height:70px!important;margin-bottom:5px!important;padding:10px 14px!important;display:flex!important}.header-details-new{gap:6px!important;width:165px!important}.header-field{gap:2px!important}.header-field label{margin:2px 0 0 -15px;width:70px!important;font-size:9px!important;font-weight:700!important}.header-field input{border-radius:4px!important;height:24px!important;padding:2px 10px!important;font-size:8px!important}.party-section{gap:5px!important}.party-box{break-inside:avoid;page-break-inside:avoid}.party-title{padding:5px 8px!important;font-size:10px!important}.party-table td{height:32px!important;padding:3px 6px!important;font-size:9px!important}.party-label,.party-value,.buyer-field .party-label,.buyer-field .party-input{font-size:9px!important}.buyer-field .party-input{border-bottom:none!important;padding:2px!important}.count-input{text-align:center!important;direction:rtl!important;width:100%!important;margin:0!important;padding:0!important}.product-table-wrapper{background:#fff;clip-path:none!important;border:none!important;border-radius:0!important;width:100%!important;overflow:visible!important}.product-section{margin-top:5px!important}.invoice-table{border-collapse:separate!important;border-spacing:0!important;table-layout:fixed!important;border:none!important;width:100%!important;margin:0!important;font-size:8px!important}.invoice-table thead{display:table-header-group!important}.invoice-table tfoot{break-inside:avoid!important;page-break-inside:avoid!important;display:table-row-group!important}.invoice-table tfoot tr{break-inside:avoid!important;page-break-inside:avoid!important}.invoice-table thead tr>:first-child,.invoice-table tbody tr>:first-child,.invoice-table tfoot tr>:first-child{border-right:1px solid #bfc5cc!important}.invoice-table thead tr>:last-child,.invoice-table tbody tr>:last-child,.invoice-table tfoot tr>:last-child{border-left:1px solid #bfc5cc!important}.invoice-table thead tr:first-child>*{border-top:1px solid #bfc5cc!important}.invoice-table tfoot tr:last-child>*{border-bottom:1px solid #bfc5cc!important}.invoice-table .product-main-title-row>th{border-radius:5px 5px 0 0!important;overflow:hidden!important}.invoice-table .invoice-signature-row>td:first-child{border-bottom-right-radius:5px!important}.invoice-table .invoice-signature-row>td:nth-last-child(2){border-bottom-left-radius:5px!important}.col-row{width:4%!important}.col-code{width:8%!important}.col-title{width:20%!important}.col-count{width:6%!important}.col-unit-price,.col-total{width:10%!important}.col-discount{width:9%!important}.col-after-discount{width:11%!important}.col-tax{width:10%!important}.col-final{width:12%!important}.col-operation{width:0!important}.product-main-title-row th{padding:5px 8px!important;font-size:10px!important}.invoice-table thead tr:not(.product-main-title-row) th{height:34px!important;padding:3px!important;font-size:8px!important;line-height:1.4!important}.invoice-table tbody td{height:28px!important;min-height:0!important;padding:2px 3px!important;font-size:8px!important}.product-input{line-height:1.2!important}.product-input,.calculated-cell{font-size:8px!important}.product-input{border:none!important;padding:2px!important}.invoice-table tfoot tr:last-child td{border-bottom:1px solid #bfc5cc!important}.invoice-table thead th:nth-last-child(2),.invoice-table tbody td:nth-last-child(2),.invoice-table tfoot td:nth-last-child(2){border-left:1px solid #bfc5cc!important}.invoice-table tfoot .product-total-row td{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#e7e7e7!important;height:32px!important;padding:4px!important;font-size:8px!important}.sale-condition-cell{border-left:1px solid #d1d5db!important;height:30px!important;padding:4px 8px!important}.sale-condition-content{gap:18px!important}.sale-condition-content,.sale-option,.sale-condition-content strong{font-size:8px!important}.sale-option input{width:10px!important;height:10px!important}.total-words-cell{border-right:1px solid #d1d5db!important;padding:5px 8px!important;font-size:8px!important;line-height:1.5!important}.total-words-cell strong,.total-words-cell span{font-size:8px!important}.product-description-row td{border-left:1px solid #d1d5db!important;height:42px!important;padding:4px 8px!important}.description-field strong,.description-field textarea{font-size:8px!important}.description-field textarea{resize:none;border:none!important;min-height:30px!important}.invoice-signature-row td{height:75px!important;padding:5px 8px!important;font-size:8px!important}.buyer-signature-cell strong,.seller-signature-cell strong{font-size:8px!important}.invoice-stamp-image{object-fit:contain;width:200px!important;display:block!important}.payment-section{clip-path:inset(0 round 5px);break-inside:avoid;page-break-inside:avoid;width:100%;border-radius:5px!important;margin-top:5px!important;overflow:hidden!important}.payment-title{padding:5px 8px!important;font-size:10px!important}.payment-table td{height:28px!important;padding:3px 6px!important;font-size:8px!important}.payment-value{font-size:9px!important}.additional-notes{clip-path:inset(0 round 5px);width:100%;break-inside:auto!important;page-break-inside:auto!important;border-radius:5px!important;margin-top:5px!important;overflow:hidden!important}.additional-notes-title{padding:5px 8px!important;font-size:10px!important}.additional-notes-content{padding:5px 10px!important}.additional-note-item{break-inside:avoid;page-break-inside:avoid;padding:4px 0!important;font-size:7.5px!important;line-height:1.4!important}.additional-note-number{flex-shrink:0;min-width:5px;font-weight:700}.invoice-print-adaptive .invoice-table tbody td{height:var(--invoice-row-height,28px)!important;min-height:var(--invoice-row-height,28px)!important}.invoice-print-adaptive .product-title-textarea{field-sizing:content;white-space:pre-wrap!important;overflow-wrap:anywhere!important;width:100%!important;height:auto!important;min-height:1.3em!important;padding:1px 2px!important;line-height:1.35!important;overflow:visible!important}.invoice-print-compact .invoice-header{min-height:64px!important;padding:8px 12px!important}.invoice-print-compact .party-table td{height:29px!important}.invoice-print-compact .invoice-table thead tr:not(.product-main-title-row) th{height:32px!important}.invoice-print-compact .invoice-table tbody td{height:24px!important}.invoice-print-compact .invoice-table tfoot .product-total-row td{height:30px!important}.invoice-print-compact .sale-condition-cell{height:28px!important}.invoice-print-compact .product-description-row td{height:38px!important}.invoice-print-compact .description-field textarea{min-height:26px!important}.invoice-print-compact .invoice-signature-row td{height:68px!important}.invoice-print-compact .invoice-stamp-image{width:185px!important;max-height:62px!important}.invoice-print-compact .payment-table td{height:25px!important}.invoice-print-compact .additional-notes-content{padding-top:3px!important;padding-bottom:3px!important}.invoice-print-compact .additional-note-item{padding:2px 0!important;line-height:1.35!important}.invoice-print-dense .invoice-header{min-height:58px!important;padding:7px 11px!important}.invoice-print-dense .party-title,.invoice-print-dense .product-main-title-row th,.invoice-print-dense .payment-title,.invoice-print-dense .additional-notes-title{padding-top:4px!important;padding-bottom:4px!important}.invoice-print-dense .party-table td{height:27px!important;padding-top:2px!important;padding-bottom:2px!important}.invoice-print-dense .invoice-table thead tr:not(.product-main-title-row) th{height:29px!important}.invoice-print-dense .invoice-table tbody td{height:23px!important;padding-top:1px!important;padding-bottom:1px!important}.invoice-print-dense .invoice-table tfoot .product-total-row td{height:28px!important}.invoice-print-dense .sale-condition-cell{height:26px!important}.invoice-print-dense .product-description-row td{height:36px!important}.invoice-print-dense .description-field textarea{min-height:22px!important}.invoice-print-dense .invoice-signature-row td{height:64px!important}.invoice-print-dense .invoice-stamp-image{width:170px!important;max-height:54px!important}.invoice-print-dense .payment-table td{height:24px!important;padding-top:2px!important;padding-bottom:2px!important}.invoice-print-dense .additional-notes-content{padding-top:2px!important;padding-bottom:2px!important}.invoice-print-dense .additional-note-item{padding:1.5px 0!important;line-height:1.3!important}.invoice-title{margin:0!important;font-size:14px!important;font-weight:700!important;line-height:1.3!important}.note-checkbox{display:none!important}input,textarea{box-shadow:none!important;background:0 0!important}}.admin-page{direction:rtl;width:100%;max-width:900px;margin:0 auto}.admin-page-header{margin-bottom:22px}.admin-page-header h1{color:#111827;margin:0 0 6px;font-size:26px}.admin-page-header p,.admin-card-heading p{color:#64748b;margin:0;font-size:13px;line-height:1.9}.admin-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;max-width:590px;padding:26px;box-shadow:0 10px 28px #0f172a0f}.admin-card-heading{border-bottom:1px solid #e2e8f0;margin-bottom:20px;padding-bottom:18px}.admin-card-heading h2{color:#1e293b;margin:0 0 8px;font-size:19px}.admin-password-form{gap:17px;display:grid}.admin-password-form label{color:#334155;gap:7px;font-size:13px;font-weight:700;display:grid}.admin-password-form input{color:#0f172a;direction:ltr;background:#fff;border:1px solid #cbd5e1;border-radius:9px;width:100%;height:44px;padding:0 13px;font-family:inherit;font-size:14px;transition:border-color .2s,box-shadow .2s}.admin-password-form input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1f}.admin-password-form small{color:#64748b;font-size:11px;font-weight:400}.admin-password-form button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:9px;width:fit-content;min-width:150px;height:42px;padding:0 20px;font-family:inherit;font-size:13px;font-weight:700}.admin-password-form button:hover:not(:disabled){background:#1d4ed8}.admin-password-form button:disabled{cursor:wait;opacity:.65}.admin-form-message{border-radius:8px;padding:11px 13px;font-size:12px;line-height:1.8}.admin-form-message.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.admin-form-message.success{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}@media (width<=640px){.admin-card{padding:20px}.admin-password-form button{width:100%}}.settings-page{direction:rtl;width:100%;max-width:1400px;margin:0 auto;padding:30px 32px 40px}.settings-page-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;display:flex}.settings-back-button{color:#4a0d75;font:inherit;cursor:pointer;background:#fff;border:1px solid #ded8e5;border-radius:10px;align-items:center;gap:7px;padding:9px 14px;font-weight:700;display:flex}.settings-modules-grid{grid-template-columns:repeat(auto-fit,minmax(300px,420px));gap:18px;display:grid}.settings-module-card{text-align:right;color:#3b0a62;font:inherit;cursor:pointer;background:linear-gradient(145deg,#fff,#fbf9fd);border:1px solid #e5e0e9;border-radius:18px;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:22px;transition:all .2s;display:grid;box-shadow:0 12px 32px #2a123914}.settings-module-card:hover{border-color:#cdbbd9;transform:translateY(-2px);box-shadow:0 16px 36px #3a0d5821}.settings-module-icon{color:#fff;background:linear-gradient(135deg,#5c1885,#35075a);border-radius:16px;place-items:center;width:58px;height:58px;display:grid}.settings-module-copy{flex-direction:column;gap:6px;display:flex}.settings-module-copy strong{font-size:18px}.settings-module-copy small{color:#77717e;font-size:13px}.settings-module-content{gap:22px;width:min(940px,100%);margin-left:auto;margin-right:0;display:grid}.settings-card{background:#fff;border:1px solid #e7e5eb;border-radius:18px;padding:24px;box-shadow:0 14px 38px #26262b14}.settings-section-heading{color:#3b0a62;align-items:center;gap:12px;margin-bottom:22px;display:flex}.settings-section-heading h2{margin:0;font-size:18px}.settings-section-heading p{color:#76727e;margin:4px 0 0;font-size:13px}.settings-status{color:#18794e;background:#e8f7ef;border:1px solid #bce8cf;border-radius:999px;margin-right:auto;padding:6px 11px;font-size:12px}.settings-tabs{background:#f4f1f6;border-radius:12px;gap:9px;width:max-content;margin-bottom:22px;padding:5px;display:flex}.settings-tabs button{color:#6d6872;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:9px;align-items:center;gap:7px;padding:9px 15px;font-weight:700;display:flex}.settings-tabs button.active{color:#4a0d75;background:#fff;box-shadow:0 4px 14px #3012441a}.settings-title-field{background:#fbf9fd;border:1px solid #e7deed;border-radius:12px;padding:16px}.settings-title-field input{background:#fff}.settings-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:0 18px;display:grid}.settings-field{color:#35313b;gap:8px;margin-bottom:18px;font-size:14px;font-weight:600;display:grid}.settings-field.wide{grid-column:1/-1}.settings-field input,.settings-field select,.settings-field textarea,.settings-seller-row input{font:inherit;background:#fbfbfc;border:1px solid #ddd9e3;border-radius:10px;outline:none;padding:0 13px}.settings-field input,.settings-field select,.settings-seller-row input{box-sizing:border-box;width:100%;height:44px;display:block}.settings-field select{color:#35313b;cursor:pointer}.settings-field textarea{resize:vertical;min-height:120px;padding:12px 13px;line-height:1.9}.settings-field input:focus,.settings-field select:focus,.settings-field textarea:focus,.settings-seller-row input:focus{border-color:#6b2698;box-shadow:0 0 0 3px #4a0d7517}.settings-password-input{position:relative;display:block!important}.settings-password-input input{width:100%;padding-left:46px}.settings-password-input button{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;width:34px;height:34px;padding:0;display:grid;position:absolute;top:50%;left:6px;transform:translateY(-50%)}.settings-password-input button:hover{color:#4a0d75;background:#f0edf3}.settings-payment-heading{align-items:flex-start}.settings-inline-add{color:#4a0d75;font:inherit;cursor:pointer;background:#fff;border:1px solid #cdbbd9;border-radius:9px;align-items:center;gap:7px;margin-right:auto;padding:9px 13px;font-weight:500;display:inline-flex}.settings-inline-add:disabled{opacity:.45;cursor:not-allowed}.settings-payment-list{gap:16px;display:grid}.settings-compact-row{background:#fbfbfc;border:1px solid #ece8ef;border-radius:11px;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 13px;display:grid}.settings-compact-index{color:#4a0d75;background:#efe9f3;border-radius:8px;place-items:center;width:30px;height:30px;font-size:13px;font-weight:700;display:grid}.settings-compact-copy{flex-direction:column;gap:4px;min-width:0;display:flex}.settings-compact-copy strong{color:#344054;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.settings-compact-copy small{color:#8c8791;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.settings-note-row .settings-compact-copy strong{white-space:normal;line-height:1.9}.settings-empty-list{color:#7c7481;text-align:center;background:#fcfbfd;border:1px dashed #d8d0de;border-radius:11px;padding:18px;font-size:13px}.settings-payment-account{background:#fbfafc;border:1px solid #e5e0e9;border-radius:13px;padding:17px 18px 5px}.settings-payment-account-title{color:#3b0a62;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px;display:flex}.settings-payment-account-title>button{color:#7c6b83;cursor:pointer;background:#f3eef5;border:0;border-radius:8px;place-items:center;width:34px;height:34px;display:grid}.settings-payment-account-title>button:hover:not(:disabled){color:#dc2626;background:#feecec}.settings-payment-account-title>button:disabled{opacity:.35;cursor:not-allowed}.settings-field span{align-items:center;gap:7px;display:flex}.settings-field small{color:#85818b;font-weight:400}.settings-primary-field{border-bottom:1px solid #ece9ef;padding-bottom:22px}.settings-section-heading.compact{margin:2px 0 13px}.settings-add-seller{background:#fbf9fd;border:1px dashed #cdbbd9;border-radius:14px;margin:16px 0 20px;padding:18px}.settings-add-seller-title{color:#4a0d75;align-items:center;gap:10px;margin-bottom:16px;display:flex}.settings-add-seller-title>div{flex-direction:column;gap:3px;display:flex}.settings-add-seller-title small{color:#817a87;font-size:12px}.settings-new-seller-fields .settings-field{margin-bottom:12px}.settings-add-seller-button{color:#4a0d75;font:inherit;cursor:pointer;background:#fff;border:1px solid #5c1885;border-radius:9px;align-items:center;gap:7px;padding:9px 14px;font-weight:700;display:flex}.settings-add-seller-button:disabled{opacity:.55}.settings-seller-row{border-bottom:1px solid #f0eef2;grid-template-columns:minmax(170px,1fr) minmax(240px,1.4fr);align-items:center;gap:18px;padding:12px 0;display:grid}.settings-seller-row>span{flex-direction:column;gap:3px;display:flex}.settings-seller-row small{color:#8c8791;font-size:12px}.settings-actions{justify-content:flex-start;padding-top:22px;display:flex}.settings-actions button{color:#fff;font:inherit;cursor:pointer;background:linear-gradient(135deg,#4a0d75,#340759);border:0;border-radius:10px;align-items:center;gap:8px;padding:11px 19px;font-weight:500;display:flex}.settings-actions button:disabled{opacity:.6}.settings-message{color:#167146;background:#e9f8ef;border-radius:9px;margin:0 0 18px;padding:11px 14px}.settings-message.error{color:#b42318;background:#fff0f0}.settings-loading{color:#76727e}@media (width<=700px){.settings-page-header{flex-direction:column;align-items:flex-start}.settings-module-card{padding:17px}.settings-card{border-radius:14px;padding:18px 14px}.settings-fields-grid{grid-template-columns:1fr}.settings-field.wide{grid-column:auto}.settings-seller-row{grid-template-columns:1fr;gap:8px}.settings-status{font-size:11px}.settings-tabs{width:100%}.settings-tabs button{flex:1;justify-content:center;padding:9px}.settings-page{padding-bottom:28px}}.settings-module-icon-users{background:linear-gradient(135deg,#197278,#0b4f55)}.settings-users-list{gap:8px;display:grid}.settings-user-row{background:#fbfbfc;border:1px solid #ece8ef;border-radius:11px;justify-content:space-between;align-items:center;gap:16px;padding:13px 14px;display:flex}.settings-user-row>span:first-child{flex-direction:column;gap:3px;display:flex}.settings-user-row small{color:#8c8791;font-size:12px}.settings-user-code{color:#5e5863;background:#f1edf4;border-radius:999px;padding:6px 10px;font-size:13px}.settings-user-role{color:#155e75;background:#e6f6fa;border-radius:999px;padding:6px 11px;font-size:13px}.settings-user-department{color:#6b3d12;background:#fff3df;border-radius:999px;padding:6px 11px;font-size:13px}.settings-admin-row{background:#f7fcfd;border-color:#cde7ed}.settings-packing-row{background:#fffdf9;border-color:#f0dfc4}.settings-warehouse-row{background:#fbfdf9;border-color:#dbe4d7}.settings-warehouse-row .settings-user-department{color:#365a2c;background:#eaf5e6}.settings-users-group-heading{color:#344054;align-items:center;gap:8px;margin:2px 0 12px;display:flex}.settings-users-group-heading small{color:#8c8791;margin-right:auto;font-size:12px;font-weight:400}.settings-users-divider{background:#e7e4ea;height:1px;margin:22px 0}.settings-user-meta,.settings-user-actions{align-items:center;gap:9px;display:flex}.settings-user-actions button{color:#526174;cursor:pointer;background:#f0f4f8;border:0;border-radius:9px;place-items:center;width:36px;height:36px;transition:all .2s;display:grid}.settings-user-actions button:hover{color:#2563eb;background:#eaf2ff;transform:translateY(-1px)}.settings-user-actions button.delete:hover{color:#dc2626;background:#feecec}.settings-user-actions button:disabled{opacity:.35;cursor:not-allowed;transform:none}.settings-modal{z-index:1100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a7a;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.settings-modal-box{background:#fff;border-radius:16px;width:min(620px,100%);padding:25px;box-shadow:0 24px 65px #0f172a3d}.settings-modal-heading{border-bottom:1px solid #e8e4eb;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;padding-bottom:18px;display:flex}.settings-modal-heading h2,.settings-delete-box h2{color:#172033;margin:0;font-size:20px}.settings-modal-heading p{color:#64748b;margin:6px 0 0;font-size:13px}.settings-modal-heading>button{color:#657083;cursor:pointer;background:#f4f2f5;border:0;border-radius:9px;place-items:center;width:35px;height:35px;display:grid}.settings-modal-actions{justify-content:flex-end;gap:10px;padding-top:8px;display:flex}.settings-modal-actions button{color:#fff;min-height:42px;font:inherit;cursor:pointer;background:#4a0d75;border:0;border-radius:9px;justify-content:center;align-items:center;gap:7px;padding:0 18px;font-weight:500;display:inline-flex}.settings-modal-actions button.secondary{color:#475569;background:#fff;border:1px solid #d9dce2}.settings-modal-actions button.danger{background:#dc2626}.settings-modal-actions button:disabled{opacity:.6;cursor:wait}.settings-delete-box{width:min(440px,100%)}.settings-delete-box h2{margin-bottom:10px}.settings-delete-box p{color:#475569;margin:0;font-size:14px;line-height:2}.settings-delete-icon{color:#dc2626;background:#fee2e2;border-radius:13px;place-items:center;width:48px;height:48px;margin-bottom:16px;display:grid}.settings-modal-hint{color:#7c7481;margin:-4px 0 14px;font-size:12px;line-height:1.8}@media (width<=700px){.settings-page{padding:22px 16px 32px}.settings-user-row{flex-direction:column;align-items:stretch}.settings-user-meta{justify-content:space-between}.settings-user-code{font-size:12px}.settings-modal-box{padding:20px 16px}.settings-modal-actions button{flex:1}.settings-payment-heading{flex-wrap:wrap;align-items:flex-start}.settings-inline-add{margin-right:31px}.settings-payment-account{padding:15px 13px 3px}.settings-compact-row{grid-template-columns:30px minmax(0,1fr) auto;gap:9px;padding:11px 10px}.settings-users-group-heading{flex-wrap:wrap}.settings-users-group-heading small{width:100%;margin-right:27px}}.customers-page{direction:rtl;max-width:1400px;margin:0 auto;padding:30px 32px 40px}.customers-top{justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px;display:flex}.customers-top h1{color:#172033;margin:0;font-size:28px}.customers-top p{color:#64748b;margin:7px 0 0;font-size:14px}.new-customer-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-width:175px;padding:12px 18px;font-family:inherit;font-size:14px;font-weight:700;transition:all .2s;display:inline-flex;box-shadow:0 8px 18px #2563eb38}.new-customer-button:hover{background:#1d4ed8;transform:translateY(-1px)}.customer-list-message{border-radius:10px;margin-bottom:18px;padding:12px 16px;font-size:14px}.customer-list-message.success{color:#166534;background:#dcfce7;border:1px solid #86efac}.customer-list-message.error{color:#991b1b;background:#fee2e2;border:1px solid #fca5a5}.customers-toolbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;display:flex}.customers-search-box{color:#7b8da7;background:#fff;border:1px solid #d8e3f0;border-radius:11px;align-items:center;gap:9px;width:min(390px,100%);min-height:42px;padding:0 15px;transition:all .2s;display:flex}.customers-search-box:focus-within{color:#2563eb;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.customers-search-box input{background:0 0;border:none;outline:none;flex:1;min-width:0;padding:11px 0;font-family:inherit;font-size:14px}.customers-count{color:#63738a;white-space:nowrap;background:#f7f9fc;border:1px solid #e5ebf3;border-radius:9px;padding:7px 12px;font-size:13px}.customers-table-card{background:#fff;border:1px solid #d9e4f1;border-radius:15px;overflow:hidden;box-shadow:0 8px 24px #2c45690e}.customers-table-scroll{overflow-x:auto}.customers-table{border-collapse:collapse;text-align:right;width:100%;min-width:1250px}.customers-table th{box-sizing:border-box;color:#465d7a;white-space:nowrap;background:#f7f9fc;border-bottom:1px solid #dce6f2;height:48px;padding:12px 18px;font-size:12px;font-weight:700}.customers-table td{box-sizing:border-box;color:#32445e;vertical-align:middle;border-bottom:1px solid #e8eef5;height:58px;padding:11px 18px;font-size:13px}.customers-table tbody tr:last-child td{border-bottom:none}.customers-table tbody tr:hover{background:#fbfdff}.customer-table-name{font-weight:600;color:#243a58!important}.customer-sales-expert{white-space:nowrap;font-weight:600;color:#38506f!important}.customers-table-empty{color:#64748b!important;text-align:center!important;padding:42px 20px!important}.customer-table-actions{align-items:center;gap:8px;display:flex}.customer-table-actions button{color:#4d627d;cursor:pointer;background:#f5f8fc;border:none;border-radius:9px;justify-content:center;align-items:center;width:36px;height:36px;transition:all .2s;display:inline-flex}.customer-table-actions button:hover{color:#2563eb;filter:brightness(.97);background:#eaf2ff;transform:translateY(-1px)}.customer-table-actions .customer-delete-action{color:#4d627d;background:#f5f8fc}.customer-table-actions .customer-delete-action:hover{color:#dc2626;background:#feecec}.customer-delete-modal{z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a73;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.customer-delete-box{background:#fff;border-radius:16px;width:min(420px,100%);padding:26px;box-shadow:0 24px 60px #0f172a33}.customer-delete-box h3{color:#172033;margin:0 0 14px}.customer-delete-box p{color:#475569;margin:0;line-height:2}.customer-delete-buttons{justify-content:flex-end;gap:10px;margin-top:24px;display:flex}.customer-delete-buttons button{color:#334155;cursor:pointer;background:#e2e8f0;border:none;border-radius:10px;padding:10px 18px;font-family:inherit}.customer-delete-buttons .confirm-customer-delete{color:#fff;background:#dc2626}@media (width<=700px){.customers-page{padding:20px}.customers-top,.customers-toolbar{flex-direction:column;align-items:stretch}.new-customer-button,.customers-search-box{width:100%}.customers-count{align-self:flex-end}}.customer-form-page{direction:rtl;max-width:1200px;margin:0 auto;padding:32px}.customer-form-top{justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px;display:flex}.customer-form-top h1{color:#172033;margin:0;font-size:28px}.customer-form-top p{color:#64748b;margin:7px 0 0;font-size:14px}.back-to-customers-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #dbe2ea;border-radius:11px;justify-content:center;align-items:center;gap:8px;padding:11px 16px;font-family:inherit;display:inline-flex}.back-to-customers-button:hover{color:#1d4ed8;border-color:#93c5fd}.customer-form-error,.customer-form-loading{border-radius:11px;margin-bottom:18px;padding:14px 16px;font-size:14px}.customer-form-error{color:#991b1b;background:#fee2e2;border:1px solid #fca5a5}.customer-form-loading{color:#475569;background:#fff;border:1px solid #e2e8f0}.customer-details-form{background:#fff;border:1px solid #e6eaf0;border-radius:18px;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:28px;display:grid;box-shadow:0 10px 30px #0f172a0f}.customer-form-field{flex-direction:column;gap:8px;display:flex}.customer-form-field-wide{grid-column:1/-1}.customer-form-field-half{grid-column:span 2}.customer-form-section-title{color:#172033;border-bottom:1px solid #e6eaf0;grid-column:1/-1;padding-bottom:12px;font-size:16px;font-weight:800}.customer-legal-section-title{margin-top:8px}.customer-form-field label{color:#334155;font-size:13px;font-weight:700}.customer-form-field input,.customer-form-field select,.customer-form-field textarea{box-sizing:border-box;color:#172033;background:#fff;border:1px solid #dbe2ea;border-radius:11px;outline:none;width:100%;padding:12px 13px;font-family:inherit;font-size:14px;transition:all .2s}.customer-form-field textarea{resize:vertical;min-height:85px}.customer-form-field input:focus,.customer-form-field select:focus,.customer-form-field textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.customer-form-buttons{grid-column:1/-1;justify-content:center;gap:12px;padding-top:6px;display:flex}.save-customer-form-button,.cancel-customer-form-button{cursor:pointer;border:none;border-radius:11px;justify-content:center;align-items:center;gap:8px;min-width:180px;padding:12px 20px;font-family:inherit;font-size:14px;font-weight:700;display:inline-flex}.save-customer-form-button{color:#fff;background:#2563eb}.cancel-customer-form-button{color:#334155;background:#e2e8f0}.save-customer-form-button:disabled,.cancel-customer-form-button:disabled{cursor:wait;opacity:.65}@media (width<=950px){.customer-form-page{padding:20px}.customer-details-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:22px}}@media (width<=560px){.customer-form-top,.customer-form-buttons{flex-direction:column;align-items:stretch}.back-to-customers-button,.save-customer-form-button,.cancel-customer-form-button{width:100%}.customer-details-form{grid-template-columns:1fr}.customer-form-field-wide,.customer-form-field-half,.customer-form-section-title,.customer-form-buttons{grid-column:1}}:root{--brand-950:#21103f;--brand-900:#32145f;--brand-800:#4c1d95;--brand-700:#5b21b6;--brand-600:#6d28d9;--brand-500:#7c3aed;--brand-400:#9f67f7;--brand-300:#c4b5fd;--brand-200:#ddd6fe;--brand-100:#ede9fe;--brand-50:#f7f5ff;--brand-gradient:linear-gradient(135deg, #4a0d75 0%, #340759 100%);--brand-gradient-soft:#f4eff8;--ink-950:#171126;--ink-800:#332b45;--ink-600:#665d78;--line:#e7e1f1;--surface:#fff;--surface-soft:#fbfaff;--shadow-sm:0 8px 24px #32145f14;--shadow-md:0 18px 45px #32145f21;--focus-ring:0 0 0 4px #7c3aed24}@media print{.persian-date-picker,.persian-date-input-wrap{display:contents!important}.header-field .persian-date-input-wrap>input{flex:auto!important;padding:2px 10px!important}.persian-date-trigger,.persian-calendar{display:none!important}}@media screen{html{scrollbar-gutter:stable;background:#f9f9f9}body{color:var(--ink-800);background:#f9f9f9}button,input,select,textarea{font-family:IRANYekanX,sans-serif}::selection{color:#fff;background:var(--brand-600)}.app-header{z-index:100;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:radial-gradient(circle at 88% -35%,#893fb533 0%,#893fb500 38%),linear-gradient(115deg,#18191d 0%,#24252b 56%,#1b1c21 100%);border:0;border-bottom:1px solid #a662cf52;height:74px;padding:0 30px;position:sticky;top:0;box-shadow:0 8px 24px #0f10142e,0 2px 7px #0f10141f}.app-header:before{content:"";background:linear-gradient(90deg,#0000 0%,#9a5bc01f 18%,#9a5bc080 50%,#9a5bc01f 82%,#0000 100%);height:2px;position:absolute;inset:0 0 auto}.app-header h2{color:#fff;letter-spacing:-.35px;font-size:19px;font-weight:800}.user-info{gap:10px}.user-info span{color:#f0edf3;background:#ffffff12;border:1px solid #d3bbe133;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:600}.user-info button{color:#ffffffad;width:38px;height:38px;box-shadow:none;background:#ffffff0b;border:1px solid #ffffff1f;border-radius:10px;place-items:center;padding:0;transition:all .2s;display:inline-grid}.user-info button:hover{color:#fffffff2;background:#ffffff17;border-color:#fff3;transform:translateY(-1px)}.app-layout{background:0 0;min-height:calc(100vh - 74px)}.main-content{background:#f9f9f9;min-width:0;padding:0;overflow-x:auto}.main-content:has(>.invoice-list-page){overflow:visible}.sidebar{background:linear-gradient(#303037 0%,#222228 100%);flex-direction:column;flex:0 0 252px;align-self:flex-start;width:252px;min-height:calc(100vh - 74px);padding:25px 16px;display:flex;position:sticky;top:74px;overflow:hidden;box-shadow:-5px 0 #6b728033,-16px 0 26px #37415147}.sidebar-main-menu,.sidebar-bottom-menu{flex-direction:column;display:flex}.sidebar-bottom-menu{border-top:1px solid #ffffff1a;margin-top:auto;padding-top:17px}.sidebar-sales-group{flex-direction:column;display:flex}.sidebar:after{content:"";pointer-events:none;border:1px solid #ffffff21;border-radius:50%;width:190px;height:190px;position:absolute;bottom:-70px;right:-55px;box-shadow:0 0 0 30px #ffffff06,0 0 0 60px #ffffff05}.sidebar-menu-button{--sidebar-accent-gradient:var(--brand-gradient);--sidebar-accent-shadow:#4a0d7533;--sidebar-hover-glow:#6a239933;z-index:1;color:#ffffffc7;background:0 0;border:1px solid #0000;border-radius:12px;gap:12px;min-height:47px;margin-bottom:7px;padding:12px 15px;font-size:13px;transition:all .22s;position:relative}.sidebar-menu-button:before{content:"";background:var(--sidebar-accent-gradient);width:3px;box-shadow:0 0 8px var(--sidebar-accent-shadow);opacity:0;border-radius:999px 0 0 999px;transition:opacity .2s,transform .2s;position:absolute;top:9px;bottom:9px;right:0;transform:scaleY(.45)}.sidebar-dashboard{--sidebar-accent-gradient:linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);--sidebar-accent-shadow:#3b82f640;--sidebar-hover-glow:#3b82f63b}.sidebar-invoices{--sidebar-accent-gradient:linear-gradient(180deg, #4a0d75 0%, #340759 100%);--sidebar-accent-shadow:#6a23993d;--sidebar-hover-glow:#7732a63d}.sidebar-customers{--sidebar-accent-gradient:linear-gradient(180deg, #16a34a 0%, #4ade80 100%);--sidebar-accent-shadow:#22c55e33;--sidebar-hover-glow:#22c55e36}.sidebar-account{--sidebar-accent-gradient:linear-gradient(180deg, #d39b12 0%, #facc15 100%);--sidebar-accent-shadow:#facc152e;--sidebar-hover-glow:#facc152e}.sidebar-menu-button svg{color:#ffffffe6;filter:drop-shadow(0 3px 7px #00000029)}.sidebar-menu-button:hover{color:#fff;background:radial-gradient(circle at 100% 50%, var(--sidebar-hover-glow) 0%, transparent 68%), #ffffff0e;box-shadow:none;border-color:#ffffff1f;transform:translate(-3px)}.sidebar-menu-button:hover:before{opacity:1;transform:scaleY(1)}.sidebar-menu-button:hover svg{color:#fff}.sidebar-menu-button.sidebar-menu-button-disabled,.sidebar-menu-button.sidebar-menu-button-disabled:hover{color:#ffffff57;box-shadow:none;cursor:not-allowed;opacity:.58;background:0 0;border-color:#0000;transform:none}.sidebar-menu-button.sidebar-menu-button-disabled:before{opacity:0;transform:scaleY(.45)}.sidebar-menu-button.sidebar-menu-button-disabled svg,.sidebar-menu-button.sidebar-menu-button-disabled:hover svg{color:#ffffff61;filter:none}.sidebar-sales-toggle .sidebar-chevron{margin-right:auto;transition:transform .22s}.sidebar-sales-toggle[aria-expanded=true] .sidebar-chevron{transform:rotate(180deg)}.sidebar-submenu{gap:4px;margin:-1px 0 9px;padding:3px 20px 4px 5px;animation:.2s both sidebar-submenu-in;display:grid}.sidebar-submenu-button{color:#ffffffad;text-align:right;cursor:pointer;background:#ffffff09;border:0;border-radius:9px;align-items:center;gap:9px;min-height:38px;padding:8px 11px;font-family:inherit;font-size:11.5px;font-weight:600;transition:all .2s;display:flex;position:relative}.sidebar-submenu-button:before{content:"";background:var(--brand-gradient);opacity:0;border-radius:999px;width:2px;transition:opacity .2s;position:absolute;top:9px;bottom:9px;right:0}.sidebar-submenu-button svg{color:#ffffffdb}.sidebar-submenu-button:hover{color:#fff;background:radial-gradient(circle at 100%,#7732a638 0%,#0000 68%),#ffffff0e;transform:translate(-3px)}.sidebar-submenu-button:hover:before{opacity:1}.sidebar-submenu-button:hover svg{color:#fff}@keyframes sidebar-submenu-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.invoice-list-top h1,.customers-top h1,.customer-form-top h1,.admin-page-header h1,.dashboard-heading h1,.create-invoice-heading h1{color:var(--ink-950);letter-spacing:-.45px;padding-left:0;padding-right:17px;font-size:27px;font-weight:800;display:inline-flex;position:relative}.invoice-list-top h1:before,.customers-top h1:before,.customer-form-top h1:before,.admin-page-header h1:before,.dashboard-heading h1:before,.create-invoice-heading h1:before{content:"";background:var(--brand-gradient);width:4px;height:28px;box-shadow:none;border-radius:999px;position:absolute;top:4px;left:auto;right:0}.invoice-list-top p,.customers-top p,.customer-form-top p,.admin-page-header p,.dashboard-heading p,.create-invoice-heading p{color:var(--ink-600)}.dashboard-page,.invoice-list-page,.customers-page,.customer-form-page,.admin-page,.create-invoice-page,.invoice-view-page{box-sizing:border-box;width:100%;max-width:1400px;margin:0 auto;padding:30px 32px 40px}.invoice-view-toolbar{justify-content:flex-start;width:21cm;max-width:100%;margin:0 auto 14px;display:flex}.invoice-view-back-button{color:#4a0d75;min-height:40px;font:inherit;cursor:pointer;background:#fff;border:1px solid #ded8e5;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:9px 15px;font-size:12px;font-weight:700;transition:all .18s;display:inline-flex;box-shadow:0 6px 16px #3407590f}.invoice-view-back-button:hover{color:#fff;background:var(--brand-gradient);border-color:#0000;transform:translateY(-1px);box-shadow:0 9px 20px #3407592e}.invoice-view-back-button:focus-visible{box-shadow:var(--focus-ring);outline:none}.invoice-preview-backdrop{z-index:2200;box-sizing:border-box;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#1f23289e;place-items:center;padding:24px;animation:.18s ease-out invoice-preview-backdrop-in;display:grid;position:fixed;inset:0;overflow:hidden}.invoice-preview-modal{background:#f4f5f6;border:1px solid #dfe3e7;border-radius:19px;grid-template-rows:auto minmax(0,1fr);width:min(1080px,100%);height:min(92vh,980px);animation:.2s ease-out invoice-preview-modal-in;display:grid;overflow:hidden;box-shadow:0 30px 90px #181c2152}.invoice-preview-modal-header{direction:rtl;background:#f9fafb;border-bottom:1px solid #e0e3e6;justify-content:space-between;align-items:center;gap:18px;min-height:74px;padding:13px 18px 13px 20px;display:flex}.invoice-preview-modal-header h2{color:#4a0d75;margin:0 0 4px;font-size:16px;font-weight:800}.invoice-preview-modal-header p{color:#858b93;margin:0;font-size:10px;font-weight:600}.invoice-preview-header-actions{flex:none;align-items:center;gap:8px;display:inline-flex}.invoice-preview-close-button,.invoice-preview-print-button{color:#4a0d75;min-height:40px;font:inherit;cursor:pointer;background:#fff;border:1px solid #ded8e5;border-radius:10px;flex:none;justify-content:center;align-items:center;gap:7px;padding:8px 14px;font-size:12px;font-weight:700;transition:all .18s;display:inline-flex}.invoice-preview-print-button{color:#4b5563;background:#eef0f2;border-color:#d8dde2}.invoice-preview-close-button:hover,.invoice-preview-print-button:hover:not(:disabled){color:#fff;background:var(--brand-gradient);border-color:#0000;transform:translateY(-1px);box-shadow:0 8px 18px #3407592e}.invoice-preview-close-button:focus-visible,.invoice-preview-print-button:focus-visible{box-shadow:var(--focus-ring);outline:none}.invoice-preview-print-button:disabled{cursor:wait;opacity:.5}.invoice-preview-frame-wrap{background:#eceeef;min-height:0;overflow:hidden}.invoice-preview-frame{background:#f4f5f6;border:0;width:100%;height:100%;display:block}.invoice-preview-standalone{background:#f4f5f6;min-height:100vh;overflow:auto}.invoice-view-page.is-modal-preview{max-width:none;padding:18px}.invoice-view-page.is-modal-preview .invoice-container{margin:0 auto}@keyframes invoice-preview-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes invoice-preview-modal-in{0%{opacity:0;transform:translateY(12px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}.dashboard-page{min-height:100%}.dashboard-heading{width:100%}.dashboard-heading h1{color:var(--ink-950);margin:0 0 7px;font-size:27px;font-weight:800;position:relative}.dashboard-heading p{color:var(--ink-600);margin:0;font-size:13px}.dashboard-cards{gap:20px;width:100%;max-width:980px;margin:25px 0 0 auto}.dashboard-card{--dashboard-card-accent:#6d28d9;--dashboard-card-soft:#f5f0ff;--dashboard-card-border:#6d28d929;--dashboard-card-glow:#6d28d911;--dashboard-card-shadow:#6d28d91f;border:1px solid var(--dashboard-card-border);min-height:155px;box-shadow:var(--shadow-sm);background:#fff;border-radius:18px;padding:28px;position:relative;overflow:hidden}.dashboard-card:before{content:"";background:var(--dashboard-card-accent);height:4px;position:absolute;inset:0 0 auto}.dashboard-card:after{content:"";background:var(--dashboard-card-glow);border-radius:50%;width:130px;height:130px;position:absolute;bottom:-50px;left:-30px}.dashboard-card:hover{border-color:var(--dashboard-card-accent);box-shadow:var(--shadow-md);transform:translateY(-6px)}.dashboard-card h2{color:var(--dashboard-card-accent);margin:16px 0 7px;font-size:20px;font-weight:800}.dashboard-card p{color:var(--ink-600);margin:0;line-height:1.9}.dashboard-card-icon{z-index:1;width:50px;height:50px;color:var(--dashboard-card-accent);border:1px solid var(--dashboard-card-border);background:var(--dashboard-card-soft);box-shadow:0 9px 22px var(--dashboard-card-shadow);border-radius:14px;place-items:center;display:inline-grid;position:relative}.dashboard-card--invoices{--dashboard-card-accent:#2563eb;--dashboard-card-soft:#eff6ff;--dashboard-card-border:#2563eb29;--dashboard-card-glow:#2563eb0f;--dashboard-card-shadow:#2563eb1c}.dashboard-card--admin{--dashboard-card-accent:#0f766e;--dashboard-card-soft:#ecfdf8;--dashboard-card-border:#0f766e2b;--dashboard-card-glow:#0f766e0f;--dashboard-card-shadow:#0f766e1c}.sales-report-card{background:#fff;border:1px solid #4a0d751f;border-radius:18px;width:100%;max-width:980px;margin:22px 0 0 auto;padding:24px;position:relative;overflow:visible;box-shadow:0 12px 32px #2b292f14}.sales-report-card:before{content:"";background:linear-gradient(90deg,#4a0d75 0%,#340759 100%);border-radius:18px 18px 0 0;height:4px;position:absolute;inset:0 0 auto}.sales-report-header{z-index:20;justify-content:space-between;align-items:center;gap:22px;margin-bottom:20px;display:flex;position:relative}.sales-report-title-wrap{align-items:center;gap:13px;display:flex}.sales-report-main-icon{color:#4a0d75;background:#f7f1fa;border:1px solid #4a0d7524;border-radius:14px;flex:0 0 48px;place-items:center;width:48px;height:48px;display:inline-grid}.sales-report-title-wrap h2{color:#24212a;margin:0 0 4px;font-size:19px;font-weight:800}.sales-report-title-wrap p{color:#77717d;margin:0;font-size:11.5px}.sales-report-period{color:#77717d;align-items:stretch;gap:6px;font-size:11.5px;font-weight:700;display:grid}.sales-report-filters{flex-wrap:wrap;justify-content:flex-end;align-items:flex-start;gap:12px;display:flex}.sales-report-date-filter{gap:6px;display:grid;position:relative}.sales-report-filter-label{color:#77717d;font-size:11.5px;font-weight:700}.sales-report-date-controls{align-items:center;gap:7px;display:flex}.sales-report-date-controls .persian-date-picker{flex:0 0 128px;width:128px}.sales-report-date-controls .persian-date-input-wrap>input{color:#312d35;direction:ltr;background:#faf9fb;border:1px solid #ded9e2;border-radius:11px;outline:none;width:100%;height:42px;padding:0 11px 0 31px;font-family:inherit;font-size:11.5px}.sales-report-date-controls .persian-date-input-wrap>input:focus{border-color:#4a0d7580;box-shadow:0 0 0 3px #4a0d7514}.sales-report-date-controls .persian-calendar{left:auto;right:0}.sales-report-date-separator{color:#948b9b;font-size:10px;font-weight:700}.sales-report-clear-button{color:#5d5264;height:42px;font:inherit;cursor:pointer;background:#faf9fb;border:1px solid #ded9e2;border-radius:10px;justify-content:center;align-items:center;gap:6px;width:42px;padding:0;font-size:11.5px;font-weight:600;display:inline-flex}.sales-report-date-error{color:#b42318;white-space:nowrap;font-size:10px;position:absolute;top:calc(100% + 4px);right:0}.sales-report-period select{color:#312d35;cursor:pointer;background:#faf9fb;border:1px solid #ded9e2;border-radius:11px;outline:none;min-width:142px;height:42px;padding:0 13px;font-family:inherit;font-weight:700}.sales-report-period select:focus{border-color:#4a0d7580;box-shadow:0 0 0 3px #4a0d7514}.sales-report-metrics{z-index:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid;position:relative}.sales-report-metrics.is-loading{opacity:.72}.sales-report-metric{background:#fafafa;border:1px solid #e9e6eb;border-radius:15px;align-items:center;gap:13px;min-height:108px;padding:18px;display:flex}.sales-report-metric-icon{border-radius:12px;flex:0 0 43px;place-items:center;width:43px;height:43px;display:inline-grid}.sales-count-metric .sales-report-metric-icon{color:#3e5fa8;background:#eef3ff}.sales-amount-metric .sales-report-metric-icon{color:#16834a;background:#eaf8f0}.conversion-rate-metric .sales-report-metric-icon{color:#8b5b08;background:#fff7df}.sales-report-metric>div{min-width:0}.sales-report-metric span:not(.sales-report-metric-icon){color:#706a74;margin-bottom:7px;font-size:11.5px;font-weight:700;display:block}.sales-report-metric strong{color:#26222a;direction:ltr;font-size:21px;font-weight:800;display:inline-block}.sales-report-metric small{color:#8b858e;margin-right:5px;font-size:10.5px}.sales-report-status{text-align:center;border-radius:12px;padding:18px;font-size:12px}.sales-report-error{color:#a92330;background:#fff5f6;border:1px solid #f1ccd0}.new-invoice-button,.new-customer-button,.save-customer-form-button,.admin-password-form button,.invoice-button,.login-submit{color:#fff;background:var(--brand-gradient);border:0;transition:transform .2s,box-shadow .2s,filter .2s;box-shadow:0 9px 22px #5b21b63d}.new-invoice-button:hover,.new-customer-button:hover,.save-customer-form-button:hover,.admin-password-form button:hover:not(:disabled),.invoice-button:hover,.login-submit:hover{background:var(--brand-gradient);filter:saturate(1.08)brightness(1.05);transform:translateY(-2px);box-shadow:0 13px 28px #5b21b64f}.back-to-customers-button,.cancel-customer-form-button{color:var(--brand-700);border:1px solid var(--brand-200);background:var(--brand-50)}.back-to-customers-button:hover,.cancel-customer-form-button:hover{color:var(--brand-900);border-color:var(--brand-400);background:var(--brand-100)}.invoice-search-box,.customers-search-box{border-color:var(--line);background:#ffffffeb;box-shadow:0 5px 16px #32145f0b}.invoice-search-box:focus-within,.customers-search-box:focus-within{color:var(--brand-600);border-color:var(--brand-400);box-shadow:var(--focus-ring)}.customer-form-field input:focus,.customer-form-field select:focus,.customer-form-field textarea:focus,.admin-password-form input:focus,.login-field input:focus,.header-field input:focus,.party-input:focus,.product-input:focus,.description-field textarea:focus{border-color:var(--brand-500);box-shadow:var(--focus-ring)}.invoice-list-card{box-shadow:var(--shadow-sm);border-color:#5b21b621;border-radius:11px;scroll-margin-top:92px;overflow:visible}.invoice-list-header{z-index:55;color:#fff;background:var(--brand-gradient);letter-spacing:.05px;border:0;border-radius:10px 10px 0 0;min-height:54px;font-size:13px;font-weight:700;position:sticky;top:74px;box-shadow:inset 0 -1px #ffffff26}.invoice-pagination{direction:rtl;background:#fff;border:1px solid #e3dee7;border-radius:11px;justify-content:space-between;align-items:center;gap:18px;min-height:58px;margin-top:14px;padding:10px 13px;display:flex;box-shadow:0 7px 20px #2d27340e}.invoice-pagination-summary{color:#7b7380;white-space:nowrap;font-size:10.5px;font-weight:650}.invoice-pagination-controls,.invoice-pagination-pages{justify-content:center;align-items:center;gap:5px;display:inline-flex}.invoice-pagination button{color:#615869;min-width:34px;height:34px;font:inherit;cursor:pointer;background:#f8f7f9;border:1px solid #e1dce5;border-radius:8px;justify-content:center;align-items:center;gap:5px;padding:0 9px;font-size:11px;font-weight:700;transition:all .16s;display:inline-flex}.invoice-pagination button:hover:not(:disabled):not(.is-active){color:#4a0d75;background:#f4eef7;border-color:#d5c4df;transform:translateY(-1px)}.invoice-pagination button.is-active{color:#fff;background:var(--brand-gradient);cursor:default;border-color:#0000;box-shadow:0 5px 12px #34075933}.invoice-pagination button:disabled{cursor:default;opacity:.42}.invoice-pagination-ellipsis{color:#9a929f;place-items:center;width:24px;height:34px;font-size:14px;display:inline-grid}.invoice-row{color:#453c56;border-bottom-color:#f0ebf6;min-height:62px;position:relative}.regular-invoices-page .invoice-list-header,.regular-invoices-page .invoice-row{grid-template-columns:48px minmax(170px,2fr) 72px minmax(100px,1fr) minmax(105px,1fr) minmax(130px,1.3fr) minmax(120px,1fr) 170px;column-gap:7px}.sales-invoices-page .invoice-list-header,.sales-invoices-page .invoice-row{grid-template-columns:48px minmax(170px,2fr) minmax(100px,1fr) minmax(105px,1fr) minmax(130px,1.3fr) minmax(120px,1fr) 150px;column-gap:7px}.modian-page .invoice-list-header,.modian-page .invoice-row{grid-template-columns:48px minmax(150px,1.8fr) minmax(90px,.9fr) minmax(100px,.95fr) minmax(120px,1.15fr) minmax(105px,.95fr) minmax(130px,1.15fr) 130px;column-gap:7px}.modian-page .invoice-list-header>div,.modian-page .invoice-row>div{text-align:center;min-width:0}.modian-page .invoice-list-header>div:nth-child(2),.modian-page .invoice-row>div:nth-child(2){text-align:right}.modian-page .invoice-row-number{padding-inline:0;transform:none}.modian-submission-cell{white-space:nowrap;flex-direction:row;justify-content:center;align-items:center;gap:7px;min-width:0;display:flex}.modian-submission-control{color:#6b6371;cursor:pointer;align-items:center;gap:6px;font-size:10px;font-weight:700;display:inline-flex}.modian-submission-control input{accent-color:#b87906;cursor:pointer;width:17px;height:17px;margin:0}.modian-submission-control input:disabled{cursor:wait;opacity:.55}.modian-submission-cell small{color:#aaa2ae;direction:ltr;min-height:0;font-size:9px;font-weight:600}.modian-submission-cell small.is-active{color:#9a6806}.modian-page .list-actions{justify-content:center;width:100%;margin:0;padding:0}.modian-status-filter{background:#fff;border:1px solid #e2dce7;border-radius:10px;align-items:center;gap:3px;padding:4px;display:inline-flex;box-shadow:0 5px 16px #32145f0a}.modian-status-filter button{color:#77707c;min-height:32px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:6px 11px;font-size:10.5px;font-weight:700;transition:all .16s}.modian-status-filter button:hover{color:#855b08;background:#fff9e8}.modian-status-filter button.is-active{color:#fff;background:linear-gradient(135deg,#c28a0d,#9f6905);box-shadow:0 4px 10px #9f690533}.modian-status-confirm-box{width:min(370px,100vw - 32px)}.dialog-heading .modian-status-confirm-icon{color:#a66f05;background:#fff9e9;border-color:#efdda9}.confirm-modian-status-removal{color:#fff;background:linear-gradient(135deg,#bd8409,#966104)}.sales-invoices-page .invoice-list-header{background:linear-gradient(125deg,#340759 0%,#4a0d75 35%,#1b8055 72%,#2ca66a 100%)}.modian-page .invoice-list-header{background:linear-gradient(125deg,#340759 0%,#4a0d75 35%,#b87906 72%,#dda923 100%)}.module-hero-icon{isolation:isolate;border-radius:22px;flex:0 0 72px;place-items:center;width:72px;height:72px;display:grid;position:relative;transform:rotate(-3deg)}.module-hero-icon>svg{width:66px;height:66px;display:block;overflow:visible}.module-hero-icon:before{z-index:-1;content:"";border-radius:18px;position:absolute;inset:8px;transform:rotate(9deg)}.sales-hero-icon{color:#22854b;filter:drop-shadow(0 7px 10px #1d7e4b2e)}.sales-hero-icon:before{background:linear-gradient(145deg,#edf9f1,#d8f0df)}.modian-hero-icon{color:#b77b06;filter:drop-shadow(0 7px 10px #b77b062e)}.modian-hero-icon:before{background:linear-gradient(145deg,#fff9e8,#f6e8b8)}.sales-status-column{place-items:center;min-width:72px;padding-left:18px;padding-right:4px;display:grid}.sales-status-icon{color:#15924d;filter:drop-shadow(0 2px 3px #15924d33)drop-shadow(0 0 5px #22c55e21);background:0 0;justify-content:center;align-items:center;display:inline-flex}.invoice-status-icons{direction:rtl;grid-template-columns:22px 22px;justify-content:center;align-items:center;gap:10px;width:54px;display:grid}.status-icon-slot{place-items:center;width:22px;height:22px;display:inline-grid}.modian-status-slot{grid-column:1}.sales-status-slot{grid-column:2}.modian-status-icon{color:#d29a12;filter:drop-shadow(0 2px 3px #d29a1238)drop-shadow(0 0 5px #facc1529);background:0 0;justify-content:center;align-items:center;display:inline-flex}.modian-badge-shell{color:#fff;background:linear-gradient(145deg,#f2bd35,#b87b05);border:1px solid #ffffff61;border-radius:7px;place-items:center;width:21px;height:21px;display:inline-grid;transform:rotate(-2deg);box-shadow:inset 0 1px #ffffff4d,0 3px 8px #be800533}.status-removal-button{cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;width:24px;height:24px;padding:0;display:inline-grid;position:relative}.status-remove-mark{color:#fff;opacity:0;background:#602674e0;border-radius:6px;place-items:center;transition:all .16s;display:grid;position:absolute;inset:1px;transform:scale(.72);box-shadow:0 3px 8px #4a0d7533}.modian-status-icon .status-remove-mark{background:#a26900e6;box-shadow:0 3px 8px #be800538}.status-removal-button:hover .status-remove-mark,.status-removal-button:focus-visible .status-remove-mark{opacity:1;transform:scale(1)}.invoice-row:nth-child(2n){background:#fdfcff}.invoice-row:hover{background:#faf7fc;box-shadow:inset -3px 0 #8a5aa5}.list-actions button,.customer-table-actions button{color:var(--brand-700);border:1px solid var(--brand-100);background:var(--brand-50)}.list-actions{justify-content:center;position:relative;overflow:visible}.list-actions .actions-menu-trigger{color:#4a0d75;background:#f6f1f8;border:1px solid #4a0d7524;border-radius:10px;width:38px;height:38px}.list-actions .actions-menu-trigger:hover,.list-actions .actions-menu-trigger[aria-expanded=true]{color:#fff;background:var(--brand-gradient);border-color:#0000}.invoice-actions-menu{z-index:80;background:#fff;border:1px solid #e9e2ee;border-radius:13px;width:194px;padding:7px;position:absolute;top:calc(100% + 7px);left:0;overflow:hidden;box-shadow:0 18px 42px #3407592e}.invoice-actions-menu.open-up{top:auto;bottom:calc(100% + 7px)}.invoice-actions-menu button{color:#64748b;text-align:right;white-space:nowrap;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;width:100%;height:auto;min-height:41px;padding:8px 11px;font-size:12px;font-weight:650;display:flex}.invoice-actions-menu button svg{color:#94a3b8;flex:none}.invoice-actions-menu button:hover{color:#4a0d75;box-shadow:none;background:#f7f2fa;transform:none}.list-actions .invoice-actions-menu button:last-child:hover{color:#9f2638;background:#fff2f3;border-color:#0000}.invoice-actions-menu .menu-delete-action,.invoice-actions-menu .menu-delete-action svg{color:#b05260}.invoice-actions-menu .menu-delete-action:hover{color:#9f2638;background:#fff2f3}.list-actions>.actions-menu-trigger:last-child:hover{color:#fff;background:var(--brand-gradient);border-color:#0000}.invoice-list-notice{border:1px solid;border-radius:11px;justify-content:space-between;align-items:center;gap:16px;min-height:44px;margin-bottom:15px;padding:10px 14px;font-size:12px;font-weight:650;display:flex}.invoice-list-notice.success{color:#17633b;background:#effaf3;border-color:#b8e2ca}.invoice-list-notice.error{color:#8b2635;background:#fff4f5;border-color:#f0c5cb}.invoice-list-notice button{color:currentColor;cursor:pointer;background:0 0;border:0;padding:0 5px;font-size:19px}.sales-copy-box{text-align:center}.sales-copy-icon{color:#4a0d75;background:#f5eff8;border:1px solid #4a0d7526;border-radius:15px;place-items:center;width:52px;height:52px;margin-bottom:5px;display:inline-grid}.confirm-sales-copy{color:#fff;background:var(--brand-gradient)}.confirm-sales-copy:disabled{cursor:wait;opacity:.65}.sales-invoices-empty{color:#75697e;text-align:center;padding:42px 20px;font-size:13px}.sales-list-actions button:last-child:hover{color:#fff;background:var(--brand-gradient);border-color:#0000}.modian-placeholder-card{min-height:320px;box-shadow:var(--shadow-sm);text-align:center;background:#fff;border:1px solid #4a0d751f;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;padding:42px 30px;display:flex}.modian-placeholder-icon{color:#fff;background:var(--brand-gradient);border-radius:18px;place-items:center;width:64px;height:64px;margin-bottom:18px;display:grid;box-shadow:0 12px 25px #34075933}.modian-placeholder-card h2{color:var(--ink-950);margin:0 0 9px;font-size:19px}.modian-placeholder-card>p{max-width:610px;color:var(--ink-600);margin:0;font-size:12.5px;line-height:2}.modian-security-note{color:#81600e;background:#fffbea;border:1px solid #f0dda2;border-radius:10px;align-items:center;gap:8px;margin-top:23px;padding:9px 13px;font-size:11.5px;display:inline-flex}.list-actions button:hover,.customer-table-actions button:hover{color:#fff;background:var(--brand-gradient);border-color:#0000;box-shadow:0 7px 16px #5b21b633}.regular-invoices-page .invoice-list-header>div:last-child{transform:translate(-11px)}.regular-invoices-page .invoice-list-header{font-weight:500}.regular-invoices-page .list-actions>.quick-action-button,.regular-invoices-page .list-actions>.actions-menu-trigger{color:#667085;box-shadow:none;background:#f1f3f5;border:1px solid #e1e4e9}.regular-invoices-page .list-actions>.quick-action-button:hover,.regular-invoices-page .list-actions>.actions-menu-trigger:hover,.regular-invoices-page .list-actions>.actions-menu-trigger[aria-expanded=true]{color:#4a0d75;background:#f5f0f8;border-color:#ded0e7;box-shadow:0 4px 10px #4a0d7514}.regular-invoices-page .invoice-actions-menu button:hover{color:#6c5279;box-shadow:none;background:#fcfafc;border-color:#0000;transform:none}.regular-invoices-page .invoice-actions-menu button:disabled{color:#9a91a0;cursor:default;opacity:.72;background:#faf9fa}.regular-invoices-page .invoice-actions-menu .menu-delete-action:hover{color:#a84c5a;background:#fff8f8}.invoice-row-number{color:inherit;text-align:center;font-variant-numeric:tabular-nums;padding-inline:10px;transform:translate(8px)}.regular-invoices-page .invoice-list-header>div,.regular-invoices-page .invoice-row>div{padding-block:8px}.invoice-list-toolbar,.customers-toolbar{justify-content:space-between}.invoice-search-box,.customers-search-box{border-radius:10px;width:min(340px,100%);height:42px;min-height:42px;padding:0 12px}.customers-search-box input{padding:0;font-size:12px}.invoice-count,.customers-count{min-height:34px;color:var(--brand-700);border:1px solid var(--brand-100);background:var(--brand-50);white-space:nowrap;border-radius:9px;justify-content:center;align-items:center;padding:7px 12px;font-size:13px;display:inline-flex}.invoice-filter-card{z-index:25;background:linear-gradient(135deg,#4a0d7509,#0000 42%),#fff;border:1px solid #e4dee9;border-radius:15px;margin:16px 0 20px;padding:17px;position:relative;box-shadow:0 10px 26px #2d273411}.invoice-filter-card:has(.persian-date-picker.is-open){z-index:70}.invoice-filter-heading{border-bottom:1px solid #eeeaf1;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;padding-bottom:13px;display:flex}.invoice-filter-title{align-items:center;gap:11px;min-width:0;display:flex}.invoice-filter-icon{color:#5a176f;background:#f5eff8;border:1px solid #ded0e6;border-radius:11px;flex:0 0 38px;place-items:center;width:38px;height:38px;display:inline-grid}.invoice-filter-title>div{gap:3px;display:grid}.invoice-filter-title strong{color:#302737;font-size:14px;font-weight:800}.invoice-filter-title>div>span{color:#817889;font-size:10.5px}.invoice-filter-reset{color:#62596a;cursor:pointer;background:#f7f6f8;border:1px solid #ddd8e1;border-radius:9px;justify-content:center;align-items:center;gap:7px;min-height:35px;padding:7px 11px;font-size:11px;font-weight:700;transition:all .2s;display:inline-flex}.invoice-filter-reset:hover:not(:disabled){color:#4a0d75;background:#f4edf7;border-color:#d7c3e2;transform:translateY(-1px)}.invoice-filter-reset:disabled{cursor:default;opacity:.48}.invoice-filter-grid{grid-template-columns:minmax(145px,.8fr) minmax(150px,.9fr) minmax(290px,1.45fr) minmax(310px,1.55fr);align-items:end;gap:13px;display:grid}.invoice-filter-field{gap:7px;min-width:0;display:grid}.invoice-filter-field>span:first-child{color:#5f5667;font-size:11px;font-weight:750}.invoice-filter-field select,.invoice-filter-field input{color:#3f3747;background:#fbfbfc;border:1px solid #dfdbe3;border-radius:9px;outline:none;width:100%;min-width:0;height:40px;padding:0 11px;font-size:11.5px;transition:all .18s}.invoice-filter-field select{cursor:pointer}.invoice-filter-field select:focus,.invoice-filter-field input:focus{background:#fff;border-color:#ae87c2;box-shadow:0 0 0 3px #4a0d7514}.invoice-filter-range-inputs{align-items:center;gap:7px;min-width:0;display:flex}.invoice-filter-range-inputs .persian-date-picker,.invoice-filter-range-inputs .invoice-price-input{flex:1;min-width:0}.invoice-filter-range-inputs .persian-date-trigger{color:#6d4a7e}.invoice-filter-range-inputs .persian-calendar{left:auto;right:0}.invoice-filter-separator{color:#948b9b;flex:none;font-size:10px;font-weight:700}.invoice-price-input{position:relative}.invoice-price-input input{text-align:right;direction:ltr;padding-left:38px}.invoice-price-input small{color:#92899a;pointer-events:none;font-size:9px;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.invoice-filter-empty{color:#7c7483;text-align:center;background:#fff;padding:44px 20px;font-size:12px}.sales-invoices-page .sales-list-actions button,.modian-page .sales-list-actions button{color:#667085;box-shadow:none;background:#f1f3f5;border:1px solid #e1e4e9}.sales-invoices-page .sales-list-actions button:hover,.sales-invoices-page .sales-list-actions button:last-child:hover,.modian-page .sales-list-actions button:hover,.modian-page .sales-list-actions button:last-child:hover{color:#4b5563;background:#e8ebee;border-color:#d8dce2;transform:translateY(-1px);box-shadow:0 4px 10px #47556914}.modian-copy-icon{color:#a97808;background:#fffbea;border-color:#f0dda2}.confirm-modian-copy{background:linear-gradient(135deg,#d39b15,#a97808)}.customers-table-card{border-color:#177a502e;border-radius:17px;box-shadow:0 12px 30px #2d31371a}.customers-table thead tr{background:linear-gradient(100deg,#0d5135 0%,#177a50 48%,#2ca66a 100%)}.customers-table th{color:#fff;letter-spacing:.05px;background:0 0;border-bottom:0;height:51px;font-size:12.5px}.customers-table td{color:#3f454d;border-bottom-color:#f0ebf6}.customers-table tbody tr:nth-child(2n){background:#fcfbfd}.customers-table tbody tr:hover{background:#f7f3fa}.customer-table-name,.customer-sales-expert{color:#30363d!important}.customers-count{color:#11613f;background:#eef9f2;border-color:#cce8d8}.customers-page .customers-search-box{color:#397256;border-color:#cce2d5;box-shadow:0 5px 16px #177a500e}.customers-page .customers-search-box:focus-within{color:#177a50;background:#fbfffc;border-color:#2ca66a;box-shadow:0 0 0 3px #2ca66a21}.customers-top h1:before{background:linear-gradient(#2ca66a,#0d5135)}.customers-page .new-customer-button{color:#fff;background:linear-gradient(135deg,#2ca66a,#0d5135);box-shadow:0 9px 22px #177a5038}.customers-page .new-customer-button:hover{background:linear-gradient(135deg,#34b977,#11613f);box-shadow:0 12px 25px #177a5047}.customers-page .customer-table-actions button,.customers-page .customer-table-actions .customer-delete-action{color:#667085;box-shadow:none;background:#f1f3f5;border:1px solid #e1e4e9}.customers-page .customer-table-actions button:hover,.customers-page .customer-table-actions .customer-delete-action:hover{color:#4b5563;filter:none;background:#e7eaed;border-color:#d8dce2;transform:translateY(-1px);box-shadow:0 4px 10px #47556914}.customer-details-form,.admin-card{box-shadow:var(--shadow-md);background:#fff;border-color:#5b21b61f;border-radius:19px}.customer-form-page .customer-form-top h1:before{background:linear-gradient(#2ca66a,#0d5135)}.customer-form-page .customer-details-form{border-color:#177a502e;box-shadow:0 14px 34px #2d31371a}.customer-form-page .customer-form-section-title{color:#155d3f;border-bottom-color:#d5eadf}.customer-form-page .customer-form-section-title:before{background:linear-gradient(#2ca66a,#0d5135)}.customer-form-page .customer-form-field label{color:#35443c}.customer-form-page .customer-form-field input:focus,.customer-form-page .customer-form-field select:focus,.customer-form-page .customer-form-field textarea:focus{border-color:#2ca66a;box-shadow:0 0 0 3px #2ca66a21}.customer-form-page .save-customer-form-button{color:#fff;background:linear-gradient(135deg,#2ca66a,#0d5135);box-shadow:0 9px 22px #177a5038}.customer-form-page .save-customer-form-button:hover:not(:disabled){background:linear-gradient(135deg,#34b977,#11613f);box-shadow:0 12px 26px #177a5045}.customer-form-page .back-to-customers-button{color:#176d49;background:#eef9f2;border-color:#bcdcca}.customer-form-page .back-to-customers-button:hover{color:#0d5135;background:#e2f4e9;border-color:#65b989}.customer-form-page .cancel-customer-form-button{color:#32634c;background:#edf6f1;border:1px solid #c7dfd1}.customer-form-page .cancel-customer-form-button:hover:not(:disabled){color:#194c34;background:#e0f0e7;border-color:#83b99b}.customer-form-section-title,.admin-card-heading{color:var(--brand-800);border-bottom-color:var(--brand-100)}.customer-form-section-title{padding-right:14px;position:relative}.customer-form-section-title:before{content:"";background:var(--brand-500);border-radius:999px;width:4px;height:22px;position:absolute;top:2px;right:0}.customer-form-field label,.admin-password-form label{color:#4b405e}.customer-form-field input,.customer-form-field select,.customer-form-field textarea,.admin-password-form input{color:var(--ink-950);border-color:var(--line);background:#fefeff}.create-invoice-top{justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px;display:flex}.create-invoice-heading h1{margin:0 0 7px}.create-invoice-heading p{margin:0;font-size:13px}.invoice-edit-metadata{color:#756b80;flex-wrap:wrap;gap:6px 18px;margin-top:9px;font-size:11px;display:flex}.invoice-edit-metadata span{align-items:center;display:inline-flex}.invoice-number-change-warning{color:#78520a;background:#fff9e9;border:1px solid #f1d79b;border-radius:9px;margin:10px 16px 0;padding:10px 13px;font-size:12px;line-height:1.8}.invoice-list-shortcut{color:#fff;background:var(--brand-gradient);border:0;border-radius:11px;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:10px 18px;font-weight:700;transition:transform .2s,box-shadow .2s;display:inline-flex;box-shadow:0 4px 11px #1f293721}.invoice-list-shortcut:hover{transform:translateY(-2px);box-shadow:0 6px 14px #1f293729}.new-invoice-button,.new-customer-button,.invoice-list-shortcut{white-space:nowrap;border-radius:11px;flex-direction:row-reverse;justify-content:center;align-items:center;gap:9px;width:172px;height:44px;min-height:44px;margin-top:0;padding:0 17px;font-size:12px;font-weight:700;display:inline-flex}.new-invoice-button svg,.new-customer-button svg,.invoice-list-shortcut svg{flex:none}.invoice-container{box-sizing:border-box;background:#fff;border:1px solid #d9dce2;border-radius:20px;width:100%;max-width:none;margin:0;box-shadow:0 20px 48px #4b556321}.create-invoice-page .invoice-container{box-shadow:none}.create-invoice-page .invoice-button,.create-invoice-page .invoice-type-button.active,.create-invoice-page .payment-account-button.active{box-shadow:0 4px 10px #1f29371f}.create-invoice-page .invoice-button:hover,.create-invoice-page .invoice-type-button.active:hover,.create-invoice-page .payment-account-button.active:hover{box-shadow:0 6px 14px #1f293726}.create-invoice-page .print-actions .invoice-button{direction:rtl;justify-content:center;align-items:center;gap:8px;min-width:154px;margin-top:0;display:inline-flex}.create-invoice-page .print-actions{gap:10px}.create-invoice-page .invoice-download-button:disabled{color:#8b919c;box-shadow:none;cursor:not-allowed;opacity:.72;background:#e5e7eb;transform:none}.create-invoice-page .invoice-download-button:disabled:hover{color:#8b919c;box-shadow:none;filter:none;background:#e5e7eb;transform:none}.create-invoice-page .invoice-save-button.is-saved,.create-invoice-page .invoice-save-button.is-saved:disabled{color:#fff;cursor:default;opacity:1;filter:none;background:linear-gradient(135deg,#15803d 0%,#22a957 100%);transform:none;box-shadow:0 5px 14px #15803d33}.invoice-header{background:#fff;border:1px solid #d8d5dc;border-radius:15px;overflow:hidden}.create-invoice-page .invoice-header{z-index:30;position:relative;overflow:visible}.persian-date-picker{flex:1;min-width:0;position:relative}.persian-date-input-wrap{align-items:center;min-width:0;display:flex;position:relative}.header-field .persian-date-input-wrap>input{width:100%;padding-left:29px}.persian-date-trigger{color:#6b4b7f;cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;width:24px;height:24px;padding:0;display:inline-grid;position:absolute;left:4px}.persian-date-trigger:hover{color:#4a0d75;background:#f2ecf6}.persian-calendar{z-index:160;color:#332b3c;direction:rtl;background:#fff;border:1px solid #d9dce2;border-radius:14px;width:286px;padding:12px;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 18px 42px #3741512e}.persian-calendar-toolbar{grid-template-columns:34px 1fr 34px;align-items:center;gap:7px;display:grid}.persian-calendar-toolbar strong{color:#32145f;text-align:center;font-size:13px;font-weight:800}.persian-calendar-toolbar button{color:#5c5366;cursor:pointer;background:#f7f7f8;border:1px solid #e3e0e7;border-radius:8px;place-items:center;width:34px;height:32px;padding:0;display:inline-grid}.persian-calendar-toolbar button:hover{color:#4a0d75;background:#f3edf7;border-color:#d9cbe2}.persian-calendar-year{color:#6a6273;justify-content:center;align-items:center;gap:8px;margin:10px 0;font-size:11px;font-weight:700;display:flex}.persian-calendar-year input{color:#332b3c;text-align:center;direction:ltr;background:#fafafa;border:1px solid #ddd9e2;border-radius:7px;flex:none;width:82px;padding:5px 7px;font-size:12px}.persian-calendar-weekdays,.persian-calendar-days{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.persian-calendar-weekdays{margin-bottom:5px}.persian-calendar-weekdays span{color:#8a8292;place-items:center;height:25px;font-size:10px;font-weight:750;display:grid}.persian-calendar-days button,.persian-calendar-empty{width:100%;height:31px}.persian-calendar-days button{color:#4d4656;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:0;font-family:IRANYekanX,sans-serif;font-size:11px}.persian-calendar-days button:hover{color:#4a0d75;background:#f2ecf6}.persian-calendar-days button.selected{color:#fff;background:var(--brand-gradient);box-shadow:0 4px 10px #4a0d7529}.invoice-title{color:#2f2937;box-shadow:none;background:0 0;border-radius:0}.party-box,.product-table-wrapper,.payment-section,.additional-notes{border-color:#d4d1d8;box-shadow:0 6px 18px #231d2a0b}.party-title,.payment-title,.additional-notes-title,.product-main-title-row th{color:#35303c;background:#eeeef1;border-color:#d6d3d9}.invoice-table thead tr:not(.product-main-title-row) th{color:#3f3a45;background:#f7f7f8;border-color:#d7d4da}.party-table td,.invoice-table tbody td,.invoice-table tfoot td,.payment-table td,.additional-note-item{border-color:#eee9f4}.invoice-table tbody tr:nth-child(2n){background:#fdfcff}.invoice-table tbody tr:hover{background:#f8f4ff}.party-label,.payment-label{color:#403a48;background:#f3f3f5}.party-input,.product-input,.description-field textarea,.header-field input{border-color:var(--line);background:#fff}.invoice-type-button,.payment-account-button{color:var(--brand-700);border-color:var(--brand-200);background:#fff}.invoice-type-button:hover,.payment-account-button:hover{color:var(--brand-900);border-color:var(--brand-400);background:var(--brand-50)}.invoice-type-button.active,.payment-account-button.active,.stamp-toggle-button.active{color:#fff;background:var(--brand-gradient);border-color:#0000;box-shadow:0 8px 19px #5b21b63d}.invoice-table tfoot .product-total-row td,.total-words-cell,.sale-condition-cell{background:#f5f5f6}.additional-note-number{color:var(--brand-700);box-shadow:none;background:0 0}.note-checkbox,.sale-option input{accent-color:var(--brand-600)}.buyer-suggestions{border-color:var(--brand-100);box-shadow:var(--shadow-md)}.buyer-suggestion:hover,.buyer-suggestion:focus-visible{background:var(--brand-50)}.login-page{background:var(--brand-gradient);position:relative;overflow:hidden}.login-page:before,.login-page:after{content:"";border:1px solid #ffffff1f;border-radius:50%;position:absolute}.login-page:before{width:430px;height:430px;top:-170px;left:-120px;box-shadow:0 0 0 55px #ffffff06}.login-page:after{width:390px;height:390px;bottom:-170px;right:-110px;box-shadow:0 0 0 45px #ffffff06}.login-card{z-index:1;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);background:#fffffff5;border:1px solid #ffffff94;border-radius:22px;padding:40px;position:relative;box-shadow:0 30px 80px #1206265c}.login-logo{width:auto;height:auto;box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}.login-logo img{object-fit:contain;filter:drop-shadow(0 8px 12px #4a0d753d)drop-shadow(0 2px 4px #3407592e);width:82px;height:auto;display:block}.login-heading h1{color:var(--brand-950)}.login-field input{border-color:var(--line);background:#fbfaff}.login-footer{color:#8c819e;border-top-color:var(--brand-100)}.delete-modal,.customer-delete-modal{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#1c0c348f}.delete-box,.customer-delete-box{text-align:right;background:#fff;border:1px solid #c4b5fd59;border-radius:18px;width:min(400px,100vw - 32px);padding:0;overflow:hidden;box-shadow:0 28px 70px #1c0c344d}.dialog-heading{align-items:center;gap:12px;padding:24px 26px 13px;display:flex}.dialog-heading h3,.delete-box .dialog-heading h3,.customer-delete-box .dialog-heading h3{color:#1f1a25;margin:0;font-size:17px;font-weight:800}.dialog-icon,.dialog-heading .sales-copy-icon{color:#4a0d75;background:#f7f1fa;border:1px solid #4a0d7524;border-radius:14px;flex:0 0 48px;place-items:center;width:48px;height:48px;margin:0;display:inline-grid}.dialog-heading-danger .dialog-icon{color:#b4232f;background:#fff5f6;border-color:#f0c9ce}.dialog-heading .modian-copy-icon{color:#a97808;background:#fffbea;border-color:#f0dda2}.dialog-message,.delete-box .dialog-message,.customer-delete-box .dialog-message{color:#4b4650;text-align:right;margin:0;padding:0 26px 22px;font-size:13.5px;line-height:2;display:block}.dialog-message p{margin:0 0 3px}.delete-buttons,.customer-delete-box .delete-buttons,.customer-delete-buttons.delete-buttons{background:#fbfafc;border-top:1px solid #e7e3e9;justify-content:flex-end;gap:11px;margin:0;padding:14px 26px;display:flex}.delete-buttons button,.customer-delete-box .delete-buttons button{cursor:pointer;border:0;border-radius:8px;min-height:38px;padding:8px 18px;font-family:inherit;font-weight:700}.delete-buttons button:first-child,.customer-delete-box .delete-buttons button:first-child{color:#5f5a63;background:#ecebed}.confirm-delete,.confirm-customer-delete{background:#c62828;color:#fff!important}.logout-dialog-icon{color:#4b4650;background:#f5f4f6;border-color:#ddd9e0}.confirm-logout{background:linear-gradient(135deg,#4a0d75 0%,#340759 100%);color:#fff!important}.confirm-logout:hover{background:linear-gradient(135deg,#571188 0%,#3b0865 100%)}.delete-button,.delete-button:hover{color:#4b5563;box-shadow:none;filter:none;background:#e5e7eb;border:1px solid #d1d5db;transform:none}.delete-button:hover{color:#374151;background:#d1d5db}@media (width<=980px){.sidebar{flex-basis:215px;width:215px}.user-info span:nth-child(2){display:none}.dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-report-metrics{grid-template-columns:1fr}.invoice-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=700px){.invoice-preview-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);padding:8px}.invoice-preview-modal{border-radius:14px;width:100%;height:calc(100vh - 16px)}.invoice-preview-modal-header{min-height:64px;padding:10px 12px}.invoice-preview-modal-header h2{font-size:14px}.invoice-preview-close-button,.invoice-preview-print-button{min-height:38px;padding:7px 11px}.invoice-view-page.is-modal-preview{padding:10px}html,body,#root{width:100%;min-width:0;overflow-x:hidden}.app-header{height:auto;min-height:70px;padding:11px 14px;position:sticky}.invoice-filter-card{border-radius:13px;margin:14px 0 18px;padding:14px}.invoice-filter-heading{flex-direction:column;align-items:flex-start;gap:12px}.invoice-filter-reset{align-self:flex-end}.invoice-filter-grid{grid-template-columns:1fr}.invoice-filter-field select,.invoice-filter-field input{height:43px;font-size:16px}.invoice-filter-range-inputs{gap:6px}.invoice-filter-range-inputs .persian-calendar{width:min(286px,100vw - 48px)}.app-header h2{text-overflow:ellipsis;white-space:nowrap;max-width:calc(100vw - 82px);font-size:15px;overflow:hidden}.user-info span{display:none}.user-info{gap:0}.user-info button{width:40px;height:40px}.app-layout{min-height:calc(100vh - 70px);display:block}.main-content{width:100%;overflow:visible}.sidebar{z-index:95;scrollbar-width:none;-webkit-overflow-scrolling:touch;background:linear-gradient(90deg,#29292f 0%,#202026 100%);flex-direction:row;flex:none;align-items:center;width:100%;min-height:0;padding:8px 10px;display:flex;position:sticky;top:70px;overflow:auto hidden;box-shadow:0 5px 14px #18181d33}.sidebar::-webkit-scrollbar{display:none}.sidebar:after{display:none}.sidebar-main-menu,.sidebar-bottom-menu,.sidebar-sales-group,.sidebar-submenu{flex-direction:row;flex:none;align-items:center;display:flex}.sidebar-bottom-menu{border:0;margin:0;padding:0}.sidebar-submenu{gap:4px;margin:0 0 0 6px;padding:0;animation:none}.sidebar-submenu-button{white-space:nowrap;min-height:42px;padding:9px 11px}.sidebar-chevron{display:none}.sidebar-menu-button{white-space:nowrap;border-radius:10px;flex:none;width:auto;min-height:44px;margin:0 0 0 6px;padding:9px 12px}.sidebar-menu-button:hover{transform:none}.dashboard-page,.invoice-list-page,.customers-page,.customer-form-page,.admin-page,.create-invoice-page,.invoice-view-page{padding:22px 14px 35px}.dashboard-heading h1,.invoice-list-top h1,.customers-top h1,.customer-form-top h1,.admin-page-header h1,.create-invoice-heading h1{font-size:23px}.dashboard-heading p,.invoice-list-top p,.customers-top p,.customer-form-top p,.admin-page-header p,.create-invoice-heading p{font-size:11.5px;line-height:1.9}.dashboard-cards{grid-template-columns:1fr;gap:13px;width:100%;margin-top:18px}.dashboard-card{border-radius:15px;min-height:126px;padding:20px}.dashboard-card-icon{border-radius:12px;width:44px;height:44px}.dashboard-card h2{margin-top:12px;font-size:17px}.dashboard-card p{font-size:11.5px}.sales-report-card{border-radius:15px;width:100%;margin-top:15px;padding:19px 16px}.sales-report-header{flex-direction:column;align-items:stretch;gap:15px}.sales-report-filters{justify-content:stretch;align-items:stretch}.sales-report-date-filter{width:100%;margin-bottom:8px}.sales-report-period{justify-content:space-between}.sales-report-filters{flex-direction:column}.sales-report-date-controls{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);display:grid}.sales-report-date-controls .persian-date-picker{flex-basis:auto;width:100%;min-width:0}.sales-report-clear-button{width:30px;height:30px;position:absolute;top:0;left:0}.sales-report-period select{flex:1}.sales-report-metrics{gap:10px}.sales-report-metric{min-height:94px;padding:15px}.invoice-list-top,.customers-top,.customer-form-top,.create-invoice-top{flex-direction:column;align-items:stretch}.sales-invoices-page .invoice-list-top,.modian-page .invoice-list-top{flex-direction:row;align-items:center}.module-hero-icon{border-radius:17px;flex-basis:58px;width:58px;height:58px}.module-hero-icon>svg{width:54px;height:54px}.new-invoice-button,.new-customer-button,.invoice-list-shortcut{width:100%}.invoice-list-toolbar,.customers-toolbar{flex-direction:column;align-items:stretch;gap:10px}.invoice-search-box,.customers-search-box{width:100%}.invoice-count,.customers-count{align-self:flex-end}.invoice-pagination{flex-direction:column;align-items:stretch;gap:9px;padding:11px}.invoice-pagination-summary{text-align:center}.invoice-pagination-controls{flex-wrap:wrap}.invoice-pagination-pages{flex-wrap:wrap;order:3;width:100%}.modian-status-filter{width:100%}.modian-status-filter button{flex:1 1 0}.invoice-list-page .invoice-list-card{box-shadow:none;background:0 0;border:0;border-radius:0;overflow:visible}.invoice-list-page .invoice-list-header{display:none}.invoice-list-page .invoice-list{background:0 0;gap:12px;display:grid}.invoice-list-page .invoice-row,.regular-invoices-page .invoice-row,.sales-invoices-page .invoice-row,.modian-page .invoice-row{background:#fff;border:1px solid #e4e1e7;border-radius:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;min-height:0;padding:15px;display:grid;overflow:visible;box-shadow:0 7px 20px #27242b11}.invoice-list-page .invoice-row:hover{background:#fff;transform:none;box-shadow:0 9px 24px #27242b17}.invoice-list-page .invoice-row:has(.invoice-actions-menu){z-index:90}.invoice-list-page .invoice-row>[data-label]{overflow-wrap:anywhere;color:#3f3945;border-bottom:1px solid #f0edf2;min-width:0;padding:10px 0;font-size:12px}.invoice-list-page .invoice-row>[data-label]:before{color:#8a838e;content:attr(data-label);margin-bottom:5px;font-size:10px;font-weight:700;display:block}.invoice-list-page .invoice-row-number{text-align:right;padding-inline:0;transform:none}.invoice-list-page .sales-status-column{justify-content:flex-start;align-items:flex-start;min-width:0;padding-inline:0;display:flex}.invoice-list-page .invoice-status-icons{justify-content:start}.invoice-list-page .list-actions{direction:ltr;border-bottom:0;flex-flow:wrap;grid-column:1/-1;justify-content:flex-start;align-items:center;padding-top:12px;display:flex;position:relative}.invoice-list-page .list-actions:before{text-align:right;direction:rtl;width:100%}.invoice-actions-menu,.invoice-actions-menu.open-up{direction:rtl;inset:calc(100% + 7px) auto auto 0}.sales-invoices-empty{background:#fff;border:1px solid #e5e2e7;border-radius:13px;padding:28px 16px}.customers-table-card,.customers-table-scroll{box-shadow:none;background:0 0;border:0;border-radius:0;overflow:visible}.customers-table{width:100%;min-width:0;display:block}.customers-table thead{display:none}.customers-table tbody{gap:12px;display:grid}.customers-table tbody tr{background:#fff;border:1px solid #dce8e1;border-radius:14px;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;padding:14px;display:grid;box-shadow:0 7px 20px #27302b0f}.customers-table tbody tr:hover,.customers-table tbody tr:nth-child(2n){background:#fff}.customers-table td{overflow-wrap:anywhere;border-bottom:1px solid #edf2ef;width:auto;min-width:0;height:auto;padding:10px 0;font-size:12px;display:block}.customers-table td[data-label]:before{color:#718078;content:attr(data-label);margin-bottom:5px;font-size:10px;font-weight:700;display:block}.customers-table td:last-child{border-bottom:0;grid-column:1/-1}.customers-table-empty{grid-column:1/-1;border:0!important;padding:28px 12px!important;display:block!important}.customer-table-actions{direction:ltr}.create-invoice-page .invoice-container,.invoice-view-page .invoice-container{border-radius:14px;width:100%;margin:0;padding:12px}.create-invoice-page .invoice-header,.invoice-view-page .invoice-header{flex-direction:column;align-items:stretch;gap:14px;padding:15px}.invoice-title{text-align:center;font-size:18px;line-height:1.8}.header-details-new{gap:8px;width:100%}.header-field{gap:10px}.header-field label{width:76px;font-size:11px}.header-field input{min-height:38px;font-size:14px}.persian-calendar{width:min(286px,100vw - 58px);left:auto;right:0}.party-table,.party-table tbody,.party-table tr,.party-table td{width:100%;display:block}.party-table colgroup{display:none}.party-table td{border-bottom:1px solid #ece8ee;border-left:0;height:auto;min-height:54px;padding:10px}.party-table tr:last-child td:last-child{border-bottom:0}.party-table td:empty{display:none}.party-label{margin-bottom:5px;font-size:11px;display:inline-block}.party-value{font-size:12px;line-height:1.9}.buyer-field{flex-direction:column;align-items:stretch;gap:6px}.buyer-field .party-label,.buyer-field .party-input{width:100%;font-size:13px}.buyer-field .party-input{border:1px solid #e2dde6;border-radius:8px;min-height:38px;padding:7px 9px}.product-table-wrapper{-webkit-overflow-scrolling:touch;overflow:auto hidden}.product-table-wrapper .invoice-table{width:1000px;min-width:1000px;font-size:11px}.product-actions{flex-wrap:wrap;align-items:stretch}.product-actions .invoice-button{flex:145px;min-height:42px}.payment-account-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.payment-account-button{white-space:nowrap;min-width:0;padding:8px 5px;font-size:10.5px}.payment-table{table-layout:auto}.payment-table td{overflow-wrap:anywhere;height:auto;min-height:42px;padding:9px;font-size:11px}.payment-label{width:36%}.additional-notes-content{padding:7px 10px}.additional-note-item{line-height:1.9}.print-actions .invoice-button{width:100%;min-height:44px}.customer-details-form,.admin-card{border-radius:15px;padding:18px}.customer-form-field input,.customer-form-field select,.customer-form-field textarea,.admin-password-form input,.invoice-search-box input,.customers-search-box input,.login-field input{font-size:16px}.delete-modal,.customer-delete-modal{padding:14px}.delete-box,.customer-delete-box{border-radius:16px;width:min(390px,100%)}.dialog-heading{padding:19px 18px 11px}.dialog-message,.delete-box .dialog-message,.customer-delete-box .dialog-message{padding:0 18px 18px;font-size:12.5px}.delete-buttons,.customer-delete-box .delete-buttons,.customer-delete-buttons.delete-buttons{padding:12px 18px}}@media (width<=430px){.dashboard-page,.invoice-list-page,.customers-page,.customer-form-page,.admin-page,.create-invoice-page,.invoice-view-page{padding:18px 10px 30px}.sidebar-menu-button,.sidebar-submenu-button{gap:7px;padding-inline:10px;font-size:11px}.sidebar-menu-button svg,.sidebar-submenu-button svg{width:17px;height:17px}.sales-report-title-wrap{align-items:flex-start}.sales-report-main-icon{flex-basis:42px;width:42px;height:42px}.sales-report-period{flex-direction:column;align-items:stretch}.sales-report-period select{width:100%}.invoice-list-page .invoice-row,.regular-invoices-page .invoice-row,.sales-invoices-page .invoice-row,.modian-page .invoice-row,.customers-table tbody tr{grid-template-columns:1fr}.invoice-list-page .list-actions,.customers-table td:last-child{grid-column:1}.sales-invoices-page .invoice-list-top,.modian-page .invoice-list-top{align-items:flex-start}.module-hero-icon{flex-basis:52px;width:52px;height:52px}.payment-account-buttons{grid-template-columns:1fr}.payment-account-button{width:100%;min-height:39px}.delete-buttons,.customer-delete-box .delete-buttons,.customer-delete-buttons.delete-buttons{flex-direction:column;align-items:stretch}.delete-buttons button,.customer-delete-box .delete-buttons button{width:100%}.login-page{padding:14px}.login-card{border-radius:18px;padding:27px 18px}.login-logo img{width:72px}}}
