/* ========================================================================== */
/* Gráficos, tooltips e tabelas */
/* Arquivo gerado a partir do styles(4).css, com regras consolidadas. */
/* ========================================================================== */

.loading-badge {
    font-size: .7rem;
    background: #eef6ff;
    color: #3989d8;
    border-radius: 99px;
    padding: 6px 9px;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .69rem;
    white-space: nowrap;
}

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

th {
    background: #f8fafc;
    color: #43506a;
    font-weight: 600;
}

td:first-child,th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: inherit;
}

tbody tr:hover {
    background: #fafcff;
}

.section-row td {
    text-align: left !important;
    font-weight: 700;
    font-size: .6rem;
    color: #223b6e;
    background: #fff !important;
}

.content > .chart-card:first-of-type {
    margin-top: 0;
}

.chart-legend {
    display: none !important;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 20px;
    margin: 0 0 5px 52px;
}

.chart-card {
    width: 100%;
    max-width: none;
}

.chart-shell {
    position: relative;
    height: 330px;
    width: 100%;
    max-width: none;
    overflow: visible;
}

.chart-shell svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
    max-width: none;
}

.chart-tooltip {
    position: absolute;
    background: #fff;
    color: #52637e;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: .67rem;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(27,48,85,.08);
    z-index: 4;
    white-space: nowrap;
    min-width: 82px;
    border: 1px solid #d7e0eb;
    line-height: 1.5;
}

.chart-tooltip strong {
    display: block;
    color: #344765;
    font-weight: 500;
}

.chart-tooltip span {
    display: block;
}

.chart-tooltip b {
    color: #355b9a;
    font-weight: 600;
}

.plans-scroll::-webkit-scrollbar-thumb {
    background: #9b9b9b;
    border-radius: 99px;
}

.plans-table {
    min-width: 820px;
    font-size: .72rem;
}

.plans-table th {
    vertical-align: bottom;
    background: #fff;
    white-space: normal;
    min-width: 118px;
    padding: 7px 7px;
}

.plans-table th:first-child {
    min-width: 170px;
}

.plans-table th strong {
    display: block;
    font-size: .75rem;
    color: #16223c;
    margin: 4px 0;
}

.plans-table th small {
    display: block;
    font-size: .64rem;
    color: #68738a;
    min-height: 24px;
    line-height: 1.25;
}

.plans-table th b {
    display: block;
    margin: 5px 0;
    font-size: .66rem;
}

.plans-table td {
    font-size: .75rem;
    padding: 7px 8px;
}

.plans-table .section-row td {
    padding-top: 9px;
    padding-bottom: 6px;
    font-size: .57rem;
}

.plans-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: #fff;
    box-shadow: 0 -1px 0 #e3e8f0;
}

.plans-table tfoot td {
    background: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
}

.plans-table tfoot .recommended {
    background: #eff6ff !important;
}

.plans-table tfoot .btn {
    padding: 7px 9px;
    font-size: .58rem;
    white-space: nowrap;
}

.platform-page .chart-shell {
    height: 320px;
}

.platform-page table {
    font-size: .74rem;
}

.platform-page th,.platform-page td {
    padding: 8px 9px;
}

@media (max-width:760px) {
    .chart-shell {
        height: 290px;
    }

    .plans-table {
        min-width: 820px;
    }

    .platform-page .chart-shell {
        height: 285px;
    }

}

.variation-positive {
    color: #198754;
}

.variation-negative {
    color: #dc3545;
}
