/* The student's sessions (student/sessions.js): home, his schedule, apology, make-up and the sessions waiting list, in
   the navy design canvas (student-home, -schedule, -apology, -makeup). Cards, notes, fields, .opt, chips, .pos and the
   sheet come from apply.css and student.css. */
.ss-ayah { font-weight: 700; }      /* an ayah position: drawn as the gold .pos beside it */
.ss-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
/* a soft dotted corner on the navy cards */
.ss-dots { position: absolute; top: 18px; left: 18px; width: 46px; height: 30px; opacity: .28; pointer-events: none;
  background-image: radial-gradient(#FFFFFF 1.3px, transparent 1.6px); background-size: 8px 8px; }
.ss-head-note { font-size: var(--text-sm); color: var(--ink-3); }
.card-head .card-title + .ss-head-note { text-align: end; }

/* home: the next session, the one navy card */
.ss-next { position: relative; overflow: hidden; gap: 0; padding: 18px 18px 16px; border-radius: var(--radius-xl); color: var(--on-accent);
  background: radial-gradient(300px 180px at 10% 0%, rgba(233, 211, 160, .14), transparent 65%), var(--grad); box-shadow: var(--shadow-deep); }
.ss-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }   /* + «تعويض من الشيخ» */
.ss-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .14); color: var(--on-accent); font-size: 12.5px; font-weight: 700; }
.ss-when { margin-top: 12px; font-size: 28px; font-weight: 800; line-height: 1.2; }
.ss-meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15.5px; color: rgba(255, 255, 255, .86); font-variant-numeric: tabular-nums; }
.ss-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ss-meta svg { color: #E9D3A0; }
.ss-meta > i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
/* «باقي» and the boxes: days, hours, minutes */
.ss-left { margin-top: 16px; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
.ss-left > span:first-child { align-self: center; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.ss-box { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 9px; border-radius: 14px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ss-box b { font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ss-box small { font-size: 12.5px; font-weight: 500; line-height: 1; color: rgba(255, 255, 255, .78); }
.ss-started { display: flex; align-items: center; gap: 8px; font-size: var(--text-base); font-weight: 700; }
.ss-started i { width: 9px; height: 9px; border-radius: 50%; background: #5BD68C; box-shadow: 0 0 0 4px rgba(91, 214, 140, .25); }
.ss-from { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--text-base); color: rgba(255, 255, 255, .86); }
.ss-from .pos { height: 28px; padding: 0 11px; font-size: 14.5px; }
.ss-next .btn.wide { margin-top: 16px; }
.ss-next .btn.primary { background: var(--surface); color: var(--brand); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
.ss-next .btn.primary:disabled { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.ss-next .muted-line { margin-top: 8px; text-align: center; font-size: var(--text-sm); color: rgba(255, 255, 255, .78); }
/* trial-only shortcuts: dashed, like the trial panel */
.ss-trial { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px dashed var(--gold-edge); border-radius: var(--radius-md); background: var(--amber-bg); color: var(--amber); font-size: var(--text-md); font-weight: 500; text-decoration: none; }
.ss-next .ss-trial { align-self: center; margin-top: 10px; border-color: rgba(233, 211, 160, .6); background: rgba(255, 249, 236, .08); color: #F2D79B; }

/* the sheikh apologized for a session */
.ss-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-card); background: var(--amber-bg); box-shadow: inset 0 0 0 1px #F0DDB4; color: var(--amber); }
.ss-alert svg { flex: none; margin-top: 3px; }
.ss-alert span { display: flex; flex-direction: column; gap: 2px; }
.ss-alert b { font-size: var(--text-input); font-weight: 700; }
.ss-alert small { font-size: var(--text-md); color: var(--ink); }
/* the sheikh's vacation: the days, his note, and each of the student's sessions in it */
.ss-vac > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ss-vac ul { margin: 2px 0 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 2px; font-size: var(--text-md); line-height: 1.6; color: var(--ink); }
.ss-prep { box-shadow: inset 0 0 0 1px #F0DDB4; }

/* shortcuts: one row, as many equal columns as there are shortcuts */
.ss-short { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.ss-short a { position: relative; min-height: 92px; padding: 14px 4px 12px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; font-weight: 700; text-align: center; text-decoration: none;
  transition: transform 150ms var(--ease), box-shadow 200ms ease; }
.ss-short a:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .ss-short a:hover { box-shadow: var(--shadow-lift); } }
.ss-short .dot { top: 11px; inset-inline-end: auto; left: calc(50% - 24px); width: 11px; height: 11px; border-width: 2.5px; }

/* the last report: the score ring, the grade, the positions, the mistakes */
.ss-report { display: flex; align-items: center; gap: 16px; }
.ss-score { position: relative; flex: none; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--navy-2) calc(var(--p) * 1%), var(--fill-2) 0); }
.ss-score::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ss-score b { position: relative; font-size: 20px; font-weight: 800; line-height: 1; color: var(--ink); }
.ss-rep-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--text-md); color: var(--ink-2); }
.ss-rep-day { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.ss-rep-day b { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.ss-rep-pos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ss-rep-pos > [aria-hidden] { color: var(--ink-3); }
.ss-rep-text small { display: flex; align-items: center; gap: 8px; font-size: var(--text-md); }
.ss-mist { display: inline-flex; gap: 3px; }
.ss-mist span { width: 14px; height: 6px; border-radius: 3px; background: var(--fill-2); }
.ss-mist span.on { background: var(--gold-mark); }

/* schedule: the fixed times as tiles */
.ss-fixed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ss-fixed li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ss-slot { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius-lg); background: var(--fill); }
.ss-slot-day { display: flex; align-items: center; gap: 7px; font-size: var(--text-base); font-weight: 700; color: var(--ink-2); }
.ss-slot-day svg { flex: none; color: var(--navy-2); }
.ss-slot b { font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--brand); font-variant-numeric: tabular-nums; }
.ss-slot small { font-size: 13.5px; color: var(--ink-3); }
.ss-wl { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--amber-bg); color: var(--amber); font-size: var(--text-md); text-decoration: none; }
.ss-wl span { flex: 1; }

/* the sessions ahead: a timeline (the day, a mark on the line, the time and what happened to it) */
.ss-plan { gap: 4px; padding: 16px 6px 8px; }
.ss-plan > .card-head { padding: 0 10px 6px; }
.ss-tl { list-style: none; margin: 0; padding: 0; }
.ss-row { position: relative; display: grid; grid-template-columns: 64px 16px minmax(0, 1fr); gap: 0 12px; padding: 14px 10px; border-radius: 14px; }
.ss-tl > li + li .ss-row::before { content: ""; position: absolute; top: 0; inset-inline: 10px; height: 1px; background: var(--line); }
.ss-date { display: flex; flex-direction: column; line-height: 1.35; font-size: var(--text-sm); color: var(--ink-3); }
.ss-date b { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.ss-mark { position: relative; }
.ss-mark::before { content: ""; position: absolute; top: -14px; bottom: -14px; left: 50%; width: 1.5px; margin-left: -.75px; background: var(--fill-2); }
.ss-tl > li:first-child .ss-mark::before { top: 22px; }
.ss-tl > li:last-child .ss-mark::before { bottom: calc(100% - 22px); }
.ss-mark i { position: absolute; top: 22px; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.8px #C3CADB; }
.ss-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ss-clock { font-size: var(--text-input); font-weight: 800; line-height: 1.35; font-variant-numeric: tabular-nums; }
.ss-clock span { font-size: var(--text-md); font-weight: 500; color: var(--ink-2); }
.ss-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ss-chips small { font-size: 13.5px; color: var(--ink-3); }
.ss-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--text-md); line-height: 1.5; color: var(--ink-2); }
.is-next .ss-row { background: var(--navy-wash); }
.is-next .ss-row::before, .is-next + li .ss-row::before { display: none; }
.is-next .ss-mark i { background: var(--navy-2); box-shadow: 0 0 0 4px rgba(42, 75, 158, .18); }
.is-makeup .ss-mark i { background: var(--gold-mark); box-shadow: 0 0 0 4px rgba(185, 138, 52, .18); }
.ss-off .ss-date b, .ss-off .ss-clock { color: var(--ink-3); }
.ss-off .ss-mark i { background: var(--fill-2); box-shadow: none; }
.ss-chips .link-btn { min-height: 32px; padding: 0 8px; border: 0; background: none; color: var(--danger); font-size: var(--text-md); font-weight: 700; }

/* apology: when it is on time, then one session, radio-like */
.ss-step { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.ss-step .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; }
.ss-optional { font-weight: 500; font-size: var(--text-base); color: var(--ink-3); }
.ss-rule { gap: 0; }
.ss-rule h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.ss-rule-bar { display: flex; gap: 2px; height: 40px; border-radius: 12px; overflow: hidden; font-size: var(--text-sm); font-weight: 700; line-height: 1.2; }
.ss-rule-bar span { display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.ss-rule-bar .ok { flex: 1; background: var(--live-soft); color: var(--live); }
.ss-rule-bar .late { flex: 0 0 31%; background: var(--amber-bg); color: var(--amber); }
.ss-rule-ticks { position: relative; height: 20px; margin-top: 6px; font-size: var(--text-xs); color: var(--ink-3); }
.ss-rule-ticks span { position: absolute; top: 0; white-space: nowrap; }
.ss-rule-ticks span:nth-child(1) { right: 0; }
.ss-rule-ticks span:nth-child(2) { left: 31%; transform: translateX(-50%); }
.ss-rule-ticks span:nth-child(3) { left: 0; }
.ss-rule p { margin: 10px 0 0; display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; }
.ss-rule p svg { flex: none; margin-top: 3px; }
.ss-rule p.ok svg { color: var(--live); }
.ss-rule p.late svg { color: var(--amber); }
.ss-opt { width: 100%; min-height: 64px; }
.ss-opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.ss-opt-text b { font-size: var(--text-input); font-weight: 700; }
.ss-opt-text small { font-size: var(--text-md); font-weight: 400; color: var(--ink-2); }
.ss-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C3CADB; display: grid; place-items: center; transition: border-color 150ms ease; }
.ss-opt[aria-pressed="true"] { background: var(--navy-wash); box-shadow: inset 0 0 0 2px var(--navy-2); }
.ss-opt[aria-pressed="true"] .ss-radio { border-color: var(--navy-2); }
.ss-opt[aria-pressed="true"] .ss-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-2); }
.ss-switch { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px dashed var(--gold-edge); border-radius: var(--radius-md); background: var(--amber-bg); color: var(--amber); font-size: var(--text-md); font-weight: 500; cursor: pointer; }
.ss-switch input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--amber); }
.ss-reason { gap: 8px; }
.ss-reason > label.ss-step { font-size: 17px; }
/* the bar at the bottom of a form: what he is about to send, then the button */
.sapp .foot { margin-top: 8px; padding-top: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 -1px 0 var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ss-sum { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--text-md); color: var(--ink-2); }
.ss-sum b { color: var(--ink); font-weight: 700; text-align: end; }


/* sessions waiting list */
.ss-status { flex-direction: row; align-items: center; gap: 12px; }
.ss-status .ss-ico { background: var(--amber-bg); color: var(--amber); }
.ss-status b { font-size: var(--text-base); font-weight: 700; line-height: 1.5; }
/* graduated or stopped: in place of his sessions (home and جدولي) */
.ss-status-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-status-t small { font-size: var(--text-md); color: var(--ink-2); }
.ss-status-t .link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-size: var(--text-base); }
.ss-done { background: #FCF8EF; box-shadow: inset 0 0 0 1px var(--gold-edge); }
.ss-done .ss-ico { background: var(--gold); color: var(--gold-ink); }
.ss-wants { display: flex; flex-direction: column; gap: 8px; }
.ss-want-row { display: grid; grid-template-columns: 62px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; }
.ss-want-row b { font-size: var(--text-md); font-weight: 700; }
.ss-want { min-height: 44px; padding: 0 4px; border: 0; border-radius: var(--radius-md); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-md); font-weight: 500; }
.ss-want[aria-pressed="true"] { background: var(--navy-wash); color: var(--brand); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--navy-2); }
.ss-leave { color: var(--danger); }
.ss-danger { background: var(--danger); border-color: var(--danger); color: var(--on-accent); box-shadow: none; }
