﻿.jv-page {
    min-height: 100vh;
    background: #f5f7fb;
    padding: 24px;
}


/* HEADER */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .page-header h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 650;
        color: #26364a;
    }

    .page-header p {
        margin: 5px 0 0;
        font-size: 13px;
        color: #7d8998;
    }


/* CARD */

.jv-card {
    margin-bottom: 18px;
    border-radius: 10px;
}


/* SECTION */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #26364a;
}

.section-subtitle {
    margin-left: 25px;
    margin-top: 3px;
    color: #8a95a4;
    font-size: 11px;
}


/* FORM */

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5d6b7d;
    margin-bottom: 6px;
}

    .form-group label span {
        color: #d64c4c;
    }


/* ACCOUNT HIERARCHY */

.account-hierarchy {
    margin-top: 5px;
    font-size: 10px;
    color: #8a95a4;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .account-hierarchy strong {
        color: #26734d;
    }


/* GRID */

.jv-grid {
    border-radius: 8px;
}


/* TOTALS */

.totals-container {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 12px;
    margin-top: 15px;
}

.total-box {
    min-width: 150px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 7px;
    text-align: right;
}

    .total-box span {
        display: block;
        font-size: 10px;
        color: #7e8998;
    }

    .total-box strong {
        display: block;
        margin-top: 3px;
        font-size: 15px;
    }

.debit {
    color: #2563eb;
}

.credit {
    color: #16834b;
}

.difference-zero {
    color: #16834b;
}

.difference-error {
    color: #d34d4d;
}


/* BALANCE */

.balance-status {
    min-width: 120px;
    padding: 10px 15px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.balanced {
    background: #eaf8f0;
    color: #16834b;
}

.unbalanced {
    background: #fff0f0;
    color: #d34d4d;
}


/* FOOTER */

.jv-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}


/* RESPONSIVE */

@media(max-width: 1000px) {

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .totals-container {
        flex-wrap: wrap;
    }
}


@media(max-width: 600px) {

    .jv-page {
        padding: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .totals-container {
        justify-content: stretch;
    }

    .total-box {
        flex: 1;
    }
}
