.lp-proj-results { width: 100%; min-width: 0; gap: 16px; color: var(--lp-ink); container: project-results / inline-size; } .lp-proj-series-heading, .lp-proj-series-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .lp-proj-series-heading { align-items: center; flex-wrap: wrap; } .lp-proj-series-heading > h4 { margin-right: auto; } .lp-proj-series-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; min-width: 0; } .lp-proj-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .lp-proj-kpi-card, .lp-proj-series-card { border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); background: var(--lp-surface); } .lp-proj-kpi-card { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; min-height: 156px; padding: 16px; font-variant-numeric: tabular-nums; text-align: center; } .lp-proj-kpi-value { display: flex; align-items: center; justify-content: center; min-height: 36px; width: 100%; } .lp-proj-series-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; } .lp-proj-series-body { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 16px; min-height: 240px; min-width: 0; } .lp-proj-series-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; font-variant-numeric: tabular-nums; } .lp-proj-series-summary > h5, .lp-proj-kpi-card > h5 { margin: 0; font-size: var(--lp-fs-sm); font-weight: 500; color: var(--lp-muted); } .lp-proj-series-total { font-size: var(--lp-fs-xl); font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; } .lp-proj-kpi-value > .lp-proj-series-total { font-size: var(--lp-fs-lg); white-space: nowrap; overflow-wrap: normal; } .lp-proj-series-total[data-sign="up"] { color: var(--lp-green-deep); background: var(--lp-green-tint); } .lp-proj-series-total[data-sign="down"] { color: var(--lp-red-deep); background: var(--lp-red-tint); } .lp-proj-series-total[data-sign] { padding: 0 4px; border-radius: var(--lp-r-sm); } .lp-proj-series-period { color: var(--lp-muted); font-size: var(--lp-fs-xs); } .lp-proj-series-action { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 32px; padding: 4px 8px; border: 0; border-radius: var(--lp-r-sm); background: transparent; color: inherit; font: inherit; font-size: var(--lp-fs-xs); cursor: pointer; } .lp-proj-series-action:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .lp-proj-series-action:disabled { opacity: 0.55; cursor: not-allowed; } .lp-proj-series-card .lp-chart { position: relative; padding: 0; border: 0; border-radius: 0; background: transparent; } .lp-proj-series-card .lp-chart > figcaption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .lp-proj-series-card .lp-chart-plot svg { min-width: 320px; } .lp-proj-series-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-width: 0; } .lp-proj-scope { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; color: var(--lp-muted); font-size: var(--lp-fs-xs); } .lp-proj-scope-select { box-sizing: border-box; width: 280px; min-width: 0; max-width: 100%; height: 32px; padding: 4px 8px; border: var(--lp-hairline-width) solid var(--lp-line); border-radius: var(--lp-r-sm); background: var(--lp-surface); color: var(--lp-ink); font: inherit; font-size: var(--lp-fs-xs); font-variant-numeric: tabular-nums; } .lp-proj-range-preset { width: 200px; } .lp-proj-scope-select:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } /* One date range for every chart: a full-width month band under the controls, one window and two grips. The bottom rule divides the band from the KPI cards. */ .lp-proj-range { width: 100%; min-width: 0; padding: 4px 0 8px; border-bottom: var(--lp-hairline-width) solid var(--lp-line); color: var(--lp-muted); font-size: var(--lp-fs-2xs); font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; } .lp-proj-range-track { box-sizing: border-box; height: 72px; padding: 0 16px; cursor: pointer; touch-action: pan-y; } .lp-proj-range[data-state="loading"] { height: 72px; border-radius: var(--lp-r-md); background: var(--lp-surface-2); } .lp-proj-range-rail { position: relative; height: 100%; } /* Days past the last selectable day stay on the track, faded, and no grip enters them. */ .lp-proj-range-future { position: absolute; top: 0; right: 0; bottom: 0; background: var(--lp-surface-2); opacity: 0.7; pointer-events: none; } .lp-proj-range-selection { position: absolute; top: 0; bottom: 0; box-sizing: border-box; border: 1.5px solid var(--lp-blue-solid); border-radius: 2px; background: var(--lp-blue-tint); } .lp-proj-range-selection::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lp-blue); opacity: 0; transition: opacity var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); } .lp-proj-range[data-dragging] .lp-proj-range-selection::after { opacity: 0.25; } .lp-proj-range-month { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translateX(-50%); pointer-events: none; line-height: 1.4; white-space: nowrap; } .lp-proj-range-year { color: var(--lp-ink); font-weight: 500; } /* A small solid tag inside the window's top left corner. RangeSlider clamps it to the strip. */ .lp-proj-range-chip { position: absolute; top: 4px; padding: 0 6px; border-radius: var(--lp-r-sm); background: var(--lp-blue-solid); color: var(--lp-surface); font-size: var(--lp-fs-2xs); font-weight: 500; line-height: 18px; white-space: nowrap; pointer-events: none; } /* The hit area and the bar grip are centred on the window's edge. */ .lp-proj-range-handle { position: absolute; top: 0; bottom: 0; display: grid; align-items: center; box-sizing: border-box; width: 24px; transform: translateX(-50%); cursor: ew-resize; touch-action: none; outline: none; } .lp-proj-range-handle { justify-items: center; } .lp-proj-range-handle[data-handle="from"] { margin-left: -3px; } .lp-proj-range-handle[data-handle="to"] { margin-left: 3px; } .lp-proj-range-handle::before { content: ""; box-sizing: border-box; width: 7px; height: 26px; border: 1.5px solid var(--lp-blue-solid); border-radius: var(--lp-r-pill); background: var(--lp-surface); transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); } .lp-proj-range-handle[data-active]::before { transform: scaleY(1.25); } /* Keyboard focus rings the grip only. A pointer focus shows no ring. */ .lp-proj-range:not([data-pointer]) .lp-proj-range-handle:focus-visible::before { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } /* SeriesChart keeps one SVG unit per pixel, so markers sit on the same x as their day. */ .lp-proj-chart-plot { position: relative; overflow-x: auto; } .lp-proj-chart-plot > svg { min-width: 320px; } .lp-proj-marker { position: absolute; width: 12px; transform: translateX(-50%); border-radius: var(--lp-r-sm); } .lp-proj-marker::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--lp-hairline-width); background: var(--lp-muted); } .lp-proj-marker[data-marker="target"]::before { background: var(--lp-yellow-deep); } .lp-proj-marker[data-marker="completed"]::before { background: var(--lp-green-deep); } .lp-proj-marker:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; } .lp-proj-marker:hover, .lp-proj-marker:focus { z-index: 1; } /* A thin full frame around the plot area, drawn over the grid and under the line. */ .lp-proj-plot-frame { fill: none; stroke: var(--lp-line-strong); stroke-width: 1; shape-rendering: crispEdges; pointer-events: none; } /* The planned window sits behind the grid and the line. */ .lp-proj-plan-span { fill: var(--lp-blue-tint); opacity: 0.75; pointer-events: none; } /* The value card opens inside the plot, beside the line, so the scrolling plot never clips it. */ .lp-proj-marker-label { position: absolute; top: 8px; left: calc(50% + 8px); display: flex; flex-direction: column; gap: 4px; box-sizing: border-box; width: max-content; padding: 8px 12px; border: var(--lp-hairline-width) solid var(--lp-line); border-radius: var(--lp-r-md); background: var(--lp-surface); box-shadow: var(--lp-panel-shadow); color: var(--lp-ink); font-size: var(--lp-fs-2xs); font-variant-numeric: tabular-nums; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); } .lp-proj-marker[data-card="before"] .lp-proj-marker-label { right: calc(50% + 8px); left: auto; } .lp-proj-marker-title { font-weight: 500; } .lp-proj-marker-value { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--lp-muted); } .lp-proj-marker-value > span { display: inline-flex; align-items: center; gap: 8px; } .lp-proj-marker-value > span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: var(--lp-r-pill); background: var(--lp-chart-navy, var(--lp-freeze-navy)); } .lp-proj-marker-value > strong { color: var(--lp-ink); font-weight: 500; } .lp-proj-marker:hover .lp-proj-marker-label, .lp-proj-marker:focus .lp-proj-marker-label { opacity: 1; } .lp-proj-series-notice { margin: 0; color: var(--lp-ink); font-size: var(--lp-fs-xs); line-height: 1.5; overflow-wrap: anywhere; } .lp-proj-series-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 16px; border: 1px solid var(--lp-line); border-radius: var(--lp-r-md); font-size: var(--lp-fs-sm); } .lp-proj-series-empty > p { margin: 0; } .lp-proj-series-value-skeleton { display: block; border-radius: var(--lp-r-sm); background: var(--lp-surface-2); width: 120px; height: 36px; } .lp-proj-series-loading { display: grid; flex: 1; place-items: center; min-height: 36px; } .lp-proj-series-spinner { display: block; width: 20px; height: 20px; box-sizing: border-box; border: 2px solid var(--lp-line); border-top-color: var(--lp-blue-deep); border-radius: 50%; animation: lp-proj-series-turn 1s linear infinite; } @keyframes lp-proj-series-turn { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .lp-proj-series-spinner { animation: none; } .lp-proj-marker-label { transition: none; } .lp-proj-range-selection::after, .lp-proj-range-handle::before { transition: none; } .lp-proj-range-handle[data-active]::before { transform: none; } } @container project-results (max-width: 800px) { .lp-proj-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @container project-results (max-width: 640px) { .lp-proj-series-stack { grid-template-columns: minmax(0, 1fr); } .lp-proj-series-card, .lp-proj-kpi-card { padding: 16px; } } @container project-results (max-width: 480px) { .lp-proj-kpi-row { grid-template-columns: minmax(0, 1fr); } } @media (hover: hover) and (pointer: fine) { .lp-proj-series-action:hover:not(:disabled) { background: var(--lp-wash); } } @media (max-width: 600px) { .lp-proj-series-card { padding: 16px; } .lp-proj-series-total { font-size: var(--lp-fs-lg); } }