/* _content/PortalVupZ/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-7wfg683sbu] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-7wfg683sbu] {
    flex: 1;
}

.sidebar[b-7wfg683sbu] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-7wfg683sbu] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-7wfg683sbu]  a, .top-row[b-7wfg683sbu]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-7wfg683sbu]  a:hover, .top-row[b-7wfg683sbu]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-7wfg683sbu]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-7wfg683sbu] {
        justify-content: space-between;
    }

    .top-row[b-7wfg683sbu]  a, .top-row[b-7wfg683sbu]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-7wfg683sbu] {
        flex-direction: row;
    }

    .sidebar[b-7wfg683sbu] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-7wfg683sbu] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-7wfg683sbu]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-7wfg683sbu], article[b-7wfg683sbu] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-7wfg683sbu] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-7wfg683sbu] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/PortalVupZ/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-fko9jh8mtu] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-fko9jh8mtu] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-fko9jh8mtu] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-fko9jh8mtu] {
    font-size: 1.1rem;
}

.bi[b-fko9jh8mtu] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-fko9jh8mtu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-fko9jh8mtu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-fko9jh8mtu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-fko9jh8mtu] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-fko9jh8mtu] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-fko9jh8mtu] {
        padding-bottom: 1rem;
    }

    .nav-item[b-fko9jh8mtu]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-fko9jh8mtu]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-fko9jh8mtu]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-fko9jh8mtu] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-fko9jh8mtu] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-fko9jh8mtu] {
        display: none;
    }

    .nav-scrollable[b-fko9jh8mtu] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* _content/PortalVupZ/Components/Shared/DashboardLayout.razor.rz.scp.css */
/* Shared/DashboardLayout.razor.css */

/* --- Container --- */
.grafana-panel[b-m0wujw9f1p] {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    background-color: #f4f5f5;
    padding: 10px;
    box-sizing: border-box;
    color: #202226;
    width: 100%;
    min-height: 100vh;
}

/* --- Header --- */
.panel-header[b-m0wujw9f1p] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background: #fff;
    padding: 8px 12px;
    border: 1px solid #e3e3e3;
    font-size: 0.8rem;
}

.header-left[b-m0wujw9f1p] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-icon[b-m0wujw9f1p] {
    font-size: 1.2rem;
    cursor: pointer;
}

.crumb[b-m0wujw9f1p] {
    color: #767676;
}

.control-wrapper[b-m0wujw9f1p] {
    display: flex;
    gap: 10px;
    align-items: center;
}

.control-box[b-m0wujw9f1p] {
    background: #f7f8fa;
    border: 1px solid #c7c7c7;
    padding: 5px 10px;
    border-radius: 2px;
    font-weight: 500;
    color: #5794f2;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-last[b-m0wujw9f1p] {
    background: #fff;
    color: #333;
}

.profile-icon[b-m0wujw9f1p] {
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
    color: #555;
}

/* --- GRID SYSTEM (24 Colunas) --- */
.dashboard-grid[b-m0wujw9f1p] {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 10px;
    width: 100%;
}

/* --- CARDS BASE --- */
.g-card[b-m0wujw9f1p] {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 2px;
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.card-title[b-m0wujw9f1p] {
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 5px;
    flex-shrink: 0;
}

/* Cores e Textos */
.bg-green[b-m0wujw9f1p] {
    background-color: #73bf69 !important;
    color: white !important;
}

.bg-blue[b-m0wujw9f1p] {
    background-color: #5794f2 !important;
    color: white !important;
}

.bg-dark[b-m0wujw9f1p] {
    background-color: #212124 !important;
    color: white !important;
}

.bg-dark-green[b-m0wujw9f1p] {
    background-color: #43a047 !important;
    color: white !important;
}

.text-white[b-m0wujw9f1p] {
    color: white !important;
}

.text-white .card-title[b-m0wujw9f1p] {
    color: rgba(255, 255, 255, 0.9);
}

.txt-orange[b-m0wujw9f1p] {
    color: #ff9830;
}

.txt-blue[b-m0wujw9f1p] {
    color: #5794f2;
}

.txt-green[b-m0wujw9f1p] {
    color: #73bf69;
}

/* KPIs */
.kpi-value[b-m0wujw9f1p] {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1;
    margin-top: auto;
    margin-bottom: auto;
}

.kpi-unit[b-m0wujw9f1p] {
    font-size: 1rem;
    opacity: 0.8;
    margin-left: 5px;
}

/* Assets */
.chart-bg-overlay[b-m0wujw9f1p] {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.car-container[b-m0wujw9f1p] {
    padding: 5px !important;
    background: #fff;
    align-items: center;
    justify-content: center;
}

.car-container img[b-m0wujw9f1p] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 130px;
}

.chart-container[b-m0wujw9f1p] {
    flex: 1;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 60px;
    margin-bottom: 5px;
}

.chart-labels[b-m0wujw9f1p] {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #999;
    margin-top: -5px;
}

/* Tables */
.g-table[b-m0wujw9f1p] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    margin-top: 5px;
}

.g-table th[b-m0wujw9f1p] {
    text-align: left;
    color: #767676;
    border-bottom: 2px solid #e3e3e3;
    padding: 6px 4px;
}

.g-table td[b-m0wujw9f1p] {
    border-bottom: 1px solid #f0f0f0;
    padding: 6px 4px;
    color: #333;
}

.row-yellow[b-m0wujw9f1p] {
    background-color: rgba(255, 152, 48, 0.1);
    border-left: 3px solid #ff9830;
}

.row-red[b-m0wujw9f1p] {
    background-color: rgba(242, 73, 92, 0.1);
    border-left: 3px solid #f2495c;
}

.vin-scroller[b-m0wujw9f1p],
.table-scroll[b-m0wujw9f1p] {
    overflow-x: auto;
    width: 100%;
}

/* Sidebar Map */
.map-placeholder[b-m0wujw9f1p] {
    width: 100%;
    height: 100%;
    background: #e0e0e0 url('https://upload.wikimedia.org/wikipedia/commons/e/ec/OpenStreetMap_Warsaw.png') center/cover no-repeat;
}

/* --- DEFINIÇÃO DE ÁREAS DO GRID (Final) --- */

/* LINHA 1: Cabeçalho (24 Colunas totais) */
/* Carro (3) + 4 KPIs Grandes (3 cada = 12) + 4 KPIs Pequenos (2 cada = 8) = 23. Sobra 1. */
/* Ajuste para 24 exatos: */
.col-car[b-m0wujw9f1p] {
    grid-column: span 3;
}

.col-kpi[b-m0wujw9f1p] {
    grid-column: span 3;
}

/* Speed, Dist, RPM, FuelRate */
.col-kpi-small[b-m0wujw9f1p] {
    grid-column: span 2;
}

/* Fuel%, Load%, Coolant, Intake (2.25? Não, vamos usar 2 e deixar um respiro) */
/* Para ficar perfeito: Carro(4) + 4KPIs(3) + 4KPIs(2) = 4 + 12 + 8 = 24. EXATO. */
.col-car[b-m0wujw9f1p] {
    grid-column: span 4;
}

/* LINHA 2: Chart + GPS Stats + Mapa */
/* Chart Speed (Esquerda): 12 Colunas */
.col-chart-speed[b-m0wujw9f1p] {
    grid-column: 1 / span 12;
    grid-row: span 1;
}

/* GPS Stats (Meio): 3 itens. Ocupando colunas 13, 14, 15? Não, vamos ocupar o espaço até o mapa. */
/* Espaço até o mapa: colunas 13 a 18 (6 cols). Temos 3 cards. 2 cols cada. */
.col-gps-stat[b-m0wujw9f1p] {
    grid-column: span 2;
    grid-row: span 1;
}

/* Mapa (Direita): Colunas 19 a 24 (6 cols). Ocupa Linhas 2 e 3. */
.col-map[b-m0wujw9f1p] {
    grid-column: 19 / span 6;
    grid-row: span 2;
}

/* LINHA 3: Tabela DTC (Esquerda/Meio) */
/* Ocupa da coluna 1 até a 18 (Antes do mapa) */
.col-dtc-table[b-m0wujw9f1p] {
    grid-column: 1 / span 18;
    grid-row: span 1;
}

/* LINHA 4: Mensagem (Largura Total) */
/* Como o mapa acabou na linha 3, este card pode ocupar tudo (24 cols) */
.col-chart-msg[b-m0wujw9f1p] {
    grid-column: 1 / span 24;
    grid-row: span 1;
}

/* FOOTER */
.col-vin[b-m0wujw9f1p] {
    grid-column: 1 / -1;
    min-height: 80px;
    margin-top: 10px;
}


/* RESPONSIVIDADE */
@media (max-width: 1400px) {
    .dashboard-grid[b-m0wujw9f1p] {
        grid-template-columns: repeat(12, 1fr);
    }

    .col-car[b-m0wujw9f1p] {
        grid-column: span 4;
    }

    .col-kpi[b-m0wujw9f1p] {
        grid-column: span 4;
    }

    .col-kpi-small[b-m0wujw9f1p] {
        grid-column: span 3;
    }

    .col-chart-speed[b-m0wujw9f1p] {
        grid-column: span 12;
    }

    .col-gps-stat[b-m0wujw9f1p] {
        grid-column: span 4;
    }

    .col-dtc-table[b-m0wujw9f1p] {
        grid-column: span 12;
    }

    .col-map[b-m0wujw9f1p] {
        grid-column: span 12;
        grid-row: auto;
        height: 300px;
        order: 99;
    }

    .col-chart-msg[b-m0wujw9f1p] {
        grid-column: span 12;
    }
}
