.page-min-height {
  min-height: 100vh;
}

.container-720 {
  max-width: 720px;
}

.container-860 {
  max-width: 860px;
}

.container-420 {
  max-width: 420px;
}

.logo-130 {
  max-height: 130px;
}

.logo-150 {
  max-height: 150px;
}

.asistencia-page {
  background: #f7f9ff;
}

.asistencia-records {
  background: #f7f9ff;
}

.card-big {
  border-radius: 18px;
}

.uid-hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.clock-big {
  font-weight: 700;
  color: #212529;
  line-height: 1.1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
}

.asistencia-home .clock-big {
  font-size: 3.2rem;
}

@media (max-width: 576px) {
  .asistencia-home .clock-big {
    font-size: 2.4rem;
  }
}

.asistencia-action .clock-big {
  font-size: 2.2rem;
}

@media (max-width: 576px) {
  .asistencia-action .clock-big {
    font-size: 1.4rem;
  }
}

.sync-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.sync-ok {
  background: #198754;
}

.sync-warn {
  background: #ffc107;
}

.sync-bad {
  background: #dc3545;
}

.sync-text {
  color: #6c757d;
  font-weight: 600;
}

.sync-meta {
  color: #6c757d;
  font-size: 0.9rem;
}

.submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(247, 249, 255, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.submit-overlay.show {
  display: flex;
}

.submit-box {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 6px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000;
  margin: 0 auto 14px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.big-btn {
  font-size: 2rem;
  padding: 22px 18px;
  border-radius: 18px;
}

.small-btn {
  font-size: 1.1rem;
  padding: 12px 14px;
  border-radius: 14px;
}

.asistencia-action .photo {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  object-fit: cover;
}

.action-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 24px;
}

.action-overlay.show {
  display: flex;
}

.action-box {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  width: min(520px, 100%);
}

.action-spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 6px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000;
  margin: 0 auto 14px;
  animation: actionSpin 0.9s linear infinite;
}

@keyframes actionSpin {
  to {
    transform: rotate(360deg);
  }
}

.action-title {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.action-sub {
  color: #6c757d;
  font-weight: 600;
  margin: 0;
}

.asistencia-done .photo {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

.title-big {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.1;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
}

.pill {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.hr {
  height: 1px;
  background: #e9ecef;
  margin: 18px 0;
}

.asistencia-records .photo {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.admin-page .table td,
.admin-page .table th {
  vertical-align: middle;
}

.admin-brand-logo {
  max-height: 38px;
  width: auto;
}

.admin-brand-name {
  font-size: 0.9rem;
  margin-left: 10px;
}

.admin-page .nav-link.active {
  font-weight: 600;
}

.admin-navbar .navbar-collapse {
  flex-basis: 100%;
  flex-grow: 0;
  align-items: center;
}

.admin-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  border-radius: 16px;
  padding: 22px 12px;
  height: 100%;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #212529;
}

.admin-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.12);
}

.tile-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.tile-label {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.admin-notification-btn {
  border: 1px solid #ced4da;
  color: #6c757d;
  background: #fff;
  padding: 0.35rem 0.55rem;
}

.admin-notification-btn:hover {
  color: #495057;
  border-color: #adb5bd;
}

.admin-notification-btn.has-unread {
  color: #f0ad00;
  border-color: #f0ad00;
  background: #fff9db;
}

.admin-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
}

.admin-notification-badge {
  position: absolute;
  top: -8px;
  right: -11px;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.68rem;
  line-height: 1.1rem;
  text-align: center;
  padding: 0 0.2rem;
  font-weight: 600;
}

@keyframes bellRing {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(18deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

.bell-ring {
  transform-origin: top center;
  animation: bellRing 0.95s ease-in-out 2;
}
