/* ==========================================================================
   SESSIONS & COMPACT STUDENTS FILTER HUB (REFINED TYPOGRAPHY & VISUALS)
   ========================================================================== */
.session-filter-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 18px 20px;
  flex-wrap: wrap;
}
.session-filter-row label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  min-width: 180px;
}
.session-filter-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 12px;
  background: #fff;
  color: #1e293b;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}
.session-filter-row input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}
.session-filter-row input[type=date] {
  direction: ltr;
  min-width: 165px;
}
.session-search-label {
  flex: 1;
}
.session-status {
  padding: 0 20px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
}
.session-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.session-totals .kpi-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 104px;
}
.session-totals strong {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
}
.session-totals span {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}
.session-student-id {
  display: block;
  font-size: 11.5px;
  direction: ltr;
  text-align: right;
  color: #94a3b8;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-detail {
  padding: 14px 12px;
  background: #f8fafc;
  white-space: normal;
  border-radius: 10px;
}
.session-detail h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 4px 8px 14px;
}
.session-detail p,
.session-footnote {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.8;
}
.session-detail .data-table {
  min-width: 740px;
}
.session-pages td {
  font-size: 12.5px !important;
  color: #475569;
  white-space: normal !important;
}
.session-pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
}
.session-footnote {
  margin: 16px 0;
}
#pane-sessions > .panel > .table-scroll > .data-table {
  min-width: 900px;
}
#pane-sessions {
  min-width: 0;
}
.session-mobile-meta {
  display: none;
}

/* ==========================================================================
   COMPACT 2-ROW STUDENTS COMMAND TOOLBAR
   ========================================================================== */
.students-filter-hub {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.25s ease;
}
.students-filter-hub:hover {
  box-shadow: 0 8px 25px -4px rgba(79, 70, 229, 0.07), 0 2px 6px rgba(15, 23, 42, 0.03);
}
.students-filter-hub .toolbar-filter-strip {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar-inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}
.students-sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.students-sub-bar .quick-filter-chips {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.student-day-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 5px 12px;
  margin: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.student-day-filter:focus-within {
  background: #ffffff;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.student-day-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.student-day-filter label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}
.student-day-filter label i {
  color: #6366f1;
}
.student-day-filter input[type="date"] {
  min-height: 31px;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  direction: ltr;
  background: #ffffff;
  transition: border-color 0.2s ease;
}
.student-day-filter p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: #4338ca;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
}
.reg-date-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.data-table tbody tr:hover .reg-date-badge {
  background: #ffffff;
  border-color: #c7d2fe;
  color: #3730a3;
}
.student-day-details {
  display: inline-flex !important;
  align-items: center;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  margin-top: 4px;
  padding: 2px 8px;
  background: #eff6ff;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .session-totals {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .session-totals .kpi-card {
    min-height: auto;
    padding: 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .students-sub-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .student-day-filter {
    justify-content: space-between;
  }
}
