/* ============================================================================
   workhub-views.css — live HTML renderings of WorkHub screens for the
   /jira-capacity-planning highlights (drawn by /assets/js/workhub-views.js).

   Each `.wv` frame holds a fixed-width `.wv-stage` that the script scales to
   the frame, so every size below is in the app's own pixels. Everything is
   namespaced `.wv`/`.wv-` and never reaches the shared chrome.
   ============================================================================ */

.wv {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(10, 34, 51, 0.16), 0 3px 10px rgba(10, 34, 51, 0.08);
  --wv-ink: #172B4D;
  --wv-sub: #5E6C84;
  --wv-line: #DFE1E6;
  --wv-soft: #F4F5F7;
  --wv-blue: #1D4ED8;
}
/* Reserves the frame before the script runs, so the row does not jump. */
.wv[data-wv="scheduler"] { aspect-ratio: 960 / 543; }
.wv[data-wv="workload"]  { aspect-ratio: 640 / 292; }
.wv[data-wv="capacity"]  { aspect-ratio: 820 / 532; }
.wv[data-wv="leave"]     { aspect-ratio: 820 / 512; }
.wv[data-wv="split"]     { aspect-ratio: 800 / 384; }
.wv[data-wv="timesheets"]{ aspect-ratio: 980 / 482; }
.wv[data-wv="reports"]   { aspect-ratio: 920 / 520; }
.wv[data-wv="mywork"]    { aspect-ratio: 920 / 500; }
.wv.wv-ready { aspect-ratio: auto; }

.wv-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: var(--wv-ink);
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.wv-stage em { font-style: normal; }
.wv-stage *, .wv-stage *::before, .wv-stage *::after { box-sizing: border-box; }

/* ----------------------------------------------------------- Shared bits -- */
.wv-pad { padding: 18px 20px 20px; }
.wv-row { display: flex; align-items: center; gap: 8px; }
.wv-grow { flex: 1 1 auto; min-width: 0; }
.wv-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.wv-subtitle { font-size: 12.5px; color: var(--wv-sub); margin-top: 3px; }
.wv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 30px; padding: 0 11px;
  border: 1px solid var(--wv-line); border-radius: 4px;
  background: #fff; color: var(--wv-ink);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.wv-btn--primary { background: var(--wv-blue); border-color: var(--wv-blue); color: #fff; font-weight: 600; }
.wv-btn--outline { border-color: var(--wv-blue); color: var(--wv-blue); font-weight: 600; }
.wv-btn--on { background: #E9EFFD; border-color: #8FA8F0; color: var(--wv-blue); font-weight: 600; }
.wv-btn--icon { width: 30px; padding: 0; color: var(--wv-sub); }
.wv-btn--ghost { border-color: transparent; background: var(--wv-soft); }
.wv-range { font-weight: 600; font-size: 12.5px; padding: 0 4px; white-space: nowrap; }
.wv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px; border-radius: 3px;
  background: #E9EFFD; color: #1D3FA8; font-size: 11.5px; white-space: nowrap;
}
.wv-avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.wv-avatar--sm { width: 16px; height: 16px; font-size: 7px; }
.wv-hint {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 12px;
  background: #FFF4D6; color: #7A5200; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.wv-card { background: #fff; border: 1px solid var(--wv-line); border-radius: 8px; padding: 16px 18px; }
.wv-link { font-weight: 600; font-size: 12.5px; color: var(--wv-ink); }
.wv-tag {
  display: inline-flex; align-items: center; height: 19px; padding: 0 6px;
  border-radius: 4px; border: 1px solid #A9C0F5; background: #E3ECFD; color: #1D3FA8;
  font-size: 11px; font-weight: 500;
}
.wv-tag--plain { border-color: #C1C7D0; background: var(--wv-soft); color: var(--wv-ink); }
.wv-tag--violet { border-color: #E0B3F2; background: #F7E3FD; color: #6B2A8C; }
.wv-toggle {
  flex: none; position: relative; width: 34px; height: 18px; border-radius: 9px;
  background: #22A06B; cursor: pointer; transition: background 0.18s ease;
}
.wv-toggle::after {
  content: ""; position: absolute; top: 2px; left: 18px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: left 0.18s ease;
}
.wv-toggle.is-off { background: #6B778C; }
.wv-toggle.is-off::after { left: 2px; }

/* ------------------------------------------------------------- Scheduler -- */
.wv-sch-top { padding: 14px 16px 0; }
.wv-sch-bar { padding: 10px 16px 12px; border-bottom: 1px solid var(--wv-line); }
.wv-grid { position: relative; border-top: 1px solid var(--wv-line); }
.wv-grid-head, .wv-grid-row { display: flex; }
.wv-grid-side { flex: none; width: 168px; border-right: 1px solid var(--wv-line); }
.wv-grid-main { position: relative; flex: 1 1 auto; min-width: 0; }
.wv-weeks { display: flex; height: 28px; border-bottom: 1px solid var(--wv-line); }
.wv-week {
  flex: 1 1 0; display: flex; align-items: center; padding: 0 10px;
  font-size: 11.5px; font-weight: 600; border-right: 1px solid var(--wv-line);
}
.wv-week:last-child, .wv-day:last-child, .wv-cell:last-child { border-right: 0; }
.wv-days { display: flex; height: 34px; }
.wv-day {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 1px solid var(--wv-line);
  font-size: 11px; font-weight: 700; line-height: 1.15;
}
.wv-day small { font-size: 8.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--wv-sub); }
.wv-day.is-today { background: #E3E9FB; color: var(--wv-blue); }
.wv-day.is-today small { color: var(--wv-blue); }
.wv-grid-row { border-top: 1px solid var(--wv-line); }
.wv-grid-row.is-target .wv-grid-side { background: #F1F5FE; }
.wv-person { display: flex; align-items: center; gap: 9px; height: 100%; padding: 0 12px; }
.wv-person-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-person-team { font-size: 10.5px; color: var(--wv-sub); }
.wv-person-load { font-size: 10.5px; font-weight: 700; }
.wv-person-load::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px;
  border-radius: 50%; background: currentColor; vertical-align: 1px;
}
.wv-cells { position: absolute; inset: 0; display: flex; }
.wv-cell { flex: 1 1 0; border-right: 1px solid #EBECF0; }
.wv-cell.is-off { background: #F5F6FA; }
.wv-bar {
  position: absolute; height: 31px; padding: 3px 7px 0 8px;
  border-radius: 3px; border-left: 3px solid var(--wv-blue);
  background: #E2E8FD; overflow: hidden; white-space: nowrap;
  font-size: 10px; line-height: 1.3;
}
.wv-bar[data-drag] { cursor: grab; touch-action: pan-y; transition: box-shadow 0.15s ease; }
.wv-bar[data-drag]:hover { box-shadow: 0 2px 8px rgba(23, 43, 77, 0.22); }
.wv-bar.is-dragging { cursor: grabbing; z-index: 3; box-shadow: 0 8px 20px rgba(23, 43, 77, 0.3); opacity: 0.94; }
.wv-bar--yellow { background: #FFF7D6; border-left-color: #E2B203; }
.wv-bar--red { background: #F08B6B; border-left-color: #F08B6B; }
.wv-bar--alloc { background: #FFF1DF; border-left-color: #F59E0B; }
.wv-bar--holiday {
  display: flex; align-items: center; gap: 4px; padding-top: 0;
  border-left-color: #F59E0B; font-weight: 700; text-overflow: ellipsis;
  background: repeating-linear-gradient(135deg, #FFEBD0 0 5px, #FFDDB0 5px 7px);
}
.wv-bar--holiday b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.wv-ico { flex: none; width: 13px; height: 13px; }
.wv-ico--prio { width: 11px; height: 11px; }
.wv-ico--holiday { color: #A54800; }
.wv-emoji { font-size: 13px; }
.wv-bar .wv-avatar--sm { width: 12px; height: 12px; font-size: 5.5px; }
.wv-bar-l1 { letter-spacing: -0.2px; }
.wv-bar-l1 > i { font-style: normal; font-weight: 400; opacity: 0.6; }
.wv-wl-bar .wv-ico { width: 20px; height: 20px; }
.wv-wl-bar .wv-ico--prio { width: 17px; height: 17px; }

/* Capacity popup, opened from a daily workload bar or the total under a name. */
[data-pop] { cursor: pointer; }
.wv-person-load[data-pop]:hover span { text-decoration: underline; }
.wv-load[data-pop]:hover .wv-load-track { box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.18); }
.wv-pop {
  position: absolute; z-index: 5; width: 230px;
  background: #fff; border: 1px solid var(--wv-line); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); font-size: 12px;
}
.wv-pop--range { width: 290px; }
.wv-pop--lg { width: 270px; font-size: 14px; }
.wv-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--wv-line); }
.wv-pop-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-pop-head span { font-size: 0.88em; color: #626F86; white-space: nowrap; }
.wv-pop-head i { font-style: normal; font-size: 1.25em; line-height: 1; color: #626F86; cursor: pointer; }
.wv-pop-body { padding: 7px 12px; }
.wv-pop-row { display: flex; justify-content: space-between; padding: 3.5px 0; }
.wv-pop-row span:first-child { color: #626F86; }
.wv-pop-row.is-detail span { color: #8590A2; font-size: 0.88em; }
.wv-pop-row.is-over span, .wv-pop-row.is-overvalue span:last-child { color: #AE2A19; font-weight: 600; }
.wv-pop-row.is-leave span { color: #A54800; }
.wv-pop-row.is-holiday span { color: #5E4DB2; }
.wv-pop-row.is-name { margin-top: -2px; }
.wv-pop-row.is-name span { font-size: 0.88em; font-style: italic; }
.wv-pop-sep { height: 1px; margin: 4px 0; background: var(--wv-line); }

/* "Click me" callout under the first workload number; gone after the first click. */
.wv-clickme {
  position: absolute; top: 137px; left: 150px; z-index: 2; pointer-events: none;
  padding: 5px 12px; border-radius: 14px; background: #172B4D; color: #fff;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  animation: wv-nudge 1.4s ease-in-out infinite;
}
.wv-clickme::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px;
  margin-left: -5px; background: #172B4D; transform: rotate(45deg);
}
.wv-clicked .wv-clickme { display: none; }
@keyframes wv-nudge { 50% { transform: translateY(5px); } }
.wv-bar--leave { background: #DCF2E4; border-left-color: #F59E0B; }
.wv-bar-l1 { display: flex; align-items: center; gap: 5px; font-weight: 700; }
.wv-bar-l1 > span:last-child { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.wv-bar-l2 { overflow: hidden; text-overflow: ellipsis; color: #253858; }
.wv-hrs {
  flex: none; padding: 0 4px; border-radius: 3px;
  background: rgba(9, 30, 66, 0.1); font-size: 9.5px; font-weight: 700;
}
.wv-status { font-size: 8px; font-weight: 700; padding: 2px 4px; border-radius: 3px; background: #D4F5E9; color: #006644; }
.wv-loads { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; display: flex; }
.wv-load { flex: 1 1 0; display: flex; align-items: center; gap: 4px; padding: 0 4px; min-width: 0; }
.wv-load-track { flex: 1 1 auto; height: 4px; border-radius: 2px; background: #E4E6EB; overflow: hidden; }
.wv-load-fill { height: 100%; border-radius: 2px; background: #22A06B; transition: width 0.25s ease, background 0.25s ease; }
.wv-load-num { flex: none; font-size: 8.5px; font-weight: 700; color: #22A06B; }
.wv-load.is-low .wv-load-fill { background: #94C748; }
.wv-load.is-low .wv-load-num { color: #6A9A23; }
.wv-load.is-over .wv-load-fill { background: #F59E0B; }
.wv-load.is-over .wv-load-num { color: #C77700; }
.wv-load.is-high .wv-load-fill { background: #DE350B; }
.wv-load.is-high .wv-load-num { color: #DE350B; }
.wv-load.is-none .wv-load-track {
  background: repeating-linear-gradient(135deg, #C9D4F7 0 3px, #E6EBFB 3px 6px);
}
.wv-load.is-none .wv-load-num { color: #8FA3E8; }
.wv-load.is-holiday .wv-load-track {
  background: repeating-linear-gradient(135deg, #F8CF9A 0 3px, #FDEBD3 3px 6px);
}
.wv-load.is-holiday .wv-load-num { color: #E0A050; }
.wv-load.is-idle .wv-load-num { color: #97A0AF; }

/* -------------------------------------------------------------- Workload -- */
.wv-wl { position: relative; height: 292px; }
.wv-wl-cols { position: absolute; inset: 0 22px; display: flex; }
.wv-wl-cols i { flex: 1 1 0; border-left: 1px solid var(--wv-line); }
.wv-wl-cols i:last-child { border-right: 1px solid var(--wv-line); }
.wv-wl-body { position: absolute; inset: 0 22px; padding-top: 24px; }
.wv-wl-bar {
  margin: 0 8px; height: 76px; padding: 10px 14px;
  border-radius: 4px; border-left: 4px solid var(--wv-blue); background: #E2E8FD;
}
.wv-wl-bar b { font-size: 18px; letter-spacing: 0.01em; }
.wv-wl-bar .wv-hrs { font-size: 14px; padding: 2px 8px; border-radius: 4px; }
.wv-wl-bar p { margin: 4px 0 0; font-size: 16px; color: #344563; }
.wv-wl-loads { display: flex; height: 44px; }
.wv-wl-loads .wv-load { gap: 9px; padding: 0 12px 0 8px; }
.wv-wl-loads .wv-load-track { height: 10px; border-radius: 5px; }
.wv-wl-loads .wv-load-fill { border-radius: 5px; }
.wv-wl-loads .wv-load-num { font-size: 16px; }
.wv-wl-leave {
  display: flex; align-items: center; gap: 12px; height: 76px; padding: 0 14px;
  border-left: 4px solid #F59E0B; font-size: 19px; font-weight: 700;
  background:
    linear-gradient(90deg, transparent 45%, #DCF2E4 45%),
    repeating-linear-gradient(135deg, #DCF2E4 0 9px, #B9E0C8 9px 11px);
}
.wv-wl-leave .wv-status { font-size: 12px; padding: 3px 7px; }
.wv-wl-foot { border-top: 1px solid var(--wv-line); margin: 6px -22px 0; }

/* --------------------------------------------------------------- Settings -- */
.wv-set { background: #F7F8F9; padding: 20px 22px 22px; }
.wv-set .wv-card + .wv-card { margin-top: 14px; }
.wv-set-head { margin-bottom: 16px; }
.wv-card-title { font-size: 14px; font-weight: 700; }
.wv-item {
  display: flex; align-items: center; gap: 22px; padding: 11px 16px;
  border: 1px solid var(--wv-line); border-radius: 4px; background: #F7F8F9;
  margin-top: 8px; transition: background 0.15s ease, border-color 0.15s ease;
}
.wv-item:hover { background: #EFF3FD; border-color: #B8C8F5; }
.wv-item-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wv-item-sub { font-size: 11.5px; color: var(--wv-sub); margin-top: 2px; }
.wv-dot { width: 11px; height: 11px; border-radius: 50%; }
.wv-input {
  display: flex; align-items: center; height: 30px; padding: 0 10px;
  border: 1px solid var(--wv-line); border-radius: 4px; background: #fff;
  color: #8993A4; font-size: 12px;
}
.wv-table { margin-top: 12px; border-bottom: 2px solid var(--wv-line); }
.wv-tr { display: grid; grid-template-columns: 1.5fr 1.4fr 1.4fr 1fr; align-items: center; height: 31px; font-size: 13px; }
.wv-tr > :last-child { display: flex; gap: 24px; }
.wv-tr.is-head { height: 28px; font-size: 11.5px; font-weight: 700; color: #344563; border-bottom: 2px solid var(--wv-line); }

/* ------------------------------------------------------------------ Split -- */
.wv-split { position: relative; height: 384px; background: #6F7C93; }
.wv-split::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 159px, rgba(255, 255, 255, 0.12) 159px 160px);
}
.wv-dialog {
  position: absolute; inset: 10px; display: flex; flex-direction: column;
  background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(9, 30, 66, 0.4);
}
.wv-dialog-head { display: flex; align-items: center; height: 60px; padding: 0 24px; border-bottom: 1px solid var(--wv-line); font-size: 19px; font-weight: 600; }
.wv-dialog-body { flex: 1 1 auto; padding: 16px 24px 0; }
.wv-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--wv-line); }
.wv-seg { display: inline-flex; border: 1px solid var(--wv-line); border-radius: 4px; overflow: hidden; }
.wv-seg span { display: flex; align-items: center; height: 30px; padding: 0 13px; font-size: 12px; font-weight: 500; color: var(--wv-sub); cursor: pointer; }
.wv-seg span + span { border-left: 1px solid var(--wv-line); }
.wv-seg span.is-on { background: var(--wv-blue); color: #fff; font-weight: 600; }
.wv-split-grid { display: grid; grid-template-columns: 1fr 112px 112px 74px 74px 20px; gap: 8px; align-items: center; margin-top: 8px; }
.wv-split-grid.is-head { margin-top: 16px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--wv-sub); }
.wv-field {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 9px;
  border: 1px solid var(--wv-line); border-radius: 4px; background: #fff; font-size: 12.5px;
}
.wv-field--user { background: var(--wv-soft); font-size: 13px; font-weight: 500; }
.wv-field--date { font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; }
.wv-x { margin-left: auto; color: var(--wv-sub); font-size: 13px; }

/* ------------------------------------------------------------- Timesheets -- */
.wv-ts { display: flex; }
.wv-ts-nav { flex: none; width: 142px; padding: 14px 10px; border-right: 1px solid var(--wv-line); }
.wv-ts-nav b { display: block; padding: 0 8px; font-size: 13px; }
.wv-ts-nav h6 { margin: 13px 8px 3px; font-size: 10.5px; font-weight: 700; color: var(--wv-ink); }
.wv-ts-nav span { display: block; padding: 5px 8px; border-radius: 3px; font-size: 11.5px; color: #344563; }
.wv-ts-nav span.is-on { background: #E9EFFD; color: var(--wv-blue); font-weight: 600; box-shadow: inset 2px 0 0 var(--wv-blue); }
.wv-ts-main { flex: 1 1 auto; min-width: 0; }
.wv-ts-bar { padding: 10px 12px; border-bottom: 1px solid var(--wv-line); }
.wv-ts-bar .wv-btn, .wv-ts-bar .wv-seg span { height: 26px; font-size: 11.5px; }
.wv-ts-row { display: grid; grid-template-columns: 1fr 66px 50px repeat(11, 44px); align-items: stretch; height: 30px; border-bottom: 1px solid #EBECF0; }
.wv-ts-row > * { display: flex; align-items: center; justify-content: center; font-size: 11.5px; }
.wv-ts-row > :first-child { justify-content: flex-start; gap: 7px; padding-left: 12px; overflow: hidden; white-space: nowrap; }
.wv-ts-row.is-head { height: 38px; border-bottom: 2px solid var(--wv-line); font-weight: 700; color: var(--wv-sub); }
.wv-ts-row.is-head > * { font-size: 9px; letter-spacing: 0.05em; }
.wv-ts-row.is-head .wv-day { border-right: 0; font-size: 11px; color: var(--wv-ink); }
.wv-ts-row.is-person { cursor: pointer; }
.wv-ts-main { position: relative; }
/* Worklog detail dialog, opened from a day cell. */
.wv-wd-layer { position: absolute; inset: 0 0 -80px; z-index: 6; }
.wv-wd-back { position: absolute; inset: 0; background: rgba(9, 30, 66, 0.42); }
.wv-wd {
  position: absolute; top: 44px; left: 50%; width: 600px; margin-left: -300px;
  background: #fff; border-radius: 8px; box-shadow: 0 10px 34px rgba(9, 30, 66, 0.4); overflow: hidden;
}
.wv-wd em { font-style: normal; }
.wv-wd-head { padding: 16px 18px; border-bottom: 1px solid var(--wv-line); align-items: flex-start; }
.wv-wd-name { font-size: 15px; font-weight: 700; }
.wv-wd-x { margin-left: 4px; padding: 6px; color: var(--wv-sub); cursor: pointer; }
.wv-wd-stats { display: flex; gap: 8px; padding: 12px 18px; background: #FAFBFC; border-bottom: 1px solid var(--wv-line); }
.wv-wd-stats div { flex: 1 1 0; padding: 8px; text-align: center; background: #fff; border: 1px solid var(--wv-line); border-radius: 4px; }
.wv-wd-stats small { display: block; font-size: 10px; letter-spacing: 0.04em; color: var(--wv-sub); }
.wv-wd-stats b { font-size: 14px; }
.wv-wd-bar { padding: 9px 18px; background: var(--wv-soft); border-bottom: 1px solid var(--wv-line); color: var(--wv-sub); }
.wv-wd-bar b { color: var(--wv-ink); }
.wv-wd-body { max-height: 190px; overflow: auto; padding: 4px 18px 12px; }
.wv-wd-group > .wv-row:first-child { padding: 9px 0 8px; border-bottom: 1px solid var(--wv-line); }
.wv-wd-key { color: #0052CC; letter-spacing: 0.02em; }
.wv-wd-hrs { padding: 2px 6px; border-radius: 3px; font-size: 11px; font-weight: 700; background: var(--wv-soft); white-space: nowrap; }
.wv-wd-status { padding: 1px 5px; border-radius: 3px; font-size: 10px; font-weight: 700; background: #E3FCEF; color: #006644; }
.wv-wd-entry { gap: 10px; padding: 7px 0 2px 10px; }
.wv-wd-entry .wv-wd-hrs { font-weight: 500; color: #44546F; }
.wv-wd-entry .is-empty { font-style: italic; color: #8993A4; }
.wv-ts-row [data-cell]:hover { box-shadow: inset 0 0 0 2px rgba(29, 78, 216, 0.45); }
.wv-ts-row.is-person:hover > :first-child { color: var(--wv-blue); }
.wv-ts-row.is-child > :first-child { padding-left: 50px; }
.wv-ts-sum { font-size: 12.5px !important; font-weight: 700; }
.wv-ts-row i { font-style: normal; color: #B3BAC5; }
.wv-caret { width: 10px; font-size: 8px; color: var(--wv-sub); transition: transform 0.15s ease; }
.wv-ts-row.is-closed .wv-caret { transform: rotate(-90deg); }
.wv-pct {
  display: inline-flex; align-items: center; height: 17px; padding: 0 7px; border-radius: 9px;
  background: linear-gradient(90deg, #C7D5F8 var(--p), #EEF1F6 var(--p)); font-size: 9.5px; font-weight: 700;
}
.wv-proj { flex: none; width: 14px; height: 14px; border-radius: 3px; }
.wv-c-ok { background: #DCF2E4; }
.wv-c-low { background: #EEF5DC; }
.wv-c-over { background: #FDDCDC; }
.wv-c-leave { background: #E3ECFD; }
.wv-c-off { background: #F1F2F4; }

/* ---------------------------------------------------------------- Reports -- */
.wv-tabs { display: flex; gap: 22px; margin-top: 14px; border-bottom: 2px solid var(--wv-line); }
.wv-tabs span { padding: 0 2px 8px; margin-bottom: -2px; font-size: 12.5px; font-weight: 600; color: var(--wv-sub); }
.wv-tabs span.is-on { color: #0052CC; border-bottom: 2px solid #0052CC; }
.wv-reports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.wv-report {
  border-radius: 6px; overflow: hidden; background: #fff; border-top: 3px solid var(--c);
  box-shadow: 0 1px 3px rgba(9, 30, 66, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wv-report:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(9, 30, 66, 0.2); }
.wv-report-art { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 92px; padding: 14px 30px; background: var(--bg); }
.wv-report-art i { flex: 1 1 0; border-radius: 2px 2px 0 0; background: var(--c); }
.wv-report-art.is-rows { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; }
.wv-report-art.is-rows i { flex: none; height: 10px; border-radius: 3px; }
.wv-report-art.is-cal { display: grid; grid-template-columns: repeat(7, 1fr); align-content: center; gap: 4px; }
.wv-report-art.is-cal i { height: 12px; border-radius: 3px; background: #EBECF0; }
.wv-report-art.is-cal i.on { background: var(--c); }
.wv-report h5 { margin: 12px 14px 4px; font-size: 13px; font-weight: 700; color: var(--wv-ink); }
.wv-report p { margin: 0 14px 14px; font-size: 11px; line-height: 1.5; color: var(--wv-sub); }

/* ---------------------------------------------------------------- My Work -- */
.wv-stats { display: flex; gap: 30px; margin-top: 10px; }
.wv-stats small { display: block; font-size: 9.5px; letter-spacing: 0.06em; color: var(--wv-sub); }
.wv-stats b { font-size: 17px; }
.wv-stats b span { font-size: 11.5px; font-weight: 500; color: var(--wv-sub); }
.wv-chart { position: relative; height: 138px; margin: 12px 0 0 30px; }
.wv-chart-line { position: absolute; left: 0; right: 0; height: 1px; background: #EBECF0; }
.wv-chart-line span { position: absolute; left: -30px; top: -7px; font-size: 9.5px; color: var(--wv-sub); }
.wv-chart-cols { position: absolute; inset: 0 0 18px; display: flex; }
.wv-chart-col { position: relative; flex: 1 1 0; display: flex; justify-content: center; }
.wv-chart-col.is-off { background: #F7F8F9; }
.wv-chart-col u { position: absolute; bottom: 0; width: 26px; background: #DEE7FB; }
.wv-chart-col s {
  position: absolute; bottom: 0; width: 26px; height: 0; background: var(--wv-blue);
  transition: height 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wv-in .wv-chart-col s { height: var(--h); }
.wv-chart-col em { position: absolute; bottom: -17px; font-size: 9.5px; font-style: normal; color: var(--wv-sub); white-space: nowrap; }
.wv-chart-col.is-today em { color: var(--wv-ink); font-weight: 700; }
.wv-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 10.5px; color: #344563; }
.wv-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.wv-mini { margin-top: 12px; border: 1px solid var(--wv-line); border-radius: 6px; overflow: hidden; }
.wv-mini .wv-grid { border-top: 0; }

/* ------------------------------------------------- Stacked highlight rows -- */
/* Copy on top, view across the full row below: the live views need the whole
   width to be read, which the side-by-side landing rows cannot give them. */
.lp-highlights--stacked .lp-highlight,
.lp-highlights--stacked .lp-highlight:nth-child(even) {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.lp-highlights--stacked .lp-highlight .lp-highlight-figure { order: 2; }
.lp-highlights--stacked .lp-highlight-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.lp-highlights--stacked .lp-highlight-copy p { margin-bottom: 14px; }
.lp-highlights--stacked .lp-highlight + .lp-highlight { margin-top: 44px; }
@media (max-width: 900px) {
  .lp-highlights--stacked .lp-highlight { gap: 22px; }
  .lp-highlights--stacked .lp-highlight + .lp-highlight { margin-top: 24px; }
}

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