/*
|--------------------------------------------------------------------------
| Mã Màu
|--------------------------------------------------------------------------
*/
.red{
	color: #f00;
}

.blue{
	color: #7379db;
	font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| XS HOME STATS
|--------------------------------------------------------------------------
*/
.xs-home-section{
	border: 1px solid #d9e2f1;
	border-bottom: none;
	background:#fff;
}

.xs-home-section__bt {
	border-bottom: 1px solid #d9e2f1;
}

.xs-home-section h3{
	margin:0;
	padding:10px 8px;
	background:#edf4ff;
	color:#0d5aa7;
	font-size:16px;
	border-bottom:1px solid #d9e2f1;
}

.xs-home-section h3.bg__dblcr{
	margin:0;
	padding:10px 8px;
	background:#fdecd5;
	color: #B70000;
	font-size:16px;
	border-bottom:1px solid #d9e2f1;
} 

.xs-home-cards {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	padding: 6px;
	gap: 6px;
}

.xs-home-card{
	width: 15%;
	text-align: center;
	border: 1px solid #83adfc;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background: #fff4e1;
}

.xs-home-card .num{
	display: block;
	font-size: 13px;
	width: 30%;
	padding: 5px;
	color: #b3380f;
	font-weight: 700;
	background: #e1efff;
	border-right: 1px solid #83adfc;
}

.xs-home-card .day {
	display: block;
	font-size: 13px;
	width: 70%;
	color: #008000;
	font-weight: bold;
	background: #fff4e1;
}

#ttheadline {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 auto 10px;
}

.xs-home-time {
	color: #0D58A4;
	font-weight: 600;
	font-size: 15px;
	margin: 0 auto 10px;
}

.ttmsgplace {
    display: inline-block;
    background: #f8ffea;
	border: #b4eb41 1px solid;
	color: #434600;
	padding: 5px;
	font-size: 13px;
	margin: 0 auto 10px;
}

/*
|--------------------------------------------------------------------------
| CẶP GAN
|--------------------------------------------------------------------------
*/

.xs-pair-gan{
	padding: 10px 20px;
	margin: 0 0 0 1em;
}

.xs-pair-gan li{
	margin:8px 0;
	font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| BIỂU ĐỒ TÍM
|--------------------------------------------------------------------------
*/
.xs-pair-chart, .xs-db-chart{
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	gap:12px;
	height:200px;
	padding:0 10px 10px;
}

.xs-pair-bar, .xs-db-chart .xs-pair-bar {
	position:relative;
	width:100%;
	background: #7d83ff;
	min-height: 1px;
}

.xs-pair-day, .xs-db-chart .xs-pair-day {
	position:absolute;
	top:-24px;
	left:0;
	right:0;
	text-align:center;
	font-size: 11px;
	color: #545bd1;
}

.xs-pair-num {
	position:absolute;
	bottom:6px;
	left:0;
	right:0;
	text-align:center;
	font-size:16px;
	font-weight:700;
	color:#fff;
}

.xs-pair-double {
	display:flex;
	justify-content:space-between;
	margin-top:6px;
	font-size:24px;
	font-weight:700;
	color:#fff;
	background:#7d83ff;
	padding:4px 8px;
}

.xs-pair-double span{
	width:50%;
	text-align:center;
}

.xs-pair-group{
	display:flex;
	gap:4px;
	align-items:flex-end;
}

.xs-single-bar, .xs-db-chart .xs-pair-bar-wrap{
	width: 35px;
	flex-shrink:0;
}

.xs-single-num1, .xs-single-num2{
	background:#7d83ff;
	color:#fff;
	text-align:center;
	font-weight:500;
	font-size:13px;
	padding:4px 0;
}

.xs-single-num2, .xs-single-bar__2 .xs-pair-bar{
	background: #545bd1;
}

/*
|--------------------------------------------------------------------------
| GAN ĐẶC BIỆT TỔNG / CHẠM
|--------------------------------------------------------------------------
*/
.xs-db-chart .xs-pair-num {
	position:absolute;
	bottom: -20px;
	left:0;
	right:0;
	text-align:center;
	font-size: 14px;
	font-weight: 600;
	color: #000;
}

.xs-db-note{
	margin: 10px 8px 0;
	line-height: 1.6;
	font-size: 13px;
	color: #444;
}

.xs-db-note strong{
	color:#c000ff;
}

/*
|--------------------------------------------------------------------------
| THỐNG KÊ NHANH
|--------------------------------------------------------------------------
*/
.xs-quick-title {
	background: #2f86d9;
	color: #fff;
	padding: 7px;
	margin: 15px 0 0;
	font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| KQMB
|--------------------------------------------------------------------------
*/

.xs-kq-layout{
	display:grid;
	grid-template-columns:2fr 2fr;
	gap:12px;
	margin-bottom:20px;
}

.xs-kqmb{
	width:100%;
	border-collapse:collapse;
}

.xs-kqmb th, .xs-kqmb td{
	border:1px solid #8eb8ff;
	padding:8px;
	text-align:center;
	white-space: nowrap;
}

.xs-kqmb th{
	background:#eef5ff;
	width:70px;
	color: #01518b;	
}

.xs-kqmb .db{
	color:#e60000;
	font-size:22px;
}

.xs-home-date{
	padding:8px 0;
	font-weight:700;
	color:#444;
}

/*
|--------------------------------------------------------------------------
| Home ĐẦU ĐUÔI
|--------------------------------------------------------------------------
*/

.xs-headtail-wrap{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:10px;
}

.xs-head-box h3 {
	margin: 0;
	padding: 8px;
	background: #fac99c;
	font-size: 16px;
	border: 2px solid #f8ad69;
	border-bottom: none;
}

.xs-tail-box h3 {
	margin: 0;
	padding: 8px;
	background: #e4ade9;
	font-size: 16px;
	border: 2px solid #e688dc;
	border-bottom: none;
}

.xs-head-box table, .xs-tail-box table {
	width:100%;
	border-collapse:collapse;
	margin:0;
}

.xs-kq-wrap table {
	display: inline-block;
	border: #8eb8ff 1px solid;
}


.xs-head-box table {
	display: inline-block;
	border: #f8ad69 1px solid;
	background: #f8ad69;
}

.xs-tail-box table {
	display: inline-block;
	border: #e688dc 1px solid;
	background: #e688dc;
}

.xs-head-box table tbody tr {
	background: #fdeee1;
}

.xs-tail-box table tbody tr {
	background: #fdf2fc;
}

.xs-head-box td {
	border:1px solid #f8ad69;
	font-size:13px;
}

.xs-tail-box td {
	border:1px solid #e688dc;
	font-size:13px;
}

.xs-head-box table tr td.color--leftcol, .xs-head-box h3 {
	color: #4f2704; 
	font-weight: 500;
}

.xs-tail-box table tr td.color--leftcol, .xs-tail-box h3 {
	color: #74008c; 
	font-weight: 500;
}


/*
|--------------------------------------------------------------------------
| Thống kê đầu đuôi
|--------------------------------------------------------------------------
*/
.xsdd-wrap, .xs-tonghop-wrap{
	padding: 5px;
}

.xsdd-title, .xs-title{
	font-size: 28px;
	padding: 10px;
	margin-bottom: 20px;
	text-align: center;
	background: #7379db;
	color: #fff;
	border-radius: 6px;
}

.xsdd-form, .xs-logan-filter{
	margin-bottom:20px; 
	display: flex;
	justify-content: space-between;
}

.xsdd-form select, .xsdd-form button, .xs-logan-filter button,  .p--display_block button{
	height: 38px;
	min-width: 230px;
	padding:0 10px;
}

.xsdd-form button, .xstk-form button, .xs-logan-filter button, .xs-tansuat-wrap button{
	background:#e11;
	color:#fff;
	border:0;
	cursor:pointer;
}

.xsdd-box{
	margin-bottom:30px;
}

.xsdd-box h3{
	font-size:28px;
	margin-bottom:15px;
}

.xsdd-table{
	width:100%;
	border-collapse:collapse;
	background:#fff;
}

.xsdd-table th {
	background:#dfe5ea;
	padding:10px;
	border:1px solid #ccc;
	text-align:center;
}

.xsdd-table td{
	padding:8px;
	border:1px solid #ddd;
}

.tk-bar-wrap{
	width:120px;
	height:10px;
	background:#eee;
	display:inline-block;
	margin-right:8px;
	vertical-align:middle;
}

.tk-bar{
	height:10px;
	background: #7379db;
}

.xsdd-form button, .xsdd-table th, .xs-table th {  
	font-weight: 500;
}

.xsdd-form button:hover, .xstk-form button:hover, .xs-logan-filter button:hover, .xs-tansuat-wrap button:hover {  
	color: #ffffff;
	background-color: #7379db;
}

/*
|--------------------------------------------------------------------------
| FILTER NUMBER
|--------------------------------------------------------------------------
*/

.xs-filter-box{
	background:#d8eaf1;
	padding:10px;
	margin:15px 0;
	border:1px solid #b8d4df;
}

/*
|--------------------------------------------------------------------------
| TOP BUTTON
|--------------------------------------------------------------------------
*/

.xs-filter-top{
	display:flex;
	justify-content: center;
	flex-wrap:wrap;
	gap:5px;  
	margin-bottom:10px;
}

.xs-filter-top button{
	background: #7379db;
	color: #fff;
	border:none;
	padding:7px 12px;
	font-size:12px;
	cursor:pointer;
	transition:0.2s;
	padding: 5px; 
	width: 19%;
}

.xs-filter-top button:hover{
	background:#f00;
}

/*
|--------------------------------------------------------------------------
| GRID
|--------------------------------------------------------------------------
*/

.xs-number-grid{
	display:flex;
	flex-direction:column;
	gap:4px;
}

.xs-row {
	display:flex;
	justify-content: space-between;
	align-items:center;
	gap:5px;
}

/*
|--------------------------------------------------------------------------
| ITEM
|--------------------------------------------------------------------------
*/

.xs-num-item {
	width: 8%;
	display:flex;
	justify-content: flex-start;
	align-items:center;
	gap:3px;
	font-size:13px;
	line-height:1;
}

.xs-num-item input, .xs-pair-item input{
	margin:0;
	width: 13px;
	height: 13px;
}

/*
|--------------------------------------------------------------------------
| ĐẦU & ĐUÔI
|--------------------------------------------------------------------------
*/

.xs-head{
	background:#ffffff;
	padding:4px 6px;
	font-size:12px;
	font-weight: 600;
	cursor:pointer;
	transition:0.2s;
	white-space: nowrap;
}

.xs-tail-wrap{
	margin-top:10px;
	display:flex;
	gap:5px;
	flex-wrap:wrap;
}

.xs-tail, .xs-cham{
	width: 8.8%;
	background: #ffffff;
	padding: 4px 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
	text-align: center;
}

.xs-head:hover, .xs-tail:hover, .xs-cham:hover{
	background: #7379db;
	color:#fff;
}

/*
|--------------------------------------------------------------------------
| View Du lieu Thống kê tổng hợp
|--------------------------------------------------------------------------
*/
.xs-tonghop-wrap table.xs-table tbody tr:first-child th:first-child {
	width: 10%;
}
.xs-tonghop-wrap table.xs-table tbody tr:first-child th:nth-child(2) {
	width: 15%;
}

/*
|--------------------------------------------------------------------------
| Thống kê tổng hợp
|--------------------------------------------------------------------------
*/

.xstk-form  {
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;
}

.xs-table th, .xs-ts-mini th{
	background:#e6f3ff;
	padding:10px;
	text-align:center;
}


.xstk-form select, .xstk-form button {
	height: 38px;
	min-width: 175px;
	padding:0 10px;
}

#p--row__synthetic tbody tr:first-child th, .xs-logan-table thead tr:first-child th{
	width: 24%;
}

#p--row__synthetic tbody tr td{
	text-align: center;
}

#p--row__synthetic tbody tr td:nth-child(1), .xs-ts-mini .red {
	color: #f00;
}

#p--row__synthetic tbody tr td:nth-child(3) {
	color: #0029ad;
}

.xs-sub-title {
	font-size: 20px;
}


/*
|--------------------------------------------------------------------------
| XS LOGAN
|--------------------------------------------------------------------------
*/
.xs-logan-wrap{
	margin:20px 0;
}

.xs-logan-form{
	margin-bottom:20px;
}

.xs-logan-filter input[type="date"],
.xs-logan-filter select{
	border: 1px solid #ddd;
	background: #fff;
	height: 38px;
	min-width: 230px;
	padding: 0 10px;
}

.xs-logan-table{
	width:100%;
	border-collapse:collapse;
	margin-bottom:25px;
	background:#fff;
}

.xs-logan-table th{
	background:#f5f5f5;
	color:#222;
	font-weight:700;
	text-align:center;
	padding:10px;
	border:1px solid #ddd;
}

.xs-logan-table td{
	padding:10px;
	text-align:center;
	border:1px solid #ddd;
}

.xs-logan-table tr:nth-child(even){
	background:#fafafa;
}

.xs-logan-table tr:hover{
	background:#fff8e1;
}

.xs-logan-table .red{
	color:#e53935;
	font-weight:700;
}

.xs-logan-table td:first-child{
	font-weight:700;
}

.xs-no-data{
	padding:15px;
	background:#fff3cd;
	border:1px solid #ffeeba;
	color:#856404;
	border-radius:4px;
}

/*
|--------------------------------------------------------------------------
| XS Loto
|--------------------------------------------------------------------------
*/
.p--display_flex {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 15px;
}

.p--display_grid {
	display: grid;
	width: 33%;
}

.p--display_grid select, .p--display_grid input[type="number"], .p--display_grid input {
	border: 1px solid #ddd;
	background: #fff;
	height: 38px;
	padding: 0 10px;
}

.p--display_grid label {
	font-weight: 500;
	font-size: 15px;
	padding-bottom: 10px;
}

table.xs-ts-table th, table.xs-ts-table, table.xs-ts-table tr td {
	border-color: #0000008a;
}
.xs-ts-table-wrap {
	position: relative;
	width: 100%;
	z-index: 1;
	margin: auto;
	overflow-x: scroll;
}
.xs-ts-table-wrap table thead th, .xs-hit, tfoot tr th {
	font-weight: 500;
	font-size: 12px;
}
.xs-ts-table-wrap table thead tr th:first-child, .xs-ts-table-wrap table tbody tr td:first-child, .xs-ts-table-wrap table tfoot tr th:first-child  {
	white-space: nowrap;
}

.xs-cell{
	width:25px;
	height:25px;
	text-align:center;
	vertical-align:middle;
}

.xs-empty{
	background:#8f8f8f;
}

.xs-hit{
	background:#ffffff;
	color:#111;
}

.xs-special{
	color:#ff0000;
}

.xs-date-cell{
	background:#eef7ff;
	font-size: 12px;
	text-align: center;
	color: #0029ad; 
}

.xs-head-num {
	background:#f8f8f8;
}

.xs-ts-summary {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:5px;
}

.xs-tansuat-wrap p.xs-ts-note {
	margin-top: 1.5em;
	color: #f00;
}

.xs-ts-box{
	background:#fff;
}

.xs-ts-box h3{
	margin:0;
	padding:12px;
	background: #7379db;
	color:#fff;
	font-size:16px;
	text-align: center;
}

.xs-ts-box h3 span{
	display:block;
	margin-top:5px;
	font-size:14px;
	font-weight:400;
}

.xs-ts-mini{
	width:100%;
	border-collapse:collapse;
}

.xs-ts-mini th, .xs-ts-mini td{
	border:1px solid #c5c5c5;
	text-align:center; 
	width: 50%;
}

/*
|--------------------------------------------------------------------------
|  XS Loto cặp
|--------------------------------------------------------------------------
*/

.xs-pair-grid{
    display:grid;
    grid-template-columns:repeat(10,minmax(70px,1fr));
}

.xs-pair-item {
	width: 10%;
	display:flex;
	justify-content: flex-start;
	white-space: nowrap;
	align-items:center;
	gap:3px;
	font-size:14px;
}









