
#switch {
    position: relative;
    width: 160px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle {
  position: absolute;
  border: 2px solid #444249;
  border-radius: 36px;
  -webkit-transition: border-color 0.6s ease-out;
  transition: border-color 0.6s ease-out;
  box-sizing: border-box;
}

.toggle.toggle-on {
  border-color: rgba(137, 194, 217, 0.4);
  -webkit-transition: all 0.5s 0.15s ease-out;
  transition: all 0.5s 0.15s ease-out;
}

.toggle-button {
  position: absolute;
  top: 4px;
  width: 36px;
  bottom: 4px;
  right: 118px;
  background-color: #444249;
  border-radius: 30px;
  cursor: pointer;
  -webkit-transition: all 0.3s 0.1s, width 0.1s, top 0.1s, bottom 0.1s;
  transition: all 0.3s 0.1s, width 0.1s, top 0.1s, bottom 0.1s;
}

.toggle-on .toggle-button {
  top: 3px;
  width: 150px;
  bottom: 3px;
  right: 3px;
  border-radius: 30px;
  background-color: #fa6915;
  box-shadow: 0 0 16px #fd8a18;
  -webkit-transition: all 0.2s 0.1s, right 0.1s;
  transition: all 0.2s 0.1s, right 0.1s;
}

.toggle-text-on {
  position: absolute;
  top: 6px;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 36px;
  text-align: center;
  font-family: "Quicksand", sans-serif;
  font-size: 18px;
  font-weight: normal;
  cursor: pointer;
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */

  color: rgba(0, 0, 0, 0);
}

.toggle-on .toggle-text-on {
  color: #363232;
  -webkit-transition: color 0.3s 0.15s;
  transition: color 0.3s 0.15s;
}

.toggle-text-off {
  position: absolute;
  top: 6px;
  bottom: 0;
  right: 6px;
  line-height: 36px;
  text-align: center;
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: bold;
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
  cursor: pointer;
  color: #444249;
}

.toggle-on .toggle-text-off {
  color: rgba(0, 0, 0, 0);
}
/* used for streak effect */
.glow-comp {
  position: absolute;
  opacity: 0;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  border-radius: 6px;
  background-color: rgba(75, 122, 141, 0.1);
  box-shadow: 0 0 12px rgba(75, 122, 141, 0.2);
  -webkit-transition: opacity 4.5s 1s;
  transition: opacity 4.5s 1s;
}
.toggle-on .glow-comp {
  opacity: 1;
  -webkit-transition: opacity 1s;
  transition: opacity 1s;
}
/* effect blick point */
.blink_me {
  animation: blinker 1s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* ============================================================
   Checador Catorcena — Tabla matricial
   ============================================================ */

.checador-wrapper {
  padding-bottom: 80px;
}

/* Header de navegación */
.checador-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.checador-nav-center {
  text-align: center;
  flex: 1;
}
.checador-nav-center h4 {
  margin: 0;
  font-weight: 700;
  font-size: 1.6rem;
  color: #1e293b;
}
.checador-nav-center small {
  color: #64748b;
  font-size: 1.15rem;
}

/* Tabla principal */
.checador-scroll {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.checador-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.checador-table thead th {
  background: #1e293b;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 16px 10px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 2;
}
.checador-table thead th.col-nombre {
  text-align: left;
  padding-left: 24px;
  min-width: 260px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #1e293b;
}
.checador-table thead th.col-resumen {
  min-width: 130px;
  position: sticky;
  left: 260px;
  z-index: 3;
  background: #1e293b;
}
.checador-table thead th.col-dia-inhabil {
  background: #2d3748;
  color: #94a3b8;
}

/* Filas */
.checador-table tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}
.checador-table tbody tr:hover td {
  background-color: #f1f5f9 !important;
}

/* Celda nombre */
td.col-nombre {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  padding: 16px 20px 16px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1e293b;
  white-space: nowrap;
  border-right: 1px solid #e2e8f0;
}
tr:nth-child(even) td.col-nombre {
  background: #f8fafc;
}

/* Celda resumen */
td.col-resumen {
  position: sticky;
  left: 260px;
  z-index: 1;
  background: #fff;
  padding: 10px 12px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
}
tr:nth-child(even) td.col-resumen {
  background: #f8fafc;
}
.badge-retardo {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(234,179,8,0.15);
  color: #92400e;
  border: 1px solid rgba(234,179,8,0.4);
}
.badge-falta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(239,68,68,0.12);
  color: #991b1b;
  border: 1px solid rgba(239,68,68,0.3);
}
.badge-ok {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(34,197,94,0.12);
  color: #14532d;
  border: 1px solid rgba(34,197,94,0.3);
}

/* Celdas de día */
td.checador-cell {
  text-align: center;
  padding: 0;
  width: 88px;
  height: 88px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: filter 0.15s;
  vertical-align: middle;
}
td.checador-cell:hover .cell-inner {
  filter: brightness(0.9);
}
td.checador-cell-nolaboral {
  background: rgba(148,163,184,0.08) !important;
  cursor: default;
}
td.checador-cell-nolaboral .cell-inner {
  opacity: 0.4;
}
.cell-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 88px;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 5px;
}
.cell-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}
.cell-dot-green  { background: #22c55e; }
.cell-dot-yellow { background: #eab308; }
.cell-dot-red    { background: #ef4444; }
.cell-dot-gray   { background: #94a3b8; }
.cell-dot-blue   { background: #6366f1; }

.cell-bg-green  { background: rgba(34,197,94,0.12); }
.cell-bg-yellow { background: rgba(234,179,8,0.13); }
.cell-bg-red    { background: rgba(239,68,68,0.10); }
.cell-bg-blue   { background: rgba(99,102,241,0.12); }

.cell-label {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1;
}

/* Leyenda */
.checador-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 1rem;
  color: #475569;
  margin-top: 16px;
  align-items: center;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Botón ver tabla */
.btn-ver-tabla {
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 9999px;
}