/* The Modal (background) */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}


/* Modal Content */

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 20px;
}


/* Add Animation */

@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}


/* The Close Button */

.modal .close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
}

.modal .close:hover,
.modal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal .modal-header {
    padding: 2px 16px;
    background-color: #E5262A;
    color: white;
    border-radius: 20px 20px 0px 0px;
}

.modal .modal-title {
    text-align: center;
}

.modal .modal-body {
    padding: 2px 16px;
    border-radius: 0;
}

.modal .modal-footer {
    padding: 2px 16px;
    background-color: #DEDEDE;
    color: white;
    border-radius: 0px 0px 20px 20px;
    text-align: center;
}

.modal .modal-footer button {
    margin: 1.5rem 0.5rem;
}

.bg-white.modal .modal-footer,
.bg-white.modal .modal-header {
    background-color: #FFFFFF;
}

.bg-white.modal .close {
    color: #000;
}

/* Copy measurement from another apartment in the same project. */
.copy_modal_hint {
    direction: rtl;
    text-align: right;
    font-size: 13px;
    color: #8a5a00;
    background: #fff8e8;
    border: 1px solid #f0d9a0;
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.copy_source_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
    gap: 10px;
    padding: 8px 6px;
    border-bottom: 1px solid #e5e5e5;
}

.copy_source_label {
    flex: 1;
    text-align: right;
    font-size: 14px;
}

.copy_source_count {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}
