/* LaDo-CDCT - Trang ngoài website, mã ngắn [lado_cdct]: bảng nhắc việc và khung chuyển sang theo dõi chi tiết.
 * Bố cục co giãn theo bề rộng khung chứa (container query) chứ không theo bề rộng màn hình, nên vừa vặn
 * trong cột nội dung hẹp, trang tràn màn hình, chế độ toàn màn hình (màn hình lớn phòng họp) và điện thoại.
 * Ý đồ: mỗi thẻ là một "tờ lịch" - ngày hạn là khối màu lớn nhất; tên đơn vị chủ trì là tiêu đề thẻ. */
.cdct-nv {
	--nv-chinh: #12304d;
	--nv-chinh-2: #1f4e79;
	--nv-vang: #c8a24a;
	--nv-chu: #1b2636;
	--nv-mo: #586679;
	--nv-vien: #dfe5ed;
	--nv-nen: #edf1f6;
	--nv-do: #b3261e;
	--nv-do-dam: #8c1d17;
	--nv-do-nhat: #fbe9e7;
	--nv-cam: #b54708;
	--nv-cam-dam: #8f3806;
	--nv-cam-nhat: #fff1e3;
	--nv-lam: #1857b8;
	--nv-lam-dam: #124390;
	--nv-lam-nhat: #e8f0fc;
	--nv-tim: #6b3fc0;
	--nv-tim-dam: #522f96;
	--nv-tim-nhat: #f1ebfc;
	--nv-xanh: #067647;
	--nv-le: 16px; /* lề trong hai bên, nới ra khi tràn màn hình */
	container-type: inline-size;
	container-name: cdctnv;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--nv-chu);
	background: var(--nv-nen);
	border-radius: 16px;
	padding: 0 0 16px;
	/* Chỉ đặt lề trên/dưới: lề trái/phải để giao diện căn giữa (alignwide, cột nội dung). */
	margin-top: 0;
	margin-bottom: 24px;
	overflow: hidden;
	-webkit-text-size-adjust: 100%;
	position: relative;
}
.cdct-nv *, .cdct-nv *::before, .cdct-nv *::after { box-sizing: border-box; }
.cdct-nv h2, .cdct-nv h3, .cdct-nv p, .cdct-nv ol, .cdct-nv ul, .cdct-nv li, .cdct-nv dl, .cdct-nv dt, .cdct-nv dd { margin: 0; padding: 0; border: 0; }
.cdct-nv ol, .cdct-nv ul { list-style: none; }
.cdct-nv li::before, .cdct-nv li::marker { content: none; }
.cdct-nv button { font-family: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; box-shadow: none; min-height: 0; line-height: 1.3; }
.cdct-nv [hidden], .cdct-nv button[hidden].cdct-nv-nut, .cdct-nv button[hidden].cdct-nv-xem-them, .cdct-nv button[hidden].cdct-nv-bq-nut { display: none !important; }
.cdct-nv .cdct-nv-ic { width: 16px; height: 16px; fill: currentColor; flex: none; vertical-align: -3px; }
.cdct-nv .cdct-nv-an-chu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cdct-nv input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--nv-chinh-2); flex: none; cursor: pointer; }

/* Tràn hết bề ngang màn hình (rong="toan"): kịch bản đặt bề rộng/lề âm; ở đây bỏ bo góc, nới lề trong. */
.cdct-nv.cdct-tran, .cdct-khung.cdct-tran { max-width: none !important; }
.cdct-nv.cdct-tran-roi { border-radius: 0; --nv-le: max(16px, calc((100% - 1720px) / 2)); }

/* ---------------- Nút (chống giao diện ghi đè: nhiều theme đặt nền/viền cho mọi button với độ ưu tiên cao) */
.cdct-nv button.cdct-nv-o, .cdct-nv button.cdct-nv-xem-them, .cdct-nv button.cdct-nv-nut, .cdct-nv button.cdct-nv-nut-toan, .cdct-nv button.cdct-nv-bq-nut {
	-webkit-appearance: none !important; appearance: none !important; width: auto !important; margin: 0 !important; text-decoration: none; cursor: pointer;
}
.cdct-nv button.cdct-nv-o { background: rgba(255, 255, 255, .07) !important; border: 1px solid rgba(255, 255, 255, .16) !important; color: #fff !important; padding: 10px 12px !important; border-radius: 12px !important; font-size: inherit !important; font-weight: 400 !important; }
.cdct-nv button.cdct-nv-o:hover { background: rgba(255, 255, 255, .13) !important; }
.cdct-nv button.cdct-nv-o[aria-pressed="true"] { background: #fff !important; color: var(--nv-chinh) !important; border-color: #fff !important; }
.cdct-nv button.cdct-nv-xem-them, .cdct-nv button.cdct-nv-xem-them:hover, .cdct-nv button.cdct-nv-xem-them:focus { background: transparent !important; border: 0 !important; color: var(--nv-chinh-2) !important; padding: 4px 0 !important; font-size: 13.5px !important; font-weight: 600 !important; border-radius: 4px !important; text-decoration: underline !important; text-underline-offset: 3px; }
.cdct-nv button.cdct-nv-nut {
	display: inline-flex !important; align-items: center; gap: 6px; padding: 8px 13px !important; border-radius: 9px !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.2 !important;
	background: #fff !important; color: var(--nv-chinh) !important; border: 1px solid #c9d3df !important; box-shadow: none !important; min-height: 38px !important; white-space: nowrap;
}
.cdct-nv button.cdct-nv-nut:hover { background: #f4f7fb !important; border-color: #9fb0c4 !important; }
.cdct-nv button.cdct-nv-nut-chinh { background: var(--nv-chinh) !important; color: #fff !important; border-color: var(--nv-chinh) !important; }
.cdct-nv button.cdct-nv-nut-chinh:hover { background: var(--nv-chinh-2) !important; border-color: var(--nv-chinh-2) !important; }
.cdct-nv button.cdct-nv-nut-rong { background: transparent !important; border-color: transparent !important; color: var(--nv-mo) !important; padding-left: 8px !important; padding-right: 8px !important; }
.cdct-nv button.cdct-nv-nut-rong:hover { background: #eef2f6 !important; color: var(--nv-chinh) !important; border-color: transparent !important; }
.cdct-nv button.cdct-nv-nut-nguy { background: var(--nv-do) !important; color: #fff !important; border-color: var(--nv-do) !important; }
.cdct-nv button.cdct-nv-nut-nguy:hover { background: var(--nv-do-dam) !important; border-color: var(--nv-do-dam) !important; }
.cdct-nv button.cdct-nv-nut[disabled] { opacity: .55; cursor: progress; }
.cdct-nv button:focus-visible, .cdct-nv input:focus-visible, .cdct-nv select:focus-visible { outline: 3px solid var(--nv-vang) !important; outline-offset: 2px; }

/* ---------------- Đầu khung */
.cdct-nv .cdct-nv-dau {
	background: var(--nv-chinh);
	background-image: linear-gradient(120deg, #0d2238 0%, var(--nv-chinh) 60%, #19456e 100%);
	color: #fff;
	padding: 18px var(--nv-le) 16px;
	position: relative;
}
.cdct-nv .cdct-nv-dau::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--nv-vang); }
.cdct-nv .cdct-nv-dau-hang { display: flex; align-items: flex-start; gap: 12px; }
.cdct-nv .cdct-nv-dau-chu { flex: 1 1 auto; min-width: 0; }
.cdct-nv .cdct-nv-nho { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #e6d39f; font-weight: 600; }
.cdct-nv .cdct-nv-tieu-de { font-size: 26px; line-height: 1.2; font-weight: 750; color: inherit; margin: 4px 0 2px; font-family: inherit; letter-spacing: -.01em; }
.cdct-nv .cdct-nv-moc { font-size: 13.5px; color: #c6d4e2; }
.cdct-nv button.cdct-nv-nut-toan {
	display: inline-flex !important; align-items: center; gap: 7px; flex: none; padding: 9px 12px !important; border-radius: 10px !important;
	background: rgba(255, 255, 255, .1) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .28) !important; font-size: 14px !important; font-weight: 600 !important; box-shadow: none !important;
}
.cdct-nv button.cdct-nv-nut-toan:hover { background: rgba(255, 255, 255, .2) !important; }
.cdct-nv .cdct-nv-nut-toan .cdct-nv-ic { width: 18px; height: 18px; }
.cdct-nv .cdct-nv-nut-toan [data-toan-chu] { display: none; }
.cdct-nv .cdct-nv-nut-toan .cdct-nv-ic-mo, .cdct-nv .cdct-nv-nut-toan .cdct-nv-ic-dong { display: inline-flex; }
.cdct-nv .cdct-nv-nut-toan .cdct-nv-ic-dong, .cdct-nv .cdct-nv-nut-toan[aria-pressed="true"] .cdct-nv-ic-mo { display: none; }
.cdct-nv .cdct-nv-nut-toan[aria-pressed="true"] .cdct-nv-ic-dong { display: inline-flex; }
.cdct-nv .cdct-nv-tong { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cdct-nv .cdct-nv-o { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; position: relative; overflow: hidden; transition: background .15s, border-color .15s; }
.cdct-nv .cdct-nv-o::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #9fb3c8; }
.cdct-nv .cdct-nv-o-qua_han::before { background: #ff6b5e; }
.cdct-nv .cdct-nv-o-hom_nay::before { background: #ffa646; }
.cdct-nv .cdct-nv-o-sap_toi::before { background: #6ea8ff; }
.cdct-nv .cdct-nv-o-cho_y_kien::before { background: #b69cff; }
.cdct-nv .cdct-nv-o-so { font-size: 28px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cdct-nv .cdct-nv-o-chu { font-size: 13px; opacity: .92; }

/* ---------------- Bộ lọc và thanh xuất báo cáo */
.cdct-nv .cdct-nv-loc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px var(--nv-le) 4px; }
.cdct-nv .cdct-nv-chon, .cdct-nv .cdct-nv-tim { min-width: 0; width: 100%; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--nv-vien); border-radius: 10px; padding: 0 10px; min-height: 44px; color: var(--nv-mo); flex: 1 1 100%; }
.cdct-nv .cdct-nv-chon:focus-within, .cdct-nv .cdct-nv-tim:focus-within { border-color: var(--nv-chinh-2); box-shadow: 0 0 0 3px rgba(31, 78, 121, .15); }
.cdct-nv .cdct-nv-chon select, .cdct-nv .cdct-nv-tim input {
	flex: 1; min-width: 0; width: 100%; max-width: 100%; text-overflow: ellipsis; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--nv-chu);
	padding: 9px 0; margin: 0; box-shadow: none; height: auto; -webkit-appearance: none; appearance: none; border-radius: 0;
}
.cdct-nv .cdct-nv-chon { position: relative; }
.cdct-nv .cdct-nv-chon::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--nv-mo); border-bottom: 2px solid var(--nv-mo); transform: rotate(45deg) translateY(-3px); flex: none; pointer-events: none; }
.cdct-nv .cdct-nv-ghi { font-size: 13px; color: var(--nv-mo); flex: 1 1 100%; }

.cdct-nv .cdct-nv-xuat {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px var(--nv-le) 0; padding: 10px 12px;
	background: #fff; border: 1px solid var(--nv-vien); border-radius: 12px; position: relative; z-index: 3;
}
.cdct-nv .cdct-nv-xuat-dem { font-size: 14px; color: var(--nv-mo); flex: 1 1 200px; min-width: 0; }
.cdct-nv .cdct-nv-xuat-dem b { color: var(--nv-chinh); }
.cdct-nv .cdct-nv-xuat-nut { display: flex; flex-wrap: wrap; gap: 6px; }
.cdct-nv .cdct-nv-tick-het, .cdct-nv .cdct-nv-tick-nhom { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--nv-chinh); cursor: pointer; user-select: none; }
/* Khi đã chọn việc: thanh xuất báo cáo bám mép trên màn hình để luôn trong tầm tay. */
.cdct-nv .cdct-nv-xuat.cdct-nv-xuat-noi { position: -webkit-sticky; position: sticky; top: var(--wp-admin--admin-bar--height, 0px); border-color: var(--nv-chinh-2); box-shadow: 0 6px 18px rgba(18, 48, 77, .16); }

/* ---------------- Nhóm */
.cdct-nv .cdct-nv-nhom { padding: 12px var(--nv-le) 2px; }
.cdct-nv .cdct-nv-nhom-dau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 6px 2px 10px; }
.cdct-nv .cdct-nv-nhom-dau h3 { font-size: 18px; font-weight: 750; color: var(--nv-chu); display: flex; align-items: center; gap: 8px; font-family: inherit; line-height: 1.3; }
.cdct-nv .cdct-nv-nhom-dau h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--nv-mau, #98a2b3); box-shadow: 0 0 0 4px var(--nv-mau-nhat, #eef2f6); }
.cdct-nv .cdct-nv-nhom-dau p { font-size: 13.5px; color: var(--nv-mo); }
.cdct-nv .cdct-nv-tick-nhom { margin-left: auto; font-size: 13.5px; font-weight: 500; color: var(--nv-mo); }
.cdct-nv .cdct-nv-dem { display: inline-block; min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: var(--nv-mau-nhat, #e3e8ef); color: var(--nv-mau, #344054); }
.cdct-nv .cdct-nv-nhom-qua_han { --nv-mau: var(--nv-do); --nv-mau-dam: var(--nv-do-dam); --nv-mau-nhat: var(--nv-do-nhat); }
.cdct-nv .cdct-nv-nhom-hom_nay { --nv-mau: var(--nv-cam); --nv-mau-dam: var(--nv-cam-dam); --nv-mau-nhat: var(--nv-cam-nhat); }
.cdct-nv .cdct-nv-nhom-sap_toi { --nv-mau: var(--nv-lam); --nv-mau-dam: var(--nv-lam-dam); --nv-mau-nhat: var(--nv-lam-nhat); }
.cdct-nv .cdct-nv-nhom-cho_y_kien { --nv-mau: var(--nv-tim); --nv-mau-dam: var(--nv-tim-dam); --nv-mau-nhat: var(--nv-tim-nhat); }
.cdct-nv .cdct-nv-ds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }

/* ---------------- Thẻ việc: thẻ là khung chứa riêng nên tự co giãn khi nằm trong lưới 1, 2 hay 3 cột */
.cdct-nv .cdct-nv-the {
	container-type: inline-size; container-name: cdctthe;
	position: relative; background: #fff; border: 1px solid var(--nv-vien); border-radius: 14px; overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.cdct-nv .cdct-nv-the.cdct-nv-the-chon { border-color: var(--nv-chinh-2); box-shadow: 0 0 0 2px var(--nv-chinh-2); }
.cdct-nv .cdct-nv-the-trong { display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; }

/* Tờ lịch - khung hẹp (điện thoại): dải ngang đầu thẻ. */
.cdct-nv .cdct-nv-lich {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px 9px 14px;
	background: var(--nv-mau, #475467); color: #fff;
}
.cdct-nv .cdct-nv-lich-thang { font-size: 13px; font-weight: 700; opacity: .92; white-space: nowrap; order: 2; }
.cdct-nv .cdct-nv-lich-ngay { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; order: 1; letter-spacing: -.02em; }
.cdct-nv .cdct-nv-lich-thu { font-size: 13px; font-weight: 600; opacity: .9; white-space: nowrap; order: 3; }
.cdct-nv .cdct-nv-lich-dem { order: 4; flex-basis: 100%; font-size: 14px; font-weight: 750; white-space: nowrap; }
.cdct-nv .cdct-nv-the-trong > .cdct-nv-than { min-width: 0; padding: 12px 14px 12px; display: flex; flex-direction: column; }
.cdct-nv .cdct-nv-the-trong > .cdct-nv-than > .cdct-nv-xem-them { align-self: flex-start; }

/* Đơn vị chủ trì: tiêu đề thẻ. */
.cdct-nv .cdct-nv-ct { margin-bottom: 8px; }
.cdct-nv .cdct-nv-ct-nhan { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; color: var(--nv-mo); font-weight: 600; margin-bottom: 4px; }
.cdct-nv .cdct-nv-ct-nhan .cdct-nv-ic { color: var(--nv-mau, var(--nv-chinh-2)); }
.cdct-nv .cdct-nv-ct-so { font-weight: 600; color: var(--nv-mau, var(--nv-mo)); background: var(--nv-mau-nhat, #eef2f6); border-radius: 999px; padding: 0 8px; font-size: 12.5px; }
.cdct-nv .cdct-nv-dv-ds { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cdct-nv .cdct-nv-dv { font-size: 20px; line-height: 1.25; font-weight: 750; color: var(--nv-chinh); letter-spacing: -.005em; max-width: 100%; overflow-wrap: anywhere; }
.cdct-nv .cdct-nv-dv em { display: inline-block; margin-left: 6px; font-style: normal; font-size: 12.5px; font-weight: 700; vertical-align: 3px; padding: 1px 8px; border-radius: 999px; background: #fff7e0; color: #7a4d00; }
.cdct-nv .cdct-nv-dv-xin_gia_han em { background: var(--nv-tim-nhat); color: #5b34b5; }
.cdct-nv .cdct-nv-dv-chua_dat em { background: var(--nv-cam-nhat); color: #93370d; }
/* Nhiều đơn vị: thẻ tên gọn, vẫn đậm. */
.cdct-nv .cdct-nv-dv-nhieu { gap: 6px; }
.cdct-nv .cdct-nv-dv-nhieu .cdct-nv-dv { font-size: 14.5px; font-weight: 650; background: #f0f4f9; border: 1px solid #dbe3ed; border-radius: 8px; padding: 4px 10px; color: var(--nv-chinh); }
.cdct-nv .cdct-nv-dv-nhieu .cdct-nv-dv em { vertical-align: 0; font-size: 11.5px; margin-left: 4px; }
.cdct-nv .cdct-nv-dv.cdct-nv-dv-chon { background: var(--nv-chinh) !important; color: #fff !important; border-color: var(--nv-chinh) !important; border-radius: 8px; padding: 2px 8px; }
.cdct-nv .cdct-nv-dv-them { display: none; }
.cdct-nv .cdct-nv-mo .cdct-nv-dv-them, .cdct-nv .cdct-nv-dv-them.cdct-nv-dv-chon { display: inline-block; }

/* Nội dung công việc. */
.cdct-nv .cdct-nv-noi-dung { font-size: 16.5px; line-height: 1.55; color: var(--nv-chu); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cdct-nv .cdct-nv-day-du .cdct-nv-noi-dung { -webkit-line-clamp: unset; display: block; }
.cdct-nv .cdct-nv-xem-nd { margin-top: 2px; }

.cdct-nv .cdct-nv-phu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; margin: 10px 0 12px; font-size: 14px; }
.cdct-nv .cdct-nv-phu > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.cdct-nv .cdct-nv-phu dt { color: var(--nv-mo); font-size: 13px; font-weight: 600; }
.cdct-nv .cdct-nv-phu dd { color: #344054; min-width: 0; overflow-wrap: anywhere; }
.cdct-nv .cdct-nv-phu-han dd { color: var(--nv-mau-dam, var(--nv-chu)); font-weight: 700; }
.cdct-nv .cdct-nv-phu-vb dd { color: var(--nv-mo); }
.cdct-nv .cdct-nv-phu-vb dd b { color: var(--nv-chinh); font-weight: 650; }
.cdct-nv .cdct-nv-thieu { display: inline-block; margin: -4px 0 12px; color: #7a4d00; background: #fff6e0; border-radius: 6px; padding: 2px 9px; font-size: 13px; }

.cdct-nv .cdct-nv-chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid #edf1f5; }
.cdct-nv .cdct-nv-than > .cdct-nv-thieu { align-self: flex-start; }
.cdct-nv .cdct-nv-tien { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--nv-mo); flex: 1 1 200px; min-width: 0; }
.cdct-nv .cdct-nv-tien-ray { display: block; height: 6px; border-radius: 3px; background: #edf1f5; overflow: hidden; max-width: 320px; }
.cdct-nv .cdct-nv-tien-ray span { display: block; height: 100%; background: #12a05c; border-radius: 3px; }

/* Hỏi lại khi bỏ qua theo dõi (thay hộp thoại của trình duyệt). */
.cdct-nv .cdct-nv-hoi { margin-top: 10px; padding: 12px; border-radius: 10px; background: #fff5f4; border: 1px solid #f3c9c4; font-size: 14px; }
.cdct-nv .cdct-nv-hoi label { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--nv-mo); }
.cdct-nv .cdct-nv-hoi input[type="text"] { font: inherit; font-size: 14.5px; padding: 8px 10px; border: 1px solid #d5dce5; border-radius: 8px; background: #fff; color: var(--nv-chu); width: 100%; margin: 0; box-shadow: none; }
.cdct-nv .cdct-nv-hoi-nut { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cdct-nv .cdct-nv-the.cdct-nv-the-di { opacity: .35; transition: opacity .25s; }

/* Ô chọn để xuất báo cáo: góc trên phải của thẻ (chừa chỗ trên dải ngày ở khung hẹp). */
.cdct-nv.cdct-nv-co-chon .cdct-nv-lich { padding-right: 92px; }
.cdct-nv .cdct-nv-tick {
	position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
	background: rgba(255, 255, 255, .95); color: var(--nv-chinh); border-radius: 999px; padding: 5px 10px 5px 8px; font-size: 13px; font-weight: 700;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .18);
}
.cdct-nv .cdct-nv-the-chon .cdct-nv-tick { background: var(--nv-chinh); color: #fff; }

.cdct-nv .cdct-nv-xem-them { display: inline-flex; align-items: center; margin-top: 6px; }
.cdct-nv .cdct-nv-rong { display: flex; gap: 10px; align-items: center; margin: 14px var(--nv-le) 4px; padding: 18px; background: #fff; border: 1px dashed #b7d7c4; border-radius: 14px; color: #05603a; }
.cdct-nv .cdct-nv-rong .cdct-nv-ic { width: 28px; height: 28px; }
.cdct-nv .cdct-nv-dang-tai { opacity: .55; transition: opacity .2s; }

/* ---------------- Đã bỏ qua theo dõi */
.cdct-nv .cdct-nv-bq { margin: 16px var(--nv-le) 0; }
.cdct-nv button.cdct-nv-bq-nut { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 12px !important; border-radius: 10px !important; background: #e3e9f0 !important; color: #3b4a5d !important; border: 0 !important; font-size: 14px !important; font-weight: 600 !important; }
.cdct-nv button.cdct-nv-bq-nut:hover { background: #d7dfe9 !important; }
.cdct-nv .cdct-nv-bq-than { margin-top: 10px; background: #fff; border: 1px solid var(--nv-vien); border-radius: 12px; padding: 12px 14px; }
.cdct-nv .cdct-nv-bq-ghi { font-size: 13.5px; color: var(--nv-mo); margin-bottom: 8px; }
.cdct-nv .cdct-nv-bq-ds li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 9px 0; border-top: 1px solid #edf1f5; font-size: 14px; color: #475467; }
.cdct-nv .cdct-nv-bq-ds li > div { flex: 1 1 260px; min-width: 0; }
.cdct-nv .cdct-nv-bq-ds b { color: var(--nv-chinh); }
.cdct-nv .cdct-nv-bq-ds small { display: block; font-size: 12.5px; color: var(--nv-mo); margin-top: 2px; }

/* ---------------- Thẻ đủ rộng: tờ lịch đứng bên trái */
@container cdctthe (min-width: 470px) {
	.cdct-nv .cdct-nv-the-trong { grid-template-columns: 108px minmax(0, 1fr); }
	.cdct-nv .cdct-nv-lich { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0; text-align: center; }
	.cdct-nv .cdct-nv-lich-thang { order: 0; padding: 12px 6px 2px; font-size: 13px; }
	.cdct-nv .cdct-nv-lich-ngay { order: 0; font-size: 50px; line-height: 1; padding: 2px 0 2px; }
	.cdct-nv .cdct-nv-lich-thu { order: 0; font-size: 13px; padding: 0 6px 12px; white-space: normal; }
	.cdct-nv .cdct-nv-lich-dem { order: 0; margin-top: auto; padding: 9px 6px; background: var(--nv-mau-dam, rgba(0, 0, 0, .2)); font-size: 13.5px; line-height: 1.25; white-space: normal; }
	.cdct-nv .cdct-nv-the-trong > .cdct-nv-than { padding: 14px 18px 14px; }
	.cdct-nv.cdct-nv-co-chon .cdct-nv-lich { padding-right: 0; }
	.cdct-nv.cdct-nv-co-chon .cdct-nv-ct { padding-right: 84px; }
	.cdct-nv .cdct-nv-noi-dung { -webkit-line-clamp: 3; }
}
@container cdctthe (min-width: 760px) {
	.cdct-nv .cdct-nv-the-trong { grid-template-columns: 128px minmax(0, 1fr); }
	.cdct-nv .cdct-nv-lich-ngay { font-size: 60px; }
	.cdct-nv .cdct-nv-dv { font-size: 22px; }
	.cdct-nv .cdct-nv-noi-dung { font-size: 17px; }
	.cdct-nv .cdct-nv-phu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
	.cdct-nv .cdct-nv-phu-vb { grid-column: 1 / -1; }
}

/* ---------------- Khung rộng */
@container cdctnv (min-width: 560px) {
	.cdct-nv { --nv-le: 20px; }
	.cdct-nv .cdct-nv-dau { padding-top: 22px; padding-bottom: 18px; }
	.cdct-nv .cdct-nv-tieu-de { font-size: 30px; }
	.cdct-nv .cdct-nv-nut-toan [data-toan-chu] { display: inline; }
	.cdct-nv .cdct-nv-tong { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cdct-nv .cdct-nv-chon { flex: 0 1 320px; }
	.cdct-nv .cdct-nv-tim { flex: 1 1 260px; }
}
@container cdctnv (min-width: 900px) {
	.cdct-nv .cdct-nv-ghi { flex: 0 1 auto; margin-left: auto; text-align: right; }
}
/* Màn hình rộng, toàn màn hình: lưới 2 rồi 3 cột thẻ. */
@container cdctnv (min-width: 1240px) {
	.cdct-nv .cdct-nv-ds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.cdct-nv .cdct-nv-tieu-de { font-size: 34px; }
}
@container cdctnv (min-width: 1880px) {
	.cdct-nv .cdct-nv-ds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Trình duyệt chưa hỗ trợ container query: dùng bề rộng màn hình. */
@supports not (container-type: inline-size) {
	@media (min-width: 700px) {
		.cdct-nv .cdct-nv-tong { grid-template-columns: repeat(4, minmax(0, 1fr)); }
		.cdct-nv .cdct-nv-chon { flex: 0 1 300px; }
		.cdct-nv .cdct-nv-tim { flex: 1 1 260px; }
		.cdct-nv .cdct-nv-the-trong { grid-template-columns: 108px minmax(0, 1fr); }
		.cdct-nv .cdct-nv-lich { flex-direction: column; align-items: stretch; padding: 0; text-align: center; gap: 0; }
		.cdct-nv .cdct-nv-lich-ngay { font-size: 50px; }
		.cdct-nv .cdct-nv-lich-dem { margin-top: auto; padding: 9px 6px; white-space: normal; }
	}
}

/* ---------------- Toàn màn hình (màn hình lớn phòng họp, điện thoại xoay ngang) */
.cdct-nv.cdct-nv-toan-man { margin: 0 !important; border-radius: 0; width: 100% !important; max-width: none !important; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; --nv-le: max(18px, calc((100% - 2200px) / 2)); }
.cdct-nv:fullscreen { background: var(--nv-nen); }
.cdct-nv:-webkit-full-screen { background: var(--nv-nen); width: 100%; height: 100%; }
/* Trình duyệt không cho toàn màn hình (iPhone): phủ kín cửa sổ. */
.cdct-nv.cdct-nv-phu-man { position: fixed !important; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 2147483000; margin: 0 !important; margin-left: 0 !important; width: auto !important; }
html.cdct-nv-khoa-cuon, html.cdct-nv-khoa-cuon body { overflow: hidden !important; }

/* ---------------- Kiểu gọn (cột bên) */
.cdct-nv-gon { background: #fff; border: 1px solid var(--nv-vien); }
.cdct-nv .cdct-nv-gon-dau { background: var(--nv-chinh); color: #fff; padding: 12px 14px; border-bottom: 3px solid var(--nv-vang); }
.cdct-nv .cdct-nv-gon-dau .cdct-nv-tieu-de { font-size: 17px; display: flex; align-items: center; gap: 8px; margin: 0; }
.cdct-nv .cdct-nv-gon-dau .cdct-nv-moc { font-size: 12px; }
.cdct-nv-gon .cdct-nv-tieu-de .cdct-nv-ic { width: 18px; height: 18px; }
.cdct-nv .cdct-nv-gon-ds { padding: 4px 12px 0; }
.cdct-nv .cdct-nv-gon-dong { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid #eef2f6; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.cdct-nv .cdct-nv-gon-dong:last-child { border-bottom: 0; }
.cdct-nv .cdct-nv-cham { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--nv-mau, #98a2b3); }
.cdct-nv .cdct-nv-gon-qua_han { --nv-mau: var(--nv-do); }
.cdct-nv .cdct-nv-gon-hom_nay { --nv-mau: var(--nv-cam); }
.cdct-nv .cdct-nv-gon-sap_toi { --nv-mau: var(--nv-lam); }
.cdct-nv .cdct-nv-gon-cho_y_kien { --nv-mau: var(--nv-tim); }
.cdct-nv .cdct-nv-gon-than b { color: var(--nv-chinh); }
.cdct-nv .cdct-nv-gon-than > span { color: #344054; }
.cdct-nv .cdct-nv-gon-than small { display: block; font-size: 12px; color: var(--nv-mau, var(--nv-mo)); font-weight: 600; margin-top: 2px; }
.cdct-nv .cdct-nv-gon-rong { padding: 14px; color: #05603a; display: flex; gap: 8px; align-items: center; }

/* ---------------- Khung chung của mã ngắn [lado_cdct]: nút chuyển Nhắc việc / Theo dõi chi tiết */
.cdct-khung { container-type: inline-size; container-name: cdctkhung; margin-top: 0; margin-bottom: 24px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.cdct-khung .cdct-nv { margin: 0; }
.cdct-khung [hidden] { display: none !important; }
.cdct-khung .cdct-khung-chuyen { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: #e9eef4; border-radius: 12px; }
.cdct-khung.cdct-tran-roi .cdct-khung-chuyen { margin-left: max(16px, calc((100% - 1720px) / 2)); }
.cdct-khung.cdct-tran-roi .cdct-nv { border-radius: 0; --nv-le: max(16px, calc((100% - 1720px) / 2)); }
.cdct-khung button.cdct-khung-nut {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
	margin: 0 !important; padding: 9px 16px !important; border: 0 !important; border-radius: 9px !important;
	background: transparent !important; color: #475467 !important; box-shadow: none !important; text-decoration: none !important;
	font-family: inherit !important; font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.2 !important; letter-spacing: normal !important; text-transform: none !important;
	-webkit-appearance: none !important; appearance: none !important; width: auto !important; min-height: 0 !important;
}
.cdct-khung button.cdct-khung-nut:hover { color: #163a5c !important; background: rgba(255, 255, 255, .55) !important; }
.cdct-khung button.cdct-khung-nut[aria-selected="true"] { background: #fff !important; color: #163a5c !important; box-shadow: 0 1px 3px rgba(16, 24, 40, .14) !important; }
.cdct-khung button.cdct-khung-nut:focus-visible { outline: 2px solid #1f4e79 !important; outline-offset: 2px; }
.cdct-khung .cdct-khung-nut svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.cdct-khung .cdct-app.cdct-ngoai { max-width: none; }
.cdct-khung.cdct-tran-roi .cdct-app.cdct-ngoai { padding-left: max(16px, calc((100% - 1720px) / 2)); padding-right: max(16px, calc((100% - 1720px) / 2)); }
@container cdctkhung (max-width: 520px) {
	.cdct-khung .cdct-khung-chuyen { display: flex; margin-left: 0; margin-right: 0; }
	.cdct-khung button.cdct-khung-nut { flex: 1 1 0; padding: 10px 8px !important; font-size: 14px !important; }
}

/* ---------------- Trang quản trị (Chỉ đạo Chủ tịch > Nhắc việc) */
.cdct-wrap-nv { margin-right: 20px; }
.cdct-wrap-nv .cdct-nv { margin-top: 12px; }
@media (max-width: 782px) { .cdct-wrap-nv { margin-right: 10px; } }

/* ---------------- Chưa có quyền xem */
.cdct-nv-khoa { display: flex; gap: 12px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--nv-vien); }
.cdct-nv-khoa .cdct-nv-ic { width: 26px; height: 26px; color: var(--nv-chinh-2); }
.cdct-nv-khoa a { color: var(--nv-chinh-2); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
	.cdct-nv .cdct-nv-o, .cdct-nv .cdct-nv-dang-tai, .cdct-nv .cdct-nv-the.cdct-nv-the-di { transition: none; }
}
@media print {
	.cdct-nv { background: #fff; border: 1px solid #ccc; }
	.cdct-nv .cdct-nv-loc, .cdct-nv .cdct-nv-xem-them, .cdct-nv .cdct-nv-xuat, .cdct-nv .cdct-nv-tick, .cdct-nv .cdct-nv-nut-toan, .cdct-nv .cdct-nv-bq, .cdct-nv .cdct-nv-chan button, .cdct-nv .cdct-nv-tick-nhom { display: none !important; }
	.cdct-nv .cdct-nv-dv-them { display: inline-block; }
	.cdct-nv .cdct-nv-noi-dung { -webkit-line-clamp: unset; display: block; }
	.cdct-nv .cdct-nv-the { break-inside: avoid; box-shadow: none; }
	.cdct-nv .cdct-nv-dau, .cdct-nv .cdct-nv-lich { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
