.result-view-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    inset: 0;
    z-index: 999;
    background-color: rgb(0 0 0 / 76%);
    display: none;
    overflow-y: auto;
    padding: 0 1.2rem;
}
.result-view-modal.active {
    display: block;
}
.result-modal-body {
    max-width: 1170px;
    margin: 1.5rem auto;
    min-height: calc(100% - (1.75rem* 2));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.result-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
}
.left-view {
    flex: 0 0 30%;
    width: 30%;
    padding-right: 2rem;
    border-right: 1px dashed #C2C2C2;
}
.right-view {
    flex: 0 0 70%;
    width: 70%;
    padding-left: 2rem;
}
@keyframes fadeInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.active .result-modal-content {
    animation: fadeInDown 0.5s ease forwards;
}
.rm_close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 50%;
    position: absolute;
    right: 1rem;
    top: 1rem;
    line-height: 2.6rem;
    text-align: center;
}
.switch-view {
    background-color: #CD0006;
    padding: .4rem;
    border-radius: 2.5rem;
}
.switch-view-tab > a {
    padding: .5rem 2rem;
    text-align: center;
    color: #fff;
    border-radius: 2.4rem;
    transition: background-color .3s ease, color .3s ease;
    display: inline-block;
}
.switch-view-tab > a.active {
    color: #000;
    background-color: #ffffff;
}
.rm_result_val {
    background-color: #DDEAFF;
    padding: .6rem;
    border-radius: 3rem;
    text-align: center;
    position: relative;
    min-height: 52px;
}
.rm_result_cur {
    margin: 0;
    position: absolute;
    left: 2rem;
    font-size: 1.6rem;
    color: #243757;
}
.rm_result_val > span {
    color: #5E5E5E;
    font-size: 1.6rem;
    font-weight: 600;
}
.rm_result_item {
    margin-bottom: 1.6rem;
}
.rv_head {
    display: flex
;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.rv_head .rv_title {
    flex: 1 1;
}
.rv_head .rv_title h4 {
    margin: 0 !important;
}
.table-view > .table > thead > tr > th {
    background-color: #9ABFFF;
    border-color: #9ABFFF;
    border-top: 0;
}
.table-view > .table > tbody > tr > td {
    background-color: #D4E4FF;
    border-color: #9ABFFF;
}

.table-view > .table > thead > tr > th:first-child {
    border-top-left-radius: 12px;
}
.table-view > .table > thead > tr > th:last-child {
    border-top-right-radius: 12px;
}
.table-view > .table > tbody > tr:last-child > td:first-child {
    border-bottom-left-radius: 12px;
}
.table-view > .table > tbody > tr:last-child > td:last-child {
    border-bottom-right-radius: 12px;
}
.table-view > .table > tbody > tr:last-child > td {
    border-bottom: 0;
}
.table-view > .table > tbody > tr > td:first-child,
.table-view > .table > thead > tr > th:first-child {
    border-left: 0;
}
.table-view > .table > tbody > tr > td:last-child,
.table-view > .table > thead > tr > th:last-child {
    border-right: 0;
}
.calculator-view .form-group .form-control {
    padding: .6rem;
    border-color: #D9D9D9;
    border-radius: .4rem;
    height: auto !important;
    line-height: 1;
    margin: 0 !important;
    font-size: 1.4rem;
    color: #5E5E5E;
    font-weight: 500;
    text-align: center;
}
.calculator-view .form-group > label {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}
.calculator-view .error {
    margin-top: .4rem;
    color: #ff4c53;
}
.frm_item {
    position: relative;
}
.init_val .frm_item:before,
.contrib .frm_item:before {
    content: "$";
    position: absolute;
    left: 1rem;
    top: .6rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #243757;
}
.int_rate .frm_item:after {
    content: "%";
    position: absolute;
    right: 1rem;
    top: .6rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #243757;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
input#ciCalculateBtn {
    background-color: #ff2c35;
    width: 100%;
    padding: .8rem;
    border-radius: .4rem;
    transition: background-color .3s ease-in-out;
    text-transform: uppercase;
}
input#ciCalculateBtn:hover {
    background-color: #ED2B09;
}


@media screen and (max-width: 768px) {
    .result-modal-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    .left-view, .right-view {
        flex: 0 0 100%;
        width: 100%;
        padding: 0;
        border: 0;
    }
    .rv_title h4 {
        font-size: 1.4rem !important;
    }
    .switch-view {
        padding: .2rem;
    }
    .switch-view-tab > a {
        padding: .3rem 1.2rem;
    }
}