/* Time & Attendance product page (/time-and-attendance) — this page's own mock-ups,
   prefix at-. Shared kit: static/css/product.css. */
.at-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #15803d; font-size: .78rem; }
.at-live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: atPulse 1.6s infinite; }
@keyframes atPulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.at-timer { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* 1 — clock card */
.at-clock { width: 250px; background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 14px 34px rgba(16, 24, 40, .12); text-align: center; }
.at-clock-top { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: #8a93a4; }
.at-clock .at-timer { display: block; font-size: 2.2rem; font-weight: 700; margin: 16px 0 12px; color: #1d2433; }
.at-wfh { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .78rem; color: #4b5568; }
.at-toggle { width: 30px; height: 17px; border-radius: 999px; background: #d5dae6; position: relative; }
.at-toggle i { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .3s; }
.at-toggle.on { background: #0c64ae; } .at-toggle.on i { left: 15px; }
.at-out { display: block; margin-top: 16px; padding: 10px; border-radius: 10px; background: #fdecec; color: #b42318; font-weight: 600; font-size: .85rem; }

/* 2 — today board */
.at-today { width: 270px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 14px 34px rgba(16, 24, 40, .1); font-size: .8rem; }
.at-today-head { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid #eef0f4; margin-bottom: 4px; }
.at-today-head span { color: #8a93a4; }
.at-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * 100ms + .3s); }
.pp-card.in .at-row { opacity: 1; transform: none; }
.at-row .pp-av { width: 26px; height: 26px; font-size: .62rem; }
.at-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-st { font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.at-st.in { background: #e7f6ec; color: #15803d; } .at-st.late { background: #fff4e0; color: #b45309; }
.at-st.leave { background: #efeafd; color: #6d28d9; } .at-st.none { background: #f1f3f7; color: #6b7487; }

/* 3 — shift */
.at-shift { width: 260px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 14px 34px rgba(16, 24, 40, .1); font-size: .8rem; }
.at-shift-head { display: flex; align-items: center; gap: 8px; }
.at-shift-dot { width: 10px; height: 10px; border-radius: 3px; background: #0c64ae; }
.at-default { margin-left: auto; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #0c64ae; background: #eaf2fb; padding: 3px 7px; border-radius: 6px; }
.at-shift-time { font-size: 1.6rem; font-weight: 700; margin: 12px 0; color: #1d2433; font-variant-numeric: tabular-nums; }
.at-shift-time span { color: #a0a8b6; font-weight: 400; margin: 0 4px; }
.at-days { display: flex; gap: 5px; }
.at-days span { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; background: #f1f3f7; color: #a0a8b6; font-size: .7rem; font-weight: 600; }
.at-days span.on { background: #0c64ae; color: #fff; }
.at-rules { display: grid; gap: 6px; margin-top: 12px; }
.at-rules span { display: flex; justify-content: space-between; color: #6b7487; font-size: .76rem; }
.at-rules b { color: #1d2433; }

/* 4 — the week */
.at-week { width: 270px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 14px 34px rgba(16, 24, 40, .1); font-size: .78rem; }
.at-week-top { display: flex; justify-content: space-between; } .at-week-top span { color: #8a93a4; }
.at-week-bars { display: grid; gap: 9px; margin-top: 14px; }
.at-wb { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; }
.at-wb small { order: -1; white-space: nowrap; }
.at-wb-bar { display: flex; height: 12px; border-radius: 6px; background: #eef1f6; overflow: hidden; }
.at-wb-bar i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 80ms + .3s); }
.at-wb-bar .w { width: var(--w); background: linear-gradient(90deg, #5b8def, #0c64ae); }
.at-wb-bar .o { width: var(--o); background: #f59e0b; transition-delay: calc(var(--i) * 80ms + 1s); }
.pp-card.in .at-wb-bar i { transform: scaleX(1); }
.at-wb small { color: #8a93a4; font-size: .68rem; }
.at-wb em { font-style: normal; color: #b45309; font-weight: 600; margin-left: 4px; }
.at-week-legend { display: flex; gap: 12px; margin-top: 12px; color: #6b7487; font-size: .7rem; }
.at-week-legend span { display: inline-flex; align-items: center; gap: 5px; }
.at-week-legend i { width: 8px; height: 8px; border-radius: 2px; background: #0c64ae; } .at-week-legend i.o { background: #f59e0b; }

/* 5 — correction */
.at-fix { width: 270px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 14px 34px rgba(16, 24, 40, .1); font-size: .8rem; }
.at-fix-head { display: flex; gap: 10px; align-items: center; }
.at-fix-head > i { width: 36px; height: 36px; border-radius: 10px; background: #fff4e0; color: #b45309; display: grid; place-items: center; font-size: 1.05rem; --fa-primary-color: #b45309; --fa-secondary-color: #b45309; }
.at-fix-head span { display: flex; flex-direction: column; } .at-fix-head small { color: #8a93a4; }
.at-fix p { margin: 12px 0; color: #4b5568; font-style: italic; line-height: 1.45; }
.at-fix-trail { display: grid; gap: 6px; }
.at-fix-trail span { position: relative; padding-left: 22px; color: #a0a8b6; font-size: .76rem; opacity: .4; transition: opacity .4s, color .4s; }
.at-fix-trail span::before { content: ""; position: absolute; left: 4px; top: 3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #c8cfdc; }
.pp-card.in .at-fix-trail span { opacity: 1; color: #1d2433; }
.pp-card.in .at-fix-trail span:nth-child(1) { transition-delay: .4s; } .pp-card.in .at-fix-trail span:nth-child(2) { transition-delay: .9s; } .pp-card.in .at-fix-trail span:nth-child(3) { transition-delay: 1.4s; }
.at-fix-trail span.done::before { background: #16a34a; border-color: #16a34a; }
.at-fix-trail span.now::before { background: #0c64ae; border-color: #0c64ae; }

/* 6 — location */
.at-map { position: relative; width: 270px; height: 200px; border-radius: 16px; overflow: hidden; background: #e8eef6; box-shadow: 0 14px 34px rgba(16, 24, 40, .1); }
.at-map-grid { position: absolute; inset: -20px; background:
  linear-gradient(90deg, rgba(255, 255, 255, .9) 2px, transparent 2px) 0 0 / 46px 46px,
  linear-gradient(0deg, rgba(255, 255, 255, .9) 2px, transparent 2px) 0 0 / 46px 46px,
  linear-gradient(30deg, transparent 48%, #d3dff0 48%, #d3dff0 56%, transparent 56%); transform: rotate(-8deg); }
.at-pin { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -100%); color: #0c64ae; width: 30px; height: 38px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(12, 100, 174, .35)); }
.at-pin svg { width: 100%; height: 100%; display: block; }
.at-ring { position: absolute; left: 50%; top: 40%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid #0c64ae; animation: atRing 2.2s ease-out infinite; }
@keyframes atRing { from { transform: scale(.4); opacity: .9; } to { transform: scale(5); opacity: 0; } }
.at-map-card { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border-radius: 10px; padding: 10px 12px; font-size: .78rem; box-shadow: 0 6px 18px rgba(16, 24, 40, .1); z-index: 2; }
.at-map-card small { display: block; color: #8a93a4; margin-top: 2px; }

/* walkthrough step 2 — the big clock */
.at-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; text-align: center; }
.at-big-date { color: #8a93a4; font-size: .85rem; }
.at-big-time { font-size: 3.4rem; font-weight: 700; color: #1d2433; font-variant-numeric: tabular-nums; }
.at-big-btn { padding: 14px 44px; border-radius: 999px; background: linear-gradient(135deg, #16a34a, #0f766e); color: #fff; font-weight: 700; box-shadow: 0 10px 26px rgba(22, 163, 74, .35); }
.pp-scene.on .at-big-btn { animation: atPress .5s 1s both; }
@keyframes atPress { 50% { transform: scale(.94); } }
.at-big-ok { color: #15803d; font-weight: 600; font-size: .86rem; opacity: 0; }
.pp-scene.on .at-big-ok { animation: ppRow .5s 1.5s both; }

/* the phone */
.at-phone-wrap { display: flex; justify-content: center; }
.at-phone { width: 270px; height: 480px; border-radius: 40px; padding: 12px; background: #0f1524; box-shadow: 0 40px 80px rgba(16, 24, 40, .25), inset 0 0 0 2px #2a3245; position: relative; }
.at-phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 999px; background: #0f1524; z-index: 2; }
.at-phone-screen { height: 100%; border-radius: 30px; background: linear-gradient(180deg, #eef4fb, #f7f8fb 40%); padding: 54px 18px 18px; display: flex; flex-direction: column; gap: 14px; font-size: .82rem; color: #1d2433; }
.at-phone-screen > small { color: #6b7487; font-size: .8rem; }
.at-phone-clock { background: #fff; border-radius: 18px; padding: 16px; text-align: center; box-shadow: 0 8px 22px rgba(16, 24, 40, .08); }
.at-phone-clock .at-timer { display: block; font-size: 1.9rem; margin: 10px 0 8px; }
.at-phone-loc { font-size: .72rem; color: #0c64ae; }
.at-phone-btn { text-align: center; padding: 12px; border-radius: 14px; background: #fdecec; color: #b42318; font-weight: 700; }
.at-phone-list { background: #fff; border-radius: 14px; padding: 6px 14px; }
.at-phone-list div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f0f2f6; }
.at-phone-list div:last-child { border-bottom: 0; }
.at-phone-list span { color: #8a93a4; }

@media (prefers-reduced-motion: reduce) {
  .at-row, .at-wb-bar i, .at-fix-trail span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .at-live i, .at-ring { animation: none !important; }
}
