/* =====================================================
   FINANCE PAGE (/Panel/Finance.aspx)
   Depends on tokens + shared layout from app.css / panel.css
   ===================================================== */

.financeListCard{
    padding-bottom: 8px;
}

.txnRow{
    gap: 14px;
    flex-wrap: wrap;
}

.txnIcon{
    font-size: 15px;
}

.txnIconIn{
    background-color: rgba(43, 148, 99, 0.12);
    color: #2b9463;
}

.txnIconOut{
    background-color: rgba(200, 68, 68, 0.12);
    color: #c84444;
}

.txnNumberSub{
    margin-top: 2px;
}

.txnNumberVal{
    font-weight: 700;
    color: var(--navy);
}

.txnAmount{
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    margin-right: 14px;
}

.txnAmountIn{
    color: #2b9463;
}

.txnAmountOut{
    color: #c84444;
}

.txnFactorBtn{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 200ms var(--ease);
}

.txnFactorBtn:hover{
    background-color: var(--primary-color-dark);
}

.txnFactorBtn i{
    font-size: 12px;
}

@media (max-width: 560px){
    .txnRow{
        flex-wrap: wrap;
    }

    .txnAmount{
        margin-right: 0;
        margin-top: 6px;
        flex: 1 0 100%;
        text-align: left;
    }

    .txnFactorBtn{
        flex: 1 0 100%;
        justify-content: center;
        margin-top: 4px;
    }
}

/* ===================== FACTOR MODAL ===================== */

.financeModalOverlay{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.financeModalOverlay.show{
    display: flex;
}

.financeModal{
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 88vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    padding: 26px 22px 22px;
    animation: financeModalIn 240ms var(--ease);
}

@keyframes financeModalIn{
    from{ opacity: 0; transform: translateY(14px) scale(.98); }
    to{ opacity: 1; transform: translateY(0) scale(1); }
}

.financeModalClose{
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f4f6f7;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 200ms var(--ease);
    z-index: 2;
}

.financeModalClose:hover{
    background-color: rgba(200, 68, 68, 0.12);
    color: #c84444;
}

.financeModalHead{
    padding-left: 30px;
    margin-bottom: 4px;
}

.financeModalHead h3{
    font-size: 16.5px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 4px;
}

.financeModalTxnNo{
    display: inline-block;
    font-size: 12px;
    color: var(--muted-text);
    background-color: #f4f6f7;
    border-radius: var(--radius-sm);
    padding: 3px 8px;
}

.financeModalAmount{
    font-size: 22px;
    font-weight: 700;
    margin: 14px 0 18px;
}

.financeModalRows{
    border-top: 1px solid rgba(12, 39, 51, 0.08);
    padding-top: 14px;
}

.financeModalRow{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(12, 39, 51, 0.06);
}

.financeModalRow:last-child{
    border-bottom: none;
}

.financeModalRowLabel{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted-text);
}

.financeModalRowLabel i{
    color: var(--gold);
    font-size: 11px;
}

.financeModalRowValue{
    font-size: 12.5px;
    color: var(--navy);
    font-weight: 700;
}
