.modal {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;

    .modal-placeholder {
        position: absolute;
        background-color: rgb(249, 250, 251);
        border: 1px solid rgb(229, 231, 235);
        top: 50%;
        right: 50%;
        transform: translate(50%,-50%);
        -webkit-box-shadow: 0 0 5px 2px rgb(0 0 0 / 75%);
        -moz-box-shadow: 0 0 5px 2px rgba(0,0,0,0.75);
        box-shadow: 0 0 5px 2px rgb(0 0 0 / 75%);
        width: 70%;
        height: 50%;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 24px;
        border-radius: 12px;

        .model-holder {
            grid-gap: 12px;
            display: grid;
            grid-template-rows: auto 1fr;
            max-height: 80vh;
        }

        h2 {
            font-weight: 600;
            font-size: 20px;
            margin: 0;
            padding: 0;
        }
    }

    .modal-close {
        position: absolute;
        right: 0;
        top: 0;
        z-index: 99;
        cursor: pointer;
        background-color: #ffffff5c;
        color: rgb(31, 36, 46);
        padding: 13px;
    }

    .modal-placeholder::-webkit-scrollbar {
        width: 5px;
    }

    .modal-placeholder::-webkit-scrollbar-track {
        background-color: #e4e4e4;
        border-radius: 100px;
    }

    .modal-placeholder::-webkit-scrollbar-thumb {
        border-radius: 100px;
        background-color: rgba(0, 0, 0, 0.1);
        box-shadow: inset 2px 2px 5px 0 rgba(0, 0, 0, 0.5);
    }
}

@media only screen and (max-width: 560px) {
    .modal .modal-placeholder {
        width: 95% !important;
        height: 95% !important;
    }
}

@media print {
    .modal {
        font-size: 10px;
        padding: 0 !important;
        -webkit-box-shadow: 0 0 0 0 rgba(0,0,0,0);
        -moz-box-shadow: 0 0 0 0 rgba(0,0,0,0);
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        border: none;

        .modal-placeholder {
            height: auto !important;
            margin: 0 !important;
            top: 0;
            left: 0;
            width: 100% !important;
            transform: inherit;
            padding: 0;
        }

        .modal-close {
            display: none;
        }

        .modal-title h2 {
            background: none;
            border: none;
            margin: 0 !important;
            padding: 0 !important;
            border-bottom: 1px solid black;
            border-radius: 0;
        }

        .modal-content {
            overflow: initial;
        }
    }
}
