/**
 * Expertis – Xác định giao dịch liên kết
 *
 * ĐỘ ƯU TIÊN — phần dễ sai nhất khi nhúng vào Elementor.
 *
 *   Theme + Elementor           ~0,2,1
 *   A. RESET    .egl.egl.egl :where(tag)  = 0,3,0   thắng Elementor
 *   B. THIẾT KẾ .egl.egl.egl .lớp         = 0,4,0   thắng cả reset lẫn Elementor
 *
 * Reset phải đủ cao để chặn kế thừa từ theme nhưng phải THẤP HƠN phần thiết kế;
 * `:where()` có độ ưu tiên bằng 0 nên giữ được khoảng cách đó mà không cần
 * !important. Ngoại lệ duy nhất dùng !important là font-family.
 *
 * KHI THÊM QUY TẮC MỚI, LUÔN VIẾT ĐỦ TIỀN TỐ `.egl.egl.egl`.
 */

/* ============================================================
   A. RESET
   ============================================================ */

.egl.egl.egl,
.egl.egl.egl :where(*),
.egl.egl.egl :where(*)::before,
.egl.egl.egl :where(*)::after {
	box-sizing: border-box;
	min-width: 0;
}

.egl.egl.egl {
	display: block;
	float: none;
	clear: both;
	isolation: isolate;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	text-indent: 0;
	text-transform: none;
	letter-spacing: normal;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}

.egl.egl.egl :where(div, section, header, article, aside, p, span, strong, em, small,
h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, table, thead, tbody, tr, th, td,
figure, form, fieldset, legend, label, details, summary, blockquote, a, b, i) {
	margin: 0;
	padding: 0;
	text-indent: 0;
	border: 0;
	background: none;
	float: none;
	position: static;
	width: auto;
	max-width: none;
	min-height: 0;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	box-shadow: none;
	border-radius: 0;
	font-family: inherit;
	font-weight: inherit;
	font-style: normal;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	text-align: inherit;
}

.egl.egl.egl :where(ul, ol) {
	list-style: none;
}

/*
 * Nhiều theme khai font chữ tiêu đề kèm !important. !important thắng mọi độ ưu
 * tiên, nên đây là chỗ duy nhất buộc phải dùng lại !important.
 */
.egl.egl.egl,
.egl.egl.egl :where(*) {
	font-family: inherit !important;
}

.egl.egl.egl :where(h1, h2, h3, h4, h5, h6) {
	line-height: 1.3;
}

.egl.egl.egl :where(details, summary) {
	display: block;
}

.egl.egl.egl :where(summary) {
	list-style: none;
	cursor: pointer;
}

.egl.egl.egl :where(summary)::-webkit-details-marker,
.egl.egl.egl :where(summary)::marker {
	display: none;
	content: '';
}

.egl.egl.egl :where(input, select, textarea) {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	border-radius: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	height: auto;
}

.egl.egl.egl :where(button) {
	all: unset;
	box-sizing: border-box;
	display: block;
	cursor: pointer;
	font-family: inherit;
	max-width: 100%;
}

.egl.egl.egl :where(a) {
	text-decoration: none;
	box-shadow: none;
	border: 0;
	background: none;
	font-family: inherit;
	font-weight: inherit;
	font-style: normal;
}

.egl.egl.egl :where(input, select, textarea, button, a, summary):focus-visible {
	outline: 2px solid var(--egl-brand);
	outline-offset: 2px;
}

.egl.egl.egl [hidden] {
	display: none !important;
}

/* ============================================================
   B. TOKEN
   ============================================================ */

.egl.egl.egl {
	--egl-ink: var(--exp-ink, #0A1140);
	--egl-ink-2: var(--exp-ink-2, #2A368C);
	--egl-brand: var(--exp-brand, #F87B1B);
	--egl-brand-2: var(--exp-brand-2, #FF9442);
	--egl-brand-ink: var(--exp-brand-ink, #BC580E);
	--egl-paper: var(--exp-paper, #F6F4F1);
	--egl-paper-2: var(--exp-paper-2, #FAF8F5);
	--egl-card: var(--exp-card, #FFFFFF);
	--egl-body: var(--exp-body, #1F2640);
	--egl-muted: var(--exp-muted, #525A73);
	--egl-line: var(--exp-line-l, rgba(10, 17, 64, .12));
	--egl-font: var(--exp-sans, 'Be Vietnam Pro', system-ui, sans-serif);

	--egl-high: #B3362B;
	--egl-warn: var(--exp-brand-ink, #BC580E);
	--egl-good: #2E7D4F;

	font-family: var(--egl-font) !important;
	font-size: 16px;
	line-height: 1.6;
	color: var(--egl-body);

	background: var(--egl-card);
	border: 1px solid var(--egl-line);
	border-top: 4px solid var(--egl-brand);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(10, 17, 64, .04), 0 10px 28px rgba(10, 17, 64, .05);
	overflow: hidden;
}

/* ============================================================
   C. GIAO DIỆN
   ============================================================ */

.egl.egl.egl .egl-head {
	padding: 28px 28px 22px;
	border-bottom: 1px solid var(--egl-line);
	background: var(--egl-paper-2);
}

.egl.egl.egl .egl-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--egl-ink);
}

.egl.egl.egl .egl-lead {
	margin-top: 8px;
	font-size: 15px;
	color: var(--egl-muted);
	max-width: 64ch;
}

.egl.egl.egl .egl-stamp {
	margin-top: 12px;
	font-size: 12px;
	letter-spacing: .02em;
	color: var(--egl-muted);
}

.egl.egl.egl .egl-step {
	padding: 26px 28px 30px;
}

.egl.egl.egl .egl-step-mark {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--egl-brand-ink);
	margin-bottom: 18px;
}

.egl.egl.egl .egl-h3 {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--egl-ink);
}

.egl.egl.egl .egl-lead-2 {
	margin-top: 7px;
	font-size: 14px;
	color: var(--egl-body);
}

.egl.egl.egl .egl-note {
	margin-top: 7px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--egl-muted);
}

.egl.egl.egl .egl-note-block {
	margin-top: 18px;
	padding: 12px 14px;
	border-radius: 9px;
	background: var(--egl-paper);
}

/* ---- Danh sách trường hợp ---- */

.egl.egl.egl .egl-cases {
	margin-top: 18px;
}

.egl.egl.egl .egl-case {
	border: 1px solid var(--egl-line);
	border-radius: 11px;
	background: var(--egl-card);
	margin-bottom: 10px;
	overflow: hidden;
	transition: border-color .15s ease;
}

.egl.egl.egl .egl-case:has( input:checked ) {
	border-color: var(--egl-brand);
	background: rgba(248, 123, 27, .05);
}

.egl.egl.egl .egl-check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 14px 16px;
	cursor: pointer;
	font-size: 14.5px;
	line-height: 1.55;
}

.egl.egl.egl .egl-check input {
	-webkit-appearance: auto;
	appearance: auto;
	width: 17px;
	min-width: 17px;
	height: 17px;
	margin-top: 3px;
	accent-color: var(--egl-brand);
	cursor: pointer;
}

.egl.egl.egl .egl-check-text {
	color: var(--egl-ink);
}

/* Nhóm trường hợp — thẻ, nút bung Guide ở góc phải ------------------- */

.egl.egl.egl .egl-group {
	margin-top: 22px;
	padding: 16px 16px 6px;
	border: 1px solid var(--egl-line);
	border-radius: 12px;
	background: var(--egl-paper-2);
}

.egl.egl.egl .egl-group:first-of-type {
	margin-top: 18px;
}

.egl.egl.egl .egl-group-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.egl.egl.egl .egl-group-head-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* Nút mở Guide do plugin Expertis Knowledge Engine tạo dáng
   (.exp-guide-trigger.exp-guide-icon). Tool chỉ đặt chỗ cho nó. */
.egl.egl.egl .egl-group-head .exp-guide-trigger {
	flex: 0 0 auto;
	margin-top: 1px;
}

.egl.egl.egl .egl-group-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--egl-ink);
}

.egl.egl.egl .egl-group-note {
	margin: 5px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--egl-muted);
}

.egl.egl.egl .egl-group .egl-cases {
	margin-top: 14px;
}

.egl.egl.egl .egl-group .egl-case {
	background: var(--egl-card);
}

/* Nhóm trường hợp + nút mở Guide ------------------------------------- */

.egl.egl.egl .egl-point {
	display: inline-block;
	margin-right: 7px;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(10, 17, 64, .07);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--egl-muted);
	vertical-align: 1px;
	white-space: nowrap;
}

.egl.egl.egl .egl-check-none {
	margin-top: 14px;
	border: 1px dashed var(--egl-line);
	border-radius: 11px;
}

/* ---- Khối kiến thức bung tại chỗ ---- */

.egl.egl.egl .egl-legal {
	margin-top: 6px;
	padding: 11px 14px;
	border-left: 3px solid var(--egl-ink);
	border-radius: 0 8px 8px 0;
	background: var(--egl-paper);
	font-size: 13px;
	line-height: 1.7;
	color: var(--egl-ink);
}

/* ---- Trường nhập ---- */

.egl.egl.egl .egl-field {
	margin-bottom: 18px;
}

.egl.egl.egl .egl-label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--egl-ink);
	margin-bottom: 8px;
}

.egl.egl.egl .egl-input {
	display: block;
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--egl-line);
	border-radius: 9px;
	background: var(--egl-card);
	font-size: 16px;
	color: var(--egl-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.egl.egl.egl .egl-input:focus {
	border-color: var(--egl-brand);
	box-shadow: 0 0 0 3px rgba(248, 123, 27, .16);
	outline: none;
}

.egl.egl.egl .egl-money {
	position: relative;
}

.egl.egl.egl .egl-money .egl-input {
	padding-right: 62px;
	font-weight: 600;
}

.egl.egl.egl .egl-unit {
	position: absolute;
	right: 13px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: var(--egl-muted);
	pointer-events: none;
}

.egl.egl.egl .egl-error {
	margin-top: 14px;
	padding: 11px 13px;
	border-radius: 9px;
	background: rgba(179, 54, 43, .07);
	border-left: 3px solid var(--egl-high);
	font-size: 14px;
	color: var(--egl-high);
}

/* ---- Nút ---- */

.egl.egl.egl .egl-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 22px;
}

.egl.egl.egl .egl-button {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 9px;
	background: var(--egl-brand);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	transition: background .15s ease;
}

.egl.egl.egl .egl-button:hover {
	background: var(--egl-brand-2);
}

.egl.egl.egl .egl-link {
	display: inline-block;
	padding: 12px 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--egl-brand-ink);
	border-bottom: 1px solid transparent;
}

.egl.egl.egl .egl-link:hover {
	border-bottom-color: currentColor;
}

/* ---- Kết luận ---- */

.egl.egl.egl .egl-verdict {
	padding: 20px 22px;
	border-radius: 13px;
	background: var(--egl-paper);
	border-left: 4px solid var(--egl-brand);
}

.egl.egl.egl .egl-verdict[data-key="clear"] {
	border-left-color: var(--egl-good);
}

.egl.egl.egl .egl-verdict-label {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--egl-ink);
}

.egl.egl.egl .egl-verdict-summary {
	margin-top: 8px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--egl-body);
}

.egl.egl.egl .egl-block {
	margin-top: 24px;
}

.egl.egl.egl .egl-ticks {
	margin-top: 10px;
}

.egl.egl.egl .egl-ticks li {
	position: relative;
	padding: 9px 0 9px 26px;
	border-top: 1px solid var(--egl-line);
	font-size: 14px;
	line-height: 1.6;
	color: var(--egl-body);
}

.egl.egl.egl .egl-ticks li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 11px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: rgba(248, 123, 27, .14);
	color: var(--egl-brand-ink);
	font-size: 10px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

.egl.egl.egl .egl-ticks li b {
	font-weight: 700;
	color: var(--egl-ink);
}

.egl.egl.egl .egl-duty {
	padding: 14px 16px;
	border: 1px solid var(--egl-line);
	border-radius: 11px;
	margin-top: 10px;
	background: var(--egl-card);
}

.egl.egl.egl .egl-duty-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.egl.egl.egl .egl-duty-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--egl-ink);
}

.egl.egl.egl .egl-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.egl.egl.egl .egl-tag[data-state="required"] {
	background: rgba(188, 88, 14, .12);
	color: var(--egl-brand-ink);
}

.egl.egl.egl .egl-tag[data-state="exempt"] {
	background: rgba(46, 125, 79, .14);
	color: var(--egl-good);
}

.egl.egl.egl .egl-tag[data-state="check"],
.egl.egl.egl .egl-tag[data-state="none"] {
	background: rgba(10, 17, 64, .08);
	color: var(--egl-muted);
}

.egl.egl.egl .egl-duty-text {
	margin-top: 7px;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--egl-muted);
}

.egl.egl.egl .egl-duty-point {
	margin-top: 6px;
	font-size: 12px;
	color: var(--egl-muted);
}

.egl.egl.egl .egl-trap {
	padding: 13px 15px;
	border-left: 3px solid var(--egl-high);
	border-radius: 0 9px 9px 0;
	background: rgba(179, 54, 43, .06);
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--egl-ink);
	margin-top: 10px;
}

.egl.egl.egl .egl-big {
	margin-top: 14px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--egl-warn);
}

.egl.egl.egl .egl-rows {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0 14px;
	margin-top: 12px;
	font-size: 13.5px;
	line-height: 1.5;
}

.egl.egl.egl .egl-rows dt {
	padding: 8px 0;
	color: var(--egl-muted);
	border-top: 1px solid var(--egl-line);
}

.egl.egl.egl .egl-rows dd {
	padding: 8px 0;
	text-align: right;
	white-space: nowrap;
	color: var(--egl-ink);
	border-top: 1px solid var(--egl-line);
	font-variant-numeric: tabular-nums;
}

.egl.egl.egl .egl-rows dt[data-total],
.egl.egl.egl .egl-rows dd[data-total] {
	font-weight: 700;
	color: var(--egl-ink);
	border-top-color: var(--egl-ink);
}

.egl.egl.egl .egl-rows dt[data-warn],
.egl.egl.egl .egl-rows dd[data-warn] {
	color: var(--egl-high);
	border-top-color: var(--egl-high);
}

.egl.egl.egl .egl-cta {
	display: inline-block;
	margin-top: 22px;
	padding: 13px 24px;
	border-radius: 9px;
	background: var(--egl-ink);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	transition: background .15s ease;
}

.egl.egl.egl .egl-cta:hover {
	background: var(--egl-ink-2);
}

/* ---- Công khai căn cứ ---- */

.egl.egl.egl .egl-disclosure {
	margin-top: 26px;
	border-top: 1px solid var(--egl-line);
	padding-top: 18px;
}

.egl.egl.egl .egl-disclosure-summary {
	font-size: 14px;
	font-weight: 600;
	color: var(--egl-brand-ink);
}

.egl.egl.egl .egl-disclosure-summary::after {
	content: ' ›';
}

.egl.egl.egl .egl-disclosure[open] .egl-disclosure-summary::after {
	content: ' ⌄';
}

.egl.egl.egl .egl-disclosure-body {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--egl-muted);
}

.egl.egl.egl .egl-disclosure-heading {
	margin-top: 16px;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--egl-ink);
}

.egl.egl.egl .egl-disclosure-list li {
	position: relative;
	padding-left: 16px;
	margin-top: 5px;
}

.egl.egl.egl .egl-disclosure-list li::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 10px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--egl-brand);
}

.egl.egl.egl .egl-disclosure-body a {
	color: var(--egl-brand-ink);
	border-bottom: 1px solid rgba(188, 88, 14, .35);
}

.egl.egl.egl .egl-disclosure-foot {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--egl-line);
	font-size: 12px;
}

/* ---- Màn hẹp ---- */

@media (max-width: 720px) {

	.egl.egl.egl .egl-head,
	.egl.egl.egl .egl-step {
		padding-left: 18px;
		padding-right: 18px;
	}

	.egl.egl.egl .egl-title {
		font-size: 20px;
	}

	.egl.egl.egl .egl-verdict,
	.egl.egl.egl .egl-big {
		font-size: 22px;
	}

	.egl.egl.egl .egl-rows {
		font-size: 12.5px;
	}
}
