/**
 * B2B — shell SaaS (sidebar + topbar + densidade dashboard)
 * Escopo: .b2b-panel-page
 */

/* Tokens mobile-first (revendedor) */
.b2b-panel-page {
    --b2b-gutter: 16px;
    --b2b-section-gap: 18px;
    --b2b-touch: 44px;
    --b2b-radius: 14px;
}

@media (min-width: 768px) {
    .b2b-panel-page {
        --b2b-gutter: 18px;
        --b2b-section-gap: 20px;
    }
}

@media (min-width: 1025px) {
    .b2b-panel-page {
        --b2b-gutter: 24px;
        --b2b-section-gap: 22px;
    }
}

body.b2b-panel-page {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    body.b2b-panel-page {
        overflow-x: hidden;
    }
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */
.b2b-panel-page .b2b-app-shell {
    display: flex;
    min-height: calc(100vh - 0px);
    align-items: stretch;
    background: var(--b2b-workspace-bg, #f4f6fb);
    position: relative;
}

.b2b-panel-page .b2b-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 55%, #1e1b4b 100%);
    color: #e0e7ff;
    display: flex;
    flex-direction: column;
    padding: 20px 0 24px;
    z-index: 10020;
    box-shadow: 4px 0 32px rgba(30, 27, 75, 0.25);
    will-change: transform;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.b2b-panel-page .b2b-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    position: relative;
}

.b2b-panel-page .b2b-sidebar__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 2px;
}

.b2b-panel-page .b2b-sidebar__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.b2b-panel-page .b2b-sidebar__titles {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    flex: 1;
}

.b2b-panel-page .b2b-sidebar__title {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: -0.02em;
}

.b2b-panel-page .b2b-sidebar__sub {
    font-size: 11px;
    color: rgba(224, 231, 255, 0.72);
}

.b2b-panel-page .b2b-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    flex: 1;
    overflow-y: auto;
}

.b2b-panel-page .b2b-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    color: rgba(224, 231, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.b2b-panel-page .b2b-sidebar__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.b2b-panel-page .b2b-sidebar__link .b2b-nav-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(248, 250, 252, 0.94);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.b2b-panel-page .b2b-nav-ico-svg {
    display: block;
    width: 20px;
    height: 20px;
}

.b2b-panel-page .b2b-sidebar__link:hover .b2b-nav-ico {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.b2b-panel-page .b2b-sidebar__link--active .b2b-nav-ico {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.b2b-panel-page .b2b-sidebar__nav-divider {
    height: 1px;
    margin: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
}

/* Recolher / expandir (apenas desktop; ver @media ≥1025px) */
.b2b-panel-page .b2b-sidebar__collapse-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    flex-shrink: 0;
    border: 1px solid rgba(224, 231, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(224, 231, 255, 0.95);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.b2b-panel-page .b2b-sidebar__collapse-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
}

.b2b-panel-page .b2b-sidebar__collapse-toggle:focus-visible {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

.b2b-panel-page .b2b-sidebar__collapse-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.b2b-panel-page .b2b-sidebar-footer {
    padding: 16px 20px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: rgba(224, 231, 255, 0.55);
}

.b2b-panel-page .b2b-sidebar-footer__abbr {
    display: none;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

.b2b-panel-page .b2b-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 10010;
    transition: opacity 0.22s ease;
}

.b2b-panel-page.b2b-sidebar-open .b2b-sidebar-backdrop {
    display: block;
}

/* Modal PIX “Adicionar saldo”: oculto por defeito (.modal-backdrop vem como flex global) */
.b2b-panel-page #b2bSaldoModal {
    display: none !important;
    z-index: 10050;
}

.b2b-panel-page #b2bSaldoModal.b2b-saldo-modal--open {
    display: flex !important;
}

.b2b-panel-page #b2bSaldoModal .modal-box {
    max-width: 420px;
}

.b2b-panel-page #b2bSaldoModal .form-field {
    margin-bottom: 14px;
}

.b2b-panel-page #b2bSaldoModal .field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.b2b-panel-page #b2bSaldoModal .field-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 16px;
}

/* Texto introdutório do modal (evita .amount-info strong { display:block }, que quebrava “mínimo R$ 30,00”) */
.b2b-panel-page #b2bSaldoModal .b2b-pix-saldo-intro {
    text-align: center;
    margin: 0 0 18px;
    padding: 0 4px;
}

.b2b-panel-page #b2bSaldoModal .b2b-pix-saldo-intro__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.b2b-panel-page #b2bSaldoModal .b2b-pix-saldo-intro__text--muted {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.b2b-panel-page #b2bSaldoModal .b2b-pix-saldo-intro__min {
    margin: 10px 0 0;
}

.b2b-panel-page #b2bSaldoModal .b2b-pix-saldo-intro__min-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6366f1;
    margin-right: 6px;
    vertical-align: middle;
}

.b2b-panel-page #b2bSaldoModal .b2b-pix-saldo-intro__min-value {
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    color: #4338ca;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    vertical-align: middle;
    white-space: nowrap;
}

.b2b-panel-page .b2b-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #f4f6fb;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    .b2b-panel-page .b2b-main {
        overflow-x: hidden;
    }
}

.b2b-panel-page .b2b-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--b2b-gutter);
    background: #fff;
    border-bottom: 1px solid #e8ecf4;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.b2b-panel-page .b2b-topbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
}

.b2b-panel-page .b2b-topbar__platform {
    font-weight: 700;
    font-size: 15px;
    color: #1e1b4b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.b2b-panel-page .b2b-topbar__platform:hover {
    color: #4f46e5;
}

.b2b-panel-page .b2b-topbar__sep {
    width: 1px;
    height: 18px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.b2b-panel-page .b2b-topbar__search {
    flex: 0 1 min(360px, 38vw);
    min-width: 0;
    max-width: min(400px, 42vw);
    margin: 0;
}

.b2b-panel-page .b2b-topbar__search input[type="search"],
.b2b-panel-page .b2b-topbar__search input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    min-height: var(--b2b-touch);
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.b2b-panel-page .b2b-topbar__search input:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: #fff;
}

.b2b-panel-page .b2b-topbar__menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    color: #334155;
    flex-shrink: 0;
}

.b2b-panel-page .b2b-topbar__menu svg {
    width: 22px;
    height: 22px;
}

.b2b-panel-page .b2b-topbar__page-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
    flex: 0 1 auto;
    min-width: 0;
}

/* Documentação da página Painel › API */
.b2b-panel-page .b2b-api-doc__p,
.b2b-panel-page .b2b-api-doc__mono {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 10px;
}

.b2b-panel-page .b2b-api-doc__mono {
    word-break: break-word;
}

.b2b-panel-page .b2b-api-doc__hint {
    font-size: 13px;
    color: #64748b;
    margin: 12px 0 0;
    line-height: 1.45;
}

.b2b-panel-page .b2b-api-doc__warn {
    margin: 0 0 12px;
    padding: 12px 14px;
    background: #fef3c7;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
    color: #78350f;
    font-size: 14px;
    line-height: 1.5;
}

.b2b-panel-page .b2b-api-doc__inline-code {
    font-size: 0.92em;
    padding: 1px 6px;
    background: #f1f5f9;
    border-radius: 6px;
    color: #0f172a;
}

.b2b-panel-page .b2b-api-doc__pre {
    margin: 10px 0 0;
    padding: 14px 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.45;
}

.b2b-panel-page .b2b-api-doc__pre code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre;
    word-break: normal;
}

.b2b-panel-page code.b2b-api-doc__token {
    flex: 1;
    word-break: break-all;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.b2b-panel-page .b2b-topbar__actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
    flex: 0 0 auto;
}

/* Desktop — flex: título + busca próximos; ações com margin-left:auto (evita vão enorme após remover marca) */
@media (min-width: 1025px) {
    .b2b-panel-page .b2b-topbar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 14px;
    }

    .b2b-panel-page .b2b-topbar__brand {
        flex: 0 1 auto;
        min-width: 0;
        max-width: min(320px, 42vw);
    }

    .b2b-panel-page .b2b-topbar__page-title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .b2b-panel-page .b2b-topbar__search {
        flex: 0 1 min(360px, 34vw);
        width: auto;
        min-width: 200px;
        max-width: min(400px, 40vw);
    }

    .b2b-panel-page .b2b-topbar__actions {
        flex: 0 0 auto;
        margin-left: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .b2b-panel-page .b2b-topbar .header-menu {
        flex: 0 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    /* Sidebar: minimizar / maximizar (rail de ícones) */
    .b2b-panel-page .b2b-sidebar__collapse-toggle {
        display: inline-flex;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar {
        width: 76px;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__brand {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__titles {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__collapse-toggle {
        display: none !important;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar-balance-card {
        display: none !important;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__logo {
        cursor: pointer;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__logo:focus-visible {
        outline: 2px solid #c7d2fe;
        outline-offset: 3px;
        border-radius: 12px;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__nav {
        padding: 0 8px;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__nav-divider {
        margin: 8px auto;
        width: 28px;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__link {
        justify-content: center;
        padding: 11px 8px;
        gap: 0;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__label {
        display: none;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar__link .b2b-nav-ico {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar-footer {
        padding: 12px 8px 0;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar-footer__full {
        display: none;
    }

    .b2b-panel-page.b2b-sidebar-collapsed .b2b-sidebar-footer__abbr {
        display: block;
    }

    .b2b-panel-page .b2b-sidebar-backdrop {
        display: none !important;
    }
}

.b2b-panel-page .b2b-content {
    flex: 1;
    padding: var(--b2b-section-gap) var(--b2b-gutter) 28px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    min-width: 0;
}

/* Painel admin: “Popup novidades” fica na coluna principal — evita cobrir sidebar/rodapé */
.b2b-panel-page .b2b-main .b2b-admin-popup-section {
    scroll-margin-top: 96px;
}

.b2b-panel-page .b2b-main .b2b-admin-popup-card {
    position: relative;
    z-index: 0;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .b2b-panel-page .b2b-topbar__menu {
        display: flex;
    }

    .b2b-panel-page .b2b-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(300px, 88vw);
        transform: translateX(-102%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 100vh;
        box-shadow: 8px 0 48px rgba(15, 23, 42, 0.35);
        padding-top: max(20px, env(safe-area-inset-top, 0px));
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
        padding-left: max(0px, env(safe-area-inset-left, 0px));
    }

    .b2b-panel-page.b2b-sidebar-open .b2b-sidebar {
        transform: translateX(0);
    }

    .b2b-panel-page .b2b-topbar {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* --------------------------------------------------------------------------
   KPI + steps (SaaS)
   -------------------------------------------------------------------------- */
.b2b-panel-page #b2b-dashboard.b2b-section-cluster,
.b2b-panel-page section.b2b-section-cluster {
    margin-bottom: 22px;
}

.b2b-panel-page .b2b-dash-clients-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.b2b-panel-page .b2b-dash-clients-card__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.b2b-panel-page .b2b-dash-clients-card__btn-primary {
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .b2b-panel-page .b2b-dash-clients-card__cta {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .b2b-panel-page .b2b-dash-clients-card__cta .link-action {
        text-align: center;
    }
}

/* Hub clientes no dashboard (criar + tabela paginada) */
.b2b-panel-page .b2b-dash-clients-hub {
    display: flex;
    flex-direction: column;
    gap: var(--b2b-section-gap, 18px);
    margin-top: 12px;
}

.b2b-panel-page .b2b-dash-create-card.b2b-client-create-card {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.b2b-panel-page .b2b-clients-list-card {
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.07);
    border: 1px solid #e2e8f0;
}

.b2b-panel-page .b2b-clients-list-card .b2b-clients-table-wrap {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 40px);
    padding: clamp(12px, 2vw, 18px);
    border-radius: 18px;
    border: 1px solid #e8ecf4;
    box-sizing: border-box;
}

.b2b-panel-page .b2b-plan-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    color: #52525b;
    border: 1px solid #e4e4e7;
}

.b2b-panel-page .b2b-plan-pill--empty {
    min-width: 2rem;
    font-weight: 600;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: #cbd5e1;
    border-style: dashed;
    background: #f8fafc;
}

.b2b-panel-page table.data-table.b2b-clients-table--elegant {
    border: none;
    background: transparent;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
    border-radius: 14px;
    overflow: hidden;
}

.b2b-panel-page table.data-table.b2b-clients-table--elegant thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-size: 10px;
    letter-spacing: 0.06em;
}

.b2b-panel-page table.data-table.b2b-clients-table--elegant tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.b2b-panel-page table.data-table.b2b-clients-table--elegant tbody tr:hover td {
    background: linear-gradient(90deg, #f8fafcff 0%, #eef2ff55 100%);
}

.b2b-panel-page table.data-table.b2b-clients-table--elegant tbody td {
    border-bottom: 1px solid #eef2f7;
}

/* Clientes: menos colunas — dados empilhados na mesma célula (dashboard + página Clientes) */
.b2b-panel-page table.data-table.b2b-clients-table--compact {
    width: 100%;
    table-layout: fixed;
}

.b2b-panel-page table.data-table.b2b-clients-table--compact thead th {
    font-size: 9px;
    line-height: 1.25;
    white-space: normal;
    vertical-align: bottom;
    padding: 10px 10px 10px 8px;
}

.b2b-panel-page table.data-table.b2b-clients-table--compact thead th:nth-child(1) {
    width: 54%;
    min-width: min(100%, 16rem);
}

.b2b-panel-page table.data-table.b2b-clients-table--compact thead th:nth-child(2) {
    width: 26%;
    min-width: 7.5rem;
}

.b2b-panel-page table.data-table.b2b-clients-table--compact thead th:nth-child(3) {
    width: 10%;
    min-width: 4.75rem;
}

.b2b-panel-page table.data-table.b2b-clients-table--compact thead th:nth-child(4) {
    width: 10%;
    min-width: 8.5rem;
}

.b2b-panel-page table.data-table.b2b-clients-table--compact tbody td {
    vertical-align: middle;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-inline: 10px 8px;
    font-size: 13px;
}

/* Coluna «Dados da Licença»: um único cartão plano (sem caixas aninhadas) */
.b2b-panel-page .b2b-td-dados-licenca {
    min-width: 0;
}

.b2b-panel-page .b2b-dados-licenca-card {
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.05);
    min-width: 0;
    box-sizing: border-box;
}

.b2b-panel-page .b2b-dados-licenca-card__head {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    min-width: 0;
}

.b2b-panel-page .b2b-dados-licenca-card__title {
    display: block;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin: 0 0 4px;
}

.b2b-panel-page .b2b-dados-licenca-card__title--muted {
    font-weight: 700;
    color: #94a3b8;
    font-style: italic;
}

.b2b-panel-page .b2b-dados-licenca-card__contact {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    column-gap: 6px;
    min-width: 0;
}

.b2b-panel-page .b2b-dados-licenca-card__contact-bit--break {
    word-break: break-word;
    overflow-wrap: anywhere;
    color: #475569;
    font-weight: 500;
}

.b2b-panel-page .b2b-dados-licenca-card__hint {
    font-size: 11px;
    font-weight: 500;
    color: #cbd5e1;
    font-style: normal;
}

.b2b-panel-page .b2b-dados-licenca-card__dot {
    color: #e2e8f0;
    font-weight: 700;
    user-select: none;
}

.b2b-panel-page .b2b-dados-licenca-card__lower {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    min-width: 0;
}

.b2b-panel-page .b2b-dados-licenca-card__pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.b2b-panel-page .b2b-plan-pill--compact.b2b-plan-pill--empty {
    opacity: 0.85;
}

.b2b-panel-page .b2b-dados-licenca-card__dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.b2b-panel-page .b2b-dados-licenca-card__date-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    min-width: 0;
}

.b2b-panel-page .b2b-dados-licenca-card__date-item dt {
    margin: 0;
    padding: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.b2b-panel-page .b2b-dados-licenca-card__date-item dd {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    font-variant-numeric: tabular-nums;
}

.b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-td-license-code {
    vertical-align: middle;
}

.b2b-panel-page table.data-table.b2b-clients-table--compact tbody td:nth-child(3),
.b2b-panel-page table.data-table.b2b-clients-table--compact tbody td:nth-child(4),
.b2b-panel-page table.data-table.b2b-clients-table--compact tbody td:nth-child(2) {
    text-align: center;
    vertical-align: middle;
}

.b2b-panel-page table.data-table.b2b-clients-table--compact thead th:nth-child(2),
.b2b-panel-page table.data-table.b2b-clients-table--compact thead th:nth-child(3),
.b2b-panel-page table.data-table.b2b-clients-table--compact thead th:nth-child(4) {
    text-align: center;
}

.b2b-panel-page table.data-table.b2b-clients-table--compact thead th:first-child {
    text-align: left;
}

@media (max-width: 620px) {
    .b2b-panel-page .b2b-dados-licenca-card__lower {
        flex-direction: column;
        align-items: flex-start;
    }

    .b2b-panel-page .b2b-dados-licenca-card__dates {
        width: 100%;
        gap: 8px;
    }
}

.b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-td-license-code .b2b-license-code-wrap {
    max-width: 100%;
}

.b2b-panel-page .b2b-product-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    color: #475569;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.b2b-panel-page .b2b-product-pill--wasender-lines {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 14px;
    white-space: normal;
    border-radius: 12px;
    max-width: 9.25rem;
    text-align: center;
}

.b2b-panel-page .b2b-product-pill__line {
    display: block;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #1e293b;
}

.b2b-panel-page .b2b-product-pill__line--sub {
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    line-height: 1.15;
}

.b2b-panel-page .b2b-product-pill--compact {
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 999px;
}

.b2b-panel-page .b2b-product-pill--compact.b2b-product-pill--wasender-lines {
    padding: 5px 10px;
    gap: 2px;
    max-width: 7.25rem;
    border-radius: 10px;
}

.b2b-panel-page .b2b-product-pill--compact.b2b-product-pill--wasender-lines .b2b-product-pill__line {
    font-size: 11px;
}

.b2b-panel-page .b2b-product-pill--compact.b2b-product-pill--wasender-lines .b2b-product-pill__line--sub {
    font-size: 9px;
}

/* Identidade por software (lista de clientes — reconhecimento imediato) */
.b2b-panel-page .b2b-product-pill.b2b-product-pill--brand-wasender {
    background: linear-gradient(152deg, #10b981 0%, #059669 45%, #047857 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 3px 10px rgba(5, 150, 105, 0.35);
}

.b2b-panel-page .b2b-product-pill.b2b-product-pill--brand-wasender .b2b-product-pill__line,
.b2b-panel-page .b2b-product-pill.b2b-product-pill--brand-wasender .b2b-product-pill__line--sub {
    color: #ffffff !important;
}

.b2b-panel-page .b2b-product-pill.b2b-product-pill--brand-wasender .b2b-product-pill__line--sub {
    opacity: 0.93;
}

.b2b-panel-page .b2b-product-pill.b2b-product-pill--brand-zapvoice {
    background: linear-gradient(152deg, #a855f7 0%, #7c3aed 42%, #5b21b6 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 3px 12px rgba(124, 58, 237, 0.38);
}

.b2b-panel-page .b2b-product-pill.b2b-product-pill--brand-zapcrm {
    background: linear-gradient(152deg, #38bdf8 0%, #2563eb 48%, #1d4ed8 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 3px 12px rgba(37, 99, 235, 0.35);
}

.b2b-panel-page .b2b-product-pill.b2b-product-pill--brand-generic {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.b2b-panel-page .b2b-plan-pill--compact {
    padding: 2px 7px;
    font-size: 10px;
    min-width: 0;
}

.b2b-panel-page .b2b-td-license-code {
    vertical-align: middle;
}

.b2b-panel-page .b2b-license-code-wrap {
    display: inline-block;
    max-width: min(100%, 24rem);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    scrollbar-width: thin;
    scrollbar-color: #64748b rgba(15, 23, 42, 0.35);
    cursor: pointer;
    outline: none;
    vertical-align: middle;
}

.b2b-panel-page .b2b-license-code-wrap:focus,
.b2b-panel-page .b2b-license-code-wrap:focus-visible,
.b2b-panel-page .b2b-license-code-wrap:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

.b2b-panel-page .b2b-license-code-wrap::-webkit-scrollbar {
    height: 6px;
}

.b2b-panel-page .b2b-license-code-wrap::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 999px;
}

.b2b-panel-page code.b2b-license-code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.08em;
    padding: 12px 18px;
    border-radius: 14px;
    color: #f8fafc;
    background: linear-gradient(148deg, #020617 0%, #1e293b 42%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 6px 20px rgba(15, 23, 42, 0.32),
        0 2px 6px rgba(15, 23, 42, 0.18);
}

.b2b-panel-page code.b2b-license-code--copyable {
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.b2b-panel-page code.b2b-license-code--copyable:focus,
.b2b-panel-page code.b2b-license-code--copyable:focus-visible {
    outline: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 6px 20px rgba(15, 23, 42, 0.32),
        0 2px 6px rgba(15, 23, 42, 0.18);
}

.b2b-panel-page code.b2b-license-code--copyable:hover {
    filter: brightness(1.12);
}

.b2b-panel-page code.b2b-license-code--copyable:active {
    transform: scale(0.985);
}

.b2b-panel-page code.b2b-license-code--copyable.is-copied {
    background: linear-gradient(148deg, #052e16 0%, #166534 50%, #14532d 100%) !important;
    filter: none;
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 22px rgba(22, 101, 52, 0.28) !important;
}

/* Toast ao copiar código da licença */
.b2b-license-copied-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    z-index: 100999;
    padding: 0.72rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: #f0fdf4;
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.28),
        0 4px 12px rgba(22, 101, 52, 0.2);
    border: 1px solid rgba(167, 243, 208, 0.25);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(0.75rem);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.b2b-license-copied-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.b2b-panel-page code.b2b-license-code--muted {
    font-size: 13px;
    padding: 10px 16px;
    opacity: 0.5;
    font-style: normal;
    font-weight: 500;
}

.b2b-panel-page .b2b-client-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 280px;
}

/* Lista vertical + coluna destacada — desktop (evita “mosaico” Suspender/Trocar/Excluir) */
@media (min-width: 769px) {
    .b2b-panel-page table.data-table.b2b-clients-table--elegant td.b2b-td-actions {
        vertical-align: top;
        width: 158px;
        min-width: 158px;
        padding-top: 14px;
        padding-bottom: 14px;
        padding-left: 14px;
        background: linear-gradient(90deg, rgba(248, 250, 252, 0.92) 0%, #ffffff 52%);
        box-shadow: inset 1px 0 0 rgba(226, 232, 240, 0.95);
    }

    .b2b-panel-page table.data-table.b2b-clients-table--elegant thead th:last-child {
        box-shadow: inset 1px 0 0 #e8ecf4;
        background: linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
    }

    .b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-td-actions .b2b-client-actions {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 7px;
        max-width: none;
    }

    .b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-td-actions .b2b-action-chip {
        width: 100%;
        box-sizing: border-box;
        min-height: 34px;
        border-radius: 10px;
    }
}

.b2b-panel-page .b2b-action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.b2b-panel-page .b2b-action-chip:hover {
    transform: translateY(-1px);
}

.b2b-panel-page .b2b-action-chip--primary {
    background: linear-gradient(180deg, #eef2ff, #e0e7ff);
    color: #3730a3 !important;
    border-color: #c7d2fe;
}

.b2b-panel-page .b2b-action-chip--success {
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    color: #065f46 !important;
    border-color: #a7f3d0;
}

.b2b-panel-page .b2b-action-chip--danger {
    background: linear-gradient(180deg, #fef2f2, #fee2e2);
    color: #991b1b !important;
    border-color: #fecaca;
}

.b2b-panel-page .b2b-action-chip--danger-outline {
    background: transparent;
    color: #b91c1c !important;
    border-color: #fecaca;
}

.b2b-panel-page .b2b-action-chip--muted {
    background: #f8fafc;
    color: #475569 !important;
    border-color: #e2e8f0;
}

.b2b-panel-page .b2b-pagination-bar--numeric {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 14px 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8ecf4;
}

.b2b-panel-page .b2b-pagination-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.b2b-panel-page .b2b-pagination-pill:hover:not(.is-disabled):not(.is-current) {
    border-color: #c7d2fe;
    background: #f8fafcff;
}

.b2b-panel-page .b2b-pagination-pill.is-current {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border-color: #4338ca !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.b2b-panel-page .b2b-pagination-pill.is-disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: default;
}

@media (max-width: 768px) {
    .b2b-panel-page .b2b-client-actions {
        max-width: none;
    }

    .b2b-panel-page table.data-table.b2b-clients-table--elegant tbody td.b2b-td-actions {
        background: transparent;
        box-shadow: none;
        width: auto;
        min-width: 0;
        padding-left: var(--b2b-gutter);
        padding-right: var(--b2b-gutter);
    }

    .b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-td-actions .b2b-client-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .b2b-panel-page table.data-table.b2b-clients-table--elegant .b2b-td-actions .b2b-action-chip {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}

.b2b-panel-page .b2b-steps-flow {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #e8ecf4;
    margin-bottom: 18px;
}

.b2b-panel-page .stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.b2b-panel-page .stat-box {
    background: #fff;
    border-radius: 16px;
    padding: 20px 20px 18px;
    border: 1px solid #e8ecf4;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.b2b-panel-page .stat-box .stat-header {
    margin-bottom: 12px;
}

.b2b-panel-page .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

.b2b-panel-page .stat-box.balance .stat-icon {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.b2b-panel-page .stat-box.licenses .stat-icon {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.b2b-panel-page .stat-box.used .stat-icon {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.b2b-panel-page .stat-number {
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.b2b-panel-page .stat-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Cards gerais
   -------------------------------------------------------------------------- */
.b2b-panel-page .full-card,
.b2b-panel-page .action-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf4;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    padding: 22px 24px;
    margin-bottom: 20px;
}

.b2b-panel-page .grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
    margin-bottom: 20px;
    align-items: start;
}

.b2b-panel-page #b2b-historico-pagamentos.full-card {
    scroll-margin-top: 100px;
}

/* --------------------------------------------------------------------------
   Página Licenças — herói, escada de volume, compra
   -------------------------------------------------------------------------- */
.b2b-panel-page .b2b-licenses-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 4vw, 36px) clamp(18px, 3vw, 32px);
    margin-bottom: var(--b2b-section-gap);
    border-radius: clamp(18px, 3vw, 22px);
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 42%, #4338ca 100%);
    color: #eef2ff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(49, 46, 129, 0.35);
}

@keyframes b2b-licenses-hero-mark-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes b2b-licenses-hero-mark-glow {
    0%, 100% {
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35)) brightness(1.02);
    }

    50% {
        filter: drop-shadow(0 14px 32px rgba(250, 204, 21, 0.25)) brightness(1.06);
    }
}

.b2b-panel-page .b2b-licenses-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
}

.b2b-panel-page .b2b-licenses-hero__copy {
    min-width: 0;
}

.b2b-panel-page .b2b-licenses-hero__visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.b2b-panel-page .b2b-licenses-hero__mark {
    display: block;
    width: clamp(132px, 22vw, 220px);
    height: auto;
    max-height: min(236px, 34vw);
    object-fit: contain;
    animation: b2b-licenses-hero-mark-float 3.6s ease-in-out infinite,
        b2b-licenses-hero-mark-glow 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .b2b-panel-page .b2b-licenses-hero__mark {
        animation: none;
    }
}

@media (max-width: 640px) {
    .b2b-panel-page .b2b-licenses-hero__inner {
        grid-template-columns: 1fr;
    }

    .b2b-panel-page .b2b-licenses-hero__visual {
        justify-content: center;
        margin-top: 4px;
    }

    .b2b-panel-page .b2b-licenses-hero__mark {
        width: clamp(120px, 48vw, 180px);
        max-height: 180px;
    }
}

.b2b-panel-page .b2b-licenses-hero__glow {
    pointer-events: none;
    position: absolute;
    right: -20%;
    top: -40%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle at 40% 40%, rgba(167, 139, 250, 0.45), transparent 55%);
    opacity: 0.9;
}

.b2b-panel-page .b2b-licenses-hero__eyebrow {
    position: relative;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(224, 231, 255, 0.85);
}

.b2b-panel-page .b2b-licenses-hero__title {
    position: relative;
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #fff;
}

.b2b-panel-page .b2b-licenses-hero__price {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #422006;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.b2b-panel-page .b2b-licenses-hero__lead {
    position: relative;
    margin: 0 0 12px;
    font-size: clamp(14px, 2.2vw, 16px);
    line-height: 1.55;
    color: rgba(224, 231, 255, 0.95);
    max-width: 52em;
}

.b2b-panel-page .b2b-licenses-hero__lead strong {
    color: #fff;
}

.b2b-panel-page .b2b-licenses-hero__economy {
    position: relative;
    margin: 0;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.3;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: none;
}

/* Uma linha quando há largura suficiente (desktop / painel amplo); quebra só em telas estreitas */
@media (min-width: 1024px) {
    .b2b-panel-page .b2b-licenses-hero__economy {
        font-size: clamp(11px, 1.05vw, 13px);
        white-space: nowrap;
        letter-spacing: -0.015em;
    }
}

@media (min-width: 1280px) {
    .b2b-panel-page .b2b-licenses-hero__economy {
        font-size: 13px;
    }
}

.b2b-panel-page .b2b-licenses-hero__economy strong {
    color: #4338ca;
}

.b2b-panel-page .b2b-licenses-ladder-wrap {
    margin-bottom: var(--b2b-section-gap);
}

.b2b-panel-page .b2b-licenses-ladder-head {
    margin-bottom: 14px;
    text-align: center;
}

.b2b-panel-page .b2b-licenses-ladder-head__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.b2b-panel-page .b2b-licenses-ladder-head__desc {
    margin: 0 auto;
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
    max-width: 560px;
}

.b2b-panel-page .b2b-licenses-ladder {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    padding: 16px 14px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid #e8ecf4;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.b2b-panel-page .b2b-licenses-step {
    position: relative;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 16px 10px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767px) {
    .b2b-panel-page .b2b-licenses-ladder {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
        gap: 10px;
    }

    .b2b-panel-page .b2b-licenses-step {
        padding: 14px 8px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .b2b-panel-page .b2b-licenses-step:hover {
        transform: translateY(-2px);
        border-color: #c7d2fe;
        box-shadow: 0 10px 24px rgba(99, 102, 241, 0.12);
    }
}

.b2b-panel-page .b2b-licenses-step--featured {
    border-color: #818cf8;
    background: linear-gradient(180deg, #fff 0%, #eef2ff 100%);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.18);
}

.b2b-panel-page .b2b-licenses-step__ribbon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
}

.b2b-panel-page .b2b-licenses-step__qty {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    line-height: 1.25;
    margin-top: 4px;
}

.b2b-panel-page .b2b-licenses-step__price {
    font-size: clamp(19px, 3.5vw, 24px);
    font-weight: 900;
    color: #4f46e5;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.b2b-panel-page .b2b-licenses-step__suffix {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.b2b-panel-page .b2b-licenses-buy__hint {
    font-size: clamp(15px, 1.12vw, 17px);
    line-height: 1.58;
    max-width: min(100%, 46ch);
    color: #64748b;
    margin: -6px 0 18px;
}

/* Duas colunas: Transforme saldo + Ao cadastrar clientes */
.b2b-panel-page .b2b-licenses-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-bottom: var(--b2b-section-gap);
}

.b2b-panel-page .b2b-licenses-dual-grid--solo {
    grid-template-columns: 1fr;
}

@media (max-width: 960px) {
    .b2b-panel-page .b2b-licenses-dual-grid:not(.b2b-licenses-dual-grid--solo) {
        grid-template-columns: 1fr;
    }
}

.b2b-panel-page .b2b-licenses-dual-grid > .full-card {
    margin-bottom: 0;
    height: 100%;
}

/* Slider compra de licenças — 1 a 300 */
.b2b-panel-page .b2b-lic-slider {
    --b2b-lic-slider-progress: 0%;
    padding: 14px 0 10px;
    border-radius: 14px;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
    border: 1px solid transparent;
}

@keyframes b2b-lic-milestone-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.45);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
    }
}

.b2b-panel-page .b2b-lic-slider--milestone {
    border-color: rgba(250, 204, 21, 0.65);
    background: linear-gradient(145deg, rgba(254, 252, 232, 0.9) 0%, rgba(255, 255, 255, 0.96) 50%, rgba(224, 231, 255, 0.45) 100%);
    animation: b2b-lic-milestone-pulse 1.8s ease-in-out infinite;
}

.b2b-panel-page .b2b-lic-slider__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.b2b-panel-page .b2b-lic-slider__readout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.b2b-panel-page .b2b-lic-slider__qty-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.b2b-panel-page .b2b-lic-slider__qty-num {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #312e81;
    transition: color 0.25s ease, transform 0.2s ease;
}

.b2b-panel-page .b2b-lic-slider--milestone .b2b-lic-slider__qty-num {
    color: #a16207;
    transform: scale(1.04);
}

.b2b-panel-page .b2b-lic-slider__qty-unit {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
}

.b2b-panel-page .b2b-lic-slider__unit-price {
    text-align: right;
}

.b2b-panel-page .b2b-lic-slider__unit-price-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.b2b-panel-page .b2b-lic-slider__unit-price-val {
    font-size: 20px;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.02em;
}

.b2b-panel-page .b2b-lic-slider__track-wrap {
    margin-bottom: 8px;
}

.b2b-panel-page .b2b-lic-slider__range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        #6366f1 0%,
        #6366f1 var(--b2b-lic-slider-progress),
        #e2e8f0 var(--b2b-lic-slider-progress),
        #e2e8f0 100%
    );
    outline: none;
    cursor: grab;
}

.b2b-panel-page .b2b-lic-slider__range:active {
    cursor: grabbing;
}

.b2b-panel-page .b2b-lic-slider__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff 0%, #eef2ff 100%);
    border: 3px solid #4f46e5;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    margin-top: -8px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.b2b-panel-page .b2b-lic-slider__range:active::-webkit-slider-thumb {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.b2b-panel-page .b2b-lic-slider--milestone .b2b-lic-slider__range::-webkit-slider-thumb {
    border-color: #eab308;
    box-shadow: 0 4px 18px rgba(234, 179, 8, 0.55);
}

.b2b-panel-page .b2b-lic-slider__range::-moz-range-track {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
}

.b2b-panel-page .b2b-lic-slider__range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff 0%, #eef2ff 100%);
    border: 3px solid #4f46e5;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    cursor: grab;
}

.b2b-panel-page .b2b-lic-slider__ticks {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    padding: 2px 2px 0;
    letter-spacing: 0.02em;
}

.b2b-panel-page .b2b-lic-slider__tick--goal {
    color: #a16207;
    font-weight: 800;
}

.b2b-panel-page .b2b-lic-slider--milestone .b2b-lic-slider__tick--goal {
    color: #854d0e;
    animation: none;
}

.b2b-panel-page .b2b-lic-slider__milestone-msg {
    margin: 12px 0 0;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.b2b-panel-page .b2b-lic-slider__total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.b2b-panel-page .b2b-lic-slider__total-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.b2b-panel-page .b2b-lic-slider__total-val {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.b2b-panel-page .b2b-lic-slider--milestone .b2b-lic-slider__total-val {
    color: #166534;
}

.b2b-panel-page .b2b-lic-slider__submit {
    margin-top: 16px;
    font-size: clamp(14px, 1vw, 15px);
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.b2b-panel-page .b2b-licenses-buy__form .b2b-lic-slider.b2b-lic-slider--milestone ~ .btn-success {
    box-shadow: 0 8px 28px rgba(22, 163, 74, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    .b2b-panel-page .b2b-lic-slider--milestone {
        animation: none;
    }

    .b2b-panel-page .b2b-lic-slider--milestone .b2b-lic-slider__qty-num {
        transform: none;
    }
}

.b2b-panel-page .b2b-licenses-buy__title.card-title {
    align-items: center;
}

.b2b-panel-page .b2b-licenses-meta .b2b-licenses-meta__title.card-title {
    margin-bottom: 8px !important;
}

.b2b-panel-page .b2b-licenses-meta__lead {
    margin: 0 0 12px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.b2b-panel-page .b2b-licenses-meta__list {
    margin: 0;
    padding: 0 0 0 1.15em;
    font-size: 14px;
    color: #334155;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.b2b-panel-page .b2b-licenses-meta__note {
    margin: 16px 0 0;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.b2b-panel-page .b2b-licenses-meta__note strong:first-child {
    color: #0f172a;
}

/* Price plan cards — mobile: carrossel horizontal; tablet+: grid */
.b2b-panel-page .b2b-price-plans-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--b2b-gutter);
    padding: 10px calc(var(--b2b-gutter) / 4) 16px;
    margin: 0 calc(var(--b2b-gutter) / -4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.b2b-panel-page .b2b-price-plans-grid::-webkit-scrollbar {
    height: 6px;
}

.b2b-panel-page .b2b-price-plans-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

@media (min-width: 768px) {
    .b2b-panel-page .b2b-price-plans-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 12px;
        overflow: visible;
        scroll-snap-type: none;
        padding: 0;
        margin: 0;
        flex-wrap: unset;
    }
}

.b2b-panel-page .b2b-price-plan-card {
    position: relative;
    background: linear-gradient(180deg, #fafbff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 min(268px, 82vw);
    scroll-snap-align: start;
    min-height: 128px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

@media (min-width: 768px) {
    .b2b-panel-page .b2b-price-plan-card {
        flex: none;
        scroll-snap-align: unset;
        min-height: 132px;
    }
}

.b2b-panel-page .b2b-price-plan-card--featured {
    border-color: #6366f1;
    box-shadow: 0 10px 32px rgba(99, 102, 241, 0.2);
    background: linear-gradient(180deg, #fff 0%, #eef2ff 100%);
    flex-basis: min(288px, 86vw);
}

@media (min-width: 768px) {
    .b2b-panel-page .b2b-price-plan-card--featured {
        flex-basis: auto;
    }
}

.b2b-panel-page .b2b-price-plan-card--muted {
    opacity: 0.48;
}

.b2b-panel-page .b2b-price-plan-card__badge {
    position: absolute;
    top: -9px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
}

.b2b-panel-page .card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   Form inline (criar cliente)
   -------------------------------------------------------------------------- */
.b2b-panel-page .b2b-form-inline .grid-4col {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: flex-end;
}

.b2b-panel-page .b2b-form-inline .form-field {
    flex: 1 1 160px;
    min-width: 140px;
    margin-bottom: 0 !important;
}

.b2b-panel-page .b2b-form-inline .form-field .field-select,
.b2b-panel-page .b2b-form-inline .form-field .field-input {
    width: 100%;
}

/* Mesmo traço dos campos text — e-mail herdava estética diferente no tema/React/Elementor */
.b2b-panel-page .b2b-client-create-card .field-input,
.b2b-panel-page .b2b-client-create-card input.field-input[type="text"],
.b2b-panel-page .b2b-client-create-card input.field-input[type="email"],
.b2b-panel-page .b2b-client-create-card input.field-input[type="tel"],
.b2b-panel-page .b2b-client-create-card input.field-input[type="search"],
.b2b-panel-page .b2b-client-create-card input[type="email"].field-input {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 14px !important;
    min-height: 44px;
    border: 1.5px solid var(--b2b-border, #e2e8f0) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background: var(--b2b-card, #ffffff) !important;
    color: var(--b2b-text, #111827) !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.b2b-panel-page .b2b-client-create-card input.field-input::placeholder {
    color: var(--b2b-text-muted, #94a3b8);
}

.b2b-panel-page .b2b-client-create-card input.field-input:focus {
    outline: none !important;
    border-color: var(--b2b-primary, #667eea) !important;
    box-shadow: 0 0 0 3px var(--b2b-step-active-bg, rgba(102, 126, 234, 0.15)) !important;
}

.b2b-panel-page .b2b-form-inline .b2b-form-inline-submit {
    flex: 0 0 auto;
    align-self: flex-end;
}

@media (max-width: 768px) {
    .b2b-panel-page .b2b-form-inline .b2b-form-inline-submit {
        width: 100%;
    }
    .b2b-panel-page .b2b-form-inline .b2b-form-inline-submit .btn {
        width: 100%;
    }
}

/* Toolbar tabela clientes */
.b2b-panel-page .b2b-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8ecf4;
}

.b2b-panel-page .b2b-table-toolbar__meta {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.b2b-panel-page table.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf4;
    background: #fff;
}

.b2b-panel-page table.data-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 11px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8ecf4;
    text-align: left;
}

.b2b-panel-page table.data-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.b2b-panel-page table.data-table tbody tr:hover td {
    background: #fafbff;
}

.b2b-panel-page table.data-table tbody tr:last-child td {
    border-bottom: none;
}

.b2b-panel-page .badge {
    border-radius: 999px;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.b2b-panel-page .badge-approved,
.b2b-panel-page .badge-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.b2b-panel-page .badge-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.b2b-panel-page .badge-expired,
.b2b-panel-page .badge-expirado {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.b2b-panel-page .badge-failed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Shell: sem padding (Customizer “CSS adicional” costuma forçar padding no .dash-container com !important) */
.b2b-panel-page .dash-container.b2b-app-shell {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    .b2b-panel-page .dash-container.b2b-app-shell {
        overflow-x: hidden;
    }
}

/* Topbar interior: mantém compat header-menu (sem flex:1 global que empurra segunda linha) */
.b2b-panel-page .b2b-topbar .header-menu {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 6px !important;
    justify-content: flex-end;
}

.b2b-panel-page .b2b-topbar .menu-btn {
    border-radius: 10px;
    padding: 8px 12px !important;
    font-size: 13px !important;
    min-height: 40px !important;
}

/*
 * Topbar clara — perfil (#b2bProfileToggle) e Sair herdavam glass/branco do theme (invisível no fundo #fff).
 * Download/Suporte mantêm .download / .whatsapp.
 */
.b2b-panel-page .b2b-topbar button.menu-btn:not(.download):not(.whatsapp):not(.menu-logout),
.b2b-panel-page .b2b-topbar .b2b-header-profile > .menu-btn {
    border: none !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.28);
}

@media (hover: hover) and (pointer: fine) {
    .b2b-panel-page .b2b-topbar button.menu-btn:not(.download):not(.whatsapp):not(.menu-logout):hover,
    .b2b-panel-page .b2b-topbar .b2b-header-profile > .menu-btn:hover {
        background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
        color: #ffffff !important;
        border: none !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(67, 56, 202, 0.35);
    }
}

.b2b-panel-page .b2b-topbar a.menu-btn.menu-logout {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
}

@media (hover: hover) and (pointer: fine) {
    .b2b-panel-page .b2b-topbar a.menu-btn.menu-logout:hover {
        background: #fef2f2 !important;
        border-color: #f87171 !important;
        color: #991b1b !important;
    }
}

.b2b-panel-page .dash-container > .alert {
    margin: 12px 0 18px !important;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Saldo na sidebar + page header SaaS
   -------------------------------------------------------------------------- */
/* Cartão de saldo sob a marca, acima das ligações (Dashboard…): não encolhe com flex */
.b2b-panel-page .b2b-sidebar-balance-card {
    margin: 10px 12px 14px;
    flex-shrink: 0;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.b2b-panel-page .b2b-sidebar-balance-card__label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(224, 231, 255, 0.7);
}

.b2b-panel-page .b2b-sidebar-balance-card__value {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.b2b-panel-page .b2b-sidebar-balance-card .btn {
    width: 100%;
    justify-content: center;
    min-height: var(--b2b-touch);
}

.b2b-panel-page .b2b-sidebar__link:active {
    background: rgba(255, 255, 255, 0.16);
}

.b2b-panel-page .b2b-sidebar__link--active {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.35), rgba(99, 102, 241, 0.5)) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.b2b-panel-page .b2b-page-header {
    margin-bottom: var(--b2b-section-gap);
}

.b2b-panel-page .b2b-page-header__title {
    margin: 0 0 6px;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.b2b-panel-page .b2b-page-header__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
}

.b2b-panel-page .b2b-inline-step-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: var(--b2b-section-gap);
    justify-content: center;
    align-items: center;
}

.b2b-panel-page .b2b-inline-step-hints a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--b2b-touch);
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #4338ca;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.b2b-panel-page .b2b-inline-step-hints a:active {
    transform: scale(0.98);
    background: #f8fafc;
}

.b2b-panel-page .btn:active,
.b2b-panel-page button.menu-btn:active {
    transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
    .b2b-panel-page .stat-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 36px rgba(99, 102, 241, 0.12);
    }
}

@media (pointer: coarse) {
    .b2b-panel-page .stat-box:hover {
        transform: none;
    }
}

/* Avisos: só conteúdo + fechar discreto (dismiss via AJAX + sessão PHP) */
.b2b-panel-page .notice-carousel {
    position: relative;
    padding-top: 14px;
    padding-right: 36px;
}

.b2b-panel-page .notice-carousel__close {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(15, 23, 42, 0.35);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .b2b-panel-page .notice-carousel__close:hover {
        background: rgba(15, 23, 42, 0.06);
        color: rgba(15, 23, 42, 0.55);
    }
}

.b2b-panel-page .notice-carousel__close:active {
    transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   Afiliados — link + formulário manual (inputs consistentes / alinhados)
   -------------------------------------------------------------------------- */
.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-link-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--b2b-radius);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-link-stack .b2b-affiliate-link-field {
    flex: 1 1 240px;
    min-width: min(100%, 200px);
    min-height: 46px;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.4;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.045);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-link-stack .b2b-affiliate-link-field:focus {
    outline: none !important;
    border-color: #6366f1 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.045), 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-copy-btn {
    flex: 0 0 auto;
    align-self: stretch;
    min-height: 46px !important;
    padding: 0 22px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.28);
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid {
    display: grid !important;
    gap: 16px !important;
    align-items: end;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    margin-bottom: 24px;
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid .form-field {
    margin-bottom: 0 !important;
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid .field-label {
    display: block;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #475569 !important;
    margin-bottom: 8px !important;
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid .field-input,
.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid input[type="email"],
.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid input[type="password"],
.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid input[type="text"] {
    width: 100%;
    padding: 12px 14px !important;
    min-height: 46px;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 1.35;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.045);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid .field-input::placeholder {
    color: #94a3b8;
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid .field-input:focus,
.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid input[type="email"]:focus,
.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid input[type="password"]:focus,
.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid input[type="text"]:focus {
    outline: none !important;
    border-color: #6366f1 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.045), 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid .b2b-form-inline-submit {
    grid-column: 1 / -1;
    padding-top: 4px;
}

.b2b-panel-page #b2b-section-affiliate .b2b-affiliate-referee-grid .b2b-form-inline-submit .btn {
    min-height: 46px !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
}

@media (max-width: 767px) {
    .b2b-panel-page #b2b-section-affiliate .b2b-affiliate-link-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .b2b-panel-page #b2b-section-affiliate .b2b-affiliate-link-stack .b2b-affiliate-link-field {
        min-width: 0;
        width: 100%;
    }

    .b2b-panel-page #b2b-section-affiliate .b2b-affiliate-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Mobile ate 767px — topbar, formularios, tabelas em cards
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .b2b-panel-page .b2b-topbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu brand actions"
            "search search search";
        row-gap: 10px;
        column-gap: 10px;
        align-items: center;
        padding-top: max(10px, env(safe-area-inset-top, 10px));
        padding-bottom: 10px;
    }

    .b2b-panel-page .b2b-topbar__menu {
        grid-area: menu;
    }

    .b2b-panel-page .b2b-topbar__brand {
        grid-area: brand;
        min-width: 0;
    }

    .b2b-panel-page .b2b-topbar__page-title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .b2b-panel-page .b2b-topbar__sep {
        display: none;
    }

    .b2b-panel-page .b2b-topbar__search {
        grid-area: search;
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .b2b-panel-page .b2b-topbar__actions {
        grid-area: actions;
        justify-self: end;
        max-width: 100%;
        min-width: 0;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .b2b-panel-page .header-menu {
        gap: 4px !important;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .b2b-panel-page .b2b-topbar .menu-btn {
        min-height: var(--b2b-touch) !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .b2b-panel-page .stats-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .b2b-panel-page .full-card,
    .b2b-panel-page .action-card {
        padding: 18px var(--b2b-gutter);
        margin-bottom: 16px;
        border-radius: var(--b2b-radius);
    }

    .b2b-panel-page .b2b-steps-flow {
        padding: 14px var(--b2b-gutter);
    }

    .b2b-panel-page .b2b-steps-flow .b2b-step-arrow {
        display: none;
    }

    .b2b-panel-page .grid-2col {
        grid-template-columns: 1fr;
        gap: var(--b2b-section-gap);
    }

    .b2b-panel-page .b2b-support-ticket-layout,
    .b2b-panel-page .grid-2col.b2b-support-ticket-layout {
        display: flex;
        flex-direction: column;
        gap: var(--b2b-section-gap);
    }

    .b2b-panel-page .b2b-form-inline .grid-4col {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        gap: 14px !important;
    }

    .b2b-panel-page .b2b-form-inline .form-field {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100%;
    }

    .b2b-panel-page .full-card .field-input,
    .b2b-panel-page .full-card .field-select,
    .b2b-panel-page .action-card .field-input,
    .b2b-panel-page .action-card .field-select {
        min-height: var(--b2b-touch);
        font-size: 16px !important;
    }

    .b2b-panel-page .full-card textarea.field-input,
    .b2b-panel-page .full-card textarea {
        font-size: 16px !important;
        min-height: 120px;
    }

    .b2b-panel-page .full-card .btn,
    .b2b-panel-page .action-card .btn,
    .b2b-panel-page .b2b-form-inline-submit .btn {
        width: 100%;
        justify-content: center;
        min-height: var(--b2b-touch) !important;
    }

    .b2b-panel-page .full-card input[type="file"],
    .b2b-panel-page .full-card select {
        width: 100%;
    }

    .b2b-panel-page #b2b-section-affiliate .grid-4col,
    .b2b-panel-page #b2b-section-affiliate form .grid-4col {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }

    .b2b-panel-page #b2b-section-affiliate .b2b-form-inline-submit .btn {
        width: 100%;
        min-height: var(--b2b-touch) !important;
    }

    .b2b-panel-page table.data-table.data-table--responsive thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .b2b-panel-page table.data-table.data-table--responsive tbody tr {
        display: block;
        margin-bottom: 14px;
        padding: 0;
        border: 1px solid #e8ecf4;
        border-radius: var(--b2b-radius);
        overflow: hidden;
        background: #fff;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    }

    .b2b-panel-page table.data-table.data-table--responsive tbody tr:last-child {
        margin-bottom: 0;
    }

    .b2b-panel-page table.data-table.data-table--responsive tbody td {
        display: grid;
        grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        padding: 13px var(--b2b-gutter) !important;
        border-bottom: 1px solid #f1f5f9 !important;
        vertical-align: top;
    }

    .b2b-panel-page table.data-table.data-table--responsive tbody td:last-child {
        border-bottom: none !important;
    }

    .b2b-panel-page table.data-table.data-table--responsive tbody td[data-label]::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        line-height: 1.35;
        padding-top: 2px;
    }

    .b2b-panel-page table.data-table.data-table--responsive tbody td[colspan]::before {
        display: none;
        content: none;
    }

    .b2b-panel-page table.data-table.data-table--responsive tbody td[colspan] {
        display: block;
        grid-template-columns: unset;
        padding: 16px var(--b2b-gutter) !important;
    }

    .b2b-panel-page table.data-table.data-table--responsive tbody tr:hover td {
        background: transparent !important;
    }

    /* Lista de clientes compacta — cards mais legíveis no telemóvel */
    .b2b-panel-page table.data-table.b2b-clients-table--compact {
        table-layout: auto !important;
    }

    .b2b-panel-page table.data-table.b2b-clients-table--compact tbody tr.b2b-clients-table__row {
        padding: 4px;
    }

    .b2b-panel-page table.data-table.b2b-clients-table--compact tbody td {
        grid-template-columns: minmax(104px, 38%) minmax(0, 1fr);
        gap: 12px;
    }

    .b2b-panel-page table.data-table.b2b-clients-table--compact tbody td[data-label]::before {
        padding-top: 4px;
    }

    .b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-td-actions .b2b-client-actions {
        width: 100%;
    }

    .b2b-panel-page table.data-table.b2b-clients-table--compact .b2b-dados-licenca-card {
        padding-inline: 10px;
    }

    .b2b-panel-page .b2b-td-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .b2b-panel-page .b2b-action-sep {
        display: none;
    }

    .b2b-panel-page .b2b-td-actions .b2b-action-link,
    .b2b-panel-page .b2b-td-actions > .link-action {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: var(--b2b-touch);
        padding: 0 12px !important;
        margin: 0 !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        font-weight: 600;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        text-decoration: none;
    }

    .b2b-panel-page .b2b-td-actions .link-danger,
    .b2b-panel-page .b2b-td-actions .link-danger.b2b-action-link {
        background: #fef2f2;
        border-color: #fecaca;
        color: #b91c1c !important;
    }

    .b2b-panel-page .b2b-td-actions .link-success,
    .b2b-panel-page .b2b-td-actions .link-success.b2b-action-link {
        background: #ecfdf5;
        border-color: #bbf7d0;
        color: #166534 !important;
    }

    .b2b-panel-page .b2b-td-actions .link-primary,
    .b2b-panel-page .b2b-td-actions .link-primary.b2b-action-link {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1d4ed8 !important;
    }

    .b2b-panel-page .b2b-btn-stack,
    .b2b-panel-page .button.b2b-btn-stack {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: var(--b2b-touch);
        padding: 0 16px !important;
        margin: 0 !important;
        border-radius: 12px !important;
        text-align: center;
        box-sizing: border-box;
    }

    .b2b-panel-page .link-action:not(.b2b-td-actions .link-action) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: var(--b2b-touch);
        padding: 0 14px !important;
    }

    .b2b-panel-page a.btn {
        min-height: var(--b2b-touch) !important;
    }

    .b2b-panel-page .notice-carousel {
        margin-bottom: var(--b2b-section-gap);
        border-radius: var(--b2b-radius);
    }

}

@media (min-width: 768px) and (max-width: 1024px) {
    .b2b-panel-page .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .b2b-panel-page .stats-row > .stat-box:nth-child(3):last-child {
        grid-column: 1 / -1;
        max-width: 420px;
        margin-inline: auto;
        width: 100%;
    }

    .b2b-panel-page .b2b-topbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu brand actions"
            "search search search";
        align-items: center;
        row-gap: 10px;
        column-gap: 10px;
        flex-wrap: unset;
    }

    .b2b-panel-page .b2b-topbar__menu {
        grid-area: menu;
    }

    .b2b-panel-page .b2b-topbar__brand {
        grid-area: brand;
        min-width: 0;
        flex: unset;
        overflow: hidden;
    }

    .b2b-panel-page .b2b-topbar__page-title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .b2b-panel-page .b2b-topbar__search {
        grid-area: search;
        flex: unset;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .b2b-panel-page .b2b-topbar__actions {
        grid-area: actions;
        justify-self: end;
        flex-wrap: nowrap;
        gap: 6px;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .b2b-panel-page .b2b-topbar .header-menu {
        flex: 0 1 auto;
        flex-wrap: nowrap;
    }
}

.b2b-panel-page .b2b-table-scroll-fallback {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .b2b-panel-page .b2b-table-wrap--responsive {
        overflow-x: visible !important;
    }

    .b2b-panel-page .b2b-pagination-bar {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
        margin-top: 18px !important;
        padding: 12px var(--b2b-gutter) !important;
        background: #f8fafc;
        border-radius: var(--b2b-radius);
        border: 1px solid #e8ecf4;
    }

    .b2b-panel-page .b2b-pagination-bar .btn {
        min-height: var(--b2b-touch) !important;
        min-width: var(--b2b-touch);
        justify-content: center;
    }

    .b2b-panel-page .b2b-file-field__drop {
        width: 100%;
        box-sizing: border-box;
        min-height: 120px;
    }
}

/* Suporte — tickets (revendedor): layout + upload */
.b2b-panel-page .b2b-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;
}

.b2b-panel-page .b2b-support-tickets-card {
    overflow: visible;
}

.b2b-panel-page .b2b-support-ticket-layout {
    gap: 22px;
    align-items: stretch;
}

.b2b-panel-page .b2b-support-ticket-col {
    min-width: 0;
    padding: 22px 24px;
    border-radius: var(--b2b-radius);
    border: 1px solid #e8ecf4;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.06);
}

.b2b-panel-page .b2b-support-section-title {
    margin: 0 0 16px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.b2b-panel-page .b2b-support-field-row {
    margin-bottom: 16px;
}

.b2b-panel-page .b2b-support-field-row:last-of-type {
    margin-bottom: 0;
}

.b2b-panel-page .b2b-support-field-row .field-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
}

.b2b-panel-page .b2b-support-new-ticket-form .submit {
    margin-bottom: 0;
    margin-top: 18px;
}

.b2b-panel-page .b2b-support-submit-row {
    margin-top: 18px;
    margin-bottom: 0;
}

.b2b-panel-page .b2b-support-submit-row .btn {
    min-height: 44px;
    padding-left: 22px;
    padding-right: 22px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

.b2b-panel-page .b2b-support-ticket-col--list .data-table thead th {
    background: #f1f5f9;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
}

.b2b-panel-page .b2b-support-ticket-col--list .b2b-table-scroll-fallback {
    border-radius: 12px;
    border: 1px solid #e8ecf4;
    overflow: hidden;
}

.b2b-panel-page .b2b-support-faq {
    margin-top: 22px;
    padding: 20px 22px;
    border-radius: var(--b2b-radius);
    border: 1px solid #e8ecf4;
    background: #fafbff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.b2b-panel-page .b2b-support-faq__title {
    margin-bottom: 12px !important;
    font-size: 15px !important;
}

.b2b-panel-page .b2b-support-faq__list {
    margin: 0;
    padding-left: 1.25em;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.b2b-panel-page .b2b-support-reply-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf4;
}

.b2b-panel-page .b2b-support-reply-form .b2b-file-field {
    margin-top: 4px;
    margin-bottom: 0;
}

.b2b-panel-page .b2b-support-close-inline {
    margin-top: 12px;
}

.b2b-panel-page .b2b-support-btn-close {
    min-height: auto;
    padding: 10px 16px !important;
    border-radius: 10px;
    font-weight: 600;
}

/* Campo de ficheiros (print / imagem) — zona clicável */
.b2b-panel-page .b2b-file-field {
    position: relative;
    margin-top: 18px;
    margin-bottom: 4px;
}

.b2b-panel-page .b2b-file-field .field-label {
    margin-bottom: 8px;
}

.b2b-panel-page .b2b-file-field__drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 22px 18px;
    border-radius: 14px;
    border: 2px dashed #c7d2fe;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 55%, #faf5ff 100%);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.b2b-panel-page .b2b-file-field__drop:hover {
    border-color: #818cf8;
    background: linear-gradient(145deg, #ffffff 0%, #eef2ff 45%, #f5f3ff 100%);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.12);
}

.b2b-panel-page .b2b-file-field__drop:active {
    transform: scale(0.99);
}

.b2b-panel-page .b2b-file-field__drop.is-dragover {
    border-color: #6366f1;
    border-style: solid;
    background: #eef2ff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.b2b-panel-page .b2b-file-field:focus-within .b2b-file-field__drop {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.b2b-panel-page .b2b-file-field__icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
}

.b2b-panel-page .b2b-file-field__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
    pointer-events: none;
}

.b2b-panel-page .b2b-file-field__names {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    word-break: break-word;
    max-width: 100%;
    padding: 0 6px;
    line-height: 1.4;
}

.b2b-panel-page .b2b-file-field__hint {
    margin: 0;
    padding: 0 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    max-width: 34ch;
}

/* Suporte — banner de alerta (política de canais) */
.b2b-panel-page .b2b-support-alert-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--b2b-radius);
    border: 1px solid #fcd34d;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.12);
}

.b2b-panel-page .b2b-support-alert-banner__ico {
    flex-shrink: 0;
    margin-top: 2px;
    color: #b45309;
    line-height: 0;
}

.b2b-panel-page .b2b-support-alert-banner__inner {
    flex: 1;
    min-width: 0;
}

.b2b-panel-page .b2b-support-alert-banner__lead {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.35;
    color: #78350f;
}

.b2b-panel-page .b2b-support-alert-banner__text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #92400e;
}

.b2b-panel-page .b2b-support-alert-banner__text a {
    font-weight: 600;
    color: #b45309;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.b2b-panel-page .b2b-support-alert-banner__text a:hover {
    color: #92400e;
}

.b2b-panel-page .b2b-support-alert-banner__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.b2b-panel-page .b2b-support-alert-banner__btn-ghost {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #92400e !important;
    border: 2px solid #fcd34d !important;
}

.b2b-panel-page .b2b-support-alert-banner__btn-ghost:hover {
    background: #fff !important;
    border-color: #f59e0b !important;
}

/* Sino — gaveta de changelog (revendedor) */
.b2b-panel-page .b2b-topbar button.menu-btn.b2b-changelog-bell {
    position: relative;
    padding: 10px 12px;
    flex-shrink: 0;
}

.b2b-panel-page .b2b-changelog-bell__svg {
    display: block;
    flex-shrink: 0;
    opacity: 0.92;
}

.b2b-panel-page .b2b-topbar button.menu-btn.b2b-changelog-bell:hover .b2b-changelog-bell__svg {
    opacity: 1;
}

.b2b-panel-page .b2b-changelog-bell__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.b2b-panel-page .b2b-changelog-drawer {
    position: fixed;
    inset: 0;
    z-index: 100040;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.2s linear;
}

.b2b-panel-page .b2b-changelog-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.b2b-panel-page .b2b-changelog-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.b2b-panel-page .b2b-changelog-drawer.is-open .b2b-changelog-drawer__backdrop {
    opacity: 1;
}

.b2b-panel-page .b2b-changelog-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(416px, 100vw);
    display: flex;
    flex-direction: column;
    background: #17181f;
    color: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.b2b-panel-page .b2b-changelog-drawer.is-open .b2b-changelog-drawer__panel {
    transform: translateX(0);
}

.b2b-panel-page .b2b-changelog-drawer__top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.b2b-panel-page .b2b-changelog-drawer__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.b2b-panel-page .b2b-changelog-drawer__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-panel-page .b2b-changelog-drawer__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.b2b-panel-page .b2b-changelog-drawer__list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 20px;
}

.b2b-panel-page .b2b-changelog-drawer__empty {
    padding: 20px 16px;
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.b2b-panel-page .b2b-changelog-drawer__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.b2b-panel-page .b2b-changelog-drawer__ico {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.b2b-panel-page .b2b-changelog-drawer__ico-inner {
    font-weight: 800;
    font-size: 15px;
    font-style: normal;
    line-height: 1;
    color: #ecfdf5;
    font-family: system-ui, -apple-system, sans-serif;
}

.b2b-panel-page .b2b-changelog-drawer__main {
    flex: 1;
    min-width: 0;
}

.b2b-panel-page .b2b-changelog-drawer__item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.b2b-panel-page .b2b-changelog-drawer__item-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.b2b-panel-page .b2b-changelog-drawer__item-datelines {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    max-width: 48%;
}

.b2b-panel-page .b2b-changelog-drawer__item-time-abs {
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}

.b2b-panel-page .b2b-changelog-drawer__item-time-rel {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .b2b-panel-page .b2b-changelog-drawer__item-datelines {
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .b2b-panel-page .b2b-changelog-drawer__item-head {
        flex-direction: column;
        align-items: stretch;
    }

    .b2b-panel-page .b2b-changelog-drawer__item-time-abs,
    .b2b-panel-page .b2b-changelog-drawer__item-time-rel {
        white-space: normal;
    }
}

.b2b-panel-page .b2b-changelog-drawer__item-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.b2b-panel-page .b2b-changelog-drawer__item-desc {
    margin: 0;
    font-size: 12px;
    color: #cbd5f5;
    line-height: 1.45;
    opacity: 0.92;
}
