:root{--navy:#173b57;--green:#176b5b;--green-2:#2c8b78;--ink:#172033;--muted:#667085;--line:#d9e1ea;--bg:#f4f7fb;--card:#fff;--danger:#b42318;--warning:#f79009;--shadow:0 8px 24px rgba(20,40,60,.07)}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:"Vazirmatn","Segoe UI",Tahoma,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.85;font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font-family:inherit;font-size:1rem}
h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.45;font-weight:800;letter-spacing:-.035em}h2{font-size:1.35rem;font-weight:750;letter-spacing:-.02em}h3{font-size:1.08rem;font-weight:700}
a{color:inherit}
.topbar{background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:flex-start;padding:14px 5%;gap:20px;flex-wrap:wrap;box-shadow:0 4px 18px rgba(23,59,87,.15)}
.brand{font-size:1.35rem;font-weight:800;color:#fff;text-decoration:none;letter-spacing:-.04em;display:flex;align-items:center;gap:10px}.topbar nav{display:flex;gap:18px;align-items:center;justify-content:flex-start;flex-wrap:wrap;direction:rtl}.topbar nav a,.linkbtn{color:#fff;text-decoration:none;background:none;border:0;font:inherit;font-weight:600;cursor:pointer;opacity:.96}.topbar nav a:hover,.linkbtn:hover{opacity:.75}
.container{width:min(1240px,92%);margin:30px auto 50px}.hero{background:linear-gradient(135deg,#e6f4f0,#edf3fb);padding:32px 34px;border-radius:22px;margin-bottom:22px}.hero p{max-width:900px;margin-bottom:0;color:#334155;font-size:1.03rem}.eyebrow{display:inline-block;color:var(--green);font-weight:750;font-size:.88rem;margin-bottom:7px}.muted{color:var(--muted)}
.card{background:var(--card);border-radius:18px;padding:24px;box-shadow:var(--shadow);margin-bottom:22px;border:1px solid rgba(215,224,234,.65)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 22px}.full{grid-column:1/-1}.field label{display:block;font-weight:700;margin-bottom:7px;color:#1e293b}.form-control{width:100%;min-height:46px;padding:10px 13px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;color:#172033;outline:none;transition:border-color .15s,box-shadow .15s}.form-control:focus{border-color:#5b9f92;box-shadow:0 0 0 3px rgba(44,139,120,.12)}textarea.form-control{min-height:92px;resize:vertical}.required,.field-error{color:var(--danger)}.field-error{font-size:.9rem;margin-top:6px}.field-error ul{margin:0;padding-right:18px}.field small{color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 18px;border:1px solid #d5dde7;border-radius:10px;background:#fff;color:#1f2937;text-decoration:none;cursor:pointer;font:inherit;font-weight:650;transition:transform .12s,box-shadow .12s,background .12s}.btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(20,40,60,.08)}.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.full-width{width:100%}.form-actions{display:flex;gap:10px;align-items:center;padding-top:4px}
.alert{padding:13px 16px;border-radius:11px;margin-bottom:16px;background:#e8f2ff;font-weight:550}.alert.error{background:#fee4e2;color:#912018}.alert.success{background:#dcfae6;color:#05603a}.alert.warning{background:#fff2cc;color:#805b00}
.section-block{border-top:1px solid #edf1f5;padding-top:22px;margin-top:4px}.choices>div>label,.choice-list label{display:block;margin:8px 0;font-weight:450;break-inside:avoid}.choice-list{columns:2;column-gap:36px}.choice-list input{margin-left:7px;accent-color:var(--green)}
.kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:15px;margin:18px 0 22px}.kpis-four{grid-template-columns:repeat(4,1fr)}.kpi{background:#fff;padding:22px 18px;border-radius:17px;text-align:center;box-shadow:var(--shadow);border:1px solid rgba(215,224,234,.65)}.kpi b{display:block;font-size:1.8rem;font-weight:800}.kpi span{color:var(--muted)}.kpi.warn{border-top:3px solid var(--warning)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.barrow,.item{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #edf0f3;padding:11px 0;align-items:center}.item:last-child{border-bottom:0}.item small{display:block;color:var(--muted)}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.pagehead h1{margin-bottom:0}.action-row{display:flex;gap:9px;flex-wrap:wrap}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.section-title h2{margin-bottom:0}.result-count{color:var(--muted);font-weight:600}
.filters{display:grid;grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) auto;gap:10px;align-items:center}.tablewrap{overflow:auto;background:#fff;border-radius:15px;box-shadow:var(--shadow);border:1px solid rgba(215,224,234,.65)}.tablewrap.no-shadow{box-shadow:none;border:0;border-radius:10px}table{width:100%;border-collapse:collapse;min-width:790px}th,td{text-align:right;padding:13px 14px;border-bottom:1px solid #edf0f3;vertical-align:middle}th{background:#eef4f7;color:#344054;font-weight:700}tbody tr:hover{background:#fafcfd}.table-link{color:#14685a;font-weight:700;text-decoration:none}.table-link:hover{text-decoration:underline}.mini-link{display:inline-block;color:#475467;font-size:.88rem;text-decoration:none;margin-right:9px}.ltr-num{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
dl{display:grid;grid-template-columns:150px 1fr;gap:4px 12px}dt{font-weight:700;padding:6px 0}dd{margin:0;padding:6px 0;border-bottom:1px dashed #eef2f6}.center{text-align:center}.login-card{max-width:450px;margin:65px auto;padding:30px}.login-form{display:grid;gap:15px}.inline{display:inline}.linkbtn{padding:0}.success-card{max-width:620px;margin:70px auto}.success-icon{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 16px;border-radius:50%;background:#dcfae6;color:#067647;font-size:2rem;font-weight:800}.clean-list{padding-right:20px}.clean-list li{margin:5px 0}
.badge{display:inline-block;padding:4px 9px;border-radius:999px;font-size:.83rem;font-weight:700;background:#eef2f6;color:#475467}.badge-green,.status-completed{background:#dcfae6;color:#067647}.badge-gray,.status-cancelled{background:#eef2f6;color:#475467}.status-registered{background:#e8f2ff;color:#175cd3}.status-attended{background:#f0e8ff;color:#6941c6}.status-absent{background:#fee4e2;color:#b42318}
.pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin:20px 0;color:var(--muted);font-weight:600}.chartrow{margin:13px 0}.chartlabel{display:flex;justify-content:space-between;margin-bottom:5px}.track{height:9px;background:#edf0f3;border-radius:999px;overflow:hidden}.track i{display:block;height:100%;background:var(--green-2);border-radius:999px}.course-field{background:#f8fbfa;border:1px solid #dceae6;border-radius:13px;padding:16px}
@media(max-width:900px){.kpis{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:1fr 1fr}.filters .btn{grid-column:1/-1}.choice-list{columns:1}.topbar{align-items:flex-start}.topbar nav{gap:12px}}
@media(max-width:720px){html{font-size:15px}.container{width:min(94%,1240px);margin-top:18px}.hero{padding:24px 20px}.card{padding:18px}.form-grid,.two{grid-template-columns:1fr}.kpis,.kpis-four{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:1fr}.filters .btn{grid-column:auto}.pagehead{align-items:flex-start;flex-direction:column}.pagehead .btn,.action-row{width:100%}.action-row .btn{flex:1}.topbar{padding:13px 4%}.topbar nav{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.topbar nav a,.linkbtn{white-space:nowrap}dl{grid-template-columns:110px 1fr}.choice-list{columns:1}.form-actions{flex-direction:column}.form-actions .btn{width:100%}}
@media(max-width:430px){.kpis,.kpis-four{grid-template-columns:1fr 1fr}.kpi{padding:16px 10px}.kpi b{font-size:1.55rem}.brand{font-size:1.3rem}}

/* v8: course audience + configurable dashboard */
.filters-four{grid-template-columns:minmax(260px,2fr) minmax(150px,1fr) minmax(150px,1fr) auto}
.compact{margin-bottom:8px}.compact-card{padding:16px 20px}.checkbox-field{display:flex;flex-direction:column;justify-content:center}.checkbox-field>label{display:flex;align-items:center;gap:9px;margin:0;font-weight:750}.checkbox-field input[type=checkbox]{width:19px;height:19px;accent-color:var(--green)}.checkbox-field small{display:block;margin-top:5px}.toggle-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.province-choice-list{columns:4;column-gap:26px;padding:12px 14px;background:#f8fafc;border:1px solid #e5ebf0;border-radius:12px}.province-choice-list>div{break-inside:avoid}.course-audience-card{border-top:4px solid #173b57}.checkbox-field.emphasis{background:#eef6f4;border:1px solid #cfe6df;border-radius:12px;padding:14px}.soft-disabled{opacity:.56}.scope-national{background:#e8f2ff;color:#175cd3}.scope-provincial{background:#dcfae6;color:#067647}.scope-local{background:#fff2cc;color:#805b00}
.dashboard-kpis{grid-template-columns:repeat(4,1fr)}.dashboard-head{align-items:flex-start}.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.dashboard-chart-card{margin-bottom:0;min-width:0}.chart-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.chart-card-top h2{margin-bottom:0}.icon-btn{width:36px;height:36px;border:0;border-radius:9px;background:#f2f4f7;color:#667085;font-size:1.45rem;cursor:pointer}.icon-btn:hover{background:#fee4e2;color:#b42318}.chart-controls{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:9px;margin-bottom:12px}.chart-controls label{font-size:.82rem;color:#667085;font-weight:650}.chart-controls .form-control{margin-top:4px;min-height:40px;padding:7px 9px;font-size:.9rem}.chart-meta{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;color:#667085;font-size:.84rem;min-height:24px}.chart-stage{min-height:350px;overflow:auto;border-top:1px solid #eef2f6;padding-top:14px}.chart-loading,.chart-empty{min-height:300px;display:grid;place-items:center;color:#667085}.error-text{color:#b42318}.dash-bar-row{margin:10px 0}.dash-bar-head{display:flex;justify-content:space-between;gap:12px;font-size:.9rem}.dash-bar-track{height:9px;background:#eef2f6;border-radius:999px;overflow:hidden;margin-top:4px}.dash-bar-track i{height:100%;display:block;background:linear-gradient(90deg,#2c8b78,#176b5b);border-radius:999px}.dash-svg{display:block;width:100%;min-width:700px;height:330px}.svg-bar{fill:#2c8b78}.svg-value{font-family:inherit;font-size:13px;fill:#344054;font-weight:700}.svg-label{font-family:inherit;font-size:12px;fill:#667085}.svg-axis{stroke:#d0d5dd;stroke-width:1}.svg-line{fill:none;stroke:#176b5b;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.svg-point{fill:#fff;stroke:#173b57;stroke-width:3}.pie-wrap{display:grid;grid-template-columns:minmax(210px,280px) 1fr;gap:28px;align-items:center;min-height:315px}.css-pie{width:240px;aspect-ratio:1;border-radius:50%;position:relative;margin:auto;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}.pie-center{position:absolute;inset:29%;border-radius:50%;background:#fff;display:grid;place-items:center;align-content:center;box-shadow:0 2px 10px rgba(0,0,0,.06)}.pie-center b{font-size:1.4rem}.pie-center span{font-size:.8rem;color:#667085}.pie-legend{display:grid;gap:7px}.pie-legend-row{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;border-bottom:1px solid #f0f2f5;padding:5px 0}.pie-legend-row i{width:10px;height:10px;border-radius:50%}.pie-legend-row span{font-size:.88rem}.iran-tile-map{display:grid;grid-template-columns:repeat(7,minmax(72px,1fr));grid-template-rows:repeat(6,58px);gap:5px;direction:ltr;min-width:650px;padding:10px}.province-tile{direction:rtl;border:1px solid rgba(23,59,87,.13);border-radius:9px;padding:5px 7px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;transition:transform .12s;min-width:0}.province-tile:hover{transform:scale(1.04);z-index:2;box-shadow:0 4px 12px rgba(0,0,0,.12)}.province-tile span{font-size:.68rem;line-height:1.2;color:#102a3e}.province-tile b{font-size:.87rem;margin-top:3px;color:#071b2a}.map-legend{display:flex;align-items:center;justify-content:center;gap:8px;font-size:.78rem;color:#667085}.map-legend i{display:block;width:140px;height:9px;border-radius:999px;background:linear-gradient(90deg,rgba(23,107,91,.08),rgba(23,107,91,.9))}.province-heatmap{display:grid;grid-template-columns:repeat(5,minmax(105px,1fr));gap:7px;min-width:620px}.heat-cell{min-height:58px;border-radius:9px;padding:7px;display:flex;align-items:center;justify-content:space-between;gap:7px;border:1px solid rgba(23,59,87,.12)}.heat-cell span{font-size:.72rem}.heat-cell b{font-size:.9rem}.dashboard-help{color:#344054}
@media(max-width:1100px){.chart-grid{grid-template-columns:1fr}.chart-controls{grid-template-columns:1fr 1fr}.dashboard-kpis{grid-template-columns:repeat(4,1fr)}.province-choice-list{columns:3}}
@media(max-width:720px){.dashboard-kpis{grid-template-columns:repeat(2,1fr)}.chart-controls{grid-template-columns:1fr}.pie-wrap{grid-template-columns:1fr}.css-pie{width:210px}.province-choice-list{columns:2}.toggle-grid{grid-template-columns:1fr}.filters-four{grid-template-columns:1fr}.chart-stage{min-height:320px}}
@media(max-width:430px){.province-choice-list{columns:1}.dashboard-kpis{grid-template-columns:1fr 1fr}.chart-card-top{align-items:center}}

.page-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

/* v10: organized skills/history choices in applicant registration */
.applicant-choices-section{border-top:0;margin-top:14px;padding-top:0;background:linear-gradient(180deg,#fbfdfd 0,#fff 100%);border:1px solid #dce8e5;border-radius:18px;padding:22px}
.choices-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}.choices-heading h2{font-size:1.55rem;margin-bottom:4px}.choices-heading p{margin-bottom:0;max-width:800px}.choices-counter{min-width:118px;background:#eef7f4;border:1px solid #d3e9e2;border-radius:14px;padding:10px 14px;text-align:center;color:#176b5b;box-shadow:0 4px 12px rgba(23,107,91,.05)}.choices-counter b{display:block;font-size:1.45rem;line-height:1.2;font-variant-numeric:tabular-nums}.choices-counter span{display:block;font-size:.78rem;margin-top:3px;font-weight:650}.choices-guide{display:flex;gap:16px;align-items:center;flex-wrap:wrap;background:#f7fafc;border:1px dashed #d5dde7;border-radius:12px;padding:10px 13px;margin-bottom:18px;color:#526071;font-size:.87rem}.choices-guide span{display:flex;align-items:center;gap:7px}.guide-dot{width:8px;height:8px;border-radius:50%;background:var(--green-2);display:inline-block}
.applicant-choices-section .choice-list{columns:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;margin:0;padding:0;background:transparent}
.applicant-choices-section .choice-list>div{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:7px 10px;padding:58px 14px 14px;border:1px solid #dfe7ed;border-radius:15px;background:#fff;box-shadow:0 5px 16px rgba(20,40,60,.045);overflow:hidden;break-inside:avoid;min-width:0}
.applicant-choices-section .choice-list>div::before{content:"";position:absolute;top:0;right:0;left:0;height:4px;background:var(--green-2)}
.applicant-choices-section .choice-list>div:nth-child(2n)::before{background:#426f91}.applicant-choices-section .choice-list>div:nth-child(3n)::before{background:#8a6a3b}.applicant-choices-section .choice-list>div:nth-child(4n)::before{background:#6c5c92}.applicant-choices-section .choice-list>div:nth-child(5n)::before{background:#8a5364}.applicant-choices-section .choice-list>div:nth-child(6n)::before{background:#52745b}
.applicant-choices-section .choice-list>div>label:first-child{position:absolute;top:4px;right:0;left:0;margin:0;padding:11px 14px 10px;background:#f7fafb;border-bottom:1px solid #e8edf1;color:#173b57;font-size:1rem;font-weight:800;line-height:1.55;white-space:normal}
.applicant-choices-section .choice-list>div>div{min-width:0;margin:0}
.applicant-choices-section .choice-list>div>div label{display:flex;align-items:flex-start;gap:8px;height:100%;margin:0;padding:9px 10px;border:1px solid #edf1f4;border-radius:10px;background:#fbfcfd;color:#344054;font-size:.91rem;font-weight:500;line-height:1.65;cursor:pointer;transition:background .12s,border-color .12s,box-shadow .12s,transform .12s;break-inside:auto}
.applicant-choices-section .choice-list>div>div label:hover{background:#f2f8f6;border-color:#cfe3dd;transform:translateY(-1px)}
.applicant-choices-section .choice-list input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin:3px 0 0 2px;accent-color:var(--green);cursor:pointer}
.applicant-choices-section .choice-list>div>div label:has(input:checked){background:#eaf6f2;border-color:#91c6b8;box-shadow:0 0 0 1px rgba(44,139,120,.08);color:#0f594d;font-weight:650}
@media(max-width:980px){.applicant-choices-section .choice-list{grid-template-columns:1fr}.applicant-choices-section .choice-list>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.applicant-choices-section{padding:16px}.choices-heading{flex-direction:column}.choices-counter{width:100%;display:flex;justify-content:center;align-items:baseline;gap:7px}.choices-counter b{display:inline}.choices-counter span{display:inline}.choices-guide{display:grid;gap:6px}.applicant-choices-section .choice-list>div{grid-template-columns:1fr;padding:58px 10px 10px}.applicant-choices-section .choice-list>div>label:first-child{padding:11px 12px}.applicant-choices-section .choice-list>div>div label{padding:10px}}


/* v11: temporary whole-site access gate */
.access-gate-body{min-height:100vh;background:radial-gradient(circle at 85% 15%,rgba(44,139,120,.16),transparent 30%),linear-gradient(145deg,#eef5f7,#f7f9fc 58%,#eef4f1);display:grid;place-items:center;padding:24px}
.access-gate-shell{width:min(100%,470px)}
.access-gate-card{background:#fff;border:1px solid rgba(215,224,234,.85);border-radius:24px;padding:34px;box-shadow:0 20px 55px rgba(23,59,87,.14);text-align:right}
.access-gate-card h1{font-size:1.8rem;margin-bottom:8px}.access-gate-card p{margin-bottom:20px}.access-gate-mark{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--navy),var(--green));color:#fff;display:grid;place-items:center;font-size:1.65rem;font-weight:800;margin-bottom:18px;box-shadow:0 10px 22px rgba(23,59,87,.18)}
.access-gate-form{display:grid;gap:15px;margin-top:18px}.access-code-input{direction:ltr;text-align:center;font-size:1.15rem;letter-spacing:.08em;font-variant-numeric:tabular-nums}.access-gate-note{display:block;color:#98a2b3;margin-top:18px;text-align:center;font-size:.79rem}
@media(max-width:520px){.access-gate-body{padding:14px}.access-gate-card{padding:24px 18px;border-radius:19px}.access-gate-card h1{font-size:1.55rem}}

/* v12: hierarchical user access (local/city/provincial/national) */
.access-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:.78rem;font-weight:750;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);white-space:nowrap}
.access-level-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}.access-guide-card{background:#fff;border:1px solid #dfe6ed;border-radius:14px;padding:15px 16px;box-shadow:0 4px 14px rgba(20,40,60,.04);border-top:4px solid #98a2b3}.access-guide-card b{display:block;font-size:1.02rem;margin-bottom:4px}.access-guide-card span{display:block;color:#667085;font-size:.84rem;line-height:1.7}.access-guide-card.access-national{border-top-color:#175cd3}.access-guide-card.access-provincial{border-top-color:#067647}.access-guide-card.access-city{border-top-color:#6941c6}.access-guide-card.access-local{border-top-color:#b54708}.compact-guide{margin-bottom:18px}.compact-guide .access-guide-card{padding:11px 12px}.access-badge{display:inline-block;padding:5px 10px;border-radius:999px;font-size:.82rem;font-weight:800}.access-badge.access-national{background:#e8f2ff;color:#175cd3}.access-badge.access-provincial{background:#dcfae6;color:#067647}.access-badge.access-city{background:#f0e8ff;color:#6941c6}.access-badge.access-local{background:#fff2cc;color:#9a4a00}.block-muted{display:block;color:#98a2b3;font-size:.78rem;margin-top:2px}.user-access-form .scope-explanation{margin-top:16px;padding:12px 14px;background:#f8fafc;border:1px dashed #d5dde7;border-radius:11px;color:#475467;font-size:.9rem}.access-geo[hidden]{display:none!important}
@media(max-width:920px){.access-level-guide{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.access-level-guide{grid-template-columns:1fr}.access-pill{display:none}}

/* v13: granular menu/action permissions */
.permission-editor-card{background:linear-gradient(180deg,#fbfcff 0,#fff 100%);border-color:#dce5ef}
.permission-section-title{align-items:flex-start;gap:18px}.permission-section-title>div:first-child{max-width:780px}.permission-section-title p{margin:5px 0 0}
.permission-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}.btn.small{padding:7px 11px;font-size:.82rem}.btn.danger-soft{background:#fff7f6;border-color:#f4c7c2;color:#b42318}.btn.danger-soft:hover{background:#fff0ee}
.permission-grid{margin-top:14px}.permission-choice-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important;margin:0!important;padding:0!important;list-style:none!important}
.permission-choice-list>div{position:relative;display:grid;grid-template-columns:1fr;gap:7px;padding:52px 13px 13px;border:1px solid #dce5ef;border-radius:15px;background:#fff;box-shadow:0 5px 15px rgba(20,40,60,.045);min-width:0;overflow:hidden}
.permission-choice-list>div::before{content:"";position:absolute;right:0;left:0;top:0;height:4px;background:#175cd3}.permission-choice-list>div:nth-child(2)::before{background:#067647}.permission-choice-list>div:nth-child(3)::before{background:#6941c6}.permission-choice-list>div:nth-child(4)::before{background:#b54708}.permission-choice-list>div:nth-child(5)::before{background:#0e7090}
.permission-choice-list>div>label:first-child{position:absolute;right:0;left:0;top:4px;padding:10px 13px;background:#f8fafc;border-bottom:1px solid #e8edf3;font-size:1rem;font-weight:800;color:#173b57;min-height:43px}
.permission-choice-list>div>div{margin:0}.permission-choice-list>div>div label{display:flex;align-items:flex-start;gap:9px;padding:9px 10px;border:1px solid #edf1f5;border-radius:10px;background:#fbfcfd;line-height:1.6;font-size:.9rem;font-weight:550;color:#344054;cursor:pointer;transition:.12s}
.permission-choice-list>div>div label:hover{border-color:#bdd4e6;background:#f5f9fc}.permission-choice-list input[type=checkbox]{width:18px;height:18px;flex:0 0 auto;margin-top:3px;accent-color:#176b5b}.permission-choice-list>div>div label:has(input:checked){background:#edf8f4;border-color:#9acdbf;color:#0d5d4e;font-weight:700}
.permission-security-note{margin:15px 0 0;padding:11px 13px;border-radius:11px;background:#f8fafc;border:1px dashed #cfd9e4;color:#526071;font-size:.84rem;line-height:1.8}.permission-error{margin-bottom:10px}.permission-count-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef4ff;color:#1849a9;font-size:.78rem;font-weight:800}.masked-data{display:inline-block;padding:3px 8px;border-radius:8px;background:#f2f4f7;color:#667085;font-size:.78rem;font-family:Vazirmatn,Tahoma,sans-serif;direction:rtl}
@media(max-width:900px){.permission-choice-list{grid-template-columns:1fr!important}.permission-section-title{flex-direction:column}.permission-tools{width:100%}}
@media(max-width:520px){.permission-tools{display:grid;grid-template-columns:1fr}.permission-tools .btn{width:100%}.permission-choice-list>div{padding:52px 10px 10px}}

/* v14 - Excel-backed location filters + real Iran map */
.filters-location{grid-template-columns:1.35fr repeat(3,1fr) auto auto}
.filters-location-course{grid-template-columns:1.3fr repeat(5,minmax(125px,1fr)) auto auto}
.chart-controls-five{grid-template-columns:1.45fr repeat(4,minmax(120px,1fr))}
.iran-real-map-wrap{width:100%;min-width:660px;display:flex;justify-content:center;align-items:center;background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #e7edf4;border-radius:16px;padding:8px;overflow:hidden}
.iran-real-map{width:100%;height:auto;max-height:610px;direction:ltr}
.iran-province-shape{stroke:#fff;stroke-width:1.4;vector-effect:non-scaling-stroke;transition:filter .15s ease,opacity .15s ease;cursor:default}
.iran-province-shape:hover{filter:brightness(.91) saturate(1.08);stroke:#173b57;stroke-width:2.1}
.map-province-label{font-family:inherit;font-size:8.8px;font-weight:750;fill:#173b57;pointer-events:none;paint-order:stroke;stroke:#fff;stroke-width:2.5px;stroke-linejoin:round}
.map-province-value{font-size:7.9px;font-weight:850;fill:#0f172a}
.map-city-label{font-family:inherit;font-size:8px;font-weight:800;fill:#111827;paint-order:stroke;stroke:#fff;stroke-width:2.5px;pointer-events:none}
.map-city-marker{cursor:default}
.map-city-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;max-height:105px;overflow:auto;padding:2px}
.map-city-list span{display:inline-flex;align-items:center;gap:5px;border:1px solid #e4e7ec;background:#fff;border-radius:999px;padding:4px 9px;font-size:.75rem;color:#344054}
.map-city-list span:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--chip-color)}
.map-source-note,.map-fallback-note{text-align:center;color:#667085;font-size:.75rem;margin-top:8px}
.map-legend.colorful i{background:linear-gradient(90deg,#eef2f6,#60a5fa,#14b8a6,#f59e0b,#ef4444)}
.dash-bar-track i{transition:width .25s ease}
.heat-cell{color:#102a3e}
@media(max-width:1200px){.filters-location-course{grid-template-columns:repeat(4,1fr)}.filters-location-course .btn{min-height:44px}.chart-controls-five{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.filters-location{grid-template-columns:1fr 1fr}.filters-location-course{grid-template-columns:1fr 1fr}.chart-controls-five{grid-template-columns:1fr 1fr}.iran-real-map-wrap{min-width:620px}}
@media(max-width:720px){.filters-location,.filters-location-course,.chart-controls-five{grid-template-columns:1fr}.iran-real-map-wrap{min-width:580px}.map-province-label{font-size:8px}.map-city-label{font-size:7.5px}}
.geo-search-filters{grid-template-columns:1.35fr repeat(3,1fr) auto auto}
@media(max-width:900px){.geo-search-filters{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.geo-search-filters{grid-template-columns:1fr}}

/* v15 operational UI */
.small{font-size:.78rem}.pagination{display:flex;gap:.75rem;align-items:center;justify-content:center;margin:1.25rem 0;flex-wrap:wrap}.pagination span{font-weight:600;color:#475569}.ops-note{border-inline-start:4px solid #0f766e;padding-inline-start:1rem}

/* v16: completed workflows, reports and mobile refinements */
.status-waitlist{background:#fff2cc;color:#805b00}.status-passed{background:#dcfae6;color:#05603a}.status-failed{background:#fee4e2;color:#b42318}.status-withdrawn{background:#f2f4f7;color:#475467}
.export-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.export-card{border:1px solid #e1e7ee;border-radius:15px;padding:18px;background:linear-gradient(180deg,#fbfdfd,#fff)}.export-card h3{margin-bottom:5px}.export-card p{min-height:52px}.report-filters{grid-template-columns:1.35fr repeat(4,minmax(145px,1fr)) auto}.enrollment-filters{grid-template-columns:1.35fr repeat(4,minmax(135px,1fr)) auto auto}
.profile-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-choice-card{border:1px solid #e2e8ef;border-radius:14px;padding:15px 16px;background:#fbfcfd}.profile-choice-card h3{color:var(--navy);border-bottom:1px solid #e9eef3;padding-bottom:8px}.mini-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}.mini-kpis>div{padding:14px;border-radius:12px;background:#f7fafc;text-align:center;border:1px solid #e7edf2}.mini-kpis b{display:block;font-size:1.45rem}.mini-kpis span{font-size:.8rem;color:var(--muted)}
.login-help{text-align:center;margin-top:15px}.login-card form p{margin:0}.login-card form p label{display:block;font-weight:700;margin-bottom:6px}.login-card form p input{width:100%;min-height:46px;padding:10px 13px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;font:inherit}.login-card form .helptext{display:block;color:var(--muted);font-size:.82rem;margin-top:5px}.login-card form ul.errorlist{color:var(--danger);font-size:.85rem;padding-right:18px}
@media(max-width:1100px){.report-filters,.enrollment-filters{grid-template-columns:repeat(3,1fr)}.export-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.report-filters,.enrollment-filters{grid-template-columns:1fr}.export-grid,.profile-choice-grid{grid-template-columns:1fr}.tablewrap{border-radius:12px}.container{width:94%}.card{border-radius:15px}.topbar nav{scrollbar-width:thin}.dashboard-chart-card{padding:15px}.chart-stage{min-height:280px}}
@media(max-width:520px){.export-grid{grid-template-columns:1fr}.mini-kpis{grid-template-columns:1fr 1fr}.tablewrap table{min-width:720px}.btn{min-height:44px}.form-control{min-height:48px}}
.bulk-toolbar{display:grid;grid-template-columns:minmax(220px,320px) auto 1fr;gap:10px;align-items:center;margin:12px 0 14px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.bulk-toolbar .form-control{min-height:42px}.bulk-action-form input[type=checkbox]{width:17px;height:17px;accent-color:var(--green)}
@media(max-width:720px){.bulk-toolbar{grid-template-columns:1fr}.bulk-toolbar .btn{width:100%}}

/* v16 enrollment applicant autocomplete */
.applicant-picker{position:relative}.applicant-search-shell{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.applicant-search-results{position:absolute;z-index:50;right:0;left:0;top:108px;max-height:340px;overflow:auto;background:#fff;border:1px solid #d7e0e9;border-radius:14px;box-shadow:0 18px 45px rgba(18,38,63,.16);padding:7px}.applicant-result{width:100%;border:0;border-bottom:1px solid #edf1f5;background:#fff;text-align:right;padding:11px 12px;cursor:pointer;border-radius:9px;font:inherit;color:#1f2937;display:flex;flex-direction:column;gap:3px}.applicant-result:last-child{border-bottom:0}.applicant-result:hover,.applicant-result:focus{background:#eef8f4;outline:none}.applicant-result strong{font-size:.92rem}.applicant-result small{color:#667085;font-size:.78rem}.applicant-result-empty{padding:13px;color:#667085;text-align:center}.selected-applicant{margin-top:9px;padding:11px 13px;border:1px solid #9acdbf;background:#edf8f4;color:#0d5d4e;border-radius:11px;font-weight:750}.enrollment-form .applicant-picker>small{display:block;margin-top:7px}@media(max-width:620px){.applicant-search-shell{grid-template-columns:1fr}.applicant-search-results{top:158px}}

/* v17: applicant profile photo + exact home location */
.applicant-photo-field,.home-location-card{grid-column:1/-1;background:#f8fbfb;border:1px solid #dce8e6;border-radius:16px;padding:18px}.photo-upload-wrap{display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:center}.profile-photo-preview,.profile-avatar{width:112px;height:112px;border-radius:22px;object-fit:cover;background:linear-gradient(145deg,#e7eef2,#f8fafc);border:1px solid #d7e0e7}.profile-photo-preview.is-empty{display:none}.avatar-placeholder{width:112px;height:112px;border-radius:22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#e8f3f0,#eef4fb);color:#517080;font-size:2rem;font-weight:800;border:1px solid #d7e4e1}.avatar-sm{width:44px;height:44px;border-radius:12px;object-fit:cover;background:#edf2f5;border:1px solid #dce3e8;vertical-align:middle;margin-left:10px}.avatar-sm-placeholder{display:inline-flex;width:44px;height:44px;border-radius:12px;align-items:center;justify-content:center;background:#edf2f5;color:#607080;font-weight:800;margin-left:10px}.applicant-identity{display:flex;align-items:center;gap:12px}.applicant-hero{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center}.home-location-card h2{margin:0 0 8px}.home-location-map{height:360px;border-radius:15px;overflow:hidden;border:1px solid #d8e2e7;background:#eef2f4;margin:14px 0;direction:ltr}.map-unavailable{height:100%;display:flex;align-items:center;justify-content:center;color:#667085;padding:20px;text-align:center;direction:rtl}.location-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.location-coordinates{font-size:.9rem;color:#667085;font-variant-numeric:tabular-nums}.location-privacy-note{background:#fff7e8;border:1px solid #f2d8a8;color:#694e18;border-radius:11px;padding:10px 12px;font-size:.9rem;margin-top:10px}.home-location-detail{grid-column:1/-1}.profile-location-map{height:360px;border-radius:15px;overflow:hidden;border:1px solid #d8e2e7;margin-top:12px;direction:ltr}.privacy-badge{display:inline-flex;align-items:center;gap:6px;background:#fff4e5;color:#8a5200;border-radius:999px;padding:4px 9px;font-size:.82rem;font-weight:700}
@media(max-width:720px){.photo-upload-wrap{grid-template-columns:1fr}.profile-photo-preview,.profile-avatar,.avatar-placeholder{width:96px;height:96px}.home-location-map,.profile-location-map{height:300px}.applicant-hero{grid-template-columns:1fr}.location-actions .btn{width:100%}}


/* v18: dashboard chart fullscreen viewer */
.chart-card-actions{display:flex;align-items:center;gap:7px}
.expand-chart{font-size:1.2rem;background:#eef4ff;color:#175cd3}
.expand-chart:hover{background:#dbe8ff;color:#1849a9}
.chart-stage{cursor:zoom-in}
.chart-stage:focus-visible{outline:3px solid rgba(37,99,235,.25);outline-offset:3px;border-radius:10px}
body.dashboard-chart-open{overflow:hidden}
.dashboard-chart-card.chart-card-fullscreen{position:fixed;inset:0;z-index:9999;margin:0;border-radius:0!important;width:100%;height:100vh;max-width:none;background:#fff;padding:22px 28px;display:flex;flex-direction:column;overflow:hidden;box-shadow:none}
.dashboard-chart-card.chart-card-fullscreen .chart-card-top{flex:0 0 auto;margin-bottom:12px}
.dashboard-chart-card.chart-card-fullscreen .chart-controls{flex:0 0 auto}
.dashboard-chart-card.chart-card-fullscreen .chart-meta{flex:0 0 auto}
.dashboard-chart-card.chart-card-fullscreen .chart-stage{flex:1 1 auto;min-height:0;height:auto;overflow:auto;cursor:zoom-out;padding:18px 10px 10px}
.dashboard-chart-card.chart-card-fullscreen .dash-svg{height:min(66vh,620px);min-width:900px}
.dashboard-chart-card.chart-card-fullscreen .iran-real-map{max-height:72vh}
.dashboard-chart-card.chart-card-fullscreen .iran-real-map-wrap{min-width:850px;max-width:1180px;margin-inline:auto}
.dashboard-chart-card.chart-card-fullscreen .pie-wrap{min-height:58vh;grid-template-columns:minmax(300px,420px) minmax(320px,1fr);max-width:1100px;margin-inline:auto}
.dashboard-chart-card.chart-card-fullscreen .css-pie{width:min(38vw,390px)}
.dashboard-chart-card.chart-card-fullscreen .province-heatmap{grid-template-columns:repeat(6,minmax(120px,1fr));max-width:1200px;margin-inline:auto}
.dashboard-chart-card.chart-card-fullscreen .dash-bars{max-width:1200px;margin-inline:auto}
@media(max-width:900px){.dashboard-chart-card.chart-card-fullscreen{padding:14px 16px}.dashboard-chart-card.chart-card-fullscreen .chart-controls{grid-template-columns:1fr 1fr}.dashboard-chart-card.chart-card-fullscreen .pie-wrap{grid-template-columns:1fr}.dashboard-chart-card.chart-card-fullscreen .css-pie{width:min(70vw,330px)}.dashboard-chart-card.chart-card-fullscreen .province-heatmap{grid-template-columns:repeat(3,minmax(105px,1fr))}}
@media(max-width:620px){.dashboard-chart-card.chart-card-fullscreen{padding:10px}.dashboard-chart-card.chart-card-fullscreen .chart-controls{grid-template-columns:1fr;max-height:190px;overflow:auto}.dashboard-chart-card.chart-card-fullscreen .chart-meta{font-size:.76rem}.dashboard-chart-card.chart-card-fullscreen .chart-stage{padding-top:10px}.dashboard-chart-card.chart-card-fullscreen .dash-svg{height:420px}.dashboard-chart-card.chart-card-fullscreen .province-heatmap{grid-template-columns:repeat(2,minmax(110px,1fr))}}


/* v19: organizational identity, right-aligned navigation and interactive map zoom */
.topbar-brand-cluster{display:flex;flex-direction:column;align-items:flex-start;flex:0 0 auto;min-width:210px}
.topbar-logo{width:48px;height:48px;object-fit:contain;border-radius:12px;background:#fff;padding:3px}
.organization-line{font-size:.72rem;color:rgba(255,255,255,.82);font-weight:600;margin-top:3px;white-space:nowrap}
.martyr-name{color:#d92d20!important;font-weight:850}
.topbar nav{margin:0;min-width:0}
.site-footer{margin-top:auto;background:#e9eff4;color:#344054;text-align:center;padding:16px 5%;border-top:1px solid #d8e1e9;font-weight:700;font-size:.9rem}
body{min-height:100vh;display:flex;flex-direction:column}.container{flex:1 0 auto}
.register-hero{text-align:center}.hero-org-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0 auto 18px}.hero-logo-shell,.access-logo-shell{background:#fff;border:1px solid #dfe7ee;border-radius:20px;padding:10px;box-shadow:0 8px 22px rgba(23,59,87,.08)}.hero-logo-shell{width:150px;height:138px}.hero-logo-shell img,.access-logo-shell img{width:100%;height:100%;object-fit:contain}.hero-org-title{font-weight:800;color:#173b57;margin-top:9px;font-size:.96rem}.register-hero>div:last-child{max-width:960px;margin-inline:auto}
.form-branding{text-align:center;margin:-4px 0 20px;padding-bottom:16px;border-bottom:1px solid #e8edf2;color:#173b57;font-weight:800}.form-branding img{display:block;width:110px;height:100px;object-fit:contain;margin:0 auto 7px;background:#fff;border-radius:16px}.access-gate-branding{display:flex;flex-direction:column;align-items:center;margin-bottom:12px}.access-logo-shell{width:125px;height:115px}.access-footer{width:100%}
.iran-real-map-wrap{position:relative;touch-action:none;user-select:none}.iran-real-map{cursor:zoom-in}.iran-real-map.is-zoomed{cursor:grab}.iran-real-map.is-panning{cursor:grabbing}.iran-map-zoom-layer{transform-origin:0 0}.map-zoom-controls{position:absolute;left:14px;top:14px;z-index:6;display:flex;flex-direction:column;gap:6px;direction:ltr}.map-zoom-controls button{width:38px;height:38px;border:1px solid #d0d8e2;border-radius:10px;background:rgba(255,255,255,.96);color:#173b57;font:800 1.2rem/1 "Vazirmatn",sans-serif;cursor:pointer;box-shadow:0 4px 12px rgba(23,59,87,.12)}.map-zoom-controls button:hover{background:#eef4ff}.map-zoom-hint{position:absolute;right:14px;bottom:12px;z-index:5;background:rgba(17,24,39,.78);color:#fff;border-radius:999px;padding:5px 10px;font-size:.7rem;pointer-events:none;direction:rtl}
@media(max-width:900px){.topbar{align-items:flex-start}.topbar-brand-cluster{width:100%;align-items:flex-start}.topbar nav{width:100%;justify-content:flex-start}.organization-line{white-space:normal}.map-zoom-hint{display:none}}
@media(max-width:620px){.topbar-logo{width:42px;height:42px}.hero-logo-shell{width:125px;height:115px}.site-footer{font-size:.82rem;padding:13px 4%}.map-zoom-controls{left:8px;top:8px}.map-zoom-controls button{width:34px;height:34px}}
