/* ═══════════════════════════════════════════════════════════════
   lg-admin.css — camada de design system do admin LastGame.
   Carregada DEPOIS de admin.css / theme.css / admin_light.css: nao
   substitui nenhum arquivo, só re-aplica a MESMA paleta com densidade,
   raio e hierarquia de produto. Remover este <link> volta ao visual
   anterior sem tocar em mais nada.
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Layout */
    --sb-w:        248px !important;
    --sb-w-mini:   64px;
    --sb-item-h:   36px !important;
    --topbar-h:    54px !important;

    /* Raio: 20px era de app de consumo; tela de trabalho pede menos */
    --radius-lg:   10px !important;
    --radius-md:   8px  !important;
    --radius-sm:   8px  !important;
    --radius:      10px;
    --r-ctl:       8px;
    --r-card:      10px;
    --r-pill:      6px;

    /* Sombra: só em camada flutuante */
    --shadow:       0 1px 2px rgba(15,23,42,.04) !important;
    --shadow-hover: 0 1px 2px rgba(15,23,42,.06) !important;
    --lg-shadow-pop: 0 8px 24px rgba(15,23,42,.1);

    /* Cinza de apoio: #94a3b8 dá 2,8:1 em texto pequeno — fora */
    --th-muted2:   #64748b !important;
    --muted:       #64748b !important;

    /* Sidebar clara, sem gradiente */
    --sb-bg:        #ffffff !important;
    --sb-border:    #e2e8f0 !important;
    --sb-active-bg: rgba(20,107,247,.1) !important;
    --sb-hover-bg:  rgba(20,107,247,.06) !important;
    --sb-active-bd: transparent !important;

    /* Status */
    --st-ok-bg: #dcfce7;  --st-ok-bd: #bbf7d0;  --st-ok-fg: #15803d;
    --st-wa-bg: #fffbeb;  --st-wa-bd: #fde68a;  --st-wa-fg: #b45309;
    --st-er-bg: #fef2f7;  --st-er-bd: #fecaca;  --st-er-fg: #b91c1c;
    --st-ne-bg: #f1f5f9;  --st-ne-bd: #e2e8f0;  --st-ne-fg: #334155;
}

/* Fundo: sem os dois radiais que lavavam a tela */
html, body {
    background: #f8fafc !important;
    background-image: none !important;
    color: #0f172a !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Foco visível em tudo que recebe teclado */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
    outline: 2px solid #146bf7 !important;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Números sempre alinhados */
.num, .data-table td.num, .data-table th.num { font-variant-numeric: tabular-nums; }

/* ═══ SIDEBAR ═══════════════════════════════════════════════ */
.sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    width: var(--sb-w) !important;
}
.sb-logo {
    height: var(--topbar-h) !important;
    min-height: var(--topbar-h);
    padding: 0 14px !important;
    border-bottom: 1px solid #eef2f7 !important;
    gap: 9px !important;
}
.sb-logo img { width: 26px !important; height: 26px !important; border-radius: 6px !important; }
.sb-logo-name {
    font-size: .86rem !important; font-weight: 700 !important; color: #0f172a !important;
    letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-nav { padding: 8px 0 14px !important; }
.sb-divider { display: none !important; }

/* Grupo recolhível */
.sb-group { padding: 0 8px; }
.sb-group + .sb-group { margin-top: 2px; }
.sb-group-head {
    width: 100%; box-sizing: border-box;
    display: flex; align-items: center; gap: 6px;
    min-height: 30px; padding: 0 10px; margin: 10px 0 2px;
    background: none; border: 0; cursor: pointer;
    font-family: inherit; font-size: .635rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: #64748b;
    border-radius: 6px; text-align: left;
}
.sb-group-head:hover { color: #334155; background: #f8fafc; }
.sb-group-head .chev { margin-left: auto; font-size: .7rem; transition: transform .18s; opacity: .7; }
.sb-group[data-open="0"] .sb-group-head .chev { transform: rotate(-90deg); }
.sb-group[data-open="0"] .sb-group-body { display: none; }
.sb-section-label {
    font-size: .635rem !important; font-weight: 700 !important; letter-spacing: .09em !important;
    text-transform: uppercase !important; color: #64748b !important; padding: 0 10px !important;
    margin: 12px 0 4px !important;
}

.sb-nav .sb-item, .sb-item {
    height: var(--sb-item-h) !important;
    min-height: 36px;
    margin: 1px 0 !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    gap: 10px !important;
    transition: background .14s, color .14s;
}
.sb-nav .sb-item i, .sb-item i {
    font-size: .95rem !important; width: 18px !important; opacity: 1 !important;
    color: #64748b !important; flex-shrink: 0;
}
.sb-nav .sb-item:hover, .sb-item:hover { background: rgba(20,107,247,.06) !important; color: #0f172a !important; }
.sb-nav .sb-item:hover i, .sb-item:hover i { color: #475569 !important; }
.sb-nav .sb-item.active, .sb-item.active {
    background: rgba(20,107,247,.1) !important;
    color: #0f4fd8 !important;
    font-weight: 600 !important;
}
.sb-nav .sb-item.active i, .sb-item.active i { color: #146bf7 !important; }
.sb-nav .sb-item.active::before, .sb-item.active::before { content: none !important; }
.sb-item.live-item { color: #b91c1c !important; }
.sb-item.live-item i { color: #dc2626 !important; }
.sb-item.live-item:hover { background: rgba(247,12,40,.07) !important; color: #991b1b !important; }

/* Contador (mensagens) */
.sb-count {
    margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: #f70c28; color: #fff; font-size: .6rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}

/* Bloco do campeonato em contexto */
.sb-ctx {
    margin: 12px 8px 4px; padding: 10px 11px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px;
}
.sb-ctx-label { font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #64748b; }
.sb-ctx-name { font-size: .8rem; font-weight: 700; color: #0f172a; line-height: 1.25; margin-top: 3px; }

/* Rodapé do usuário */
.sb-footer, .sb-user { background: #fff !important; border-top: 1px solid #eef2f7 !important; }
.sb-avatar { border-radius: 7px !important; font-size: .72rem !important; }
.sb-user-name { font-size: .8rem !important; font-weight: 600 !important; color: #0f172a !important; }
.sb-user-role { font-size: .68rem !important; color: #64748b !important; text-transform: capitalize; }
.sb-logout {
    border-radius: var(--r-ctl) !important; font-size: .76rem !important; font-weight: 600 !important;
    min-height: 34px; border: 1px solid #e2e8f0 !important; color: #475569 !important; background: #fff !important;
}
.sb-logout:hover { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #0f172a !important; }

/* Sidebar recolhida (desktop) */
@media (min-width: 1025px) {
    body.sb-mini .sidebar { width: var(--sb-w-mini) !important; }
    body.sb-mini .main-wrap { margin-left: var(--sb-w-mini) !important; }
    body.sb-mini .sb-logo-name,
    body.sb-mini .sb-group-head span,
    body.sb-mini .sb-group-head .chev,
    body.sb-mini .sb-item span.lbl,
    body.sb-mini .sb-user-info,
    body.sb-mini .sb-ctx-name,
    body.sb-mini .sb-ctx-label,
    body.sb-mini .sb-logout span { display: none !important; }
    body.sb-mini .sb-item { justify-content: center; padding: 0 !important; }
    body.sb-mini .sb-item i { width: auto !important; font-size: 1.05rem !important; }
    body.sb-mini .sb-group-head { justify-content: center; padding: 0; min-height: 10px; margin: 8px 0 2px; }
    body.sb-mini .sb-group-head::after {
        content: ''; display: block; width: 18px; height: 1px; background: #e2e8f0;
    }
    body.sb-mini .sb-group[data-open="0"] .sb-group-body { display: block; }
    body.sb-mini .sb-ctx { padding: 8px 6px; text-align: center; }
    body.sb-mini .sb-logout { justify-content: center; }
    /* Tooltip no modo recolhido */
    body.sb-mini .sb-item { position: relative; }
    body.sb-mini .sb-item:hover::after {
        content: attr(data-tip);
        position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
        background: #0f172a; color: #fff; font-size: .72rem; font-weight: 600;
        padding: 5px 9px; border-radius: 6px; white-space: nowrap; z-index: 500;
        box-shadow: var(--lg-shadow-pop); pointer-events: none;
    }
}
.sb-mini-toggle {
    display: none; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--r-ctl);
    background: #fff; border: 1px solid #e2e8f0; color: #475569; cursor: pointer; font-size: .95rem;
}
.sb-mini-toggle:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
@media (min-width: 1025px) { .sb-mini-toggle { display: inline-flex; } }

/* ═══ TOPBAR ════════════════════════════════════════════════ */
.topbar {
    height: var(--topbar-h) !important;
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    backdrop-filter: none !important;
    padding: 0 20px !important;
    gap: 12px !important;
}
.topbar-title {
    font-size: .88rem !important; font-weight: 600 !important; color: #0f172a !important;
    letter-spacing: -.005em;
}
.topbar-toggle { color: #475569 !important; border-radius: var(--r-ctl) !important; }
.topbar-toggle:hover { background: #f1f5f9 !important; color: #0f172a !important; }
.topbar-camp {
    border-radius: var(--r-pill) !important; font-size: .74rem !important; font-weight: 600 !important;
    background: rgba(20,107,247,.1) !important; border: 1px solid rgba(20,107,247,.25) !important;
    color: #0f4fd8 !important; padding: 5px 10px !important;
}
.topbar-home, .topbar-logout, .topbar-install {
    width: 34px !important; height: 34px !important; border-radius: var(--r-ctl) !important;
    background: #fff !important; border: 1px solid #e2e8f0 !important; color: #475569 !important;
    font-size: .92rem !important; padding: 0 !important; justify-content: center !important;
}
.topbar-home:hover, .topbar-logout:hover { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
.topbar-logout { color: #b91c1c !important; }
.topbar-logout:hover { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.topbar-install { width: auto !important; padding: 0 11px !important; gap: 6px; color: #0f4fd8 !important; }
.topbar-install:hover { background: rgba(20,107,247,.08) !important; }

/* ═══ CONTEÚDO ══════════════════════════════════════════════ */
.container { padding: 20px 22px 44px !important; }
@media (min-width: 1700px) { .container { max-width: 1640px !important; } }

.page-title, h1.page-title {
    font-size: 1.3rem !important; font-weight: 700 !important; color: #0f172a !important;
    letter-spacing: -.015em !important; margin: 0 !important; display: flex; align-items: center; gap: 9px;
}
.page-title i { color: #146bf7 !important; font-size: 1.05em; }
.lg-page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.lg-page-head .lg-page-sub { margin: 4px 0 0; font-size: .8rem; color: #64748b; }
.lg-page-head .lg-page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ═══ CARDS ═════════════════════════════════════════════════ */
.card, .stat-card, .cj-card, .admin-stat, .act-card, .rep-card, .camp-card, .picker-item,
.table-container, .form-section, .lg-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--r-card) !important;
    box-shadow: none !important;
}
.card:hover, .act-card:hover, .camp-card:hover, .stat-card:hover {
    transform: none !important; box-shadow: none !important; border-color: #cbd5e1 !important;
}
.act-card i { font-size: 1.1rem !important; }

/* KPI compacto */
.lg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 11px; margin-bottom: 16px; }
.lg-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--r-card); padding: 12px 14px; }
.lg-kpi-l { font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #64748b; }
.lg-kpi-v { font-size: 1.4rem; font-weight: 700; color: #0f172a; line-height: 1.1; margin-top: 3px; font-variant-numeric: tabular-nums; }
.lg-kpi-h { font-size: .74rem; color: #64748b; margin-top: 2px; }

/* As estatísticas antigas seguem o mesmo padrão */
.admin-stat { padding: 12px 14px !important; }
.admin-stat strong, .stat-value { font-size: 1.4rem !important; font-weight: 700 !important; }
.admin-stat span, .stat-label {
    font-size: .64rem !important; font-weight: 700 !important; letter-spacing: .07em !important;
    text-transform: uppercase !important; color: #64748b !important;
}

/* ═══ BOTÕES ════════════════════════════════════════════════ */
.btn, .btn-primary, .btn-danger, .btn-ghost, .btn-secondary, .cj-btn-primary, .cj-btn-ghost, .ct-submit {
    border-radius: var(--r-ctl) !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    padding: 0 14px !important;
    min-height: 36px;
    display: inline-flex; align-items: center; gap: 7px;
    transition: background .14s, border-color .14s !important;
}
.btn:hover, .btn-primary:hover, .btn-danger:hover, .btn-ghost:hover {
    transform: none !important; box-shadow: none !important;
}
.btn-primary, .cj-btn-primary, .ct-submit { background: #146bf7 !important; color: #fff !important; border: 1px solid #146bf7 !important; }
.btn-primary:hover, .cj-btn-primary:hover, .ct-submit:hover { background: #0f4fd8 !important; border-color: #0f4fd8 !important; }
.btn-secondary, .btn-ghost, .cj-btn-ghost {
    background: #fff !important; color: #1e293b !important; border: 1px solid #e2e8f0 !important;
}
.btn-secondary:hover, .btn-ghost:hover, .cj-btn-ghost:hover { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
.btn-danger, .cj-btn-danger { background: #fff !important; color: #b91c1c !important; border: 1px solid #fecaca !important; }
.btn-danger:hover { background: #fef2f2 !important; border-color: #fca5a5 !important; }
.btn-danger--solid { background: #b91c1c !important; color: #fff !important; border-color: #b91c1c !important; }
.btn-sm { min-height: 30px; padding: 0 10px !important; font-size: .75rem !important; }
.btn-lg { min-height: 42px; padding: 0 20px !important; font-size: .88rem !important; }
.btn:disabled, .btn[disabled], .btn-primary:disabled { opacity: .5 !important; cursor: not-allowed; }
.btn-icon { width: 32px; padding: 0 !important; justify-content: center; }
/* Área de toque no celular */
@media (max-width: 760px) {
    .btn, .btn-primary, .btn-danger, .btn-ghost, .btn-secondary { min-height: 44px; font-size: .85rem !important; }
    .btn-sm { min-height: 38px; }
}

/* ═══ FORMULÁRIOS ═══════════════════════════════════════════ */
.form-control, .cj-input, .ct-field input, .ct-field select, .search-input,
input[type="text"], input[type="number"], input[type="date"], input[type="email"],
input[type="url"], input[type="search"], input[type="password"], select, textarea {
    border-radius: var(--r-ctl) !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: .82rem !important;
    font-family: inherit;
    min-height: 36px;
    padding: 7px 11px !important;
    box-shadow: none !important;
}
textarea { min-height: 80px; }
.form-control:focus, .cj-input:focus, select:focus, textarea:focus, input:focus {
    border-color: #146bf7 !important;
    outline: 2px solid #146bf7 !important;
    outline-offset: 1px;
    box-shadow: none !important;
}
.form-label, .form-group > label, label.form-label {
    font-size: .72rem !important; font-weight: 600 !important; color: #475569 !important;
    text-transform: none !important; letter-spacing: 0 !important; margin-bottom: 5px !important; display: block;
}
.form-hint, .form-text, small.hint { font-size: .72rem !important; color: #64748b !important; }
.form-group { margin-bottom: 13px !important; }
input[type="checkbox"], input[type="radio"] { accent-color: #146bf7; width: 16px; height: 16px; min-height: 0; padding: 0 !important; }
@media (max-width: 760px) {
    .form-control, .cj-input, select, textarea, input[type="text"], input[type="number"],
    input[type="date"], input[type="search"] { min-height: 44px; font-size: .9rem !important; }
}

/* Barra de ferramentas / filtros */
.lg-toolbar {
    background: #fff; border: 1px solid #e2e8f0; border-radius: var(--r-card);
    padding: 10px 12px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px;
}
.lg-toolbar .form-group { margin-bottom: 0 !important; }
.lg-toolbar-spacer { flex: 1; }

/* ═══ TABELAS ═══════════════════════════════════════════════ */
.table-container { overflow: hidden !important; padding: 0 !important; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 9px 13px !important;
    font-size: .64rem !important; font-weight: 700 !important; letter-spacing: .07em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.data-table td {
    padding: 11px 13px !important;
    font-size: .82rem !important;
    color: #1e293b !important;
    border-bottom: 1px solid #eef2f7 !important;
    vertical-align: middle;
}
.data-table tbody tr:hover td { background: #f8fafc !important; }
.data-table .td-num, .data-table .th-num { text-align: right; font-variant-numeric: tabular-nums; }
.lg-table-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    padding: 9px 13px; border-top: 1px solid #eef2f7; font-size: .74rem; color: #64748b;
}
.actions-group { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

/* Tabela → cartão no celular (precisa de data-label nas células) */
@media (max-width: 860px) {
    .data-table.lg-cards { border: 0; }
    .data-table.lg-cards thead { display: none; }
    .data-table.lg-cards tbody, .data-table.lg-cards tr, .data-table.lg-cards td { display: block; width: auto; }
    .data-table.lg-cards tr {
        border: 1px solid #e2e8f0; border-radius: var(--r-card); background: #fff;
        margin: 0 10px 10px; padding: 11px 13px;
    }
    .data-table.lg-cards tr:first-child { margin-top: 10px; }
    .data-table.lg-cards td {
        border: 0 !important; padding: 4px 0 !important;
        display: flex; align-items: baseline; gap: 10px; justify-content: space-between;
        text-align: right;
    }
    .data-table.lg-cards td::before {
        content: attr(data-label);
        font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
        color: #64748b; text-align: left; flex: none;
    }
    .data-table.lg-cards td.lg-cell-main {
        display: block; text-align: left; padding-bottom: 8px !important;
        border-bottom: 1px solid #eef2f7 !important; margin-bottom: 6px;
    }
    .data-table.lg-cards td.lg-cell-main::before { content: none; }
    .data-table.lg-cards td.lg-cell-actions {
        display: block; text-align: left; padding-top: 10px !important;
        border-top: 1px solid #eef2f7 !important; margin-top: 6px;
    }
    .data-table.lg-cells-actions::before { content: none; }
    .data-table.lg-cards td.lg-cell-actions::before { content: none; }
    .data-table.lg-cards td.lg-cell-actions .actions-group { justify-content: stretch; }
    .data-table.lg-cards td.lg-cell-actions .actions-group > * { flex: 1; justify-content: center; }
    .data-table.lg-cards tbody tr:hover td { background: transparent !important; }
    .table-container { border: 0 !important; background: transparent !important; }
    .lg-table-foot { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--r-card); margin: 0 10px; }
}

/* ═══ BADGES / STATUS ═══════════════════════════════════════ */
.badge-status, .badge-formato, .badge-taxa, .badge, .lg-badge {
    display: inline-flex !important; align-items: center; gap: 6px;
    font-size: .72rem !important; font-weight: 600 !important;
    border-radius: var(--r-pill) !important;
    padding: 3px 9px !important;
    letter-spacing: 0 !important; text-transform: none !important;
    background: var(--st-ne-bg) !important; border: 1px solid var(--st-ne-bd) !important; color: var(--st-ne-fg) !important;
}
.badge-status::before, .lg-badge--dot::before {
    content: ''; width: 7px; height: 7px; border-radius: 4px; background: currentColor; flex: none; opacity: .85;
}
.badge-ativo, .badge-status.badge-ativo, .badge-success, .badge-pago {
    background: var(--st-ok-bg) !important; border-color: var(--st-ok-bd) !important; color: var(--st-ok-fg) !important;
}
.badge-encerrado, .badge-status.badge-encerrado { background: var(--st-ne-bg) !important; border-color: var(--st-ne-bd) !important; color: var(--st-ne-fg) !important; }
.badge-inativo, .badge-status.badge-inativo, .badge-danger, .badge-atrasado {
    background: var(--st-er-bg) !important; border-color: var(--st-er-bd) !important; color: var(--st-er-fg) !important;
}
.badge-pendente, .badge-warning { background: var(--st-wa-bg) !important; border-color: var(--st-wa-bd) !important; color: var(--st-wa-fg) !important; }
.badge-formato { background: #f1f5f9 !important; border-color: #e2e8f0 !important; color: #334155 !important; }
.badge-formato::before { content: none; }
.badge-taxa { background: rgba(20,107,247,.08) !important; border-color: rgba(20,107,247,.2) !important; color: #0f4fd8 !important; font-variant-numeric: tabular-nums; }
a.badge-status { text-decoration: none; }
a.badge-status:hover { filter: brightness(.97); }

/* Barra de progresso */
.progress { height: 4px !important; background: #eef2f7 !important; border-radius: 2px !important; overflow: hidden; margin: 7px 0 3px; }
.progress-bar { background: #146bf7 !important; height: 100% !important; border-radius: 2px !important; }

/* ═══ AVISOS ════════════════════════════════════════════════ */
.alert, .flash {
    border-radius: var(--r-card) !important; font-size: .82rem !important; font-weight: 500 !important;
    padding: 11px 13px !important; display: flex; gap: 9px; align-items: flex-start;
}
.alert-success, .flash-success { background: #f0fdf4 !important; border: 1px solid #bbf7d0 !important; color: #15803d !important; }
.alert-danger, .flash-error { background: #fef2f2 !important; border: 1px solid #fecaca !important; color: #b91c1c !important; }
.alert-warning { background: #fffbeb !important; border: 1px solid #fde68a !important; color: #b45309 !important; }
.alert-info { background: rgba(20,107,247,.06) !important; border: 1px solid rgba(20,107,247,.2) !important; color: #0f4fd8 !important; }

/* ═══ ESTADO VAZIO / SKELETON ═══════════════════════════════ */
.empty-state {
    text-align: center !important; padding: 34px 20px !important; color: #64748b !important; font-size: .82rem !important;
}
.empty-state h3 { font-size: .9rem !important; font-weight: 600 !important; color: #0f172a !important; }
.empty-icon, .empty-state .empty-icon { font-size: 1.6rem !important; color: #94a3b8 !important; opacity: 1 !important; display: block; margin-bottom: 8px; }
.lg-skel { background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%); background-size: 400% 100%; border-radius: 5px; height: 11px; }

/* ═══ ABAS ══════════════════════════════════════════════════ */
.lg-tabs { display: flex; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid #e2e8f0; margin-bottom: 16px; }
.lg-tab {
    appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
    font-family: inherit; font-size: .82rem; font-weight: 600; color: #64748b;
    min-height: 40px; padding: 0 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.lg-tab:hover { color: #334155; }
.lg-tab[aria-selected="true"], .lg-tab.active { color: #0f4fd8; border-bottom-color: #146bf7; }
.rep-tab { border-radius: var(--r-ctl) !important; font-size: .8rem !important; font-weight: 600 !important; }

/* ═══ MODAIS ════════════════════════════════════════════════ */
.modal, .modal-card, .picker-box, .ac-modal-card, .aem-box {
    border-radius: 12px !important;
    box-shadow: var(--lg-shadow-pop) !important;
    border: 1px solid #e2e8f0 !important;
}
.picker-overlay, .modal-overlay { background: rgba(15,23,42,.38) !important; backdrop-filter: none !important; }
@media (max-width: 640px) {
    .picker-box, .modal-card {
        position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
        max-width: none !important; width: 100% !important; border-radius: 16px 16px 0 0 !important;
        max-height: 88vh; overflow-y: auto;
    }
}

/* Sem rolagem horizontal da página por falha de layout */
html, body { overflow-x: hidden; }
.container > * { min-width: 0; }

/* Impressão: o conteúdo, sem o cromo */
@media print {
    .sidebar, .topbar, .sb-overlay, .lg-page-actions, .lg-toolbar { display: none !important; }
    .main-wrap { margin-left: 0 !important; }
    .container { padding: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   Componentes da tela de Campeonatos (classes que já existiam)
   ═══════════════════════════════════════════════════════════════ */

/* Cabeçalho: era centralizado e alto; agora é uma linha de trabalho */
.page-header {
    text-align: left !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    background: none !important;
    border: 0 !important;
    display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
}
.page-header::before, .page-header::after { content: none !important; }
.page-subtitle { font-size: .8rem !important; color: #64748b !important; margin: 4px 0 0 !important; }

/* Estatísticas compactas */
.stats-grid { gap: 11px !important; margin-bottom: 16px !important; }
.stat-card { padding: 12px 14px !important; text-align: left !important; }
.stat-icon { font-size: 1rem !important; color: #64748b !important; opacity: 1 !important; display: block; margin-bottom: 6px; }
.stat-value { font-size: 1.4rem !important; font-weight: 700 !important; color: #0f172a !important; line-height: 1.1 !important; font-variant-numeric: tabular-nums; }

/* Filtros: o cartão é a própria barra, sem moldura dupla */
.filters-container {
    background: none !important; border: 0 !important; padding: 0 !important;
    box-shadow: none !important; margin-bottom: 14px !important;
}
.filters-grid { align-items: flex-end !important; }
.search-group { position: relative; flex: 1 1 240px; min-width: 0; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: .85rem; pointer-events: none; }
.search-input { padding-left: 32px !important; width: 100%; }

/* Ações na linha da tabela.
   O :not() existe porque o dashboard usa .btn-action--primary/--ghost para
   botões de texto: sem isso eles viravam quadradinhos de 30px. */
.btn-action:not([class*="btn-action--"]) {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: var(--r-ctl);
    border: 1px solid #e2e8f0 !important; background: #fff !important; color: #475569 !important;
    font-size: .82rem; text-decoration: none;
}
.btn-action:not([class*="btn-action--"]):hover { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
.btn-action:not([class*="btn-action--"]).encerrar { color: #b91c1c !important; border-color: #fecaca !important; }
.btn-action:not([class*="btn-action--"]).encerrar:hover { background: #fef2f2 !important; border-color: #fca5a5 !important; }
@media (max-width: 860px) {
    .btn-action:not([class*="btn-action--"]) { width: 44px; height: 44px; font-size: .95rem; }
}

/* Hub do campeonato */
.camp-hub { display: block; }
.hub-header-enhanced, .hub-header {
    background: #fff !important; border: 1px solid #e2e8f0 !important;
    border-radius: var(--r-card) !important; box-shadow: none !important;
    padding: 16px 18px !important; margin-bottom: 14px !important;
}
.hub-camp-name, .hub-camp-name-lg {
    font-size: 1.12rem !important; font-weight: 700 !important; color: #0f172a !important;
    letter-spacing: -.01em !important; line-height: 1.25 !important;
}
.hub-camp-meta, .hub-camp-meta-row { color: #64748b !important; font-size: .78rem !important; }
.hub-format-badge {
    background: #f1f5f9 !important; border: 1px solid #e2e8f0 !important; color: #334155 !important;
    border-radius: var(--r-pill) !important; font-size: .72rem !important; font-weight: 600 !important; padding: 3px 9px !important;
}
.hub-icon, .hub-icon-lg { border-radius: var(--r-ctl) !important; }
.hub-back-btn {
    border-radius: var(--r-ctl) !important; font-size: .76rem !important; font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important; background: #fff !important; color: #475569 !important;
}
.hub-back-btn:hover { background: #f8fafc !important; color: #0f172a !important; }

/* Abas da configuração grudam no topo ao rolar */
.cfg-tabs {
    position: sticky; top: var(--topbar-h); z-index: 90;
    background: #f8fafc; padding-top: 6px; margin-bottom: 14px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cfg-tabs .lg-tab { white-space: nowrap; }
@media (max-width: 760px) { .cfg-tabs .lg-tab { min-height: 44px; } }

/* Seções de configuração: acordeão nativo, visual de card */
.config-section {
    background: #fff !important; border: 1px solid #e2e8f0 !important;
    border-radius: var(--r-card) !important; box-shadow: none !important;
    margin-bottom: 11px !important; overflow: hidden;
}
.config-section summary {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px !important; cursor: pointer;
    font-size: .92rem !important; font-weight: 700 !important; color: #0f172a !important;
    background: #fff !important; list-style: none;
}
.config-section summary::-webkit-details-marker { display: none; }
.config-section summary:hover { background: #f8fafc !important; }
.config-section summary .section-icon {
    width: 28px !important; height: 28px !important; border-radius: 7px !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: .9rem !important;
}
.config-section summary .section-badge {
    margin-left: auto; font-size: .68rem !important; font-weight: 600 !important;
    background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #e2e8f0 !important;
    border-radius: var(--r-pill) !important; padding: 2px 8px !important;
}
.config-section summary .section-chevron { color: #64748b !important; font-size: .8rem !important; transition: transform .18s; }
.config-section[open] summary { border-bottom: 1px solid #eef2f7 !important; }
.config-section[open] summary .section-chevron { transform: rotate(180deg); }
.config-section-body { padding: 16px !important; }
.form-grid { gap: 13px !important; }
.form-header { border-bottom: 1px solid #eef2f7 !important; padding-bottom: 10px !important; margin-bottom: 14px !important; }
.form-header h2 { font-size: .98rem !important; font-weight: 700 !important; }
.form-container { background: #fff !important; border: 1px solid #e2e8f0 !important; border-radius: var(--r-card) !important; box-shadow: none !important; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #eef2f7; margin-top: 4px; }

/* Barra de salvar fixa */
.sticky-save-bar {
    background: rgba(255,255,255,.97) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -2px 10px rgba(15,23,42,.05) !important;
    padding: 10px 14px !important;
    backdrop-filter: none !important;
}
.sticky-save-bar .btn { min-height: 44px; }

/* Grade de atalhos do hub */
.hub-nav-divider { border-color: #eef2f7 !important; }

/* ═══ Central de Artes: cards de tipo sem a barrinha de 4px e sem salto ═══ */
.at-card { box-shadow: none !important; transition: border-color .14s !important; }
.at-card::before { content: none !important; }
.at-card:hover { transform: none !important; box-shadow: none !important; border-color: #cbd5e1 !important; }
.at-card h3 { font-weight: 700 !important; }
.at-icon { width: 36px !important; height: 36px !important; font-size: 1.05rem !important; border-radius: 9px !important; }
.at-cta { border-radius: var(--r-ctl) !important; min-height: 34px; padding: 0 12px !important; border: 0; cursor: pointer; font-family: inherit; }
.ac-tpl { box-shadow: none !important; }
.ac-tpl:hover { transform: none !important; box-shadow: none !important; border-color: #cbd5e1 !important; }
.ac-kpi { box-shadow: none !important; border-radius: var(--r-card) !important; }
.ac-jogo .ja { min-height: 34px; border-radius: var(--r-ctl) !important; }
.ac-hero { border-radius: var(--r-card) !important; }
.ac-section-head .hint { color: #64748b !important; }
@media (max-width: 760px) {
    .at-cta, .ac-jogo .ja { min-height: 44px; }
    .ac-jogos { grid-template-columns: 1fr !important; }
}
