* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f6f9, #e9edf5);
}

.login-card {
    width: 420px;
    background: white;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    text-align: center;
}

.login-logo {
    width: 72px;
    height: 72px;
    background: #b91c1c;
    color: white;
    border-radius: 20px;
    margin: 0 auto 20px;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card h1 {
    margin: 0;
    font-size: 24px;
}

.login-subtitle {
    color: #666;
    margin-bottom: 25px;
}

.login-card form {
    text-align: left;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 15px;
}

button {
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    background: #b91c1c;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

button:hover {
    background: #991b1b;
}

.login-card button {
    width: 100%;
    margin-top: 8px;
}

.login-footer {
    margin-top: 22px;
    color: #777;
    font-size: 13px;
}

.alerta {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.alerta.erro {
    background: #fee2e2;
    color: #991b1b;
}

.alerta.ok {
    background: #dcfce7;
    color: #166534;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: #111827;
    color: white;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: #b91c1c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.sidebar-logo span {
    display: block;
    color: #9ca3af;
    font-size: 13px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar nav a,
.logout {
    color: #d1d5db;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar nav a:hover,
.logout:hover {
    background: #1f2937;
    color: white;
}

.logout {
    margin-top: auto;
    background: #7f1d1d;
    color: white;
    text-align: center;
}

.content {
    flex: 1;
    padding: 24px;
}

.topbar {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

.topbar h2 {
    margin: 0;
    font-size: 25px;
}

.topbar p {
    margin: 4px 0 0;
    color: #666;
}

.user-box {
    text-align: right;
}

.user-box span {
    display: block;
    color: #666;
    text-transform: capitalize;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

.card span {
    color: #666;
    font-weight: 700;
}

.card strong {
    display: block;
    font-size: 32px;
    margin-top: 8px;
}

.panel {
    background: white;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

.panel h3 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: end;
}

.form-grid input,
.form-grid select {
    margin-bottom: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
}

th {
    background: #111827;
    color: white;
    text-align: left;
    padding: 12px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover td {
    background: #f9fafb;
}

.resumen-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.btn-actualizar {
    background: #2563eb;
    color: white;
    border-radius: 6px;
    padding: 10px 18px;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.btn-actualizar:hover {
    background: #1d4ed8;
}

.cards-intendencia {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.card-resumen {
    background: white;
    border-radius: 9px;
    padding: 18px 20px;
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    border-left: 3px solid transparent;
}

.card-resumen span {
    display: block;
    font-size: 12px;
    color: #334155;
    margin-bottom: 8px;
}

.card-resumen strong {
    display: block;
    font-size: 28px;
    color: #020617;
    line-height: 1;
}

.card-resumen strong.rojo {
    color: #ff3045;
}

.icono-card {
    font-size: 26px;
    font-weight: 900;
}

.azul {
    color: #2563eb;
}

.verde {
    color: #00c853;
}

.violeta {
    color: #6366f1;
}

.morado {
    color: #a855f7;
}

.celeste {
    color: #06b6d4;
}

.gris {
    color: #64748b;
}

.border-azul {
    border-left-color: #2563eb;
}

.border-verde {
    border-left-color: #00c853;
}

.border-violeta {
    border-left-color: #6366f1;
}

.border-morado {
    border-left-color: #a855f7;
}

.border-celeste {
    border-left-color: #06b6d4;
}

.border-gris {
    border-left-color: #64748b;
}

.ultima-actualizacion {
    font-size: 13px;
    color: #64748b;
    margin: 18px 0 22px;
}

.titulo-seccion {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.titulo-seccion h3 {
    margin: 0;
    font-size: 25px;
    color: #020617;
}

.icono-titulo {
    color: #a855f7;
    font-size: 25px;
}

.grid-concejales {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card-concejal {
    position: relative;
    background: #fff1f2;
    border: 1px solid #ffb4b4;
    border-radius: 9px;
    padding: 20px;
    min-height: 205px;
    box-shadow: 0 8px 16px rgba(255, 48, 69, 0.12);
}

.card-concejal h4 {
    margin: 0 22px 14px 0;
    font-size: 16px;
    color: #020617;
    font-weight: 800;
    min-height: 38px;
}

.status-dot {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #ff3045;
    border-radius: 50%;
}

.participacion-concejal {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    margin-bottom: 8px;
}

.participacion-concejal strong {
    color: #ff3045;
    font-size: 28px;
    line-height: 1;
}

.participacion-concejal span {
    color: #334155;
    font-size: 11px;
    margin-bottom: 3px;
}

.barra-fundo {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.barra-preenchida {
    height: 100%;
    background: #ff3045;
    border-radius: 999px;
}

.contador-votantes {
    background: #eaf3ff;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contador-votantes span {
    color: #0057ff;
    font-size: 11px;
    font-weight: 700;
}

.contador-votantes strong {
    color: #0f1f4d;
    font-size: 25px;
}

.mini-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}

.mini-card {
    text-align: center;
    padding: 9px;
    min-height: 55px;
}

.verde-claro {
    background: #ecfdf5;
}

.lilas-claro {
    background: #faf5ff;
}

.mini-card span {
    display: block;
    font-size: 13px;
}

.mini-card small {
    display: block;
    font-size: 10px;
    color: #334155;
}

.mini-card strong {
    display: block;
    font-size: 13px;
    color: #020617;
    margin-top: 3px;
}

@media (max-width: 1400px) {
    .cards-intendencia {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-concejales {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .cards-intendencia {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-concejales {
        grid-template-columns: repeat(2, 1fr);
    }
}

.perfil-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: -10px 0 20px;
}

.btn-secundario {
    background: white;
    color: #111827;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    padding: 11px 18px;
    box-shadow: none;
}

.btn-secundario:hover {
    background: #f8fafc;
}

.btn-texto {
    background: transparent;
    color: #111827;
    padding: 11px 14px;
}

.btn-texto:hover {
    background: #f1f5f9;
}

.perfil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.perfil-card {
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 24px;
    min-height: 360px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

.perfil-card-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.perfil-card-title span {
    font-size: 19px;
    margin-top: 2px;
}

.perfil-card-title h3 {
    margin: 0;
    font-size: 24px;
    color: #020617;
}

.perfil-card-title p {
    margin: 4px 0 0;
    color: #334155;
    font-size: 14px;
}

.perfil-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
}

.campo-full {
    grid-column: 1 / -1;
}

.campo label,
.info-linha label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #020617;
    margin-bottom: 7px;
}

.campo input,
.info-linha input {
    width: 100%;
    height: 42px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    border-radius: 6px;
    padding: 0 13px;
    font-size: 14px;
}

.conta-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-bloco span {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #020617;
    margin-bottom: 8px;
}

.info-bloco strong {
    display: block;
    font-size: 14px;
    color: #020617;
}

.info-bloco p {
    margin: 0;
    color: #334155;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge-role {
    background: white;
    border: 1px solid #cbd5e1;
    color: #020617;
}

.badge-active {
    background: #dcfce7;
    color: #16a34a;
}

@media (max-width: 1000px) {
    .perfil-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    background: #ffffff;
    color: #020617;
    border-right: 1px solid #e2e8f0;
}

.sidebar nav a,
.logout {
    color: #020617;
}

.sidebar nav a:hover,
.sidebar nav a.ativo {
    background: #fff1f2;
    color: #020617;
}

.menu-group {
    margin-bottom: 4px;
}

.menu-group-title {
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    color: #020617;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff1f2;
}

.submenu {
    display: flex;
    flex-direction: column;
    padding-left: 28px;
    margin-top: 4px;
    gap: 2px;
}

.submenu a {
    font-size: 14px;
    padding: 10px 12px !important;
    color: #334155 !important;
}

.submenu a.ativo {
    background: #fff1f2 !important;
    color: #020617 !important;
}

.menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 18px 0;
}

.equipo-top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.btn-rojo {
    background: #e60012;
    color: white;
    border-radius: 8px;
    padding: 11px 18px;
}

.btn-rojo:hover {
    background: #c40010;
}

.oculto {
    display: none;
}

.panel-header-equipo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-header-equipo h3 {
    margin: 0;
}

.panel-header-equipo p {
    margin: 4px 0 0;
    color: #64748b;
}

.badge-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.empty-state {
    min-height: 280px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.empty-icon {
    font-size: 42px;
    opacity: 0.45;
}

.empty-state h3 {
    margin: 0;
}

.empty-state p {
    margin: 0;
    color: #64748b;
}

.report-filter {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.report-filter input {
    max-width: 280px;
}

.cards-reportes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.card-reporte {
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.card-reporte span {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.card-reporte strong {
    display: block;
    font-size: 28px;
    color: #020617;
}

.card-reporte small {
    color: #64748b;
    font-size: 11px;
}

.report-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mi-equipo-header {
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mi-equipo-header h3 {
    margin: 0;
    font-size: 28px;
}

.mi-equipo-header p {
    margin: 5px 0 0;
    color: #475569;
}

.mi-equipo-stats {
    display: flex;
    gap: 12px;
}

.mi-equipo-stats div {
    border: 1px solid #d8dee8;
    border-radius: 9px;
    padding: 15px 22px;
    min-width: 110px;
}

.mi-equipo-stats span {
    display: block;
    font-size: 11px;
    color: #64748b;
}

.mi-equipo-stats strong {
    display: block;
    font-size: 16px;
    margin-top: 4px;
}

.mi-equipo-actions select {
    margin-bottom: 0;
}

.intendente-card {
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 900px;
    margin-bottom: 18px;
}

.avatar-equipo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.intendente-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.intendente-card h3 {
    margin: 3px 0;
}

.intendente-card p {
    margin: 2px 0;
    color: #334155;
}

.equipo-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.5fr;
    gap: 14px;
}

.input-busca-equipo {
    margin-bottom: 14px;
}

.lista-coordinadores {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coord-item {
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coord-item.activo {
    background: #fff1f2;
    border-color: #ffb4b4;
}

.coord-item strong {
    color: #020617;
}

.coord-item p {
    margin: 4px 0 0;
    color: #64748b;
}

.coord-item span {
    color: #64748b;
    font-size: 12px;
}

.votantes-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
}

.resultados-equipo {
    color: #334155;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .cards-reportes,
    .report-grid-2,
    .equipo-layout {
        grid-template-columns: 1fr;
    }

    .mi-equipo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .mi-equipo-actions {
        margin: 14px 0 22px;
        grid-template-columns: 1fr;
    }
}

.mi-equipo-actions {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 16px 0 22px !important;
}

.mi-equipo-actions select {
    flex: 1;
    height: 42px;
    margin-bottom: 0;
}

.mi-equipo-actions button {
    height: 42px;
    white-space: nowrap;
}

.mi-equipo-header {
    padding: 36px 28px 24px !important;
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.mi-equipo-actions {
    background: white;
    border-left: 1px solid #d8dee8;
    border-right: 1px solid #d8dee8;
    border-bottom: 1px solid #d8dee8;
    border-radius: 0 0 14px 14px;
    padding: 0 28px 26px;
    margin: 0 0 26px !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.mi-equipo-actions::before {
    content: "⌁";
    color: #94a3b8;
    font-size: 20px;
    margin-right: 2px;
}

.mi-equipo-actions select {
    flex: 1;
    height: 46px;
    margin-bottom: 0;
}

.mi-equipo-actions button {
    height: 46px;
    white-space: nowrap;
}

.intendente-card {
    margin-top: 6px;
    margin-bottom: 26px !important;
    padding: 28px !important;
}

.equipo-layout {
    gap: 18px !important;
}

.equipo-layout .panel {
    padding: 26px !important;
}

.lista-coordinadores {
    margin-top: 14px;
}

.coord-item {
    padding: 18px !important;
}

.votantes-actions {
    margin-top: 16px;
    margin-bottom: 12px;
}

/* ===== Correção de espaçamento - Mi Equipo ===== */

.mi-equipo-header {
    margin-bottom: 22px !important;
    padding: 32px 28px !important;
}

.mi-equipo-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;

    margin: 0 0 26px 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
}

.mi-equipo-actions select {
    flex: 1 !important;
    width: auto !important;
    height: 46px !important;
    margin: 0 !important;
}

.mi-equipo-actions button {
    flex: 0 0 auto !important;
    height: 46px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.intendente-card {
    margin-top: 0 !important;
    margin-bottom: 26px !important;
    padding: 30px !important;
}

.equipo-layout {
    margin-top: 0 !important;
    gap: 22px !important;
}

.equipo-layout .panel {
    padding: 28px !important;
}

.mi-equipo-actions {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    gap: 12px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mi-equipo-actions select {
    height: 46px !important;
    margin: 0 !important;
}

.mi-equipo-actions button {
    height: 46px !important;
    margin: 0 !important;
}

.mi-equipo-select-row {
    width: 100%;
}

.mi-equipo-select-row select {
    width: 100%;
    height: 46px;
    margin: 0;
}

.mi-equipo-buttons-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mi-equipo-buttons-row button {
    height: 46px;
    margin: 0;
}

.menu-group-title {
    width: 100%;
    border: none;
    background: #fff1f2;
    color: #020617;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.menu-group-title:hover {
    background: #ffe4e6;
}

.submenu {
    display: flex;
}

.menu-arrow {
    font-size: 14px;
    line-height: 1;
    margin-left: 8px;
}

.menu-group-title {
    width: 100%;
    border: none;
    background: #fff1f2;
    color: #020617;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.menu-group-title:hover {
    background: #ffe4e6;
}

.form-importar-padron {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.form-importar-padron input {
    margin: 0;
}

.form-busca-padron {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.form-busca-padron input {
    margin: 0;
}

/* ===== Padrón Electoral profissional ===== */

.padron-consulta-card {
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
}

.padron-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.padron-title-row h3 {
    margin: 0;
    font-size: 25px;
    color: #020617;
}

.padron-title-row p {
    margin: 8px 0 0;
    color: #334155;
    font-size: 15px;
}

.padron-total {
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 12px 18px;
    min-width: 150px;
    text-align: center;
}

.padron-total span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.padron-total strong {
    font-size: 24px;
    color: #020617;
}

.padron-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.padron-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}

.padron-field input {
    width: 100%;
    height: 46px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    padding: 0 14px;
    font-size: 15px;
    color: #0f172a;
    background: white;
    margin: 0;
}

.padron-field input:disabled {
    background: #f8fafc;
    color: #0f172a;
}

.padron-search-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 12px;
    align-items: end;
}

.btn-buscar-padron {
    height: 46px;
    background: #0057ff;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
}

.btn-buscar-padron:hover {
    background: #0047d6;
}

.padron-import-form {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.padron-import-form input {
    margin: 0;
}

.padron-import-form button {
    height: 46px;
}

.padron-table-card {
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
}

.padron-table-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.padron-table-header h3 {
    margin: 0;
    font-size: 22px;
    color: #020617;
}

.padron-table-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
}

.padron-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.padron-table {
    width: 100%;
    border-collapse: collapse;
}

.padron-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid #d8dee8;
    text-align: left;
}

.padron-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 15px;
}

.padron-table tr:hover td {
    background: #f8fafc;
}

.doc-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #020617;
    padding: 5px 9px;
    border-radius: 6px;
    font-family: Consolas, monospace;
    font-size: 14px;
}

.mesa-badge {
    display: inline-block;
    background: #eaf3ff;
    color: #0057ff;
    padding: 6px 10px;
    border-radius: 7px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .padron-title-row {
        flex-direction: column;
    }

    .padron-search-row {
        grid-template-columns: 1fr;
    }

    .padron-import-form {
        grid-template-columns: 1fr;
    }
}

.carregar-mais-area {
    max-width: 420px;
    margin: 34px auto 42px;
    padding: 24px 26px;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.carregar-mais-area p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
}

.carregar-mais-area strong {
    color: #020617;
    font-weight: 900;
}

.btn-carregar-mais {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 210px;
    height: 44px;
    padding: 0 22px;

    border-radius: 9px;
    background: #0057ff;
    border: 1px solid #0057ff;
    color: white;

    font-size: 15px;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 8px 18px rgba(0, 87, 255, 0.22);
    transition: 0.15s ease;
}

.btn-carregar-mais:hover {
    background: #0047d6;
    border-color: #0047d6;
    transform: translateY(-1px);
}

/* ===== Botão carregar mais - Padrón Electoral ===== */

.padron-load-more-box {
    width: 100%;
    max-width: 430px;
    margin: 36px auto 46px auto;
    padding: 24px 28px;

    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    text-align: center;
}

.padron-load-more-box p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
}

.padron-load-more-box strong {
    color: #020617;
    font-weight: 900;
}

.padron-load-more-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 220px;
    height: 44px;
    padding: 0 22px;

    border-radius: 9px;
    background: #0057ff !important;
    border: 1px solid #0057ff !important;
    color: #ffffff !important;

    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;

    box-shadow: 0 8px 18px rgba(0, 87, 255, 0.22);
}

.padron-load-more-btn:hover {
    background: #0047d6 !important;
    border-color: #0047d6 !important;
    transform: translateY(-1px);
}

.senha-card {
    margin-top: 22px;
    max-width: 700px;
}

.senha-form {
    display: grid;
    gap: 14px;
}

.senha-form button {
    width: fit-content;
}

.btn-rojo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e60012;
    color: white;
    border-radius: 8px;
    padding: 13px 22px;
    font-weight: 800;
    text-decoration: none;
}

.btn-rojo-link:hover {
    background: #c40010;
}

.nuevo-header-rojo {
    background: #e60012;
    color: white;
    border-radius: 8px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    box-shadow: 0 8px 20px rgba(230, 0, 18, 0.18);
}

.nuevo-header-rojo a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: 900;
}

.nuevo-header-rojo h2 {
    margin: 0;
    font-size: 30px;
}

.nuevo-form-card {
    background: white;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.nuevo-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 28px;
}

.nuevo-campo label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.nuevo-campo input,
.nuevo-campo select {
    width: 100%;
    height: 48px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    padding: 0 14px;
    font-size: 16px;
    color: #0f172a;
    margin: 0;
    background: white;
}

.nuevo-campo input:disabled {
    background: #f8fafc;
    color: #475569;
}

.nuevo-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 34px;
}

.btn-cancelar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 22px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    color: #020617;
    text-decoration: none;
    font-weight: 800;
    background: white;
}

.btn-cancelar:hover {
    background: #f8fafc;
}

.btn-crear-rojo {
    height: 46px;
    border-radius: 7px;
    padding: 0 24px;
    background: #e60012;
    color: white;
    font-weight: 800;
}

.btn-crear-rojo:hover {
    background: #c40010;
}

@media (max-width: 900px) {
    .nuevo-form-grid {
        grid-template-columns: 1fr;
    }
}

.btn-rojo-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    background: #e60012 !important;
    color: #ffffff !important;

    border: none;
    border-radius: 8px;

    height: 46px;
    padding: 0 22px;

    font-size: 15px;
    font-weight: 800;
    font-family: inherit;

    text-decoration: none !important;
    cursor: pointer;

    box-shadow: 0 6px 14px rgba(230, 0, 18, 0.18);
}

.btn-rojo-link:hover {
    background: #c40010 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-link-rojo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 46px !important;
    padding: 0 22px !important;

    background: #e60012 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 8px !important;

    font-size: 15px !important;
    font-weight: 900 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    letter-spacing: -0.2px;

    text-decoration: none !important;
    cursor: pointer !important;

    box-shadow: 0 6px 14px rgba(230, 0, 18, 0.18) !important;
}

.btn-link-rojo:hover {
    background: #c40010 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-link-rojo {
    font-weight: 900 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
}

.equipo-top-actions form {
    margin: 0;
    padding: 0;
}

.equipo-top-actions .btn-rojo {
    height: 46px;
    padding: 0 22px;
    font-weight: 900;
}

.estado-padron {
    margin-top: 22px;
    padding: 13px 15px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #d8dee8;
    color: #475569;
    font-weight: 700;
}

.estado-padron.buscando {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #0057ff;
}

.estado-padron.ok {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.estado-padron.erro {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.btn-ativar {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.btn-ativar:hover {
    background: #15803d;
}

.nuevo-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 28px !important;
}

.nuevo-actions .btn-cancelar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 46px !important;
    padding: 0 22px !important;

    background: #ffffff !important;
    color: #111827 !important;

    border: 1px solid #d8dee8 !important;
    border-radius: 8px !important;

    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;

    cursor: pointer !important;
}

.nuevo-actions .btn-cancelar:hover {
    background: #f8fafc !important;
    text-decoration: none !important;
}

.nuevo-actions .btn-crear-rojo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 46px !important;
    padding: 0 24px !important;

    background: #c91d24 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 8px !important;

    font-size: 15px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
}

/* ===== Botões padronizados das telas Nuevo Usuario ===== */

.acciones-nuevo-usuario {
    width: 100%;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 32px !important;
    padding-top: 22px !important;
    border-top: 1px solid #e5e7eb;
}

.acciones-nuevo-usuario .btn-cancelar-nuevo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 46px !important;
    min-width: 110px !important;
    padding: 0 22px !important;

    background: #ffffff !important;
    color: #111827 !important;

    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;

    font-size: 15px !important;
    font-weight: 800 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;

    text-decoration: none !important;
    cursor: pointer !important;
}

.acciones-nuevo-usuario .btn-cancelar-nuevo:hover {
    background: #f8fafc !important;
    color: #111827 !important;
    text-decoration: none !important;
}

.acciones-nuevo-usuario .btn-crear-nuevo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 46px !important;
    min-width: 150px !important;
    padding: 0 24px !important;

    background: #c91d24 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 8px !important;

    font-size: 15px !important;
    font-weight: 900 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;

    text-decoration: none !important;
    cursor: pointer !important;

    box-shadow: 0 6px 14px rgba(201, 29, 36, 0.18) !important;
}

.acciones-nuevo-usuario .btn-crear-nuevo:hover {
    background: #a9151b !important;
}

.titulo-con-boton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.titulo-con-boton > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.titulo-con-boton form {
    margin: 0;
}

.border-naranja {
    border-left: 4px solid #f59e0b;
}

.icono-card.naranja {
    color: #f59e0b;
}

.votantes-top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.votantes-top-actions .btn-rojo {
    height: 46px;
    padding: 0 22px;
    font-weight: 900;
}

.votantes-top-actions {
    display: flex;
    justify-content: flex-end;
    margin: 22px 0 22px;
}

.votantes-top-actions .btn-rojo {
    height: 46px;
    padding: 0 22px;
    font-weight: 900;
}

.btn-copiar {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.btn-copiar:hover {
    background: #f8fafc;
}

.mini-info-card {
    min-width: 130px;
    padding: 14px 18px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: white;
}

.mini-info-card span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.mini-info-card strong {
    font-size: 17px;
}

.avatar-equipo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.avatar-equipo.azul {
    background: #dbeafe;
    color: #2563eb;
}

.border-rojo {
    border-left: 4px solid #ef4444;
}

.icono-card.rojo {
    color: #ef4444;
}

.btn-excluir {
    background: #7f1d1d;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.btn-excluir:hover {
    background: #450a0a;
}

.layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #f3f6fb;
}

.sidebar {
    width: 270px;
    min-width: 270px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.content {
    flex: 1;
    min-width: 0;
    padding: 28px;
    background: #f3f6fb;
}

.topbar {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.logo-box h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.logo-box p {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 13px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

nav a,
.menu-group-title {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
}

nav a.ativo,
.menu-group-title:hover,
nav a:hover {
    background: #fff1f2;
}

.submenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 6px 18px;
}

.submenu.aberto {
    display: flex;
}

.submenu a {
    min-height: 36px;
    font-size: 14px;
    font-weight: 700;
}

.menu-separator {
    height: 1px;
    background: #e5e7eb;
    margin: 18px 0;
}

.logout {
    margin-top: auto;
    height: 46px;
    border-radius: 10px;
    background: #8b1e1e;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
}

/* ===== CORREÇÃO FORÇADA DO LAYOUT PRINCIPAL ===== */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: #f3f6fb !important;
}

.layout {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: #f3f6fb !important;
}

.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 270px !important;
    min-width: 270px !important;
    height: 100vh !important;
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
    padding: 28px 24px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    z-index: 100 !important;
}

.content {
    margin-left: 270px !important;
    width: calc(100% - 270px) !important;
    min-height: 100vh !important;
    padding: 28px !important;
    box-sizing: border-box !important;
    background: #f3f6fb !important;
}

.topbar {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 22px 26px !important;
    margin: 0 0 24px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

.logo-box {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 34px !important;
}

nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.logout {
    margin-top: 28px !important;
}

/* ===== LAYOUT BASE CORRIGIDO ===== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f3f6fb;
}

.layout {
    display: grid !important;
    grid-template-columns: 270px minmax(0, 1fr) !important;
    min-height: 100vh !important;
    width: 100% !important;
    background: #f3f6fb !important;
}

.sidebar {
    grid-column: 1 !important;
    width: 270px !important;
    min-width: 270px !important;
    height: 100vh !important;
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
    padding: 28px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

.content {
    grid-column: 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    padding: 28px !important;
    background: #f3f6fb !important;
}

.topbar {
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 22px 26px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

.logo-box {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 34px !important;
}

.logo-box h2 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

.logo-box p {
    margin: 2px 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
}

nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

nav a,
.menu-group-title {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-family: inherit !important;
}

nav a.ativo,
nav a:hover,
.menu-group-title:hover {
    background: #fff1f2 !important;
}

.submenu {
    display: none !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 4px 0 6px 18px !important;
}

.submenu.aberto {
    display: flex !important;
}

.submenu a {
    min-height: 36px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.menu-separator {
    height: 1px !important;
    background: #e5e7eb !important;
    margin: 18px 0 !important;
}

.logout {
    margin-top: auto !important;
    height: 46px !important;
    border-radius: 10px !important;
    background: #8b1e1e !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr !important;
    }

    .sidebar {
        position: relative !important;
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
    }

    .content {
        grid-column: 1 !important;
    }
}

/* ===== AJUSTE FINAL: tirar espaço entre menu e conteúdo ===== */

.layout {
    display: grid !important;
    grid-template-columns: 250px minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: #f3f6fb !important;
}

.sidebar {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
}

.content {
    margin: 0 !important;
    padding: 24px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-column: 2 !important;
}

.content > * {
    max-width: none !important;
}

.topbar,
.panel,
.cards-intendencia,
.resumen-header,
.titulo-seccion,
.grid-concejales {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cards-intendencia {
    justify-content: stretch !important;
}

/* ===== Cards da tela Marcar Votos ===== */

.grid-marcar-votos {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 18px;
}

.card-marcar-voto {
    position: relative;
    background: #fff1f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    min-height: 285px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.card-marcar-voto.votou {
    background: #f0fdf4;
    border-color: #86efac;
}

.card-marcar-voto.nao-votou {
    background: #fff1f2;
    border-color: #fecaca;
}

.status-dot-voto {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.status-dot-voto.ok {
    background: #16a34a;
}

.status-dot-voto.pendente {
    background: #ff3045;
}

.card-marcar-voto h4 {
    margin: 0 22px 16px 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    color: #020617;
    min-height: 46px;
}

.linha-doc-voto {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.linha-doc-voto span,
.info-voto-box span,
.origem-voto-box span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 4px;
}

.linha-doc-voto strong,
.info-voto-box strong,
.origem-voto-box strong {
    display: block;
    color: #020617;
    font-size: 15px;
    font-weight: 900;
}

.info-voto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.info-voto-box {
    border-radius: 8px;
    padding: 10px 12px;
}

.azul-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.lilas-box {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
}

.origem-voto-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.estado-voto-card {
    margin-bottom: 14px;
}

.acao-voto-card {
    margin-top: auto;
}

.acao-voto-card form {
    margin: 0;
}

.btn-voto-card {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font-weight: 900;
}

@media (max-width: 1500px) {
    .grid-marcar-votos {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }
}

@media (max-width: 1100px) {
    .grid-marcar-votos {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 700px) {
    .grid-marcar-votos {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}

.card-marcar-voto:target {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
}

/* ===== Ajuste visual do menu lateral ===== */

.sidebar {
    padding: 22px 20px !important;
}

.logo-box {
    display: grid !important;
    grid-template-columns: 44px 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 28px !important;
}

.logo-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
}

.logo-box h2 {
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.logo-box p {
    margin: 4px 0 0 !important;
    font-size: 13px !important;
}

nav {
    gap: 6px !important;
}

nav a,
.menu-group-title {
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    border-radius: 9px !important;
}

.menu-separator {
    margin: 14px 0 !important;
}

.logout {
    height: 42px !important;
    border-radius: 9px !important;
}

.oculto {
    display: none !important;
}

.border-naranja {
    border-left: 4px solid #f59e0b !important;
}

.icono-card.naranja {
    color: #f59e0b !important;
}

.border-rojo {
    border-left: 4px solid #ef4444 !important;
}

.icono-card.rojo {
    color: #ef4444 !important;
}

/* ===== Ajuste para celular / modo site para computador ===== */

html,
body {
    overflow-x: hidden;
}

.layout {
    width: 100%;
    max-width: 100%;
}

.content {
    overflow-x: hidden;
}

.panel,
.topbar,
.cards-intendencia,
.equipo-page-header,
.perfil-grid,
.grid-concejales,
.grid-marcar-votos {
    max-width: 100%;
}

/* Evita tabelas estourarem a tela */
.panel table {
    width: 100%;
    min-width: 720px;
}

.panel:has(table) {
    overflow-x: auto;
}

/* Celular normal */
@media (max-width: 900px) {
    .layout {
        display: block !important;
        width: 100% !important;
    }

    .sidebar {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 18px !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .content {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 14px !important;
    }

    .topbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 18px !important;
    }

    .user-box {
        width: 100% !important;
    }

    .cards-intendencia {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .grid-concejales,
    .grid-marcar-votos,
    .perfil-grid {
        grid-template-columns: 1fr !important;
    }

    section[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .perfil-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .perfil-actions button,
    .perfil-actions a {
        width: 100% !important;
    }
}

/* Celular em modo site para computador / largura intermediária */
@media (min-width: 901px) and (max-width: 1200px) {
    .layout {
        grid-template-columns: 230px minmax(0, 1fr) !important;
    }

    .sidebar {
        width: 230px !important;
        min-width: 230px !important;
        max-width: 230px !important;
        padding: 18px 14px !important;
    }

    .content {
        padding: 18px !important;
        min-width: 0 !important;
    }

    nav a,
    .menu-group-title {
        font-size: 13px !important;
        padding: 0 10px !important;
    }

    .logo-box h2 {
        font-size: 15px !important;
        white-space: normal !important;
    }

    .cards-intendencia {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .grid-concejales,
    .grid-marcar-votos {
        grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    }

    section[style*="grid-template-columns: 0.85fr 1.65fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Cards de votos - cores por status */
.card-marcar-voto.votou {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
}

.card-marcar-voto.nao-votou {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
}

.card-marcar-voto.votou h4,
.card-marcar-voto.votou strong {
    color: #14532d;
}

.card-marcar-voto.nao-votou h4,
.card-marcar-voto.nao-votou strong {
    color: #7f1d1d;
}

/* Control de Votación - cards por status */
.card-votante.votou,
.card-voto.votou,
.card-control-voto.votou,
.card-votante-status.votou {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
}

.card-votante.nao-votou,
.card-voto.nao-votou,
.card-control-voto.nao-votou,
.card-votante-status.nao-votou {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
}

.card-votante.votou h4,
.card-voto.votou h4,
.card-control-voto.votou h4,
.card-votante-status.votou h4 {
    color: #14532d !important;
}

.card-votante.nao-votou h4,
.card-voto.nao-votou h4,
.card-control-voto.nao-votou h4,
.card-votante-status.nao-votou h4 {
    color: #7f1d1d !important;
}

/* Control de Votación - cor do card inteiro */
.card-control-votou {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
}

.card-control-nao-votou {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
}

.card-control-votou h3 {
    color: #14532d !important;
}

.card-control-nao-votou h3 {
    color: #7f1d1d !important;
}
