/* =========================================================
   NEXENG | Pipe Jacket Calculator
   Archivo: /apps/pipe_jacket_calculator/assets/pipe-jacket-calculator.css
   Version: 1.0.0

   Mantener este archivo mínimo.
   La estética principal vive en:
   /assets/css/nexeng-app-base.css
   ========================================================= */

/* =========================================================
   Layout específico de esta app
   ========================================================= */

.oa-span-2,
.pj-span-2 {
    grid-column: 1 / -1;
}

.pj-custom-sheet {
    grid-column: 1 / -1;
}

/* =========================================================
   Fórmulas / método
   ========================================================= */

.pj-formula-box {
    display: grid;
    gap: 6px;
    padding: 14px 15px;
    border: 1px solid rgba(15, 87, 130, 0.12);
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.86);
}

.pj-formula-box + .pj-formula-box {
    margin-top: 12px;
}

.pj-formula-box strong {
    color: var(--nx-text);
    font-size: 0.86rem;
    font-weight: 950;
}

.pj-formula-box span {
    color: var(--nx-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* =========================================================
   Ajustes de resultados
   ========================================================= */

#heroPrimaryResult,
#previewPrimaryResult,
#summaryLastResult,
#summaryKeyData,
#resultAreaSheets,
#resultCutSheets,
#resultAreaTotal,
#resultAreaPerPiece,
#resultSheetArea,
#resultPerimeter,
#resultPieceSize,
#resultPiecesPerSheet {
    overflow-wrap: anywhere;
}

#resultPieceSize,
#resultSheetSize,
#resultOrientation {
    line-height: 1.4;
}

/* =========================================================
   Avisos técnicos
   ========================================================= */

#engineeringWarning {
    white-space: normal;
}

#engineeringWarning ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

#engineeringWarning li + li {
    margin-top: 6px;
}

/* =========================================================
   Historial
   ========================================================= */

.pj-calc-warning {
    color: var(--nx-warning);
}

.pj-calc-ok {
    color: var(--nx-success);
}

.pj-calc-danger {
    color: var(--nx-danger);
}

/* =========================================================
   Noscript
   ========================================================= */

.nx-noscript {
    width: min(100% - 32px, 720px);
    margin: 24px auto;
    padding: 16px 18px;
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 18px;
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
    font-weight: 800;
    text-align: center;
}

/* =========================================================
   Responsive específico
   ========================================================= */

@media (max-width: 820px) {
    .pj-formula-box {
        padding: 13px;
    }
}

@media (max-width: 560px) {
    .pj-formula-box span {
        font-size: 0.8rem;
    }
}