.nlh-ls-widget { font-family: inherit; max-width: 100%; box-sizing: border-box; }
.nlh-ls-widget * { box-sizing: border-box; }
.nlh-ls-title { margin: 0; font-size: 20px; font-weight: 700; }
.nlh-ls-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nlh-ls-doi-loai { display: inline-flex; border: 1px solid #ddd; border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.nlh-ls-nut-loai { border: none; background: #fafafa; padding: 0px 10px; font-size: 12px; cursor: pointer; color: #555; margin: 0;}
.nlh-ls-nut-loai + .nlh-ls-nut-loai { border-left: 1px solid #ddd; }
.nlh-ls-nut-loai.dang-chon { background: #2271b1; color: #fff; }
.nlh-ls-bar { cursor: pointer; }
.nlh-ls-bar.net-dut { fill-opacity: 0.55; }
.nlh-ls-legend { display: flex; flex-wrap: wrap; gap: 3px 5px; margin-bottom: 10px; border: 1px solid #80808091; border-radius: 5px; padding: 5px; max-height: 100px; overflow: auto;}
.nlh-ls-legend-item {display: flex;align-items: center;gap: 6px;font-size: 10px;cursor: pointer;user-select: none;padding: 5px 10px;border: 1px solid #e2e2e2;border-radius: 999px;background: #fafafa;transition: all .15s ease;}
.nlh-ls-legend-item.tat { opacity: .4; }
.nlh-ls-legend-item:hover { border-color: #bbb; }
.nlh-ls-legend-swatch { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.nlh-ls-legend-swatch.duong-net-dut { border-radius: 2px; }
.nlh-ls-chart-wrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nlh-ls-svg { display: block; height: auto; }
.nlh-ls-duong-hien-tai { stroke: #d63638; stroke-width: 1.5; stroke-dasharray: 4 3; }
.nlh-ls-nhan-hien-tai { font-size: 10px; fill: #d63638; font-weight: 600; }
.nlh-ls-nhan-gia-tri { font-size: 9.5px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.nlh-ls-nhan-ten { font-size: 11px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.nlh-ls-line { fill: none; stroke-width: 2.5; }
.nlh-ls-line.net-dut { stroke-dasharray: 6 4; }
.nlh-ls-line.lam-phat { stroke-width: 2; stroke-dasharray: 3 3; }
.nlh-ls-diem { cursor: pointer; }
.nlh-ls-axis-text { font-size: 11px; fill: #666; }
.nlh-ls-grid-line { stroke: #ececec; stroke-width: 1; }
.nlh-ls-tooltip { position: absolute; pointer-events: none; background: #1d2327; color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 6px; line-height: 1.5; opacity: 0; transform: translate(-50%, -110%); transition: opacity .1s ease; white-space: nowrap; z-index: 5; }
.nlh-ls-tooltip.hien { opacity: 1; }
.nlh-ls-tooltip strong { display: block; margin-bottom: 2px; }
.nlh-ls-empty { color: #888; font-style: italic; }

.nlh-ls-bang-so-lieu-wrap { margin-top: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2e2e2; border-radius: 6px; max-width: 100%; }
.nlh-ls-bang-so-lieu { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 13px; margin: 0}
.nlh-ls-bang-so-lieu th, .nlh-ls-bang-so-lieu td { border: 1px solid #e8e8e8; padding: 3px 5px; text-align: center; white-space: nowrap; font-size: 10px; }
.nlh-ls-bang-so-lieu thead th { background: #f7f7f7; font-weight: 700; }
.nlh-ls-bang-so-lieu td.ten-chi-so, .nlh-ls-bang-so-lieu th.ten-chi-so { text-align: left; font-weight: 600; position: sticky; left: 0; background: #fff; }
.nlh-ls-bang-so-lieu thead th.ten-chi-so { background: #f7f7f7; }
.nlh-ls-bang-so-lieu .cham-mau { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.nlh-ls-bang-so-lieu .nam-hien-tai { background: #fdeeee; }

/* Khi div chứa widget hẹp (<400px, đo bằng JS), tắt sticky cột "Chỉ số" để không che số liệu các năm */
.nlh-ls-widget.nlh-ls-cot-hep .nlh-ls-bang-so-lieu td.ten-chi-so,
.nlh-ls-widget.nlh-ls-cot-hep .nlh-ls-bang-so-lieu th.ten-chi-so {
	position: static;
	left: auto;
}

@media (max-width: 600px) {
	.nlh-ls-title { font-size: 17px; }
	.nlh-ls-legend-item { font-size: 10px; padding: 4px 5px; }
}
