/* Mesas fijas 2+2, donuts y notificaciones de votos */
body.projection .mesa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9vw;
  flex: 1;
  min-height: 0;
  padding-top: 0.2vh;
}

body.projection .mesa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.25vh;
  min-height: 0;
  padding: 1vh 0.9vw 0.9vh;
  border-radius: 0.8vw;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  overflow: hidden;
}
body.projection .mesa-card.general { background: linear-gradient(180deg, #fffaf0, #ffffff 45%); }
body.projection .mesa-card.joven { background: linear-gradient(180deg, #effcf9, #ffffff 45%); }
body.projection .mesa-card.empty { border-style: dashed; opacity: 0.72; }

body.projection .mesa-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5vw;
}
body.projection .mesa-tag {
  font-size: 0.58vw;
  font-weight: 800;
  letter-spacing: 0.14vw;
  color: #475569;
  text-transform: uppercase;
}
body.projection .mesa-card.general .mesa-tag { color: #b45309; }
body.projection .mesa-card.joven .mesa-tag { color: #0f766e; }
body.projection .mesa-type-logo {
  height: 1.55vw;
  max-height: 26px;
  width: auto;
  opacity: 0.95;
}

body.projection .donut {
  position: relative;
  width: 13vh;
  height: 13vh;
  max-width: 160px;
  max-height: 160px;
  flex: none;
}
body.projection .donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
body.projection .donut-track {
  fill: none;
  stroke: #eef2f7;
  stroke-width: 10;
}
body.projection .donut-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 0.85s ease;
}
body.projection .donut-fill.general { stroke: #ea580c; }
body.projection .donut-fill.joven { stroke: #0d9488; }
body.projection .donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
body.projection .donut-center strong {
  font-family: var(--display);
  font-size: 2.15vw;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
body.projection .donut-center span {
  margin-top: 0.2vh;
  font-size: 0.44vw;
  font-weight: 700;
  letter-spacing: 0.1vw;
  color: #94a3b8;
  text-transform: uppercase;
}
body.projection .mesa-admin {
  max-width: 100%;
  font-size: 0.78vw;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.projection .mesa-share {
  font-size: 0.5vw;
  color: #64748b;
}

/* Pie: acto + últimos votos */
body.projection .proj-bottom {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.2vw;
  min-height: 0;
}

body.projection .proj-election {
  display: flex;
  align-items: stretch;
  padding: 0.8vh 1vw;
  border-radius: 0.9vw;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
body.projection .proj-election-item {
  flex: 1;
  min-width: 0;
  padding: 0 0.9vw;
  border-right: 1px solid #e2e8f0;
}
body.projection .proj-election-item:last-child { border-right: 0; }
body.projection .proj-election-item.wide { flex: 1.8; }
body.projection .proj-election-item span {
  display: block;
  font-size: 0.44vw;
  font-weight: 800;
  letter-spacing: 0.14vw;
  color: #94a3b8;
  text-transform: uppercase;
}
body.projection .proj-election-item strong {
  display: block;
  font-size: 0.7vw;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.projection .proj-notifications {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.6vh 1vw;
  border-radius: 0.9vw;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
body.projection .notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.4vh;
  border-bottom: 1px solid #e2e8f0;
}
body.projection .notif-head > span:first-child {
  font-size: 0.48vw;
  font-weight: 800;
  letter-spacing: 0.16vw;
  color: #ea580c;
  text-transform: uppercase;
}
body.projection .notif-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3vw;
  font-size: 0.42vw;
  font-weight: 800;
  letter-spacing: 0.1vw;
  color: #15803d;
}
body.projection .notif-live i {
  width: 0.35vw;
  height: 0.35vw;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 1.6s infinite;
}
body.projection #pNotifications {
  list-style: none;
  margin: 0;
  padding: 0.3vh 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35vh;
  overflow: hidden;
}
body.projection .notif-item {
  display: grid;
  grid-template-columns: 0.45vw 1fr auto;
  gap: 0.5vw;
  align-items: center;
  padding: 0.3vh 0;
  border-bottom: 1px dashed #eef2f7;
}
body.projection .notif-item:last-child { border-bottom: 0; }
body.projection .notif-dot {
  width: 0.42vw;
  height: 0.42vw;
  border-radius: 50%;
  background: #94a3b8;
}
body.projection .notif-dot.general { background: #ea580c; }
body.projection .notif-dot.joven { background: #0d9488; }
body.projection .notif-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
body.projection .notif-main strong {
  color: #0f172a;
  font-size: 0.62vw;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.projection .notif-main span {
  color: #64748b;
  font-size: 0.48vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.projection .notif-item time {
  color: #94a3b8;
  font-size: 0.52vw;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.projection .notif-empty {
  padding: 0.8vh 0;
  color: #94a3b8;
  font-size: 0.58vw;
  list-style: none;
}

@media (max-width: 1100px) {
  body.projection .mesa-grid { grid-template-columns: 1fr 1fr; gap: 1.4vw; }
  body.projection .mesa-card { padding: 1.2vh 2vw; }
  body.projection .mesa-tag { font-size: 1vw; }
  body.projection .mesa-type-logo { height: 2.4vw; }
  body.projection .donut { width: 18vh; height: 18vh; }
  body.projection .donut-center strong { font-size: 4vw; }
  body.projection .donut-center span { font-size: 0.9vw; }
  body.projection .mesa-admin { font-size: 1.3vw; }
  body.projection .mesa-share { font-size: 0.95vw; }
  body.projection .proj-election { flex-wrap: wrap; }
  body.projection .proj-election-item { flex: 1 1 40%; padding: 0.8vh 1.2vw; border-right: 0; border-bottom: 1px solid #e2e8f0; }
  body.projection .proj-election-item span { font-size: 0.9vw; }
  body.projection .proj-election-item strong { font-size: 1.4vw; }
  body.projection .notif-head > span:first-child { font-size: 1vw; }
  body.projection .notif-live { font-size: 0.85vw; }
  body.projection .notif-item { grid-template-columns: 1.2vw 1fr auto; font-size: 1.1vw; }
  body.projection .notif-dot { width: 0.9vw; height: 0.9vw; }
  body.projection .notif-main strong { font-size: 1.2vw; }
  body.projection .notif-main span { font-size: 0.95vw; }
  body.projection .notif-item time { font-size: 0.95vw; }
  body.projection .notif-empty { font-size: 1.1vw; }
}
