/* Waypoint Planner - usage, network diagram, calendar, resource sheet and report views.
   Owned by the views engineer. Colors come from the theme tokens in css/app.css; chart series colors
   are the validated categorical slots 1-3 of the reference data-viz palette (scoped to .wp-report). */

/* ==========================================================================
   Shared: view stack and view toolbar
   ========================================================================== */
.wp-view-stack { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; }
.wp-view-stack > .wp-view-sheet { flex: 1 1 auto; }
.wp-view-toolbar {
  display: flex; flex: none; align-items: center; gap: 3px;
  height: 34px; padding: 0 8px; overflow: hidden;
  background: var(--wp-panel-2); border-bottom: 1px solid var(--wp-border); white-space: nowrap;
}
.wp-view-tbtn {
  display: inline-flex; flex: none; align-items: center; gap: 5px;
  height: 26px; padding: 0 7px; border: 1px solid transparent; border-radius: var(--wp-radius-sm);
  background: none; color: var(--wp-text); cursor: pointer;
}
.wp-view-tbtn:hover { background: var(--wp-hover); border-color: var(--wp-border); }
.wp-view-tbtn:focus-visible { outline: none; box-shadow: var(--wp-focus); }
.wp-view-tbtn > .wp-icon { color: var(--wp-accent-strong); }
.wp-view-tbtn.is-on { background: var(--wp-accent-weak); border-color: #c9d0fb; color: var(--wp-accent-strong); }
.wp-view-tover, .wp-view-tover > .wp-icon { color: var(--wp-danger); }
.wp-view-tsep { flex: none; width: 1px; height: 18px; margin: 0 5px; background: var(--wp-border); }
.wp-view-tlabel { flex: none; padding: 0 3px 0 2px; color: var(--wp-muted); }
.wp-view-tfill { flex: 1 1 auto; min-width: 8px; }
.wp-view-tinfo { flex: none; padding: 0 4px 0 10px; color: var(--wp-muted); }
.wp-view-tzoom { display: inline-block; min-width: 40px; color: var(--wp-muted); text-align: center; font-variant-numeric: tabular-nums; }
.wp-view-tcheck { display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 0 6px; cursor: pointer; }
.wp-view-tcheck input { margin: 0; accent-color: var(--wp-accent); }
.wp-view-segs { display: inline-flex; flex: none; overflow: hidden; border: 1px solid var(--wp-border-strong); border-radius: var(--wp-radius-sm); }
.wp-view-seg { height: 24px; padding: 0 10px; border: 0; border-right: 1px solid var(--wp-border); background: var(--wp-panel); color: var(--wp-text); cursor: pointer; }
.wp-view-seg:last-child { border-right: 0; }
.wp-view-seg:hover { background: var(--wp-hover); }
.wp-view-seg.is-active { background: var(--wp-accent); color: #fff; }
.wp-view-legend { display: inline-flex; flex: none; align-items: center; gap: 5px; padding-left: 8px; color: var(--wp-muted); }
.wp-view-swatch { display: inline-block; width: 14px; height: 12px; border-radius: 2px; }
.wp-view-swatch.is-over { background: #fde7e8; box-shadow: inset 0 0 0 1px var(--wp-danger); }

/* ==========================================================================
   Usage views (Task Usage / Resource Usage)
   ========================================================================== */
.wp-usage-panes { position: relative; display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; }
.wp-usage-left { position: relative; display: flex; flex: none; min-width: 0; }
.wp-usage-gridhost { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.wp-usage-splitter { cursor: col-resize; }
.wp-usage-splitter:hover { background: var(--wp-accent-weak); }
.wp-usage-right { position: relative; flex: 1 1 auto; min-width: 0; }
.wp-usage-scroll { position: absolute; inset: 0; overflow: scroll; overscroll-behavior: contain; background: var(--wp-panel); }
.wp-usage-head { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; background: var(--wp-panel-2); border-bottom: 1px solid var(--wp-border-strong); }
.wp-usage-tier { position: relative; flex: 1 1 50%; overflow: hidden; }
.wp-usage-tier.is-top { border-bottom: 1px solid var(--wp-grid-line); }
.wp-usage-hgroup { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; border-right: 1px solid var(--wp-grid-line); font-weight: 600; white-space: nowrap; }
.wp-usage-hgroup > span { position: sticky; left: 0; padding: 0 6px; }
.wp-usage-hcell {
  position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--wp-grid-line); color: var(--wp-muted); font-size: 11px; white-space: nowrap; overflow: hidden;
}
.wp-usage-hcell.is-nonworking { background: var(--wp-nonworking); }
.wp-usage-body { position: relative; }
.wp-usage-row {
  position: absolute; top: 0; left: 0; right: 0; height: var(--wp-row-h);
  border-bottom: 1px solid var(--wp-grid-line); background: var(--wp-panel); contain: layout style;
}
.wp-usage-row.is-alt { background: var(--wp-row-alt); }
.wp-usage-row.is-summary { color: var(--wp-summary-text); font-weight: 600; }
.wp-usage-row.is-assignment, .wp-view-usage .wp-grid-row.is-assignment { background: #fbfaf3; }
.wp-usage-row.is-selected, .wp-view-usage .wp-grid-row.is-assignment.is-selected { background: var(--wp-select); color: var(--wp-select-text); }
.wp-usage-row.is-focus-row { box-shadow: inset 0 0 0 1px #b8c1f3; }
.wp-usage-cell {
  position: absolute; top: 0; bottom: 0; padding: 0 5px; overflow: hidden;
  border-right: 1px solid var(--wp-grid-line); line-height: calc(var(--wp-row-h) - 1px);
  text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.wp-usage-cell.is-nonworking { background: rgba(104, 112, 135, 0.07); }
.wp-usage-cell.is-over { background: rgba(217, 45, 58, 0.1); color: var(--wp-danger); font-weight: 600; }
.wp-usage-statusline { position: absolute; top: 0; bottom: 0; z-index: 2; width: 0; border-left: 2px dashed var(--wp-status-date); pointer-events: none; }
.wp-view-usage .wp-grid-row.is-assignment .wp-grid-cell:not(.wp-grid-rowhead) { color: #3c4560; }
.wp-view-usage .wp-grid-row.is-assignment.is-overallocated .wp-grid-cell:not(.wp-grid-rowhead) { color: var(--wp-danger); font-weight: 400; }
.wp-usage-total { display: flex; flex: none; overflow: hidden; background: var(--wp-panel-2); border-top: 1px solid var(--wp-border-strong); font-weight: 600; }
.wp-usage-total-left { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; overflow: hidden; white-space: nowrap; }
.wp-usage-total-title { color: var(--wp-muted); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.05em; }
.wp-usage-total-gap { flex: none; width: 5px; background: var(--wp-panel-2); border-left: 1px solid var(--wp-border); border-right: 1px solid var(--wp-border); }
.wp-usage-total-right { position: relative; flex: none; overflow: hidden; }
.wp-usage-total-cells { position: relative; height: 100%; }

/* ==========================================================================
   Network diagram
   ========================================================================== */
.wp-nd-host { position: relative; flex: 1 1 auto; min-height: 0; }
.wp-nd-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; background: var(--wp-panel-2); outline: none; cursor: grab; }
.wp-nd-scroll.is-panning { cursor: grabbing; user-select: none; }
.wp-nd-canvas { position: relative; overflow: hidden; }
.wp-nd-links { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.wp-nd-boxes { position: absolute; inset: 0; }
.wp-nd-empty { position: absolute; top: 40px; left: 0; right: 0; color: var(--wp-muted); font-size: 13px; text-align: center; pointer-events: none; }
.wp-nd-link { fill: none; stroke: var(--wp-link); stroke-width: 1.4; }
.wp-nd-link.is-critical { stroke: var(--wp-bar-critical); stroke-width: 1.8; }
.wp-nd-arrow { fill: var(--wp-link); }
.wp-nd-arrow.is-critical { fill: var(--wp-bar-critical); }
.wp-nd-linklabel { fill: var(--wp-muted); font-family: var(--wp-font); }
.wp-nd-box {
  position: absolute; top: 0; left: 0; width: 200px; height: 92px; padding: 6px 12px 0;
  transform-origin: 0 0; color: var(--wp-text); font-size: 11px; line-height: 15px; cursor: pointer; user-select: none;
}
.wp-nd-bg { position: absolute; inset: 0; overflow: visible; }
.wp-nd-shape { fill: #fff; stroke: var(--wp-accent); stroke-width: 1.5; }
.wp-nd-box.is-critical .wp-nd-shape, g.wp-nd-box.is-critical .wp-nd-shape { stroke: var(--wp-bar-critical); stroke-width: 2.5; }
.wp-nd-box.is-summary .wp-nd-shape { fill: #eef0f6; stroke: var(--wp-bar-summary); stroke-width: 2; }
.wp-nd-box.is-summary.is-critical .wp-nd-shape { stroke: var(--wp-bar-critical); }
.wp-nd-box.is-milestone .wp-nd-shape { fill: #f6f4ff; }
.wp-nd-box.is-manual .wp-nd-shape { stroke-dasharray: 5 3; }
.wp-nd-box.is-highlighted .wp-nd-shape { fill: var(--wp-highlight); }
.wp-nd-box.is-selected .wp-nd-shape { fill: var(--wp-select); stroke-width: 3; }
.wp-nd-box.is-focus .wp-nd-bg { filter: drop-shadow(0 0 3px rgba(67, 83, 214, 0.65)); }
.wp-nd-box.is-inactive { color: #9aa1b2; }
.wp-nd-box.is-inactive .wp-nd-shape { stroke: #b8bdc9; }
.wp-nd-mark { fill: none; stroke: var(--wp-muted); stroke-width: 1.2; opacity: 0.75; }
.wp-nd-box.is-summary, .wp-nd-box.is-milestone { padding-left: 16px; padding-right: 16px; }
.wp-nd-name { position: relative; height: 30px; overflow: hidden; font-weight: 600; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.wp-nd-fields { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; }
.wp-nd-fields > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-nd-fields > span.is-right { text-align: right; }
.wp-nd-fields b { color: var(--wp-muted); font-weight: 400; }
.wp-nd-compact { display: none; }
.wp-nd-canvas.is-compact .wp-nd-name, .wp-nd-canvas.is-compact .wp-nd-fields { display: none; }
.wp-nd-canvas.is-compact .wp-nd-compact { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 80px; text-align: center; }
.wp-nd-cid { font-size: 26px; font-weight: 700; line-height: 30px; }
.wp-nd-cname { max-width: 100%; overflow: hidden; font-size: 17px; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; }
.wp-nd-legend { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--wp-muted); }
.wp-nd-key { display: inline-flex; align-items: center; gap: 4px; }
.wp-nd-key::before { content: ''; display: inline-block; width: 16px; height: 10px; border: 1.5px solid var(--wp-accent); background: #fff; }
.wp-nd-key.is-critical::before { border: 2px solid var(--wp-bar-critical); }
.wp-nd-key.is-summary::before { border-color: var(--wp-bar-summary); background: #eef0f6; transform: skewX(-20deg); }
.wp-nd-key.is-milestone::before { width: 16px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--wp-accent); border: 0; }
/* Progress marks match the box marks: one diagonal (bottom-left to top-right) in progress, a cross when complete. */
.wp-nd-key.is-in-progress::before { background: linear-gradient(to top right, #fff calc(50% - 0.6px), var(--wp-muted) 50%, #fff calc(50% + 0.6px)); }
.wp-nd-key.is-done::before { background: linear-gradient(to top right, transparent calc(50% - 0.6px), var(--wp-muted) 50%, transparent calc(50% + 0.6px)), linear-gradient(to bottom right, #fff calc(50% - 0.6px), var(--wp-muted) 50%, #fff calc(50% + 0.6px)); }
.wp-nd-print .wp-nd-ptitle { font: 600 11px var(--wp-font); fill: #111; }
.wp-nd-print .wp-nd-ptext { font: 10px var(--wp-font); fill: #333; }
.wp-nd-print .wp-nd-shape { fill: #fff; }

/* ==========================================================================
   Calendar
   ========================================================================== */
.wp-cal-host { position: relative; display: flex; flex: 1 1 auto; min-height: 0; padding: 6px; background: var(--wp-panel-2); }
.wp-cal-grid { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; background: var(--wp-panel); border: 1px solid var(--wp-border); border-radius: var(--wp-radius); outline: none; }
.wp-cal-grid:focus-visible { box-shadow: var(--wp-focus); }
.wp-cal-title { margin: 0; font-size: 15px; font-weight: 600; }
.wp-cal-msel { width: 112px; height: 26px; }
.wp-cal-ysel { width: 76px; height: 26px; margin-left: 4px; }
.wp-cal-head { display: grid; flex: none; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--wp-panel-2); border-bottom: 1px solid var(--wp-border-strong); }
.wp-cal-dow { padding: 5px 8px; overflow: hidden; color: var(--wp-muted); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wp-cal-dow .is-short { display: none; }
.wp-cal-dow.is-weekend { color: #8a90a2; }
.wp-cal-weeks { display: grid; flex: 1 1 auto; grid-template-rows: repeat(6, minmax(0, 1fr)); min-height: 0; }
.wp-cal-week { position: relative; overflow: hidden; border-bottom: 1px solid var(--wp-grid-line); }
.wp-cal-week:last-child { border-bottom: 0; }
.wp-cal-day { position: absolute; top: 0; bottom: 0; border-right: 1px solid var(--wp-grid-line); }
.wp-cal-day:nth-child(7) { border-right: 0; }
.wp-cal-day.is-nonworking { background: var(--wp-nonworking); }
.wp-cal-day.is-other .wp-cal-dnum { color: #a9afbd; }
.wp-cal-dhead { display: flex; align-items: center; gap: 6px; height: 20px; padding: 0 6px; overflow: hidden; white-space: nowrap; }
.wp-cal-dnum { flex: none; font-weight: 600; }
.wp-cal-day.is-today .wp-cal-dnum { padding: 0 6px; border-radius: 9px; background: var(--wp-accent); color: #fff; }
.wp-cal-holiday { overflow: hidden; color: var(--wp-muted); font-size: 10.5px; text-overflow: ellipsis; }
.wp-cal-statusmark { flex: none; width: 0; height: 0; margin-left: auto; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--wp-status-date); }
.wp-cal-bar {
  position: absolute; z-index: 1; display: flex; align-items: center; gap: 4px; height: 17px; padding: 0 6px; overflow: hidden;
  border-radius: 4px; background: linear-gradient(90deg, var(--wp-bar-progress) 0 var(--wp-cal-pct, 0%), var(--wp-bar) var(--wp-cal-pct, 0%));
  color: #fff; font-size: 11px; line-height: 17px; white-space: nowrap; cursor: pointer;
}
.wp-cal-bar.is-critical { background: linear-gradient(90deg, var(--wp-bar-critical-progress) 0 var(--wp-cal-pct, 0%), var(--wp-bar-critical) var(--wp-cal-pct, 0%)); }
.wp-cal-bar.is-complete { opacity: 0.6; }
.wp-cal-bar.is-manual { background-image: none; background-color: transparent; border: 1.5px solid var(--wp-bar); color: var(--wp-text); }
.wp-cal-bar.is-inactive { background: #c9cdd8; color: #5a6072; text-decoration: line-through; }
.wp-cal-bar.is-highlighted { box-shadow: inset 0 0 0 2px var(--wp-highlight); }
.wp-cal-bar.is-cont-left { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.wp-cal-bar.is-cont-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.wp-cal-bar.is-milestone { background: none; color: var(--wp-text); padding-left: 2px; }
.wp-cal-bar.is-milestone.is-critical .wp-cal-diamond { background: var(--wp-bar-critical); }
.wp-cal-diamond { flex: none; width: 9px; height: 9px; margin: 0 2px 0 3px; background: var(--wp-milestone); transform: rotate(45deg); }
.wp-cal-bar.is-selected { outline: 2px solid var(--wp-accent-strong); outline-offset: 1px; }
.wp-cal-label { overflow: hidden; text-overflow: ellipsis; }
.wp-cal-more {
  position: absolute; z-index: 1; height: 17px; padding: 0 6px; border: 0; border-radius: 4px;
  background: none; color: var(--wp-accent-strong); font-size: 11px; font-weight: 600; text-align: left; cursor: pointer;
}
.wp-cal-more:hover { background: var(--wp-accent-weak); }
.wp-cal-legend { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--wp-muted); }
.wp-cal-key { display: inline-flex; align-items: center; gap: 4px; }
.wp-cal-key::before { content: ''; display: inline-block; width: 14px; height: 9px; border-radius: 2px; background: var(--wp-bar); }
.wp-cal-key.is-critical::before { background: var(--wp-bar-critical); }
.wp-cal-key.is-milestone::before { width: 8px; height: 8px; border-radius: 0; background: var(--wp-milestone); transform: rotate(45deg); }
.wp-cal-key.is-nonworking::before { background: var(--wp-nonworking); box-shadow: inset 0 0 0 1px var(--wp-border); }
@media (max-width: 1100px) {
  .wp-cal-dow .is-long { display: none; }
  .wp-cal-dow .is-short { display: inline; }
  .wp-cal-legend { display: none; }
}

/* ==========================================================================
   Reports
   ========================================================================== */
.wp-report {
  --wp-series-1: #2a78d6;
  --wp-series-2: #eb6834;
  --wp-series-3: #1baf7a;
  max-width: 1500px; margin: 0 auto; padding: 16px 20px 28px;
}
.wp-rp-toolbar { gap: 6px; }
/* The Report ribbon tab already offers these reports and Print: hide the duplicate bar while it is pinned open. */
html[data-ribbon-tab="report"] .wp-rp-toolbar { display: none; }
.wp-rp-tabs { display: flex; flex: 0 1 auto; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.wp-rp-tab {
  display: inline-flex; flex: none; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 13px; background: none; color: var(--wp-text); cursor: pointer;
}
.wp-rp-tab .wp-icon { color: var(--wp-muted); }
.wp-rp-tab:hover { background: var(--wp-hover); }
.wp-rp-tab.is-active { background: var(--wp-accent-weak); border-color: #c9d0fb; color: var(--wp-accent-strong); font-weight: 600; }
.wp-rp-tab.is-active .wp-icon { color: var(--wp-accent); }
.wp-rp-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; background: var(--wp-bg); outline: none; }
.wp-rp-header { margin-bottom: 12px; }
.wp-rp-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--wp-text); font-size: 20px; font-weight: 600; }
.wp-rp-title .wp-icon { color: var(--wp-accent); }
.wp-rp-sub { margin: 4px 0 0; color: var(--wp-muted); }
.wp-rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.wp-rp-card { min-width: 0; padding: 14px 16px; background: var(--wp-panel); border: 1px solid var(--wp-border); border-radius: 8px; box-shadow: var(--wp-shadow-sm); }
.wp-rp-card.is-full { grid-column: 1 / -1; }
.wp-rp-card.is-wide { grid-column: span 1; }
.wp-rp-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.wp-rp-card-note { color: var(--wp-muted); font-size: 11.5px; font-weight: 400; }
.wp-rp-card-body { min-width: 0; }
@media (max-width: 1100px) {
  .wp-rp-grid { grid-template-columns: minmax(0, 1fr); }
}
.wp-rp-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.wp-rp-hero-text { flex: 1 1 260px; min-width: 0; }
.wp-rp-hero-text h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.wp-rp-hero-text p { margin: 0 0 2px; }
.wp-rp-hero .wp-rp-tiles { flex: 2 1 480px; }
.wp-rp-muted { color: var(--wp-muted); }
.wp-rp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wp-rp-tile { padding: 10px 12px; background: var(--wp-panel-2); border: 1px solid var(--wp-border); border-radius: var(--wp-radius); }
.wp-rp-tile-label { color: var(--wp-muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.wp-rp-tile-value { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wp-rp-tile-sub { margin-top: 2px; color: var(--wp-muted); font-size: 11px; }
.wp-rp-tile.is-danger { border-left: 3px solid var(--wp-danger); }
.wp-rp-tile.is-danger .wp-icon { color: var(--wp-danger); }
.wp-rp-tile.is-warning { border-left: 3px solid var(--wp-warning); }
.wp-rp-tile.is-warning .wp-icon { color: var(--wp-warning); }
.wp-rp-tile.is-success { border-left: 3px solid var(--wp-success); }
.wp-rp-tile.is-success .wp-icon { color: var(--wp-success); }
.wp-rp-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; padding: 8px 10px; background: var(--wp-panel-2); border-radius: var(--wp-radius-sm); line-height: 1.45; }
.wp-rp-note > .wp-icon { margin-top: 1px; color: var(--wp-accent); }
.wp-rp-note.is-warning > .wp-icon { color: var(--wp-warning); }
.wp-rp-note.is-success > .wp-icon { color: var(--wp-success); }
.wp-rp-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; color: var(--wp-muted); text-align: center; }
.wp-rp-empty .wp-icon { color: var(--wp-accent); }
.wp-rp-empty p { max-width: 520px; margin: 0; line-height: 1.5; }

/* Charts */
.wp-rp-chartbox { min-width: 0; }
.wp-rp-chart { display: block; overflow: visible; font-family: var(--wp-font); }
.wp-rp-gridline { stroke: var(--wp-grid-line); stroke-width: 1; }
.wp-rp-axis { stroke: var(--wp-border-strong); stroke-width: 1; }
.wp-rp-tick { fill: var(--wp-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.wp-rp-catlabel { fill: var(--wp-text); font-size: 11px; }
.wp-rp-value { fill: var(--wp-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.wp-rp-direct { fill: var(--wp-text); font-size: 11px; }
.wp-rp-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wp-rp-line.is-dash { stroke-dasharray: 6 4; }
.wp-rp-marker { stroke: var(--wp-status-date); stroke-width: 1.5; stroke-dasharray: 4 3; }
.wp-rp-marker-label { fill: var(--wp-status-date); font-size: 10.5px; font-weight: 600; }
.wp-rp-guide { stroke: var(--wp-muted); stroke-width: 1; }
.wp-rp-dot { stroke: var(--wp-panel); stroke-width: 2; }
.wp-rp-hit { fill: transparent; }
.wp-rp-slip { stroke: var(--wp-baseline); stroke-width: 2; }
.wp-rp-ms-baseline { fill: var(--wp-panel); stroke: var(--wp-baseline); stroke-width: 1.5; }
.wp-rp-ms-current { fill: var(--wp-series-1); stroke: var(--wp-panel); stroke-width: 1.5; }
.wp-rp-ms-current.is-late { fill: var(--wp-danger); }
.wp-rp-ms-current.is-complete { fill: var(--wp-success); }
.wp-rp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; color: var(--wp-text); font-size: 11.5px; }
.wp-rp-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.wp-rp-swatch { display: inline-block; flex: none; width: 14px; height: 10px; border-radius: 2px; background: var(--c); }
.wp-rp-swatch.is-line { height: 2px; border-radius: 1px; }
.wp-rp-swatch.is-line.is-dash { background: linear-gradient(90deg, var(--c) 0 60%, transparent 60%); background-size: 6px 2px; }
.wp-rp-swatch.is-ms-current, .wp-rp-swatch.is-ms-baseline, .wp-rp-swatch.is-ms-late { width: 9px; height: 9px; margin: 0 2px; border-radius: 0; transform: rotate(45deg); }
.wp-rp-swatch.is-ms-current { background: var(--wp-series-1); }
.wp-rp-swatch.is-ms-baseline { background: var(--wp-panel); box-shadow: inset 0 0 0 1.5px var(--wp-baseline); }
.wp-rp-swatch.is-ms-late { background: var(--wp-danger); }
.wp-rp-swatch.is-status.is-success, .wp-rp-seg.is-success { background: var(--wp-success); }
.wp-rp-swatch.is-status.is-accent, .wp-rp-seg.is-accent { background: var(--wp-series-1); }
.wp-rp-swatch.is-status.is-danger, .wp-rp-seg.is-danger { background: var(--wp-danger); }
.wp-rp-swatch.is-status.is-muted, .wp-rp-seg.is-muted { background: #b7bdcb; }
.wp-rp-statusbar { display: flex; gap: 2px; height: 16px; margin: 4px 0 10px; overflow: hidden; border-radius: 4px; }
.wp-rp-seg { min-width: 3px; }
.wp-rp-ring { flex: none; }
.wp-rp-ring-track { fill: none; stroke: var(--wp-grid-line); stroke-width: 12; }
.wp-rp-ring-value { fill: none; stroke: var(--wp-series-1); stroke-width: 12; stroke-linecap: round; }
.wp-rp-ring-pct { fill: var(--wp-text); font: 600 22px var(--wp-font); }
.wp-rp-ring-cap { fill: var(--wp-muted); font: 11px var(--wp-font); }
.wp-rp-tip {
  position: fixed; z-index: 4000; min-width: 140px; max-width: 320px; padding: 7px 10px;
  background: #1e2233; color: #f2f3f8; border-radius: 5px; box-shadow: var(--wp-shadow);
  font-size: 12px; line-height: 1.45; pointer-events: none;
}
.wp-rp-tip-title { margin-bottom: 2px; font-weight: 600; }
.wp-rp-tip-row { display: flex; align-items: center; gap: 6px; }
.wp-rp-tip-name { flex: 1; color: #cdd1e2; }
.wp-rp-tip b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tables */
.wp-rp-tablewrap { max-height: 520px; overflow: auto; border: 1px solid var(--wp-border); border-radius: var(--wp-radius-sm); }
.wp-rp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wp-rp-table th { position: sticky; top: 0; z-index: 1; padding: 0; background: var(--wp-panel-2); border-bottom: 1px solid var(--wp-border-strong); white-space: nowrap; }
.wp-rp-sort {
  display: flex; align-items: center; gap: 4px; width: 100%; height: 28px; padding: 0 8px;
  border: 0; background: none; color: var(--wp-text); font-weight: 600; cursor: pointer;
}
.wp-rp-table th.is-right .wp-rp-sort { justify-content: flex-end; }
.wp-rp-table th.is-center .wp-rp-sort { justify-content: center; }
.wp-rp-sort:hover { background: var(--wp-hover); }
.wp-rp-sort .wp-icon { color: var(--wp-accent); }
.wp-rp-table td { max-width: 320px; padding: 4px 8px; overflow: hidden; border-bottom: 1px solid var(--wp-grid-line); text-overflow: ellipsis; white-space: nowrap; }
.wp-rp-table td.is-right { text-align: right; }
.wp-rp-table td.is-center { text-align: center; }
.wp-rp-table td.is-danger { color: var(--wp-danger); font-weight: 600; }
.wp-rp-table td.is-warning { color: var(--wp-warning); font-weight: 600; }
.wp-rp-table td.is-success { color: var(--wp-success); }
.wp-rp-table tbody tr { cursor: default; }
.wp-rp-table tbody tr:hover { background: var(--wp-hover); }
.wp-rp-table tr.is-empty td { padding: 14px; color: var(--wp-muted); text-align: center; }
.wp-rp-status-tag { display: inline-block; padding: 0 7px; border-radius: 9px; font-size: 11px; line-height: 17px; }
.wp-rp-status-tag.is-success { background: #e2f4ea; color: #126b3a; }
.wp-rp-status-tag.is-danger { background: #fde7e8; color: #a11c27; }
.wp-rp-status-tag.is-accent { background: var(--wp-accent-weak); color: var(--wp-accent-strong); }
.wp-rp-status-tag.is-muted { background: #eef0f4; color: #5c6378; }
.wp-rp-flag { display: inline-flex; align-items: center; gap: 4px; }
.wp-rp-flag.is-danger { color: var(--wp-danger); font-weight: 600; }

/* ==========================================================================
   Printing
   ========================================================================== */
@media print {
  .wp-rp-tip { display: none !important; }
  .wp-report.is-print { max-width: none; padding: 0; }
  .wp-report.is-print .wp-rp-header { display: none; }
  .wp-report.is-print .wp-rp-grid { display: block; }
  .wp-report.is-print .wp-rp-card { margin: 0 0 4mm; border-color: #bbb; box-shadow: none; break-inside: avoid; }
  .wp-report.is-print .wp-rp-tablewrap { max-height: none; overflow: visible; border: 0; }
  .wp-report.is-print .wp-rp-table th { position: static; }
  .wp-report.is-print .wp-rp-table td { white-space: normal; }
  .wp-report.is-print .wp-rp-tile { break-inside: avoid; }
  .wp-cal-grid.is-print { border-color: #999; }
  .wp-cal-grid.is-print .wp-cal-weeks { display: block; }
  .wp-cal-grid.is-print .wp-cal-week { height: 27mm; break-inside: avoid; }
  .wp-cal-bar, .wp-cal-day.is-nonworking, .wp-usage-print td.is-over, .wp-rp-seg, .wp-rp-swatch { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wp-usage-print td.is-over { color: #c00; font-weight: 600; }
  .wp-nd-print { max-height: 180mm; }
}
