.detalhe-page {
    background: #eef2f7;
    padding: 18px;
    min-height: 100vh;
}

.dash-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    background: #fff;
}

.metric-card {
    border-radius: 14px;
    color: #fff;
    padding: 22px;
    min-height: 118px;
    box-shadow: 0 5px 14px rgba(0,0,0,.18);
}

.metric-title {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: .95;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 8px;
    line-height: 1.1;
}

.metric-sub {
    font-size: 1rem;
    margin-top: 6px;
    opacity: .85;
}

.bg-green {
    background: linear-gradient(135deg, #24b84d, #15963b);
}

.bg-blue {
    background: linear-gradient(135deg, #2388ff, #0057c8);
}

.bg-yellow {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.bg-purple {
    background: linear-gradient(135deg, #8a2be2, #5b19c9);
}

.bg-red {
    background: linear-gradient(135deg, #ff5a3d, #dc3545);
}

.bg-teal {
    background: linear-gradient(135deg, #20c997, #008f7a);
}

.header-inversor {
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.avatar-inversor {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002b6c, #005bea);
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-label {
    font-size: .75rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 3px;
}

.info-value-obra {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0051cb;
}

.info-value {
    font-size: .98rem;
    font-weight: 700;
    color: #001f4d;
}

.section-title {
    font-weight: 800;
    color: #002b6c;
    margin-bottom: 16px;
}

.info-line {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f5;
    padding: 10px 0;
    gap: 12px;
}

.chart-placeholder {
    height: 330px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 700;
    text-align: center;
}

.toolbar-card {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-status {
    font-size: .85rem;
    padding: 8px 12px;
    border-radius: 999px;
}




/* Diagnostico Tecnico de Inversor */

.diag-card {
    border-radius: 14px;
    padding: 16px;
    min-height: 145px;
    color: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .16);
}

.diag-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
}

.diag-title {
    font-size: .82rem;
    font-weight: 700;
    opacity: .9;
}

.diag-value {
    font-size: 1.65rem;
    font-weight: 850;
    line-height: 1.1;
    margin-top: 6px;
}

.diag-unit {
    font-size: .78rem;
    opacity: .85;
    margin-top: 4px;
}

.diag-blue {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
}

.diag-green {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
}

.diag-yellow {
    background: linear-gradient(135deg, #F9A825, #F57F17);
}

.diag-red {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
}

.diag-purple {
    background: linear-gradient(135deg, #7B1FA2, #4A148C);
}

.diag-teal {
    background: linear-gradient(135deg, #0097A7, #006064);
}

.string-bar-wrap {
    width: 100%;
    height: 10px;
    background: #e9eef5;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
}

.string-bar {
    height: 100%;
    background: linear-gradient(90deg, #1976D2, #0D47A1);
    border-radius: 999px;
}

.diagnostico-inteligente {
    background: #f8fafc;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    padding: 18px;
}

    .diagnostico-inteligente h6 {
        font-weight: 800;
        color: #003b84;
        margin-bottom: 14px;
    }

.analise-lista {
    display: grid;
    gap: 8px;
}

.analise-item {
    background: #fff;
    border-left: 4px solid #1976D2;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #263238;
}

.recomendacao-box {
    background: #fff8e1;
    border-left: 4px solid #F9A825;
    padding: 12px 14px;
    border-radius: 8px;
    color: #4a3b00;
}


.health-card {
    position: relative;
}

.health-gauge {
    width: 96px;
    height: 96px;
    margin-top: 10px;
    border-radius: 50%;
    background: conic-gradient( rgba(255,255,255,.95) calc(var(--score) * 1%), rgba(255,255,255,.22) 0 );
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-gauge-inner {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.health-score {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.health-status {
    font-size: .72rem;
    font-weight: 700;
    margin-top: 4px;
    text-transform: uppercase;
    opacity: .9;
}