/* ==========================================================================
   ZoneDNS - responsive bo sung cho trang khach hang (11/2026)
   Nap SAU style.css. Chi tac dong man hinh <= 991px, desktop giu nguyen.
   ========================================================================== */

img { max-width: 100%; height: auto; }
.errorbar { max-width: 100%; box-sizing: border-box; }

@media screen and (max-width: 991px) {
	.errorbar { width: auto; margin-left: 15px; margin-right: 15px; }

	/* ---------- Header ---------- */
	#header { padding: 12px 0 0; }
	#header .logo { float: none; height: auto; margin: 0 auto 6px; text-align: center; }
	#header .logo img { padding-top: 0 !important; max-height: 48px; width: auto; }

	/* Menu: can giua, thieu cho thi xuong dong gon gang */
	ul.slimmenu {
		float: none; width: 100%; margin: 0; padding: 4px 0 8px;
		display: flex; flex-wrap: wrap; justify-content: center; row-gap: 2px;
		border-top: 1px solid #e3e3e3;
	}
	ul.slimmenu > li { flex: 0 0 auto; margin: 0 2px; white-space: nowrap; }
	ul.slimmenu li a { font-size: 13px; padding: 10px 10px; }
	/* An huy hieu IPv6 tren man hinh nho */
	ul.slimmenu > li > img { display: none; }
	ul.slimmenu > li:last-child:not(:has(a)) { display: none; }

	/* ---------- Khung noi dung ---------- */
	.container { padding-left: 10px; padding-right: 10px; }
	#main { width: 100%; padding: 10px 0; }

	/* ---------- Bang: co cot truoc, khong du cho thi cuon ngang ----------
	   (responsive.js boc moi bang trong .rsp-scroll) */
	.rsp-scroll {
		width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
		margin-bottom: 15px; position: relative;
	}
	.rsp-scroll > table { margin-bottom: 0; }
	.rsp-scroll > table[width], .rsp-scroll > table { max-width: none; }
	/* goi y "con cot ben phai": bong mo o canh phai khi bang rong hon man hinh */
	.rsp-scroll.rsp-has-scroll {
		background:
			linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 20px 100% no-repeat local,
			linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 20px 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.18), rgba(0,0,0,0)) left center / 10px 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), rgba(0,0,0,0)) right center / 10px 100% no-repeat scroll;
	}
	.table-detail th, .table-detail td { padding: 7px 6px !important; font-size: 12px; }
	.table-detail td { overflow-wrap: break-word; }
	/* gia tri dai khong co khoang trang (DKIM, IPv6...) duoc phep be dong; con lai giu nguyen */
	.table-detail td { word-break: normal; }
	.table-detail td:not(:first-child) { min-width: 44px; }

	/* ---------- Form ---------- */
	.accordion { padding: 12px 10px; }
	.accordion label { width: 100% !important; float: none; padding: 6px 0 4px !important; }
	.accordion input[type=text], .accordion input[type=password], .accordion input[type=email],
	.accordion input[type=number], .accordion select, .accordion textarea {
		width: 100% !important; max-width: 100%; box-sizing: border-box; float: none;
	}
	.accordion ul li p { float: none; width: 100%; }
	.accordion input[type=file] { float: none; max-width: 100%; }
	.accordion input[type=submit], .accordion input[type=button], .accordion button,
	.accordion a.create-record { min-height: 40px; }

	/* Truong nhap chung: khong tran man hinh, du lon de cham */
	#main input[type=text], #main input[type=password], #main input[type=email],
	#main select, #main textarea { max-width: 100%; box-sizing: border-box; }
	#main input[type=text], #main input[type=password], #main select { min-height: 36px; font-size: 14px; }

	footer { font-size: 12px; padding: 15px 10px; }
}

@media screen and (max-width: 480px) {
	ul.slimmenu > li { margin: 0; }
	ul.slimmenu li a { font-size: 12px; padding: 9px 6px; }
	.rsp-hide-sm { display: none !important; }
	.accordion h4 { font-size: 17px; }
}
