/* Validation
---------------------------------------------------------*/
.form-input.error {
    border-color: #dc3545 !important;
    background-color: #ffe6e6;
}
.form-select.error {
    border-color: #dc3545 !important;
    background-color: #ffe6e6;
}
.form-file.error {
    border-color: #dc3545 !important;
    background-color: #ffe6e6;
}

/* Box table
----------------------------------------------------------------- */
#box_table {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5px;
}

#box_table_body {
    flex: 1;
    background-color: #c6c6c6;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#box_table_footer {
    height: 45px;
    width: 100%;
    flex-shrink: 0;
    background-color: #ececec;
    border-top: 1px solid #dee2e6;
}


/* table
----------------------------------------------------------------- */
.tb_fix_box {
    flex: 1;
    overflow: auto;
}

.tb_fix {
    border: 0;
    border-collapse: separate;
    /* border-collapse:collapse; */
    border-spacing: 0;
}

.tb_fix thead th,
tfoot td {
    z-index: 1;
}

.tb_fix thead th {
    position: sticky;
    top: 0;
    background-color: #dfdfdf;
    background-clip: padding-box;
    height: 35px;
    line-height: 22px;
    padding: 2px;
    text-align: center;
    box-sizing: border-box;
    border-top: 3px solid #676767;
    border-bottom: 1px solid #676767;
    border-right: 0.5px solid #676767;
    border-left: 0.5px solid #676767;
    z-index: 1;
}

.tb_fix thead th:first-child {
    border-left: 1px solid #676767;
}

.tb_fix thead th:last-child {
    border-right: 1px solid #676767;
}

.tb_fix tbody td {
    background-color: #ffffff;
    height: 25px;
    padding: 2px;
    box-sizing: border-box;
    border-top: 1px solid #676767;
    border-bottom: 1px solid #676767;
    border-right: 0.5px solid #676767;
    border-left: 0.5px solid #676767;
}

.tb_fix tbody td:first-child {
    border-left: 1px solid #676767;
}

.tb_fix tbody td:last-child {
    border-right: 1px solid #676767;
}

.tb_fix tfoot td {
    position: sticky;
    bottom: 0;
    background-color: #dfdfdf;
    border-top: 1px solid #676767;
    border-bottom: 1px solid #676767;
    border-right: 0.5px solid #676767;
    border-left: 0.5px solid #676767;
}


.tb_fix td.sum {
    border-top: 3px solid #666;
    border-left: 1px solid #FFF;
    border-bottom: 1px solid #FFF;
}

.tb_fix td.sum_under {
    border-top: 3px solid #666;
    border-bottom: 7px double #666;
}

.tb_fix td.sum_under_top {
    border-top: 3px solid #666;
    border-top: 3px solid #666;
}

.tb_fix tr:hover td {
    background: #f2f5ff;
}



.tb_list {
    border: 0;
    border-collapse: collapse;
}

.tb_list tfoot tr:hover td {
    background: #dfdfdf;
}

.tb_list th {
    height: 35px;
    line-height: 22px;
    padding: 2px;
    text-align: center;
    box-sizing: border-box;
    background-color: #dfdfdf;
    border-top: 2px solid #676767;
    border-bottom: 5px solid #676767;
    border-right: 1px solid #676767;
    border-left: 1px solid #676767;
}

.tb_list td {
    height: 25px;
    padding: 2px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-top: 1px solid #676767;
    border-bottom: 1px solid #676767;
    border-right: 1px solid #676767;
    border-left: 1px solid #676767;
}

.tb_list td.sum {
    border-top: 3px solid #666;
    border-left: 1px solid #FFF;
    border-bottom: 1px solid #FFF;
}

.tb_list td.sum_under {
    border-top: 3px solid #666;
    border-bottom: 7px double #666;
}

.tb_list td.sum_under_top {
    border-top: 3px solid #666;
    border-top: 3px solid #666;
}

.tb_list tr:hover td {
    background: #f2f5ff;
}


td.td_r_none {
    border-right: 1px solid rgba(255, 255, 255, 0) !important;
}

td.td_t_none {
    border-top: 1px solid rgba(255, 255, 255, 0) !important;
}

td.td_b_none {
    border-bottom: 1px solid rgba(255, 255, 255, 0) !important;
}

tr.tr_active td {
    background: #ffd0d0;
}



/* pagination
----------------------------------------------------------------- */
.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #000000;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    margin-right: 1px;
    margin-left: 1px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.pagination .page-link:hover {
    background-color: #8fc5ff;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #ddd;
}

.pagination li.active a {
    background-color: #262626;
    color: white;
}

/* End ----------------------------------------------------------------- */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ddddddb0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-box {
    text-align: center;
}

.loader-text {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}


#pdf_view {
    background-image: url(../../images/icon/loading.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ddddddb0;
}