/**
 * TSE Apuração Eleições 2026 - Frontend Styling
 * Estilo premium para Expressão Brasiliense
 * Accordion (Collapse/Expand) com 2 Abas (Total / Estado) por cargo
 */

:root {
    --tse-primary: #0f172a;
    --tse-accent: #2563eb;
    --tse-accent-hover: #1d4ed8;
    --tse-live-red: #ef4444;
    --tse-card-bg: #ffffff;
    --tse-card-border: #e2e8f0;
    --tse-text-main: #0f172a;
    --tse-text-muted: #64748b;
    --tse-radius: 12px;
    --tse-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --tse-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --tse-green: #10b981;
    --tse-amber: #f59e0b;
}

.tse-apuracao-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--tse-text-main);
    background-color: #f8fafc;
    border: 1px solid var(--tse-card-border);
    border-radius: var(--tse-radius);
    padding: 24px;
    margin: 25px 0;
    box-shadow: var(--tse-shadow);
    box-sizing: border-box;
}

.tse-apuracao-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   BARRA SUPERIOR (TOP BAR)
   ========================================================================== */
.tse-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--tse-card-border);
    border-radius: var(--tse-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.tse-top-bar-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tse-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fef2f2;
    color: var(--tse-live-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid #fecaca;
    width: fit-content;
}

.tse-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--tse-live-red);
    border-radius: 50%;
    animation: tsePulse 1.8s infinite;
}

@keyframes tsePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.tse-main-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--tse-primary);
    line-height: 1.2;
}

.tse-top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tse-timer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    color: var(--tse-text-muted);
}

.tse-countdown-badge {
    color: var(--tse-accent);
    font-size: 11px;
    font-weight: 600;
}

.tse-sync-policy-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2px;
    white-space: nowrap;
}

.tse-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    color: var(--tse-accent);
    border: 1px solid var(--tse-card-border);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tse-btn-action:hover {
    background-color: #eff6ff;
    border-color: var(--tse-accent);
}

.tse-btn-refresh.loading .tse-icon-refresh {
    animation: tseSpin 0.8s linear infinite;
}

@keyframes tseSpin {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   ACCORDION (COLLAPSE / EXPAND)
   ========================================================================== */
.tse-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tse-collapse-item {
    background: #ffffff;
    border: 1px solid var(--tse-card-border);
    border-radius: var(--tse-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tse-collapse-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.tse-collapse-item.active {
    border-color: #93c5fd;
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.08);
}

/* HEADER DO COLLAPSE */
.tse-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #ffffff;
    user-select: none;
    transition: background-color 0.2s;
}

.tse-collapse-header:hover {
    background-color: #f8fafc;
}

.tse-collapse-item.active .tse-collapse-header {
    background-color: #f0f7ff;
    border-bottom: 1px solid #e2e8f0;
}

.tse-collapse-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tse-cargo-icon {
    font-size: 24px;
    line-height: 1;
}

.tse-collapse-title-group {
    display: flex;
    flex-direction: column;
}

.tse-collapse-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--tse-primary);
}

.tse-collapse-subtitle {
    font-size: 12px;
    color: var(--tse-text-muted);
}

.tse-collapse-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tse-urnas-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 9999px;
    color: #475569;
}

.tse-collapse-item.active .tse-urnas-pill {
    background: #e0f2fe;
    border-color: #bfdbfe;
    color: #0369a1;
}

.tse-collapse-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-right: 4px;
}

.tse-collapse-item.active .tse-collapse-arrow {
    transform: rotate(-135deg);
    border-color: var(--tse-accent);
}

/* CORPO DO COLLAPSE */
.tse-collapse-body {
    padding: 20px;
    background: #ffffff;
}

/* ==========================================================================
   02 SUB-ABAS POR COLLAPSE (TOTAL / ESTADO)
   ========================================================================== */
.tse-collapse-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.tse-subtab-btn {
    background: #f1f5f9;
    color: var(--tse-text-muted);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tse-subtab-btn:hover {
    color: var(--tse-accent);
    background-color: #e2e8f0;
}

.tse-subtab-btn.active {
    background: var(--tse-accent);
    color: #ffffff;
    border-color: var(--tse-accent);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* PANES */
.tse-tab-pane {
    display: none;
}

.tse-tab-pane.active {
    display: block;
}

/* ==========================================================================
   OVERVIEW GRID (RESUMO TOTAL DE GOVERNADOR, SENADOR, DEPUTADOS)
   ========================================================================== */
.tse-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.tse-overview-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--tse-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.tse-overview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.tse-overview-card-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--tse-primary);
    flex-grow: 1;
}

.tse-badge-state {
    background: var(--tse-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.tse-ov-pct {
    font-size: 12px;
    color: #64748b;
}

.tse-ov-pct strong {
    color: var(--tse-accent);
}

.tse-overview-card-body {
    flex-grow: 1;
}

.tse-overview-card-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.tse-btn-switch-state {
    width: 100%;
    background: #ffffff;
    color: var(--tse-accent);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.tse-btn-switch-state:hover {
    background: var(--tse-accent);
    color: #ffffff;
    border-color: var(--tse-accent);
}

/* MINI RANKING LIST */
.tse-mini-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tse-mini-cand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 8px 10px;
}

.tse-mini-rank {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    width: 20px;
}

.tse-mini-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f1f5f9;
}

.tse-mini-cand-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tse-mini-cand-name {
    font-size: 13px;
    color: var(--tse-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tse-mini-cand-party {
    font-size: 11px;
    color: var(--tse-text-muted);
}

.tse-mini-cand-votes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tse-mini-pct {
    font-size: 14px;
    font-weight: 800;
    color: var(--tse-primary);
}

.tse-mini-vcount {
    font-size: 10px;
    color: var(--tse-text-muted);
}

/* ==========================================================================
   SELETORES DE ESTADO (PILLS E DROPDOWN)
   ========================================================================== */
.tse-uf-pills-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.tse-full-states-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.tse-uf-selector-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tse-uf-selector-row .tse-pills-label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--tse-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tse-uf-selector-row .tse-select-state-uf {
    min-width: 280px;
    max-width: 100%;
    padding: 8px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tse-uf-selector-row .tse-select-state-uf:focus {
    border-color: var(--tse-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.tse-quick-pills-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.tse-quick-pills-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--tse-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tse-pills-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--tse-primary);
}

.tse-pills-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tse-pill-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.tse-pill-btn:hover {
    border-color: var(--tse-accent);
    color: var(--tse-accent);
}

.tse-pill-btn.active {
    background: var(--tse-primary);
    color: #ffffff;
    border-color: var(--tse-primary);
}

.tse-search-dep-wrap {
    flex-grow: 1;
    max-width: 320px;
}

.tse-input-search-dep {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
}

/* ==========================================================================
   PROGRESS BAR & QUICK STATS
   ========================================================================== */
.tse-progress-block {
    margin-bottom: 16px;
}

.tse-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.tse-progress-label strong {
    color: var(--tse-primary);
    font-size: 14px;
}

.tse-curr-uf-tag {
    color: var(--tse-text-muted);
    font-weight: 600;
}

.tse-progress-value strong {
    font-size: 17px;
    font-weight: 800;
    color: var(--tse-accent);
}

.tse-secoes-count {
    color: var(--tse-text-muted);
    font-size: 12px;
}

.tse-progress-track {
    background-color: #e2e8f0;
    height: 10px;
    border-radius: 9999px;
    overflow: hidden;
}

.tse-progress-bar {
    background: linear-gradient(90deg, #2563eb, #3b82f6, #10b981);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tse-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.tse-stat-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.tse-stat-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tse-text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.tse-stat-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--tse-primary);
}

.tse-stat-sub {
    font-size: 11px;
    color: var(--tse-text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   CANDIDATES GRID & CARDS
   ========================================================================== */
.tse-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.tse-pane-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--tse-primary);
    word-break: break-word;
}

.tse-pane-cand-count {
    font-size: 12px;
    color: var(--tse-text-muted);
}

.tse-candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

.tse-cand-card {
    background: #ffffff;
    border: 1px solid var(--tse-card-border);
    border-radius: var(--tse-radius);
    padding: 16px;
    display: flex;
    gap: 14px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tse-cand-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tse-shadow-hover);
}

.tse-cand-card.tse-card-leader {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.tse-cand-card.tse-cand-hidden {
    display: none !important;
}

.tse-cand-badge-rank {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
}

.tse-cand-avatar-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.tse-cand-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f1f5f9;
    border: 2px solid var(--party-color, #cbd5e1);
}

.tse-cand-num-tag {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--tse-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.tse-cand-details {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tse-cand-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.tse-cand-name {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--tse-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tse-party-tag {
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
}

.tse-cand-coligacao {
    font-size: 11px;
    color: var(--tse-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.tse-cand-vice {
    font-size: 11px;
    color: #475569;
    margin-bottom: 6px;
}

.tse-cand-votes-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    margin-bottom: 6px;
}

.tse-cand-pct {
    font-size: 20px;
    font-weight: 900;
    color: var(--tse-primary);
}

.tse-cand-votes-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--tse-text-muted);
}

.tse-cand-bar-wrap {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tse-cand-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

.tse-cand-status-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.status-eleito { background-color: #d1fae5; color: #065f46; }
.status-segundo-turno { background-color: #fef3c7; color: #92400e; }
.status-suplente { background-color: #e0f2fe; color: #075985; }
.status-nao-eleito { background-color: #f1f5f9; color: #64748b; }
.status-default { background-color: #f1f5f9; color: #475569; }

.tse-load-more-wrap {
    text-align: center;
    margin-top: 20px;
}

.tse-btn-load-more {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tse-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.tse-btn-load-more:hover {
    background-color: #f8fafc;
    border-color: var(--tse-accent);
    color: var(--tse-accent);
}

/* ==========================================================================
   TABELA DE ESTADOS (PRESIDENTE)
   ========================================================================== */
.tse-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tse-filter-label {
    font-size: 13px;
    font-weight: 700;
}

.tse-uf-select {
    padding: 7px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #ffffff;
    cursor: pointer;
}

.tse-states-subhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.tse-input-search-states {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

.tse-states-table-wrap {
    background: #ffffff;
    border: 1px solid var(--tse-card-border);
    border-radius: var(--tse-radius);
    overflow-x: auto;
}

.tse-states-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.tse-states-table th {
    background-color: #f8fafc;
    color: var(--tse-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.tse-states-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.tse-states-table tr:hover {
    background-color: #f8fafc;
}

.tse-state-badge {
    background-color: var(--tse-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

.tse-state-name {
    color: var(--tse-primary);
    font-size: 14px;
}

.tse-state-pct-bar-wrap {
    min-width: 130px;
}

.tse-state-pct {
    font-weight: 700;
    color: var(--tse-accent);
}

.tse-state-track {
    background-color: #e2e8f0;
    height: 6px;
    border-radius: 9999px;
    overflow: hidden;
    margin: 4px 0;
}

.tse-state-fill {
    background-color: var(--tse-accent);
    height: 100%;
}

.tse-state-counts {
    font-size: 11px;
    color: var(--tse-text-muted);
}

.tse-cand-mini {
    display: flex;
    flex-direction: column;
}

.tse-mini-name {
    color: var(--tse-primary);
    font-size: 13px;
}

.tse-mini-party {
    font-size: 11px;
    font-weight: 700;
    color: var(--tse-text-muted);
}

.tse-mini-pct {
    font-size: 12px;
    font-weight: 800;
    color: var(--tse-accent);
}

.tse-mini-votos {
    font-size: 10px;
    color: var(--tse-text-muted);
}

.tse-btn-view-state,
.tse-states-table .tse-btn-switch-state {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tse-accent);
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    display: inline-block;
    transition: all 0.2s ease;
}

.tse-btn-view-state:hover,
.tse-states-table .tse-btn-switch-state:hover {
    background-color: var(--tse-accent);
    color: #ffffff;
    border-color: var(--tse-accent);
}

.tse-section-intro {
    margin: 8px 0 14px 0;
}

.tse-section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--tse-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tse-cargo-states-table {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

.tse-vagas-tag {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.tse-td-vagas {
    padding: 12px 14px;
}

.tse-hidden {
    display: none !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tse-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: var(--tse-text-muted);
}

.tse-footer a {
    color: var(--tse-accent);
    text-decoration: none;
    font-weight: 700;
}

.tse-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   BANNER VEJA MAIS (CTA HOME PAGE)
   ========================================================================== */
.tse-see-more-banner {
    margin-top: 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    border-radius: var(--tse-radius);
    padding: 3px;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2), 0 4px 6px -4px rgba(37, 99, 235, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tse-see-more-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 20px -3px rgba(37, 99, 235, 0.3), 0 6px 8px -4px rgba(37, 99, 235, 0.15);
}

.tse-see-more-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 22px;
    border-radius: calc(var(--tse-radius) - 2px);
    transition: background-color 0.2s ease;
}

.tse-see-more-link:hover {
    background: #1e293b;
    text-decoration: none;
}

.tse-see-more-icon-wrap {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.tse-see-more-text-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tse-see-more-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.tse-see-more-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}

.tse-see-more-sub {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.tse-see-more-arrow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.tse-see-more-link:hover .tse-see-more-arrow-btn {
    background: #1d4ed8;
}

.tse-see-more-link:hover .tse-arrow-svg {
    transform: translateX(4px);
}

.tse-arrow-svg {
    transition: transform 0.2s ease;
}

/* MODO HOME PAGE ESPECÍFICO */
.tse-home-mode {
    border-left: 4px solid var(--tse-accent);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    /* Previne vazamentos no layout mobile */
    html, body {
        overflow-x: hidden;
    }

    body.has-tse-apuracao-page #content,
    body.has-tse-apuracao-page #content > .container,
    body.has-tse-apuracao-page #content > .container > .row,
    body.has-tse-apuracao-page .single-post-wrapper,
    body.has-tse-apuracao-page .content-wrapper,
    body.has-tse-apuracao-page .entry-content,
    body.page-id-52125 #content,
    body.page-id-52125 #content > .container,
    body.page-id-52125 #content > .container > .row,
    body.page-id-52125 .single-post-wrapper,
    body.page-id-52125 .content-wrapper,
    body.page-id-52125 .entry-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tse-apuracao-wrapper {
        padding: 10px 8px !important;
        margin: 8px 0 25px 0 !important;
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Top bar no mobile */
    .tse-top-bar {
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 8px !important;
    }

    .tse-main-title {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .tse-top-bar-right {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .tse-timer-info {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 6px !important;
        font-size: 11px !important;
    }

    .tse-btn-toggle-all {
        width: 100% !important;
        text-align: center !important;
        padding: 8px !important;
        font-size: 12px !important;
    }

    /* Collapses contidos sem sair da tela */
    .tse-collapse-item,
    .tse-item-presidente,
    .tse-item-governador,
    .tse-item-senador,
    .tse-item-deputado_federal,
    .tse-item-deputado_distrital {
        border-radius: 8px !important;
        margin-bottom: 12px !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tse-collapse-header {
        padding: 12px 14px !important;
        gap: 8px !important;
    }

    .tse-collapse-title {
        font-size: 15px !important;
    }

    .tse-collapse-subtitle {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .tse-urnas-pill {
        display: none !important;
    }

    .tse-collapse-body,
    .tse-collapse-item .tse-collapse-body {
        padding: 12px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
    }

    /* Sub-abas flexíveis que não estouram a largura */
    .tse-collapse-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        margin-bottom: 14px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .tse-subtab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 8px 6px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Tab Panes totalmente contidas */
    .tse-tab-pane,
    .tse-tab-pane.active,
    .pane-pres-total,
    .pane-home-pres-total,
    .pane-pres-estados,
    .pane-home-pres-estados,
    .pane-gov-total,
    .pane-gov-estados,
    .tse-state-content-area {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
    }

    /* Cabeçalho da Aba de Presidente (impede explosão da largura pelo título longo) */
    .tse-pane-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-bottom: 12px !important;
    }

    .tse-pane-title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
        white-space: normal !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tse-pane-cand-count {
        font-size: 11px !important;
        color: var(--tse-text-muted) !important;
    }

    /* Cards com percentual de votos (Quick Stats) */
    .tse-quick-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-bottom: 14px !important;
    }

    .tse-stat-item {
        padding: 8px 10px !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .tse-stat-title {
        font-size: 9px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .tse-stat-num {
        font-size: 13px !important;
        word-break: break-word !important;
    }

    .tse-stat-sub {
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    /* Barra de progresso das urnas */
    .tse-progress-block {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .tse-progress-meta {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .tse-progress-label {
        font-size: 12px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
        white-space: normal !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tse-progress-value {
        display: flex !important;
        align-items: baseline !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tse-progress-value strong {
        font-size: 16px !important;
    }

    .tse-secoes-count {
        font-size: 11px !important;
    }

    /* Overview Grid (Cards de destaques regionais com percentual) */
    .tse-overview-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .tse-overview-card {
        padding: 12px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .tse-overview-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .tse-overview-card-header h4 {
        font-size: 13px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    .tse-ov-pct {
        font-size: 11px !important;
    }

    .tse-mini-cand-row {
        padding: 6px 8px !important;
        gap: 8px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .tse-mini-avatar {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
    }

    .tse-mini-cand-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .tse-mini-cand-name {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .tse-mini-cand-votes {
        flex-shrink: 0 !important;
        text-align: right !important;
        margin-left: auto !important;
    }

    .tse-mini-pct {
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    .tse-mini-vcount {
        font-size: 9px !important;
    }

    /* Grid de Candidatos e Cards de Votação (Contenção Estrita) */
    .tse-candidates-grid-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .tse-candidates-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .tse-cand-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .tse-cand-avatar-wrap {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
    }

    .tse-cand-badge-rank {
        position: absolute !important;
        top: 8px !important;
        right: 10px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        color: #94a3b8 !important;
        z-index: 2 !important;
    }

    .tse-cand-details {
        min-width: 0 !important;
        flex: 1 1 0% !important;
        width: calc(100% - 58px) !important;
        max-width: calc(100% - 58px) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .tse-cand-name-row {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding-right: 28px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-bottom: 2px !important;
    }

    .tse-cand-name {
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        color: var(--tse-primary) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: calc(100% - 38px) !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .tse-party-tag {
        font-size: 10px !important;
        padding: 1px 5px !important;
        border-radius: 3px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .tse-cand-coligacao {
        font-size: 10px !important;
        color: var(--tse-text-muted) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
        margin-bottom: 2px !important;
    }

    .tse-cand-vice {
        font-size: 10px !important;
        line-height: 1.3 !important;
        color: #475569 !important;
        word-break: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
        margin-bottom: 4px !important;
    }

    .tse-cand-votes-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: baseline !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-top: auto !important;
        margin-bottom: 5px !important;
    }

    .tse-cand-pct-wrap {
        flex-shrink: 0 !important;
    }

    .tse-cand-pct {
        font-size: 17px !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        color: var(--tse-primary) !important;
    }

    .tse-cand-votes-wrap {
        text-align: right !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        margin-left: auto !important;
    }

    .tse-cand-votes-count {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: var(--tse-text-muted) !important;
        white-space: nowrap !important;
    }

    .tse-cand-bar-wrap {
        height: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-bottom: 6px !important;
    }

    .tse-cand-status-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Seletores e Filtros de Estados */
    .tse-uf-selector-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .tse-uf-selector-row .tse-select-state-uf {
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tse-filter-bar {
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .tse-filter-bar select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tse-states-subhead {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .tse-input-search-states {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tse-states-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .tse-see-more-link {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 14px 16px !important;
    }

    .tse-see-more-arrow-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Telas ultra-compactas (≤ 480px) */
@media (max-width: 480px) {
    .tse-apuracao-wrapper {
        padding: 8px 6px !important;
    }

    .tse-collapse-body,
    .tse-collapse-item .tse-collapse-body {
        padding: 10px 6px !important;
    }

    .tse-cand-card {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .tse-cand-avatar-wrap {
        width: 42px !important;
        height: 42px !important;
    }

    .tse-cand-details {
        width: calc(100% - 50px) !important;
        max-width: calc(100% - 50px) !important;
    }

    .tse-cand-name {
        font-size: 12px !important;
        max-width: calc(100% - 32px) !important;
    }

    .tse-cand-pct {
        font-size: 15px !important;
    }

    .tse-cand-votes-count {
        font-size: 10px !important;
    }

    .tse-subtab-btn {
        font-size: 10px !important;
        padding: 6px 3px !important;
    }

    .tse-stat-item {
        padding: 6px 8px !important;
    }

    .tse-stat-num {
        font-size: 12px !important;
    }
}

/* Telas muito pequenas (≤ 360px) */
@media (max-width: 360px) {
    .tse-quick-stats {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .tse-collapse-tabs {
        flex-direction: column !important;
    }
    .tse-cand-votes-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
    .tse-cand-votes-wrap {
        margin-left: 0 !important;
        text-align: left !important;
    }
}

/* ==========================================================================
   CLEARFIX & FOOTER ISOLATION
   ========================================================================== */
.tse-clear-both {
    clear: both !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    font-size: 0 !important;
    line-height: 0 !important;
    border: none !important;
    background: transparent !important;
}

.tse-footer-spacer {
    height: 40px !important;
    margin-bottom: 30px !important;
    clear: both !important;
}

.tse-apuracao-wrapper {
    clear: both !important;
    position: relative !important;
    margin-bottom: 40px !important;
}

@media (min-width: 769px) {
    .tse-apuracao-wrapper {
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    .tse-apuracao-wrapper {
        overflow: hidden !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

.tse-apuracao-wrapper::after,
.tse-collapse-body::after,
.tse-tab-pane::after,
.tse-state-content-area::after,
.tse-candidates-grid-wrap::after,
.tse-candidates-grid::after,
.tse-states-table-container::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

.tse-state-content-area {
    clear: both !important;
    position: relative !important;
    padding-bottom: 20px;
}

.tse-tab-pane {
    clear: both !important;
    position: relative !important;
}

.tse-collapse-body {
    clear: both !important;
    position: relative !important;
    overflow: visible !important;
}

.tse-footer {
    clear: both !important;
    position: relative !important;
    z-index: 2 !important;
    margin-top: 30px !important;
    margin-bottom: 10px !important;
}

/* ==========================================================================
   ISOLAMENTO DE LAYOUT, SIDEBAR E DESTRANCAMENTO DO FOOTER
   ========================================================================== */
#content,
#content > .container,
#content > .container > .row,
.single-post-wrapper,
.content-wrapper,
.post-content-area,
.post-details,
.post-body,
.entry-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    clear: both !important;
}

#ekit-footer,
footer.ts-footer,
footer {
    clear: both !important;
    position: relative !important;
    z-index: 10 !important;
    margin-top: 50px !important;
    display: block !important;
}

/* Isolamento e espaçamento específico para Todos os Cargos (Gov, Sen, Deputados) */
.tse-collapse-item,
.tse-item-presidente,
.tse-item-governador,
.tse-item-senador,
.tse-item-deputado_federal,
.tse-item-deputado_distrital {
    clear: both !important;
    position: relative !important;
}

.tse-collapse-item .tse-collapse-body {
    clear: both !important;
    position: relative !important;
    padding-bottom: 25px !important;
}

@media (min-width: 769px) {
    .tse-collapse-item,
    .tse-item-presidente,
    .tse-item-governador,
    .tse-item-senador,
    .tse-item-deputado_federal,
    .tse-item-deputado_distrital {
        overflow: visible !important;
    }

    .tse-collapse-item .tse-collapse-body {
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    .tse-collapse-item,
    .tse-item-presidente,
    .tse-item-governador,
    .tse-item-senador,
    .tse-item-deputado_federal,
    .tse-item-deputado_distrital {
        overflow: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tse-collapse-item .tse-collapse-body,
    .tse-collapse-body {
        overflow: hidden !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

.tse-collapse-item .tse-state-content-area {
    clear: both !important;
    position: relative !important;
    padding-bottom: 25px !important;
}

.tse-item-presidente,
.tse-item-governador,
.tse-item-senador,
.tse-item-deputado_federal,
.tse-item-deputado_distrital {
    margin-bottom: 25px !important;
}

/* ==========================================================================
   LARGURA TOTAL NA COLUNA PRINCIPAL (FULLWIDTH AO LADO DO SIDEBAR)
   ========================================================================== */

/* 1. Expansão elegante do container em telas médias e grandes para amplitude de dashboard */
@media (min-width: 1200px) {
    body.has-tse-apuracao-page #content .container,
    body.page-id-52125 #content .container,
    body:has(.tse-apuracao-wrapper) #content .container {
        max-width: 1280px !important;
        width: 100% !important;
    }
}

@media (min-width: 1440px) {
    body.has-tse-apuracao-page #content .container,
    body.page-id-52125 #content .container,
    body:has(.tse-apuracao-wrapper) #content .container {
        max-width: 1360px !important;
        width: 100% !important;
    }
}

/* 2. Remove o padding padrão de 80px e o fundo branco rígido do tema Vinkmag */
body.has-tse-apuracao-page .single-post-wrapper .content-wrapper,
body.page-id-52125 .single-post-wrapper .content-wrapper,
.single-post-wrapper:has(.tse-apuracao-wrapper) .content-wrapper,
.single-post-wrapper.tse-parent-single-wrapper .content-wrapper,
.content-wrapper.tse-parent-content-wrapper {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
}

/* 3. Oculta o título duplicado gerado pelo tema na página de apuração */
body.has-tse-apuracao-page .single-post-wrapper > .entry-header,
body.has-tse-apuracao-page .single-post-wrapper .content-wrapper > .entry-header,
body.page-id-52125 .single-post-wrapper > .entry-header,
body.page-id-52125 .single-post-wrapper .content-wrapper > .entry-header,
.single-post-wrapper:has(.tse-apuracao-wrapper) .entry-header {
    display: none !important;
}

/* 4. Remove paddings internos e margens dos artigos do tema */
body.has-tse-apuracao-page .single-post-wrapper .post-content-area,
body.has-tse-apuracao-page .single-post-wrapper article.post-details,
body.has-tse-apuracao-page .single-post-wrapper .post-body,
body.has-tse-apuracao-page .single-post-wrapper .entry-content,
body.page-id-52125 .single-post-wrapper .post-content-area,
body.page-id-52125 .single-post-wrapper article.post-details,
body.page-id-52125 .single-post-wrapper .post-body,
body.page-id-52125 .single-post-wrapper .entry-content,
.single-post-wrapper:has(.tse-apuracao-wrapper) .post-content-area,
.single-post-wrapper:has(.tse-apuracao-wrapper) article.post-details,
.single-post-wrapper:has(.tse-apuracao-wrapper) .post-body,
.single-post-wrapper:has(.tse-apuracao-wrapper) .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* 5. O widget TSE agora ocupa 100% da largura útil da coluna ao lado do sidebar */
.single-post-wrapper .tse-apuracao-wrapper,
body.has-tse-apuracao-page .tse-apuracao-wrapper,
body.page-id-52125 .tse-apuracao-wrapper {
    margin-top: 5px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 6. Remove margens ou sobras de widgets sociais vazios abaixo do widget */
body.has-tse-apuracao-page .xs_social_share_widget:empty,
body.has-tse-apuracao-page .xs_social_share_widget ul:empty,
body.page-id-52125 .xs_social_share_widget:empty,
body.page-id-52125 .xs_social_share_widget ul:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 7. Alinhamento refinado do sidebar com o topo do widget de apuração */
body.has-tse-apuracao-page .col-lg-3 .right-sidebar,
body.page-id-52125 .col-lg-3 .right-sidebar {
    padding-top: 5px;
}

/* ==========================================================================
   MAPA INTERATIVO DO BRASIL - APURAÇÃO PRESIDENCIAL (LULA VS BOLSONARO)
   ========================================================================== */

.tse-brazil-map-card {
    background: #ffffff;
    border: 1px solid var(--tse-card-border);
    border-radius: var(--tse-radius);
    padding: 18px 20px 16px;
    margin: 18px 0 24px;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.tse-map-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.tse-map-header-left {
    flex: 1 1 300px;
}

.tse-map-header-right {
    flex-shrink: 0;
}

.tse-btn-reset-map-br {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    border: 1px solid #0f172a;
    color: #ffffff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.tse-btn-reset-map-br:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.tse-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.tse-map-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
}

.tse-map-main-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: var(--tse-primary);
    line-height: 1.3;
}

.tse-map-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--tse-text-muted);
    line-height: 1.5;
}

.tse-highlight-red {
    color: #dc2626;
    font-weight: 700;
}

.tse-highlight-blue {
    color: #2563eb;
    font-weight: 700;
}

/* SCOREBOARD / PLACAR DOS ESTADOS */
.tse-map-scoreboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 22px;
}

.tse-scoreboard-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tse-score-card-bolsonaro {
    justify-content: flex-end;
}

.tse-score-cand-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12);
}

.tse-badge-red {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.tse-badge-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.tse-score-details {
    display: flex;
    flex-direction: column;
}

.tse-score-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.tse-score-party {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

.tse-score-number-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.tse-score-val {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.tse-val-lula {
    color: #dc2626;
}

.tse-val-bolsonaro {
    color: #2563eb;
}

.tse-score-unit {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 2px;
}

.tse-scoreboard-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1.4;
    padding: 0 12px;
}

.tse-score-vs-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 6px;
}

.tse-score-bar-track {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    display: flex;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tse-score-bar-lula {
    height: 100%;
    background: #dc2626;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tse-score-bar-bolsonaro {
    height: 100%;
    background: #2563eb;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tse-score-bar-labels {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 4px;
}

/* ÁREA DE VISUALIZAÇÃO DO MAPA */
.tse-map-viewport {
    position: relative;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
}

.tse-map-canvas-wrap {
    width: 100%;
    max-width: 820px;
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
}

.tse-brazil-svg {
    width: 100%;
    height: auto;
    max-height: 680px;
    display: block;
    overflow: hidden;
    transition: all 0.35s ease-out;
}

/* POINTER-EVENTS NAS LABELS PARA DEIXAR CLIQUE PASSAR PRO PATH */
#tse-brazil-map-svg .tse-map-labels-group,
#tse-brazil-map-svg .tse-map-label-group,
#tse-brazil-map-svg .tse-map-label {
    pointer-events: none !important;
    user-select: none !important;
}

#tse-brazil-map-svg .tse-df-badge-pin {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ZOOM E FOCO NO ESTADO SELECIONADO */
#tse-brazil-map-svg.tse-zoomed .tse-map-state:not(.tse-state-selected) {
    opacity: 0.18 !important;
}

#tse-brazil-map-svg .tse-map-state.tse-state-selected,
#tse-brazil-map-svg.tse-zoomed .tse-map-state.tse-state-selected {
    opacity: 1 !important;
    stroke: #ffffff !important;
    stroke-width: 3.5px !important;
    filter: brightness(1.25) drop-shadow(0 0 10px rgba(255, 255, 255, 0.85)) drop-shadow(0 8px 18px rgba(15, 23, 42, 0.55)) !important;
}

#tse-brazil-map-svg.tse-zoomed .tse-map-label-group:not(.tse-label-selected) {
    opacity: 0 !important;
}

#tse-brazil-map-svg.tse-zoomed .tse-map-label-group.tse-label-selected {
    opacity: 1 !important;
}

/* ESTADOS E CORES */
.tse-map-state {
    cursor: pointer;
    stroke: #ffffff;
    stroke-width: 1.2px;
    stroke-linejoin: round;
    transition: fill 0.25s ease, stroke 0.2s ease, filter 0.25s ease, opacity 0.3s ease;
    outline: none;
}

.tse-map-state.tse-color-red {
    fill: #dc2626;
}

.tse-map-state.tse-color-blue {
    fill: #2563eb;
}

.tse-map-state.tse-color-gray {
    fill: #cbd5e1;
}

.tse-map-state.tse-color-other {
    fill: #8b5cf6;
}

/* HOVER E ESTADO ATIVO */
.tse-map-state:hover,
.tse-map-state.tse-state-active,
.tse-map-state.tse-state-selected,
.tse-map-state:focus {
    stroke: #ffffff;
    stroke-width: 2.8px;
    filter: brightness(1.22) drop-shadow(0 6px 14px rgba(15, 23, 42, 0.45));
}

.tse-map-state.tse-color-red:hover,
.tse-map-state.tse-color-red.tse-state-active,
.tse-map-state.tse-color-red.tse-state-selected {
    fill: #b91c1c;
}

.tse-map-state.tse-color-blue:hover,
.tse-map-state.tse-color-blue.tse-state-active,
.tse-map-state.tse-color-blue.tse-state-selected {
    fill: #1d4ed8;
}

.tse-map-state.tse-color-gray:hover,
.tse-map-state.tse-color-gray.tse-state-active {
    fill: #94a3b8;
}

/* SIGLAS DOS ESTADOS */
.tse-map-label {
    fill: #ffffff;
    font-size: 13px;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.6);
    user-select: none;
    letter-spacing: 0.2px;
}

/* DESTAQUE DF (DISTRITO FEDERAL) */
.tse-df-badge-pin {
    cursor: pointer;
    transition: transform 0.2s ease;
    outline: none;
}

.tse-df-badge-pin:hover,
.tse-df-badge-pin.tse-pin-active {
    transform: matrix(1.2 0 0 1.2 645 545) !important;
}

.tse-df-pin-circle {
    fill: #ffffff;
    stroke: #1e293b;
    stroke-width: 2.5px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: all 0.2s ease;
}

.tse-df-color-red .tse-df-pin-circle {
    fill: #fef2f2;
    stroke: #dc2626;
}

.tse-df-color-blue .tse-df-pin-circle {
    fill: #eff6ff;
    stroke: #2563eb;
}

.tse-df-badge-pin:hover .tse-df-pin-circle,
.tse-df-badge-pin.tse-pin-active .tse-df-pin-circle {
    stroke-width: 3.5px;
}

.tse-map-label-df {
    fill: #0f172a !important;
    font-size: 11px;
    font-weight: 900;
    text-shadow: none !important;
}

/* TOOLTIP FLUTUANTE */
.tse-map-tooltip {
    position: absolute;
    z-index: 100;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 260px;
    max-width: 320px;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.45), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.tse-map-tooltip.tse-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
}

.tse-tooltip-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 10px;
}

.tse-tt-flag {
    font-size: 18px;
}

.tse-tt-title-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-grow: 1;
}

.tse-tt-state-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.tse-tt-uf-badge {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.tse-tt-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}

.tse-tt-status-pill.tse-pill-red {
    background: #ef4444;
    color: #ffffff;
}

.tse-tt-status-pill.tse-pill-blue {
    background: #3b82f6;
    color: #ffffff;
}

.tse-tt-status-pill.tse-pill-gray {
    background: #64748b;
    color: #ffffff;
}

.tse-tt-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
}

.tse-tt-pst-val {
    color: #38bdf8;
    font-weight: 800;
}

.tse-tt-cands-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.tse-tt-cand-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px 8px;
}

.tse-tt-pos {
    font-size: 11px;
    font-weight: 800;
    color: #fbbf24;
    width: 18px;
    text-align: center;
}

.tse-tt-cand-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.tse-tt-lider-nm,
.tse-tt-vice-nm {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tse-tt-lider-partido,
.tse-tt-vice-partido {
    font-size: 10px;
    color: #94a3b8;
}

.tse-tt-cand-votes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.tse-tt-lider-pvap,
.tse-tt-vice-pvap {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
}

.tse-tt-row-lider .tse-tt-lider-pvap {
    color: #4ade80;
}

.tse-tt-lider-vap,
.tse-tt-vice-vap {
    font-size: 10px;
    color: #94a3b8;
}

.tse-tt-footer {
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    text-align: center;
}

.tse-tt-click-hint {
    font-size: 10.5px;
    color: #cbd5e1;
    font-weight: 600;
}

/* LEGENDA INFERIOR E BOTÃO DF */
.tse-map-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.tse-legend-items {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.tse-leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
}

.tse-leg-bullet {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.tse-leg-red {
    background: #dc2626;
}

.tse-leg-blue {
    background: #2563eb;
}

.tse-leg-gray {
    background: #cbd5e1;
}

.tse-map-df-action {
    margin-left: auto;
}

.tse-btn-quick-df {
    background: #ffffff;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tse-btn-quick-df:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

/* PAINEL DINÂMICO DE DETALHES DO ESTADO CLICADO NO MAPA */
.tse-map-state-panel {
    margin-top: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    animation: tseFadeSlideDown 0.28s ease-out;
}

@keyframes tseFadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tse-msp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.tse-msp-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tse-msp-flag {
    font-size: 24px;
    line-height: 1;
}

.tse-msp-state-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--tse-primary);
    line-height: 1.3;
}

.tse-msp-status-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-top: 2px;
}

.tse-msp-status-pill.tse-pill-red {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tse-msp-status-pill.tse-pill-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.tse-msp-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tse-msp-urnas {
    font-size: 12px;
    color: var(--tse-text-muted);
}

.tse-msp-btn-close {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tse-msp-btn-close:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.tse-msp-cands-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .tse-msp-cands-grid {
        grid-template-columns: 1fr;
    }
}

.tse-msp-cand-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    position: relative;
    border-left: 4px solid #cbd5e1;
}

.tse-msp-cand-card.tse-msp-border-red {
    border-left-color: #dc2626;
}

.tse-msp-cand-card.tse-msp-border-blue {
    border-left-color: #2563eb;
}

.tse-msp-cand-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.tse-msp-pos-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--tse-text-muted);
}

.tse-msp-cand-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    color: #ffffff;
}

.tse-msp-cand-badge.tse-badge-red {
    background: #dc2626;
}

.tse-msp-cand-badge.tse-badge-blue {
    background: #2563eb;
}

.tse-msp-cand-info {
    margin-bottom: 6px;
}

.tse-msp-cand-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--tse-primary);
    line-height: 1.2;
}

.tse-msp-cand-party {
    font-size: 11px;
    color: var(--tse-text-muted);
    font-weight: 600;
}

.tse-msp-cand-numbers {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tse-msp-cand-pct {
    font-size: 20px;
    font-weight: 900;
    color: var(--tse-primary);
}

.tse-msp-cand-votes {
    font-size: 11px;
    color: var(--tse-text-muted);
}

.tse-msp-bar-track {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}

.tse-msp-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.tse-msp-bar-fill.tse-bar-red {
    background: #dc2626;
}

.tse-msp-bar-fill.tse-bar-blue {
    background: #2563eb;
}

.tse-msp-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 10px;
    margin-bottom: 12px;
    text-align: center;
}

@media (max-width: 640px) {
    .tse-msp-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tse-msp-stat-lbl {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--tse-text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.tse-msp-stats-row strong {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--tse-primary);
}

.tse-msp-footer-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--tse-text-muted);
    flex-wrap: wrap;
    gap: 8px;
}

.tse-msp-btn-view-all {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.tse-msp-btn-view-all:hover {
    color: #1d4ed8;
}

/* RESPONSIVIDADE DO MAPA */
@media (max-width: 768px) {
    .tse-brazil-map-card {
        padding: 14px 12px;
    }

    .tse-brazil-svg {
        max-height: 520px;
    }

    .tse-map-legend-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tse-map-df-action {
        margin-left: 0;
        width: 100%;
    }

    .tse-btn-quick-df {
        width: 100%;
        justify-content: center;
    }
}

