/* shared/report-card.css — «کارنامه شناور» (پرتال، CMS، پنل اولیا). همه‌ی کلاس‌ها با پیشوند rc- هستند. فقط حالت روشن (چاپ‌محور). */
.rc-root { --rc-ink: #0b0b0b; --rc-ink2: #52514e; --rc-muted: #767470; --rc-grid: #e1e0d9; --rc-surface: #fcfcfb; --rc-line: rgba(11,11,11,.10); --rc-blue: #2a78d6; font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; color: var(--rc-ink); line-height: 1.8; box-sizing: border-box; }
.rc-root *, .rc-root *::before, .rc-root *::after { box-sizing: border-box; }
.rc-app { max-width: 100%; }
.rc-tabs { display: flex; flex-wrap: wrap; margin: 0 0 12px; border-bottom: 2px solid var(--rc-grid); }
.rc-tab { min-height: 44px; padding: 8px 16px; border: 0; background: transparent; font: inherit; font-weight: 700; cursor: pointer; color: var(--rc-ink2); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.rc-tab.is-on { color: var(--rc-blue); border-bottom-color: var(--rc-blue); }
.rc-sel, .rc-pbar, .rc-actions, .rc-custom, .rc-nav, .rc-wrow, .rc-trow { display: flex; flex-wrap: wrap; align-items: flex-end; }
.rc-f { display: block; font-size: 12.5px; font-weight: 700; color: var(--rc-ink2); margin: 0 0 8px 10px; min-width: 0; }
.rc-f select, .rc-f input, .rc-settings input, .rc-settings select, .rc-remark-edit textarea { display: block; margin-top: 4px; min-height: 42px; padding: 6px 10px; font: inherit; font-weight: 400; color: var(--rc-ink); background: #fff; border: 1.5px solid #cfcdc4; border-radius: 10px; max-width: 100%; }
.rc-trow input, .rc-trow select { display: inline-block; margin: 0 6px 6px 0; width: auto; }
.rc-trow input[type=number] { width: 70px; }
.rc-trow { align-items: center; }
.rc-jd select { display: inline-block; margin: 4px 0 0 4px; min-width: 0; width: auto; }
.rc-btn { min-height: 42px; padding: 6px 16px; margin: 0 0 8px 8px; border: 1.5px solid #cfcdc4; border-radius: 10px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--rc-ink); }
.rc-btn:disabled { opacity: .45; cursor: not-allowed; }
.rc-btn--primary { background: var(--rc-blue); border-color: var(--rc-blue); color: #fff; }
.rc-nav { margin-right: 4px; }
.rc-chk { display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 8px 14px; font-size: 13.5px; cursor: pointer; }
.rc-chk input { width: 20px; height: 20px; margin: 0 0 0 8px; min-height: 0; }
.rc-plabel { font-weight: 800; margin: 2px 0 8px; }
.rc-plabel small { font-weight: 400; color: var(--rc-ink2); }
.rc-perr { color: #b32d2d; font-size: 13px; min-height: 0; }
.rc-empty { padding: 16px; text-align: center; color: var(--rc-ink2); background: #f4f3ef; border-radius: 12px; margin: 8px 0; }
.rc-lock { background: #fff4d6; color: #8a5a00; }
.rc-ok { color: #006300; font-weight: 700; }
.rc-note { font-size: 12.5px; color: var(--rc-ink2); margin: 6px 0; }
.rc-saved { font-size: 13px; color: #006300; font-weight: 700; margin: 0 8px 8px; }

/* ---- برگه ---- */
.rc-sheet { background: var(--rc-surface); border: 1px solid var(--rc-line); border-radius: 16px; padding: 18px; margin: 12px 0 22px; max-width: 100%; overflow-wrap: anywhere; }
.rc-head { display: flex; align-items: center; border-bottom: 3px solid var(--rc-blue); padding-bottom: 10px; margin-bottom: 12px; }
.rc-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; margin-left: 12px; flex: 0 0 auto; }
.rc-logo--ph { display: inline-flex; align-items: center; justify-content: center; font-size: 30px; background: #eaf2fc; }
.rc-head__t { flex: 1 1 auto; min-width: 0; }
.rc-head__t h2 { margin: 0; font-size: 19px; }
.rc-head__sub { font-size: 13px; color: var(--rc-ink2); }
.rc-head__d { font-size: 12px; color: var(--rc-ink2); text-align: left; flex: 0 0 auto; margin-right: 10px; }
.rc-stu { display: flex; align-items: center; margin-bottom: 12px; }
.rc-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-left: 14px; flex: 0 0 auto; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--rc-grid); }
.rc-photo--ph { display: inline-flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; background: #eaf2fc; color: #184f95; }
.rc-stu__n { font-size: 18px; font-weight: 800; }
.rc-stu__m { font-size: 13px; color: var(--rc-ink2); }
.rc-scoped { color: #8a5a00; font-weight: 700; }
.rc-sum { display: flex; flex-wrap: wrap; margin: 0 -5px 8px; }
.rc-tile { flex: 1 1 150px; min-width: 130px; margin: 5px; padding: 10px 12px; background: #fff; border: 1px solid var(--rc-line); border-radius: 14px; }
.rc-tile--big { flex-basis: 190px; background: #eaf2fc; border-color: #b7d3f6; }
.rc-tile > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--rc-ink2); }
.rc-tile > b { display: block; font-size: 24px; line-height: 1.4; }
.rc-tile > b small, .rc-tile small { font-size: 12px; font-weight: 400; color: var(--rc-ink2); }
.rc-tile > small { display: block; }
.rc-tile__chg { font-size: 15px !important; }
.rc-block { margin: 14px 0; }
.rc-block h3 { font-size: 16px; margin: 0 0 8px; color: #184f95; }
.rc-block h4 { font-size: 14px; margin: 14px 0 6px; }
.rc-block h4 small { font-weight: 400; color: var(--rc-ink2); }
.rc-svg { display: block; margin: 0 auto; height: auto; }
.rc-svg text { font-family: inherit; }
.rc-center { text-align: center; }
.rc-legend { display: flex; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--rc-ink2); margin: 4px 0 2px; }
.rc-legend span { margin: 0 8px; white-space: nowrap; }
.rc-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-left: 4px; }
.rc-sw--dash { background: repeating-linear-gradient(90deg, #8f8d86 0 5px, transparent 5px 9px); height: 3px; width: 20px; border-radius: 0; vertical-align: 3px; }
.rc-sw--hatch { background: repeating-linear-gradient(45deg, #2a78d6 0 3px, #b7d3f6 3px 6px); }
.rc-tri { font-style: normal; font-size: 10px; }
.rc-grid2 { display: flex; flex-wrap: wrap; margin: 0 -6px; }
.rc-grid2 > * { flex: 1 1 300px; min-width: 0; margin: 6px; }
.rc-mini { background: #fff; border: 1px solid var(--rc-line); border-radius: 12px; padding: 8px; }
.rc-mini__h { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }

/* ---- نشان‌ها ---- */
.rc-chg { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.rc-chg i { font-style: normal; font-weight: 400; }
.rc-chg--up { background: #e7f6e7; color: #006300; }
.rc-chg--down { background: #fdeaea; color: #b32d2d; }
.rc-chg--stable { background: #fff4d6; color: #8a5a00; }
.rc-chg--na { background: #f1f0ec; color: var(--rc-ink2); font-weight: 400; }
.rc-lvl { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.rc-lvl i { font-style: normal; font-weight: 400; font-size: 11px; }
.rc-lvl--excellent { background: #dff3df; color: #006300; }
.rc-lvl--good { background: #e3eefb; color: #184f95; }
.rc-lvl--ok { background: #fff4d6; color: #8a5a00; }
.rc-lvl--weak { background: #fdeaea; color: #b32d2d; }
.rc-pend { display: inline-block; padding: 1px 9px; border-radius: 8px; border: 1.5px dashed #8a5a00; color: #8a5a00; font-size: 12px; font-weight: 700; background: #fffbeb; }
.rc-pos { color: #006300; font-weight: 700; }
.rc-neg { color: #b32d2d; font-weight: 700; }
.rc-dash { color: var(--rc-muted); }
.rc-guess { background: #fffbeb; color: #8a5a00; border: 1px dashed #8a5a00; border-radius: 6px; padding: 0 5px; }

/* ---- جدول ---- */
.rc-tablewrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.rc-table th, .rc-table td { padding: 9px 10px; border-bottom: 1px solid var(--rc-grid); text-align: right; vertical-align: top; }
.rc-table thead th { background: #eaf2fc; color: #184f95; font-size: 12.5px; white-space: nowrap; }
.rc-table tbody th { font-weight: 700; text-align: right; }
.rc-table small { display: block; color: var(--rc-ink2); font-weight: 400; font-size: 11.5px; line-height: 1.6; }
.rc-table .rc-w { color: var(--rc-muted); }
.rc-table tfoot th, .rc-table tfoot td { background: #f4f3ef; font-weight: 800; border-top: 2px solid var(--rc-grid); }
.rc-row--part th, .rc-row--part td { background: #fafaf8; font-size: 12.5px; }
.rc-row--empty th { color: var(--rc-muted); }
.rc-table--sm { font-size: 12.5px; }
.rc-table input[type=number] { width: 84px; min-height: 36px; }
.rc-pub td { text-align: center; }
.rc-pub input { width: 22px; height: 22px; min-height: 0; }
.rc-formula { font-size: 12px; color: var(--rc-ink2); margin: 8px 0; }
.rc-note-i { font-size: 11px; color: var(--rc-ink2); }
.rc-det { margin: 8px 0; border: 1px solid var(--rc-line); border-radius: 10px; background: #fff; }
.rc-det > summary { cursor: pointer; padding: 10px 12px; min-height: 44px; font-weight: 700; font-size: 13px; }
.rc-det > .rc-tablewrap { padding: 0 8px 8px; }
.rc-sw-lists { font-size: 13.5px; margin-top: 6px; }
.rc-sw-lists > div { margin: 3px 0; }
.rc-beh { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.rc-beh li { padding: 4px 0; border-bottom: 1px dashed var(--rc-grid); }
.rc-att-n { text-align: center; font-size: 12.5px; color: var(--rc-ink2); margin-top: 4px; }

/* ---- توصیه‌ها ---- */
.rc-advice { background: #f3f8fe; border: 1px solid #cfe1f7; border-radius: 14px; padding: 14px; }
.rc-badge-auto { font-size: 11px; font-weight: 700; background: #fff; border: 1px solid #b7d3f6; color: #184f95; border-radius: 999px; padding: 1px 10px; margin-right: 6px; }
.rc-disc { font-size: 12.5px; color: var(--rc-ink2); background: #fff; border-radius: 10px; padding: 8px 10px; margin: 0 0 8px; }
.rc-ov { margin: 6px 0; }
.rc-top3 { list-style: none; margin: 0; padding: 0; }
.rc-top3 li { display: flex; align-items: flex-start; margin: 6px 0; padding: 8px 10px; background: #fff; border-radius: 10px; border: 1px solid var(--rc-line); }
.rc-pri { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--rc-blue); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-left: 10px; }
.rc-top3 li > div { min-width: 0; }
.rc-sub { font-size: 12.5px; color: var(--rc-ink2); margin-top: 3px; }
.rc-strong, .rc-adv-list { margin: 4px 0; padding: 0 20px 0 0; }
.rc-strong li, .rc-adv-list li { margin: 6px 0; }
.rc-why { margin: 3px 0; font-size: 12.5px; }
.rc-why > summary { cursor: pointer; color: #184f95; font-weight: 700; display: inline-block; min-height: 30px; padding: 3px 0; }
.rc-why ul { margin: 2px 0 6px; padding: 0 18px 0 0; color: var(--rc-ink2); }
.rc-why-course { background: #fff; border: 1px solid var(--rc-line); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.rc-why-course ul { margin: 4px 0 0; padding: 0 16px 0 0; list-style: none; }
.rc-why-course li { margin: 4px 0; }
.rc-thin { color: #8a5a00; font-size: 12.5px; margin: 4px 0; }
.rc-teacher { margin-top: 12px; padding: 10px; background: #fffbeb; border: 1px dashed #8a5a00; border-radius: 10px; }
.rc-remark { background: #fff; border: 1px solid var(--rc-line); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.rc-remark-edit textarea { width: 100%; }
.rc-sign { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 18px; padding-top: 10px; border-top: 1px dashed #bbb; font-size: 12.5px; color: var(--rc-ink2); }
.rc-sign > div { margin: 6px 8px; }
.rc-rank { margin: 4px 0; padding: 0 20px 0 0; }
.rc-rank li { margin: 6px 0; }
.rc-wrow .rc-f input { width: 110px; }
.rc-print-portal { display: none; }

/* ---- موبایل: جدول‌ها کارتی، بدون اسکرول افقی صفحه ---- */
@media (max-width: 640px) {
    .rc-sheet { padding: 12px; border-radius: 12px; }
    .rc-head { flex-wrap: wrap; }
    .rc-head__d { flex: 1 0 100%; text-align: right; margin: 6px 0 0; }
    .rc-tile { flex-basis: 140px; }
    .rc-table thead { display: none; }
    .rc-table, .rc-table tbody, .rc-table tfoot, .rc-table tr, .rc-table th, .rc-table td { display: block; width: 100%; }
    .rc-table tr { border: 1px solid var(--rc-grid); border-radius: 12px; margin: 0 0 10px; padding: 4px 10px; background: #fff; }
    .rc-table th[scope=row] { background: transparent; border-bottom: 1px solid var(--rc-grid); font-size: 14.5px; padding: 8px 0; }
    .rc-table td { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--rc-grid); padding: 7px 0; text-align: left; }
    .rc-table td:last-child { border-bottom: 0; }
    .rc-table td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--rc-ink2); margin-left: 10px; flex: 0 0 auto; text-align: right; }
    .rc-table td > :first-child, .rc-table td b { white-space: nowrap; }
    .rc-table td small { white-space: normal; flex: 1 1 auto; min-width: 0; }
    .rc-table td[colspan] { display: block; text-align: center; }
    .rc-table td[colspan]::before { content: none; }
    .rc-table small { text-align: left; }
    .rc-pub, .rc-pub tbody, .rc-pub tr { display: table; width: auto; }
    .rc-pub tbody { display: table-row-group; } .rc-pub tr { display: table-row; border: 0; } .rc-pub th, .rc-pub td { display: table-cell; width: auto; } .rc-pub thead { display: table-header-group; }
    .rc-pub td::before { content: none; }
    .rc-pub { min-width: 520px; }
    .rc-grid2 > * { flex-basis: 100%; }
    .rc-btn { flex: 1 1 auto; }
}

/* ---- چاپ A4 با حفظ رنگ‌ها ---- */
@media print {
    @page { size: A4; margin: 10mm; }
    body.rc-printing { background: #fff !important; }
    body.rc-printing > *:not(#rcPrintPortal) { display: none !important; }
    body.rc-printing #rcPrintPortal { display: block !important; }
    .rc-root, .rc-root * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .rc-noprint { display: none !important; }
    .rc-print-portal .rc-sheet { border: 0; border-radius: 0; padding: 0; margin: 0; background: #fff; break-after: page; page-break-after: always; }
    .rc-print-portal .rc-sheet:last-child { break-after: auto; page-break-after: auto; }
    .rc-print-portal .rc-chart, .rc-print-portal .rc-tile, .rc-print-portal .rc-mini, .rc-print-portal .rc-why-course, .rc-print-portal .rc-top3 li, .rc-print-portal .rc-remark { break-inside: avoid; page-break-inside: avoid; }
    .rc-print-portal .rc-head, .rc-print-portal .rc-block h3 { break-after: avoid; page-break-after: avoid; }
    .rc-print-portal .rc-tablewrap { overflow: visible; }
    .rc-print-portal .rc-table thead { display: table-header-group; }
    .rc-print-portal .rc-table tr { break-inside: avoid; page-break-inside: avoid; }
    .rc-print-portal .rc-det > summary { list-style: none; }
    .rc-print-portal .rc-det > summary::-webkit-details-marker { display: none; }
    .rc-print-portal .rc-svg { max-width: 100% !important; }
    .rc-print-portal { font-size: 11.5px; }
    /* جدول‌ها در چاپ همیشه جدولی (نه کارتی) */
    .rc-print-portal .rc-table { display: table; font-size: 11px; }
    .rc-print-portal .rc-table thead { display: table-header-group; }
    .rc-print-portal .rc-table tbody { display: table-row-group; } .rc-print-portal .rc-table tfoot { display: table-footer-group; }
    .rc-print-portal .rc-table tr { display: table-row; border: 0; padding: 0; margin: 0; }
    .rc-print-portal .rc-table th, .rc-print-portal .rc-table td { display: table-cell; width: auto; text-align: right; padding: 5px 6px; }
    .rc-print-portal .rc-table td::before { content: none; }
}

/* ---- دور ۲۵: تلاش کلاسی، سفارشی، تجزیه و ترکیب ---- */
.rc-table tr[hidden] { display: none !important; }
.rc-teach { display: block; color: var(--rc-ink2); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.rc-partial { display: block; color: #8a5a00; background: #fff4d6; border-radius: 8px; padding: 3px 8px; margin-top: 4px; font-size: 11.5px; font-weight: 400; }
.rc-incomplete { color: #8a5a00; background: #fff4d6; font-size: 12.5px; }
.rc-row--group th { background: #eef3fa; color: #184f95; font-size: 13.5px; }
.rc-row--group small { font-weight: 400; color: var(--rc-ink2); }
.rc-exp { min-height: 30px; margin: 4px 0 0; padding: 2px 10px; border: 1.5px solid #cfcdc4; border-radius: 999px; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-block; color: var(--rc-blue); }
.rc-elink { border: 1.5px dashed #9bbcec; background: #f3f8ff; border-radius: 14px; padding: 10px 14px; }
.rc-elink__row { display: flex; flex-wrap: wrap; align-items: center; }
.rc-elink__big { font-size: 26px; font-weight: 900; margin-left: 10px; }
.rc-moved { background: #effaef; border: 1.5px solid #9fd89f; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.rc-custom-box { border: 1.5px solid #cfcdc4; border-radius: 14px; padding: 10px 14px; background: #fcfcfb; }
.rc-secs { display: flex; flex-wrap: wrap; margin: 6px 0; }
.rc-presets { display: flex; flex-wrap: wrap; align-items: flex-end; border-top: 1px dashed var(--rc-grid); padding-top: 8px; }
.rc-why-course--sub { margin-right: 18px; opacity: .95; }
.rc-sheet--effort .rc-head { border-bottom-color: #8e5bd6; }
@media (max-width: 640px) {
    .rc-row--group th { display: block; }
}

/* ---- سربرگ: لوگو بالا، نام کوچک‌تر، ظاهر انگیزشی ---- */
.rc-head { flex-wrap: wrap; justify-content: space-between; background: linear-gradient(135deg,#eaf2fc,#fff 70%); border-radius: 12px 12px 0 0; padding: 10px 12px; }
.rc-head__top { flex: 1 0 100%; text-align: center; margin-bottom: 6px; }
.rc-head__top .rc-logo { width: 72px; height: 72px; margin: 0 auto; display: inline-flex; }
.rc-stu__n { font-size: 14px; font-weight: 700; }
.rc-stu__m { font-size: 12px; }
.rc-cheer { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #fff7e0; border: 1px dashed #e0a800; font-weight: 700; font-size: 13px; text-align: center; }
.rc-cmp__ov { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 6px 0; font-size: 13px; }
.rc-cmp__ov b { font-size: 24px; color: var(--rc-blue); }
.rc-cmp__t { width: 100%; border-collapse: collapse; font-size: 12px; }
.rc-cmp__t th, .rc-cmp__t td { padding: 3px 6px; border-bottom: 1px solid var(--rc-grid); text-align: center; }
.rc-cmp__t td:first-child, .rc-cmp__t th:first-child { text-align: right; }
.rc-sheet--compact .rc-head__top .rc-logo { width: 44px; height: 44px; }
.rc-sheet--compact .rc-head__t h2 { font-size: 15px; }
.rc-sheet--compact .rc-stu { margin-bottom: 4px; }
.rc-sheet--compact .rc-photo { width: 36px; height: 36px; }
@media print {
    .rc-print-portal .rc-batch { display: grid; gap: 4mm; break-after: auto; }
    .rc-print-portal .rc-pp-2 { grid-template-columns: 1fr; grid-auto-rows: calc((297mm - 20mm - 4mm) / 2 - 1mm); }
    .rc-print-portal .rc-pp-4 { grid-template-columns: 1fr 1fr; grid-auto-rows: calc((297mm - 20mm - 4mm) / 2 - 1mm); }
    .rc-print-portal .rc-batch .rc-sheet { border: 1px solid #bbb; border-radius: 8px; padding: 6px 8px; overflow: hidden; break-after: auto; page-break-after: auto; break-inside: avoid; page-break-inside: avoid; }
    .rc-print-portal .rc-pp-4 .rc-cmp__t { font-size: 10px; }
    .rc-print-portal .rc-pp-4 .rc-photo { display: none; }
}
