:root {
    --background: #ffffff;
    --text: #414856;
    --radio: #7c96b2;
    --radio-checked: var(--blue);
    --radio-size: 30px;
    --width: 100px;
    --height: 140px;
    --border-radius: 10px;
    --blue-opacity2: rgba(96, 155, 255, 0.2);
    --green-opacity2: rgba(99, 205, 148, 0.2);
}

.select2-container--bootstrap .select2-selection--single {
    height: 100% !important;
    /* padding: 8px 24px 6px 12px !important; */
    padding: 0.5rem 1.5rem !important;
    border-radius: 10px !important;
    background: var(--bg-grey) !important;
    border: 0px !important;
    box-shadow: none !important;
    font-size: initial !important;
}

/* .select2-container--bootstrap .select2-selection--single[readonly] {
                                                                        background: #e9ecef !important;
                                                                        opacity: 1 !important;
                                                                    } */

.select2-container.select2-container-disabled .select2-choice {
    background-color: #ddd;
    border-color: #a8a8a8;
}

input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    height: var(--radio-size);
    width: var(--radio-size);
    outline: none;
    margin: 0;
    cursor: pointer;
    border: 2px solid var(--radio);
    background: transparent;
    border-radius: 50%;
    display: grid;
    justify-self: end;
    justify-items: center;
    align-items: center;
    overflow: hidden;
    transition: border 0.5s ease;
}

input[type="radio"]::before,
input[type="radio"]::after {
    content: "";
    display: flex;
    justify-self: center;
    border-radius: 50%;
}

input[type="radio"]::before {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 1;
    opacity: var(--opacity, 1);
}

input[type="radio"]::after {
    position: relative;
    width: calc(100% / 2);
    height: calc(100% / 2);
    background: var(--radio-checked);
    top: var(--y, 100%);
    transition: top 0.5s cubic-bezier(0.48, 1.97, 0.5, 0.63);
}

input[type="radio"]:checked {
    --radio: var(--radio-checked);
}

input[type="radio"]:checked::after {
    --y: 0%;
    animation: stretch-animate 0.3s ease-out 0.17s;
}

input[type="radio"]:checked::before {
    --opacity: 0;
}

input[type="radio"]:checked ~ input[type="radio"]::after {
    --y: -100%;
}

input[type="radio"]:not(:checked)::before {
    --opacity: 1;
    transition: opacity 0s linear 0.5s;
}

@keyframes stretch-animate {
    0% {
        transform: scale(1, 1);
    }

    28% {
        transform: scale(1.15, 0.85);
    }

    50% {
        transform: scale(0.9, 1.1);
    }

    100% {
        transform: scale(1, 1);
    }
}

.form-step.active {
    display: flex;
    flex-wrap: wrap;
}

.form-step {
    display: none;
}

#predictValuationBtn,
#predictRentalBtn {
    height: 40px;
    margin-top: auto;
}

.file {
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    position: absolute;
}

.file-input label {
    position: relative;
    width: 100%;
    height: auto;
    background: var(--bg-grey);
    border-radius: 10px;
    color: grey;
    display: inline-flex;
    cursor: pointer;
    transition: transform 0.2s ease-out;
    gap: 10px;
    align-items: center;
    padding: 1rem;
    justify-content: space-between;
    margin: 0px;
}

.file-input label i {
    color: var(--blue);
}

input:hover + label,
input:focus + label {
    transform: scale(1.02);
}

input:focus + label {
    outline: 1px solid #000;
    outline: var(--blue) auto 2px;
}

.file-name {
    word-wrap: break-word;
    width: 90%;
}

.dropzone {
    background-color: var(--blue-opacity) !important;
    border: 2px dashed var(--blue) !important;
    border-radius: 20px;
}

.dz-preview {
    background: transparent !important;
}

.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dropzone .dz-preview .dz-image {
    width: 100%;
}

/* swiper */
swiper-container {
    width: 100%;
    height: 100%;
}

swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

swiper-container {
    width: 100%;
    height: 500px;
    margin-left: auto;
    margin-right: auto;
}

swiper-slide {
    background-size: cover;
    background-position: center;
}

.mySwiper {
    min-height: 400px;
    width: 100%;
}

.mySwiper2 {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}

.mySwiper2 swiper-slide {
    width: 25%;
    height: auto;
    opacity: 0.4;
}

.mySwiper2 .swiper-slide-thumb-active {
    opacity: 1;
}

.mySwiper2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 75% !important;
}

swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    width: 20px !important;
    height: 20px !important;
}
/* end swiper */

.details-container {
    display: flex;
    flex-wrap: wrap;
}

.details-container > div {
    border: 1px solid lightgrey;
    padding: 1rem;
    text-align: center;
}

.details-container > div:first-child {
    border-top: 0;
    border-left: 0;
    border-top-left-radius: 20px;
}

.details-container > div:nth-child(2),
.details-container > div:nth-child(3),
.details-container > div:nth-child(4),
.details-container > div:nth-child(5) {
    border-top: 0;
}

.details-container > div:nth-child(6) {
    border-top: 0;
    border-right: 0;
    border-top-right-radius: 20px;
}

.details-container > div:nth-child(7) {
    border-left: 0;
    border-bottom: 0;
    border-bottom-left-radius: 20px;
}

.details-container > div:nth-child(8),
.details-container > div:nth-child(9),
.details-container > div:nth-child(10),
.details-container > div:nth-child(11) {
    border-bottom: 0;
}

.details-container > div:last-child {
    border-bottom: 0;
    border-right: 0;
    border-bottom-right-radius: 20px;
}

tr > td {
    font-weight: 300;
}

.document-table tr > td:last-child {
    text-align: right;
}

.switch {
    --button-width: 3.5em;
    --button-height: 2em;
    --toggle-diameter: 1.5em;
    --button-toggle-offset: calc(
        (var(--button-height) - var(--toggle-diameter)) / 2
    );
    --toggle-shadow-offset: 10px;
    --toggle-wider: 3em;
    --color-grey: #cccccc;
    --color-green: #4296f4;
}

.slider {
    display: inline-block;
    width: var(--button-width);
    height: var(--button-height);
    background-color: var(--color-grey);
    border-radius: calc(var(--button-height) / 2);
    position: relative;
    transition: 0.3s all ease-in-out;
}

.slider::after {
    content: "";
    display: inline-block;
    width: var(--toggle-diameter);
    height: var(--toggle-diameter);
    background-color: #fff;
    border-radius: calc(var(--toggle-diameter) / 2);
    position: absolute;
    top: var(--button-toggle-offset);
    transform: translateX(var(--button-toggle-offset));
    box-shadow: var(--toggle-shadow-offset) 0
        calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
    transition: 0.3s all ease-in-out;
}

.switch input[type="checkbox"]:checked + .slider {
    background-color: var(--color-green);
}

.switch input[type="checkbox"]:checked + .slider::after {
    transform: translateX(
        calc(
            var(--button-width) - var(--toggle-diameter) -
                var(--button-toggle-offset)
        )
    );
    box-shadow: calc(var(--toggle-shadow-offset) * -1) 0
        calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
}

.switch input[type="checkbox"] {
    display: none;
}

.switch input[type="checkbox"]:active + .slider::after {
    width: var(--toggle-wider);
}

.switch input[type="checkbox"]:checked:active + .slider::after {
    transform: translateX(
        calc(
            var(--button-width) - var(--toggle-wider) -
                var(--button-toggle-offset)
        )
    );
}

.table td,
.table th {
    padding: 0.5rem;
    vertical-align: middle;
    border-top: 0 !important;
}

.table thead th {
    color: black;
    vertical-align: middle;
    /* border-bottom: 0 !important; */
}

.datepicker table tr td span.focused,
.datepicker table tr td span:hover {
    background-color: var(--blue) !important;
    color: #fff !important;
}

.error {
    color: var(--red);
}

tr:has(input[type="checkbox"]:checked) td:first-child {
    text-decoration: line-through;
    color: grey;
}

.bg-green-opacity {
    background: var(--green-opacity2) !important;
}

.bg-blue-opacity {
    background: var(--blue-opacity2) !important;
}

.bb-blue {
    border-bottom: 1px solid var(--blue);
}

#equityTable {
    overflow: auto;
}

.financialTable {
    background: white;
    border-radius: 20px;
    /* table-layout: fixed; */
}

.financialTable tr td,
.financialTable thead th {
    font-weight: 600;
}

.financialTable tr td,
.financialTable thead th {
    text-align: right;
}

.financialTable thead th:first-child {
    text-align: left;
    padding-left: 1.5rem;
    color: var(--blue);
    text-transform: uppercase !important;
}

.financialTable.table td:first-child, .financialTable.table th:first-child {
    width: 30%;
}

.financialTable thead th {
    color: grey;
}

.financialTable tbody tr td:last-child,
.financialTable thead th:last-child {
    padding-right: 1.5rem;
}

.financialTable tbody tr th:first-child {
    padding-left: 1.5rem;
}

.financialTable thead th {
    border-bottom: 1px solid lightgrey;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.financialTable th[colspan] {
    color: var(--blue);
    padding-top: 2rem;
}

.financialTable tr.total {
    /* border-top: 1px solid lightgrey !important;
                                                                                                                                                                                                            border-bottom: 1px solid lightgrey !important; */
    background: var(--blue-opacity2);
}

.financialTable thead th:first-child {
    /* width: 20%; */
}

.financialTable tbody tr:last-child th:first-child {
    /* padding-bottom: 1.5rem; */
}

.financialTable tbody tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}

.financialTable tbody tr:last-child th:first-child {
    border-bottom-left-radius: 20px;
}

.financialTable.table td,
.financialTable.table th {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 0 !important;
    width: 10%;
}

.financialTable.table[ringgit] td:before {
    content: "RM";
    font-size: small;
    color: grey;
    margin-right: 1px;
}

.financialTable.table[percentage] td:after {
    content: "%";
    font-size: small;
    color: grey;
    margin-left: 1px;
}

.financialTable.table tr[percentage] td:after {
    content: "%";
    font-size: small;
    color: grey;
    margin-left: 1px;
}

.financialTable.table tr[percentage] td:before{
    content: "" !important;
    margin-right: 0 !important;
}

.analysis-slider .noUi-handle {
    height: 20px;
    width: 20px;
    top: -2px;
    right: -2px;
    border-radius: 9px;
}

.analysis-slider .noUi-touch-area {
    outline: 6px solid var(--blue);
    border-radius: 100px;
    background: white;
    background-image: none;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    background-size: 80% 80%;
}

.analysis-slider .noUi-connect,
.analysis-slider .noUi-target {
    background: lightgrey !important;
}

span.cashflow-label:before {
    content: "";
    width: 10px;
    height: 10px;
    display: inline-flex;
    border-radius: 50%;
    margin-right: 5px;
}

.cashflow-label {
    color: grey;
    font-weight: 600;
}

.income.cashflow-label:before {
    background: var(--green);
}

.expenses.cashflow-label:before {
    background: #212529;
}

.net.cashflow-label:before {
    background: var(--blue);
}

.summary-card .collapse > div {
    border-bottom: 1px solid lightgrey;
}

.summary-card .collapse > div:last-child {
    border-bottom: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

tbody#cashflowTable .symbol {
    font-size: small;
    margin-right: 2px;
}

@media (max-width: 500px) {
    .financialTable {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #equityChart {
        max-height: 500px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1680px) {
    #equityChart {
        max-height: 600px !important;
    }
}
