@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap");*,:after,:before{box-sizing:border-box;margin:0;padding:0}:root{--bg-body:#09090b;--bg-card:#18181b;--bg-sidebar:rgba(24,24,27,0.6);--bg-input:#27272a;--bg-hover:rgba(255,255,255,0.05);--border:#27272a;--border-light:#3f3f46;--text-primary:#fafafa;--text-secondary:#a1a1aa;--text-muted:#71717a;--brand-50:#f5f3ff;--brand-100:#ede9fe;--brand-400:#a78bfa;--brand-500:#8b5cf6;--brand-600:#7c3aed;--green-400:#4ade80;--green-500:#22c55e;--red-400:#f87171;--red-500:#ef4444;--amber-400:#fbbf24;--amber-500:#f59e0b;--orange-400:#fb923c;--orange-500:#f97316;--blue-400:#60a5fa;--blue-500:#3b82f6;--yellow-400:#facc15;--radius:12px;--radius-sm:8px;--radius-xs:6px}html.light{--bg-body:#ffffff;--bg-card:#f9fafb;--bg-sidebar:#f9fafb;--bg-input:#f4f4f5;--bg-hover:rgba(0,0,0,0.04);--border:#e4e4e7;--border-light:#d4d4d8;--text-primary:#18181b;--text-secondary:#52525b;--text-muted:#a1a1aa}body{font-family:Vazirmatn,-apple-system,sans-serif;background:var(--bg-body);color:var(--text-primary);min-height:100vh;overflow:hidden;-webkit-font-smoothing:antialiased;direction:rtl}a{text-decoration:none}a,button{color:inherit}button{cursor:pointer;border:none;background:none;font-family:inherit}input,select,textarea{font-family:inherit;color:var(--text-primary)}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-light);border-radius:3px}.layout,.sidebar{display:flex;height:100vh}.sidebar{width:256px;overflow-y:auto;background:var(--bg-sidebar);border-left:1px solid var(--border);flex-direction:column;flex-shrink:0;backdrop-filter:blur(10px)}.main{flex:1;display:flex;flex-direction:column;overflow:hidden}.header{height:56px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;flex-shrink:0;background:rgba(24,24,27,.3)}html.light .header{background:rgba(255,255,255,.8)}.content{flex:1;overflow-y:auto;padding:24px}.sidebar-logo{padding:20px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px}.sidebar-logo-icon{width:36px;height:36px;border-radius:var(--radius-sm);background:var(--brand-600);display:flex;align-items:center;justify-content:center;color:white;font-weight:700;font-size:14px}.sidebar-logo-text h1{font-size:15px;font-weight:700}.sidebar-logo-text p{font-size:11px;color:var(--text-muted)}.sidebar-nav{flex:1;padding:12px}.sidebar-section{font-size:11px;color:var(--text-muted);font-weight:500;padding:8px 12px;margin-top:12px}.sidebar-section:first-child{margin-top:0}.sidebar-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius-sm);font-size:13px;color:var(--text-secondary);transition:all .15s;margin-bottom:2px;border-right:3px solid transparent}.sidebar-item:hover{background:var(--bg-hover)}.sidebar-item.active{background:rgba(139,92,246,.1);color:var(--brand-500);border-right-color:var(--brand-500)}.sidebar-item svg{width:16px;height:16px;flex-shrink:0}.sidebar-badge{margin-right:auto;font-size:11px;padding:2px 8px;border-radius:99px;font-weight:500}.badge-brand{background:rgba(139,92,246,.15);color:var(--brand-400)}.badge-red{background:rgba(239,68,68,.15);color:var(--red-400)}.sidebar-user{border-top:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:12px 16px 12px 12px}.sidebar-user-avatar{width:32px;height:32px;border-radius:50%;background:var(--bg-input);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:500}.sidebar-user-info{flex:1;min-width:0}.sidebar-user-info p{font-size:13px;font-weight:500}.sidebar-user-info span{font-size:11px;color:var(--text-muted)}.header-title{font-size:15px;font-weight:600}.header-actions{display:flex;align-items:center;gap:8px}.header-search{background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;padding:8px 36px 8px 16px;width:220px;outline:none;transition:border-color .2s}.header-search:focus{border-color:var(--brand-500)}.header-search::-moz-placeholder{color:var(--text-muted)}.header-search::placeholder{color:var(--text-muted)}.header-btn{width:36px;height:36px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;transition:background .15s;position:relative}.header-btn:hover{background:var(--bg-input)}.header-btn svg{width:16px;height:16px;color:var(--text-secondary)}.notif-dot{position:absolute;top:6px;left:6px;width:7px;height:7px;background:var(--red-500);border-radius:50%}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.grid{display:grid;gap:16px}.grid-6{grid-template-columns:repeat(6,1fr)}.grid-5{grid-template-columns:repeat(5,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}@media (max-width:1200px){.grid-6{grid-template-columns:repeat(3,1fr)}}@media (max-width:768px){.grid-3,.grid-5,.grid-6{grid-template-columns:repeat(2,1fr)}}.kpi-icon{width:32px;height:32px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;margin-bottom:8px}.kpi-label{font-size:11px;color:var(--text-muted);margin-bottom:4px}.kpi-value{font-size:18px;font-weight:700}.kpi-value span{font-size:11px;color:var(--text-muted);margin-right:4px}.kpi-change{font-size:11px;margin-top:4px}.kpi-change.up{color:var(--green-400)}.kpi-change.down{color:var(--red-400)}.kpi-simple{text-align:center;padding:16px}.kpi-simple .value{font-size:24px;font-weight:700}.kpi-simple .label{font-size:11px;color:var(--text-muted);margin-top:4px}.time-filter{display:flex;gap:8px;margin-bottom:24px}.time-filter button{padding:6px 12px;font-size:12px;border-radius:var(--radius-xs);color:var(--text-secondary);transition:all .15s}.time-filter button:hover{background:var(--bg-input)}.time-filter button.active{background:rgba(139,92,246,.15);color:var(--brand-400);font-weight:500}.chart-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.chart-header h3{font-size:13px;font-weight:500}.chart-legend{display:flex;gap:12px;font-size:11px;color:var(--text-muted)}.chart-legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-left:4px}.chart-bars{display:flex;align-items:flex-end;gap:8px;height:180px;padding:0 8px}.chart-bar-group{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}.chart-bar{width:100%;border-radius:4px 4px 0 0;transition:opacity .2s;min-height:4px}.chart-bar:hover{opacity:.8}.chart-bar-label{font-size:10px;color:var(--text-muted)}.donut-container{display:flex;align-items:center;gap:24px}.donut-legend{display:flex;flex-direction:column;gap:12px}.donut-legend-item{display:flex;align-items:center;gap:8px;font-size:13px}.donut-legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.donut-legend-label{color:var(--text-secondary)}.donut-legend-value{margin-right:auto;font-weight:500}.quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:24px}.quick-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;transition:border-color .2s;cursor:pointer}.quick-card:hover{border-color:rgba(139,92,246,.4)}.quick-card-header{display:flex;align-items:center;justify-content:space-between}.quick-card-header svg{width:20px;height:20px;color:var(--text-muted)}.quick-card:hover .quick-card-header svg{color:var(--brand-400)}.quick-card p{font-size:13px;color:var(--text-secondary);margin-top:12px}.badge-sm{font-size:11px;padding:2px 8px;border-radius:99px;font-weight:700}.badge-amber{background:rgba(245,158,11,.15);color:var(--amber-400)}.badge-orange{background:rgba(249,115,22,.15);color:var(--orange-400)}.badge-blue{background:rgba(59,130,246,.15);color:var(--blue-400)}.badge-red-sm{background:rgba(239,68,68,.15);color:var(--red-400)}.badge-rose{background:rgba(244,63,94,.15);color:#fb7185}.table-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.table-card-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--border)}.table-card-header h3{font-size:13px;font-weight:500}.table-card-header a{font-size:11px;color:var(--brand-400);cursor:pointer}.table-card-header a:hover{color:var(--brand-500)}.list-item{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border);transition:background .1s}.list-item:last-child{border-bottom:none}.list-item:hover{background:var(--bg-hover)}.list-avatar{width:32px;height:32px;border-radius:50%;background:var(--bg-input);display:flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0}.list-avatar.green{background:rgba(34,197,94,.1);color:var(--green-400)}.list-info{flex:1;min-width:0}.list-info p{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-info span{font-size:11px;color:var(--text-muted)}.list-badge{font-size:11px;padding:3px 10px;border-radius:99px}.list-amount{text-align:left}.list-amount p{font-size:13px;font-weight:500}.list-amount span{font-size:10px;color:var(--text-muted)}.status-review{background:rgba(245,158,11,.1);color:var(--amber-400)}.status-assigned{background:rgba(34,197,94,.1);color:var(--green-400)}.status-collateral{background:rgba(59,130,246,.1);color:var(--blue-400)}.status-rejected{background:rgba(239,68,68,.1);color:var(--red-400)}.status-deficiency,.status-payment{background:rgba(249,115,22,.1);color:var(--orange-400)}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table thead tr{border-bottom:1px solid var(--border)}.data-table th{text-align:right;padding:12px 16px;font-weight:500;color:var(--text-muted);font-size:12px}.data-table td{padding:12px 16px;border-bottom:1px solid var(--border)}.data-table tbody tr{transition:background .1s}.data-table tbody tr:hover{background:var(--bg-hover)}.data-table tbody tr:last-child td{border-bottom:none}.table-avatar{display:flex;align-items:center;gap:8px}.table-avatar-icon{width:28px;height:28px;border-radius:50%;background:var(--bg-input);display:flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0}.grade-badge{padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600}.grade-a{background:rgba(34,197,94,.1);color:var(--green-400)}.grade-b{background:rgba(245,158,11,.1);color:var(--amber-400)}.grade-c{background:rgba(249,115,22,.1);color:var(--orange-400)}.grade-d{background:rgba(239,68,68,.1);color:var(--red-400)}.type-badge{padding:2px 8px;border-radius:4px;font-size:11px}.type-facility{background:rgba(59,130,246,.1);color:var(--blue-400)}.type-bnpl{background:rgba(139,92,246,.1);color:var(--brand-400)}.action-btn{padding:6px;border-radius:var(--radius-xs);transition:background .15s}.action-btn:hover{background:var(--bg-input)}.action-btn svg{width:16px;height:16px;color:var(--text-secondary)}.pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid var(--border)}.pagination-info{font-size:11px;color:var(--text-muted)}.pagination-btns{display:flex;gap:4px}.pagination-btn{width:32px;height:32px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--text-secondary);transition:background .15s;cursor:pointer}.pagination-btn:hover{background:var(--bg-input)}.pagination-btn.active{background:rgba(139,92,246,.15);color:var(--brand-400)}.pagination-btn svg{width:16px;height:16px}.filters-bar{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:16px}.filters-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.filter-group label{display:block;font-size:11px;color:var(--text-muted);margin-bottom:4px}.filter-group input,.filter-group select{width:100%;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:12px;padding:8px 12px;outline:none;transition:border-color .2s;color:var(--text-primary)}.filter-group input:focus,.filter-group select:focus{border-color:var(--brand-500)}.tabs-bar{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid var(--border)}.tab-btn{padding:10px 16px;font-size:13px;color:var(--text-muted);border-bottom:2px solid transparent;transition:all .15s;cursor:pointer}.tab-btn:hover{color:var(--text-secondary)}.tab-btn.active{color:var(--brand-400);border-bottom-color:var(--brand-500);font-weight:500}.tab-btn .count{margin-right:4px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}.page-header h2{font-size:18px;font-weight:600}.page-header p{font-size:13px;color:var(--text-muted);margin-top:4px}.btn-outline{display:flex;align-items:center;gap:8px;padding:8px 16px;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;transition:background .15s;cursor:pointer;color:var(--text-primary)}.btn-outline:hover{background:var(--border)}.btn-outline svg{width:16px;height:16px}.tier-border-red{border-right:3px solid var(--red-500)}.tier-border-orange{border-right:3px solid var(--orange-500)}.tier-border-yellow{border-right:3px solid var(--yellow-400)}.tier-badge{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700}.tier-t1{background:rgba(250,204,21,.15);color:var(--yellow-400)}.tier-t2{background:rgba(249,115,22,.15);color:var(--orange-400)}.tier-t3{background:rgba(239,68,68,.15);color:var(--red-400)}.collection-card{border-color:transparent}.collection-card.yellow{border-color:rgba(250,204,21,.3)}.collection-card.orange{border-color:rgba(249,115,22,.3)}.collection-card.red{border-color:rgba(239,68,68,.3)}.tier-filter{display:flex;gap:4px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:4px}.tier-filter button{padding:6px 12px;font-size:12px;border-radius:var(--radius-xs);transition:background .15s;cursor:pointer}.tier-filter button.active{background:var(--bg-input);color:var(--text-primary);font-weight:500}.tier-filter .t1{color:var(--yellow-400)}.tier-filter .t2{color:var(--orange-400)}.tier-filter .t3{color:var(--red-400)}.truncate{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn-sm{padding:6px 12px;border-radius:var(--radius-sm);background:var(--bg-input);font-size:12px;transition:background .15s;cursor:pointer;color:var(--text-primary)}.btn-sm:hover{background:var(--border)}.icon{display:inline-flex}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mt-4{margin-top:4px}.text-muted{color:var(--text-muted)}.text-secondary{color:var(--text-secondary)}.font-bold{font-weight:700}.font-medium{font-weight:500}.text-red{color:var(--red-400)}.text-green{color:var(--green-400)}.text-orange{color:var(--orange-400)}.text-yellow{color:var(--yellow-400)}.text-brand{color:var(--brand-400)}.text-amber{color:var(--amber-400)}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:1000;display:flex;align-items:center;justify-content:center;opacity:1;pointer-events:all}.modal,.modal-box{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);width:560px;max-width:95vw;max-height:88vh;overflow-y:auto;padding:24px}.modal-lg{width:720px}.modal-body{padding:4px 0;overflow-y:auto;max-height:62vh}.modal-body .form-group:last-child{margin-bottom:0}.form-section{letter-spacing:.06em;margin:20px 0 12px;padding-bottom:6px}.form-section:first-child{margin-top:0}.form-grid-2{gap:12px}.period-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}.period-pill{padding:6px 14px;border-radius:99px;font-size:12px;cursor:pointer;border:1px solid var(--border);background:var(--bg-input);transition:all .15s;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:inherit}.period-pill:hover{border-color:var(--brand-400)}.period-pill.selected{background:rgba(139,92,246,.15);border-color:var(--brand-500);color:var(--brand-400);font-weight:500}.type-select-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:8px}.type-card{padding:24px 16px;border:2px solid var(--border);border-radius:var(--radius);cursor:pointer;transition:all .15s;text-align:center}.type-card:hover{border-color:var(--brand-400)}.type-card.selected{border-color:var(--brand-500);background:rgba(139,92,246,.06)}.type-card h4{font-size:14px;font-weight:600;margin-bottom:6px}.type-card p{font-size:11px;color:var(--text-muted);line-height:1.6}.grade-config-grid{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center}.grade-config-grid input{background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-xs);font-size:12px;padding:7px 10px;outline:none;color:var(--text-primary);font-family:inherit;width:100%;transition:border-color .15s}.grade-config-grid input:focus{border-color:var(--brand-500)}.collateral-checks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:4px}.collateral-item{padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:all .15s;font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.collateral-item:hover{border-color:var(--brand-400)}.collateral-item.selected{border-color:var(--brand-500);background:rgba(139,92,246,.06);color:var(--brand-400)}.toggle-row{padding:8px 12px;margin-bottom:6px}.toggle-row p{font-size:12px;font-weight:500}.toggle-row span{font-size:10px}.cash-fee-table{display:flex;flex-direction:column;gap:8px;margin-top:8px}.cash-fee-row{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--bg-input);border-radius:var(--radius-sm)}.cash-fee-row label{font-size:12px;color:var(--text-muted);min-width:60px}.cash-fee-row input{width:100px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-xs);padding:5px 8px;font-size:12px;color:var(--text-primary);font-family:inherit;outline:none}.cash-fee-row input:focus{border-color:var(--brand-500)}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}.modal-header h3{font-size:15px;font-weight:600}.modal-close{width:28px;height:28px;border-radius:var(--radius-xs);display:flex;align-items:center;justify-content:center;transition:background .15s;flex-shrink:0}.modal-close:hover{background:var(--bg-input)}.modal-close svg{width:16px;height:16px}.modal-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}.btn-primary{padding:10px 20px;background:var(--brand-600);color:white;border:none;border-radius:var(--radius-sm);font-size:13px;font-weight:500;cursor:pointer;transition:background .15s;font-family:inherit}.btn-primary:hover{background:var(--brand-500)}.btn-danger{padding:10px 20px;background:var(--red-500);color:white;border:none;border-radius:var(--radius-sm);font-size:13px;font-weight:500;cursor:pointer;font-family:inherit}.form-group{margin-bottom:14px}.form-label{display:block;font-size:11px;color:var(--text-muted);margin-bottom:6px;font-weight:500}.form-input{width:100%;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;padding:9px 12px;outline:none;transition:border-color .2s;color:var(--text-primary);font-family:inherit}.form-input:focus{border-color:var(--brand-500)}.form-select,.form-textarea{width:100%;background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;padding:9px 12px;outline:none;color:var(--text-primary);font-family:inherit}.form-textarea{resize:vertical;min-height:80px;transition:border-color .2s}.form-textarea:focus{border-color:var(--brand-500)}.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-section{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin:16px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--border)}.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:var(--bg-input);border-radius:var(--radius-sm);margin-bottom:8px}.toggle-row p{font-size:13px}.toggle-row span{font-size:11px;color:var(--text-muted)}.toggle{position:relative;display:inline-block;width:38px;height:20px;flex-shrink:0}.toggle input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;inset:0;background:var(--border-light);border-radius:10px;transition:.2s}.toggle input:checked+.toggle-slider{background:var(--brand-600)}.toggle-slider:before{content:"";position:absolute;width:14px;height:14px;right:3px;top:3px;background:white;border-radius:50%;transition:.2s}.toggle input:checked+.toggle-slider:before{right:21px}.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:900;opacity:0;pointer-events:none;transition:opacity .25s}.drawer-overlay.open{opacity:1;pointer-events:all}.drawer{position:fixed;top:0;right:0;height:100vh;width:620px;max-width:100vw;background:var(--bg-card);border-left:1px solid var(--border);z-index:901;overflow-y:auto;transform:translateX(100%);transition:transform .25s cubic-bezier(.4,0,.2,1)}.drawer.open{transform:translateX(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg-card);z-index:2}.drawer-header h3{font-size:15px;font-weight:600}.drawer-body{padding:24px}.note-item{padding:12px 14px;background:var(--bg-input);border-radius:var(--radius-sm);margin-bottom:8px;border-right:3px solid var(--border-light)}.note-item.brand{border-right-color:var(--brand-500)}.note-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.note-meta .author{font-size:12px;font-weight:500}.note-meta .time{font-size:11px;color:var(--text-muted)}.note-text{font-size:13px;color:var(--text-secondary)}.detail-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--border);font-size:13px}.detail-row:last-child{border-bottom:none}.detail-row .key{color:var(--text-muted)}