/* =====================================================
   ESTILOS PARA ABA CÁLCULOS - styles-calculos.css
   ===================================================== */

/* Campo destacado (DNP/Altura na aba Prescrição) */
.field-row.highlight-field {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(74, 158, 255, 0.05));
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 6px;
    padding: 8px 10px;
    margin: 4px 0;
}

.field-row.highlight-field label {
    color: #4a9eff;
    font-weight: 500;
}

/* Linhas de cálculo */
.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin: 2px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    font-size: 12px;
}

.calc-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.calc-row.highlight {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(74, 158, 255, 0.05));
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.calc-label {
    color: #888;
    flex: 1;
}

.calc-value {
    color: #fff;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    min-width: 60px;
    text-align: right;
}

.calc-value.positive {
    color: #4caf50;
}

.calc-value.negative {
    color: #ff5722;
}

.calc-unit {
    color: #666;
    font-size: 10px;
    min-width: 25px;
    text-align: right;
    margin-left: 4px;
}

/* Título de seção dentro dos cálculos */
.calc-section-title {
    color: #4a9eff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 6px 0;
    padding: 4px 0;
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);
}

/* Grid de resumo */
.calc-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.calc-summary-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.calc-summary-label {
    display: block;
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.calc-summary-value {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* Status do bloco */
.block-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.block-status-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.block-status-item.od {
    border-color: rgba(74, 158, 255, 0.3);
}

.block-status-item.oe {
    border-color: rgba(156, 39, 176, 0.3);
}

.block-status-header {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 10px;
}

.block-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.block-status-indicator.warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
}

.block-status-indicator.error {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.status-icon {
    font-size: 18px;
    color: #4caf50;
}

.block-status-indicator.warning .status-icon {
    color: #ff9800;
}

.block-status-indicator.error .status-icon {
    color: #f44336;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #4caf50;
}

.block-status-indicator.warning .status-text {
    color: #ff9800;
}

.block-status-indicator.error .status-text {
    color: #f44336;
}

.block-status-detail {
    font-size: 11px;
    color: #888;
}

.block-status-detail strong {
    color: #fff;
}

/* Botão de exportar cálculos */
#btn-export-calcs {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsivo para telas pequenas */
@media (max-width: 768px) {
    .calc-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .block-status-grid {
        grid-template-columns: 1fr;
    }
}
