
/* === Sahel local webfont === */
@font-face{
  font-family:"Sahel";
  src:url("assets/fonts/sahel/Sahel.woff2") format("woff2");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:"Sahel";
  src:url("assets/fonts/sahel/Sahel-SemiBold.woff2") format("woff2");
  font-style:normal;
  font-weight:600;
  font-display:swap;
}
@font-face{
  font-family:"Sahel";
  src:url("assets/fonts/sahel/Sahel-Bold.woff2") format("woff2");
  font-style:normal;
  font-weight:700;
  font-display:swap;
}
@font-face{
  font-family:"Sahel";
  src:url("assets/fonts/sahel/Sahel-Black.woff2") format("woff2");
  font-style:normal;
  font-weight:900;
  font-display:swap;
}

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f4f7fb;color:#172033;font-family:"Vazirmatn","IRANSans","Segoe UI",Tahoma,Arial,sans-serif;direction:rtl}.app-shell{min-height:100vh}.sidebar{position:fixed;right:0;top:0;bottom:0;width:264px;background:linear-gradient(180deg,#0b172a 0%,#0d2138 100%);color:#fff;padding:24px 16px;z-index:50;display:flex;flex-direction:column;border-left:1px solid rgba(255,255,255,.08)}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 24px;border-bottom:1px solid rgba(255,255,255,.09)}.brand-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#44d7bd,#3b82f6);display:grid;place-items:center;font-weight:900;letter-spacing:-1px;box-shadow:0 10px 30px rgba(68,215,189,.18)}.brand strong{display:block;font-size:15px}.brand span{display:block;font-size:11px;color:#9fb3c9;margin-top:3px}.nav{display:flex;flex-direction:column;gap:5px;padding-top:18px;overflow:auto}.nav-item{width:100%;border:0;background:transparent;color:#aebfd2;text-align:right;padding:11px 12px;border-radius:10px;font:inherit;font-size:13px;cursor:pointer;display:flex;gap:10px;align-items:center;transition:.2s}.nav-item span{width:22px;color:#6f89a5}.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}.nav-item.active{background:linear-gradient(90deg,rgba(68,215,189,.16),rgba(59,130,246,.10));color:#fff}.nav-item.active span{color:#50e2c6}.sidebar-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:18px 8px 0;display:flex;gap:8px;align-items:center;color:#8fa5bd;font-size:11px}.dot{width:7px;height:7px;border-radius:50%;background:#49d6a8;box-shadow:0 0 0 4px rgba(73,214,168,.12)}.main{margin-right:264px;min-height:100vh}.topbar{height:88px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid #e6ebf2;display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:30}.top-title .eyebrow,.eyebrow{font-size:10px;letter-spacing:1.5px;color:#7b8ba1;font-weight:800}.top-title h1{font-size:18px;margin:4px 0 0}.top-actions{display:flex;align-items:center;gap:10px}.period{font-size:12px;color:#65748a;background:#f3f6fa;border:1px solid #e5ebf2;padding:8px 12px;border-radius:9px}.print-btn{border:1px solid #dbe3ec;background:#fff;padding:8px 12px;border-radius:9px;cursor:pointer;font:inherit;font-size:12px;color:#344257}.menu-btn{display:none;border:0;background:#eef3f8;border-radius:9px;padding:8px 10px;font-size:18px}.page-section{display:none;padding:30px 34px 48px;max-width:1580px;margin:0 auto}.page-section.active{display:block}.hero{border-radius:22px;background:radial-gradient(circle at 20% 10%,rgba(68,215,189,.22),transparent 28%),linear-gradient(120deg,#0d2037,#132f4c);color:#fff;padding:32px 36px;display:flex;align-items:center;justify-content:space-between;min-height:188px;box-shadow:0 18px 46px rgba(13,32,55,.15);overflow:hidden;position:relative}.hero:after{content:"";position:absolute;left:-70px;bottom:-110px;width:260px;height:260px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 38px rgba(255,255,255,.025),0 0 0 76px rgba(255,255,255,.018)}.hero-kicker{font-size:11px;color:#65dfc8;font-weight:800}.hero h2{font-size:28px;margin:9px 0 8px}.hero p{margin:0;color:#b9cadb;font-size:13px}.hero-badge{position:relative;z-index:2;text-align:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:18px 24px;min-width:130px}.hero-badge span{display:block;font-size:10px;color:#a9bed1}.hero-badge strong{font-size:18px;color:#69e4c8;display:block;margin-top:5px}.kpi-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:18px 0}.kpi{background:#fff;border:1px solid #e7ecf3;border-radius:16px;padding:17px;min-height:110px;position:relative;overflow:hidden;box-shadow:0 6px 20px rgba(27,45,72,.035)}.kpi:before{content:"";position:absolute;top:0;right:0;width:4px;height:100%;background:var(--accent,#3b82f6)}.kpi small{display:block;color:#7b899c;font-size:10px;line-height:1.5;min-height:30px}.kpi strong{font-size:28px;letter-spacing:-1px;display:block;margin-top:7px}.kpi em{font-style:normal;font-size:10px;color:#96a2b2}.grid{display:grid;gap:16px;margin:16px 0}.grid.two{grid-template-columns:1.45fr 1fr}.grid.three{grid-template-columns:1fr 1fr 1.05fr}.panel,.table-card{background:#fff;border:1px solid #e6ebf2;border-radius:17px;box-shadow:0 5px 18px rgba(27,45,72,.035)}.panel{padding:20px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.panel h3,.section-title h3{font-size:15px;margin:4px 0 0}.mini-label{font-size:9px;color:#8a98aa;font-weight:800;letter-spacing:1.2px}.chip{font-size:10px;color:#2b6e67;background:#e9fbf6;border:1px solid #d8f4ec;padding:5px 9px;border-radius:999px}.chip.danger{color:#a34646;background:#fff0f0;border-color:#ffe1e1}.bar-chart{display:flex;flex-direction:column;gap:11px}.bar-row{display:grid;grid-template-columns:52px 1fr 42px;gap:10px;align-items:center}.bar-code{font-size:10px;color:#66758a;font-family:monospace;direction:ltr;text-align:left}.bar-track,.progress{height:8px;background:#edf1f6;border-radius:100px;overflow:hidden}.bar-fill,.progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2ec7a8,#3b82f6)}.bar-value{font-size:11px;font-weight:700;color:#3a495d}.donut-wrap{display:flex;align-items:center;justify-content:center;gap:34px;min-height:230px}.donut{width:180px;height:180px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#ef7a7a 0 76%,#f0b85b 76% 100%)}.donut:after{content:"";position:absolute;width:124px;height:124px;background:#fff;border-radius:50%}.donut-center{position:relative;z-index:2;text-align:center}.donut-center strong{display:block;font-size:27px}.donut-center span{font-size:9px;color:#8b97a8}.legend{display:flex;flex-direction:column;gap:12px}.legend-item{display:flex;align-items:center;gap:9px;font-size:11px;color:#59697d}.legend-item i{width:9px;height:9px;border-radius:50%}.legend-item strong{margin-right:auto;color:#1c2a3d}.backup-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.backup-stat{border:1px solid #ebeff4;border-radius:12px;padding:12px;text-align:center;background:#fbfcfe}.backup-stat strong{font-size:20px;display:block}.backup-stat span{font-size:9px;color:#8491a3}.coverage{margin-top:16px}.coverage-row{display:flex;justify-content:space-between;font-size:10px;margin-bottom:7px}.mix-list{display:flex;flex-direction:column;gap:10px}.mix-row{display:grid;grid-template-columns:90px 1fr 28px;gap:8px;align-items:center;font-size:10px}.mix-row .track{height:7px;background:#eef2f6;border-radius:10px;overflow:hidden}.mix-row .track i{display:block;height:100%;background:#4c8fe8;border-radius:10px}.management-note{background:linear-gradient(145deg,#f9fcff,#eef7ff)}.management-note p{font-size:11px;line-height:2;color:#5d6d81}.text-link{border:0;background:transparent;padding:0;color:#2878c8;font:inherit;font-size:11px;cursor:pointer}.section-title{display:flex;justify-content:space-between;align-items:center;margin:30px 0 12px}.scope-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.scope-card{background:#fff;border:1px solid #e7ecf3;border-radius:15px;padding:18px;min-height:125px}.scope-card b{font-size:12px;display:block;margin-bottom:9px}.scope-card p{font-size:10px;line-height:1.9;color:#718095;margin:0}.scope-index{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#edf8f6;color:#2a9b87;font-size:10px;margin-bottom:12px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;padding:8px 2px 22px}.page-head h2{margin:6px 0 5px;font-size:25px}.page-head p{font-size:11px;color:#758398;margin:0}.head-stat{background:#fff;border:1px solid #e4eaf1;border-radius:15px;padding:14px 20px;text-align:center;min-width:125px}.head-stat strong{display:block;font-size:23px}.head-stat span{font-size:9px;color:#8491a3}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);background:#0f2239;color:#fff;border-radius:16px;padding:18px;margin-bottom:10px}.summary-strip div{padding:3px 18px;border-left:1px solid rgba(255,255,255,.1)}.summary-strip div:last-child{border-left:0}.summary-strip span{font-size:9px;color:#98aec4;display:block}.summary-strip strong{font-size:12px;display:block;margin-top:5px}.delivered-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.delivered-card{background:#fff;border:1px solid #e5ebf2;border-radius:15px;padding:17px;position:relative}.delivered-card:after{content:"✓";position:absolute;left:14px;top:14px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e7f8f2;color:#28a17f;font-size:11px}.delivered-card small{font-size:9px;color:#8190a3}.delivered-card h4{font-size:12px;margin:9px 0 10px;padding-left:30px;line-height:1.8}.delivered-card p{font-size:10px;line-height:1.8;color:#758397;margin:0}.table-card{overflow:hidden}.table-toolbar{display:flex;justify-content:flex-end;padding:12px;border-bottom:1px solid #edf1f5;background:#fbfcfe}.table-search{width:min(350px,100%);border:1px solid #dfe6ee;border-radius:9px;padding:10px 12px;font:inherit;font-size:11px;outline:none;background:white}.table-search:focus{border-color:#74a9df;box-shadow:0 0 0 3px rgba(59,130,246,.08)}.table-scroll{overflow:auto;max-height:68vh}table{width:100%;border-collapse:collapse;font-size:10.5px;min-width:850px}th{position:sticky;top:0;background:#f5f8fb;color:#536276;text-align:right;padding:11px 12px;border-bottom:1px solid #dfe6ee;white-space:nowrap;z-index:2}td{padding:10px 12px;border-bottom:1px solid #edf1f5;vertical-align:top;line-height:1.7;color:#455469}tr:hover td{background:#fbfdff}.status-pill{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:4px 8px;font-size:9px;background:#eef3f8;color:#536276}.status-pill.good{background:#e9f8f2;color:#27876e}.status-pill.warn{background:#fff5df;color:#a36c16}.status-pill.bad{background:#ffeded;color:#b64f4f}.cell-progress{min-width:110px}.cell-progress .progress{margin-top:5px}.ongoing-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:17px}.overview-card{background:#fff;border:1px solid #e5ebf2;border-radius:14px;padding:15px}.overview-card span{font-size:9px;color:#8592a3}.overview-card strong{font-size:20px;display:block;margin-top:4px}.project-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.project-card{background:#fff;border:1px solid #e5ebf2;border-radius:15px;padding:16px;display:flex;flex-direction:column;min-height:180px}.project-card .card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.project-card .num{font-size:9px;background:#edf3f8;color:#738297;border-radius:7px;padding:5px 7px}.project-card h4{font-size:12px;line-height:1.8;margin:10px 0 7px}.project-card .domain{font-size:9px;color:#388c80}.project-card p{font-size:9.5px;line-height:1.8;color:#7a8798;flex:1}.project-card .progress-row{display:flex;justify-content:space-between;font-size:9px;margin:12px 0 6px}.notice{padding:13px 15px;background:#fff9e9;border:1px solid #f4e7ba;color:#866b27;border-radius:12px;font-size:10.5px;margin-bottom:14px}.structure-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.structure-card{background:#fff;border:1px solid #e5ebf2;border-radius:16px;padding:20px}.structure-card h3{font-size:14px;margin:0 0 8px}.structure-card .nature{display:inline-block;font-size:9px;color:#2f7e72;background:#eaf8f4;padding:5px 8px;border-radius:999px;margin-bottom:12px}.structure-card p{font-size:10.5px;color:#68788c;line-height:1.9}.structure-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.structure-meta div{background:#f7f9fc;border-radius:10px;padding:10px}.structure-meta span{font-size:8px;color:#8b98a9;display:block}.structure-meta strong{font-size:10px;display:block;margin-top:3px}footer{text-align:center;color:#98a4b4;font-size:9px;padding:26px 0 10px}.mobile-overlay{display:none}.no-results{text-align:center;padding:30px!important;color:#9aa6b5!important}.priority{font-size:9px;background:#eef3f8;padding:4px 7px;border-radius:7px;color:#66758a}.priority.high{background:#fff0e9;color:#b96642}@media(max-width:1250px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.scope-grid{grid-template-columns:repeat(2,1fr)}.project-card-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.sidebar{transform:translateX(105%);transition:.25s}.sidebar.open{transform:translateX(0)}.mobile-overlay.show{display:block;position:fixed;inset:0;background:rgba(7,19,34,.35);z-index:40}.main{margin-right:0}.menu-btn{display:block}.topbar{height:76px;padding:0 16px}.top-title h1{font-size:14px}.top-title .eyebrow{display:none}.page-section{padding:20px 16px 40px}.grid.two,.grid.three{grid-template-columns:1fr}.project-card-grid{grid-template-columns:1fr 1fr}.delivered-cards{grid-template-columns:1fr 1fr}.hero{padding:26px}.hero h2{font-size:22px}.top-actions .period{display:none}}@media(max-width:620px){.kpi-grid{grid-template-columns:1fr 1fr}.scope-grid,.project-card-grid,.delivered-cards,.ongoing-overview,.structure-grid{grid-template-columns:1fr}.summary-strip{grid-template-columns:1fr}.summary-strip div{border-left:0;border-bottom:1px solid rgba(255,255,255,.1);padding:10px}.summary-strip div:last-child{border-bottom:0}.hero{display:block}.hero-badge{display:none}.hero h2{font-size:20px}.donut-wrap{flex-direction:column}.page-head{align-items:flex-start;gap:16px;flex-direction:column}.head-stat{width:100%}.top-actions .print-btn{display:none}}@media print{.sidebar,.topbar,.table-toolbar,.print-btn{display:none!important}.main{margin:0}.page-section{display:block!important;page-break-after:always;padding:16px}.hero{box-shadow:none}.table-scroll{max-height:none;overflow:visible}table{font-size:8px}.panel,.table-card,.kpi{box-shadow:none}}

/* === ATC Web V2 additions === */
400;500;600;700;800;900&display=swap');

:root{
  --atc-navy:#151d65;
  --atc-yellow:#ffc52e;
  --ink:#172033;
  --muted:#748398;
  --line:#e5eaf1;
  --surface:#ffffff;
}

html{-webkit-text-size-adjust:100%}
body{
  font-family:"Vazirmatn","IRANSansX","IRANSans",-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;
  font-feature-settings:"ss01" 1;
}
button,input{font-family:inherit}
img{max-width:100%;height:auto}

.brand{gap:10px}
.brand-logo-box{
  width:58px;height:58px;border-radius:13px;background:#fff;
  display:grid;place-items:center;padding:5px;flex:0 0 auto;
  box-shadow:0 7px 22px rgba(0,0,0,.16);
}
.brand-logo{width:100%;height:100%;object-fit:contain}
.brand strong{font-size:13px}
.brand span{font-size:10px}

.topbar-start{display:flex;align-items:center;gap:12px}
.logout-btn{
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;border:1px solid #eadfe1;background:#fff7f8;color:#9f4a55;
  padding:8px 12px;border-radius:9px;font-size:11px;font-weight:700
}
.logout-btn:hover{background:#fff0f2}

.hero{min-height:200px}
.hero-brand{
  width:132px;height:132px;background:rgba(255,255,255,.95);border-radius:24px;
  display:grid;place-items:center;padding:16px;position:relative;z-index:3;
  box-shadow:0 16px 40px rgba(0,0,0,.18)
}
.hero-brand img{max-height:100%;object-fit:contain}

.project-control-list{display:flex;flex-direction:column;gap:12px}
.project-control-card{
  background:#fff;border:1px solid var(--line);border-radius:17px;
  overflow:hidden;box-shadow:0 5px 18px rgba(27,45,72,.035);
  transition:border-color .2s,box-shadow .2s
}
.project-control-card.open{
  border-color:#bfd5e9;box-shadow:0 11px 30px rgba(27,45,72,.08)
}
.project-control-summary{
  width:100%;border:0;background:#fff;padding:18px 20px;
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(410px,.8fr);
  align-items:center;gap:20px;text-align:right;color:inherit;cursor:pointer
}
.project-control-summary:hover{background:#fbfdff}
.project-main{min-width:0}
.project-code-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.project-code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  direction:ltr;font-size:10px;color:#54657b;background:#eef3f8;padding:5px 7px;border-radius:7px
}
.project-type{
  font-size:9px;color:#557083;background:#f3f6f9;padding:4px 7px;border-radius:999px
}
.project-main h3{font-size:14px;line-height:1.9;margin:8px 0 5px}
.project-next{font-size:10px;color:#758498;line-height:1.8}
.project-next span{color:#526176;font-weight:700}
.project-control-metrics{
  display:grid;grid-template-columns:minmax(150px,1.5fr) 82px 82px 28px;
  gap:8px;align-items:center
}
.project-progress-box,.metric-mini{
  min-height:67px;border:1px solid #e8edf3;border-radius:12px;background:#f9fbfd;padding:10px 11px
}
.project-progress-box>span,.metric-mini span{display:block;font-size:8.5px;color:#8492a4}
.project-progress-box strong,.metric-mini strong{font-size:16px;display:block;margin:2px 0}
.metric-mini{text-align:center}
.metric-mini.critical strong{color:#c45454}
.project-chevron{
  width:28px;height:28px;border-radius:50%;background:#eef4f8;color:#60738a;
  display:grid;place-items:center;font-size:18px;transition:transform .2s
}
.project-control-summary[aria-expanded="true"] .project-chevron{transform:rotate(180deg)}
.project-obstacle-panel{padding:0 20px 20px;border-top:1px solid #edf1f5;background:#fbfcfe}
.project-obstacle-title{display:flex;align-items:center;justify-content:space-between;padding:16px 0 12px}
.project-obstacle-title h3{margin:4px 0 0;font-size:13px}
.obstacle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.obstacle-card{
  background:#fff;border:1px solid #e5eaf1;border-radius:13px;padding:14px;min-width:0
}
.obstacle-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.obstacle-head h4{font-size:11.5px;line-height:1.9;margin:5px 0 0}
.obstacle-code{
  direction:ltr;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:8.5px;color:#7f8ea1
}
.obstacle-pills{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.impact-pill{font-size:8.5px;border-radius:999px;padding:4px 7px;background:#eef3f8;color:#697b90;white-space:nowrap}
.impact-pill.important{background:#fff5df;color:#a36c16}
.impact-pill.critical{background:#ffeded;color:#b64f4f}
.obstacle-description{font-size:10px;line-height:1.95;color:#627287;margin:11px 0}
.obstacle-meta{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:7px}
.obstacle-meta div{background:#f6f8fb;border-radius:9px;padding:8px;min-width:0}
.obstacle-meta span{font-size:8px;color:#8a98aa;display:block}
.obstacle-meta strong{font-size:9.5px;line-height:1.7;display:block;margin-top:3px;color:#4d5e73;font-weight:600}
.empty-obstacles{padding:24px;text-align:center;color:#8695a8;font-size:10px}
.project-help{border-color:#d8e8f7;background:#f4f9fe;color:#58738e}

/* Login */
.login-page{
  min-height:100vh;background:
  radial-gradient(circle at 16% 14%,rgba(255,197,46,.16),transparent 28%),
  radial-gradient(circle at 82% 78%,rgba(55,92,176,.20),transparent 30%),
  linear-gradient(135deg,#071426,#102b46);
  color:#fff
}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:22px}
.login-card{
  width:min(100%,430px);background:rgba(255,255,255,.98);color:var(--ink);
  border-radius:24px;padding:32px;box-shadow:0 28px 80px rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.7);text-align:center
}
.login-logo-wrap{
  width:104px;height:104px;background:#fff;margin:0 auto 18px;border-radius:22px;
  display:grid;place-items:center;padding:7px;border:1px solid #edf0f4;
  box-shadow:0 12px 28px rgba(18,38,66,.08)
}
.login-logo{width:100%;height:100%;object-fit:contain}
.login-card h1{font-size:21px;margin:8px 0 7px}
.login-copy{font-size:11px;color:#748398;line-height:1.9;margin:0 0 21px}
.login-form{text-align:right}
.login-form label{display:block;font-size:10px;font-weight:700;color:#556579;margin-bottom:7px}
.password-field{display:flex;border:1px solid #dfe6ee;border-radius:11px;background:#fff;overflow:hidden}
.password-field:focus-within{border-color:#6d9dd0;box-shadow:0 0 0 3px rgba(59,130,246,.09)}
.password-field input{
  border:0;outline:0;width:100%;padding:12px 13px;background:transparent;
  font-size:14px;direction:ltr;text-align:left
}
.password-toggle{
  border:0;border-right:1px solid #edf0f4;background:#f8fafc;color:#607087;
  padding:0 12px;cursor:pointer;font-size:10px
}
.login-submit{
  width:100%;border:0;background:linear-gradient(135deg,#17236f,#244a91);color:#fff;
  padding:12px 16px;border-radius:11px;margin-top:12px;cursor:pointer;font-size:12px;font-weight:800;
  box-shadow:0 10px 24px rgba(23,35,111,.18)
}
.login-submit:hover{filter:brightness(1.04)}
.login-error{
  background:#fff0f0;color:#a74848;border:1px solid #ffdcdc;border-radius:10px;
  padding:10px 11px;font-size:10px;line-height:1.7;margin-bottom:14px;text-align:right
}
.login-domain{direction:ltr;font-size:9px;color:#9aa7b8;margin-top:18px;letter-spacing:.3px}

/* Responsive refinements */
@media(max-width:1100px){
  .project-control-summary{grid-template-columns:1fr}
  .project-control-metrics{grid-template-columns:minmax(130px,1fr) 80px 80px 28px}
  .obstacle-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  .sidebar{width:min(86vw,310px)}
  .hero-brand{width:100px;height:100px}
  .top-actions{gap:6px}
  .logout-btn{padding:8px 10px}
}
@media(max-width:700px){
  .topbar{padding-inline:12px}
  .top-title h1{font-size:13px}
  .page-section{padding-inline:12px}
  .hero{padding:24px 20px;min-height:auto}
  .hero-brand{width:78px;height:78px;border-radius:17px;padding:9px}
  .project-control-summary{padding:15px}
  .project-control-metrics{grid-template-columns:1fr 1fr}
  .project-progress-box{grid-column:1/-1}
  .project-chevron{position:absolute;left:14px;top:14px}
  .project-control-summary{position:relative}
  .project-obstacle-panel{padding:0 14px 14px}
  .obstacle-meta{grid-template-columns:1fr}
  .obstacle-head{flex-direction:column}
  .obstacle-pills{justify-content:flex-start}
}
@media(max-width:520px){
  .top-actions .print-btn,.top-actions .period{display:none}
  .hero{display:flex;gap:14px}
  .hero h2{font-size:18px}
  .hero p{font-size:10px;line-height:1.9}
  .hero-brand{display:none}
  .kpi-grid{grid-template-columns:1fr 1fr}
  .kpi{min-height:104px;padding:14px}
  .kpi strong{font-size:23px}
  .donut{width:150px;height:150px}
  .donut:after{width:102px;height:102px}
  .login-card{padding:25px 20px;border-radius:20px}
  .login-logo-wrap{width:90px;height:90px}
}
@media(max-width:390px){
  .kpi-grid{grid-template-columns:1fr}
  .project-control-metrics{grid-template-columns:1fr 1fr}
  .metric-mini{min-width:0}
}

/* Mac/iOS safe areas */
@supports(padding:max(0px)){
  .topbar{padding-left:max(34px,env(safe-area-inset-left));padding-right:max(34px,env(safe-area-inset-right))}
  @media(max-width:900px){
    .topbar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  }
}

@media print{
  .logout-btn,.project-help{display:none!important}
  .project-obstacle-panel[hidden]{display:none!important}
}


/* === V3 typography/readability overrides === */
html, body {
  font-size: 14px;
}

body, button, input, table {
  font-size: 14px;
}

h1, h2, h3, h4, h5, h6,
.top-title h1,
.hero h2,
.page-head h2,
.panel h3,
.section-title h3,
.project-main h3,
.obstacle-head h4,
.structure-card h3,
.delivered-card h4,
.project-card h4,
.login-card h1 {
  font-weight: 800 !important;
}

.top-title h1 { font-size: 18px !important; }
.hero h2 { font-size: 28px !important; }
.page-head h2 { font-size: 26px !important; }
.panel h3, .section-title h3, .project-obstacle-title h3 { font-size: 17px !important; }
.project-main h3, .structure-card h3 { font-size: 16px !important; }
.delivered-card h4, .project-card h4, .obstacle-head h4 { font-size: 15px !important; }

.eyebrow,
.hero-kicker,
.mini-label,
.brand span,
.sidebar-foot,
.kpi small,
.kpi em,
.chip,
.bar-code,
.bar-value,
.donut-center span,
.legend-item,
.backup-stat span,
.coverage-row,
.mix-row,
.management-note p,
.text-link,
.scope-card b,
.scope-card p,
.page-head p,
.head-stat span,
.summary-strip span,
.summary-strip strong,
.delivered-card small,
.delivered-card p,
.table-search,
table,
th,
td,
.status-pill,
.overview-card span,
.project-card .num,
.project-card .domain,
.project-card p,
.project-card .progress-row,
.notice,
.structure-card .nature,
.structure-card p,
.structure-meta span,
.structure-meta strong,
.priority,
.project-code,
.project-type,
.project-next,
.project-progress-box>span,
.metric-mini span,
.obstacle-code,
.impact-pill,
.obstacle-description,
.obstacle-meta span,
.obstacle-meta strong,
.empty-obstacles {
  font-size: 14px !important;
}

.brand strong { font-size: 15px !important; }
.nav-item { font-size: 14px !important; }
.period, .print-btn, .logout-btn { font-size: 14px !important; }

.kpi strong { font-size: 30px !important; }
.head-stat strong { font-size: 25px !important; }
.backup-stat strong { font-size: 22px !important; }
.overview-card strong { font-size: 22px !important; }
.project-progress-box strong, .metric-mini strong { font-size: 18px !important; }

th {
  font-weight: 800 !important;
}

td {
  font-weight: 400;
}

.nav-item.active,
.status-pill,
.chip,
.priority,
.impact-pill {
  font-weight: 700;
}

/* Slightly roomier cards/tables for 14px type */
.kpi { min-height: 128px; }
.scope-card { min-height: 150px; }
table { line-height: 1.9; }
th, td { padding-top: 12px; padding-bottom: 12px; }
.project-card { min-height: 220px; }
.obstacle-card { padding: 16px; }

@media(max-width:900px){
  .top-title h1 { font-size: 16px !important; }
  .hero h2 { font-size: 23px !important; }
}

@media(max-width:620px){
  html, body, button, input, table { font-size: 14px !important; }
  .hero h2 { font-size: 20px !important; }
  .page-head h2 { font-size: 22px !important; }
}


/* === V5 Sahel typography === */
body, button, input, table{
  font-family:"Sahel","Vazirmatn","IRANSansX","IRANSans",-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif !important;
}

h1,h2,h3,h4,h5,h6,
.top-title h1,.hero h2,.page-head h2,.panel h3,.section-title h3,
.project-main h3,.obstacle-head h4,.structure-card h3,.delivered-card h4,.project-card h4{
  font-family:"Sahel","Vazirmatn","IRANSansX","IRANSans",sans-serif !important;
  font-weight:700 !important;
}

.kpi strong,.head-stat strong,.backup-stat strong,.overview-card strong{
  font-weight:900 !important;
}


/* === Clickable dashboard KPI cards === */
.kpi.kpi-link{
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  outline:none;
}
.kpi.kpi-link:hover{
  transform:translateY(-4px);
  border-color:var(--accent,#3b82f6);
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 14px 34px rgba(27,45,72,.12);
}
.kpi.kpi-link:focus-visible{
  border-color:var(--accent,#3b82f6);
  box-shadow:0 0 0 4px rgba(59,130,246,.13),0 14px 34px rgba(27,45,72,.10);
}
.kpi.kpi-link::after{
  content:"مشاهده";
  position:absolute;
  left:14px;
  bottom:12px;
  font-size:10px;
  font-weight:700;
  color:var(--accent,#3b82f6);
  opacity:0;
  transform:translateY(4px);
  transition:.18s ease;
}
.kpi.kpi-link:hover::after,
.kpi.kpi-link:focus-visible::after{
  opacity:1;
  transform:translateY(0);
}
