/* Module Giao ban — GIAO DIỆN MỚI (trình chiếu). Không dùng chung CSS với giao diện cổ điển. */
:root {
    --ink: #1c2b3d; --ink2: #43546a; --mut: #74849a; --mut2: #9aa8ba;
    --navy: #23507f; --blue: #3b7dc4; --sky: #e8f1fb; --sky2: #f5f9fd;
    --line: #e1e8f0; --line2: #edf2f7; --bg: #eef3f8; --card: #fff;
    --ok: #2c8a5e; --okb: #e3f3ea; --warn: #b07322; --warnb: #fbf1de; --bad: #c45a5a; --badb: #f9e8e8;
    --okf: #6cc196; --warnf: #efbe6a; --badf: #ec9a9a;
    --red: #c94a5a; --gold: #e3b341;
    --f: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.s2 { overflow-x: hidden; font-family: var(--f); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.s2 a { color: var(--blue); }
.s2 button { font-family: inherit; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ THANH TRÊN */
.s2-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(15, 29, 46, .02); }
.s2-brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; min-width: 0; }
.s2-brand img { height: 40px; width: auto; flex: none; }
.s2-brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.s2-brand b { font-size: 14.5px; font-weight: 800; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .2px; }
.s2-brand small { font-size: 12px; color: var(--mut); font-weight: 500; }
.s2-nav { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; margin-left: 8px; }
.s2-nav a { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink2) !important; text-decoration: none; white-space: nowrap; }
.s2-nav a:hover { background: #fff; }
.s2-nav a.on { background: #fff; color: var(--navy) !important; box-shadow: 0 1px 3px rgba(15, 29, 46, .12); }
.s2-nav a i { font-size: 13px; opacity: .8; }
.s2-period { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.s2-period select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 34px 0 12px; font: 600 14px var(--f); color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8c' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; max-width: 300px; cursor: pointer; }
.s2-act { display: flex; align-items: center; gap: 6px; }
.s2-period + .s2-act { margin-left: 6px; }
.s2-nav + .s2-act, .s2-nav + .s2-period[hidden] + .s2-act { margin-left: auto; }
.s2-ib { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--ink2) !important; cursor: pointer; font-size: 15px; text-decoration: none; transition: .15s; }
.s2-ib:hover { border-color: var(--blue); color: var(--blue) !important; }
.s2-ib:disabled { opacity: .35; cursor: default; border-color: var(--line); color: var(--ink2) !important; }
.s2-play { white-space: nowrap; height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(11, 61, 122, .3); }
.s2-play:hover { background: var(--blue); }
.s2-acc { font-size: 12.5px; font-weight: 600; color: var(--mut); padding: 5px 10px; background: var(--bg); border-radius: 999px; white-space: nowrap; }
.s2-acc.draft { background: var(--badb); color: var(--bad); }

/* Mục lục các trang (chip) */
.s2-toc { position: sticky; top: 61px; z-index: 40; display: flex; gap: 6px; padding: 8px 20px; background: rgba(242, 245, 249, .92); backdrop-filter: blur(8px); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line2); }
.s2-toc::-webkit-scrollbar { display: none; }
.s2-toc a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink2) !important; text-decoration: none; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.s2-toc a b { font-size: 11px; color: var(--mut2); font-weight: 700; }
.s2-toc a.on { background: var(--navy); border-color: var(--navy); color: #fff !important; }
.s2-toc a.on b { color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------------ TRANG (SLIDE) — chế độ cuộn */
.s2-deck { max-width: 1520px; margin: 0 auto; padding: 18px 20px 60px; display: flex; flex-direction: column; gap: 18px; }
.s2-loading { padding: 80px 0; text-align: center; color: var(--mut); font-size: 16px; }
.s2-slide { position: relative; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 29, 46, .04); padding: 1.4em 1.6em 1.5em; scroll-margin-top: 76px; font-size: 15px; }
.s2-sh { display: flex; align-items: center; gap: .75em; margin-bottom: 1.1em; }
.s2-num { flex: none; width: 2.1em; height: 2.1em; border-radius: .6em; background: var(--acb, var(--sky)); color: var(--ac, var(--navy)); font-weight: 800; font-size: .95em; display: inline-flex; align-items: center; justify-content: center; }
.s2-sh h2 { margin: 0; font-size: 1.32em; font-weight: 800; color: var(--navy); letter-spacing: -.01em; text-transform: uppercase; line-height: 1.2; }
.s2-sh .s2-sub { color: var(--mut); font-size: .92em; font-weight: 500; }
.s2-sh .s2-right { margin-left: auto; display: flex; gap: .6em; align-items: center; }
.s2-sf { display: none; }
.s2-note { color: var(--mut); font-size: .85em; margin-top: .9em; }
.s2-empty { color: var(--mut); padding: 1.5em 0; text-align: center; font-style: italic; }

/* Bìa */
.s2-cover { background: linear-gradient(120deg, #2a5a8c 0%, #3b7dc4 60%, #4aa3c8 100%); color: #fff; border: 0; overflow: hidden; padding: 1.5em 1.8em; }
.s2-cover::after { content: ""; position: absolute; right: -6%; top: -40%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.s2-cv { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.4em; }
.s2-cv img { height: 4.2em; width: auto; background: #fff; border-radius: 50%; padding: .25em; }
.s2-cv-t { flex: 1; min-width: 0; }
.s2-cv-h { font-size: .9em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.s2-cv-h1 { font-size: 2em; font-weight: 800; line-height: 1.15; margin: .12em 0 .1em; letter-spacing: -.01em; }
.s2-cv-d { font-size: 1.05em; opacity: .9; font-weight: 500; }
.s2-cv-r { text-align: right; flex: none; }
.s2-cv-clock { font-size: 2.1em; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.s2-cv-date { font-size: .92em; opacity: .85; margin-top: .3em; }
.s2-cv-badge { display: inline-block; margin-top: .6em; padding: .25em .8em; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .82em; font-weight: 700; }
.s2-cv-badge.draft { background: var(--red); }
.s2-cv-flag { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--red) 0 70%, var(--gold) 70% 100%); z-index: 1; }
.s2-cv-sum { position: relative; z-index: 1; display: none; }

/* Ô chỉ số (KPI) */
.s2-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8em; }
.s2-kpi { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: .85em 1em .8em; background: #fff; display: flex; flex-direction: column; gap: .15em; min-width: 0; }
.s2-kpi::before { content: ""; position: absolute; left: 0; top: .9em; bottom: .9em; width: 4px; border-radius: 0 4px 4px 0; background: var(--line); }
.s2-kpi.ok::before { background: var(--okf); } .s2-kpi.warn::before { background: var(--warnf); } .s2-kpi.bad::before { background: var(--badf); }
.s2-kpi-h { display: flex; align-items: center; gap: .5em; font-size: .86em; font-weight: 600; color: var(--ink2); line-height: 1.25; min-height: 2.5em; }
.s2-kpi-h i { color: var(--blue); width: 1.9em; height: 1.9em; line-height: 1.9em; border-radius: .55em; background: var(--sky); text-align: center; flex: none; font-size: .9em; }
.s2-kpi:nth-child(8n+2) .s2-kpi-h i { color: #2a9d8f; background: #e2f4f1; } .s2-kpi:nth-child(8n+3) .s2-kpi-h i { color: #7a6fd0; background: #eeecfb; }
.s2-kpi:nth-child(8n+4) .s2-kpi-h i { color: #c98a2e; background: #faf1e1; } .s2-kpi:nth-child(8n+5) .s2-kpi-h i { color: #cf6b7d; background: #fbebee; }
.s2-kpi:nth-child(8n+6) .s2-kpi-h i { color: #3f9a63; background: #e6f4eb; } .s2-kpi:nth-child(8n+7) .s2-kpi-h i { color: #2c8fb0; background: #e1f2f8; } .s2-kpi:nth-child(8n) .s2-kpi-h i { color: #9a6bc4; background: #f3ebfa; }
.s2-kpi-v { font-size: 2em; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s2-kpi-v small { font-size: .45em; font-weight: 600; color: var(--mut); margin-left: .25em; letter-spacing: 0; }
.s2-kpi-m { display: flex; align-items: center; gap: .45em; flex-wrap: wrap; font-size: .85em; color: var(--mut); font-weight: 500; }
.s2-kpi-c { margin-top: .35em; padding-top: .45em; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: .1em; font-size: .8em; color: var(--mut); }
.s2-kpi-c span { display: flex; justify-content: space-between; gap: .5em; }
.s2-kpi-c b { font-weight: 700; color: var(--ink2); }
.s2-kpi.hero { background: linear-gradient(135deg, #f1f7ff, #fff); border-color: #cfe0f7; }
.s2-kpi.hero .s2-kpi-v { color: var(--navy); }

/* % đạt */
.s2-p { display: inline-flex; align-items: center; font-weight: 700; font-size: .95em; padding: .02em .5em; border-radius: 999px; background: var(--line2); color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s2-p.ok { background: var(--okb); color: var(--ok); } .s2-p.warn { background: var(--warnb); color: var(--warn); } .s2-p.bad { background: var(--badb); color: var(--bad); }
.s2-up { color: var(--ok); font-weight: 700; } .s2-dn { color: var(--bad); font-weight: 700; }
.s2-na { color: var(--mut2); }

/* Bảng */
.s2-tw { overflow-x: auto; }
.s2-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.s2-tbl th { position: sticky; top: 0; background: var(--sky2); color: var(--ink2); font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .7em .8em; text-align: center; border-bottom: 2px solid #d6e3f3; white-space: nowrap; }
.s2-tbl th:first-child { border-top-left-radius: 10px; } .s2-tbl th:last-child { border-top-right-radius: 10px; }
.s2-tbl th.l, .s2-tbl td.l { text-align: left; }
.s2-tbl td { padding: .6em .8em; border-bottom: 1px solid var(--line2); text-align: center; vertical-align: middle; }
.s2-tbl tbody tr:hover td { background: #fafcff; }
.s2-tbl td.name { font-weight: 700; text-align: left; white-space: nowrap; color: var(--ink); font-size: 1.02em; }
.s2-tbl td.idx { color: var(--mut2); font-weight: 600; width: 2.5em; }
.s2-tbl tr.sum td { background: var(--sky2); font-weight: 700; border-top: 2px solid #d6e3f3; }
.s2-c { display: inline-flex; flex-direction: column; align-items: center; gap: .12em; line-height: 1.15; }
.s2-c .v { font-size: 1.28em; font-weight: 800; color: var(--ink); white-space: nowrap; }
.s2-c .m { display: flex; align-items: center; gap: .35em; font-size: .78em; color: var(--mut); white-space: nowrap; font-weight: 500; }
.s2-c .m .s2-p { font-size: 1em; }
.s2-c.big .v { font-size: 1.45em; }
/* Ô một dòng: số · % · KH (trang CLS, phòng khám vệ tinh) */
.s2-c.inl { flex-direction: row; align-items: baseline; gap: .55em; flex-wrap: wrap; justify-content: center; }
.s2-c.inl .v { font-size: 1.22em; }
.s2-c.inl .m { font-size: .8em; }
.s2-c.inl.big .v { font-size: 1.3em; }
.s2-tbl td.name.wrap { white-space: normal; font-weight: 600; font-size: .95em; line-height: 1.3; }
.s2-ml td { padding-top: .5em; padding-bottom: .5em; }
.s2-ml td:last-child { text-align: right; }
.s2-ml td:last-child .s2-c.inl { justify-content: flex-end; }
.s2-avg { font-size: 1.15em; padding: .25em .75em; font-weight: 800; }
.s2-tbl td.txt { text-align: left; font-size: .92em; color: var(--ink2); }

/* Thanh ngang so kế hoạch (HTML, nét khi phóng to) */
.s2-hb { display: flex; flex-direction: column; gap: .55em; }
.s2-hb-r { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 13.5em; align-items: center; gap: .9em; }
.s2-hb-n { font-weight: 700; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95em; }
.s2-hb-t { position: relative; height: 1.5em; background: var(--line2); border-radius: 6px; }
.s2-hb-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: #8fb6e8; }
.s2-hb-t i.ok { background: var(--okf); } .s2-hb-t i.warn { background: var(--warnf); } .s2-hb-t i.bad { background: var(--badf); }
.s2-hb-t em { position: absolute; top: -.3em; bottom: -.3em; width: 3px; margin-left: -1.5px; background: var(--navy); border-radius: 2px; }
.s2-hb-t u { position: absolute; top: 50%; width: .62em; height: .62em; margin: -.31em 0 0 -.31em; border-radius: 50%; background: #fff; border: 2px solid #64748b; text-decoration: none; }
.s2-hb-v { font-weight: 800; font-size: .98em; white-space: nowrap; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: .45em; }
.s2-hb-v small { font-weight: 500; color: var(--mut); font-size: .82em; }
.s2-lg { display: flex; flex-wrap: wrap; gap: .4em 1.2em; font-size: .82em; color: var(--mut); margin-top: .9em; align-items: center; }
.s2-lg span { display: inline-flex; align-items: center; gap: .4em; }
.s2-lg i { display: inline-block; width: .9em; height: .9em; border-radius: 3px; }
.s2-lg i.mk { width: 3px; height: 1.1em; background: var(--navy); border-radius: 2px; }
.s2-lg i.dot { width: .65em; height: .65em; border-radius: 50%; background: #fff; border: 2px solid #64748b; }

/* Thanh cơ cấu 100% */
.s2-st { display: flex; flex-direction: column; gap: .6em; }
.s2-st-r { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: .9em; align-items: center; }
.s2-st-n { text-align: right; line-height: 1.15; }
.s2-st-n b { display: block; font-weight: 700; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2-st-n small { color: var(--mut); font-size: .8em; font-weight: 600; font-variant-numeric: tabular-nums; }
.s2-st-b { display: flex; height: 2em; border-radius: 7px; overflow: hidden; background: var(--line2); }
.s2-st-b span { display: flex; align-items: center; justify-content: center; color: #23303f; font-size: .78em; font-weight: 700; white-space: nowrap; overflow: hidden; min-width: 0; border-right: 1.5px solid #fff; font-variant-numeric: tabular-nums; }
.s2-st-b span:last-child { border-right: 0; }

/* Cơ cấu toàn viện (danh sách khoản) */
.s2-bq2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; }
.s2-bqc { border: 1px solid var(--line); border-radius: 12px; padding: 1.1em 1.2em; }
.s2-bqc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; flex-wrap: wrap; margin-bottom: .8em; }
.s2-bqc-h h3 { margin: 0; font-size: 1em; text-transform: uppercase; color: var(--ink2); font-weight: 700; letter-spacing: .03em; }
.s2-bqc-v { font-size: 2.1em; font-weight: 800; color: var(--navy); line-height: 1.05; font-variant-numeric: tabular-nums; }
.s2-bqc-v small { font-size: .42em; color: var(--mut); font-weight: 600; }
.s2-bqc-m { display: flex; gap: .5em; align-items: center; color: var(--mut); font-size: .88em; margin-top: .3em; flex-wrap: wrap; }
.s2-li { display: flex; flex-direction: column; gap: .45em; margin-top: 1em; }
.s2-li-r { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 6.8em 3.6em; gap: .7em; align-items: center; font-size: .92em; }
.s2-li-r > b { font-weight: 600; color: var(--ink2); white-space: nowrap; display: flex; align-items: center; gap: .45em; }
.s2-li-r > b i { width: .8em; height: .8em; border-radius: 3px; flex: none; }
.s2-li-t { height: .7em; background: var(--line2); border-radius: 4px; overflow: hidden; }
.s2-li-t i { display: block; height: 100%; border-radius: 4px; }
.s2-li-r > span { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s2-li-r > em { text-align: right; font-style: normal; color: var(--mut); font-weight: 600; font-variant-numeric: tabular-nums; }

.s2-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4em; }
.s2-g2 > div > h3, .s2-h3 { margin: 0 0 .8em; font-size: .92em; text-transform: uppercase; letter-spacing: .04em; color: var(--ink2); font-weight: 700; display: flex; align-items: center; gap: .5em; }
.s2-h3 i { color: var(--ac, var(--blue)); }
.s2-g2 > div { min-width: 0; }

/* Nhóm ô nhỏ (PK vệ tinh, chỉ số khác) */
.s2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; }
.s2-tile { border: 1px solid var(--line); border-radius: 11px; padding: .7em .9em; min-width: 0; }
.s2-tile-h { font-size: .82em; color: var(--ink2); font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.s2-tile-v { font-size: 1.5em; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: .15em; white-space: nowrap; }
.s2-tile-v small { font-size: .5em; color: var(--mut); font-weight: 600; margin-left: .2em; }
.s2-tile-m { font-size: .8em; color: var(--mut); display: flex; gap: .4em; align-items: center; flex-wrap: wrap; margin-top: .15em; }
.s2-tile.accent { background: linear-gradient(135deg, #f1f7ff, #fff); border-color: #cfe0f7; }
.s2-tile.accent .s2-tile-v { color: var(--navy); }

/* Văn bản nhận xét / chỉ đạo */
.s2-rich { font-size: 1.05em; line-height: 1.65; color: var(--ink); overflow-wrap: break-word; word-break: break-word; }
.s2-rich p { margin: 0 0 .6em; }
.s2-rich ul, .s2-rich ol { margin: 0 0 .6em; padding-left: 1.4em; }
.s2-rich li { margin-bottom: .3em; }
.s2-rich table { border-collapse: collapse; max-width: 100%; }
.s2-rich td, .s2-rich th { border: 1px solid var(--line); padding: .3em .5em; }
.s2-rich img { max-width: 100%; height: auto; }
/* Nội dung dán vào (thường từ Word): dùng phông của bản trình chiếu, luôn xuống dòng gọn trong trang, không tràn ra mép */
.s2-rich, .s2-rich * { font-family: var(--f) !important; max-width: 100%; }
.s2-rich p, .s2-rich li, .s2-rich span, .s2-rich div, .s2-rich td, .s2-rich th, .s2-rich font { white-space: normal !important; }
.s2-rich p, .s2-rich li { text-indent: 0 !important; margin-right: 0 !important; }
.s2-quote { border-left: 4px solid var(--red); background: #fff8f8; border-radius: 0 10px 10px 0; padding: 1em 1.3em; }

/* Kế hoạch */
.s2-plan td { text-align: left; vertical-align: top; }
.s2-plan td.day { white-space: nowrap; font-weight: 700; color: var(--navy); width: 8.5em; background: var(--sky2); border-right: 1px solid var(--line2); }
.s2-plan td.day small { display: block; color: var(--mut); font-weight: 600; font-size: .85em; }
.s2-plan td.gio { white-space: nowrap; font-weight: 700; width: 6.5em; color: var(--ink2); font-variant-numeric: tabular-nums; }
.s2-plan td.nd { font-weight: 600; }
/* Độ rộng cột kế hoạch: nội dung rộng hơn, cân với thành phần */
.s2-plan { table-layout: fixed; }
.s2-plan th.c-day { width: 9%; } .s2-plan th.c-gio { width: 7%; }
.s2-plan th.c-nd { width: 40%; } .s2-plan th.c-dd { width: 14%; } .s2-plan th.c-tp { width: 30%; }
.s2-plan th.c-nd2 { width: 50%; } .s2-plan th.c-tp2 { width: 34%; }
.s2-plan td { overflow-wrap: anywhere; }
/* Kiểm tra HSBA: cột Chi tiết lỗi rộng */
.s2-hs { table-layout: fixed; }
.s2-hs th.c-i { width: 4%; } .s2-hs th.c-k { width: 15%; } .s2-hs th.c-n { width: 10%; } .s2-hs th.c-ct { width: 51%; }
.s2-hs td.txt { overflow-wrap: anywhere; line-height: 1.5; font-size: 1em; color: var(--ink); }
.s2-plan td.sm { color: var(--ink2); font-size: .92em; }
.s2-plan tr.today td { background: #fff7e8; }
.s2-plan tr.today td.day { color: var(--warn); }
.s2-plan tr.past td { opacity: .55; }

/* AI */
.s2-ai-sum { background: linear-gradient(135deg, #f5f3ff, #eef6ff); border-left: 4px solid #7c3aed; border-radius: 0 10px 10px 0; padding: .8em 1.1em; font-weight: 600; color: #312e81; margin-bottom: 1em; }
.s2-ai-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2em 2em; }
.s2-ai-list li { display: flex; gap: .7em; padding: .65em 0; border-bottom: 1px dashed var(--line); }
.s2-ai-list .ic { flex: none; }
.s2-ai-list .tt { display: block; font-weight: 800; }
.s2-ai-list .t-tot .tt { color: var(--ok); } .s2-ai-list .t-canh_bao .tt { color: var(--warn); } .s2-ai-list .t-xau .tt { color: var(--bad); } .s2-ai-list .t-goi_y .tt { color: var(--blue); }
.s2-ai-foot { font-size: .8em; color: var(--mut); margin-top: .8em; display: flex; gap: .5em 1.2em; flex-wrap: wrap; }
.s2-ai-foot a { cursor: pointer; font-weight: 700; color: #7c3aed; }
.s2-ai-wait { display: inline-flex; gap: .5em; align-items: center; color: var(--mut); }

/* Khóa */
.s2-lock { max-width: 460px; margin: 6vh auto; text-align: center; padding: 2.2em 2em; }
.s2-lock .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--sky); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: .6em; }
.s2-lock h2 { margin: 0 0 .4em; font-size: 1.3em; color: var(--navy); }
.s2-lock p { color: var(--ink2); margin: 0 0 1.2em; }
.s2-lock form { display: flex; flex-direction: column; gap: .6em; }
.s2-lock input, .s2-lock select { height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; font: 600 16px var(--f); text-align: center; }
.s2-lock-in { position: relative; }
.s2-lock-in input { width: 100%; padding-right: 48px !important; }
.s2-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--mut); cursor: pointer; border-radius: 8px; font-size: 15px; }
.s2-eye:hover { background: var(--bg); color: var(--blue); }
.s2-lock-h { font-size: .82em !important; color: var(--mut) !important; margin: 0 !important; }
.s2-lock .err { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: 0; font-size: .9em; }
.s2-btn { height: 46px; border: 0; border-radius: 11px; background: var(--navy); color: #fff !important; font: 700 15px var(--f); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5em; text-decoration: none; padding: 0 18px; }
.s2-btn.ghost { background: #fff; color: var(--navy) !important; border: 1px solid var(--line); }
.s2-lock .lnk { display: inline-block; margin-top: .9em; font-size: .9em; cursor: pointer; font-weight: 600; }
.s2-or { display: flex; align-items: center; gap: .8em; color: var(--mut2); font-size: .85em; margin: .9em 0; }
.s2-or::before, .s2-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Trang chủ */
.s2-home { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.s2-home .s2-slide { margin: 0; }
.s2-rep { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7em; }
.s2-rep a { display: flex; flex-direction: column; gap: .2em; padding: .8em 1em; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; color: var(--ink) !important; transition: .15s; }
.s2-rep a:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(20, 98, 196, .1); }
.s2-rep a b { font-weight: 700; color: var(--navy); }
.s2-rep a small { color: var(--mut); font-size: .85em; }
.s2-rep a .tag { align-self: flex-start; font-size: .75em; font-weight: 700; padding: .1em .6em; border-radius: 999px; background: var(--line2); color: var(--mut); margin-top: .2em; }
.s2-rep a .tag.ok { background: var(--okb); color: var(--ok); } .s2-rep a .tag.draft { background: var(--badb); color: var(--bad); }
/* Chọn dạng hiển thị danh sách báo cáo */
.s2-vsw { display: inline-flex; background: var(--bg); padding: 3px; border-radius: 10px; gap: 2px; }
.s2-vsw button { border: 0; background: transparent; padding: 5px 10px; border-radius: 7px; font: 600 12.5px var(--f); color: var(--mut); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.s2-vsw button:hover { color: var(--blue); }
.s2-vsw button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(28, 43, 61, .12); }
.s2-repb .tag { font-size: .75em; font-weight: 700; padding: .1em .6em; border-radius: 999px; background: #fdf6e7; color: var(--warn); white-space: nowrap; }
.s2-repb .tag.ok { background: var(--okb); color: var(--ok); } .s2-repb .tag.draft { background: var(--badb); color: var(--bad); }
/* Dạng danh sách */
.s2-rl { display: flex; flex-direction: column; }
.s2-rl a { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) 11em auto 1em; gap: .9em; align-items: center; padding: .6em .7em; border-bottom: 1px solid var(--line2); text-decoration: none; color: var(--ink) !important; border-radius: 8px; }
.s2-rl a:hover { background: var(--sky2); }
.s2-rl a em { font-style: normal; font-weight: 800; color: var(--ac, var(--blue)); background: var(--sky); border-radius: 7px; text-align: center; padding: .15em 0; font-size: .9em; }
.s2-rl a b { font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2-rl a small { color: var(--mut); font-variant-numeric: tabular-nums; }
.s2-rl a > i { color: var(--mut2); font-size: .8em; }
/* Dạng lịch tuần */
.s2-cal3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1em; }
.s2-mcal { border: 1px solid var(--line); border-radius: 12px; padding: .7em .7em .5em; }
.s2-mcal-h { font-weight: 800; color: var(--navy); margin: 0 0 .5em .2em; }
.s2-mcal-g { display: grid; grid-template-columns: 3.2em repeat(7, 1fr); gap: 2px; font-variant-numeric: tabular-nums; }
.s2-mcal-g .dn { font-size: .75em; font-weight: 700; color: var(--mut2); text-align: center; padding: .2em 0; }
.s2-wk { display: contents; color: inherit !important; text-decoration: none; }
.s2-wk > span { padding: .38em 0; text-align: center; font-size: .86em; color: var(--ink2); }
.s2-wk > span.wk { font-size: .72em; font-weight: 800; color: var(--blue); display: flex; align-items: center; justify-content: center; }
.s2-wk > span.out { color: var(--mut2); opacity: .55; }
.s2-wk > span.today { font-weight: 800; color: #fff; background: var(--blue); border-radius: 50%; }
a.s2-wk > span { background: #fdf6e7; cursor: pointer; }
a.s2-wk.st-ok > span { background: var(--okb); } a.s2-wk.st-draft > span { background: var(--badb); }
a.s2-wk > span:first-child { border-radius: 7px 0 0 7px; } a.s2-wk > span:last-child { border-radius: 0 7px 7px 0; }
a.s2-wk:hover > span { filter: brightness(.95); }
a.s2-wk > span.today { background: var(--blue); color: #fff; border-radius: 0; }
/* Dạng lịch tháng (năm) */
.s2-yr + .s2-yr { margin-top: 1em; }
.s2-yr-g { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5em; }
.s2-yr-g > a, .s2-yr-g > div { border: 1px solid var(--line); border-radius: 10px; padding: .55em .6em; display: flex; flex-direction: column; gap: .3em; align-items: flex-start; text-decoration: none; color: var(--ink) !important; min-height: 4.2em; }
.s2-yr-g > div { opacity: .5; background: #fafbfd; }
.s2-yr-g > div small { color: var(--mut2); }
.s2-yr-g > a { background: #fffbf2; } .s2-yr-g > a.st-ok { background: #f3fbf6; border-color: #bfe3cf; } .s2-yr-g > a.st-draft { background: #fdf3f3; border-color: #efc2c2; }
.s2-yr-g > a:hover { box-shadow: 0 4px 14px rgba(59, 125, 196, .14); }
.s2-yr-g b { font-weight: 700; font-size: .92em; color: var(--navy); }
.s2-yr-g .now { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (max-width: 760px) {
    .s2-vsw button span { display: none; }
    .s2-rl a { grid-template-columns: 3.8em minmax(0, 1fr) auto; }
    .s2-rl a small, .s2-rl a > i { display: none; }
    .s2-yr-g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.s2-open { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; padding: .35em .9em; border-radius: 999px; font-size: .88em; }
.s2-open.on { background: var(--okb); color: var(--ok); } .s2-open.off { background: var(--line2); color: var(--mut); }
.s2-cal { display: flex; flex-direction: column; gap: .4em; }
.s2-cal-r { display: grid; grid-template-columns: 4.8em minmax(0, 1fr); gap: .8em; padding: .55em .2em; border-bottom: 1px dashed var(--line); }
.s2-cal-r .d { font-weight: 700; color: var(--navy); line-height: 1.2; }
.s2-cal-r .d small { display: block; color: var(--mut); font-weight: 600; font-size: .82em; }
.s2-cal-r .n { font-weight: 600; }
.s2-cal-r .n small { display: block; color: var(--mut); font-weight: 500; font-size: .85em; }
.s2-cal-r.today { background: #fff7e8; border-radius: 8px; }
.s2-cal-r.past { opacity: .55; }

/* QR */
.s2-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 20, 38, .72); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.s2-qr-box { position: relative; background: #fff; border-radius: 20px; padding: 28px 32px; text-align: center; width: min(92vw, 520px); }
.s2-qr-box h3 { margin: 0; font-size: 22px; color: var(--navy); }
.s2-qr-sub { color: var(--mut); margin: .3em 0 1em; font-weight: 600; }
.s2-qr-img { width: min(70vh, 400px, 78vw); aspect-ratio: 1; margin: 0 auto; display: flex; align-items: center; justify-content: center; color: var(--mut); }
.s2-qr-img svg { width: 100%; height: 100%; }
.s2-qr-cd { color: var(--mut); font-weight: 600; margin: .8em 0 0; }
.s2-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; font-size: 16px; color: var(--ink2); }

/* Toast */
.s2-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 4000; background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); max-width: 90vw; transition: opacity .6s; }

/* ------------------------------------------------------------------ CHẾ ĐỘ TRÌNH CHIẾU */
.s2-pctl, .s2-pmenu { display: none; }
body.s2-present { background: #1d2a3a; overflow: hidden; }
body.s2-present .s2-top, body.s2-present .s2-toc { display: none; }
body.s2-present .s2-deck { position: fixed; inset: 0; max-width: none; padding: 0; margin: 0; display: block; }
body.s2-present .s2-slide { display: none; position: absolute; left: 50%; top: 50%; width: 1600px; min-height: 900px; margin: 0; border: 0; border-radius: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); font-size: 21px; padding: 34px 48px 74px; transform-origin: 50% 50%; scroll-margin: 0; }
body.s2-present .s2-slide.cur { display: block; }
body.s2-present .s2-slide:not(.s2-cover) { background: #fff; }
body.s2-present .s2-slide:not(.s2-cover)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--ac, var(--blue)), var(--acb, var(--sky))); }
body.s2-present .s2-sh { margin-bottom: 1em; padding-bottom: .7em; border-bottom: 2px solid var(--line2); }
body.s2-present .s2-sh h2 { font-size: 1.55em; }
body.s2-present .s2-sf { display: flex; position: absolute; left: 48px; right: 48px; bottom: 22px; justify-content: flex-start; gap: 28px; align-items: center; font-size: 15px; color: var(--mut); font-weight: 600; border-top: 1px solid var(--line2); padding-top: 12px; }
body.s2-present .s2-sf b { color: var(--navy); }
body.s2-present .s2-tbl th { position: static; }
body.s2-present .s2-tw, body.s2-present .s2-g2 > div { overflow: hidden; }
body.s2-present .s2-cover { display: none; padding: 0; background: linear-gradient(125deg, #1f4672 0%, #2e6aa8 50%, #3f97bf 100%); }
body.s2-present .s2-cover.cur { display: flex; flex-direction: column; justify-content: center; height: 900px; }
body.s2-present .s2-cover .s2-cv { flex-direction: column; text-align: center; gap: 1.1em; padding: 0 80px; }
body.s2-present .s2-cover .s2-cv img { height: 150px; padding: 8px; }
body.s2-present .s2-cover .s2-cv-h { font-size: 26px; letter-spacing: .12em; }
body.s2-present .s2-cover .s2-cv-h1 { font-size: 78px; margin: .15em 0; }
body.s2-present .s2-cover .s2-cv-d { font-size: 30px; }
body.s2-present .s2-cover .s2-cv-r { text-align: center; margin-top: .6em; }
body.s2-present .s2-cover .s2-cv-clock { font-size: 46px; }
body.s2-present .s2-cover .s2-cv-date { font-size: 20px; }
body.s2-present .s2-cover .s2-cv-flag { height: 12px; }
body.s2-present .s2-cover .s2-sf { display: none; }

body.s2-present .s2-pctl { display: flex; position: fixed; z-index: 2000; right: 14px; bottom: 12px; gap: 1px; align-items: center; background: rgba(20, 32, 48, .32); padding: 3px 3px 6px; border-radius: 10px; opacity: 0; transition: opacity .35s, background .35s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); }
body.s2-present.s2-mv .s2-pctl { opacity: .7; } body.s2-present .s2-pctl:hover { opacity: 1; background: rgba(20, 32, 48, .6); }
.s2-pctl button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: rgba(255, 255, 255, .92); cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.s2-pctl button:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.s2-pctl > span { color: rgba(255, 255, 255, .95); font-weight: 600; font-size: 12px; padding: 0 4px; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.s2-pbar { position: absolute; left: 7px; right: 7px; bottom: 3px; height: 2px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; }
.s2-pbar i { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, .8); transition: width .3s; }
body.s2-present .s2-pmenu:not([hidden]) { display: block; position: fixed; z-index: 2500; right: 14px; bottom: 54px; width: 320px; max-height: 70vh; overflow: auto; background: rgba(255, 255, 255, .97); border-radius: 12px; box-shadow: 0 16px 50px rgba(0, 0, 0, .3); padding: 6px; }
.s2-pmenu a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink) !important; text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; }
.s2-pmenu a b { color: var(--mut2); width: 26px; }
.s2-pmenu a:hover, .s2-pmenu a.on { background: var(--sky); color: var(--navy) !important; }
body.s2-present.s2-nocur { cursor: none; }

/* Chiếu: bố cục rộng cố định 1600px */
body.s2-present .s2-kpis { gap: 16px; }
body.s2-present .s2-kpi-v { font-size: 1.9em; }
body.s2-present .s2-ai-list { font-size: .92em; }
body.s2-present .s2-rich { font-size: 1.12em; }

/* Nút mục lục gọn trên thanh trên */
.s2-sec { position: relative; }
.s2-sec-b { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font: 600 14px var(--f); color: var(--ink2); cursor: pointer; max-width: 260px; }
.s2-sec-b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2-sec-b:hover { border-color: var(--blue); color: var(--blue); }
.s2-sec-b .s2-car { font-size: 11px; opacity: .6; }
.s2-sec-m { position: absolute; right: 0; top: 44px; z-index: 60; width: 300px; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 29, 46, .16); padding: 6px; }
.s2-sec-m a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink) !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.s2-sec-m a b { color: var(--mut2); width: 22px; flex: none; }
.s2-sec-m a:hover, .s2-sec-m a.on { background: var(--sky); color: var(--navy) !important; }

/* Huy hiệu TB % trên tiêu đề trang */
.s2-score { display: inline-flex; align-items: center; gap: .7em; padding: .3em .35em .3em .95em; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.s2-score span { display: flex; flex-direction: column; font-size: .76em; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.s2-score span small { font-size: .9em; text-transform: none; color: var(--mut); font-weight: 600; letter-spacing: 0; }
.s2-score b { font-size: 1.45em; font-weight: 800; padding: .12em .5em; border-radius: 10px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.s2-score.ok { border-color: #bfe3cf; } .s2-score.ok b { background: var(--okb); color: var(--ok); }
.s2-score.warn { border-color: #f1d9a8; } .s2-score.warn b { background: var(--warnb); color: var(--warn); }
.s2-score.bad { border-color: #efc2c2; } .s2-score.bad b { background: var(--badb); color: var(--bad); }

/* Dải TB % lớn (toàn viện, phòng khám) */
.s2-hero { display: flex; align-items: stretch; gap: 1.2em; border-radius: 16px; padding: .9em 1.2em; margin-bottom: 1em; color: var(--ink); border: 1px solid var(--line); }
.s2-hero.ok { background: linear-gradient(120deg, #e4f4ec, #e3f0f8); border-color: #c9e6d7; } .s2-hero.warn { background: linear-gradient(120deg, #fbf0dc, #f6f0e6); border-color: #f0dcb4; } .s2-hero.bad { background: linear-gradient(120deg, #f9e6e6, #f6eef2); border-color: #efcaca; }
.s2-hero.ok .s2-hero-l b { color: var(--ok); } .s2-hero.warn .s2-hero-l b { color: var(--warn); } .s2-hero.bad .s2-hero-l b { color: var(--bad); }
.s2-hero-l { display: flex; flex-direction: column; justify-content: center; min-width: 13em; padding-right: 1.2em; border-right: 1px solid rgba(35, 80, 127, .15); }
.s2-hero-l span { font-size: .85em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.s2-hero-l b { font-size: 2.8em; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.s2-hero-l small { font-size: .78em; opacity: .85; }
.s2-hero-p { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); gap: .6em; align-items: center; }
.s2-hero-p > div { background: rgba(255, 255, 255, .75); border-radius: 12px; padding: .55em .8em; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .9); }
.s2-hero-p span { font-size: .82em; font-weight: 600; color: var(--ink2); }
.s2-hero-p b { font-size: 1.55em; font-weight: 800; font-variant-numeric: tabular-nums; }
.s2-hero-p > div.ok b { color: var(--ok); } .s2-hero-p > div.warn b { color: var(--warn); } .s2-hero-p > div.bad b { color: var(--bad); }

/* Trang bảng điểm TB % */
.s2-g2w { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.s2-scs { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; align-content: start; }
.s2-sc { border-radius: 14px; padding: .9em 1.1em; border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: .1em; }
.s2-sc:first-child { grid-column: 1 / -1; }
.s2-sc.ok { border-color: #9fd8b3; background: linear-gradient(135deg, #eefaf2, #fff 70%); } .s2-sc.warn { border-color: #f3cf8f; background: linear-gradient(135deg, #fff6e6, #fff 70%); } .s2-sc.bad { border-color: #f1a9a9; background: linear-gradient(135deg, #fdeeee, #fff 70%); }
.s2-sc-h { font-weight: 700; font-size: .92em; color: var(--ink2); display: flex; gap: .5em; align-items: center; }
.s2-sc-h i { color: var(--blue); }
.s2-sc-v { font-size: 2.6em; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.s2-sc.ok .s2-sc-v { color: var(--ok); } .s2-sc.warn .s2-sc-v { color: var(--warn); } .s2-sc.bad .s2-sc-v { color: var(--bad); }
.s2-sc:first-child .s2-sc-v { font-size: 3.2em; }
.s2-sc-s { font-size: .8em; color: var(--mut); font-weight: 500; }
.s2-sc-p { display: flex; flex-wrap: wrap; gap: .3em .9em; margin-top: .4em; font-size: .82em; color: var(--ink2); }
.s2-sc-p b.ok { color: var(--ok); } .s2-sc-p b.warn { color: var(--warn); } .s2-sc-p b.bad { color: var(--bad); }
.s2-rk { display: flex; flex-direction: column; gap: .55em; }
.s2-rk-r { display: grid; grid-template-columns: 1.6em 8em minmax(0, 1fr) 5.4em; gap: .7em; align-items: center; }
.s2-rk-r em { font-style: normal; color: var(--mut2); font-weight: 700; text-align: center; }
.s2-rk-r:nth-child(-n+3) em { color: #fff; background: var(--gold); border-radius: 50%; width: 1.6em; height: 1.6em; display: inline-flex; align-items: center; justify-content: center; font-size: .85em; }
.s2-rk-n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2-rk-t { position: relative; height: 1.5em; background: var(--line2); border-radius: 6px; }
.s2-rk-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.s2-rk-t i.ok { background: var(--okf); } .s2-rk-t i.warn { background: var(--warnf); } .s2-rk-t i.bad { background: var(--badf); }
.s2-rk-t u { position: absolute; top: -.25em; bottom: -.25em; width: 2px; background: var(--navy); }
.s2-rk-r .s2-p { justify-self: end; font-size: 1.05em; }

/* Cột / dòng TB nổi bật trong bảng */
.s2-tbl th.tbh { background: #e3eefc; color: var(--navy); }
/* Bảng thi đua */
.s2-td td { padding-top: .5em; padding-bottom: .5em; }
.s2-td tr.base td { background: #f2f7fd; border-bottom: 2px solid #d6e3f3; }
.s2-td td.name { font-size: 1.05em; }
.s2-gt { display: block; width: fit-content; font-size: .66em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .1em .55em; border-radius: 999px; margin-bottom: .15em; }
.g-tv { background: #e8f1fb; color: #3b7dc4; } .g-nt { background: #e2f4f1; color: #2a8b7f; } .g-kb { background: #eeecfb; color: #6a5fc0; } .g-cs { background: #faf1e1; color: #a8742a; } .g-cl { background: #fbebee; color: #b85a6b; }
.s2-chs { display: flex; flex-wrap: wrap; gap: .35em; }
.s2-ch { display: inline-flex; align-items: center; gap: .45em; border: 1px solid var(--line); border-radius: 9px; padding: .18em .3em .18em .6em; font-size: .82em; background: #fff; white-space: nowrap; }
.s2-ch em { font-style: normal; font-weight: 600; color: var(--ink2); }
.s2-ch i { font-style: normal; color: var(--mut); font-variant-numeric: tabular-nums; }
.s2-ch b { font-weight: 700; padding: .05em .45em; border-radius: 6px; font-variant-numeric: tabular-nums; }
.s2-ch.ok b { background: var(--okb); color: var(--ok); } .s2-ch.warn b { background: var(--warnb); color: var(--warn); } .s2-ch.bad b { background: var(--badb); color: var(--bad); }
.s2-tdb { display: flex; flex-direction: column; align-items: center; gap: .3em; min-width: 7em; }
.s2-tdb > b { font-size: 1.45em; font-weight: 800; font-variant-numeric: tabular-nums; }
.s2-tdb > b.ok { color: var(--ok); } .s2-tdb > b.warn { color: var(--warn); } .s2-tdb > b.bad { color: var(--bad); }
.s2-tdb-t { position: relative; width: 100%; height: .45em; background: #e4ebf3; border-radius: 4px; }
.s2-tdb-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.s2-tdb-t i.ok { background: var(--okf); } .s2-tdb-t i.warn { background: var(--warnf); } .s2-tdb-t i.bad { background: var(--badf); }
.s2-tdb-t u { position: absolute; top: -.2em; bottom: -.2em; width: 2px; background: #7d93ad; }
.s2-medal { display: inline-flex; align-items: center; justify-content: center; width: 1.8em; height: 1.8em; border-radius: 50%; font-weight: 800; color: #fff; font-size: .95em; }
.s2-medal.m1 { background: linear-gradient(135deg, #f0c75e, #d9a53a); } .s2-medal.m2 { background: linear-gradient(135deg, #c9d3de, #a3b1c2); } .s2-medal.m3 { background: linear-gradient(135deg, #e3a87a, #c98657); }
.s2-td td.rk i { color: var(--blue); }
.s2-rkm { display: none; }
.s2-lv { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .85em; padding: .25em .7em; border-radius: 999px; white-space: nowrap; }
.s2-lv.ok { background: var(--okb); color: var(--ok); } .s2-lv.warn { background: var(--warnb); color: var(--warn); } .s2-lv.bad { background: var(--badb); color: var(--bad); }
.s2-tbl td.tb { background: #f5f9ff; }
.s2-tbl td.tb .s2-avg { font-size: 1.3em; }
.s2-tbl tr.hl td { background: #fdf7e8 !important; }
.s2-tbl tr.hl td.name { color: var(--navy); font-size: 1.12em; }
.s2-tbl tr.hl td.idx { color: var(--gold); font-size: 1.2em; }
.s2-tbl tr.avg td { background: #eef5ff; }
.s2-tbl tr.avg td .s2-avg { font-size: 1.15em; }

/* Chú thích cơ cấu BQ đơn */
[data-cp] { cursor: help; }
td[data-cp] .s2-c .v::after, .s2-kpi[data-cp] .s2-kpi-v::after, .s2-tile[data-cp] .s2-tile-v::after { content: "\f05a"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .5em; color: var(--mut2); margin-left: .35em; vertical-align: super; }
td[data-cp]:hover { background: #f3f8fe; }
.s2-tip { position: fixed; z-index: 5000; display: none; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(28, 43, 61, .18); padding: 12px 14px; pointer-events: none; font-size: 13px; color: var(--ink); }
.s2-tip-h { font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }
.s2-tip-v { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.s2-tip-v .s2-p { font-size: 12px; }
.s2-tip-k { color: var(--mut); font-size: 12px; }
.s2-tip-l { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 5px; }
.s2-tip-l > div { display: grid; grid-template-columns: 92px 1fr 78px 42px; gap: 6px; align-items: center; }
.s2-tip-l b { font-weight: 600; color: var(--ink2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.s2-tip-l b i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.s2-tip-t { height: 6px; background: var(--line2); border-radius: 3px; overflow: hidden; }
.s2-tip-t u { display: block; height: 100%; border-radius: 3px; }
.s2-tip-l em { font-style: normal; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.s2-tip-l small { text-align: right; color: var(--mut); font-weight: 600; font-variant-numeric: tabular-nums; }

body.s2-present .s2-tip { transform: scale(1.35); transform-origin: 0 0; }
/* Chú thích nhanh cho biểu tượng trên thanh trên */
.s2-top [data-tip] { position: relative; }
.s2-top [data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 80; background: rgba(28, 43, 61, .92); color: #fff; font: 600 12.5px var(--f); padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.s2-top [data-tip]:hover::before { content: ""; position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); z-index: 81; border: 5px solid transparent; border-bottom-color: rgba(28, 43, 61, .92); border-top: 0; pointer-events: none; }
.s2-top .s2-brand[data-tip]:hover::after { left: 0; transform: none; }
.s2-top .s2-brand[data-tip]:hover::before { left: 22px; }
.s2-top .s2-act [data-tip]:last-child:hover::after, .s2-top #s2AdminBtn[data-tip]:hover::after { left: auto; right: 0; transform: none; }
/* Menu đang hiện chữ thì không cần chú thích */
@media (min-width: 1451px) { .s2-nav a[data-tip]:hover::after, .s2-nav a[data-tip]:hover::before { display: none; } }
@media (hover: none) { .s2-top [data-tip]:hover::after, .s2-top [data-tip]:hover::before { display: none; } }

/* ================= LỊCH TRỰC / ĐIỀU ĐỘNG / KẾ HOẠCH TUẦN ================= */
.s2-btn.sm { height: 32px; font-size: 13px; padding: 0 12px; border-radius: 9px; }
.s2-nm { display: inline-block; background: var(--acb, var(--sky)); color: var(--ink); font-weight: 600; padding: .12em .6em; border-radius: 7px; margin: 0 .3em .3em 0; font-size: .95em; white-space: nowrap; }
.s2-days { display: flex; gap: .4em; flex-wrap: wrap; margin: -.2em 0 1em; }
.s2-days button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .4em .8em; font: 600 .9em var(--f); color: var(--ink2); cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.s2-days button small { font-size: .72em; color: var(--blue); font-weight: 700; }
.s2-days button.on { background: var(--ac, var(--blue)); border-color: var(--ac, var(--blue)); color: #fff; }
.s2-days button.on small { color: #fff; }
.s2-days button.today:not(.on) { border-color: var(--ac, var(--blue)); }
.s2-duty { columns: 320px; column-gap: 1.4em; }
.s2-duty-g { margin-bottom: 1em; }
.s2-duty-g h4 { break-after: avoid; }
.s2-duty-l { display: block !important; overflow: visible !important; }
.s2-duty-i { break-inside: avoid; }
.s2-duty-i .s2-nm { max-width: 100%; white-space: normal; }
.s2-lkh th.c-day, .s2-lkh td.day { width: 9.5em; min-width: 9.5em; white-space: normal; }
.s2-lkh th.c-gio, .s2-lkh td.gio { width: 4.5em; white-space: nowrap; }
.s2-duty-g h4 { margin: 0 0 .45em; font-size: .82em; text-transform: uppercase; letter-spacing: .05em; color: var(--ac, var(--blue)); font-weight: 800; }
.s2-duty-l { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.s2-duty-i { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: .7em; padding: .5em .8em; border-bottom: 1px solid var(--line2); align-items: baseline; }
.s2-duty-i:last-child { border-bottom: 0; }
.s2-duty-i:nth-child(even) { background: #fafcfe; }
.s2-duty-i b { font-weight: 600; color: var(--ink2); font-size: .9em; }
.s2-lt-w { max-height: 78vh; border: 1px solid var(--line); border-radius: 12px; }
.s2-lt { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .92em; }
.s2-lt th { position: sticky; top: 0; z-index: 2; background: var(--sky2); color: var(--ink2); font-weight: 700; padding: .6em .55em; border-bottom: 2px solid #d6e3f3; white-space: nowrap; text-align: center; }
.s2-lt td { padding: .45em .55em; border-bottom: 1px solid var(--line2); border-right: 1px solid #f2f5f8; text-align: center; vertical-align: middle; line-height: 1.35; }
.s2-lt .c-n { position: sticky; left: 0; z-index: 1; background: #fbfcfe; font-weight: 800; color: var(--ac, var(--blue)); font-size: .82em; text-transform: uppercase; letter-spacing: .03em; width: 8em; text-align: left; }
.s2-lt th.c-n { z-index: 3; }
.s2-lt .c-v { font-weight: 600; color: var(--ink2); text-align: left; min-width: 10em; }
.s2-lt th.l { text-align: left; }
.s2-lt .we { background: #fffaf2; }
.s2-lt th.we { background: #fdf3e3; }
.s2-lt .today { background: #eaf3ff; font-weight: 700; color: var(--navy); }
.s2-lt th.today { background: var(--ac, var(--blue)); color: #fff; }
.s2-dd { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2em; }
.s2-dd-c { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.s2-dd-h { background: var(--acb, var(--sky)); color: var(--ac, var(--navy)); font-weight: 800; padding: .65em 1em; display: flex; justify-content: space-between; align-items: baseline; }
.s2-dd-h small { font-weight: 600; color: var(--mut); }
.s2-dd-p { padding: .6em 1em; border-top: 1px solid var(--line2); }
.s2-dd-p h4 { margin: 0 0 .3em; font-size: .85em; color: var(--ink2); font-weight: 800; }
.s2-dd-p ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15em 1em; }
.s2-dd-p li { display: flex; justify-content: space-between; gap: .4em; padding: .15em 0; border-bottom: 1px dashed var(--line2); font-size: .92em; }
.s2-dd-p li em { font-style: normal; color: var(--mut); font-size: .88em; }
.s2-lnote { margin-top: .9em; padding: .6em .9em; background: #f6f9fd; border-left: 3px solid var(--ac, var(--blue)); border-radius: 0 8px 8px 0; color: var(--ink2); font-size: .9em; }
.s2-lf { margin-top: .7em; display: flex; flex-wrap: wrap; gap: .4em .8em; align-items: center; font-size: .85em; color: var(--mut); }
.s2-lf a { text-decoration: none; font-weight: 600; }
.s2-lupd { margin-top: .4em; font-size: .78em; color: var(--mut2); }
.s2-ldisc { text-align: center; color: var(--mut); font-size: .85em; padding: .4em 1em 1em; }
.s2-today .s2-td-l { display: flex; flex-direction: column; }
.s2-today .s2-td-l > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: .6em; padding: .4em 0; border-bottom: 1px dashed var(--line); }
.s2-today .s2-td-l b { font-weight: 600; color: var(--ink2); font-size: .9em; }
.s2-more { display: inline-block; margin-top: .5em; font-weight: 600; font-size: .9em; }
@media (max-width: 760px) {
    .s2-duty { columns: 1; }
    .s2-duty-i { grid-template-columns: 8.5em minmax(0, 1fr); }
    .s2-dd-p ul { grid-template-columns: 1fr; }
    .s2-days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3em; }
    .s2-days button { flex: none; }
    .s2-lt .c-n { width: auto; font-size: .7em; }
}

/* Số cột ô KPI theo số ô */
@media (min-width: 1281px) {
    .s2-kpis.k2, .s2-kpis.k3, .s2-kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .s2-kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .s2-kpis.k7, .s2-kpis.k8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .s2-kpis.k11, .s2-kpis.k12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
body.s2-present .s2-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
body.s2-present .s2-kpis.k9, body.s2-present .s2-kpis.k10 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
body.s2-present .s2-kpis.k5, body.s2-present .s2-kpis.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.s2-home .s2-kpis { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; }

/* ------------------------------------------------------------------ IN */
@media print {
    .s2-top, .s2-toc, .s2-pctl { display: none !important; }
    .s2-deck { padding: 0; max-width: none; }
    .s2-slide { break-inside: avoid; box-shadow: none; }
}

/* ------------------------------------------------------------------ MÀN HẸP */
/* Thanh trên co giãn: các phần được phép co lại, không đẩy tràn ngang */
.s2-top > * { min-width: 0; }
.s2-nav, .s2-act, .s2-ib, .s2-play { flex-shrink: 0; }
.s2-period { flex: 0 1 auto; }
.s2-period select { min-width: 150px; width: 100%; }
.s2-sec { flex: 0 1 230px; }
.s2-sec-b { width: 100%; }
@media (max-width: 1600px) {
    .s2-brand span { display: none; }
    .s2-acc:not(.draft) { display: none; }
}
@media (max-width: 1450px) {
    .s2-nav a span { display: none; }
    .s2-nav a { padding: 7px 11px; }
}
@media (max-width: 1280px) {
    .s2-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .s2-brand span { display: none; }
}
@media (max-width: 1100px) {
    .s2-g2, .s2-g2w, .s2-bq2, .s2-home { grid-template-columns: minmax(0, 1fr); }
    .s2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .s2-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .s2-ai-list { grid-template-columns: 1fr; }
    .s2-nav a span { display: none; }
}
@media (max-width: 760px) {
    body.s2 { font-size: 14px; }
    .s2-top { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
    .s2-brand img { height: 34px; }
    .s2-nav { margin-left: 0; order: 3; width: 100%; justify-content: space-between; }
    .s2-nav a { flex: 1; justify-content: center; padding: 6px 4px; font-size: 13px; }
    .s2-nav a span { display: inline; font-size: 13px; }
    .s2-nav a { gap: 4px; padding: 6px 3px; font-size: 12.5px; min-width: 0; }
    .s2-nav a span { font-size: 12.5px; }
    .s2-nav a:last-child { flex: 0 0 auto; padding: 6px 10px; }
    .s2-nav a:last-child span { display: none; }
    .s2-period { order: 4; width: 100%; margin-left: 0; }
    .s2-period select { flex: 1; max-width: none; }
    .s2-act { margin-left: auto !important; }
    .s2-play span, .s2-acc { display: none; }
    .s2-play { width: 38px; padding: 0; justify-content: center; }
    .s2-top { position: relative; }
    .s2-period { flex: 1; width: auto !important; min-width: 0; }
    .s2-period select { min-width: 0; font-size: 13px; padding-right: 26px; background-position: right 8px center; }
    .s2-sec { order: 4; position: static; flex: none; }
    .s2-sec-b { width: 38px; padding: 0; justify-content: center; }
    .s2-sec-b span, .s2-sec-b .s2-car { display: none; }
    .s2-sec-m { left: 12px; right: 12px; top: auto; width: auto; margin-top: 6px; }
    .s2-rkm { display: inline; color: var(--mut); margin-right: .35em; }
    .s2-hero { flex-direction: column; gap: .7em; }
    .s2-hero-l { border-right: 0; padding: 0; }
    .s2-scs { grid-template-columns: 1fr; }
    .s2-rk-r { grid-template-columns: 1.6em 6.5em minmax(0, 1fr) 4.8em; gap: .45em; }
    .s2-score b { font-size: 1.2em; }
    .s2-deck { padding: 12px 10px 90px; gap: 12px; }
    .s2-slide { padding: 1.1em 1em 1.2em; font-size: 14px; scroll-margin-top: 10px; }
    .s2-sh { flex-wrap: wrap; }
    .s2-sh .s2-right { margin-left: 0; width: 100%; }
    .s2-cv { flex-wrap: wrap; gap: .9em; }
    .s2-cv img { height: 3.2em; }
    .s2-cv-h1 { font-size: 1.55em; }
    .s2-cv-r { text-align: left; width: 100%; display: flex; gap: 1em; align-items: center; flex-wrap: wrap; }
    .s2-cv-clock { font-size: 1.4em; }
    .s2-cv-date, .s2-cv-badge { margin: 0; }
    .s2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55em; }
    .s2-kpi { padding: .7em .75em; }
    .s2-kpi-v { font-size: 1.6em; }
    .s2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s2-hb-r { grid-template-columns: 6.5em minmax(0, 1fr); gap: .3em .7em; }
    .s2-hb-v { grid-column: 2; }
    .s2-st-r { grid-template-columns: 6.5em minmax(0, 1fr); gap: .6em; }
    .s2-li-r { grid-template-columns: 6.5em minmax(0, 1fr) 6.2em; }
    .s2-li-r > em { display: none; }
    /* Bảng → thẻ */
    .s2-tbl.cards thead { display: none; }
    .s2-tbl.cards, .s2-tbl.cards tbody { display: block; }
    .s2-tbl.cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5em .8em; border: 1px solid var(--line); border-radius: 12px; padding: .8em .9em; margin-bottom: .7em; }
    .s2-tbl.cards td { border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: .1em; }
    .s2-tbl.cards td::before { content: attr(data-l); font-size: .78em; color: var(--mut); font-weight: 600; }
    .s2-tbl.cards td.idx { display: none; }
    .s2-tbl.cards td.name { grid-column: 1; font-size: 1.1em; color: var(--navy); justify-content: center; }
    .s2-tbl.cards td.name::before { display: none; }
    .s2-tbl.cards td.tb { grid-column: 2; grid-row: 1; align-items: flex-end; justify-content: center; }
    .s2-tbl.cards td.tb::before { display: none; }
    .s2-tbl.cards td.na-cell { display: none; }
    .s2-tbl.cards td.wide { grid-column: 1 / -1; }
    .s2-tbl.cards .s2-c { align-items: flex-start; }
    .s2-tbl.cards tr.sum { background: var(--sky2); }
    .s2-tbl.cards tr.sum td { background: none; border: 0; }
    .s2-plan td.day { width: auto; }
    .s2-plan.cards td.day { grid-column: 1 / -1; background: none; border: 0; }
    .s2-plan.cards td.gio { grid-column: 1 / -1; }
    .s2-plan.cards td.nd, .s2-plan.cards td.sm { grid-column: 1 / -1; }
}
/* v1.0.58 — Lịch: căn trái, mỗi ô một dòng (tên nối bằng dấu phẩy) */
.s2-nmi { font-weight: 700; color: var(--ink); }
.s2-duty-i { align-items: baseline; }
.s2-lt-w { overflow: auto; }
.s2-lt th, .s2-lt td { text-align: left !important; }
.s2-lt th { white-space: nowrap; }
.s2-lt td { vertical-align: top; }
.s2-lt .c-v { min-width: 11em; max-width: 15em; }
.s2-lt .c-n { width: 7em; white-space: normal; }
.s2-dd-p li { justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2-dd-p li span { overflow: hidden; text-overflow: ellipsis; }
.s2-dd-p li em::before { content: '· '; }
.s2-lkh td, .s2-lkh th { text-align: left; }
.s2-lkh th.c-day, .s2-lkh td.day { width: 7.5em; min-width: 7.5em; white-space: nowrap; }
.s2-today .s2-td-l > div { align-items: baseline; }
.s2-khlock { padding: .4em 0 .2em; }
.s2-khlock p { margin: 0 0 .8em; color: var(--ink2); }
.s2-khlock p i { color: var(--ac, var(--blue)); margin-right: .3em; }
.s2-khf { display: flex; flex-wrap: wrap; gap: .6em; align-items: center; }
.s2-khf input { height: 2.6em; border: 1px solid var(--line); border-radius: 10px; padding: 0 .9em; min-width: 240px; font: inherit; }
.s2-khf input:focus { outline: none; border-color: var(--blue); }
.s2-khmsg { margin-top: .5em; color: var(--mut); font-size: .9em; min-height: 1.2em; }
.s2-khmsg.err { color: #c45a5a; font-weight: 600; }
/* v1.0.62 — ghi chú cuối lịch + tệp gốc dạng biểu tượng */
.s2-lmeta { margin-top: 1em; display: flex; flex-direction: column; gap: .6em; }
.s2-hot { display: flex; align-items: center; gap: .8em; flex-wrap: wrap; background: #fff5f5; border: 1px solid #f3d3d3; border-radius: 12px; padding: .55em .9em; }
.s2-hot > i { color: #d0473f; font-size: 1.15em; }
.s2-hot span { display: flex; flex-direction: column; line-height: 1.3; }
.s2-hot small { font-size: .74em; text-transform: uppercase; letter-spacing: .05em; color: #b0524d; font-weight: 700; }
.s2-hot b { font-weight: 600; color: var(--ink); }
.s2-hot a { margin-left: auto; background: #d0473f; color: #fff !important; text-decoration: none; font-weight: 700; padding: .35em .9em; border-radius: 999px; white-space: nowrap; }
.s2-hot a:hover { background: #b83a33; }
.s2-lsig { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5em 1.6em; padding: .1em .2em; }
.s2-sg { display: flex; flex-direction: column; line-height: 1.3; }
.s2-sg small { font-size: .72em; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); font-weight: 600; }
.s2-sg b { font-weight: 600; color: var(--ink2); font-size: .95em; }
.s2-sg.plain { color: var(--mut); font-size: .9em; font-style: italic; align-self: flex-end; }
.s2-lsig-r { margin-left: auto; display: flex; align-items: center; gap: .8em; }
.s2-lsig-r .s2-lupd { margin: 0; }
.s2-fis { display: flex; gap: .35em; }
.s2-fi { width: 2.1em; height: 2.1em; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--sky, #eef4fb); color: var(--ac, var(--blue)) !important; text-decoration: none; }
.s2-fi:hover { background: var(--ac, var(--blue)); color: #fff !important; }
.s2-fi.off { opacity: .35; cursor: default; }
.s2-lkh td.gio, .s2-lkh th.c-gio { white-space: normal; width: 5em; min-width: 4.5em; overflow-wrap: anywhere; }
@media (max-width: 760px) { .s2-hot a { margin-left: 0; } .s2-lsig-r { margin-left: 0; width: 100%; justify-content: space-between; } }
/* v1.0.64 — nhóm trực gộp ô: nhãn giữa ô, đường phân nhóm đậm */
.s2-lt td.c-n { vertical-align: top; text-align: center !important; background: #f4f8fc; border-right: 1px solid #dfe8f3; }
.s2-lt td.c-n span { display: inline-block; line-height: 1.35; position: sticky; top: 3.4em; padding: .3em 0; }
.s2-lt tr.g1 > td { border-top: 2px solid #d3e0ef; }
/* v1.0.65 — ghi chú lịch gọn ở góc phải tiêu đề (đường dây nóng + người ký + biểu tượng tệp gốc) */
.s2-sh { flex-wrap: wrap; }
.s2-dayrow { display: flex; align-items: flex-start; gap: .8em 1.4em; flex-wrap: wrap; margin: -.2em 0 1em; }
.s2-dayrow .s2-days { margin: 0; flex: 1 1 auto; }
.s2-hm { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: .3em; max-width: 100%; text-align: right; }
.s2-hm1 { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; justify-content: flex-end; }
.s2-hotc { display: inline-flex; align-items: center; gap: .5em; background: #fff3f2; border: 1px solid #f1cfcc; color: #8f2f29 !important; border-radius: 999px; padding: .3em .35em .3em .8em; font-size: .86em; text-decoration: none; max-width: 100%; }
.s2-hotc > i { color: #d0473f; }
.s2-hotc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-hotc b { background: #d0473f; color: #fff; border-radius: 999px; padding: .15em .7em; white-space: nowrap; }
.s2-hotc:hover b { background: #b83a33; }
.s2-hm2 { font-size: .8em; color: var(--mut); line-height: 1.45; }
.s2-hm2 b { color: var(--ink2); font-weight: 600; }
.s2-hm .s2-fi { width: 1.9em; height: 1.9em; font-size: .9em; }
@media (max-width: 760px) { .s2-hm { margin-left: 0; align-items: flex-start; text-align: left; width: 100%; } .s2-hm1 { justify-content: flex-start; } .s2-hotc span { white-space: normal; } }
#sl-homnay .s2-sh { margin-bottom: .6em; }
#sl-homnay .s2-sh + .s2-days { margin-top: -.2em; }
/* v1.0.66 — hàng chữ ký thẳng lối dưới tiêu đề, căn phải */
.s2-sh .s2-right { align-self: center; }
.s2-sigrow { display: flex; justify-content: flex-end; flex-wrap: wrap; margin: -.5em 0 .9em; }
.s2-si { display: flex; flex-direction: column; align-items: flex-start; padding: 0 1em; border-left: 1px solid var(--line); line-height: 1.3; }
.s2-si:first-child { border-left: 0; }
.s2-si:last-child { padding-right: 0; }
.s2-si small { font-size: .68em; text-transform: uppercase; letter-spacing: .06em; color: var(--mut2, #8a98a8); font-weight: 600; white-space: nowrap; }
.s2-si b { font-size: .88em; font-weight: 600; color: var(--ink2); white-space: nowrap; }
@media (max-width: 760px) { .s2-sigrow { justify-content: flex-start; margin-top: 0; gap: .4em 0; } .s2-si:first-child { padding-left: 0; } }
@media (max-width: 760px) { .s2-sigrow { display: grid; grid-template-columns: 1fr 1fr; gap: .55em 1em; } .s2-si { border-left: 0; padding: 0; } .s2-si b, .s2-si small { white-space: normal; } }
/* ===================== v1.0.67 — Trang lịch dạng bảng tuần (giống mẫu in) ===================== */
.s2-pst { padding: 0 !important; overflow: hidden; }
.pst-h { display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: linear-gradient(110deg, #134e86 0%, #1d6fa5 55%, #2a8fb0 100%); color: #fff; }
.pst-h img { width: 58px; height: 58px; border-radius: 50%; background: #fff; padding: 3px; flex: none; }
.pst-org { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pst-org small { font-size: .9em; opacity: .9; letter-spacing: .02em; text-transform: uppercase; }
.pst-org b { font-size: 1.25em; font-weight: 700; text-transform: uppercase; }
.pst-ti { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.pst-ti b { font-size: 1.3em; font-weight: 700; letter-spacing: .01em; }
.pst-ti small { opacity: .9; font-size: .92em; }
.pst-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 22px; background: #eaf3fb; border-bottom: 1px solid #d5e4f2; }
.pst-bar button, .pst-bar select, .pst-bar input { font: inherit; }
.pst-sel, .pst-q { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #c9dbee; border-radius: 8px; padding: 0 10px; height: 34px; color: #2a5a8c; }
.pst-sel select { border: 0; background: transparent; font-weight: 600; color: #1f4f80; height: 32px; max-width: 220px; outline: none; cursor: pointer; }
.pst-q input { border: 0; outline: none; width: 170px; height: 32px; background: transparent; }
.pst-q span { font-size: .78em; color: var(--mut); white-space: nowrap; }
.pst-seg { display: inline-flex; border: 1px solid #c9dbee; border-radius: 8px; overflow: hidden; background: #fff; }
.pst-seg button { border: 0; background: #fff; padding: 0 12px; height: 32px; font-weight: 600; color: #4b6584; cursor: pointer; font-size: .9em; }
.pst-seg button + button { border-left: 1px solid #dbe7f3; }
.pst-seg button.on { background: #1d5f9a; color: #fff; }
.pst-b { border: 1px solid #c9dbee; background: #fff; color: #1f4f80; border-radius: 8px; height: 34px; padding: 0 12px; font-weight: 600; cursor: pointer; font-size: .9em; display: inline-flex; align-items: center; gap: 6px; }
.pst-b:hover, .pst-seg button:hover:not(.on) { background: #f2f8fe; }
#pstPrint { margin-left: auto; background: #1d5f9a; color: #fff; border-color: #1d5f9a; }
#sl-poster > .pst-box, #sl-poster > .pst-s, #sl-poster > .pst-tw, #sl-poster > .pst-dd, #sl-poster > .pst-sign, #sl-poster > .pst-files, #sl-poster > .s2-empty { margin-left: 22px; margin-right: 22px; }
.pst-box { margin-top: 16px; background: #fff8e1; border: 1.5px solid #f0c36d; border-radius: 10px; padding: 10px 16px; text-align: center; line-height: 1.6; color: #3d3320; }
.pst-box-t { font-weight: 700; color: #c0392b; font-size: 1.08em; letter-spacing: .02em; margin-bottom: 2px; }
.pst-box b { color: #5a4419; font-weight: 700; }
.pst-box a { color: #c0392b; font-weight: 700; text-decoration: none; }
.pst-s { margin: 18px 0 8px; font-size: 1.05em; font-weight: 700; color: #134e86; text-transform: uppercase; letter-spacing: .01em; }
.pst-tw { overflow-x: auto; border: 1px solid #cfdeec; border-radius: 8px; }
.pst-t { width: 100%; border-collapse: collapse; font-size: .93em; }
.pst-t th, .pst-t td { border: 1px solid #dbe6f1; padding: 5px 7px; text-align: center; vertical-align: middle; line-height: 1.3; }
.pst-t thead th { background: #2e6da4; color: #fff; font-weight: 700; white-space: nowrap; }
.pst-t thead th small { display: block; font-weight: 600; opacity: .9; font-size: .88em; }
.pst-t thead th em { display: block; font-style: normal; font-size: .72em; background: #fff; color: #2e6da4; border-radius: 99px; padding: 0 6px; margin: 2px auto 0; width: max-content; }
.pst-t thead th.sat { background: #e08a3c; }
.pst-t thead th.sun { background: #d9534f; }
.pst-t thead th.today { box-shadow: inset 0 -4px 0 #ffd54f; }
.pst-t tbody th.pl { text-align: left; background: #f1f6fb; color: #1d3557; font-weight: 700; white-space: nowrap; }
.pst-t tbody th.ps { background: #f7fafd; color: #4b6584; font-weight: 600; font-size: .9em; white-space: nowrap; }
.pst-t td.pv { color: #1c2b3d; }
.pst-t td.sat { background: #fff6ec; }
.pst-t td.sun { background: #fdeceb; }
.pst-t td.today { background: #eaf3ff; font-weight: 700; }
.pst-t tbody tr:hover td, .pst-t tbody tr:hover th { background-color: #fffbe6; }
.pst-t .hit { background: #ffe58f !important; font-weight: 700; outline: 2px solid #f0b400; outline-offset: -2px; }
.pst-t tr.dim, .s2-duty-i.dim, .s2-dm.dim, .s2-dd li.dim { opacity: .28; }
.s2-nmi.hit, .s2-dd li > span.hit { background: #ffe58f; border-radius: 4px; padding: 0 3px; }
.pst-dd { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.pst-t.dd { border: 1px solid #cfdeec; border-radius: 8px; overflow: hidden; font-size: .88em; }
.pst-t.dd thead th { background: #3b7fb8; font-size: .92em; }
.pst-t.dd thead th.ddh { background: #1d5f9a; text-align: left; font-size: 1em; }
.pst-t.dd thead th.ddh small { display: inline; float: right; font-weight: 600; opacity: .85; }
.pst-t.dd td { text-align: left; padding: 3px 7px; }
.pst-t.dd td.cd { text-align: center; color: #4b6584; white-space: nowrap; width: 1%; }
.pst-t.dd td.vt { background: #f5f9fd; color: #1d3557; font-weight: 600; text-align: center; width: 34%; }
.pst-sign { display: flex; flex-direction: column; align-items: flex-end; margin-top: 18px; margin-bottom: 6px; }
.pst-sign-d { font-style: italic; color: var(--ink2); margin-bottom: 6px; }
.pst-sign-c { display: flex; gap: 10px 46px; flex-wrap: wrap; justify-content: flex-end; }
.pst-sign-c div { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 130px; }
.pst-sign-c small { font-weight: 700; color: #1d3557; text-transform: uppercase; font-size: .78em; letter-spacing: .02em; max-width: 190px; }
.pst-sign-c b { margin-top: 26px; font-weight: 700; color: var(--ink); }
.pst-files { display: flex; align-items: center; gap: 8px; padding: 10px 0 18px; color: var(--mut); font-size: .85em; border-top: 1px dashed var(--line); margin-top: 10px; }
.pst-files small { margin-left: auto; }
@media (max-width: 900px) {
    .pst-h { flex-wrap: wrap; padding: 14px 16px; }
    .pst-ti { margin-left: 0; text-align: left; width: 100%; }
    .pst-ti b { font-size: 1.05em; }
    .pst-bar { padding: 10px 16px; }
    .pst-q input { width: 120px; }
    #pstPrint { margin-left: 0; }
    #sl-poster > .pst-box, #sl-poster > .pst-s, #sl-poster > .pst-tw, #sl-poster > .pst-dd, #sl-poster > .pst-sign, #sl-poster > .pst-files { margin-left: 12px; margin-right: 12px; }
    .pst-sign { align-items: center; }
    .pst-sign-c { justify-content: center; gap: 10px 20px; }
}
/* In lịch / Tải PDF: chỉ in trang lịch dạng bảng, khổ A4 dọc */
@media print {
    @page { size: A4 portrait; margin: 8mm; }
    body.s2 { background: #fff !important; font-size: 10.5px; }
    .s2-top, .pst-bar, .pst-files, .s2-ldisc, #s2Deck > section:not(#sl-poster), .s2-ctl, .s2-play { display: none !important; }
    .s2-deck, #s2Deck { padding: 0 !important; margin: 0 !important; max-width: none !important; }
    .s2-slide { box-shadow: none !important; border: 0 !important; margin: 0 !important; }
    .pst-h, .pst-t thead th, .pst-box, .pst-t td.sat, .pst-t td.sun, .pst-t td.today { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .pst-tw { overflow: visible; }
    .pst-t th, .pst-t td { padding: 2px 4px; }
    .pst-t tr.dim { opacity: 1; }
    .pst-dd { grid-template-columns: 1fr 1fr; }
    .pst-t, .pst-dd, .pst-sign { page-break-inside: auto; }
    .pst-t tr { page-break-inside: avoid; }
}
@media (max-width: 760px) {
    .pst-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 12px; }
    .pst-sel, .pst-q { grid-column: 1 / -1; }
    .pst-sel select { max-width: none; width: 100%; }
    .pst-q input { flex: 1; width: auto; }
    .pst-seg { width: 100%; }
    .pst-seg button { flex: 1; padding: 0 6px; font-size: .82em; }
    .pst-b { justify-content: center; font-size: .82em; padding: 0 8px; }
    .pst-h img { width: 44px; height: 44px; }
    .pst-org b { font-size: 1.05em; }
    .pst-box { font-size: .9em; }
    .pst-t { font-size: .82em; }
    .pst-t tbody th.pl { position: sticky; left: 0; z-index: 1; white-space: normal; min-width: 7.5em; }
}
.pst-bar .sm { display: none; }
@media (max-width: 760px) { .pst-bar .lg { display: none; } .pst-bar .sm { display: inline; } }
/* v1.0.68 — đường dây nóng theo giờ */
.pst-hl { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; }
.pst-hl .t { color: #5a4419; }
.pst-hl .hl { padding: 1px 10px; border-radius: 999px; border: 1px dashed #e7c27a; background: #fffdf5; }
.pst-hl .hl em { font-style: normal; font-size: .8em; text-transform: uppercase; letter-spacing: .03em; color: #9a7b3a; font-weight: 700; }
.pst-hl .hl.cur { border: 1.5px solid #c0392b; background: #fff0ee; }
.pst-hl .hl.cur em::before { content: '● '; color: #c0392b; }
.pst-hl small { flex-basis: 100%; color: #8a7a55; font-size: .8em; }
/* v1.0.70 — bảng lịch: tiêu đề cột 1 hàng, căn trái, không in đậm tùy tiện */
.pst-t th, .pst-t td { text-align: left; }
.pst-t thead th { font-weight: 600; white-space: nowrap; }
.pst-t thead th.pl { text-align: left; }
.pst-t tbody th.pl { font-weight: 400; color: #1c2b3d; }
.pst-t tbody th.ps { font-weight: 400; color: #4b6584; }
.pst-t td.today { font-weight: 400; }
.pst-t.dd td.cd { text-align: left; }
.pst-t.dd td.vt { text-align: left; font-weight: 400; color: #1c2b3d; }
.pst-t.dd thead th.ddh { font-weight: 600; }
.pst-s { font-weight: 600; }
/* v1.0.71 — cột cân đối, điều dưỡng khoa: họ tên đủ mỗi người 1 dòng */
.pst-t.ls, .pst-t.cls { table-layout: fixed; min-width: 1080px; }
.pst-t col.c1 { width: 13.5em; }
.pst-t col.c2 { width: 4.6em; }
.pst-t col.c2.z { width: 0; }
.pst-t.ls tbody th.pl, .pst-t.cls tbody th.pl { white-space: normal; }
.pst-t td.pv { overflow-wrap: anywhere; }
.pst-t td .pn { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.pst-t tr.nr td { vertical-align: top; }
@media print { .pst-t.ls, .pst-t.cls { min-width: 0; } .pst-t col.c1 { width: 10em; } .pst-t col.c2 { width: 3.6em; } .pst-t td .pn { white-space: normal; } }
/* v1.0.73 — người đã đối chiếu: danh xưng nhỏ trước họ tên */
.pst-t td .pn i { font-style: normal; font-size: .8em; color: var(--mut); }
.pst-t td .pn small { font-size: .78em; color: var(--mut); }
.pst-t td .pn { white-space: normal; }
/* v1.0.77 — họ tên + chức danh trên 1 dòng: chữ bảng nhỏ lại, danh xưng thu gọn, cột tự giãn theo tên */
.pst-t.ls, .pst-t.cls { table-layout: auto; min-width: 0; font-size: 13px; }
.pst-t col.c1 { width: 12em; }
.pst-t col.c2 { width: 3.6em; }
.pst-t th, .pst-t td { padding: 4px 6px; }
.pst-t tbody th.pl { font-size: 12.5px; }
.pst-t tbody th.ps { font-size: 11.5px; }
.pst-t td .pn { display: block; white-space: nowrap; overflow: visible; text-overflow: clip; line-height: 1.35; }
.pst-t td .pn i { font-size: 9.5px; letter-spacing: -.02em; color: #8a98a8; margin-right: 1px; vertical-align: 1px; }
.pst-t td .pn small { font-size: 10px; }
.pst-t td.pv { overflow-wrap: normal; }
@media print { .pst-t.ls, .pst-t.cls { font-size: 9px; } .pst-t td .pn i { font-size: 7px; } .pst-t td .pn { white-space: nowrap; } }
/* v1.0.101: cỡ chữ bảng lịch tự co theo khung (JS pstFit) — nhãn theo tỉ lệ */
.pst-t.ls tbody th.pl, .pst-t.cls tbody th.pl { font-size: .96em; }
.pst-t.ls tbody th.ps, .pst-t.cls tbody th.ps { font-size: .88em; }
/* ------------------------------------------------------------------ v1.0.104: ĐIỆN THOẠI GỌN KIỂU ỨNG DỤNG
   Thanh trên 1 hàng (logo + tên + nút), menu chính thành thanh thẻ cố định ở đáy màn hình, trang bìa gọn */
@media (max-width: 760px) {
    .s2-top { position: sticky !important; top: 0; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 12px; min-height: 52px; }
    .s2-brand { flex: 1 1 auto; min-width: 0; gap: 8px; }
    .s2-brand img { height: 34px; }
    .s2-brand span { display: flex !important; }
    .s2-brand b { font-size: 12.5px; letter-spacing: 0; display: block !important; }
    .s2-brand small { font-size: 11px; }
    .s2-act { margin-left: 0 !important; gap: 4px; }
    .s2-ib, .s2-play { width: 34px !important; height: 34px !important; border-radius: 9px; }
    .s2-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0 !important; width: auto !important; order: 9;
        display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97); border-radius: 0; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15, 29, 46, .06); backdrop-filter: blur(8px); }
    .s2-nav a, .s2-nav a:last-child { flex-direction: column; align-items: center; justify-content: center; gap: 3px !important; padding: 6px 2px !important; border-radius: 10px; font-size: 10.5px !important; font-weight: 600; line-height: 1.1; min-width: 0; flex: none; }
    .s2-nav a span, .s2-nav a:last-child span { display: block !important; font-size: 10.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .s2-nav a i { font-size: 17px; opacity: .75; }
    .s2-nav a.on { background: #eef4fc; box-shadow: none; color: var(--navy) !important; }
    .s2-nav a.on i { opacity: 1; color: var(--blue); }
    body.s2 { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    body.s2-present .s2-nav { display: none !important; }
    .s2-period, .s2-sec { order: 5; }
    /* Trang bìa gọn */
    .s2-cover { padding: 16px 16px 20px !important; }
    .s2-cv { flex-wrap: wrap; gap: 10px 12px; align-items: center; }
    .s2-cv img { height: 46px; }
    .s2-cv-t { flex: 1 1 calc(100% - 60px); }
    .s2-cv-h { font-size: 11px; letter-spacing: .05em; }
    .s2-cv-h1 { font-size: 21px; margin: 2px 0; }
    .s2-cv-d { font-size: 13px; line-height: 1.35; }
    .s2-cv-r { flex: 1 1 100%; display: flex; align-items: baseline; gap: 10px; text-align: left; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .18); }
    .s2-cv-clock { font-size: 22px; }
    .s2-cv-date { font-size: 13px; margin: 0; }
    /* Nút Tổng quan: chia đều */
    .s2-hbtns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
    .s2-hbtns .s2-btn { justify-content: center; padding: .65em .6em; font-size: 13px; min-width: 0; }
    .s2-hbtns .s2-btn:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .s2-brand { order: 1; }
    .s2-act { order: 2; }
    .s2-period { order: 5; flex: 1 1 calc(100% - 46px) !important; width: auto !important; min-width: 0; margin: 0 !important; }
    .s2-period[hidden], .s2-sec[hidden] { display: none !important; }
    .s2-sec { order: 6; flex: none; }
    .s2-sec-b { width: 38px; height: 38px; }
}

/* v1.0.107: người trực — mỗi người 1 dòng, danh xưng nhỏ, không in đậm; bố cục Trực theo ngày */
.s2-nmi { font-weight: 400 !important; color: var(--ink); display: flex; flex-direction: column; gap: .12em; }
.s2-nmi { font-size: calc(var(--nf, 1) * 1em); }
.s2-nmi .s2-pr { display: block; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.s2-duty { columns: 380px !important; }
.s2-nmi .s2-pr small { font-size: .74em; color: var(--mut2, #8a98a8); font-weight: 600; margin-right: .35em; letter-spacing: .01em; }
.s2-duty-i, .s2-today .s2-td-l > div { align-items: start !important; }
.s2-duty-i b, .s2-today .s2-td-l b { font-weight: 500 !important; color: var(--mut, #5f6f80) !important; font-size: .86em !important; padding-top: .12em; }
.s2-duty-i { grid-template-columns: 8.6em minmax(0, 1fr); padding: .45em .8em; }
.s2-hotrow { margin: -.2em 0 1em; }
.s2-hotrow .s2-hotc span { white-space: normal; }
.s2-sigfoot { margin-top: .6em; padding-top: .9em; border-top: 1px dashed var(--line); }
.s2-sigfoot .s2-sigrow { margin: 0; justify-content: flex-end; }

/* Điều động ngày nghỉ (bản in tuần): danh xưng trước tên, 2 cột */
.pst-t.dd td.nm small.cdx { font-size: .78em; color: #7a8796; font-weight: 600; margin-right: .3em; }
.pst-t.dd th:first-child, .pst-t.dd td.nm { width: 58%; }

/* Trực theo ngày: thẻ thông tin chính + nhóm không bị cắt ngang cột */
.s2-dmain { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7em; margin: 0 0 1.1em; }
.s2-dm { border: 1px solid var(--line); border-left: 4px solid var(--ac, var(--blue)); border-radius: 10px; padding: .6em .9em .65em; background: linear-gradient(180deg, #f7fbff, #fff); min-width: 0; }
.s2-dm > small { display: block; font-size: .72em; text-transform: uppercase; letter-spacing: .06em; color: var(--ac, var(--blue)); font-weight: 700; margin-bottom: .25em; }
.s2-dm .s2-nmi { font-size: calc(var(--nf, 1) * 1.12em); }
.s2-dm:nth-child(2) { border-left-color: #2c8a5e; } .s2-dm:nth-child(3) { border-left-color: #7a4bb0; } .s2-dm:nth-child(4) { border-left-color: #c45a5a; }
.s2-duty-g { break-inside: avoid; display: inline-block; width: 100%; padding-bottom: 2px; }
.s2-duty { columns: 360px !important; }
.pst-dd { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)) !important; }

/* v1.0.107: nhóm trực xếp cột bằng JS (dutyCols) — không dùng CSS columns (bị cắt nhóm cuối) */
.s2-duty.mas { columns: auto !important; display: flex; gap: 1.4em; align-items: flex-start; }
.s2-duty.mas .s2-dcol { flex: 1 1 0; min-width: 0; }
.s2-duty.mas .s2-duty-g { display: block; }

/* v1.0.107: thanh trên cùng đã có logo + tên bệnh viện → trang bìa (màn hình thường) không lặp lại; trình chiếu / in vẫn hiện đủ */
@media screen { body:not(.s2-present) .s2-cover .s2-cv > img, body:not(.s2-present) .s2-cover .s2-cv-h { display: none; } }
@media screen and (max-width: 640px) { body:not(.s2-present) .s2-cover { padding: 1.1em 1.2em; } body:not(.s2-present) .s2-cover .s2-cv-h1 { font-size: 1.6em; } }

/* v1.0.107: khung chi tiết bình quân đơn ở chế độ "bấm mới hiện" */
.s2-tip .s2-tip-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 18px; line-height: 1; color: #8a97a8; cursor: pointer; padding: 2px 4px; }
.s2-tip .s2-tip-x:hover { color: #c0392b; }
[data-cp] { cursor: help; }
/* Đầu bảng lịch trực: thanh trên cùng đã có logo + tên bệnh viện → màn hình thường không lặp lại (in / trình chiếu vẫn đủ) */
@media screen { body:not(.s2-present) .s2-pst .pst-h > img, body:not(.s2-present) .s2-pst .pst-org { display: none; } body:not(.s2-present) .s2-pst .pst-h { justify-content: flex-start; } body:not(.s2-present) .s2-pst .pst-ti { text-align: left; margin-left: 0; } }
.s2-tip.ck { pointer-events: auto; padding-right: 26px; }

/* Chân trang: dùng chung themes/default/css/chan_trang.css với các module trang riêng */
body.s2-present .ct-foot { display: none; }
.ct-foot-n i { margin-right: 4px; }
/* có chân trang → bớt khoảng trống cuối nội dung */
body:not(.s2-present) .s2-deck { padding-bottom: 24px; }
@media (max-width: 760px) { body:not(.s2-present) .s2-deck { padding-bottom: 14px; } }

/* Kế hoạch tháng tới: cột thời gian đủ rộng cho "05/10 – 11/10", không dính sang nội dung */
.s2-plan.m th.c-day { width: 8%; } .s2-plan.m th.c-gio { width: 14%; } .s2-plan.m th.c-nd2 { width: 52%; } .s2-plan.m th.c-tp2 { width: 26%; }
.s2-plan.m td.gio { white-space: nowrap; padding-right: 1.2em; }
.s2-plan td.gio + td.nd, .s2-plan th.c-gio + th { padding-left: .9em; }

/* ===== v1.0.107: Trang Tổng quan bố cục mới ===== */
.s2-home2 { grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); }
.s2-hcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.s2-hc-k { display: inline-flex; background: var(--sky2, #f5f9fd); border: 1px solid var(--line, #e3e9f0); border-radius: 10px; padding: 3px; gap: 2px; }
.s2-hc-k button { border: 0; background: none; padding: .35em .9em; border-radius: 8px; font: inherit; font-size: .88em; font-weight: 700; color: var(--mut); cursor: pointer; }
.s2-hc-k button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15, 29, 46, .12); }
.s2-hc-m { display: flex; flex-wrap: wrap; gap: 6px; margin: -.2em 0 .8em; }
.s2-hc-m button { border: 1px solid var(--line, #e3e9f0); background: #fff; color: var(--ink2); border-radius: 99px; padding: .28em .8em; font: inherit; font-size: .84em; font-weight: 600; cursor: pointer; }
.s2-hc-m button:hover { border-color: var(--blue); color: var(--blue); }
.s2-hc-m button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.s2-hc-sum { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 26px; margin-bottom: .4em; }
.s2-hc-sum small { display: block; font-size: .78em; color: var(--mut); font-weight: 600; margin-bottom: 2px; }
.s2-hc-sum b { font-size: 1.55em; font-weight: 800; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.s2-hc-sum b em { font-style: normal; font-size: .55em; color: var(--mut); margin-left: 2px; }
.s2-hc-ch { font-weight: 700; font-size: .92em; }
.s2-hc-ch.up { color: #1f8a57; } .s2-hc-ch.dn { color: #c0392b; }
.s2-hc-sum .lg { margin-left: auto; display: flex; gap: 14px; font-size: .8em; color: var(--mut); }
.s2-hc-sum .lg i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.s2-hc-sum .lg i.b { background: #5b9bd8; } .s2-hc-sum .lg i.k { height: 2px; background: #e8962e; vertical-align: 3px; }
.s2-hc-c { width: 100%; }
.s2-hc-svg { width: 100%; height: auto; display: block; font-family: inherit; }
.s2-hc-svg .gl { stroke: #edf1f6; stroke-width: 1; }
.s2-hc-svg .ya { font-size: 11px; fill: #9aa8ba; text-anchor: end; dominant-baseline: middle; }
.s2-hc-svg .xa { font-size: 11.5px; fill: #74849a; text-anchor: middle; font-weight: 600; }
.s2-hc-svg .xa.last { fill: #23507f; font-weight: 800; }
.s2-hc-svg .bar { fill: #9cc3ea; transition: fill .15s; cursor: pointer; }
.s2-hc-svg .bar.low { fill: #f2b8b0; }
.s2-hc-svg .bar.last { fill: #3b7dc4; } .s2-hc-svg .bar.last.low { fill: #d9655a; }
.s2-hc-svg a:hover .bar { fill: #23507f; }
.s2-hc-svg .vl { font-size: 10.5px; fill: #74849a; text-anchor: middle; font-weight: 600; }
.s2-hc-svg .vl.last { fill: #23507f; font-weight: 800; font-size: 11.5px; }
.s2-hc-svg .kh { fill: none; stroke: #e8962e; stroke-width: 2; stroke-dasharray: 5 4; }
.s2-hc-svg .khd { fill: #fff; stroke: #e8962e; stroke-width: 2; }
.s2-hk { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
/* Chọn nhanh báo cáo */
.s2-rp-st { margin: -.3em 0 .8em; }
.s2-rp-st .s2-open { display: inline-flex; font-size: .85em; }
.s2-rp-r { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px; align-items: center; padding: .45em 0; border-top: 1px dashed var(--line2, #eef2f6); }
.s2-rp-r label { font-weight: 700; color: var(--navy); font-size: .92em; margin: 0; white-space: nowrap; }
.s2-rp-r label i { color: var(--mut2); margin-right: 3px; }
.s2-rp-c { display: flex; gap: 6px; min-width: 0; }
.s2-rp-c select { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line, #e3e9f0); border-radius: 9px; padding: 0 .6em; font: inherit; font-size: .9em; color: var(--ink); background: #fff; }
.s2-rp-c .s2-btn { height: 36px; display: inline-flex; align-items: center; padding: 0 .9em; white-space: nowrap; }
/* Trực hôm nay rút gọn */
.s2-tm-ca { margin: -.6em 0 .6em; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.s2-tm-ca span { color: var(--mut2); }
.s2-tm > div { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 8px; padding: .42em 0; border-bottom: 1px dashed var(--line2, #eef2f6); align-items: start; }
.s2-tm > div:last-child { border-bottom: 0; }
.s2-tm b { font-weight: 500; color: var(--mut); font-size: .86em; padding-top: .12em; }
.s2-tmini .s2-more { display: inline-block; margin-top: .5em; }
.s2-hplan .s2-cal-r { padding: .45em 0; }
@media (max-width: 1100px) { .s2-home2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .s2-hc-sum .lg { margin-left: 0; width: 100%; }
    .s2-hc-svg .ya, .s2-hc-svg .xa { font-size: 12px; }
    .s2-tm > div { grid-template-columns: 7em minmax(0, 1fr); }
}
/* % đạt cạnh số lượng: to, rõ hơn */
.s2-kpi-m .s2-p, .s2-tile-m .s2-p, .s2-bqc-m .s2-p { font-size: 1.22em; padding: .1em .6em; }
.s2-tbl td .s2-p { font-size: 1.08em; padding: .08em .55em; }
.s2-tip-v .s2-p { font-size: 13.5px; }
.s2-hc-sum .s2-p { font-size: 1.15em; padding: .12em .6em; }

/* đồng hồ giờ:phút:giây ở chân trang trình chiếu */
body.s2-present .s2-sf .s2-sfc { margin-left: -12px; padding-left: 14px; border-left: 1px solid var(--line2, #e3e9f0); color: var(--navy); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; }
body.s2-present .s2-sf .s2-sfc i { color: var(--mut2); margin-right: 4px; }
/* biểu đồ tự chuyển */
.s2-hc .s2-right { display: flex; align-items: center; gap: 10px; }
.s2-hc-auto { color: var(--mut2); font-size: .85em; }
.s2-hc-auto .fa-pause { display: none; }
.s2-hc.paused .s2-hc-auto .fa-rotate { display: none; }
.s2-hc.paused .s2-hc-auto .fa-pause { display: inline; color: var(--blue); }
.s2-hc .s2-hc-c { animation: s2hcIn .35s ease; }
@keyframes s2hcIn { from { opacity: .3; } to { opacity: 1; } }

/* các thẻ chỉ số của biểu đồ: 1 hàng (tên ngắn; thiếu chỗ thì cuộn ngang) */
.s2-hc-m { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 5px; padding-bottom: 2px; }
.s2-hc-m::-webkit-scrollbar { display: none; }
.s2-hc-m button { flex: none; white-space: nowrap; padding: .26em .72em; font-size: .82em; }

/* Chọn ngày (Trực hôm nay) trên điện thoại: 7 ô gọn 1 hàng, không tràn; biểu tượng tệp gốc nằm bên phải tiêu đề */
.s2-days button .s { display: none; }
@media (max-width: 640px) {
    #sl-homnay .s2-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; overflow: visible; }
    #sl-homnay .s2-days button { padding: .35em 0; border-radius: 8px; min-width: 0; align-items: center; }
    #sl-homnay .s2-days button .f { display: none; }
    #sl-homnay .s2-days button .s { display: flex; flex-direction: column; align-items: center; line-height: 1.15; font-size: .78em; font-weight: 600; }
    #sl-homnay .s2-days button .s b { font-size: 1.12em; font-weight: 800; }
    #sl-homnay .s2-days button small { font-size: .62em; white-space: nowrap; }
    #sl-homnay .s2-sh { flex-wrap: wrap; align-items: center; }
    #sl-homnay .s2-sh .s2-right { margin-left: auto; flex: none; order: 2; }
    #sl-homnay .s2-sh .s2-sub { order: 3; flex: 1 0 100%; margin: .15em 0 0; }
}

/* chọn chỉ số biểu đồ: máy tính = hàng thẻ, điện thoại = ô thả chọn cạnh Tuần/Tháng */
.s2-hc-sel { display: none; }
@media (max-width: 640px) {
    .s2-hc .s2-sh { flex-wrap: wrap; }
    .s2-hc .s2-right { width: 100%; margin-left: 0; display: flex; gap: 6px; align-items: center; }
    .s2-hc-m { display: none !important; }
    .s2-hc-sel { display: block; flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line, #e3e9f0); border-radius: 9px; padding: 0 .6em; font: inherit; font-size: .88em; font-weight: 600; color: var(--navy); background: #fff; }
    .s2-hc-sum { gap: 6px 18px; }
    .s2-hc-sum > div:nth-child(3) { order: 2; }
}
/* Điện thoại: thanh trên gọn 2 hàng — (1) logo + tên viện + nút QR/giao diện/quản trị; (2) chọn kỳ + mục lục + trình chiếu */
@media (max-width: 760px) {
    .s2-top { row-gap: 6px; }
    .s2-brand { flex: 1 1 0; min-width: 45%; order: 0; overflow: hidden; }
    .s2-brand img { max-width: 40%; object-fit: contain; }
    .s2-brand span { display: flex !important; min-width: 0; }
    .s2-brand b { font-size: 13px; }
    .s2-brand small { font-size: 11px; }
    .s2-act { display: contents; }
    .s2-act > .s2-ib, .s2-act > .s2-acc { order: 1; flex: none; width: 34px; height: 34px; }
    .s2-period { order: 4; flex: 1 1 calc(100% - 96px) !important; width: auto !important; }
    .s2-sec { order: 5; }
    .s2-act > .s2-play { order: 6; flex: none; height: 38px; }
}
/* Tổng quan: 2 cột kéo dài bằng nhau (khung cuối mỗi cột giãn ra) cho cân đối */
.s2-home2 { align-items: stretch; }
.s2-home2 .s2-hcol > .s2-slide:last-child { flex: 1 1 auto; }
.s2-hplan .s2-cal { max-height: 520px; overflow-y: auto; }


/* ================================================================== LÀM MỚI GIAO DIỆN (11/2026)
   Nguyên tắc: số liệu là nhân vật chính. Màu chỉ dùng để báo đạt / chưa đạt, không dùng để trang trí.
   Khối này ghi đè phía trên; muốn quay lại giao diện cũ chỉ cần xóa từ dòng này tới cuối tệp. */
:root {
    --ink: #17212e; --ink2: #3b485a; --mut: #5a687b; --mut2: #7c8a9c;
    --navy: #16395f; --blue: #2465a8; --sky: #e8eff7; --sky2: #f5f7fa;
    --line: #dde3ea; --line2: #ebeff3; --bg: #f3f5f8;
    --ok: #1c7350; --okb: #e2f2ea; --warn: #8f5c0c; --warnb: #faefd9; --bad: #ad3535; --badb: #f9e7e7;
    --r: 12px;
}
body.s2 { font-feature-settings: "tnum" 1; }
.s2 :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Thanh trên: phẳng, gọn */
.s2-top { padding: 8px 20px; box-shadow: none; }
.s2-brand b { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 14px; }
.s2-nav { background: transparent; padding: 0; gap: 2px; }
.s2-nav a { border-radius: 8px; font-weight: 500; color: var(--mut) !important; }
.s2-nav a:hover { background: var(--sky2); color: var(--ink) !important; }
.s2-nav a.on { background: var(--sky); color: var(--navy) !important; font-weight: 600; box-shadow: none; }
.s2-ib, .s2-sec-b, .s2-period select { border-radius: 8px; }
.s2-play { border-radius: 8px; box-shadow: none; font-weight: 600; }
.s2-play:hover { background: var(--blue); }

/* Tiêu đề mục: chữ thường, số thứ tự là chú thích nhỏ */
.s2-slide { box-shadow: none; padding: 1.5em 1.7em 1.6em; }
.s2-sh { align-items: baseline; gap: .6em; margin-bottom: 1.2em; }
.s2-num { width: auto; height: auto; background: transparent !important; color: var(--mut2) !important; font-size: .86em; font-weight: 600; border-radius: 0; }
.s2-sh h2 { text-transform: none; font-size: 1.38em; font-weight: 700; color: var(--ink); letter-spacing: -.012em; }
.s2-sh .s2-right { align-self: center; }

/* Bìa: một màu nền đặc */
.s2-cover { background: var(--navy); padding: 1.5em 1.8em; }
.s2-cover::after, .s2-cv-flag { display: none; }
.s2-cv-h { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .8; font-size: .95em; }
.s2-cv-h1 { font-weight: 700; letter-spacing: -.02em; }
.s2-cv-clock { font-weight: 600; }
.s2-cv-badge { font-weight: 600; }

/* Điểm tổng hợp: nền phẳng, chỉ con số mang màu */
.s2-hero, .s2-hero.ok, .s2-hero.warn, .s2-hero.bad { background: var(--sky2); border-color: var(--line); border-radius: 10px; }
.s2-hero-l { border-right-color: var(--line); }
.s2-hero-l span { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .9em; color: var(--ink2); opacity: 1; }
.s2-hero-l small { color: var(--mut); opacity: 1; }
.s2-hero-l b { font-weight: 700; }
.s2-hero-p > div { background: transparent; border: 0; border-radius: 0; padding: .2em .4em .2em 1em; border-left: 1px solid var(--line); }
.s2-hero-p b { font-weight: 700; }

/* Ô chỉ số: bỏ vạch màu và biểu tượng nhiều màu, trạng thái nằm ở nhãn % */
.s2-kpis { gap: .7em; }
.s2-kpi { border-radius: 10px; padding: .9em 1em .85em; }
.s2-kpi::before { display: none; }
.s2-kpis .s2-kpi .s2-kpi-h i { width: auto; height: auto; line-height: inherit; background: transparent; color: var(--mut2); font-size: .85em; border-radius: 0; }
.s2-kpi-h { color: var(--mut); font-weight: 500; min-height: 2.4em; align-items: flex-start; }
.s2-kpi-v { font-weight: 700; color: var(--ink); letter-spacing: -.025em; }
.s2-kpi-c { border-top-style: solid; border-top-color: var(--line2); }
.s2-kpi.hero, .s2-tile.accent { background: #fff; border-color: var(--line); }
.s2-p { font-weight: 600; }

/* Bảng: dòng kẻ mảnh, tiêu đề chữ thường, căn số dễ dò */
.s2-tbl th { background: transparent; color: var(--mut); text-transform: none; letter-spacing: 0; font-size: .84em; font-weight: 600; border-bottom: 1px solid var(--line); }
.s2-tbl th:first-child, .s2-tbl th:last-child { border-radius: 0; }
.s2-tbl tbody tr:hover td { background: var(--sky2); }
.s2-tbl td.name { font-weight: 600; }
.s2-tbl tr.sum td { background: var(--sky2); border-top: 1px solid var(--line); }
.s2-c .v { font-weight: 700; }
.s2-avg { font-weight: 700; }

/* Biểu đồ thanh, thẻ phụ */
.s2-hb-t, .s2-hb-t i, .s2-st-b { border-radius: 4px; }
.s2-hb-v, .s2-bqc-v, .s2-tile-v { font-weight: 700; }
.s2-bqc, .s2-tile { border-radius: 10px; }
.s2-bqc-v { color: var(--ink); }
.s2-bqc-h h3, .s2-g2 > div > h3, .s2-h3 { text-transform: none; letter-spacing: 0; font-size: .98em; font-weight: 600; color: var(--ink); }

/* Khối chú thích: nền nhạt thay cho vạch màu bên trái */
.s2-quote, .s2-lnote { border-left: 0; background: var(--sky2); border-radius: 8px; }
.s2-ai-sum { background: var(--sky2); border-left: 0; border-radius: 8px; color: var(--ink); }
.s2-dm { border-left-width: 1px; background: #fff; }
.s2-sc.ok, .s2-sc.warn, .s2-sc.bad { background: #fff; border-color: var(--line); }
.s2-rep a, .s2-mcal, .s2-yr-g > a, .s2-yr-g > div { border-radius: 10px; }
.s2-rep a:hover { box-shadow: none; background: var(--sky2); }
.s2-rep a b, .s2-rl a b { font-weight: 600; color: var(--ink); }

/* Trình chiếu: chữ đậm hơn một bậc để đọc từ xa, nền đồng nhất */
body.s2-present { background: #0f2238; }
body.s2-present .s2-slide:not(.s2-cover)::before { display: none; }
body.s2-present .s2-sh { padding-bottom: .6em; border-bottom: 1px solid var(--line); }
body.s2-present .s2-sh h2 { font-weight: 800; }
body.s2-present .s2-kpi-v, body.s2-present .s2-c .v { font-weight: 800; }
body.s2-present .s2-kpi-h, body.s2-present .s2-tbl th { color: var(--ink2); }
body.s2-present .s2-cover { background: var(--navy); }
body.s2-present .s2-cover .s2-cv-h { letter-spacing: 0; }

@media (max-width: 760px) {
    .s2-slide { padding: 1.1em 1em 1.2em; }
    .s2-hero-p > div { border-left: 0; padding: .2em 0; }
    /* Nhãn điểm ở góc tiêu đề từng tràn ngang, làm cả trang bị thu nhỏ trên điện thoại */
    .s2-sh { flex-wrap: wrap; }
    .s2-sh h2 { min-width: 0; }
    .s2-sh .s2-right { margin-left: 0; max-width: 100%; flex-wrap: wrap; }
    .s2-score { max-width: 100%; min-width: 0; }
    .s2-score span { min-width: 0; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .s2 *, .s2 *::before, .s2 *::after { transition: none !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ LÀM MỚI TRANG LỊCH TRỰC (11/2026)
   Chỉ áp dụng trên màn hình: bản in giữ nguyên mẫu cũ. Cột "hôm nay" là điểm nhấn màu duy nhất của bảng. */
@media screen {
    /* Đầu trang, thanh công cụ */
    .pst-h { background: var(--navy); padding: 14px 22px; }
    .pst-h img { width: 48px; height: 48px; }
    .pst-org small { text-transform: none; letter-spacing: 0; opacity: .8; }
    .pst-org b { text-transform: none; font-size: 1.12em; font-weight: 600; }
    .pst-ti b { font-size: 1.12em; font-weight: 600; letter-spacing: 0; }
    .pst-ti small { opacity: .8; }
    .pst-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px; }
    .pst-sel, .pst-q, .pst-b, .pst-seg { height: 36px; border-color: var(--line); border-radius: 8px; color: var(--ink2); }
    .pst-sel select { color: var(--ink); height: 34px; }
    .pst-q input { height: 34px; }
    .pst-sel i, .pst-q i { color: var(--mut2); }
    .pst-seg button { height: 34px; color: var(--mut); font-weight: 500; }
    .pst-seg button + button { border-left-color: var(--line); }
    .pst-seg button.on { background: var(--sky); color: var(--navy); font-weight: 600; }
    .pst-b { color: var(--ink2); font-weight: 500; }
    .pst-b:hover, .pst-seg button:hover:not(.on) { background: var(--sky2); }

    /* Bảng tuần: nền trắng, kẻ mảnh; chỉ cột hôm nay có màu, cuối tuần phân biệt bằng màu chữ tiêu đề */
    .pst-s { font-size: 1em; font-weight: 600; color: var(--ink); letter-spacing: 0; margin: 20px 0 8px; }
    .pst-tw { border-color: var(--line); border-radius: 10px; }
    .pst-t th, .pst-t td { border-color: var(--line2); }
    .pst-t thead th, .pst-t thead th.sat, .pst-t thead th.sun { background: var(--sky2); color: var(--ink2); font-weight: 600; border-bottom: 1px solid var(--line); }
    .pst-t thead th.sat { color: var(--warn); }
    .pst-t thead th.sun { color: var(--bad); }
    .pst-t thead th.today { background: var(--navy); color: #fff; box-shadow: none; }
    .pst-t tbody th.pl { background: #fff; color: var(--ink); font-weight: 600; }
    .pst-t tbody th.ps { background: #fff; color: var(--mut); font-weight: 500; }
    .pst-t td.sat, .pst-t td.sun { background: #fff; }
    .pst-t td.today { background: var(--sky); font-weight: 600; color: var(--navy); }
    .pst-t tbody tr:hover td, .pst-t tbody tr:hover th { background-color: var(--sky2); }
    .pst-t tbody tr:hover td.today { background-color: #dbe6f2; }

    /* Điều động ngày nghỉ */
    .pst-t.dd { border-color: var(--line); border-radius: 10px; }
    .pst-t.dd thead th { background: var(--sky2); color: var(--mut); font-weight: 500; }
    .pst-t.dd thead th.ddh { background: #fff; color: var(--ink); font-weight: 600; }
    .pst-t.dd td.vt { background: #fff; color: var(--ink2); font-weight: 500; }

    /* Chữ ký */
    .pst-sign-c small { text-transform: none; letter-spacing: 0; font-size: .86em; font-weight: 600; color: var(--ink2); }
    .pst-sign-c b { font-weight: 600; }

    /* Xem theo ngày */
    .s2-days button { border-radius: 8px; font-weight: 500; }
    .s2-days button small { color: var(--blue); font-weight: 600; }
    .s2-days button.on { background: var(--navy); border-color: var(--navy); font-weight: 600; }
    .s2-days button.today:not(.on) { border-color: var(--navy); }
    .s2-hotc { background: #fff; border-color: var(--line); color: var(--ink2) !important; border-radius: 8px; }
    .s2-hotc > i { color: var(--bad); }
    .s2-hotc b { background: var(--bad); border-radius: 6px; font-weight: 600; }
    .s2-hotc:hover b { background: #912b2b; }
    .s2-dm, .s2-dm:nth-child(2), .s2-dm:nth-child(3), .s2-dm:nth-child(4) { border-left-color: var(--line); border-left-width: 1px; border-radius: 10px; }
    .s2-dm > small { text-transform: none; letter-spacing: 0; font-size: .82em; font-weight: 500; color: var(--mut); }
    .s2-dm .s2-nmi { font-weight: 600 !important; }
    .s2-duty-g h4 { text-transform: none; letter-spacing: 0; font-size: .92em; font-weight: 600; color: var(--ink); }
    .s2-duty-l { border-color: var(--line); border-radius: 10px; }
    .s2-duty-i:nth-child(even) { background: #fff; }
    .s2-duty-i b { font-weight: 500; color: var(--mut); }
    .s2-si small { text-transform: none; letter-spacing: 0; font-size: .76em; color: var(--mut); font-weight: 500; }
    .s2-sigfoot { border-top-style: solid; border-top-color: var(--line2); }
    .s2-plan td.day { background: #fff; color: var(--ink); font-weight: 600; }
    .s2-plan tr.today td { background: var(--sky); }
    .s2-plan tr.today td.day { color: var(--navy); }
}

/* ================================================================== GIAO DIỆN ĐIỀU HÀNH (11/2026)
   Bảng màu lấy từ website benhvienhauloc.vn (dải #0054a6 - #0a8bc9 - #10a7f0, xanh đêm #0b2742, vàng #ffba00); thẻ trắng có chiều sâu, số liệu lớn.
   Khối này ghi đè các khối phía trên; xóa từ dòng này tới cuối tệp là về bản trước. */
:root {
    --ink: #1f2a37; --ink2: #2b3f55; --mut: #5f6b79; --mut2: #7a8694;
    --navy: #0054a6; --blue: #0a8bc9; --sky: #e3f3fc; --sky2: #f2f8fc;
    --line: #e3e9ef; --line2: #edf2f6; --bg: #f2f6f9;
    --ok: #0b7a5a; --okb: #dcf3ea; --warn: #8f5a00; --warnb: #fff3d1; --bad: #c9302c; --badb: #fde8e7;
    --okf: #14a67c; --warnf: #ffba00; --badf: #d9534f;
    --r: 18px;
    --bong: 0 1px 2px rgba(0, 54, 106, .05), 0 10px 28px -14px rgba(0, 54, 106, .18);
}
body.s2 { background: var(--bg); }

/* Thanh trên */
/* Không dùng backdrop-filter ở đây: nó kéo thanh điều hướng cố định ở đáy màn hình điện thoại lên theo thanh trên */
.s2-top { background: #fff; border-bottom: 1px solid rgba(0, 54, 106, .08); }
.s2-brand b { color: var(--navy); }
.s2-nav { gap: 4px; }
.s2-nav a { border-radius: 999px; padding: 7px 14px; transition: background .15s, color .15s; }
.s2-nav a.on { background: var(--navy); color: #fff !important; }
.s2-ib, .s2-sec-b, .s2-period select { border-radius: 10px; }
.s2-play { background: var(--navy); border-radius: 999px; padding: 0 18px; }
.s2-play:hover { background: #00478c; }

/* Mục */
.s2-deck { gap: 20px; }
.s2-slide { border: 0; border-radius: var(--r); box-shadow: var(--bong); padding: 1.7em 1.9em 1.8em; }
.s2-sh { margin-bottom: 1.3em; }
.s2-num { color: var(--blue) !important; font-weight: 700; }
.s2-sh h2 { font-size: 1.5em; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }

/* Bìa */
.s2-cover { position: relative; overflow: hidden; background: linear-gradient(110deg, #0054a6 0%, #0a8bc9 68%, #10a7f0 100%); padding: 2em 2.2em; box-shadow: 0 18px 40px -22px rgba(0, 54, 106, .7); }
.s2-cover::after { display: block; inset: 0; right: 0; top: 0; width: auto; aspect-ratio: auto; border-radius: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 35%, #000 100%); }
.s2-cv-h1 { font-size: 2.5em; font-weight: 800; letter-spacing: -.025em; }
.s2-cv-d { opacity: .85; }
.s2-cv-r { background: rgba(0, 40, 90, .34); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: .65em 1em; }
.s2-cv-clock { font-weight: 700; letter-spacing: -.01em; }

/* Điểm tổng hợp: khối nền tối, điểm tựa của trang */
.s2-hero, .s2-hero.ok, .s2-hero.warn, .s2-hero.bad { background: #0b2742; border: 0; border-radius: 16px; padding: 1.1em 1.4em; color: #fff; }
.s2-hero-l { border-right-color: rgba(255, 255, 255, .16); }
.s2-hero-l span { color: rgba(255, 255, 255, .78); }
.s2-hero-l small { color: rgba(255, 255, 255, .62); }
.s2-hero .s2-hero-l b, .s2-hero.ok .s2-hero-l b, .s2-hero.warn .s2-hero-l b, .s2-hero.bad .s2-hero-l b { color: #fff; font-size: 3.2em; font-weight: 800; letter-spacing: -.03em; }
.s2-hero-p > div { border-left-color: rgba(255, 255, 255, .14); gap: .2em; }
.s2-hero-p span { color: rgba(255, 255, 255, .72); }
.s2-hero-p > div b { color: #fff; }
.s2-hero-p > div.ok b { color: #6fe0b9; } .s2-hero-p > div.warn b { color: #ffba00; } .s2-hero-p > div.bad b { color: #f79aa4; }

/* Ô chỉ số */
.s2-kpis { gap: .85em; }
.s2-kpi { background: var(--sky2); border: 1px solid transparent; border-radius: 14px; padding: 1em 1.1em .95em; gap: .3em; transition: background .15s, box-shadow .15s, transform .15s; }
.s2-kpi:hover { background: #fff; box-shadow: var(--bong); transform: translateY(-1px); }
.s2-kpis .s2-kpi .s2-kpi-h i { color: var(--blue); }
.s2-kpi-h { color: var(--ink2); font-weight: 600; }
.s2-kpi-v { font-size: 2.25em; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.s2-kpi-c { border-top-color: var(--line); }
.s2-kpi.hero, .s2-tile.accent { background: var(--sky); border-color: transparent; }
.s2-tile { background: var(--sky2); border-color: transparent; border-radius: 14px; }
.s2-tile-v { color: var(--navy); font-weight: 800; }
.s2-bqc { background: var(--sky2); border: 0; border-radius: 14px; }
.s2-bqc-v { color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.s2-p { font-weight: 700; }

/* Bảng */
.s2-tbl th { color: var(--mut); font-size: .8em; font-weight: 700; padding: .75em .8em; border-bottom: 2px solid var(--navy); }
.s2-tbl td { border-bottom-color: var(--line2); }
.s2-tbl td.name { font-weight: 700; color: var(--navy); }
.s2-tbl td.idx { color: var(--mut2); }
.s2-tbl tbody tr:hover td { background: var(--sky2); }
.s2-tbl tr.sum td { background: var(--sky); border-top: 2px solid var(--navy); }
.s2-c .v { font-weight: 800; color: var(--navy); }
.s2-avg { font-weight: 800; padding: .3em .85em; }
.s2-score { border-width: 0; background: var(--sky2); border-radius: 12px; }
.s2-hb-t, .s2-hb-t i { border-radius: 999px; }
.s2-st-b { border-radius: 10px; }

/* Trang tổng quan */
.s2-home { gap: 20px; }
.s2-hc-svg .bar { fill: #a6dcf7; }
.s2-hc-svg .bar.low { fill: #f6c0c5; }
.s2-hc-svg .bar.last { fill: var(--blue); } .s2-hc-svg .bar.last.low { fill: var(--badf); }
.s2-hc-svg a:hover .bar { fill: var(--navy); }
.s2-hc-svg .xa.last, .s2-hc-svg .vl.last { fill: var(--navy); }
.s2-hc-svg .kh { stroke: #f39c12; }
.s2-hc-svg .khd { stroke: #f39c12; }
.s2-rep a { background: var(--sky2); border-color: transparent; border-radius: 12px; }
.s2-rep a:hover { background: var(--sky); box-shadow: none; }
.s2-rep a b, .s2-rl a b { color: var(--navy); font-weight: 700; }

/* Trình chiếu */
body.s2-present { background: #0b2742; }
body.s2-present .s2-slide:not(.s2-cover) { box-shadow: none; border-radius: 0; }
body.s2-present .s2-slide:not(.s2-cover)::before { display: block; height: 10px; background: linear-gradient(90deg, #0054a6 0%, #0a8bc9 60%, #10a7f0 100%); }
body.s2-present .s2-sh { border-bottom: 0; padding-bottom: .1em; }
body.s2-present .s2-sh h2 { font-size: 1.75em; }
body.s2-present .s2-cover { background: linear-gradient(110deg, #0054a6 0%, #0a8bc9 68%, #10a7f0 100%); }
body.s2-present .s2-cover .s2-cv-r { margin-top: .8em; align-self: center; }
body.s2-present .s2-kpi { background: var(--sky2); padding: .7em .95em .65em; gap: .2em; }
body.s2-present .s2-kpi-h { min-height: 2em; }
body.s2-present .s2-hero { padding: .8em 1.2em; }
body.s2-present .s2-hero .s2-hero-l b { font-size: 2.7em; }

/* Lịch trực */
@media screen {
    .pst-h { background: linear-gradient(110deg, #0054a6 0%, #0a8bc9 68%, #10a7f0 100%); padding: 18px 24px; }
    .s2-slide.s2-pst { padding: 0; overflow: hidden; }
    .pst-org b, .pst-ti b { font-weight: 700; }
    .pst-t thead th.today { background: var(--navy); }
    .pst-t td.today { background: var(--sky); color: var(--navy); font-weight: 700; }
    .pst-seg button.on { background: var(--navy); color: #fff; }
    .pst-t tbody th.pl { color: var(--navy); font-weight: 700; }
    .s2-days button.on { background: var(--navy); border-color: var(--navy); }
    .s2-dm { background: var(--sky2); border: 0; border-radius: 14px; }
    .s2-dm, .s2-dm:nth-child(2), .s2-dm:nth-child(3), .s2-dm:nth-child(4) { border: 0; }
    .s2-dm .s2-nmi { color: var(--navy); font-weight: 700 !important; }
}

/* Điện thoại */
@media (max-width: 760px) {
    .s2-slide { padding: 1.2em 1.05em 1.3em; border-radius: 16px; }
    .s2-sh h2 { font-size: 1.3em; }
    .s2-cover { padding: 1.3em 1.2em; }
    .s2-cv-h1 { font-size: 1.85em; }
    .s2-cv-r { background: transparent; border: 0; padding: 0; }
    .s2-hero-l { border-right: 0; padding-right: 0; }
    .s2-hero .s2-hero-l b, .s2-hero.ok .s2-hero-l b, .s2-hero.warn .s2-hero-l b, .s2-hero.bad .s2-hero-l b { font-size: 2.7em; }
    .s2-kpi-v { font-size: 1.95em; }
}
@media print {
    .s2-hero, .s2-hero.ok, .s2-hero.warn, .s2-hero.bad { background: #fff !important; color: #000; border: 1px solid #999; }
    .s2-hero-l span, .s2-hero-l small, .s2-hero-p span, .s2-hero .s2-hero-l b, .s2-hero-p > div b { color: #000 !important; }
    .s2-slide { box-shadow: none; }
}

/* ------------------------------------------------------------------ CHUYỂN MÀU NHẸ: xanh dương → xanh ngọc
   Dùng đúng công thức của module Sinh hoạt khoa học (shkh.css bản 2.5.5, rieng.css) để hai trang đồng bộ. */
:root {
    --navy: #124d7f; --blue: #2a7f96; --sky: #e6f0fb; --sky2: #f2f7fd; --line: #d6e4f0; --line2: #e6eef5; --bg: #f3f5f8;
    --gr-bang: linear-gradient(100deg, #164f88 0%, #1b5e9e 38%, #1c6f97 68%, #1e7f86 100%);
    --gr-dam: linear-gradient(135deg, #2c6aa6 0%, #2a7f96 100%);
    --gr-dam-hv: linear-gradient(135deg, #255d93 0%, #236f84 100%);
    --gr-nhat: linear-gradient(135deg, #e6f0fb 0%, #e3f3f0 100%);
    --gr-nhat-hv: linear-gradient(135deg, #d6e6f7 0%, #d2ebe6 100%);
    --gr-vach: linear-gradient(180deg, #2c6aa6, #2a9d8f);
}
body.s2 { background: #f3f5f8 linear-gradient(180deg, #e9f1f9 0, #f3f5f8 260px) no-repeat; }

/* Dải lớn */
.s2-cover { background: var(--gr-bang); box-shadow: 0 16px 34px -22px rgba(28, 90, 130, .8); }
.s2-cover::after { display: none; }
.s2-cv-r { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); }
@media (max-width: 760px) { .s2-cv-r { background: transparent; } }

/* Nút */
.s2-nav a.on, .s2-play, .s2-btn:not(.ghost) { background: var(--gr-dam); color: #fff !important; box-shadow: 0 2px 6px -3px rgba(28, 90, 130, .55); }
.s2-play:hover, .s2-btn:not(.ghost):hover { background: var(--gr-dam-hv); }
.s2-nav a:hover:not(.on) { background: var(--gr-nhat); }
.s2-nav a.on i { color: #fff; opacity: 1; }
.s2-vsw button.on { background: var(--gr-dam); color: #fff; box-shadow: none; }

/* Tiêu đề mục: vạch chuyển màu */
.s2-sh { align-items: center; }
.s2-sh h2 { display: inline-flex; align-items: center; gap: .5em; }
.s2-sh h2::before { content: ""; flex: none; width: 4px; height: 1.05em; border-radius: 4px; background: var(--gr-vach); }

/* Khối điểm tổng hợp: nền chuyển màu nhạt, con số mang màu đạt / chưa đạt */
.s2-hero, .s2-hero.ok, .s2-hero.warn, .s2-hero.bad { background: var(--gr-nhat); border: 1px solid var(--line); color: var(--ink); }
.s2-hero-l { border-right-color: rgba(18, 77, 127, .16); }
.s2-hero-l span { color: var(--ink2); }
.s2-hero-l small { color: var(--mut); }
.s2-hero .s2-hero-l b, .s2-hero.ok .s2-hero-l b, .s2-hero.warn .s2-hero-l b, .s2-hero.bad .s2-hero-l b { color: var(--navy); }
.s2-hero-p > div { border-left-color: rgba(18, 77, 127, .14); }
.s2-hero-p span { color: var(--ink2); }
.s2-hero-p > div b { color: var(--navy); }
.s2-hero-p > div.ok b { color: var(--ok); } .s2-hero-p > div.warn b { color: var(--warn); } .s2-hero-p > div.bad b { color: var(--bad); }

/* Thẻ và ô */
.s2-kpi { background: #fff; border-color: var(--line2); }
.s2-kpi:hover { background: var(--gr-nhat); box-shadow: none; transform: none; border-color: var(--line); }
.s2-kpi.hero, .s2-tile.accent { background: var(--gr-nhat); border-color: var(--line); }
.s2-tile, .s2-bqc { background: #fff; border: 1px solid var(--line2); }
.s2-rep a { background: #fff; border-color: var(--line2); }
.s2-rep a:hover { background: var(--gr-nhat); }
.s2-score { background: var(--gr-nhat); }
.s2-kpis .s2-kpi .s2-kpi-h i { color: var(--blue); }

/* Bảng */
.s2-tbl th { border-bottom: 2px solid; border-image: linear-gradient(90deg, #2c6aa6, #2a9d8f) 1; }
.s2-tbl tbody tr:hover td { background: #eef5f9; }
.s2-tbl tr.sum td { background: #e8f2f6; border-top: 2px solid; border-image: linear-gradient(90deg, #2c6aa6, #2a9d8f) 1; }

/* Biểu đồ */
.s2-hc-svg .bar { fill: #bcd8e6; }
.s2-hc-svg .bar.last { fill: #2c6aa6; } .s2-hc-svg .bar.last.low { fill: #d9534f; }
.s2-hc-svg a:hover .bar { fill: #236f84; }

/* Trình chiếu */
body.s2-present { background: #0f2f4d; }
body.s2-present .s2-cover { background: var(--gr-bang); }
body.s2-present .s2-slide:not(.s2-cover)::before { background: linear-gradient(90deg, #2c6aa6, #2a9d8f); }
body.s2-present .s2-kpi { background: #fff; }

/* Lịch trực */
@media screen {
    .pst-h { background: var(--gr-bang); }
    .pst-seg button.on { background: var(--gr-dam); color: #fff; }
    .pst-t thead th.today { background: var(--gr-dam); }
    .pst-t td.today { background: #e8f2f6; }
    .pst-t tbody tr:hover td.today { background-color: #dcebf1; }
    .pst-b:hover, .pst-seg button:hover:not(.on) { background: var(--gr-nhat); }
    .s2-days button.on { background: var(--gr-dam); border-color: transparent; }
    .s2-days button.today:not(.on) { border-color: #2a7f96; }
    .s2-dm, .s2-dm:nth-child(2), .s2-dm:nth-child(3), .s2-dm:nth-child(4) { background: var(--gr-nhat); border: 0; }
    .s2-plan tr.today td { background: #e8f2f6; }
}
@media print {
    body.s2 { background: #fff; }
    .s2-hero, .s2-hero.ok, .s2-hero.warn, .s2-hero.bad { background: #fff !important; }
    .s2-sh h2::before { display: none; }
}

@media (max-width: 760px) {
    body.s2:not(.s2-present) { padding-bottom: calc(46px + env(safe-area-inset-bottom)); } /* chân trang sát thanh điều hướng dưới */
}

/* Đợt 30: điện thoại, ô chọn chữ 16px để iPhone không tự phóng to khi bấm */
@media (max-width: 899px) {
    .s2-period select, .s2-rp-c select, .pst-sel select { font-size: 16px; }
    select.s2-hc-sel { font-size: 16px; }
}

/* Rà soát 12/11/2026 (điện thoại): thanh dưới gọn trong khung, mục đang chọn nền nhạt; 8 ngày chia hai hàng đều; nút không gãy chữ */
@media (max-width: 760px) {
    .s2-nav { gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
    .s2-nav a, .s2-nav a:last-child { min-height: 48px; border-radius: 12px; background: none !important; box-shadow: none !important; color: var(--mut) !important; font-size: 11.5px !important; }
    .s2-nav a span, .s2-nav a:last-child span { font-size: 11.5px !important; }
    .s2-nav a i { color: inherit; font-size: 19px; opacity: .75; }
    .s2-nav a.on { background: #e8f1fa !important; color: var(--navy) !important; }
    .s2-nav a.on i { color: var(--blue) !important; opacity: 1; }
    body.s2 { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    #sl-homnay .s2-days:has(> :nth-child(8)):not(:has(> :nth-child(9))), .s2-days:has(> :nth-child(8)):not(:has(> :nth-child(9))) { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px; overflow: visible; }
    .s2-days:has(> :nth-child(8)):not(:has(> :nth-child(9))) button { width: auto; min-height: 44px; }
    .pst-seg button { padding: 0 6px; white-space: nowrap; }
    .pst-bar > .pst-b { grid-column: 1 / -1; justify-content: center; height: 40px; }
}
/* Đợt 63: vùng chạm tối thiểu 44px trên màn hình cảm ứng; nút biểu tượng giữ cỡ nhìn, nới vùng bấm bằng ::after */
@media (pointer: coarse) {
    .s2-btn.sm { height: 44px; }
    .s2-ib, .s2-play, .s2-pctl button { position: relative; }
    .s2-ib::after, .s2-play::after, .s2-pctl button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
    .s2-pctl button { width: 40px; height: 40px; }
}
/* Đợt 87: chữ dán từ Word cùng một cỡ, một phông; chữ dài không có khoảng trắng tự xuống dòng thay vì tràn khung */
.s2-rich *:not(h1):not(h2):not(h3):not(h4) { font-size: inherit !important; line-height: inherit !important; }
.s2-rich h1, .s2-rich h2, .s2-rich h3, .s2-rich h4 { font-size: 1.12em !important; line-height: 1.35 !important; margin: .4em 0 .3em; }
.s2-rich, .s2-tbl td.nd, .s2-tbl td.sm, .s2-tbl td.txt, .s2-tbl td.wrap, .s2-ai-list { overflow-wrap: anywhere; }
.s2-rich table { width: 100% !important; table-layout: fixed; }
.s2-rich td, .s2-rich th { width: auto !important; overflow-wrap: anywhere; }
.s2-rich p { margin-left: 0 !important; }
/* Trang quá dày: cho tên khoa và tiêu đề cột xuống dòng để bảng vừa khung chiếu */
body.s2-present .s2-slide.s2-chat .s2-tbl td.name, body.s2-present .s2-slide.s2-chat .s2-tbl th { white-space: normal; }
/* Đợt 87b: bảng Kế hoạch khi chiếu: cột Ngày, Giờ rộng theo cỡ chữ (trước tính theo % nên chữ to thì đè lên nhau), các cột còn lại chia phần còn lại */
body.s2-present .s2-plan th.c-day { width: 8em; }
body.s2-present .s2-plan th.c-gio { width: 6.4em; }
body.s2-present .s2-plan th.c-nd { width: 42%; }
body.s2-present .s2-plan th.c-nd2 { width: 55%; }
body.s2-present .s2-plan th.c-dd, body.s2-present .s2-plan th.c-tp, body.s2-present .s2-plan th.c-tp2 { width: auto; }
body.s2-present .s2-plan td.day { white-space: nowrap; overflow-wrap: normal; }
body.s2-present .s2-plan td.gio { white-space: normal; overflow-wrap: normal; word-break: keep-all; }
/* Đợt 88b: chữ tiêu đề slide bìa có ánh gương lướt qua (chỉ trên chữ, lặp chậm 14 giây); tắt khi máy đặt giảm chuyển động và khi in */
.s2-cover .s2-cv-h1 { color: #fff; background-image: linear-gradient(105deg, #e4eefa 0%, #e4eefa 43%, #fff 46.5%, #ffe7a3 50%, #fff 53.5%, #e4eefa 57%, #e4eefa 100%); filter: drop-shadow(0 2px 8px rgba(0, 20, 50, .18)); background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: s2guong 14s ease-in-out 1s infinite; }
@keyframes s2guong { 0% { background-position: 100% 0; } 25%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .s2-cover .s2-cv-h1 { animation: none; -webkit-text-fill-color: #fff; background: none; } }
@media print { .s2-cover .s2-cv-h1 { animation: none; -webkit-text-fill-color: currentColor; background: none; } }