/* =========================================================
   HOME FROTA INSIGHTS
   CSS CONSOLIDADO
   RESPONSIVO / DINÂMICO / PADRONIZADO
   ========================================================= */

.home-frota-insights {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: transparent;
    box-sizing: border-box;
}

.home-frota-insights *,
.home-frota-insights *::before,
.home-frota-insights *::after {
    box-sizing: border-box;
}


/* =========================================================
   SHELL
   ========================================================= */

.home-frota-insights .shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   SCROLL PRINCIPAL
   ========================================================= */

.home-frota-insights .modal-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    max-height: calc(100vh - 88px);

    overflow-x: hidden;
    overflow-y: auto;

    padding-right: 4px;

    scrollbar-gutter: stable;

    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.home-frota-insights .modal-scroll:hover {
    scrollbar-color: #c8d2e3 #f2f6fc;
}

.home-frota-insights .modal-scroll::-webkit-scrollbar {
    width: 7px;
}

.home-frota-insights .modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.home-frota-insights .modal-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

.home-frota-insights .modal-scroll:hover::-webkit-scrollbar-track {
    background: #f2f6fc;
}

.home-frota-insights .modal-scroll:hover::-webkit-scrollbar-thumb {
    background: #c8d2e3;
}


/* =========================================================
   HERO
   ========================================================= */

.home-frota-insights .hero {
    width: 100%;
    min-height: 88px;

    padding: 14px 16px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f0f6ff 58%,
            #eaf7f2 100%
        );

    border: 1px solid #d6e4fb;
    border-radius: 12px;

    box-shadow:
        0 4px 14px rgba(46, 91, 255, .08);

    overflow: hidden;
}

.home-frota-insights .hero-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
    flex-wrap: wrap;

    min-width: 0;
}

.home-frota-insights .hero-info {
    flex: 1 1 auto;

    min-width: 0;
}

.home-frota-insights .hero-info-title {
    min-width: 0;

    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;

    color: #1e2f4e;

    overflow-wrap: anywhere;
}

.home-frota-insights .hero-info-line {
    margin-top: 6px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    color: #3f4f68;

    letter-spacing: .02em;
    text-transform: uppercase;

    overflow-wrap: anywhere;
}

.home-frota-insights .hero-info-filter {
    margin-top: 4px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;

    color: #8a2c0d;

    text-transform: uppercase;

    overflow-wrap: anywhere;
}

.home-frota-insights .hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;
    flex: 0 0 auto;

    flex-wrap: wrap;
}

.home-frota-insights .hero-action-btn {
    min-height: 38px;

    padding: 8px 14px;

    border-radius: 10px;

    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.home-frota-insights .hero-action-btn-secondary {
    border-color: #d2deef !important;
    color: #35507a !important;
    background: #ffffff !important;
}

.home-frota-insights .hero-action-btn-secondary:hover {
    background: #f7faff !important;
    border-color: #b7c8e7 !important;
}

.home-frota-insights .hero-action-btn-primary {
    box-shadow:
        0 6px 14px rgba(37, 99, 235, .15);
}


/* =========================================================
   KPI GRID
   ========================================================= */

.home-frota-insights .kpi-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 10px;

    align-items: stretch;

    grid-auto-rows: 1fr;
}

.home-frota-insights .kpi-dashboard {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 118px;
    height: 100%;

    display: grid;

    grid-template-columns:
        42px minmax(0, 1fr);

    gap: 10px;

    align-items: stretch;

    padding: 12px;

    border: 1px solid #dfe7f4;
    border-radius: 12px;

    background: #ffffff;

    overflow: hidden;

    isolation: isolate;

    --kpi-color: #64748b;
    --kpi-soft: #f8fafc;

    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.home-frota-insights .kpi-dashboard::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    border-radius: 12px 12px 0 0;

    background: var(--kpi-color);

    z-index: 0;
}

.home-frota-insights .kpi-dashboard::after {
    content: "";

    position: absolute;

    top: 4px;
    left: 0;

    width: 34px;
    height: 34px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.55) 0%,
            var(--kpi-soft) 100%
        );

    opacity: .72;

    border-radius: 0 0 12px 0;

    pointer-events: none;

    z-index: 0;
}

.home-frota-insights .kpi-dashboard:hover {
    transform: translateY(-1px);

    border-color: #cbd5e1;

    box-shadow:
        0 5px 15px rgba(15,23,42,.08);
}


/* =========================================================
   KPI ICON
   ========================================================= */

.home-frota-insights .kpi-dashboard-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    border-radius: 10px;

    border: 1px solid
        color-mix(
            in srgb,
            var(--kpi-color) 14%,
            #dfe7f4
        );

    font-size: 20px;

    position: relative;
    z-index: 1;
}


/* =========================================================
   KPI BODY
   ========================================================= */

.home-frota-insights .kpi-dashboard-body {
    width: 100%;
    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 2px 4px 2px 0;

    position: relative;
    z-index: 1;

    overflow: hidden;
}

.home-frota-insights .kpi-dashboard .kpi-title {
    display: -webkit-box;

    min-width: 0;
    min-height: 24px;

    margin: 0;

    overflow: hidden;

    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;

    color:
        color-mix(
            in srgb,
            var(--kpi-color) 62%,
            #5a6782
        );

    text-transform: uppercase;

    overflow-wrap: anywhere;
}

.home-frota-insights .kpi-dashboard .kpi-value {
    min-width: 0;

    margin-top: 3px;

    font-size: 29px;
    font-weight: 700;
    line-height: 1;

    color:
        color-mix(
            in srgb,
            var(--kpi-color) 28%,
            #1f2b45
        );

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.home-frota-insights .kpi-dashboard .kpi-help {
    display: -webkit-box;

    min-width: 0;

    margin-top: 3px;

    overflow: hidden;

    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    font-size: 10px;
    line-height: 1.15;

    color:
        color-mix(
            in srgb,
            var(--kpi-color) 22%,
            #6f7b93
        );

    overflow-wrap: anywhere;
}


/* =========================================================
   STATUS KPI
   ========================================================= */

.home-frota-insights .kpi-status {
    display: inline-flex;

    align-items: center;

    width: fit-content;
    max-width: 100%;

    margin-top: auto;
    margin-bottom: 1px;

    padding: 2px 7px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   CORES KPI
   ========================================================= */

.home-frota-insights .kpi-cor-green {
    --kpi-color: #16a34a;
    --kpi-soft: #edf9f1;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f6fcf8 100%
        );
}

.home-frota-insights .kpi-cor-blue {
    --kpi-color: #2563eb;
    --kpi-soft: #edf4ff;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7faff 100%
        );
}

.home-frota-insights .kpi-cor-indigo {
    --kpi-color: #4338ca;
    --kpi-soft: #eeecff;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8f6ff 100%
        );
}

.home-frota-insights .kpi-cor-orange {
    --kpi-color: #ea580c;
    --kpi-soft: #fff2e8;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff8f2 100%
        );
}

.home-frota-insights .kpi-cor-red {
    --kpi-color: #dc2626;
    --kpi-soft: #fff0f0;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff7f7 100%
        );
}

.home-frota-insights .kpi-cor-green::before {
    background: #16a34a;
}

.home-frota-insights .kpi-cor-blue::before {
    background: #2563eb;
}

.home-frota-insights .kpi-cor-indigo::before {
    background: #4338ca;
}

.home-frota-insights .kpi-cor-orange::before {
    background: #ea580c;
}

.home-frota-insights .kpi-cor-red::before {
    background: #dc2626;
}

.home-frota-insights .kpi-cor-green .kpi-dashboard-icon {
    color: #16a34a;
    background: #f7fcf8;
}

.home-frota-insights .kpi-cor-blue .kpi-dashboard-icon {
    color: #2563eb;
    background: #f8faff;
}

.home-frota-insights .kpi-cor-indigo .kpi-dashboard-icon {
    color: #4338ca;
    background: #f8f7ff;
}

.home-frota-insights .kpi-cor-orange .kpi-dashboard-icon {
    color: #ea580c;
    background: #fffaf5;
}

.home-frota-insights .kpi-cor-red .kpi-dashboard-icon {
    color: #dc2626;
    background: #fff9f9;
}


/* =========================================================
   STATUS COLORS
   ========================================================= */

.home-frota-insights .kpi-cor-green .kpi-status {
    color: #166534;
    background: #e8f7ee;
    border: 1px solid #bfe9cf;
}

.home-frota-insights .kpi-cor-blue .kpi-status {
    color: #1d4ed8;
    background: #edf4ff;
    border: 1px solid #cfe0ff;
}

.home-frota-insights .kpi-cor-indigo .kpi-status {
    color: #3730a3;
    background: #f0eeff;
    border: 1px solid #ddd9ff;
}

.home-frota-insights .kpi-cor-orange .kpi-status {
    color: #9a3412;
    background: #fff1e8;
    border: 1px solid #ffd7c0;
}

.home-frota-insights .kpi-cor-red .kpi-status {
    color: #991b1b;
    background: #fff0f0;
    border: 1px solid #ffd0d0;
}

.home-frota-insights .kpi-status-good {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.home-frota-insights .kpi-status-warn {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
}

.home-frota-insights .kpi-status-critical {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}


/* =========================================================
   GRIDS DE GRÁFICOS
   ========================================================= */

.home-frota-insights .charts-operacional,
.home-frota-insights .charts-impactos,
.home-frota-insights .charts-operadores {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    align-items: stretch;
}

.home-frota-insights .charts-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    align-items: stretch;
}

.home-frota-insights .charts-operacional > *,
.home-frota-insights .charts-impactos > *,
.home-frota-insights .charts-operadores > *,
.home-frota-insights .charts-row > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
}


/* =========================================================
   CARD DE GRÁFICO
   ========================================================= */

.home-frota-insights .chart-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.home-frota-insights .chart-card.block {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    min-height: 315px;
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 11px 12px 10px;

    border: 1px solid #dfe7f4;
    border-top: 3px solid #7c3aed;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #fbfaff 0%,
            #ffffff 22%,
            #ffffff 100%
        );

    box-shadow:
        0 6px 18px rgba(30,41,59,.08);

    overflow: hidden;
}

.home-frota-insights .chart-card.block > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   TÍTULOS DOS GRÁFICOS
   ========================================================= */

.home-frota-insights .chart-title {
    flex: 0 0 auto;

    margin: 0;

    color: #33415c;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.home-frota-insights .chart-subtitle {
    flex: 0 0 auto;

    margin-top: 2px;

    color: #6f7b93;

    font-size: 12px;
    line-height: 1.3;
}


/* =========================================================
   CONTEÚDO DOS GRÁFICOS
   ========================================================= */

.home-frota-insights .chart-svg-wrap,
.home-frota-insights .chart-canvas-wrap {
    position: relative;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    min-height: 210px;

    height: auto;

    overflow: visible;
}


/* =========================================================
   GRÁFICOS VERTICAIS
   ========================================================= */

.home-frota-insights .chart-vertical-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    min-height: 190px;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(0, 1fr));

    gap: 8px;

    align-items: stretch;

    padding-top: 6px;

    overflow-x: auto;
    overflow-y: hidden;
}

.home-frota-insights .chart-vertical-item {
    width: 100%;
    min-width: 0;
    min-height: 180px;

    display: flex;
    flex-direction: column;

    align-items: stretch;
    justify-content: flex-end;

    padding: 7px 6px;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );

    overflow: hidden;
}

.home-frota-insights .chart-vertical-value {
    width: 100%;
    min-width: 0;
    min-height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 3px;
    margin-bottom: 5px;

    color: #1e293b;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.home-frota-insights .chart-vertical-value span {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
}

.home-frota-insights .chart-vertical-bar-shell {
    position: relative;

    width: 100%;

    flex: 1 1 auto;

    min-height: 110px;

    display: flex;

    align-items: flex-end;
    justify-content: center;

    overflow: hidden;

    border-radius: 7px;

    background:
        repeating-linear-gradient(
            to top,
            transparent 0,
            transparent 24%,
            rgba(148,163,184,.10) 24%,
            rgba(148,163,184,.10) 25%
        ),
        #eef2f7;
}

.home-frota-insights .chart-vertical-bar {
    width: 70%;

    min-height: 4px;

    border-radius: 6px 6px 3px 3px;

    opacity: .88;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.30),
        0 2px 5px rgba(15,23,42,.12);

    transition:
        height .25s ease,
        opacity .15s ease;
}

.home-frota-insights .chart-vertical-label {
    width: 100%;
    min-width: 0;

    min-height: 24px;

    margin-top: 6px;

    color: #475569;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;

    text-align: center;
    text-transform: uppercase;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   HORÍMETRO
   ========================================================= */

.home-frota-insights .horimetro-chart {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    min-height: 205px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;

    align-items: stretch;

    padding-top: 6px;

    overflow: hidden;
}

.home-frota-insights .horimetro-item {
    width: 100%;
    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 7px 6px;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );

    overflow: hidden;
}

.home-frota-insights .horimetro-item-header {
    width: 100%;
    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 4px;

    margin-bottom: 5px;
}

.home-frota-insights .horimetro-item-code {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: #f1f5f9;

    color: #334155;

    font-size: 10px;
    font-weight: 800;
}

.home-frota-insights .horimetro-item-value {
    min-width: 0;

    color: #1e293b;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    text-align: right;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.home-frota-insights .horimetro-item-value small {
    font-size: 9px;
    font-weight: 700;

    color: #64748b;
}

.home-frota-insights .horimetro-bar-shell {
    position: relative;

    width: 100%;

    flex: 1 1 auto;

    min-height: 110px;

    display: flex;

    align-items: flex-end;
    justify-content: center;

    overflow: hidden;

    border-radius: 7px;

    background:
        repeating-linear-gradient(
            to top,
            transparent 0,
            transparent 24%,
            rgba(148,163,184,.10) 24%,
            rgba(148,163,184,.10) 25%
        ),
        #eef2f7;
}

.home-frota-insights .horimetro-bar {
    width: 70%;

    min-height: 4px;

    border-radius: 6px 6px 3px 3px;

    opacity: .88;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.30),
        0 2px 5px rgba(15,23,42,.12);

    transition:
        height .25s ease,
        opacity .15s ease;
}

.home-frota-insights .horimetro-label {
    width: 100%;
    min-width: 0;

    margin-top: 6px;

    color: #475569;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;

    text-align: center;
    text-transform: uppercase;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   ONLINE / OFFLINE
   ========================================================= */

.home-frota-insights .online-timeline {
    position: relative;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    display: flex;
    flex-direction: column;

    padding-top: 2px;
}

.home-frota-insights .online-timeline-track {
    position: relative;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    min-height: 145px;
    height: 145px;

    border: 1px solid #cbd8ea;
    border-radius: 10px;

    background:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(4.166666% - 1px),
            rgba(148,163,184,.22)
                calc(4.166666% - 1px),
            rgba(148,163,184,.22)
                4.166666%
        ),
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 50%,
            #f8fafc 100%
        );

    box-shadow:
        inset 0 1px 2px rgba(15,23,42,.03),
        0 4px 12px rgba(30,64,175,.06);

    overflow: hidden;
}

.home-frota-insights .online-timeline-bar {
    position: absolute;

    left: 14px;
    right: 14px;

    top: 50%;

    transform: translateY(-50%);

    height: 40px;

    display: flex;

    overflow: hidden;

    border-radius: 8px;

    background: #e5e7eb;

    box-shadow:
        0 3px 8px rgba(15,23,42,.14),
        inset 0 1px 0 rgba(255,255,255,.25);
}

.home-frota-insights .online-timeline-segment {
    position: relative;

    flex: 1 1 0;

    width: 0;
    min-width: 1px;
    height: 100%;
}

.home-frota-insights .online-timeline-segment.online {
    background:
        linear-gradient(
            180deg,
            #34d399 0%,
            #16a34a 100%
        );
}

.home-frota-insights .online-timeline-segment.offline {
    background:
        linear-gradient(
            180deg,
            #f87171 0%,
            #dc2626 100%
        );
}

.home-frota-insights .online-timeline-segment.nao-ocorrido {
    background:
        repeating-linear-gradient(
            135deg,
            #e5e7eb 0,
            #e5e7eb 4px,
            #d8dde5 4px,
            #d8dde5 8px
        );
}


/* =========================================================
   EIXO ONLINE
   ========================================================= */

.home-frota-insights .online-timeline-axis {
    position: absolute;

    left: 14px;
    right: 14px;

    bottom: 6px;

    width: auto;
    height: 22px;

    display: grid;

    grid-template-columns:
        repeat(24, minmax(0, 1fr));

    align-items: center;

    color: #64748b;

    font-size: 8px;
    font-weight: 700;

    pointer-events: none;
}

.home-frota-insights .online-timeline-axis span {
    display: block;

    width: 100%;

    text-align: center;

    white-space: nowrap;

    transform: rotate(-90deg);
    transform-origin: center center;
}


/* =========================================================
   LEGENDA ONLINE
   ========================================================= */

.home-frota-insights .online-timeline-legend {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 6px;

    color: #64748b;

    font-size: 10px;
    font-weight: 600;
    line-height: 1;

    overflow-x: auto;

    scrollbar-width: none;
}

.home-frota-insights .online-timeline-legend::-webkit-scrollbar {
    display: none;
}

.home-frota-insights .online-timeline-legend-item {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    white-space: nowrap;
}

.home-frota-insights .online-timeline-legend-color {
    width: 14px;
    height: 8px;

    flex: 0 0 14px;

    border-radius: 3px;
}


/* =========================================================
   BATERIA
   ========================================================= */

.home-frota-insights .battery-chart-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    min-height: 350px;
    height: 100%;

    display: flex;
    flex-direction: column;

    border-top-color: #16a34a;

    background:
        linear-gradient(
            180deg,
            #f7fff9 0%,
            #ffffff 25%,
            #ffffff 100%
        );
}

.home-frota-insights .battery-hour-chart {
    position: relative;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    min-height: 250px;

    margin-top: 4px;

    overflow: visible;

    display: flex;
    flex-direction: column;
}

.home-frota-insights .battery-hour-chart-inner {
    position: relative;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    height: 100%;
    min-height: 0;

    flex: 1 1 auto;

    overflow: visible;
}

.home-frota-insights .battery-hour-chart svg,
.home-frota-insights .battery-hour-chart canvas {
    display: block;

    width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;

    min-width: 0;
    min-height: 0;
}

.home-frota-insights .battery-hour-chart svg {
    overflow: visible !important;
}

.home-frota-insights .battery-hour-chart svg text {
    overflow: visible;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.home-frota-insights .battery-line {
    fill: none;

    stroke-width: 2.5;

    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;
}

.home-frota-insights .battery-area {
    opacity: .16;
}

.home-frota-insights .battery-point {
    stroke: #ffffff;
    stroke-width: 2;

    vector-effect: non-scaling-stroke;
}

.home-frota-insights .battery-grid-line {
    stroke: #dbe4ef;
    stroke-width: 1;

    vector-effect: non-scaling-stroke;
}

.home-frota-insights .battery-axis-label,
.home-frota-insights .battery-hour-label {
    fill: #64748b;

    font-weight: 700;
}

.home-frota-insights .battery-axis-label {
    font-size: 10px;
}

.home-frota-insights .battery-hour-label {
    font-size: 9px;
    text-anchor: middle;
}

.home-frota-insights .battery-axis-line {
    stroke: #cbd5e1;
    stroke-width: 1;

    vector-effect: non-scaling-stroke;
}

.home-frota-insights .battery-empty {
    flex: 1 1 auto;

    min-height: 180px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #94a3b8;

    text-align: center;
}


/* =========================================================
   TABELA IMPACTOS OPERADORES
   ========================================================= */

/* =========================================================
   IMPACTOS POR OPERADOR
   MESMO PADRÃO VISUAL DA MATRIZ HORÁRIO X IMPACTO
   ========================================================= */

.impacto-operadores-card {

    width: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--home-border);

    border-radius: 12px;

    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.impact-operator-wrap {

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    box-sizing: border-box;
}


/* =========================================================
   TABELA
   ========================================================= */

.impact-operator-table {

    width: 100%;

    min-width: 650px;

    border-collapse: separate;
    border-spacing: 0;

    table-layout: fixed;

    box-sizing: border-box;
}


/* =========================================================
   COLUNAS
   ========================================================= */

.impact-operator-col-name {

    width: 32%;
}


.impact-operator-col-impact {

    width: 12%;
}


.impact-operator-col-total {

    width: 12%;
}


/* =========================================================
   HEADER
   ========================================================= */

.impact-operator-table thead th {

    height: 38px;

    padding: 8px 10px;

    background: #f8fafc;

    color: #475569;

    border-bottom: 1px solid #e2e8f0;

    font-size: 11px;
    font-weight: 700;

    text-align: center;

    white-space: nowrap;

    box-sizing: border-box;
}


.impact-operator-table thead th:first-child {

    text-align: left;
}


.impact-operator-header-name {

    text-align: left !important;
}


/* =========================================================
   CORES DOS HEADERS
   ========================================================= */

.impact-operator-table .impact-col-buraco {

    color: #1d4ed8;
}


.impact-operator-table .impact-col-grave {

    color: #b91c1c;
}


.impact-operator-table .impact-col-medio {

    color: #c2410c;
}


.impact-operator-table .impact-col-leve {

    color: #15803d;
}


.impact-operator-table .impact-col-total {

    color: #475569;
}


/* =========================================================
   LINHAS
   ========================================================= */

.impact-operator-table tbody tr {

    transition:
        background-color 0.12s ease;
}


.impact-operator-table tbody tr:hover {

    background: #fafcff;
}


/* =========================================================
   OPERADOR
   ========================================================= */

.impact-operator-name-cell {

    height: 42px;

    padding: 6px 10px;

    border-bottom: 1px solid #edf1f6;

    box-sizing: border-box;

    text-align: left;

    vertical-align: middle;
}


.impact-operator-name {

    width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--home-text-primary);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;
}


/* =========================================================
   VALORES
   ========================================================= */

.impact-operator-value-cell {

    height: 42px;

    padding: 5px;

    border-bottom: 1px solid #edf1f6;

    box-sizing: border-box;

    text-align: center;

    vertical-align: middle;
}


.impact-cell-value {

    width: 100%;

    min-height: 30px;

    padding: 6px 4px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    box-sizing: border-box;
}


/* =========================================================
   TOTAL
   ========================================================= */

.impact-operator-total {

    height: 42px;

    padding: 6px 10px;

    color: var(--home-text-primary);

    border-bottom: 1px solid #edf1f6;

    font-size: 13px;
    font-weight: 700;

    text-align: center;

    vertical-align: middle;

    box-sizing: border-box;
}


/* =========================================================
   ÚLTIMA LINHA
   ========================================================= */

.impact-operator-table tbody tr:last-child
.impact-operator-name-cell,

.impact-operator-table tbody tr:last-child
.impact-operator-value-cell,

.impact-operator-table tbody tr:last-child
.impact-operator-total {

    border-bottom: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .impact-operator-table {

        min-width: 620px;
    }


    .impact-operator-table thead th {

        height: 36px;

        padding: 7px 8px;

        font-size: 10px;
    }


    .impact-operator-name-cell {

        padding-left: 8px;
        padding-right: 8px;
    }


    .impact-operator-name {

        font-size: 11px;
    }


    .impact-operator-value-cell {

        padding: 4px;
    }


    .impact-cell-value {

        min-height: 28px;

        font-size: 11px;
    }


    .impact-operator-total {

        font-size: 12px;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 480px) {

    .impact-operator-table {

        min-width: 580px;
    }


    .impacto-operadores-card {

        border-radius: 10px;
    }


    .impact-operator-table thead th {

        font-size: 10px;
    }


    .impact-operator-name {

        font-size: 11px;
    }


    .impact-cell-value {

        min-height: 27px;

        padding: 5px 3px;

        font-size: 10px;
    }


    .impact-operator-total {

        font-size: 11px;
    }
}


.home-frota-insights .impact-operator-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 2px 0 4px;
}

.home-frota-insights .impact-operator-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    table-layout: fixed;

    border-collapse: separate;
    border-spacing: 4px;

    font-size: 12px;
}

.home-frota-insights .impact-operator-table thead th {
    height: 34px;

    padding: 7px 6px;

    border-radius: 7px;

    background: #f1f5f9;

    color: #475569;

    font-size: 10px;
    font-weight: 800;

    text-align: center;
    text-transform: uppercase;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.home-frota-insights .impact-operator-table tbody tr {
    height: 42px;
}

.home-frota-insights .impact-operator-name-cell {
    padding: 6px 9px;

    border: 1px solid #e2e8f0;
    border-radius: 7px;

    background: #f8fafc;

    vertical-align: middle;

    overflow: hidden;
}

.home-frota-insights .impact-operator-name {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    display: -webkit-box;

    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;

    color: #33415c;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.home-frota-insights .impact-operator-value-cell,
.home-frota-insights .impact-operator-total {
    height: 42px;

    padding: 5px;

    border-radius: 7px;

    font-size: 11px;
    font-weight: 800;

    line-height: 1;

    text-align: center;
    vertical-align: middle;

    white-space: nowrap;
}

.home-frota-insights .impact-operator-total {
    border: 1px solid #c7d2fe;

    background: #eef2ff;

    color: #3730a3;

    font-size: 12px;
}


/* =========================================================
   HEATMAP
   ========================================================= */

.home-frota-insights .impact-heatmap-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    overflow-x: hidden;
    overflow-y: auto;

    max-height: 430px;

    padding: 2px 0 4px;
}

.home-frota-insights .impact-heatmap-table {
    width: 100%;
    min-width: 0;

    table-layout: fixed;

    border-collapse: separate;
    border-spacing: 4px;

    font-size: 12px;
}

.home-frota-insights .impact-heatmap-table thead th {
    height: 34px;

    padding: 7px 8px;

    border-radius: 7px;

    background: #f1f5f9;

    color: #475569;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .03em;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.home-frota-insights .impact-hora {
    width: 72px;

    padding: 6px 8px;

    border: 1px solid #e2e8f0;
    border-radius: 7px;

    background: #f8fafc;

    color: #334155;

    font-size: 11px;
    font-weight: 800;

    text-align: center;

    white-space: nowrap;
}

.home-frota-insights .impact-cell {
    height: 38px;
    padding: 0;
}

.home-frota-insights .impact-cell-value {
    width: 100%;
    height: 100%;

    min-height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-size: 12px;
}

.home-frota-insights .impact-total {
    padding: 6px 8px;

    border: 1px solid #c7d2fe;
    border-radius: 7px;

    background: #eef2ff;

    color: #3730a3;

    font-size: 12px;
    font-weight: 800;

    text-align: center;
}


/* =========================================================
   TOP OPERADORES
   ========================================================= */

.home-frota-insights .top-operadores-list {
    width: 100%;
    max-width: 100%;

    display: flex;
    flex-direction: column;

    gap: 8px;

    flex: 1 1 auto;
}

.home-frota-insights .top-operador-button {
    width: 100%;
    max-width: 100%;

    padding: 8px 10px;

    border: 1px solid #e3eaf6;
    border-radius: 10px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;
}

.home-frota-insights .top-operador-button:hover {
    background: #f8fbff;
    border-color: #c8d8f3;
}

.home-frota-insights .top-operador-button.ativo {
    border-color: #f59e0b;

    box-shadow:
        inset 0 0 0 1px rgba(245,158,11,.35);

    background: #fff8eb;
}

.home-frota-insights .top-operador-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 8px;
}

.home-frota-insights .top-operador-left {
    min-width: 0;

    display: grid;

    grid-template-columns:
        minmax(100px, 170px)
        minmax(0, 1fr);

    align-items: center;

    gap: 8px;
}

.home-frota-insights .top-operador-label {
    min-width: 0;

    color: #33415c;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.home-frota-insights .top-operador-track {
    min-width: 0;

    height: 10px;

    border-radius: 999px;

    background: #e6ecf8;

    overflow: hidden;
}

.home-frota-insights .top-operador-fill {
    height: 100%;

    border-radius: 999px;
}

.home-frota-insights .top-operador-value {
    color: #33415c;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   IMPACTOS POR ÁREA
   CORREÇÃO IMPORTANTE:
   TUDO DENTRO DO NAMESPACE
   ========================================================= */

/* =========================================================
   IMPACTOS POR ÁREA
   MESMO PADRÃO VISUAL DA MATRIZ HORÁRIO X IMPACTO
   ========================================================= */

.impacto-areas-card {

    width: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--home-border);

    border-radius: 12px;

    box-sizing: border-box;
}


/* =========================================================
   CONTAINER DA TABELA
   ========================================================= */

.impact-area-wrap {

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    box-sizing: border-box;
}


/* =========================================================
   TABELA
   ========================================================= */

.impact-area-table {

    width: 100%;

    min-width: 650px;

    border-collapse: separate;
    border-spacing: 0;

    table-layout: fixed;

    box-sizing: border-box;
}


/* =========================================================
   COLUNAS
   ========================================================= */

.impact-area-col-name {

    width: 32%;
}


.impact-area-col-impact {

    width: 12%;
}


.impact-area-col-total {

    width: 12%;
}


/* =========================================================
   HEADER
   ========================================================= */

.impact-area-table thead th {

    height: 38px;

    padding: 8px 10px;

    background: #f8fafc;

    color: #475569;

    border-bottom: 1px solid #e2e8f0;

    font-size: 11px;
    font-weight: 700;

    text-align: center;

    white-space: nowrap;

    box-sizing: border-box;
}


.impact-area-table thead th:first-child {

    text-align: left;
}


.impact-area-header-name {

    text-align: left !important;
}


/* =========================================================
   LINHAS
   ========================================================= */

.impact-area-table tbody tr {

    transition:
        background-color 0.12s ease;
}


.impact-area-table tbody tr:hover {

    background: #fafcff;
}


/* =========================================================
   CÉLULA DA ÁREA
   ========================================================= */

.impact-area-name-cell {

    height: 42px;

    padding: 6px 10px;

    border-bottom: 1px solid #edf1f6;

    box-sizing: border-box;

    text-align: left;

    vertical-align: middle;
}


.impact-area-name {

    width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--home-text-primary);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;
}


/* =========================================================
   CÉLULAS DOS IMPACTOS
   ========================================================= */

.impact-area-value-cell {

    height: 42px;

    padding: 5px;

    border-bottom: 1px solid #edf1f6;

    box-sizing: border-box;

    text-align: center;

    vertical-align: middle;
}


.impact-cell-value {

    width: 100%;

    min-height: 30px;

    padding: 6px 4px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    box-sizing: border-box;
}


/* =========================================================
   TOTAL
   ========================================================= */

.impact-area-total {

    height: 42px;

    padding: 6px 10px;

    color: var(--home-text-primary);

    border-bottom: 1px solid #edf1f6;

    font-size: 13px;
    font-weight: 700;

    text-align: center;

    vertical-align: middle;

    box-sizing: border-box;
}


/* =========================================================
   ÚLTIMA LINHA
   ========================================================= */

.impact-area-table tbody tr:last-child
.impact-area-name-cell,

.impact-area-table tbody tr:last-child
.impact-area-value-cell,

.impact-area-table tbody tr:last-child
.impact-area-total {

    border-bottom: none;
}


/* =========================================================
   CABEÇALHOS POR TIPO
   MESMA IDENTIDADE DA MATRIZ
   ========================================================= */

.impact-area-table .impact-col-buraco {

    color: #1d4ed8;
}


.impact-area-table .impact-col-grave {

    color: #b91c1c;
}


.impact-area-table .impact-col-medio {

    color: #c2410c;
}


.impact-area-table .impact-col-leve {

    color: #15803d;
}


.impact-area-table .impact-col-total {

    color: #475569;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .impact-area-table {

        min-width: 620px;
    }


    .impact-area-table thead th {

        height: 36px;

        padding: 7px 8px;

        font-size: 10px;
    }


    .impact-area-name-cell {

        padding-left: 8px;
        padding-right: 8px;
    }


    .impact-area-name {

        font-size: 11px;
    }


    .impact-area-value-cell {

        padding: 4px;
    }


    .impact-cell-value {

        min-height: 28px;

        font-size: 11px;
    }


    .impact-area-total {

        font-size: 12px;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 480px) {

    .impact-area-table {

        min-width: 580px;
    }


    .impacto-areas-card {

        border-radius: 10px;
    }


    .impact-area-table thead th {

        font-size: 10px;
    }


    .impact-area-name {

        font-size: 11px;
    }


    .impact-cell-value {

        min-height: 27px;

        padding: 5px 3px;

        font-size: 10px;
    }


    .impact-area-total {

        font-size: 11px;
    }
}

   
.home-frota-insights .impactos-areas-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow: hidden;
}

.home-frota-insights .impact-area-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    overflow-x: auto;
    overflow-y: auto;
}

.home-frota-insights .impact-area-table {
    width: 100%;
    max-width: 100%;

    border-collapse: collapse;
    table-layout: fixed;
}

.home-frota-insights .impact-area-table th,
.home-frota-insights .impact-area-table td {
    padding: 8px 10px;

    border-bottom: 1px solid #e5e7eb;

    text-align: center;
    vertical-align: middle;
}

.home-frota-insights .impact-area-table th {
    font-size: 12px;
    font-weight: 600;

    color: #64748b;

    white-space: nowrap;
}

.home-frota-insights .impact-area-col-name {
    width: 34%;
}

.home-frota-insights .impact-area-col-impact {
    width: 11%;
}

.home-frota-insights .impact-area-col-total {
    width: 12%;
}

.home-frota-insights .impact-area-header-name {
    text-align: left !important;
}

.home-frota-insights .impact-area-name-cell {
    text-align: left !important;
}

.home-frota-insights .impact-area-name {
    font-size: 12px;
    font-weight: 600;

    color: #334155;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.home-frota-insights .impact-area-value-cell {
    font-size: 13px;
    font-weight: 600;

    color: #334155;
}

.home-frota-insights .impact-area-total {
    font-size: 13px;
    font-weight: 700;

    color: #0f172a;

    background: #f8fafc;
}

.home-frota-insights .impact-area-empty {
    min-height: 180px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #94a3b8;

    text-align: center;
}

/* =========================================================
   CHECKLIST NC COM BLOQUEIO
   COMPONENTE ISOLADO
   ========================================================= */

.checklist-bloqueios-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--mud-palette-surface);
}

.checklist-bloqueios-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 12px;
}

.checklist-bloqueios-header > div:first-child {
    min-width: 0;
}

.checklist-bloqueios-header .chart-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.checklist-bloqueios-header .chart-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--mud-palette-text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.checklist-total-chip {
    flex-shrink: 0;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    font-size: 11px !important;
}

.checklist-bloqueios-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.checklist-bloqueios-table {
    width: 100%;
    min-width: 650px;
}

.checklist-bloqueios-table .mud-table-head .mud-table-cell {
    height: 38px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.checklist-bloqueios-table .mud-table-body .mud-table-cell {
    height: 60px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    vertical-align: middle;
    font-size: 13px;
}

.checklist-bloqueios-table .mud-table-body .mud-table-row {
    transition: background-color .15s ease;
}

.checklist-bloqueios-table .mud-table-body .mud-table-row:hover {
    background: var(--mud-palette-action-default-hover);
}

.checklist-expand-column {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    padding-left: 4px !important;
    padding-right: 8px !important;
    text-align: center;
}

.checklist-expand-button {
    width: 30px;
    height: 30px;
    opacity: .65;
    transition: opacity .15s ease, background-color .15s ease;
}

.checklist-expand-button:hover {
    opacity: 1;
}

.checklist-equipamento {
    display: flex;
    align-items: center;
    min-width: 90px;
}

.checklist-equipamento-nome {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.checklist-datahora {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 105px;
    line-height: 1.2;
    white-space: nowrap;
}

.checklist-datahora .mud-typography-body2 {
    font-size: 12px;
}

.checklist-datahora .mud-typography-caption {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.checklist-operador {
    display: block;
    max-width: 190px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checklist-tipo-chip {
    height: 27px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    white-space: nowrap;
}

.checklist-nc-chip {
    width: 26px;
    min-width: 26px;
    height: 26px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    justify-content: center;
}

.checklist-impacto {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.checklist-bloqueio-detalhes {
    width: 100%;
    padding: 16px 20px 18px;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
}

.checklist-detalhes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.checklist-detalhes-header > div:first-child {
    min-width: 0;
}

.checklist-detalhes-header .mud-typography-subtitle2 {
    font-size: 13px;
    font-weight: 600;
}

.checklist-detalhes-header .mud-typography-caption {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
    color: var(--mud-palette-text-secondary);
    font-size: 11px;
}

.checklist-detalhe-nc-chip {
    flex-shrink: 0;
    height: 26px !important;
    padding: 0 10px !important;
    border-radius: 13px !important;
    font-size: 11px !important;
}

.checklist-perguntas {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-pergunta {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    background: var(--mud-palette-surface);
}

.checklist-pergunta-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.checklist-pergunta-header .mud-icon-root {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 18px;
}

.checklist-pergunta-conteudo {
    flex: 1;
    min-width: 0;
}

.checklist-pergunta-texto {
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.checklist-pergunta-data {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--mud-palette-text-secondary);
}

.checklist-respostas {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.checklist-resposta-item {
    min-width: 75px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.checklist-resposta-label {
    font-size: 10px !important;
    line-height: 1 !important;
    color: var(--mud-palette-text-secondary) !important;
}

.checklist-resposta-item .mud-chip {
    height: 25px !important;
    min-width: 46px;
    padding: 0 9px !important;
    border-radius: 13px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    justify-content: center;
}

.checklist-chip-resposta,
.checklist-chip-esperada,
.checklist-chip-bloqueia {
    font-weight: 500 !important;
}

.checklist-sem-detalhes {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: var(--mud-palette-text-secondary);
}

/* =========================================================
   CHECKLIST RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {
    .checklist-bloqueios-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .checklist-bloqueios-table .mud-table-head .mud-table-cell,
    .checklist-bloqueios-table .mud-table-body .mud-table-cell {
        padding-left: 10px;
        padding-right: 10px;
    }

    .checklist-operador {
        max-width: 150px;
    }

    .checklist-bloqueio-detalhes {
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .checklist-bloqueios-header {
        align-items: flex-start;
        gap: 10px;
    }

    .checklist-bloqueios-header .chart-title {
        font-size: 14px;
    }

    .checklist-bloqueios-header .chart-subtitle {
        font-size: 11px;
    }

    .checklist-detalhes-header {
        align-items: flex-start;
    }

    .checklist-pergunta {
        padding: 11px 12px;
    }

    .checklist-pergunta-texto {
        font-size: 12px;
    }

    .checklist-pergunta-data {
        font-size: 10px;
    }

    .checklist-respostas {
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .checklist-bloqueios-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .checklist-total-chip {
        align-self: flex-start;
    }

    .checklist-detalhes-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .checklist-detalhes-header .mud-typography-caption {
        align-items: flex-start;
    }

    .checklist-respostas {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .checklist-resposta-item {
        min-width: 0;
    }

    .checklist-resposta-item .mud-chip {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .checklist-respostas {
        grid-template-columns: 1fr;
    }

    .checklist-resposta-item .mud-chip {
        width: auto;
    }
}

/* =========================================================
   SCROLL HORIZONTAL GENÉRICO
   ========================================================= */

.home-frota-insights .chart-scroll-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 4px;

    scrollbar-width: thin;
}

.home-frota-insights .chart-scroll-inner {
    min-width: 640px;
}


/* =========================================================
   ESTADO VAZIO
   ========================================================= */

.home-frota-insights .insights-empty {
    margin-top: 12px;
}


/* =========================================================
   DESKTOP GRANDE
   ========================================================= */

@media (min-width: 1401px) {

    .home-frota-insights .kpi-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));
    }

    .home-frota-insights .chart-card.block {
        min-height: 315px;
    }

    .home-frota-insights .battery-hour-chart {
        min-height: 250px;
    }
}


/* =========================================================
   NOTEBOOK
   ========================================================= */

@media (min-width: 1101px) and (max-width: 1400px) {

    .home-frota-insights .kpi-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        gap: 8px;
    }

    .home-frota-insights .kpi-dashboard {
        padding: 10px;

        grid-template-columns:
            36px minmax(0, 1fr);

        gap: 8px;
    }

    .home-frota-insights .kpi-dashboard-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 18px;
    }

    .home-frota-insights .kpi-dashboard .kpi-value {
        font-size: 24px;
    }

    .home-frota-insights .kpi-dashboard .kpi-title {
        font-size: 10px;
    }

    .home-frota-insights .chart-card.block {
        min-height: 305px;
    }

    .home-frota-insights .online-timeline-track {
        min-height: 138px;
        height: 138px;
    }

    .home-frota-insights .battery-chart-card {
        min-height: 335px;
    }

    .home-frota-insights .battery-hour-chart {
        min-height: 225px;
    }
}


/* =========================================================
   TABLET / DESKTOP PEQUENO
   ========================================================= */

@media (max-width: 1100px) {

    .home-frota-insights .kpi-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .home-frota-insights .charts-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-frota-insights .impact-operator-table,
    .home-frota-insights .impact-heatmap-table {
        min-width: 0;
        width: 100%;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .home-frota-insights .hero {
        padding: 12px;
    }

    .home-frota-insights .hero-info-title {
        font-size: 18px;
    }

    .home-frota-insights .kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .home-frota-insights .charts-operacional,
    .home-frota-insights .charts-row,
    .home-frota-insights .charts-impactos,
    .home-frota-insights .charts-operadores {
        grid-template-columns: 1fr;
    }

    .home-frota-insights .kpi-dashboard {
        min-height: 116px;
    }

    .home-frota-insights .battery-chart-card {
        min-height: 325px;
    }

    .home-frota-insights .battery-hour-chart {
        min-height: 220px;
    }
}


/* =========================================================
   MOBILE TABLET
   ========================================================= */

@media (max-width: 768px) {

    .home-frota-insights .chart-vertical-wrap {
        grid-template-columns:
            repeat(4, minmax(52px, 1fr));

        gap: 7px;
    }

    .home-frota-insights .chart-vertical-item {
        padding: 6px 4px;
    }

    .home-frota-insights .chart-vertical-value {
        font-size: 11px;
    }

    .home-frota-insights .chart-vertical-label {
        font-size: 8px;
    }

    .home-frota-insights .online-timeline-track {
        min-height: 135px;
        height: 135px;
    }

    .home-frota-insights .online-timeline-bar {
        left: 10px;
        right: 10px;

        height: 36px;
    }

    .home-frota-insights .online-timeline-axis {
        left: 10px;
        right: 10px;

        bottom: 6px;
    }

    .home-frota-insights .impact-area-table {
        min-width: 600px;
    }

    .home-frota-insights .impact-area-col-name {
        width: 180px;
    }

    .home-frota-insights .impact-area-col-impact {
        width: 80px;
    }

    .home-frota-insights .impact-area-col-total {
        width: 80px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .home-frota-insights .kpi-grid {
        grid-template-columns: 1fr;
    }

    .home-frota-insights .hero-info-title {
        font-size: 17px;
    }

    .home-frota-insights .hero-info-line,
    .home-frota-insights .hero-info-filter {
        font-size: 11px;
    }

    .home-frota-insights .kpi-dashboard {
        min-height: 108px;

        grid-template-columns:
            40px minmax(0, 1fr);

        gap: 9px;

        padding: 10px;
    }

    .home-frota-insights .kpi-dashboard-icon {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }

    .home-frota-insights .kpi-dashboard .kpi-value {
        font-size: 27px;
    }

    .home-frota-insights .chart-card.block {
        min-height: 250px;

        padding: 9px 10px;
    }

    .home-frota-insights .chart-vertical-wrap {
        grid-template-columns:
            repeat(4, minmax(52px, 1fr));

        gap: 6px;
    }

    .home-frota-insights .chart-vertical-item {
        min-width: 52px;
        padding: 5px 4px;
    }

    .home-frota-insights .horimetro-chart {
        min-height: 190px;
        gap: 6px;
    }

    .home-frota-insights .horimetro-item {
        padding: 5px 4px;
    }

    .home-frota-insights .horimetro-item-value {
        font-size: 11px;
    }

    .home-frota-insights .horimetro-label {
        font-size: 8px;
    }

    .home-frota-insights .online-timeline-track {
        min-height: 125px;
        height: 125px;
    }

    .home-frota-insights .online-timeline-bar {
        height: 32px;
    }

    .home-frota-insights .online-timeline-axis span {
        font-size: 6px;
    }

    .home-frota-insights .online-timeline-legend {
        gap: 7px;
        font-size: 8px;
    }

    .home-frota-insights .battery-chart-card {
        min-height: 300px;
    }

    .home-frota-insights .battery-hour-chart {
        min-height: 200px;
    }
}


/* =========================================================
   MOBILE PEQUENO
   ========================================================= */

@media (max-width: 480px) {

    .home-frota-insights .chart-vertical-wrap {
        grid-template-columns:
            repeat(4, 52px);

        gap: 6px;

        justify-content: flex-start;
    }

    .home-frota-insights .chart-vertical-item {
        min-width: 52px;
        max-width: 52px;
    }

    .home-frota-insights .chart-vertical-value {
        font-size: 9px;
    }

    .home-frota-insights .chart-vertical-value span {
        font-size: 7px;
    }

    .home-frota-insights .horimetro-chart {
        grid-template-columns:
            repeat(4, minmax(48px, 1fr));

        gap: 5px;

        min-height: 180px;
    }

    .home-frota-insights .horimetro-item-code {
        width: 20px;
        height: 20px;

        flex-basis: 20px;

        font-size: 9px;
    }

    .home-frota-insights .horimetro-item-value {
        font-size: 10px;
    }

    .home-frota-insights .horimetro-label {
        font-size: 7px;
    }

    .home-frota-insights .impact-operator-table,
    .home-frota-insights .impact-heatmap-table {
        min-width: 0;
        width: 100%;
    }

    .home-frota-insights .online-timeline-track {
        min-height: 115px;
        height: 115px;
    }

    .home-frota-insights .online-timeline-bar {
        height: 29px;
    }

    .home-frota-insights .online-timeline-axis {
        height: 17px;
    }

    .home-frota-insights .battery-chart-card {
        min-height: 250px;
    }

    .home-frota-insights .battery-hour-chart {
        min-height: 185px;
    }

}
