.team-work-hours {
  min-width: 0;
  padding: 15px 18px 18px;
  border: 1px solid #34474c;
  border-radius: 8px;
  background: var(--home-surface);
  color: var(--home-ink);
  font-variant-numeric: tabular-nums;
  container-type: inline-size;
}
.team-work-hours [data-tone="below"] { color: var(--home-amber); }
.team-work-hours [data-tone="met"] { color: var(--home-mint); }
.team-hours-header, .team-hours-heading, .team-hours-controls, .team-hours-filters, .team-hours-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team-hours-header, .team-hours-filters { justify-content: space-between; flex-wrap: wrap; row-gap: 10px; }
.team-hours-heading > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  color: var(--home-mint);
  background: #203833;
}
.team-work-hours svg { width: 18px; height: 18px; }
.team-hours-heading h4 { margin: 0; font-size: 16px; letter-spacing: 0; }
.team-hours-heading small, .team-hours-notice, .team-hours-empty { color: var(--home-muted); font-size: 12px; }
.team-hours-controls { flex-wrap: wrap; }
.team-hours-controls label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--home-muted); }
.team-hours-controls :is(input, select), .team-hours-icon, .team-hours-tabs button, .team-hours-detail {
  min-height: 34px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid #405559;
  border-radius: 6px;
  color: var(--home-ink);
  background: #111a1f;
  font: inherit;
  font-size: 13px;
}
.team-hours-controls input[type="search"] { width: 160px; }
.team-hours-controls input::placeholder { color: var(--home-muted); }
.team-hours-icon, .team-hours-detail, .team-hours-tabs button { cursor: pointer; }
.team-hours-icon { display: inline-grid; place-items: center; width: 34px; padding: 0; }
.team-hours-icon:disabled { opacity: .4; cursor: default; }
.team-work-hours :is(button:not(:disabled):hover, input:hover, select:hover) { border-color: #72a29a; }
.team-work-hours :is(button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--home-mint); outline-offset: 2px; }
.team-hours-notice { margin: 10px 0; }
.team-hours-notice[data-error] { color: var(--home-amber); }
.team-hours-metrics {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-block: 10px;
  border-block: 1px solid var(--home-line);
}
.team-hours-metric { display: grid; gap: 3px; min-width: 0; padding-inline: 12px; border-left: 1px solid var(--home-line); }
.team-hours-metric:first-child { border-left: 0; padding-left: 0; }
.team-hours-metric strong { font-size: 21px; line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; }
.team-hours-metric span, .team-hours-metric small { color: var(--home-muted); font-size: 12px; }
.team-hours-filters { margin: 12px 0; }
.team-hours-tabs { flex-wrap: wrap; gap: 4px; }
.team-hours-tabs button[aria-pressed="true"] { border-color: #609187; color: var(--home-mint); background: #203832; }
.team-hours-chart { margin: 0; padding: 10px 12px; background: #111a1f; border-radius: 6px; }
.team-hours-chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.team-hours-chart figcaption strong { font-size: 13px; }
.team-hours-chart figcaption span { display: inline-flex; align-items: center; gap: 5px; color: var(--home-muted); font-size: 12px; }
.team-hours-chart figcaption span:last-child { margin-left: auto; }
.team-hours-chart figcaption i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.team-hours-chart li, .team-hours-chart-axis { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(0, 5fr) 9ch; gap: 8px; align-items: center; }
.team-hours-chart-axis { color: var(--home-muted); font-size: 12px; }
.team-hours-chart-axis div { display: flex; justify-content: space-between; }
.team-hours-chart-list { display: grid; gap: 3px; max-height: 150px; overflow: auto; margin: 4px 0 0; padding: 0; list-style: none; scrollbar-width: thin; scrollbar-gutter: stable; }
.team-hours-chart-axis { overflow: hidden; scrollbar-gutter: stable; }
.team-hours-chart li { min-height: 22px; font-size: 12px; }
.team-hours-chart-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-hours-chart li > strong { text-align: end; }
.team-hours-track { position: relative; height: 12px; border-radius: 3px; background: #233239; }
.team-hours-track::before { position: absolute; inset: 0 auto 0 50%; width: 1px; background: #96afb4; content: ""; }
.team-hours-track > span { position: absolute; inset-block: 2px; left: 50%; width: var(--pct); border-radius: 2px; background: currentColor; }
.team-hours-track > span:not([data-tone=""]) { min-width: 2px; }
.team-hours-track > span[data-tone="below"] { right: 50%; left: auto; }
.team-hours-table-wrap { width: 100%; overflow-x: auto; margin-top: 12px; scrollbar-width: thin; }
.team-hours-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; text-align: start; }
.team-hours-table caption { padding: 3px 0 9px; text-align: left; font-weight: 700; }
.team-hours-table caption span { margin-left: 6px; font-size: 12px; color: var(--home-muted); font-weight: 400; }
.team-hours-table :is(td, th) { padding: 7px 8px; text-align: start; border-bottom: 1px solid var(--home-line); }
.team-hours-table thead { background: #1d2b31; color: var(--home-muted); font-size: 12px; white-space: nowrap; }
.team-hours-table tbody tr:hover { background: #18262b; }
.team-hours-table th[scope="row"] { max-width: 220px; min-width: 120px; overflow-wrap: anywhere; }
.team-hours-table td:last-child { white-space: nowrap; }
.team-hours-table small { display: block; margin-top: 1px; font-size: 11px; color: var(--home-muted); font-weight: 400; }
.team-hours-status { display: inline-block; padding: 3px 6px; border: 1px solid #435559; border-radius: 4px; white-space: nowrap; font-size: 12px; }
.team-hours-detail { min-height: 29px; }
@container (max-width: 600px) {
  .team-hours-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-hours-metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .team-hours-chart li, .team-hours-chart-axis { grid-template-columns: minmax(55px, 1fr) minmax(0, 2fr) 8ch; }
}
@media (max-width: 520px) {
  .team-work-hours { padding: 12px; }
  .team-hours-metric strong { font-size: 18px; }
  .team-hours-table caption { position: sticky; left: 0; width: max-content; max-width: 290px; }
}
