/* IESG Equipment Stock — หน้าสาธารณะ (shortcode [iesg_equipment_stock])
   สีอ้างอิงจากเว็บไซต์ IESG จริง: ฟ้า #00B0F0 และเขียว #1F7B3E */

.iesg-pub-wrap {
	font-size: 15px;
	line-height: 1.6;
	margin: 1.5em 0;
}

.iesg-pub-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.iesg-pub-filters input[type="search"] {
	flex: 1 1 220px;
}

.iesg-pub-filters input,
.iesg-pub-filters select {
	padding: 7px 10px;
	border: 1px solid #c7d1cc;
	border-radius: 4px;
	font-size: 14px;
}

.iesg-pub-filters button {
	background: #00b0f0;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 8px 18px;
	font-weight: 600;
	cursor: pointer;
}

.iesg-pub-filters button:hover {
	background: #0596cc;
}

.iesg-pub-table-scroll {
	overflow-x: auto;
	border: 1px solid #dbe3e0;
	border-radius: 6px;
}

.iesg-pub-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
}

.iesg-pub-table th,
.iesg-pub-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #e5eae7;
	font-size: 14px;
}

.iesg-pub-table thead th {
	background: #eef1ef;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #56686e;
}

.iesg-pub-table tbody tr:last-child td {
	border-bottom: none;
}

.iesg-pub-table tbody tr:hover {
	background: #f7fbfd;
}

.iesg-pub-qty {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* แถวหัวกลุ่ม "ที่ตั้ง · หมวด" — ให้เด่นเหมือนแถบสีในไฟล์ Excel ต้นฉบับ */
.iesg-pub-table tr.iesg-pub-group td {
	background: #1f7b3e;
	color: #fff;
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: 0.02em;
	padding: 8px 12px;
	border-bottom: none;
}

.iesg-pub-table tr.iesg-pub-group:not(:first-child) td {
	border-top: 2px solid #fff;
}

.iesg-pub-group-sep {
	opacity: 0.7;
	margin: 0 2px;
}

.iesg-pub-group-count {
	font-weight: 400;
	opacity: 0.85;
	font-size: 12px;
	margin-left: 4px;
}

/* แถวอุปกรณ์ย่อย — เยื้องเข้าเล็กน้อยให้เห็นว่าเป็นส่วนประกอบของกลุ่มด้านบน */
.iesg-pub-table tr.iesg-pub-item td.iesg-pub-item-name {
	padding-left: 26px;
	position: relative;
}

.iesg-pub-table tr.iesg-pub-item td.iesg-pub-item-name::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #00b0f0;
	transform: translateY(-50%);
}

.iesg-pub-hint {
	margin-top: 8px;
	font-size: 12.5px;
	color: #56686e;
}

.iesg-pub-new {
	display: inline-block;
	background: #e3f3e7;
	color: #1f7b3e;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 99px;
	margin-left: 4px;
	vertical-align: middle;
}

.iesg-pub-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 14px;
}

.iesg-pub-page {
	display: inline-block;
	padding: 5px 11px;
	border: 1px solid #c7d1cc;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	font-size: 13.5px;
}

.iesg-pub-page.is-current {
	background: #00b0f0;
	border-color: #00b0f0;
	color: #fff;
	font-weight: 600;
}
