.form-control.is-invalid,
.was-validated .form-control:invalid {
    background: none;
    padding: .47rem .75rem;
}

.bx {
    vertical-align: middle;
}

.avatar.avatar-coin,
.avatar.avatar-sm-sm {
    height: 36px;
    width: 36px;
}

.avatar.avatar-ex-sm {
    max-height: 25px;
}

.avatar.avatar-ex-small {
    height: 36px;
    width: 36px;
}

.avatar.avatar-md-sm {
    height: 45px;
    width: 45px;
}

.avatar.avatar-small {
    height: 65px;
    width: 65px;
}

.avatar.avatar-md-md {
    height: 80px;
    width: 80px;
}

.avatar.avatar-medium {
    height: 110px;
    width: 110px;
}

.avatar.avatar-large {
    height: 140px;
    width: 140px;
}

.avatar.avatar-ex-large {
    height: 180px;
    width: 180px;
}

.avatar-profile {
    position: relative;
    top: -80px;
}

.bg-home {
    height: 100vh;
    background-size: cover;
    -ms-flex-item-align: center;
    align-self: center;
    position: relative;
    background-position: center center;
}

@media (max-width: 767px) {
    .bg-home {
        padding: 150px 0;
        height: auto;
    }
}

.form-signin {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

label>input {
    display: none
}

label>input+img {
    cursor: pointer;
    border: 2px solid transparent
}

label>input:checked+img {
    border: 1px solid #0f0;
    border-radius: 200px;
    box-shadow: 0 0 5px 0 red
}

.limit-2line {
    overflow: hidden;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-x: hidden;
    overflow-y: scroll
}

.noti {
    margin-top: -5px;
    font-size: 12pt
}

.icon-1 {
    height: 50px;
    width: 50px;
    color: #2f55d4 !important;
    background-color: rgba(47, 85, 212, .04) !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center
}

.new_updates {
    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto
}

.form-line-scroll {
    height: 45px;
    overflow-y: auto;
    display: flex;
    /* align-items: center;
     */
    /* margin-top: 2px;
     */
}

.fs-7 {
    font-size: 15px !important
}

.nav {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: var(--bs-link-color);
    --bs-nav-link-hover-color: var(--bs-link-hover-color);
    --bs-nav-link-disabled-color: #6c757d;
    display: flex;
    -ms-flex-wrap: wrap;
    list-style: none;
    flex-wrap: nowrap
}

.form-group {
    position: relative;
    margin-bottom: 1rem
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .9)
}

.toggle-password i {
    display: inline-block;
    width: 1em;
    height: 1em;
    box-sizing: content-box
}

.form-control:focus~.toggle-password,
.form-control:hover~.toggle-password {
    color: rgba(30, 30, 40, .9)
}

#toast-container>div {
    font-size: 14px;
    border-radius: 12px;
    opacity: 1;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%), 0 8px 16px rgb(0 0 0 / 10%);
    border: 1px solid #fff
}

#toast-container>:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2)
}

.toast-top-right {
    top: 85px;
    right: 12px
}

.toast-success {
    background-color: #2eca8b
}

.toast-warning {
    background-color: #f17425
}

.toast-error {
    background-color: #e43f52
}

.toast-info {
    background-color: #17a2b8
}

.info-box {
    padding: 5px;
    text-align: left;
    /* border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;
     */
}

.entry {
    border-bottom: 1px solid #424242;
    height: 15%;
    overflow: hidden;
    padding-top: 15px;
}

.card {
    margin-bottom: 0;
    -webkit-box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, .03);
    box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, .03);
}

.w-15 {
    width: 25% !important;
}

.w-35 {
    width: 35% !important;
}

.w-40 {
    width: 40% !important;
}

.status-login {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-login.online {
    background-color: #0fcc45;
}

.status-login.offline {
    background-color: red;
}

.status-login.publish {
    background-color: #0fcc45;
}

.status-login.trash,
.status-login.draft {
    background-color: red;
}

.btn:focus {
    outline: none;
    box-shadow: none;
}

.btn {
    transition: all .2s ease-in-out;
}

.btn:active {
    transform: scale(.9)
}


/* datatable */

@media (max-width: 767px) {
    div.dataTables_wrapper div.dataTables_filter {
        text-align: right;
    }
}


/* .dtr-control {
     text-align: center;
}
 */

.dtr-details {
    width: 100%;
    max-width: 350px;
}

.dtr-title {
    width: 40%;
}

.dtr-title::after {
    content: " :";
}

.dtr-data {
    width: 50%;
    /* text-align: center;
     */
    border-right: none;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control::before,
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control::before {
    content: "-";
}


/* .table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before {
     top: 50%;
     left: 10px;
     height: 14px;
     width: 14px;
     margin-top: -9px;
     display: block;
     position: absolute;
     color: #fff;
     border: 2px solid #fff;
     border-radius: 14px;
     -webkit-box-sizing: content-box;
     box-sizing: content-box;
     text-align: center;
     text-indent: 0 !important;
     line-height: 14px;
     content: "+";
     background-color: #556ee6;
}
 */


/* Độ rộng 100% trên màn hình lớn (lg) và extra-large (xl) */

.c-textarea {
    width: 100%;
    resize: none;
    background: 0;
}


/* Độ rộng 50% trên màn hình nhỏ (sm) và medium (md) */

@media (max-width: 540px) {
    .c-textarea {
        width: 60%;
        height: 60px;
        resize: none;
        background: 0;
    }
}

@media (min-width: 992px) {
    .c-textarea {
        width: 100%;
        height: 60px;
        resize: none;
        background: 0;
    }
}

.scrollable-container {
    height: 300px;
    /* Đặt chiều cao tối đa của khung cố định */
    overflow-x: hidden;
    overflow-y: auto;
    /* Tự động hiển thị thanh cuộn theo chiều dọc khi nội dung vượt quá chiều cao */
    /* border: 1px solid #ddd;
     */
    /* Thêm đường viền cho khung cố định nếu bạn muốn */
    padding: 10px;
    /* Thêm padding nếu cần thiết */
}

.notification-push>p,
.post>p {
    margin-bottom: 0;
}

.noti-fueture>p {
    margin-bottom: 1.5%;
}

@media (min-width: 768px) {
    .h-md-100 {
        height: 300px !important;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: .75rem;
    color: var(--bs-emphasis-color)
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    outline: 0;
    display: block;
    padding: 0.3rem 0.5rem;
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-emphasis-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-secondary-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius);
    -webkit-transition: border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
    transition: border-color .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-box-shadow .15s ease-in-out;
}


/* Small devices (landscape phones, 576px and up)*/

@media (min-width: 576px) {
    .w-sm-100 {
        width: 100% !important;
    }

    .w-sm-75 {
        width: 75% !important;
    }

    .w-sm-50 {
        width: 50% !important;
    }

    .w-sm-25 {
        width: 25% !important;
    }

    .h-sm-100 {
        height: 100% !important;
    }

    .h-sm-75 {
        height: 75% !important;
    }

    .h-sm-50 {
        height: 50% !important;
    }

    .h-sm-25 {
        height: 25% !important;
    }
}


/* Medium devices (tablets, 768px and up)*/

@media (min-width: 768px) {
    .w-md-100 {
        width: 100% !important;
    }

    .w-md-80 {
        width: 80% !important;
    }

    .w-md-75 {
        width: 75% !important;
    }

    .w-md-50 {
        width: 50% !important;
    }

    .w-md-40 {
        width: 40% !important;
    }

    .w-md-25 {
        width: 25% !important;
    }

    .h-md-100 {
        height: 100% !important;
    }

    .h-md-75 {
        height: 75% !important;
    }

    .h-md-50 {
        height: 50% !important;
    }

    .h-md-25 {
        height: 25% !important;
    }
}


/* Large devices (desktops, 992px and up)*/

@media (min-width: 992px) {
    .w-lg-100 {
        width: 100% !important;
    }

    .w-lg-75 {
        width: 75% !important;
    }

    .w-lg-50 {
        width: 50% !important;
    }

    .w-lg-25 {
        width: 25% !important;
    }

    .h-lg-100 {
        height: 100% !important;
    }

    .h-lg-75 {
        height: 75% !important;
    }

    .h-lg-50 {
        height: 50% !important;
    }

    .h-lg-25 {
        height: 25% !important;
    }
}


/* Extra large devices (large desktops, 1200px and up)*/

@media (min-width: 1200px) {
    .w-xl-100 {
        width: 100% !important;
    }

    .w-xl-75 {
        width: 75% !important;
    }

    .w-xl-50 {
        width: 50% !important;
    }

    .w-xl-25 {
        width: 25% !important;
    }

    .h-xl-100 {
        height: 100% !important;
    }

    .h-xl-75 {
        height: 75% !important;
    }

    .h-xl-50 {
        height: 50% !important;
    }

    .h-xl-25 {
        height: 25% !important;
    }
}

.select2-container--default .select2-results__option--selected {
    font-weight: 700;
    color: var(--bs-primary);
}

.tino-select2 .select2-selection--single {
    height: 100px;
}

.post-metabox .select-image .hide {
    display: none;
}

.post-metabox .selected-image {
    position: relative;
    display: inline-block;
}

.post-metabox .selected-image img {
    height: 60px;
    border-radius: 2px;
}

.post-metabox .selected-image .action-remove {
    position: absolute;
    right: 0px;
    background: rgba(221, 221, 221, 0.8);
}

.select2-container .select2-selection--single {
    height: 36px;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: var(--bs-body-bg);
}

.accordion-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 60px;
}

.navbar-brand-box {
    display: flex;
    justify-content: center;
}

.logo .logo-sm img {
    height: 40px;
    width: auto;
}

.logo .logo-lg img {
    height: 55px;
    width: auto;
}

.form-floating .input-icon,
.form-group .input-icon {
    position: absolute;
    right: 15px;
    top: 40%;
}

.form-group .input-icon {
    top: 35%;
}

.valid-tooltip,
.invalid-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    text-align: center;
    transition: opacity 0.2s ease-in-out;
    max-width: calc(100% - 20px);
    white-space: nowrap;
}

.form-control.is-valid~.valid-tooltip,
.form-control.is-invalid~.invalid-tooltip {
    opacity: .9;
}

.form-floating .valid-tooltip,
.form-floating .invalid-tooltip {
    top: -38px;
    margin-top: 0rem;
}

.invalid-tooltip::after,
.valid-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--bs-primary) transparent transparent transparent;
    opacity: .9;
}

.invalid-tooltip::after {
    border-color: var(--bs-danger) transparent transparent transparent;
}

.valid-tooltip::after {
    border-color: var(--bs-success) transparent transparent transparent;
}


/* Custom Tooltip Colors */

.tooltip-primary {
    --bs-tooltip-bg: var(--bs-primary);
    --bs-tooltip-color: #fff;
}

.tooltip-secondary {
    --bs-tooltip-bg: var(--bs-secondary);
}

.tooltip-success {
    --bs-tooltip-bg: var(--bs-success);
    --bs-tooltip-color: #fff;
}

.tooltip-danger {
    --bs-tooltip-bg: var(--bs-danger);
    --bs-tooltip-color: #fff;
}

.tooltip-warning {
    --bs-tooltip-bg: var(--bs-warning);
    --bs-tooltip-color: #fff;
}

.tooltip-info {
    --bs-tooltip-bg: var(--bs-info);
    --bs-tooltip-color: #fff;
}

.tooltip-light {
    --bs-tooltip-bg: var(--bs-light);
    --bs-tooltip-color: #000;
    /* Ensure text is visible on light background */
}

.tooltip-dark {
    --bs-tooltip-bg: var(--bs-dark);
}


.rounded-top {
    border-top-left-radius: var(--bs-border-radius) !important;
    border-top-right-radius: var(--bs-border-radius) !important;
}

.rounded-right {
    border-top-right-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
}

.rounded-bottom {
    border-bottom-left-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
}

.rounded-left {
    border-top-left-radius: var(--bs-border-radius) !important;
    border-bottom-left-radius: var(--bs-border-radius) !important;
}

.form-switch {
    min-height: auto;
}

.form-check-input {
    margin-top: 0;
}


.modal.swal.show .modal-dialog {
  animation: modal-swal-open .3s;
}

.modal.swal.closing {
  display: block!important;
}
.modal.swal.closing .modal-dialog {
  animation: modal-swal-hide .15s forwards;
}

@keyframes modal-swal-open{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}

@keyframes modal-swal-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}
