@media (hover: hover) and (pointer: fine) {
  a:hover, button:hover, .item:hover, .card-rounded:hover {
    transition: all 0.2s ease;
  }
}

* {
	box-sizing: border-box;
	margin: 0 2px 0 2px;
	padding: 0;
}
html, body {
	height: 100%;
}
body {
	display: flex;
	flex-direction: column;
	font-family: 'Inter', sans-serif;
	background-color: #2d2e3a;
	color: #ececf1;
	line-height: 1.5;
}
main {
	flex: 1;
}
.loading-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background-color: #febd3d;
	z-index: 9999;
	transition: width 0.3s ease, opacity 0.5s ease;
}
.header-style {
	background-color: #373846e3;
	padding: 0.5rem;
	position: sticky;
	top: 5px;
	z-index: 50;
	border-radius: 10px;
	border: 1px solid rgb(68 76 91);
	box-shadow: 0 0 2px 1px rgba(0, 0, 0, 50);
}
.top-bar {
	width: 100%;
	max-width: 72rem; 
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	margin-left: auto;
	margin-right: auto;
}
.menu-top {
}
.header-clock {
	align-items: center;
}
.main-board {
	max-width: 72rem; 
	width: 100%;
	align-items: center;
	margin-left: auto;
	margin-right: auto;
	padding-top: 0.75rem;
	padding-bottom: 4rem;
}
.loading {
	color: #ececf1;
}
.data-div {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}
.card-rounded {
	background-color: #3b3c4b;
	border: 1px solid rgb(68 76 91);
	box-shadow: 0 0 2px 1px rgba(0, 0, 0, 50); 
	border-radius: 0.75rem;
	padding: 1.25rem;
}
.title {
	font-size: 1.05rem;
	line-height: 1.75rem;
	font-weight: 600;
	margin-bottom: 0rem;
}
p {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #ececf1;
	margin-bottom: 0.5rem;
}
a {
	text-decoration: underline;
	color: #ececf1;
}
.item {
	text-decoration: none;
	color: #ececf1;
}
.wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0rem;
	font-size: 0.95rem;
	line-height: 1rem;
	margin-bottom: 0.5rem;
}
.td-s {
	background-color: #d62f2fd4;
	color: #ececf1;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	border-radius: 0.25rem;
}
.nn-l {
	background-color: #00980ccc;
	color: #ececf1;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	border-radius: 0.25rem;	
}

.tk-container {
	width:100%;
	margin-left:auto;
	margin-right:auto;
	padding:5px;
}

select {
    padding: 8px;
    border: 1px solid #454545;
    border-radius: 8px;
    background: #1e1e26;
    color: #ececf1;
    margin: 10px;
}
select:focus-visible {
    outline: none;
}

.table-auto {
	min-width:900px;
	width:100%;
	table-layout:auto;
	font-size:0.875rem;
	color:#ababab;
}
.table-auto thead {
	text-align: center;
	background-color: #101010;
	color: #bcbcbc;
	font-weight: 500;
}
.total-hd {
	background-color: #101010;
}
.table-auto tbody>tr:nth-child(odd) {
    background-color: #262734; /* màu cho dòng lẻ */
}

.table-auto tbody>tr:nth-child(even) {
    background-color: #333442; /* màu cho dòng chẵn */
}

.site-footer {
	background-color: #1e1e26;
	padding: 1rem 0;
	margin-top: 2rem;
	border-top: 1px solid #505050;
}
.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: #a8a29e;
}

.mobile-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(30, 30, 38, 0.9);
  border-top: 1px solid #505050;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}

.mobile-footer .menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

.mobile-footer .item {
  text-align: center;
  font-size: 14px;
  color: #e5e5e5;
  text-decoration: none;
  flex: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-footer .item:hover,
.mobile-footer .item:active {
  color: #fdbd3c;
  transform: scale(0.92);
}

.mobile-footer svg {
  display: block;
  margin: 0 auto 3px;
  fill: currentColor;
}

@supports (-webkit-touch-callout: none) {
  .mobile-footer {
    position: sticky;
    bottom: 0;
  }
}

.menu-overlay {
  display: none;
}
.menu-panel {
  display: none;
}
#backToTop {
  position: fixed;
  bottom: 110px;
  right: 30px;
  z-index: 99;
  border: 1px solid #505050;
  outline: none;
  background-color: #2a2a3a;
  color: #e5e5e5;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  display: none;
  box-shadow: 0 2px 4px #0000004d;
  transition: background 0.3s, transform 0.2s;
}
#backToTop:hover {
  background-color: #1f1f2e;
  transform: scale(1.1);
}
#backToTop svg {
  width: 20px;
  height: 20px;
  stroke: #e5e5e5;
}
.row-view-desk {
	display: none;
}
@media (max-width: 768px) {
	.top-bar {
		justify-content: flex-end;
	}
	.menu-top {
		display:none;
	}
	.data-div { 
		grid-template-columns: repeat(1, minmax(0, 1fr)); 
	}
	.mobile-footer {
		display: flex;
	}
	.footer-bottom {
		text-align: center;
		margin-top: 0;
		padding-top: 0;
		margin-bottom: 3rem;
		border-top: 0px solid #505050;
		font-size: 0.75rem;
		color: #a8a29e;
	}
	#backToTop {
		bottom: 55px;
		right: 6px;
		padding: 8px;
	}

	.menu-btn {
		position: fixed;
		bottom: 20px;
		right: 20px;
		background: #333;
		color: #fff;
		padding: 12px 14px;
		border-radius: 50%;
		font-size: 20px;
		cursor: pointer;
		box-shadow: 0 2px 6px rgba(0,0,0,0.3);
		z-index: 1001;
	}
	.menu-overlay {
		position: fixed;
		inset: 0;
		background: #0000008f;
		display: none;
		z-index: 1000;
	}
	.menu-panel {
		position: fixed;
		top: 0;
		right: 0;
		width: 260px;
		height: calc(100% - 52px);
		background: #2d2e3a;
		box-shadow: -2px 0 8px #0a0a10;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		z-index: 1002;
		display: flex;
		flex-direction: column;
		border-radius: 10px 0 0 10px;
	}
	.menu-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 8px;
		border-bottom: 1px solid #444;
	}
	.menu-header .title {
		font-weight: bold;
		font-size: 18px;
	}
	.close-btn {
		background: none;
		border: none;
		color: #bbb;
		font-size: 20px;
		cursor: pointer;
	}
	.close-btn:hover {
		color: #fff;
	}
	.menu-list {
		list-style: none;
		margin: 0;
		padding: 5px;
		flex: 1;
	}
	.menu-list li {
		margin-bottom: 1px;
		font-size: 1rem;
		font-weight: 600;
	}

	.menu-list a {
		display: block;
		padding: 10px 12px;
		border-bottom: 1px solid #444;
		text-decoration: none;
		color: #eee;
		transition: background 0.2s;
	}
	.menu-list a:hover {
		background: #444;
	}
	.menu-panel.open {
		transform: translateX(0);
	}
	.menu-overlay.show {
		display: block;
	}
	.table-auto {
		min-width: -webkit-fill-available;
	}
	.col-view {
		display: none;
	}
	.row-view {
		display: none;
	}
}
