/* ================= گزارشات و سوابق — صفحهٔ یکپارچه ================= */
.rec-page { display: flex; flex-direction: column; gap: 14px; }

/* ---------- سربرگ ---------- */
.rec-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 200px at 88% -40%, rgba(245, 158, 11, .35), transparent 70%),
    radial-gradient(420px 220px at 8% 130%, rgba(16, 185, 129, .28), transparent 70%),
    var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.rec-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.rec-hero-main { display: flex; align-items: center; gap: 14px; min-width: 0; position: relative; z-index: 1; }
.rec-hero-ic {
  width: 52px; height: 52px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.rec-hero-title { margin: 0 0 4px; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.2px; }
.rec-hero-sub { margin: 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .82); max-width: 640px; line-height: 1.8; }
.rec-hero-actions { display: flex; gap: 7px; flex-wrap: wrap; position: relative; z-index: 1; }
.rec-hero-actions .btn {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  backdrop-filter: blur(4px);
}
.rec-hero-actions .btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); }
.rec-hero-actions .btn.accent { background: var(--gold); border-color: var(--gold); color: #17252d; font-weight: 800; }
.rec-hero-actions .btn.accent:hover { background: #fbbf24; }

/* ---------- شاخص‌ها ---------- */
.rec-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.rec-kpi {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto;
  gap: 0 10px; align-items: center; text-align: right;
  padding: 13px 15px; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  font-family: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rec-kpi::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
  background: var(--line); border-radius: 0 4px 4px 0;
}
.rec-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--side-2); }
.rec-kpi-ic { grid-row: 1 / 3; font-size: 20px; display: grid; place-items: center; }
.rec-kpi b { font-size: var(--fs-2xl); line-height: 1.05; font-weight: 800; color: var(--side); }
.rec-kpi-l { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.rec-kpi.tone-warn::before { background: var(--warn); }
.rec-kpi.tone-warn b { color: var(--warn); }
.rec-kpi.tone-bad::before { background: var(--bad); }
.rec-kpi.tone-bad b { color: var(--bad); }
.rec-kpi.tone-info::before { background: var(--info); }
.rec-kpi.tone-info b { color: var(--info); }
.rec-kpi.tone-good::before { background: var(--good); }
.rec-kpi.tone-good b { color: var(--good); }
.rec-kpi.is-zero { opacity: .72; }
.rec-kpi.is-zero b { color: var(--muted); }
.rec-kpi.is-loading { grid-template-columns: 1fr; color: var(--muted); }

.rec-scope-note {
  margin: 0; padding: 8px 12px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  color: var(--warn); font-size: var(--fs-xs); font-weight: 600;
}

/* ---------- تب‌ها ---------- */
.rec-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
  margin-bottom: 0; padding: 4px;
  background: color-mix(in srgb, var(--paper) 65%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.rec-tab {
  flex: 1 1 0; min-width: 150px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; font-size: var(--fs-sm); font-weight: 700;
  text-align: center; white-space: nowrap;
  border-radius: var(--radius-md); border-color: transparent;
  background: transparent;
}
.rec-tab:hover { background: var(--paper); box-shadow: none; transform: none; border-color: var(--line); }
.rec-tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(13, 59, 52, .28); }

/* ---------- کارت‌ها ---------- */
.rec-card { padding: 18px; border-radius: var(--radius-lg); }
.rec-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rec-card-title { margin: 0; font-size: var(--fs-lg); font-weight: 800; }
.rec-card-sub { margin: 3px 0 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.rec-card-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rec-count { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--radius-full); }

/* ---------- نوار ابزار و فیلترها ---------- */
.rec-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; align-items: end; }
.rec-toolbar .field { margin: 0; }
.rec-toolbar .field label { font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); }
.rec-toolbar .btn { min-height: 38px; }
.rec-toolbar-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.rec-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rec-presets-l { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.rec-presets button {
  cursor: pointer; font-family: inherit; font-size: var(--fs-xs); font-weight: 700;
  padding: 5px 11px; border-radius: var(--radius-full);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.rec-presets button:hover { border-color: var(--accent-2); color: var(--accent-2); }
.rec-presets button.active { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.rec-scope-line { margin: 9px 0 2px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- خط زمانی ---------- */
.rec-timeline-wrap { min-height: 60px; }
.rec-timeline { position: relative; padding-right: 34px; margin-top: 6px; }
.rec-timeline::before {
  content: ''; position: absolute; right: 16px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--line), color-mix(in srgb, var(--accent-2) 35%, var(--line)), var(--line));
  border-radius: 2px;
}
.rec-tl-date { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; position: relative; }
.rec-tl-date span {
  font-size: var(--fs-xs); font-weight: 800; color: var(--side);
  background: color-mix(in srgb, var(--accent-2) 12%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, var(--line));
  padding: 4px 10px; border-radius: var(--radius-full);
}
.rec-tl-date small { font-size: var(--fs-2xs); color: var(--muted); }
.rec-tl-item {
  position: relative; display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; margin-bottom: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.rec-tl-item:hover, .rec-tl-item:focus-visible {
  transform: translateX(-3px); border-color: var(--accent-2);
  box-shadow: var(--shadow-xs); outline: none;
}
.rec-tl-item::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 3px 0 0 3px; background: var(--line);
}
.rec-tl-item.k-report::before { background: var(--info); }
.rec-tl-item.k-tazkir::before { background: var(--warn); }
.rec-tl-item.k-exit::before { background: var(--bad); }
.rec-tl-item.k-leave::before { background: var(--accent-2); }
.rec-tl-dot {
  position: absolute; right: -34px; top: 10px;
  width: 26px; height: 26px; display: grid; place-items: center;
  font-size: 13px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line);
  box-shadow: 0 0 0 3px var(--bg);
}
.rec-tl-item.k-report .rec-tl-dot { border-color: var(--info); }
.rec-tl-item.k-tazkir .rec-tl-dot { border-color: var(--warn); }
.rec-tl-item.k-exit .rec-tl-dot { border-color: var(--bad); }
.rec-tl-item.k-leave .rec-tl-dot { border-color: var(--accent-2); }
.rec-tl-body { min-width: 0; flex: 1; }
.rec-tl-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rec-stu-link {
  cursor: pointer; font-family: inherit; font-size: var(--fs-sm); font-weight: 800;
  color: var(--side); background: none; border: 0; padding: 0;
  border-bottom: 1px dashed transparent;
}
.rec-stu-link:hover { border-bottom-color: var(--accent); color: var(--accent); }
.rec-tl-cls { font-size: var(--fs-2xs); color: var(--muted); }
.rec-tl-time { font-size: var(--fs-2xs); color: var(--muted); direction: ltr; }
.rec-tl-kind { margin-inline-start: auto; font-size: var(--fs-3xs); font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: var(--radius-full); }
.rec-tl-badges { display: flex; gap: 4px; flex-wrap: wrap; margin: 5px 0 2px; }
.rec-tl-text { margin: 3px 0 2px; font-size: var(--fs-xs); line-height: 1.85; color: var(--ink); overflow-wrap: anywhere; }
.rec-tl-foot { font-size: var(--fs-3xs); color: var(--muted); margin-top: 3px; }
.rec-tl-arrow { align-self: center; color: var(--muted); font-size: 20px; opacity: .45; }
.rec-tl-item:hover .rec-tl-arrow { opacity: 1; color: var(--accent-2); }

/* ---------- ردیف‌های فهرست ---------- */
.rec-list { display: flex; flex-direction: column; gap: 2px; max-height: 560px; overflow: auto; }
.rec-list-row, .rec-pend-row, .rec-latest-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.rec-pend-row, .rec-latest-row {
  padding: 11px 12px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 55%, var(--paper));
}
.rec-pend-row:last-child, .rec-latest-row:last-child { margin-bottom: 0; }
.rec-pend-main { min-width: 0; flex: 1; }
.rec-pend-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rec-pend-text { margin: 4px 0 2px; font-size: var(--fs-xs); line-height: 1.8; overflow-wrap: anywhere; }
.rec-pend-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; flex: 0 0 auto; }

.rec-tpl-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rec-tpl-l { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.rec-tpl {
  cursor: pointer; font-family: inherit; font-size: var(--fs-2xs); font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-full);
  border: 1px dashed color-mix(in srgb, var(--accent-2) 45%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 6%, var(--paper)); color: var(--accent-2);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.rec-tpl:hover { background: color-mix(in srgb, var(--accent-2) 14%, var(--paper)); border-style: solid; }

.rec-draft-note { font-size: var(--fs-2xs); color: var(--good); font-weight: 700; }
.rec-check { font-size: var(--fs-sm); }

.rec-latest { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.rec-latest-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.rec-latest-head h4 { margin: 0; font-size: var(--fs-base); }

/* ---------- کنترل بخش‌بندی (segmented) ---------- */
.rec-seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 10px; flex-wrap: wrap; }
.rec-seg-btn {
  cursor: pointer; font-family: inherit; font-size: var(--fs-xs); font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--muted);
}
.rec-seg-btn:hover { color: var(--ink); background: var(--paper); }
.rec-seg-btn.active { background: var(--paper); color: var(--side); box-shadow: var(--shadow-xs); }

/* ---------- جزئیات ---------- */
.rec-detail-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.rec-detail-chip { font-size: var(--fs-2xs); font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: var(--radius-full); }
.rec-detail-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.rec-detail-text {
  font-size: var(--fs-sm); line-height: 2; padding: 13px 15px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md);
  margin-bottom: 10px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.rec-detail-note { font-size: var(--fs-xs); line-height: 1.8; padding: 8px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent-2) 8%, var(--paper)); border: 1px dashed color-mix(in srgb, var(--accent-2) 35%, var(--line)); margin-bottom: 8px; }
.rec-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.rec-detail-grid > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.rec-detail-grid small { display: block; font-size: var(--fs-3xs); color: var(--muted); margin-bottom: 3px; }
.rec-detail-grid b { font-size: var(--fs-sm); }
.rec-detail-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* ---------- پروندهٔ دانش‌آموز ---------- */
.modal.rec-dossier-modal { max-width: 760px; width: min(760px, 94vw); }
.rec-dossier-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.rec-dossier-kpis > div { text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 9px 6px; }
.rec-dossier-kpis b { display: block; font-size: var(--fs-xl); color: var(--side); line-height: 1.1; }
.rec-dossier-kpis span { font-size: var(--fs-2xs); color: var(--muted); }
.rec-dossier-sec { margin-bottom: 12px; }
.rec-dossier-sec h4 { margin: 0 0 6px; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.rec-mini-row { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px dotted var(--line); font-size: var(--fs-xs); }
.rec-mini-row:last-child { border-bottom: 0; }
.rec-mini-date { flex: 0 0 auto; font-size: var(--fs-2xs); color: var(--muted); direction: ltr; }
.rec-mini-text { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.7; }
.rec-mini-extra { flex: 0 0 auto; }

/* ---------- اسکلت بارگذاری ---------- */
.rec-skel { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.rec-skel span { display: block; height: 44px; border-radius: var(--radius-md); background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--line) 55%, var(--surface-2)), var(--surface-2)); background-size: 200% 100%; animation: recShine 1.1s linear infinite; }
@keyframes recShine { to { background-position: -200% 0; } }

/* ---------- جلسه با والدین و واقعه‌نگاری ---------- */
#rtab-meetings, #rtab-observations { display: flex; flex-direction: column; gap: 14px; }
#rtab-meetings[hidden], #rtab-observations[hidden] { display: none; }
.rec-feature {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  --f-accent: var(--accent-2);
}
.rec-feature::after {
  content: ''; position: absolute; inset-inline-start: -40px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: color-mix(in srgb, var(--f-accent) 12%, transparent);
  pointer-events: none;
}
.rec-feature-mt {
  --f-accent: #0e7490;
  background:
    radial-gradient(420px 160px at 92% -40%, color-mix(in srgb, #0ea5e9 22%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, #0ea5e9 8%, var(--paper)), var(--paper) 55%);
  border-color: color-mix(in srgb, #0ea5e9 28%, var(--line));
}
.rec-feature-ob {
  --f-accent: #b45309;
  background:
    radial-gradient(420px 160px at 92% -40%, color-mix(in srgb, #f59e0b 24%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, #f59e0b 9%, var(--paper)), var(--paper) 55%);
  border-color: color-mix(in srgb, #f59e0b 30%, var(--line));
}
.rec-feature-main { display: flex; align-items: center; gap: 12px; min-width: 0; position: relative; z-index: 1; }
.rec-feature-ic {
  width: 48px; height: 48px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 23px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--f-accent) 14%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--f-accent) 32%, var(--line));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.rec-feature-title { margin: 0 0 3px; font-size: var(--fs-lg); font-weight: 800; color: var(--ink); }
.rec-feature-sub { margin: 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.75; max-width: 620px; }
.rec-feature-actions { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.rec-feature-actions .btn:first-child {
  background: var(--f-accent); border-color: var(--f-accent); color: #fff; font-weight: 800;
}
.rec-feature-actions .btn:first-child:hover { filter: brightness(1.06); }

.rec-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rec-stat {
  position: relative; overflow: hidden;
  padding: 13px 15px 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.rec-stat::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent-2);
}
.rec-stat b { display: block; font-size: var(--fs-2xl); line-height: 1.1; font-weight: 800; color: var(--side); }
.rec-stat span { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--ink); margin-top: 2px; }
.rec-stat small { display: block; font-size: var(--fs-3xs); color: var(--muted); margin-top: 3px; }
.rec-stat.tone-warn::before { background: var(--warn); }
.rec-stat.tone-warn b { color: var(--warn); }
.rec-stat.tone-info::before { background: var(--info); }
.rec-stat.tone-info b { color: var(--info); }
.rec-stat.tone-good::before { background: var(--good); }
.rec-stat.tone-good b { color: var(--good); }

.rec-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr);
  gap: 14px; align-items: start;
}
.rec-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rec-form-card { min-width: 0; }
.rec-fu-card .rec-card-sub { max-width: 260px; }
.rec-archive { margin-top: 0; }

.rec-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.rec-form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rec-form-row .field { margin: 0; }
.rec-choice-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-choice {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; cursor: pointer;
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-full);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.rec-choice input { width: auto; margin: 0; accent-color: var(--accent-2); }
.rec-choice:hover { border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line)); }
.rec-choice:has(input:checked) {
  border-color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 10%, var(--paper));
  color: var(--side);
}
.rec-choice-wrap { gap: 5px; }
.rec-details {
  margin: 10px 0; padding: 9px 12px;
  background: color-mix(in srgb, var(--surface-2) 45%, var(--paper));
  border: 1px dashed var(--line); border-radius: var(--radius-md);
}
.rec-details summary { cursor: pointer; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.rec-details[open] summary { margin-bottom: 9px; color: var(--ink); }

.rec-fu-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.rec-fu-row:first-child { padding-top: 2px; }
.rec-fu-row:last-child { border-bottom: 0; padding-bottom: 0; }
.rec-fu-main { min-width: 0; flex: 1; }
.rec-fu-card .rec-pend-actions { flex-direction: column; align-items: stretch; }
.rec-fu-card .rec-pend-actions .btn { white-space: nowrap; }
.rec-stu-name { font-size: var(--fs-sm); font-weight: 800; color: var(--side); }

.rec-mt-row { border-inline-start: 3px solid var(--line); padding-inline-start: 10px; }
.rec-mt-row.k-meeting { border-inline-start-color: #0ea5e9; }
.rec-mt-row.k-observation { border-inline-start-color: #f59e0b; }
.rec-mt-row:hover { background: color-mix(in srgb, var(--surface-2) 35%, transparent); }

/* ---------- حالت شب ---------- */
[data-theme="dark"] .rec-tabs { background: rgba(255, 255, 255, .025); }
[data-theme="dark"] .rec-kpi { background: var(--paper); }
[data-theme="dark"] .rec-tl-dot { box-shadow: 0 0 0 3px var(--bg); background: var(--paper); }
[data-theme="dark"] .rec-pend-row, [data-theme="dark"] .rec-latest-row { background: rgba(255, 255, 255, .025); }
[data-theme="dark"] .rec-tl-item { background: var(--paper); }
[data-theme="dark"] .rec-detail-text { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .rec-detail-grid > div, [data-theme="dark"] .rec-dossier-kpis > div { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .rec-tl-date span { background: rgba(4, 120, 87, .18); }
[data-theme="dark"] .rec-tpl { background: rgba(4, 120, 87, .1); }
[data-theme="dark"] .rec-seg { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .rec-seg-btn.active { background: #1a2b24; }
[data-theme="dark"] .rec-feature { background: var(--paper); }
[data-theme="dark"] .rec-feature-mt {
  background: radial-gradient(420px 160px at 92% -40%, rgba(14, 165, 233, .16), transparent 70%), var(--paper);
}
[data-theme="dark"] .rec-feature-ob {
  background: radial-gradient(420px 160px at 92% -40%, rgba(245, 158, 11, .16), transparent 70%), var(--paper);
}
[data-theme="dark"] .rec-choice { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .rec-stat { background: var(--paper); }

/* ---------- موبایل ---------- */
@media (max-width: 820px) {
  .rec-hero { padding: 16px; }
  .rec-hero-title { font-size: var(--fs-lg); }
  .rec-hero-actions { width: 100%; }
  .rec-hero-actions .btn { flex: 1 1 auto; }
  .rec-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .rec-tab { flex: 0 0 auto; min-width: 120px; }
  .rec-toolbar { grid-template-columns: 1fr 1fr; }
  .rec-pend-row, .rec-latest-row, .rec-list-row { flex-direction: column; }
  .rec-pend-actions { width: 100%; justify-content: flex-start; }
  .rec-split { grid-template-columns: 1fr; }
  .rec-stat-strip { grid-template-columns: 1fr 1fr; }
  .rec-form-row, .rec-form-row-3 { grid-template-columns: 1fr 1fr; }
  .rec-feature { padding: 14px 16px; }
  .rec-feature-actions { width: 100%; }
  .rec-feature-actions .btn { flex: 1 1 auto; }
  .rec-timeline { padding-right: 26px; }
  .rec-timeline::before { right: 11px; }
  .rec-tl-dot { right: -26px; width: 22px; height: 22px; font-size: 11px; }
}
@media (max-width: 520px) {
  .rec-toolbar { grid-template-columns: 1fr; }
  .rec-kpis { grid-template-columns: 1fr 1fr; }
  .rec-kpi { grid-template-columns: 28px 1fr; padding: 10px; }
  .rec-kpi b { font-size: var(--fs-xl); }
  .rec-form-row, .rec-form-row-3 { grid-template-columns: 1fr; }
  .rec-stat-strip { grid-template-columns: 1fr 1fr; }
  .rec-stat { padding: 11px 12px; }
  .rec-stat b { font-size: var(--fs-xl); }
  .rec-feature-main { align-items: flex-start; }
}

/* ---------- چاپ ---------- */
@media print {
  .rec-hero, .rec-tabs, .rec-toolbar, .rec-presets, .rec-card-tools,
  .rec-pend-actions, .rec-seg, .rec-scope-line, .rec-tpl-row,
  .rec-feature, .rec-stat-strip, .rec-side { display: none !important; }
  .rec-page { gap: 8px; }
  .rec-card { box-shadow: none; border: 0; padding: 0; }
  .rec-timeline { padding-right: 0; }
  .rec-timeline::before, .rec-tl-dot, .rec-tl-arrow { display: none; }
  .rec-tl-item { break-inside: avoid; }
}
