/* InMulti BI — Design System (Inmulti carbon / lemon / mig / sand) */

:root {
    --brand-primary: #10232A;
    --brand-secondary: #e5ff2b;
    --brand-green: #10232A;
    --brand-accent: #e5ff2b;
    --brand-mig: #FF5804;
    --brand-sand: #E4EEF0;
    --brand-gradient-end: #0a181e;
    --brand-primary-rgb: 16, 35, 42;
    --brand-green-rgb: 16, 35, 42;
    --brand-lemon-rgb: 229, 255, 43;
    --inc-grad: linear-gradient(135deg, #10232A 0%, #0a181e 100%);
    --color-brand-25: #F7F9FA;
    --color-brand-50: #E4EEF0;
    --color-brand-100: #d0dce0;
    --color-brand-200: #a8bcc4;
    --color-brand-300: #6b8a94;
    --color-brand-400: #3d5a66;
    --color-brand-500: #10232A;
    --color-brand-600: #0d1c22;
    --color-brand-700: #e5ff2b;
    --color-brand-800: #10232A;
    --color-brand-900: #0a181e;
    --color-brand-950: #050d10;
    --shadow-theme-xs: 0px 1px 2px 0px rgba(16, 35, 42, 0.05);
    --shadow-theme-sm: 0px 1px 3px 0px rgba(16, 35, 42, 0.1), 0px 1px 2px 0px rgba(16, 35, 42, 0.06);
    --shadow-theme-md: 0px 4px 8px -2px rgba(16, 35, 42, 0.1), 0px 2px 4px -2px rgba(16, 35, 42, 0.06);
}

.flow-page-title {
    color: #10232A;
}

.dashboard-fade-in {
    animation: fadeInUp 0.42s ease-out both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.shadow-theme-xs { box-shadow: var(--shadow-theme-xs); }
.shadow-theme-sm { box-shadow: var(--shadow-theme-sm); }
.shadow-theme-md { box-shadow: var(--shadow-theme-md); }

/* Data Tables — InMulti BI */
.ta-table-wrap {
    --ta-table-head-bg: #f9fafb;
    --ta-table-head-fg: #667085;
    --ta-table-row-border: #eaecf0;
}

.ta-table-wrap table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ta-table-wrap thead th {
    background: var(--ta-table-head-bg);
    color: var(--ta-table-head-fg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ta-table-row-border);
}

.ta-table-wrap tbody td {
    border-bottom: 1px solid var(--ta-table-row-border);
}

.ta-table-wrap tbody tr {
    transition: background-color 160ms ease;
}

.ta-table-wrap tbody tr:hover {
    background: #f9fafb;
}

/* pl-table — mesmo padrão visual (usado em contratos/show, CNAB, etc.) */
.pl-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pl-table thead th {
    background: #f9fafb;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid #eaecf0;
}

.pl-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eaecf0;
    vertical-align: middle;
}

.pl-table tbody tr:hover {
    background: #f9fafb;
}

.pl-table tbody td.text-right,
.pl-table thead th.text-right {
    text-align: right;
}

.ta-table-scroll tbody {
    position: relative;
    z-index: 3;
}

.ta-dt-footer {
    position: relative;
    z-index: 0;
}

/* Forms */
.flow-form-input {
    height: 2.75rem;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #d0d5dd;
    background: #fff;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #1d2939;
    box-shadow: var(--shadow-theme-xs);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.flow-form-input:focus {
    outline: none;
    border-color: var(--color-brand-300);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 160, 112, 64), 0.12);
}

.flow-form-check {
    accent-color: var(--brand-primary);
}

/* Busca global — badges de status do imóvel */
.pl-search-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}
.pl-search-badge-success { background: #dcfce7; color: #166534; }
.pl-search-badge-muted { background: #f3f4f6; color: #6b7280; }
.pl-search-badge-info { background: #dbeafe; color: #1e40af; }
.pl-search-badge-warning { background: #fef3c7; color: #92400e; }
.pl-search-badge-secondary { background: #f3f4f6; color: #4b5563; }

/* App shell — só a main rola; html/body travados (evita sidebar “flutuando”) */
html, body {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
.pl-app-shell {
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

/* Dashboard — abas compactas no mobile (scroll horizontal) */
@media (max-width: 1023px) {
    .dash-tabs-nav {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }
    .dash-tabs-nav::-webkit-scrollbar { display: none; }
    .dash-tabs-nav .dash-tab { scroll-snap-align: start; }
}

.pl-sidebar-nav {
    -webkit-overflow-scrolling: touch;
}

.pl-main-scroll {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    /* Folga sob o scroll para o FAB Insights (fixed bottom-6, Ø 3.5rem) não cobrir ações/tabelas */
    scroll-padding-bottom: 7rem;
}

/* Menu */
.menu-item-active {
    background: linear-gradient(to bottom right, var(--color-brand-25), var(--color-brand-50), var(--color-brand-100));
    color: var(--color-brand-700);
    font-weight: 600;
}

/* Sidebar — faixa de filtro com gradiente de marca (paridade PixCRM Flow) */
.flow-sidebar-brand {
    background: linear-gradient(120deg, var(--brand-primary) 0%, var(--brand-gradient-end) 100%);
    box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb, 16, 35, 42), 0.28);
}
.flow-on-brand-search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---- Menu horizontal (Aparência → Tipo de menu) — paridade Sports360 ---- */
.pl-horiz-top-logo {
    display: none;
}
.pl-horiz-nav {
    display: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: #f3f4f6; /* gray-100 — faixa bem clara */
    border-bottom: 1px solid #e5e7eb;
    padding: 0.625rem 1rem; /* py-2.5 px-4 */
}
@media (min-width: 1024px) {
    .pl-horiz-nav { padding-left: 1.5rem; padding-right: 1.5rem; }
    .pl-app-shell.nav-horizontal .pl-horiz-top-logo {
        display: inline-flex;
    }
    .pl-app-shell.nav-horizontal .pl-horiz-nav {
        display: flex;
    }
}
.pl-horiz-nav::-webkit-scrollbar { height: 4px; }
.pl-horiz-btn[aria-expanded="true"] {
    background: var(--color-brand-50);
    color: var(--color-brand-700);
}
.pl-horiz-btn[aria-expanded="true"] .pl-horiz-chevron {
    transform: rotate(180deg);
}
/* L2: mesmos ícones da sidebar · L3: tipografia menor, sem negrito (sem ícone) */
.pl-horiz-l2 {
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
}
.pl-horiz-l2-flyout-open {
    background: var(--color-brand-50);
    color: var(--color-brand-700);
}
a.pl-horiz-l3 {
    font-size: 0.75rem; /* text-xs */
    font-weight: 400;
}
[data-horiz-l3] {
    left: 100%;
    margin-left: 0.25rem;
}
[data-horiz-l3].pl-horiz-l3-left {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.25rem;
}
/* Logo do topo horizontal: nunca forçar aspect ratio */
.pl-horiz-top-logo img {
    height: 2.25rem; /* h-9 */
    width: auto;
    max-width: 180px;
    max-height: 2.25rem;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    /* Desktop: esconde sidebar fixa; usa só a barra horizontal + gaveta sob demanda */
    .pl-app-shell.nav-horizontal {
        flex-direction: column;
    }
    .pl-app-shell.nav-horizontal > #sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        transform: translateX(-100%) !important;
        z-index: 50;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
        border-right: 1px solid #e5e7eb;
    }
    .pl-app-shell.nav-horizontal.horiz-drawer-open > #sidebar {
        transform: translateX(0) !important;
    }
    .pl-app-shell.nav-horizontal.horiz-drawer-open > #sidebarOverlay {
        display: block !important;
        z-index: 45;
    }
    .pl-app-shell.nav-horizontal > .flex-1 {
        width: 100%;
        max-width: 100%;
    }
    .pl-app-shell.nav-horizontal .pl-main-scroll {
        border-top-left-radius: 0;
    }
    /* Colapso clássico não se aplica no modo horizontal */
    .pl-app-shell.nav-horizontal.sidebar-collapsed #sidebar {
        width: 280px !important;
    }
}

/* Esconder o menu no desktop: o conteúdo PRECISA ocupar 100% (não espremer).
   O colapso só-ícones (76px) quebrava o flex: min-width:auto dos rótulos longos
   empurrava o main para uma faixa estreita no centro. */
#sidebar {
    transition: width .28s cubic-bezier(.22, 1, .36, 1), min-width .28s, opacity .18s;
    min-width: 280px;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
}
.pl-app-shell > .flex-1 {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
}

.pl-app-shell.sidebar-hidden > #sidebar,
.pl-app-shell.sidebar-collapsed > #sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    overflow: hidden !important;
    border-right-width: 0 !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: none !important;
}
.pl-app-shell.sidebar-hidden > .flex-1,
.pl-app-shell.sidebar-collapsed > .flex-1 {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

/* Busca no header (padrão Aluguel / Sports360) */
.bi-header-left { max-width: 40%; }
.bi-header-right { margin-left: auto; }
.bi-header-search {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 36rem;
}
.bi-header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.bi-header-search-ico {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
}
.bi-header-search-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2.35rem;
    margin: 0;
    padding: 0 2.5rem 0 2.35rem;
    border: 1px solid #e7ddd0;
    border-radius: 0.65rem;
    background: #f8f5f1;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.2;
    box-sizing: border-box;
}
.bi-header-search-input::placeholder { color: #94a3b8; }
.bi-header-search-input:focus {
    outline: none;
    background: #fff;
    border-color: #6b8a94;
    box-shadow: 0 0 0 3px rgba(160, 112, 64, 0.18);
}
.bi-header-search-kbd {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    border-radius: 0.3rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    pointer-events: none;
}
.bi-header-search-pop {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 60;
    max-height: 22rem;
    overflow: auto;
    border-radius: 0.85rem;
    border: 1px solid #d0dce0;
    background: #fff;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12);
    padding: 0.35rem;
}
.bi-header-search-pop .bi-hs-hint {
    padding: 0.55rem 0.75rem 0.35rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #10232A;
}
.bi-header-search-pop .bi-hs-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 0.55rem;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    color: inherit;
}
.bi-header-search-pop .bi-hs-item:hover,
.bi-header-search-pop .bi-hs-item.is-on {
    background: #E4EEF0;
}
.bi-header-search-pop .bi-hs-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}
.bi-header-search-pop .bi-hs-desc {
    font-size: 11px;
    color: #64748b;
    margin-top: 0.1rem;
}
.bi-header-search-pop .bi-hs-answer {
    padding: 0.65rem 0.75rem;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1ebe3;
    margin-bottom: 0.25rem;
}

/* Hero legado (removido do dashboard; print hide permanece) */
.bi-hero-ask {
    background:
        radial-gradient(1100px 420px at 8% -20%, rgba(255,255,255,0.16), transparent 55%),
        radial-gradient(800px 360px at 100% 120%, rgba(160, 112, 64, 0.45), transparent 50%),
        linear-gradient(135deg, #111111 0%, #0a181e 55%, #10232A 100%);
}
.bi-chart { min-height: 340px; width: 100%; overflow: hidden; }
.bi-chart.is-empty { min-height: 0; }
.bi-hidden-empty { display: none !important; }
.bi-chart-empty { text-align: center; color: #64748b; font-size: 13px; padding: 1.25rem 0; }
.bi-print-recorte { display: none; }
.bi-spark { display: none; }
.pl-print-doc .bi-spark { display: block; }
.bi-spark-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 11px; }
.bi-spark-lab { flex: 0 0 38%; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.bi-spark-track { flex: 1; height: 8px; background: #eef2f0; border-radius: 99px; overflow: hidden; }
.bi-spark-fill { display: block; height: 100%; background: linear-gradient(90deg, #10232A, #0a181e); }
.bi-spark-n { flex: 0 0 64px; text-align: right; font-variant-numeric: tabular-nums; color: #10232A; font-weight: 700; }
.bi-empty-note { padding: 2rem 1.25rem; text-align: center; color: #64748b; font-size: 14px; }
input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}
#hubSearch {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    font-size: 16px;
}
.bi-ask-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}
.bi-ask-input {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    height: 3.5rem;
    min-height: 3.5rem;
    margin: 0;
    padding: 0.9rem 1.15rem;
    border: 0;
    border-radius: 1rem;
    background: #fff;
    color: #111827;
    font-size: 16px;
    line-height: 1.25;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.bi-ask-input::-webkit-search-decoration,
.bi-ask-input::-webkit-search-cancel-button,
.bi-ask-input::-webkit-search-results-button,
.bi-ask-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.bi-ask-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}
.bi-ask-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45), 0 10px 25px rgba(0, 0, 0, 0.12);
}
.bi-ask-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3.5rem;
    min-height: 3.5rem;
    margin: 0;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 1rem;
    background: #fff;
    color: #10232A;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    box-sizing: border-box;
    flex: 0 0 auto;
    cursor: pointer;
}
.bi-ask-submit:hover { background: #ecfdf5; }
.bi-ask-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
/* Recorte — destaque suave CBJ (azul → verde) para não sumir no cinza da main */
#biFiltersWrap.bi-recorte {
    position: relative;
    background:
        radial-gradient(920px 140px at 8% -30%, rgba(160, 112, 64, .14), transparent 58%),
        radial-gradient(720px 160px at 100% 120%, rgba(160, 112, 64, .12), transparent 55%),
        linear-gradient(135deg, #E4EEF0 0%, #e7eef8 52%, #f3faf6 100%);
    border-color: #b7d4c8;
    box-shadow:
        0 14px 32px -18px rgba(160, 112, 64, .32),
        inset 0 1px 0 rgba(255, 255, 255, .75);
}
#biFiltersWrap.bi-recorte::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 1rem 0 0 1rem;
    background: linear-gradient(180deg, #10232A 0%, #0a181e 100%);
    pointer-events: none;
}
#biFiltersWrap.bi-recorte summary {
    list-style: none;
    padding-left: calc(0.75rem + 6px);
}
@media (min-width: 640px) {
    #biFiltersWrap.bi-recorte summary { padding-left: calc(1rem + 6px); }
}
#biFiltersWrap.bi-recorte summary::-webkit-details-marker { display: none; }
#biFiltersWrap.bi-recorte[open] #biFilters {
    background: rgba(255, 255, 255, .55);
    border-top-color: rgba(160, 112, 64, .16);
}

.bi-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.bi-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.3rem 0.3rem 0.3rem 0.75rem;
    border-radius: 999px;
    background: #E4EEF0;
    border: 1px solid #d0dce0;
    color: #10232A;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}
a.bi-filter-chip:hover { background: #dcfce7; }
.bi-filter-chip-txt {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 18rem;
}
.bi-filter-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background: #10232A;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.bi-ask-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    height: auto;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
}
.bi-ask-chip:hover { background: rgba(255,255,255,.24); }
.bi-insights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.bi-insight {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    line-height: 1.35;
}
.bi-grad { background: linear-gradient(135deg, #10232A 0%, #0a181e 100%); }
.bg-cbj-green { background: #10232A; }
.bg-cbj-blue { background: #0a181e; }
.text-cbj-green { color: #10232A; }
.text-cbj-blue { color: #0a181e; }
.bi-btn-grad {
    background: #e5ff2b;
    color: #10232A;
    font-weight: 700;
}
.bi-btn-grad:hover { filter: brightness(1.08); }
/* Âncoras e botões com a mesma caixa: altura, borda e texto no centro */
.pl-app-shell a.h-8,
.pl-app-shell a.h-9,
.pl-app-shell a.h-10,
.pl-app-shell a.h-14,
.pl-app-shell button.h-8,
.pl-app-shell button.h-9,
.pl-app-shell button.h-10,
.pl-app-shell button.h-14,
.pl-print-doc button.h-9,
.bi-btn-grad,
.bi-viz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}
.bi-user-btn {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    padding: 0;
    border: 2px solid #d7e8de;
    overflow: hidden;
    background: linear-gradient(135deg, #10232A, #10232A);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.bi-user-btn:focus-visible {
    outline: 2px solid #10232A;
    outline-offset: 2px;
}
.bi-user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bi-user-initials {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.bi-user-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
    border: 1px solid #e5eee8;
    z-index: 60;
    padding: 8px;
}
.bi-user-pop-name {
    margin: 4px 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}
.bi-user-pop-meta {
    margin: 0 8px 8px;
    font-size: 11px;
    color: #94a3b8;
}
.bi-user-pop a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
}
.bi-user-pop a:hover { background: #E4EEF0; }
.bi-user-pop .bi-user-sair { color: #b91c1c; }
.bi-user-pop .bi-user-sair:hover { background: #fef2f2; }
.pl-app-shell button.bi-header-print { display: none; }
.bi-card { border-radius: 1.1rem; background: #fff; border: 1px solid #e5eee8; box-shadow: 0 8px 24px rgba(160, 112, 64, 0.05); }
.bi-kpi-card .bi-kpi-val { font-size: clamp(1.05rem, 2vw, 1.75rem); letter-spacing: -0.03em; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.bi-kpi-grid .bi-kpi-card { min-height: 0; min-width: 0; overflow: hidden; }
.bi-kpi-grid > * { min-width: 0; overflow: hidden; }
.bi-kpi-num {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.15;
}
.bi-viz-btn {
    height: 2.25rem;
    padding-left: .75rem;
    padding-right: .75rem;
    border-radius: .55rem;
    border: 1px solid #d5e3db;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    background: #fff;
}
.bi-viz-btn.is-on, .bi-viz-btn:hover {
    background: linear-gradient(135deg, #10232A 0%, #0a181e 100%);
    color: #fff; border-color: transparent;
}
.bi-insight {
    border-radius: 999px; padding: .4rem .85rem; font-size: 12px;
    background: #E4EEF0; color: #10232A; border: 1px solid #d0dce0;
}
#sidebar.bi-side {
    background: #10232A;
    border-right: 0;
    color: #e2e8f0;
}
#sidebar.bi-side .bi-side-brand {
    background: #10232A;
    border-bottom: 1px solid rgba(229,255,43,.25);
}
#sidebar.bi-side .bi-side-brand .bi-side-title { color: #e5ff2b; }
#sidebar.bi-side .bi-side-brand .bi-side-sub { color: rgba(228,238,240,.7); }
#sidebar.bi-side .bi-side-logo { display: block; max-width: 210px; }
#sidebar.bi-side .bi-side-title { color: #e5ff2b; }
#sidebar.bi-side .bi-side-sub { color: rgba(228,238,240,.65); }
#sidebar.bi-side [data-menu-group] { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
#sidebar.bi-side .menu-group-toggle { color: #e5ff2b; }
#sidebar.bi-side .menu-item { color: #cbd5e1; }
#sidebar.bi-side .menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
#sidebar.bi-side .menu-item-active {
    background: #e5ff2b !important;
    color: #10232A !important;
    box-shadow: none;
    font-weight: 700;
}
#sidebar.bi-side .menu-item-active svg {
    color: #10232A;
}

/* Catálogo / Construtor — tiles com ícone */
.bi-hub-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid #d7e2e6;
    padding: 1rem 1.05rem;
    box-shadow: 0 1px 2px rgba(16, 35, 42, 0.04);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.bi-hub-card:hover {
    border-color: #10232A;
    box-shadow: 0 8px 24px rgba(16, 35, 42, 0.12);
    transform: translateY(-1px);
}
.bi-hub-icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #10232A;
    color: #e5ff2b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bi-hub-icon svg { width: 1.25rem; height: 1.25rem; }
.bi-hub-body { min-width: 0; flex: 1; }
.bi-hub-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #10232A;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.bi-hub-card:hover .bi-hub-title { color: #0a181e; }
.bi-hub-desc {
    margin: 0.3rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}
.bi-hub-mod-lab {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #429019;
}
#sidebar.bi-side .bi-side-foot { border-top-color: rgba(255,255,255,.08); color: rgba(255,255,255,.45); }
.pl-app-header-grad {
    height: 3px;
    background: linear-gradient(90deg, #10232A 0%, #e5ff2b 50%, #FF5804 100%);
}
.bi-cell-bar {
    display: inline-block; height: 6px; border-radius: 99px;
    background: linear-gradient(90deg, #10232A, #0a181e); min-width: 4px; vertical-align: middle; margin-right: 6px;
}

@media (min-width: 640px) {
    .bi-ask-form {
        flex-direction: row;
        align-items: stretch;
        gap: 0.75rem;
    }
    .bi-ask-input {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 1.05rem;
        height: 3.5rem;
        min-height: 3.5rem;
    }
    .bi-ask-submit {
        width: auto;
        min-width: 8.5rem;
        height: 3.5rem;
        min-height: 3.5rem;
    }
    .pl-app-shell button.bi-header-print { display: inline-flex; }
}

@media (max-width: 767px) {
    html, body { overflow-x: hidden; }
    .pl-app-shell { max-width: 100vw; }
    .bi-hero-ask { padding: 1.1rem !important; border-radius: 1.15rem; }
    .bi-hero-ask h2 { font-size: 1.55rem !important; line-height: 1.15; }
    .bi-hero-ask > p:nth-of-type(2) { font-size: 0.875rem; }
    .bi-chart { min-height: 220px; }
    .bi-app-header,
    .pl-app-shell > .flex-1 > header {
        padding-left: max(.75rem, env(safe-area-inset-left));
        padding-right: max(.75rem, env(safe-area-inset-right));
    }
    main.flex-1 {
        padding: .85rem !important;
        padding-bottom: max(.85rem, env(safe-area-inset-bottom)) !important;
        overflow-x: hidden;
    }
    .bi-card, .bi-hero-ask, .bi-kpi-card { max-width: 100%; }
    .bi-kpi-val { font-size: 1.25rem; }
    .bi-ask-chip { white-space: normal; text-align: center; }
    .flow-on-brand-search,
    #biFilters input,
    #biFilters select,
    input[type="date"],
    input[type="search"],
    .ts-control,
    .ts-control input {
        font-size: 16px !important;
    }
    #biFilters .ts-wrapper,
    .js-ajax-select + .ts-wrapper,
    .ts-wrapper {
        min-width: 0;
        max-width: 100%;
    }
    #h2hPicker .flex.gap-2 { flex-wrap: wrap; }
    table { max-width: 100%; }
}

@media (min-width: 1024px) {
    .pl-app-shell.sidebar-collapsed #sidebar { width: 0 !important; min-width: 0 !important; }
    .pl-app-shell.sidebar-collapsed [data-menu-brand-filter],
    .pl-app-shell.sidebar-collapsed [data-brand-subtitle],
    .pl-app-shell.sidebar-collapsed [data-menu-item-label],
    .pl-app-shell.sidebar-collapsed [data-menu-group-heading],
    .pl-app-shell.sidebar-collapsed [data-sidebar-credit-full] { display: none !important; }
    .pl-app-shell.sidebar-collapsed [data-sidebar-credit] { padding-left: .5rem; padding-right: .5rem; }
    .pl-app-shell.sidebar-collapsed [data-sidebar-credit] > div { padding-left: .25rem; padding-right: .25rem; }
    .pl-app-shell.sidebar-collapsed [data-sidebar-credit-compact] { display: block !important; }
    .pl-app-shell.sidebar-collapsed [data-menu-group-body] { display: block !important; }
    .pl-app-shell.sidebar-collapsed [data-menu-group] {
        border-color: transparent !important;
        background: transparent !important;
    }
    .pl-app-shell.sidebar-collapsed .pl-sidebar-nav { padding-left: .5rem; padding-right: .5rem; }
    .pl-app-shell.sidebar-collapsed .menu-item {
        justify-content: center;
        padding-left: .5rem;
        padding-right: .5rem;
        gap: 0;
    }
    .pl-app-shell.sidebar-collapsed [data-brand-wrap] {
        padding-left: .5rem;
        padding-right: .5rem;
        padding-top: .75rem;
        padding-bottom: .5rem;
        text-align: center;
    }
    .pl-app-shell.sidebar-collapsed [data-brand-logo] {
        display: none !important;
    }
    .pl-app-shell.sidebar-collapsed [data-brand-favicon] {
        display: block !important;
        height: 2.25rem;
        width: 2.25rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hover-expand desligado de propósito: reexpandir no hover voltava a espremer o main. */
    .pl-app-shell.sidebar-collapsed #sidebar,
    .pl-app-shell.sidebar-hidden #sidebar {
        overflow: hidden;
    }
    .pl-app-shell.sidebar-collapsed #sidebar:hover,
    .pl-app-shell.sidebar-collapsed #sidebar:focus-within,
    .pl-app-shell.sidebar-hidden #sidebar:hover,
    .pl-app-shell.sidebar-hidden #sidebar:focus-within {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        box-shadow: none;
    }
}

/* Cabeçalho exclusivo de impressão (oculto na tela) */
.pl-print-header { display: none; }

/* =========================================================
   IMPRESSÃO — versão amigável para print de 100% das telas
   ========================================================= */
@media print {
    @page { size: A4; margin: 12mm; }

    html, body {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        background: #fff !important;
        color: #111 !important;
    }

    /* Preserva cores de badges/status e gradientes de fundo úteis */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    /* Shell volta a fluir no papel (sem alturas/scrolls fixos) */
    .pl-app-shell { display: block !important; height: auto !important; overflow: visible !important; }
    .pl-app-shell > div { height: auto !important; overflow: visible !important; }

    /* Esconde toda a moldura da aplicação */
    #sidebar,
    #sidebarOverlay,
    .pl-app-shell > div > header,
    .pl-app-shell footer,
    #plAiFab,
    [data-ai-overlay],
    [data-ai-panel],
    [data-menu-nav],
    [data-menu-brand-filter],
    .no-print { display: none !important; }

    /* Conteúdo principal ocupa a folha inteira */
    .pl-main-scroll {
        overflow: visible !important;
        height: auto !important;
        background: #fff !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    /* Ações/botões não fazem sentido no papel.
       Exceto valores clicáveis do Fechamento (.js-fech-drill) — sem isso o PDF sai só com %. */
    button:not(.pl-print-keep):not(.js-fech-drill),
    .flow-page-header .shrink-0 { display: none !important; }

    button.js-fech-drill,
    button.pl-print-keep.js-fech-drill {
        display: inline !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        color: inherit !important;
        font: inherit !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        cursor: default !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Título da página em cor sólida (o gradiente não imprime bem) */
    .flow-page-title {
        background: none !important;
        -webkit-text-fill-color: #111 !important;
        color: #111 !important;
    }

    /* Cabeçalho de impressão com marca */
    .pl-print-header {
        display: flex !important;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
        padding: 10px 12px;
        border-bottom: 2px solid #10232A;
        background: #10232A;
        border-radius: 8px;
    }
    .pl-print-header img { height: 34px; width: auto; }
    .pl-print-title { font-size: 16px; font-weight: 700; color: #e5ff2b; line-height: 1.2; }
    .pl-print-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #E4EEF0; }
    .pl-print-meta { margin-left: auto; text-align: right; font-size: 10px; color: #E4EEF0; }

    /* Cards e sombras: sem sombra, borda discreta */
    .pl-card, .rounded-xl, .rounded-2xl, .shadow-theme-sm, .shadow-theme-md {
        box-shadow: none !important;
    }

    /* Libera qualquer scroll horizontal/vertical utilitário */
    .overflow-x-auto, .overflow-y-auto, .overflow-auto, .overflow-hidden { overflow: visible !important; }
    .pl-kpi-strip { display: flex; flex-wrap: wrap !important; overflow: visible !important; }

    /* Tabelas quebram bem entre páginas */
    table { width: 100% !important; }
    thead { display: table-header-group; }
    tr, img, .pl-card { page-break-inside: avoid; }

    /* Links como texto simples */
    a { color: #111 !important; text-decoration: none !important; }

    /* Recorte visível (o formulário some). Tabelas abertas. Gráfico vira barras HTML. */
    .bi-print-recorte { display: block !important; margin: 0 0 12px; font-size: 12px; color: #334155; }
    .bi-hero-ask, #aiPulseWrap, [data-viz-switch] { display: none !important; }
    details { display: block !important; }
    details > *:not(summary) { display: block !important; }
    details summary { font-weight: 700; margin-bottom: 6px; }
    .bi-chart { display: none !important; }
    .bi-spark { display: block !important; margin-top: 8px; }
    .bi-card { break-inside: avoid; page-break-inside: avoid; box-shadow: none !important; }
    .apexcharts-canvas, .apexcharts-svg { overflow: visible !important; }
}

/* Cards */
.pl-card {
    border-radius: 0.75rem;
    border: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: var(--shadow-theme-sm);
}

/* Subnav gradient — cores vêm de --brand-primary / --brand-gradient-end (Aparência) */
.flow-brand-subnav {
    background: linear-gradient(105deg, var(--brand-primary), var(--brand-gradient-end));
    box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb, 160, 112, 64), 0.25);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #98a2b3; }

/* Detail page sidebar */
.detail-sidebar {
    position: sticky;
    top: 5rem;
}

/* Empty state */
.empty-state-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    color: #d0d5dd;
}

/* KPI strip (home) — mobile vira carrossel de linha única deslizável */
.pl-kpi-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 0.25rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.pl-kpi-strip::-webkit-scrollbar { display: none; }
.pl-kpi-strip > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 44%;
}
@media (min-width: 480px) {
    .pl-kpi-strip > * { width: 30%; }
}
@media (min-width: 768px) {
    .pl-kpi-strip > * { width: 22%; }
}
@media (min-width: 1024px) {
    .pl-kpi-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 0;
    }
    .pl-kpi-strip > * { width: auto; }
}
@media (min-width: 1280px) {
    .pl-kpi-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ===== KPI carousel (Slick — dashboard) ===== */
.pl-kpi-carousel {
    position: relative;
}

.pl-kpi-carousel .pl-kpi-slick {
    margin: 0 -6px;
}

.pl-kpi-carousel .pl-kpi-slick .slick-list {
    overflow: hidden;
    padding-bottom: 2px;
}

.pl-kpi-carousel .pl-kpi-slide {
    padding: 6px;
    box-sizing: border-box;
}

.pl-kpi-carousel .pl-kpi-item {
    min-height: 0;
}

/* Bullets — círculos uniformes (Slick) */
.pl-kpi-carousel .slick-dots {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    line-height: 0;
}

.pl-kpi-carousel .slick-dots li {
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-kpi-carousel .slick-dots li button {
    display: block;
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #d0d5dd;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    color: transparent;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.pl-kpi-carousel .slick-dots li button:before,
.pl-kpi-carousel .slick-dots li button:after {
    display: none !important;
    content: none !important;
}

.pl-kpi-carousel .slick-dots li button:hover,
.pl-kpi-carousel .slick-dots li button:focus {
    outline: none;
    background: var(--color-brand-200);
}

.pl-kpi-carousel .slick-dots li.slick-active button {
    width: 8px;
    background: var(--brand-primary);
    transform: scale(1.15);
}

@media (max-width: 639px) {
    .pl-kpi-carousel .slick-dots li {
        width: 12px;
        height: 12px;
    }
    .pl-kpi-carousel .slick-dots li button {
        width: 10px;
        height: 10px;
    }
    .pl-kpi-carousel .slick-dots li.slick-active button {
        width: 10px;
    }
}

/* ===== Wizard (cadastro de imóveis) ===== */
.pl-wizard-nav { overflow: visible; }
.pl-wizard-nav .pl-wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}
.pl-wizard-step {
    color: #667085;
    background: #fff;
    border: 1px solid #e4e7ec;
    white-space: nowrap;
}
.pl-wizard-step:hover { background: #f9fafb; }
.pl-wizard-step-active {
    color: #fff;
    background: linear-gradient(105deg, var(--brand-primary), var(--color-brand-700));
    border-color: transparent;
    box-shadow: 0 4px 10px -3px rgba(var(--brand-primary-rgb), 0.5);
}
.pl-wizard-step-done { color: var(--color-brand-700); border-color: var(--color-brand-200); background: var(--color-brand-25); }
.pl-wizard-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 9999px;
    font-size: 11px; font-weight: 700;
    background: rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.pl-wizard-step-active .pl-wizard-num { background: rgba(255,255,255,0.25); }
.pl-wizard-step-done .pl-wizard-num { background: var(--color-brand-100); }

/* ===== Pills (checkbox multi-seleção) ===== */
.pl-pill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid #e4e7ec;
    background: #fff;
    font-size: 0.8125rem; font-weight: 500; color: #475467;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.pl-pill:hover { border-color: var(--color-brand-200); background: var(--color-brand-25); }
.pl-pill .pl-pill-check { opacity: 0; width: 0; margin-left: -0.35rem; transition: all 0.15s ease; }
.pl-pill-on {
    border-color: transparent;
    background: linear-gradient(105deg, var(--brand-primary), var(--color-brand-600));
    color: #fff;
}
.pl-pill-on .pl-pill-check { opacity: 1; width: 0.875rem; margin-left: 0; }

/* ===== Switch (toggle booleano) ===== */
.pl-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.pl-switch-track {
    position: absolute; inset: 0; border-radius: 9999px;
    background: #d0d5dd; transition: background 0.2s ease;
}
.pl-switch-track::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 9999px; background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,0.2); transition: transform 0.2s ease;
}
.pl-switch-input:checked + .pl-switch-track { background: var(--brand-primary); }
.pl-switch-input:checked + .pl-switch-track::after { transform: translateX(18px); }
.pl-switch-input:focus-visible + .pl-switch-track { box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb),0.25); }

/* ===== Assinatura digital — editor de minutas (Summernote) ===== */
.pl-assinatura-digital .note-editor.note-frame {
    border: 1px solid #e4e7ec;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.pl-assinatura-digital .note-toolbar {
    background: #f9fafb;
    border-bottom: 1px solid #e4e7ec;
    padding: 0.35rem 0.5rem;
}
.pl-assinatura-digital .note-editing-area {
    background: #fff;
}
.pl-assinatura-digital .note-editable {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #1d2939;
    padding: 1.25rem 1.5rem !important;
    min-height: 480px;
}
.pl-assinatura-digital .note-editable h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.75rem; }
.pl-assinatura-digital .note-editable h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.pl-assinatura-digital .note-editable table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.pl-assinatura-digital .note-editable th,
.pl-assinatura-digital .note-editable td { border: 1px solid #e4e7ec; padding: 0.5rem 0.75rem; text-align: left; }
.pl-assinatura-digital #minutaPreviewBody h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.75rem; }
.pl-assinatura-digital #minutaPreviewBody h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.pl-assinatura-digital #minutaPreviewBody table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.pl-assinatura-digital #minutaPreviewBody th,
.pl-assinatura-digital #minutaPreviewBody td { border: 1px solid #e4e7ec; padding: 0.5rem 0.75rem; }

/* Tooltip flutuante (estilo PIXCRM Flow) — data-pl-tooltip */
.pl-tooltip-float {
    position: fixed;
    z-index: 99999;
    max-width: min(360px, calc(100vw - 16px));
    padding: 0.4rem 0.65rem;
    border-radius: 0.5rem;
    background: #101828;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.22);
    pointer-events: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
.pl-tooltip-float[hidden] { display: none !important; }

/* Popover rico de contrato (data-contrato-hover) */
.pl-contrato-hover-card {
    position: fixed;
    z-index: 99990;
    width: min(320px, calc(100vw - 16px));
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #1d2939;
    font-size: 0.75rem;
    line-height: 1.4;
    border: 1px solid #e4e7ec;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
    pointer-events: auto;
}
.pl-contrato-hover-card[hidden] { display: none !important; }
.pl-contrato-hover-card .pl-ch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.pl-contrato-hover-card .pl-ch-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    color: #c0156c;
}
.pl-contrato-hover-card .pl-ch-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.625rem;
    font-weight: 600;
    background: #f2f4f7;
    color: #475467;
}
.pl-contrato-hover-card .pl-ch-row {
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    gap: 0.35rem;
    margin-top: 0.35rem;
}
.pl-contrato-hover-card .pl-ch-label {
    color: #98a2b3;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 0.1rem;
}
.pl-contrato-hover-card .pl-ch-val {
    color: #344054;
    word-break: break-word;
}
.pl-contrato-hover-card .pl-ch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid #f2f4f7;
}
.pl-contrato-hover-card .pl-ch-actions a {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #c0156c;
    text-decoration: none;
}
.pl-contrato-hover-card .pl-ch-actions a:hover { text-decoration: underline; }
.pl-contrato-hover-card .pl-ch-loading,
.pl-contrato-hover-card .pl-ch-error {
    color: #667085;
    padding: 0.35rem 0;
}

/* ===== Skeleton loading (páginas + dashboard KPIs) ===== */
@keyframes pl-skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.pl-skel {
    display: block;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #e4e7ec 0%, #f2f4f7 40%, #e4e7ec 80%);
    background-size: 200% 100%;
    animation: pl-skel-shimmer 1.2s ease-in-out infinite;
}
.pl-skel-title { height: 1.75rem; width: 11rem; max-width: 45%; }
.pl-skel-icon { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; }
.pl-skel-value { height: 1.35rem; width: 55%; }
.pl-skel-label { height: 0.7rem; width: 70%; }
.pl-skel-block { height: 4.5rem; width: 100%; }
.pl-skel-card { min-height: 0; }
.pl-page-skeleton[hidden] { display: none !important; }
.pl-page-skeleton:not([hidden]) { display: block; }
body.pl-nav-loading [data-page-content] { display: none !important; }
body.pl-nav-loading .pl-page-skeleton { display: block !important; }

/*
 * Navegação MPA: mantém sidebar + topbar visualmente estáveis na troca de página
 * (cross-document View Transitions). Sem isso, o HTML novo pinta o aside primeiro
 * e a coluna da direita (header incluso) fica branca por um instante.
 */
@view-transition {
    navigation: auto;
}
#sidebar {
    view-transition-name: pl-sidebar;
}
#plTopbar {
    view-transition-name: pl-topbar;
}
::view-transition-group(pl-sidebar),
::view-transition-group(pl-topbar) {
    animation-duration: 0.01s;
    animation-timing-function: linear;
}
::view-transition-old(pl-sidebar),
::view-transition-new(pl-sidebar),
::view-transition-old(pl-topbar),
::view-transition-new(pl-topbar) {
    animation: none;
    mix-blend-mode: normal;
    height: 100%;
    overflow: clip;
}
/* Conteúdo: crossfade curto em vez de flash branco */
::view-transition-old(root) {
    animation: pl-vt-fade-out 90ms ease-out both;
}
::view-transition-new(root) {
    animation: pl-vt-fade-in 140ms ease-in both;
}
@keyframes pl-vt-fade-out {
    to { opacity: 0; }
}
@keyframes pl-vt-fade-in {
    from { opacity: 0; }
}
# Fallback sem View Transition: clone fixo do topbar durante o skeleton
#plTopbarFreeze {
    position: fixed;
    z-index: 60;
    pointer-events: none;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
    overflow: hidden;
}
#plSidebarFreeze {
    position: fixed !important;
    z-index: 9998;
    pointer-events: none;
    box-sizing: border-box;
    overflow: hidden;
}

.pl-kpi-carousel .pl-kpi-skel-grid {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .pl-kpi-carousel .pl-kpi-skel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .pl-kpi-carousel .pl-kpi-skel-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Skeleton por cima — NÃO colapsar altura (Slick media 0px e some os cards) */
.pl-kpi-carousel.is-loading {
    position: relative;
    min-height: 11rem;
}
.pl-kpi-carousel.is-loading .pl-kpi-slick {
    opacity: 0;
    pointer-events: none;
}
.pl-kpi-carousel.is-loading .pl-kpi-skel-grid {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 2.25rem;
    z-index: 2;
}
.pl-kpi-carousel:not(.is-loading) .pl-kpi-skel-grid { display: none !important; }
/* Fallback sem Slick / altura quebrada */
.pl-kpi-carousel.is-fallback .pl-kpi-slick {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}
.pl-kpi-carousel.is-fallback .pl-kpi-slick .slick-list,
.pl-kpi-carousel.is-fallback .pl-kpi-slick .slick-track {
    display: contents !important;
    transform: none !important;
    width: auto !important;
}
.pl-kpi-carousel.is-fallback .pl-kpi-slide {
    float: none !important;
    width: auto !important;
}
.pl-kpi-carousel.is-fallback .slick-dots { display: none !important; }
@media (min-width: 768px) {
    .pl-kpi-carousel.is-fallback .pl-kpi-slick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .pl-kpi-carousel.is-fallback .pl-kpi-slick { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.pl-dash-widgets-loading > .dash-widget,
.pl-dash-widgets-loading > [class*="col-span"] {
    position: relative;
}
.pl-dash-widgets-loading > .dash-widget::after,
.pl-dash-widgets-loading > [class*="rounded-xl"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(228,231,236,0.55) 0%, rgba(242,244,247,0.75) 40%, rgba(228,231,236,0.55) 80%);
    background-size: 200% 100%;
    animation: pl-skel-shimmer 1.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
    .pl-skel,
    .pl-dash-widgets-loading > .dash-widget::after,
    .pl-dash-widgets-loading > [class*="rounded-xl"]::after {
        animation: none;
        background: #e4e7ec;
    }
}

/* intl-tel-input — telefones internacionais */
.iti {
    width: 100%;
    display: block;
}
.iti__flag-container {
    z-index: 30;
}
.iti--separate-dial-code .iti__selected-flag {
    background-color: #f9fafb;
}

/* Tom Select — busca em selects (paridade site público)
   O TS copia classes do <select> (flow-form-input / Tailwind border/h-11/…)
   para .ts-wrapper. A caixa visível deve ser SÓ .ts-control — o wrapper
   é casca de layout, senão aparece select “sobreposto”. */
.ts-wrapper {
    width: 100%;
    display: block;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border: 0 !important;
    border-width: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    color: inherit;
}
.ts-wrapper.single .ts-control,
.ts-wrapper .ts-control {
    min-height: 2.75rem;
    border: 1px solid #d0d5dd !important;
    border-radius: 0.5rem !important;
    background: #fff !important;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.875rem;
    line-height: 1.4;
    width: 100%;
}
.ts-wrapper.single.input-active .ts-control,
.ts-wrapper.focus .ts-control,
.ts-wrapper.focus.single .ts-control {
    border-color: #10232A !important;
    box-shadow: 0 0 0 3px rgba(160, 112, 64, 0.22) !important;
}
.ts-wrapper .ts-control input {
    font-size: 0.875rem !important;
}
.ts-dropdown {
    border: 1px solid #e4e7ec !important;
    border-radius: 0.5rem !important;
    box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06) !important;
    z-index: 10050 !important;
    font-size: 0.875rem;
}
.ts-dropdown.bi-sala-dd {
    z-index: 10050 !important;
    max-height: 320px;
}
.ts-dropdown.bi-sala-dd .bi-sala-og,
.ts-dropdown.bi-sala-dd .optgroup-header {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.45rem 0.75rem 0.35rem;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1;
}
body > .ts-dropdown {
    z-index: 10050 !important;
}
.ts-dropdown .option {
    color: #334155 !important;
}
.ts-dropdown .option.active,
.ts-dropdown .active {
    background: #E4EEF0 !important;
    color: #0a181e !important;
}
.ts-dropdown .option:hover,
.ts-dropdown .option.active:hover {
    background: #d0dce0 !important;
    color: #0a181e !important;
}
.ts-wrapper.plugin-clear_button .clear-button {
  color: #64748b;
  margin-right: 0.25rem;
}

/* Select original: esconder de verdade (não deixar borda/altura do flow-form-input) */
select.ts-hidden-accessible,
.flow-form-input.ts-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* —— Panorama do imóvel —— */
.imovel-panorama__hero-bg {
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.18) 0%, transparent 55%),
        linear-gradient(125deg, var(--color-brand-700) 0%, var(--brand-primary) 48%, var(--color-brand-400) 100%);
}
.imovel-panorama__kpi {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}
.imovel-panorama__eras {
    scrollbar-width: thin;
}
.imovel-panorama__era {
    text-decoration: none;
    color: inherit;
}
.imovel-panorama__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background-image: linear-gradient(135deg, var(--tw-gradient-from, var(--brand-primary)), var(--tw-gradient-to, var(--color-brand-700)));
    flex-shrink: 0;
}
.imovel-panorama__avatar.from-brand-500 {
    background-image: linear-gradient(135deg, var(--brand-primary), var(--color-brand-700));
}
.imovel-panorama__avatar.from-gray-500 {
    background-image: linear-gradient(135deg, #6b7280, #374151);
}
.imovel-panorama__avatar--sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.65rem;
}
.imovel-panorama__chip {
    font-size: 11px;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.15s ease;
}
.imovel-panorama__chip:hover {
    border-color: var(--color-brand-200);
    color: var(--color-brand-700);
}
.imovel-panorama__chip.is-active {
    background: linear-gradient(135deg, var(--brand-primary), var(--color-brand-700));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 10px -2px rgba(var(--brand-primary-rgb), 0.35);
}

/* flow-form-input height alignment when wrapped — ver bloco Tom Select acima */

/* —— Dashboard: carrossel de imóveis —— */
.dash-imoveis-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    transition: all 0.15s ease;
}
.dash-imoveis-tab:hover { border-color: var(--color-brand-200); color: var(--color-brand-700); }
.dash-imoveis-tab.is-active {
    background: linear-gradient(135deg, var(--brand-primary), var(--color-brand-700));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 10px -2px rgba(var(--brand-primary-rgb), 0.3);
}
.dash-imoveis-tab__count {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.85;
    min-width: 1.1rem;
    text-align: center;
}
.dash-imoveis-tab.is-active .dash-imoveis-tab__count {
    background: rgba(255,255,255,0.2);
    border-radius: 9999px;
    padding: 0 0.35rem;
}
.dash-imoveis-track {
    padding: 0.85rem 0.5rem 0.25rem;
    overflow: hidden;
}
.dash-imoveis-track:not(.slick-initialized) {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.85rem 1rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dash-imoveis-track:not(.slick-initialized)::-webkit-scrollbar {
    display: none;
}
.dash-imoveis-track .slick-list {
    overflow: hidden;
    margin: 0 0.25rem;
}
.dash-imoveis-track .slick-slide {
    padding: 0 6px;
    box-sizing: border-box;
}
.dash-imoveis-track .slick-slide > .dash-imovel-card {
    width: 100%;
    flex: none;
}
.dash-imoveis-strip .slick-dots {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0.35rem 0 0.85rem;
    padding: 0;
    list-style: none;
    line-height: 0;
}
.dash-imoveis-strip .slick-dots li {
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-imoveis-strip .slick-dots li button {
    display: block;
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #d0d5dd;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    color: transparent;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.dash-imoveis-strip .slick-dots li button:before,
.dash-imoveis-strip .slick-dots li button:after {
    display: none !important;
    content: none !important;
}
.dash-imoveis-strip .slick-dots li button:hover,
.dash-imoveis-strip .slick-dots li button:focus {
    outline: none;
    background: var(--color-brand-200);
}
.dash-imoveis-strip .slick-dots li.slick-active button {
    width: 8px;
    background: var(--brand-primary);
    transform: scale(1.15);
}
.dash-imovel-card {
    position: relative;
    flex: 0 0 168px;
    width: 168px;
    scroll-snap-align: start;
    border-radius: 0.85rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-imovel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -6px rgba(16, 24, 40, 0.15);
}
.dash-imovel-card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #fce7f3, #f3f4f6);
    overflow: hidden;
}
.dash-imovel-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dash-imovel-card__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--color-brand-700));
}
.dash-imovel-card__badge {
    position: absolute;
    left: 0.4rem;
    bottom: 0.4rem;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.92);
    color: #374151;
}
.dash-imovel-card__fav {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 2;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    color: #9ca3af;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: color 0.15s ease, transform 0.15s ease;
}
.dash-imovel-card__fav:hover { color: var(--brand-primary); transform: scale(1.08); }
.dash-imovel-card__fav.is-on { color: #f59e0b; }
.dash-imovel-card__body {
    display: block;
    padding: 0.55rem 0.65rem 0.7rem;
    text-decoration: none;
    color: inherit;
}
.dash-imovel-card__code {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--brand-primary);
    line-height: 1.2;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-imovel-card__price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}
.dash-imovel-card__price small {
    font-size: 0.65rem;
    font-weight: 500;
    color: #9ca3af;
    margin-left: 0.15rem;
}
.dash-imovel-card__title {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.8em;
}
.dash-imovel-card__meta,
.dash-imovel-card__specs {
    margin-top: 0.2rem;
    font-size: 0.65rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Combo de senha (ver/ocultar + gerar + copiar) */
.pl-password__toggle:focus-visible {
    outline: 2px solid rgba(var(--brand-primary-rgb), 0.35);
    outline-offset: 1px;
    border-radius: 0.5rem;
}
.pl-password__tools button:disabled {
    cursor: not-allowed;
}

/* Quadro de medalhas (paridade Zempo) */
.bi-quadro-sw {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}
.bi-quadro-sw.is-on {
    background: #10232A;
    border-color: #10232A;
    color: #fff;
}

/* Dashboard Início — abas / briefing / KPIs */
.bi-dash-tabs { gap: 0.35rem; }
.bi-dash-briefing {
    background: linear-gradient(135deg, #10232A 0%, #1a3a45 55%, #243a42 100%);
    color: #fff;
    border-radius: 1.15rem;
    padding: 1.15rem 1.35rem 1.25rem;
    box-shadow: 0 10px 28px rgba(16, 35, 42, 0.18);
}
.bi-dash-briefing-kicker {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(229, 255, 43, 0.85);
}
.bi-dash-briefing-title {
    margin: 0.35rem 0 0.25rem;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.bi-dash-briefing-sub {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 40rem;
}
.bi-dash-briefing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}
.bi-dash-cta-sec {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}
.bi-dash-cta-sec:hover { background: rgba(255, 255, 255, 0.14); }
.bi-dash-kpi-strip,
.bi-dash-warn-strip {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.bi-dash-kpi {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #d7e2e6;
    border-radius: 0.95rem;
    padding: 0.85rem 0.95rem;
    box-shadow: 0 1px 2px rgba(16, 35, 42, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.bi-dash-kpi:hover {
    border-color: #10232A;
    box-shadow: 0 4px 14px rgba(16, 35, 42, 0.1);
}
.bi-dash-kpi.is-hero {
    background: #10232A;
    border-color: #10232A;
    color: #fff;
}
.bi-dash-kpi.is-hero .bi-dash-kpi-lab { color: rgba(255, 255, 255, 0.7); }
.bi-dash-kpi.is-hero .bi-dash-kpi-val { color: #fff; }
.bi-dash-kpi.is-hero .bi-dash-kpi-hint,
.bi-dash-kpi.is-hero .bi-dash-kpi-delta { color: rgba(229, 255, 43, 0.9); }
.bi-dash-kpi.is-warn {
    border-color: #fcd34d;
    background: #fffbeb;
}
.bi-dash-kpi-lab {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}
.bi-dash-kpi-val {
    margin: 0.25rem 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #10232A;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.bi-dash-kpi-hint,
.bi-dash-kpi-delta {
    margin: 0.2rem 0 0;
    font-size: 0.68rem;
    color: #94a3b8;
}
.bi-dash-kpi-delta.is-up { color: #166534; }
.bi-dash-kpi-delta.is-down { color: #b91c1c; }
.bi-th-gold, .bi-td-gold { color: #b8860b; }
.bi-th-silver, .bi-td-silver { color: #64748b; }
.bi-th-bronze, .bi-td-bronze { color: #b45309; }
.bi-td-gold { font-weight: 700; }
.bi-medal-stack {
    display: inline-flex;
    width: 52px;
    height: 6px;
    border-radius: 99px;
    overflow: hidden;
    background: #eef2f0;
    vertical-align: middle;
    margin-right: 8px;
}
.bi-medal-g { display: block; height: 100%; background: #e8b923; }
.bi-medal-s { display: block; height: 100%; background: #94a3b8; }
.bi-medal-b { display: block; height: 100%; background: #cd7f32; }
.bi-spark-track-medal { display: flex; }
.bi-spark-track-medal .bi-spark-fill { flex: none; }
.bi-spark-g { background: #e8b923; }
.bi-spark-s { background: #94a3b8; }
.bi-spark-b { background: #cd7f32; }

/* Assistente (construtor e alertas) */
.bi-wiz { max-width: 920px; }
.bi-wiz-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0;
    list-style: none;
}
.bi-wiz-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 0.35rem 0.55rem;
}
.bi-wiz-steps li span {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
}
.bi-wiz-steps li.is-on { color: #10232A; }
.bi-wiz-steps li.is-on span,
.bi-wiz-steps li.is-done span {
    background: #10232A;
    color: #fff;
}
.bi-wiz-steps li.is-done { color: #10232A; }
.bi-wiz-title { font-size: 1.45rem; font-weight: 800; color: #0f172a; }
.bi-wiz-lead { margin: 0.4rem 0 1.1rem; color: #64748b; font-size: 0.95rem; max-width: 40rem; }
.bi-wiz-search {
    width: 100%;
    max-width: 28rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    padding: 0 0.9rem;
}
.bi-wiz-choice,
.bi-wiz-check {
    display: flex;
    text-align: left;
    gap: 0.75rem;
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
}
.bi-wiz-choice strong,
.bi-wiz-check strong { display: block; font-size: 0.95rem; color: #0f172a; }
.bi-wiz-choice span,
.bi-wiz-check span { display: block; font-size: 0.8rem; color: #64748b; margin-top: 0.2rem; }
.bi-wiz-choice.is-on,
.bi-wiz-check.is-on {
    border-color: #10232A;
    box-shadow: 0 0 0 2px rgba(160, 112, 64, 0.15);
    background: #f8fafc;
}
.bi-wiz-check input { margin-top: 0.35rem; }
.bi-wiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}
@media (max-width: 640px) {
    .bi-wiz-steps li { font-size: 0; gap: 0; padding: 0.2rem; }
    .bi-wiz-steps li span { font-size: 0.7rem; }
}

/* Raio-X 360 — diagnóstico visual */
.bi-rx { max-width: 1180px; }
.bi-rx-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    background:
        radial-gradient(1100px 420px at 8% -30%, rgba(160, 112, 64, .5), transparent 58%),
        radial-gradient(700px 280px at 100% 120%, rgba(160, 112, 64, .75), transparent 52%),
        linear-gradient(155deg, #050505 0%, #111111 42%, #013224 100%);
    color: #fff;
    padding: 1.6rem 1.5rem 1.4rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}
.bi-rx-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .4;
    pointer-events: none;
}
.bi-rx-hero-inner {
    position: relative;
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    z-index: 1;
}
.bi-rx-photo-wrap {
    position: relative;
    width: 220px;
    height: 260px;
    flex-shrink: 0;
    border-radius: 1.35rem;
    overflow: hidden;
    border: 2px solid rgba(232, 185, 35, .55);
    box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.35);
    background: linear-gradient(180deg, #10232A, #10232A);
}
.bi-rx-photo-wrap.is-logo {
    width: 180px;
    height: 180px;
    background: #fff;
    border-color: rgba(255,255,255,.4);
}
.bi-rx-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bi-rx-photo-wrap.is-logo .bi-rx-photo { object-fit: contain; padding: 12px; }
.bi-rx-initials {
    width: 100%; height: 100%;
    align-items: center; justify-content: center;
    font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: .06em;
}
.bi-rx-scanline {
    position: absolute; left: -10%; right: -10%; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(134,239,172,.95), transparent);
    box-shadow: 0 0 18px rgba(134,239,172,.8);
    animation: bi-rx-scan 3.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bi-rx-scan {
    0% { top: -8%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 108%; opacity: 0; }
}
.bi-rx-belt {
    display: inline-flex; align-items: center; justify-content: center;
    text-align: center;
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,.28);
    border: 1px solid rgba(15,23,42,.18);
    background: #e2e8f0;
}
.bi-rx-photo-wrap > .bi-rx-belt {
    position: absolute; left: 10px; right: 10px; bottom: 10px;
}
.bi-rx-belt-lab {
    display: block; width: 100%;
    border-radius: 999px;
    padding: .28rem .5rem;
    background: rgba(0,0,0,.55);
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.bi-rx-belt.is-branca .bi-rx-belt-lab,
.bi-rx-belt.is-amarela .bi-rx-belt-lab,
.bi-rx-belt.is-cinza .bi-rx-belt-lab {
    background: rgba(255,255,255,.78);
    color: #0f172a;
    text-shadow: none;
}
.bi-rx-belt.is-mini {
    position: static;
    padding: 3px;
    box-shadow: none;
    max-width: 100%;
    margin-top: .25rem;
}
.bi-rx-belt.is-mini .bi-rx-belt-lab {
    font-size: 9px; letter-spacing: .04em; padding: .12rem .4rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bi-rx-belt.is-branca { background: #f8fafc; border-color: #cbd5e1; }
.bi-rx-belt.is-cinza { background: #94a3b8; }
.bi-rx-belt.is-azul { background: #1d4ed8; }
.bi-rx-belt.is-amarela { background: #eab308; }
.bi-rx-belt.is-laranja { background: #ea580c; }
.bi-rx-belt.is-verde { background: #15803d; }
.bi-rx-belt.is-roxa { background: #7e22ce; }
.bi-rx-belt.is-marrom { background: #7c2d12; }
.bi-rx-belt.is-preta { background: #111111; border-color: #334155; }
.bi-rx-belt.is-vermelha { background: #be123c; }
.bi-rx-belt.is-coral {
    background: repeating-linear-gradient(90deg, #be123c 0 18px, #f8fafc 18px 36px);
    border-color: #9f1239;
}
.bi-rx-belt.is-coral-preta {
    background: repeating-linear-gradient(90deg, #be123c 0 18px, #111 18px 36px);
    border-color: #9f1239;
}
.bi-rx-belt.is-branca-cinza {
    background: repeating-linear-gradient(90deg, #f8fafc 0 16px, #94a3b8 16px 32px);
}
.bi-rx-belt.is-cinza-azul {
    background: repeating-linear-gradient(90deg, #94a3b8 0 16px, #1d4ed8 16px 32px);
}
.bi-rx-belt.is-azul-amarela {
    background: repeating-linear-gradient(90deg, #1d4ed8 0 16px, #eab308 16px 32px);
}
.bi-rx-belt.is-amarela-laranja {
    background: repeating-linear-gradient(90deg, #eab308 0 16px, #ea580c 16px 32px);
}
.bi-rx-belt.is-laranja-verde {
    background: repeating-linear-gradient(90deg, #ea580c 0 16px, #15803d 16px 32px);
}
.bi-rx-belt.is-indefinida {
    background: linear-gradient(180deg, #ffe9a3, #e8b923 55%, #a16207);
}
.bi-rx-id { display: flex; flex-direction: column; justify-content: center; }
.bi-rx-kicker {
    font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
    color: #e5ff2b; margin: 0;
}
.bi-rx-name {
    font-size: clamp(1.7rem, 3.4vw, 3.1rem);
    font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
    margin: .35rem 0 .4rem;
}
.bi-rx-meta { margin: 0; color: rgba(255,255,255,.72); font-size: .92rem; }
.bi-rx-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: .85rem 0 .6rem; }
.bi-rx-pill {
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    padding: .28rem .7rem; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
}
.bi-rx-pill.is-ok { background: rgba(160,112,64,.55); border-color: rgba(134,239,172,.4); }
.bi-rx-pill.is-warn { background: rgba(180,83,9,.45); border-color: rgba(253,186,116,.4); }
.bi-rx-pill.is-gold { background: rgba(232,185,35,.9); border-color: rgba(253,230,138,.7); color: #3b2a04; }
.bi-rx-tempo { margin: 0; font-size: .86rem; color: rgba(255,255,255,.78); max-width: 42rem; }
.bi-rx-cpf { margin: .35rem 0 0; font-size: 11px; color: rgba(255,255,255,.4); }
.bi-rx-h2h {
    display: inline-flex; align-items: center; margin-top: .9rem;
    height: 2.25rem; padding: 0 1rem; border-radius: .7rem;
    background: #fff; color: #10232A; font-size: .85rem; font-weight: 700;
    text-decoration: none;
}
.bi-rx-h2h:hover { background: #E4EEF0; }
.bi-rx-vitals {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .65rem;
    margin-bottom: 1.1rem;
}
.bi-rx-vital {
    background: #fff;
    border: 1px solid #e5eee8;
    border-radius: 1rem;
    padding: .75rem .9rem;
    box-shadow: 0 8px 22px rgba(160, 112, 64, .04);
}
.bi-rx-vital p {
    margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: #94a3b8;
}
.bi-rx-vital strong {
    display: block; margin-top: .2rem;
    font-size: .98rem; color: #0f172a; letter-spacing: -.01em;
}
.bi-rx-podium-row {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: .85rem;
    align-items: center;
    margin-bottom: 1.1rem;
}
.bi-rx-medal {
    width: 7.2rem; height: 7.2rem; border-radius: 999px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: inset 0 8px 16px rgba(255,255,255,.35), 0 12px 28px rgba(0,0,0,.12);
}
.bi-rx-medal span { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bi-rx-medal b { font-size: 1.85rem; line-height: 1; letter-spacing: -.04em; }
.bi-rx-medal.is-gold { background: radial-gradient(circle at 32% 28%, #fff3c4, #e8b923 58%, #92400e); color: #3b2a04; }
.bi-rx-medal.is-silver { background: radial-gradient(circle at 32% 28%, #f8fafc, #94a3b8 58%, #475569); color: #1e293b; }
.bi-rx-medal.is-bronze { background: radial-gradient(circle at 32% 28%, #fde8d0, #cd7f32 58%, #7c2d12); color: #3b1d0a; }
.bi-rx-stat-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
}
.bi-rx-stat-stack > div {
    background: #fff; border: 1px solid #e5eee8; border-radius: .9rem; padding: .7rem .8rem;
}
.bi-rx-stat-stack p { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.bi-rx-stat-stack strong { display: block; font-size: 1.25rem; color: #10232A; letter-spacing: -.02em; }
.bi-rx-stat-stack small { font-size: .7rem; color: #64748b; font-weight: 600; }
.bi-rx-medal-bar {
    display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #f1f5f4;
}
.bi-rx-medal-bar .is-gold { background: #e8b923; }
.bi-rx-medal-bar .is-silver { background: #94a3b8; }
.bi-rx-medal-bar .is-bronze { background: #cd7f32; }
.bi-rx-comps { display: flex; flex-direction: column; gap: .45rem; }
.bi-rx-destaques {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: .55rem;
}
.bi-rx-years { display: flex; flex-direction: column; gap: .55rem; }
.bi-rx-year { border: 1px solid #e8eee9; border-radius: .9rem; background: #fbfdfc; padding: .15rem .2rem .45rem; }
.bi-rx-year-sum {
    display: flex; align-items: center; gap: .6rem;
    cursor: pointer; list-style: none; padding: .5rem .7rem; font-weight: 800; color: #10232A;
}
.bi-rx-year-sum::-webkit-details-marker { display: none; }
.bi-rx-year-sum::before {
    content: ''; width: .45rem; height: .45rem; border-right: 2px solid #10232A; border-bottom: 2px solid #10232A;
    transform: rotate(-45deg); margin-right: .15rem; transition: transform .15s ease;
}
.bi-rx-year[open] .bi-rx-year-sum::before { transform: rotate(45deg); }
.bi-rx-year-n {
    margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #64748b; background: #eef2f0; border-radius: 999px; padding: .15rem .55rem;
}
.bi-rx-year .bi-rx-comps { padding: 0 .45rem .15rem; }
.bi-rx-comp {
    display: flex; gap: .75rem; align-items: center;
    border: 1px solid #e8eee9; border-radius: .9rem; padding: .65rem .8rem; background: #fbfdfc;
    text-decoration: none; color: inherit;
}
a.bi-rx-comp:hover { border-color: #10232A; box-shadow: 0 8px 18px rgba(160,112,64,.08); }
.bi-rx-comp.is-gold { border-color: #f3d67a; background: #fffbeb; }
.bi-rx-comp.is-silver { border-color: #cbd5e1; background: #f8fafc; }
.bi-rx-comp.is-bronze { border-color: #e7b98a; background: #fff7ed; }
.bi-rx-comp-place {
    width: 2.4rem; height: 2.4rem; border-radius: .7rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem; background: #eef2f0; color: #334155; flex-shrink: 0;
}
.bi-rx-comp.is-gold .bi-rx-comp-place { background: #e8b923; color: #3b2a04; }
.bi-rx-comp.is-silver .bi-rx-comp-place { background: #94a3b8; color: #0f172a; }
.bi-rx-comp.is-bronze .bi-rx-comp-place { background: #cd7f32; color: #fff; }
.bi-rx-tl { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid #d0dce0; }
.bi-rx-tl-item { position: relative; padding: 0 0 1rem .9rem; }
.bi-rx-tl-dot {
    position: absolute; left: -1.18rem; top: .35rem;
    width: .7rem; height: .7rem; border-radius: 999px;
    background: #10232A; border: 2px solid #fff; box-shadow: 0 0 0 2px #10232A;
}
.bi-rx-tl-item.is-faixa .bi-rx-tl-dot,
.bi-rx-tl-item.is-atual .bi-rx-tl-dot { background: #e8b923; box-shadow: 0 0 0 2px #e8b923; }
.bi-rx-tl-item.is-bi .bi-rx-tl-dot { background: #10232A; box-shadow: 0 0 0 2px #10232A; }
.bi-rx-tl-item.is-move .bi-rx-tl-dot { background: #64748b; box-shadow: 0 0 0 2px #64748b; }
.bi-rx-tl-item.faixa-branca .bi-rx-tl-dot { background: #f8fafc; box-shadow: 0 0 0 2px #94a3b8; }
.bi-rx-tl-item.faixa-cinza .bi-rx-tl-dot { background: #94a3b8; box-shadow: 0 0 0 2px #64748b; }
.bi-rx-tl-item.faixa-azul .bi-rx-tl-dot { background: #1d4ed8; box-shadow: 0 0 0 2px #1d4ed8; }
.bi-rx-tl-item.faixa-amarela .bi-rx-tl-dot { background: #eab308; box-shadow: 0 0 0 2px #ca8a04; }
.bi-rx-tl-item.faixa-laranja .bi-rx-tl-dot { background: #ea580c; box-shadow: 0 0 0 2px #c2410c; }
.bi-rx-tl-item.faixa-verde .bi-rx-tl-dot { background: #15803d; box-shadow: 0 0 0 2px #15803d; }
.bi-rx-tl-item.faixa-roxa .bi-rx-tl-dot { background: #7e22ce; box-shadow: 0 0 0 2px #7e22ce; }
.bi-rx-tl-item.faixa-marrom .bi-rx-tl-dot { background: #7c2d12; box-shadow: 0 0 0 2px #7c2d12; }
.bi-rx-tl-item.faixa-preta .bi-rx-tl-dot { background: #111; box-shadow: 0 0 0 2px #111; }
.bi-rx-tl-item.faixa-vermelha .bi-rx-tl-dot { background: #be123c; box-shadow: 0 0 0 2px #be123c; }
.bi-rx-tl-item.faixa-coral .bi-rx-tl-dot {
    background: repeating-linear-gradient(90deg, #be123c 0 50%, #f8fafc 50% 100%);
    box-shadow: 0 0 0 2px #be123c;
}
.bi-rx-tl-item.faixa-coral-preta .bi-rx-tl-dot {
    background: repeating-linear-gradient(90deg, #be123c 0 50%, #111 50% 100%);
    box-shadow: 0 0 0 2px #be123c;
}
.bi-rx-tl-item.faixa-branca-cinza .bi-rx-tl-dot {
    background: repeating-linear-gradient(90deg, #f8fafc 0 50%, #94a3b8 50% 100%);
    box-shadow: 0 0 0 2px #94a3b8;
}
.bi-rx-tl-item.faixa-cinza-azul .bi-rx-tl-dot {
    background: repeating-linear-gradient(90deg, #94a3b8 0 50%, #1d4ed8 50% 100%);
    box-shadow: 0 0 0 2px #1d4ed8;
}
.bi-rx-tl-item.faixa-azul-amarela .bi-rx-tl-dot {
    background: repeating-linear-gradient(90deg, #1d4ed8 0 50%, #eab308 50% 100%);
    box-shadow: 0 0 0 2px #1d4ed8;
}
.bi-rx-tl-item.faixa-amarela-laranja .bi-rx-tl-dot {
    background: repeating-linear-gradient(90deg, #eab308 0 50%, #ea580c 50% 100%);
    box-shadow: 0 0 0 2px #ea580c;
}
.bi-rx-tl-when { margin: 0; font-size: 11px; color: #94a3b8; font-weight: 600; }
.bi-rx-tl-src { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #10232A; }
.bi-rx-tl-det { margin: .1rem 0 0; font-size: .9rem; color: #0f172a; }
.bi-rx-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.bi-rx-leader {
    display: flex; align-items: center; gap: .7rem;
    background: #fff; border: 1px solid #e5eee8; border-radius: 1rem;
    padding: .65rem .75rem; text-decoration: none;
    box-shadow: 0 8px 20px rgba(160, 112, 64, .04);
}
.bi-rx-leader:hover { border-color: #10232A; box-shadow: 0 10px 24px rgba(160, 112, 64, .12); }
.bi-rx-leader-photo {
    width: 48px; height: 48px; border-radius: .85rem; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, #10232A, #10232A);
    display: inline-flex;
}
.bi-rx-leader-photo.is-logo { background: #fff; border: 1px solid #e5eee8; }
.bi-rx-leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bi-rx-leader-photo.is-logo img { object-fit: contain; padding: 4px; }
.bi-rx-leader-n {
    margin-left: auto; font-weight: 800; color: #10232A; font-size: 1.05rem;
}
.bi-rx-medalhistas {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem;
}
.bi-rx-med {
    display: flex; align-items: center; gap: .6rem;
    border: 1px solid #e8eee9; border-radius: .9rem; padding: .5rem .65rem;
    text-decoration: none; color: inherit; background: #fbfdfc;
}
.bi-rx-med.is-gold { background: #fffbeb; border-color: #f3d67a; }
.bi-rx-med.is-silver { background: #f8fafc; border-color: #cbd5e1; }
.bi-rx-med.is-bronze { background: #fff7ed; border-color: #e7b98a; }
.bi-rx-med-photo {
    width: 40px; height: 40px; border-radius: 999px; overflow: hidden; flex-shrink: 0; background: #e2e8f0;
}
.bi-rx-med-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bi-rx-med-place { font-weight: 800; font-size: .8rem; width: 2rem; flex-shrink: 0; }
.bi-kpi-tone-plain { background: #fff; border-color: #d0dce0; color: #10232A; }
.bi-kpi-tone-dark { background: linear-gradient(135deg, #111111, #10232A); border-color: transparent; }
.bi-kpi-tone-gold { background: linear-gradient(180deg, #fff7d6, #fde68a); border-color: #f3d67a; color: #3b2a04; }
.bi-kpi-tone-silver { background: linear-gradient(180deg, #f8fafc, #e2e8f0); border-color: #cbd5e1; color: #1e293b; }
.bi-kpi-tone-bronze { background: linear-gradient(180deg, #ffedd5, #fdba74); border-color: #e7b98a; color: #7c2d12; }
@media (max-width: 1024px) {
    .bi-rx-vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bi-rx-podium-row { grid-template-columns: 1fr; }
    .bi-rx-stat-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bi-rx-leaders, .bi-rx-medalhistas { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .bi-rx-hero-inner { flex-direction: column; }
    .bi-rx-photo-wrap { width: 160px; height: 190px; }
    .bi-rx-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bi-rx-medal { width: 5.6rem; height: 5.6rem; }
}
@media print {
    .bi-rx-scanline { display: none !important; }
    .bi-rx-hero { box-shadow: none; break-inside: avoid; }
    .bi-rx-comps, .bi-rx-tl, .bi-rx-medalhistas, .bi-rx-destaques, .bi-rx-years {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }
    details.bi-rx-year > *:not(summary) { display: block !important; }
    .bi-card:has(.bi-rx-comps),
    .bi-card:has(.bi-rx-tl),
    .bi-card:has(.bi-rx-medalhistas),
    .bi-card:has(.bi-rx-destaques) {
        break-inside: auto;
        page-break-inside: auto;
    }
}

/* =========================================================
   DOSSIÊ OFICIAL — bíblia da competição / evento
   ========================================================= */
body.bi-dos-lock { overflow: hidden; }

.bi-dos-home { max-width: 1120px; margin: 0 auto; }
.bi-dos-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
    align-items: center;
}
.bi-dos-cover {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 2.1rem 2.1rem 1.7rem;
    color: #fff;
    background:
        radial-gradient(1200px 420px at 88% -10%, rgba(232,185,35,.28), transparent 55%),
        radial-gradient(800px 360px at -8% 110%, rgba(160,112,64,.55), transparent 50%),
        linear-gradient(135deg, #050505 0%, #111111 42%, #10232A 72%, #10232A 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.bi-dos-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -12deg,
        transparent 0 18px,
        rgba(255,255,255,.018) 18px 19px
    );
    pointer-events: none;
}
.bi-dos-cover > * { position: relative; z-index: 1; }
.bi-dos-cover-home { margin-bottom: .25rem; }
.bi-dos-cover-mark {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.15rem;
}
.bi-dos-cover-mark img { height: 42px; width: auto; filter: brightness(0) invert(1); }
.bi-dos-cover-mark p {
    margin: 0;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,.62);
}
.bi-dos-kicker {
    margin: 0 0 .45rem;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #f3d67a;
}
.bi-dos-cover h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.03em;
    font-weight: 800;
    max-width: 52rem;
}
.bi-dos-cover-meta {
    margin: .7rem 0 0;
    color: rgba(255,255,255,.78);
    font-size: .95rem;
    max-width: 46rem;
}
.bi-dos-cover-gen {
    margin: .35rem 0 0;
    font-size: 12px;
    color: rgba(255,255,255,.48);
}
.bi-dos-cover-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1.5rem;
}
.bi-dos-cover-kpis > div {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: .85rem .9rem .75rem;
    backdrop-filter: blur(8px);
}
.bi-dos-cover-kpis p {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}
.bi-dos-cover-kpis strong {
    display: block;
    margin-top: .35rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.bi-dos-toc-wrap {
    position: sticky;
    top: -1rem;
    z-index: 24;
    margin: 0.85rem -1rem 0;
    padding: 0.45rem 1rem 0.5rem;
    background: rgba(243,246,244,.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #d0dce0;
    box-shadow: 0 8px 18px -14px rgba(0,0,0,.45);
}
@media (min-width: 1024px) {
    .bi-dos-toc-wrap {
        top: -1.5rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
.bi-dos-toc-kicker {
    margin: 0 0 .3rem;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #10232A;
}
.bi-dos-toc {
    display: flex;
    flex-wrap: nowrap;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: 0 0 .15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.bi-dos-toc a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .85rem;
    border-radius: 999px;
    border: 1px solid #d0dce0;
    background: #fff;
    font-size: 12px;
    font-weight: 650;
    color: #10232A;
    white-space: nowrap;
}
.bi-dos-toc a:hover { border-color: #10232A; background: #E4EEF0; }
.bi-dos-toc a.is-on {
    background: #10232A;
    border-color: #10232A;
    color: #fff;
}

.bi-dos-chap {
    margin-top: 2.1rem;
    padding-top: 1.4rem;
    border-top: 1px solid #d0dce0;
    scroll-margin-top: 4.75rem;
}
.bi-dos-num {
    margin: 0 0 .15rem;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    color: #e8b923;
}
.bi-dos-chap h2 {
    margin: 0;
    font-size: 1.55rem;
    letter-spacing: -.02em;
    color: #111111;
}
.bi-dos-lead {
    margin: .35rem 0 1.1rem;
    color: #64748b;
    max-width: 46rem;
}
.bi-dos-h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 .55rem;
    font-size: 1.05rem;
    color: #10232A;
}
.bi-dos-h3 span { font-size: 11px; font-weight: 600; color: #94a3b8; }
.bi-dos-block { margin-bottom: 1.1rem; }
.bi-dos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}
.bi-dos-table th {
    text-align: left;
    padding: .55rem .7rem;
    background: #111111;
    color: #fff;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}
.bi-dos-table td {
    padding: .48rem .7rem;
    border-bottom: 1px solid #eef2f0;
    color: #0f172a;
}
.bi-dos-table tbody tr:nth-child(even) { background: #f7faf8; }
.bi-dos-table .bi-th-gold, .bi-dos-table .bi-td-gold { color: #92400e; }
.bi-dos-table .bi-th-silver, .bi-dos-table .bi-td-silver { color: #334155; }
.bi-dos-table .bi-th-bronze, .bi-dos-table .bi-td-bronze { color: #9a3412; }
.bi-dos-empty { color: #94a3b8; font-size: .9rem; margin: .4rem 0; }
.bi-dos-end {
    margin: 2.4rem 0 1rem;
    padding: 1.2rem 0 0;
    border-top: 2px solid #111111;
    color: #64748b;
    font-size: 12px;
}
.bi-dos-end p { margin: 0; }
.bi-dos-end p + p { margin-top: .2rem; }

.bi-dos-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.bi-dos-cols h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #111111;
}
.bi-dos-col-sub { margin: .15rem 0 .7rem; font-size: 12px; color: #94a3b8; }
.bi-dos-list { display: flex; flex-direction: column; gap: .45rem; }
.bi-dos-item {
    display: block;
    padding: .8rem .95rem;
    border-radius: 14px;
    border: 1px solid #d0dce0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.bi-dos-item:hover { border-color: #10232A; box-shadow: 0 10px 24px rgba(160,112,64,.1); }
.bi-dos-item strong { display: block; color: #111111; font-size: .95rem; }
.bi-dos-item span { display: block; margin-top: .15rem; font-size: 12px; color: #64748b; }

.bi-dos-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4.5rem 1rem 2rem;
}
.bi-dos-modal.hidden { display: none !important; }
.bi-dos-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
}
.bi-dos-modal-card {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
    background: #f7faf8;
    border-radius: 22px;
    padding: 1.25rem 1.35rem 1.1rem;
    box-shadow: 0 32px 80px rgba(0,0,0,.35);
}
.bi-dos-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}
.bi-dos-modal-x {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid #d0dce0;
    background: #fff;
    font-size: 1.35rem;
    line-height: 1;
    color: #334155;
}
.bi-dos-tabs { display: flex; gap: .4rem; margin-bottom: .75rem; }
.bi-dos-tab {
    height: 2.15rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid #d0dce0;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.bi-dos-tab.is-on {
    background: #10232A;
    border-color: #10232A;
    color: #fff;
}
.bi-dos-search {
    width: 100%;
    height: 2.5rem;
    border-radius: 12px;
    border: 1px solid #d0dce0;
    background: #fff;
    padding: 0 .9rem;
    margin-bottom: .9rem;
    font-size: 14px;
}
.bi-dos-modal-foot {
    margin: 1rem 0 0;
    font-size: 12px;
    text-align: center;
}
.bi-dos-modal-foot a { color: #10232A; font-weight: 700; }

@media (max-width: 900px) {
    .bi-dos-cover-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bi-dos-cols { grid-template-columns: 1fr; }
    .bi-dos-cover { padding: 1.4rem 1.15rem 1.2rem; border-radius: 20px; }
}
@media (max-width: 640px) {
    .bi-dos-cover-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
    body:has(.bi-dos) .pl-print-header { display: none !important; }
    .bi-dos-modal, .bi-dos-toolbar, .bi-dos-toc, .bi-dos-toc-wrap { display: none !important; }
    .bi-dos-cover {
        box-shadow: none !important;
        border-radius: 0 !important;
        break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .bi-dos-chap { break-inside: auto; }
    .bi-dos-block, .bi-kpi-card, .bi-card { break-inside: avoid; }
    .bi-dos-table { font-size: 10px; }
    .bi-dos-table th { background: #111111 !important; color: #fff !important; }
    .bi-dos-dre { break-inside: avoid; }
}

.bi-dos-fin { border-top-width: 3px; border-top-color: #e8b923; }
.bi-dos-dre {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin: 1.1rem 0 .4rem;
}
.bi-dos-dre > div {
    border-radius: 20px;
    padding: 1.15rem 1.2rem 1rem;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.bi-dos-dre > div:nth-child(1) { background: linear-gradient(135deg, #10232A, #0b8f56); }
.bi-dos-dre > div:nth-child(2) { background: linear-gradient(135deg, #7f1d1d, #b45309); }
.bi-dos-dre > div:nth-child(3) { background: linear-gradient(135deg, #111111, #10232A); }
.bi-dos-dre.is-neg > div:nth-child(3) { background: linear-gradient(135deg, #7f1d1d, #9a3412); }
.bi-dos-dre p {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .78;
}
.bi-dos-dre strong {
    display: block;
    margin-top: .35rem;
    font-size: clamp(1.05rem, 2vw, 1.55rem);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.bi-dos-dre span { display: block; margin-top: .2rem; font-size: 12px; opacity: .75; }
.bi-dos-fin-tree td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.bi-dos-fin-tree tr.is-root td { font-weight: 800; background: #111111; color: #fff; }
.bi-bal-table th { white-space: nowrap; }
.bi-bal-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.bi-bal-table tr.is-rec td { font-weight: 700; background: #006699; color: #fff; }
.bi-bal-table tr.is-rec td a { color: #fff; }
.bi-bal-table tr.is-desp td { font-weight: 700; background: #990000; color: #fff; }
.bi-bal-table tr.is-desp td a { color: #fff; }
.bi-bal-table tr.is-subtotal td { background: #f4f4f4; color: #18337A; }
@media (max-width: 767px) {
    .bi-dos-dre { grid-template-columns: 1fr; }
}
.bi-kpi-grid p.font-extrabold,
.bi-kpi-grid .bi-kpi-val {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.bi-rx-funnel { display: grid; gap: .55rem; }
.bi-rx-funnel-step { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; align-items: center; gap: .65rem; }
.bi-rx-funnel-bar {
    height: 10px; border-radius: 999px;
    background: linear-gradient(90deg, #10232A, #0a181e);
    min-width: 8px;
}
.bi-rx-funnel-n { margin: 0; font-weight: 800; color: #10232A; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bi-rx-funnel-lab { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.bi-rx-funnel-pct { margin: 0; font-size: 12px; font-weight: 700; color: #10232A; width: 2.6rem; text-align: right; }
.bi-rx-fights { display: flex; flex-direction: column; gap: .4rem; }
.bi-rx-fight {
    display: flex; gap: .7rem; align-items: center;
    border: 1px solid #e8eee9; border-radius: .85rem; padding: .55rem .7rem; background: #fff;
}
.bi-rx-fight.is-win { border-color: #d0dce0; background: #f0fdf4; }
.bi-rx-fight.is-lose { border-color: #fecaca; background: #fef2f2; }
.bi-rx-fight-res {
    width: 1.85rem; height: 1.85rem; border-radius: .55rem; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .8rem;
}
.bi-rx-fight.is-win .bi-rx-fight-res { background: #10232A; color: #fff; }
.bi-rx-fight.is-lose .bi-rx-fight-res { background: #991b1b; color: #fff; }
.bi-rx-fight a { color: #10232A; font-weight: 700; text-decoration: none; }
.bi-rx-fight a:hover { text-decoration: underline; }
.bi-rx-rivals { display: flex; flex-direction: column; gap: .4rem; }
.bi-rx-rival {
    display: flex; align-items: center; gap: .65rem;
    border: 1px solid #e8eee9; border-radius: .85rem; padding: .55rem .75rem;
    text-decoration: none; color: inherit; background: #fbfdfc;
}
.bi-rx-rival:hover { border-color: #10232A; }
.bi-rx-rival-n { margin-left: auto; font-weight: 800; color: #10232A; font-size: .85rem; white-space: nowrap; }

.bi-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.85rem;
}
.bi-pager-btn {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10232A;
    text-decoration: none;
}
a.bi-pager-btn:hover { background: #ecfdf5; border-color: #10232A; }
.bi-pager-btn.is-off {
    color: #94a3b8;
    cursor: default;
}
.bi-pager-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}


/* ApexCharts — contraste legível (paridade Gestor 1.30.4 / Felipe 27/08) */
.apexcharts-tooltip, .bi-apex-tooltip, .apexcharts-theme-light {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.35) !important;
}
.apexcharts-tooltip-title {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-bottom-color: #e2e8f0 !important;
  font-weight: 700 !important;
}
.apexcharts-tooltip-text,
.apexcharts-tooltip-text-y-value,
.apexcharts-tooltip-text-y-label,
.apexcharts-tooltip-text-z-value,
.apexcharts-tooltip-marker,
.apexcharts-tooltip-series-group {
  color: #0f172a !important;
}
.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
.apexcharts-legend-text {
  color: #0f172a !important;
  fill: #0f172a !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}
.apexcharts-legend-series { margin: 2px 10px !important; }
.apexcharts-pie-label {
  fill: #ffffff !important;
  stroke: rgba(0, 0, 0, 0.35) !important;
  stroke-width: 0.6px !important;
  paint-order: stroke fill;
  font-weight: 700 !important;
}
.apexcharts-datalabels-group text.apexcharts-datalabel,
.apexcharts-datalabel-label,
.apexcharts-datalabel-value {
  font-weight: 700 !important;
}

/* —— Caixa / Recebíveis (anti-MVP decision UI) —— */
.rx-page { max-width: none; width: 100%; }
.rx-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #10232A; margin: 0 0 0.35rem;
}
.rx-title {
  font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.2;
  color: #111; margin: 0 0 0.75rem;
}
.rx-sintese-list { margin: 0; padding-left: 1.1rem; color: #334155; font-size: 0.95rem; line-height: 1.45; max-width: none; }
.rx-sintese-list li { margin: 0.35rem 0; }
.rx-sintese-after { margin-top: 1rem; max-width: 52rem; }
.rx-sintese-after .rx-sintese-list { font-size: 0.875rem; color: #475569; }
.rx-como-ler {
  margin-top: 0.75rem; border: 1px solid #d0dce0; border-radius: 0.75rem;
  background: #E4EEF0; padding: 0.5rem 0.85rem;
}
.rx-como-ler > summary {
  cursor: pointer; font-size: 0.8rem; font-weight: 600; color: #0a181e;
  list-style: none; user-select: none;
}
.rx-como-ler > summary::-webkit-details-marker { display: none; }
.rx-como-ler[open] > summary { margin-bottom: 0.4rem; }
.rx-como-ler .rx-sintese-list { font-size: 0.8rem; color: #64748b; }
.rx-modo-one { font-size: 0.875rem; color: #64748b; margin: 0.25rem 0 0; }

/* Salas multiselect — compacto (h-9), sem caixa morta */
/* —— Filtros: labels legíveis (anti slate-400 10px) —— */
.bi-filter-lab {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  margin: 0 0 0.35rem;
}
.bi-filters .bi-filter-lab {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  margin: 0 0 0.35rem;
}
.bi-filters .bi-filter-hint {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}
/* De/Até = intervalo de fluxo; Posição = foto de estoque (não confundir) */
.bi-filters .bi-period-range-row {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}
.bi-filters .bi-period-range-row > div {
  flex: 1;
  min-width: 0;
}
.bi-filters .bi-period-range-sep {
  flex: 0 0 auto;
  padding-bottom: 0.55rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
}
.bi-filters .bi-filter-sublab {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.2rem;
}
.bi-filters .bi-asof-field {
  padding: 0.45rem 0.55rem 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid #c5d6bc;
  background: linear-gradient(180deg, #f4f9ef 0%, #eef5e8 100%);
  box-shadow: inset 1px 0 0 #429019;
}
.bi-filters .bi-asof-lab {
  color: #2f5f18 !important;
}
.bi-filters .bi-asof-input {
  border-color: #9cbb8a !important;
  background: #fff;
  font-weight: 600;
  color: #10232A;
}
.bi-filters .bi-asof-hint {
  margin: 0.3rem 0 0;
  font-size: 10px;
  line-height: 1.25;
  color: #4d6b3a;
  font-weight: 600;
}
.bi-filters .bi-sala-field .bi-sala-ts.ts-wrapper,
.bi-filters .bi-sala-ts.ts-wrapper {
  min-height: 0 !important;
  max-height: none !important;
}
.bi-filters .bi-sala-ts .ts-control {
  min-height: 2.25rem !important;
  max-height: 4.5rem;
  overflow-y: auto;
  padding: 0.2rem 0.5rem !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
  gap: 0.25rem;
  align-items: center;
}
.bi-filters .bi-sala-ts .ts-control .item {
  font-size: 0.75rem; padding: 0.1rem 0.35rem; margin: 0;
  background: #E4EEF0; border: 1px solid #d0dce0; border-radius: 999px; color: #0a181e;
}
.bi-filters .bi-sala-ts .ts-control input {
  font-size: 0.8125rem !important; min-width: 7rem;
}
.bi-filters .bi-sala-ts.focus .ts-control {
  border-color: #10232A !important;
  box-shadow: 0 0 0 2px rgba(160, 112, 64, 0.18) !important;
}
.rx-notice {
  font-size: 0.85rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 0.75rem; padding: 0.65rem 0.9rem;
}
.rx-tabs .rx-tab { color: #64748b; font-weight: 500; }
.rx-tabs .rx-tab.is-on {
  background: #10232A; color: #e5ff2b; font-weight: 700;
}
.rx-hero-num {
  /* Carbon InMulti — texto lemon no label, branco no valor */
  background: linear-gradient(145deg, #050d10 0%, #10232A 55%, #0a181e 100%);
  color: #fff; border-radius: 1.25rem; padding: 1.35rem 1.5rem;
  box-shadow: 0 18px 40px rgba(16,35,42,.28);
}
.rx-hero-num .rx-bn-label {
  opacity: 1; color: #e5ff2b !important;
}
.rx-hero-num .rx-bn-value,
.rx-hero-num .rx-bn-value-sm {
  font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 800; margin: 0.35rem 0;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.rx-hero-num .rx-bn-hint {
  opacity: 1; font-size: 0.8rem; margin: 0; color: rgba(255,255,255,.8) !important;
}
.rx-sat-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; margin-top: 0.85rem;
}
@media (min-width: 900px) {
  .rx-sat-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
}
.rx-bignums-full { width: 100%; }
.rx-hero-num-wide {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; width: 100%;
}
.rx-hero-num-pct { text-align: right; }
.rx-bn-pct {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin: 0;
  font-variant-numeric: tabular-nums; color: #e5ff2b !important;
}
.rx-bn-pct-sm {
  font-size: 1.05rem; font-weight: 800; margin: 0.25rem 0 0; color: #0d9488 !important;
  font-variant-numeric: tabular-nums;
}
.rx-bn-pct-sm span { font-size: 0.75rem; font-weight: 600; color: #64748b !important; margin-left: 0.15rem; }
.rx-sat-grid-fech { width: 100%; }
@media (min-width: 900px) {
  .rx-sat-grid-fech.is-five-plus { grid-template-columns: repeat(5, minmax(0,1fr)); }
}
.xl-stack-full { width: 100%; }
.xl-mute { color: #64748b; font-weight: 600; }
.rx-sat {
  background: #fff; border: 1px solid #d0dce0; border-radius: 1rem; padding: 0.9rem 1rem;
  color: #111;
}
.rx-sat.is-warn { border-color: #f0c9a0; background: #fffaf4; }
.rx-sat .rx-bn-label { color: #64748b !important; }
.rx-sat .rx-bn-value,
.rx-sat .rx-bn-value-sm { color: #111 !important; }
.rx-sat .rx-bn-hint { color: #475569 !important; }
/* Mistura tóxica: força hero (nunca texto escuro no gradiente) */
.rx-sat.rx-hero-num {
  background: linear-gradient(145deg, #050505 0%, #1a1008 55%, #2c1a0a 100%) !important;
  color: #fff !important;
  border-color: transparent;
}
.rx-sat.rx-hero-num .rx-bn-label { color: #f0e0cc !important; }
.rx-sat.rx-hero-num .rx-bn-value,
.rx-sat.rx-hero-num .rx-bn-value-sm { color: #fff !important; }
.rx-sat.rx-hero-num .rx-bn-hint { color: rgba(255,255,255,.9) !important; }
.rx-bn-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b;
  font-weight: 600; margin: 0;
}
.rx-bn-value {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0.35rem 0 0; color: #111;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
}
.rx-bn-value-sm {
  font-size: 1.25rem; font-weight: 800; margin: 0.35rem 0 0; color: #111;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
}
/* Hero SEMPRE por cima das regras base de .rx-bn-* */
.rx-hero-num .rx-bn-label { color: #f0e0cc !important; }
.rx-hero-num .rx-bn-value,
.rx-hero-num .rx-bn-value-sm { color: #ffffff !important; }
.rx-hero-num .rx-bn-hint { color: rgba(255,255,255,.9) !important; }
.rx-bn-sub { font-size: 0.8rem; color: #10232A; font-weight: 600; margin: 0.15rem 0 0; }
.rx-bn-hint { font-size: 0.8rem; color: #475569; margin: 0.35rem 0 0; line-height: 1.35; }
.rx-toolbar .rx-universe { font-size: 0.75rem; color: #475569; }
.rx-empty { color: #475569; font-size: 0.875rem; }
.rx-block {
  background: #fff; border: 1px solid #d0dce0; border-radius: 1.15rem; padding: 1.15rem 1.25rem;
}
.rx-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.85rem; }
.rx-block-head h2 { font-size: 1.05rem; font-weight: 800; margin: 0; color: #111; }
.rx-def summary { cursor: pointer; font-size: 0.75rem; color: #10232A; font-weight: 600; }
.rx-def p { font-size: 0.8rem; color: #475569; margin: 0.4rem 0 0; max-width: 40rem; }
.rx-gate-ok, .rx-gate-bad {
  font-size: 0.85rem; border-radius: 0.75rem; padding: 0.55rem 0.85rem; font-weight: 600;
}
.rx-gate-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.rx-gate-bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.rx-comp-row { display: grid; grid-template-columns: 8.5rem 1fr 9rem; gap: 0.6rem; align-items: center; margin: 0.4rem 0; }
.rx-comp-lab { font-size: 0.8rem; color: #334155; }
.rx-comp-track { height: 10px; background: #f1ebe3; border-radius: 99px; overflow: hidden; }
.rx-comp-fill { display: block; height: 100%; background: linear-gradient(90deg, #10232A, #0a181e); border-radius: 99px; }
.rx-comp-val { font-size: 0.78rem; text-align: right; font-variant-numeric: tabular-nums; color: #111; }
.rx-comp-val em { color: #94a3b8; font-style: normal; margin-left: 0.25rem; }
.rx-four, .rx-suja-grid, .rx-dual {
  display: grid; gap: 0.75rem;
}
.rx-four { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 800px) { .rx-four { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.rx-four-card, .rx-suja-card {
  border: 1px solid #d0dce0; border-radius: 0.9rem; padding: 0.85rem 1rem; background: #E4EEF0;
}
.rx-suja-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 900px) { .rx-suja-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.rx-suja-card.is-critical { background: #fff7ed; border-color: #fdba74; }
.rx-dual { grid-template-columns: 1fr 1fr; }
.rx-dual-a, .rx-dual-b {
  border-radius: 1rem; padding: 1.1rem 1.2rem; border: 1px solid #d0dce0;
}
.rx-dual-a { background: #111; color: #fff; }
.rx-dual-a .rx-bn-label { color: #a8bcc4; }
.rx-dual-a .rx-bn-value-sm { color: #fff; }
.rx-dual-b { background: #fffaf4; border-color: #d0dce0; }
.rx-callout, .rx-callout-warn {
  font-size: 0.85rem; border-radius: 0.75rem; padding: 0.65rem 0.9rem;
}
.rx-callout { background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; }
.rx-callout-warn { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.rx-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.rx-table th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  color: #94a3b8; border-bottom: 1px solid #d0dce0; padding: 0.45rem 0.4rem;
}
.rx-table td { border-bottom: 1px solid #f1f5f9; padding: 0.45rem 0.4rem; color: #1e293b; }
.rx-table .tabular { font-variant-numeric: tabular-nums; text-align: right; }
.rx-chart { min-height: 280px; }
@media print {
  .rx-tabs, .rx-toolbar, .bi-filters { display: none !important; }
  .rx-block { break-inside: avoid; }
  .rx-hero-num { box-shadow: none; }
}

.pl-main-inner { width: 100%; max-width: none; }
.rx-page, .rx-dash { width: 100%; max-width: none; }

/* —— Excel-layout panels (Fechamento / Bônus / Painel) —— */
.xl-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.xl-cols {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .xl-cols-2 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .xl-cols-3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr); }
}
.xl-col { display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; }

.xl-panel {
  background: #fff;
  border: 1px solid #e8dccb;
  border-radius: 1.15rem;
  box-shadow: 0 10px 28px rgba(48, 28, 8, 0.06);
  overflow: hidden;
}
.xl-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(180deg, #E4EEF0 0%, #f3ebe1 100%);
  border-bottom: 1px solid #e8dccb;
  position: relative;
}
.xl-panel-head::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #10232A, #0a181e);
}
.xl-panel-head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2a1a0c;
  padding-left: 0.35rem;
}
.xl-panel-head .xl-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a181e;
  background: #fff;
  border: 1px solid #e0cfae;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.xl-panel-body { padding: 0.85rem 1.1rem 1.1rem; }

.xl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
}
.xl-table thead th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a654e;
  background: #E4EEF0;
  border-bottom: 1px solid #e8dccb;
  padding: 0.55rem 0.55rem;
  white-space: nowrap;
}
.xl-table thead th.num,
.xl-table tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.xl-table tbody td {
  padding: 0.55rem 0.55rem;
  border-bottom: 1px solid #f1ebe3;
  color: #1e293b;
  vertical-align: middle;
}
.xl-table tbody tr:nth-child(even) td { background: #fcfaf7; }
.xl-table tbody tr:hover td { background: #f7f1e8; }
.xl-table tbody tr.is-total td {
  font-weight: 800;
  background: #f3ebe1 !important;
  border-top: 1px solid #a8bcc4;
  color: #111;
}
.xl-table .xl-mute { color: #c4b5a0; }
.xl-table .xl-em { font-weight: 700; color: #0a181e; }

.xl-callout {
  border: 1px solid #e8dccb;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fffdfb 0%, #E4EEF0 100%);
  padding: 0.9rem 1.15rem;
  box-shadow: 0 4px 14px rgba(48, 28, 8, 0.04);
}
.xl-callout .rx-sintese-list { margin: 0; max-width: none; }

.xl-chart-wrap {
  border-radius: 0.85rem;
  background: #fcfaf7;
  border: 1px dashed #e0cfae;
  padding: 0.65rem 0.4rem 0.2rem;
  min-height: 250px;
}

.xl-rail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #2a1a0c 0%, #1a1008 100%);
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
.xl-rail-title {
  margin: 0 0 0.15rem;
  padding: 0 0.35rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8bcc4;
}
.xl-rail .xl-panel {
  background: rgba(255,255,255,.97);
  box-shadow: none;
}
.xl-rail .xl-panel-head {
  background: #fff;
  padding: 0.65rem 0.9rem;
}
.xl-rail .xl-panel-body { padding: 0.55rem 0.9rem 0.85rem; }

.xl-person {
  border: 1px solid #e8dccb;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(48, 28, 8, 0.06);
}
.xl-person-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.2rem;
  color: #fff;
  position: relative;
}
.xl-person-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.08));
  pointer-events: none;
}
.xl-person[data-tone="amber"] .xl-person-head { background: linear-gradient(135deg, #9a6b2f, #6b4210); }
.xl-person[data-tone="emerald"] .xl-person-head { background: linear-gradient(135deg, #3d6b52, #1f4332); }
.xl-person[data-tone="sky"] .xl-person-head { background: linear-gradient(135deg, #3d5a73, #1e3348); }
.xl-person[data-tone="brand"] .xl-person-head { background: linear-gradient(135deg, #10232A, #0a181e); }
.xl-person-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.xl-person-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.xl-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0.65rem;
  padding: 0.35rem 0.65rem;
  min-width: 5.5rem;
}
.xl-chip span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.xl-chip strong {
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.xl-person-body { padding: 0.75rem 1rem 1rem; }

.xl-resumo-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .xl-resumo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.xl-resumo-card {
  border: 1px solid #e8dccb;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #fff 0%, #E4EEF0 100%);
  box-shadow: 0 4px 14px rgba(48, 28, 8, 0.04);
  border-top: 3px solid #10232A;
}
.xl-resumo-card[data-tone="amber"] { border-top-color: #3d5a66; }
.xl-resumo-card[data-tone="emerald"] { border-top-color: #3d6b52; }
.xl-resumo-card[data-tone="sky"] { border-top-color: #3d5a73; }
.xl-resumo-card h4 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #2a1a0c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.xl-resumo-card dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.xl-resumo-card dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7460;
}
.xl-resumo-card dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #111;
  margin-bottom: 0.25rem;
}
.xl-resumo-card dd.xl-bonus { color: #0a181e; font-size: 1.2rem; }

@media print {
  .xl-panel, .xl-person, .xl-rail { box-shadow: none; break-inside: avoid; }
  .xl-rail { background: #E4EEF0; }
  .xl-rail-title { color: #0a181e; }
}

/* —— Vendas Analítico (paridade LEGADO) —— */
.bi-va-page { width: 100%; max-width: none; }
.bi-va-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.bi-va-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.bi-va-chip { font-size: 11px; padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid #d0dce0; background: #E4EEF0; color: #10232A; }
.bi-va-head { margin: 0.5rem 0 0.75rem; }
.bi-va-title { color: #704000; font-size: 1.15rem; font-weight: 700; margin: 0 0 0.35rem; }
.bi-va-sintese { margin: 0; font-size: 13px; color: #222; line-height: 1.45; }
.bi-va-ontem { margin: 0.25rem 0 0; font-size: 13px; color: #006633; font-weight: 600; line-height: 1.45; }
.bi-va-sync { margin: 0.2rem 0 0; font-size: 11px; font-style: italic; color: #666; }
.bi-va-boxes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 1rem; }
.bi-va-box { float: none; padding: 5px 9px; border-radius: 3px; color: #fff; text-shadow: none; border: 1px solid #999; line-height: 1.45; font-size: 12px; min-width: 140px; }
.bi-va-box-lab { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.bi-va-box span { display: block; }
.bi-va-tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 0.5rem 0 0.75rem; }
.bi-va-tab { appearance: none; background: #fff; border: 1px solid #8a3a2a; color: #4a2018; font-size: 11px; font-weight: 600; padding: 0.35rem 0.55rem; cursor: pointer; border-radius: 2px; }
.bi-va-tab.is-on, .bi-va-tab:hover { background: #10232A; color: #e5ff2b; border-color: #10232A; }
.bi-va-panel { margin-top: 0.5rem; }
.bi-va-panel-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.bi-va-panel-head h2 { margin: 0; font-size: 1.25rem; color: #a57b48; font-weight: 700; }
.bi-va-xlsx { font-size: 11px; padding: 0.25rem 0.5rem; border: 1px solid #ccc; background: #e8f5e9; border-radius: 3px; cursor: pointer; }
.bi-va-scroll { overflow-x: auto; max-width: 100%; border: 1px solid #ddd; background: #fff; }
.bi-va-table { border-collapse: separate; border-spacing: 3px; width: max-content; min-width: 100%; font-size: 11px; }
.bi-va-table th, .bi-va-table td { padding: 4px 6px; vertical-align: middle; white-space: nowrap; }
.bi-va-dimhead, .bi-va-h-geral { background: #080824; color: #fff; font-weight: 700; text-align: center; }
.bi-va-h-ativo { background: #429019; color: #fff; font-weight: 700; text-align: center; }
.bi-va-h-rev { background: #c67a1d; color: #fff; font-weight: 700; text-align: center; }
.bi-va-h-canc { background: #990000; color: #fff; font-weight: 700; text-align: center; }
.bi-va-sub { background: #1a1a3a; color: #eee; font-size: 10px; font-weight: 600; text-align: center; }
.bi-va-idx { text-align: center; color: #888; width: 28px; }
.bi-va-lab { text-align: left; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.bi-va-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bi-va-p { text-align: center; font-variant-numeric: tabular-nums; font-size: 10px; color: #444; }
.bi-va-foot td { background: #ffffcc !important; font-weight: 700; }
.bi-va-empty { text-align: center; padding: 1.5rem; color: #888; }
