/*
 * n01_t_stats.css
 *
 * Copyright (C) 1996-2022 by Ohno Tomoaki. All rights reserved.
 */

body {
	-webkit-text-size-adjust: 100%;
	-ms-content-zooming: none;
	
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);

	font-family: Arial;

	--back-color: #ffffff;
	--text-color: #000000;
	--surface-color: #ffffff;
	--surface-text: #000000;
	--subtle-color: #f4f4f4;
	--hover-color: #e0e0e0;
	--active-color: #c0c0c0;
	--border-color: #e0e0e0;
	--none-color: #e0e0e0;
	--muted-color: #808080;
	--selected-color: #f4f4f4;
	--select-color: #006cff;
	--tab1-color: #e3f2fd;
	--tab2-color: #fff3e0;
	--tab3-color: #fce4ec;
	--tab4-color: #e8f5e9;
	--tab1-sel-color: #d1e8fc;
	--tab2-sel-color: #ffeaca;
	--tab3-sel-color: #fad0df;
	--tab4-sel-color: #d9eeda;

	background-color: var(--back-color);
	color: var(--text-color);
}

ins {
	background-color: var(--back-color);
	color: var(--text-color);
}

html {
	min-height: calc(100% + env(safe-area-inset-top));
	padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#header {
	padding-top: env(safe-area-inset-top);
}

#article {
	margin: 10px;
	padding: 50px 0 env(safe-area-inset-bottom) 0;
}

input[type="button"] {
	cursor: pointer;
	-webkit-appearance: none;
	padding: 10px;

	border: 1px solid var(--border-color);
	border-radius: 10px 10px 0 0;
	-webkit-border-radius: 10px 10px 0 0;
	-moz-border-radius: 10px 10px 0 0;
}

#button_team {
	background-color: var(--tab1-color);
	color: var(--muted-color);
}

#button_player {
	background-color: var(--tab2-color);
	color: var(--muted-color);
}

#button_highout {
	background-color: var(--tab3-color);
	color: var(--muted-color);
}

#button_highin {
	background-color: var(--tab3-color);
	color: var(--muted-color);
}

#button_bestleg {
	background-color: var(--tab4-color);
	color: var(--muted-color);
}

.tab_select {
	border: 2px solid var(--border-color) !important;
	color: var(--surface-text) !important;
	font-weight: bold;
	margin-bottom: -4px;
	padding-top: 10px !important;
}

#entry_list_container {
	width: fit-content;
}

.entry_list_table {
	border: 1px solid var(--border-color);
	width: 100%;
}

.entry_list_table th {
	position: -webkit-sticky;
	position: sticky;
	top: 51px;
	z-index: 1;
}

.sticky td:nth-child(1), .sticky th:nth-child(1) {
	position: -webkit-sticky;
	position: sticky;
	left: -1px;
}

.sticky td:nth-child(2), .sticky th:nth-child(2) {
	position: -webkit-sticky;
	position: sticky;
	left: -1px;
}

#entry_list_bestleg td:nth-child(3), #entry_list_bestleg th:nth-child(3) {
	position: -webkit-sticky;
	position: sticky;
	left: -1px;
}

th {
	border-bottom: 3px solid var(--border-color);
	vertical-align: middle;
	background-clip: padding-box;
	white-space: nowrap !important;
}
#entry_list th {
	background-color: var(--tab1-color) !important;
}
#entry_list_player th {
	background-color: var(--tab2-color) !important;
}
#entry_list_hightout th {
	background-color: var(--tab3-color) !important;
}
#entry_list_bestleg th {
	background-color: var(--tab4-color) !important;
}

.th_no {
	text-align: right;
}

.th_name, .th_team {
	border-right: 1px solid var(--border-color);
	text-align: left;
}

#entry_list_bestleg .th_team {
	border-right: 0px solid var(--border-color);
}

.th_player {
	text-align: left;
}

.th_id {
	border-right: 1px solid var(--border-color);
	text-align: left;
}

.th_group {
	text-align: right;
}

.th_set_no {
	text-align: right;
}

#entry_list_bestleg .th_set_name {
	border-right: 1px solid var(--border-color);
}

.th_stats {
	text-align: right;
}

.entry_list_table td {
	border-bottom: 1px solid var(--border-color) !important;
	background-clip: padding-box;
}

.entry_list_table tr, .entry_list_table tr:hover {
	color: var(--surface-text) !important;
}

.e_no {
	text-align: right;
}

.e_name {
	border-right: 1px solid var(--border-color);
	word-break: break-word;
}

.e_player {
	word-break: break-word;
}

.e_id {
	border-right: 1px solid var(--border-color);
	word-break: break-word;
}

.e_group {
	text-align: right;
}
.e_set_no {
	text-align: right;
}
#entry_list_bestleg .e_set_name {
	border-right: 1px solid var(--border-color);
}

#entry_list .e_fix {
	background-color: var(--tab1-color) !important;
}
#entry_list_player .e_fix {
	background-color: var(--tab2-color) !important;
}
#entry_list_hightout .e_fix {
	background-color: var(--tab3-color) !important;
}
#entry_list_bestleg .e_fix {
	background-color: var(--tab4-color) !important;
}

#entry_list .th_no, #entry_list .th_name {
	z-index: 3 !important;
}
#entry_list .e_no, #entry_list .e_name {
	z-index: 2 !important;
}

#entry_list_player .th_no, #entry_list_player .th_player {
	z-index: 3 !important;
}
#entry_list_player .e_no, #entry_list_player .e_player {
	z-index: 2 !important;
}

#entry_list_hightout .th_no, #entry_list_hightout .th_player {
	z-index: 3 !important;
}
#entry_list_hightout .e_no, #entry_list_hightout .e_player {
	z-index: 2 !important;
}

#entry_list_bestleg .th_set_name {
	z-index: 3 !important;
}
#entry_list_bestleg .e_set_name {
	z-index: 2 !important;
}

.stats {
	text-align: right;
}

.flag {
	vertical-align: middle;
}

.e_startScore {
	color: var(--muted-color);
}

table.tablesorter tbody tr.selected td {
	background-color: var(--selected-color);
}

#entry_list.tablesorter tbody tr.selected .e_fix {
	background-color: var(--tab1-sel-color) !important;
}

#entry_list_player.tablesorter tbody tr.selected .e_fix {
	background-color: var(--tab2-sel-color) !important;
}

#entry_list_hightout.tablesorter tbody tr.selected .e_fix {
	background-color: var(--tab3-sel-color) !important;
}

#entry_list_bestleg.tablesorter tbody tr.selected .e_fix {
	background-color: var(--tab4-sel-color) !important;
}

#error_msg {
	width: calc(100vw - 50px);
	margin: 20px 0;
	padding: 10px;
	background-color: var(--surface-color);
	color: red;
}

@media print {
	body {
		background-color: #fff !important;
		color: #000 !important;
	}
	#article {
		padding-top: 0 !important;
	}
	.entry_list_table {
		box-shadow: none !important;
		outline: 2px solid #808080;
	}
	.entry_list_table th, .sticky td:nth-child(1), .sticky th:nth-child(1), .sticky td:nth-child(2), .sticky th:nth-child(2), #entry_list_bestleg td:nth-child(3), #entry_list_bestleg th:nth-child(3) {
		position: initial;
	}
	.adsbygoogle {
		display: none !important;
	}

	.tab_select {
		border: 2px solid #808080 !important;
	}
	.entry_list_table {
		border: 1px solid #808080;
	}
	th {
		border-bottom: 3px solid #808080 !important;
	}
	.th_name, .th_team {
		border-right: 1px solid #808080;
	}
	#entry_list_bestleg .th_team {
		border-right: 0px solid #808080;
	}
	.th_id {
		border-right: 1px solid #808080;
	}
	#entry_list_bestleg .th_set_name {
		border-right: 1px solid #808080;
	}
	.entry_list_table td {
		border-bottom: 1px solid #808080 !important;
	}
	.e_name {
		border-right: 1px solid #808080;
	}
	.e_id {
		border-right: 1px solid #808080;
	}
	#entry_list_bestleg .e_set_name {
		border-right: 1px solid #808080;
	}
}
