/* Hallmark · shape: kept (landing) · genre: editorial · theme: brand · redesign: restyle · system: /chung.css (tokens, faces, focus ring, motion, stamp) */
/* Trang giới thiệu. Ý tưởng: thẻ chấm công và con dấu đỏ. Nền giấy ngà, màu thương hiệu đổi theo tên đơn vị (var(--brand)), đỏ cho con dấu và dòng ghi tay.
   Tiêu đề Noto Serif Display (var(--fd) ở chung.css), ghi tay Sriracha, chữ thường, nút và giờ trong điện thoại mẫu Be Vietnam Pro. */
@font-face { font-family: 'Sriracha'; font-weight: 400; font-display: swap; src: url(/fonts/sriracha-vietnamese-400-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Sriracha'; font-weight: 400; font-display: swap; src: url(/fonts/sriracha-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --d: var(--fd);
  --tay: 'Sriracha', var(--f);
  --chu: #34413c;     /* chữ đoạn văn: đậm hơn --muted cho dễ đọc */
  --dinh: 60px;       /* chiều cao thanh mục lục dính */
}
html { scroll-behavior: smooth; }
body { background: var(--paper); }
.vung { max-width: 1160px; margin-inline: auto; padding-inline: 18px; }
.doan { padding-block: clamp(56px, 7.5vw, 104px); }
.nen-trang { background: var(--white); }
main section[id] { scroll-margin-top: var(--dinh); }

main h1, main h2 { font-family: var(--d); font-weight: 600; letter-spacing: -.012em; }
main h2 { font-size: clamp(32px, 3.7vw, 48px); line-height: 1.18; margin-bottom: 16px; text-wrap: balance; }
.tay { display: inline-block; margin: 0 0 8px; font: 400 25px/1.25 var(--tay); color: var(--stamp); transform: rotate(-1.6deg); transform-origin: left bottom; }
.h-dan { font-size: 18.5px; line-height: 1.6; color: var(--chu); max-width: 34em; margin: 0 0 8px; }
.h-dan b { color: var(--ink); }
.h-hai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 84px); align-items: start; }
.h-dinh { position: sticky; top: calc(var(--dinh) + 24px); }

/* nút */
.h-nut-chinh, .h-nut-phu { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 12px 26px; border-radius: 14px; font: 600 18px/1.35 var(--f); text-decoration: none; text-wrap: balance; transition: transform .12s, background .15s; }
.h-nut-chinh { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 32%, transparent); }
.h-nut-chinh:hover { background: var(--brand-deep); transform: translateY(-1px); }
.h-nut-chinh:active { transform: scale(.98); }
.h-nut-phu { color: var(--white); border: 1.5px solid color-mix(in srgb, var(--white) 55%, transparent); }
.h-nut-phu:hover { border-color: var(--white); }
.h-nut-chinh:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.h-nut-phu:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---------- đầu trang ---------- */
.h-dau { position: absolute; inset: 0 0 auto; z-index: 6; }
.h-dau .vung { padding-block: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.h-hieu { display: flex; align-items: center; gap: 10px; font: 600 20px var(--d); color: var(--ink); text-decoration: none; }
.h-hieu .logo { width: 36px; height: 36px; border-radius: 10px; }
.h-dau nav { display: flex; align-items: center; gap: 18px; }
.h-dau nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.h-dau nav a:hover { color: var(--ink); }
.h-dau nav .h-vao { padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }

/* ---------- hero ---------- */
.h-hero { position: relative; overflow: clip; padding: clamp(88px, 11vh, 120px) 0 clamp(48px, 7vh, 84px); }
.h-hero-luoi { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: center; }
.h-hero h1 { font-size: clamp(42px, 4.3vw, 60px); line-height: 1.1; margin-bottom: 20px; }
.h-hero h1 .h1-mau { color: var(--brand); display: block; transition: color .3s; }
.h-mo { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--chu); max-width: 32em; margin: 0 0 26px; }
.h-mo b { color: var(--ink); }
.h-nhan { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.h-go { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.h-go .o { flex: 1 1 250px; min-width: 0; min-height: 58px; border-radius: 14px; font-size: 17px; }
.h-go .h-nut-chinh { flex: 0 1 auto; }
.h-phu { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.h-phu a { font-weight: 600; }

/* bàn: thẻ giấy nằm dưới, điện thoại đè lên, con dấu to đóng lên thẻ */
.h-ban { position: relative; justify-self: end; width: 400px; max-width: 100%; height: 540px; }
.h-the { position: absolute; top: 24px; right: -18px; width: 72%; padding: 18px 16px 34px 34px; background-color: var(--white); color: var(--ink); border-radius: 8px; transform: rotate(5deg); box-shadow: 0 24px 50px color-mix(in srgb, var(--shade) 16%, transparent), 0 0 0 1px var(--line); font: 500 14px var(--f); font-variant-numeric: tabular-nums; background-image: radial-gradient(circle at 15px 34px, var(--paper) 0 5px, transparent 5.5px), radial-gradient(circle at 15px 120px, var(--paper) 0 5px, transparent 5.5px), radial-gradient(circle at 15px 206px, var(--paper) 0 5px, transparent 5.5px), radial-gradient(circle at 15px 292px, var(--paper) 0 5px, transparent 5.5px); }
.h-the-dau { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.h-the-dau b { display: block; font: 600 21px/1.2 var(--d); }
.h-the-dau span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-the-hang { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 41px; text-align: right; }
.h-the-hang span:first-child { text-align: left; color: var(--muted); }
.dau-hang { font-size: 12px; color: var(--muted); padding: 6px 0; min-height: 0; }
.h-may { position: absolute; left: -24px; top: 56px; width: 290px; background: var(--ink); border-radius: 40px; padding: 10px; box-shadow: 0 34px 70px color-mix(in srgb, var(--shade) 26%, transparent), 0 2px 0 color-mix(in srgb, var(--white) 8%, transparent) inset; z-index: 2; }
.h-may::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 6px; margin-left: -35px; border-radius: 6px; background: color-mix(in srgb, var(--white) 28%, transparent); z-index: 2; }
.h-man { background: var(--white); color: var(--ink); border-radius: 31px; overflow: hidden; }
.h-man-dau { background: var(--brand); color: var(--brand-ink); padding: 34px 16px 44px; display: flex; align-items: center; gap: 11px; transition: background .3s; }
.h-man-dau .logo { flex: none; width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--white) 45%, transparent); }
.h-man-ten { min-width: 0; }
.h-man-ten b { display: block; font-size: 15.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-man-ten span { font-size: 12.5px; opacity: .85; }
.h-man-dau time { margin-left: auto; font: 700 18px var(--f); font-variant-numeric: tabular-nums; }
.h-man-than { margin: -30px 12px 14px; background: var(--white); border-radius: 20px; padding: 12px; box-shadow: 0 8px 24px color-mix(in srgb, var(--shade) 14%, transparent); position: relative; }
.h-gan { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ok); text-align: center; }
.h-gan::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.h-so { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 8px 8px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 3%, var(--white)); border: 1.5px dashed color-mix(in srgb, var(--brand) 25%, var(--white)); }
.h-o { display: grid; justify-items: center; gap: 2px; }
.h-o .dau { width: min(100%, 104px); }
.h-o small { font-size: 12px; font-weight: 600; color: var(--muted); }
.h-bam { width: 100%; margin-top: 12px; min-height: 72px; border: 0; border-radius: 16px; background: var(--brand); color: var(--brand-ink); font: 800 24px/1.1 var(--f); letter-spacing: .02em; cursor: pointer; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform .12s, background .3s; }
.h-bam:active { transform: scale(.975); }
.h-bam:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.h-bam small { display: block; font: 500 12.5px var(--f); letter-spacing: 0; opacity: .9; margin-top: 3px; }
.h-bam.ra { background: var(--ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--black) 25%, transparent); }
.h-bam.lai { background: var(--white); color: var(--brand-deep); border: 1.5px solid var(--brand-line); box-shadow: none; }
.dau-to { position: absolute; right: -14px; bottom: 112px; width: 168px; z-index: 3; color: var(--stamp); pointer-events: none; mix-blend-mode: multiply; }

/* ---------- mục lục ---------- */
.h-muc { position: sticky; top: 0; z-index: 30; background: var(--white); border-block: 1px solid var(--line); }
.h-muc .vung { height: var(--dinh); display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.h-muc .vung::-webkit-scrollbar { display: none; }
.h-muc a { flex: none; padding: 7px 13px; border-radius: 9px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.h-muc a:hover { background: var(--brand-soft); color: var(--brand-deep); }

/* ---------- một tháng tua nhanh ---------- */
.thang-dung { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: 56px; }
.thang.chay { height: 260vh; }
.thang.chay .thang-dung { position: sticky; top: var(--dinh); height: calc(100vh - var(--dinh)); height: calc(100svh - var(--dinh)); padding-block: 16px; }
.thang-ke { font-size: 19.5px; line-height: 1.5; min-height: 4.5em; margin: 0 0 18px; color: var(--chu); }
.thang-so { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0 26px; margin: 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.thang-so dt { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.thang-so dd { margin: 0; font: 600 clamp(30px, 3.2vw, 42px)/1.25 var(--d); font-variant-numeric: tabular-nums; }
.thang-so .tien dd { color: var(--brand-deep); white-space: nowrap; }
.thang-lich { position: relative; }
.lich { background: var(--white); border-radius: 16px; padding: 18px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.lich-dau { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.lich-dau b { font: 600 26px/1.15 var(--d); }
.lich-dau span { font-size: 14px; font-weight: 500; color: var(--muted); }
.lich-thu, .lich-luoi { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lich-thu { padding: 8px 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.lich-luoi { gap: 4px; }
.ng { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 7px; background: var(--white); overflow: hidden; }
.ng.trong { border: 0; background: none; }
.ng.nghi { background: var(--paper); }
.ng > b { position: absolute; top: 3px; left: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ng > i { position: absolute; inset: 15% 8% 5%; display: grid; place-items: center; border: 2px solid var(--stamp); border-radius: 50%; color: var(--stamp); font: 600 clamp(9px, 1vw, 13px) var(--f); font-style: normal; font-variant-numeric: tabular-nums; transform: rotate(var(--r, -7deg)) scale(1); opacity: .92; transition: transform .16s cubic-bezier(.2, .8, .3, 1.2), opacity .1s; }
/* đang chạy cảnh cuộn (trang-chu.js thêm .chay): ngày chưa tới thì giấu dấu, cuộn tới đâu đóng dấu tới đó */
.thang.chay .ng:not(.co) > i { transform: rotate(var(--r, -7deg)) scale(1.7); opacity: 0; }
.ng > u { position: absolute; right: 2px; top: 2px; padding: 0 4px; border-radius: 4px; background: var(--brand); color: var(--brand-ink); font: 600 10.5px/1.5 var(--f); text-decoration: none; }
.thang.chay .ng:not(.co) > u { opacity: 0; }
.thang-phieu { z-index: 5; position: static; margin-top: 16px; padding: 20px; background: var(--white); border-radius: 16px; box-shadow: 0 30px 70px color-mix(in srgb, var(--shade) 30%, transparent), 0 0 0 1px var(--line); }
.thang.chay .thang-phieu { position: absolute; inset: auto 8% 6%; margin-top: 0; transform: translateY(40px) rotate(-1.5deg); opacity: 0; visibility: hidden; transition: transform .32s cubic-bezier(.2, .8, .3, 1.1), opacity .2s, visibility .2s; }
.thang.chay .thang-phieu.hien { transform: rotate(-1.5deg); opacity: 1; visibility: visible; }

/* phiếu lương dùng chung */
.phieu { background: var(--white); border-radius: 16px; padding: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.phieu-ten { margin: 0 0 8px; padding-bottom: 10px; font: 600 22px/1.32 var(--d); border-bottom: 2px solid var(--ink); }
.phieu-dong { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 16.5px; }
.phieu-dong b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phieu-dong small { display: block; font-size: 14px; color: var(--muted); }
.phieu-tong { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 14px; font: 600 21px/1.2 var(--d); }
.phieu-tong b { font: 600 clamp(26px, 2.8vw, 34px)/1.2 var(--d); color: var(--brand-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.phieu-chu { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* một ngày */
.the-gio { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.the-gio li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.the-gio time { font: 600 22px/1.3 var(--f); color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.the-gio b { display: block; font-size: 18.5px; margin-bottom: 3px; }
.the-gio span { color: var(--chu); font-size: 16.5px; }

/* danh sách có dấu tích */
.h-ds { list-style: none; margin: 22px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.h-ds li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); color: var(--chu); font-size: 17px; }
.h-ds li::before { content: "✓"; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800; }
.h-ds b { color: var(--ink); }

/* tính lương */
.h-luong, .h-so-tay, .h-gia { background: var(--white); }
.phieu-thu { position: sticky; top: calc(var(--dinh) + 24px); }
.phieu-tab { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--paper); }
.phieu-tab button { flex: 1; min-height: 48px; border: 0; border-radius: 9px; background: none; font: 600 16px var(--f); color: var(--muted); cursor: pointer; }
.phieu-tab button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.h-luong .phieu { box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 10%, transparent), 0 0 0 1px var(--line); }

/* bảo hiểm */
.h-bh .phieu { transform: rotate(-1.6deg); }
.phieu-mo { padding-top: 8px; }

/* bán kính */
.ban-kinh { padding: 22px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.ban-kinh svg { display: block; width: min(100%, 340px); margin: 0 auto 8px; }
.bk-nen circle, .bk-nen path { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.bk-vung { fill: color-mix(in srgb, var(--brand) 18%, transparent); stroke: var(--brand); stroke-width: 2.5; transition: r .15s; }
.bk-tam rect { fill: var(--brand); }
.bk-tam path { fill: var(--white); }
.bk-p circle { fill: var(--white); stroke: var(--faint); stroke-width: 2; transition: fill .15s, stroke .15s; }
.bk-p path { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.bk-p.vao circle { fill: var(--ok); stroke: var(--ok); }
.bk-p.vao path { opacity: 1; }
.ban-kinh label { display: block; font-size: 16.5px; font-weight: 600; }
.ban-kinh label b { font: 600 24px var(--d); color: var(--brand-deep); }
.ban-kinh input[type=range] { width: 100%; height: 30px; accent-color: var(--brand); cursor: pointer; }
.bk-ket { margin: 4px 0 0; color: var(--chu); font-size: 16px; }

/* việc nhỏ */
.so-ke { border-top: 2px solid var(--ink); }
.so-ke div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.so-ke b { display: block; font: 600 22px/1.3 var(--d); margin-bottom: 3px; }
.so-ke span { color: var(--chu); font-size: 17px; }

/* so sánh: máy chấm công và Excel nằm chung một khung, cột app là thẻ xanh nổi lên */
.h-so-sanh h2 { max-width: 21em; }
.ss { position: relative; isolation: isolate; margin-block: 40px 20px; }
.ss::before { content: ""; position: absolute; z-index: -2; top: -18px; bottom: -18px; right: 0; width: 40%; border-radius: 20px; background: var(--brand); box-shadow: 0 26px 54px color-mix(in srgb, var(--brand) 38%, transparent); transition: background .3s; }
.ss::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 16%; width: 44%; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1.5px var(--faint); }
.ss table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.ss th, .ss td { padding: 16px 18px; text-align: left; vertical-align: middle; }
.ss th { font: 600 19px/1.25 var(--d); color: var(--ink); }
.ss th:first-child, .ss td:first-child { width: 16%; padding-left: 0; }
.ss td:first-child { font: 600 20px/1.25 var(--d); }
.ss th:nth-child(2), .ss th:nth-child(3), .ss td:nth-child(2), .ss td:nth-child(3) { width: 22%; }
.ss td:nth-child(2), .ss td:nth-child(3) { color: var(--chu); border-top: 1px solid var(--line); }
.ss .ccn { width: 40%; padding-left: 24px; padding-right: 22px; color: var(--brand-ink); background-color: var(--brand); }   /* nền thật dưới chữ: chế độ in, tương phản cao vẫn đọc được */
.ss td.ccn { position: relative; font-size: 17px; font-weight: 600; line-height: 1.42; background: linear-gradient(color-mix(in srgb, var(--white) 22%, transparent), color-mix(in srgb, var(--white) 22%, transparent)) 16px 0 / calc(100% - 32px) 1px no-repeat; }
.ss th.ccn { font: 600 25px/1.2 var(--d); color: var(--brand-ink); }
.ss td.ccn::before { content: "✓"; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; margin-left: -22px; display: none; }

/* màn hình thật */
.h-man-hinh { padding-bottom: clamp(40px, 6vw, 70px); }
.h-anh-ds { display: flex; gap: 22px; overflow-x: auto; padding: 20px max(18px, calc((100vw - 1124px) / 2)) 22px; scroll-snap-type: x proximity; scroll-padding-left: max(18px, calc((100vw - 1124px) / 2)); scrollbar-width: thin; }
.h-anh-ds figure { flex: none; width: 236px; margin: 0; scroll-snap-align: start; }
.h-anh-ds img { width: 100%; height: auto; display: block; border-radius: 28px; border: 6px solid var(--ink); box-shadow: var(--shadow); }
.h-anh-ds figcaption { margin-top: 12px; text-align: center; font-size: 15px; color: var(--chu); }
.h-anh-ds:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* thử */
.h-thu-ds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 26px; }
.h-thu-ds a { position: relative; display: block; padding: 20px 46px 20px 20px; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.h-thu-ds a:hover { border-color: var(--brand); transform: translateY(-2px); }
.h-thu-ds b { display: block; font: 600 22px/1.25 var(--d); margin-bottom: 5px; }
.h-thu-ds span { color: var(--chu); font-size: 16px; }
.h-tin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.h-tin p { margin: 0; color: var(--chu); font-size: 16px; }
.h-tin b { color: var(--ink); }

/* giá */
.h-gia-luoi { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; margin-top: 24px; align-items: start; }
.h-tinh { display: grid; gap: 10px; padding: 22px; background: var(--paper); border-radius: 16px; }
.h-tinh label { font: 600 22px/1.3 var(--d); }
.h-tinh .o { max-width: 160px; font-size: 22px; font-weight: 700; }
.tk { background: var(--white); border-radius: 12px; padding: 14px 16px; }
.tk-bac { font: 600 21px var(--d); color: var(--brand-deep); margin-bottom: 6px; }
.tk-hang { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--brand-line); font-size: 15.5px; }
.tk-hang b small { font-weight: 500; color: var(--muted); }
.tk-hang.tong { border-bottom: 0; font-size: 17.5px; }
.tk-so, .tk-lon { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.tk-lon { font-size: 15.5px; color: var(--ink); padding: 12px; background: var(--white); border-radius: 12px; }
.khung { overflow-x: auto; background: var(--white); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.h-bg { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.h-bg th, .h-bg td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.h-bg tbody tr:last-child td { border-bottom: 0; }
.h-bg tr.chon td { background: var(--brand-soft); }
.h-bg th { font-size: 13.5px; color: var(--muted); }

/* hỏi đáp */
.h-hoi details { border-bottom: 1px solid var(--line); }
.h-hoi details:first-child { border-top: 2px solid var(--ink); }
.h-hoi summary { cursor: pointer; padding: 16px 0; font: 600 21px/1.3 var(--d); }
.h-hoi details p { margin: 0 0 18px; color: var(--chu); font-size: 17px; }

/* cuối trang */
.h-cuoi { position: relative; overflow: clip; text-align: center; color: var(--brand-ink); background: var(--brand); padding-block: clamp(60px, 8vw, 104px); transition: background .3s; }
.h-cuoi h2 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.16; max-width: 13em; margin-inline: auto; }
.h-cuoi p { font-size: 19px; opacity: .92; margin: 0 0 26px; }
.h-cuoi-dau { position: absolute; right: max(-30px, calc(50% - 640px)); top: -26px; width: clamp(150px, 20vw, 250px); color: var(--white); opacity: .3; pointer-events: none; }
.h-cuoi .h-nut-chinh { background: var(--white); color: var(--brand-deep); box-shadow: 0 10px 24px color-mix(in srgb, var(--black) 18%, transparent); }
.h-cuoi .h-nut-chinh:hover { background: var(--brand-soft); }
.h-nut { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.h-chan { text-align: center; color: var(--faint); font-size: 13.5px; line-height: 1.7; padding: 26px 18px 90px; }
.chan-lk { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 8px; }
.chan-lk span { color: var(--muted); font-weight: 600; }
.h-chan a { color: var(--faint); }

/* thanh mời nổi trên điện thoại */
.h-noi { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: none; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--ink); color: var(--white); box-shadow: 0 10px 30px color-mix(in srgb, var(--black) 30%, transparent); }
.h-noi span { flex: 1; font: 600 16px var(--f); }
.h-noi .btn { color: var(--ink); }
.h-noi .btn.chinh { color: var(--brand-ink); }

@media (max-width: 960px) {
  .h-hero-luoi, .h-hai, .thang-dung, .h-gia-luoi { grid-template-columns: minmax(0, 1fr); }
  .h-dinh, .phieu-thu { position: static; }
  .h-thu-ds, .h-tin { grid-template-columns: minmax(0, 1fr); }
  .h-tin { gap: 14px; }
  .h-ban { width: min(100%, 420px); justify-self: center; }
  .h-hero h1 { font-size: clamp(42px, 8.6vw, 72px); }
  .h-may { left: 0; }
  .h-the { right: 0; }
  .dau-to { right: 2px; }
  .phieu-mo { order: 2; }
  /* bảng so sánh thành từng thẻ: app lên đầu, nổi; hai cái còn lại chung một khung */
  .ss { margin-block: 18px 0; }
  .ss::before, .ss::after { display: none; }
  .ss table, .ss tbody, .ss tr, .ss td { display: block; width: auto !important; }
  .ss thead { display: none; }
  .ss tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 26px; }
  .ss td { padding: 12px 14px; font-size: 15.5px; }
  .ss td:first-child { grid-column: 1 / -1; order: 1; padding: 0 0 8px; font-size: 23px; }
  .ss td.ccn { grid-column: 1 / -1; order: 2; z-index: 1; padding: 14px 16px; border-radius: 14px; background: var(--brand); box-shadow: 0 14px 28px color-mix(in srgb, var(--brand) 34%, transparent); }
  .ss td.ccn::before { content: "Chấm Công Nhanh"; position: static; display: block; width: auto; height: auto; margin: 0 0 3px; font: 600 14px var(--f); opacity: .85; }
  .ss td:nth-child(2), .ss td:nth-child(3) { background: var(--white); border: 1.5px solid var(--faint); margin-top: -8px; padding-top: 20px; }
  .ss td:nth-child(2) { order: 3; border-right-width: .75px; border-radius: 0 0 0 12px; }
  .ss td:nth-child(3) { order: 4; border-left-width: .75px; border-radius: 0 0 12px 0; }
  .ss td[data-l]::before { content: attr(data-l); display: block; font: 600 14px var(--f); margin-bottom: 2px; color: var(--ink); }
  .thang.chay .thang-dung { align-content: center; gap: 12px; }
  .thang-chu h2 { font-size: clamp(26px, 7.2vw, 42px); margin-bottom: 6px; }
  .thang-ke { font-size: 16.5px; min-height: 4.6em; margin-bottom: 8px; }
  .thang-so { padding-top: 8px; gap: 0 18px; }
  .thang-so dd { font-size: 26px; }
  .lich { padding: 12px; max-width: min(100%, 56vh); margin-inline: auto; }
  .lich-dau b { font-size: 23px; }
  .thang-phieu { padding: 16px; }
  .thang.chay .thang-phieu { inset: auto 4% 3%; }
}
@media (max-width: 700px) {
  .h-noi:not([hidden]) { display: flex; }
  :root { --dinh: 52px; }
  .h-muc { position: static; }
  main section[id] { scroll-margin-top: 0; }
  .thang.chay .thang-dung { top: 0; height: 100vh; height: 100svh; padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .h-dau nav a:not(.h-vao) { display: none; }
  .h-go .h-nut-chinh, .h-nut a { width: 100%; }
  .h-ban { height: 520px; }
  .h-may { width: 272px; top: 30px; }
  .h-the { top: 0; right: -14px; width: 76%; }
  .dau-to { width: 136px; right: -4px; bottom: 112px; }
  .tay { font-size: 22px; }
  .the-gio li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .h-bg { font-size: 12.5px; } .h-bg th, .h-bg td { padding: 10px 8px; } .h-tinh .o { max-width: 100%; }
  .h-anh-ds figure { width: 62vw; }
  .ng > b { top: 1px; left: 3px; font-size: 9px; }
  .ng > i { inset: 20% 5% 2%; border-width: 1.5px; }
  .ng.co > b { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h-man-dau, .h-hero h1 .h1-mau, .h-cuoi, .ss::before, .h-bam, .h-thu-ds a, .ng > i, .thang-phieu, .bk-vung, .bk-p circle, .h-nut-chinh { transition: none; }
  .h-thu-ds a:hover, .h-nut-chinh:hover { transform: none; }
}

/* ---------- chứng từ (sắp có): khối xanh, hai tờ giấy và con dấu đỏ ---------- */
.ctu { background: var(--brand); color: var(--brand-ink); transition: background .3s; overflow: clip; }
.ctu-luoi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ctu h2 { color: inherit; }
.ctu-tay { color: var(--white); opacity: .92; }
.ctu-dan { font-size: 18.5px; line-height: 1.6; margin: 0 0 22px; opacity: .94; max-width: 32em; }
.ctu-form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; padding: 16px; background: var(--white); border-radius: 16px; color: var(--ink); box-shadow: 0 18px 40px color-mix(in srgb, var(--black) 16%, transparent); }
.ctu-form label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.ctu-form .o { min-height: 52px; font-size: 17px; }
.ctu-ban { position: relative; height: 470px; }
.ctu-to { position: absolute; background: var(--white); color: var(--ink); border-radius: 6px; padding: 20px 22px; box-shadow: 0 24px 50px color-mix(in srgb, var(--black) 22%, transparent); }
.ctu-to.sau { top: 0; right: 0; width: 76%; min-height: 240px; transform: rotate(2.4deg); }
.ctu-to.truoc { left: 0; bottom: 0; width: 84%; transform: rotate(-1.4deg); }
.ctu-dv { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctu-to h3 { margin: 2px 0 6px; font: 600 25px/1.25 var(--d); letter-spacing: -.01em; }
.ctu-so { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctu-to dl { margin: 0; border-top: 2px solid var(--ink); }
.ctu-to dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.ctu-to dt { color: var(--muted); font-size: 14px; }
.ctu-to dd { margin: 0; font-weight: 500; }
.ctu-to dd.dam { font: 600 21px/1.2 var(--d); color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.ctu-dau { position: absolute; right: 2%; bottom: 4px; width: 128px; color: var(--stamp); pointer-events: none; }
.ctu-buoc { list-style: none; counter-reset: b; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ctu-buoc li { counter-increment: b; position: relative; padding-top: 44px; font-size: 16px; }
.ctu-buoc li::before { content: counter(b); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--brand-deep); font: 600 17px var(--d); }
.ctu-buoc li:not(:last-child)::after { content: ""; position: absolute; left: 42px; right: -8px; top: 16px; height: 1.5px; background: color-mix(in srgb, var(--white) 40%, transparent); }
.ctu-buoc b { display: block; font: 600 21px/1.25 var(--d); margin-bottom: 3px; }
.ctu-buoc span { opacity: .92; }
.ctu-them { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.ctu-them p { margin: 0; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--white) 12%, transparent); font-size: 16px; line-height: 1.5; }
.ctu-them b { display: block; font: 600 20px/1.3 var(--d); margin-bottom: 2px; }
.ctu-goi { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.ctu-goi span { font-size: 15px; opacity: .88; }
.ctu .h-nut-chinh { background: var(--white); color: var(--brand-deep); box-shadow: 0 10px 24px color-mix(in srgb, var(--black) 18%, transparent); }
.ctu .h-nut-chinh:hover { background: var(--brand-soft); }
.ctu .h-nut-chinh:focus-visible { outline: 3px solid var(--white); }
@media (max-width: 960px) {
  .ctu-luoi { grid-template-columns: minmax(0, 1fr); }
  .ctu-buoc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctu-buoc li:nth-child(2)::after { display: none; }
  .ctu-them { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ctu-form { grid-template-columns: minmax(0, 1fr); }
  .ctu-ban { height: auto; display: grid; gap: 14px; padding-bottom: 8px; }
  .ctu-to { position: relative; width: auto !important; min-height: 0 !important; inset: auto; padding: 16px; }
  .ctu-to.sau { order: 2; transform: rotate(.8deg); }
  .ctu-to.truoc { order: 1; transform: rotate(-.8deg); }
  .ctu-dau { z-index: 3; width: 84px; right: 6px; bottom: auto; top: 186px; mix-blend-mode: multiply; }
  .ctu-buoc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ctu-buoc li { padding: 0 0 0 44px; }
  .ctu-buoc li::after { display: none !important; }
  .ctu-goi .h-nut-chinh { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ctu { transition: none; } }

/* ===== Hiệu ứng chuyển động (trang-chu-hu.js). hu-cho: giấu phần đầu trang chờ cảnh mở màn ===== */
.hu-cho .h-dau .vung > *, .hu-cho .h-chu > *, .hu-cho .h-the, .hu-cho .h-may, .hu-cho .dau-to { visibility: hidden; }
.ss::before { transform: scaleY(var(--hu-len, 1)); transform-origin: 50% 100%; }
.hu-tien-do { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.h-muc a.dang { background: var(--brand-soft); color: var(--brand-deep); }
@media (max-width: 700px) { .hu-tien-do { display: none; } }

/* ===== Bản gọn 17/11/2026: ghi rõ cho ai, nút bấm thử, khối "có bị theo dõi không", "ai làm", trang Tính năng ===== */
.h-cho-ai { margin: -4px 0 14px; font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; color: var(--ink); max-width: 30em; line-height: 1.5; }
.h-lo { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.h-nut-lo { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 20px; border-radius: 14px; border: 1.5px solid var(--brand); background: var(--white); color: var(--brand-deep); font: 600 16.5px/1.35 var(--f); text-decoration: none; transition: background-color .15s; }
.h-nut-lo:hover { background: var(--brand-soft); }
.h-nut-lo:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.h-rt .h-dan { margin-bottom: 0; }
.rt-ba { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.rt-ba > div { padding: 22px 22px 24px; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; }
.rt-ba b { display: block; margin-bottom: 6px; font: 600 23px/1.25 var(--d); color: var(--brand-deep); }
.rt-ba span { color: var(--chu); font-size: 16.5px; line-height: 1.6; }
.rt-them { margin: 22px 0 0; color: var(--chu); font-size: 16.5px; }
.h-them, .h-ai { background: var(--white); }
.h-them h2 { margin-bottom: 0; }
.tn-dau { padding-top: clamp(96px, 12vh, 132px); padding-bottom: clamp(32px, 5vw, 56px); }
.tn-dau h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.15; margin: 10px 0 14px; }
.tn-lui { color: var(--brand-deep); font-weight: 600; text-decoration: none; }
.tn-lui:hover { text-decoration: underline; }
@media (max-width: 960px) { .rt-ba { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .h-lo .h-nut-lo { width: 100%; } }

