/* =========================================================
   SAPALI FC NEW PRICE - FINAL BALANCED TABLE
   2026-09-04
   UI ONLY - PRICING LOGIC LOCKED
   ========================================================= */

#calculation .fc-price-table-wrap{
    width:100%!important;
    overflow-x:auto!important;
}

#calculation .fc-price-table{
    width:100%!important;
    min-width:1250px!important;
    table-layout:fixed!important;
}

#calculation .fc-price-table colgroup{
    display:none!important;
}

#calculation .fc-price-table th,
#calculation .fc-price-table td{
    box-sizing:border-box!important;
    padding:9px 6px!important;
    vertical-align:middle!important;
    line-height:1.12!important;
}

#calculation .fc-price-table th{
    white-space:normal!important;
}

#calculation .fc-price-table td{
    white-space:nowrap!important;
}

/* 1 - SELECT */
#calculation .fc-price-table th:nth-child(1),
#calculation .fc-price-table td:nth-child(1){
    width:2.5%!important;
    text-align:center!important;
    padding-left:3px!important;
    padding-right:3px!important;
}

/* 2 - MODEL */
#calculation .fc-price-table th:nth-child(2),
#calculation .fc-price-table td:nth-child(2){
    width:9%!important;
    white-space:nowrap!important;
}

/* 3 - CUSTOMER */
#calculation .fc-price-table th:nth-child(3),
#calculation .fc-price-table td:nth-child(3){
    width:7%!important;
    white-space:nowrap!important;
}

/* 4 - CURRENT PRICE */
#calculation .fc-price-table th:nth-child(4),
#calculation .fc-price-table td:nth-child(4){
    width:8%!important;
    text-align:center!important;
}

/* 5 - CURRENT LME */
#calculation .fc-price-table th:nth-child(5),
#calculation .fc-price-table td:nth-child(5){
    width:8%!important;
    text-align:center!important;
}

/* 6 - CURRENT PVC */
#calculation .fc-price-table th:nth-child(6),
#calculation .fc-price-table td:nth-child(6){
    width:7%!important;
    text-align:center!important;
}

/* 7 - STANDARD FC */
#calculation .fc-price-table th:nth-child(7),
#calculation .fc-price-table td:nth-child(7){
    width:8%!important;
    text-align:center!important;
}

/* 8 - COMMERCIAL ADJ */
#calculation .fc-price-table th:nth-child(8),
#calculation .fc-price-table td:nth-child(8){
    width:11%!important;
    text-align:center!important;
}

/* 9 - FINAL FC */
#calculation .fc-price-table th:nth-child(9),
#calculation .fc-price-table td:nth-child(9){
    width:8%!important;
    text-align:center!important;
}

/* 10 - DIFFERENCE */
#calculation .fc-price-table th:nth-child(10),
#calculation .fc-price-table td:nth-child(10){
    width:8%!important;
    text-align:center!important;
    white-space:nowrap!important;
}

/* 11 - CHANGE */
#calculation .fc-price-table th:nth-child(11),
#calculation .fc-price-table td:nth-child(11){
    width:6%!important;
    text-align:center!important;
    white-space:nowrap!important;
}

/* 12 - LME IMPACT */
#calculation .fc-price-table th:nth-child(12),
#calculation .fc-price-table td:nth-child(12){
    width:6%!important;
    text-align:center!important;
    white-space:nowrap!important;
}

/* 13 - PVC IMPACT */
#calculation .fc-price-table th:nth-child(13),
#calculation .fc-price-table td:nth-child(13){
    width:6%!important;
    text-align:center!important;
    white-space:nowrap!important;
}

/* 14 - STATUS */
#calculation .fc-price-table th:nth-child(14),
#calculation .fc-price-table td:nth-child(14){
    width:5.5%!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
}

/* =========================================================
   COMMERCIAL ADJ
   ========================================================= */

#calculation .fc-price-table .fc-commercial-column,
#calculation .fc-price-table .fc-commercial-cell{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
}

#calculation .fc-price-table .fc-commercial-cell{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
}

#calculation .fc-price-table .fc-commercial-edit{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    width:100%!important;
    white-space:nowrap!important;
}

#calculation .fc-price-table .fc-commercial-edit input{
    box-sizing:border-box!important;
    width:78px!important;
    min-width:78px!important;
    max-width:78px!important;
    padding:5px!important;
    text-align:center!important;
}

/* Hide Auto / Low label only */
#calculation .fc-commercial-cell > small{
    display:none!important;
}

/* Real warning remains visible */
#calculation .fc-commercial-warning{
    display:block!important;
    font-size:9px!important;
    line-height:1.05!important;
    white-space:normal!important;
}

/* STATUS: normal Ready badge stays compact */
#calculation .fc-status-cell{
    padding-left:4px!important;
    padding-right:4px!important;
}

#calculation .fc-status-cell .tag{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    white-space:nowrap!important;
}

/* Only genuine warning text may wrap */
#calculation .fc-status-note{
    font-size:9px!important;
    line-height:1.15!important;
    margin-top:3px!important;
}

#calculation .fc-status-note:empty{
    display:none!important;
}

@media(max-width:1250px){
    #calculation .fc-price-table{
        min-width:1250px!important;
    }
}
