/* Hallmark · shape: app screen · genre: editorial · theme: brand · redesign: restyle · system: /chung.css (tokens, faces, focus ring, motion, stamp) */
/* Trang nhân viên: điện thoại trước, một tay bấm được */
body { background: var(--paper); }
.dau-trang { background: var(--brand); color: var(--brand-ink); padding: calc(14px + env(safe-area-inset-top)) 18px 54px; position: relative; overflow: hidden; }
.dau-trang::after { content: ""; position: absolute; right: -70px; top: -90px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--white) 14%, transparent); box-shadow: 0 0 0 14px color-mix(in srgb, var(--white) 3.5%, transparent); }
.dau-trang::before { content: ""; position: absolute; left: -40px; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: color-mix(in srgb, var(--black) 7%, transparent); }
.dt-hang { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.dt-hang .logo { width: 46px; height: 46px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--white) 50%, transparent); }
.dt-ten { min-width: 0; flex: 1; }
.dt-ten b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 600 19px/1.2 var(--fd); overflow: hidden; text-wrap: balance; overflow-wrap: break-word; }
.dt-ten span { font-size: 13px; opacity: .9; }
.dt-gio { text-align: right; position: relative; z-index: 1; }
.dt-gio b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dt-gio span { font-size: 13px; opacity: .9; }

.than { max-width: 520px; margin: -38px auto 0; padding: 0 14px calc(96px + env(safe-area-inset-bottom)); position: relative; z-index: 2; }
.the-chao { padding: 16px 16px 18px; }
.chao { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chao h1 { font-size: 23px; }
.chao-phu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* phiếu chấm công: 2 con dấu */
.phieu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 14px; padding: 14px; border-radius: 14px; background: repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--brand) 9%, transparent) 27px 28px), var(--card); border: 1px dashed var(--line); }
.o-dau { display: grid; justify-items: center; gap: 4px; }
.o-dau .dau { width: min(36vw, 150px); }
.o-dau small { font-size: 13px; font-weight: 600; color: var(--muted); }

.chon-ca { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chon-ca button { flex: 1 1 auto; min-height: 42px; padding: 6px 12px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; }
.chon-ca button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.chon-ca small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }

.nut-cham { width: 100%; min-height: 76px; border: 0; border-radius: 18px; background: var(--brand); color: var(--brand-ink); font: 800 24px var(--f); letter-spacing: .04em; cursor: pointer; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform .08s; }
.nut-cham.ra { background: var(--ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--black) 22%, transparent); }
.nut-cham:active { transform: scale(.98); }
.nut-cham:disabled { opacity: .66; cursor: not-allowed; box-shadow: none; filter: saturate(.5); }
.nut-cham small { display: block; font: 500 13px var(--f); letter-spacing: 0; opacity: .92; margin-top: 2px; }
.ghi-pham-vi { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.ket-qua { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; }
.ket-qua.ok { background: var(--ok-soft); color: var(--ok); }
.ket-qua.xau { background: var(--bad-soft); color: var(--bad); }
.luot-khac { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.luot-khac div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px dashed var(--line); }

.canh-bao { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.canh-bao b { color: var(--warn-deep); }
.canh-bao .btn { margin-top: 8px; }

/* chọn tên */
.chon-ten { padding: 16px; }
.chon-ten h1 { font-size: 25px; margin-bottom: 4px; }
.ds-ten { display: grid; gap: 8px; margin-top: 14px; }
.ds-ten button { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: left; font-weight: 600; font-size: 15.5px; cursor: pointer; }
.ds-ten button:hover { border-color: var(--brand); }
.ds-ten .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; font-size: 14px; flex: none; }
.ds-ten small { margin-left: auto; font-weight: 500; color: var(--faint); font-size: 13px; }
.o-ma { font-size: 28px; letter-spacing: .5em; text-align: center; font-weight: 700; }

/* tháng này */
.thang-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 6px; }
.thang-dau h2 { font-size: 20px; }
.tong-hop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 16px 14px; }
.tong-hop div { background: var(--paper); border-radius: 12px; padding: 10px; }
.tong-hop b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tong-hop span { font-size: 13px; color: var(--muted); }
.ds-ngay { border-top: 1px solid var(--line); }
.ds-ngay .dong { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ds-ngay .ng b { display: block; font-size: 15px; }
.ds-ngay .ng span { font-size: 13px; color: var(--muted); }
.ds-ngay .gio-lam { font-variant-numeric: tabular-nums; }
.ds-ngay .gio-lam small { display: block; color: var(--muted); font-size: 13px; }
.phieu-luong { margin-top: 14px; padding: 16px; }
.phieu-luong h3 { font-size: 18.5px; margin-bottom: 10px; }
.pl-dong { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.pl-dong span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.pl-tong { display: flex; justify-content: space-between; margin-top: 10px; font-size: 18px; font-weight: 800; color: var(--brand-deep); }

/* thanh dưới */
.thanh-duoi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: color-mix(in srgb, var(--white) 96%, transparent); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(8px); }
.thanh-duoi button { flex: 1; max-width: 260px; min-height: 60px; border: 0; background: none; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; display: grid; place-items: center; gap: 2px; }
.thanh-duoi button[aria-current="page"] { color: var(--brand-deep); }
.thanh-duoi svg { width: 22px; height: 22px; }
.bang-thu { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--white); text-align: center; font-size: 13px; padding: 7px 12px calc(7px); }
.bang-thu a { color: var(--gold); font-weight: 700; }
.chan-trang { text-align: center; font-size: 13px; color: var(--faint); margin-top: 22px; }
.chan-trang a { color: var(--faint); }
.ds-ten .tn { display: grid; text-align: left; }
.ds-ten .tn small { margin: 0; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.nut-tieng { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 12.5px; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.nut-tieng[aria-pressed="false"] { color: var(--muted); }

/* ===== Thông báo của quản lý ===== */
.thanh-duoi button { position: relative; }
.dau-so { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: var(--white); font: 700 11px/18px var(--f); text-align: center; }
.tb-nho { width: 100%; display: grid; grid-template-columns: auto 1fr auto; column-gap: 11px; align-items: center; text-align: left; font: inherit; color: inherit; background: var(--white); border: 1px solid var(--brand-line); border-radius: 14px; padding: 11px 14px; margin-bottom: 12px; cursor: pointer; box-shadow: var(--shadow); }
.tb-nho b { grid-column: 2; font-size: 15px; }
.tb-nho > span:not(.tb-cham) { grid-column: 2; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-nho i { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-size: 24px; color: var(--brand); }
.tb-cham { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.tb-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tb-dau h2 { font-size: 22px; }
.the:has(> .tb-dau) { padding: 16px; }
.tb-the { --tb: var(--faint); border: 1px solid color-mix(in srgb, var(--tb) 30%, var(--line)); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: color-mix(in srgb, var(--tb) 6%, var(--white)); }
.tb-the.tb-hop { --tb: var(--info); }
.tb-the.tb-khach { --tb: var(--warn); }
.tb-the.tb-nhac { --tb: var(--brand); }
.tb-the.da { background: var(--paper); }
.tb-the.da h3 { color: var(--muted); }
.tb-hang { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tb-gio { font-size: 15px; font-variant-numeric: tabular-nums; }
.tb-hang small { color: var(--muted); font-size: 13px; }
.tb-the h3 { font-size: 19px; margin: 7px 0 4px; }
.tb-the p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.tb-chan { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tb-chan small { color: var(--faint); font-size: 12.5px; }
.tb-ok { color: var(--ok); font-weight: 700; font-size: 13.5px; }
.canh-vt { margin-top: 8px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--warn-soft)); font-size: 13.5px; line-height: 1.45; }
.canh-vt b { display: block; }

/* hộp xin đồng ý lấy vị trí */
.dy-ds { margin: 0 0 6px; padding-left: 20px; }
.dy-ds li { margin-bottom: 10px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.dy-ds b { color: var(--brand-deep); }


/* chân trang: liên kết cách nhau bằng khoảng trống, không dùng dấu chấm giữa */
.chan-trang .chan-lk { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
