/* Result card (used on the public page and in the admin preview) */
.rh-card { --rh-ink:#1d2433; --rh-muted:#667085; --rh-line:#e4e7ec; --rh-green:#1a56db;
	background:#fff; border:1px solid var(--rh-line); border-radius:14px; padding:28px; max-width:760px; margin:0 auto;
	color:var(--rh-ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; font-size:15px; line-height:1.5; box-sizing:border-box; }
.rh-card *, .rh-front * { box-sizing:border-box; }
.rh-card-head { display:flex; gap:16px; align-items:center; border-bottom:3px double var(--rh-ink); padding-bottom:16px; margin-bottom:18px; }
.rh-card-logo { width:64px; height:64px; object-fit:contain; flex:none; }
.rh-card-head h3 { margin:0; font:700 22px/1.2 Georgia,"Times New Roman",serif; color:var(--rh-ink); }
.rh-card-head p { margin:4px 0 0; color:var(--rh-muted); }
.rh-card-who { display:flex; gap:18px; align-items:center; margin-bottom:18px; }
.rh-card-photo { width:84px; height:84px; border-radius:12px; object-fit:cover; flex:none; }
.rh-card-initials { display:inline-flex; align-items:center; justify-content:center; font:700 26px Georgia,serif; }
.rh-card-who dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; margin:0; flex:1; }
.rh-card-who dt { font-size:12px; color:var(--rh-muted); }
.rh-card-who dd { margin:0; font-weight:600; }
.rh-card-table { width:100%; border-collapse:collapse; margin:0; }
.rh-card-table th { text-align:left; font-size:13px; color:var(--rh-muted); font-weight:600; padding:9px 10px; border-bottom:2px solid var(--rh-ink); }
.rh-card-table td { padding:9px 10px; border-bottom:1px solid #eef0f3; }
.rh-card-sum { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:18px 0; }
.rh-card-sum div { background:#f6f7f9; border-radius:10px; padding:10px 12px; }
.rh-card-sum span { display:block; font-size:12px; color:var(--rh-muted); }
.rh-card-sum strong { font:700 20px Georgia,serif; }
.rh-card-verdict { margin:0; padding:12px 16px; border-radius:10px; font-weight:600; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.rh-card-verdict span { font-weight:400; }
.rh-card-verdict.is-pass { background:#e8f0fe; color:#1e429f; }
.rh-card-verdict.is-fail { background:#fdecea; color:#a32b1f; }
.rh-card-note { margin:16px 0 0; padding-top:12px; border-top:1px dashed var(--rh-line); color:var(--rh-muted); font-size:13px; }

/* Public result checker */
.rh-front { max-width:760px; margin:0 auto; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; color:#1d2433; }
.rh-front-panel { background:#fff; border:1px solid #e4e7ec; border-radius:14px; padding:28px; }
.rh-front-panel h2 { margin:0 0 6px; font:700 24px/1.2 Georgia,"Times New Roman",serif; }
.rh-front-sub { margin:0 0 20px; color:#667085; }
.rh-front .rh-check-form { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.rh-front .rh-check-form label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; color:#3b4658; }
.rh-front .rh-check-form select, .rh-front .rh-check-form input { width:100%; height:46px; padding:0 12px; font-size:15px; border:1px solid #d0d5dd; border-radius:10px; background:#fff; color:#1d2433; box-shadow:none; }
.rh-front .rh-check-form select:focus, .rh-front .rh-check-form input:focus { outline:none; border-color:#1a56db; box-shadow:0 0 0 3px rgba(14,124,102,.15); }
.rh-front .rh-front-btn, .rh-front .rh-front-btn2 { height:46px; padding:0 22px; border:1px solid transparent; border-radius:10px; font-size:15px; font-weight:600; cursor:pointer; }
.rh-front .rh-front-btn { grid-column:1 / -1; background:#1a56db; color:#fff; }
.rh-front .rh-front-btn:hover { background:#1e429f; }
.rh-front .rh-front-btn:disabled { opacity:.6; cursor:wait; }
.rh-front .rh-front-btn2 { background:#fff; color:#1d2433; border-color:#d0d5dd; }
.rh-front-error { margin:14px 0 0; padding:12px 16px; border-radius:10px; background:#fdecea; color:#a32b1f; font-weight:600; }
.rh-front-result { margin-top:20px; }
.rh-front-actions { display:flex; gap:10px; justify-content:center; margin-top:16px; }
.rh-front [hidden] { display:none !important; }

@media (max-width:640px) {
	.rh-front .rh-check-form { grid-template-columns:1fr; }
	.rh-card { padding:18px; }
	.rh-card-who { flex-direction:column; align-items:flex-start; }
	.rh-card-sum { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media print {
	body * { visibility:hidden !important; }
	.rh-card, .rh-card * { visibility:visible !important; }
	.rh-card { position:absolute; left:0; top:0; width:100%; max-width:none; border:0; border-radius:0; }
}

.rh-opt { color:#1a56db; font-weight:700; }
.rh-card-foot { margin:8px 0 0; font-size:12px; color:#667085; }

/* ---------- Result card templates ---------- */
.rh-card { --rh-accent:#1a56db; }
.rh-card dl { margin:0; }
.rh-card dd { margin:0; }
.rh-card h3, .rh-card h4, .rh-card p { text-transform:none; letter-spacing:normal; }
.rh-card img { max-width:100%; height:auto; }
.rh-card .rh-card-initials { display:inline-flex; align-items:center; justify-content:center; font-weight:700; }
.rh-card-verdict { margin-top:16px; }

/* Modern */
.rh-t-modern { padding:0; overflow:hidden; }
.rm-band { display:flex; align-items:center; gap:16px; padding:22px 28px; background:var(--rh-accent); color:#fff; }
.rm-band h3 { margin:0; font:700 21px/1.2 -apple-system,"Segoe UI",Roboto,sans-serif; color:#fff; }
.rm-band p { margin:3px 0 0; opacity:.85; color:#fff; }
.rm-logo { width:56px; height:56px; object-fit:contain; background:#fff; border-radius:12px; padding:4px; flex:none; }
.rm-badge { margin-left:auto; padding:6px 14px; border-radius:999px; background:rgba(255,255,255,.2); font-weight:600; font-size:13px; text-align:center; }
.rm-body { padding:24px 28px 28px; }
.rm-student { display:flex; gap:18px; align-items:center; margin-bottom:20px; }
.rm-photo { width:92px; height:92px; border-radius:18px; object-fit:cover; flex:none; font-size:28px; }
.rm-student h4 { margin:0 0 8px; font-size:22px; line-height:1.2; color:var(--rh-ink); }
.rm-chips { display:flex; flex-wrap:wrap; gap:6px; }
.rm-chips span { padding:4px 12px; border-radius:999px; background:#eef2f6; background:color-mix(in srgb, var(--rh-accent) 12%, #fff); color:#1d2433; font-size:13px; font-weight:600; }
.rm-extra { display:flex; flex-wrap:wrap; gap:4px 20px; margin-top:10px; font-size:13px; }
.rm-extra div { display:flex; gap:6px; }
.rm-extra dt { color:var(--rh-muted); }
.rm-extra dd { font-weight:600; }
.rm-table { width:100%; border-collapse:collapse; }
.rm-table th { background:var(--rh-accent); color:#fff; text-align:left; padding:10px 12px; font-size:13px; font-weight:600; }
.rm-table th:first-child { border-radius:10px 0 0 10px; }
.rm-table th:last-child { border-radius:0 10px 10px 0; }
.rm-table td { padding:10px 12px; border-bottom:1px solid #eef0f3; }
.rm-table tbody tr:nth-child(even) td { background:#fafbfc; }
.rm-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:10px; margin-top:20px; }
.rm-tiles div { background:#f6f7f9; border-left:4px solid var(--rh-accent); border-radius:8px; padding:10px 14px; }
.rm-tiles span { display:block; font-size:12px; color:var(--rh-muted); }
.rm-tiles strong { font-size:20px; }

/* Profile */
.rh-t-profile { text-align:center; max-width:560px; }
.rp-top { display:flex; align-items:center; justify-content:center; gap:10px; color:var(--rh-muted); font-weight:600; margin-bottom:18px; }
.rp-logo { width:36px; height:36px; object-fit:contain; }
.rp-photo { width:112px; height:112px; border-radius:50%; object-fit:cover; border:4px solid var(--rh-accent); font-size:34px; }
.rp-name { margin:12px 0 2px; font-size:24px; color:var(--rh-ink); }
.rp-sub { margin:0 0 18px; color:var(--rh-muted); }
.rp-panel { text-align:left; border:1px solid var(--rh-line); border-radius:12px; overflow:hidden; margin-top:16px; }
.rp-head { background:var(--rh-accent); color:#fff; padding:11px 16px; font-weight:700; text-align:center; }
.rp-dl > div { display:flex; justify-content:space-between; gap:12px; padding:9px 16px; }
.rp-dl > div:nth-child(odd) { background:#f6f7f9; }
.rp-dl dt { color:var(--rh-muted); }
.rp-dl dd { font-weight:600; text-align:right; }
.rp-table { width:100%; border-collapse:collapse; }
.rp-table th { text-align:left; padding:9px 16px; font-size:13px; color:var(--rh-muted); border-bottom:1px solid var(--rh-line); }
.rp-table td { padding:9px 16px; border-bottom:1px solid #eef0f3; }
.rp-panel .rh-card-foot { padding:0 16px 12px; }

/* Transcript */
.rh-t-transcript { border:1px solid var(--rh-ink); border-radius:4px; font-family:Georgia,"Times New Roman",serif; }
.rs-head { text-align:center; border-bottom:2px solid var(--rh-ink); padding-bottom:14px; margin-bottom:16px; }
.rs-logo { width:56px; height:56px; object-fit:contain; display:block; margin:0 auto 6px; }
.rs-head h3 { margin:0; font:700 22px Georgia,serif; letter-spacing:.02em; }
.rs-head p { margin:4px 0 0; color:var(--rh-muted); font-style:italic; }
.rs-two { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:16px; }
.rs-info > div { display:flex; justify-content:space-between; gap:10px; padding:5px 0; border-bottom:1px dotted #b8c0cc; font-size:14px; }
.rs-info dt { color:var(--rh-muted); }
.rs-info dd { font-weight:700; text-align:right; }
.rs-table { width:100%; border-collapse:collapse; font-size:14px; }
.rs-table th, .rs-table td { border:1px solid #98a2b3; padding:7px 10px; text-align:left; }
.rs-table th { background:#f2f4f7; }
.rs-sign { display:flex; justify-content:space-between; gap:40px; margin-top:44px; }
.rs-sign span { flex:1; text-align:center; border-top:1px solid var(--rh-ink); padding-top:6px; font-size:13px; color:var(--rh-muted); }

/* Dashboard */
.rh-t-dashboard { padding:0; overflow:hidden; }
.rd-head { display:flex; align-items:center; gap:14px; padding:20px 26px; background:#1d2433; border-bottom:4px solid var(--rh-accent); }
.rd-head h3 { margin:0; color:#fff; font:700 20px/1.2 -apple-system,"Segoe UI",Roboto,sans-serif; }
.rd-head p { margin:3px 0 0; color:#aab4c5; }
.rd-logo { width:48px; height:48px; object-fit:contain; background:#fff; border-radius:10px; padding:3px; }
.rd-grid { display:grid; grid-template-columns:210px 1fr; }
.rd-grid aside { background:#f6f7f9; padding:22px 18px; text-align:center; }
.rd-photo { width:96px; height:96px; border-radius:50%; object-fit:cover; font-size:30px; }
.rd-grid aside h4 { margin:10px 0 12px; font-size:18px; color:var(--rh-ink); }
.rd-dl { text-align:left; font-size:13px; }
.rd-dl > div { padding:6px 0; border-top:1px solid var(--rh-line); }
.rd-dl dt { color:var(--rh-muted); font-size:12px; }
.rd-dl dd { font-weight:600; }
.rd-main { padding:22px 24px; }
.rd-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); gap:10px; margin-bottom:18px; }
.rd-tiles div { border:1px solid var(--rh-line); border-radius:12px; padding:10px 12px; }
.rd-tiles span { display:block; font-size:12px; color:var(--rh-muted); }
.rd-tiles strong { font-size:22px; color:var(--rh-accent); }
.rd-row { display:grid; grid-template-columns:minmax(90px,150px) 1fr 44px 34px; gap:10px; align-items:center; padding:7px 0; }
.rd-bar { height:10px; border-radius:999px; background:#eceff3; overflow:hidden; }
.rd-bar i { display:block; height:100%; border-radius:999px; background:var(--rh-accent); }
.rd-num { text-align:right; font-weight:700; }
.rd-grade { text-align:center; font-weight:700; color:var(--rh-accent); }
.rh-t-dashboard .rh-card-note { margin:0; padding:14px 26px; }

/* Certificate */
.rh-t-certificate { padding:14px; }
.rc-frame { border:6px double var(--rh-accent); padding:30px 32px; text-align:center; font-family:Georgia,"Times New Roman",serif; }
.rc-logo { width:60px; height:60px; object-fit:contain; margin-bottom:6px; }
.rc-school { margin:0; font-size:15px; font-weight:700; letter-spacing:.08em; text-transform:uppercase !important; color:var(--rh-muted); }
.rc-title { margin:10px 0 4px; font:700 30px/1.2 Georgia,serif; color:var(--rh-accent); }
.rc-lead { margin:0; font-style:italic; color:var(--rh-muted); }
.rc-name { display:inline-block; margin:8px 0 6px; padding:0 20px 4px; font:700 30px Georgia,serif; color:var(--rh-ink); border-bottom:2px solid var(--rh-accent); }
.rc-text { margin:8px auto 18px; max-width:540px; line-height:1.6; }
.rc-table { width:100%; border-collapse:collapse; font-size:14px; text-align:left; }
.rc-table th { padding:6px 10px; border-bottom:2px solid var(--rh-accent); color:var(--rh-muted); font-weight:600; }
.rc-table td { padding:6px 10px; border-bottom:1px solid #eef0f3; }
.rc-frame .rs-sign { margin-top:38px; }

@media (max-width:640px) {
	.rm-student { flex-direction:column; align-items:flex-start; }
	.rs-two { grid-template-columns:1fr; }
	.rd-grid { grid-template-columns:1fr; }
	.rm-band { flex-wrap:wrap; }
	.rm-badge { margin-left:0; }
}
@media print {
	.rh-card, .rh-card * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* ---------- Student dashboard ---------- */
.rh-portal { --rh-ink:#1d2433; --rh-muted:#667085; --rh-line:#e4e7ec; max-width:980px; margin:0 auto; color:#1d2433; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; font-size:15px; line-height:1.5; }
.rh-portal *, .rh-portal *::before, .rh-portal *::after { box-sizing:border-box; }
.rh-portal [hidden] { display:none !important; }
.rh-portal-panel { background:#fff; border:1px solid var(--rh-line); border-radius:14px; padding:24px; margin-top:18px; }
.rh-portal-panel h2, .rh-portal-panel h3 { margin:0 0 8px; color:var(--rh-ink); }
.rh-portal-panel h2 { font:700 24px/1.2 Georgia,"Times New Roman",serif; }
.rh-portal-panel h3 { font-size:17px; }
.rh-portal-sub { margin:0 0 18px; color:var(--rh-muted); }

/* sign in */
.rh-portal-login-wrap { max-width:460px; margin:0 auto; }
.rh-portal-login { display:grid; gap:14px; }
.rh-portal-login label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; color:#3b4658; }
.rh-portal-login input, .rh-portal-login select { width:100%; height:46px; padding:0 12px; font-size:15px; border:1px solid #d0d5dd; border-radius:10px; background:#fff; color:#1d2433; box-shadow:none; }
.rh-portal-login input:focus, .rh-portal-login select:focus { outline:none; border-color:var(--rh-accent); box-shadow:0 0 0 3px rgba(14,124,102,.15); }
.rh-pl-roll { display:grid; gap:14px; grid-template-columns:1fr 1fr; }
.rh-portal .rh-front-btn { height:46px; padding:0 22px; border:1px solid transparent; border-radius:10px; font-size:15px; font-weight:600; cursor:pointer; background:var(--rh-accent); color:#fff; }
.rh-portal .rh-front-btn:hover { filter:brightness(.92); }
.rh-portal .rh-front-btn:disabled { opacity:.6; cursor:wait; }
.rh-portal .rh-front-btn2 { height:40px; padding:0 16px; border:1px solid #d0d5dd; border-radius:10px; font-size:14px; font-weight:600; cursor:pointer; background:#fff; color:#1d2433; }
.rh-portal .rh-front-btn2:hover { background:#f7f8fa; }
.rh-portal .rh-front-error { margin:14px 0 0; padding:12px 16px; border-radius:10px; background:#fdecea; color:#a32b1f; font-weight:600; }
.rh-portal-switch { margin:16px 0 0; text-align:center; }
.rh-linkbtn { background:none; border:0; padding:0; color:var(--rh-accent); font-weight:600; font-size:14px; cursor:pointer; text-decoration:underline; }

/* dashboard */
.rh-portal-top { display:flex; align-items:center; gap:18px; padding:22px 24px; border-radius:16px; background:#1d2433; color:#fff; border-bottom:4px solid var(--rh-accent); }
.rh-portal-avatar { width:76px; height:76px; border-radius:50%; object-fit:cover; flex:none; font-size:26px; }
.rh-portal-who { flex:1; min-width:0; }
.rh-portal-who p { margin:0; color:#aab4c5; font-size:13px; }
.rh-portal-who h2 { margin:2px 0 4px; color:#fff; font:700 26px/1.2 Georgia,"Times New Roman",serif; }
.rh-portal-who span { color:#c9d1de; font-size:14px; }
.rh-portal-top .rh-front-btn2 { background:transparent; color:#fff; border-color:rgba(255,255,255,.35); }
.rh-portal-top .rh-front-btn2:hover { background:rgba(255,255,255,.1); }
.rh-portal-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-top:18px; }
.rh-portal-tiles > div { background:#fff; border:1px solid var(--rh-line); border-left:4px solid var(--rh-accent); border-radius:12px; padding:14px 16px; }
.rh-portal-tiles span { display:block; font-size:12px; color:var(--rh-muted); font-weight:600; }
.rh-portal-tiles strong { display:block; font-size:30px; line-height:1.15; color:var(--rh-ink); }
.rh-portal-tiles em { font-style:normal; font-size:13px; color:var(--rh-muted); }
.rh-portal-tiles em.is-up { color:#1e429f; }
.rh-portal-tiles em.is-down { color:#a32b1f; }
.rh-portal-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:18px; }
.rh-portal-grid .rh-portal-panel { margin-top:18px; }
.rh-progress-row { display:grid; grid-template-columns:minmax(90px,150px) 1fr 52px; gap:12px; align-items:center; padding:7px 0; }
.rh-progress-label { font-size:14px; font-weight:600; }
.rh-progress-bar { height:12px; border-radius:999px; background:#eceff3; overflow:hidden; }
.rh-progress-bar i { display:block; height:100%; border-radius:999px; background:var(--rh-accent); }
.rh-progress-num { text-align:right; font-weight:700; }
.rh-portal-facts { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.rh-portal-facts p { margin:0; padding:10px 12px; border-radius:10px; background:#f6f7f9; }
.rh-portal-facts span { display:block; font-size:12px; color:var(--rh-muted); }
.rh-portal-dl { margin:0; }
.rh-portal-dl > div { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid #eef0f3; }
.rh-portal-dl > div:last-child { border-bottom:0; }
.rh-portal-dl dt { color:var(--rh-muted); }
.rh-portal-dl dd { margin:0; font-weight:600; text-align:right; }
.rh-portal-item { display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid #eef0f3; flex-wrap:wrap; }
.rh-portal-item:last-child { border-bottom:0; }
.rh-portal-item-main { flex:1; min-width:200px; }
.rh-portal-item-main strong { display:block; }
.rh-portal-item-main span { color:var(--rh-muted); font-size:14px; }
.rh-portal-status { padding:4px 12px; border-radius:999px; font-size:13px; font-weight:600; }
.rh-portal-status.is-pass { background:#e8f0fe; color:#1e429f; }
.rh-portal-status.is-fail { background:#fdecea; color:#a32b1f; }
.rh-portal-empty { text-align:center; padding:40px 24px; }
.rh-portal-cardwrap { margin-top:18px; }
.rh-portal-cardbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.rh-portal-cardbar h3 { margin:0; font-size:17px; }
.rh-portal-cardbar span { display:inline-flex; gap:8px; }

@media (max-width:760px) {
	.rh-portal-grid { grid-template-columns:1fr; }
	.rh-portal-top { flex-wrap:wrap; }
	.rh-pl-roll { grid-template-columns:1fr; }
	.rh-progress-row { grid-template-columns:1fr 52px; }
	.rh-progress-bar { grid-column:1 / -1; order:3; }
}

.rh-front .rh-check-form .rh-span { grid-column:1 / -1; }

/* Teacher's remark (added in 2.11) */
.rh-card-comment { margin:16px 0 0; padding:10px 14px; border-left:4px solid var(--rh-accent); background:#f6f7f9; border-radius:0 8px 8px 0; font-size:14px; }
@media print {
	.rh-card-comment { background:none; }
}

/* ---------- School report (added in 2.13) ---------- */
.rh-t-report { padding:10px; border:3px solid var(--rh-accent); border-radius:0; max-width:820px; background:#fff; }
.rr-frame { border:1px solid var(--rh-accent); padding:28px 30px 24px; font-family:Georgia,"Times New Roman",serif; color:var(--rh-ink); }
.rr-frame p, .rr-frame h3 { margin:0; text-transform:none; }
.rr-head { text-align:center; }
.rr-logo { display:block; width:64px; height:64px; margin:0 auto 10px; object-fit:contain; border-radius:50%; }
.rr-head h3 { font:700 26px/1.15 Georgia,"Times New Roman",serif; letter-spacing:.16em; text-transform:uppercase !important; color:var(--rh-accent); }
.rr-motto { margin-top:6px !important; font-size:12px; font-style:italic; color:var(--rh-muted); }
.rr-title { display:flex; align-items:center; gap:16px; margin:18px 0 20px; }
.rr-title::before, .rr-title::after { content:""; flex:1; height:1px; background:var(--rh-accent); opacity:.45; }
.rr-title span { font-size:13px; font-weight:600; letter-spacing:.3em; text-transform:uppercase; color:var(--rh-ink); }
.rr-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px 28px; margin-bottom:22px; }
.rr-field span, .rr-box span, .rr-comments span { display:block; font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:var(--rh-muted); }
.rr-field strong { display:block; min-height:26px; padding-top:4px; border-bottom:1px solid var(--rh-ink); font-size:14px; font-weight:600; }
.rr-table { width:100%; border-collapse:collapse; font-size:13px; border:1px solid var(--rh-accent); }
.rr-table th { padding:8px 8px; background:var(--rh-accent); color:#fff; font-size:10px; letter-spacing:.14em; text-transform:uppercase; text-align:center; font-weight:700; }
.rr-table td { padding:7px 8px; border:1px solid var(--rh-line); text-align:center; }
.rr-table .rr-subj { text-align:left; }
.rr-table .rr-rem { text-align:left; font-size:12px; color:var(--rh-muted); }
.rr-table td.rr-final { background:#f3f0e8; }
.rr-key { margin-top:10px !important; text-align:center; font-size:10.5px; font-style:italic; color:var(--rh-muted); }
.rr-boxes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:14px; }
.rr-box { border:1px solid var(--rh-line); padding:7px 10px 8px; }
.rr-box strong { display:block; min-height:22px; margin-top:3px; font-size:14px; }
.rr-comments { margin-top:14px; border:1px solid var(--rh-line); padding:8px 12px 10px; min-height:96px; }
.rr-comments p { margin-top:6px !important; font-size:13.5px; line-height:1.55; }
.rr-note { margin-top:12px !important; font-size:11.5px; color:var(--rh-muted); text-align:center; }
.rr-signs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; margin-top:44px; }
.rr-signs span { padding-top:6px; border-top:1px solid var(--rh-ink); text-align:center; font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:var(--rh-muted); }
@media (max-width:640px) {
	.rr-frame { padding:18px 14px; }
	.rr-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.rr-boxes { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.rr-head h3 { font-size:19px; letter-spacing:.1em; }
	.rr-table { font-size:12px; }
	.rr-signs { gap:12px; }
}
@media print {
	.rh-t-report { border-width:3px; }
	.rr-table th, .rr-table td.rr-final { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
	.rr-frame { padding:20px 24px; }
}
.rr-table th.rr-rem { color:#fff; font-size:10px; }
