:root {
    --bg: #f4f7fb;
    --bg-soft: #e7eef7;
    --panel: #ffffff;
    --panel-soft: #f6f9fd;
    --line: #d2dbe8;
    --accent: #1f6fb2;
    --accent-soft: #4d91d9;
    --text: #1d2a3b;
    --muted: #5f7288;
    --ok: #1f9d62;
    --surface: #ffffff;
    --border: #d5deea;
    --shadow: 0 8px 22px rgba(18, 34, 56, 0.08);
    --sidebar-w: 290px;
    --sidebar-header-h: 110px;
    --sidebar-gradient-start: #18324f;
    --sidebar-gradient-end: #0f2236;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Barlow, "Trebuchet MS", Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1100px 460px at 100% -12%, rgba(215, 25, 32, 0.16), transparent 56%),
        radial-gradient(760px 260px at 0% 0%, rgba(215, 25, 32, 0.08), transparent 62%),
        linear-gradient(180deg, #fff8f8 0, #f7efef 54%, #f3f3f5 100%);
    min-height: 100vh;
}

a {
    color: var(--accent-soft);
}

body.theme-light {
    background:
        linear-gradient(180deg, #fff9f9 0, #f8efef 220px, #f3f4f6 100%);
}

body.theme-light a {
    color: var(--accent);
}

body.theme-light .panel,
body.theme-light .card,
body.theme-light .stat,
body.theme-light .mesa-card,
body.theme-light .report-kpis .kpi,
body.theme-light .candidate-trep,
body.theme-light .candidate-result-card,
body.theme-light .veedor-header,
body.theme-light .legal-viewer-wrap {
    background: linear-gradient(180deg, #ffffff, #fffaf9);
    border-color: #e5d8d8;
    box-shadow: 0 16px 34px rgba(76, 27, 29, 0.06);
}

body.theme-light .panel h2,
body.theme-light .stat strong,
body.theme-light .report-kpis .kpi strong,
body.theme-light .mesa-card-head span {
    color: #1f2a3a;
}

body.theme-light .main .card,
body.theme-light .main .stat,
body.theme-light .main .mesa-card,
body.theme-light .main .report-kpis .kpi,
body.theme-light .main .candidate-result-card {
    position: relative;
    border-color: #e2d7d7;
    box-shadow: 0 12px 26px rgba(76, 27, 29, 0.06);
}

body.theme-light .main .mesa-card::before,
body.theme-light .main .stat::before,
body.theme-light .main .card::before,
body.theme-light .main .report-kpis .kpi::before,
body.theme-light .main .candidate-result-card::before {
    content: '';
    position: absolute;
    left: 1px;
    right: 1px;
    top: 1px;
    height: 2px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(90deg, #d71920, #ef7d67);
    opacity: 0.82;
}

body.theme-light .stat strong.kpi-total-electores {
    color: #c4162f;
}

body.theme-light .stat strong.kpi-votaron {
    color: #1f5f3f;
}

body.theme-light .stat strong.kpi-votaron-positive {
    color: #bf152d;
}

body.theme-light .stat strong.kpi-asignados-positive {
    color: #0f7a43;
}

body.theme-light .stat.stat--total-electores,
body.theme-light .stat.stat--comprometidos,
body.theme-light .stat.stat--no-comprometidos,
body.theme-light .stat.stat--votaron-comprometidos,
body.theme-light .stat.stat--votaron {
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(76, 27, 29, 0.12);
}

body.theme-light .stat.stat--total-electores::before,
body.theme-light .stat.stat--comprometidos::before,
body.theme-light .stat.stat--no-comprometidos::before,
body.theme-light .stat.stat--votaron-comprometidos::before,
body.theme-light .stat.stat--votaron::before {
    content: none;
}

body.theme-light .stat.stat--total-electores {
    background: linear-gradient(180deg, #1f4f8f, #173867);
}

body.theme-light .stat.stat--comprometidos {
    background: linear-gradient(180deg, #e13d3f, #c91520);
}

body.theme-light .stat.stat--no-comprometidos {
    background: linear-gradient(180deg, #5f6673, #3f4652);
}

body.theme-light .stat.stat--votaron-comprometidos {
    background: linear-gradient(180deg, #1fba6f, #148d58);
}

body.theme-light .stat.stat--votaron {
    background: linear-gradient(135deg, #47b7f1, #29a8da 38%, #1fae90 100%);
}

body.theme-light .stat.stat--total-electores > div,
body.theme-light .stat.stat--total-electores strong,
body.theme-light .stat.stat--comprometidos > div,
body.theme-light .stat.stat--no-comprometidos > div,
body.theme-light .stat.stat--votaron-comprometidos > div,
body.theme-light .stat.stat--votaron > div,
body.theme-light .stat.stat--comprometidos strong,
body.theme-light .stat.stat--no-comprometidos strong,
body.theme-light .stat.stat--votaron-comprometidos strong,
body.theme-light .stat.stat--votaron strong {
    color: #ffffff !important;
}

body.theme-light .form input,
body.theme-light .form select,
body.theme-light .form textarea,
body.theme-light .password-toggle {
    color: var(--text);
    border-color: #c7d2e2;
    background: #ffffff;
}

body.theme-light .form input:focus,
body.theme-light .form select:focus,
body.theme-light .form textarea:focus {
    background: #ffffff;
}

body.theme-light .btn {
    color: #ffffff;
}

body.theme-light .countdown {
    border-color: #c4473b;
    background: linear-gradient(180deg, #e45b4a, #c9362c);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 10px 20px rgba(128, 24, 20, 0.16);
}

body.theme-light .countdown span {
    color: rgba(255, 255, 255, 0.88);
}

body.theme-light .countdown strong {
    color: #ffffff;
    letter-spacing: 0.5px;
}

body.theme-light .table-wrap,
body.theme-light .table th,
body.theme-light .table td,
body.theme-light .candidate-track-bar,
body.theme-light .mesa-progress {
    border-color: #e2d7d7;
}

body.theme-light .table {
    background: #ffffff;
}

body.theme-light .table th {
    color: #6a3d3f;
    background: #faf1f1;
}

body.theme-light .table tbody tr:nth-child(even) {
    background: #fff9f9;
}

body.theme-light .table tbody tr:hover {
    background: #fdf0f0;
}

body.theme-light .welcome-note,
body.theme-light .compliance {
    color: #734e50;
    border-color: #ead4d4;
    background: rgba(215, 25, 32, 0.07);
}

body.theme-light .slide-hint {
    color: #637892;
}

body.theme-light .reports-panel,
body.theme-light .reports-panel p,
body.theme-light .reports-panel .hint,
body.theme-light .report-card h2,
body.theme-light .report-chip,
body.theme-light .report-pagination {
    color: #2f4260;
}

body.theme-light .report-chip {
    background: transparent;
    border-color: #c8d3e4;
}

body.theme-light .report-form-grid label,
body.theme-light .report-optional-field label {
    color: #5b6f8c;
}

body.theme-light .mesa-progress,
body.theme-light .candidate-progress,
body.theme-light .candidate-track-bar {
    background: #ffffff;
}

body.theme-light.layout-sidebar .site-nav a {
    color: #f2f6ff;
}

body.theme-light.layout-sidebar .site-nav a.active {
    color: #ffffff;
}

body.theme-light.layout-sidebar .brand img {
    height: 62px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

*:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
}

body.layout-sidebar .site-header {
    position: fixed;
    top: 14px;
    left: 16px;
    right: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-height: 82px;
    padding: 14px 18px;
    border-right: none;
    border: 1px solid rgba(231, 216, 216, 0.96);
    border-bottom: 1px solid rgba(231, 216, 216, 0.96);
    border-radius: 24px;
    background:
        radial-gradient(280px 140px at 8% -18%, rgba(255, 255, 255, 0.84), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 248, 0.96));
    backdrop-filter: blur(12px);
    box-shadow:
        0 18px 38px rgba(94, 25, 29, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

body.layout-sidebar .brand {
    gap: 12px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.brand img {
    height: 58px;
    width: auto;
    display: block;
}

.brand-text {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 999px;
    background: #ffffff;
}

.menu-toggle span + span {
    margin-top: 4px;
}

.site-nav--top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    flex: 0 1 auto;
    flex-wrap: wrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    min-width: 0;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid #cc423c;
    display: inline-flex;
    align-items: center;
    width: auto;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(180deg, #e0413d, #c91420);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 10px 18px rgba(126, 26, 30, 0.2);
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.site-nav a:hover {
    filter: brightness(1.03);
    border-color: #dc716c;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 12px 22px rgba(126, 26, 30, 0.22);
}

.site-nav a.active {
    border-color: #dc716c;
    color: #fff;
    background: linear-gradient(180deg, #e0413d, #c91420);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 12px 22px rgba(126, 26, 30, 0.22);
}

.site-nav a:active,
.site-nav a.is-pressed {
    transform: translateY(1px) scale(0.995);
}

body.layout-sidebar .main {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 116px 0 36px;
    animation: fade-in 0.22s ease-out;
}

body.layout-sidebar.reports-list-page .main {
    width: min(1380px, calc(100% - 32px));
    max-width: none;
}

body.layout-sidebar.electors-page .main {
    width: min(1380px, calc(100% - 32px));
    max-width: none;
}

.topbar-logout {
    margin: 0;
}

.topbar-logout button {
    border: 1px solid #cc423c;
    background: linear-gradient(180deg, #e0413d, #c91420);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 10px 18px rgba(126, 26, 30, 0.18);
}

.mobile-bottom-nav {
    display: none;
}

.mobile-drawer-backdrop,
.mobile-drawer {
    display: none;
}

.mobile-drawer-backdrop[hidden] {
    display: none !important;
}

.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 250, 0.98));
    border: 1px solid rgba(231, 220, 220, 0.98);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 52px rgba(76, 27, 29, 0.06);
}

.panel h1,
.panel h2 {
    margin: 0 0 10px;
    font-family: Rajdhani, Barlow, sans-serif;
    letter-spacing: 0.3px;
}

.panel h2 {
    font-size: 20px;
    margin-top: 18px;
    color: #2d221b;
}

.hint {
    color: var(--muted);
    margin: 6px 0 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.form.inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.form input,
.form select,
.form textarea {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e1d3d3;
    background: #fffdfd;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 1px solid #d0bfb2;
    border-radius: 8px;
    background: #f5ede5;
    color: var(--text);
    width: 30px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.password-toggle:hover {
    border-color: #61718d;
}

.form textarea {
    min-height: 96px;
    resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(198, 95, 73, 0.16);
    background: #ffffff;
    outline: none;
}

@media (min-width: 1024px) {
    .panel-users .users-form {
        display: grid;
        grid-template-columns: 220px minmax(300px, 520px);
        column-gap: 14px;
        row-gap: 10px;
        align-items: center;
    }

    .panel-users .users-form label {
        margin: 0;
    }

    .panel-users .users-form input,
    .panel-users .users-form select,
    .panel-users .users-form textarea {
        width: 100%;
        max-width: 520px;
    }

    .panel-users .users-form input[type="hidden"] {
        display: none;
    }

    .panel-users .users-form .btn {
        grid-column: 2;
        justify-self: start;
    }
}

.btn {
    border: 1px solid #cc423c;
    background: linear-gradient(180deg, #e0413d, #c91420);
    color: #fff;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.btn-soft {
    border-color: #eadede;
    background: linear-gradient(180deg, #ffffff, #fbf3f3);
    color: #6e4b4d;
}

.btn-soft:hover {
    filter: brightness(1.06);
}

.alert {
    border: 1px solid rgba(198, 95, 73, 0.42);
    background: rgba(198, 95, 73, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.alert-success {
    border-color: rgba(56, 193, 114, 0.55);
    background: rgba(56, 193, 114, 0.14);
}

.alert-warn {
    border-color: rgba(255, 204, 102, 0.55);
    background: rgba(255, 204, 102, 0.12);
}

.alert-error {
    border-color: rgba(255, 90, 111, 0.55);
    background: rgba(226, 24, 47, 0.14);
}

.alert-info {
    border-color: rgba(94, 168, 255, 0.55);
    background: rgba(94, 168, 255, 0.12);
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
    background: rgba(154, 166, 188, 0.35);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.35);
}

.led-green,
.led.green {
    background: #30d07a;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.24),
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(56, 193, 114, 0.55),
        0 0 24px rgba(56, 193, 114, 0.18);
}

.led-yellow,
.led.yellow {
    background: #ffcf4a;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.24),
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 204, 102, 0.55),
        0 0 24px rgba(255, 204, 102, 0.18);
}

.led-red,
.led.red {
    background: #ff4b62;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.24),
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(226, 24, 47, 0.55),
        0 0 24px rgba(226, 24, 47, 0.18);
}

.led-orange,
.led.orange {
    background: #ff9f2f;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.24),
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 159, 47, 0.55),
        0 0 24px rgba(255, 159, 47, 0.18);
}

.led-black,
.led.black {
    background: #0f1116;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 0 10px rgba(0, 0, 0, 0.6);
}

.led-off {
    background: rgba(154, 166, 188, 0.26);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 0 0 1px rgba(0, 0, 0, 0.35);
}

.alert .form.inline {
    margin-top: 8px;
}

.status-ok {
    color: #9fe5ba;
    font-weight: 700;
}

.status-bad {
    color: #ff9cab;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.mesas-grid {
    --surface: #ffffff;
    --border: rgba(15, 23, 42, 0.10);
    --text: #111827;
    --muted: #6b7280;
    --shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    --accent-colorado: #b91c1c;
    --track: #dde6f2;
    --value: #0f172a;
    --pct: #334155;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin: 10px 0 14px;
}

.mesas-grid .mesa-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 12px 11px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--text);
    overflow: hidden;
}

/* IMPORTANT: avoid extra decorative pseudo-elements from global theme rules */
.mesas-grid .mesa-card::before {
    content: none !important;
}

.mesas-grid .mesa-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mesas-grid .mesa-card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Rajdhani, Barlow, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.1px;
}

.mesas-grid .mesa-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-colorado);
    opacity: 0.72;
    flex: 0 0 auto;
}

.mesas-grid .mesa-card__pct {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    color: var(--pct);
    flex: 0 0 auto;
}

.mesas-grid .mesa-card__bar {
    margin-top: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--track);
    overflow: hidden;
}

.mesas-grid .mesa-card__fill {
    height: 100%;
    border-radius: 999px;
    transition: width .28s ease;
}

/* Meta: no inner boxes; two simple stats */
.mesas-grid .mesa-card__meta {
    margin-top: 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.mesas-grid .mesa-card__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.mesas-grid .mesa-card__value {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--value);
}

.mesas-grid .mesa-card__label {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.1;
}

/* States */
.mesas-grid .mesa-card.is-zero {
    background: #fbfcfe;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.mesas-grid .mesa-card.is-zero .mesa-card__pct,
.mesas-grid .mesa-card.is-zero .mesa-card__value {
    color: #7a8698;
}

.mesas-grid .mesa-card.is-zero .mesa-card__fill {
    background: linear-gradient(90deg, #d5dce7, #c6cfdd);
}

.mesas-grid .mesa-card.is-low .mesa-card__fill {
    background: linear-gradient(90deg, #8fb6ea, #6a9bdd);
}

.mesas-grid .mesa-card.is-mid .mesa-card__fill {
    background: linear-gradient(90deg, #5ab7ab, #3f9f93);
}

.mesas-grid .mesa-card.is-high .mesa-card__fill {
    background: linear-gradient(90deg, #4fbf7c, #2f9960);
}

@media (hover: hover) and (pointer: fine) {
    .mesas-grid .mesa-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    }
}

@media (max-width: 640px) {
    .mesas-grid {
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}


.stat {
    background: linear-gradient(155deg, #ffffff, #fff7f7);
    border: 1px solid #e3d5d5;
    border-radius: 12px;
    padding: 14px 12px;
}

.stat strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    color: #372821;
}

.countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    border: 1px solid #c4473b;
    background: linear-gradient(180deg, #e45b4a, #c9362c);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 10px 20px rgba(128, 24, 20, 0.16);
}

.welcome-note {
    border: 1px solid #ddc8bb;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 0 12px;
    background: rgba(198, 95, 73, 0.08);
    color: #6d564a;
}

.countdown span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
}

.countdown strong {
    font-family: "Courier New", monospace;
    font-size: 24px;
    color: #ffffff;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 248, 0.97));
    border: 1px solid #e3d5d5;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.reports-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reports-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.report-card h2 {
    margin-bottom: 6px;
}

.report-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.report-form-grid label {
    font-size: 12px;
    color: #d2dbee;
}

.report-optional-field {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.report-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
}

.report-kpis .kpi {
    border: 1px solid #334055;
    border-radius: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #1a2230, #111823);
}

.report-kpis .kpi span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.report-kpis .kpi strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
    color: #fff;
}

.report-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-chip {
    border: 1px solid #3d4c64;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #d9e2f2;
    background: rgba(18, 26, 37, 0.82);
}

.reports-panel .table-wrap-slide {
    overflow-x: auto;
}

.reports-panel .table-wrap-slide .table {
    min-width: 1220px;
}

.report-classify-cell {
    min-width: 340px;
}

.report-classify-form {
    margin-top: 0;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.report-classify-form select {
    min-width: 190px;
}

.report-classify-form .btn {
    white-space: nowrap;
}

.report-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.slide-hint {
    display: none;
    margin: 0 0 8px;
    color: #b7c3d8;
    font-size: 12px;
}

.candidate-trep {
    border: 1px solid #364257;
    border-radius: 12px;
    background: linear-gradient(180deg, #121822, #0e141d);
    padding: 12px;
    margin-bottom: 14px;
}

.candidate-trep-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.candidate-meta-item {
    border: 1px solid #334156;
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
}

.candidate-meta-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.candidate-meta-item strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.1;
}

.candidate-trep-track {
    margin: 12px 0;
}

.candidate-track-bar {
    width: 100%;
    min-height: 16px;
    border: 1px solid #334156;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: #111824;
}

.candidate-track-segment {
    min-height: 16px;
}

.candidate-trep-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.trep-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.trep-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(91, 112, 142, 0.58);
    border-radius: 16px;
    background: linear-gradient(165deg, #1a2332, #121a26);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
    padding: 11px 12px;
}

.trep-card.is-leading {
    background: linear-gradient(165deg, #1f2b3e, #142032);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.36);
}

.trep-card__avatar {
    width: 58px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #4c5f7d;
    background: #202d42;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b6c4d9;
    font-size: 11px;
    line-height: 1;
    position: relative;
    flex: 0 0 auto;
}

.trep-card__avatar.is-clickable {
    cursor: pointer;
}

.trep-card__avatar.is-uploading {
    opacity: .65;
}

.trep-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trep-card__avatar-label {
    display: inline-block;
    padding: 0 5px;
    text-align: center;
}

.trep-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.trep-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trep-card__name {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    color: #e8eef9;
    font-family: Rajdhani, Barlow, sans-serif;
}

.trep-card__dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #b91c1c;
    opacity: .78;
    flex: 0 0 auto;
}

.trep-card__pct {
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    color: #c7d6eb;
    flex: 0 0 auto;
}

.trep-card__meta {
    margin: 6px 0 0;
    font-size: 12px;
    color: #9db0cd;
    line-height: 1.2;
}

.trep-card__bar {
    margin-top: 8px;
    height: 9px;
    border-radius: 999px;
    background: #2b394f;
    overflow: hidden;
}

body.theme-light .trep-card {
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

body.theme-light .trep-card.is-leading {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: 0 13px 24px rgba(15, 23, 42, 0.09);
}

body.theme-light .trep-card__avatar {
    border: 1px solid #d2dbea;
    background: #f3f7fd;
    color: #6c7d96;
}

body.theme-light .trep-card__name {
    color: #152238;
}

body.theme-light .trep-card__pct {
    color: #273b58;
}

body.theme-light .trep-card__meta {
    color: #607189;
}

body.theme-light .trep-card__bar {
    background: #dfe8f4;
}

.trep-card__fill {
    height: 100%;
    border-radius: 999px;
    transition: width .28s ease;
}

.candidate-result-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    border: 1px solid #3b485f;
    border-radius: 12px;
    background: #131a25;
    padding: 10px;
}

.candidate-result-left {
    border-left: 6px solid #5a6d8d;
    padding-left: 8px;
    display: flex;
    align-items: center;
}

.candidate-photo-slot {
    width: 58px;
    height: 72px;
    border: 1px dashed #596982;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8b4c8;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.candidate-photo-slot.is-clickable {
    cursor: pointer;
}

.candidate-photo-slot.is-uploading {
    opacity: 0.65;
}

.candidate-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.candidate-photo-label {
    display: inline-block;
    text-align: center;
    padding: 0 4px;
}

.candidate-result-body h3 {
    margin: 0 0 8px;
    font-family: Rajdhani, Barlow, sans-serif;
    font-size: 19px;
}

.candidate-result-row {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 6px 10px;
    align-items: baseline;
    margin-bottom: 8px;
}

.candidate-result-row span {
    color: var(--muted);
    font-size: 12px;
}

.candidate-result-row strong {
    font-size: 19px;
}

.candidate-progress {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #344156;
    background: #0f151f;
}

.candidate-progress-fill {
    height: 100%;
    border-radius: 999px;
}

table[data-table="puntero"] th:nth-child(n+2),
table[data-table="puntero"] td:nth-child(n+2) {
    text-align: right;
}

.legales-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.legal-doc-card.is-active {
    border-color: #51658a;
    box-shadow: inset 0 0 0 1px rgba(142, 167, 210, 0.2);
}

.legal-viewer-card {
    padding: 10px;
}

.legal-viewer-wrap {
    border: 1px solid #324056;
    border-radius: 10px;
    overflow: hidden;
    background: #0c121b;
}

.legal-viewer {
    width: 100%;
    min-height: 72vh;
    border: 0;
    display: block;
}

.legal-search-form input[type="text"] {
    min-width: min(420px, 100%);
}

.legal-mobile-note {
    display: none;
}

@media (max-width: 767px) {
    .legal-viewer {
        display: none;
    }

    .legal-mobile-note {
        display: block;
    }

    .reports-panel .table-wrap-slide .table {
        min-width: 980px;
    }

    .report-classify-cell {
        min-width: 280px;
    }

    .report-classify-form {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 480px) {
    .report-classify-form {
        grid-template-columns: 1fr;
    }

    .report-classify-form .btn {
        width: 100%;
    }
}

.panel-login {
    max-width: 520px;
    margin: 8px auto;
}

.login-cover {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: 64% 34%;
    border-radius: 10px;
    border: 1px solid #334055;
    margin-bottom: 12px;
    background: #0f141c;
}

body.theme-light .login-cover {
    border: none;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #d7c9bd;
    border-radius: 16px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(70, 39, 24, 0.05);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    background: rgba(255, 255, 255, 0.98);
}

body.electors-page .table-wrap .table {
    min-width: 1480px;
}

body.electors-page .table-wrap .table th:last-child,
body.electors-page .table-wrap .table td:last-child {
    min-width: 270px;
}

.electors-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.electors-shell {
    border: 1px solid #d8dde6;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(23, 41, 65, 0.08);
    overflow: hidden;
}

.electors-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c43c4f;
}

.electors-breadcrumb {
    padding: 14px 22px;
    font-size: 14px;
    color: #707d90;
    border-bottom: 1px solid #eef2f7;
}

.electors-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 188px;
    padding: 34px 20px;
    background: #ef1419;
    text-align: center;
}

.electors-banner h1 {
    margin: 0;
    max-width: 980px;
    color: #ffffff;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.04;
    text-transform: uppercase;
    font-family: Rajdhani, Barlow, sans-serif;
}

.electors-search-stage {
    padding: 44px 24px 46px;
    text-align: center;
}

.electors-search-card,
.elector-focus-card,
.elector-vote-card,
.electors-empty-state {
    position: relative;
    overflow: hidden;
}

.electors-search-stage h2 {
    margin: 0;
    color: #101826;
    font-size: clamp(28px, 3vw, 42px);
}

.electors-search-stage p {
    margin: 14px 0 0;
    color: #ef1419;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
}

.electors-search-stage__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.electors-search-input {
    display: flex;
    align-items: center;
    width: min(100%, 400px);
    min-height: 48px;
    border: 1px solid #bfc8d6;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.electors-search-input__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-right: 1px solid #d2dae6;
    font-size: 28px;
    color: #111111;
}

.electors-search-input input {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    padding: 8px 14px;
    color: #172435;
}

.electors-search-input input:focus {
    background: #ffffff;
    box-shadow: none;
}

.electors-search-stage .btn {
    min-width: 128px;
    border-color: #cd6f69;
    background: linear-gradient(180deg, #e06a63, #d5524b);
    box-shadow: none;
}

.electors-search-stage .btn:hover {
    box-shadow: none;
}

.elector-focus-meta__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6a7a8e;
}

.elector-focus-card {
    padding: 20px;
}

.elector-focus-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.elector-focus-card__status {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f2f6fb;
    border: 1px solid #d5deea;
    font-weight: 700;
    white-space: nowrap;
}

.elector-focus-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.elector-focus-meta__item {
    padding: 14px;
    border: 1px solid #d5deea;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.elector-focus-meta__item strong {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.elector-focus-meta__item--name {
    grid-column: span 2;
}

.elector-form-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.elector-form-grid--soft {
    grid-template-columns: minmax(260px, 1fr) auto;
}

.elector-form-grid > * {
    margin: 0;
}

.elector-vote-card {
    margin-top: 16px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.elector-vote-card h3 {
    margin: 0;
}

.elector-vote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.elector-vote-actions .form {
    margin-top: 0;
}

.electors-empty-state {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px dashed #c9d5e5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    color: #44566f;
}

.electors-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.electors-results-head h2 {
    margin-top: 6px;
}

.elector-results-wrap {
    margin-top: 0;
}

.elector-col-secondary {
    white-space: nowrap;
}

body.theme-light .elector-focus-card,
body.theme-light .elector-vote-card {
    background: #ffffff;
}

body.theme-light .elector-table {
    background: #ffffff;
}

body.theme-light .elector-table th {
    color: #31445e;
    background: #f2f4f8;
}

body.theme-light .elector-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

body.theme-light .elector-table tbody tr:hover {
    background: #f2f6fb;
}

.elector-table td[data-label="Accion"] {
    min-width: 280px;
}

.elector-action-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.elector-action-form select {
    min-width: 150px;
}

.elector-action-form [data-elector-action-reason] {
    min-width: 160px;
}

td[data-elector-action-click-select] {
    cursor: pointer;
}

.elector-select-link {
    color: inherit;
    text-decoration: none;
}

.elector-select-link:hover,
.elector-select-link:focus,
.elector-select-link:active,
.elector-select-link:visited {
    color: inherit;
    text-decoration: none;
}

.table th,
.table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #2e3b50;
}

.table th {
    font-size: 12px;
    color: #d6deeb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #151d2a;
}

.table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.table td.empty {
    text-align: center;
    color: var(--muted);
    padding: 18px 10px;
}

.acta-preview {
    width: min(620px, 100%);
    max-height: 420px;
    object-fit: contain;
    border: 1px solid #334055;
    border-radius: 10px;
    background: #0f141c;
    margin-top: 8px;
}

.logout-form {
    margin-top: 8px;
    width: 100%;
}

.logout-form button {
    border: 1px solid #ffd7de;
    background: linear-gradient(180deg, #fff3f5, #f6d8de);
    color: #7f0f21;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(18, 2, 6, 0.2);
}

.logout-form button:hover {
    background: linear-gradient(180deg, #ffffff, #f2c9d2);
}

body.layout-sidebar .compliance {
    width: min(1180px, calc(100% - 32px - var(--sidebar-w)));
    margin: 14px 16px 14px calc(var(--sidebar-w) + 16px);
    padding: 10px 12px;
    border: 1px dashed #3f4d62;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
    background: rgba(12, 16, 24, 0.65);
}

.compliance a {
    color: #ffc0c8;
    margin-right: 10px;
    text-decoration: none;
}

.veedor-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.veedor-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: #121a25;
    border: 1px solid #334055;
    border-radius: 12px;
    padding: 12px 16px;
}

.veedor-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--muted);
}

.veedor-mesa {
    font-size: 36px;
    font-weight: 700;
}

.veedor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
}

.veedor-cell {
    border: 1px solid #334055;
    background: linear-gradient(180deg, #1a2433, #131c29);
    color: #f3f6ff;
    padding: 14px 6px;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, filter 0.12s ease;
}

.veedor-cell:hover:not(:disabled) {
    border-color: #5c6f8b;
    filter: brightness(1.04);
}

.veedor-cell:active:not(:disabled) {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.veedor-cell.is-pressed:not(:disabled) {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.veedor-cell.is-selected {
    background: linear-gradient(180deg, #ff5b71, #d4152d);
    color: #fff;
    border-color: #ff93a1;
    box-shadow: 0 0 0 2px rgba(255, 129, 145, 0.26);
}

.veedor-cell.is-done {
    background: #15803D;
    color: #ffffff;
    border-color: #166534;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    opacity: 0.95;
}

.veedor-grid.is-locked {
    opacity: 0.45;
    pointer-events: none;
}

.veedor-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.veedor-modal.is-open {
    display: block;
}

.veedor-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 14, 0.55);
}

.veedor-modal-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(360px, calc(100vw - 28px));
    border: 1px solid #445571;
    border-radius: 12px;
    background: linear-gradient(180deg, #1a2332, #131b28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    padding: 14px;
    animation: veedor-modal-in 0.16s ease-out;
}

.veedor-modal-text {
    margin: 0 0 12px;
    color: #e9eef9;
    font-size: 15px;
}

.veedor-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.veedor-modal-actions .btn {
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.veedor-modal-actions .btn:hover {
    filter: brightness(1.04);
}

.veedor-modal-actions .btn:active,
.veedor-modal-actions .btn.is-pressed {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.veedor-modal-cancel {
    border-color: #4a596f;
    background: linear-gradient(180deg, #2d384b, #20293a);
}

@keyframes veedor-modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, -47%) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .panel {
        padding: 14px;
    }

    .table {
        min-width: 620px;
    }

    .veedor-grid {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    }

    .veedor-cell {
        padding: 12px 4px;
        font-size: 14px;
    }

    .login-cover {
        height: 150px;
        object-position: 66% 32%;
    }
}

@media (max-width: 1100px) {
    .elector-focus-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elector-focus-meta__item--name {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    body.theme-light {
        background:
            linear-gradient(180deg, #d71920 0 126px, #fbf0f0 126px 62%, #f3f4f6 100%);
    }

    body.layout-sidebar::before {
        content: '';
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        height: 126px;
        z-index: 0;
        background: linear-gradient(180deg, #d71920, #bf131d);
        pointer-events: none;
    }

    .electors-breadcrumb {
        padding: 12px 16px;
        font-size: 13px;
    }

    .electors-banner {
        min-height: 280px;
        padding: 32px 18px;
    }

    .electors-banner h1 {
        font-size: 36px;
        line-height: 1.06;
    }

    .electors-search-stage {
        padding: 38px 16px 34px;
    }

    .electors-search-stage p {
        font-size: 16px;
    }

    .elector-focus-card__head,
    .electors-results-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .elector-focus-meta,
    .elector-form-grid,
    .elector-form-grid--soft {
        grid-template-columns: 1fr;
    }

    .elector-focus-meta__item--name {
        grid-column: span 1;
    }

    .elector-focus-card {
        padding: 14px;
    }

    .elector-focus-card h2 {
        margin-bottom: 2px;
        font-size: 22px;
    }

    .elector-focus-card__status {
        padding: 6px 10px;
        font-size: 13px;
    }

    .elector-focus-meta {
        gap: 8px;
        margin-top: 12px;
    }

    .elector-focus-meta__item {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .elector-focus-meta__item:nth-child(n+4) {
        display: none;
    }

    .elector-vote-actions {
        flex-direction: column;
    }

    .elector-vote-card {
        padding: 12px;
    }

    .elector-vote-card p {
        display: none;
    }

    .elector-vote-actions .form,
    .elector-vote-actions .btn,
    .electors-search-stage__form .btn,
    .elector-form-grid .btn {
        width: 100%;
    }

    .electors-search-input,
    .electors-search-input input,
    .elector-form-grid input,
    .elector-form-grid select {
        width: 100%;
    }

    body.layout-sidebar .site-header {
        top: 0;
        left: 0;
        right: 0;
        min-height: 90px;
        padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
        justify-content: space-between;
        background: linear-gradient(180deg, rgba(215, 25, 32, 0.98), rgba(191, 19, 29, 0.98));
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 0;
        box-shadow: 0 14px 24px rgba(120, 10, 16, 0.2);
    }

    body.layout-sidebar .brand {
        width: auto;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        flex: 1 1 auto;
    }

    body.layout-sidebar .brand img {
        height: 58px;
        max-width: min(74vw, 320px);
        object-fit: contain;
        object-position: center;
    }

    body.theme-light.layout-sidebar .brand img.brand-photo {
        height: 58px;
        width: auto;
        max-width: min(74vw, 320px);
        border-radius: 0;
        object-fit: contain;
        object-position: center;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.24);
        background: rgba(255, 255, 255, 0.16);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.14),
            0 8px 18px rgba(108, 13, 19, 0.16);
        flex: 0 0 auto;
    }

    .topbar-actions {
        display: none;
    }

    body.layout-sidebar .main {
        position: relative;
        z-index: 1;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding: 102px 12px 24px;
    }

    body.layout-sidebar.reports-list-page .main,
    body.layout-sidebar.electors-page .main {
        width: 100%;
        max-width: none;
    }

    body.layout-sidebar .panel {
        border-radius: 26px;
        padding: 18px 16px;
        box-shadow: 0 18px 34px rgba(76, 27, 29, 0.08);
    }

    body.layout-sidebar .compliance {
        width: calc(100% - 32px);
        margin: 14px 16px;
    }

    .mobile-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 79;
        display: block;
        background: rgba(63, 10, 14, 0.42);
        backdrop-filter: blur(4px);
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: flex;
        flex-direction: column;
        width: min(84vw, 340px);
        padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, #fffefe, #fbefef);
        border-left: 1px solid rgba(214, 176, 176, 0.42);
        box-shadow: -18px 0 40px rgba(94, 25, 29, 0.2);
        transform: translateX(100%);
        transition: transform 0.22s ease;
        pointer-events: none;
    }

    .mobile-drawer.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 18px;
    }

    .mobile-drawer__brand img {
        display: block;
        height: 46px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .mobile-drawer__close {
        width: 42px;
        height: 42px;
        border: 1px solid #ead6d6;
        border-radius: 14px;
        background: #fff9f9;
        color: #9c2428;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-drawer__nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-drawer__link {
        display: flex;
        align-items: center;
        min-height: 50px;
        padding: 0 14px;
        border-radius: 16px;
        border: 1px solid #eadbdb;
        background: rgba(255, 255, 255, 0.94);
        color: #742d31;
        text-decoration: none;
        font-weight: 700;
        box-shadow: 0 8px 18px rgba(94, 25, 29, 0.06);
    }

    .mobile-drawer__link.active {
        background: linear-gradient(180deg, #e0413d, #c91420);
        border-color: #cc423c;
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(94, 25, 29, 0.16);
    }

    .mobile-drawer__logout {
        margin-top: auto;
        padding-top: 16px;
    }

    .mobile-drawer__logout-btn {
        width: 100%;
        min-height: 50px;
        border: 1px solid #cc423c;
        border-radius: 16px;
        background: linear-gradient(180deg, #e0413d, #c91420);
        color: #fff;
        font-weight: 800;
        cursor: pointer;
        box-shadow: 0 12px 24px rgba(94, 25, 29, 0.16);
    }

    body.mobile-drawer-open {
        overflow: hidden;
    }

    body.electors-page .table-wrap .table {
        min-width: 100%;
    }

    body.electors-page .table-wrap .table th:last-child,
    body.electors-page .table-wrap .table td:last-child {
        min-width: 0;
    }

    .elector-col-secondary {
        display: none;
    }

    .elector-results-wrap {
        margin-top: 2px;
    }

    .logout-form {
        padding-bottom: 18px;
    }

    .slide-hint {
        display: block;
    }

    .table-wrap-slide {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap-slide::after {
        content: '';
        position: sticky;
        right: 0;
        float: right;
        width: 24px;
        height: 100%;
        background: linear-gradient(90deg, rgba(11, 15, 22, 0), rgba(11, 15, 22, 0.95));
        pointer-events: none;
    }

    .table-mobile-slide th,
    .table-mobile-slide td {
        padding: 7px 9px;
        font-size: 13px;
        white-space: nowrap;
    }

    .table-mobile-slide th:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #151d2a;
        box-shadow: 1px 0 0 #2e3b50;
    }

    .table-mobile-slide td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #111925;
        box-shadow: 1px 0 0 #2e3b50;
    }

    .table-mobile-slide tbody tr:nth-child(even) td:first-child {
        background: #141e2d;
    }

    body.theme-light .table-wrap-slide::after {
        background: linear-gradient(90deg, rgba(255, 248, 248, 0), rgba(255, 248, 248, 0.98));
    }

    body.theme-light .table-mobile-slide th:first-child {
        background: #fbf1f1;
        box-shadow: 1px 0 0 #e3d7d7;
    }

    body.theme-light .table-mobile-slide td:first-child {
        background: #ffffff;
        box-shadow: 1px 0 0 #e3d7d7;
    }

    body.theme-light .table-mobile-slide tbody tr:nth-child(even) td:first-child {
        background: #fff8f8;
    }

    .elector-results-wrap {
        overflow-x: auto;
        border: 1px solid #d1d9e6;
        border-radius: 14px;
        background: #ffffff;
        -webkit-overflow-scrolling: touch;
    }

    .elector-table {
        min-width: 880px;
        background: #ffffff;
    }

    .elector-action-form {
        flex-wrap: nowrap;
        align-items: center;
    }

    .elector-action-form select,
    .elector-action-form [data-elector-action-reason],
    .elector-action-form .btn {
        width: auto;
        min-width: 0;
    }

    td[data-elector-action-click-select] {
        cursor: pointer;
    }

    .site-credit {
        display: none;
    }
}

body.layout-auth .site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    justify-content: flex-start;
    padding-left: 14px;
    border-right: none;
}

body.layout-auth .brand img {
    height: 44px;
}

body.layout-auth .main {
    margin-left: 0;
    width: 100%;
    min-height: 100vh;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.layout-auth .compliance {
    width: calc(100% - 32px);
    margin: 14px 16px;
}

body.layout-auth .panel-login {
    width: min(520px, 100%);
    margin: 0;
}

.site-credit {
    width: min(1320px, calc(100% - 32px));
    margin: 4px auto 18px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 767px) {
    .site-credit {
        width: calc(100% - 32px);
        margin: 2px 16px 18px;
        text-align: left;
    }
}

.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #06080d;
}

.splash-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.splash-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 50% 50%, rgba(8, 11, 17, 0.25), rgba(8, 11, 17, 0.88)),
        linear-gradient(180deg, rgba(8, 11, 17, 0.15), rgba(8, 11, 17, 0.75));
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 16px;
}

.splash-content img {
    width: min(320px, 70vw);
    height: auto;
    display: block;
    margin: 0 auto 12px;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45));
}

.splash-content p {
    margin: 0;
    font-size: clamp(14px, 2.3vw, 18px);
    letter-spacing: 1px;
    color: #f7f9ff;
}

.splash-skip {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(10, 13, 19, 0.45);
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
}

.splash-overlay.is-hiding {
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.birthday-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.birthday-panel__toggle {
    flex: 0 0 auto;
}

.birthday-message-cell {
    min-width: 280px;
    white-space: normal;
}

.btn.btn-secondary {
    background: #1f3658;
    border-color: #1f3658;
}

.birthday-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

.birthday-modal.is-open {
    display: block !important;
}

.birthday-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 15, 0.65);
}

.birthday-modal__card {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 32px));
    margin: 10vh auto 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f5f8fd);
    color: #1f2a3a;
    box-shadow: 0 30px 60px rgba(6, 12, 20, 0.32);
}

.birthday-modal__list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.birthday-modal__item {
    padding: 12px 14px;
    border: 1px solid #d3dceb;
    border-radius: 12px;
    background: #ffffff;
    color: #31445e;
}

.birthday-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.birthday-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(20, 160, 75, 0.55);
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 6px 14px rgba(37, 211, 102, 0.24);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.birthday-whatsapp-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.birthday-whatsapp-btn:hover {
    background: #22c55e;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 8px 18px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

.birthday-whatsapp-btn:focus-visible {
    outline: 2px solid #0f7a43;
    outline-offset: 2px;
}

.birthday-action-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.birthday-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef3f9;
    color: #445975;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.birthday-status-badge.is-sent {
    background: rgba(37, 211, 102, 0.16);
    color: #138a46;
}

.birthday-status-meta {
    color: #667892;
    font-size: 11px;
    line-height: 1.3;
}

.birthday-sent-label {
    color: #138a46;
    font-size: 12px;
    font-weight: 700;
}

.birthday-reset-btn {
    border: 1px solid #cdd7e5;
    background: #ffffff;
    color: #445975;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}
