.modal {
    --bs-modal-padding: 1rem 1rem 1rem 1rem;
}

.modal-body::-webkit-scrollbar {
    width: 10px;
    cursor: pointer;
}

.modal-body::-webkit-scrollbar-track {
    background: #fff;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: #D9D9D9;
    border-radius: 10px;
    border: 3px solid #f4f4f4;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--main);
}

.modal-content {
    background-color: var(--secondary) !important;
}

.form-control,
.form-select {
    background-color: var(--input-bg) !important;
}

.modal .usericon {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    height: 40px;
    width: 40px;
}

.modal .usericon i {
    color: var(--main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal h4 {
    color: var(--sub);
    font-weight: var(--fw-xl);
    text-decoration: 1.5px underline solid var(--input-border);
    font-size: 18px;
}

.modal form label,
.modal label {
    color: var(--sub);
    font-weight: var(--fw-sm);
    font-size: 14px;
    margin-bottom: 5px;
}

.modal form h6,
.modal h6 {
    color: var(--primary);
    font-weight: var(--fw-lg);
    font-size: 14px;
}

.modal .col-form-label {
    padding-bottom: 5px !important;
}

.modal form input,
.modal form textarea,
.modal form select {
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: var(--fw-md);
    font-size: 14px;
}

.modal form select option {
    font-size: 12px;
    font-weight: var(--fw-md);
}

.modal table th {
    padding: 8px 5px;
    font-size: 12px;
    color: var(--sub);
    font-weight: var(--fw-xl);
    text-transform: uppercase;
    background-color: var(--input-bg) !important;
}

.modal table td {
    padding: 8px 5px;
    font-size: 12px;
    color: var(--primary);
    font-weight: var(--fw-md);
    background-color: var(--secondary);
}

.modal .modal-img {
    width: 100%;
    display: grid;
    grid-template-columns: 20% 80%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.modal .modal-img h5 {
    color: var(--sub);
    font-size: 14px;
    font-weight: var(--fw-md);
    margin-top: 5px;
}

.modal .modal-img h6 {
    color: var(--light);
    font-size: 12px;
    font-weight: var(--fw-sm);
    margin-top: 0px;
}

@media screen and (min-width: 767px) {
    .modal .modal-img img {
        height: 75px;
        border-radius: 5px;
        object-fit: cover;
        object-position: center;
    }
}

@media screen and (max-width: 767px) {
    .modal .modal-img {
        width: 100%;
        display: grid;
        grid-template-columns: 28% 72%;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .modal .modal-img img {
        height: 60px;
        border-radius: 5px;
        object-fit: cover;
        object-position: center;
    }
}