/*
 * What's New · "viewer" card-viz variant (.cv-pc-*) — the Payroll Admin
 * Console "Viewer role" demo for the "Give reporting-only users the access
 * they need — nothing more" card.
 *
 * Ported from the approved standalone design (DesignSync). Builds on the
 * `.cv-pc` sidebar/main/head chrome already ported in whats-new-cv-g2n.css
 * (same payroll-console shell CVG2N introduced) — only the two-page switch,
 * stats tiles, section table and footer/tooltip pieces this variant adds
 * are declared here. `--cm`/`--cs` are the same easing custom properties
 * `.cv-es2` already defines.
 */

.cv-pc-user em { font: 700 10px/1 var(--font-body); margin-left: auto; padding: 4px 7px; border-radius: 6px; background: #e6f2fb; color: #0f6f8f; font-style: normal; }
.cv-pc-pill.green { color: #0a4e20; background: #dcf1e4; }

.cv-pc-pg { position: absolute; inset: 22px 24px; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--cm), transform 0.6s var(--cm); }
.cv-pc-pg.on { opacity: 1; transform: none; transition-delay: 0.15s; }

.cv-pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cv-pc-stats span { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fff; border: 1px solid #e3e6ec; border-radius: 12px; }
.cv-pc-stats small { font: 600 11.5px/1 var(--font-body); color: #3f587f; }
.cv-pc-stats b { font: 700 20px/1 var(--font-body); color: #001738; }
.cv-pc-ph { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 16px; }
.cv-pc-ph i { height: 10px; border-radius: 5px; background: #f0f3f8; }
.cv-pc-ph i:nth-child(2) { width: 70%; }
.cv-pc-ph i:nth-child(3) { width: 45%; }

.vw-s span { opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--cm), transform 0.6s var(--cm); }
.vw-s span.on { opacity: 1; transform: none; transition-delay: calc(var(--i) * 90ms); }
.vw-s b { font-size: 18px; }
.vw-v { height: 26px; }

.cv-pc-th, .cv-pc-tr { display: grid; align-items: center; column-gap: 14px; padding: 0 16px; }
.cv-pc-th { height: 36px; background: #f9fafb; border-bottom: 1px solid #e3e6ec; font: 600 11px/1 var(--font-body); color: #3f587f; text-transform: uppercase; letter-spacing: 0.04em; }
.cv-pc-tr { min-height: 52px; border-bottom: 1px solid #eef0f4; transition: background-color 0.4s; }
.cv-pc-tr:last-child { border-bottom: 0; }
.cv-pc-th.vw, .cv-pc-tr.vw { grid-template-columns: 120px minmax(0, 1fr) 90px; }
.cv-pc-th > span:last-child, .cv-pc-tr .ac { justify-self: end; }
.cv-pc-tr .nm { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cv-pc-tr .nm b { font: 700 13.5px/1.1 var(--font-body); color: #001738; white-space: nowrap; }
.cv-pc-tr .nm small { font: 500 11.5px/1.1 var(--font-body); color: #3f587f; white-space: nowrap; }
.cv-pc-tr .dt { font: 600 12.5px/1.2 var(--font-body); color: #3f587f; font-weight: 500; white-space: nowrap; }
.cv-pc-tr .ac { display: flex; align-items: center; gap: 8px; }
.cv-pc-tr.hov { background: #f9fafb; }
.cv-pc-tr.ready { background: #f4fff7; }
.cv-pc-tr.vw { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--cm), transform 0.6s var(--cm); }
.cv-pc-tr.vw.on { opacity: 1; transform: none; transition-delay: calc(var(--i) * 0.12s); }

.cv-pc-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #eef7fd; color: #0a4660; opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--cm), transform 0.6s var(--cm); }
.cv-pc-note.on { opacity: 1; transform: none; transition-delay: 0.55s; }
.cv-pc-note svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.cv-pc-note > span { display: flex; flex-direction: column; gap: 4px; }
.cv-pc-note b { font: 700 13px/1.2 var(--font-body); color: #0a4660; }
.cv-pc-note small { font: 500 12px/1.35 var(--font-body); color: #1a3e6d; }

.cv-pc-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.cv-pc-dbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 8px; background: #e5e7eb; color: #8b9ab2; font: 700 13px/1 var(--font-body); }
.cv-pc-dbtn svg { width: 14px; height: 14px; }
.cv-pc-tip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 7px; background: #001738; color: #fff; font: 600 12px/1 var(--font-body); white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity 0.35s, transform 0.5s var(--cm); }
.cv-pc-tip svg { width: 13px; height: 13px; }
.cv-pc-tip.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.cv-pc * { transition: none !important; }
}
