.sprint-badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: .85em; background: #e8e8ee; color: #444; }
.sprint-badge.current { background: #5b4bc4; color: #fff; }
.sprint-badge.closed, .sprint-badge.locked { background: #eee; color: #777; }
.sprint-badge.planning { background: #fff1c2; color: #6b5300; }
.sprint-badge.planned { background: #d6f0dd; color: #1d5b2f; }
table.sprints td.name, table.milestones td.name { text-align: left; font-weight: 600; }
table.sprints td.progress, table.milestones td.progress { width: 180px; }
table.sprints tr.closed td.name a { color: #777; font-weight: 400; }
#sprint-date-hint { color: #a35b00; }
div.sprint-summary { margin-bottom: 12px; }
#milestones { clear: both; padding-top: 12px; margin-bottom: 24px; }

/* Busca de versions no Roadmap. */
.roadmap-search { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.roadmap-search input { width: 360px; max-width: 100%; box-sizing: border-box; padding: 6px 10px; }
.roadmap-search-count { color: #666; font-size: 0.9em; }

/* Painel de indicadores da sprint. */
.sprint-dashboard { margin-top: 8px; }
.sprint-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sprint-kpi { border: 1px solid #e2e2e8; border-radius: 8px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.sprint-kpi-label { color: #666; font-size: .85em; }
.sprint-kpi strong { font-size: 1.8em; line-height: 1.2; color: #333; }
.sprint-kpi span:last-child { color: #777; font-size: .85em; }
.sprint-card { border: 1px solid #e2e2e8; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; background: #fff; min-width: 0; }
.sprint-card h3 { margin: 0 0 10px; font-size: 1em; display: flex; align-items: baseline; gap: 10px; }
.sprint-card-link { font-weight: 400; font-size: .85em; margin-left: auto; }
.sprint-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.sprint-hint { color: #777; font-size: .85em; margin: 6px 0 0; }
.sprint-burndown { width: 100%; height: auto; max-height: 300px; display: block; }
.sprint-burndown .bd-grid { stroke: #ececf1; }
.sprint-burndown .bd-axis { fill: #888; font-size: 11px; }
.sprint-burndown .bd-weekend { fill: #f6f6f9; }
.sprint-burndown .bd-today { stroke: #f0b429; stroke-dasharray: 3 3; }
.sprint-burndown polyline { fill: none; stroke-width: 2; }
.sprint-burndown .bd-ideal { stroke: #9aa0a6; stroke-dasharray: 5 4; stroke-width: 1.5; }
.sprint-burndown .bd-scope { stroke: #c9c2f0; }
.sprint-burndown .bd-remaining { stroke: #5b4bc4; stroke-width: 2.5; }
.sprint-burndown .bd-dot { fill: #5b4bc4; }
.sprint-legend { margin: 6px 0 0; font-size: .85em; color: #555; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bd-key { display: inline-block; width: 18px; height: 0; border-top: 3px solid; margin-left: 10px; }
.bd-key:first-child { margin-left: 0; }
.bd-key.bd-remaining { border-color: #5b4bc4; }
.bd-key.bd-scope { border-color: #c9c2f0; }
.bd-key.bd-ideal { border-top: 2px dashed #9aa0a6; }
table.sprint-bars { width: 100%; border-collapse: collapse; }
table.sprint-bars td, table.sprint-bars th { padding: 3px 4px; font-size: .9em; }
table.sprint-bars th { color: #888; font-weight: 400; text-align: right; }
table.sprint-bars td.name { width: 38%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
table.sprint-bars td.bar { width: 50%; }
table.sprint-bars td.bar span { display: inline-block; height: 10px; vertical-align: middle; }
table.sprint-bars td.bar span.open { background: #b8b0ea; }
table.sprint-bars td.bar span.closed { background: #2e9e57; }
table.sprint-bars td.count { text-align: right; width: 6%; color: #444; }
ul.sprint-issue-list { margin: 0; padding-left: 18px; }
ul.sprint-issue-list li { margin: 3px 0; font-size: .9em; }

/* Tarefas paradas, ao lado do cabeçalho da version. */
.stalled-issues { float: right; clear: right; width: 420px; max-width: 45%; box-sizing: border-box; margin: 0 0 12px 16px; padding: 10px 14px; border: 1px solid #e2e2e8; border-radius: 8px; background: #fff; }
.stalled-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.stalled-head h3 { margin: 0; font-size: 1em; }
.stalled-head select { margin-left: auto; max-width: 55%; }
.stalled-status { margin-top: 6px; }
.stalled-status ul { margin: 2px 0 0; padding-left: 18px; }
.stalled-status li { font-size: .9em; margin: 2px 0; }
.stalled-status li.stalled-old a { color: #b42318; }
.stalled-status li.stalled-none { color: #888; list-style: none; margin-left: -18px; }
@media (max-width: 900px) { .stalled-issues { float: none; width: auto; max-width: none; margin-left: 0; } }
