/* ── Reset & Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta de marca BMTManager — aproximación de Pantone PQ-2592C (60%),
     375C (30%) y 123C (20%). Ajustar si se dispone de la conversión exacta
     de la guía Pantone Bridge. */
  --primary: #7b2d8c; /* Pantone PQ-2592C */
  --primary-h: #5c2268; /* variante más oscura para estados hover */
  --secondary: #8dc63f; /* Pantone 375C */
  --accent: #ffc72c; /* Pantone 123C */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --sidebar-w: 260px;
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Login Page ────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-brand {
  background: linear-gradient(
    135deg,
    var(--primary-h) 0%,
    var(--primary) 55%,
    var(--secondary) 80%,
    var(--accent) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  position: relative;
}

.brand-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-logo span {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-tagline {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  position: relative;
}

.brand-sub {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 320px;
  text-align: center;
  position: relative;
}

.brand-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
  position: relative;
}

.brand-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  background: var(--surface);
}

.login-form-wrap {
  width: 100%;
  max-width: 380px;
}

.login-form-wrap h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.login-form-wrap .subtitle {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(123 45 140 / 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--primary-h);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover {
  background: #059669;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

.leave-action-btn {
  min-width: 86px;
  text-align: center;
}

.login-hint {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
}

.login-hint strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.login-hint code {
  background: var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: "JetBrains Mono", monospace;
}

/* ── App Shell ─────────────────────────────────────────────────────────── */
.app {
  min-height: 100vh;
}

.sidebar {
  background: #2a0e30;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.sidebar-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sidebar-section {
  padding: 1.5rem 1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  flex-shrink: 0;
}
.nav-item.active svg {
  opacity: 1;
}

.sidebar-user {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.user-avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-info strong {
  display: block;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.logout-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.logout-btn:hover {
  color: white;
}
.logout-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Main Content ──────────────────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  width: 260px;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--text);
  flex: 1;
  font-family: inherit;
}

.search-bar svg {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
}

.content {
  padding: 2rem;
  flex: 1;
}

/* ── Cards & Sections ──────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 1.75rem;
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.page-header p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}
.stat-icon.indigo {
  background: #f5e9f8;
  color: var(--primary);
}
.stat-icon.cyan {
  background: #fff8e1;
  color: var(--accent);
}
.stat-icon.green {
  background: #ecfdf5;
  color: var(--success);
}
.stat-icon.amber {
  background: #fffbeb;
  color: var(--warning);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.stat-delta {
  font-size: 0.78rem;
  color: var(--success);
  margin-top: 0.35rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
}
.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 0.1rem;
}
.card-body {
  padding: 1.5rem;
}

/* ── Table ─────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--surface-2);
}
.emp-row-clickable {
  cursor: pointer;
}

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-admin {
  background: #f5e9f8;
  color: var(--primary);
}
.badge-manager {
  background: #ecfdf5;
  color: var(--success);
}
.badge-artista {
  background: #f8fafc;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge-lider {
  background: #eff6ff;
  color: #1e40af;
}
.badge-approved {
  background: #ecfdf5;
  color: var(--success);
}
.badge-pending {
  background: #fffbeb;
  color: var(--warning);
}
.badge-rejected {
  background: #fef2f2;
  color: var(--danger);
}
.badge-bueno {
  background: #ecfdf5;
  color: var(--success);
}
.badge-regular {
  background: #fffbeb;
  color: var(--warning);
}
.badge-dañado {
  background: #fef2f2;
  color: var(--danger);
}
.badge-en_reparacion {
  background: #f8fafc;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge-pagado {
  background: #ecfdf5;
  color: var(--success);
}
.badge-pendiente {
  background: #fffbeb;
  color: var(--warning);
}
.badge-activo {
  background: #ecfdf5;
  color: var(--success);
}
.badge-inactivo {
  background: #fef2f2;
  color: var(--danger);
}
.badge-justificada {
  background: #ecfdf5;
  color: var(--success);
}
.badge-ensayo {
  background: #f5e9f8;
  color: var(--primary);
}
.badge-evento {
  background: #fff8e6;
  color: #92650a;
}
.badge-injustificada {
  background: #fef2f2;
  color: var(--danger);
}
/* ── Announcements ─────────────────────────────────────────────────────── */
.announcement-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}

.pinned-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.announcement-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.announcement-body {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  white-space: pre-line;
}

/* ── Comunicados: formato tipo red social (posts + comentarios) ──────────── */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.post-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.post-author-info {
  flex: 1;
  min-width: 0;
}

.post-author-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.post-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.post-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.post-body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 1rem;
}

.post-comments {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.comment-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.comment-bubble {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 0.5rem 0.85rem;
  flex: 1;
  min-width: 0;
}

.comment-author {
  font-weight: 700;
  font-size: 0.8rem;
}

.comment-body {
  font-size: 0.85rem;
  color: var(--text-2);
  white-space: pre-line;
}

.comment-date {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 0.15rem;
}

.comment-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.5rem;
}

.comment-form input {
  flex: 1;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: inherit;
}

.comment-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.no-comments {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

/* ── Calculator ────────────────────────────────────────────────────────── */
.calc-display {
  background: #0f172a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  min-height: 60px;
}

.calc-display .calc-expr {
  color: #94a3b8;
  font-size: 0.8rem;
}
.calc-display .calc-result {
  color: #4ade80;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.calc-display .calc-error {
  color: #f87171;
  font-size: 0.9rem;
}

.calc-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.calc-input input {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-2);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  transition: all 0.15s;
}

.preset-btn:hover {
  background: var(--border);
  color: var(--text);
}

/* ── Misc ──────────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.alert {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-3);
}

.empty-state svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  display: block;
  opacity: 0.4;
}
.empty-state p {
  font-size: 0.9rem;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--text);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.section {
  display: none;
}
.section.active {
  display: block;
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ── Calendario ────────────────────────────────────────────────────────── */
.calendar-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.calendar-day {
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--surface);
}
.calendar-day:hover {
  border-color: var(--primary);
}
.calendar-day.is-outside {
  opacity: 0.35;
}
.calendar-day.is-today .calendar-day-number {
  color: var(--primary);
  font-weight: 800;
}
.calendar-day.is-selected {
  background: var(--surface-2);
  border-color: var(--primary);
}

.calendar-day-number {
  font-size: 0.8rem;
  font-weight: 600;
}

.calendar-day-dots {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.calendar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.calendar-dot.ensayo {
  background: var(--primary);
}
.calendar-dot.evento {
  background: var(--accent);
}

.calendar-legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 0.9rem;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.calendar-event-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.calendar-event-item:last-child {
  border-bottom: none;
}
.calendar-event-title {
  font-size: 0.85rem;
  font-weight: 600;
}
.calendar-event-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 0.15rem;
}
.calendar-event-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* ── Porcentaje de asistencia ─────────────────────────────────────────── */
.select-compact {
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.select-compact:focus {
  border-color: var(--primary);
}

.attendance-overall {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.attendance-overall-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
}
.attendance-overall-label {
  font-size: 0.85rem;
  color: var(--text-2);
}
