@font-face{font-family:Vazirmatn;src:url('/assets/Vazirmatn-Variable.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--purple:#32223e;--deep:#21172c;--green:#1d6656;--cream:#f8f7f8;--ink:#2d2635;--sub:#8b8493;--border:#eeeaf0;--white:#fff;--soft:#f4f0f6;--shadow:0 12px 40px rgba(33,23,44,.06);--radius:20px}
*{box-sizing:border-box}html{font-family:Vazirmatn,system-ui,sans-serif;font-size:14px;scroll-behavior:smooth}body{margin:0;background:#f9f8fa;color:var(--ink);line-height:1.8}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:#836997!important;box-shadow:0 0 0 3px rgba(83,48,105,.09)}
.auth-wrap{display:grid;grid-template-columns:minmax(350px,.95fr) 1.05fr;min-height:100vh}.auth-aside{background:radial-gradient(circle at 0% 100%,#3e6b59 0%,transparent 39%),linear-gradient(145deg,#2f223d,#1f172d 75%);color:white;padding:55px clamp(35px,6vw,110px);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.auth-aside:after{content:"";position:absolute;width:480px;height:480px;border-radius:50%;border:1px solid rgba(255,255,255,.06);left:-180px;top:30%;box-shadow:0 0 0 100px rgba(255,255,255,.014),0 0 0 200px rgba(255,255,255,.01);pointer-events:none}.brand-head{display:flex;align-items:center;gap:12px;direction:ltr;font-size:19px;letter-spacing:.08em;font-weight:750;white-space:nowrap}.brand-head em{font-style:normal;color:#c5baa8;font-weight:450}.brand-symbol{width:41px;height:41px;display:grid;place-items:center;background:#497f6d;border-radius:13px;color:white;font-weight:600;letter-spacing:0;font-size:24px}.eyebrow{font-size:12px;color:#c9e4d8;letter-spacing:.02em;display:flex;align-items:center;gap:9px}.eyebrow.dark{color:#37836b;font-weight:650}.live-dot{width:7px;height:7px;background:#7ed5a6;border-radius:50%;box-shadow:0 0 0 4px rgba(126,213,166,.13)}.auth-display h1{font-weight:780;font-size:clamp(33px,4.1vw,60px);letter-spacing:-1.6px;line-height:1.56;margin:17px 0}.auth-display h1 span{color:#b0d9c2}.auth-display>p{max-width:490px;line-height:2.15;color:#ddd5df;font-size:15px;margin-bottom:38px}.auth-feature{margin:17px 0;color:#e8e1ec;display:flex;gap:17px;align-items:center}.auth-feature span{color:#b4d2bc;border:1px solid #776b79;border-radius:10px;width:32px;height:32px;display:grid;place-items:center}.auth-aside small{font-size:11px;opacity:.55;direction:ltr;text-align:left}.auth-form-side{display:grid;place-items:center;background:#fcfafc;padding:40px}.auth-card{width:100%;max-width:420px}.auth-card h2{font-size:32px;margin:14px 0 7px;letter-spacing:-.7px}.auth-card>p{color:var(--sub);margin:0 0 35px}.login-form label,.field{display:flex;flex-direction:column;gap:7px;font-weight:570;margin-bottom:21px}.login-form input,.field input,.field select,.field textarea,.filters-bar input,.filters-bar select{background:white;border:1px solid #e3dee6;border-radius:13px;height:49px;padding:0 15px;min-width:0;color:var(--ink);width:100%}.field textarea{height:auto;min-height:82px;resize:vertical;padding:14px}.login-form input::placeholder,.field input::placeholder{color:#ada4b0}.login-form .btn.full{justify-content:center;text-align:center}.btn{border:0;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:0 20px;font-weight:650;transition:filter .15s,transform .15s}.btn:hover{filter:brightness(1.07)}.btn:active{transform:translateY(1px)}.btn-primary{background:var(--green);color:white}.btn-subtle{background:#f2eef4;color:#62576a}.btn-outline{background:white;border:1px solid var(--border);color:var(--ink)}.btn-danger{background:#fff0ef;color:#bd4850}.btn.full{width:100%;min-height:52px;justify-content:space-between;margin-top:8px}.btn.full span{font-size:23px}.privacy-line{font-size:11px;color:#a29aa6;text-align:center;margin-top:32px!important}.form-error{padding:12px 15px;border:1px solid #f1b9bb;color:#a5363b;background:#fff2f2;border-radius:11px;margin:15px 0}.mobile-brand{display:none}
#app{display:flex;min-height:100vh}.sidebar{width:258px;position:fixed;right:0;top:0;bottom:0;background:var(--deep);color:white;padding:29px 20px 22px;z-index:30;display:flex;flex-direction:column}.sidebar .brand-head{font-size:16px;align-self:center;margin-bottom:45px}.sidebar .brand-symbol{width:36px;height:36px;font-size:21px}.sidebar-label{color:#84798d;font-size:11px;margin:0 18px 12px}.main-nav{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;text-align:right;background:transparent;color:#b4aeb9;padding:12px 15px;border:0;border-radius:12px;min-height:45px;font-size:12.5px;transition:.18s}.nav-item:hover{background:#382b43;color:white}.nav-item.active{background:#3d574e;color:white;font-weight:750}.nav-icon{font-size:21px;width:25px;text-align:center;line-height:1}.sidebar-bottom{margin-top:auto}.help-card{padding:17px;background:linear-gradient(125deg,#3c3048,#304e47);border:1px solid #54485b;border-radius:16px}.help-emoji{font-size:22px;color:#c5d7ac}.help-card strong{display:block;font-size:13px}.help-card p{font-size:11px;line-height:1.9;color:#d3cfd4;margin:5px 0 0}.sidebar-user{display:flex;align-items:center;gap:12px;margin-top:20px;padding:17px 5px 0;border-top:1px solid #38303e}.avatar,.mini-avatar{background:#e6dbea;color:#664c73;display:grid;place-items:center;width:39px;height:39px;border-radius:12px;font-size:18px;font-weight:750}.sidebar-user strong,.sidebar-user small{display:block}.sidebar-user small{color:#a59dac;font-size:11px}.main-shell{margin-right:258px;flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:72px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.85);display:flex;justify-content:space-between;align-items:center;padding:0 clamp(20px,3vw,50px);backdrop-filter:blur(14px);position:sticky;top:0;z-index:12}.crumbs{color:#948a9a;font-size:12px}.crumbs span{padding:0 9px}.crumbs b{color:#55445f}.top-actions{display:flex;align-items:center;gap:22px}.secure-flag{font-size:11px;color:#46816f}.mini-avatar{width:32px;height:32px;font-size:13px}.content{max-width:1510px;width:100%;margin:0 auto;padding:31px clamp(18px,3vw,44px) 60px;flex:1}.welcome-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.welcome-bar h1{font-size:clamp(24px,2.5vw,31px);margin:6px 0;font-weight:800;letter-spacing:-.6px}.welcome-bar h1 span{color:#83b99a}.welcome-bar p{color:var(--sub);margin:0;font-size:12px}.filters-bar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;background:white;border:1px solid var(--border);border-radius:17px;padding:16px 18px;margin-bottom:25px}.filters-bar label{font-size:11px;color:#7c737f;display:flex;flex-direction:column;gap:6px;min-width:135px;flex:1}.filters-bar input,.filters-bar select{height:40px;border-radius:10px;font-size:12px}.filters-bar .grow{flex:1}.filters-bar button{min-height:40px;font-size:12px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.kpi{background:#fff;padding:21px;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow);position:relative;overflow:hidden}.kpi:before{content:"";position:absolute;right:0;top:0;bottom:0;width:3px;background:var(--green)}.kpi:nth-child(2):before{background:#aa8b68}.kpi:nth-child(3):before{background:#81618d}.kpi:nth-child(4):before{background:#c08d79}.kpi .small{font-size:11px;color:#827a88;display:block}.kpi .value{font-size:clamp(19px,2vw,26px);font-weight:800;line-height:1.9;display:block;direction:ltr;text-align:right;white-space:nowrap;letter-spacing:-.5px}.kpi .unit{font-size:11px;color:#98909a}.kpi .hint{color:#448a73;font-size:10px;margin-top:8px}.panel-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:20px}.card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);min-width:0}.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.card-heading h2{margin:0;font-size:16px;font-weight:760}.muted{color:var(--sub);font-size:11px}.chart-row{display:grid;grid-template-columns:110px minmax(0,1fr) 140px;align-items:center;gap:13px;margin:17px 0;font-size:12px}.chart-track{height:9px;border-radius:20px;background:#f3f0f4;overflow:hidden;direction:ltr}.chart-fill{height:100%;background:linear-gradient(90deg,#397d67,#a6cbb9);border-radius:20px;min-width:2px}.chart-amount{text-align:left;font-weight:650;direction:ltr;font-size:12px}.section-margin{margin-top:22px}.table-wrap{width:100%;overflow-x:auto;border-radius:11px}.data-table{width:100%;border-collapse:collapse;font-size:12px;min-width:700px}.data-table th{text-align:right;color:#88818e;background:#f9f8fa;font-size:10.5px;font-weight:600;padding:13px 12px;white-space:nowrap}.data-table td{padding:13px 12px;border-bottom:1px solid #f1eff2;vertical-align:middle;max-width:270px}.data-table tr:last-child td{border-bottom:0}.data-table .number{font-weight:750;direction:ltr;white-space:nowrap;text-align:right}.pill{padding:4px 10px;display:inline-block;border-radius:20px;font-size:10px;font-weight:650;white-space:nowrap}.pill-green{background:#e6f5eb;color:#317356}.pill-warm{background:#fff3e2;color:#ae733e}.pill-purple{background:#f2eaf4;color:#846295}.person-icon{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#efe9f1;color:#69496d;font-weight:720;margin-left:8px}.row-actions{display:flex;gap:6px}.tiny-button{border:1px solid var(--border);background:white;border-radius:8px;min-width:29px;height:29px;color:#756a7a}.empty-state{text-align:center;padding:50px 20px;color:#97909a}.empty-state .icon{font-size:35px;color:#c0b5c5;margin-bottom:10px}.empty-state strong{display:block;color:#54485b}.list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title{font-size:17px;margin:0}.subtle-box{background:#f7f4f8;border-radius:14px;padding:19px;margin:12px 0}.note{color:#8b8290;font-size:11px;line-height:2}.list-cards{display:grid;gap:12px}.list-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border:1px solid #ece9ee;border-radius:13px}.list-card h3{font-size:13px;margin:0}.list-card p{font-size:11px;color:var(--sub);margin:3px 0}.metric-big{font-size:23px;font-weight:780}.muted-line{border-top:1px solid var(--border);padding-top:13px;margin-top:14px}.app-footer{display:flex;justify-content:space-between;color:#ada6b1;font-size:10px;padding:18px 36px;border-top:1px solid var(--border)}.loading-view{padding:100px 20px;text-align:center;color:#95899e}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(27,18,39,.55);display:grid;place-items:center;padding:17px;backdrop-filter:blur(5px)}.modal-backdrop[hidden],.toast[hidden]{display:none}.modal{background:white;width:min(590px,100%);max-height:92vh;overflow-y:auto;border-radius:23px;padding:26px 28px;box-shadow:0 30px 90px #0003}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{font-size:19px;margin:0}.icon-button{border:0;background:transparent;color:#776f80;font-size:26px;display:grid;place-items:center;min-width:36px;min-height:36px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.field>span{font-size:12px;color:#6a5e70}.field{margin-bottom:15px}.field textarea{resize:vertical}.field.wide{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px;padding-top:18px;border-top:1px solid var(--border)}.toast{position:fixed;z-index:200;left:30px;bottom:30px;background:#29233a;color:white;border-radius:12px;padding:13px 20px;box-shadow:0 20px 50px #0002;font-size:12px}.toast.error{background:#a64b51}.mobile-menu{display:none}
@media(max-width:1150px){.sidebar{width:225px}.main-shell{margin-right:225px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-grid{grid-template-columns:1fr}.auth-aside{padding:40px}}@media(max-width:780px){.sidebar{transform:translateX(100%);width:280px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.main-shell{margin-right:0}.mobile-menu{display:grid}.topbar{height:64px;padding:0 18px}.content{padding:22px 15px 45px}.welcome-bar{flex-wrap:wrap}.welcome-bar>.btn{width:100%}.filters-bar{padding:13px;gap:10px}.filters-bar label{min-width:calc(50% - 6px)}.kpi-grid{gap:10px}.kpi{padding:15px}.kpi .value{font-size:20px}.card{padding:17px}.chart-row{grid-template-columns:82px minmax(0,1fr) 92px;gap:7px}.app-footer{flex-direction:column;gap:3px;padding:18px}.auth-wrap{grid-template-columns:1fr}.auth-aside{display:none}.auth-form-side{min-height:100vh;padding:25px}.mobile-brand{display:flex;align-items:center;gap:12px;margin-bottom:50px;font-weight:790;direction:ltr;justify-content:flex-end}.modal{padding:20px 17px}.field-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}}@media(max-width:390px){.kpi-grid{grid-template-columns:1fr 1fr}.kpi .value{font-size:18px}.filters-bar label{min-width:100%}}


/* 2026 Design system: restrained financial dashboard, custom Vazirmatn and uniform SVG icons. */
:root {
 --purple:#312b3d;
 --deep:#27232d;
 --green:#226653;
 --cream:#f8f9f9;
 --ink:#252935;
 --sub:#77808d;
 --border:#e8ebee;
 --soft:#f3f5f6;
 --shadow:0 4px 24px rgba(25,30,45,.035);
 --radius:16px;
}
body{background:#f7f8f9}
.ui-icon{height:19px;width:19px;display:inline-block;flex:none;vertical-align:middle;color:inherit}
.brand-head{direction:rtl;align-items:center;justify-content:flex-start;gap:12px;letter-spacing:0;font-weight:760}
.brand-head>span:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:1px;font-size:16px;line-height:1.35;white-space:nowrap}
.brand-head em{color:#9ca9a9;font-size:10px;font-weight:650;letter-spacing:1.6px;direction:ltr}
.brand-symbol{font-family:system-ui,sans-serif;font-weight:700;background:#306d57;border-radius:10px;font-size:18px;width:38px;height:38px}
.sidebar{background:#262530;border-left:1px solid #35323c}
.sidebar .brand-head{align-self:stretch;margin-bottom:41px}
.sidebar .brand-head>span:last-child{color:#fff}
.nav-item{font-size:12.5px;min-height:47px;border-radius:9px;color:#c0bdc8;gap:13px}
.nav-item.active{background:#315e51}
.nav-item:hover{background:#3a3745}
.nav-icon{display:flex;justify-content:center;align-items:center}
.nav-icon .ui-icon{height:18px;width:18px}
.help-card{background:#34323d;border:1px solid #41404a;border-radius:11px;padding:15px}
.help-card p{color:#bbb9c1}
.auth-aside{background:#292634}
.auth-aside:after{display:none}
.auth-display h1{font-size:clamp(34px,3.7vw,56px);letter-spacing:-.6px}
.auth-display h1 span{color:#91baa5}
.auth-feature span .ui-icon{height:17px;width:17px}
.auth-feature span{background:#333743;border:1px solid #4b4c59}
.auth-card h2{font-size:28px}
.auth-card .eyebrow{color:#35715b}
.kpi,.card{box-shadow:var(--shadow)}
.kpi:before{width:3px}
.kpi .value{font-variant-numeric:tabular-nums}
.btn{border-radius:10px;font-size:12px;min-height:42px}
.btn-primary{background:#226653}
.btn-subtle{background:#f0f3f4;color:#58616f}
.btn-outline{border-color:#dfe4e5}
.welcome-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.welcome-actions .btn{display:inline-flex;gap:9px}
.welcome-bar h1{letter-spacing:0}
.welcome-bar{margin-bottom:26px}
.filters-bar{border-radius:14px;padding:15px}
.filters-bar label{font-weight:550}
.jalali-date{direction:ltr;text-align:right;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.jalali-date::placeholder{direction:rtl;text-align:right;letter-spacing:0}
#filter-from,#filter-to{direction:ltr;text-align:right;font-size:12px}
.topbar{box-shadow:0 1px 0 #e7e9ec}
.secure-flag{display:inline-flex;align-items:center;gap:7px}
.secure-flag .ui-icon{width:14px;height:14px}
.mobile-menu .ui-icon{width:22px;height:22px}
.modal{border-radius:16px}
.empty-state{padding:55px 16px}
.empty-state strong{font-weight:720}
.card-heading h2,.section-title{letter-spacing:0}
.tiny-button:hover{border-color:#a3b5ad;color:#21664d}
.income-kpis .kpi:before{background:#2a8064}
.table-wrap{scrollbar-width:thin}
.auth-form-side{background:#fafbfb}
.privacy-line{font-weight:400}
@media(max-width:780px){
 .brand-head{font-size:15px}
 .welcome-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
 .welcome-actions .btn{width:100%;padding-inline:9px}
 .welcome-bar>.btn{width:auto}
 .auth-form-side{padding:24px}
 .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sidebar{box-shadow:-14px 0 34px #1113}
}

/* Secure, consistent logout control */
.logout-form{margin:14px 0 0;display:block}
.logout-button{
  -webkit-tap-highlight-color:transparent;
  display:flex;align-items:center;justify-content:flex-start;gap:11px;
  width:100%;padding:11px 14px;min-height:43px;
  color:#d1cdd5;background:transparent;border:1px solid #474451;border-radius:10px;
  text-align:right;font-family:inherit;font-size:12.5px;font-weight:620;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.logout-button .ui-icon{width:18px;height:18px;flex:none}
.logout-button:hover{color:#fff;background:#413842;border-color:#775760}
.logout-button:focus-visible{outline:2px solid #c3d7ce;outline-offset:3px}
.logout-button:active{transform:translateY(1px)}
.logout-mobile{display:none}
.sidebar .sidebar-user{margin-top:15px}
@media (max-width:780px){
  .top-actions{gap:9px}
  .topbar .logout-mobile{margin:0;display:block}
  .topbar .logout-button{padding:8px 10px;min-height:38px;background:#f2f4f4;
    border-color:#e1e5e6;color:#4b575c;border-radius:9px;gap:6px}
  .topbar .logout-button:hover{background:#e8eaea;border-color:#d5dadd;color:#29473f}
  .topbar .logout-button .ui-icon{width:17px;height:17px}
}
@media (max-width:400px){
  .topbar .secure-flag{display:none}
  .topbar .logout-button{padding:8px}
}
