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: #ccc;
}

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;
}

.planning-report li {
  border-bottom: 1px solid #eee;
  padding: 4px;
}

.budget-report li {
  text-align: center;
  padding: 3px 0 !important;
  border-bottom: 1px solid #eee;
}

.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: #65a8ff;
  border-radius: 100%;
  color: white;
  width: 1.5em;
  height: 1.5em;
  text-align: center;
  display: inline-block;
  padding: 2px;
}

#block-countergroups .odd,
#block-countergroups .even {
  background-color: var(--a-color-white);
  padding: 10px 10px 0;
  margin-bottom: 10px;
  border-radius: 5px;
}

#block-countergroups .odd:last-child,
#block-countergroups .even:last-child {
  margin-bottom: 0;
}

ul.nav {
  list-style: none outside none;
  margin: 10px;
  padding: 0;
  text-align: center;
}

ul.nav li {
  padding: 10px 15px;
  margin: 10px;
  display: inline;
}

ul.counter-list li,
#block-countergroups ul li {
  display: inline-block;
  font-size: 110%;
  width: 195px;
  border-radius: 5px;
  box-shadow: 0 0 4px #ccc;
  list-style: none !important;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* Mobile */
@media only screen and (max-width: 899px) {
  ul.counter-list li,
  #block-countergroups ul li {
    width: 30%;
  }
}

@media only screen and (max-width: 600px) {
  ul.counter-list li,
  #block-countergroups ul li {
    width: 48%;
  }
}

@media only screen and (max-width: 415px) {
  ul.counter-list li,
  #block-countergroups ul li {
    width: 98%;
  }
}

ul.counter-list,
#block-countergroups ul {
  padding-left: 0 !important;
  margin-bottom: 0;
  color: var(--a-color-white);
}

ul.counter-list a {
  display: block;
  background-color: var(--a-color-white);
  opacity: 0.5;
  text-align: center;
  color: var(--a-color-black);
  padding: 5px !important;
  font-weight: bold;
  font-size: 90%;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

tr.version td.name::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f111'; /* fas fa-dot */
  margin-left: -13px;
  padding-right: 3px;
  font-size: 80%;
  color: transparent;
}

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

tr.version.version-closed td.name::before {
  color: #ccc;
}

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

/* stylelint-disable selector-class-pattern */
table.list tr.overdue td.due_date_with_version { color: #c22; }
/* stylelint-enable selector-class-pattern */

tr.version.version-closed,
tr.version.version-closed a { color: #999; }

#block-countergroups ul a {
  display: block;
  background-color: var(--a-color-white);
  opacity: 0.5;
  text-align: center;
  color: var(--a-color-black);
  padding: 5px !important;
  font-weight: bold;
  font-size: 90%;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

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

/* 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: #888;
}

.flex-center.link-list {
  column-gap: 5px;
  margin-top: 10px;
  margin-bottom: 18px;
  padding: 5px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fefefe;
}

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

.reporting-weekend-row {
  background-color: #ffdfe6;
}

#block-countergroups h3 {
  font-size: 0.85rem;
  border-bottom: 1px solid #ddd;
}

/* 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 */

h2#page-title.query::before {
  font-weight: 900;
  content: '\f201'; /* line-chart */
}

.list.reports .icon.icon-projects::before {
  content: '\f1b2'; /* fa-cube */
}

.list.reports .icon.icon-user::before {
  content: '\f007'; /* user */
  padding-right: 8px !important;
}

.list.reports .icon.icon-member::before {
  content: '\f2be'; /* fa-user-circle-o */
  padding-right: 8px !important;
}

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

.counter-list span.fab::before,
.counter-list span.far::before,
.counter-list span.fas::before {
  font-size: 80%;
}

.reporting-budget-chart {
  display: block;
  float: right;
  height: 230px !important;
  width: 200px !important;
}

#project-budget-chart {
  background: #fff;
}

/* Budget box */
.budget-report {
  width: 49%;
  margin: 10px 10px 0;
  padding: 10px 10px 0;
  list-style: none;
  font-weight: bold;
  display: inline;
}

.budget-report .label {
  display: block;
  font-weight: normal !important;
}

/* Planning box style */
.planning-report {
  list-style: none;
  padding: 8px;
}

/* FontAwesome Icon style */
.planning-report .far {
  padding-right: 4px;
}

/* Budget box style */
.budget.box {
  padding: 0;
  border-radius: 0 0 3px 3px;
  background: #97ccd4;
  min-height: 230px;
  border: 1px solid #fff;
  margin-bottom: 0;
  line-height: 1.2em;
}

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

.for-fa-title { padding-right: 3px; }

.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: orange;
}

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

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

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

.reporting-counter-value {
  text-shadow: 0 -1px 1px rgb(0 0 0 / 25%);
  font-weight: bold;
  padding: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 49px;
}

.reporting-counter-value.level1 {
  font-size: 260%;
}

.reporting-counter-value.level2 {
  font-size: 235%;
}

.reporting-counter-value.level3 {
  font-size: 180%;
}

.counter-value-icon {
  font-size: 90%;
  margin-right: 2px;
}

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

table.reports td.description {
  color: #777;
  font-size: 90%;
  padding: 4px;
  text-align: left;
  white-space: normal;
}

div.counter-block { margin-top: 1em; }

#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: #fefefe;
  border: 1px solid #ccc;
  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;
}

.nowrap { white-space: nowrap; }

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

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