/* AdaMehr admission applicant dossier — source styles extracted from the component. */
.adm-applicant-link{appearance:none;border:0;background:none;padding:0;margin:0;color:#0f766e;font:inherit;font-weight:900;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.adm-applicant-link:hover{color:#115e59}
.adm-applicant-link small{display:block;margin-top:5px;color:#64748b;font-size:11px;font-weight:700;text-decoration:none}
.adm-detail-backdrop[hidden]{display:none!important}
.adm-detail-backdrop{position:fixed;inset:0;z-index:10050;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:24px}
.adm-detail-dialog{width:min(980px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(15,23,42,.28);direction:rtl}
.adm-detail-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;background:#fff;border-bottom:1px solid #e2e8f0}
.adm-detail-head h3{margin:0;font-size:19px;color:#0f172a}
.adm-detail-close{border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:7px 12px;cursor:pointer;font:inherit}
.adm-detail-body{padding:20px 22px 24px}
.adm-detail-summary{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:18px}
.adm-detail-badge{display:inline-flex;align-items:center;border-radius:999px;background:#f1f5f9;color:#334155;padding:6px 10px;font-size:12px;font-weight:800}
.adm-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.adm-detail-item{border:1px solid #e2e8f0;border-radius:12px;padding:11px 12px;background:#fff;min-width:0}
.adm-detail-item.wide{grid-column:1/-1}
.adm-detail-item label{display:block;color:#64748b;font-size:11px;font-weight:700;margin-bottom:5px}
.adm-detail-item div{color:#0f172a;font-size:13px;font-weight:700;word-break:break-word;white-space:pre-wrap}
.adm-detail-section{margin:20px 0 10px;font-size:14px;font-weight:900;color:#0f766e}
.adm-detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.adm-detail-action{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:10px;padding:9px 13px;background:#fff;color:#0f172a;text-decoration:none;font-weight:800;font-size:13px}
.adm-detail-action.primary{background:#0f766e;border-color:#0f766e;color:#fff}
.adm-detail-loading,.adm-detail-error{padding:34px 8px;text-align:center;color:#64748b;font-weight:700}
.adm-detail-error{color:#b91c1c}
@media(max-width:850px){.adm-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.adm-detail-backdrop{padding:8px}.adm-detail-dialog{width:100%;max-height:96vh;border-radius:14px}.adm-detail-grid{grid-template-columns:1fr}.adm-detail-item.wide{grid-column:auto}}

/* Staged admissions dossier — component-owned, RTL-first design */
.adm-detail-dialog{font-family:Vazirmatn,Tahoma,sans-serif;color:var(--ink,#18323b);border:1px solid var(--line,#e1e9e7)}
.adm-detail-body{background:var(--white,#fff)}
.adm-detail-head{background:var(--white,#fff)}
.adm-detail-head h3{color:var(--ink,#18323b)}
.adm-detail-item{background:var(--white,#fff);border-color:var(--line,#dee8eb)}
.adm-detail-item div{color:var(--ink,#18323b);font-size:13px}
.adm-detail-close:focus-visible,.adm-detail-action:focus-visible,.adm-applicant-link:focus-visible{outline:3px solid #118877;outline-offset:3px}
.adm-detail-journey{border-radius:18px;padding:20px 22px;margin:0 0 24px;background:linear-gradient(115deg,rgba(16,137,118,.10),rgba(18,114,172,.025) 75%),var(--white,#fff);border:1px solid rgba(17,137,119,.21);box-shadow:0 6px 22px rgba(13,99,88,.035)}
.adm-journey-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:0 0 20px}
.adm-journey-head h4{font-size:17px;line-height:1.65;margin:4px 0 0;color:var(--ink,#18323b);font-weight:850}
.adm-journey-kicker{display:block;color:#087866;font-weight:850;font-size:11px;letter-spacing:.01em}
.adm-journey-status{font-size:11px;font-weight:850;padding:6px 12px;border:1px solid #cbd5e1;border-radius:50px;background:var(--white,#fff);color:var(--ink,#18323b)}
.adm-journey-status.is-positive{background:#e5f7ee;border-color:#b0ddc7;color:#176e4c}
.adm-journey-status.is-negative{background:#fff1f0;border-color:#f7c7bf;color:#a33630}
.adm-journey-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;direction:rtl}
.adm-journey-step{min-width:0;border:1px solid var(--line,#dce8e5);border-radius:12px;background:var(--white,#fff);padding:10px 8px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;text-align:center;color:var(--muted,#72827f)}
.adm-journey-index{display:grid;place-items:center;width:31px;height:31px;flex:none;border-radius:10px;background:#edf2f2;font-size:13px;font-weight:900;color:#667977;line-height:1}
.adm-journey-name{font-size:11px;line-height:1.65;font-weight:800;overflow-wrap:anywhere}
.adm-journey-step.is-done{border-color:rgba(15,142,108,.35);color:#087d66}
.adm-journey-step.is-done .adm-journey-index{background:#e0f6ea;color:#087c5b}
.adm-journey-step.is-current{border-color:#149b83;color:var(--ink,#18323b);background:rgba(16,144,121,.075);box-shadow:inset 0 0 0 1px rgba(16,144,121,.18)}
.adm-journey-step.is-current .adm-journey-index{background:#0c8a75;color:#fff}
.adm-journey-step.is-stopped{border-color:#da867d;background:#fff4f1;color:#933b34}
.adm-journey-step.is-stopped .adm-journey-index{background:#ae483d;color:#fff}
.adm-journey-footer{margin-top:15px;font-size:12px;line-height:1.9;color:var(--ink,#27433c);background:rgba(255,255,255,.55);border-radius:10px;padding:9px 12px}
.adm-journey-documents{display:inline-flex;margin-top:12px;border:1px solid #ecc997;color:#80531c;background:#fff7e7;padding:5px 10px;border-radius:50px;font-size:11px;font-weight:800}
.adm-journey-documents.is-done{border-color:#a5dfca;color:#14745c;background:#e8f8f0}
html[data-theme="dark"] .adm-detail-dialog,body[data-theme="dark"] .adm-detail-dialog{--white:#1b2c31;--ink:#eef8f7;--line:#39515a;--muted:#adc0bf;background:#1b2c31;color:#eef8f7}
html[data-theme="dark"] .adm-detail-item label,body[data-theme="dark"] .adm-detail-item label{color:#a4bbb9}
html[data-theme="dark"] .adm-detail-badge,body[data-theme="dark"] .adm-detail-badge{background:#27444a;color:#eaf7f4}
html[data-theme="dark"] .adm-journey-index,body[data-theme="dark"] .adm-journey-index{background:#30464b;color:#bccfce}
html[data-theme="dark"] .adm-journey-step.is-done .adm-journey-index,body[data-theme="dark"] .adm-journey-step.is-done .adm-journey-index{background:#164e42;color:#bdf1df}
html[data-theme="dark"] .adm-journey-step.is-current .adm-journey-index,body[data-theme="dark"] .adm-journey-step.is-current .adm-journey-index{background:#0b8f7c;color:#fff}
html[data-theme="dark"] .adm-journey-footer,body[data-theme="dark"] .adm-journey-footer{background:rgba(19,53,58,.56)}
html[data-theme="dark"] .adm-detail-section,body[data-theme="dark"] .adm-detail-section{color:#65d9bd}
html[data-theme="dark"] .adm-journey-status.is-negative,body[data-theme="dark"] .adm-journey-status.is-negative{background:#572c2b;color:#ffd4cf}
html[data-theme="dark"] .adm-journey-status.is-positive,body[data-theme="dark"] .adm-journey-status.is-positive{background:#205143;color:#baf3d4}
html[data-theme="dark"] .adm-journey-step.is-stopped,body[data-theme="dark"] .adm-journey-step.is-stopped{background:#492c2b;color:#ffd2cb}
html[data-theme="dark"] .adm-journey-documents:not(.is-done),body[data-theme="dark"] .adm-journey-documents:not(.is-done){background:#4c392b;color:#f7d6a8}
@media(max-width:820px){.adm-journey-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.adm-detail-journey{padding:17px}}
@media(max-width:560px){.adm-detail-backdrop{padding:7px;align-items:stretch}.adm-detail-dialog{max-height:calc(100dvh - 14px);max-height:calc(100vh - 14px);border-radius:14px}.adm-detail-head{padding:13px 15px}.adm-detail-body{padding:15px}.adm-journey-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.adm-detail-journey{padding:13px;border-radius:13px;margin-bottom:17px}.adm-journey-head h4{font-size:15px}.adm-journey-step{flex-direction:row;align-items:center;text-align:start;min-height:50px}.adm-journey-name{font-size:11px}.adm-journey-index{width:26px;height:26px;border-radius:8px}}
@media(prefers-reduced-motion:reduce){.adm-detail-dialog,.adm-journey-step{scroll-behavior:auto}}
@media print{.adm-detail-backdrop{position:static!important;background:transparent!important;display:block!important;padding:0!important}.adm-detail-dialog{max-height:none;box-shadow:none;width:100%;border:0}.adm-detail-head .adm-detail-close{display:none}}
