/* ESG — paridad Odoo tablero */
.esg-odo-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 1.5rem;
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.esg-odo-flow__step h3 {
    margin: 0.35rem 0 0.5rem;
    font-size: 1rem;
    color: #0f766e;
}

.esg-odo-flow__step p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--sfe-text-muted, #6b7280);
}

.esg-odo-flow__icon {
    font-size: 1.75rem;
}

.esg-odo-flow__arrow {
    align-self: center;
    color: #94a3b8;
    font-size: 1.25rem;
}

.esg-odo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.esg-odo-card {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    background: var(--sfe-surface, #fff);
    padding: 0.85rem 1rem 1rem;
    min-height: 220px;
}

.esg-odo-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.esg-odo-card__head h3,
.esg-odo-card__head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.esg-odo-bars {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-around;
    height: 160px;
    padding-top: 0.5rem;
}

.esg-odo-bars__col {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.esg-odo-bars__track {
    flex: 1;
    width: 100%;
    max-width: 56px;
    display: flex;
    align-items: flex-end;
    background: #f1f5f9;
    border-radius: 6px 6px 0 0;
}

.esg-odo-bars__fill {
    width: 100%;
    background: #93c5fd;
    border-radius: 6px 6px 0 0;
    min-height: 8px;
}

.esg-odo-bars__col span {
    font-size: 0.75rem;
    margin-top: 0.35rem;
}

.esg-odo-bars__col small {
    color: var(--sfe-text-muted, #6b7280);
    font-size: 0.7rem;
}

.esg-odo-analytics__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--sfe-text-muted, #6b7280);
    margin-bottom: 0.5rem;
    text-align: right;
}

.esg-odo-area {
    width: 100%;
    height: 120px;
    display: block;
    background: linear-gradient(180deg, #eff6ff, #fff);
    border-radius: 6px;
}

.esg-odo-init {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.esg-odo-init div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.75rem;
    color: var(--sfe-text-muted, #6b7280);
}

.esg-odo-init strong {
    font-size: 1.25rem;
    color: var(--sfe-text, #111827);
}

.esg-odo-init__icon {
    font-size: 1.1rem;
}

.esg-odo-gender {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.esg-odo-pie {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
}

.esg-odo-gender__meta {
    font-size: 0.875rem;
}

.esg-odo-legend {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.esg-odo-legend li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
}

.esg-odo-legend i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.esg-odo-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.esg-odo-kpi {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 1rem;
}

.esg-odo-kpi strong {
    display: block;
    font-size: 1.5rem;
}

.esg-odo-kpi span {
    font-size: 0.8125rem;
    color: var(--sfe-text-muted, #6b7280);
}

@media (max-width: 900px) {
    .esg-odo-flow {
        grid-template-columns: 1fr;
    }

    .esg-odo-flow__arrow {
        display: none;
    }

    .esg-odo-init {
        grid-template-columns: repeat(2, 1fr);
    }
}
