/* EzeVote live results + dashboard charts (shared by the portal and the public site) */
.ez-chart-card .card-body { padding: 18px 20px; }
.ez-chart-wrap { position: relative; height: 260px; }
.ez-res { --r-deep: #063763; --r-violet: #0F6CBD; --r-cyan: #2B88D8; --r-lav: #F3F8FD; --r-soft: #E8F1FB; --r-line: #D7DBE0; --r-ink: #171A21; --r-muted: #6B7078; }
.ez-res-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.ez-res-bar .ez-res-event { max-width: 320px; }
.ez-res-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.ez-res-tools .ez-res-range { width: auto; }
.ez-res .vis-switch { display: inline-flex; background: var(--r-soft); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.ez-res .vis-switch button { border: 0; background: transparent; color: var(--r-ink); padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ez-res .vis-switch button:hover { background: rgba(255, 255, 255, .7); }
.ez-res .vis-switch button.is-active { background: var(--r-deep); color: #fff; box-shadow: 0 2px 8px rgba(6, 55, 99, .25); }
.ez-res-pos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.ez-res-pos button { border: 1px solid var(--r-line); background: #fff; color: var(--r-ink); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ez-res-pos button span { margin-left: 8px; background: var(--r-soft); color: var(--r-deep); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.ez-res-pos button.is-active { background: var(--r-deep); border-color: var(--r-deep); color: #fff; }
.ez-res-pos button.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
.ez-res-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ez-kpi { background: #fff; border: 1px solid var(--r-line); border-radius: 12px; padding: 12px 14px; }
.ez-kpi .k { font-size: 12px; color: var(--r-muted); }
.ez-kpi .v { font-size: 1.3rem; font-weight: 700; color: var(--r-ink); line-height: 1.3; word-break: break-word; }
.ez-kpi .v em { font-style: normal; font-size: .8rem; color: var(--r-violet); margin-left: 4px; }
.ez-res-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 991px) { .ez-res-body { grid-template-columns: 1fr; } }
.ez-res-chart, .ez-res-board { background: #fff; border: 1px solid var(--r-line); border-radius: 14px; padding: 16px; }
.ez-res-board { max-height: 560px; overflow: auto; }
.ez-res-title { font-weight: 700; margin-bottom: 8px; color: var(--r-ink); }
.ez-res-canvas { position: relative; height: 420px; }
.ez-res-msg { display: none; padding: 60px 12px; text-align: center; color: var(--r-muted); }
.ez-av { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.ez-rank { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 700; background: var(--r-soft); color: var(--r-deep); }
.ez-rank.r1 { background: #F59E0B; color: #fff; } .ez-rank.r2 { background: #94A3B8; color: #fff; } .ez-rank.r3 { background: #B45309; color: #fff; }
.ez-bar { height: 6px; background: var(--r-soft); border-radius: 6px; margin-top: 6px; overflow: hidden; }
.ez-bar i { display: block; height: 100%; border-radius: 6px; transition: width .5s ease; }
.ez-res-foot { margin-top: 10px; text-align: right; }
/* presentation / full-screen mode for projectors */
.ez-res.is-full { background: var(--r-lav); padding: 24px 32px; overflow: auto; }
.ez-res.is-full .ez-res-canvas { height: 56vh; }
.ez-res.is-full .ez-res-board { max-height: 70vh; }
.ez-res.is-full .ez-res-event, .ez-res.is-full .ez-res-png { display: none; }
.ez-res.is-full .ez-kpi .v { font-size: 1.8rem; }

/* Fallbacks so the widget looks right where Bootstrap is not loaded (public site) */
.ez-res select { border: 1px solid var(--r-line); border-radius: 10px; padding: 7px 12px; background: #fff; color: var(--r-ink); font: inherit; font-size: 13px; }
.ez-res .btn { border: 1px solid var(--r-line); background: #fff; color: var(--r-ink); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ez-res .btn:hover { background: var(--r-soft); }
.ez-res table { width: 100%; border-collapse: collapse; }
.ez-res th, .ez-res td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--r-line); vertical-align: middle; }
.ez-res th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--r-muted); }
.ez-res .text-end { text-align: right; } .ez-res .d-flex { display: flex; } .ez-res .align-items-center { align-items: center; }
.ez-res .gap-2 { gap: 8px; } .ez-res .fw-semibold { font-weight: 600; } .ez-res .text-muted { color: var(--r-muted); } .ez-res .small { font-size: 12px; }
.ez-res .form-check { display: flex; align-items: center; gap: 6px; } .ez-res .m-0 { margin: 0; }
.ez-res .form-check-input { appearance: auto; width: 16px; height: 16px; }

/* public pages: results sit inside .ez-card-free container */
.ez-res{font-family:var(--font-body)}
