@font-face{font-family:Vazir;src:url('Vazir.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Vazir;src:url('Vazir-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{font-family:Vazir,Tahoma,sans-serif;color:#162a23;background:#f5f7f5;--ink:#162a23;--muted:#54665e;--line:#e1e9e3;--brand:#16634e;--dark:#124b3c;--white:#fff;--shadow:0 2px 4px #173e2910}
*{box-sizing:border-box}
body{margin:0;min-width:300px;font-size:14px;line-height:1.7}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
:focus-visible{outline:2px solid #297e66;outline-offset:3px}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}
.layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}
.sidebar{display:flex;flex-direction:column;background:#fff;border-inline-end:1px solid var(--line);padding:26px 17px 16px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:12px;margin:0 10px 42px;width:max-content}
.brand-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:var(--brand);color:#fff}
.brand-icon svg{width:25px;height:25px}
.brand b,.brand small{display:block}
.brand b{font-size:21px;line-height:1.2}
.brand small{font-size:11px;color:var(--muted);margin-top:4px}
nav,.side-footer{display:grid;gap:5px}
.nav-item{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:9px;background:none;border:0;text-align:start;color:var(--muted);white-space:nowrap}
.nav-item:hover{background:#f1f6f2;color:var(--ink)}
.nav-item.active{background:#e7f3ec;color:var(--dark);font-weight:700}
.nav-item svg{width:18px;height:18px}
.side-footer{margin-top:auto}
.side-footer .nav-item{font-size:12px}
.local{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;border-top:1px solid var(--line);padding:15px 12px 1px;margin-top:8px}
.local i{height:7px;width:7px;background:#46957a;border-radius:50%}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,3vw);height:64px;border-bottom:1px solid var(--line);background:#fff;color:var(--muted);font-size:13px;gap:10px}
.topbar b{color:var(--ink)}
.topbar time{white-space:nowrap}
.slash{padding-inline:8px;color:#7b9084}
.content{max-width:1460px;margin:auto;padding:28px max(24px,3vw) 40px}
.hero{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
h1,h2,p{margin:0}
h1{font-size:clamp(25px,3vw,36px);line-height:1.45;letter-spacing:-.6px}
h2{font-size:17px}
p{color:var(--muted);font-size:13px}
.hero p{margin-top:5px}
.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 16px;border-radius:9px;border:1px solid transparent;white-space:nowrap;font-weight:700}
.primary{background:var(--brand);color:#fff;box-shadow:0 2px 3px #164e4220}
.primary:hover{background:var(--dark)}
.primary svg{width:17px;height:17px}
.secondary{background:#fff;border-color:var(--line)}
.secondary:hover,.icon-button:hover{background:#edf4ee}
.danger{background:#fceceb;color:#a52627}
.danger:hover{background:#f9deda}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.metric,.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.metric{position:relative;padding:16px 17px 14px}
.tile{width:38px;height:38px;border-radius:10px;display:inline-grid;place-items:center;flex:none}
.green{color:#17664f;background:#e8f4ed}.mint{color:#197258;background:#e5f5ee}.blue{color:#2e609d;background:#eaf2fe}.gold{color:#8c561b;background:#fff3de}.neutral{color:#4c6a5d;background:#f0f5f1}
.metric-value{font-size:29px;line-height:1.25;font-weight:700;margin-top:9px;font-variant-numeric:tabular-nums}
.metric-label{font-size:13px;color:var(--muted);margin-top:4px}
.summary{display:grid;grid-template-columns:1.15fr 1fr;gap:16px;margin-bottom:16px}
.panel-head{padding:16px 19px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.panel-head p{margin-top:3px}
.distribution{display:flex;align-items:center;justify-content:space-evenly;gap:18px;padding:16px 20px 20px;min-height:155px}
.donut{flex:0 0 126px;height:126px;border-radius:50%;display:grid;place-items:center;background:#e9efea}
.donut div{width:98px;height:98px;background:#fff;border-radius:50%;display:grid;place-content:center;text-align:center}
.donut b{font-size:25px;line-height:1.15}.donut span{font-size:12px;color:var(--muted)}
.legend,.deadlines-list{list-style:none;padding:0;margin:0}
.legend{width:min(100%,225px);display:grid;gap:5px}
.legend li{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;white-space:nowrap}
.legend b{margin-inline-start:auto;color:var(--ink)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--dot);display:inline-block;flex:none}
.deadlines-list{padding:10px 19px 12px}
.deadlines-list li+li{border-top:1px solid #edf1ed}
.deadline-button{width:100%;background:none;border:0;display:flex;align-items:center;gap:8px;padding:9px 0;text-align:start}
.deadline-button:hover .deadline-title{text-decoration:underline}
.deadline-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px}
.deadline-button time{font-size:12px;color:var(--muted);white-space:nowrap}
.deadline-button time.overdue,.overdue{color:#a52627}
.deadlines-list .quiet{padding:18px 0;color:var(--muted);font-size:13px}
.projects{scroll-margin-top:16px}
.projects-head{align-items:center}
.projects-head h2{display:flex;align-items:center;gap:9px}
.count{background:#edf4ef;color:var(--dark);font-size:11px;border-radius:20px;padding:0 8px}
.search{display:flex;align-items:center;gap:7px;background:#f7f9f7;color:var(--muted);border:1px solid var(--line);border-radius:9px;padding:0 10px;min-width:0}
.search svg{height:17px;width:17px}
.search:focus-within{outline:2px solid #297e66;outline-offset:2px}
.search input{border:0;background:none;outline:none;width:min(18vw,180px);min-width:70px;min-height:36px}
.filters{display:flex;gap:5px;flex-wrap:wrap;padding:13px 19px}
.filter,.text-button,.icon-button{border:0;background:none;border-radius:7px;color:var(--muted)}
.filter{padding:5px 10px;font-size:12px;white-space:nowrap}
.filter:hover,.filter[aria-pressed=true]{background:#e8f3ec;color:var(--dark)}
.filter[aria-pressed=true]{font-weight:700}
.table-wrap{overflow:auto}
table{width:100%;min-width:650px;border-collapse:collapse;table-layout:fixed}
th,td{text-align:start;padding:11px 13px;vertical-align:middle}
th:first-child,td:first-child{padding-inline-start:19px;width:36%}
th:nth-child(2){width:19%}
th:nth-child(3){width:20%}
th:nth-child(4){width:16%}
th:last-child,td:last-child{width:9%;text-align:center;padding-inline-end:16px}
th{background:#f2f6f2;color:#4c6056;font-size:12px;font-weight:700}
td{border-top:1px solid #edf1ed}
tbody tr:hover{background:#fbfdfb}
.project-cell{display:flex;align-items:center;gap:9px;min-width:0}
.project-cell .tile{width:32px;height:32px;border-radius:8px}
.project-cell svg{width:17px;height:17px}
.project-text{min-width:0}
.project-text b,.project-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-text small{color:var(--muted);font-size:11px}
.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 7px;border-radius:20px;background:var(--chip);color:var(--chip-text);white-space:nowrap;font-size:11px}
.badge .dot{width:6px;height:6px}
.progress-cell{display:grid;grid-template-columns:minmax(38px,90px) 3ch;align-items:center;gap:9px}
.progress-cell progress{appearance:none;border:0;width:100%;height:7px;background:#e8efe9;border-radius:12px;overflow:hidden}
progress::-webkit-progress-bar{background:#e8efe9;border-radius:12px}
progress::-webkit-progress-value{background:var(--fill);border-radius:12px}
progress::-moz-progress-bar{background:var(--fill);border-radius:12px}
.progress-cell span,td time{font-size:12px;white-space:nowrap}
.icon-button{display:inline-grid;place-items:center;width:34px;height:34px}
.icon-button svg{width:17px;height:17px}
.empty{display:grid;justify-items:center;gap:11px;padding:28px 15px}
.sample{border-top:1px solid var(--line);padding:9px 19px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--muted)}
.sample span{display:inline-flex;gap:7px;align-items:center}
.sample svg{width:16px;height:16px}
.text-button{padding:3px 7px;color:var(--brand);font-size:12px}.text-button:hover{text-decoration:underline}
dialog{width:min(94vw,500px);max-height:90dvh;padding:20px;border:1px solid var(--line);border-radius:15px;color:var(--ink);box-shadow:0 20px 80px #142c3050}
dialog::backdrop{background:#12282080}
.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
#project-form{display:grid;gap:14px}
#project-form label{display:block;font-size:13px;font-weight:700}
#project-form label small{display:inline-block;color:var(--muted);font-size:10px;font-weight:400}
#project-form input:not([type=range]),#project-form textarea,#project-form select{width:100%;margin-top:5px;min-height:40px;padding:7px 10px;background:#f8faf8;border:1px solid #d7e1d9;border-radius:7px}
textarea{resize:vertical}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#project-form input[type=range]{width:100%;display:block;margin:7px 0 0;accent-color:var(--brand)}
#range-value{float:left;color:var(--brand)}
.dialog-actions{display:flex;align-items:center;gap:8px;margin-top:12px}
#delete{margin-inline-start:auto}
.notice{position:fixed;bottom:20px;inset-inline-start:20px;background:#194b3b;color:#fff;padding:10px 16px;border-radius:8px;z-index:5;max-width:calc(100% - 40px)}
@media(max-width:1050px){.layout{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding-inline:12px}.distribution{padding-inline:14px}}
@media(max-width:820px){.layout{display:block}.sidebar{position:static;height:auto;display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px;border:0;border-bottom:1px solid var(--line)}.brand{margin:0}.brand-icon{width:38px;height:38px}.brand small,.local{display:none}.sidebar nav,.side-footer{display:flex;flex-wrap:wrap;gap:3px}.side-footer{margin:0}.nav-item{padding:7px 8px}.topbar{height:45px;padding-inline:16px}.content{padding:22px 16px 28px}}
@media(max-width:550px){.sidebar .side-footer{width:100%;border-top:1px solid var(--line);padding-top:4px}.hero{align-items:flex-start}.hero p{font-size:12px}.hero .primary{padding:7px 9px;min-height:36px;font-size:12px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{padding:11px 13px}.summary{grid-template-columns:1fr;gap:9px}.projects-head{align-items:flex-start;flex-direction:column}.search{width:100%}.search input{width:100%}.panel-head,.filters{padding-inline:14px}.sample{padding-inline:12px}}
