/* ========================================
   GESTIO ACADEMICA — Master-Detail Layout
   ======================================== */

/* ========================================
   LAYOUT GRID
   ======================================== */

body[data-page="gestio-academica"] {
  overflow: hidden;
  height: 100vh;
  padding-top: 0; /* Override header.css body padding — ga-layout gestiona el seu propi padding */
}

.ga-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: 100vh;
  padding-top: 52px;
  position: relative;
  overflow: hidden;
}

/* ========================================
   SIDEBAR
   ======================================== */

.ga-sidebar {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
  z-index: 2;
}

.ga-sidebar-header {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.ga-sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.ga-sidebar-title-row h1 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.ga-course-selector {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.ga-course-selector select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}

.ga-course-selector select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(19, 117, 188, 0.15);
}

.btn-nou-curs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg-base);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-nou-curs:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-nou-curs .material-symbols-outlined {
  font-size: 18px;
}

.btn-nou-curs-danger:hover {
  background: var(--color-danger, #FF453A);
  color: white;
  border-color: var(--color-danger, #FF453A);
}

.ga-sidebar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-base);
}

.ga-sidebar-search .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.ga-sidebar-search input {
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  padding: 8px 0;
  width: 100%;
  outline: none;
}

.ga-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-sm) 0;
}

.ga-sidebar-footer {
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.ga-sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: all 0.2s;
}

.ga-sidebar-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.ga-sidebar-btn .material-symbols-outlined {
  font-size: 16px;
}

/* ========================================
   SIDEBAR — Formacio sections
   ======================================== */

.ga-formacio-section {
  margin-bottom: 2px;
}

.ga-formacio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-lg);
  cursor: pointer;
  user-select: none;
  gap: var(--spacing-sm);
  transition: background 0.15s;
}

.ga-formacio-header:hover {
  background: var(--color-bg-hover);
}

.ga-formacio-header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
  min-width: 0;
}

.ga-formacio-color {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ga-formacio-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-primary);
}

.ga-formacio-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(142, 142, 147, 0.12);
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.ga-formacio-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ga-formacio-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.ga-formacio-header:hover .ga-formacio-actions {
  opacity: 1;
}

.ga-formacio-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.ga-formacio-action-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.ga-formacio-action-btn.btn-eliminar:hover {
  background: rgba(255, 69, 58, 0.1);
  color: #FF453A;
}

.ga-formacio-action-btn .material-symbols-outlined {
  font-size: 16px;
}

.ga-formacio-chevron {
  color: var(--color-text-tertiary);
  transition: transform 0.2s;
  font-size: 18px;
}

.ga-formacio-section.open .ga-formacio-chevron {
  transform: rotate(180deg);
}

/* ========================================
   SIDEBAR — Grup items + new group button
   ======================================== */

.ga-grups-list {
  display: none;
  padding: 2px var(--spacing-md) var(--spacing-sm);
}

.ga-formacio-section.open .ga-grups-list {
  display: block;
}

.ga-grup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
  gap: var(--spacing-sm);
}

.ga-grup-item:hover {
  background: var(--color-bg-hover);
}

.ga-grup-item.active {
  background: rgba(19, 117, 188, 0.1);
}

.ga-grup-item-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
  min-width: 0;
}

.ga-grup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ga-grup-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ga-grup-item.active .ga-grup-name {
  color: var(--color-primary);
  font-weight: 600;
}

.ga-grup-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.ga-grup-chevron {
  font-size: 16px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.ga-grup-item.active .ga-grup-chevron {
  color: var(--color-primary);
}

.ga-btn-nou-grup {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  margin: 4px 0 0 20px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: all 0.15s;
}

.ga-btn-nou-grup:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.ga-btn-nou-grup .material-symbols-outlined {
  font-size: 14px;
}

/* Sidebar section labels (FP / FTF) */
.ga-sidebar-section-label {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-md);
}

.ga-sidebar-section-label:first-of-type {
  margin-top: 0;
}

.ga-sidebar-ftf-label {
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
}

/* Departament sections inside FTF */
.ga-departament-section {
  margin: 0 var(--spacing-sm);
}

.ga-departament-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.ga-departament-header:hover {
  background: var(--color-bg-hover);
}

.ga-departament-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ga-departament-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ga-departament-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.ga-departament-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.ga-departament-body {
  display: none;
  padding-left: var(--spacing-sm);
}

.ga-departament-section.open .ga-departament-body {
  display: block;
}

.ga-departament-section.open > .ga-departament-header .ga-formacio-chevron {
  transform: rotate(180deg);
}

/* Days badge on group items */
.ga-dies-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-surface);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  margin-left: 4px;
}

/* Days pills toggle (modal nou grup) */
.ga-dies-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ga-dia-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ga-dia-pill:hover {
  border-color: var(--color-primary);
}

.ga-dia-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.form-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* New formation button */
.ga-btn-nova-formacio {
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(100% - 32px);
  margin: var(--spacing-md) auto;
  padding: 10px 16px;
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.ga-btn-nova-formacio:hover {
  background: rgba(var(--color-primary-rgb, 68, 113, 181), 0.08);
}

.ga-btn-nova-formacio .material-symbols-outlined {
  font-size: 18px;
}

/* All students sidebar item */
.ga-all-students-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px var(--spacing-lg);
  margin-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.ga-all-students-item:hover {
  background: var(--color-bg-hover);
}

.ga-all-students-item.active {
  background: rgba(19, 117, 188, 0.1);
  color: var(--color-primary);
}

.ga-all-students-item .material-symbols-outlined {
  font-size: 20px;
}

.ga-sidebar-empty {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
}

/* ========================================
   DETAIL PANEL
   ======================================== */

.ga-detail {
  height: calc(100vh - 52px);
  padding: var(--spacing-lg) var(--spacing-xl);
  padding-bottom: calc(80px + var(--spacing-lg));
  overflow-y: auto;
}

.ga-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: var(--spacing-md);
  color: var(--color-text-tertiary);
}

.ga-empty-state .material-symbols-outlined {
  font-size: 56px;
}

.ga-empty-state p {
  font-size: var(--font-size-sm);
  margin: 0;
}

.ga-back-btn {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  margin-bottom: var(--spacing-md);
  border: none;
  background: none;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
}

.ga-back-btn .material-symbols-outlined {
  font-size: 20px;
}

/* ========================================
   DETAIL — Header
   ======================================== */

.ga-detail-header {
  margin-bottom: var(--spacing-lg);
}

.ga-detail-header-info h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 4px;
}

.ga-detail-header-sub {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.ga-detail-header-sub .material-symbols-outlined {
  font-size: 16px;
}

/* KPI Row */
.ga-kpi-row {
  display: flex;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.ga-kpi {
  flex: 1;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
}

.ga-kpi-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.ga-kpi-label {
  font-size: 11px;
  color: var(--color-text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.ga-kpi.kpi-blue .ga-kpi-value { color: #0A84FF; }
.ga-kpi.kpi-green .ga-kpi-value { color: #30D158; }
.ga-kpi.kpi-orange .ga-kpi-value { color: #FF9F0A; }

/* Action Toolbar */
.ga-action-toolbar {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.ga-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-size: var(--font-size-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.ga-action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.ga-action-btn.btn-danger {
  color: var(--color-text-tertiary);
}

.ga-action-btn.btn-danger:hover {
  border-color: #FF453A;
  color: #FF453A;
  background: rgba(255, 69, 58, 0.06);
}

.ga-action-btn .material-symbols-outlined {
  font-size: 16px;
}

/* ========================================
   DETAIL — Tabs (Segmented Control)
   ======================================== */

.ga-detail-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

.ga-detail-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: calc(var(--radius-lg) - 4px);
  background: transparent;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ga-detail-tab:hover {
  background: var(--color-bg-hover);
}

.ga-detail-tab.active {
  background: var(--color-primary);
  color: white;
}

.ga-detail-tab .material-symbols-outlined {
  font-size: 18px;
}

/* ========================================
   DETAIL — Tab Body
   ======================================== */

.ga-detail-body {
  min-height: 200px;
}

/* Resum group info */
.ga-grup-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.ga-grup-info-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.ga-grup-info-row .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-text-tertiary);
}

.ga-grup-info-row strong {
  color: var(--color-text-primary);
}

/* ========================================
   SUBJECT CARDS
   ======================================== */

.ga-subjects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 1200px) {
  .ga-subjects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ga-subject-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.15s;
}

.ga-subject-card:hover {
  box-shadow: var(--shadow-sm);
}

.ga-subject-card-body {
  flex: 1;
  min-width: 0;
}

.ga-subject-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.assig-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.ga-subject-card-prof {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.ga-subject-card-schedule {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.ga-subject-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ga-subject-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.ga-subject-action-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.ga-subject-action-btn.btn-eliminar:hover {
  background: rgba(255, 69, 58, 0.1);
  color: #FF453A;
}

.ga-subject-action-btn .material-symbols-outlined {
  font-size: 16px;
}

.ga-subjects-empty,
.ga-students-empty {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
}

.ga-btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.ga-btn-add:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.ga-btn-add .material-symbols-outlined {
  font-size: 20px;
}

/* ========================================
   STUDENT CARDS (Tab Alumnes inside detail)
   ======================================== */

.ga-students-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.ga-student-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  gap: var(--spacing-md);
  transition: background 0.15s;
}

.ga-student-card:hover {
  background: var(--color-bg-hover);
}

.ga-student-card-body {
  flex: 1;
  min-width: 0;
}

.ga-student-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

.ga-student-email {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.ga-student-grup-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(10, 132, 255, 0.12);
  color: #0A84FF;
  margin-top: 4px;
}

.ga-student-tutor {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.ga-student-tutor-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

.ga-student-tutor-toggle .material-symbols-outlined {
  font-size: 14px;
  transition: transform 0.2s;
}

.ga-student-tutor-toggle.open .material-symbols-outlined {
  transform: rotate(180deg);
}

.ga-student-tutor-details {
  display: none;
  margin-top: 4px;
  padding-left: 18px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.ga-student-tutor-details.open {
  display: block;
}

.ga-student-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-self: center;
}

/* Reuse subject action btn styles for student actions */
.ga-student-actions .ga-subject-action-btn {
  /* already defined */
}

/* ========================================
   ALUMNES TABLE + AVATAR
   ======================================== */

.alumnes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.alumnes-table thead th {
  text-align: left;
  padding: 8px 10px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.alumnes-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  vertical-align: middle;
}

.alumnes-table tbody tr:hover {
  background: var(--color-bg-hover);
}

.alumne-cell-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alumne-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.alumne-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alumne-avatar-placeholder .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-text-tertiary);
}

.alumne-avatar-clickable {
  cursor: pointer;
  transition: opacity 0.15s;
}

.alumne-avatar-clickable:hover {
  opacity: 0.75;
}

.alumne-cell-name {
  font-weight: 500;
  color: var(--color-text-primary);
}

.alumne-cell-email {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.alumne-grup-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(10, 132, 255, 0.12);
  color: #0A84FF;
}

.alumne-actions-wrap {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
}

.alumne-cell-tutor .tutor-contact {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

/* Pare-Fill modal */
.pares-llista {
  margin-bottom: var(--space-3, 12px);
}

.pares-empty {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm, 0.85rem);
}

.pare-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2, 8px) 0;
  border-bottom: 1px solid var(--color-border);
}

.pare-item-email {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm, 0.85rem);
  margin-left: var(--space-2, 8px);
}

/* Avatar inside student cards (detail tab) */
.ga-student-card {
  align-items: center;
}

.ga-student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ga-student-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ga-student-avatar-placeholder .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-text-tertiary);
}

/* ========================================
   ALUMNES FILTERS + TOOLBAR (All Students view)
   ======================================== */

.alumnes-filters {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.alumnes-filters select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  min-width: 140px;
}

.alumnes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.alumnes-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.alumnes-toolbar-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Inline student toolbar inside detail tab */
.ga-tab-students-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.ga-tab-students-toolbar .alumnes-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ========================================
   SHARE SECTION
   ======================================== */

.share-section {
  padding: var(--spacing-sm) 0;
}

.share-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.share-url-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  min-width: 0;
}

.share-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-ical-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-accent, #0A84FF);
  background: none;
  border: 1px solid var(--color-accent, #0A84FF);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ical-link:hover {
  background: rgba(10, 132, 255, 0.1);
}

.btn-ical-link .material-symbols-outlined {
  font-size: 16px;
}

/* ========================================
   SHARED BUTTONS
   ======================================== */

.btn-petit {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-petit:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-petit .material-symbols-outlined {
  font-size: 14px;
}

.btn-primary-text {
  color: var(--color-accent, #0A84FF) !important;
}

.btn-danger-text {
  color: #FF453A !important;
}

.btn-danger-text:hover {
  background: rgba(255, 69, 58, 0.1) !important;
}

/* ========================================
   MODALS — Page-specific overrides
   (Base modal styles in shared-components.css)
   ======================================== */

.modal-content.modal-wizard {
  max-width: 580px;
}

.modal-content.modal-petit {
  max-width: 420px;
}

.modal-content.modal-import-csv {
  max-width: 600px;
}

.modal-content.modal-nou-alumne {
  max-width: 480px;
}

.wizard-spacer {
  flex: 1;
}

/* Form & button base styles in shared-components.css */

/* ========================================
   WIZARD STEPS
   ======================================== */

.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  transition: all 0.2s;
}

.wizard-step.active {
  background: rgba(10, 132, 255, 0.12);
  color: #0A84FF;
}

.wizard-step.done {
  color: #30D158;
}

.wizard-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid currentColor;
}

.wizard-step.active .wizard-step-num {
  background: #0A84FF;
  color: white;
  border-color: #0A84FF;
}

.wizard-step.done .wizard-step-num {
  background: #30D158;
  color: white;
  border-color: #30D158;
}

.wizard-step-label {
  font-weight: 500;
}

/* Day selector */
.selector-dies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dia-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg-base);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dia-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.dia-btn.actiu {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.wizard-preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(48, 209, 88, 0.08);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: #30D158;
}

.wizard-preview .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
}

/* Aules disponibilitat */
.aules-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-height: 320px;
  overflow-y: auto;
}

.aula-group-header {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--spacing-xs) 0;
  margin-top: var(--spacing-xs);
}

.aula-group-header:first-child {
  margin-top: 0;
}

.aula-group-subheader {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-tertiary);
  padding: 2px 0 2px var(--spacing-sm);
}

.aula-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  gap: var(--spacing-md);
}

.aula-option:hover {
  border-color: var(--color-primary);
}

.aula-option.selected {
  border-color: var(--color-primary);
  background: rgba(10, 132, 255, 0.06);
}

.aula-option.conflicte {
  opacity: 0.5;
  cursor: not-allowed;
}

.aula-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aula-option-nom {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

.aula-option-detall {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.aula-option-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  flex-shrink: 0;
}

.aula-option-status.lliure { color: #30D158; }
.aula-option-status.parcial { color: #FF9F0A; }
.aula-option-status.ocupada { color: #FF453A; }

/* Color picker */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-picker-row input[type="color"] {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  background: none;
}

.color-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-preset {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}

.color-preset:hover {
  transform: scale(1.15);
}

.color-preset.selected {
  border-color: var(--color-text-primary);
}

/* Misc from old modals still used */
.duplicar-grup-info {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding: var(--spacing-sm);
  background: rgba(10, 132, 255, 0.06);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.duplicar-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin: 0;
}

.inscriure-grup-info {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding: var(--spacing-sm);
  background: rgba(10, 132, 255, 0.06);
  border-radius: var(--radius-sm);
}

/* Nou alumne modal — Avatar picker */
.nou-alumne-avatar-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.nou-alumne-avatar-picker {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-base);
}

.nou-alumne-avatar-picker:hover {
  border-color: var(--color-primary);
  background: rgba(19, 117, 188, 0.04);
}

.nou-alumne-avatar-picker .material-symbols-outlined {
  font-size: 28px;
  color: var(--color-text-tertiary);
}

.nou-alumne-avatar-picker:hover .material-symbols-outlined {
  color: var(--color-primary);
}

.nou-alumne-avatar-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nou-alumne-avatar-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

/* Tutor section — collapsible toggle */
.tutor-fields-section {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.tutor-section-toggle {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  user-select: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--spacing-xs) 0;
  transition: color 0.15s;
}

.tutor-section-toggle:hover {
  color: var(--color-text-primary);
}

.tutor-section-toggle .material-symbols-outlined {
  font-size: 18px;
}

.tutor-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}

.tutor-section-toggle.open .tutor-chevron {
  transform: rotate(180deg);
}

.tutor-fields-body {
  padding-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.tutor-section-title {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

/* CSV import specific */
.csv-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xl);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.csv-drop-zone:hover,
.csv-drop-zone.drag-over {
  border-color: var(--color-primary);
  background: rgba(10, 132, 255, 0.04);
}

.csv-drop-zone.has-file {
  border-color: #30D158;
  background: rgba(48, 209, 88, 0.06);
}

.csv-drop-zone .material-symbols-outlined {
  font-size: 36px;
  color: var(--color-text-tertiary);
}

.csv-drop-zone p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.csv-format-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin: 0;
}

.csv-preview-container {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
}

.csv-preview-count {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.csv-preview-table-wrap {
  overflow-x: auto;
  max-height: 240px;
  overflow-y: auto;
}

.csv-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-xs);
}

.csv-preview-table thead th {
  text-align: left;
  padding: 6px 8px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg-card);
}

.csv-preview-table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.csv-row-error {
  background: rgba(255, 69, 58, 0.06);
}

.csv-error-badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background: #FF453A;
  color: white;
  font-size: 10px;
  font-weight: 700;
}

.import-hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.detall-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.detall-section-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.text-muted {
  color: var(--color-text-tertiary);
  font-style: italic;
}

/* ========================================
   STATES
   ======================================== */

.estado-loading,
.estado-empty,
.estado-error {
  text-align: center;
  padding: 60px 20px;
}

/* Spinner in shared-components.css */

.estado-empty .material-symbols-outlined,
.estado-error .material-symbols-outlined {
  font-size: 56px;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

.estado-empty p,
.estado-error p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* ========================================
   DARK MODE
   ======================================== */

@media (prefers-color-scheme: dark) {
  .ga-sidebar {
    background: rgba(30, 30, 30, 0.95);
    border-right-color: rgba(255, 255, 255, 0.1);
  }

  .ga-sidebar-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .ga-sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .ga-course-selector select {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text-primary);
    color-scheme: dark;
  }

  .ga-sidebar-search {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .ga-sidebar-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .ga-formacio-header:hover,
  .ga-grup-item:hover,
  .ga-all-students-item:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .ga-grup-item.active {
    background: rgba(19, 117, 188, 0.15);
  }

  .ga-all-students-item.active {
    background: rgba(19, 117, 188, 0.15);
  }

  .ga-formacio-badge {
    background: rgba(255, 255, 255, 0.1);
  }

  .ga-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .ga-subject-card,
  .ga-student-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .ga-subject-card:hover,
  .ga-student-card:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .ga-student-tutor {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .ga-student-grup-badge {
    background: rgba(10, 132, 255, 0.18);
  }

  .ga-btn-add {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .ga-btn-nou-grup {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .ga-btn-nova-formacio {
    border-color: var(--color-primary);
  }

  .ga-btn-nova-formacio:hover {
    background: rgba(68, 113, 181, 0.15);
  }

  .ga-all-students-item {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .btn-nou-curs {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .btn-nou-curs:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
  }

  .btn-petit {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  /* Modal/form/button dark mode in shared-components.css */

  .wizard-steps {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  /* Form input dark mode in shared-components.css */

  .dia-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .aula-option {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .aula-option.selected {
    background: rgba(10, 132, 255, 0.1);
    border-color: #0A84FF;
  }

  .wizard-preview {
    background: rgba(48, 209, 88, 0.12);
  }

  .duplicar-grup-info,
  .inscriure-grup-info {
    background: rgba(10, 132, 255, 0.1);
  }

  .tutor-fields-section {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .nou-alumne-avatar-picker {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
  }

  .nou-alumne-avatar-picker:hover {
    border-color: #0A84FF;
    background: rgba(10, 132, 255, 0.1);
  }

  .alumnes-table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .alumnes-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .alumnes-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .alumne-avatar-placeholder,
  .ga-student-avatar-placeholder {
    background: rgba(255, 255, 255, 0.08);
  }

  .alumne-grup-badge {
    background: rgba(10, 132, 255, 0.18);
  }

  .csv-drop-zone {
    border-color: rgba(255, 255, 255, 0.15);
  }

  .csv-drop-zone:hover,
  .csv-drop-zone.drag-over {
    border-color: #0A84FF;
    background: rgba(10, 132, 255, 0.08);
  }

  .csv-drop-zone.has-file {
    border-color: #30D158;
    background: rgba(48, 209, 88, 0.1);
  }

  .csv-preview-container {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .csv-preview-table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: var(--color-bg-card);
  }

  .csv-preview-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .csv-row-error {
    background: rgba(255, 69, 58, 0.1);
  }
}

/* ========================================
   RESPONSIVE — Tablet (768-1023px)
   ======================================== */

@media (max-width: 1023px) {
  .ga-layout {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 52px);
  }

  .ga-sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: calc(100vh - 52px);
    max-height: calc(100dvh - 52px);
    border-right: none;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .ga-detail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    background: var(--color-bg-base);
    z-index: 3;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ga-layout.showing-detail .ga-sidebar {
    opacity: 0.5;
    pointer-events: none;
  }

  .ga-layout.showing-detail .ga-detail {
    transform: translateX(0);
  }

  .ga-back-btn {
    display: flex;
  }

  .ga-formacio-actions {
    opacity: 1;
  }
}

/* ========================================
   RESPONSIVE — Mobile (<768px)
   ======================================== */

@media (max-width: 767px) {
  .ga-layout {
    padding-top: 50px;
  }

  .ga-sidebar-header {
    padding: var(--spacing-md);
  }

  .ga-sidebar-title-row h1 {
    font-size: var(--font-size-md);
  }

  .ga-detail {
    padding: var(--spacing-md);
    padding-bottom: calc(80px + var(--spacing-md));
  }

  .ga-detail-header-info h2 {
    font-size: var(--font-size-lg);
  }

  .ga-kpi-row {
    gap: var(--spacing-sm);
  }

  .ga-kpi {
    padding: var(--spacing-sm);
  }

  .ga-kpi-value {
    font-size: 18px;
  }

  .ga-action-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .ga-action-btn span:not(.material-symbols-outlined) {
    display: none;
  }

  .ga-subjects-grid {
    grid-template-columns: 1fr;
  }

  .ga-detail-tab span:not(.material-symbols-outlined) {
    display: none;
  }

  .ga-detail-tab {
    padding: 8px 10px;
  }

  /* form-row + modal-content responsive in shared-components.css */

  .wizard-steps {
    flex-wrap: wrap;
    gap: 4px;
  }

  .wizard-step-label {
    display: none;
  }

  .alumnes-filters {
    flex-direction: column;
  }

  .alumnes-filters select,
  .alumnes-filters .ga-sidebar-search {
    min-width: 0;
    width: 100%;
  }

  .alumnes-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .ga-tab-students-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .selector-dies {
    gap: 6px;
  }

  .dia-btn {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-xs);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ga-sidebar,
  .ga-detail,
  .ga-formacio-chevron,
  .ga-student-tutor-toggle .material-symbols-outlined {
    transition: none;
  }
}
