/* الجدول المنشور من اللوحة — كما يراه الطالب، وكما يظهر في المعاينة */

.sched {
  --main: #0f4c3a;
  margin: 0 0 22px; padding: 14px;
  background: #fff; border: 1px solid #e2dccd; border-radius: 12px; box-shadow: var(--shadow, none);
  font-family: var(--font, "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif); color: #1d2a26;
}
.sched-head { display: flex; align-items: center; gap: 12px; padding: 2px 2px 12px; }
.sched-head img { width: 70px; height: 70px; flex: none; }
.sched-org { font-size: .78rem; color: #5d6b66; }
.sched-head h2 { margin: 0; font-size: 1.3rem; line-height: 1.5; color: var(--main); }
.sched-title { font-size: .92rem; font-weight: 700; line-height: 1.6; }
.sched-period { font-size: .8rem; color: #4f5d58; }

.sched-scroll { overflow-x: auto; margin: 0 -14px; padding: 0 14px; -webkit-overflow-scrolling: touch; }
.sched table { width: 100%; min-width: calc(54px + var(--cols, 4) * 70px); border-collapse: collapse; table-layout: fixed; }
.sched col.c-time { width: 54px; }
.sched th, .sched td { border: 1px solid #cfc8b6; text-align: center; vertical-align: middle; }
.sched thead th { background: var(--main); color: #fff; font-size: .82rem; line-height: 1.5; padding: 7px 2px; border-color: var(--main); }
.sched thead th small { display: block; font-size: .72rem; font-weight: 400; opacity: .92; }
.sched tr.day th { background: #c9a24a; color: #1d2a26; font-size: .95rem; padding: 6px; border-color: #c9a24a; }
.sched td { padding: 6px 3px; height: 50px; }
.sched tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--main) 4%, #fff); }
.sched td.t { background: color-mix(in srgb, var(--main) 9%, #fff) !important; font-size: .78rem; font-weight: 700; color: var(--main); direction: ltr; line-height: 1.45; }
.sched .s { font-size: .86rem; font-weight: 700; line-height: 1.45; }
.sched .p { font-size: .76rem; color: #4f5d58; line-height: 1.5; }
.sched .r { display: inline-block; margin-top: 2px; padding: 0 7px; border-radius: 9px; font-size: .68rem; background: color-mix(in srgb, var(--main) 12%, #fff); color: var(--main); }

/* شريط حالة النشر في المحرر */
.pubbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid; }
.pubbar .btn, .pubbar form { margin: 0; }
.pubbar-text { flex: 1 1 240px; }
.pubbar.is-live { background: #e8f3ec; border-color: #b9d8c4; }
.pubbar.is-dirty { background: #fbf6e6; border-color: #ecdcae; }
.pubbar.is-none { background: #f1efe9; border-color: #dcd6c6; }
.preview-frame { max-width: 720px; margin: 0 auto; }

@media print {
  .sched { border: 0; padding: 0; }
  .sched-scroll { overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
