#indexContentBody > #hfContent {
    height: calc(100vh - 170px);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

#hfCards {
    width: 100%;
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

#hfCards .boxCard {
    flex: 1;
}

#hfCards .boxCard .boxBody {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

#hfTableCard {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

#hfTableCard .boxBody {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#hfTableCard .tblHeader {
    flex-shrink: 0;
    margin-bottom: 0;
    padding-right: 18px;
}

#hfTableCard .tblBody {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-gutter: stable;
    padding-right: 2px;
}

#hfTableCard .tblBody .rowZebra.rowOdd {
    background-color: #f1f4f9;
}

#hfTableCard .tblBody .rowZebra.rowEven {
    background-color: #ffffff;
}

.hfRefreshBtn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    border: 1px solid #dfe3ea;
    background-color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5a5c63;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 120ms ease;
    user-select: none;
}

.hfRefreshBtn:hover {
    border-color: #473bf0;
    color: #473bf0;
    background-color: #fafaff;
}

.hfRefreshBtn:active {
    transform: scale(0.97);
}

.hfRefreshIco {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 600ms cubic-bezier(.6,.2,.2,1);
}

.hfRefreshIco svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hfRefreshIco.rotating {
    animation: hfSpin 1000ms linear infinite;
}

@keyframes hfSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hfEmpty {
    padding: 28px 12px;
    color: #7f8083;
    font-size: 0.875em;
    text-align: center;
}



.hfGrupoNome {
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.hfGrupoId {
    font-size: 0.75em;
    color: #b5b6ba;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}


.hfNum {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    font-weight: 600;
}

.hfNum .slotLine {
    font-size: 0.9375em;
    font-weight: 700;
}

.hfNumBold .slotLine {
    color: #473bf0;
}


/* --- TABS ------------------------------------------------------------------ */
#hfTabsBar {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    border-bottom: 1px solid #e6e8ee;
    padding-bottom: 0;
}

.hfTabBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
    color: #6b6d73;
    user-select: none;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
    margin-bottom: -1px;
}

.hfTabBtn:hover {
    color: #473bf0;
    background-color: #f7f7ff;
}

.hfTabBtn.hfTabActive {
    background-color: #ffffff;
    color: #473bf0;
    border-color: #e6e8ee;
    border-bottom-color: #ffffff;
    font-weight: 700;
}

.hfTabIco {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hfTabIco svg { width: 100%; height: 100%; display: block; }

.hfTabLbl {
    font-size: 0.875em;
    white-space: nowrap;
}

.hfTabContent {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.hfTabContentHidden { display: none !important; }

#hfCardsLogs {
    width: 100%;
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

#hfCardsLogs .boxCard { flex: 1; }
#hfCardsLogs .boxCard .boxBody {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

#hfTableCardLogs {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

#hfTableCardLogs .boxBody {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#hfTableCardLogs .tblHeader {
    flex-shrink: 0;
    margin-bottom: 0;
    padding-right: 18px;
}

#hfTableCardLogs .tblBody {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-gutter: stable;
    padding-right: 2px;
}

#hfTableCardLogs .tblBody .rowZebra.rowOdd { background-color: #f1f4f9; }
#hfTableCardLogs .tblBody .rowZebra.rowEven { background-color: #ffffff; }

.hfLogsRowClickable {
    cursor: pointer;
    transition: background-color 120ms ease;
}
.hfLogsRowClickable:hover {
    background-color: #f4f3ff !important;
}
.hfLogsRowClickable[data-hflog-expanded="1"] {
    background-color: #eceaff !important;
}

.hfLogsColDt {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    padding-right: 8px;
    flex-shrink: 0;
    flex-grow: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}
.hfLogsDtCellWrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    width: 100%;
}
.hfLogsDtData {
    font-size: 0.8125em;
    font-weight: 700;
    color: #1e1e22;
    white-space: nowrap;
    line-height: 1.2;
}
.hfLogsDtHora {
    font-size: 0.75em;
    color: #6b6d73;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.hfLogsColAcao {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    justify-content: center;
    padding-left: 4px;
    padding-right: 4px;
    flex-shrink: 0;
    flex-grow: 0;
}

.hfLogsAcaoTag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 78px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hfLogsAcaoLigar { background-color: #e3f0ff; color: #1550b0; }
.hfLogsAcaoDesligar { background-color: #ffece8; color: #a93c23; }
.hfLogsAcaoRate { background-color: #fff3d9; color: #8a5f10; }
.hfLogsAcaoOther { background-color: #f1f4f9; color: #5a5c63; }

.hfLogsColVmss {
    min-width: 200px;
    padding-right: 12px;
    font-size: 0.8125em;
    color: #2e2e33;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 240px;
}

.hfLogsColGrupo {
    min-width: 240px;
    padding-right: 12px;
    font-size: 0.8125em;
    color: #2e2e33;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    flex-grow: 2;
    flex-basis: 320px;
}

.hfLogsColInst {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    padding-left: 4px;
    padding-right: 4px;
    justify-content: center;
    font-size: 0.8125em;
    color: #2e2e33;
    font-weight: 500;
    text-align: center;
    flex-shrink: 0;
    flex-grow: 0;
    font-variant-numeric: tabular-nums;
}

.hfLogsColFila {
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    padding-left: 4px;
    padding-right: 4px;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hfLogsFilaWrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.9375em;
}

.hfLogsColCap {
    width: 168px;
    min-width: 168px;
    max-width: 168px;
    padding-left: 4px;
    padding-right: 4px;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hfLogsCapWrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.9375em;
    color: #2e2e33;
    font-variant-numeric: tabular-nums;
}

.hfLogsColStatus {
    width: 116px;
    min-width: 116px;
    max-width: 116px;
    padding-left: 4px;
    padding-right: 4px;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
}

.hfLogsBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 88px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hfLogsBadgeOk { background-color: #e3f5eb; color: #1c7c54; }
.hfLogsBadgeFalha { background-color: #ffe6e6; color: #b51c1c; }
.hfLogsBadgeRate { background-color: #e9e7ff; color: #473bf0; }

.hfLogsDetalheRow {
    background-color: #fafaff !important;
    border-top: 1px solid #e6e8ee;
    border-bottom: 1px solid #e6e8ee;
}
.hfLogsDetalheCell {
    width: 100%;
    padding: 14px 18px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hfLogsDetalheLabel {
    font-size: 0.75em;
    font-weight: 700;
    color: #6b6d73;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.hfLogsDetalheTxt {
    width: 100%;
    font-size: 0.8125em;
    line-height: 1.55;
    color: #2e2e33;
    white-space: pre-wrap;
    word-break: break-word;
    background-color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6e8ee;
    font-family: Consolas, 'Courier New', monospace;
}

#hfLogsPagination {
    display: none;
}

.hfPageBtn {
    padding: 6px 12px;
    border: 1px solid #dce0e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.82em;
    color: #4b4d53;
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hfPageBtn:hover:not(:disabled) {
    background: #f5f7fb;
    border-color: #c9ced8;
    color: #2e2e33;
}
.hfPageBtn:disabled {
    background: #f3f5f9;
    color: #9b9ca3;
    cursor: not-allowed;
    opacity: 0.6;
}

.hfPageNum {
    min-width: 30px;
    padding: 6px 9px;
    border-radius: 6px;
    background: #fff;
    color: #4b4d53;
    border: 1px solid #dce0e6;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.8em;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hfPageNum:hover {
    background: #eef2ff;
    border-color: #b5c6ff;
    color: #2f56d9;
}

/* ===== ABA METRICAS ========================================================= */

#hfCardsMetrica {
    width: 100%;
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

#hfCardsMetrica .boxCard {
    flex: 1 1 150px;
    min-width: 150px;
}

#hfCardsMetrica .boxCard .boxBody {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

#hfCardsMetrica .cardValue.cardValueTxt {
    font-size: 1.4em;
    font-weight: 700;
    color: #2e2e33;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.hfMetricaSplit {
    width: 100%;
    display: flex;
    flex: 1;
    gap: 20px;
    min-height: 0;
}

.hfMetricaCardTbl {
    flex: 1.7 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.hfMetricaCardTbl > .boxBody {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hfMetricaCardTbl > .boxBody > .tblHeaderHf {
    padding-right: 18px;
    flex-shrink: 0;
}
.hfMetricaCardTbl > .boxBody > .tblBodyHf {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-gutter: stable;
    padding-right: 2px;
}
.hfMetricaCardTbl > .boxBody > .tblBodyHf .rowOdd {
    background-color: #f1f4f9;
}
.hfMetricaCardTbl > .boxBody > .tblBodyHf .rowEven {
    background-color: #ffffff;
}

.hfMetricaCardEv {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.hfMetricaCardEv > .boxBody {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hfMetricaCardEv > .boxBody > .tblHeaderHf {
    padding-right: 18px;
    flex-shrink: 0;
}
.hfMetricaCardEv > .boxBody > .tblBodyHf {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-gutter: stable;
    padding-right: 2px;
}
.hfMetricaCardEv > .boxBody > .tblBodyHf .rowOdd {
    background-color: #f1f4f9;
}
.hfMetricaCardEv > .boxBody > .tblBodyHf .rowEven {
    background-color: #ffffff;
}

/* --- Colunas tabela METRICA POR GRUPO --- */
.hfMetColGrupo {
    flex: 1;
    min-width: 180px;
    padding-right: 10px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.hfMetColTp,
.hfMetColTx {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    padding-left: 6px;
    padding-right: 6px;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
}
.hfMetColP24,
.hfMetColPH,
.hfMetColProc,
.hfMetColZer {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    padding-left: 6px;
    padding-right: 6px;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
}
.hfMetColDt {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    padding-right: 8px;
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 0.8125em;
    font-weight: 600;
    color: #2e2e33;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.hfMetParPair {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.9375em;
    font-variant-numeric: tabular-nums;
    color: #2e2e33;
}
.hfMetParPairEv {
    font-size: 0.875em;
    font-weight: 700;
}
.hfMetSep {
    color: #b5b6ba;
    font-size: 0.8em;
    margin: 0 2px;
    font-weight: 600;
}

.hfMetBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 0.8125em;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.hfMetTpBadge {
    background-color: #e3f2ff;
    color: #1b5fc4;
}
.hfMetTxBadge {
    background-color: #e8f7ee;
    color: #1c7c54;
}
.hfMetTxtDashed {
    background-color: #f1f3f7;
    color: #8a8b92;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- Tabela de EVENTOS --- */
.hfEvColDt {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    padding-right: 8px;
    flex-shrink: 0;
    flex-grow: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    display: flex;
}
.hfEvDtWrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    width: 100%;
}
.hfEvDtData {
    font-size: 0.8125em;
    font-weight: 700;
    color: #1e1e22;
    white-space: nowrap;
    line-height: 1.2;
}
.hfEvDtHora {
    font-size: 0.75em;
    color: #6b6d73;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.hfEvColGrupo {
    flex: 1;
    min-width: 0;
    width: 0;
    padding-right: 10px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    display: flex;
}
.hfGrupoNome.hfGrupoNomeEv {
    width: 100%;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8125em;
    line-height: 1.2;
}
.hfEvColTipo {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    padding-left: 6px;
    padding-right: 6px;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
}
.hfEvColVal {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    padding-left: 6px;
    padding-right: 6px;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
}

.hfEvBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.hfEvStart    { background-color: #e9e7ff; color: #473bf0; }
.hfEvZero     { background-color: #e3f5eb; color: #1c7c54; }
.hfEvPeak24   { background-color: #fff3e2; color: #c6721a; }
.hfEvPeakHist { background-color: #ffe6f0; color: #b91b61; }
.hfEvOther    { background-color: #f1f3f7; color: #5a5c63; }

#hfTabsWrap {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}
#hfTopRight {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0;
    margin-bottom: 20px;
}

#refreshTimer {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    overflow: visible;
    --rt-progress-deg: 0deg;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#rtProgressFill {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: conic-gradient(#5850ec var(--rt-progress-deg), transparent 0deg);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    transform: translateZ(0);
}
#rtFace {
    position: absolute;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 10px;
    border: 1px solid #dfe3ea;
    background: #ffffff;
    pointer-events: none;
    z-index: 2;
}
#rtContent {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#rtText {
    font-size: 0.75em;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: 0.01em;
}


