img{
    max-width: 100%;
}
.pagination{
    justify-content: flex-end;
}
.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table th{
    white-space: nowrap;
}
.table td{
    font-size: 0.875rem;
}
.custom-switch{
    min-height: 1.875rem;
}
.custom-switch .custom-control-label::before{
    width: 2.625rem;
    height: 1.5rem;
    border-radius: 0.75rem;
}
.custom-switch .custom-control-label::after{
    height: calc( 1.5rem - 6px );
    width: calc( 1.5rem - 6px );
    top: calc(.25rem + 3px);
    left: calc(-2.25rem + 3px);
}
.custom-switch .custom-control-input:checked~.custom-control-label::after{
    transform: translateX(1.125rem);
}
.custom-switch.custom-switch-on-success .custom-control-input:checked~.custom-control-label::before{
    border-color: transparent;

}
.custom-switch.custom-switch-on-success .custom-control-label{
    cursor: pointer;
}
.cursor-pointer{
    cursor: pointer;
}
.cursor-move{
    cursor: move;
}
.upload-bar{
    margin: 0;
}
.upload-bar input[type="file"]{
    display: none;
}
.upload-box{
    display: inline-block;
}
.select2-container--default .select2-dropdown .select2-search__field:focus, .select2-container--default .select2-search--inline .select2-search__field:focus{
    border: none !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice{
    color: #212529;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
    margin: 0;
}
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple{
    border: 1px solid #ced4da;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple{
    border-color: #80bdff;
}
.select2-container--default .select2-selection--single{
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
}
.select2-container .select2-selection--single .select2-selection__rendered{
    padding: 0;
}
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field{
    line-height: 40px !important;
}
.content-to-top{
    position: fixed;
    z-index: 99;
    right: 2rem;
    bottom: 1.5rem;
    font-size: 38px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-sidebar > .nav-item > .nav-treeview > .nav-item > .nav-link{
    padding-left: 2rem;
    transition: padding-left .3s ease-in-out;
}
.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > .nav-treeview > .nav-item > .nav-link{
    padding-left: 1rem;
}
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand).sidebar-focused .nav-sidebar > .nav-item > .nav-treeview > .nav-item > .nav-link,
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand):hover .nav-sidebar > .nav-item > .nav-treeview > .nav-item > .nav-link{
    padding-left: 2rem;
}
.direct-chat .direct-chat-messages{
    height: unset;
    min-height: 250px;
    max-height: 500px;
}
.direct-chat .direct-chat-timestamp{
    margin-left: 5px;
    margin-right: 5px;
}
.direct-chat .direct-chat-content{
    display: flex;
    align-items: flex-start;
}
.direct-chat .right .direct-chat-content{
    flex-direction: row-reverse;
}
.direct-chat .direct-chat-text{
    max-width: 600px;
    float: left;
    margin-left: 10px;
    margin-right: 50px;
    position: relative;
}
.direct-chat .direct-chat-text.unread:after{
    content: '未読';
    font-size: 0.875rem;
    color: #ff4343;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translate(100%,-50%);
    margin: 0;
    border: none;
    white-space: nowrap;
    height: unset;
    width: unset;
    font-weight: bold;
}
.direct-chat .direct-chat-text.read:after{
    content: '既読';
    font-size: 0.875rem;
    color: #17cf03;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translate(100%,-50%);
    margin: 0;
    border: none;
    white-space: nowrap;
    height: unset;
    width: unset;
    font-weight: bold;
}
.direct-chat .right .direct-chat-text.unread:after,
.direct-chat .right .direct-chat-text.read:after
{
    right: unset;
    left: -10px;
    transform: translate(-100%,-50%);
}
.direct-chat .direct-chat-infos{
    max-width: 650px;
}
.direct-chat .right .direct-chat-text{
    margin-left: 50px;
    margin-right: 10px;
    float: right;
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}
.direct-chat .right .direct-chat-text:before{
    border-left-color: #007bff;
}
.direct-chat .right .direct-chat-infos{
    margin-left: auto;
    margin-right: 0;
}
.direct-chat .input-group .form-control{
    z-index: unset !important;
}
.direct-chat .input-group .btn{
    z-index: unset !important;
}
.preserve-newlines {
    white-space: pre-line;
}
.loading-container{
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
}
.loading-container:after{
    content: '';
    display: block;
    width: 100px;
    height: 100px;
    background: url("../img/icon/loading.svg") no-repeat center center / contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    animation: rotateRound 1.4s infinite linear;
    animation-fill-mode: both;
}

@keyframes rotateRound {
    0% {
        transform: translate(-50%,-50%) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%,-50%) rotateZ(360deg);
    }
}
