* {
    outline: none;
}
/* Scollbar */
* {
    scrollbar-color: #007bff #ccc;
    scrollbar-width: thin;

    scrollbar-face-color: #007bff;
    scrollbar-track-color: #ccc;
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #ccc; 
}
::-webkit-scrollbar-thumb {
    background: #007bff;
}
::-webkit-scrollbar-thumb:hover {
    background: #68767b; 
}
/* select2 */
.select2-container--default .select2-results > .select2-results__options {
    max-height: 360px;
}
/* image */
.square,
.circle,
.image-3-2,
.image-16-9 {
    width: 100%;
    height: auto !important;
    position: relative;
}
.square:after,
.circle:after,
.image-3-2:after,
.image-16-9:after {
    content: "";
    display: block;
}

.square img,
.circle img,
.image-3-2 img,
.image-16-9 img {
    display: block;
    margin: 0 auto;
    position: absolute;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.square:after {
    padding-bottom: 100%;
}
.circle {
    border-radius: 100%;
    overflow: hidden;
}
.circle:after {
    padding-bottom: 100%;
}
.image-3-2:after {
    padding-bottom: 66.66%;
}
.image-16-9:after {
    padding-bottom: 56.25%;
}

/* Module Loading */
#loading_box {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
}
#loading_image {
    width: 100%;
    height: 100%;
    background: url('../img/loading_image.gif') no-repeat center center;
    background-size: 50px 50px;
}
/* Module loading in box  */
.loading {
    position: relative;
    z-index: 0;
}
.loading:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/loading_image.gif') no-repeat center center;
    background-size: 50px;
    z-index: 10001;
}
.loading:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}
/* Module progress  */
.progress-box {
	position: fixed;
	top: 0;
	width: 100%;
	height: 3px;
	background: #ffffff;
	transition: 0.1s;
	z-index: 100000;
	display: none;
}
.progress-run {
	height: 100%;
	width: 0;
	background: #0000ff;
	display: block;
	transition: 0.1s;
}
/* input copy */
#copy-input {
    opacity: 0;
    height: 0;
    width: 5px;
    position: absolute;
    top: -1px;
    left: -1px;
}
/* link-group */
.link-group {
    width: 100%;
    float: left;
    clear: both;
    list-style: none;
    padding: 0;
    margin: 0;
}
.link-group-item {
    float: left;
    padding: 0px 5px;
    border-right: 1px solid #cccccc;
}
.link-group-item:first-child {
    padding-left: 0;
}
.link-group-item:last-child {
    border-right: none;
    padding-right: 0;
}
/* form-inline table */
.listdata .card-header {
    padding: 10px 10px 0 10px;
}
.listdata .card-footer {
    padding: 10px;
    border-top: 1px solid #dee2e6;
}
@media (max-width: 576px) {
    .listdata .card-footer .footer-action {
        width: 100%;
    }
    .listdata .card-footer .footer-action button {
        margin-bottom: 10px;
    }
}
.listdata .form-inline .form-group {
    margin-right: 5px;
    margin-bottom: 10px;
}
.listdata .input-sm {
    height: 31px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* Bảng listdata */
.listdata .pagination {
    margin-bottom: 0;
}
.listdata .table {
    min-width: 1170px;
}
.listdata .table th,
.listdata .table td {
    padding: 8px 8px !important;
    font-size: 14px;
}
.listdata .table th {}
.listdata .table .lang {
    padding-right: 0 !important;
}
.listdata .table .lang span {
    width: 16px;
    float: left;
    display: inline-block;
    margin-right: 8px;
}
.listdata .table .lang span:last-child {
    margin-right: 0px;
}
.listdata .table .lang span img {
    width: 16px;
    height: 16px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
.listdata .table .lang span i {
    width: 16px;
    height: 31px;
    display: block;
    text-align: center;
    line-height: 31px;
    font-size: 14px;
}
.listdata .table td {}
.listdata .card-header .search-container {
    width: calc(100% - 215px);
}
.listdata .card-header .action-container {
    max-width: 215px;
}
.listdata .card-header .action-container a {
    margin-bottom: 10px;
}
@media only screen and (max-width: 991.98px) {
    .listdata .card-header .search-container {
        width: 100%;
    }
    .listdata .card-header .action-container {
        width: 100%;
    }
}
@media (max-width: 576px) {
    .listdata .card-header .search-container .form-group {
        width: 100%;
    }
    .listdata .card-header .search-container .form-control {
        width: 100%;
    }
}
/* listdata collum */
.listdata .table-action {
    width: 50px;
}
.listdata .table-image {
    height: 60px;
    width: 60px;
    padding: 5px;
}
.listdata .table-image img {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
.listdata .table-array {
    width: 160px;
}
.listdata .table-checkbox {
    width: 30px;
}
/* listdata auth */
.auth {
    width: 100%;
    float: left;
    margin-bottom: 10px;
}
.auth:last-child {
    margin-bottom: 0;
}
.auth-box {
    width: 100%;
    float: left;
    max-height: 100px;
    overflow: auto;
}
.auth-title {
    float: left;
    margin-right: 10px;
    margin-bottom: 8px;
    font-weight: bold;
    width: 135px;
}
.auth-list {
    width: calc(100% - 145px);
    float: left;
}
.auth-list .item {
    float: left;
    margin-right: 10px;
    margin-bottom: 7px;
    font-size: 12px;
    background: #dddddd;
    padding: 2px 6px;
    border-radius: 3px;
}
.auth-list .item.active {
    background: #28a745;
    color: #ffffff;
}
/* form */
.helper {
    width: 100%;
    float: left;
    clear: both;
    font-size: 80%;
    line-height: 20px;
}

.form-actions {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 100;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2)
    
}
.form-actions__group {
    float: right;
}
.form-title {
    width: calc(100% + 40px);
    clear: both;
    float: left;
    font-size: 14px;
    font-weight: 400;
    margin: 0 -20px 15px;
    padding: 10px 20px;
    background: rgba(0,0,0,.125);
    font-weight: bold;
}
.form-loading {
    position: absolute;
    width: 38px;
    height: 38px;
    top: 0;
    right: 10px;
    padding: 10px;
}
/* form checkbox */
.form-group-checkbox {
    width: 100%;
    float: left;
    clear: both;
    background: #9a9c9e;
    padding: 5px 8px 0;
    border-radius: 3px;
    max-height: 325px;
    overflow: auto;
}
.form-group-checkbox .form-checkbox {
    padding: 0;
    margin-bottom: 8px;
}
.form-group-checkbox .form-checkbox label {
    color:  #ffffff;
    font-weight: normal;
    font-size: 13px;
    margin-bottom: 0;
    cursor: pointer;
}
.form-checkbox {
    width: 100%;
    float: left;
    padding: 5px 0;
}
.btn-checkbox {
    -webkit-appearance: none;
    background-color: #ced4da;
    padding: 0px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    vertical-align: middle;
    border-radius: 5px;
    outline: none;
}
.btn-checkbox:checked {
    background: url('../img/btn-checkbox.png');
    background-size: 20px 20px;
    color: #e9ecee;
}
.form-radio {
    width: 100%;
    float: left;
    padding: 10px 0 8px;
}
.form-radio__group {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}
.form-radio label {
    line-height: 18px;
    float: left;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal !important;
}
.btn-radio {
    -webkit-appearance: none;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 0px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 18px;
    float: left;
}
.btn-radio:checked {
    background: url('../img/icon-radio-checked.png');
    background-size: 18px 18px;
    color: #e9ecee;
    border:none;
}
@media only screen and (max-width: 992px) {
    .form-horizontal label.text-right {
        text-align: left !important;
    }
}
/* tự động tạo mật khẩu */
.strength {
    width: 100%;
    float: left;
    clear: both;
    padding: 3px 0;
}
.strength-result {
    width: 100%;
    float: left;
    clear: both;
    font-size: 10px;
    display: block;
    transition: 1s;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 3px;
}
.strength-box {
    width: 100%;
    float: left;
    clear: both;
}
.strength-box__list {
    float: left;
    margin-right: 4px;
    position: relative;
    border: 1px solid silver;
    width: 20px;
    height: 8px;
}
.strength1 .strength-box__list:nth-child(1) {
    background: #424f63;
}
.strength2 .strength-box__list:nth-child(1),
.strength2 .strength-box__list:nth-child(2) {
    background: #424f63;
}
.strength3 .strength-box__list:nth-child(1),
.strength3 .strength-box__list:nth-child(2),
.strength3 .strength-box__list:nth-child(3) {
    background: #424f63;
}
.strength4 .strength-box__list:nth-child(1),
.strength4 .strength-box__list:nth-child(2),
.strength4 .strength-box__list:nth-child(3),
.strength4 .strength-box__list:nth-child(4) {
    background: #424f63;
}
.strength5 .strength-box__list {
    background: #424f63;
}
/* tags */
.tags {}
.tags-item {
    float: left;
    margin: 10px 10px 0 0;
}
.tags-item__text {
    float: left;
    background: #ced4da;
    padding: 3px 10px;
    font-size: 13px;
    line-height: 22px;
}
.tags-item__remove {
    float: left;
    background: #ff0000;
    color:  #ffffff;
    padding: 3px 8px;
    font-size: 13px;
    cursor: pointer;
    line-height: 22px;
}
/* suggest */
.suggest {
    position: relative;
}
.suggest .suggest-result {
    position: absolute;
    top: 37px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 7px;
    display: none;
    z-index: 1000;
}
.suggest .suggest-result ul {
    border: 1px solid #ced4da;
    background: #ffffff;
    list-style: none;
    margin-bottom: 0;
    padding: 0;
    border-radius: 5px;
    max-height: calc(35px * 10);
    box-shadow: 5px 6px 10px 0px rgba(0,0,0,.2);
    overflow: auto;
}
.suggest .suggest-result ul li {
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid #ced4da;
}
.suggest .suggest-result ul li:hover {
    background: #ced4da;
}
/* ảnh */
.image-box {
    width: 100%;
    float: left;
    clear: both;
}
.image-box__btn {
    clear: both;
    float: left;
}
.image-box__content {
    width: 100%;
    float: left;
    clear: both;
    margin: 10px 0 5px 0;
}
.image-box__content .item {
    width: 100px;
    height: 100px;
    float: left;
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #cccccc;
    margin-right: 5px;
    margin-bottom: 5px;
    background: #f4f6f9;
    cursor: pointer;
}
.image-box__content .item img {
    max-height: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.image-box__content .item .item-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.6);
    color:  #ffffff;
    margin-bottom: 0;
    font-size: 10px;
    padding: 3px;
    line-height: 12px;
    max-height: 32px;
    overflow: hidden;
}
.image-box__content .item .item-delete {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    background: rgba(255, 0, 0, 0.5);
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    color:  #ffffff;
    font-size: 10px;
}

/* media */
#media {}
#media .close {
    position: absolute;
    right: -15px;
    top: -15px;
    z-index: 1;
    background: #ff0000;
    opacity: 1;
    border-radius: 30px;
}
#media .close i {
    width: 30px;
    height: 30px;
    color:  #ffffff;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    cursor: pointer;
}
#media .modal-dialog {
    max-width: 90%;
}
#media .modal-content {}
#media .modal-body {
    padding: 0;
    width: 100%;
    height: calc(100vh - 60px);
}
#media iframe{
    width: 100%;
    height: 100%;
    float: left;
}
@media only screen and (max-width: 575px) {
    #media .modal-dialog {
        max-width: 100%;
        margin: 30px 8px 30px;
    }
    #media .modal-body {
        height: calc(100vh - 60px);
    }
}

/* role */
.role {}
.role-item {
    width: 100%;
    float: left;
    background: #ececec;
    margin-bottom: 10px;
}
.role-item__name {
    width: 100%;
    float: left;
}
.role-item__name-text {
    width: 100%;
    float: left;
    background: #C1C1C1;
    color:  #ffffff;
    padding: 5px 10px;
    margin-bottom: 0;
    font-weight: bold;
    cursor: pointer;
}
.role-item__permission {
    width: 100%;
    float: left;
    padding: 10px;
}
.role-item__permission .item {
    float: left;
    margin-right: 20px;
}
.role-item__permission .item .btn-checkbox {
    float: left;
    margin-right: 7px;
}
.role-item__permission .item label {
    font-weight: normal;
    font-size: 14px;
    margin-bottom: 0;
    float: left;
    line-height: 20px;
    cursor: pointer;
}
/* logs */
.logs {
    padding: 10px;
}
.logs-info {
    padding: 0 0 10px;
}
.logs-info__table {
    margin-bottom: 5px;
}
.logs-info__table td,
.logs-info__table th {
    padding: 8px;
}
.logs-info__table td:first-child {
    width: 250px;
    font-weight: bold;
}
.logs-table {}
.logs-table td,
.logs-table th {
    padding: 8px;
}
.logs-table td:first-child {
    width: 250px;
    font-weight: bold;
}
/* table-form */
.table-form {
    width: 100%;
    float: left;
    clear: both;
    overflow: auto;
}
.table-form * {
    outline: none !important;
}
.table-form__table {
    float: left;
    width: 100%;
    border-spacing: 0px;
    border-collapse: collapse;
}
.table-form__control {
    width: 100%;
    float: left;
    height: 35px;
    border: none;
    padding: 5px;
    vertical-align: top;
    font-size: 14px;
}
.table-form__control {
    border-bottom: 1px solid #cccccc;
}
.table-form__control:last-child {
    border-bottom: none;
}
.custom-image {
    width: 105px;
    float: left;
}
.custom-image img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    float: left;
    background: #ffe6e6;
}
.custom-image .add-image,
.custom-image .remove-image {
    width: 35px;
    height: 35px;
    float: left;
    border: none;
}
.custom-image .add-image {
    background: #007bff;
    color: #ffffff;
}
.custom-image .remove-image {
    background: #ff0000;
    color: #ffffff;
}
.table-form__table thead td {}
.table-form__table thead td p {
    margin-bottom: 0;
    padding: 0 10px;
    line-height: 35px;
}
.table-form__table thead td .add {
    border: none;
    width: 100%;
    height: 35px;
    background: #007bff;
    color: #ffffff;
}
.table-form__table tbody {
    position: relative;
}
.table-form__table tr {
    width: 100%;
    background: #ffffff;
}
.table-form__table td {
    vertical-align: top;
    border: 1px solid #cccccc;
    padding: 0;
}
.table-form__table-image {
    width: 105px;
}
.table-form__table-text {
    min-width: 200px;
}
.table-form__table-text .table-form__control {
    vertical-align: middle !important;
}
.table-form__table-textarea {
    min-width: 200px;
}
.table-form__table-textarea .table-form__control {
    height: 70px;
}
.table-form__table-custom {
    min-width: 200px;
}
.table-form__table-custom textarea {
    height: 70px;
}
.table-form__table-action {
    width: 35px;
    vertical-align: middle !important;
}
.table-form__table-action button,
.table-form__table-action span  {
    width: 35px;
    height: 35px;
    float: left;
    clear: both;
    border: none;
    font-size: 12px;
    text-align: center;
    line-height: 35px;
}
.table-form .ui-sortable-helper {
    width: 100% !important;
    box-shadow: 0 0 5px 3px rgba(0,0,0,.2);
    display: table;
}
.table-form .ui-sortable-helper td {
    display: table-cell;
}
.table-form .ui-sortable-placeholder {
    border: 1px dashed #cccccc;
    height: 70px;
    width: 100%;
    visibility: visible !important;
}
.table-form .ui-sortable-placeholder td {
    border: none;
}