: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:space-between;padding:14px 5%;gap:20px;flex-wrap:wrap;box-shadow:0 4px 18px rgba(23,59,87,.15)}
.brand{font-size:1.55rem;font-weight:800;color:#fff;text-decoration:none;letter-spacing:-.04em}.topbar nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.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}}
