html, body{
    background-color: #fff;
}

.form-control{
    margin-bottom: 25px;
    min-height: 40px;
    letter-spacing: 1px;
}
.btn:focus, .btn:active:focus, .btn.active:focus{
    outline: none;
}
.input-group .form-control{
    z-index: 0;
}

/* Điều hướng */
.box-nav{
    position: fixed;
    width: 280px;
    height: 100%;
    background: #f8f8f8;
    border-right: 1px solid #e7e7e7;
    z-index: 1;
    left:0;
    top: 0;
    transition:all 0.5s;
}
body.checktokenwaiting .box-nav{
    display: none;
}
.box-nav .action{
    position: absolute;
    font-size: 20px;
    background: #eee;
    width: 40px;
    height: 40px;
    color: #337ab7;
    text-align: center;
    cursor: pointer;
    border-right: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
    line-height: 40px;
    right: -41px;
    z-index: 1;
}
.box-nav .action:before{
    content: "\f100";
}
body.in .box-nav{
    /* Thu gọn */
    left: -280px;
}
body.in .box-nav .action:before{
    content: "\f101";
}

.box-nav .logo{
    
}
.box-nav .logo a{
    padding: 0;
}
.box-nav .logo img{
    max-width: 100%;
    display: block;
    max-height: 180px;
}

.box-nav ul{
    margin:0;
    padding: 0 0;
    list-style: none;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}
.box-nav li{
    border-bottom: 1px solid #ddd;
}
.box-nav ul::-webkit-scrollbar{
    width: 0px;
}
.box-nav i.fa{
    width: 25px;
    color: #da5a32;
}
.box-nav span.arrow{
    float: right;
    font-size: 20px;
    width: 18px;
    text-align: center;
}
.box-nav span.arrow:before{
    content: "\f104";
}
.box-nav li.active span.arrow:before{
    content: "\f107";
}
.box-nav a{
    display: inline-block;
    width: 100%;
    padding: 10px;
    color: #013C4B;
}
.box-nav a.active{
    font-weight: bold;
    color: #333;
}

.box-nav ul.sub{
    position: relative;
    padding: 0 0 0 25px;
    display: none;
}
.box-nav ul.sub li{
    border:0;
}
.box-nav li.active ul.sub{
    display: block;
}

/* Khung hiện thị chính */
.box-viewport{
    overflow: hidden;
    overflow-y: auto;
    position: relative;
    margin-left: 280px;
    transition:all 0.5s;
    padding-top: 40px;
    height: calc(100%);
}
body.checktokenwaiting .box-viewport{
    display: none;
}
body.in .box-viewport{
    /* Thu gọn */
    margin-left: 0;
}

/* Tiêu đề */
.box-title{
    color: #333;
    background-color: #f8f8f8;
    font-weight: bold;
    padding: 0;
    height: 40px;
    border-bottom: 1px solid #ddd;
    line-height: 40px;
    margin-left: 40px;
    padding-left: 15px;
    display: block;
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1;
}
.box-title a{
    color: #da5a32;
}
.box-title i.fa{
    padding: 0 8px;
}

/* Bộ lọc */
.box-filter{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
}
.box-filter .nav{
    display: flex;
    max-width: 100%;
    padding-left: 40px;
    overflow-x: auto;
    position: fixed;
    right: 0;
}
.box-filter .option{
    line-height: 40px;
    background: #0787ef;
    border-right: 1px solid #ddd;
    white-space: nowrap;
    padding: 0 10px;
    color: #FFF;
    cursor: pointer;
}
.box-filter .action{
    line-height: 40px;
    background: #0787ef;
    border-right: 1px solid #ddd;
    white-space: nowrap;
}
.box-filter .action a{
    color: #FFF;
    padding: 0 10px;
}
.box-filter .name{
    color: #FFF;
    background: #39a924;
    cursor: pointer;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    white-space: nowrap;
}
.box-filter .name a{
    color: #FFF;
}
.box-filter .name i.fa:after{
    content: "\f0d7";
    padding-left: 5px;
}
.box-filter.active .name i.fa:after{
    content: "\f0d8";
}
.box-filter .list{
    background: #b95921;
    color: #fff;
    z-index: 1;
    border-top: 0;
    position: absolute;
    transition:all 0.15s;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    top:39px;
    width: 220px;
    right:-250px;
    max-height: calc(100vh - 42px);
    overflow: auto;
}
.box-filter .list:before{
    content: '';
    width: 0;
    height: 0;
    position: absolute;
    top: -5px;
    right: 40px;
    border-bottom: 10px solid #b95921;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}
.box-filter.active .list{
    right:0;
}
.box-filter .list label{
    display: inline-block;
    width:100%;
    font-weight: normal;
    cursor: pointer;
    margin:0;

    line-height: 30px;
    border-bottom: 1px solid #ddd;
    padding-left: 10px;
    position: relative;
}
.box-filter .list label:last-child{
    border:0;
}
.box-filter .list input{
    position: absolute;
    right: 8px;
    top: 4px;
}
.box-filter.nameonly .name{
    width: 100%;
}
.box-filter.nameonly .list:before{
    left: auto;
    right: 40px;
}

/* Nội dung */
.box-content{
    width: 100%;
    height: calc(100%);
}

/* Bảng danh sách dữ liệu */
.box-tablelist{
    z-index: 0;
    position: relative;
    width: 100%;
}
.box-tablelist.mobile{
    overflow: auto;
}
.box-tablelist form{
    max-height: calc(100vh - 40px);
    padding-bottom: 40px;

    /* Sử dụng thanh cuộn trình duyệt.
    Bỏ để sử dụng chức năng giữ chuột và kéo */
    overflow: auto;
}
.box-tablelist table{
	white-space: nowrap;
	margin: 0;
	border: none;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
    min-width: 100%;
    border-bottom: 1px solid #ccc;
}
.box-tablelist table thead{
    z-index: 2;
    position: relative;
}
.box-tablelist table tbody{
    /* cursor: move; */
    z-index: 1;
    position: relative;
}
.box-tablelist table td,
.box-tablelist table th{
	background: #fff;
    padding: 8px 15px;

	border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    vertical-align: top;
}
.box-tablelist table tr:nth-child(2n) td{
    background-color: #f2f8ff;
}
.box-tablelist table td input{
    background-color: transparent;
    border-bottom: 1px dotted #ccc!important;
    line-height: 18px!important;
    padding: 0!important;
}
.box-tablelist table td input[disabled]{
    opacity: 0.7;
    font-weight: bold;
    cursor: grab;
}
.box-tablelist table th {
	width: 25vw;
    padding: 8px 12px;
}
.box-tablelist table th.input{
	width: 25vw;
    padding: 0;
}
.box-tablelist table .search{
    padding: 8px 12px;
    border: 0;
    width: 100%;
    font-weight: normal;
    line-height: 20px;
}
.box-tablelist table .search:focus{
    outline: none;
}
.box-tablelist table .sticky{
	position: sticky;
	background: #fff;
}
.box-tablelist table [status-color="1"]{
    color: #079f1a;
}
.box-tablelist table .highlight{
    cursor: pointer;
    color: #0787ef;
}

/* Checklist */
.box-checklist{
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    margin-bottom: 30px;
}
.box-checklist::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}
.box-checklist::-webkit-scrollbar
{
	width: 1px;
	background-color: #F5F5F5;
}
.box-checklist::-webkit-scrollbar-thumb
{
	background-color: #000000;
	border: 1px solid #555555;
}
.box-checklist label{
    font-weight: normal;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    padding-bottom: 10px;
}
.box-checklist input{
    margin-right: 10px;
}

/* Biểu mẫu */
.box-form{
    padding:15px 20px;
}

/* Phân trang */
.box-pageNavigation{
    padding:15px 0!important;
    font-size: 12px;
    font-weight: bold;
}
.box-pageNavigation span{
    cursor: pointer;
    color: #fff;
    margin: 0 4px;
    padding: 5px 10px;
    font-size: 16px;
    background: #0787ef;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    font-weight: normal;
}
.box-pageNavigation span.current, .box-pageNavigation span:hover{
    background: #da5a32;
}
.box-pageNavigation input{
    display: none;
}
@media screen and (max-width:768px){
    .box-content{
        overflow-x: auto;
    }
}