/* =========================================================
   Reception bosh sahifasi: bugungi darslar, to'lovlar, qarzdorlar.
   Kassa kartochkalari payments.css dagi .pay-kpis bilan umumiy.
   ========================================================= */
.rh-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rh-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.rh-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.rh-head small { color: var(--muted); font-size: 12px; }
.rh-head a { color: var(--accent); text-decoration: none; }

/* Darslar: har biri bitta qatorda */
.rh-lesson {
  display: grid; grid-template-columns: 56px 120px minmax(0, 1fr) 70px 170px;
  align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.rh-box > .rh-lesson:last-child { border-bottom: 0; }
.rh-lesson a { color: inherit; text-decoration: none; font-weight: 500; }
.rh-lesson a:hover { color: var(--accent); }
.rh-time { font-weight: 600; }
.rh-size { color: var(--muted); }
.rh-state { justify-self: end; }
.rh-lesson.done { color: var(--muted); }
.rh-lesson.now { background: var(--accent-bg); }
.rh-lesson.now .rh-time { color: var(--accent); }
.rh-lesson.next .rh-time { color: var(--text); }
.rh-soon { color: var(--muted); font-size: 12px; }
.rh-mark { color: var(--warning); }

/* O'tgan va belgilangan darslar: bitta qatorga yig'iladi */
.rh-done summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--success); font-size: 13px;
}
.rh-done summary::-webkit-details-marker { display: none; }
.rh-done summary .ti-chevron-down { margin-left: auto; color: var(--muted); transition: transform 0.15s; }
.rh-done[open] summary .ti-chevron-down { transform: rotate(180deg); }

/* To'lovlar va qarzdorlar */
.rh-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.rh-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: inherit; text-decoration: none;
}
a.rh-row:hover { background: var(--surface-2); }   /* butun qator havola: qarzdorlar */
.rh-row .icon-btn { flex: none; }
.rh-text { flex: 1; min-width: 0; }
.rh-text small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-link { color: inherit; text-decoration: none; }  /* to'lov qatori: ism → o'quvchi */
.rh-link:hover { color: var(--accent); }
.rh-amount { font-weight: 600; white-space: nowrap; }
.rh-muted { color: var(--muted); }
.rh-danger { color: var(--danger); }
.rh-warn { color: var(--warning); }
.tag.rh-old { background: var(--danger-bg); color: var(--danger); }
.rh-more { display: block; padding: 9px 14px; font-size: 12px; color: var(--accent); text-decoration: none; }
.rh-empty { margin: 0; padding: 18px 14px; color: var(--muted); font-size: 13px; }
.rh-queue { color: var(--warning); text-decoration: none; }
.rh-queue:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .rh-cols { grid-template-columns: 1fr; }
  .rh-lesson { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .rh-lesson .rh-teacher, .rh-lesson .rh-size { display: none; }
}