/* ==================== Acciones Formativas - Page Styles ==================== */

/* Nav bar */
.acciones-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  height: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.nav-link.active {
  color: var(--accent);
  font-weight: 700;
  background: #eff6ff;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==================== Dashboard ==================== */
.dash-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.dash-stat {
  flex: 1;
  min-width: 120px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
}
.dash-stat.active { border-left: 3px solid #f59e0b; }
.dash-stat.planned { border-left: 3px solid #3b82f6; }
.dash-stat.done { border-left: 3px solid #22c55e; }
.dash-stat.hours { border-left: 3px solid #8b5cf6; }
.dash-stat.hours-done { border-left: 3px solid #06b6d4; }
.dash-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.dash-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dash-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.dash-cat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3px 12px 3px 10px;
  font-size: 12px;
}
.dash-cat-name { color: var(--text-secondary); }
.dash-cat-count {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

/* Inline category select */
.inline-cat-select {
  padding: 2px 4px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 11px;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  max-width: 140px;
}
.inline-cat-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Override body from styles.css - allow scroll */
body {
  height: auto;
  overflow: auto;
}

/* Main content */
.acciones-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
}

/* Estado Tabs */
.cursos-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.cursos-tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cursos-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.cursos-tab.active {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.cursos-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-secondary);
}
.cursos-tab.active .tab-count {
  background: #eff6ff;
  color: var(--accent);
}

/* Toolbar */
.acciones-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.acciones-toolbar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  width: 250px;
  color: var(--text-primary);
}
.acciones-toolbar input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}
.acciones-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-primary);
  background: white;
}
.toolbar-spacer {
  flex: 1;
}

/* Multi-select dropdown */
.multi-select {
  position: relative;
  display: inline-block;
}
.multi-select-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  min-width: 180px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.multi-select-btn:hover { border-color: var(--accent); }
.ms-arrow { font-size: 10px; color: var(--text-secondary); }
.multi-select-btn.ms-active { color: var(--accent); font-weight: 600; }
.ms-count {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
}
.multi-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 220px;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px 0;
  margin-top: 2px;
}
.multi-select-dropdown.open { display: block; }
.ms-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s;
}
.ms-option:hover { background: #f0f5ff; }
.ms-option input[type="checkbox"] { accent-color: var(--accent); }
.ms-option.ms-all {
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  margin-bottom: 2px;
  padding-bottom: 8px;
}

/* Table */
.acciones-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}
.acciones-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.acciones-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.acciones-table th:hover {
  color: var(--text-primary);
}
.acciones-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.acciones-table tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}
.acciones-table tbody tr:hover {
  background: #f8fafc;
}
.acciones-table tbody tr:last-child td {
  border-bottom: none;
}

/* Color dot */
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  min-width: 80px;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
  background: var(--accent);
}
.progress-fill.low { background: #ef4444; }
.progress-fill.mid { background: #f59e0b; }
.progress-fill.high { background: #22c55e; }
.progress-text {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge.planificada { background: #dbeafe; color: #1e40af; }
.status-badge.en_ejecucion { background: #fef3c7; color: #92400e; }
.status-badge.finalizado { background: #dcfce7; color: #166534; }

/* ==================== Detail View ==================== */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 12px;
}
.detail-back:hover { color: var(--accent); }

.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Info card */
.detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.detail-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.detail-field {
  margin-bottom: 12px;
}
.detail-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.detail-field input,
.detail-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  box-sizing: border-box;
}
.detail-field input:focus,
.detail-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}
.detail-field textarea {
  resize: vertical;
  min-height: 60px;
}
.detail-field .value {
  font-size: 14px;
  color: var(--text-primary);
  padding: 4px 0;
}
.detail-field .value.empty {
  color: var(--text-secondary);
  font-style: italic;
}

/* Hours card */
.hours-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.hours-stat {
  text-align: center;
  flex: 1;
}
.hours-stat .num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.hours-stat .num.accent { color: var(--accent); }
.hours-stat .num.green { color: #22c55e; }
.hours-stat .num.orange { color: #f59e0b; }
.hours-stat .lbl {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.progress-bar-lg {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-bar-lg .progress-fill {
  height: 100%;
  border-radius: 6px;
}
.progress-pct {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 6px;
}

/* Session filter bar */
.sessions-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.session-filter-btn {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.session-filter-btn:hover { color: var(--text-primary); border-color: #cbd5e1; }
.session-filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.session-note-indicator {
  cursor: pointer;
  font-size: 14px;
}

/* Sessions table */
.sessions-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sessions-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}
.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sessions-table th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.sessions-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.sessions-table tbody tr:hover {
  background: #f8fafc;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 14px;
}

/* Count badge */
.count-badge {
  background: #f1f5f9;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

/* ==================== Tabs ==================== */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.tab-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==================== Alumnos ==================== */
.alumnos-toolbar {
  margin-bottom: 12px;
}
.alumnos-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.alumnos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.alumnos-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.alumnos-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.alumnos-table tr:last-child td { border-bottom: none; }
.alumnos-table tr:hover td { background: #f8fafc; }
.alumno-actions-cell {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

/* Result badges */
.result-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.result-badge.apto { background: #dcfce7; color: #166534; }
.result-badge.no-apto { background: #fef2f2; color: #991b1b; }

/* Category badge */
.cat-badge {
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Professor chips */
.prof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.prof-chip {
  display: inline-block;
  padding: 3px 10px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
}

/* Hours per professor table */
.hours-by-prof {
  margin-top: 16px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}
.hours-by-prof h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.prof-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.prof-hours-table th {
  text-align: left;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.prof-hours-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #f1f5f9;
}

/* Docs checklist */
.docs-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.doc-item:hover { background: #f8fafc; }
.doc-item input[type="checkbox"] { width: 16px; height: 16px; }

/* Asistencia */
.asistencia-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.asistencia-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
}
.asistencia-row:hover { background: #f8fafc; }
.asist-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.asist-check input { width: 16px; height: 16px; }
.asist-justif {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.asist-justif input { width: 14px; height: 14px; }

/* Modal (standalone for acciones page) */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: none; background: none;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-hover); }
.modal-body { padding: 20px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

/* Toast (reuse from styles.css but ensure it works standalone) */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1e293b;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 10000;
  animation: toast-in 0.3s ease;
}
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Docs indicators */
.docs-ok { color: #16a34a; font-weight: 600; font-size: 13px; }
.docs-pending { color: #dc2626; font-weight: 600; font-size: 13px; }

/* Asistencia warning (below 75%) */
td.asist-warn .progress-text { color: #dc2626; font-weight: 600; }
td.asist-warn .progress-fill { background: #dc2626 !important; }

/* Historial */
.historial-list { max-height: 400px; overflow-y: auto; }
.historial-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.historial-item:last-child { border-bottom: none; }
.historial-meta { color: var(--text-secondary); font-size: 11px; margin-bottom: 4px; }
.historial-cambio { display: flex; gap: 6px; align-items: baseline; font-size: 12px; margin-top: 2px; }
.historial-campo { font-weight: 600; color: var(--text-primary); }
.historial-antes { color: #dc2626; text-decoration: line-through; }
.historial-despues { color: #16a34a; font-weight: 500; }

/* ==================== Convocatorias (Planificador style) ==================== */

/* Global convocatorias summary */
.conv-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px;
}
.conv-summary-card {
  background: white; border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center;
}
.conv-summary-card.conv-summ-alert { border-color: #fca5a5; background: #fef2f2; }
.conv-summ-num { font-size: 28px; font-weight: 800; color: #1e293b; line-height: 1.1; }
.conv-summ-num .conv-summ-sub { font-size: 14px; font-weight: 500; color: #94a3b8; }
.conv-summ-label { font-size: 11px; color: #64748b; margin-top: 2px; font-weight: 500; }

/* Card grid */
.conv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 12px; }
.conv-card {
  background: white; border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  position: relative; overflow: hidden; transition: all .2s; cursor: pointer; text-decoration: none; color: inherit;
}
.conv-card:hover { border-color: var(--accent); background: #f8fafc; }
.conv-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.conv-card.tipo-cm::before { background: #3b82f6; }
.conv-card.tipo-est::before { background: #f97316; }
.conv-card.tipo-dual::before { background: #8b5cf6; }
.conv-card.tipo-desemp::before { background: #06b6d4; }
.conv-card.tipo-otro::before { background: #64748b; }
.conv-card.inactiva { opacity: .45; }
.conv-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.conv-card-stats { display: flex; gap: 16px; margin: 10px 0 8px; }
.conv-card-stat { flex: 1; text-align: center; }
.conv-card-stat-n { font-size: 18px; font-weight: 800; color: #1e293b; line-height: 1.2; }
.conv-card-stat-n small { font-size: 11px; font-weight: 500; color: #94a3b8; }
.conv-card-stat-l { font-size: 9px; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }
.conv-type { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.conv-type.cm { background: #eff6ff; color: #3b82f6; }
.conv-type.est { background: #fff7ed; color: #f97316; }
.conv-type.dual { background: #f5f3ff; color: #8b5cf6; }
.conv-type.desemp { background: #ecfeff; color: #0891b2; }
.conv-type.otro { background: #f1f5f9; color: #64748b; }
.conv-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.conv-meta { font-size: 10px; color: var(--text-secondary); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }

/* Convocatoria detail header & summary */
.conv-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.conv-detail-header-left { display: flex; align-items: center; gap: 10px; }
.conv-detail-title { font-size: 18px; font-weight: 700; margin: 0; }
.conv-detail-summary {
  background: white; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px;
}
.conv-det-info { margin-bottom: 12px; }
.conv-det-info-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.conv-det-tag { font-size: 11px; color: #64748b; background: #f8fafc; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border); }
.conv-det-obs { font-size: 11px; color: #94a3b8; font-style: italic; margin-top: 6px; }
.conv-det-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.conv-det-stat { text-align: center; padding: 8px 0; }
.conv-det-stat-n { font-size: 24px; font-weight: 800; color: #1e293b; line-height: 1.1; }
.conv-det-stat-n small { font-size: 13px; font-weight: 500; color: #94a3b8; }
.conv-det-stat-l { font-size: 10px; color: #64748b; margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.conv-det-stat-sub { font-size: 9px; color: #94a3b8; margin-top: 2px; }
.conv-det-stat-alert { background: #fef2f2; border-radius: 8px; padding: 8px; }

/* Collapsible curso blocks inside convocatoria */
.conv-curso-block { background: white; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.conv-curso-hdr { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; cursor: pointer; transition: background .15s; user-select: none; }
.conv-curso-hdr:hover { background: #f8fafc; }
.conv-curso-hdr .alert-banner-arrow { transition: transform .2s; }
.conv-curso-hdr.exp .alert-banner-arrow { transform: rotate(90deg); }
.conv-curso-body { display: none; padding: 0 16px 16px; }
.conv-curso-body.exp { display: block; }

/* Stat badges */
.st { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.st-r { background: #fef2f2; color: #dc2626; }
.st-y { background: #fffbeb; color: #d97706; }
.st-g { background: #f0fdf4; color: #16a34a; }
.st-b { background: #eff6ff; color: #3b82f6; }
.st-n { background: #f1f5f9; color: #64748b; }

/* Progress bar (convocatorias) */
.cv-progress { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.cv-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); transition: width .4s; }

/* Phase accordion */
.phase { margin-bottom: 6px; }
.ph-hdr {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  background: white; border: 1px solid var(--border); border-radius: 9px;
  cursor: pointer; transition: all .15s; user-select: none;
}
.ph-hdr:hover { background: #f8fafc; }
.ph-hdr.exp { border-radius: 9px 9px 0 0; border-bottom-color: transparent; }
.ph-icon { font-size: 16px; }
.ph-title { flex: 1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-primary); }
.ph-badges { display: flex; gap: 4px; align-items: center; }
.ph-badge { font-size: 9px; padding: 1px 6px; border-radius: 8px; font-weight: 700; }
.phb-r { background: #fef2f2; color: #dc2626; }
.phb-y { background: #fffbeb; color: #d97706; }
.phb-g { background: #f0fdf4; color: #16a34a; }
.phb-b { background: #eff6ff; color: #3b82f6; }
.ph-prog { width: 50px; height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.ph-prog-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); transition: width .3s; }
.ph-arrow { color: var(--text-secondary); font-size: 10px; transition: transform .2s; }
.ph-hdr.exp .ph-arrow { transform: rotate(90deg); }
.ph-body { background: white; border: 1px solid var(--border); border-top: none; border-radius: 0 0 9px 9px; display: none; }
.ph-body.exp { display: block; }

/* Task rows */
.tsk {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9; transition: all .1s;
}
.tsk:last-child { border-bottom: none; }
.tsk:hover { background: #f8fafc; }
.tsk.done { opacity: .5; }
.tsk-chk {
  width: 20px; height: 20px; border-radius: 5px; border: 2px solid #cbd5e1;
  background: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px; transition: all .15s; font-size: 11px; color: transparent;
}
.tsk-chk:hover { border-color: #22c55e; background: #f0fdf4; }
.tsk.done .tsk-chk { background: #22c55e; border-color: #22c55e; color: #fff; }
.tsk-info { flex: 1; min-width: 0; }
.tsk-name { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--text-primary); }
.tsk.done .tsk-name { text-decoration: line-through; color: var(--text-secondary); }
.tsk-name .crit { color: #f59e0b; font-weight: 700; }
.tsk-mt { display: flex; gap: 8px; margin-top: 2px; font-size: 9px; color: var(--text-secondary); flex-wrap: wrap; align-items: center; }
.tsk-mt .rsp { color: #0891b2; font-weight: 600; }
.rol-tag { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 4px; font-size: 8px; font-weight: 700; flex-shrink: 0; }
.rol-c { background: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }
.rol-a { background: #f5f3ff; color: #8b5cf6; border: 1px solid #c4b5fd; }
.tsk-r { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tsk-action-btn { background: none; border: 1px solid transparent; cursor: pointer; font-size: 14px; color: #94a3b8; padding: 2px 4px; border-radius: 4px; line-height: 1; }
.tsk-action-btn:hover { color: #3b82f6; background: #eff6ff; border-color: #bfdbfe; }
.tsk-del-btn:hover { color: #dc2626; background: #fef2f2; border-color: #fca5a5; }
.tsk-assign-btn:hover { color: #059669; background: #f0fdf4; border-color: #86efac; }
.tsk-add { padding: 8px 12px; font-size: 11px; color: #3b82f6; cursor: pointer; text-align: center; border-top: 1px dashed var(--border); }
.tsk-add:hover { background: #eff6ff; }

/* Config panel */
.config-panel { padding: 24px; max-width: 620px; margin: 0 auto; }
.config-header { margin-bottom: 24px; }
.config-header h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; }
.config-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.config-section h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.config-desc { font-size: 12px; color: #64748b; margin: 0 0 16px; }
.config-field { margin-bottom: 14px; }
.config-field label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.config-field select, .config-field input[type="time"] { padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; background: var(--bg); color: var(--text); }
.config-radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.config-radio { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text); }
.config-radio input[type="radio"] { accent-color: #3b82f6; }

/* Tarea modal */
.tarea-modal { background: white; border-radius: 12px; width: 520px; max-width: 95vw; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.tarea-modal-hdr { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.tarea-modal-hdr h3 { margin: 0; font-size: 16px; }
.tarea-modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.tarea-modal-field label { display: block; font-size: 11px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.tarea-modal-field input[type="text"], .tarea-modal-field input[type="date"], .tarea-modal-field select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; box-sizing: border-box;
}
.tarea-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tarea-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }
.tarea-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.tsk-dl { font-size: 10px; font-weight: 700; white-space: nowrap; }
.tsk-asignado { background: #eff6ff; color: #2563eb; padding: 1px 6px; border-radius: 4px; font-size: 9px; font-weight: 600; }
.tsk-cd { font-size: 9px; padding: 1px 7px; border-radius: 8px; font-weight: 700; white-space: nowrap; }

/* Curso header in checklist (per-course section) */
.curso-section-hdr {
  margin: 16px 0 8px; padding: 10px 14px;
  background: #eff6ff; border-radius: 10px; border-left: 4px solid #3b82f6;
  display: flex; align-items: center; gap: 10px;
}
.curso-section-hdr .cs-name { font-size: 13px; font-weight: 700; color: #1d4ed8; flex: 1; }
.curso-section-hdr .cs-stats { display: flex; gap: 6px; align-items: center; }

/* Convocatoria detail: courses table */
.conv-cursos-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.conv-cursos-table th {
  text-align: left; padding: 8px 10px; font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary);
  background: #f8fafc; border-bottom: 2px solid var(--border);
}
.conv-cursos-table td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; }
.conv-cursos-table tr { cursor: pointer; transition: background .1s; }
.conv-cursos-table tr:hover { background: #f8fafc; }

/* Alert banner - collapsible */
.alert-banner {
  background: #fef2f2; border: 1px solid #fca5a5; border-radius: 10px;
  margin-bottom: 16px; overflow: hidden;
}
.alert-banner-hdr {
  display: flex; align-items: center; padding: 12px 14px; cursor: pointer;
  user-select: none; transition: background .15s;
}
.alert-banner-hdr:hover { background: rgba(0,0,0,.03); }
.alert-banner-arrow {
  margin-left: auto; font-size: 10px; color: #94a3b8;
  transition: transform .2s; display: inline-block;
}
.alert-banner-hdr.exp .alert-banner-arrow { transform: rotate(90deg); }
.alert-banner-body {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  padding: 0 14px;
}
.alert-banner-body.exp {
  max-height: 2000px; padding: 0 14px 12px;
}
.alert-banner-title {
  font-size: 13px; font-weight: 700; color: #dc2626;
}
.today-banner { background: #fffbeb; border-color: #fcd34d; }
.today-banner .alert-banner-title { color: #b45309; }
.alert-task {
  display: flex; gap: 8px; align-items: center; padding: 5px 0;
  font-size: 11px; border-bottom: 1px solid rgba(220,38,38,.12); cursor: pointer;
}
.alert-task:last-child { border-bottom: none; }
.alert-task:hover { background: rgba(220,38,38,.04); border-radius: 4px; }
.alert-task-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-task-ctx { color: var(--text-secondary); font-size: 10px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-task-date { font-size: 10px; font-weight: 700; white-space: nowrap; }

/* Upcoming banner - collapsible */
.upcoming-banner {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
  margin-bottom: 16px; overflow: hidden;
}
.upcoming-banner-title {
  font-size: 13px; font-weight: 700; color: #1d4ed8;
}
.upcoming-banner .alert-task { border-bottom-color: rgba(59,130,246,.12); }
.upcoming-banner .alert-task:hover { background: rgba(59,130,246,.04); }

/* ==================== Curso in Convocatoria (light theme) ==================== */
.ccv-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 20px; min-height: 70vh;
}
.ccv-main { min-width: 0; }
.ccv-sidebar { display: flex; flex-direction: column; gap: 12px; }

/* Back button */
.ccv-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-secondary); cursor: pointer;
  margin-bottom: 12px; padding: 4px 0;
}
.ccv-back:hover { color: var(--accent); }

/* Header */
.ccv-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px; padding: 16px 20px;
  background: white; border: 1px solid var(--border); border-radius: 12px;
}
.ccv-title { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0; line-height: 1.3; }
.ccv-subtitle { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.ccv-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Filters */
.ccv-filters {
  display: flex; gap: 4px; align-items: center; margin-bottom: 14px;
  padding: 8px 12px; background: white; border: 1px solid var(--border); border-radius: 10px;
}
.ccv-fbtn {
  padding: 4px 12px; font-size: 11px; border: 1px solid var(--border);
  border-radius: 6px; background: transparent; color: var(--text-secondary);
  cursor: pointer; transition: all .15s;
}
.ccv-fbtn:hover { background: #f1f5f9; color: #1e293b; }
.ccv-fbtn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Phase accordion */
.ccv-phase {
  background: white; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px; overflow: hidden;
}
.ccv-ph-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer; user-select: none;
  transition: background .15s;
}
.ccv-ph-hdr:hover { background: #f8fafc; }
.ccv-ph-icon { font-size: 18px; flex-shrink: 0; }
.ccv-ph-title { font-size: 12px; font-weight: 700; color: #1e293b; text-transform: uppercase; letter-spacing: .03em; flex: 1; }
.ccv-ph-badges { display: flex; gap: 4px; align-items: center; }
.ccv-ph-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
}
.ccv-ph-badge.green { background: #dcfce7; color: #16a34a; }
.ccv-ph-badge.red { background: #fef2f2; color: #dc2626; }
.ccv-ph-badge.yellow { background: #fefce8; color: #ca8a04; }
.ccv-ph-prog {
  width: 80px; height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden;
}
.ccv-ph-prog-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; }
.ccv-ph-arrow {
  font-size: 10px; color: #94a3b8; transition: transform .2s; display: inline-block;
}
.ccv-ph-hdr.exp .ccv-ph-arrow { transform: rotate(90deg); }
.ccv-ph-body {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.ccv-ph-body.exp { max-height: 3000px; }

/* Task rows */
.ccv-tsk {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-top: 1px solid #f1f5f9;
  transition: background .1s;
}
.ccv-tsk:hover { background: #f8fafc; }
.ccv-tsk.done { opacity: .45; }
.ccv-tsk.done .ccv-tsk-name { text-decoration: line-through; }
.ccv-tsk-chk {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd5e1;
  background: transparent; color: transparent; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .15s;
}
.ccv-tsk-chk:hover { border-color: #22c55e; color: #22c55e; }
.ccv-tsk-chk.checked { background: #22c55e; border-color: #22c55e; color: #fff; }
.ccv-tsk-info { flex: 1; min-width: 0; }
.ccv-tsk-name { font-size: 12px; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccv-tsk-meta { display: flex; gap: 8px; align-items: center; margin-top: 2px; font-size: 10px; color: #94a3b8; }
.ccv-tsk-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ccv-tsk-date { font-size: 11px; color: #64748b; }
.ccv-tsk-date.overdue { color: #dc2626; font-weight: 700; }
.ccv-tsk-date.today { color: #d97706; font-weight: 700; }
.ccv-tsk-done-badge { color: #22c55e; font-size: 14px; }
.ccv-tsk-urg {
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: #fef2f2; color: #dc2626;
}

/* Sidebar panels */
.ccv-panel {
  background: white; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px;
}
.ccv-panel-title {
  font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid #f1f5f9;
}
.ccv-field {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 12px;
}
.ccv-field > span:first-child { color: #64748b; }
.ccv-val { color: #1e293b; font-weight: 500; text-align: right; }
.ccv-date { color: #3b82f6; }
.ccv-select {
  padding: 3px 6px; font-size: 11px; border: 1px solid var(--border);
  border-radius: 5px; background: white; color: #1e293b; max-width: 160px;
  cursor: pointer;
}
.ccv-date-input {
  padding: 3px 6px; font-size: 11px; border: 1px solid var(--border);
  border-radius: 5px; background: white; color: #3b82f6; font-weight: 600;
  width: 130px; cursor: pointer;
}

/* Progress in sidebar */
.ccv-pct { font-size: 36px; font-weight: 800; color: var(--accent); text-align: center; margin: 8px 0 2px; }
.ccv-pct-label { font-size: 11px; color: #64748b; text-align: center; margin-bottom: 10px; }
.ccv-prog-bar {
  height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-bottom: 10px;
}
.ccv-prog-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.ccv-prog-badges { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* Rol-tag overrides inside curso view */
.ccv-tsk .rol-tag { font-size: 9px; padding: 1px 6px; }
.ccv-tsk .crit { color: #d97706; }

/* Responsive */
@media (max-width: 900px) {
  .ccv-layout { grid-template-columns: 1fr; }
  .ccv-sidebar { order: -1; }
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .acciones-nav { padding: 10px 12px; }
  .acciones-content { padding: 12px; }
  .acciones-toolbar { flex-direction: column; align-items: stretch; }
  .acciones-toolbar input[type="text"] { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .hours-summary { flex-wrap: wrap; }
  .acciones-table { font-size: 12px; }
  .acciones-table th, .acciones-table td { padding: 8px 6px; }
}

/* Comunicaciones DGT/Fomento in detail view */
.comunica-section { display: flex; flex-direction: column; gap: 8px; }
.comunica-check { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.comunica-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.comunica-dates { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-top: 4px; }
.comunica-dates strong { display: block; font-size: 12px; color: #64748b; margin-bottom: 6px; }
.comunica-date-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.comunica-date-row span { min-width: 45px; color: #64748b; }
.comunica-date-row input[type="date"] { flex: 1; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }

/* ==================== Calendario ==================== */
#calendario-panel {
  position: fixed; right: 20px; top: 60px; width: 340px; max-height: calc(100vh - 80px);
  background: white; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12); z-index: 100; overflow-y: auto; padding: 16px;
}
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-size: 15px; font-weight: 700; color: #1e293b; }
.cal-nav { background: none; border: 1px solid var(--border); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 16px; color: #64748b; display: flex; align-items: center; justify-content: center; }
.cal-nav:hover { background: #f8fafc; color: #1e293b; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 9px; font-weight: 700; color: #94a3b8; padding: 4px 0; text-transform: uppercase; }
.cal-dow.cal-we { color: #dc2626; }
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer; transition: all .15s; position: relative; font-size: 12px;
}
.cal-day:hover { background: #f1f5f9; }
.cal-day.cal-empty { cursor: default; }
.cal-day.cal-empty:hover { background: none; }
.cal-day.cal-today { background: #eff6ff; font-weight: 800; }
.cal-day.cal-today .cal-day-num { color: #3b82f6; }
.cal-day.cal-weekend .cal-day-num { color: #dc2626; opacity: .5; }
.cal-day-num { font-size: 12px; color: #1e293b; line-height: 1; }
.cal-dots { display: flex; gap: 2px; margin-top: 2px; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.cal-dot-r { background: #dc2626; }
.cal-dot-b { background: #3b82f6; }
.cal-dot-g { background: #22c55e; }
.cal-legend { display: flex; gap: 12px; justify-content: center; margin: 10px 0; font-size: 9px; color: #94a3b8; }
.cal-legend span { display: flex; align-items: center; gap: 4px; }

/* Day detail */
.cal-day-hdr { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); margin-top: 4px; }
.cal-day-title { font-size: 12px; font-weight: 700; color: #1e293b; text-transform: capitalize; }
.cal-empty-day { text-align: center; padding: 16px; font-size: 11px; color: #94a3b8; }
.cal-task {
  padding: 8px 10px; margin-bottom: 4px; border-radius: 8px; border-left: 3px solid #3b82f6;
  background: #f8fafc; cursor: pointer; transition: background .15s;
}
.cal-task:hover { background: #eff6ff; }
.cal-task-done { opacity: .45; }
.cal-task-urg { border-left-color: #dc2626; background: #fef2f2; }
.cal-task-urg:hover { background: #fee2e2; }
.cal-task-personal { border-left-color: #22c55e; }
.cal-task-title { font-size: 11px; font-weight: 600; color: #1e293b; line-height: 1.3; }
.cal-task-meta { font-size: 9px; color: #94a3b8; margin-top: 2px; }
.cal-task-actions { display: flex; gap: 4px; margin-top: 4px; }

/* Color picker for personal tasks */
.cal-color-opt {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent;
  transition: all .15s;
}
.cal-color-opt:hover { transform: scale(1.2); }
.cal-color-opt.selected { border-color: #1e293b; box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor; }

#btn-calendario.active { background: var(--accent); color: white; border-color: var(--accent); }
