/* Dashboard 360 · Productos y rentabilidad · Corrección visual v1.6.1 */

.product-filter-panel {
    padding: 18px;
    margin-bottom: 20px;
}

.product-filter-panel .filters {
    margin: 0;
}

.product-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-kpis .kpi {
    min-width: 0;
    min-height: 150px;
}

.product-kpis .kpi strong {
    font-size: clamp(25px, 2.15vw, 34px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: normal;
    word-break: normal;
}

.product-kpis .kpi small {
    display: block;
    margin-top: 10px;
    color: #6F747C;
    font-size: 12px;
    line-height: 1.4;
}

.product-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.product-form-grid-prices {
    align-items: start;
}

.compact-panel h2 {
    margin-top: 0;
}

.stack-form label {
    margin-bottom: 11px;
}

.form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.check-line {
    display: flex;
    gap: 9px;
    align-items: center;
    font-weight: 700;
}

.check-line input {
    width: auto;
    margin: 0;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0 0 6px;
}

.product-table-wrap {
    max-height: 720px;
}

.product-history-table {
    min-width: 1180px;
}

.product-analysis-table {
    min-width: 1450px;
}

.product-history-table td,
.product-analysis-table td {
    vertical-align: top;
}

.product-history-table small,
.product-analysis-table small {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #6F747C;
}

.product-history-table details,
.product-analysis-table details {
    margin-top: 5px;
    text-align: left;
}

.product-history-table summary,
.product-analysis-table summary {
    cursor: pointer;
    color: #032E7C;
    font-weight: 800;
}

.product-history-panel {
    border-top: 4px solid #032E7C;
}

.product-analysis-panel {
    border-top: 4px solid #B88700;
}

.product-actions {
    white-space: nowrap;
}

.product-actions a {
    display: block;
    margin-bottom: 6px;
    color: #032E7C;
    font-weight: 800;
}

.estado-incompleto {
    background: rgba(107,114,128,.12);
    color: #4B5563;
}

.estado-rotacion {
    background: rgba(184,135,0,.15);
    color: #775800;
}

.estado-mercado {
    background: rgba(3,46,124,.11);
    color: #032E7C;
}

@media (max-width: 1180px) {
    .product-kpis,
    .product-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .product-kpis,
    .product-form-grid,
    .form-two {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
    }

    .product-kpis .kpi strong {
        font-size: 28px;
    }
}
