:root {
    --bg: #eef3f9;
    --bg-soft: #f7f9fd;
    --panel: #ffffff;
    --line: #dbe3ee;
    --text: #172030;
    --text-soft: #4f5f76;
    --brand: #0b3b75;
    --brand-2: #1c64c7;
    --brand-dark: #082c56;
    --success-bg: #e8f8ef;
    --success-text: #14693d;
    --error-bg: #ffeef0;
    --error-text: #912132;
    --warning-bg: #fff8e5;
    --warning-text: #845d06;
    --shadow: 0 10px 30px rgba(18, 42, 76, 0.10);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at 10% 0%, #dcecff 0%, #eef3f9 45%, #f8fbff 100%);
}

body.tela-login {
    min-height: 100vh;
}

.login-page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 430px;
    background: var(--panel);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-container img {
    width: 220px;
    max-width: 100%;
    margin-bottom: 14px;
}

.login-container h1 {
    margin: 4px 0 4px;
    font-size: 1.35rem;
    color: var(--brand-dark);
}

.subtle-text {
    margin: 0 0 20px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

input,
select,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0 2px;
    border: 1px solid #cfd9e6;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(28, 100, 199, 0.16);
}

button {
    border: 0;
    width: auto;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #a8bddc;
    border-radius: 4px;
    vertical-align: middle;
    box-shadow: none;
}

input[type="radio"] {
    border-radius: 50%;
}

.login-links {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-links a,
a.nome-arbitro {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.login-links a:hover,
a.nome-arbitro:hover {
    color: var(--brand-2);
    text-decoration: underline;
}

.sucesso,
.erro,
.aviso {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
}

.sucesso {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #b7e7ca;
}

.erro {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #f3c2cb;
}

.aviso {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #edd788;
}

body.tela-painel {
    min-height: 100vh;
    background: linear-gradient(180deg, #edf4fd 0%, #f7faff 100%);
}

.menu-lateral {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(95deg, #0d396f 0%, #0f4e9c 60%, #145fb9 100%);
    color: #fff;
    padding: 10px 18px;
    box-shadow: 0 6px 24px rgba(10, 38, 73, 0.22);
}

.menu-lateral .logo-lateral {
    width: 130px;
    margin: 0;
    background: transparent;
    border-radius: 12px;
    padding: 0;
}

.menu-lateral nav {
    flex: 1;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    min-width: 0;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.menu-toggle-label {
    font-size: 0.9rem;
}

.menu-lateral ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-lateral ul li {
    margin: 0;
}

.menu-lateral ul li a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.menu-lateral ul li a:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.menu-lateral .menu-submenu {
    position: relative;
}

.menu-lateral .menu-submenu > summary {
    color: #fff;
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.menu-lateral .menu-submenu > summary::-webkit-details-marker {
    display: none;
}

.menu-lateral .menu-submenu > summary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.menu-lateral .menu-submenu > ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(7, 25, 48, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    z-index: 300;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.menu-lateral .menu-submenu[open] > ul {
    display: flex;
}

@media (hover: hover) and (pointer: fine) {
    .menu-lateral .menu-submenu:hover > ul {
        display: flex;
    }
}

.menu-lateral .menu-submenu > ul li a {
    width: 100%;
    border-radius: 10px;
    justify-content: flex-start;
}

.painel-conteudo {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cabecalho {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 1.2rem;
}

.conteudo {
    padding: 26px;
}

.conteudo h2 {
    margin: 0 0 8px;
    color: var(--brand-dark);
}

.card-atalho {
    display: block;
    width: 220px;
    padding: 22px 18px;
    border-radius: 18px;
    border: 1px solid #d9e4f2;
    background: #fff;
    box-shadow: 0 8px 20px rgba(13, 37, 72, 0.08);
    text-decoration: none;
    color: var(--brand);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-atalho:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(14, 40, 76, 0.14);
}

.card-atalho span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

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

.kpi-card {
    background: #fff;
    border: 1px solid #d7e3f3;
    border-radius: 14px;
    padding: 14px 14px 12px;
    box-shadow: 0 4px 14px rgba(16, 43, 79, 0.06);
}

.kpi-label {
    display: block;
    font-size: 0.83rem;
    color: #5a6f8d;
    margin-bottom: 5px;
}

.kpi-value {
    font-size: 1.58rem;
    color: #113f78;
    line-height: 1.1;
}

.dashboard-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 14px;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #d7e3f3;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(13, 38, 72, 0.06);
}

.panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.panel-head h3 {
    margin: 0;
    color: #123f77;
}

.panel-head small {
    color: #607896;
}

.ranking-list,
.competition-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li,
.competition-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 6px;
    border-bottom: 1px dashed #e4ecf8;
}

.rank-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #15529d;
    font-weight: 700;
}

.rank-name {
    flex: 1;
    font-weight: 600;
}

.rank-points {
    font-weight: 700;
    color: #11467f;
    white-space: nowrap;
}

.competition-list li {
    justify-content: space-between;
    align-items: flex-start;
}

.competition-list strong {
    display: block;
    margin-bottom: 2px;
}

.competition-list small {
    color: #667f9d;
}

.comp-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #456486;
    font-size: 0.88rem;
}

.comp-meta em {
    font-style: normal;
    display: inline-block;
    background: #edf4ff;
    border: 1px solid #c8dcfb;
    color: #114d95;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.78rem;
}

.panel-link {
    display: inline-block;
    margin-top: 10px;
    color: #15529d;
    text-decoration: none;
    font-weight: 600;
}

.panel-link:hover {
    text-decoration: underline;
}

.muted {
    color: #657f9e;
}

form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 2px;
    color: #243349;
    font-weight: 600;
}

form button {
    margin-top: 18px;
    min-width: 180px;
}

.login-container button {
    width: 100%;
    border-radius: 999px;
}

table.tabela {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 44, 80, 0.07);
    border: 1px solid #dce6f2;
    padding: 0 8px 8px;
}

table.tabela thead {
    background: transparent;
    color: #234264;
}

table.tabela th,
table.tabela td {
    padding: 12px 13px;
    border-bottom: 0;
    text-align: left;
    vertical-align: middle;
}

table.tabela thead th {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table.tabela tbody tr {
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(17, 45, 84, 0.06);
}

table.tabela tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

table.tabela tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

table.tabela tbody tr:hover {
    background: #f6faff;
}

table.tabela td a {
    color: #1b4f92;
    text-decoration: none;
    font-weight: 600;
}

table.tabela td a:hover {
    text-decoration: underline;
}

.badge-uf {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-dark);
    background: #e4efff;
    border: 1px solid #bcd4fa;
}

form.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

form.filtros select,
form.filtros button {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
}

a.exportar-link {
    margin-left: auto;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    background: #1d7f42;
    color: #fff;
    font-size: 14px;
}

a.exportar-link:hover {
    background: #176937;
}

div.dt-buttons button.dt-button {
    font-size: 12px !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 6px 10px !important;
    margin: 2px 5px 2px 0 !important;
    border-radius: 10px;
    border: 1px solid #c6d4e8 !important;
}

div.dt-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #c9d8eb;
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 999px !important;
    border: 1px solid #d0deef !important;
    background: #fff !important;
    color: #24508a !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #1e62bf !important;
    color: #fff !important;
    border-color: #1e62bf !important;
}

.selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 12px;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkbox-inline input {
    margin: 0;
}

.login-remember {
    width: 100%;
    justify-content: flex-start;
    margin: 10px 0 14px;
    color: var(--text-soft);
    font-size: 0.92rem;
    text-align: left;
}

.convocacoes-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.convocacoes-hero,
.conv-title-panel,
.conv-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.convocacoes-hero h1,
.conv-title-panel h2,
.conv-section-head h2 {
    margin: 0;
    color: var(--brand-dark);
}

.convocacoes-hero p,
.conv-title-panel p,
.conv-section-head span,
.conv-competition-card small,
.conv-table small,
.conv-termo-item small,
.empty-state p,
.text-muted {
    color: var(--text-soft);
}

.btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 0;
}

.btn-inline:hover {
    background: var(--brand-2);
    color: #fff;
}

.btn-muted {
    background: #eef3f9;
    color: var(--brand);
}

.btn-muted:hover {
    background: #dfeaf7;
    color: var(--brand-dark);
}

.conv-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
}

.conv-kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(18, 42, 76, 0.06);
}

.conv-kpi strong {
    display: block;
    font-size: 1.75rem;
    color: var(--brand-dark);
    line-height: 1;
}

.conv-kpi span {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.conv-layout {
    display: grid;
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.conv-competicoes,
.conv-panel,
.conv-steps {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(18, 42, 76, 0.06);
}

.conv-competicoes,
.conv-panel {
    padding: 16px;
}

.conv-competicoes {
    position: sticky;
    top: 82px;
}

.conv-competition-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 4px;
}

.conv-competition-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #fbfdff;
    color: var(--text);
    text-decoration: none;
}

.conv-competition-card:hover,
.conv-competition-card.is-active {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(28, 100, 199, 0.12);
}

.conv-card-top,
.conv-card-metrics,
.conv-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.conv-card-top {
    justify-content: space-between;
}

.conv-card-top em {
    font-style: normal;
    font-size: 0.75rem;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--brand);
    background: #e8f0fb;
}

.conv-card-metrics {
    color: var(--text-soft);
    font-size: 0.86rem;
}

.conv-card-metrics b {
    color: var(--brand-dark);
}

.conv-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

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

.conv-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0;
    overflow: hidden;
}

.conv-step {
    padding: 14px;
    border-right: 1px solid var(--line);
    background: #fbfdff;
}

.conv-step:last-child {
    border-right: 0;
}

.conv-step span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9eef6;
    color: var(--text-soft);
    font-weight: 800;
}

.conv-step strong,
.conv-step small {
    display: block;
    margin-top: 6px;
}

.conv-step.is-current span {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.conv-step.is-done span {
    background: var(--success-bg);
    color: var(--success-text);
}

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

.conv-termo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #fbfdff;
}

.conv-termo-item input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.conv-table td {
    vertical-align: middle;
}

.conv-table td > small,
.conv-table td strong + small {
    display: block;
    margin-top: 4px;
}

.conv-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-ok {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-nao {
    background: var(--error-bg);
    color: var(--error-text);
}

.status-pendente {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.inline-form {
    display: inline;
}

.btn-mini {
    min-height: 30px;
    width: auto;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
}

.danger-link {
    color: var(--error-text);
    font-weight: 700;
    text-decoration: none;
}

.danger-link:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 18px;
    text-align: center;
}

@media (max-width: 1100px) {
    .conv-layout {
        grid-template-columns: 1fr;
    }

    .conv-competicoes {
        position: static;
    }

    .conv-competition-list {
        max-height: 420px;
    }
}

@media (max-width: 760px) {
    .convocacoes-hero,
    .conv-title-panel,
    .conv-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .conv-kpis,
    .conv-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .conv-step {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .conv-table {
        min-width: 900px;
    }
}

.competition-picker {
    border: 1px solid #d3deee;
    border-radius: 14px;
    background: #fff;
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 14px;
    padding: 8px;
}

.competition-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
}

.competition-option:hover {
    background: #f3f8ff;
}

.competition-option input {
    margin: 0;
}

.competition-option.is-selected {
    background: #eaf3ff;
    border-color: #bdd5fa;
}

.competition-title {
    display: block;
    font-weight: 700;
    color: #123e74;
}

.competition-sub {
    display: block;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.arbitros-lista {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #d3deee;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
}

.arbitro-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 8px 10px;
}

.arbitro-item:hover {
    background: #f3f8ff;
}

.arbitro-item input[type="checkbox"] {
    flex: 0 0 18px;
}

.arbitro-nome {
    flex: 1;
    line-height: 1.25;
}

.acoes-icons {
    text-align: center;
    vertical-align: middle;
}

.icon-btn {
    min-width: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d2dff0;
    background: #f7fbff;
    cursor: pointer;
}

.icon-btn svg {
    display: block;
}

.icon-btn-success {
    background: #e8f8ef;
    border-color: #bce5ca;
}

.icon-btn-warning {
    background: #fff5e8;
    border-color: #ffd6a8;
}

@media (max-width: 1024px) {
    .conteudo {
        padding: 20px;
    }
}

@media (max-width: 900px) {
    .menu-lateral {
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .menu-lateral .logo-lateral {
        width: 110px;
        margin-top: 2px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .menu-lateral nav,
    .menu-lateral > ul {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        margin-top: 10px;
    }

    .menu-lateral.menu-open nav,
    .menu-lateral.menu-open > ul {
        display: block;
    }

    .menu-lateral.menu-open > ul {
        display: flex;
    }

    .menu-lateral nav ul,
    .menu-lateral > ul {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .menu-lateral nav ul li a,
    .menu-lateral > ul li a {
        width: 100%;
        justify-content: flex-start;
    }

    .menu-lateral ul li a {
        padding: 8px 10px;
        font-size: 0.92rem;
    }

    .menu-lateral .menu-submenu > summary {
        width: 100%;
        justify-content: flex-start;
    }

    .menu-lateral .menu-submenu > ul {
        position: static;
        min-width: 0;
        margin-top: 8px;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .cabecalho {
        padding: 14px 16px;
    }

    .conteudo {
        padding: 16px;
        overflow-x: auto;
    }

    .card-atalho {
        width: calc(50% - 10px);
        min-width: 160px;
    }

    .selection-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-kpis {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.judo-page { max-width: 1500px; margin: 0 auto; }
.judo-preview-label { margin-top:20px; padding:9px 12px; border:1px solid rgba(255,255,255,.28); border-radius:8px; color:#fff; text-align:center; font-size:.85rem; }
.judo-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:20px; }
.judo-hero h1 { margin:0 0 6px; color:#123b66; }
.judo-hero p { margin:0; color:#60758d; }
.judo-filter { min-width:320px; }
.judo-filter label { display:block; margin-bottom:6px; font-weight:700; color:#294d73; }
.judo-filter select { width:100%; }
.judo-kpis { display:grid; grid-template-columns:repeat(5,minmax(130px,1fr)); gap:12px; margin-bottom:16px; }
.judo-kpis > div { background:#fff; border:1px solid #dce6f0; border-radius:12px; padding:16px; display:flex; flex-direction:column; }
.judo-kpis strong { font-size:1.7rem; color:#123b66; }
.judo-kpis span { color:#61758a; font-size:.9rem; }
.judo-kpis .has-warning { border-color:#e9bd6a; background:#fffaf0; }
.judo-kpis .has-warning strong { color:#9a5b00; }
.judo-rule-note { background:#edf6ff; border-left:4px solid #1968a8; border-radius:8px; padding:14px 16px; color:#294d73; margin-bottom:18px; }
.judo-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:12px; margin-bottom:6px; background:#fff; border:1px solid #dce6f0; border-radius:12px; position:sticky; top:8px; z-index:5; box-shadow:0 4px 14px rgba(20,55,90,.08); }
.judo-filter-group { display:flex; flex-wrap:wrap; gap:5px; padding-right:10px; border-right:1px solid #dce6f0; }
.judo-filter-group button, .judo-print { width:auto; margin:0; padding:8px 12px; border:1px solid #cbd9e7; border-radius:8px; background:#fff; color:#294d73; font-size:.84rem; cursor:pointer; text-decoration:none; }
.judo-filter-group button.is-active { background:#123b66; border-color:#123b66; color:#fff; }
.judo-print { margin-left:auto; background:#14693d; border-color:#14693d; color:#fff; }
.judo-visible-count { margin:8px 2px 14px; color:#60758d; font-size:.9rem; text-align:right; }
.judo-groups { display:grid; gap:16px; }
.judo-group-card { background:#fff; border:1px solid #dce6f0; border-radius:14px; overflow:hidden; box-shadow:0 3px 12px rgba(20,55,90,.06); }
.judo-group-card > header { display:grid; grid-template-columns:minmax(260px,1fr) minmax(180px,.7fr) auto; align-items:center; gap:16px; padding:15px 18px; background:#f6f9fc; border-bottom:1px solid #dce6f0; }
.judo-tags { display:flex; flex-wrap:wrap; gap:7px; }
.judo-tags span { background:#dfeaf5; color:#204b73; border-radius:999px; padding:5px 10px; font-size:.82rem; font-weight:700; }
.judo-tags .visual-tag { width:34px; height:34px; padding:0; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; color:#fff; box-shadow:0 2px 5px rgba(20,45,70,.18); }
.judo-tags .visual-j1 { background:#c62828; }
.judo-tags .visual-j2 { background:#1769aa; }
.judo-group-card[data-classe="SUB13"] > header { background:#eef8f1; border-left:6px solid #4b9b67; }
.judo-group-card[data-classe="SUB15"] > header { background:#edf6fd; border-left:6px solid #3281bd; }
.judo-group-card[data-classe="SUB21"] > header { background:#fff6e8; border-left:6px solid #d08a23; }
.judo-group-card[data-classe="SENIOR"] > header { background:#f5effb; border-left:6px solid #8156a6; }
.judo-group-card[data-classe="SUB13"] .judo-weight strong { color:#34764c; }
.judo-group-card[data-classe="SUB15"] .judo-weight strong { color:#246c9f; }
.judo-group-card[data-classe="SUB21"] .judo-weight strong { color:#a96612; }
.judo-group-card[data-classe="SENIOR"] .judo-weight strong { color:#68428b; }
.judo-weight { display:flex; flex-direction:column; }
.judo-weight strong { font-size:1.25rem; color:#123b66; }
.judo-weight small { color:#60758d; }
.judo-table { margin:0; box-shadow:none; }
.judo-table .cpf-revisar { color:#b42318; background:#fff1f0; font-weight:700; }
.judo-pending { margin-top:24px; padding:18px; background:#fffaf0; border:1px solid #e9bd6a; border-radius:14px; }
.judo-pending h2 { margin-top:0; color:#8a5200; }

@media (max-width: 900px) {
    .judo-hero { align-items:stretch; flex-direction:column; }
    .judo-filter { min-width:0; width:100%; }
    .judo-kpis { grid-template-columns:repeat(2,minmax(130px,1fr)); }
    .judo-group-card > header { grid-template-columns:1fr; gap:10px; }
    .judo-toolbar { position:static; }
    .judo-filter-group { border-right:0; padding-right:0; }
    .judo-print { margin-left:0; }
}

@media (max-width: 640px) {
    body.tela-painel { overflow-x:hidden; }
    .judo-page { width:100%; min-width:0; padding:12px !important; overflow:visible !important; }
    .judo-page .judo-hero { gap:14px; margin-bottom:14px; }
    .judo-page .judo-hero h1 { font-size:1.55rem; line-height:1.15; }
    .judo-page .judo-hero p { font-size:.9rem; }
    .judo-page .judo-filter select { max-width:100%; font-size:.9rem; }
    .judo-page .judo-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .judo-page .judo-kpis > div { min-width:0; padding:11px; }
    .judo-page .judo-kpis strong { font-size:1.35rem; }
    .judo-page .judo-kpis span { font-size:.76rem; line-height:1.2; }
    .judo-page .judo-rule-note { padding:11px 12px; font-size:.84rem; }
    .judo-page .judo-toolbar { width:100%; padding:9px; gap:8px; }
    .judo-page .judo-filter-group { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:5px; }
    .judo-page .judo-filter-group:first-child { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .judo-page .judo-filter-group button { width:100%; min-width:0; padding:8px 5px; font-size:.76rem; white-space:normal; }
    .judo-page .judo-print { width:100%; text-align:center; padding:10px; }
    .judo-page .judo-visible-count { text-align:left; font-size:.82rem; }
    .judo-page .judo-groups { gap:12px; }
    .judo-page .judo-group-card { width:100%; min-width:0; overflow:hidden; border-radius:12px; }
    .judo-page .judo-group-card > header { padding:12px; }
    .judo-page .judo-tags { align-items:center; }
    .judo-page .judo-weight strong { font-size:1.15rem; }
    .judo-page .table-wrapper { width:100%; overflow:visible; }
    .judo-page table.judo-table { display:block; width:100%; border:0; border-radius:0; padding:8px; background:#f5f8fb; box-shadow:none; }
    .judo-page .judo-table thead { display:none; }
    .judo-page .judo-table tbody { display:grid; gap:9px; width:100%; }
    .judo-page .judo-table tbody tr { display:block; width:100%; padding:8px 11px; border:1px solid #dce6f0; border-radius:10px; background:#fff; box-shadow:0 2px 7px rgba(17,45,84,.06); }
    .judo-page .judo-table tbody td,
    .judo-page .judo-table tbody td:first-child,
    .judo-page .judo-table tbody td:last-child { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; width:100%; min-width:0; padding:6px 0; border:0; border-bottom:1px dashed #e2e9f0; border-radius:0; text-align:right; overflow-wrap:anywhere; }
    .judo-page .judo-table tbody td:last-child { border-bottom:0; }
    .judo-page .judo-table tbody td::before { content:attr(data-label); flex:0 0 88px; color:#687d92; font-size:.72rem; font-weight:700; text-align:left; text-transform:uppercase; letter-spacing:.02em; }
    .judo-page .judo-table tbody td:first-child { display:block; padding-bottom:9px; color:#173d65; text-align:left; }
    .judo-page .judo-table tbody td:first-child::before { display:block; margin-bottom:4px; }
    .judo-page .judo-table .cpf-revisar { margin:0 -5px; padding:6px 5px; border-radius:6px; }
    .menu-lateral .judo-preview-label { margin:0 0 0 auto; padding:7px 9px; font-size:.72rem; }
    .cabecalho { padding:11px 12px; font-size:.95rem; }
}

@media (max-width: 390px) {
    .judo-page .judo-kpis { grid-template-columns:1fr 1fr; }
    .judo-page .judo-filter-group:first-child { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .menu-lateral .logo-lateral { width:95px; }
}

@media print {
    .menu-lateral, .cabecalho, .judo-filter, .judo-toolbar, .judo-rule-note, .judo-kpis, .judo-visible-count { display:none !important; }
    .painel-conteudo { margin:0 !important; width:100% !important; }
    .conteudo { padding:0 !important; }
    .judo-group-card { box-shadow:none; break-inside:avoid; }
    .judo-group-card[hidden] { display:none !important; }
}

@media (max-width: 580px) {
    .login-container {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .card-atalho {
        width: 100%;
    }

    table.tabela th,
    table.tabela td {
        padding: 10px 8px;
        font-size: 0.92rem;
    }
}
