/* CLB Doanh nhân Cựu sinh viên – giao diện
   Dùng font của theme (không tải web font → nhanh hơn). */

.clbdn {
	--clb-primary: #14356b;
	--clb-accent: #c8962d;
	--clb-ink: #1b2433;
	--clb-muted: #5d6778;
	--clb-line: #dfe3ea;
	--clb-surface: #fff;
	--clb-tint: #f3f5f9;
	--clb-primary-soft: color-mix(in srgb, var(--clb-primary) 9%, #fff);
	color: var(--clb-ink);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 2rem;
	-webkit-text-size-adjust: 100%;
}
.clbdn *, .clbdn *::before, .clbdn *::after { box-sizing: border-box; }
.clbdn svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.clbdn :focus-visible { outline: 3px solid var(--clb-accent); outline-offset: 2px; }
.clbdn .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nút ---------- */
.clbdn-btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .6em 1.1em; border-radius: 8px; border: 1px solid var(--clb-primary);
	background: var(--clb-primary); color: #fff; font: inherit; font-weight: 600; font-size: 14px;
	cursor: pointer; line-height: 1.2; transition: background-color .15s, color .15s;
}
.clbdn-btn:hover { background: color-mix(in srgb, var(--clb-primary) 85%, #000); color: #fff; }
.clbdn-btn--ghost { background: var(--clb-surface); color: var(--clb-primary); }
.clbdn-btn--ghost:hover { background: var(--clb-primary-soft); color: var(--clb-primary); }
.clbdn-btn[hidden] { display: none; }

/* ---------- Hero danh sách ---------- */
.clbdn-hero {
	display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: end;
	background: var(--clb-primary); color: #fff;
	border-radius: 18px; padding: clamp(22px, 4vw, 40px);
	position: relative; overflow: hidden;
}
.clbdn-hero::after { /* đường chỉ màu nhấn – gợi dải ruy băng của danh thiếp */
	content: ""; position: absolute; left: clamp(22px, 4vw, 40px); top: 0; width: 56px; height: 5px;
	background: var(--clb-accent); border-radius: 0 0 3px 3px;
}
.clbdn-hero__title { margin: 0; color: #fff; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; max-width: 40ch; }
.clbdn-hero__sub { margin: .6em 0 0; color: rgba(255,255,255,.78); max-width: 90ch; }
.clbdn-hero__facts { display: flex; gap: 28px; margin: 0; }
.clbdn-hero__facts div { border-left: 2px solid var(--clb-accent); padding-left: 12px; }
.clbdn-hero__facts dt { font-size: 13px; color: rgba(255,255,255,.7); }
.clbdn-hero__facts dd { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.clbdn-hero__bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

.clbdn-search {
	flex: 1 1 420px; display: flex; align-items: center; gap: 10px;
	background: #fff; color: var(--clb-ink); border-radius: 12px; padding: 0 14px;
	box-shadow: 0 0 0 0 var(--clb-accent); transition: box-shadow .15s; margin: 0;
}
.clbdn-search:focus-within { box-shadow: 0 0 0 3px var(--clb-accent); }
.clbdn-search > svg { font-size: 20px; color: var(--clb-muted); }
.clbdn .clbdn-search__input {
	flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; background: transparent !important;
	box-shadow: none !important; font: inherit; font-size: 16px; padding: 15px 0 !important; margin: 0; color: inherit; height: auto;
}
.clbdn-search__input::-webkit-search-cancel-button { display: none; }
.clbdn-search__clear { border: 0; background: var(--clb-tint); color: var(--clb-muted); width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.clbdn-search__clear:hover { background: var(--clb-line); color: var(--clb-ink); }
.clbdn-search__kbd { font: 12px/1 inherit; border: 1px solid var(--clb-line); border-radius: 5px; padding: 4px 7px; color: var(--clb-muted); }
.clbdn-search:focus-within .clbdn-search__kbd { display: none; }

.clbdn-updated { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.8); white-space: nowrap; }
.clbdn-updated svg { font-size: 15px; }
.clbdn-updated time { color: #fff; font-weight: 600; }

/* ---------- Tab khoa ---------- */
.clbdn-tabs-wrap {
	position: sticky; top: var(--clbdn-sticky-top, 0px); z-index: 5;
	background: color-mix(in srgb, var(--clb-surface) 92%, transparent);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	margin: 16px 0 0; padding: 10px 0; border-bottom: 1px solid var(--clb-line);
}
.admin-bar .clbdn-tabs-wrap { --clbdn-sticky-top: 32px; }
.clbdn-tabs {
	display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
	padding: 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.clbdn-tab {
	flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px;
	border: 1px solid var(--clb-line); background: var(--clb-surface); color: var(--clb-ink);
	border-radius: 999px; padding: 8px 8px 8px 16px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.clbdn-tab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fc, var(--clb-accent)); }
.clbdn-tab:hover { border-color: var(--clb-primary); }
.clbdn-tab em { font-style: normal; font-size: 12px; font-weight: 700; min-width: 26px; text-align: center; padding: 3px 7px; border-radius: 999px; background: var(--clb-tint); color: var(--clb-muted); font-variant-numeric: tabular-nums; }
.clbdn-tab.is-active { background: var(--clb-primary); border-color: var(--clb-primary); color: #fff; }
.clbdn-tab.is-active em { background: rgba(255,255,255,.18); color: #fff; }
.clbdn-tab.is-empty:not(.is-active) { opacity: .45; }

.clbdn-info { margin: 14px 2px; color: var(--clb-muted); font-size: 14px; min-height: 1.5em; }
.clbdn-info b { color: var(--clb-ink); }

/* ---------- Thẻ thành viên: danh thiếp ---------- */
.clbdn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.clbdn-card {
	--fc: var(--clb-primary);
	position: relative; display: flex; flex-direction: column; gap: 14px;
	background: var(--clb-surface); border: 1px solid var(--clb-line); border-radius: 12px;
	padding: 18px 18px 16px 22px; min-height: 172px; overflow: hidden;
	transition: border-color .15s, transform .15s;
	content-visibility: auto; contain-intrinsic-size: auto 190px;
}
.clbdn-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--fc); }
.clbdn-card:hover { border-color: color-mix(in srgb, var(--fc) 45%, var(--clb-line)); transform: translateY(-2px); }
.clbdn-card__head { display: flex; gap: 14px; align-items: flex-start; }
.clbdn-avatar {
	flex: none; width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center;
	background: color-mix(in srgb, var(--fc) 12%, #fff); color: var(--fc);
	font-weight: 700; font-size: 17px; letter-spacing: .02em;
}
.clbdn-card__id { min-width: 0; }
.clbdn .clbdn-card__name { margin: 0; padding: 0; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--clb-ink); letter-spacing: 0; text-transform: none; }
.clbdn-card__role { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--clb-accent) 70%, #000); line-height: 1.35; }
.clbdn-card__company { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--clb-primary); display: flex; gap: 8px; }
.clbdn-card__company svg { margin-top: 3px; color: var(--clb-muted); }
.clbdn-card__meta { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px dashed var(--clb-line); display: grid; gap: 5px; font-size: 13.5px; color: var(--clb-muted); }
.clbdn-card__meta li { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.clbdn-card__meta svg { margin-top: 3px; }
.clbdn-card__meta a { color: var(--clb-primary); text-decoration: none; word-break: break-all; }
.clbdn-card__meta a:hover { text-decoration: underline; }
.clbdn mark { background: color-mix(in srgb, var(--clb-accent) 32%, #fff); color: inherit; padding: 0 1px; border-radius: 3px; }

.clbdn-card--skel { gap: 10px; }
.clbdn-card--skel i, .clbdn-card--skel b, .clbdn-kpi--skel {
	display: block; border-radius: 6px;
	background: linear-gradient(90deg, var(--clb-tint) 25%, #e9edf3 50%, var(--clb-tint) 75%) 0 0 / 200% 100%;
	animation: clbdn-shimmer 1.3s linear infinite;
}
.clbdn-card--skel i { width: 50px; height: 50px; border-radius: 10px; }
.clbdn-card--skel b { height: 12px; width: 80%; }
.clbdn-card--skel b:last-child { width: 55%; }
@keyframes clbdn-shimmer { to { background-position: -200% 0; } }

.clbdn-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--clb-line); border-radius: 12px; color: var(--clb-muted); }
.clbdn-empty strong { display: block; color: var(--clb-ink); font-size: 17px; margin-bottom: 4px; }
.clbdn-empty .clbdn-btn { margin-top: 14px; }
.clbdn-empty[hidden] { display: none; }
.clbdn-more-wrap { text-align: center; margin-top: 22px; }

/* ---------- Ban quản trị ---------- */
.clbdn-board__grid { margin-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .clbdn-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clbdn-board__grid { grid-template-columns: minmax(0, 1fr); } }
.clbdn-card--board { padding-left: 18px; }
.clbdn-card--board::before { content: none; }
.clbdn-card__pos { margin: -8px 0 0; display: flex; gap: 8px; font-size: 13.5px; line-height: 1.4; color: var(--clb-muted); }
.clbdn-card__pos svg { margin-top: 3px; }
.clbdn-board--bare .clbdn-board__grid { margin-top: 0; }
.clbdn-card--board { content-visibility: visible; }
.clbdn-card--board[hidden] { display: none; }
.clbdn-card--board .clbdn-card__head { align-items: center; }
.clbdn-card--board .clbdn-avatar { width: var(--clb-avatar, 110px); height: var(--clb-avatar, 110px); border-radius: 16px; font-size: calc(var(--clb-avatar, 110px) * .32); }
.clbdn-avatar--photo { overflow: hidden; padding: 0; }
.clbdn .clbdn-avatar__img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center top; display: block; margin: 0; border-radius: 0; }

/* ---------- Tường logo doanh nghiệp ---------- */
.clbdn-logos { --clb-logo-h: 110px; --clb-logo-cols: 6; }
.clbdn .clbdn-logos__title { margin: 0 0 20px; font-size: clamp(20px, 2.6vw, 26px); color: var(--clb-primary); text-align: center; }
.clbdn-logos__grid { display: grid; grid-template-columns: repeat(var(--clb-logo-cols), minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1040px) { .clbdn-logos__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .clbdn-logos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 460px)  { .clbdn-logos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.clbdn-logo {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	background: var(--clb-surface); border: 1px solid var(--clb-line); border-radius: 12px;
	padding: 16px 14px; text-decoration: none; color: var(--clb-muted); cursor: pointer;
	font: inherit; text-align: center; width: 100%;
	transition: border-color .18s, box-shadow .18s, transform .18s;
}
.clbdn-logo[hidden] { display: none; }
.clbdn-logo__frame { display: flex; align-items: center; justify-content: center; width: 100%; height: var(--clb-logo-h); }
.clbdn .clbdn-logo__img {
	width: 100% !important; height: 100%; max-width: 100%; max-height: 100%;
	object-fit: contain; object-position: center; margin: 0; display: block;
	transition: filter .25s, opacity .25s, transform .25s;
}
.clbdn-logos.is-grayscale .clbdn-logo__img { filter: grayscale(1); opacity: .68; }
.clbdn-logo__name {
	font-size: 12.5px; line-height: 1.35; max-width: 100%;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.clbdn-logo:hover, .clbdn-logo:focus-visible { border-color: color-mix(in srgb, var(--clb-primary) 40%, var(--clb-line)); box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-2px); }
.clbdn-logo:hover .clbdn-logo__img, .clbdn-logo:focus-visible .clbdn-logo__img { filter: none; opacity: 1; transform: scale(1.04); }
.clbdn-logo:hover .clbdn-logo__name { color: var(--clb-primary); }

/* Cửa sổ chi tiết doanh nghiệp */
.clbdn-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.clbdn-modal__bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .62); backdrop-filter: blur(2px); }
.clbdn-modal__box {
	position: relative; background: #fff; border-radius: 16px; max-width: 560px; width: 100%;
	max-height: calc(100vh - 40px); overflow: auto; padding: 28px 28px 24px;
	box-shadow: 0 24px 60px rgba(0,0,0,.28); animation: clbdn-pop .18s ease-out;
}
@keyframes clbdn-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.clbdn-modal__close {
	position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: var(--clb-muted); font-size: 24px; line-height: 1; cursor: pointer;
}
.clbdn-modal__close:hover { background: #f1f5f9; color: var(--clb-ink); }
.clbdn-modal__figure { display: flex; align-items: center; justify-content: center; height: 150px; margin-bottom: 18px; }
.clbdn-modal__figure img { max-width: 78%; max-height: 100%; width: auto; object-fit: contain; }
.clbdn .clbdn-modal__name { margin: 0 0 10px; font-size: 20px; line-height: 1.3; color: var(--clb-primary); text-align: center; }
.clbdn-modal__desc { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--clb-ink); white-space: pre-line; }
.clbdn-modal__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.clbdn-modal__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
	background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.clbdn-modal__nav:hover { background: #fff; color: var(--clb-primary); border-color: #fff; }
.clbdn-modal__nav--prev { left: max(16px, calc(50% - 340px)); }
.clbdn-modal__nav--next { right: max(16px, calc(50% - 340px)); }
@media (max-width: 720px) {
	.clbdn-modal__box { padding: 24px 18px 18px; }
	.clbdn-modal__nav--prev { left: 50%; margin-left: -56px; }
	.clbdn-modal__nav--next { right: 50%; margin-right: -56px; }
	.clbdn-modal__nav { top: auto; bottom: 18px; transform: none; }
	.clbdn-modal__box { margin-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .clbdn-logo, .clbdn-logo__img, .clbdn-modal__box { transition: none !important; animation: none !important; transform: none !important; } }
@media print { .clbdn-logos.is-grayscale .clbdn-logo__img { filter: none; opacity: 1; } .clbdn-modal { display: none; } }

/* ---------- Cổng mã truy cập ---------- */
.clbdn-lock {
	text-align: center; padding: clamp(32px, 6vw, 56px) 20px;
	border: 1px solid var(--clb-line); border-radius: 18px;
	background: linear-gradient(180deg, var(--clb-primary-soft), var(--clb-surface));
}
.clbdn-lock__icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--clb-primary); color: #fff; }
.clbdn-lock__icon svg { font-size: 26px; }
.clbdn .clbdn-lock__title { margin: 0 0 6px; font-size: clamp(19px, 2.5vw, 24px); color: var(--clb-primary); }
.clbdn-lock__sub { margin: 0 0 20px; color: var(--clb-muted); }
.clbdn-lock__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }
.clbdn .clbdn-lock__input {
	flex: 0 1 260px; font: inherit; font-size: 16px; padding: 12px 16px; margin: 0; height: auto;
	border: 1px solid var(--clb-line); border-radius: 10px; background: var(--clb-surface); color: var(--clb-ink);
	letter-spacing: .08em; text-align: center;
}
.clbdn .clbdn-lock__input:focus { border-color: var(--clb-primary); outline: none; box-shadow: 0 0 0 3px var(--clb-accent); }
.clbdn-lock__form .clbdn-btn { padding: 12px 22px; }
.clbdn-lock__msg { margin: 14px 0 0; min-height: 1.4em; font-size: 14px; color: var(--clb-muted); }
.clbdn-lock__msg.is-error { color: #b91c1c; font-weight: 600; }

/* ---------- Báo cáo ---------- */
.clbdn-report-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
	padding-bottom: 18px; border-bottom: 3px solid var(--clb-primary); margin-bottom: 20px;
}
.clbdn-report-head__title { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; color: var(--clb-primary); max-width: 26ch; }
.clbdn-report-head .clbdn-updated { color: var(--clb-muted); }
.clbdn-report-head .clbdn-updated time { color: var(--clb-ink); }
.clbdn-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.clbdn-select { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--clb-muted); margin: 0; }
.clbdn .clbdn-select select { font: inherit; font-size: 14px; padding: 8px 32px 8px 12px; border: 1px solid var(--clb-line); border-radius: 8px; background-color: var(--clb-surface); color: var(--clb-ink); height: auto; min-width: 150px; }

.clbdn-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-bottom: 20px; }
.clbdn-kpi { background: var(--clb-surface); border: 1px solid var(--clb-line); border-radius: 12px; padding: 16px 18px; }
.clbdn-kpi--skel { height: 92px; border: 0; }
.clbdn-kpi b { display: block; font-size: 30px; line-height: 1.15; color: var(--clb-primary); font-variant-numeric: tabular-nums; }
.clbdn-kpi span { color: var(--clb-muted); font-size: 13.5px; }
.clbdn-kpi small { display: block; color: var(--clb-ink); font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.clbdn-kpi:first-child { background: var(--clb-primary); border-color: var(--clb-primary); }
.clbdn-kpi:first-child b { color: #fff; }
.clbdn-kpi:first-child span { color: rgba(255,255,255,.8); }

.clbdn-panels { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 720px) { .clbdn-panels { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .clbdn-panels { grid-template-columns: 1fr 1fr 1fr; } }
.clbdn-panel { background: var(--clb-surface); border: 1px solid var(--clb-line); border-radius: 12px; padding: 18px 20px 20px; min-width: 0; }
.clbdn-panel--wide { grid-column: 1 / -1; }
.clbdn-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 14px; }
.clbdn .clbdn-panel__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--clb-ink); }
.clbdn-panel__note { font-size: 13px; color: var(--clb-muted); }
.clbdn-panel__head--sub { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--clb-line); }
.clbdn-seg { display: inline-flex; border: 1px solid var(--clb-line); border-radius: 8px; overflow: hidden; }
.clbdn-seg button { white-space: nowrap; border: 0; background: var(--clb-surface); font: inherit; font-size: 13px; padding: 5px 10px; cursor: pointer; color: var(--clb-muted); }
.clbdn-seg button.is-active { background: var(--clb-primary); color: #fff; }

/* Thanh ngang */
.clbdn-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.clbdn-hbars li { margin: 0; }
.clbdn-hbar__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 5px; }
.clbdn-hbar__top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clbdn-hbar__val { color: var(--clb-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.clbdn-hbar__val b { color: var(--clb-ink); }
.clbdn-hbar__track { height: 10px; background: var(--clb-tint); border-radius: 5px; overflow: hidden; }
.clbdn-hbar__track span { display: block; height: 100%; width: var(--v); background: var(--fc, var(--clb-primary)); border-radius: 5px; }

/* Cột dọc */
.clbdn-cols-scroll { overflow-x: auto; padding-bottom: 4px; }
.clbdn-cols { display: flex; align-items: flex-end; gap: 5px; height: 200px; min-width: 100%; padding-top: 22px; border-bottom: 1px solid var(--clb-line); }
.clbdn-col { flex: 1 0 30px; max-width: 72px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.clbdn-col__val { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.clbdn-col__bar { width: 100%; height: var(--v); min-height: 2px; background: color-mix(in srgb, var(--clb-primary) 70%, #fff); border-radius: 5px 5px 0 0; }
.clbdn-col.is-active .clbdn-col__bar { background: var(--clb-accent); }
.clbdn-col:hover .clbdn-col__bar { background: var(--clb-primary); }
.clbdn-col-labels { display: flex; gap: 6px; min-width: 100%; }
.clbdn-col-labels span { flex: 1 0 30px; max-width: 72px; text-align: center; font-size: 12px; color: var(--clb-muted); padding-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.clbdn-cols--wide .clbdn-col, .clbdn-cols--wide + .clbdn-col-labels span { flex-basis: 76px; max-width: 110px; }

/* Vòng tròn */
.clbdn-donut { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: center; }
.clbdn-donut svg.clbdn-donut__chart { width: 160px; height: 160px; stroke: none; stroke-linecap: butt; transform: rotate(-90deg); }
.clbdn-donut__wrap { position: relative; }
.clbdn-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.clbdn-donut__center b { font-size: 28px; line-height: 1; color: var(--clb-ink); }
.clbdn-donut__center span { font-size: 12px; color: var(--clb-muted); }
.clbdn-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; display: grid; gap: 8px; }
.clbdn-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 14px; margin: 0; }
.clbdn-legend i { width: 12px; height: 12px; border-radius: 3px; }
.clbdn-legend em { font-style: normal; color: var(--clb-muted); font-variant-numeric: tabular-nums; }
.clbdn-legend em b { color: var(--clb-ink); }

/* Bảng chéo */
.clbdn-table-scroll { overflow-x: auto; border: 1px solid var(--clb-line); border-radius: 10px; }
.clbdn .clbdn-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0; border: 0; }
.clbdn .clbdn-table th, .clbdn .clbdn-table td { padding: 9px 12px; border: 0; border-bottom: 1px solid var(--clb-line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clbdn .clbdn-table th:first-child, .clbdn .clbdn-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--clb-surface); white-space: normal; min-width: 200px; }
.clbdn .clbdn-table thead th { background: var(--clb-tint); color: var(--clb-ink); font-weight: 700; }
.clbdn .clbdn-table thead th:first-child { background: var(--clb-tint); }
.clbdn .clbdn-table tfoot td, .clbdn .clbdn-table td.is-total { font-weight: 700; }
.clbdn .clbdn-table tfoot td { background: var(--clb-primary-soft); border-bottom: 0; }
.clbdn .clbdn-table td.is-zero { color: #b7bdc8; }

.clbdn-nodata { color: var(--clb-muted); font-size: 14px; margin: 0; }
.clbdn-gate { padding: 24px; border: 1px dashed var(--clb-line); border-radius: 12px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
	.clbdn-kpis { grid-template-columns: 1fr 1fr; }
	.clbdn-kpi b { font-size: 24px; }
	.clbdn-hero { grid-template-columns: 1fr; }
	.clbdn-hero__facts { gap: 20px; }
	.clbdn-search__kbd { display: none; }
	.clbdn-report-head { align-items: stretch; }
	.clbdn-toolbar { width: 100%; }
	.clbdn-select { flex: 1 1 100%; }
	.clbdn .clbdn-select select { flex: 1; }
	.clbdn .clbdn-table th:first-child, .clbdn .clbdn-table td:first-child { min-width: 150px; }
}
@media (max-width: 782px) { .admin-bar .clbdn-tabs-wrap { --clbdn-sticky-top: 0px; } }

@media (prefers-reduced-motion: reduce) {
	.clbdn *, .clbdn *::before { animation: none !important; transition: none !important; }
	.clbdn-card:hover { transform: none; }
}

/* ---------- In / PDF ---------- */
@media print {
	body.clbdn-printing * { visibility: hidden !important; }
	body.clbdn-printing .clbdn-print-target, body.clbdn-printing .clbdn-print-target * { visibility: visible !important; }
	body.clbdn-printing .clbdn-print-target { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
	.clbdn-noprint { display: none !important; }
	.clbdn-panel, .clbdn-kpi { break-inside: avoid; }
	.clbdn-panels { display: block; }
	.clbdn-panel { margin-bottom: 12px; }
	.clbdn-table-scroll, .clbdn-cols-scroll { overflow: visible; }
	.clbdn * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	@page { size: A4; margin: 12mm; }
}
