.training-admin { min-height: 100vh; padding: clamp(20px, 4vw, 56px); background: #f4f7fb; color: #17243b; font-family: IRANSans, "Iran Sans", Tahoma, sans-serif; }
.training-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin: 0 auto 28px; }
.training-header > div > a, .training-form-card > a { color: #68758a; text-decoration: none; }
.training-header h1, .training-form-card h1 { margin: 16px 0 6px; }
.training-header p { margin: 0; color: #6b778b; }
.training-primary { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; border: 0; border-radius: 11px; background: #2867c7; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.training-table-card, .training-form-card { max-width: 1200px; margin: auto; overflow: hidden; border: 1px solid #e4eaf2; border-radius: 16px; background: #fff; }
.training-table-scroll { overflow-x: auto; }
.training-table { width: 100%; border-collapse: collapse; text-align: right; }
.training-table th, .training-table td { padding: 14px 18px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
.training-table th { color: #68758a; background: #fafbfd; font-weight: 600; white-space: nowrap; }
.training-table td strong, .training-table td small { display: block; }
.training-table td small { max-width: 340px; margin-top: 5px; overflow: hidden; color: #77849a; text-overflow: ellipsis; white-space: nowrap; }
.training-table td a { color: #2867c7; text-decoration: none; white-space: nowrap; }
.training-state { display: inline-block; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.state-active { color: #197447; background: #eaf7f0; }
.state-inactive { color: #69758a; background: #eef1f5; }
.training-actions { display: flex; align-items: center; gap: 12px; }
.training-actions form { margin: 0; }
.training-actions button { padding: 0; border: 0; background: transparent; color: #a14d34; font: inherit; cursor: pointer; white-space: nowrap; }
.training-empty { padding: 52px 20px; color: #6b778b; text-align: center; }
.training-form-card { max-width: 820px; padding: clamp(22px, 4vw, 40px); }
.course-form-card { overflow: visible; }
.course-publishing-panel { grid-column: 1 / -1; min-width: 0; margin: 4px 0 0; padding: 18px; border: 1px solid #dce8df; border-radius: 13px; background: #fbfdfb; }
.course-publishing-panel legend { padding: 0 8px; color: #355f50; font-weight: 700; }
.course-publishing-panel .course-publishing-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.course-publishing-panel .jalali-calendar { z-index: 300; }
@media(max-width:640px) { .course-publishing-panel .course-publishing-fields { grid-template-columns: 1fr; } }
.training-form { display: grid; gap: 8px; margin-top: 26px; }
.training-form label { display: grid; gap: 8px; color: #526078; }
.training-form input, .training-form textarea, .training-form select { width: 100%; padding: 11px 12px; border: 1px solid #dce4ef; border-radius: 10px; color: #17243b; background: white; font: inherit; }
.training-form textarea { resize: vertical; }
.training-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 8px; }
.training-form-grid label { align-content: start; }
.training-validation { color: #a53535; font-size: .9rem; }
.training-form-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.training-form-actions > a { color: #68758a; text-decoration: none; }
@media (max-width: 680px) { .training-header { align-items: flex-start; flex-direction: column; } .training-form-grid { grid-template-columns: 1fr; } .training-actions { align-items: flex-start; flex-direction: column; gap: 7px; } }
.category-picker { position: relative; }
.category-picker > input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #dce5ef; border-radius: 12px; color: #1d2939; background: #fff; }
.category-picker-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.category-picker-options { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; left: 0; max-height: 220px; overflow-y: auto; padding: 5px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px #1018281a; }
.category-picker-options button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: transparent; text-align: right; }
.category-picker-options button:hover { background: #e8f8f1; color: #176b4b; }
.category-active { display:flex; align-items:center; gap:8px; }
.teachers-search-form { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:18px; border-bottom:1px solid #edf0f5; }
.teachers-search-form label { color:#526078; }
.teachers-search-form input { flex:1 1 280px; min-width:0; padding:11px 12px; border:1px solid #dce4ef; border-radius:10px; font:inherit; }
.teachers-search-form > a { color:#68758a; text-decoration:none; }
.teachers-list-note { padding:8px 18px; color:#77849a; font-size:.85rem; }
.teacher-view-link { display:grid; width:38px; height:38px; place-items:center; border-radius:10px; color:#21805d !important; background:#e8f8f1; }
.teacher-view-link svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.teacher-details-card { max-width:1200px; margin:0 auto 18px; overflow:hidden; border:1px solid #e4eaf2; border-radius:16px; background:#fff; }
.teacher-landing-setting{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px;border-block:1px solid #edf0f5;background:#fbfcfd}.teacher-landing-setting label{display:flex;align-items:center;gap:9px;color:#344054}.teacher-landing-setting input{width:18px;height:18px;accent-color:#21805d}.teacher-landing-setting .training-primary{min-height:38px;padding:7px 18px}@media(max-width:600px){.teacher-landing-setting{align-items:stretch;flex-direction:column}.teacher-landing-setting .training-primary{align-self:flex-start}}
.teacher-details-card > h2 { margin:0; padding:17px 20px; border-bottom:1px solid #edf0f5; color:#24334a; font-size:1.1rem; }
.teacher-details-card > p:not(.training-empty), .teacher-history-note { padding:0 20px; color:#5f6c80; }
.teacher-details-grid { display:grid; grid-template-columns:minmax(130px,.4fr) 1fr minmax(130px,.4fr) 1fr; gap:0; margin:0; }
.teacher-details-grid dt, .teacher-details-grid dd { margin:0; padding:12px 18px; border-bottom:1px solid #f0f2f6; }
.teacher-details-grid dt { color:#68758a; background:#fafbfd; }
.teacher-details-grid dd { color:#24334a; overflow-wrap:anywhere; }
.teacher-resume-item, .teacher-note { display:grid; gap:7px; padding:16px 20px; border-bottom:1px solid #edf0f5; }
.teacher-resume-item span, .teacher-resume-item small, .teacher-note small { color:#68758a; }
.teacher-resume-item a { color:#21805d; }
.teacher-resume-profile { margin:14px 20px; padding:12px; border:1px solid #e4eaf2; border-radius:10px; }
.teacher-resume-profile pre { max-height:420px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
.teacher-resume-heading { display:flex; align-items:center; justify-content:space-between; padding-left:18px; border-bottom:1px solid #edf0f5; }
.teacher-resume-heading h2 { border:0; }
.generated-resume { max-width:900px; margin:24px auto; padding:36px; border:1px solid #e4eaf2; border-radius:12px; background:#fff; box-shadow:0 5px 22px #1018280d; }
.generated-resume-header { display:flex; align-items:center; gap:20px; padding-bottom:22px; border-bottom:2px solid #21805d; }
.generated-resume-header img { width:96px; height:112px; border-radius:10px; object-fit:cover; }
.generated-resume-header h3 { margin:0 0 7px; color:#17243b; font-size:1.5rem; }
.generated-resume-header p { margin:0; color:#68758a; }
.generated-resume-header small { margin-right:auto; color:#68758a; }
.generated-resume-part { padding:18px 0; border-bottom:1px solid #edf0f5; }
.generated-resume-part h4 { margin:0 0 10px; color:#21805d; }
.generated-resume-part > div { color:#344054; line-height:2; white-space:pre-line; overflow-wrap:anywhere; }
@media print { body * { visibility:hidden !important; } .generated-resume, .generated-resume * { visibility:visible !important; } .generated-resume { position:absolute; inset:0; width:100%; max-width:none; margin:0; border:0; box-shadow:none; } .teacher-resume-section > h2, .teacher-resume-heading, .resume-print-button { display:none !important; } }
.teacher-note p { margin:0; white-space:pre-wrap; }
.teacher-history-heading { display:flex; align-items:center; justify-content:space-between; padding-left:18px; border-bottom:1px solid #edf0f5; }
.teacher-history-heading h2 { margin:0; padding:17px 20px; border:0; }
.teacher-history-add { position:relative; }
.teacher-history-add > summary { display:grid; width:38px; height:38px; place-items:center; border-radius:50%; color:#fff; background:#21805d; font-size:26px; line-height:1; cursor:pointer; list-style:none; }
.teacher-history-add > summary::-webkit-details-marker { display:none; }
.teacher-history-form { position:absolute; z-index:10; top:48px; left:0; display:grid; width:min(440px, calc(100vw - 40px)); max-height:70vh; gap:9px; overflow:auto; padding:18px; border:1px solid #dce5ef; border-radius:14px; background:#fff; box-shadow:0 12px 32px #10182826; }
.teacher-history-form label { display:grid; gap:5px; color:#526078; }
.teacher-history-form input, .teacher-history-form select { width:100%; min-height:40px; padding:8px 10px; border:1px solid #dce4ef; border-radius:9px; font:inherit; }
@media(max-width:720px){.teacher-details-grid{grid-template-columns:130px 1fr}.teacher-details-grid dt,.teacher-details-grid dd{padding:10px}}
/* Contact requests admin page */
.contact-requests-count{padding:16px 20px;margin:0;color:#22384a;font-size:16px}.contact-requests-table{min-width:760px}.contact-request-actions{display:flex;align-items:center;gap:9px}.contact-request-actions form{margin:0}.contact-request-view,.contact-request-delete{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #dce5eb;border-radius:9px;background:#fff;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}.contact-request-view{width:38px;color:#247c78}.contact-request-view svg,.contact-request-delete svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.contact-request-view:hover{background:#eaf6f4;border-color:#9ccdc5;transform:translateY(-1px)}.contact-request-delete{padding:0 10px;color:#a43e45}.contact-request-delete:hover{background:#fff0f0;border-color:#e8b6b8}.contact-request-details{text-align:right;color:#425466;line-height:1.9}.contact-request-details p{margin:0 0 8px}.contact-request-details strong{color:#193b4b}.contact-request-message{padding-top:10px;border-top:1px solid #e8edf0;white-space:pre-wrap}
/* Wider contact request details modal with compact metadata. */
.contact-request-swal{width:min(94vw,1480px)!important;max-width:94vw!important;max-height:calc(100vh - 36px);padding:28px 36px!important}.contact-request-swal .swal2-title{font-size:clamp(24px,2.1vw,34px);margin:0 0 18px}.contact-request-swal .swal2-html-container{max-height:calc(100vh - 230px);overflow-y:auto;margin:0!important}.contact-request-details{width:100%;font-size:clamp(16px,1.2vw,21px);line-height:1.75}.contact-request-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 24px;padding:4px 0 18px;border-bottom:1px solid #e8edf0}.contact-request-meta-item{margin:0!important;min-width:0}.contact-request-meta-item strong{white-space:nowrap}.contact-request-message{padding-top:16px!important;margin:0!important;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.contact-request-swal .swal2-confirm{margin-top:14px}@media(max-width:760px){.contact-request-swal{width:94vw!important;padding:20px 16px!important}.contact-request-swal .swal2-html-container{max-height:calc(100vh - 190px)}.contact-request-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}}
