:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #2d3748;
    --muted: #4a5568;
    --line: #e2e8f0;
    --purple: #7b2bf9;
    --purple-dark: #6820e0;
    --yellow: #f2d633;
    --input-bg: #ebf2fa;
    /* Bege institucional (portais públicos e destaques suaves) */
    --beige: #f3efe6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-body {
    min-height: 100vh;
    background: var(--bg);
}

.login-wrap {
    width: min(560px, 94%);
    margin: 24px auto;
}

.login-wrap.signup {
    width: min(980px, 96%);
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e2e8;
    border-radius: 12px;
    padding: 22px;
}

.login-card h1 {
    margin: 0 0 6px;
}

.login-card p {
    margin: 0 0 14px;
    color: #5c617d;
}

.login-card label > small {
    display: block;
    margin-top: 6px;
    color: #5c617d;
    font-size: 0.82rem;
    line-height: 1.4;
}


.showcase-content {
    max-width: 420px;
    text-align: center;
}

.showcase-content h2 {
    font-size: 2.25rem;
    margin: 0 0 12px;
}

.showcase-content p {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.showcase-dots {
    margin-top: 28px;
    display: flex;
    gap: 10px;
}

.showcase-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
}

.login-validate-link {
    margin: 0;
}

.cep-consultor-hint,
.cep-autofill-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #666882;
    line-height: 1.35;
}

.cep-consultor-hint.ok,
.cep-autofill-hint.ok {
    color: #1f6b3a;
}

.cep-consultor-hint.error,
.cep-autofill-hint.error {
    color: #8c2626;
}

.login-validator-modal {
    position: fixed;
    inset: 0;
    background: rgba(28, 24, 42, 0.48);
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
}

/* Fechado: HTML usa style="display:none" e/ou atributo hidden — !important evita conflito com outras folhas */
.login-validator-modal[hidden],
.login-validator-modal.hidden {
    display: none !important;
}

.login-validator-card {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e2e8;
    padding: 16px;
}

.login-validator-card h3 {
    margin: 0 0 6px;
}

.login-validator-card p {
    margin: 0 0 10px;
    color: #555a74;
}

.login-validator-reader {
    width: 100%;
    min-height: 260px;
    border: 1px solid #d6d7e2;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafe;
    margin-bottom: 10px;
}

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.main-nav {
    background: linear-gradient(90deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}

.menu {
    display: flex;
    gap: 18px;
    margin-left: 12px;
    align-items: center;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: inline-block;
    padding: 26px 0;
}

.submenu-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 190px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    border: 1px solid #d8d7df;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    padding: 10px;
    display: none;
    z-index: 30;
}

.submenu-menu a {
    display: block;
    color: #4f5065;
    font-size: 0.85rem;
    padding: 8px 6px;
    border-radius: 6px;
}

.submenu-menu a:hover {
    background: #f3edff;
    color: var(--purple);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: -120px;
    min-width: 780px;
    background: #fff;
    border-radius: 0 0 14px 14px;
    border: 1px solid #d8d7df;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    padding: 16px;
    display: none;
    gap: 18px;
    z-index: 30;
}

@media (min-width: 1100px) {
    .menu-item.has-submenu:hover .submenu-menu {
        display: block;
    }

    .menu-item.has-mega:hover .mega-menu {
        display: grid;
        grid-template-columns: 1fr 1fr 1.8fr;
    }
}

.mega-column h4 {
    margin: 0 0 8px;
    color: #39384f;
    font-size: 0.9rem;
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column li {
    margin-bottom: 4px;
}

.mega-column li a {
    color: #4f5065;
    font-size: 0.8rem;
    text-decoration: none;
}

.mega-column li a:hover {
    color: var(--purple);
}

.pedido-btn {
    margin-left: auto;
    background: var(--yellow);
    color: #2a2142;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.logout-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
}

/* Avatar + notificações no header (substitui ícones coração / sino / bolsa) */
.nav-user-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.nav-profile-wrap {
    position: relative;
}

.nav-profile-trigger {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
}

.nav-profile-trigger:focus-visible {
    outline: none;
}

/* Painel igual ao .submenu-menu: abre colado abaixo do avatar */
.nav-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 190px;
    padding: 10px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    border: 1px solid #d8d7df;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    z-index: 30;
    display: none;
}

.nav-profile-dropdown[hidden] {
    display: none !important;
}

.nav-profile-dropdown.is-open {
    display: block;
}

.nav-profile-item {
    display: block;
    padding: 8px 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4f5065;
    text-decoration: none;
    border-radius: 6px;
    background: transparent;
    line-height: 1.35;
}

.nav-profile-item:hover {
    background: #f3edff;
    color: var(--purple);
}

.main-nav .nav-user-tools {
    margin-left: auto;
    padding-left: 8px;
    min-width: 0;
    align-self: center;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-sizing: border-box;
    background: transparent;
    display: block;
}

.main-nav .nav-avatar {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.main-nav .nav-profile-trigger-inner {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.nav-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.nav-notify-wrap {
    position: relative;
}

.nav-notify-btn {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-notify-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
    border-radius: 4px;
}

.nav-notify-icon {
    grid-column: 1;
    grid-row: 1;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    display: block;
    flex-shrink: 0;
}

.nav-notifications-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    padding: 14px 16px;
    background: #fff;
    color: var(--text, #1a1523);
    border-radius: 12px;
    border: 1px solid var(--line, #e8e6ef);
    box-shadow: 0 12px 36px rgba(40, 30, 80, 0.18);
    z-index: 200;
}

.nav-notifications-panel[hidden] {
    display: none !important;
}

.nav-notifications-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted, #5c5568);
}

/* Grid + badge absoluto: evita empilhar número/ícone em telas estreitas ou com CSS global (ex.: Hostinger) */
.nav-header-tool {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    align-items: center;
    justify-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
    color: #fff;
    text-decoration: none;
    line-height: 0;
    border-radius: 8px;
    padding: 0;
    transition: background 0.15s ease;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-header-tool:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-header-tool-icon {
    grid-column: 1;
    grid-row: 1;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    display: block;
    flex-shrink: 0;
}

.nav-notify-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff4757;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.nav-notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(70vh, 400px);
    overflow-y: auto;
}

.nav-notifications-list li + li {
    margin-top: 2px;
}

.nav-notif-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease;
}

.nav-notif-item:hover {
    background: #f3edff;
}

.nav-notif-item-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text, #1a1523);
}

.nav-notif-item-text {
    font-size: 0.82rem;
    color: var(--muted, #5c5568);
    line-height: 1.35;
}

.nav-notif-item-date {
    font-size: 0.72rem;
    color: #8a8496;
}

.nav-notif-item--aprovacao .nav-notif-item-title {
    color: #5b21b6;
}

.admin-subsection-title {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 700;
    color: var(--text, #1a1523);
}

.admin-sistema-section .admin-subsection-title:first-of-type {
    margin-top: 0.5rem;
}

.admin-sistema-top .nav-avatar {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Telas estreitas: menu visível (rolagem horizontal) + submenus no fluxo (toque abre via menu-touch.js) */
@media (max-width: 1099px) {
    .nav-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 72px;
        padding: 10px 0;
        row-gap: 8px;
        column-gap: 12px;
        align-items: center;
    }

    .menu {
        order: 10;
        flex: 1 0 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px 16px;
        padding: 4px 0 8px;
    }

    .menu-item > a {
        padding: 10px 0;
    }

    .menu-item.has-submenu .submenu-menu,
    .menu-item.has-mega .mega-menu {
        position: static;
        left: auto;
        min-width: unset;
        width: 100%;
        max-width: none;
        margin-top: 6px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .menu-item.has-mega .mega-menu {
        min-width: unset;
    }

    .menu-item.has-submenu.is-open .submenu-menu {
        display: block;
    }

    .menu-item.has-mega.is-open .mega-menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Mantém ícones do header em linha e com tamanho mínimo (evita “pilha” em mobile / painéis estreitos) */
    .main-nav .nav-user-tools {
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .main-nav .nav-header-tool,
    .main-nav .nav-notify-btn {
        min-width: 34px;
        min-height: 34px;
    }
}

.page {
    padding: 16px 0 30px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.title-row h1 {
    font-size: 2rem;
    margin: 0;
}

.search input {
    min-width: 360px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 0 14px;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.card {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--line);
}

.consultor {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.medal {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8bf 0%, #d9b348 45%, #b58b2e 100%);
    border: 3px solid #e8d896;
}

.medal--lg {
    width: 108px;
    height: 108px;
}

.consultor-qualificacao-badge {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.consultor-qualificacao-badge__img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8d896;
    box-sizing: border-box;
    background: #fff;
}

.consultor-info h2 {
    margin: 0 0 8px;
    font-size: 1.65rem;
}

.consultor-info p {
    margin: 0;
    color: var(--muted);
}

.consultor-actions {
    display: grid;
    gap: 8px;
}

.btn {
    text-decoration: none;
    border-radius: 6px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: #fff;
}

.btn.outline {
    background: #fff;
    color: #6b2ee5;
    border: 1px solid #7e3df1;
}

.detalhes {
    color: #6b2ee5;
    text-decoration: none;
    text-align: right;
    font-size: 0.86rem;
}

.ciclo {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    min-height: 100%;
    box-sizing: border-box;
}

.ciclo h2 {
    margin: 0;
    font-size: 2rem;
    text-align: center;
    max-width: 100%;
    line-height: 1.2;
}

.timer {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.timer div {
    width: 62px;
    text-align: center;
}

.timer strong {
    height: 46px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    background: #fff;
}

.timer div:first-child strong {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.timer span {
    color: var(--muted);
    text-transform: lowercase;
    font-size: 0.78rem;
}

.btn.ghost {
    background: #efefef;
    color: #333;
    width: 150px;
}

.quick-row {
    margin-bottom: 16px;
}

.quick-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.quick-head__title {
    margin: 0;
}

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

.quick-item {
    padding: 16px;
    text-align: center;
}

.quick-item h4 {
    margin: 6px 0 0;
    font-size: 1rem;
}

.quick-icon {
    color: #5e26cf;
    font-size: 1.2rem;
}

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

.mini-banner {
    border-radius: 10px;
    min-height: 120px;
    border: 1px solid var(--line);
    padding: 18px;
    display: grid;
    align-content: space-between;
}

.mini-banner strong {
    font-size: 1.65rem;
    line-height: 1;
    text-transform: uppercase;
}

.mini-banner span {
    color: rgba(31, 31, 43, 0.8);
    font-size: 0.92rem;
}

.mini-banner.yellow {
    background: #f3c741;
}

.mini-banner.light {
    background: #f3f1ff;
}

.mini-banner.sand {
    background: #e8d9ac;
}

.mini-banner.purple {
    background: linear-gradient(135deg, #6d22e8 0%, #5b18c4 100%);
    color: #fff;
}

.mini-banner.purple span {
    color: rgba(255, 255, 255, 0.86);
}

.status {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    padding: 18px;
    margin-bottom: 16px;
}

.status-left p {
    margin: 8px 0;
    font-size: 2rem;
}

.status-center {
    text-align: center;
}

.badge {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    margin: 0 auto 8px;
}

.badge.silver {
    background: radial-gradient(circle at 30% 30%, #fcfcfc 0%, #d6d6d8 44%, #9899a2 100%);
}

.badge.gold {
    background: radial-gradient(circle at 30% 30%, #fff8d7 0%, #e3be53 44%, #ae8530 100%);
}

.status-qualificacao-img {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
    background: #fff;
    box-sizing: border-box;
    border: 3px solid #e8d896;
}

.status-qualificacao-img--placeholder {
    margin-left: auto;
    margin-right: auto;
}

.status-center p {
    margin: 0;
    color: var(--muted);
}

.status-center strong {
    font-size: 1.8rem;
}

.history {
    padding: 18px;
    margin-bottom: 16px;
}

.history h2 {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 12px;
}

.badge-adimplencia {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-adimplencia--ok {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.badge-adimplencia--no {
    background: rgba(248, 113, 113, 0.2);
    color: #b91c1c;
}

.badge-adimplencia--cancelado {
    background: rgba(100, 116, 139, 0.25);
    color: #475569;
}

.acompanhar-adimplencia-form {
    margin: 0;
}

.acompanhar-adimplencia-select {
    min-width: 10.5rem;
    max-width: 100%;
    font-size: 0.88rem;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface, #fff);
}

.history:not(.history--expanded) tr.historico-bonus-row--collapsed {
    display: none;
}

.history.history--expanded tr.historico-bonus-row--collapsed {
    display: table-row;
}

.history [data-historico-bonus-toggle][hidden] {
    display: none;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
}

th {
    font-size: 0.88rem;
    color: #6b6b7a;
}

td {
    font-size: 0.92rem;
}

.centered {
    display: block;
    width: 110px;
    margin: 12px auto 0;
}

.reports {
    background: #f2f1e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.reports h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 2rem;
}

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

.report-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
}

.report-card p {
    min-height: 48px;
    margin: 0 0 12px;
}

.products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
}

.product-media {
    height: 150px;
    border-radius: 6px;
    background: linear-gradient(130deg, #ff79b2 0%, #d03f8b 100%);
    margin-bottom: 8px;
}

.product-card span,
.product-card p {
    color: var(--muted);
    font-size: 0.83rem;
}

.product-card h4 {
    margin: 4px 0;
    font-size: 1.03rem;
}

.product-card strong {
    display: block;
    font-size: 1.75rem;
    color: #7136dd;
    margin-bottom: 8px;
}

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

.digital-card {
    border-radius: 8px;
    border: 1px solid var(--line);
    min-height: 260px;
    color: #fff;
    padding: 20px;
    display: grid;
    align-content: end;
    gap: 10px;
}

.digital-card:nth-child(1) {
    background: linear-gradient(160deg, #7a2bee 0%, #5f1dc8 100%);
}

.digital-card:nth-child(2) {
    background: linear-gradient(160deg, #5f6e8f 0%, #354460 100%);
}

.digital-card:nth-child(3) {
    background: linear-gradient(160deg, #7f90a8 0%, #4d5c73 100%);
}

.digital-card h3 {
    margin: 0;
    font-size: 2rem;
}

.digital-card p {
    margin: 0;
}

.catalog-banner {
    min-height: 180px;
    border-radius: 12px;
    color: #fff;
    padding: 28px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(120deg, #2d8fc7 0%, #2d8fc7 40%, #2052af 100%);
}

.catalog-banner h2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding-right: 12px;
    font-size: 2.4rem;
    line-height: 1.08;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.catalog-banner-line1,
.catalog-banner-line2 {
    display: block;
}

@media (min-width: 720px) {
    .catalog-banner-line1 {
        white-space: nowrap;
    }
}

.btn.ghost-white {
    background: #fff;
    color: #3c2f64;
}

.footer {
    background: #ececef;
    margin-top: 20px;
    padding: 24px 0;
}

.lead-form-wrap {
    padding: 20px;
}

.lead-help {
    margin: 0 0 16px;
    color: #4d4f66;
}

.lead-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.lead-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: #353850;
}

/* Asterisco de obrigatório dentro da borda do campo (cadastro de lead) */
.lead-form .lead-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.lead-form .lead-input-required-mark {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc2626;
    font-weight: 700;
    pointer-events: none;
    line-height: 1;
    font-size: 1rem;
}

.whatsapp-toggle {
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 10px 12px 12px;
    margin: 0;
}

.whatsapp-toggle legend {
    padding: 0 4px;
    font-weight: 600;
    color: #353850;
}

.toggle-options {
    display: inline-flex;
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 6px;
}

.toggle-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-options label {
    min-width: 72px;
    padding: 8px 14px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #585b75;
    background: #fff;
    border-right: 1px solid #d6d7e2;
}

.toggle-options label:last-of-type {
    border-right: none;
}

.toggle-options input[type="radio"]:checked + label {
    background: var(--purple);
    color: #fff;
}

.lead-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.lead-form select {
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* Mesma altura visual entre text, CPF, date, etc. (date padrão do browser costuma ser mais alto) */
    min-height: 2.75rem;
    line-height: 1.3;
}

.lead-form .lead-input-wrap--required > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]) {
    padding-right: 2rem;
}

.lead-form textarea {
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 6rem;
    line-height: 1.45;
}

/* Chrome / Edge / Safari: compacta o editor interno do type=date para alinhar à altura do texto */
.lead-form input[type="date"]::-webkit-datetime-edit,
.lead-form input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

.lead-form input[type="date"]::-webkit-datetime-edit-text {
    padding: 0 0.2em;
}

.lead-form input[type="date"]::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 0 0 0 6px;
    cursor: pointer;
    opacity: 0.9;
}

.lead-form input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.lead-form input[type="time"]::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 0 0 0 6px;
    cursor: pointer;
}

.lead-form input[type="checkbox"],
.lead-form input[type="radio"] {
    width: auto;
    min-width: 0;
}

.lead-form input[type="file"] {
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    max-width: 100%;
    box-sizing: border-box;
}

.lead-form .segmento-select {
    width: 100%;
    max-width: 100%;
}

/* CPF/CNPJ: feedback visual por ícone à direita do campo (texto só em .sr-only) */
.documento-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.documento-input-wrap input[type="text"] {
    padding-right: 2.85rem;
    width: 100%;
    box-sizing: border-box;
}

.documento-status-slot {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1.85rem;
    height: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
}

.documento-status-slot.is-check {
    color: #0f5132;
    font-size: 1.35rem;
    font-weight: 800;
    background: rgba(22, 163, 74, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.documento-status-slot.is-cross {
    color: #991b1b;
    font-size: 1.35rem;
    font-weight: 800;
    background: rgba(220, 38, 38, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.documento-status-slot .documento-spin {
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e4f1;
    border-top-color: #5f1cc8;
    border-radius: 50%;
    animation: documento-spin 0.65s linear infinite;
}

@keyframes documento-spin {
    to {
        transform: rotate(360deg);
    }
}

.lead-form .full {
    grid-column: 1 / -1;
}

.form-section {
    background: #fafafe;
    border: 1px solid #e5e4f1;
    border-radius: 10px;
    padding: 14px;
}

.form-section h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.form-section .signup-subsection {
    margin: 14px 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #2f2f4a;
}

.form-section p {
    margin: 0 0 10px;
    color: #666882;
    font-size: 0.9rem;
}

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

/* Cadastro consultor: Celular + Sexo na mesma linha */
.cadastro-celular-sexo-wrap {
    min-width: 0;
}
.cadastro-celular-sexo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}
@media (max-width: 520px) {
    .cadastro-celular-sexo-row {
        grid-template-columns: 1fr;
    }
}

.sexo-outro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 18, 32, 0.55);
    backdrop-filter: blur(2px);
}
.sexo-outro-overlay[hidden] {
    display: none !important;
}
.sexo-outro-dialog {
    width: min(100%, 420px);
    max-height: min(90vh, 480px);
    overflow: auto;
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    background: var(--card-bg, #fff);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.sexo-outro-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}
.sexo-outro-lead {
    margin: 0 0 0.75rem;
}
.sexo-outro-label {
    display: block;
    margin-bottom: 1rem;
}
.sexo-outro-textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    font: inherit;
    box-sizing: border-box;
}
.sexo-outro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

/* Evita que uma coluna “empurre” a outra; inputs encham a célula (ex.: date vs text) */
.lead-form .section-grid > * {
    min-width: 0;
}

.lead-form .section-grid > .full {
    min-width: 0;
}

/* Agência + dígito e conta + dígito na mesma linha (campo de dígito estreito) */
.banco-linha-com-dv {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
}

.banco-linha-com-dv .banco-linha-principal {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.banco-linha-com-dv .banco-linha-dv {
    flex: 0 0 4.85rem;
    width: 4.85rem;
    max-width: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.banco-linha-com-dv .banco-linha-dv > .muted {
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
}

.banco-linha-com-dv .banco-linha-dv .input-banco-digito {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.map-actions small {
    color: #666882;
}

.map-actions-hint {
    flex-basis: 100%;
    width: 100%;
}

/* Contorno roxo: especificidade acima de .lead-form input (borda cinza) */
.lead-form .map-coords-input {
    flex: 1 1 220px;
    min-width: min(260px, 100%);
    max-width: 420px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #7e3df1;
    background: #fff;
    color: #353850;
    font-family: inherit;
    font-size: 0.9rem;
    align-self: center;
}

.lead-form .map-coords-input::placeholder {
    color: #9a86c9;
}

.lead-form .map-coords-input:focus {
    outline: none;
    border-color: var(--purple-dark);
    box-shadow: 0 0 0 2px rgba(126, 43, 245, 0.22);
}

.map-wrap {
    border: 1px solid #d6d7e2;
    border-radius: 10px;
    overflow: hidden;
}

.map-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
}

.map-editor-toolbar label {
    font-weight: 600;
    color: #353850;
}

.map-editor-toolbar select {
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    background: #fff;
}

.map-editor-help {
    margin: 0 0 10px;
    color: #5f627c;
    font-size: 0.86rem;
}

.map-toolbar-layer-label {
    font-weight: 600;
    color: #353850;
    margin-left: 4px;
}

.map-route-include {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 10px;
    padding: 10px 12px;
    background: #f6f6fb;
    border: 1px solid #e6e7f0;
    border-radius: 10px;
    font-size: 0.84rem;
}

.map-route-include__title {
    font-weight: 600;
    color: #353850;
    width: 100%;
}

@media (min-width: 900px) {
    .map-route-include__title {
        width: auto;
    }
}

.map-route-include__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #454868;
}

.map-route-include__ann {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.map-route-include__ann label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#map-editor-export.btn-recording {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
    font-weight: 600;
}

.map-ann-popup-move {
    margin-top: 6px;
    font-size: 0.85rem;
}

.map-ann-popup-move select {
    margin-left: 6px;
    max-width: 180px;
}

.map-trajetos-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.map-trajetos-modal[hidden] {
    display: none !important;
}

.map-trajetos-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 28, 0.45);
}

.map-trajetos-modal__panel {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: min(80vh, 560px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.map-trajetos-modal__panel--wide {
    width: min(960px, 100%);
    max-height: min(90vh, 720px);
}

.map-trajetos-intro {
    margin: 0 0 12px;
}

.map-trajetos-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    background: #f6f6fb;
    border: 1px solid #e8e9f2;
    border-radius: 10px;
    font-size: 0.86rem;
}

.map-trajetos-filters__label {
    display: block;
    font-weight: 600;
    color: #353850;
    margin-bottom: 6px;
}

.map-trajetos-filters__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.map-trajetos-filters__range,
.map-trajetos-filters__ym {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.map-trajetos-filters__range label,
.map-trajetos-filters__ym label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-trajetos-filters input[type="date"],
.map-trajetos-filters select {
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 6px 8px;
    font: inherit;
}

.map-trajetos-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

@media (max-width: 820px) {
    .map-trajetos-body {
        grid-template-columns: 1fr;
    }
}

.map-trajetos-map-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.map-trajetos-map-head {
    font-weight: 600;
    font-size: 0.88rem;
    color: #353850;
}

.map-trajetos-preview-map {
    height: 260px;
    width: 100%;
    border: 1px solid #d6d7e2;
    border-radius: 10px;
    overflow: hidden;
    background: #e8ecf4;
}

.map-trajetos-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
}

.map-trajetos-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}


.map-trajetos-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.map-trajetos-modal__head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.map-trajetos-modal__x {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b6d85;
}

.map-trajetos-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    overflow: auto;
    max-height: 280px;
}

.map-trajetos-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 6px 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ececf3;
    font-size: 0.88rem;
}

.map-trajetos-list li .trajeto-row__meta {
    grid-column: 2 / -1;
    font-size: 0.8rem;
}

.map-trajetos-list li .trajeto-row__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

@media (min-width: 520px) {
    .map-trajetos-list li {
        grid-template-columns: auto auto 1fr auto;
        grid-template-rows: auto;
        align-items: center;
    }
    .map-trajetos-list li .trajeto-row__meta {
        grid-column: auto;
    }
    .map-trajetos-list li .trajeto-row__actions {
        grid-column: auto;
    }
}

.map-trajetos-list li:last-child {
    border-bottom: none;
}

.btn.danger-soft {
    background: #fff2f2;
    color: #b42318;
    border: 1px solid #f6c7c7;
}

.btn.danger-soft:hover {
    background: #ffe5e5;
}

.lead-row-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-icon-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    background: var(--purple-dark);
    border: 1px solid var(--purple-dark);
    box-shadow: 0 2px 6px rgba(95, 28, 200, 0.24);
    transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-icon-soft svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.btn-icon-soft:hover {
    color: #ffffff;
    background: #4f17a9;
    border-color: #4f17a9;
    transform: translateY(-1px);
}

.smart-stop-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-stop-marker span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0284c7;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.lead-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 12px;
}

.lead-detail-item {
    border: 1px solid #e2e4ee;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.lead-detail-item strong {
    display: block;
    font-size: 0.8rem;
    color: #666882;
    margin-bottom: 4px;
}

.endereco-bloco {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.endereco-bloco-titulo {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2b2d42;
}

.endereco-bloco-ajuda {
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: #666882;
    line-height: 1.35;
}

.endereco-bloco.full {
    min-width: 0;
}

.endereco-campos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 7rem);
    gap: 12px;
    align-items: end;
    width: 100%;
    max-width: 100%;
}

.endereco-campos-grid > label {
    min-width: 0;
}

.endereco-campos-grid > label input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.endereco-campos-grid .endereco-span2 {
    grid-column: 1 / -1;
}

.endereco-campos-grid .input-uf {
    text-transform: uppercase;
}

#mapa-endereco {
    width: 100%;
    height: 280px;
}

#mapa-leads {
    width: 100%;
    height: 420px;
}

/* Dashboard leve na página Acompanhar (distinto do painel Análises) */
.acompanhar-dash {
    display: grid;
    gap: 18px;
}

.acompanhar-dash__head h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #251f57;
}

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

.acompanhar-dash__kpis article {
    background: linear-gradient(145deg, #faf9ff 0%, #f3f0fc 100%);
    border: 1px solid #e3ddf8;
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(57, 39, 105, 0.05);
}

.acompanhar-dash__kpis article > span:first-of-type {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6a6d87;
}

.acompanhar-dash__kpis strong {
    font-size: 1.65rem;
    font-weight: 700;
    color: #2b1f52;
    line-height: 1.1;
}

.acompanhar-dash__hint {
    font-size: 0.82rem;
    color: #7a7c94;
}

.acompanhar-dash__camadas {
    display: grid;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid #ebe9f4;
}

.acompanhar-dash__camadas-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4d4f66;
}

.acompanhar-dash__bar {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8e6f0;
}

.acompanhar-dash__seg {
    min-width: 2px;
    transition: flex-grow 0.2s ease;
}

.acompanhar-dash__seg--a {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.acompanhar-dash__seg--b {
    background: linear-gradient(90deg, #eab308, #ca8a04);
}

.acompanhar-dash__seg--c {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.acompanhar-dash__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: #353850;
}

.acompanhar-dash__legend li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.acompanhar-dash__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.acompanhar-dash__dot--a {
    background: #16a34a;
}

.acompanhar-dash__dot--b {
    background: #ca8a04;
}

.acompanhar-dash__dot--c {
    background: #dc2626;
}

.lead-popup h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.lead-popup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.lead-popup-table th,
.lead-popup-table td {
    border-bottom: 1px solid #e6e8ef;
    padding: 4px 6px;
    text-align: left;
    vertical-align: top;
}

.lead-popup-table th {
    width: 110px;
    color: #4d4f66;
}

.lead-popup-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e8eaf2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Botões do popup: área completa clicável em qualquer ponto */
.lead-popup-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #141414;
    background: #f5d142;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.lead-popup-rotas-link {
    color: #141414;
    background: #f5d142;
}

.lead-popup-whatsapp-link {
    color: #fff;
    background: #25d366;
}

.lead-popup-action-link:hover {
    background: #e8c22e;
    color: #0a0a0a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.lead-popup-whatsapp-link:hover {
    background: #1fb457;
    color: #fff;
}

.lead-popup-action-link:focus-visible {
    outline: 2px solid #1f3f9d;
    outline-offset: 2px;
}

/* Análises IA — leads */
.ia-config-alert code {
    font-size: 0.88em;
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
}

.ia-sem-leads {
    margin: 0;
}

.ia-lead-detalhes {
    margin-top: 4px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid #e2e5f0;
    background: #f8f9fd;
}

.ia-lead-detalhes-titulo {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #1f2a4d;
}

.ia-lead-detalhes-ajuda {
    font-size: 0.82rem;
    color: #5c6078;
    margin: 0 0 14px;
    line-height: 1.45;
}

.ia-lead-detalhes-dl {
    display: grid;
    grid-template-columns: minmax(140px, 32%) 1fr;
    gap: 8px 16px;
    margin: 0;
    font-size: 0.88rem;
}

.ia-lead-detalhes-dl dt {
    margin: 0;
    font-weight: 600;
    color: #4a4e68;
}

.ia-lead-detalhes-dl dd {
    margin: 0;
    color: #2b2d42;
    word-break: break-word;
}

@media (max-width: 640px) {
    .ia-lead-detalhes-dl {
        grid-template-columns: 1fr;
    }

    .ia-lead-detalhes-dl dt {
        padding-top: 6px;
        border-top: 1px solid #e6e8ef;
    }

    .ia-lead-detalhes-dl dt:first-of-type {
        padding-top: 0;
        border-top: none;
    }
}

.ia-analise-form .form-actions {
    margin-top: 8px;
}

.analises-dashboard {
    margin-bottom: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9f7ff 100%);
    border: 1px solid #e8e1fb;
}

.analises-subtitulo {
    margin: 0;
    font-size: 1.35rem;
    color: #2a2460;
}

.analises-resumo {
    margin: 6px 0 14px;
    color: #5a5f7f;
    font-size: 0.92rem;
}

.analises-filtros {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.analises-filtros-top {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.analises-filtros-periodo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.analises-filtros label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: #353850;
    min-width: 0;
}

.analises-filtros select {
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.analises-filtros input[type="date"] {
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.analises-filtros-acoes {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.analises-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.analises-kpis article {
    background: #ffffff;
    border: 1px solid #e3ddf8;
    border-radius: 10px;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(57, 39, 105, 0.06);
}

.analises-kpis span {
    color: #666882;
    font-size: 0.82rem;
}

.analises-kpis strong {
    color: #251f57;
    font-size: 1.25rem;
}

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

.analise-chart-card {
    padding: 12px;
    min-height: 300px;
    border: 1px solid #e3ddf8;
    box-shadow: 0 6px 18px rgba(57, 39, 105, 0.06);
    min-width: 0;
    overflow: hidden;
}

.analise-chart-card.large {
    min-height: 320px;
}

.analise-chart-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #30344f;
}

.analise-chart-card canvas {
    width: 100%;
    height: 230px !important;
}

.ia-resultado-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e6e8ef;
}

.ia-resultado-titulo {
    font-size: 1.15rem;
    margin: 0 0 8px;
}

.ia-disclaimer {
    font-size: 0.82rem;
    color: #666882;
    margin: 0 0 14px;
}

.ia-markdown {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #2b2d42;
}

.ia-markdown h2 {
    font-size: 1.05rem;
    margin: 1.25em 0 0.5em;
}

.ia-markdown h2:first-child {
    margin-top: 0;
}

.ia-markdown ul,
.ia-markdown ol {
    margin: 0.5em 0 0.75em 1.25em;
}

.ia-markdown p {
    margin: 0.5em 0;
}

.ia-markdown strong {
    color: #1f3f9d;
}

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

.alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.alert.success {
    background: #e8f9ef;
    border: 1px solid #91d7ac;
    color: #1f6b3a;
}

.alert.error {
    background: #fff0f0;
    border: 1px solid #f0aaaa;
    color: #8c2626;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

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

.import-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--purple);
}

.import-loading__gear {
    display: inline-block;
    animation: import-gear-spin 1s linear infinite;
}

.import-loading__gear svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

@keyframes import-gear-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.footer-grid h4 {
    margin: 0 0 10px;
}

.footer-grid a {
    display: block;
    color: #333249;
    text-decoration: none;
    margin-bottom: 8px;
}

.payments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.payments span {
    border: 1px solid #d3d4dd;
    background: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .banner-cards,
    .reports-grid,
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .hero-grid,
    .status,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .consultor {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .consultor-actions {
        width: 100%;
    }

    .search input {
        min-width: 250px;
        width: 100%;
    }

    .title-row {
        display: grid;
    }

    .catalog-banner {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .analises-filtros {
        grid-template-columns: 1fr;
    }
    .analises-filtros-top,
    .analises-filtros-periodo {
        grid-template-columns: 1fr;
    }

    .analises-kpis {
        grid-template-columns: 1fr;
    }

    .analises-graficos {
        grid-template-columns: 1fr;
    }

    .map-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Finalizar contrato / PDF */
.venda-contrato-logo-wrap {
    text-align: center;
    margin: 0 0 1rem;
}

.venda-contrato-logo {
    max-width: min(280px, 100%);
    height: auto;
    display: inline-block;
}

.venda-contrato-doc-title {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0 0 1.25rem;
    font-weight: 700;
}

.venda-contrato-preview {
    border: 1px solid var(--border, #e2e2e8);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    max-height: 65vh;
    overflow: auto;
    background: #fff;
}

.venda-contrato-preview-card .c-contract {
    font-size: 0.95rem;
}

.venda-contrato-sign {
    display: grid;
    gap: 1rem;
    max-width: 520px;
}

.venda-contrato-sign-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.venda-contrato-sign-actions .btn {
    flex: 1 1 140px;
}

.mp-adesao-pix-wrap {
    text-align: center;
    padding: 4px 0 0;
}

.mp-adesao-pix-valor {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #2d3748;
}

.mp-adesao-pix-qr {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    margin: 0 0 14px;
}

.mp-adesao-pix-qr canvas,
.mp-adesao-pix-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--line, #e2e8f0);
}

.mp-adesao-pix-copy {
    margin-bottom: 8px;
}

.venda-contrato-sign-card {
    background: #fafafe;
    border: 1px solid #e5e4f1;
    border-radius: 10px;
}

.venda-contrato-sign-head {
    margin-bottom: 12px;
}

.venda-contrato-sign-head h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.venda-contrato-sign-head .muted {
    margin: 0;
    color: #666882;
    font-size: 0.9rem;
}

.venda-contrato-sign-field {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: #353850;
}

.venda-contrato-sign input[type="password"] {
    width: 100%;
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.venda-contrato-sign-note {
    margin-top: 10px;
}

.venda-contrato-lead-card {
    background: #fafafe;
    border: 1px solid #e5e4f1;
    border-radius: 10px;
}

.venda-contrato-lead-head {
    margin-bottom: 12px;
}

.venda-contrato-lead-head h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.venda-contrato-lead-head .muted {
    margin: 0 0 10px;
    color: #666882;
    font-size: 0.9rem;
}

.venda-contrato-lead-note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f4f5fb;
    border: 1px solid #e5e7f2;
    color: #535774;
    font-size: 0.9rem;
}

.venda-contrato-lead-field {
    display: grid;
    gap: 8px;
}

.venda-contrato-lead-field > span {
    font-weight: 600;
    color: #353850;
}

.venda-contrato-pick select {
    width: 100%;
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
    color: #353850;
}

.venda-contrato-tef-wrap {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line, #e2e8f0);
}

.venda-contrato-tef-head {
    margin-bottom: 1rem;
}

.venda-contrato-tef-titulo {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #2d3748;
}

.venda-contrato-tef-form {
    display: grid;
    gap: 1rem;
}

.venda-contrato-tef-options {
    display: grid;
    gap: 0.65rem;
}

.venda-contrato-tef-option {
    display: block;
    cursor: pointer;
    margin: 0;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.venda-contrato-tef-option:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.venda-contrato-tef-option:has(.venda-contrato-tef-option-input:checked) {
    border-color: var(--purple, #7b2bf9);
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    box-shadow: 0 0 0 1px rgba(123, 43, 249, 0.12);
}

.venda-contrato-tef-option-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.venda-contrato-tef-option-card {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.85rem 1.1rem 0.85rem 2.75rem;
    position: relative;
}

.venda-contrato-tef-option-card::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 2px solid #cbd5e0;
    background: #fff;
    box-sizing: border-box;
}

.venda-contrato-tef-option:has(.venda-contrato-tef-option-input:checked) .venda-contrato-tef-option-card::before {
    border-color: var(--purple, #7b2bf9);
    background: radial-gradient(circle, var(--purple, #7b2bf9) 0%, var(--purple, #7b2bf9) 45%, #fff 46%, #fff 100%);
}

.venda-contrato-tef-option-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: #1a202c;
}

.venda-contrato-tef-submit {
    justify-self: start;
}

.venda-contrato-tef-readonly {
    margin: 0;
    font-size: 0.95rem;
}

p.small {
    font-size: 0.88rem;
}

.contratos-page .contratos-table-wrap {
    margin-top: 16px;
}

.contratos-table .contratos-link-cell {
    min-width: 220px;
    max-width: 340px;
}

.contratos-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.contratos-link-input {
    flex: 1 1 160px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d6d7e2;
    border-radius: 8px;
    font-size: 0.82rem;
    background: #fafbff;
    color: #353850;
}

.contratos-acoes {
    white-space: nowrap;
    vertical-align: top;
}

.contratos-acoes .contratos-form-link {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 6px;
}

.contratos-acoes > .btn.small {
    margin-right: 8px;
    margin-bottom: 6px;
}

.contrato-visualizar-toolbar-card .contrato-visualizar-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
}

.contrato-visualizar-download-form {
    display: inline-block;
    margin: 0;
}

.contrato-visualizar-sub {
    margin: 0.25rem 0 0;
}

.contratos-acoes .btn.small {
    font-size: 0.82rem;
    padding: 8px 12px;
}

/* ========== login.php — body.login-page-l1 (cores fixas; não depende de 2º CSS) ========== */

body.login-body.login-page-l1 {
    margin: 0;
    background: #ffffff;
    font-family: "Inter", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #000000;
}

body.login-page-l1 .slink-container {
    max-width: 1120px;
    width: 100%;
    background: #ffffff;
    border-radius: 2rem;
    box-shadow:
        0 25px 45px -12px rgba(0, 0, 0, 0.14),
        0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.2s ease;
}

body.login-page-l1 .slink-grid {
    display: flex;
    flex-wrap: wrap;
}

body.login-page-l1 .brand-area {
    flex: 1.1;
    background: #f2d633;
    padding: 3rem 2.5rem;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.login-page-l1 .brand-area::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -15%;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
}

body.login-page-l1 .brand-area::after {
    content: "";
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

body.login-page-l1 .logo-main {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

body.login-page-l1 .logo-main i {
    font-size: 2.2rem;
    color: #7b2bf9;
}

body.login-page-l1 .logo-main span {
    color: #000000;
}

body.login-page-l1 .tagline {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.72);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

body.login-page-l1 .headline {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    color: #000000;
}

body.login-page-l1 .features-list {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

body.login-page-l1 .features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
}

body.login-page-l1 .features-list li i {
    color: #7b2bf9;
    font-size: 1.25rem;
    width: 1.6rem;
}

body.login-page-l1 .features-list li .login-feature-icon-svg-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    flex-shrink: 0;
    color: #7b2bf9;
}

body.login-page-l1 .features-list li .login-feature-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    display: block;
}

body.login-page-l1 .form-area {
    flex: 1;
    padding: 3rem 2.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.login-page-l1 .form-header {
    margin-bottom: 2rem;
}

body.login-page-l1 .greeting {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

body.login-page-l1 .greeting i {
    color: #7b2bf9;
    font-size: 1.8rem;
    margin-right: 6px;
}

body.login-page-l1 .sub-greeting {
    color: rgba(0, 0, 0, 0.75);
    font-size: 0.95rem;
    font-weight: 400;
    border-left: 3px solid #7b2bf9;
    padding-left: 12px;
    margin-top: 8px;
}

body.login-page-l1 .l1-login-alert {
    margin: 0 0 1rem;
}

body.login-page-l1 .alert.error {
    background: #ffffff;
    border: 1px solid #7b2bf9;
    color: #000000;
}

body.login-page-l1 .input-group {
    margin-bottom: 1.8rem;
}

body.login-page-l1 .input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    margin-bottom: 0.5rem;
}

body.login-page-l1 .input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

body.login-page-l1 .input-icon > i {
    position: absolute;
    left: 16px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 1.1rem;
    pointer-events: none;
}

body.login-page-l1 .input-icon input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 1.2rem;
    background-color: #ffffff;
    transition: all 0.2s;
    color: #000000;
    font-weight: 500;
}

body.login-page-l1 .input-icon input:focus {
    outline: none;
    border-color: #7b2bf9;
    box-shadow: 0 0 0 3px rgba(123, 43, 249, 0.22);
}

body.login-page-l1 .input-icon input::placeholder {
    color: rgba(0, 0, 0, 0.42);
    font-weight: 400;
}

body.login-page-l1 .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

body.login-page-l1 .btn {
    flex: 1;
    text-align: center;
    padding: 0.9rem 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: "Inter", sans-serif;
    border: none;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

body.login-page-l1 .btn-primary {
    background: #7b2bf9;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(123, 43, 249, 0.35);
}

body.login-page-l1 .btn-primary:hover {
    background: #6820e0;
    transform: translateY(-2px);
}

body.login-page-l1 .btn-outline {
    background: #ffffff;
    border: 1.5px solid #7b2bf9;
    color: #7b2bf9;
}

body.login-page-l1 .btn-outline:hover {
    border-color: #6820e0;
    background: rgba(123, 43, 249, 0.08);
    color: #6820e0;
}

body.login-page-l1 .contract-link {
    margin-top: 1.8rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 1.5rem;
}

body.login-page-l1 .contract-link a {
    color: #7b2bf9;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

body.login-page-l1 .contract-link a i {
    font-size: 0.8rem;
}

body.login-page-l1 .contract-link a:hover {
    color: #6820e0;
    gap: 10px;
}

@media (max-width: 800px) {
    body.login-page-l1 .slink-grid {
        flex-direction: column;
    }

    body.login-page-l1 .brand-area {
        padding: 2rem 1.8rem;
        text-align: center;
    }

    body.login-page-l1 .features-list li {
        justify-content: center;
    }

    body.login-page-l1 .form-area {
        padding: 2rem 1.8rem;
    }

    body.login-page-l1 .greeting {
        font-size: 1.6rem;
    }

    body.login-page-l1 .actions {
        flex-direction: column;
    }

    body.login-page-l1 .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.login-body.login-page-l1 {
        padding: 1rem;
    }

    body.login-page-l1 .headline {
        font-size: 1.5rem;
    }

    body.login-page-l1 .logo-main {
        font-size: 1.9rem;
        justify-content: center;
    }
}

/* Mapa da rede (MLM) + aprovações */
.quick-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rede-page .rede-header {
    margin-bottom: 18px;
}

.rede-page .muted {
    color: var(--muted);
    max-width: 52rem;
    line-height: 1.45;
}

.rede-forest.card {
    padding: 20px 24px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.rede-ul,
.rede-ul ul {
    list-style: none;
    margin: 0;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(123, 43, 249, 0.2);
}

.rede-ul-root {
    padding-left: 0;
    border-left: none;
}

.rede-li {
    margin: 0.35rem 0;
}

.rede-node {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    text-align: left;
    width: 100%;
    max-width: 28rem;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rede-node:hover {
    border-color: rgba(123, 43, 249, 0.45);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.rede-node-id {
    font-weight: 700;
    color: var(--purple);
    font-size: 0.9rem;
}

.rede-node-nome {
    font-weight: 600;
    flex: 1;
    min-width: 8rem;
}

.rede-node-nivel {
    font-size: 0.82rem;
    color: var(--muted);
}

.rede-root-label {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--muted);
}

.rede-empty {
    padding: 16px;
    color: var(--muted);
}

.rede-detalhe {
    padding: 18px;
    max-width: 28rem;
}

.rede-detalhe h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.rede-dl {
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
}

.rede-dl dt {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85rem;
}

.rede-dl dd {
    margin: 0;
}

.aprovacoes-page {
    padding-bottom: 2.5rem;
}

.aprovacoes-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
    padding: 1.25rem 0 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.aprovacoes-title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--text);
}

.aprovacoes-intro-lead {
    margin: 0 0 0.5rem;
    max-width: 44rem;
    line-height: 1.55;
    font-size: 1.02rem;
}

.aprovacoes-intro-tip {
    margin: 0;
    max-width: 40rem;
}

.aprovacoes-fila-count {
    margin: 0;
    align-self: center;
    font-size: 0.88rem;
    font-weight: 650;
    color: #1e3a5f;
    background: linear-gradient(135deg, #e8f4ff 0%, #f0e8ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    white-space: nowrap;
}

.aprovacoes-admin-msg {
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fafbff 0%, #f6f7fb 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.aprovacoes-admin-msg-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.aprovacoes-empty {
    text-align: center;
    padding: 2.25rem 1.5rem;
    max-width: 32rem;
    margin: 0 auto 2rem;
    border: 1px dashed rgba(99, 102, 241, 0.28);
    background: #fbfcfe;
}

.aprovacoes-empty-title {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.aprovacoes-empty .muted {
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.aprovacoes-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin: 0;
}

.aprovacoes-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.aprovacoes-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.aprovacoes-page .aprovacao-card {
    padding: 1.35rem 1.4rem 1.5rem;
    margin-bottom: 0;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.aprovacao-nome {
    font-size: 1.28rem;
    font-weight: 750;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.aprovacao-card-lead {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 40rem;
}

.aprovacao-detalhes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
    margin: 1.15rem 0 1.35rem;
    padding: 1rem 1.05rem;
    background: rgba(99, 102, 241, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.aprovacao-field--wide {
    grid-column: 1 / -1;
}

.aprovacao-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.aprovacao-field-val {
    font-size: 0.98rem;
    font-weight: 550;
    color: var(--text);
    line-height: 1.45;
    word-break: break-word;
}

.aprovacao-field-val a {
    color: #4338ca;
    text-decoration: none;
    font-weight: 600;
}

.aprovacao-field-val a:hover {
    text-decoration: underline;
}

.aprovacao-meta {
    margin: 0 0 12px;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.5;
}

.aprovacao-acoes {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: 0.25rem;
    padding-top: 1.15rem;
}

.aprovacao-acoes-primary {
    flex: 1 1 220px;
    min-width: min(100%, 260px);
}

.aprovacao-acoes-primary .btn.primary {
    width: 100%;
    max-width: 320px;
}

.aprovacao-acoes-hint {
    margin: 0.45rem 0 0;
    max-width: 28rem;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .aprovacao-acoes {
        flex-direction: column;
        align-items: stretch;
    }

    .aprovacao-acoes-primary .btn.primary {
        max-width: none;
    }

    .aprovacao-acoes .btn.danger-soft {
        width: 100%;
    }

    .aprovacoes-fila-count {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

.rede-pendentes-section {
    margin: 10px 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
}

.rede-pendentes-title {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.rede-pendentes-line1,
.rede-pendentes-line2 {
    display: block;
}

.rede-pendentes-banner {
    min-height: 160px;
    border-radius: 12px;
    color: #fff;
    padding: 24px 28px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(120deg, #2d8fc7 0%, #2d8fc7 40%, #2052af 100%);
}

.rede-pendentes-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1f3d8f;
    font-size: 0.85rem;
    font-weight: 700;
}

.rede-pendentes-lead {
    margin: 0 0 16px;
    max-width: 60rem;
    color: #2f3f62;
}

.rede-badge-pendente {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 11px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff8e6 0%, #fdecc4 100%);
    color: #92400e;
    border: 1px solid rgba(234, 179, 8, 0.45);
    margin-bottom: 10px;
}

.rede-aprovacao-head {
    margin-bottom: 0.15rem;
}

.rede-aprovacao-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.rede-pendentes-foot {
    margin: 16px 0 0;
    font-size: 0.92rem;
}

.rede-pendentes-lista .rede-aprovacao-card {
    border: 1px dashed rgba(32, 82, 175, 0.45);
}

.rede-arvore-titulo {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--text);
}

.rede-arvore-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 10px;
}

.rede-org-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(123, 43, 249, 0.08);
    border: 1px solid rgba(123, 43, 249, 0.15);
}

.rede-zoom-btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 8px;
    border: 1px solid rgba(123, 43, 249, 0.35);
    border-radius: 8px;
    background: var(--surface);
    color: var(--purple);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.rede-zoom-btn:hover {
    background: rgba(123, 43, 249, 0.1);
}

.rede-zoom-btn--reset {
    font-size: 0.72rem;
    font-weight: 600;
    min-width: auto;
    padding: 0 10px;
}

.rede-zoom-pct {
    min-width: 2.75rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--muted);
}

/* Organograma estilo ícone: círculo + silhueta, linhas só em U ortogonal */
.rede-page--pyramid .rede-forest.card {
    padding: 20px 16px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.rede-page--pyramid .rede-org-viewport {
    overflow: auto;
    max-height: min(78vh, 920px);
    overscroll-behavior: contain;
    position: relative;
}

.rede-page--pyramid .rede-org-scale {
    --rede-org-stroke: #0f172a;
    font-size: var(--rede-org-fs, 10px);
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
    padding: 0.5em 0.4em 0.75em;
    box-sizing: border-box;
}

.rede-page--pyramid .rede-org-scale .rede-root-label {
    margin: 0 0 0.65em;
    font-size: 1.05em;
    padding: 0 0.5em;
    color: #475569;
    font-weight: 500;
}

.rede-page--pyramid .rede-org-scale .rede-ul,
.rede-page--pyramid .rede-org-scale .rede-ul ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}

.rede-page--pyramid .rede-org-scale .rede-ul-root {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
}

.rede-page--pyramid .rede-org-scale .rede-li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    position: relative;
    max-width: 100%;
}

.rede-page--pyramid .rede-org-scale .rede-no-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nó: círculo com traço forte + texto abaixo (como pictograma hierárquico) */
.rede-page--pyramid .rede-org-scale .rede-node {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: auto;
    min-width: 7.5em;
    max-width: 10em;
    gap: 0.28em;
    padding: 0.2em 0.35em 0.35em;
    background: transparent;
    line-height: 1.15;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--rede-org-stroke);
    transition: opacity 0.12s;
}

.rede-page--pyramid .rede-org-scale .rede-node:hover {
    opacity: 0.92;
}

.rede-page--pyramid .rede-org-scale .rede-node:hover .rede-node-avatar {
    border-color: var(--purple, #6d22e8);
    color: var(--purple, #6d22e8);
}

.rede-page--pyramid .rede-org-scale .rede-node-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25em;
    height: 3.25em;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--rede-org-stroke);
    background: #fff;
    color: var(--rede-org-stroke);
}

.rede-page--pyramid .rede-org-scale .rede-node-avatar-svg {
    width: 58%;
    height: 58%;
    display: block;
}

.rede-page--pyramid .rede-org-scale .rede-node-avatar--foto {
    padding: 0;
    overflow: hidden;
    background: #e2e8f0;
}

.rede-page--pyramid .rede-org-scale .rede-node-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.rede-page--pyramid .rede-org-scale .rede-node--depth-0 .rede-node-avatar {
    border-color: var(--purple, #6d22e8);
    color: var(--purple, #6d22e8);
}

.rede-page--pyramid .rede-org-scale .rede-node-id {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #334155;
}

.rede-page--pyramid .rede-org-scale .rede-node--depth-0 .rede-node-id {
    color: var(--purple, #6d22e8);
}

.rede-page--pyramid .rede-org-scale .rede-node-nome {
    flex: unset;
    min-width: 0;
    width: 100%;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.15;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
    color: #0f172a;
}

.rede-page--pyramid .rede-org-scale .rede-node-nivel {
    width: 100%;
    font-size: 0.78em;
    color: #64748b;
}

/* Tronco vertical sob o nó até a trave dos filhos */
.rede-page--pyramid .rede-org-scale .rede-li:has(> .rede-ul--nest) > .rede-no-stack > .rede-node::after {
    content: "";
    width: 2px;
    height: 0.75em;
    margin-top: 0.15em;
    background: var(--rede-org-stroke);
    flex-shrink: 0;
    border-radius: 1px;
}

.rede-page--pyramid .rede-org-scale .rede-li > .rede-ul--nest {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0.65em 1.05em;
    margin: 0;
    padding: 0.95em 0.2em 0.2em;
    position: relative;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    background: transparent;
}

/* Trave horizontal + quedas por filho (layout tipo ícone) */
.rede-page--pyramid .rede-org-scale .rede-li > .rede-ul--nest::before {
    display: block;
    content: "";
    position: absolute;
    top: 0.48em;
    left: max(6%, 0.45em);
    right: max(6%, 0.45em);
    height: 2px;
    background: var(--rede-org-stroke);
    border-radius: 1px;
}

.rede-page--pyramid .rede-org-scale .rede-li > .rede-ul--nest:has(> .rede-li:only-child)::before {
    display: none;
}

.rede-page--pyramid .rede-org-scale .rede-li > .rede-ul--nest > .rede-li::before {
    content: "";
    display: block;
    width: 2px;
    height: 0.55em;
    margin: 0 auto 0.12em;
    background: var(--rede-org-stroke);
    border-radius: 1px;
}

.rede-page--pyramid .rede-org-scale .rede-li > .rede-ul--nest:has(> .rede-li:only-child) > .rede-li::before {
    height: 0.75em;
    margin-bottom: 0.08em;
}

/* Painel de dados: popover sobre o organograma (posição via JS + scroll), fora do fluxo da árvore */
.rede-page--pyramid .rede-org-viewport .rede-detalhe--popover {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-50%);
    width: min(16em, calc(100vw - 48px));
    max-width: 85vw;
    margin: 0;
    padding: 0.55em 0.65em 0.6em;
    z-index: 50;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    background: #fff;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.2);
    pointer-events: auto;
}

.rede-page--pyramid .rede-detalhe-inline-title {
    margin: 0 0 0.4em;
    font-size: 0.88em;
    font-weight: 650;
    color: #0f172a;
}

.rede-page--pyramid .rede-org-viewport .rede-detalhe--popover .rede-dl {
    margin: 0 0 0.45em;
    font-size: 0.82em;
    gap: 4px 10px;
}

.rede-page--pyramid .rede-org-viewport .rede-detalhe--popover .rede-dl dt {
    font-size: 0.78em;
}

.rede-page--pyramid .rede-org-viewport .rede-detalhe--popover .rede-dl dd {
    word-break: break-word;
}

.rede-page--pyramid .rede-org-viewport .rede-detalhe--popover .rede-detalhe-fechar {
    width: 100%;
    margin-top: 0.1em;
    padding: 0.35em 0.5em;
    font-size: 0.8em;
}

/* Painel consultor (mesma família visual do admin) */
.consultor-painel-body {
    background: linear-gradient(165deg, #f7f4ff 0%, #f0f3fa 48%, #faf8fc 100%);
    scroll-behavior: smooth;
}

.consultor-painel-main {
    padding-bottom: 56px;
}

.ganhos-bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.ganhos-bonus-item {
    padding: 14px;
    display: grid;
    gap: 6px;
}

.ganhos-bonus-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted, #5c5568);
}

tr.catalogo-nivel-atual {
    background: rgba(109, 34, 232, 0.09);
}

tr.catalogo-nivel-atual td:first-child {
    font-weight: 700;
}

.admin-adimpl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-adimpl-table th,
.admin-adimpl-table td {
    border: 1px solid var(--line, #e8e6ef);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-adimpl-table th {
    background: rgba(109, 34, 232, 0.06);
    font-weight: 650;
}

/* Painel administrador do sistema */
.admin-sistema-body {
    background: linear-gradient(165deg, #f7f4ff 0%, #f0f3fa 48%, #faf8fc 100%);
    scroll-behavior: smooth;
}

/* Painel do sistema — experiência mais clara (mantém cores Slink) */
.admin-sistema-layout .admin-sistema-main {
    max-width: min(1100px, 100%);
}

.admin-sistema-layout .admin-sistema-hero.card {
    position: relative;
    overflow: hidden;
    padding: 22px 22px 20px;
    border-radius: 16px;
    border: 1px solid rgba(123, 43, 249, 0.14);
    background: linear-gradient(145deg, #ffffff 0%, #fbf9ff 40%, #f3edff 100%);
    box-shadow: 0 12px 44px rgba(104, 32, 224, 0.09);
}

.admin-sistema-layout .admin-sistema-hero.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: min(48%, 320px);
    height: 120%;
    background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(123, 43, 249, 0.11) 0%, transparent 72%);
    pointer-events: none;
}

.admin-sistema-welcome {
    position: relative;
    z-index: 1;
}

.admin-sistema-quicktip {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    padding: 12px 14px 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(123, 43, 249, 0.14);
    background: linear-gradient(180deg, rgba(243, 239, 230, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted, #4a5568);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.admin-sistema-quicktip::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(145deg, var(--purple, #7b2bf9), var(--purple-dark, #6820e0));
    box-shadow: 0 0 0 3px rgba(123, 43, 249, 0.15);
}

.admin-sistema-quicktip__text {
    flex: 1;
    min-width: 0;
}

@media (min-width: 900px) {
    .admin-sistema-layout .admin-sistema-toc {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        align-items: stretch;
    }
}

.admin-sistema-layout .admin-toc-cluster {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(123, 43, 249, 0.1);
    box-shadow: 0 2px 12px rgba(80, 60, 120, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-sistema-layout .admin-toc-cluster:hover {
    border-color: rgba(123, 43, 249, 0.2);
    box-shadow: 0 6px 20px rgba(80, 60, 120, 0.08);
}

.admin-sistema-layout .admin-toc-cluster-title {
    margin-bottom: 12px;
    color: var(--muted, #4a5568);
}

.admin-sistema-layout .admin-sistema-section.card {
    padding: 22px 22px 24px;
    border-radius: 14px;
    border: 1px solid rgba(123, 43, 249, 0.1);
    background: var(--surface, #fff);
    box-shadow: 0 4px 22px rgba(80, 60, 120, 0.06);
}

.admin-sistema-layout .admin-sistema-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(123, 43, 249, 0.1);
    font-size: clamp(1.08rem, 1.5vw, 1.22rem);
}

.admin-sistema-layout .admin-sistema-section h2::before {
    content: "";
    width: 4px;
    min-height: 1.15em;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--purple, #7b2bf9), rgba(123, 43, 249, 0.45));
    flex-shrink: 0;
}

.admin-sistema-layout .admin-checkbox-grid {
    gap: 12px 18px;
}

.admin-sistema-layout .admin-check-label {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(247, 250, 252, 0.65);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-sistema-layout .admin-check-label:hover {
    border-color: rgba(123, 43, 249, 0.22);
    background: rgba(247, 242, 255, 0.75);
}

.admin-sistema-layout .admin-sistema-nav-actions .logout-link {
    border-radius: 999px;
    padding: 7px 14px;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-sistema-layout .admin-sistema-nav-actions .logout-link:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.65);
}

.admin-sistema-top {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 rgba(109, 34, 232, 0.08);
}

.admin-sistema-top .admin-sistema-nav-inner {
    height: auto;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.admin-sistema-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.admin-sistema-top .admin-sistema-nav-user {
    color: rgba(255, 255, 255, 0.88);
}

.admin-sistema-nav-user {
    flex: 1 1 180px;
    font-size: 0.82rem;
    line-height: 1.35;
    min-width: 0;
}

.admin-sistema-nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.admin-sistema-main {
    padding-bottom: 56px;
}

.admin-sistema-hero {
    border: 1px solid rgba(109, 34, 232, 0.12);
    box-shadow: 0 8px 28px rgba(80, 60, 120, 0.08);
    background: linear-gradient(135deg, #fff 0%, #faf8ff 100%);
}

.admin-sistema-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-sistema-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--purple, #6d22e8);
    background: rgba(109, 34, 232, 0.1);
    padding: 5px 11px;
    border-radius: 999px;
}

.admin-sistema-back-top {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple, #6d22e8);
    text-decoration: none;
}

.admin-sistema-back-top:hover {
    text-decoration: underline;
}

.admin-sistema-title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text, #1a1523);
}

.admin-sistema-lead {
    margin: 0 0 12px;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--text, #2a2438);
    max-width: 58rem;
}

.admin-sistema-id {
    font-variant-numeric: tabular-nums;
    color: var(--purple, #6d22e8);
}

.admin-sistema-hint {
    margin: 0 0 8px;
    font-size: 0.92rem;
}

.admin-sistema-toc {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line, #e8e6ef);
}

.admin-toc-cluster {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(109, 34, 232, 0.09);
}

.admin-toc-cluster-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted, #6b6578);
    margin-bottom: 10px;
}

.admin-toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.admin-sistema-toc a {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    color: var(--purple, #6d22e8);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(109, 34, 232, 0.08);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.admin-sistema-toc a:hover {
    background: rgba(109, 34, 232, 0.14);
    border-color: rgba(109, 34, 232, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

.admin-consultor-painel-subnav {
    margin: 0 auto 1.25rem;
    max-width: min(1100px, 100%);
}

.admin-sistema-toc a.admin-consultor-painel-subnav--current {
    background: rgba(109, 34, 232, 0.22);
    border-color: rgba(109, 34, 232, 0.35);
}

/* Painel Consultor — página de ganhos/pagamentos */
.admin-consultor-pagamentos-page .admin-consultor-pagamentos-main {
    max-width: min(1080px, 100%);
}

.admin-consultor-pagamentos-hero.admin-sistema-hero {
    border: 1px solid rgba(123, 43, 249, 0.14);
    background: linear-gradient(145deg, #ffffff 0%, #f8f4ff 48%, #faf8ff 100%);
}

.admin-consultor-pagamentos-hero__lead {
    margin-bottom: 0;
    color: var(--muted, #4a5568);
}

.admin-consultor-pagamentos-hero__lead strong {
    color: var(--text, #2d3748);
}

.admin-consultor-pagamentos__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

@media (max-width: 820px) {
    .admin-consultor-pagamentos__stats {
        grid-template-columns: 1fr;
    }
}

.admin-consultor-pagamentos__stat {
    margin: 0;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(123, 43, 249, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, rgba(247, 242, 255, 0.65) 100%);
    box-shadow: 0 2px 12px rgba(80, 60, 120, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-consultor-pagamentos__stat--total {
    border-color: rgba(123, 43, 249, 0.22);
    background: linear-gradient(145deg, rgba(123, 43, 249, 0.07) 0%, #ffffff 55%);
    box-shadow: 0 4px 18px rgba(104, 32, 224, 0.1);
}

.admin-consultor-pagamentos__stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted, #4a5568);
}

.admin-consultor-pagamentos__stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text, #2d3748);
}

.admin-consultor-pagamentos__stat-value--xl {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    color: var(--purple, #7b2bf9);
}

.admin-consultor-pagamentos__section-head {
    margin-bottom: 4px;
}

.admin-consultor-pagamentos__section .admin-section-intro {
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.admin-consultor-pagamentos__form {
    margin-top: 4px;
}

.admin-consultor-pagamentos__grid {
    display: grid;
    grid-template-columns: minmax(0, 7rem) minmax(0, 14rem) minmax(0, 1fr) minmax(0, 20rem);
    gap: 14px 16px;
    align-items: end;
}

@media (max-width: 960px) {
    .admin-consultor-pagamentos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-consultor-pagamentos__field--grow,
    .admin-consultor-pagamentos__field--checkbox {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .admin-consultor-pagamentos__grid {
        grid-template-columns: 1fr;
    }
}

.admin-consultor-pagamentos__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-consultor-pagamentos__field--grow {
    grid-column: span 1;
}

.admin-consultor-pagamentos__field--checkbox {
    justify-content: flex-end;
    padding-bottom: 2px;
}

.admin-consultor-pagamentos__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted, #4a5568);
}

.admin-consultor-pagamentos__label-hint {
    font-weight: 500;
    opacity: 0.85;
}

.admin-consultor-pagamentos-page .admin-consultor-pagamentos__field input[type="number"],
.admin-consultor-pagamentos-page .admin-consultor-pagamentos__field input[type="search"],
.admin-consultor-pagamentos-page .admin-consultor-pagamentos__field select {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line, #e2e8f0);
    background: var(--input-bg, #ebf2fa);
    padding: 0 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text, #2d3748);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-consultor-pagamentos-page .admin-consultor-pagamentos__field input:focus,
.admin-consultor-pagamentos-page .admin-consultor-pagamentos__field select:focus {
    outline: none;
    border-color: rgba(123, 43, 249, 0.45);
    box-shadow: 0 0 0 3px rgba(123, 43, 249, 0.12);
}

.admin-consultor-pagamentos__checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line, #e2e8f0);
    background: var(--beige, #f3efe6);
}

.admin-consultor-pagamentos__checkbox-wrap input {
    margin-top: 4px;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--purple, #7b2bf9);
    cursor: pointer;
}

.admin-consultor-pagamentos__checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text, #2d3748);
    cursor: pointer;
    font-weight: 500;
}

.admin-consultor-pagamentos__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(123, 43, 249, 0.08);
}

.admin-consultor-pagamentos__btn-csv.btn.outline {
    border-color: rgba(123, 43, 249, 0.35);
}

.admin-consultor-pagamentos__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(123, 43, 249, 0.05);
    border: 1px solid rgba(123, 43, 249, 0.1);
}

.admin-consultor-pagamentos__competencia {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.admin-consultor-pagamentos__competencia-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted, #4a5568);
}

.admin-consultor-pagamentos__competencia-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text, #2d3748);
}

.admin-consultor-pagamentos__competencia-ym {
    font-weight: 600;
    color: var(--purple, #7b2bf9);
    font-variant-numeric: tabular-nums;
}

.admin-consultor-pagamentos__count {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted, #4a5568);
}

.admin-consultor-pagamentos__table-wrap {
    border-radius: 12px;
    border: 1px solid rgba(123, 43, 249, 0.1);
    overflow: hidden;
    background: var(--surface, #fff);
}

.admin-consultor-pagamentos__table {
    margin: 0;
}

.admin-consultor-pagamentos__table thead th {
    background: linear-gradient(180deg, rgba(123, 43, 249, 0.09) 0%, rgba(123, 43, 249, 0.04) 100%);
    color: var(--text, #2d3748);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(123, 43, 249, 0.15);
    padding: 14px 12px;
}

.admin-consultor-pagamentos__table tbody td {
    padding: 13px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--line, #e2e8f0);
}

.admin-consultor-pagamentos__table tbody tr:nth-child(even) td {
    background: rgba(247, 242, 255, 0.35);
}

.admin-consultor-pagamentos__table tbody tr:hover td {
    background: rgba(123, 43, 249, 0.06);
}

.admin-consultor-pagamentos__th-num,
.admin-consultor-pagamentos__td-money {
    text-align: right;
}

.admin-consultor-pagamentos__td-name {
    font-weight: 600;
    color: var(--text, #2d3748);
}

.admin-consultor-pagamentos__td-mono {
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
    color: var(--muted, #4a5568);
}

.admin-consultor-pagamentos__money {
    display: block;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--purple, #7b2bf9);
    font-size: 1.02rem;
}

.admin-consultor-pagamentos__money-detail {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted, #4a5568);
    font-variant-numeric: tabular-nums;
}

.admin-consultor-pagamentos__empty {
    text-align: center;
    padding: 36px 20px 28px;
    border-radius: 12px;
    border: 1px dashed rgba(123, 43, 249, 0.22);
    background: rgba(247, 242, 255, 0.5);
}

.admin-consultor-pagamentos__empty-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text, #2d3748);
}

.admin-sistema-flash {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.admin-section-intro {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text, #2a2438);
}

.admin-sistema-section {
    margin-bottom: 22px;
    scroll-margin-top: 88px;
    border: 1px solid rgba(109, 34, 232, 0.08);
    box-shadow: 0 4px 20px rgba(80, 60, 120, 0.05);
}

.admin-sistema-section h2 {
    margin-top: 0;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text, #1a1523);
}

.admin-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px 16px;
    margin-top: 12px;
}

.admin-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.92rem;
    cursor: pointer;
}

.admin-check-label input {
    margin-top: 3px;
}

.admin-form-actions.full {
    grid-column: 1 / -1;
    margin-top: 12px;
}

.admin-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--line, #ddd);
    font-family: inherit;
}

.admin-textarea-mono {
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
}

.admin-criterio-block {
    border: 1px dashed var(--line, #ccc);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.6);
}

.admin-user-card {
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line, #e8e6ef);
}

.admin-pendente-form {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: rgba(109, 34, 232, 0.06);
}

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

/* Admin — catálogo de níveis (cartões) */
.admin-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

.admin-qualif-form select,
.admin-catalogo-form select {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.95rem;
}

.admin-rank-fieldset {
    border: 1px solid rgba(109, 34, 232, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.65);
}

.admin-rank-hint {
    margin: 0 0 10px;
}

.admin-rank-grid {
    max-height: 220px;
    overflow-y: auto;
}

.admin-details-advanced {
    margin: 12px 0;
    padding: 8px 0;
}

.admin-details-advanced summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--purple);
}

.admin-label-block {
    display: block;
    margin-top: 10px;
}

.admin-nivel-card {
    border: 1px solid rgba(109, 34, 232, 0.14);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background: linear-gradient(165deg, #fff 0%, #faf8ff 100%);
    box-shadow: 0 4px 18px rgba(60, 40, 100, 0.06);
}

.admin-nivel-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.admin-nivel-card__badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--purple);
    background: rgba(109, 34, 232, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}

.admin-nivel-card__title {
    font-weight: 700;
    font-size: 1.05rem;
}

.admin-nivel-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px 14px;
    margin-bottom: 12px;
}

.admin-nivel-span-2 {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .admin-nivel-span-2 {
        grid-column: span 1;
    }
}

.admin-rede-bloco {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.admin-rede-bloco__title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 650;
}

.admin-rede-bloco__hint {
    margin: 0 0 10px;
}

.admin-rede-table-wrap {
    overflow-x: auto;
}

.admin-rede-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.admin-rede-table th,
.admin-rede-table td {
    border: 1px solid var(--line);
    padding: 8px 6px;
    text-align: left;
    vertical-align: middle;
}

.admin-rede-table th {
    background: rgba(109, 34, 232, 0.07);
    font-weight: 650;
}

.admin-select-compact {
    min-width: 3.5rem;
}

.admin-select-wide {
    min-width: 10rem;
    max-width: 100%;
}

.admin-input-narrow {
    width: 5rem;
    max-width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.admin-nivel-preview {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(109, 34, 232, 0.05);
    border: 1px solid rgba(109, 34, 232, 0.1);
}

.admin-nivel-preview__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 8px;
}

.admin-nivel-preview__body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
}

.admin-prof-fieldset {
    border: 1px solid rgba(109, 34, 232, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
}

.admin-prof-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.admin-prof-table th,
.admin-prof-table td {
    border: 1px solid var(--line);
    padding: 8px 10px;
}

.admin-prof-table th {
    background: rgba(109, 34, 232, 0.06);
    text-align: left;
}

/* Escritório — dashboard consultor */
.escritorio-title-row {
    align-items: flex-start;
}

.escritorio-h1 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.escritorio-sub {
    margin: 0;
    font-size: 0.95rem;
}

.escritorio-search input {
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    min-width: min(280px, 100%);
}

.hero-grid--escritorio {
    align-items: stretch;
}

.consultor-card--destaque {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "badge info"
        "badge actions";
    gap: 12px 18px;
    border: 1px solid rgba(109, 34, 232, 0.12);
    box-shadow: 0 8px 28px rgba(80, 60, 120, 0.07);
}

@media (max-width: 720px) {
    .consultor-card--destaque {
        grid-template-columns: 1fr;
        grid-template-areas:
            "badge"
            "info"
            "actions";
        text-align: center;
    }

    .consultor-card--destaque .consultor-qualificacao-badge {
        justify-self: center;
    }

    .consultor-actions {
        justify-content: center;
    }
}

.consultor-card--destaque .consultor-qualificacao-badge {
    grid-area: badge;
}

.consultor-card--destaque .consultor-info {
    grid-area: info;
}

.consultor-card--destaque .consultor-actions {
    grid-area: actions;
    flex-wrap: wrap;
}

.consultor-nivel-chip {
    display: inline-block;
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--purple);
    background: rgba(109, 34, 232, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}

.consultor-nome {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.consultor-meta {
    margin: 4px 0;
    font-size: 0.92rem;
}

.consultor-meta span {
    color: var(--muted);
    margin-right: 6px;
}

.consultor-meta--pontos span {
    font-weight: 600;
}

/* Página requisitos (vendedor) */
.vendedor-niveis-body {
    background: linear-gradient(165deg, #f5f2fc 0%, #f0f2f7 42%, #f7f8fa 100%);
}

.vendedor-niveis-main {
    padding-bottom: 48px;
    max-width: 920px;
}

.vendedor-niveis-pagehead {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 280px);
    gap: 20px 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.vendedor-niveis-pagehead__intro {
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid rgba(109, 34, 232, 0.1);
    background: #fff;
    box-shadow: 0 4px 24px rgba(60, 40, 100, 0.06);
}

.vendedor-niveis-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple);
}

.vendedor-niveis-title {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 3.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.vendedor-niveis-sub {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.vendedor-niveis-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 20px 22px;
    border: 1px solid rgba(109, 34, 232, 0.14);
    background: linear-gradient(145deg, #fff 0%, rgba(109, 34, 232, 0.04) 100%);
    box-shadow: 0 4px 20px rgba(80, 60, 120, 0.06);
}

.vendedor-niveis-summary__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.vendedor-niveis-summary__nivel {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--purple-dark, #6820e0);
    line-height: 1.25;
}

.vendedor-niveis-summary__id {
    margin: 4px 0 0;
    font-size: 0.82rem;
}

.vendedor-niveis-section {
    margin: 0;
}

.vendedor-niveis-section__title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.02em;
}

.vendedor-niveis-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vendedor-nivel-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.vendedor-nivel-card:hover {
    border-color: rgba(109, 34, 232, 0.18);
    box-shadow: 0 8px 28px rgba(60, 40, 100, 0.08);
}

.vendedor-nivel-card--atual {
    border-color: rgba(109, 34, 232, 0.38);
    box-shadow: 0 8px 32px rgba(109, 34, 232, 0.14);
    background: linear-gradient(135deg, #fff 0%, rgba(109, 34, 232, 0.06) 100%);
}

.vendedor-nivel-card__media img {
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

.vendedor-nivel-card__placeholder {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(109, 34, 232, 0.14), rgba(109, 34, 232, 0.06));
    color: var(--purple);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendedor-nivel-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.vendedor-nivel-card__nome {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
}

.vendedor-nivel-card__doc {
    font-size: 0.8rem;
}

.vendedor-nivel-card__tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--purple);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
}

.vendedor-nivel-card__req {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    padding-left: 0;
    border-left: none;
}

.vendedor-niveis-foot {
    margin-top: 28px;
    padding-top: 8px;
}

.vendedor-niveis-foot a {
    font-weight: 600;
    color: var(--purple);
    text-decoration: none;
}

.vendedor-niveis-foot a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .vendedor-niveis-pagehead {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .vendedor-nivel-card {
        grid-template-columns: 1fr;
    }

    .vendedor-nivel-card__media {
        justify-self: start;
    }
}

/* Minha conta + foto + admin CPF solicitações */
.minha-conta-body {
    background: var(--bg, #f7f8fa);
}

.minha-conta-main {
    padding-bottom: 48px;
    max-width: 880px;
}

.minha-conta-header {
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, var(--surface, #fff) 0%, var(--beige, #f3efe6) 100%);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(45, 55, 72, 0.06);
    position: relative;
    overflow: hidden;
}

.minha-conta-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--purple, #7b2bf9), var(--purple-dark, #6820e0));
    border-radius: 14px 0 0 14px;
}

.minha-conta-header__inner {
    padding-left: 0.35rem;
}

.minha-conta-header h1 {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text, #2d3748);
    letter-spacing: -0.02em;
}

.minha-conta-lead {
    margin: 0 0 1rem;
    color: var(--muted, #4a5568);
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 40rem;
}

.minha-conta-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.minha-conta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--line, #e2e8f0);
    background: var(--surface, #fff);
    color: var(--muted, #4a5568);
}

.minha-conta-pill--role {
    border-color: rgba(123, 43, 249, 0.35);
    color: var(--purple-dark, #6820e0);
    background: rgba(123, 43, 249, 0.06);
}

.minha-conta-pill--ok {
    border-color: rgba(34, 139, 83, 0.45);
    color: #166534;
    background: #f0fdf4;
}

.minha-conta-pill--off {
    border-color: #e2e8f0;
    color: #64748b;
    background: #f8fafc;
}

.minha-conta-id {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.82rem;
}

.minha-conta-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.minha-conta-panel {
    margin: 0;
    padding: 1.15rem 1.25rem 1.35rem;
    background: var(--surface, #fff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.minha-conta-panel:first-of-type {
    margin-top: 0;
}

.minha-conta-h2 {
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2f2f4a;
    border-bottom: 1px solid var(--line, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.minha-conta-h2::before {
    content: "";
    width: 3px;
    height: 1.1em;
    border-radius: 2px;
    background: var(--purple, #7b2bf9);
    flex-shrink: 0;
}

.minha-conta-panel .section-grid {
    gap: 14px;
}

.minha-conta-callout {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
    border: 1px solid var(--line, #e2e8f0);
    background: #fafafa;
    color: var(--muted, #4a5568);
}

.minha-conta-callout--success {
    border-color: rgba(34, 139, 83, 0.35);
    background: #f4fbf6;
    color: #14532d;
}

.minha-conta-callout--wait {
    border-color: rgba(123, 43, 249, 0.25);
    background: rgba(123, 43, 249, 0.05);
    color: #4c1d95;
}

.minha-conta-footer-actions {
    margin-top: 0.25rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(180deg, #fafbfc 0%, var(--surface, #fff) 100%);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.minha-conta-footer-actions .admin-form-actions {
    margin: 0;
    flex: 1;
    justify-content: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    grid-column: unset;
}

.minha-conta-sol-wrap {
    margin-top: 1.25rem;
    padding: 1.15rem 1.25rem 1.35rem;
    border-radius: 12px;
    border: 1px dashed rgba(123, 43, 249, 0.35);
    background: rgba(123, 43, 249, 0.03);
}

.minha-conta-sol-wrap .minha-conta-h2::before {
    background: var(--yellow, #f2d633);
}

@media (max-width: 640px) {
    .minha-conta-header {
        padding: 1.1rem 1.15rem;
    }

    .minha-conta-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .minha-conta-footer-actions .admin-form-actions {
        justify-content: stretch;
    }

    .minha-conta-footer-actions .admin-form-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

.input-readonly {
    background: #f0f2f6 !important;
    cursor: not-allowed;
}

.minha-foto-preview {
    display: block;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.minha-foto-preview--hero {
    border-radius: 50%;
    border: 3px solid rgba(123, 43, 249, 0.28);
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.12);
    flex-shrink: 0;
}

.minha-conta-foto-atual-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.minha-conta-foto-atual-copy {
    flex: 1;
    min-width: min(100%, 220px);
    margin: 0;
    max-width: 28rem;
    line-height: 1.45;
}

.minha-conta-foto-page .foto-crop-form .foto-crop-card {
    margin-top: 0.35rem;
}

.minha-conta-foto-zoom-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text, #2d3748);
    margin-top: 0.25rem;
}

.minha-conta-foto-zoom {
    display: block;
    width: 100%;
    max-width: 280px;
    accent-color: var(--purple, #7b2bf9);
}

.foto-crop-card {
    display: grid;
    gap: 10px;
}

.foto-crop-viewport {
    width: min(260px, 100%);
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #d6d7e2;
    background: #101421;
    touch-action: none;
    cursor: grab;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
}

.foto-crop-viewport.is-dragging {
    cursor: grabbing;
}

.foto-crop-img {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: top left;
    user-select: none;
    -webkit-user-drag: none;
    max-width: none;
    max-height: none;
}

.foto-crop-mask {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0) 57%, rgba(0, 0, 0, 0.62) 58%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
}

.admin-cpf-sol {
    margin-bottom: 14px;
    padding: 14px 16px;
}

.admin-cpf-sol-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.admin-cpf-rej-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-cpf-obs {
    min-width: 180px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

/* Chat interno (layout estilo WhatsApp / Telegram) */
.chat-wa-page.container {
    padding-bottom: 1.25rem;
    max-width: 1280px;
}

.chat-wa-shell {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    grid-template-rows: minmax(0, 1fr);
    height: calc(100vh - 100px);
    min-height: 280px;
    max-height: calc(100vh - 72px);
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line, #e5e2eb);
    box-shadow: 0 8px 32px rgba(45, 30, 80, 0.06);
    align-content: stretch;
}

@media (max-width: 900px) {
    .chat-wa-shell {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, auto) minmax(0, 1fr);
        height: calc(100vh - 88px);
        min-height: 0;
        max-height: calc(100vh - 64px);
    }

    .chat-wa-sidebar {
        max-height: 42vh;
        min-height: 0;
        overflow: hidden;
        border-right: none;
        border-bottom: 1px solid var(--line, #e8e6ef);
    }

    .chat-wa-main {
        min-height: 0;
        max-height: none;
    }
}

.chat-wa-sidebar {
    border-right: 1px solid var(--line, #e8e6ef);
    background: #f8f6fb;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.chat-wa-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f3f0fa 0%, #ebe6f5 100%);
    border-bottom: 1px solid var(--line, #e0dbe8);
    flex-shrink: 0;
}

.chat-wa-sidebar-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text, #1a1528);
    letter-spacing: -0.02em;
}

.chat-wa-sidebar-tools {
    display: flex;
    gap: 4px;
}

.chat-wa-tool-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #5b21b6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
}

.chat-wa-tool-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.chat-wa-list-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 6px 8px 12px;
}

.chat-wa-list-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted, #6b6378);
    margin: 10px 8px 6px;
    padding: 0;
}

.chat-wa-list {
    max-height: none;
}

/* legado: classes ainda usadas nas listas */
.chat-interno-sidebar {
    border-right: 1px solid var(--line, #e8e6ef);
    padding: 14px;
    background: #faf9fc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
}

.chat-interno-sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-interno-sidebar-block + .chat-interno-sidebar-block {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line, #e8e6ef);
}

.chat-interno-novo-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-interno-textarea--compact {
    min-height: 52px;
    max-height: 120px;
    resize: vertical;
}

.chat-interno-btn-block {
    width: 100%;
    justify-content: center;
}

.chat-interno-pares--grupos {
    max-height: none;
    overflow-y: visible;
}

.chat-par-btn--wa {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.chat-wa-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #dfe6ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-wa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-wa-avatar-initials {
    font-size: 0.95rem;
    font-weight: 800;
    color: #4a5568;
    line-height: 1;
}

.chat-wa-avatar--grupo {
    background: linear-gradient(145deg, #8b7bc7 0%, #5b21b6 100%);
}

.chat-wa-avatar--grupo .chat-wa-avatar-initials {
    color: #fff;
}

.chat-wa-body {
    min-width: 0;
    flex: 1;
}

.chat-wa-body strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-wa-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--muted, #5c5568);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-par-btn--unread .chat-wa-body strong {
    font-weight: 800;
}

.chat-interno-nova-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.chat-interno-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line, #e8e6ef);
    font-size: 0.95rem;
}

.chat-interno-label,
.chat-interno-sidebar-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #5c5568);
    margin: 0;
}

.chat-interno-sidebar-title {
    margin-top: 8px;
}

.chat-interno-sidebar-block > .chat-interno-sidebar-title:first-child {
    margin-top: 0;
}

.chat-interno-pares {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.chat-interno-pares li button {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    color: var(--text);
}

.chat-interno-pares li button:hover,
.chat-interno-pares li button.is-active {
    background: #ede7ff;
    color: var(--purple);
}

.chat-wa-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    max-height: 100%;
    height: 100%;
    overflow: hidden;
    background: #efeae2;
    flex: 1;
}

.chat-wa-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #f7f5fc 0%, #f0ecf8 100%);
    border-bottom: 1px solid var(--line, #e0dbe8);
    flex-shrink: 0;
}

.chat-wa-topbar__info {
    min-width: 0;
}

.chat-wa-topbar__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text, #1a1528);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-wa-topbar__sub {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--muted, #6b6378);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-wa-topbar__trailing {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.chat-wa-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #5b21b6;
    user-select: none;
}

.chat-wa-brand__icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.chat-wa-icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #5b21b6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-wa-icon-btn:hover {
    background: rgba(91, 33, 182, 0.1);
}

.chat-wa-menu-anchor {
    position: relative;
    flex-shrink: 0;
}

.chat-wa-thread-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 80;
    min-width: 268px;
    max-width: min(92vw, 320px);
    padding: 6px 0;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18), 0 0 1px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.chat-wa-thread-menu__sep {
    height: 1px;
    margin: 6px 12px;
    background: var(--line, #e8e4ef);
}

.chat-wa-thread-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 12px;
    border: none;
    background: transparent;
    color: var(--text, #1a1528);
    font-size: 0.92rem;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 6px;
    width: calc(100% - 12px);
    box-sizing: border-box;
}

.chat-wa-thread-menu__item:hover {
    background: rgba(91, 33, 182, 0.06);
}

.chat-wa-thread-menu__item:focus {
    outline: none;
}

.chat-wa-thread-menu__item:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 1px;
}

.chat-wa-thread-menu__item--danger {
    color: #b91c1c;
}

.chat-wa-thread-menu__item--danger:hover {
    background: rgba(185, 28, 28, 0.08);
}

.chat-wa-thread-menu__ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.92;
}

.chat-wa-thread-menu__label {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.chat-wa-contact-dialog__name {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.chat-wa-contact-dialog__note {
    margin-top: 1rem;
    line-height: 1.45;
}

.chat-wa-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(26, 21, 40, 0.92);
    color: #fff;
    font-size: 0.88rem;
    max-width: min(92vw, 420px);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.chat-wa-body {
    flex: 1 1 0;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-interno-messages,
.chat-wa-messages {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 14px 16px;
    background-color: #efeae2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cdc4' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chat-wa-empty-msg {
    margin: 2rem auto;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.chat-interno-thread {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    background: #fff;
}

.chat-interno-thread-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line, #e8e6ef);
}

.chat-interno-thread-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.chat-interno-thread-head .muted {
    display: block;
    margin-top: 6px;
    max-height: 5rem;
    overflow-y: auto;
    line-height: 1.35;
    font-size: 0.8rem;
}

.chat-bubble-row {
    display: flex;
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.chat-bubble-row--eu {
    justify-content: flex-end;
}

.chat-bubble-row--outro {
    justify-content: flex-start;
}

.chat-bubble {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(100%, 420px);
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(40, 30, 80, 0.08);
    box-sizing: border-box;
    overflow: hidden;
}

.chat-bubble-row--eu .chat-bubble {
    background: linear-gradient(145deg, #6b4bd6 0%, #5b21b6 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-row--outro .chat-bubble {
    background: #fff;
    border: 1px solid var(--line, #e8e6ef);
    border-bottom-left-radius: 4px;
}

.chat-bubble-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chat-bubble-geo {
    font-size: 0.78rem;
    margin: 4px 0 6px;
    line-height: 1.35;
}

.chat-bubble-geo a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-bubble-row--eu .chat-bubble-geo a {
    color: rgba(255, 255, 255, 0.95);
}

.chat-bubble-row--outro .chat-bubble-geo a {
    color: #4338ca;
}

.chat-bubble-meta {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 6px;
}

.chat-wa-once-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b21b6;
    margin-bottom: 6px;
    opacity: 0.95;
}

.chat-wa-once-label--mine {
    color: rgba(255, 255, 255, 0.9);
}

.chat-wa-once-placeholder {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(91, 33, 182, 0.08);
    border: 1px dashed rgba(91, 33, 182, 0.35);
    max-width: 260px;
}

.chat-bubble-row--eu .chat-wa-once-placeholder {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.chat-wa-once-placeholder__txt {
    margin: 0 0 8px;
    font-size: 0.85rem;
    line-height: 1.35;
}

.chat-wa-once-expired {
    margin: 6px 0 0;
    padding: 8px 10px;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #64748b;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 10px;
}

.chat-bubble-legacy-note {
    margin: 0 0 6px;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #64748b;
}

.chat-bubble-video {
    display: block;
    max-width: 100%;
    max-height: min(40vh, 280px);
    border-radius: 10px;
    margin-bottom: 6px;
    background: #000;
}

.chat-wa-compose-wrap {
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

/* Mantém altura enquanto a barra de gravação está em modo absoluto; esconde anexos/preview. */
.chat-wa-compose-wrap--recording {
    min-height: 64px;
}

.chat-wa-compose-wrap--recording .chat-wa-pending-row {
    display: none !important;
}

.chat-wa-compose-wrap--recording .chat-wa-compose--hidden {
    display: none !important;
}

.chat-wa-compose--hidden {
    display: none !important;
}

.chat-wa-pending-row {
    padding: 6px 12px 4px;
    background: #f0ecf5;
    border-top: 1px solid var(--line, #e0dbe8);
}

.chat-wa-viewonce-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4c1d95;
    cursor: pointer;
    user-select: none;
}

.chat-wa-viewonce-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px dashed rgba(91, 33, 182, 0.55);
    font-size: 0.72rem;
    font-weight: 800;
    color: #5b21b6;
}

.chat-wa-record-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px 12px;
    background: #fff;
    border-top: 1px solid var(--line, #e0dbe8);
    border-radius: 0;
    flex-wrap: wrap;
    box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.12);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
}

.chat-wa-record-bar[hidden] {
    display: none !important;
}

.chat-wa-record-del {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 2px solid #ca8a04;
    border-radius: 50%;
    background: #fff;
    color: #854d0e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-wa-record-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc2626;
    flex-shrink: 0;
    animation: chat-wa-rec-dot 1s ease-in-out infinite;
}

@keyframes chat-wa-rec-dot {
    50% { opacity: 0.55; }
}

.chat-wa-record-timer {
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1e293b;
    min-width: 2.5rem;
}

.chat-wa-record-canvas {
    flex: 1 1 120px;
    min-width: 100px;
    max-width: 100%;
    height: 36px;
    border-radius: 8px;
    background: #f8fafc;
}

.chat-wa-record-pause {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-wa-record-pause__resume {
    display: none;
}

.chat-wa-record-pause.is-paused .chat-wa-record-pause__ico {
    display: none;
}

.chat-wa-record-pause.is-paused .chat-wa-record-pause__resume {
    display: block;
    color: #ca8a04;
}

.chat-wa-record-viewonce {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-wa-record-viewonce__ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    border-right-style: dashed;
    font-size: 0.85rem;
    font-weight: 800;
    color: #64748b;
}

.chat-wa-record-viewonce.is-on .chat-wa-record-viewonce__ring {
    border-color: #ca8a04;
    border-right-style: solid;
    color: #854d0e;
    background: rgba(242, 214, 51, 0.22);
}

.chat-wa-record-send {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--yellow, #f2d633) 0%, #ca8a04 100%);
    color: #292524;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    box-shadow: 0 2px 10px rgba(202, 138, 4, 0.4);
}

.chat-wa-compose {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: flex-end;
    padding: 10px 12px 12px;
    background: #f0ecf5;
    border-top: 1px solid var(--line, #e0dbe8);
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 0;
}

.chat-wa-compose__tools {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.chat-wa-compose__emoji,
.chat-wa-compose__mic {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #5b21b6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-wa-compose__emoji:hover:not(:disabled),
.chat-wa-compose__mic:hover:not(:disabled) {
    background: rgba(91, 33, 182, 0.1);
}

.chat-wa-compose__emoji:disabled,
.chat-wa-compose__mic:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.chat-wa-blocked-banner {
    flex-shrink: 0;
    margin: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
    text-align: center;
    background: #fef2f2;
    color: #991b1b;
    border-bottom: 1px solid #fecaca;
}

.chat-wa-select-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: #ede9fe;
    border-top: 1px solid var(--line, #e0dbe8);
    flex-shrink: 0;
}

/* [hidden] + display:flex no bloco acima: sem isto a barra ficava visível */
.chat-wa-select-bar[hidden] {
    display: none !important;
}

.chat-wa-select-bar__count {
    font-size: 0.88rem;
    font-weight: 600;
    color: #4c1d95;
}

.chat-wa-select-bar__actions {
    display: flex;
    gap: 8px;
}

.chat-bubble-row--selecting {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-bubble-select {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-bottom: 8px;
}

.chat-bubble-media {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(40vh, 300px);
    border-radius: 10px;
    margin-bottom: 6px;
    object-fit: contain;
}

/* Áudio: leitor custom (sem controlos nativos / menu dos três pontos) */
.chat-bubble--voice {
    min-width: min(100%, 280px);
    max-width: 100%;
}

.chat-voice-audio-el {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.chat-voice-player {
    position: relative;
    width: min(100%, 300px);
    max-width: 100%;
    margin-bottom: 4px;
}

.chat-voice-main {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.chat-voice-play {
    flex-shrink: 0;
    align-self: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: inherit;
    transition: background 0.15s, transform 0.1s;
}

.chat-voice-player--outro .chat-voice-play {
    background: #e8eaed;
    color: #5f6368;
}

.chat-voice-player--outro .chat-voice-play:hover {
    background: #dadce0;
}

.chat-voice-player--mine .chat-voice-play {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.chat-voice-player--mine .chat-voice-play:hover {
    background: rgba(255, 255, 255, 0.32);
}

.chat-voice-play__ico {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-voice-play__ico--pause {
    display: none;
}

.chat-voice-play.is-playing .chat-voice-play__ico--play {
    display: none;
}

.chat-voice-play.is-playing .chat-voice-play__ico--pause {
    display: flex;
}

.chat-voice-track {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    align-self: center;
    padding: 4px 0;
}

.chat-voice-wave-wrap {
    position: relative;
    height: 34px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
}

.chat-voice-waveform {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
    height: 32px;
    padding: 0 2px;
    box-sizing: border-box;
}

.chat-voice-waveform__bar {
    flex: 1 1 0;
    min-width: 2px;
    align-self: center;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.18);
}

.chat-voice-player--mine .chat-voice-waveform__bar {
    background: rgba(255, 255, 255, 0.35);
}

.chat-voice-played {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 0;
    pointer-events: none;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.06));
}

.chat-voice-player--mine .chat-voice-played {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
}

.chat-voice-side {
    flex-shrink: 0;
    align-self: center;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-voice-avatar {
    position: relative;
    overflow: visible;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-voice-avatar-mic {
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.chat-voice-player--mine .chat-voice-mic-solo {
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.9;
}

.chat-voice-foot {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
    font-size: 0.72rem;
    opacity: 0.9;
}

.chat-voice-player--outro .chat-voice-foot {
    color: #5f6368;
}

.chat-voice-player--mine .chat-voice-foot {
    color: rgba(255, 255, 255, 0.88);
}

.chat-voice-time-sep {
    opacity: 0.75;
}

.chat-bubble-file {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #5b21b6;
    text-decoration: underline;
}

.chat-wa-compose__field {
    flex: 1;
    min-width: 0;
}

.chat-wa-compose__gravar-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.chat-wa-compose__gravar-wrap[hidden] {
    display: none !important;
}

.chat-wa-emoji-popover {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 100%;
    margin-bottom: 6px;
    z-index: 70;
    max-height: min(42vh, 300px);
    pointer-events: auto;
}

.chat-wa-emoji-popover[hidden] {
    display: none !important;
}

.chat-wa-emoji-popover__inner {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--line, #e0dbe8);
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.chat-wa-emoji-popover__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 2px;
    padding: 10px 10px 12px;
    max-height: min(38vh, 260px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-wa-emoji-popover__btn {
    margin: 0;
    padding: 8px 6px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.chat-wa-emoji-popover__btn:hover,
.chat-wa-emoji-popover__btn:focus-visible {
    background: rgba(91, 33, 182, 0.1);
    outline: none;
}

.chat-wa-compose__input {
    width: 100%;
    box-sizing: border-box;
    resize: none;
    min-height: 44px;
    max-height: none;
    padding: 11px 14px;
    border-radius: 22px;
    border: 1px solid var(--line, #dcd6e8);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.45;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow-y: hidden;
    vertical-align: top;
}

.chat-wa-compose__input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.12);
}

.chat-wa-send {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.1s, filter 0.15s;
}

.chat-wa-send:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: scale(1.04);
}

.chat-wa-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.chat-interno-compose {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    padding: 12px 14px;
    border-top: 1px solid var(--line, #e8e6ef);
    background: #fff;
}

.chat-interno-textarea {
    flex: 1;
    resize: vertical;
    min-height: 44px;
    max-height: 160px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line, #e8e6ef);
    font: inherit;
}

.chat-interno-empty {
    margin: 2rem auto;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.chat-grupo-panel {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line, #e8e6ef);
    background: linear-gradient(180deg, #faf9fc 0%, #fff 100%);
}

.chat-grupo-panel__block + .chat-grupo-panel__block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line, #e8e6ef);
}

.chat-grupo-panel__label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.chat-grupo-panel__hint {
    margin: 0 0 8px;
    font-size: 0.8rem;
}

.chat-grupo-panel__row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.chat-grupo-panel__row--link {
    align-items: stretch;
}

.chat-grupo-panel__link-input {
    flex: 1;
    min-width: 180px;
    font-size: 0.82rem;
}

.chat-grupo-panel__novo-link {
    margin-top: 8px;
}

.chat-grupo-panel__row--stack {
    flex-direction: column;
    align-items: stretch;
}

.chat-grupo-panel__row--stack .btn {
    align-self: flex-start;
}

body.chat-wa-modal-open,
body.chat-wa-drawer-open {
    overflow: hidden;
}

/* Modais nativos <dialog> — não ocupam o layout da página até showModal() */
.chat-wa-dialog {
    border: none;
    padding: 0;
    margin: auto;
    max-width: min(400px, calc(100vw - 32px));
    width: 100%;
    background: transparent;
    color: inherit;
}

.chat-wa-dialog::backdrop {
    background: rgba(20, 12, 40, 0.45);
    backdrop-filter: blur(2px);
}

.chat-wa-dialog__surface {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(30, 20, 60, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.chat-wa-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line, #e8e6ef);
}

.chat-wa-modal__head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.chat-wa-modal__x {
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 4px 8px;
}

.chat-wa-modal__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-wa-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.chat-wa-field-input,
.chat-wa-field-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line, #e8e6ef);
    font: inherit;
}

.chat-wa-field-textarea {
    min-height: 72px;
    resize: vertical;
}

.chat-wa-modal__row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.chat-wa-modal__row .chat-wa-field-input {
    flex: 1;
}

.chat-wa-modal__submit {
    margin-top: 6px;
    width: 100%;
    justify-content: center;
}

.chat-wa-drawer {
    position: fixed;
    inset: 0;
    z-index: 1150;
    pointer-events: none;
}

.chat-wa-drawer[hidden] {
    display: none !important;
}

.chat-wa-drawer:not([hidden]) {
    pointer-events: auto;
}

.chat-wa-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 30, 0.35);
}

.chat-wa-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 380px);
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(30, 20, 60, 0.15);
    display: flex;
    flex-direction: column;
    animation: chatDrawerIn 0.22s ease-out;
}

@keyframes chatDrawerIn {
    from {
        transform: translateX(100%);
        opacity: 0.9;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.chat-wa-drawer__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line, #e8e6ef);
    background: #faf9fc;
}

.chat-wa-drawer__head h3 {
    margin: 0;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-wa-drawer__back {
    border: none;
    background: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #5b21b6;
    padding: 4px 8px;
    line-height: 1;
}

.chat-wa-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.chat-wa-drawer__body .chat-grupo-panel__block:first-child {
    padding-top: 0;
}

/* Salas de vídeo + Meet */
.salas-video-page .salas-video-header h1 {
    margin: 0 0 0.35rem;
}

.salas-video-nota {
    margin: 0 0 1rem;
}

.salas-video-nova,
.salas-video-lista {
    margin-bottom: 1.25rem;
}

.salas-video-form label {
    display: block;
    margin-bottom: 10px;
}

.salas-video-form input[type="text"] {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-top: 4px;
}

.salas-video-ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.salas-video-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.salas-video-item:last-child {
    border-bottom: none;
}

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

.video-reuniao-body {
    margin: 0;
    min-height: 100vh;
    background: #202124;
    color: #e8eaed;
}

.video-reuniao-body--error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f4f2f8;
    color: var(--text);
}

.video-reuniao-error {
    max-width: 420px;
    text-align: center;
}

.video-reuniao-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 480px;
}

.video-reuniao-topbar {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #202124;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-reuniao-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.video-reuniao-logo {
    font-weight: 800;
    font-size: 0.85rem;
    color: #a78bfa;
    letter-spacing: 0.06em;
}

.video-reuniao-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(60vw, 520px);
}

.video-reuniao-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-reuniao-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #e8eaed;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-reuniao-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.video-reuniao-leave {
    background: #ea4335;
    color: #fff;
    border: none;
}

.video-reuniao-leave:hover {
    filter: brightness(1.06);
    color: #fff;
}

.video-reuniao-stage {
    flex: 1;
    min-height: 0;
    background: #000;
}

.video-reuniao-jitsi-root {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #000;
}

.video-reuniao-jitsi-root iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

.video-reuniao-fallback {
    margin: 0;
    padding: 24px;
    color: #e8eaed;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.45;
}

.enterprise-negociacao-panel {
    grid-column: 1 / -1;
    padding: 12px 14px;
    background: #f0f4ff;
    border: 1px solid #c3d4f7;
    border-radius: 8px;
}

.enterprise-negociacao-text {
    margin: 0;
    line-height: 1.45;
}

label.lead-enterprise-valor-field.is-enterprise-active input {
    border-color: var(--purple);
    background: #faf8ff;
}

/* Admin: denúncias do chat */
.admin-denuncias-page .page {
    padding-bottom: 2rem;
}

.admin-denuncias-hero {
    margin-bottom: 1rem;
}

.admin-denuncias-lead {
    margin: 0.5rem 0 0;
    line-height: 1.5;
    color: var(--muted, #5c5568);
}

.admin-denuncias-card {
    margin-bottom: 1rem;
}

.admin-denuncias-card--highlight {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.admin-denuncias-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-denuncias-card__id {
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-denuncias-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 14px;
}

.admin-denuncias-meta dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 4px;
}

.admin-denuncias-meta dd {
    margin: 0;
    font-weight: 600;
}

.admin-denuncias-detalhe strong {
    display: block;
    margin-bottom: 6px;
}

.admin-denuncias-detalhe p {
    margin: 0;
    line-height: 1.45;
}

.admin-denuncias-snapshot__title {
    font-size: 1rem;
    margin: 0 0 10px;
}

.admin-denuncias-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line, #e0dbe8);
    border-radius: 8px;
}

.admin-denuncias-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-denuncias-table th,
.admin-denuncias-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line, #eee);
    vertical-align: top;
}

.admin-denuncias-table th {
    background: #f5f3fa;
    font-weight: 600;
}

.admin-denuncias-table__t {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.admin-denuncias-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #ede9fe;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-denuncias-media-link {
    margin-left: 8px;
    font-weight: 600;
}

.nav-notif-item--chat_denuncia {
    border-left: 3px solid #b91c1c;
}

/* Cadastro consultor — aceite de termos (SweetAlert2) */
.slink-termos-step {
    text-align: left;
}

.slink-termos-lead {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.slink-termos-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.slink-termos-item {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--line, #e5e5e5);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.slink-termos-item-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.slink-termos-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--accent, #6d28d9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

button.slink-termos-read {
    margin: 0 0 10px;
    font-size: 0.85rem;
}

.slink-termos-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    line-height: 1.4;
    cursor: pointer;
}

.slink-termos-check-label input {
    margin-top: 3px;
}

.slink-termos-scroll {
    max-height: min(60vh, 28rem);
    overflow: auto;
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.45;
    padding-right: 6px;
}

.slink-termos-scroll p {
    margin: 0 0 0.65em;
}

.aprovacao-termos-audit {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line, #ddd);
    font-size: 0.82rem;
}

.aprovacao-termos-audit code {
    font-size: 0.75rem;
    word-break: break-all;
}