.custom_table {
	position: relative;
	padding: 20px;
	max-width: 960px;
	width: 100% !important;
	background-color: var(--boxbg);
	margin: 20px auto !important;
	border-radius: 2px;
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
	border-bottom: 0px solid transparent !important;
	font-size: 13px;
	text-align: left;
}

.custom_table_title {
	padding: 10px 5px;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
}

.custom_table_pre_header {
	position: relative;
	overflow: hidden;
}

.custom_table_page_length_box {
	float: left;
}

.custom_table_page_length {
    padding: 6px 12px;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
	float: left;
}

@media screen and (max-width: 905px) {
	.custom_table_button_text {
		display: none;
	}
}

.custom_table_top_buttons {
	float: right;
}

.custom_table_top_button_select_deselect_all {
	margin-left: 4px;
}

.custom_table_top_button {
	float: right;
	margin-left: 4px;
}
.custom_table_top_button_selected {
	background-color: orange !important;
}

.custom_table_header {
	position: relative;
	overflow: hidden;
	white-space: nowrap; 
}

.custom_table_header_column {
	display: inline-block;
	font-weight: bold;
	text-align: center;
	padding: 5px;
	white-space: nowrap; 
	text-overflow: ellipsis;
	cursor: pointer;
	overflow: hidden;
}

.custom_table_header .sorted_asc {
	background-image: url(../images/sort_asc.png);
	background-repeat: no-repeat;
	background-position: right center; 
}

.custom_table_header .sorted_desc {
	background-image: url(../images/sort_desc.png);
	background-repeat: no-repeat;
	background-position: right center; 
}

.custom_table_header_column_actions {
	width: 100px;
}

.custom_table_data_actions {
	width: 100px;
}

.custom_table_data {
	position: relative;
	overflow: hidden;
}

.custom_table_data .row_selected {
	background-color: var(--row_selected) !important;
}

.custom_table_loading {
	position: absolute;
	display: none;
	background-color: rgba(255, 255, 255, 0.5);
	background-image: url(../images/custom_table_loading.gif);
	background-repeat: no-repeat;
	background-position: center; 
	left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
	z-index: 100;
}

.custom_table_data_row_no_data {
	padding: 20px 0 20px 0;
	text-align: center; 
	border-top: 1px solid black; 
	border-bottom: 1px solid black; 
	font-weight: bold;
}

.custom_table_data_row {
	height: 50px;
	white-space: nowrap; 
	cursor: default;
	-moz-user-select: none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	user-select: none;
}

.custom_table_data_row:first-child .custom_table_data_column {
	border-top: 1px solid #888888;
}

.custom_table_data_row:nth-child(odd) {
	background-color: #f9f9f9;
}

.custom_table_data_row:nth-child(even) {
	background-color: white;
}

.custom_table_data_row:nth-child(odd):hover {
	background-color: #f0f0f0;
}

.custom_table_data_row:nth-child(even):hover {
	background-color: #f0f0f0;
}

.custom_table_data_column {
	display: inline-block;
	height: 100%;
	padding: 15px 5px 5px 5px;
	text-align: left;
	white-space: nowrap; 
	text-overflow: ellipsis;
	overflow: hidden;
}

.custom_table_data_column {
	border-left: 1px solid #BBBBBB;
	border-bottom: 1px solid #BBBBBB;
}
	
.custom_table_data_column:last-child {
	border-right: 1px solid #BBBBBB;
}

.custom_table_data_row .custom_table_data_actions {
	padding: 7px 5px 5px 5px;
}

.custom_table_data_column_check {
	text-align: center;
}

.custom_table_data_column_number {
	text-align: center;
}

.custom_table_search_row {
	position: relative;
	overflow: hidden;
	white-space: nowrap; 
}

.custom_table_search_column {
	display: inline-block;
	text-align: left;
	padding: 5px;
	white-space: nowrap; 
	text-overflow: ellipsis;
	overflow: hidden;
}

.custom_table_search_column input {
	width: 100%;
}

.custom_table_search_column button {
	width: 100%;
	height: 24px;
    font-size: 10px;
    border: 1px solid rgb(238, 238, 238);
}

.custom_table_footer {
	position: relative;
	padding-top: 5px;
	overflow: hidden;
	border-top: 1px solid #888888;
}
.custom_table_footer_export_buttons {
	float: left;
}

.custom_table_footer_export_button {
	margin-right: 10px;
}

.custom_table_footer_pagination {
	float: right;
}

.custom_table_footer_pagination_button {
	margin-left: 10px;
}

.center-text {
	text-align: center;
}



/* ################################################ */
/* MODAL CUSTOM TABLE */

#modal_custom_table {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

#modal_custom_table_container {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin-top: 30px;
}

#modal_custom_table_box {
	width: 100%;
	padding: 20px;
    background-color: #F7F7F7;
    margin: 20px auto !important;
    border-radius: 2px;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    border-bottom: 0px solid transparent !important;
    text-align: left;
}

#modal_custom_table_title {
	font-size: 20px;
	text-align: center;
}

#modal_custom_table .custom_table {
	margin-top: 0px !important;
}

#modal_custom_table .custom_table_data_row {
	cursor: pointer;
}