 * {
    box-sizing: border-box;
}

:root {
    --bg-main: radial-gradient(circle at 0% 0%, #d9e8ff 0%, #f2f7ff 38%, #f8fbff 100%);
    --bg-panel: #ffffff;
    --bg-sidebar: linear-gradient(180deg, #0f1d3a 0%, #1c2f57 55%, #233f70 100%);
    --sidebar-width: 252px;
    --sidebar-width-mobile: 252px;
    --text-main: #1f2a44;
    --text-muted: #6b7a9a;
    --accent: #1f6fe5;
    --accent-soft: #eaf2ff;
    --line: #d9e3f2;
    --shadow: 0 14px 36px rgba(17, 33, 70, 0.12);
}

body {
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    background: var(--bg-main);
    color: var(--text-main);
    max-width: 100%;
    overflow-x: hidden;
}

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

.sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    background: var(--bg-sidebar);
    color: #fff;
    padding: 20px 12px 16px;
    box-shadow: 4px 0 24px rgba(13, 20, 40, 0.24);
    position: static !important;
    top: auto !important;
    min-height: 100vh;
    overflow-y: visible;
    transition: width 0.24s ease, flex-basis 0.24s ease, padding 0.24s ease, opacity 0.2s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

body.sidebar-collapsed .sidebar {
    width: 0;
    flex-basis: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: none;
}

body.sidebar-collapsed .sidebar > * {
    opacity: 0;
    pointer-events: none;
}

.sidebar-brand {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.sidebar-subtitle {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
}

.sidebar-user {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 700;
}

.sidebar-user-role {
    font-size: 12px;
    opacity: 0.76;
    margin-top: 4px;
}

.sidebar-group {
    margin-bottom: 14px;
}

.sidebar-group-title {
    margin: 0 0 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-group-links {
    display: grid;
    gap: 6px;
}

.sidebar-link {
    text-decoration: none;
    color: #e9f0ff;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.sidebar-link.is-active {
    background: rgba(40, 136, 255, 0.32);
    border-color: rgba(138, 198, 255, 0.65);
    font-weight: 700;
}

.sidebar-link.is-disabled {
    opacity: 0.68;
}

.app-main {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

.topbar-title {
    margin: 0;
    font-size: 20px;
}

.sidebar-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    margin-right: 12px;
    background: #edf4ff;
    color: transparent;
    border-color: #c4d8f5;
    position: relative;
    overflow: hidden;
}

.sidebar-toggle .hamburger-box {
    position: relative;
    width: 18px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle .hamburger-line,
.sidebar-toggle .hamburger-line::before,
.sidebar-toggle .hamburger-line::after {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 3px;
    background: #264979;
    transition: transform 0.2s ease, opacity 0.2s ease;
    content: "";
}

.sidebar-toggle .hamburger-line::before {
    transform: translateY(-6px);
}

.sidebar-toggle .hamburger-line::after {
    transform: translateY(6px);
}

body.sidebar-open .sidebar-toggle .hamburger-line {
    background: transparent;
}

body.sidebar-open .sidebar-toggle .hamburger-line::before {
    transform: translateY(0) rotate(45deg);
}

body.sidebar-open .sidebar-toggle .hamburger-line::after {
    transform: translateY(0) rotate(-45deg);
}

body.sidebar-collapsed .sidebar-toggle .hamburger-line {
    background: #264979;
}

body.sidebar-collapsed .sidebar-toggle .hamburger-line::before {
    transform: translateY(-6px);
}

body.sidebar-collapsed .sidebar-toggle .hamburger-line::after {
    transform: translateY(6px);
}

.topbar-left {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    width: auto;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cfdbef;
    color: #1f355d;
    padding: 6px 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    background: #d9e9ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-initials {
    font-size: 12px;
    font-weight: 700;
    color: #20467a;
}

.user-menu-name {
    flex: 1;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-caret {
    font-size: 12px;
    color: #4d658f;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    background: #fff;
    border: 1px solid #d4e0f3;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(11, 22, 43, 0.16);
    display: none;
    z-index: 200;
}

.user-menu.is-open .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown ul {
    margin: 0;
    padding: 8px;
    list-style: none;
}

.user-menu-dropdown li a {
    display: block;
    text-decoration: none;
    color: #1f355d;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.user-menu-dropdown li a:hover {
    background: #edf3ff;
}

.container {
    max-width: 1480px;
    margin: 18px auto;
    padding: 0 16px;
    display: grid;
    gap: 14px;
}

body.sidebar-collapsed .container {
    max-width: 1720px;
}

.page-asignaciones #assignment-form,
.page-asignaciones .form-section,
.page-asignaciones .container > .card,
.page-asignaciones .table-wrap,
.page-asignaciones .dataTables_wrapper,
.page-asignaciones .assignment-juntas-panel,
.page-asignaciones .assignment-juntas-grid,
.page-asignaciones .assignment-juntas-column {
    min-width: 0;
}

.page-asignaciones .container > .card {
    max-width: 100%;
}

.page-asignaciones .table-wrap,
.page-asignaciones .dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.dt-export-toolbar {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr minmax(220px, auto);
    align-items: end;
    gap: 12px;
    margin: 0 0 14px;
}

.dt-export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dt-export-search {
    justify-self: end;
}

.dt-export-toolbar .dataTables_length,
.dt-export-toolbar .dataTables_filter {
    margin: 0;
}

.dt-export-toolbar .dataTables_filter input,
.dt-export-toolbar .dataTables_length select {
    border: 1px solid #cfe0fb;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 700;
    padding: 8px 10px;
}

button.dt-export-btn,
div.dt-button.dt-export-btn {
    border: 1px solid #bcd5ff !important;
    border-radius: 999px !important;
    background: #f7fbff !important;
    color: #0f4fbf !important;
    box-shadow: 0 8px 18px rgba(41, 109, 216, 0.12) !important;
    font-weight: 800 !important;
    padding: 8px 14px !important;
}

button.dt-export-btn:hover,
div.dt-button.dt-export-btn:hover {
    border-color: #2f7df6 !important;
    background: #eaf3ff !important;
    color: #0d43a0 !important;
}

button.dt-export-btn.is-excel,
div.dt-button.dt-export-btn.is-excel {
    color: #137333 !important;
    border-color: #b9e4c7 !important;
}

button.dt-export-btn.is-pdf,
div.dt-button.dt-export-btn.is-pdf {
    color: #b42318 !important;
    border-color: #ffd0cc !important;
}

.dt-export-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 760px) {
    .maintenance-hero,
    .maintenance-warning-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-preserve-card {
        min-height: auto;
    }

    .dt-export-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .dt-export-buttons,
    .dt-export-search {
        justify-content: flex-start;
        justify-self: stretch;
    }

    .dt-export-toolbar .dataTables_filter input {
        width: 100%;
        box-sizing: border-box;
    }

    .dt-export-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.page-asignaciones .row-3 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
}

.page-asignaciones .assignment-field-user,
.page-asignaciones .assignment-field-recinto,
.page-asignaciones .assignment-field-total {
    min-width: 0;
}

.page-asignaciones .row-3 > div {
    grid-column: span 4;
}

.page-asignaciones .row-3 > .assignment-field-user {
    grid-column: span 4;
}

.page-asignaciones .row-3 > .assignment-field-recinto {
    grid-column: span 5;
}

.page-asignaciones .row-3 > .assignment-field-total {
    grid-column: span 3;
}

.page-asignaciones .row-3 > .row-span-full {
    grid-column: 1 / -1;
}

.page-asignaciones .assignment-juntas-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    align-items: start;
}

.card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #dce6f7;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 0;
}

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

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

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 36, 0.56);
}

.app-modal-dialog {
    position: relative;
    width: min(1100px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #d8e4f7;
    box-shadow: 0 24px 44px rgba(8, 17, 35, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2ebfa;
    padding: 10px 14px;
    background: #f7faff;
}

.app-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.app-modal-close {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 0;
    background: #fff;
    color: #2c4f84;
    border: 1px solid #c8daf6;
}

.app-modal-body {
    padding: 12px 14px;
    overflow-y: auto;
}

body.modal-open {
    overflow: hidden;
}

.swal2-container {
    z-index: 20000 !important;
}

.swal2-popup {
    z-index: 20001 !important;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #304468;
    font-weight: 700;
}

input,
select,
textarea,
button {
    width: 100%;
    border: 1px solid #cfdbef;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
    background: #fff;
    color: var(--text-main);
}

.select2-container {
    width: 100% !important;
}

select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.select2-container .select2-selection--single {
    height: 42px !important;
    border: 1px solid #cfdbef !important;
    border-radius: 8px !important;
    background: #fff !important;
    position: relative !important;
    text-align: left !important;
}

.select2-container .select2-selection--multiple {
    min-height: 42px !important;
    border: 1px solid #cfdbef !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 4px 36px 4px 8px !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 0 !important;
    padding: 4px 8px !important;
    border: 1px solid #bfd8ff !important;
    background: #eaf3ff !important;
    color: #255ca9 !important;
    border-radius: 999px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #255ca9 !important;
    margin-right: 6px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #8ab2f2 !important;
    box-shadow: 0 0 0 3px rgba(86, 138, 224, 0.18) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 34px !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    line-height: 1.2 !important;
    color: var(--text-main) !important;
    padding: 0 0 0 12px !important;
    text-align: left !important;
    margin: 0 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background: #f5f8fd !important;
    opacity: 0.85;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #8ab2f2 !important;
    box-shadow: 0 0 0 3px rgba(86, 138, 224, 0.18) !important;
}

.select2-dropdown {
    border: 1px solid #cfdbef !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #d3def0 !important;
    border-radius: 8px !important;
}

.select2-results__option {
    font-size: 13px;
}

.select2-container .select2-selection--single.is-invalid,
.select2-container--default.select2-container .select2-selection--single.is-invalid {
    border-color: #de4f4f !important;
    background: #fff4f4 !important;
    box-shadow: 0 0 0 3px rgba(222, 79, 79, 0.16) !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #8ab2f2;
    box-shadow: 0 0 0 3px rgba(86, 138, 224, 0.18);
}

.is-invalid {
    border-color: #de4f4f !important;
    background: #fff4f4 !important;
    box-shadow: 0 0 0 3px rgba(222, 79, 79, 0.16) !important;
}

.row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.row > div,
.row-3 > div {
    min-width: 0;
}

.actas-selector-grid {
    grid-template-columns: minmax(520px, 2.4fr) minmax(190px, 0.8fr) minmax(190px, 0.8fr);
    align-items: end;
}

.actas-progress-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.actas-progress-line {
    width: 100%;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: #dfe9fb;
    overflow: hidden;
}

.actas-progress-line span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f6fe5, #56a7ff);
    transition: width 0.25s ease;
}

.actas-filter-accordion {
    margin-top: 16px;
}

#actas-monitor-grid tbody tr:hover {
    background: #f4f8ff;
}

.actas-table-action {
    min-width: 82px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
}

button {
    cursor: pointer;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

button.secondary {
    background: #fff;
    color: var(--accent);
}

button.secondary.actas-table-action.is-view {
    background: linear-gradient(180deg, #ecfdf5 0%, #d8f8e9 100%);
    border-color: #77d9ae;
    color: #047857;
}

button.secondary.actas-table-action.is-view:hover {
    background: linear-gradient(180deg, #d8f8e9 0%, #bff1dc 100%);
    border-color: #34c08c;
}

button.secondary.actas-table-action.is-upload {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #f59aa4;
    color: #be123c;
}

button.secondary.actas-table-action.is-upload:hover {
    background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%);
    border-color: #f43f5e;
}

button.secondary.actas-table-action.is-validate {
    background: linear-gradient(180deg, #effcf5 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #166534;
}

button.secondary.actas-table-action.is-validate:hover {
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #4ade80;
}

button.secondary.actas-table-action.is-reopen {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
    color: #c2410c;
}

button.secondary.actas-table-action.is-reopen:hover {
    background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%);
    border-color: #fb923c;
}

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

.maintenance-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
    gap: 16px;
}

.maintenance-hero h2 {
    margin: 4px 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    color: #09295a;
}

.maintenance-preserve-card {
    min-height: 120px;
    border: 1px solid #b9e4c7;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f7fffb 100%);
    color: #05603a;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(5, 96, 58, 0.1);
}

.maintenance-preserve-card i {
    font-size: 28px;
}

.maintenance-danger-card {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.maintenance-warning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.maintenance-warning-grid article {
    border: 1px solid #d9e6fb;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.maintenance-warning-grid article:nth-child(-n + 2) {
    border-color: #fecaca;
    background: #fff7f7;
}

.maintenance-warning-grid strong {
    color: #102a56;
}

.maintenance-warning-grid span {
    color: #4b6289;
    line-height: 1.35;
}

.maintenance-simulation-card {
    display: grid;
    gap: 16px;
}

.maintenance-simulation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

.maintenance-sim-stat {
    border: 1px solid #d8e1ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    padding: 14px;
    display: grid;
    gap: 6px;
}

.maintenance-sim-stat span,
.maintenance-sim-stat small {
    color: #5d7398;
}

.maintenance-sim-stat span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
}

.maintenance-sim-stat strong {
    color: #0f2f5a;
    font-size: 28px;
    line-height: 1.1;
}

.maintenance-sim-progressbar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #e4eefc;
    overflow: hidden;
}

.maintenance-sim-progressbar > div {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f6fdf 0%, #6aa7ff 100%);
    transition: width 0.35s ease;
}

.maintenance-sim-log {
    display: grid;
    gap: 10px;
}

.maintenance-sim-log.empty {
    border: 1px dashed #cbdcf6;
    border-radius: 14px;
    padding: 14px;
    color: #6a80a5;
    background: #f8fbff;
}

.maintenance-sim-log-item {
    border: 1px solid #d8e1ef;
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    gap: 4px;
    background: #fff;
}

.maintenance-sim-log-item strong {
    color: #163f6d;
}

.maintenance-sim-log-item span,
.maintenance-sim-log-item em {
    color: #5d7398;
}

.maintenance-sim-log-item em {
    font-style: normal;
    font-weight: 700;
}

.maintenance-sim-log-item.status-created {
    border-color: #b8e0c6;
    background: #f2fff7;
}

.maintenance-sim-log-item.status-skipped {
    border-color: #d8e1ef;
    background: #f8fbff;
}

.maintenance-sim-log-item.status-error {
    border-color: #f6c7c7;
    background: #fff5f5;
}

button.danger-action {
    background: linear-gradient(180deg, #ef4444 0%, #d92d20 100%);
    border-color: #d92d20;
    color: #fff;
    box-shadow: 0 12px 22px rgba(217, 45, 32, 0.18);
}

button.danger-action:hover {
    background: linear-gradient(180deg, #f04438 0%, #b42318 100%);
    border-color: #b42318;
}

.card-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.card-toolbar-group {
    display: flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
}

.authority-thumb,
.votos-candidato-thumb,
.graficos-candidato-photo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #cfe0f8;
    background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
    color: #1f5eb8;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.votos-candidato-thumb {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.authority-thumb img,
.votos-candidato-thumb img,
.graficos-candidato-photo img,
.graficos-visual-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.authority-thumb.is-empty,
.votos-candidato-thumb.is-empty,
.graficos-candidato-photo.is-empty {
    border-style: dashed;
}

.card-toolbar-group label {
    margin-bottom: 0;
}

.card-toolbar-group select {
    width: auto;
    min-width: 150px;
}

.card-toolbar-group-end {
    margin-left: auto;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.icon-action-btn {
    position: relative;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.icon-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(21, 43, 87, 0.2);
}

.icon-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 117, 230, 0.28);
}

.icon-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.46;
    transform: none;
    box-shadow: none;
}

.icon-action-btn.btn-edit {
    background: #eaf3ff;
    border-color: #bfd8ff;
    color: #255ca9;
}

.icon-action-btn.btn-reset {
    background: #fff3e4;
    border-color: #ffd4a2;
    color: #a66412;
}

.icon-action-btn.btn-force {
    background: #efe9ff;
    border-color: #d5c3ff;
    color: #5b3da6;
}

.icon-action-btn.btn-status {
    background: #e8f8ee;
    border-color: #c1ebd0;
    color: #1f7c47;
}

.icon-action-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    background: #10213f;
    color: #fff;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 300;
    box-shadow: 0 8px 20px rgba(10, 20, 41, 0.25);
    transition: opacity 0.14s ease;
}

.icon-action-btn[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

.icon-action-btn[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

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

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

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

#recintos-grid {
    width: 100% !important;
}

#recintos-grid_wrapper {
    width: 100%;
}

#recintos-grid_wrapper .dataTables_scroll,
#recintos-grid_wrapper .dataTables_scrollHead,
#recintos-grid_wrapper .dataTables_scrollBody {
    width: 100% !important;
}

#recintos-grid th,
#recintos-grid td {
    vertical-align: top;
    word-break: normal;
}

#recintos-grid thead th {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

#recintos-grid tbody td {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

#recintos-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
#recintos-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    padding-left: 28px;
}

#recintos-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
#recintos-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    line-height: 14px;
    border: 1px solid #9ebcf0;
    background-color: #eef5ff;
    color: #29579a;
    box-shadow: none;
}

#recintos-grid_wrapper ul.dtr-details {
    width: 100%;
}

#recintos-grid_wrapper ul.dtr-details li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

#recintos-grid_wrapper ul.dtr-details .dtr-title {
    min-width: 130px;
    white-space: normal;
}

#recintos-grid_wrapper ul.dtr-details .dtr-data {
    flex: 1;
    white-space: normal;
}

#recintos-grid td:last-child,
#recintos-grid th:last-child {
    white-space: nowrap;
    width: 72px;
}

#recintos-grid .table-actions {
    justify-content: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.status-badge.is-active {
    background: #e8f8ee;
    color: #1f7c47;
    border: 1px solid #c1ebd0;
}

.status-badge.is-inactive {
    background: #fff1f1;
    color: #a33434;
    border: 1px solid #efc2c2;
}

.status-badge.is-validated {
    background: #ecfdf5;
    color: #0f7a45;
    border: 1px solid #b7e8cd;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid #ecf1f8;
    padding: 9px 6px;
    font-size: 13px;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 18% 16%, rgba(140, 202, 255, 0.22) 0%, rgba(140, 202, 255, 0) 40%),
        radial-gradient(circle at 86% 82%, rgba(67, 136, 245, 0.26) 0%, rgba(67, 136, 245, 0) 44%),
        linear-gradient(132deg, #0d2245 0%, #163466 48%, #1a4c90 100%);
    padding: 16px;
}

.login-card {
    width: min(420px, 92vw);
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.login-card-enhanced {
    border: 1px solid rgba(196, 217, 248, 0.8);
    box-shadow: 0 20px 40px rgba(6, 17, 36, 0.34);
    border-radius: 18px;
}

.login-header {
    text-align: center;
    margin-bottom: 14px;
}

.login-brand-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, #0f5cc9, #2d89ff);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 12px 24px rgba(36, 96, 182, 0.35);
}

.login-header h2 {
    margin: 0;
    color: #1f3256;
}

.login-header p {
    margin: 8px 0 0;
    color: #5f7395;
    font-size: 13px;
}

.login-form-grid {
    display: grid;
    gap: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #5f7cad;
    font-size: 14px;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 34px;
}

.login-submit-btn {
    margin-top: 12px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.login-msg {
    margin-top: 12px;
    min-height: 20px;
    text-align: center;
}

.muted {
    color: var(--text-muted);
    font-size: 13px;
}

.module-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d4e0f2;
    border-radius: 10px;
    background: #f8fbff;
    padding: 8px 10px;
}

.module-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.module-option.inherited {
    background: #edf4ff;
    border-color: #bfd4fb;
}

.module-option-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    background: #d9e8ff;
    color: #254c86;
}

.module-option-badge.extra {
    background: #edf1f7;
    color: #4f5f79;
}

.module-groups-container {
    display: grid;
    gap: 12px;
}

.module-group-card {
    border: 1px solid #d4e0f2;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}

.module-group-title {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #3b5480;
}

.module-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.profile-perm-list {
    display: grid;
    gap: 8px;
}

.profile-perm-item {
    border: 1px solid #d4e0f2;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px;
}

.profile-perm-item.is-inactive {
    opacity: 0.8;
    background: #f3f5f9;
}

.profile-perm-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-perm-toggle {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-perm-name {
    font-weight: 700;
    color: #284571;
}

.profile-perm-code {
    color: #607495;
    font-size: 11px;
}

.profile-perm-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.profile-perm-action {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d6e2f5;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #37527d;
}

.sidebar-backdrop {
    display: none;
}

.form-intro {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 13px;
    color: #4f6285;
}

.required-field::after {
    content: " *";
    color: #d23636;
    font-weight: 700;
}

.required-mark {
    color: #d23636;
    font-weight: 700;
}

.form-section {
    margin-bottom: 14px;
    border: 1px solid #dce8fb;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.form-section-title {
    margin: 0 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #3f5680;
}

.field-help {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6c7f9e;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.js-uppercase {
    text-transform: uppercase;
}

.row-span-full {
    grid-column: 1 / -1;
}

.assignment-juntas-panel {
    border: 1px solid #cfdbef;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    padding: 12px;
    overflow: hidden;
}

.assignment-juntas-panel.is-invalid {
    border-color: #de4f4f !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(222, 79, 79, 0.12) !important;
}

.assignment-juntas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.assignment-juntas-column {
    min-width: 0;
    border: 1px solid #dbe6f7;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.assignment-juntas-column.is-femenina {
    border-color: #efb5d2;
    background: linear-gradient(180deg, #fff8fb 0%, #fff2f8 100%);
}

.assignment-juntas-column.is-masculina {
    border-color: #b7d1f8;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.assignment-juntas-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 8px;
}

.assignment-juntas-column-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1b365f;
}

.assignment-juntas-column.is-femenina .assignment-juntas-column-title {
    color: #b23372;
}

.assignment-juntas-column.is-masculina .assignment-juntas-column-title {
    color: #255fbc;
}

.assignment-juntas-column-total {
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    background: #eef4ff;
    color: #1f5aa9;
}

.assignment-juntas-column.is-femenina .assignment-juntas-column-total {
    background: #ffe2ef;
    color: #b23372;
}

.assignment-juntas-column.is-masculina .assignment-juntas-column-total {
    background: #deecff;
    color: #255fbc;
}

.assignment-juntas-column-actions {
    display: flex;
    gap: 8px;
    padding: 0 14px 10px;
    flex-wrap: wrap;
}

.assignment-link-btn {
    border: 0;
    background: transparent;
    color: #2b68c6;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
    min-width: auto;
}

.assignment-link-btn:hover {
    color: #184d9d;
    text-decoration: underline;
}

.assignment-juntas-list {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 0 14px 14px;
}

.assignment-junta-chip {
    display: block;
    cursor: pointer;
}

.assignment-junta-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.assignment-junta-chip-box {
    display: block;
    border: 1px solid #d8e4f7;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.assignment-junta-chip.is-occupied .assignment-junta-chip-box {
    border-width: 2px;
}

.assignment-junta-chip.is-femenina .assignment-junta-chip-box {
    border-color: #efb5d2;
    background: #fff7fb;
}

.assignment-junta-chip.is-masculina .assignment-junta-chip-box {
    border-color: #b7d1f8;
    background: #f7fbff;
}

.assignment-junta-chip.is-occupied.is-femenina .assignment-junta-chip-box {
    border-color: #d9659d;
    background: linear-gradient(180deg, #fff6fb 0%, #ffeef7 100%);
}

.assignment-junta-chip.is-occupied.is-masculina .assignment-junta-chip-box {
    border-color: #4b88e6;
    background: linear-gradient(180deg, #f6fbff 0%, #eaf3ff 100%);
}

.assignment-junta-chip:hover .assignment-junta-chip-box {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(18, 38, 76, 0.08);
}

.assignment-junta-chip input:checked + .assignment-junta-chip-box {
    border-color: #2d72da;
    box-shadow: 0 0 0 3px rgba(45, 114, 218, 0.16);
    background: linear-gradient(180deg, #f3f8ff 0%, #eaf2ff 100%);
}

.assignment-junta-chip.is-femenina input:checked + .assignment-junta-chip-box {
    border-color: #c9478b;
    box-shadow: 0 0 0 3px rgba(201, 71, 139, 0.16);
    background: linear-gradient(180deg, #ffe7f2 0%, #ffd6e9 100%);
}

.assignment-junta-chip.is-masculina input:checked + .assignment-junta-chip-box {
    border-color: #2d72da;
    box-shadow: 0 0 0 3px rgba(45, 114, 218, 0.16);
    background: linear-gradient(180deg, #ebf4ff 0%, #dbeaff 100%);
}

.assignment-junta-chip-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #16345b;
}

.assignment-junta-chip-meta {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6780a3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.assignment-junta-owner {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #8a4a0d;
    line-height: 1.35;
}

.assignment-junta-chip.is-own-assignment .assignment-junta-owner {
    color: #2458a6;
}

.assignment-junta-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.assignment-junta-badge.is-own {
    background: #eef4ff;
    color: #2b63ba;
    border: 1px solid #c8dcfb;
}

.assignment-junta-badge.is-shared {
    background: #fff3e6;
    color: #b36512;
    border: 1px solid #f2d1a7;
}

.assignment-juntas-empty {
    border: 1px dashed #d5e2f5;
    border-radius: 12px;
    background: #f8fbff;
    color: #647c9e;
    padding: 14px;
    text-align: center;
    font-size: 13px;
}

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

.form-status {
    margin-top: 6px;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    border: 1px solid #d5e3f8;
    background: #f4f8ff;
    color: #365784;
}

.form-status.error {
    border-color: #efc3c3;
    background: #fff5f5;
    color: #9e2f2f;
}

.form-status.ok {
    border-color: #bfe4cb;
    background: #edf9f1;
    color: #1b6e3a;
}

#users-grid_wrapper {
    margin-top: 8px;
}

#users-grid,
#modules-grid,
#profiles-grid,
#patients-grid,
#authorities-parties-grid,
#authorities-dignities-grid,
#authorities-candidates-grid {
    width: 100% !important;
    min-width: 0 !important;
}

#users-grid thead th:first-child,
#modules-grid thead th:first-child,
#profiles-grid thead th:first-child,
#patients-grid thead th:first-child,
#authorities-parties-grid thead th:first-child,
#authorities-dignities-grid thead th:first-child,
#authorities-candidates-grid thead th:first-child {
    width: 32px;
}

#users-grid td.dt-control,
#modules-grid td.dt-control,
#profiles-grid td.dt-control,
#patients-grid td.dt-control,
#authorities-parties-grid td.dt-control,
#authorities-dignities-grid td.dt-control,
#authorities-candidates-grid td.dt-control {
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

#modules-grid_wrapper {
    margin-top: 8px;
}

#profiles-grid_wrapper {
    margin-top: 8px;
}

#patients-grid_wrapper {
    margin-top: 8px;
}

#authorities-parties-grid_wrapper,
#authorities-dignities-grid_wrapper,
#authorities-candidates-grid_wrapper {
    margin-top: 12px;
}

#users-grid_wrapper .dataTables_filter label,
#users-grid_wrapper .dataTables_length label,
#modules-grid_wrapper .dataTables_filter label,
#modules-grid_wrapper .dataTables_length label,
#profiles-grid_wrapper .dataTables_filter label,
#profiles-grid_wrapper .dataTables_length label,
#patients-grid_wrapper .dataTables_filter label,
#patients-grid_wrapper .dataTables_length label,
#authorities-parties-grid_wrapper .dataTables_filter label,
#authorities-parties-grid_wrapper .dataTables_length label,
#authorities-dignities-grid_wrapper .dataTables_filter label,
#authorities-dignities-grid_wrapper .dataTables_length label,
#authorities-candidates-grid_wrapper .dataTables_filter label,
#authorities-candidates-grid_wrapper .dataTables_length label {
    font-size: 13px;
    color: #3a5075;
}

#users-grid_wrapper .dataTables_info,
#users-grid_wrapper .dataTables_paginate,
#modules-grid_wrapper .dataTables_info,
#modules-grid_wrapper .dataTables_paginate,
#profiles-grid_wrapper .dataTables_info,
#profiles-grid_wrapper .dataTables_paginate,
#patients-grid_wrapper .dataTables_info,
#patients-grid_wrapper .dataTables_paginate,
#authorities-parties-grid_wrapper .dataTables_info,
#authorities-parties-grid_wrapper .dataTables_paginate,
#authorities-dignities-grid_wrapper .dataTables_info,
#authorities-dignities-grid_wrapper .dataTables_paginate,
#authorities-candidates-grid_wrapper .dataTables_info,
#authorities-candidates-grid_wrapper .dataTables_paginate {
    font-size: 12px;
    color: #4a6188 !important;
}

#users-grid.dataTable thead th,
#modules-grid.dataTable thead th,
#profiles-grid.dataTable thead th,
#patients-grid.dataTable thead th,
#authorities-parties-grid.dataTable thead th,
#authorities-dignities-grid.dataTable thead th,
#authorities-candidates-grid.dataTable thead th {
    background: #eef4ff;
    color: #294674;
}

#users-grid_wrapper .dataTables_filter input,
#users-grid_wrapper .dataTables_length select,
#modules-grid_wrapper .dataTables_filter input,
#modules-grid_wrapper .dataTables_length select,
#profiles-grid_wrapper .dataTables_filter input,
#profiles-grid_wrapper .dataTables_length select,
#patients-grid_wrapper .dataTables_filter input,
#patients-grid_wrapper .dataTables_length select,
#authorities-parties-grid_wrapper .dataTables_filter input,
#authorities-parties-grid_wrapper .dataTables_length select,
#authorities-dignities-grid_wrapper .dataTables_filter input,
#authorities-dignities-grid_wrapper .dataTables_length select,
#authorities-candidates-grid_wrapper .dataTables_filter input,
#authorities-candidates-grid_wrapper .dataTables_length select {
    width: auto;
    min-width: 88px;
}

#users-grid_wrapper ul.dtr-details,
#modules-grid_wrapper ul.dtr-details,
#profiles-grid_wrapper ul.dtr-details,
#patients-grid_wrapper ul.dtr-details,
#authorities-parties-grid_wrapper ul.dtr-details,
#authorities-dignities-grid_wrapper ul.dtr-details,
#authorities-candidates-grid_wrapper ul.dtr-details {
    width: 100%;
    margin: 0;
    padding: 0;
}

#users-grid_wrapper ul.dtr-details li,
#modules-grid_wrapper ul.dtr-details li,
#profiles-grid_wrapper ul.dtr-details li,
#patients-grid_wrapper ul.dtr-details li,
#authorities-parties-grid_wrapper ul.dtr-details li,
#authorities-dignities-grid_wrapper ul.dtr-details li,
#authorities-candidates-grid_wrapper ul.dtr-details li {
    border-bottom: 1px dashed #d9e4f5;
    padding: 7px 0;
}

#users-grid_wrapper ul.dtr-details li:last-child,
#modules-grid_wrapper ul.dtr-details li:last-child,
#profiles-grid_wrapper ul.dtr-details li:last-child,
#patients-grid_wrapper ul.dtr-details li:last-child,
#authorities-parties-grid_wrapper ul.dtr-details li:last-child,
#authorities-dignities-grid_wrapper ul.dtr-details li:last-child,
#authorities-candidates-grid_wrapper ul.dtr-details li:last-child {
    border-bottom: 0;
}

#users-grid_wrapper ul.dtr-details .dtr-title,
#modules-grid_wrapper ul.dtr-details .dtr-title,
#profiles-grid_wrapper ul.dtr-details .dtr-title,
#patients-grid_wrapper ul.dtr-details .dtr-title,
#authorities-parties-grid_wrapper ul.dtr-details .dtr-title,
#authorities-dignities-grid_wrapper ul.dtr-details .dtr-title,
#authorities-candidates-grid_wrapper ul.dtr-details .dtr-title {
    color: #2f4f7f;
    font-weight: 700;
    min-width: 108px;
}

#users-grid_wrapper ul.dtr-details .dtr-data,
#modules-grid_wrapper ul.dtr-details .dtr-data,
#profiles-grid_wrapper ul.dtr-details .dtr-data,
#patients-grid_wrapper ul.dtr-details .dtr-data,
#recintos-grid_wrapper ul.dtr-details .dtr-data {
    color: #203456;
    word-break: break-word;
}

#authorities-parties-grid_wrapper ul.dtr-details .dtr-data,
#authorities-dignities-grid_wrapper ul.dtr-details .dtr-data,
#authorities-candidates-grid_wrapper ul.dtr-details .dtr-data {
    color: #203456;
    word-break: break-word;
}

#users-grid_wrapper ul.dtr-details .dtr-data .table-actions,
#modules-grid_wrapper ul.dtr-details .dtr-data .table-actions,
#profiles-grid_wrapper ul.dtr-details .dtr-data .table-actions,
#patients-grid_wrapper ul.dtr-details .dtr-data .table-actions,
#recintos-grid_wrapper ul.dtr-details .dtr-data .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

#authorities-parties-grid_wrapper ul.dtr-details .dtr-data .table-actions,
#authorities-dignities-grid_wrapper ul.dtr-details .dtr-data .table-actions,
#authorities-candidates-grid_wrapper ul.dtr-details .dtr-data .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

#users-grid_wrapper ul.dtr-details .dtr-data .icon-action-btn,
#modules-grid_wrapper ul.dtr-details .dtr-data .icon-action-btn,
#profiles-grid_wrapper ul.dtr-details .dtr-data .icon-action-btn,
#patients-grid_wrapper ul.dtr-details .dtr-data .icon-action-btn,
#recintos-grid_wrapper ul.dtr-details .dtr-data .icon-action-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
}

#authorities-parties-grid_wrapper ul.dtr-details .dtr-data .icon-action-btn,
#authorities-dignities-grid_wrapper ul.dtr-details .dtr-data .icon-action-btn,
#authorities-candidates-grid_wrapper ul.dtr-details .dtr-data .icon-action-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
}

.authorities-table-wrap .status-badge {
    min-width: 84px;
}

.votos-hero-card {
    padding: 0;
    overflow: hidden;
}

.votos-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 0;
}

.votos-hero-main {
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(48, 121, 230, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.votos-hero-header {
    display: block;
}

.votos-hero-copy {
    display: flex;
    flex-direction: column;
    max-width: 760px;
}

.votos-hero-side {
    padding: 20px;
    background: linear-gradient(180deg, #eef5ff 0%, #e5efff 100%);
    border-left: 1px solid #d7e4fa;
}

.votos-section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4a6692;
}

.votos-hero-title {
    margin: 6px 0 10px;
    font-size: 28px;
    color: #173257;
}

.votos-select-card {
    border: 1px solid #d8e4f8;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(22, 46, 88, 0.07);
    margin-top: 12px;
    width: min(100%, 700px);
}

.votos-data-value {
    font-size: 16px;
    font-weight: 700;
    color: #173257;
    line-height: 1.25;
}

.votos-data-help {
    margin-top: 4px;
    font-size: 12px;
    color: #5e7396;
    overflow-wrap: anywhere;
}

.votos-quick-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.votos-quick-nav button {
    width: auto;
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.votos-keyboard-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #edf4ff;
    border: 1px solid #d2e2fb;
    color: #39557f;
    font-size: 12px;
    font-weight: 600;
}

.votos-recinto-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.votos-board-item {
    border: 1px solid #d9e5f7;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
    min-width: 0;
}

.votos-board-item-wide {
    grid-column: span 3;
}

.votos-board-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #58729d;
}

.votos-board-value {
    display: block;
    margin-top: 6px;
    font-size: 17px;
    color: #172f53;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.votos-board-help {
    display: block;
    margin-top: 6px;
    color: #61789c;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.votos-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.votos-stat-card {
    border-radius: 14px;
    border: 1px solid rgba(120, 157, 223, 0.32);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    min-height: 68px;
}

.votos-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a739c;
}

.votos-stat-value {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    line-height: 1;
    color: #143055;
}

.votos-stat-card-alert {
    background: linear-gradient(180deg, #fff4f4 0%, #ffeded 100%);
    border-color: #f0c6c6;
}

.votos-stat-card-alert .votos-stat-value {
    color: #b22d2d;
}

.votos-progress-card {
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid rgba(120, 157, 223, 0.32);
    background: rgba(255, 255, 255, 0.92);
    padding: 12px;
}

.votos-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #3f5c87;
    font-size: 13px;
    font-weight: 700;
}

.votos-progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #dce8fb;
}

.votos-progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2877ea 0%, #5ea0ff 100%);
    transition: width 0.25s ease;
}

.votos-dignidades-avance {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.votos-dignidad-progress-item {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #d8e4f7;
}

.votos-dignidad-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #38557e;
}

.votos-dignidad-progress-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.votos-dignidad-progress-head strong {
    flex-shrink: 0;
    color: #173257;
}

.votos-dignidad-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #dce8fb;
}

.votos-dignidad-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d6fe4 0%, #7bb0ff 100%);
}

.votos-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.votos-juntas-tabs {
    min-height: 0;
}

.votos-juntas-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
}

.votos-juntas-column {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.votos-juntas-column-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #d8e4f7;
    background: #f7fbff;
    color: #18345a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.votos-juntas-column-head strong {
    font-size: 16px;
    line-height: 1;
}

.votos-juntas-column-head.is-femenina {
    background: linear-gradient(180deg, #ffeaf5 0%, #ffdced 100%);
    border-color: #e5a0c3;
    color: #a82f6c;
}

.votos-juntas-column-head.is-masculina {
    background: linear-gradient(180deg, #eaf4ff 0%, #d8eaff 100%);
    border-color: #95bff6;
    color: #235fbf;
}

.votos-juntas-column-body {
    display: grid;
    gap: 10px;
    max-height: min(62vh, 700px);
    overflow-y: auto;
    align-content: start;
    padding-right: 4px;
}

.votos-junta-tab {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    text-align: left;
    border: 1px solid #d8e4f7;
    border-radius: 14px;
    background: #ffffff;
    color: #1f2a44;
    padding: 10px 12px;
    box-shadow: 0 10px 22px rgba(18, 38, 76, 0.05);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.votos-junta-tab:hover {
    transform: translateY(-1px);
    border-color: #9fc0f4;
    box-shadow: 0 14px 26px rgba(18, 38, 76, 0.08);
}

.votos-junta-tab.is-selected {
    border-color: #4b8df0;
    background: linear-gradient(180deg, #f3f8ff 0%, #eaf2ff 100%);
    box-shadow: 0 16px 30px rgba(31, 111, 229, 0.16);
}

.votos-junta-tab.is-saved {
    border-color: #bfe4cb;
}

.votos-junta-tab.is-femenina {
    background: linear-gradient(180deg, #ffe8f4 0%, #ffd7eb 100%);
    border-color: #de7fad;
}

.votos-junta-tab.is-femenina.is-selected {
    background: linear-gradient(180deg, #ffcae2 0%, #ffb8d7 100%);
    border-color: #c9478b;
    box-shadow: 0 16px 30px rgba(201, 71, 139, 0.22);
}

.votos-junta-tab.is-masculina {
    background: linear-gradient(180deg, #e5f1ff 0%, #d4e7ff 100%);
    border-color: #6ea5f4;
}

.votos-junta-tab.is-masculina.is-selected {
    background: linear-gradient(180deg, #c8deff 0%, #b2d2ff 100%);
    border-color: #2e74da;
    box-shadow: 0 16px 30px rgba(46, 116, 218, 0.22);
}

.votos-junta-tab-title {
    font-size: 13px;
    font-weight: 700;
    color: #18345a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.votos-junta-tab.is-femenina .votos-junta-tab-title i {
    color: #b62f76;
}

.votos-junta-tab.is-masculina .votos-junta-tab-title i {
    color: #1f67d4;
}

.votos-junta-tab-meta {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #60789e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.votos-junta-tab-meta.is-ok {
    color: #1f8a4d;
}

.votos-junta-tab-meta.is-alert {
    color: #c56900;
}

.votos-junta-tab-meta.is-pending {
    color: #60789e;
}

.votos-junta-tab-meta.is-verification {
    margin-top: -2px;
}

.votos-empty-state {
    border: 1px dashed #cedcf4;
    border-radius: 14px;
    padding: 18px 14px;
    background: #f8fbff;
    color: #5a7298;
    text-align: center;
    font-size: 13px;
}

.votos-digitacion-card {
    padding-bottom: 14px;
}

.votos-main-layout {
    display: grid;
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.votos-juntas-sidebar {
    border: 1px solid #d8e4f7;
    border-radius: 16px;
    background: linear-gradient(180deg, #fcfeff 0%, #f4f9ff 100%);
    padding: 10px;
    box-shadow: 0 14px 28px rgba(18, 38, 76, 0.05);
    position: static;
    top: auto;
    max-height: none;
    overflow: hidden;
}

.votos-juntas-sidebar .card-toolbar {
    margin-bottom: 10px;
}

.votos-main-content {
    min-width: 0;
}

.votos-dignidad-tabs-head {
    display: block;
    margin-bottom: 6px;
}

.votos-dignidad-tabs-copy {
    display: block;
}

.votos-dignidad-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    margin-bottom: 0;
}

.votos-dignidad-tab {
    width: auto;
    min-width: 150px;
    max-width: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #d5e2f6;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #1f2a44;
    box-shadow: 0 8px 16px rgba(18, 38, 76, 0.04);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    cursor: pointer;
}

.votos-dignidad-tab:hover {
    transform: translateY(-1px);
    border-color: #9fc0f4;
}

.votos-dignidad-tab.is-selected {
    border-color: #4b8df0;
    background: linear-gradient(180deg, #eef5ff 0%, #e2eeff 100%);
    box-shadow: 0 12px 22px rgba(31, 111, 229, 0.10);
}

.votos-dignidad-tab-title {
    font-size: 12px;
    font-weight: 700;
    color: #18345a;
}

.votos-dignidad-tab-meta {
    font-size: 10px;
    color: #60789e;
    font-weight: 600;
}

.votos-dignidad-tab-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: #dce8fb;
    margin-top: 2px;
}

.votos-dignidad-tab-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f6fe5 0%, #79adff 100%);
    box-shadow: 0 0 12px rgba(31, 111, 229, 0.24);
}

.votos-dignidad-tab-percent {
    font-size: 15px;
    font-weight: 700;
    color: #1c5eb8;
}

.votos-form-tabs-panel .votos-dignidad-tabs-copy h3 {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4f6d99;
}

.votos-dignidad-selector-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: start;
}

.votos-dignidad-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #d5e2f6;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #1f2a44;
    box-shadow: 0 8px 16px rgba(18, 38, 76, 0.04);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    text-align: left;
    cursor: pointer;
}

.votos-dignidad-selector:hover {
    transform: translateY(-1px);
    border-color: #9fc0f4;
}

.votos-dignidad-selector.is-selected {
    border-color: #4b8df0;
    background: linear-gradient(180deg, #eef5ff 0%, #e2eeff 100%);
    box-shadow: 0 12px 22px rgba(31, 111, 229, 0.10);
}

.votos-dignidad-selector-title {
    font-size: 12px;
    font-weight: 700;
    color: #18345a;
}

.votos-dignidad-selector-meta {
    font-size: 10px;
    font-weight: 600;
    color: #60789e;
}

.votos-dignidad-selector-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: #dce8fb;
    margin-top: 2px;
}

.votos-dignidad-selector-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f6fe5 0%, #79adff 100%);
    box-shadow: 0 0 12px rgba(31, 111, 229, 0.24);
}

.votos-dignidad-selector-percent {
    font-size: 15px;
    font-weight: 700;
    color: #1c5eb8;
}


.votos-dignidad-junta-box {
    border: 1px solid #d6e3f6;
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(86, 143, 235, 0.12), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    padding: 12px 14px;
    box-shadow: 0 12px 24px rgba(19, 39, 78, 0.06);
}

.votos-dignidad-junta-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #58719a;
}

.votos-dignidad-junta-value {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    color: #16345a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.votos-dignidad-junta-help {
    display: block;
    margin-top: 6px;
    color: #60789e;
    font-size: 12px;
    line-height: 1.35;
}

.votos-form-head {
    display: grid;
    grid-template-columns: minmax(360px, 1.18fr) minmax(300px, 0.92fr) minmax(320px, 0.98fr);
    grid-template-areas:
        "tabs note acta"
        "tabs stats stats";
    gap: 10px;
    margin-bottom: 10px;
    align-items: start;
}

.votos-dignidad-selector-panel {
    min-width: 0;
    display: none;
}

.votos-form-tabs-panel {
    grid-area: tabs;
    border: 1px solid #d8e4f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 8px 10px 6px;
    min-height: 100%;
}

.votos-form-head-top {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 10px;
    align-items: start;
}

.votos-form-note {
    grid-area: note;
}

.votos-acta-upload-box-compact {
    grid-area: acta;
}

.votos-form-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.votos-mini-stat {
    border: 1px solid #d8e4f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 8px 10px;
}

.votos-mini-stat span {
    display: block;
    color: #5d7497;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.votos-mini-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    color: #173357;
}

.votos-mini-stat-help {
    display: block;
    margin-top: 4px;
    color: #60789e;
    font-size: 11px;
    line-height: 1.35;
}

.votos-mini-stat-accent {
    background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);
    border-color: #c8dcfb;
}

.votos-mini-stat-theme.is-femenina,
.votos-junta-inline-box.is-femenina,
.votos-dignidad-inline-box.is-femenina {
    border-color: #f0a9cd;
    background: linear-gradient(180deg, #fff8fc 0%, #ffeef7 100%);
}

.votos-mini-stat-theme.is-femenina strong,
.votos-junta-inline-box.is-femenina .votos-junta-inline-value,
.votos-dignidad-inline-box.is-femenina .votos-junta-inline-value {
    color: #c42e78;
}

.votos-mini-stat-theme.is-masculina,
.votos-junta-inline-box.is-masculina,
.votos-dignidad-inline-box.is-masculina {
    border-color: #99bef6;
    background: linear-gradient(180deg, #f7fbff 0%, #eaf3ff 100%);
}

.votos-mini-stat-theme.is-masculina strong,
.votos-junta-inline-box.is-masculina .votos-junta-inline-value,
.votos-dignidad-inline-box.is-masculina .votos-junta-inline-value {
    color: #1d5fc9;
}

.votos-junta-inline-box {
    border: 1px solid #d8e4f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 8px 10px;
    min-width: 0;
}

.votos-junta-inline-label {
    display: block;
    color: #5d7497;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.votos-junta-inline-value {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    color: #173357;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.votos-junta-inline-help {
    display: block;
    margin-top: 4px;
    color: #60789e;
    font-size: 11px;
    line-height: 1.35;
}

.votos-form-note textarea {
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    resize: none;
}

.votos-form-note {
    border: 1px solid #d8e4f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 8px 10px;
}

.votos-acta-upload-box {
    border: 1px solid #d8e4f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 8px 10px;
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-self: stretch;
}

.votos-acta-upload-box-compact {
    min-height: 0;
    max-height: 136px;
}

.votos-validacion-panel {
    margin: 0 0 10px;
    border: 1px solid #d8e4f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.4fr) auto;
    gap: 10px;
    align-items: center;
}

.votos-validacion-copy {
    min-width: 0;
}

.votos-validacion-title {
    display: block;
    margin-top: 4px;
    color: #173357;
    font-size: 15px;
    line-height: 1.35;
}

.votos-validacion-resumen {
    min-width: 0;
}

.votos-validacion-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.votos-validacion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.votos-validacion-stat {
    border: 1px solid #dbe6f7;
    border-radius: 12px;
    background: #fff;
    padding: 8px 10px;
    min-width: 0;
}

.votos-validacion-stat span {
    display: block;
    color: #5d7497;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.votos-validacion-stat strong {
    display: block;
    margin-top: 4px;
    color: #173357;
    font-size: 16px;
}

.votos-validacion-stat small {
    display: block;
    margin-top: 4px;
    color: #60789e;
    font-size: 11px;
    line-height: 1.35;
}

.votos-validacion-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.votos-validacion-actions button {
    width: 100%;
}

.votos-validacion-modal .app-modal-dialog {
    width: min(1440px, calc(100vw - 40px));
    max-width: none;
}

.votos-validacion-modal-content {
    display: grid;
    gap: 12px;
}

.votos-validacion-modal-wrap {
    display: grid;
    gap: 12px;
}

.votos-validacion-banner {
    position: sticky;
    top: 0;
    z-index: 4;
    margin-bottom: 2px;
}

.votos-validacion-modal-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.votos-validacion-top-field {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #dbe6f7;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.votos-validacion-top-field span {
    color: #60789e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.votos-validacion-top-field.is-editable input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cdddff;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    color: #173357;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.votos-validacion-top-field.is-editable input:focus {
    border-color: #8fb3ff;
    box-shadow: 0 0 0 3px rgba(45, 109, 223, 0.12);
    outline: none;
}

.votos-validacion-top-field.is-static strong {
    min-height: 40px;
    display: flex;
    align-items: center;
    color: #173357;
    font-size: 20px;
    font-weight: 800;
}

.votos-validacion-primary {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.15fr);
    gap: 12px;
    align-items: start;
}

.votos-validacion-digitado {
    border: 1px solid #dbe6f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 10px;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.votos-validacion-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.votos-validacion-section-head strong {
    display: block;
    color: #173357;
    font-size: 15px;
}

.votos-validacion-section-head button {
    width: auto;
    min-width: 200px;
}

.votos-validacion-section-head small {
    display: block;
    margin-top: 4px;
    color: #60789e;
    font-size: 11px;
    line-height: 1.4;
}

.votos-validacion-section-head.is-subhead {
    margin-top: 2px;
}

.votos-validacion-warning-list {
    display: grid;
    gap: 6px;
}

.votos-validacion-candidatos-grid {
    display: grid;
    gap: 8px;
}

.votos-validacion-candidato-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 110px;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid #dde8f9;
    border-radius: 14px;
    background: #ffffff;
}

.votos-validacion-candidato-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.votos-validacion-candidato-media .votos-candidato-thumb {
    width: 42px;
    height: 42px;
}

.votos-validacion-candidato-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.votos-validacion-candidato-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.votos-validacion-candidato-line strong {
    min-width: 0;
    color: #173357;
    font-size: 12.5px;
    line-height: 1.25;
    text-transform: uppercase;
}

.votos-validacion-candidato-info .votos-candidato-meta,
.votos-validacion-candidato-info .votos-party-strip {
    margin-top: 0;
}

.votos-validacion-candidato-input input {
    height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    border-radius: 12px;
    background: #f8fbff;
}

.votos-validacion-inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dbe6f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #f2f7ff 100%);
}

.votos-validacion-inline-note {
    min-width: 0;
}

.votos-validacion-inline-note strong {
    display: block;
    color: #173357;
    font-size: 14px;
}

.votos-validacion-inline-note small {
    display: block;
    margin-top: 4px;
    color: #60789e;
    font-size: 11px;
    line-height: 1.4;
}

.js-votos-validacion-confirmar-inline {
    width: auto;
    min-width: 220px;
    justify-self: end;
}

.js-votos-validacion-confirmar-inline.is-disabled {
    opacity: 0.72;
}

.votos-validacion-docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.votos-validacion-doc {
    border: 1px solid #dbe6f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 10px;
    min-width: 0;
    display: grid;
    gap: 10px;
}

.votos-validacion-doc-switcher {
    align-content: start;
}

.votos-validacion-doc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.votos-validacion-doc-head > div {
    min-width: 0;
}

.votos-validacion-doc-head strong {
    display: block;
    color: #173357;
    font-size: 15px;
}

.votos-validacion-doc-head small {
    display: block;
    margin-top: 4px;
    color: #60789e;
    font-size: 11px;
    line-height: 1.4;
}

.votos-validacion-doc-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.js-votos-validacion-doc-tab {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #cdddff;
    border-radius: 12px;
    background: #f8fbff;
    color: #173357;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.js-votos-validacion-doc-tab span {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.js-votos-validacion-doc-tab small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.js-votos-validacion-doc-tab small.is-loaded {
    color: #1d8f53;
}

.js-votos-validacion-doc-tab small.is-empty {
    color: #b95043;
}

.js-votos-validacion-doc-tab.is-active {
    border-color: #2d6ddf;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    box-shadow: 0 0 0 3px rgba(45, 109, 223, 0.12);
}

.votos-validacion-doc.is-cne-primary iframe,
.votos-validacion-doc.is-cne-primary img {
    min-height: 620px;
    height: 620px;
}

.votos-validacion-doc iframe,
.votos-validacion-doc img {
    width: 100%;
    min-height: 520px;
    height: 520px;
    border: 1px solid #dbe6f7;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.votos-acta-upload-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.votos-acta-upload-label {
    display: block;
    margin-bottom: 4px;
}

.votos-acta-upload-help {
    display: block;
    color: #60779a;
    font-size: 11px;
    line-height: 1.35;
    min-height: 18px;
}

.votos-actas-listado {
    display: grid;
    gap: 8px;
    max-height: 76px;
    overflow-y: auto;
    align-content: start;
}

.votos-acta-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid #dbe6f7;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px 10px;
}

.votos-acta-item.is-principal {
    border-color: #9cc0f7;
    background: linear-gradient(180deg, #f4f9ff 0%, #eaf3ff 100%);
}

.votos-acta-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #18345b;
    font-size: 12px;
    font-weight: 700;
}

.votos-acta-item-title span:not(.votos-acta-type-badge):not(.votos-acta-main-badge) {
    min-width: 0;
    flex: 1 1 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.votos-acta-item-meta {
    margin-top: 4px;
    color: #667f9f;
    font-size: 10px;
    line-height: 1.35;
}

.votos-acta-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.votos-acta-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #d3e0f4;
    background: #f6faff;
    color: #295ea9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.votos-acta-main-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #cfe5d8;
    background: #edf9f1;
    color: #1f7c47;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.votos-acta-modal .app-modal-dialog {
    position: fixed;
    top: 24px;
    left: 24px;
    width: min(1100px, calc(100vw - 48px));
    height: min(820px, calc(100vh - 48px));
    max-height: none;
    margin: 0;
    resize: both;
    overflow: hidden;
}

.votos-acta-modal {
    pointer-events: none;
}

.votos-acta-modal .app-modal-backdrop {
    display: none;
}

.votos-acta-modal .app-modal-dialog {
    pointer-events: auto;
}

.votos-incidencias-trigger {
    width: auto;
    min-width: 0;
    padding-inline: 12px;
}

.status-badge.is-neutral {
    background: #eef4ff;
    color: #355b95;
    border-color: #cddcf3;
}

.votos-incidencias-modal-body {
    display: grid;
    gap: 10px;
}

.votos-incidencia-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #dbe6f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    padding: 12px;
}

.votos-incidencia-main {
    min-width: 0;
}

.votos-incidencia-title {
    font-size: 14px;
    font-weight: 700;
    color: #17365e;
}

.votos-incidencia-meta {
    margin-top: 4px;
    color: #61789d;
    font-size: 12px;
}

.votos-incidencia-alerts {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.votos-incidencia-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.actas-summary-card {
    border: 1px solid #d8e4f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    padding: 12px;
}

.actas-summary-card-alert {
    border-color: #f3c4c4;
    background: linear-gradient(180deg, #fff7f7 0%, #ffeded 100%);
}

.actas-summary-card-alert strong {
    color: #b52b2b;
}

.actas-summary-card small {
    display: block;
    margin-top: 7px;
    color: #5b749a;
    font-size: 12px;
    font-weight: 700;
}

.actas-summary-label {
    display: block;
    color: #5d7497;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.actas-summary-card strong {
    display: block;
    margin-top: 8px;
    color: #16355d;
    font-size: 20px;
}

.actas-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.actas-panel {
    border: 1px solid #d8e4f7;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 14px;
}

.computo-filter-accordion {
    margin: 14px 0 18px;
    border: 1px solid #d7e6ff;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(47, 125, 246, 0.1), transparent 32%),
        linear-gradient(180deg, #f9fcff 0%, #eef6ff 100%);
    box-shadow: 0 12px 30px rgba(35, 75, 140, 0.08);
    overflow: visible;
}

.computo-filter-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #18345f;
    text-align: left;
}

.computo-filter-toggle:hover {
    background: rgba(255, 255, 255, 0.56);
}

.computo-filter-toggle-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bcd6ff;
    border-radius: 13px;
    background: #ffffff;
    color: #1f6fe5;
    box-shadow: 0 8px 18px rgba(31, 111, 229, 0.1);
}

.computo-filter-toggle-copy {
    min-width: 0;
}

.computo-filter-toggle-copy strong {
    display: block;
    font-size: 15px;
    color: #173257;
}

.computo-filter-toggle-copy small {
    display: block;
    margin-top: 3px;
    color: #54709b;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.computo-filter-toggle-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 102px;
    padding: 7px 10px;
    border: 1px solid #d0ddf2;
    border-radius: 999px;
    background: #ffffff;
    color: #506a94;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.computo-filter-toggle-meta.is-active {
    border-color: #8fbcff;
    background: #eaf3ff;
    color: #1558c5;
}

.computo-filter-toggle-arrow {
    color: #45659a;
    transition: transform 0.2s ease;
}

.computo-filter-accordion.is-open .computo-filter-toggle-arrow {
    transform: rotate(180deg);
}

.computo-filter-body {
    display: none;
    padding: 0 14px 14px;
}

.computo-filter-accordion.is-open .computo-filter-body {
    display: block;
}

.computo-filter-panel {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid #dce9fb;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.computo-filter-panel .form-group {
    min-width: 0;
    margin: 0;
    grid-column: span 3;
}

.computo-filter-panel .computo-filter-field-wide {
    grid-column: span 6;
}

.computo-filter-panel label {
    margin-bottom: 5px;
    color: #45659a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.computo-filter-panel select {
    min-height: 42px;
    border-color: #bfd6fb;
    border-radius: 12px;
    background: #ffffff;
    color: #173257;
    font-weight: 700;
}

.computo-filter-panel .select2-container--default .select2-selection--multiple {
    min-height: 40px !important;
    border-color: #bfd6fb !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    padding: 4px 30px 4px 7px !important;
}

.computo-filter-panel .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    gap: 4px !important;
}

.computo-filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice {
    max-width: 100%;
    margin: 0 !important;
    padding: 3px 7px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
}

.computo-filter-panel .select2-container--default .select2-search--inline .select2-search__field {
    min-width: 90px;
    margin-top: 1px;
    color: #173257;
    font-size: 12px;
    font-weight: 700;
}

.computo-filter-actions {
    display: flex;
    align-items: end;
    grid-column: span 3;
}

.computo-filter-actions button {
    min-height: 40px;
    border-radius: 12px;
}

@media (max-width: 1100px) {
    .computo-filter-panel .form-group,
    .computo-filter-actions {
        grid-column: span 6;
    }

    .computo-filter-panel .computo-filter-field-wide {
        grid-column: span 12;
    }
}

@media (max-width: 720px) {
    .computo-filter-toggle {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .computo-filter-toggle-meta {
        grid-column: 2 / -1;
        justify-self: start;
        min-width: 0;
    }

    .computo-filter-panel .form-group,
    .computo-filter-actions,
    .computo-filter-panel .computo-filter-field-wide {
        grid-column: 1 / -1;
    }

    .computo-filter-toggle-copy small {
        white-space: normal;
    }
}

.computo-junta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #cfe0fb;
    border-radius: 999px;
    background: #eef5ff;
    color: #0f4fbf;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.computo-junta-pill.is-femenina {
    border-color: #f5a3c7;
    background: #fff0f7;
    color: #b61d6a;
}

.computo-junta-pill.is-masculina {
    border-color: #8dbfff;
    background: #eef6ff;
    color: #1357c8;
}

.computo-grid {
    display: grid;
    gap: 12px;
}

.computo-table-main,
.computo-table-location {
    min-width: 0;
}

.computo-row-title {
    font-size: 14px;
    font-weight: 700;
    color: #17365e;
}

.computo-row-headline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.computo-row-junta {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    color: #17365e;
    letter-spacing: 0.01em;
}

.computo-row-junta.is-femenina {
    color: #c42e78;
}

.computo-row-junta.is-masculina {
    color: #1d5fc9;
}

.computo-table-location,
.computo-row-meta {
    color: #61789d;
    font-size: 12px;
    line-height: 1.45;
}

.computo-row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.computo-row-side {
    text-align: right;
}

.computo-row-state {
    font-size: 14px;
    font-weight: 700;
    color: #20487f;
}

.computo-row-help {
    margin-top: 4px;
    color: #667f9f;
    font-size: 12px;
}

#computo-grid.dataTable thead th {
    white-space: nowrap;
    color: #20375f;
    font-size: 12px;
    letter-spacing: 0.03em;
}

#computo-grid td,
#computo-grid th {
    vertical-align: middle;
}

#computo-grid td {
    color: #243755;
    font-size: 12px;
}

#computo-grid_wrapper .dt-export-toolbar {
    margin-top: 2px;
}

#computo-grid_wrapper .dataTables_filter label,
#computo-grid_wrapper .dataTables_length label {
    font-size: 13px;
    color: #3a5075;
}

#computo-grid_wrapper .dataTables_info,
#computo-grid_wrapper .dataTables_paginate {
    font-size: 12px;
    color: #4a6188 !important;
}

#computo-grid_wrapper .dataTables_filter input,
#computo-grid_wrapper .dataTables_length select {
    width: auto;
    min-width: 88px;
}

#computo-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
#computo-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    padding-left: 28px;
}

#computo-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
#computo-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    top: 18px;
    left: 8px;
    line-height: 14px;
    border: 1px solid #9ebcf0;
    background-color: #eef5ff;
    color: #2d5ea8;
}

#computo-grid_wrapper ul.dtr-details {
    width: 100%;
}

#computo-grid_wrapper ul.dtr-details li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

#computo-grid_wrapper ul.dtr-details .dtr-title {
    min-width: 120px;
    white-space: normal;
}

#computo-grid_wrapper ul.dtr-details .dtr-data {
    flex: 1;
    white-space: normal;
    color: #203456;
}

#actas-monitor-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
#actas-monitor-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    padding-left: 28px;
}

#actas-monitor-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
#actas-monitor-grid_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    top: 18px;
    left: 8px;
    line-height: 14px;
    border: 1px solid #9ebcf0;
    background-color: #eef5ff;
    color: #2d5ea8;
}

#actas-monitor-grid_wrapper ul.dtr-details {
    width: 100%;
}

#actas-monitor-grid_wrapper ul.dtr-details li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

#actas-monitor-grid_wrapper ul.dtr-details .dtr-title {
    min-width: 120px;
    white-space: normal;
}

#actas-monitor-grid_wrapper ul.dtr-details .dtr-data {
    flex: 1;
    white-space: normal;
    color: #203456;
}

.datatable-mobile-summary {
    display: none;
}

.datatable-mobile-summary-main {
    font-size: 13px;
    font-weight: 800;
    color: #173257;
    line-height: 1.3;
}

.datatable-mobile-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
    font-size: 11px;
    color: #56709b;
    line-height: 1.35;
}

.datatable-desktop-only {
    display: inline;
}

.graficos-head-card {
    background:
        radial-gradient(circle at top left, rgba(50, 122, 229, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.graficos-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.graficos-head h2 {
    margin: 6px 0 8px;
    color: #173257;
}

.graficos-cutoff {
    min-width: 240px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #d7e4f8;
    background: rgba(255, 255, 255, 0.88);
}

.graficos-cutoff-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.graficos-live-btn {
    min-width: 210px;
    min-height: 42px;
    border-color: #bcd6ff;
    background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
    color: #1f5fbf;
}

.graficos-live-btn.is-active {
    border-color: #8ac8a3;
    background: linear-gradient(180deg, #effcf4 0%, #dff7e8 100%);
    color: #16794c;
}

.graficos-live-btn.is-syncing {
    box-shadow: 0 0 0 3px rgba(31, 111, 229, 0.12);
}

.graficos-live-status {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e3ecfb;
    color: #5f789d;
    font-size: 12px;
    font-weight: 600;
}

.graficos-live-status.is-active {
    color: #16794c;
}

.graficos-live-status.is-warning {
    color: #b45309;
}

.graficos-live-status.is-error {
    color: #b42318;
}

.graficos-cutoff span,
.graficos-summary-label,
.graficos-panel-label,
.graficos-side-card span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b749a;
}

.graficos-cutoff strong {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: #173257;
}

.graficos-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.graficos-filter-accordion {
    margin: 16px 0 8px;
    border: 1px solid #cfe0fa;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 255, 0.94));
    box-shadow: 0 14px 30px rgba(18, 38, 76, 0.08);
    overflow: hidden;
    position: sticky;
    top: 12px;
    z-index: 45;
    backdrop-filter: blur(12px);
}

.graficos-filter-toggle {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: #14315a;
    text-align: left;
    cursor: pointer;
}

.graficos-filter-toggle:hover {
    background: rgba(31, 111, 229, 0.06);
}

.graficos-filter-toggle-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e7f0ff;
    color: #1f62c8;
    border: 1px solid #c9dcff;
}

.graficos-filter-toggle-copy strong,
.graficos-filter-toggle-copy small {
    display: block;
}

.graficos-filter-toggle-copy strong {
    font-size: 16px;
    font-weight: 800;
}

.graficos-filter-toggle-copy small {
    margin-top: 3px;
    color: #5b749a;
    font-size: 12px;
    line-height: 1.25;
}

.graficos-filter-toggle-meta {
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #cfdef8;
    color: #46658f;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.graficos-filter-toggle-meta.is-active {
    background: #e8f7ef;
    border-color: #aadfbd;
    color: #167341;
}

.graficos-filter-toggle-arrow {
    transition: transform 0.18s ease;
}

.graficos-filter-accordion.is-open .graficos-filter-toggle-arrow {
    transform: rotate(180deg);
}

.graficos-filter-body {
    display: none;
    padding: 0 14px 14px;
}

.graficos-filter-accordion.is-open .graficos-filter-body {
    display: block;
}

.graficos-filter-bar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(207, 224, 250, 0.88);
}

.graficos-filter-field {
    grid-column: span 3;
    min-width: 0;
}

.graficos-filter-field-wide {
    grid-column: span 6;
}

.graficos-filter-field label {
    display: block;
    margin-bottom: 6px;
    color: #5d7497;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.graficos-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #cfe0fa;
    background: #ffffff;
    color: #173257;
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(19, 39, 78, 0.03);
}

.graficos-filter-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    grid-column: span 3;
}

.graficos-filter-actions button {
    width: 100%;
    min-height: 46px;
}

#graficos_btn_pdf {
    border-color: #f2c3c3;
    color: #b42318;
    background: linear-gradient(180deg, #fff9f9 0%, #fff1f1 100%);
}

#graficos_btn_pdf:hover,
#graficos_btn_pdf:focus-visible {
    border-color: #df8d8d;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.graficos-filter-bar .select2-container {
    width: 100% !important;
}

.graficos-filter-bar .select2-container--default .select2-selection--multiple {
    min-height: 46px;
    border: 1px solid #cfe0fa;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(19, 39, 78, 0.03);
    padding: 4px 8px;
}

.graficos-filter-bar .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2f7df0;
    box-shadow: 0 0 0 3px rgba(47, 125, 240, 0.12);
}

.graficos-filter-bar .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 5px;
    border: 1px solid #bcd6ff;
    border-radius: 999px;
    background: #eaf3ff;
    color: #17427d;
    font-size: 12px;
    font-weight: 700;
    max-width: 100%;
}

.graficos-filter-bar .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    max-width: 145px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.graficos-filter-bar .select2-container--default .select2-search--inline .select2-search__field {
    min-height: 28px;
    margin-top: 5px;
    font-size: 14px;
    color: #173257;
}

.graficos-summary-card {
    border: 1px solid #d7e4f8;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    padding: 14px 15px;
    box-shadow: 0 10px 22px rgba(18, 38, 76, 0.05);
}

.graficos-summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
    line-height: 1;
    color: #173257;
}

.graficos-summary-card small {
    display: block;
    margin-top: 8px;
    color: #5377a8;
    font-size: 12px;
    font-weight: 700;
}

.graficos-summary-card-accent {
    background: linear-gradient(180deg, #eef5ff 0%, #deebff 100%);
    border-color: #bfd5fb;
}

.graficos-summary-card-alert {
    background: linear-gradient(180deg, #fff6f6 0%, #ffeded 100%);
    border-color: #f4c8c8;
}

.graficos-summary-card-alert strong {
    color: #c0392b;
}

.graficos-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 14px;
    margin-top: 14px;
    align-items: start;
}

.graficos-operativo-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.graficos-donut-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

.graficos-donut-hero {
    display: flex;
    justify-content: center;
    align-items: center;
}

.graficos-territorial-card {
    align-self: start;
}

.graficos-donut {
    --graficos-progress: 0%;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: conic-gradient(#1f6fe5 var(--graficos-progress), #dfe9fb 0);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(31, 111, 229, 0.08);
}

.graficos-donut::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 33, 68, 0.08);
}

.graficos-donut-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.graficos-donut-inner strong {
    font-size: 32px;
    line-height: 1;
    color: #173257;
}

.graficos-donut-inner span {
    margin-top: 6px;
    color: #5b749a;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.graficos-donut-legend {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.graficos-donut-legend div {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d8e4f8;
    background: #f9fbff;
    text-align: center;
}

.graficos-donut-legend strong {
    display: block;
    font-size: 18px;
    color: #173257;
}

.graficos-donut-legend span {
    display: block;
    margin-top: 4px;
    color: #60789e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.graficos-inconsistencia-chart {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #d7e4f8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.graficos-inconsistencia-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.graficos-inconsistencia-head strong {
    color: #173257;
    font-size: 13px;
}

.graficos-inconsistencia-head span {
    color: #627a9f;
    font-size: 11px;
}

.graficos-inconsistencia-bar {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #dde8fb;
    margin-top: 12px;
}

.graficos-inconsistencia-bar span {
    display: block;
    height: 100%;
}

.graficos-inconsistencia-bar .is-ok {
    background: linear-gradient(90deg, #1f6fe5 0%, #5b9bf2 100%);
}

.graficos-inconsistencia-bar .is-alert {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.graficos-inconsistencia-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.graficos-inconsistencia-legend div {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fbff;
    border: 1px solid #d8e4f8;
    text-align: center;
}

.graficos-inconsistencia-legend strong {
    display: block;
    color: #173257;
    font-size: 17px;
}

.graficos-inconsistencia-legend span {
    display: block;
    margin-top: 4px;
    color: #60789e;
    font-size: 11px;
    font-weight: 700;
}

.graficos-acta-error-chart {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #d7e4f8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.graficos-acta-error-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.graficos-acta-error-head strong {
    color: #173257;
    font-size: 13px;
}

.graficos-acta-error-head span {
    color: #627a9f;
    font-size: 11px;
}

.graficos-acta-error-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.graficos-acta-error-row {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fbff;
    border: 1px solid #d8e4f8;
}

.graficos-acta-error-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.graficos-acta-error-top span {
    color: #173257;
    font-size: 12px;
    font-weight: 700;
}

.graficos-acta-error-top strong {
    color: #173257;
    font-size: 12px;
}

.graficos-acta-error-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #dde8fb;
    margin-top: 10px;
}

.graficos-acta-error-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.graficos-state-list,
.graficos-territorial-list,
.graficos-candidatos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.graficos-state-row,
.graficos-territorial-row,
.graficos-candidato-row,
.graficos-side-card {
    border: 1px solid #d7e4f8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 12px 14px;
}

.graficos-state-top,
.graficos-territorial-top,
.graficos-candidato-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.graficos-state-top span,
.graficos-territorial-top span {
    color: #627a9f;
    font-size: 12px;
}

.graficos-state-top strong,
.graficos-territorial-meta strong {
    color: #173257;
    font-size: 14px;
}

.graficos-state-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #dde8fb;
    margin-top: 10px;
}

.graficos-state-track-compact {
    margin-top: 8px;
    height: 6px;
}

.graficos-state-fill,
.graficos-candidato-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f6fe5 0%, #7db0ff 100%);
}

.graficos-territorial-meta {
    text-align: right;
}

.graficos-territorial-meta span,
.graficos-territorial-foot {
    color: #627a9f;
    font-size: 12px;
}

.graficos-resultados-card {
    margin-top: 14px;
}

.graficos-insights-card {
    margin-top: 14px;
}

.graficos-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.graficos-insight-card {
    border: 1px solid #d7e4f8;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 14px;
}

.graficos-insight-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.graficos-insight-head strong {
    color: #173257;
    font-size: 15px;
}

.graficos-insight-head span {
    color: #627a9f;
    font-size: 12px;
    text-align: right;
}

.graficos-state-track-thick {
    height: 10px;
}

.graficos-sexo-chart {
    display: grid;
    gap: 12px;
}

.graficos-sexo-row {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #d7e4f8;
    background: #fff;
}

.graficos-sexo-row.is-f {
    background: linear-gradient(180deg, rgba(255, 240, 246, 0.82) 0%, rgba(255, 249, 252, 1) 100%);
    border-color: #f5bfd8;
}

.graficos-sexo-row.is-m {
    background: linear-gradient(180deg, rgba(237, 245, 255, 0.92) 0%, rgba(249, 252, 255, 1) 100%);
    border-color: #c3dafc;
}

.graficos-sexo-row-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.graficos-sexo-row-top strong {
    display: block;
    color: #173257;
    font-size: 14px;
}

.graficos-sexo-row-top span {
    display: block;
    margin-top: 4px;
    color: #627a9f;
    font-size: 12px;
}

.graficos-sexo-row-total {
    color: #173257;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.graficos-sexo-fill.is-f {
    background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
}

.graficos-sexo-fill.is-m {
    background: linear-gradient(90deg, #1f6fe5 0%, #7db0ff 100%);
}

.graficos-sexo-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
    color: #5d7497;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.graficos-composicion-chart {
    display: grid;
    gap: 14px;
}

.graficos-composicion-bar {
    height: 20px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf9;
    box-shadow: inset 0 1px 2px rgba(18, 38, 76, 0.08);
}

.graficos-composicion-bar span {
    display: block;
    height: 100%;
}

.graficos-composicion-grid {
    display: grid;
    gap: 10px;
}

.graficos-composicion-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.graficos-composicion-dot {
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50%;
}

.graficos-composicion-item strong {
    display: block;
    color: #173257;
    font-size: 13px;
}

.graficos-composicion-item small {
    display: block;
    margin-top: 3px;
    color: #627a9f;
    font-size: 12px;
}

.graficos-podio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 250px;
}

.graficos-podio-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.graficos-podio-col.rank-1 {
    order: 2;
}

.graficos-podio-col.rank-2 {
    order: 1;
}

.graficos-podio-col.rank-3 {
    order: 3;
}

.graficos-podio-avatar .graficos-candidato-photo,
.graficos-podio-avatar .graficos-candidato-photo.is-empty {
    width: 56px;
    height: 56px;
    margin: 0 auto;
}

.graficos-podio-pillar {
    width: 100%;
    min-height: 90px;
    padding: 12px 10px;
    border-radius: 18px 18px 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, #deebff 0%, #b9d4fb 100%);
    border: 1px solid #c7daf8;
    box-shadow: 0 14px 24px rgba(31, 111, 229, 0.10);
}

.graficos-podio-col.rank-1 .graficos-podio-pillar {
    background: linear-gradient(180deg, #b8d4fb 0%, #7fb0f0 100%);
    border-color: #8cb8f0;
}

.graficos-podio-pillar strong {
    display: block;
    color: #173257;
    font-size: 22px;
    line-height: 1;
}

.graficos-podio-pillar span {
    display: block;
    margin-top: 6px;
    color: #456892;
    font-size: 12px;
    font-weight: 700;
}

.graficos-podio-name {
    color: #173257;
    font-size: 13px;
    font-weight: 800;
}

.graficos-podio-lista {
    color: #627a9f;
    font-size: 12px;
}

.graficos-summary-modal {
    text-align: left;
}

.graficos-summary-modal pre {
    margin: 0;
    white-space: pre-wrap;
    font: 600 13px/1.6 "Segoe UI", sans-serif;
    color: #173257;
}

.graficos-geo-card {
    margin-top: 14px;
}

.graficos-geo-toolbar {
    align-items: stretch;
    gap: 18px;
}

.graficos-geo-toolbar-main {
    flex: 1 1 420px;
    min-width: 280px;
}

.graficos-geo-toolbar-main h3 {
    margin: 0 0 8px;
}

.graficos-geo-toolbar-main p {
    margin: 0;
    max-width: 760px;
}

.graficos-geo-controls-panel {
    flex: 0 1 520px;
    min-width: 320px;
    display: grid;
    gap: 12px;
    justify-items: stretch;
    padding: 14px 16px;
    border: 1px solid #d7e4f8;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(59, 123, 221, 0.08), transparent 35%),
        linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.graficos-geo-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.graficos-geo-control-group {
    display: grid;
    gap: 6px;
}

.graficos-geo-control-label {
    color: #5f7699;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.graficos-map-expand-btn {
    min-height: 38px;
    border-radius: 999px;
    padding: 0 16px;
    font-weight: 700;
    white-space: nowrap;
    justify-self: end;
    min-width: 190px;
}

.graficos-map-expand-btn.is-active {
    background: linear-gradient(180deg, #1f6fe5 0%, #195cc0 100%);
    color: #ffffff;
    border-color: #1f6fe5;
}

.graficos-geo-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid #d4e2f7;
    background: #f8fbff;
}

.graficos-geo-toggle {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #5f7699;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.graficos-geo-toggle.is-active {
    border-color: #b9d2fb;
    background: linear-gradient(180deg, #eef5ff 0%, #deebff 100%);
    color: #17427d;
    box-shadow: 0 10px 18px rgba(31, 111, 229, 0.10);
}

.graficos-geo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    gap: 16px;
    margin-top: 14px;
}

.graficos-geo-map-shell {
    border: 1px solid #d7e4f8;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.graficos-geo-map-status {
    padding: 12px 14px;
    border-bottom: 1px solid #dde8fb;
    color: #5f7699;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(245, 249, 255, 0.95);
}

.graficos-geo-map {
    width: 100%;
    height: 520px;
    background: #edf4ff;
}

.graficos-geo-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.graficos-geo-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.graficos-geo-side-card,
.graficos-geo-highlight,
.graficos-geo-legend {
    border: 1px solid #d7e4f8;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 14px;
}

.graficos-geo-side-card span {
    display: block;
    color: #5d7497;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.graficos-geo-side-card strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.1;
    color: #173257;
}

.graficos-geo-highlight h4 {
    margin: 8px 0 6px;
    color: #173257;
    font-size: 22px;
}

.graficos-geo-legend {
    min-height: 180px;
}

.graficos-geo-candidates-card {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #d7e4f8;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(59, 123, 221, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.graficos-geo-candidates-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.graficos-geo-candidates-head h4 {
    margin: 6px 0 0;
    color: #173257;
    font-size: 20px;
}

.graficos-geo-candidates-head p {
    max-width: 420px;
    margin: 0;
    text-align: right;
}

.graficos-geo-candidate-chart {
    min-height: 280px;
}

.graficos-geo-candidate-shell {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    min-height: 280px;
}

.graficos-geo-candidate-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 34px 0 72px;
    color: #173257;
    font-size: 12px;
    font-weight: 700;
}

.graficos-geo-candidate-bars {
    position: relative;
    min-height: 280px;
}

.graficos-geo-candidate-gridlines {
    position: absolute;
    inset: 18px 0 90px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.graficos-geo-candidate-gridlines span {
    display: block;
    border-top: 1px dashed #d3e0f7;
}

.graficos-geo-candidate-bars-scroll {
    position: relative;
    z-index: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    gap: 18px;
    align-items: end;
    min-height: 280px;
    padding: 10px 4px 0;
    overflow-x: auto;
}

.graficos-geo-candidate-col {
    display: grid;
    grid-template-rows: 56px minmax(150px, 1fr) auto auto auto auto auto;
    gap: 7px;
    align-items: end;
    min-height: 270px;
}

.graficos-geo-candidate-bar-wrap {
    width: 100%;
    height: 190px;
    min-height: 190px;
    display: flex;
    align-items: flex-end;
}

.graficos-geo-candidate-bar {
    width: 100%;
    min-height: 16px;
    border-radius: 18px 18px 10px 10px;
    background: linear-gradient(180deg, #9cc8ea 0%, #84b7e2 100%);
    box-shadow: 0 12px 24px rgba(44, 105, 171, 0.14);
}

.graficos-geo-candidate-bar.is-strong {
    background: linear-gradient(180deg, #3b79b8 0%, #2b6db0 100%);
}

.graficos-geo-candidate-bar.is-soft {
    background: linear-gradient(180deg, #9cc8ea 0%, #84b7e2 100%);
}

.graficos-geo-candidate-total {
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    color: #173257;
}

.graficos-geo-candidate-percent {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #1f5eb8;
    margin-top: -2px;
}

.graficos-geo-candidate-caption,
.graficos-geo-candidate-lista,
.graficos-geo-candidate-meta {
    text-align: center;
}

.graficos-geo-candidate-caption {
    color: #5f7699;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.graficos-geo-candidate-lista {
    color: #1f5eb8;
    font-size: 11px;
    font-weight: 800;
}

.graficos-geo-candidate-name {
    text-align: center;
    color: #173257;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

.graficos-geo-candidate-meta {
    color: #627a9f;
    font-size: 10px;
    line-height: 1.35;
}

.graficos-manabi-board {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 16px;
}

.graficos-manabi-highcharts-card,
.graficos-manabi-map-panel,
.graficos-manabi-side-card {
    border: 1px solid #d7e4f8;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(59, 123, 221, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    padding: 14px;
}

.graficos-manabi-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.graficos-map-head-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
}

.graficos-manabi-head h4 {
    margin: 6px 0 0;
    color: #173257;
    font-size: 20px;
}

.graficos-manabi-head p {
    max-width: 360px;
    margin: 0;
    text-align: right;
}

.graficos-manabi-map-stage {
    min-height: 520px;
    height: 520px;
}

.graficos-territorial-shell {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.graficos-territorial-axis {
    display: grid;
    align-content: stretch;
    gap: 0;
    padding: 18px 0 70px;
}

.graficos-territorial-axis span {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    color: #1f4e8f;
    font-size: 12px;
    font-weight: 700;
}

.graficos-territorial-stage {
    position: relative;
    min-height: 0;
    border: 1px solid #dce7f8;
    border-radius: 20px;
    background: linear-gradient(180deg, #fdfefe 0%, #f4f8ff 100%);
    overflow: hidden;
    padding: 18px 18px 14px;
}

.graficos-territorial-gridlines {
    position: absolute;
    inset: 18px 18px 88px;
    display: grid;
    align-content: stretch;
    pointer-events: none;
}

.graficos-territorial-gridlines span {
    border-top: 1px dashed rgba(70, 125, 198, 0.22);
}

.graficos-territorial-gridlines span:last-child {
    border-top-style: solid;
    border-top-color: rgba(70, 125, 198, 0.28);
}

.graficos-territorial-scroll {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, 1fr);
    align-items: end;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 4px;
}

.graficos-territorial-col {
    min-width: 0;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 8px;
}

.graficos-territorial-avatar-wrap {
    min-height: 58px;
    display: grid;
    align-items: end;
}

.graficos-territorial-avatar-wrap .graficos-visual-avatar {
    width: 56px;
    height: 56px;
    box-shadow: 0 8px 20px rgba(21, 46, 90, 0.14);
}

.graficos-territorial-bar-wrap {
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.graficos-territorial-bar {
    width: min(100%, 132px);
    min-height: 72px;
    border-radius: 22px 22px 14px 14px;
    background: linear-gradient(180deg, #5a9bf2 0%, #2d6eb6 100%);
    box-shadow: 0 18px 28px rgba(33, 78, 138, 0.18);
}

.graficos-territorial-bar.is-soft {
    background: linear-gradient(180deg, #b8d9fb 0%, #7eb3e4 100%);
}

.graficos-territorial-votes {
    color: #173e78;
    font-size: 14px;
    font-weight: 800;
}

.graficos-territorial-name {
    color: #173257;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    word-break: break-word;
}

.graficos-territorial-leader {
    color: #1f4e8f;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}

.graficos-territorial-bar-meta {
    color: #627a9f;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
}

.graficos-manabi-highcharts-card {
    margin-top: 16px;
}

.graficos-manabi-highcharts-stage {
    min-height: 520px;
    height: 520px;
}

.graficos-geochart-shell {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 18px;
    height: 100%;
}

.graficos-geochart-summary {
    display: grid;
    gap: 14px;
}

.graficos-geochart-focus-card,
.graficos-geochart-ranking-card {
    background: linear-gradient(180deg, #f9fbff 0%, #eff5ff 100%);
    border: 1px solid #d6e4fb;
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 0 14px 28px rgba(25, 56, 102, 0.08);
}

.graficos-geochart-focus-card h5 {
    margin: 6px 0 8px;
    color: #173257;
    font-size: 28px;
    line-height: 1.05;
}

.graficos-geochart-focus-card > strong {
    display: block;
    color: #1f5eb8;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.graficos-geochart-focus-card > p {
    margin: 8px 0 0;
    color: #627a9f;
    font-size: 13px;
    line-height: 1.45;
}

.graficos-geochart-focus-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.graficos-geochart-focus-metrics div {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dce8fb;
    padding: 10px 12px;
}

.graficos-geochart-focus-metrics span {
    display: block;
    color: #627a9f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.graficos-geochart-focus-metrics strong {
    display: block;
    margin-top: 4px;
    color: #173257;
    font-size: 18px;
    font-weight: 900;
}

.graficos-geochart-ranking-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.graficos-geochart-rank-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dce8fb;
    padding: 10px 12px;
}

.graficos-geochart-rank-index {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dce9fd;
    color: #1f5eb8;
    font-size: 14px;
    font-weight: 900;
}

.graficos-geochart-rank-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.graficos-geochart-rank-copy strong {
    color: #173257;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.graficos-geochart-rank-copy span {
    color: #627a9f;
    font-size: 11px;
    line-height: 1.35;
}

.graficos-geochart-rank-metrics {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.graficos-geochart-rank-metrics strong {
    color: #173257;
    font-size: 14px;
    font-weight: 900;
}

.graficos-geochart-rank-metrics span {
    color: #1f5eb8;
    font-size: 11px;
    font-weight: 800;
}

.graficos-geochart-map-wrap {
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    border: 1px solid #d6e4fb;
    padding: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.graficos-geochart-map {
    width: 100%;
    height: 100%;
    min-height: 490px;
    border-radius: 18px;
    overflow: hidden;
}

.graficos-map-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 18, 36, 0.62);
    z-index: 1280;
    display: none;
}

.graficos-map-backdrop.is-open {
    display: block;
}

.graficos-geo-map-shell.is-map-fullscreen,
.graficos-manabi-map-panel.is-map-fullscreen,
.graficos-manabi-highcharts-card.is-map-fullscreen {
    position: fixed;
    inset: 14px;
    z-index: 1290;
    margin: 0;
    border-radius: 20px;
    box-shadow: 0 28px 60px rgba(8, 17, 35, 0.36);
    overflow: hidden;
}

.graficos-geo-map-shell.is-map-fullscreen {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.graficos-geo-map-shell.is-map-fullscreen .graficos-geo-map {
    height: calc(100vh - 150px);
    min-height: calc(100vh - 150px);
}

.graficos-manabi-map-panel.is-map-fullscreen,
.graficos-manabi-highcharts-card.is-map-fullscreen {
    display: flex;
    flex-direction: column;
}

.graficos-manabi-map-panel.is-map-fullscreen .graficos-manabi-map-stage,
.graficos-manabi-highcharts-card.is-map-fullscreen .graficos-manabi-highcharts-stage {
    height: calc(100vh - 170px);
    min-height: calc(100vh - 170px);
}

.graficos-manabi-map-panel.is-map-fullscreen .graficos-manabi-map-shell,
.graficos-manabi-map-panel.is-map-fullscreen .graficos-manabi-focus-map {
    min-height: calc(100vh - 190px);
    height: calc(100vh - 190px);
}

.graficos-manabi-map-shell {
    position: relative;
    width: 100%;
    min-height: 500px;
    border: 1px solid #dce7f8;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
}

.graficos-manabi-map-image {
    display: block;
    width: 100%;
    height: auto;
}

.graficos-manabi-map-overlay {
    position: absolute;
    inset: 0;
}

.graficos-manabi-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    width: 122px;
    display: grid;
    justify-items: center;
    gap: 4px;
}

.graficos-manabi-marker .graficos-visual-avatar {
    width: 44px;
    height: 44px;
}

.graficos-manabi-marker-bar {
    width: 26px;
    min-height: 36px;
    border-radius: 14px 14px 8px 8px;
    background: linear-gradient(180deg, #a9cdf2 0%, var(--marker-color) 100%);
    box-shadow: 0 14px 24px rgba(18, 38, 76, 0.16);
}

.graficos-manabi-marker-bar.is-soft {
    opacity: 0.82;
}

.graficos-manabi-marker-label {
    max-width: 118px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #173257;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 8px 18px rgba(18, 38, 76, 0.12);
    white-space: normal;
    word-break: break-word;
    text-wrap: balance;
}

.graficos-manabi-marker-votes {
    color: #1f5eb8;
    font-size: 10px;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88);
}

.graficos-manabi-map-note {
    margin-top: 10px;
    color: #627a9f;
    font-size: 11px;
    line-height: 1.4;
}

.graficos-manabi-focus-map {
    width: 100%;
    height: 470px;
    border: 1px solid #dce7f8;
    border-radius: 18px;
    overflow: hidden;
    background: #edf4ff;
}

.graficos-manabi-ranking {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.graficos-manabi-ranking-row {
    display: grid;
    grid-template-columns: 34px 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dde7f8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.graficos-manabi-ranking-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef5ff 0%, #dfeeff 100%);
    color: #1c5eb8;
    font-size: 14px;
    font-weight: 800;
}

.graficos-manabi-ranking-copy {
    min-width: 0;
}

.graficos-manabi-ranking-copy strong,
.graficos-manabi-ranking-copy span,
.graficos-manabi-ranking-copy small {
    display: block;
}

.graficos-manabi-ranking-copy strong {
    color: #173257;
    font-size: 13px;
}

.graficos-manabi-ranking-copy span {
    margin-top: 3px;
    color: #446894;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.graficos-manabi-ranking-copy small {
    margin-top: 4px;
    color: #627a9f;
    font-size: 10px;
    line-height: 1.35;
}

.graficos-hc-tooltip {
    display: grid;
    gap: 4px;
    min-width: 220px;
}

.graficos-hc-tooltip strong {
    color: #173257;
    font-size: 14px;
}

.graficos-hc-tooltip span {
    color: #1f5eb8;
    font-size: 12px;
    font-weight: 700;
}

.graficos-hc-tooltip small {
    color: #627a9f;
    font-size: 11px;
    line-height: 1.4;
}

.graficos-hc-province-label {
    display: grid;
    gap: 3px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 18px rgba(17, 37, 71, 0.12);
    text-align: center;
    min-width: 88px;
}

.graficos-hc-province-label strong {
    color: #173257;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
}

.graficos-hc-province-label span {
    color: #1f5eb8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.graficos-focus-marker-wrap {
    background: transparent;
    border: none;
}

.graficos-focus-marker {
    width: 122px;
    display: grid;
    justify-items: center;
    gap: 4px;
}

.graficos-focus-marker .graficos-visual-avatar {
    width: 42px;
    height: 42px;
}

.graficos-focus-marker-bar {
    width: 24px;
    min-height: 36px;
    border-radius: 14px 14px 8px 8px;
    background: linear-gradient(180deg, #a9cdf2 0%, var(--focus-marker-color) 100%);
    box-shadow: 0 14px 24px rgba(18, 38, 76, 0.18);
}

.graficos-focus-marker-bar.is-soft {
    opacity: 0.84;
}

.graficos-focus-marker-label {
    max-width: 118px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: #173257;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 8px 18px rgba(18, 38, 76, 0.14);
    white-space: normal;
    word-break: break-word;
    text-wrap: balance;
}

.graficos-focus-marker-votes {
    color: #1f5eb8;
    font-size: 10px;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88);
}

.graficos-geo-legend-title {
    margin-bottom: 12px;
    color: #173257;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.graficos-geo-legend-row {
    display: grid;
    grid-template-columns: 14px 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.graficos-geo-legend-row + .graficos-geo-legend-row {
    margin-top: 10px;
}

.graficos-geo-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.graficos-geo-legend-avatar {
    width: 34px;
    height: 34px;
}

.graficos-geo-legend-avatar .graficos-candidato-photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.graficos-geo-legend-row strong {
    display: block;
    color: #173257;
    font-size: 13px;
}

.graficos-geo-legend-row span {
    color: #627a9f;
    font-size: 12px;
}

.graficos-geo-heat-scale {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.graficos-geo-heat-scale span {
    color: #627a9f;
    font-size: 12px;
    font-weight: 700;
}

.graficos-geo-heat-bar {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8 0%, #22c55e 25%, #f59e0b 65%, #ea580c 82%, #b91c1c 100%);
}

.graficos-geo-popup-title {
    color: #173257;
    font-size: 14px;
    font-weight: 800;
}

.graficos-geo-popup-subtitle {
    margin-top: 4px;
    color: #627a9f;
    font-size: 12px;
}

.graficos-geo-popup-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 10px;
    margin-top: 10px;
    font-size: 12px;
}

.graficos-geo-popup-grid span {
    color: #627a9f;
}

.graficos-geo-popup-grid strong {
    color: #173257;
    text-align: right;
}

.graficos-geo-popup-winner {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e1ebfb;
}

.graficos-geo-popup-winner span {
    display: block;
    color: #5d7497;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.graficos-geo-popup-winner strong {
    display: block;
    margin-top: 4px;
    color: #173257;
    font-size: 14px;
}

.graficos-geo-popup-winner small {
    display: block;
    margin-top: 4px;
    color: #627a9f;
    font-size: 12px;
}

.graficos-geo-popup-candidate {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

.graficos-geo-popup-avatar .graficos-candidato-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}

.graficos-geo-popup-candidate-copy {
    min-width: 0;
}

.graficos-geo-popup-candidate-copy strong {
    margin-top: 0;
}

.graficos-geo-popup-candidate-copy em {
    display: block;
    margin-top: 5px;
    color: #1f6fe5;
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
}

.graficos-geo-marker-wrap {
    background: transparent;
    border: none;
}

.graficos-geo-marker-stack {
    width: max(var(--geo-marker-size), 118px);
    display: grid;
    justify-items: center;
    align-items: end;
    gap: 4px;
}

.graficos-geo-marker {
    position: relative;
    width: var(--geo-marker-size);
    height: var(--geo-marker-size);
    border-radius: 50%;
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.22);
    z-index: 2;
}

.graficos-geo-marker::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--geo-marker-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.96);
}

.graficos-geo-marker-media {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.graficos-geo-marker-media.is-party-logo {
    background-size: contain;
    background-color: #ffffff;
}

.graficos-geo-marker-fallback {
    position: absolute;
    inset: 4px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #173257;
    font-weight: 800;
    font-size: 11px;
    z-index: 1;
}

.graficos-geo-marker-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    z-index: 2;
    min-width: 28px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(31, 111, 229, 0.2);
    color: #173257;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.graficos-geo-marker-bar {
    width: clamp(12px, calc(var(--geo-marker-size) * 0.34), 18px);
    height: var(--geo-marker-bar-height);
    border-radius: 12px 12px 8px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, var(--geo-marker-color) 22%, color-mix(in srgb, var(--geo-marker-color) 72%, #ffffff 28%) 100%);
    box-shadow: 0 14px 24px rgba(17, 24, 39, 0.18);
    opacity: 0.96;
}

.graficos-geo-marker-label {
    max-width: 96px;
    padding: 3px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    color: #173257;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
    white-space: normal;
    word-break: break-word;
    text-wrap: balance;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.16);
}

.graficos-visual-card {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #d8e4f8;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(59, 123, 221, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

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

.graficos-visual-filter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d0def7;
    background: #ffffff;
    color: #173257;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(18, 38, 76, 0.05);
    cursor: default;
}

.graficos-visual-copy {
    margin-left: auto;
    text-align: right;
}

.graficos-visual-copy strong {
    display: block;
    color: #173257;
    font-size: 15px;
}

.graficos-visual-copy span {
    display: block;
    margin-top: 4px;
    color: #60789e;
    font-size: 12px;
}

.graficos-visual-shell {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    min-height: 360px;
}

.graficos-visual-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 44px 0 56px;
    color: #173257;
    font-size: 12px;
}

.graficos-visual-bars {
    position: relative;
    min-height: 360px;
}

.graficos-visual-gridlines {
    position: absolute;
    inset: 20px 0 70px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.graficos-visual-gridlines span {
    display: block;
    border-top: 1px dashed #cfdcf5;
}

.graficos-visual-bars-scroll {
    position: relative;
    z-index: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(130px, 1fr);
    gap: 18px;
    align-items: end;
    min-height: 360px;
    padding: 14px 4px 0;
    overflow-x: auto;
}

.graficos-visual-bar-col {
    display: grid;
    grid-template-rows: 48px minmax(220px, 1fr) auto auto auto;
    gap: 8px;
    align-items: end;
    min-height: 346px;
}

.graficos-visual-avatar {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #173257;
    background: #e9f1ff;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 18px rgba(18, 38, 76, 0.10);
    overflow: hidden;
    position: relative;
}

.graficos-visual-avatar.is-strong {
    background: linear-gradient(180deg, #0f4f99 0%, #2e73bf 100%);
    color: #ffffff;
}

.graficos-visual-avatar.is-soft {
    background: linear-gradient(180deg, #d9ecff 0%, #b7d8fb 100%);
    color: #173257;
}

.graficos-visual-avatar > img,
.graficos-visual-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    background: #ffffff;
}

.graficos-visual-avatar > img {
    object-position: center center;
}

.graficos-visual-avatar > img.is-party-logo {
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
}

.graficos-visual-avatar > img.is-candidate-photo {
    object-fit: cover;
}

.graficos-visual-avatar-fallback {
    display: grid;
    place-items: center;
}

.graficos-visual-avatar-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    padding: 2px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(31, 111, 229, 0.16);
    box-shadow: 0 8px 16px rgba(18, 38, 76, 0.18);
}

.graficos-visual-avatar-badge img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    display: block;
}

.graficos-visual-bar-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}

.graficos-visual-bar {
    width: 100%;
    height: 0;
    min-height: 16px;
    border-radius: 18px 18px 10px 10px;
    background: linear-gradient(180deg, #8dbce6 0%, #78abda 100%);
    box-shadow: 0 12px 24px rgba(44, 105, 171, 0.14);
}

.graficos-visual-bar.is-strong {
    background: linear-gradient(180deg, #3b79b8 0%, #2b6db0 100%);
}

.graficos-visual-bar.is-soft {
    background: linear-gradient(180deg, #9cc8ea 0%, #84b7e2 100%);
}

.graficos-visual-votes {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #173257;
}

.graficos-visual-percent {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #1f5eb8;
    margin-top: -2px;
}

.graficos-visual-lista {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #1f5eb8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.graficos-visual-name {
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
    color: #577095;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
}

.graficos-dignidad-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.graficos-dignidad-tab {
    width: auto;
    min-width: 180px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #d5e2f6;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 16px rgba(18, 38, 76, 0.04);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    cursor: pointer;
    text-align: left;
}

.graficos-dignidad-tab:hover,
.graficos-dignidad-tab.is-active {
    transform: translateY(-1px);
    border-color: #4b8df0;
    background: linear-gradient(180deg, #eef5ff 0%, #e2eeff 100%);
    box-shadow: 0 12px 22px rgba(31, 111, 229, 0.10);
}

.graficos-dignidad-tab-title {
    font-size: 13px;
    font-weight: 700;
    color: #18345a;
}

.graficos-dignidad-tab-meta {
    font-size: 10px;
    color: #60789e;
    font-weight: 600;
}

.graficos-dignidad-tab-percent {
    font-size: 18px;
    font-weight: 700;
    color: #1c5eb8;
}

.graficos-dignidad-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr);
    gap: 14px;
    margin-top: 14px;
}

.graficos-dignidad-panel,
.graficos-dignidad-side {
    min-width: 0;
}

.graficos-dignidad-header h3 {
    margin: 6px 0 4px;
    color: #173257;
    font-size: 28px;
}

.graficos-candidato-row {
    display: grid;
    grid-template-columns: 52px 42px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.graficos-candidato-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #1c5eb8;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef5ff 0%, #dfeeff 100%);
}

.graficos-candidato-name {
    font-size: 18px;
    font-weight: 700;
    color: #173257;
}

.graficos-candidato-party {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    color: #5d769d;
    font-size: 13px;
}

.graficos-lista-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf4ff;
    border: 1px solid #c9ddfb;
    color: #1f5eb8;
    font-weight: 700;
    font-size: 11px;
}

.graficos-candidato-totals {
    text-align: right;
}

.graficos-candidato-totals strong {
    display: block;
    font-size: 24px;
    color: #173257;
}

.graficos-candidato-totals span {
    display: block;
    color: #5d769d;
    font-size: 12px;
    font-weight: 700;
}

.graficos-candidato-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #dde8fb;
    margin-top: 12px;
}

.graficos-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.graficos-side-card strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    color: #173257;
}

.graficos-side-card-alert {
    background: linear-gradient(180deg, #fff6f6 0%, #ffeded 100%);
    border-color: #f4c8c8;
}

.graficos-side-card-alert strong {
    color: #c0392b;
}

.graficos-empty {
    padding: 18px;
    border: 1px dashed #d1def6;
    border-radius: 14px;
    background: #f9fbff;
    color: #61799d;
    text-align: center;
}

.votos-acta-modal-header {
    cursor: move;
    user-select: none;
}

.votos-acta-modal-body {
    height: 100%;
    overflow: hidden;
}

.votos-acta-modal-content {
    width: 100%;
    height: calc(100% - 4px);
    border-radius: 10px;
    overflow: hidden;
    background: #eff4fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.votos-acta-modal-content iframe,
.votos-acta-modal-content img {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.votos-acta-modal-content img {
    object-fit: contain;
}

.digitacion-viewer-panel {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

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

.digitacion-viewer-card,
.digitacion-viewer-mini,
.digitacion-viewer-observacion,
.digitacion-viewer-table-wrap {
    background: #ffffff;
    border: 1px solid #d8e5f6;
    border-radius: 16px;
    box-shadow: 0 16px 35px rgba(35, 65, 120, 0.08);
}

.digitacion-viewer-card {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.digitacion-viewer-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5d77a2;
}

.digitacion-viewer-card strong {
    font-size: 24px;
    line-height: 1.05;
    color: #17365f;
}

.digitacion-viewer-card small {
    color: #60789e;
    font-size: 13px;
}

.digitacion-viewer-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.digitacion-viewer-mini {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.digitacion-viewer-mini span {
    font-size: 12px;
    font-weight: 700;
    color: #60789e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.digitacion-viewer-mini strong {
    font-size: 22px;
    color: #15355d;
}

.digitacion-viewer-table-wrap {
    padding: 12px;
}

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

.digitacion-viewer-table th,
.digitacion-viewer-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e7eef8;
    text-align: left;
}

.digitacion-viewer-table th {
    font-size: 12px;
    color: #4f6992;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f5f9ff;
}

.digitacion-viewer-table td {
    font-size: 14px;
    color: #1e3d67;
}

.digitacion-viewer-table td.is-number {
    text-align: right;
    font-weight: 800;
}

.digitacion-viewer-observacion {
    padding: 14px 16px;
}

.digitacion-viewer-observacion p {
    margin: 8px 0 0;
    color: #345171;
    line-height: 1.55;
}

.votos-dignidades-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.votos-dignidad-card {
    border: 1px solid #d6e3f6;
    border-radius: 16px;
    padding: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 30px rgba(18, 38, 76, 0.06);
}

.votos-dignidad-card.is-active-dignidad.is-femenina {
    border-color: #f0a9cd;
    background: linear-gradient(180deg, #fff8fc 0%, #fff1f8 100%);
    box-shadow: 0 18px 32px rgba(196, 46, 120, 0.12);
}

.votos-dignidad-card.is-active-dignidad.is-masculina {
    border-color: #99bef6;
    background: linear-gradient(180deg, #f9fbff 0%, #edf4ff 100%);
    box-shadow: 0 18px 32px rgba(29, 95, 201, 0.12);
}

.votos-dignidad-card.has-inconsistencies {
    border-color: #e7b4b4;
    box-shadow: 0 16px 32px rgba(176, 58, 58, 0.12);
}

.votos-dignidad-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.votos-dignidad-title {
    margin: 0;
    font-size: 15px;
    color: #173257;
}

.votos-dignidad-subtitle {
    margin: 4px 0 0;
    color: #60789d;
    font-size: 11px;
}

.votos-dignidad-context {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #d9e5f7;
    background: rgba(255, 255, 255, 0.88);
    color: #3f5f8c;
    font-size: 11px;
    font-weight: 700;
}

.votos-dignidad-context.is-femenina {
    border-color: #f0a9cd;
    color: #c42e78;
    background: rgba(255, 244, 250, 0.92);
}

.votos-dignidad-context.is-masculina {
    border-color: #99bef6;
    color: #1d5fc9;
    background: rgba(241, 247, 255, 0.94);
}

.votos-dignidad-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 10px;
    align-items: start;
}

.votos-candidato-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 7px;
}

.votos-candidato-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 92px;
    gap: 9px;
    align-items: center;
    min-height: 72px;
    padding: 7px;
    border: 1px solid #e0e8f6;
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.votos-candidato-info {
    min-width: 0;
}

.votos-candidato-line {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 7px;
    min-width: 0;
}

.votos-candidato-line strong {
    min-width: 0;
    font-size: 12.5px;
    color: #18345b;
    line-height: 1.22;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.votos-lista-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ebf4ff;
    color: #215ea8;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid #cde0fb;
}

.votos-candidato-meta {
    margin-top: 5px;
    color: #61789d;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.votos-party-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    max-height: 48px;
    overflow: hidden;
}

.votos-party-chip {
    min-width: 0;
    max-width: 92px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px 2px 2px;
    border-radius: 999px;
    border: 1px solid #d2e3fb;
    background: #f4f8ff;
    color: #245d9f;
    font-size: 10px;
    font-weight: 700;
}

.votos-party-chip img,
.votos-party-chip > span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex: 0 0 auto;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #dbe8fa;
}

.votos-party-chip > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.votos-party-chip small {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9.5px;
    line-height: 1;
}

.votos-party-more {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e8f0fb;
    color: #42638f;
    font-size: 10px;
    font-weight: 800;
}

.votos-candidato-input-wrap input {
    min-width: 0;
    height: 40px;
    font-size: 18px;
    text-align: center;
    font-weight: 700;
    border-radius: 12px;
    border-color: #bcd4f6;
    background: #f8fbff;
}

.votos-acta-box {
    border: 1px solid #d9e5f8;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    padding: 12px;
}

.votos-acta-title {
    margin: 0 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #466287;
}

.votos-acta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 8px 10px;
    align-items: center;
}

.votos-acta-grid label {
    margin: 0;
    font-size: 12px;
}

.votos-acta-grid input {
    height: 36px;
    padding: 6px 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.votos-acta-readonly {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdddff;
    border-radius: 10px;
    background: #ffffff;
    color: #193b69;
    font-size: 15px;
    font-weight: 700;
}

.votos-acta-errors {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.votos-acta-error-item {
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff1f1;
    border: 1px solid #efc2c2;
    color: #a33434;
    font-size: 11px;
    line-height: 1.35;
}

.votos-candidato-input-wrap input:focus {
    background: #ffffff;
}

.votos-candidato-input-wrap input.is-locked,
.votos-acta-grid input.is-locked {
    background: #edf3fc;
    color: #6482ab;
    cursor: not-allowed;
}

.votos-action-bar {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    position: static;
    bottom: auto;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, #ffffff 35%);
}

.votos-action-buttons {
    justify-content: flex-end;
}

.votos-action-buttons button {
    width: auto;
    min-width: 220px;
}

@media (max-width: 980px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: calc(-1 * var(--sidebar-width-mobile) - 16px);
        width: var(--sidebar-width-mobile);
        flex-basis: var(--sidebar-width-mobile);
        height: 100dvh;
        min-height: 100dvh;
        z-index: 150;
        transition: left 0.25s ease;
        opacity: 1;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(13, 20, 40, 0.24);
    }

    body.sidebar-open .sidebar {
        left: 0;
    }

    body.sidebar-collapsed .sidebar {
        width: var(--sidebar-width-mobile);
        flex-basis: var(--sidebar-width-mobile);
        padding: 20px 12px 16px;
        opacity: 1;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(13, 20, 40, 0.24);
    }

    body.sidebar-collapsed .sidebar > * {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-toggle {
        z-index: 220;
    }

    .user-menu-toggle {
        min-width: 0;
        max-width: min(250px, 56vw);
    }

    .topbar {
        z-index: 210;
        gap: 8px;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 22, 44, 0.38);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 140;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .row-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-asignaciones .row-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-asignaciones .row-3 > div {
        grid-column: auto;
    }

    .page-asignaciones .row-3 > .assignment-field-user,
    .page-asignaciones .row-3 > .assignment-field-total {
        grid-column: auto;
    }

    .page-asignaciones .row-3 > .assignment-field-recinto,
    .page-asignaciones .row-3 > .row-span-full {
        grid-column: 1 / -1;
    }

    .page-asignaciones .assignment-juntas-grid {
        grid-template-columns: 1fr;
    }

    .page-asignaciones .assignment-juntas-list {
        max-height: 260px;
    }

    .actas-selector-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr);
    }

    .actas-progress-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actas-selector-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .module-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-perm-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .votos-hero-grid,
    .votos-hero-header,
    .votos-workspace,
    .votos-form-head,
    .votos-form-head-top,
    .votos-dignidad-tabs-head,
    .graficos-main-grid,
    .graficos-insights-grid,
    .graficos-dignidad-body,
    .graficos-operativo-grid {
        grid-template-columns: 1fr;
    }

    .votos-form-head {
        grid-template-areas:
            "tabs"
            "note"
            "acta"
            "stats";
    }

    .votos-validacion-panel,
    .votos-validacion-grid,
    .votos-validacion-primary,
    .votos-validacion-docs,
    .votos-validacion-modal-stats {
        grid-template-columns: 1fr;
    }

    .votos-validacion-candidato-card {
        grid-template-columns: 42px minmax(0, 1fr) 92px;
    }

    .votos-validacion-inline-actions {
        grid-template-columns: 1fr;
    }

    .js-votos-validacion-confirmar-inline {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .votos-validacion-actions {
        min-width: 0;
    }

    .votos-validacion-modal .app-modal-dialog {
        width: min(100vw - 18px, 1440px);
    }

    .votos-validacion-doc iframe,
    .votos-validacion-doc img {
        min-height: 360px;
        height: 360px;
    }

    .votos-validacion-doc.is-cne-primary iframe,
    .votos-validacion-doc.is-cne-primary img {
        min-height: 400px;
        height: 400px;
    }

    .votos-hero-side {
        border-left: 0;
        border-top: 1px solid #d7e4fa;
    }

    .votos-dignidades-grid {
        grid-template-columns: 1fr;
    }

    .graficos-summary-grid,
    .graficos-side-grid,
    .graficos-geo-side-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .graficos-geo-layout {
        grid-template-columns: 1fr;
    }

    .graficos-manabi-board {
        grid-template-columns: 1fr;
    }

    .graficos-manabi-highcharts-stage {
        min-height: 440px;
        height: 440px;
    }

    .graficos-geochart-shell {
        grid-template-columns: 1fr;
    }

    .graficos-geochart-map {
        min-height: 420px;
    }

    .graficos-geo-controls {
        justify-content: flex-start;
    }

    .graficos-geo-controls-panel {
        min-width: 0;
    }

    .graficos-map-expand-btn {
        justify-self: start;
    }

    .graficos-geo-candidates-head {
        flex-direction: column;
    }

    .graficos-geo-candidates-head p {
        max-width: none;
        text-align: left;
    }

    .graficos-manabi-head {
        flex-direction: column;
    }

    .graficos-manabi-head p {
        max-width: none;
        text-align: left;
    }

    .graficos-geo-map {
        height: 460px;
    }

    .graficos-podio-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .graficos-filter-field,
    .graficos-filter-actions {
        grid-column: span 6;
    }

    .graficos-filter-actions {
        grid-template-columns: 1fr;
    }

    .graficos-filter-field-wide {
        grid-column: 1 / -1;
    }

    .graficos-geo-candidate-shell {
        grid-template-columns: 1fr;
    }

    .graficos-geo-candidate-axis {
        display: none;
    }

    .graficos-manabi-map-stage {
        min-height: 440px;
    }

    .graficos-territorial-shell {
        grid-template-columns: 1fr;
    }

    .graficos-territorial-axis {
        display: none;
    }

    .graficos-territorial-stage {
        padding-left: 14px;
        padding-right: 14px;
    }

    .graficos-territorial-gridlines {
        inset: 18px 14px 100px;
    }

    .graficos-territorial-scroll {
        grid-auto-columns: minmax(148px, 1fr);
        gap: 12px;
    }

    .graficos-territorial-bar-wrap {
        min-height: 220px;
    }

    .graficos-territorial-name {
        font-size: 13px;
    }

    .graficos-manabi-map-shell {
        min-height: 420px;
    }

    .graficos-head {
        flex-direction: column;
    }

    .graficos-cutoff {
        width: 100%;
        text-align: left;
    }

    .graficos-cutoff-top {
        flex-direction: column;
        align-items: stretch;
    }

    .graficos-live-btn {
        width: 100%;
        min-width: 0;
    }

    .graficos-visual-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .graficos-visual-copy {
        margin-left: 0;
        text-align: left;
    }

    .graficos-visual-shell {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .votos-dignidad-body {
        grid-template-columns: 1fr;
    }

    .votos-main-layout {
        grid-template-columns: 1fr;
    }

    .votos-juntas-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .votos-juntas-columns {
        grid-template-columns: 1fr;
    }

    .votos-juntas-column-body {
        max-height: 300px;
    }

    .actas-board-grid,
    .computo-row-side {
        text-align: left;
    }
}

@media (max-width: 800px) {
    .row,
    .row-3 {
        grid-template-columns: 1fr;
    }

    .page-asignaciones .row-3 {
        grid-template-columns: 1fr;
    }

    .page-asignaciones .row-3 > .assignment-field-recinto {
        grid-column: auto;
    }

    .page-asignaciones .row-3 > .assignment-field-user,
    .page-asignaciones .row-3 > .assignment-field-total,
    .page-asignaciones .row-3 > div,
    .page-asignaciones .row-3 > .row-span-full {
        grid-column: auto;
    }

    .page-asignaciones .assignment-juntas-panel {
        padding: 10px;
    }

    .page-asignaciones .assignment-juntas-column-head {
        padding: 10px 10px 6px;
    }

    .page-asignaciones .assignment-juntas-column-actions {
        padding: 0 10px 8px;
    }

    .page-asignaciones .assignment-juntas-list {
        max-height: 220px;
        padding: 0 10px 10px;
    }

    .page-asignaciones #btn-save-assignment {
        width: 100%;
    }

    .datatable-mobile-summary {
        display: block;
    }

    .datatable-desktop-only {
        display: none;
    }

    #computo-grid_wrapper ul.dtr-details li,
    #actas-monitor-grid_wrapper ul.dtr-details li {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 6px;
    }

    #computo-grid_wrapper ul.dtr-details .dtr-title,
    #actas-monitor-grid_wrapper ul.dtr-details .dtr-title {
        min-width: 0;
        font-size: 11px;
    }

    #computo-grid_wrapper ul.dtr-details .dtr-data,
    #actas-monitor-grid_wrapper ul.dtr-details .dtr-data {
        font-size: 12px;
    }

    .module-group-grid {
        grid-template-columns: 1fr;
    }

    .assignment-juntas-grid {
        grid-template-columns: 1fr;
    }

    .profile-perm-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-perm-actions {
        grid-template-columns: 1fr;
    }

    .votos-hero-header,
    .votos-recinto-board,
    .votos-form-meta,
    .votos-stat-grid,
    .actas-progress-grid,
    .graficos-summary-grid,
    .graficos-geo-side-grid {
        grid-template-columns: 1fr;
    }

    .graficos-geo-controls-panel {
        padding: 12px;
    }

    .graficos-geo-control-group {
        width: 100%;
    }

    .graficos-geo-switch {
        width: 100%;
        justify-content: space-between;
    }

    .graficos-geo-toggle {
        flex: 1 1 0;
        padding-inline: 12px;
    }

    .graficos-filter-toggle {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .graficos-filter-toggle-meta {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .graficos-filter-field,
    .graficos-filter-field-wide,
    .graficos-filter-actions {
        grid-column: 1 / -1;
    }

    .graficos-geochart-focus-metrics {
        grid-template-columns: 1fr;
    }

    .graficos-filter-actions {
        grid-template-columns: 1fr;
    }

    .graficos-donut-legend,
    .graficos-geo-side-grid {
        grid-template-columns: 1fr;
    }

    .votos-board-item-wide {
        grid-column: auto;
    }

    .votos-action-bar {
        grid-template-columns: 1fr;
    }

    .votos-action-buttons {
        justify-content: stretch;
    }

    .graficos-geo-map {
        height: 380px;
    }

    .votos-dignidad-tab {
        min-width: calc(50% - 6px);
    }

    .graficos-dignidad-tab {
        min-width: calc(50% - 6px);
    }

    .graficos-visual-bars-scroll {
        grid-auto-columns: minmax(120px, 1fr);
    }

    .graficos-geo-side-grid {
        grid-template-columns: 1fr 1fr;
    }

    .graficos-geo-map {
        height: 380px;
    }

    .graficos-geo-candidate-bars-scroll,
    .graficos-visual-bars-scroll {
        grid-auto-columns: minmax(120px, 1fr);
    }

    .graficos-manabi-marker {
        width: 78px;
    }

    .graficos-manabi-marker .graficos-visual-avatar {
        width: 38px;
        height: 38px;
    }

    .votos-acta-grid {
        grid-template-columns: minmax(0, 1fr) 82px;
    }

    .votos-validacion-candidato-card {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .votos-validacion-candidato-input {
        grid-column: 1 / -1;
    }

    .topbar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .topbar-left {
        width: 100%;
        min-width: 0;
    }

    .topbar-title {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .js-topbar-user-menu {
        width: 100%;
    }

    .user-menu {
        width: 100%;
    }

    .user-menu-toggle {
        width: 100%;
        max-width: 100%;
    }

    .user-menu-dropdown {
        width: 100%;
    }

    .form-section {
        padding: 10px;
    }

    .card-toolbar {
        align-items: stretch;
    }

    .card-toolbar-group,
    .card-toolbar-group-end {
        width: 100%;
        margin-left: 0;
    }

    .card-toolbar-group select,
    .card-toolbar-group button {
        width: 100%;
    }

    #users-grid {
        min-width: 0 !important;
    }

    #users-grid_wrapper .dataTables_length,
    #users-grid_wrapper .dataTables_filter,
    #modules-grid_wrapper .dataTables_length,
    #modules-grid_wrapper .dataTables_filter,
    #profiles-grid_wrapper .dataTables_length,
    #profiles-grid_wrapper .dataTables_filter,
    #patients-grid_wrapper .dataTables_length,
    #patients-grid_wrapper .dataTables_filter,
    #recintos-grid_wrapper .dataTables_length,
    #recintos-grid_wrapper .dataTables_filter,
#authorities-parties-grid_wrapper .dataTables_length,
#authorities-parties-grid_wrapper .dataTables_filter,
    #authorities-dignities-grid_wrapper .dataTables_length,
    #authorities-dignities-grid_wrapper .dataTables_filter,
    #authorities-candidates-grid_wrapper .dataTables_length,
    #authorities-candidates-grid_wrapper .dataTables_filter {
        float: none;
        text-align: left;
        margin-bottom: 8px;
    }

    #users-grid_wrapper .dataTables_filter input,
    #modules-grid_wrapper .dataTables_filter input,
    #profiles-grid_wrapper .dataTables_filter input,
    #patients-grid_wrapper .dataTables_filter input,
    #recintos-grid_wrapper .dataTables_filter input,
#authorities-parties-grid_wrapper .dataTables_filter input,
    #authorities-dignities-grid_wrapper .dataTables_filter input,
    #authorities-candidates-grid_wrapper .dataTables_filter input {
        width: 100%;
        max-width: 260px;
    }
}

@media (max-width: 640px) {
    .container {
        margin: 12px auto;
        padding: 0 10px;
    }

    .card {
        padding: 12px;
    }

    .actions {
        flex-direction: column;
        gap: 8px;
    }

    .actions button {
        width: 100%;
    }

    .page-asignaciones .form-section {
        padding: 10px;
    }

    .page-asignaciones .assignment-juntas-column-title {
        font-size: 12px;
    }

    .page-asignaciones .assignment-junta-chip-box {
        padding: 10px 12px;
    }

    .page-asignaciones .assignment-junta-chip-title {
        font-size: 12px;
    }

    .votos-hero-main,
    .votos-hero-side {
        padding: 14px;
    }

    .votos-hero-title {
        font-size: 24px;
    }

    .graficos-side-grid {
        grid-template-columns: 1fr;
    }

    .graficos-dignidad-tab {
        width: 100%;
        min-width: 0;
    }

    .graficos-candidato-row {
        grid-template-columns: 1fr;
    }

    .graficos-candidato-rank {
        min-height: 50px;
    }

    .graficos-visual-shell {
        grid-template-columns: 1fr;
    }

    .graficos-visual-axis {
        display: none;
    }

    .votos-quick-nav button,
    .votos-action-buttons button {
        min-width: 0;
        width: 100%;
    }

    .votos-candidato-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .votos-candidato-input-wrap {
        grid-column: 1 / -1;
    }

    .votos-dignidad-tab {
        width: 100%;
        min-width: 0;
    }

    .votos-acta-grid {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .votos-candidato-input-wrap input {
        height: 48px;
        font-size: 20px;
    }

    .table-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .table-wrap {
        overflow-x: hidden;
    }

    .icon-action-btn {
        width: 38px;
        min-width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .icon-action-btn[data-tooltip]::after {
        display: none;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        max-width: 100%;
    }

    .form-section,
    .card,
    form {
        overflow: hidden;
    }

    .login-card {
        width: min(100%, 420px);
        padding: 18px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 12px;
    }

    .app-modal-dialog {
        width: calc(100vw - 10px);
        max-height: calc(100vh - 10px);
        margin: 5px auto;
        border-radius: 10px;
    }

    .app-modal-header {
        padding: 8px 10px;
    }

    .app-modal-body {
        padding: 10px;
    }
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d8e1ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
}

.stat-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #163f6d;
    color: #fff;
    font-size: 18px;
}

.stat-content {
    min-width: 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #17304d;
    line-height: 1.1;
}

.stat-label {
    margin-top: 4px;
    color: #50637a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-updated {
    grid-column: 1 / -1;
    margin: 0;
}

