:root {
    --bg: #090a0d;
    --bg-soft: #11141a;
    --panel: #161b23;
    --panel-soft: #1d2531;
    --line: #2b3544;
    --accent: #e2182f;
    --accent-soft: #ff5a6f;
    --text: #f2f6ff;
    --muted: #9aa6bc;
    --ok: #38c172;
    --sidebar-w: 290px;
    --sidebar-header-h: 110px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Barlow, "Trebuchet MS", Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1000px 500px at 100% -10%, rgba(226, 24, 47, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% -15%, rgba(50, 118, 255, 0.16), transparent 60%),
        linear-gradient(180deg, #0b0f14, #07090d 70%);
    min-height: 100vh;
}

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

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

body.layout-sidebar .site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sidebar-w);
    height: var(--sidebar-header-h);
    padding: 12px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(8px);
}

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

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

.menu-toggle {
    border: 1px solid var(--accent);
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.26);
    position: absolute;
    right: 12px;
    top: 12px;
    display: none;
}

.menu-toggle:hover {
    filter: brightness(1.04);
}

.menu-toggle:active,
.menu-toggle.is-pressed {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

body.layout-sidebar .site-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    left: 0;
    top: var(--sidebar-header-h);
    bottom: 0;
    width: var(--sidebar-w);
    overflow-y: auto;
    padding: 14px 12px 18px;
    border-right: 1px solid var(--line);
    background: rgba(16, 21, 28, 0.97);
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #3a475d;
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    line-height: 1;
    background: linear-gradient(180deg, #1a2230, #131a25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.08s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.site-nav a:hover {
    border-color: #61718d;
    background: linear-gradient(180deg, #242f42, #1a2434);
}

.site-nav a.active {
    border-color: rgba(255, 90, 111, 0.55);
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 90, 111, 0.35), rgba(226, 24, 47, 0.3));
    box-shadow: inset 0 0 0 1px rgba(255, 180, 190, 0.18);
}

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

body.layout-sidebar .main {
    width: min(1180px, 100%);
    margin: 0 0 0 var(--sidebar-w);
    padding: 20px 16px 28px;
    animation: fade-in 0.22s ease-out;
}

body.layout-sidebar.reports-list-page .main {
    width: calc(100vw - var(--sidebar-w) - 8px);
    max-width: none;
}

body.layout-sidebar.electors-page .main {
    width: calc(100vw - var(--sidebar-w) - 8px);
    max-width: none;
}

.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

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

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

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

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

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

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

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

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

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

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

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

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(255, 90, 111, 0.2);
    background: #111925;
    outline: none;
}

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

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

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

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

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

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

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

.alert {
    border: 1px solid rgba(255, 90, 111, 0.55);
    background: rgba(226, 24, 47, 0.14);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.mesa-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}

.mesa-card {
    border: 1px solid #334055;
    border-radius: 12px;
    padding: 10px;
    background: linear-gradient(170deg, #161e2a, #111822);
}

.mesa-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mesa-card-head strong {
    font-family: Rajdhani, Barlow, sans-serif;
    font-size: 20px;
}

.mesa-card-head span {
    font-weight: 700;
    color: #ffd8de;
}

.mesa-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #384760;
    background: #0f151f;
}

.mesa-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7d8f, #d8162d);
}

.mesa-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.mesa-card-stats span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.mesa-card-stats strong {
    font-size: 18px;
}

.stat {
    background: linear-gradient(155deg, var(--panel-soft), #141922);
    border: 1px solid #334055;
    border-radius: 12px;
    padding: 14px 12px;
}

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

.countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    border: 1px solid #394863;
    background: #101725;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.welcome-note {
    border: 1px solid #3b4960;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 0 12px;
    background: rgba(94, 168, 255, 0.1);
    color: #dbe8ff;
}

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

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

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid #334055;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.table-wrap {
    overflow-x: auto;
    border: 1px solid #334055;
    border-radius: 12px;
    margin-top: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    background: rgba(15, 20, 28, 0.72);
}

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

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

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

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

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

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

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

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

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

.logout-form button {
    border: 1px solid #4c5669;
    background: #171e2a;
    color: #f4f7ff;
    padding: 7px 12px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
}

.logout-form button:hover {
    background: #202a39;
}

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

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

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

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

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

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

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

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

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

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

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

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

.veedor-cell.is-done {
    background: #1f2835;
    color: #a9b6cb;
    border-color: #3b4a60;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .table {
        min-width: 620px;
    }

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

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

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

@media (max-width: 767px) {
    body.layout-sidebar .site-header {
        width: 100%;
        height: 74px;
        justify-content: flex-start;
        padding-left: 14px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

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

    body.layout-sidebar .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.layout-sidebar .site-nav {
        top: 0;
        width: min(84vw, 320px);
        transform: translateX(-102%);
        transition: transform 0.16s ease-out;
        padding-top: 88px;
        z-index: 55;
    }

    body.layout-sidebar .site-nav.show {
        transform: translateX(0);
    }

    body.layout-sidebar .main {
        margin-left: 0;
        padding-top: 90px;
    }

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

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

    .slide-hint {
        display: block;
    }

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

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

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

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

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

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

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

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

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

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

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

.site-credit {
    width: min(1180px, calc(100% - 32px - var(--sidebar-w)));
    margin: 2px 16px 18px calc(var(--sidebar-w) + 16px);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

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

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

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

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

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

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

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

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

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