table.list.issue-priorities input[type='number'] {
  width: 100px;
}

.additionals-block .info-block {
  margin-top: 10px;
  margin-left: 5px;
}

/* mobile icon color */
.flyout-is-active .list.reports .icon::before {
  color: inherit;
  text-shadow: none !important;
}

div.reporting-colorbox {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  display: inline-block;
  vertical-align: middle;
}

.legend-box.non-working {
  color: var(--a-color-disabled);
}

ul.reporting-list {
  padding-left: 20px;
}

/* background image overview */
body.controller-reporting_reports #content {
  background-image: url("/assets/plugin_assets/redmine_reporting/bg-reporting-178a4489.png") !important;
  background-position: bottom left !important;
  background-repeat: repeat-x !important;
  padding-bottom: 150px;
}

.query-template-group ol {
  list-style: none;
  counter-reset: item;
  padding-left: 2px;
}

.query-template-group ol > li {
  counter-increment: item;
  margin-bottom: 5px;
}

.query-template-group ol > li::before {
  margin-right: 10px;
  content: counter(item);
  background: var(--oc-blue-4);
  border-radius: 100%;
  color: var(--a-color-white);
  width: 1.5em;
  height: 1.5em;
  text-align: center;
  display: inline-block;
  padding: 2px;
}

tr.version td.name::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  margin-left: -13px;
  vertical-align: middle;
  background-color: transparent;
}

tr.version.current td.name::before {
  background-color: var(--a-color-success);
}

tr.version.version-closed td.name::before {
  background-color: var(--a-color-disabled);
}

tr.version.overdue td.name::before {
  background-color: var(--a-color-alert);
}

/* stylelint-disable selector-class-pattern */
table.list tr.overdue td.due_date_with_version { color: var(--a-color-alert); }
/* stylelint-enable selector-class-pattern */

tr.version.version-closed,
tr.version.version-closed a { color: var(--a-color-muted); }

/* sidebar list padding */
#sidebar ul.reporting-project li {
  padding-bottom: 2px;
}

/* Dashboard block: latest logins */

#block-lastestlogins ul.reporting-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--a-color-border-light);
}

#block-lastestlogins .login-time {
  color: var(--a-color-text-muted);
  font-size: var(--a-font-size-sm);
  white-space: nowrap;
}

/* sidebar image padding */
#sidebar ul.list.reports li { padding: 2px; }

#reporting-map {
  display: block;
  overflow-y: visible;
  height: 500px;
}

.reporting-full-width {
  display: block;
  float: left;
  width: 100%;
  padding-top: 10px;
}

.reporting-full-width.duration {
  height: 250px;
}

.reporting-activity-block {
  display: block;
  height: 200px;
  width: 600px;
  margin-top: 20px;
  margin-bottom: 10px;
}

div.dashboard .box h3,
div.dashboard .box h3::before {
  color: var(--a-color-info);
}

.flex-center.link-list {
  column-gap: 5px;
  margin-top: 10px;
  margin-bottom: 18px;
  padding: 5px;
  border-top: 1px solid var(--a-color-border-light);
  border-bottom: 1px solid var(--a-color-border-light);
  background: var(--a-color-white);
}

.additionals-table-of-values svg.icon-svg {
  vertical-align: middle;
}

/* project/counter icons follow the color of their wrapper (or the text) */
svg.icon-svg.reporting-project-icon,
svg.icon-svg.counter-value-icon {
  stroke: currentcolor;
}

/* the project icon scales with the surrounding text (page title, lists) and
   sits like a text glyph */
svg.icon-svg.reporting-project-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.timelog-weekend-row {
  background-color: var(--oc-pink-1);
}

/* stylelint-disable selector-class-pattern */
table.projects td.parent_id,
table.projects td.short_description,
table.logs td.message,
table.list td.filename {
  text-align: left;
}
/* stylelint-enable selector-class-pattern */

.controller-projects.action-index #content table td {
  padding-top: 5px;
  padding-bottom: 5px;
}

/* harddrive space */
.harddrive-space {
  display: block;
  float: left;
  height: 100px;
  width: 100%;
}

.mermaid .task {
  height: 20px;
}

/* Fix https://github.com/mermaid-js/mermaid/issues/1984 */
div.mermaid svg {
  height: auto;
}

/* Hide the diagram until it has been converted to a diagram by mermaid.js (until data-processed="true") */
.mermaid:not([data-processed='true']) { display: none; }

.icon-sla.fulfilled svg {
  stroke: none;
  fill: var(--a-color-success);
}

.icon-sla.violation svg {
  stroke: none;
  fill: var(--a-color-alert);
}

.icon-sla.open svg {
  stroke: none;
  fill: var(--a-color-orange);
}

/* Treemap toolips */
.treemap-tooltip-table {
  width: 100%;
}

.treemap-tooltip-table .data {
  text-align: right;
}

.query-columns select {
  width: 250px !important;
}

.reporting-closed-issue-chart-info {
  text-align: right;
}

table.reports td.description {
  color: var(--a-color-info);
  font-size: var(--a-font-size-sm);
  padding: 4px;
  text-align: left;
  white-space: normal;
}

#issue-status-description-button {
  margin-left: 4px;
  cursor: pointer;
}

.workflow-graph-container {
  margin-top: 20px;
}

#reporting-issue-workflow-dialog {
  background-color: var(--a-color-white);
}

.reporting-legend {
  display: block;
  width: 95%;
  margin-top: 10px;
  background: var(--a-color-white);
  border: 1px solid var(--a-color-input-border);
  border-radius: 3px;
  padding: 8px;
}

.reporting-legend .legend-title {
  margin-bottom: 5px;
  font-weight: bold;
}

.reporting-legend .legend-item {
  margin-right: 15px;
}

#tab-content-members td.rate {
  text-align: left;
}

.email-address {
  white-space: nowrap;
  display: inline-block;
}

table.subject_header td.avatar {
  display: table-cell;
  vertical-align: top;
  text-align: left;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  padding-right: 8px;
  padding-left: 0;
}

table.subject_header td.avatar .avatar.s64 {
  inline-size: 64px;
  block-size: 64px;
}

span[role='img'].avatar.s64 {
  font-size: calc(4rem * 0.4);
}

#reporting-burndown-wrapper {
  height: 400px;
}

body.controller-versions.action-show #reporting-burndown-wrapper {
  margin: 2em 0;
  clear: both;
}

/* WIP limits section in the query edit form: stack one status per row with a
   fixed-width label so the small number inputs line up. */
p#task_board_wip_limits .info {
  display: block;
  margin-bottom: 6px;
}

p#task_board_wip_limits .taskboard-wip-limit-row {
  display: block;
  margin-bottom: 4px;
}

p#task_board_wip_limits .taskboard-wip-limit-row label {
  display: inline-block;
  width: 180px;
  margin-right: 8px;
  font-weight: normal;
}

p#task_board_wip_limits .taskboard-wip-limit-row input {
  width: 60px;
}
