﻿.wrap-calculate {
    max-width: 980px;
}

.title-page {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: .2px;
}

.calc-shell {
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15,23,42,.08);
}

    .calc-shell > .grid {
        margin: 0 !important;
    }

.calc-left, .calc-right {
    padding: 22px !important;
}

.calc-left {
    border-right: 1px solid rgba(15,23,42,.12);
    background: #fff;
}

.calc-right {
    background: #f6faf7; /* xanh nhạt */
}

.ui.form .field > label {
    font-weight: normal !important;
    color: #122018;
    margin-bottom: 6px;
}

.field-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

    .field-row .grow {
        flex: 1;
    }

.mini-box {
    width: 102px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(15,23,42,.16);
    border-radius: 10px;
    background: #fff;
    font-weight: 500;
    height: 42px;
}

    .mini-box input {
        border: none !important;
        padding: 0.67857143em !important;
        width: 60px !important;
    }

    .mini-box .unit {
        opacity: .55;
        font-weight: 500;
        right: 10px;
        position: absolute;
    }

/* sliders */
input[type="range"] {
    width: 100%;
    accent-color: #2e7d32; /* xanh lá */
}

/* dropdown */
.ui.selection.dropdown {
    border-radius: 10px !important;
    border-color: rgba(15,23,42,.16) !important;
    box-shadow: none !important;
}

    .ui.selection.dropdown:hover {
        border-color: rgba(25,118,210,.35) !important;
    }

    .ui.selection.dropdown .text {
        font-weight: 800;
        color: #223;
    }

/* radio */
.radio-line {
    display: flex;
    gap: 18px;
    margin-top: 6px;
}

.ui.radio.checkbox input:checked ~ label:before {
    border-color: #2e7d32 !important;
}

.ui.radio.checkbox input:checked ~ label:after {
    background-color: #2e7d32 !important;
}

/* Xem kết quả */
.btn-primary {
    width: 100%;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-weight: 500 !important;
    border: 2px solid rgba(46,125,50,.55) !important;
    background: linear-gradient(180deg, rgba(46,125,50,.14), rgba(46,125,50,.06)) !important;
    color: #1f3b22 !important;
}

    .btn-primary:hover {
        background: linear-gradient(180deg, rgba(46,125,50,.18), rgba(46,125,50,.10)) !important;
        border-color: rgba(46,125,50,.75) !important;
    }

/* Right side text */
.result-head {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 12px;
}

.result-row {
    display: flex;
    gap: 18px;
    align-items: center;
}

    .result-row > .donut-chart,
    .result-row > .result-side {
        flex: 1 1 auto;
        min-width: 0;
    }

.kv {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 0;
}

    .kv .k {
        opacity: .78;
        font-weight: 500;
        color: #233;
    }

    .kv .v {
        font-weight: 500;
    }

.v.blue {
    color: #1976d2;
}

.v.teal {
    color: #009688;
}

.v.pink {
    color: #d07a00;
}

.pay-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 14px;
    border-top: 1px solid rgba(15,23,42,.12);
    margin-top: 14px;
    flex-direction: row;
    align-items: center;
}

    .pay-box .label {
        opacity: .78;
        font-weight: 500;
        color: #233;
        flex: 3 1 0;
    }

    .pay-box .value {
        font-size: 24px;
        font-weight: 500;
        color: #0b1220;
        flex: 7 1 0;
        text-align: right;
    }

.btn-red {
    width: 100%;
    margin-top: 14px !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-weight: 500 !important;
    background: linear-gradient(180deg, #1976d2, #145fb0) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(25,118,210,.22);
}

    .btn-red:hover {
        filter: brightness(1.03);
    }

.help-link {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1976d2;
    font-weight: 500;
}

    .help-link:hover {
        text-decoration: underline;
    }

    .help-link i {
        margin: 0 !important;
    }

/* donut */
.donut {
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    position: relative;
    margin-left: 6px;
}

    .donut .center {
        position: absolute;
        text-align: center;
        font-weight: 500;
        line-height: 1.1;
    }

        .donut .center .big {
            font-size: 36px;
            color: #0b1220;
        }

        .donut .center .small {
            font-size: 14px;
            opacity: .7;
            font-weight: 500;
        }

.donut-chart {
    width: 150px;
    height: 150px;
}

.ui.form .field {
    margin: 0em 0em .5em;
}
.disclaimer {
    padding-top: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media only screen and (max-width:480px) {
    .ui.stackable.grid > .column:not(.row).calc-left, .ui.stackable.grid > .column:not(.row).calc-right {
        padding: 2rem !important;
    }
}
