/*
 * What's New · "taxexp" card-viz variant (.cv-pc-*) — the Pay Elements
 * "export tax treatment" demo for the "Hand auditors your pay-element tax
 * treatment in one export" card.
 *
 * Ported from the approved standalone design (DesignSync). Builds on the
 * `.cv-pc` sidebar/main/head/dtabs chrome and `.cv-w5-chip`/`.cv-w5-ss*`
 * spreadsheet base already ported in whats-new-cv-g2n.css /
 * whats-new-cv-viewer.css / whats-new-cv-glmap.css — only the pay-elements
 * list panel, the export workbook preview, the download tooltip/toast, and
 * the per-cell Yes/No/N/A badges this variant adds are declared here.
 * `--cm`/`--cs` are the same easing custom properties `.cv-es2` already
 * defines.
 */

.cv-w5-chip.mute { color: #3f587f; background: #f0f3f8; }
.cv-pc-tr .mono { font-family: var(--font-mono, monospace); font-size: 11.5px; }

/* ── Pay elements list panel ─────────────────────────────────────────── */
.cv-w5-set { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cv-w5-set-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e3e6ec; }
.cv-w5-set-h > b { font: 700 14px/1 var(--font-body); color: #001738; }
.cv-w5-ibtns { display: flex; gap: 6px; }
.cv-w5-ibtns i { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #1a3e6d; background: #fff; box-shadow: inset 0 0 0 1px #e3e6ec; transition: background-color 0.3s, box-shadow 0.3s, color 0.3s; }
.cv-w5-ibtns i svg { width: 15px; height: 15px; }
.cv-w5-ibtns i.gh { color: #b8c1d1; }
.cv-w5-ibtns i.hot { color: #cc4c19; background: #fff1ea; box-shadow: inset 0 0 0 1px #ffc9b0; }
.cv-w5-tip { position: absolute; left: 50%; bottom: 38px; padding: 6px 9px; background: #001738; border-radius: 6px; color: #fff; font: 600 11px/1 var(--font-body); font-style: normal; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); transition: opacity 0.3s, transform 0.4s var(--cm); }
.cv-w5-tip.on { opacity: 1; transform: translate(-50%); }

.cv-pc-th.st, .cv-pc-tr.st { grid-template-columns: 62px minmax(0, 1fr) 84px 58px 64px; column-gap: 10px; }
.cv-pc-tr.st { min-height: 38px; }
.cv-pc-tr.st .cd { font: 600 11px/1 var(--font-mono, monospace); color: #cc4c19; }
.cv-pc-tr.st .nm b { font-size: 12.5px; }
.cv-pc-tr.st .cv-w5-chip { height: 22px; padding: 0 8px; font-size: 10.5px; }

/* ── Export workbook preview overlay ─────────────────────────────────── */
.cv-w5-wb { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: #fff; opacity: 0; pointer-events: none; transform: translateY(24px); transition: opacity 0.45s var(--cm), transform 0.8s var(--cm); }
.cv-w5-wb.on { opacity: 1; transform: none; }
.cv-w5-wb-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #e3e6ec; }
.cv-w5-wb-h .xl { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #0f8529; color: #fff; font: 800 9px/1 var(--font-body); }
.cv-w5-wb-h .fn { display: flex; flex-direction: column; flex: 1; gap: 5px; min-width: 0; }
.cv-w5-wb-h .fn b { font: 700 14px/1 var(--font-body); color: #001738; }
.cv-w5-wb-h .fn small { font: 500 11px/1 var(--font-body); color: #3f587f; }
.cv-w5-wb-ok { opacity: 0; transform: translateX(8px); transition: opacity 0.4s, transform 0.6s var(--cm); }
.cv-w5-wb-ok.on { opacity: 1; transform: none; }
.cv-w5-wb-ss .cv-w5-ss-in { width: 100%; height: 325px; }
.cv-w5-ss-col .c.mono { font: 600 10.5px/1 var(--font-mono, monospace); color: #cc4c19; }
.cv-w5-ss-col .c.ctr { justify-content: center; padding: 0 4px; }
.cv-w5-ss-col.reg { opacity: 0; transition: opacity 0.45s; }
.cv-w5-ss-col.reg.on { opacity: 1; }
.cv-w5-ss-col.reg .lt { color: #a63d12; background: #fff1ea; }
.cv-w5-ss-col.reg .c.hd { color: #a63d12; background: #ffe9de; padding: 0 7px; font-size: 11px; }
.cv-w5-ss-col .v { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 5px; font: 700 10.5px/1 var(--font-body); font-style: normal; opacity: 0; transform: scale(0.6); transition: opacity 0.35s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--i, 0) * 60ms + 0.3s); }
.cv-w5-ss-col.reg.on .v { opacity: 1; transform: none; }
.cv-w5-ss-col .v.ok { color: #0a4e20; background: #dcf1e4; }
.cv-w5-ss-col .v.no { color: #8a1f1f; background: #fde8e8; }
.cv-w5-ss-col .v.mute { color: #3f587f; background: #f0f3f8; }

.cv-w5-tabbar { display: flex; height: 30px; background: #f9fafb; border-top: 1px solid #e3e6ec; }
.cv-w5-tabbar span { display: flex; align-items: center; padding: 0 14px; background: #fff; border-right: 1px solid #e3e6ec; font: 600 11.5px/1 var(--font-body); color: #001738; }

/* ── Download toast ──────────────────────────────────────────────────── */
.cv-w5-dlt { position: absolute; z-index: 5; bottom: 20px; right: 24px; }
.cv-w5-toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #001738; border-radius: 12px; opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--cm), transform 0.7s var(--cm); }
.cv-w5-toast.on { opacity: 1; transform: none; }
.cv-w5-toast .k { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0f8529; color: #fff; }
.cv-w5-toast .k svg { width: 12px; height: 12px; }
.cv-w5-toast > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.cv-w5-toast b { font: 700 12.5px/1 var(--font-body); color: #fff; white-space: nowrap; }
.cv-w5-toast small { font: 500 11px/1 var(--font-body); color: rgba(255, 255, 255, 0.72); }

@media (prefers-reduced-motion: reduce) {
	.cv-w5-ss-col.reg, .cv-w5-ss-col .v { transition: none !important; }
}
