/*Prevent body from scroll when modal opened*/
body.modal-open {
    overflow: hidden;
    position: fixed;
}

.modal-dialog {
    max-height: calc(100vh - 3.5rem); /* hoặc 90vh */
}

.modal-body {
    /*overflow-y: auto;*/
    max-height: calc(100vh - 10rem); /* đảm bảo cuộn trong modal */
}

.error {
    color: red !important;
}

.toggle-group > label {
    padding-top: 7px;
}

.daterangepicker .ranges {
    padding: 0 !important;
}

html, body {
    height: auto;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    color: #FFFFFF !important;
    background: #4BADF7 !important;
}

.table-bordered-bottom td {
    vertical-align: middle !important;
    padding: 1.5rem 5px 0.7rem;
    border-bottom: 0.07rem dashed #ebedf2 !important;
    border-top: none !important;
}
.table-bordered-bottom tr:last-child > td {
    border-bottom: none !important;
}

table.m-datatable__table tbody {
    min-height: 500px !important;
}

/*Pagination*/
.pagination {
    margin: 10px 0 0 0;
    padding: 0;
    display: inline-block; }
.pagination > li {
    padding: 0;
    margin-right: 5px;
    display: inline-block; }
.pagination > li:last-child {
    margin-right: 0; }
.pagination > li.active > span {
    border-radius: 50%;
    background-color: #716aca;
    color: #FFF;
}
.pagination > li > span,
.pagination > li > a {
    background-color: #ebe9f2;
    color: #898b96;
    cursor: pointer;
    display: inline-block;
    height: 2.25rem;
    min-width: 2.25rem;
    vertical-align: middle;
    padding: 0.5rem;
    border-radius: 50%;
    text-align: center;
    position: relative;
    display: -webkit-box;
    /* OLD - iOS 6-, Safari 3.1-6 */
    /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;
    /* TWEENER - IE 10 */
    /* NEW - Chrome */
    display: flex;
    -moz-justify-content: center;
    -ms-justify-content: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -moz-align-items: center;
    -ms-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400; }
.pagination > li > .m-datatable__pager-link > i {
    font-size: 1rem;
    text-align: center;
    display: inline-block; }
.pagination > li > .m-pager-input {
    height: 2.25rem;
    width: 3.5rem;
    text-align: center;
    border-radius: 15px!important; }
.tokenize {
    max-height: 100px;
    overflow-y: scroll;
}
