/*
 * What's New · "g2n" card-viz variant (.cv-pc-*) — the Payroll Admin
 * Console "Reports" page demo for the "Run gross-to-net reports across tax
 * years, yourself" card.
 *
 * Ported from the approved standalone design (DesignSync). Builds on the
 * `.cv-es2` base window chrome (whats-new-cv-docs.css) the same way the
 * design's own CVG2N component reuses CVDocs' `cv-es2-scr`/`cv-es2-cur`
 * plumbing — only the payroll-console-specific sidebar/main/drawer/
 * timeline rules are declared here. `--ce`/`--cs`/`--cm` are the same
 * easing custom properties `.cv-es2` already defines; the design's own
 * source additionally reaches for a `--me` variable that's only ever
 * defined inside its unrelated `.cv-anim` wrapper (never present on this
 * component), so every `var(--me)` below is ported as `var(--cm)` instead
 * of carrying over an undefined custom property.
 *
 * `cvPop`/`.cv-zp-zk` (the generic "done" checkmark badge) already exist in
 * whats-new.css; `.cv-rip`/`.cv-cin` already exist in whats-new-cv-docs.css.
 * Only enqueued on the What's New page — see hrblizz_whats_new_assets().
 */

@keyframes cvPdIn { 0% { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.cv-pc .cv-es2-scr { background: #f5f7fa; }
.cv-pc .cv-rip { z-index: 2; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.cv-pc-side { display: flex; flex-direction: column; flex: none; width: 176px; background: #fff; border-right: 1px solid #e3e6ec; }
.cv-pc-brand { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px; background: #001738; border-bottom-color: #001738; }
.cv-pc-brand .mk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #ff5f1f; font: 800 9.5px/1 var(--font-body); letter-spacing: 0.02em; }
.cv-pc-brand b { font: 700 12.5px/1.15 var(--font-body); color: #fff; }
.cv-pc-nav { display: flex; flex-direction: column; flex: 1; gap: 2px; padding: 10px 8px; }
.cv-pc-it { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) 14px; align-items: center; column-gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: #001738; transition: background-color 0.35s; }
.cv-pc-it svg { width: 17px; height: 17px; }
.cv-pc-it b { font: 600 13px/1 var(--font-body); }
.cv-pc-it i { display: grid; color: #3f587f; transition: transform 0.45s var(--cm); }
.cv-pc-it i svg { width: 13px; height: 13px; }
.cv-pc-it i.op { transform: rotate(180deg); }
.cv-pc-it.on { background: #ffefe8; }
.cv-pc-it.hot { background: #f0f3f8; }
.cv-pc-ch { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--cm); }
.cv-pc-ch.op { grid-template-rows: 1fr; }
.cv-pc-ch > span { display: flex; flex-direction: column; overflow: hidden; }
.cv-pc-ch em { padding: 9px 10px 9px 38px; font: 500 12.5px/1 var(--font-body); color: #3f587f; font-style: normal; }
.cv-pc-ch em.on { color: #ff5f1f; font-weight: 700; }
.cv-pc-user { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-top: 1px solid #e3e6ec; }
.cv-pc-user > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cv-pc-user small { font: 500 10.5px/1 var(--font-mono, monospace); color: #8b9ab2; }
.cv-pc-user b { font: 700 12px/1 var(--font-body); color: #001738; white-space: nowrap; }
.cv-pc-user .av { display: grid; flex: none; place-items: center; border-radius: 50%; background: #d9f0fa; color: #005e80; font: 700 11px/1 var(--font-body); }

/* ── Main: head / tabs / report-list card ───────────────────────────── */
.cv-pc-main { position: relative; display: flex; flex-direction: column; flex: 1; gap: 14px; min-width: 0; padding: 22px 24px; overflow: hidden; }
.cv-pc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cv-pc-head > span:first-child { display: flex; flex-direction: column; gap: 5px; }
.cv-pc-head h4 { margin: 0; font: 700 21px/1.15 var(--font-body); color: #001738; letter-spacing: -0.01em; white-space: nowrap; }
.cv-pc-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; font: 600 12px/1 var(--font-body); white-space: nowrap; }
.cv-pc-pill svg { width: 14px; height: 14px; }
.cv-pc-pill.blue { color: #0a4660; background: #dceefa; }
.cv-pc-dtabs { display: flex; align-self: flex-start; padding: 5px; border-radius: 11px; background: #001738; }
.cv-pc-dtabs span { padding: 9px 18px; border-radius: 7px; font: 700 12.5px/1 var(--font-body); color: rgba(255, 255, 255, 0.6); }
.cv-pc-dtabs span.on { color: #fff; background: #ff5f1f; }
.cv-pc-card { background: #fff; border: 1px solid #e3e6ec; border-radius: 12px; overflow: hidden; }
.cv-pc-rl-h { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #eef0f4; }
.cv-pc-rl-h b { font: 700 14px/1 var(--font-body); color: #001738; }
.cv-pc-rl-h span { padding: 4px 7px; border-radius: 999px; background: #f0f3f8; font: 700 11px/1 var(--font-body); color: #3f587f; }
.cv-pc-rr { display: grid; grid-template-columns: 36px minmax(0, 1fr) 104px; align-items: center; column-gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eef0f4; transition: background-color 0.45s; }
.cv-pc-rr:last-child { border-bottom: 0; }
.cv-pc-rr.ready { background: #fbfffc; }
.cv-pc-rr .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f0f3f8; color: #1a3e6d; transition: background-color 0.45s, color 0.45s; }
.cv-pc-rr .ic svg { width: 17px; height: 17px; }
.cv-pc-rr.ready .ic { background: #dcf1e4; color: #0a4e20; }
.cv-pc-rr .nm { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cv-pc-rr .nm b { font: 700 13.5px/1.15 var(--font-body); color: #001738; white-space: nowrap; }
.cv-pc-rr .pd { display: inline-block; width: auto; padding: 5px 8px; border-radius: 7px; background: #f0f3f8; font: 600 11.5px/1 var(--font-body); color: #1a3e6d; white-space: nowrap; transition: background-color 0.45s, color 0.45s; }
.cv-pc-rr .pd.pop { animation: cvPdIn 0.5s var(--cm); }
.cv-pc-rr.ready .pd { color: #a8380b; background: #fff1ea; }
.cv-pc-rr .ac { justify-self: end; }
.cv-pc-gbtn { position: relative; display: inline-flex; justify-content: center; align-items: center; min-width: 92px; height: 30px; padding: 0 12px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px #b8c1d1; font: 700 12px/1 var(--font-body); color: #001738; }
.cv-pc-gbtn svg { width: 14px; height: 14px; }
.cv-pc-gbtn.dl { color: #fff; background: #0f8529; box-shadow: none; }
.cv-pc-gbtn .cv-morph { justify-items: center; }

/* ── Drawer: scrim, field, timeline, footer ─────────────────────────── */
.cv-pc-scrim { position: absolute; inset: 0; opacity: 0; background: rgba(0, 23, 56, 0.28); transition: opacity 0.5s var(--cm); }
.cv-pc-scrim.on { opacity: 1; }
.cv-pc-drw { position: absolute; top: 0; bottom: 0; right: 0; width: 330px; padding: 20px; background: #fff; transform: translateX(105%); transition: transform 0.7s var(--cm); box-shadow: -12px 0 32px rgba(0, 23, 56, 0.14); }
.cv-pc-drw.on { transform: none; }
.cv-pc-drw-in { display: flex; flex-direction: column; gap: 12px; }
.cv-pc-drw-h { display: flex; flex-direction: column; gap: 5px; padding-bottom: 12px; border-bottom: 1px solid #e3e6ec; }
.cv-pc-drw-h small { font: 600 10.5px/1 var(--font-body); color: #8b9ab2; text-transform: uppercase; letter-spacing: 0.06em; }
.cv-pc-drw-h b { font: 700 17px/1.1 var(--font-body); color: #001738; }
.cv-pc-fld { position: relative; display: flex; flex-direction: column; gap: 6px; }
.cv-pc-fld small { font: 600 12px/1 var(--font-body); color: #3f587f; }
.cv-pc-fld > span { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 0 12px; background: #fff; border: 1px solid #b8c1d1; border-radius: 8px; transition: border-color 0.35s, box-shadow 0.35s; }
.cv-pc-fld b { font: 700 13.5px/1 var(--font-body); color: #001738; }
.cv-pc-fld svg { width: 16px; height: 16px; color: #8b9ab2; }
.cv-pc-fld.hot > span { border-color: #ff5f1f; }
.cv-pc-fld.set > span { border-color: #ff5f1f; box-shadow: 0 0 0 3px rgba(255, 95, 31, 0.14); }
.cv-pc-drw-f { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 4px; padding-top: 12px; padding-bottom: 2px; border-top: 1px solid #e3e6ec; }
.cv-pc-lnk { font: 700 12.5px/1 var(--font-body); color: #001738; }
.cv-pc-pbtn { position: relative; display: inline-flex; justify-content: center; align-items: center; min-width: 112px; height: 38px; padding: 0 20px; border-radius: 8px; background: #ff5f1f; color: #fff; font: 700 13px/1 var(--font-body); transition: background-color 0.3s, transform 0.35s var(--cs); }
.cv-pc-pbtn.hot { transform: translateY(-1px); }
.cv-pc-pbtn.busy { background: #cc4c19; }
.cv-pc-pbtn .cv-morph { justify-items: center; }

.cv-morph { display: inline-grid; align-items: center; }
.cv-morph > span { display: inline-flex; align-items: center; gap: 6px; grid-area: 1/1; transition: opacity 0.35s, transform 0.5s var(--cm); }
.cv-morph .mb { opacity: 0; transform: translateY(8px); }
.cv-morph.on .ma { opacity: 0; transform: translateY(-8px); }
.cv-morph.on .mb { opacity: 1; transform: none; }

/* ── Timeline strip (the cross-year date-range visual) ──────────────── */
.cv-pc-tl { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; background: #f9fafb; border: 1px solid #e3e6ec; border-radius: 12px; }
.cv-pc-tl .yrs { display: grid; grid-template-columns: 7fr 8fr; gap: 4px; }
.cv-pc-tl .yrs > span { display: flex; align-items: center; min-width: 0; gap: 6px; padding: 7px 9px; background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px #e3e6ec; transition: background-color 0.5s, box-shadow 0.5s; }
.cv-pc-tl .yrs small,
.cv-pc-tl .yrs b { display: inline; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0; white-space: nowrap; box-shadow: none !important; background: transparent !important; }
.cv-pc-tl .yrs small { font: 600 10px/1 var(--font-body); color: #8b9ab2; text-transform: uppercase; letter-spacing: 0.06em; }
.cv-pc-tl .yrs b { font: 700 14px/1 var(--font-body); color: #001738; }
.cv-pc-tl .yrs .y1,
.cv-pc-tl.on .yrs .y2 { background: #fff9f6; box-shadow: inset 0 0 0 1px #ffc9b3; }
.cv-pc-tl .yrs .y2 { transition-delay: 0.45s; }
.cv-pc-tl .rail { position: relative; height: 18px; margin: 2px 0 0; }
.cv-pc-tl .base { position: absolute; top: 7px; left: 3.33333%; right: 3.33333%; height: 4px; border-radius: 4px; background: #e3e6ec; }
.cv-pc-tl .bar { position: absolute; top: 7px; left: 3.33333%; width: 93.3333%; height: 4px; border-radius: 4px; background: #ff5f1f; transform-origin: 0; transform: scaleX(0.2857); transition: transform 1.2s var(--ce); }
.cv-pc-tl.on .bar { transform: none; }
.cv-pc-tl .tk { position: absolute; top: 7px; z-index: 1; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #b8c1d1; transition: background-color 0.3s; }
.cv-pc-tl .tk.in { background: #fff; }
.cv-pc-tl.on .tk.in { transition-delay: calc(var(--j) * 70ms); }
.cv-pc-tl .tk.yr { top: -1px; width: 2px; height: 20px; margin-left: calc(-3.33333% - 1px); border-radius: 1px; background: #8b9ab2 !important; }
.cv-pc-tl .h { position: absolute; top: 2px; z-index: 2; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #ff5f1f, 0 4px 10px rgba(255, 95, 31, 0.35); }
.cv-pc-tl .hs { left: 3.33333%; }
.cv-pc-tl .endw { position: absolute; inset: 0; z-index: 2; transform: translateX(-66.6667%); transition: transform 1.2s var(--ce); }
.cv-pc-tl.on .endw { transform: none; }
.cv-pc-tl .he { left: 96.6667%; }
.cv-pc-tl .lbl { position: relative; height: 12px; }
.cv-pc-tl .lbl span { position: absolute; transform: translateX(-50%); font: 600 10px/1 var(--font-body); color: #8b9ab2; }
.cv-pc-tl .sum { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #e3e6ec; font: 500 12px/1 var(--font-body); color: #3f587f; white-space: nowrap; }
.cv-pc-tl .sum b { font-weight: 700; color: #001738; }
.cv-pc-tl .sum i { width: 3px; height: 3px; border-radius: 50%; background: #b8c1d1; }
.cv-pc-tl .sum .ok { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; opacity: 0; transform: translateY(4px); color: #0a4e20; font-weight: 700; transition: opacity 0.4s, transform 0.5s var(--cs); }
.cv-pc-tl .sum .ok svg { width: 12px; height: 12px; }
.cv-pc-tl.on .sum .ok { opacity: 1; transform: none; transition-delay: 1s; }

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