body,
button,
html,
input,
select,
textarea {
  color: #4d4d4d;
  font: 14px "Helvetica Neue", Arial, Helvetica, sans-serif;
  line-height: 18px;
}

body {
  background-color: #888;
  padding: 0;
  margin: 0;
}

#header {
  background: rgba(0, 0, 0, 0.15);
  min-height: 30px;
  text-align: center;

  overflow: hidden;
  padding: 5px;
  z-index: 10;
}
#header h1 {
  color: #fff;
  font-size: 1.5em;
  line-height: 1.5em;
  margin: 0.2em;
}

.header-buttons {
  position: absolute;
  top: 5px;
  left: 5px;
}

.header-btn {
  background: -webkit-linear-gradient(
    top,
    rgba(255, 255, 255, 0.3) 0,
    rgba(255, 255, 255, 0.2) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3) 0,
    rgba(255, 255, 255, 0.2) 100%
  );
  color: #f3f3f3;
  display: block;
  font-weight: 700;
  line-height: 30px;
  margin-right: 8px;
  min-width: 30px;
  padding: 2px;
  user-select: none;

  position: relative;
  min-height: 40px;
  border: 0px;

  border-radius: 3px;
  text-decoration: none;
  float: left;
}
.header-btn:hover {
  background: -webkit-linear-gradient(
    top,
    rgba(255, 255, 255, 0.5) 0,
    rgba(255, 255, 255, 0.4) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0,
    rgba(255, 255, 255, 0.4) 100%
  );
}

#status {
  background-color: #4d4d4d;
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 30px;
  height: 30px;
  border-radius: 50px;
  display: flex;
  vertical-align: middle;
  align-content: center;
  flex-wrap: wrap;
  font-weight: bold;
  padding: 0 0.3rem;
}
#status.status-ok {
  background-color: #4fb100;
}
#status.status-warn {
  color: #000000;
  background-color: #b6d87b;
}
#status.status-ko {
  color: #FFFFFF;
  background-color: #b10000;
}
#status.status-error {
  color: #000000;
  background-color: #ffdd00;
}

nav ul {
  margin-bottom: 0px;
  padding-left: 0;
}
nav li {
  display: inline-block;
  min-width: 5em;
  padding: 0.4em 0.8em;
  background: #bbb;
  text-align: center;
  margin-bottom: 0px;
  border-radius: 0.5rem 0.5rem 0 0;
  margin-right: 2px;
}
nav li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}
nav li:hover {
  background-color: #d6d6d6;
}
nav li.active {
  background-color: #fff;
}
nav li.active a {
  color: #222;
}

.content {
  padding: 0px;
}

.content > div p {
  /* position: absolute; */
  top: 0;
  right: 0;
  padding: 3px 10px;
  background: #eee;
}

div#msg {
  background: #fff;
  padding: 0.3em;
}

.info {
  position: relative;
}

#list {
  padding: 0px 20px;
  max-width: 350px;
  float: left;
}
@media only screen and (max-width: 320px) {
  #list {
    max-width: 350px;
  }
}

ul#list-status,
ul#list-boards,
ul#list-backlogs {
  display: block;
  float: left;
  background: #fff;
  padding: 10px;
  list-style-type: none;
  border: 1px solid #ddd;
  border-radius: 3px;
}

ul#list-status input[type="checkbox"],
ul#list-boards input[type="checkbox"],
ul#list-backlogs input[type="checkbox"] {
  accent-color: currentcolor;
}

#list li {
  border: 1px solid #999;
  border-radius: 0.75rem;
  margin: 3px;
  min-height: 2em;
  list-style-type: none;
  padding: 3px;
  background-color: #fff;
  overflow: hidden;
}

#list-boards li.alert,
#list-backlogs li.alert {
  background-color: #ffc5c5;
}

#list li h2 {
  font-size: 1.1em;
  margin: 0.2rem 0 0.5rem;
}

#list li h2 a {
  text-decoration: none;
  color: #4d4d4d;
}

#list li .card-body {
  background-color: #eee;
  color: #333;
  border-radius: 0.5rem;
  padding: 0.2rem;
}

#list li.futuretask,
#list li .card-body.futuretask {
  background-color: #eee;
  color: #999;
  opacity: 0.6;
}

#list li.latetask,
#list li .card-body.latetask {
  border: 2px solid;
  color: #a94442;
  background-color: #ffc5c5;
  border-color: #ff9999;
}

#list li.todaytask,
#list li .card-body.todaytask {
  border: 2px solid;
  color: #a97c42;
  background-color: #e4d57f;
  border-color: #e4d57f;
}
.card-header {
  display: flex;
  font-size: 0.8rem;
  justify-content: flex-start;
  align-items: center;
  min-height: 1rem;
  padding: 0.2rem;
}

.card-header .id {
  display: inline-block;
  margin-left:auto;
  padding: 1px 2px;
  text-decoration: none;
}
.card-header .board {
  display: inline-block;
  margin: 0 4px 0 0;
  padding: 1px 2px;
  text-decoration: none;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: bold;
}
.card-header .board a {
  text-decoration: none;
  color: inherit;
}

.badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
}
.badge {
  color: #8c8c8c;
  display: inline-block;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 1px 2px;
  text-decoration: none;
  text-overflow: ellipsis;

  background: #fff;
  border-radius: 3px;
  font-size: 0.8rem;
}

.list-doing {
  background-color: #4fb100; /*GREEN*/
  color: #fff;
}

.list-waiting {
  background-color: #b19c00; /* YELLOW */
  color: #fff;
}

.list-to-do {
  background-color: #b10000; /* RED */
  color: #fff;
}

.creation-date {
  background-color: #ccebe9;
}
.due-date {
  background-color: #dffdcf;
}

.latetask .date,
.latetask .due-date {
  background-color: #ebccd1;
}
.todaytask .date,
.todaytask .due-date {
  background-color: #ebe8cc;
}

#scrumBoard {
  float: right;
  border: 1px solid #ddd;
  padding: 0.3em;
  background: #e2e4e6;
  border-radius: 3px;
}
#scrumBoard span {
  display: block;
}

span#totalTask {
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  line-height: 1.6em;
}

.btn-board-reload {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  color: #aaa;
  padding: 0 2px;
  vertical-align: middle;
}
.btn-board-reload:hover {
  color: #333;
}

.board-sub-counts {
  display: inline-flex;
  gap: 2px;
  margin-left: 3px;
  vertical-align: middle;
}

#scrumBoard span.sub-counters {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-top: 3px;
}

#scrumBoard span.sub-count,
.board-sub-counts .sub-count {
  display: inline-block;
  font-size: 0.62em;
  font-weight: normal;
  padding: 1px 5px;
  border-radius: 3px;
  min-width: 18px;
  text-align: center;
  line-height: 1.6;
}

.board-sub-counts .sub-count {
  padding: 0 3px;
  min-width: 14px;
}

.count-late {
  background-color: #ffc5c5;
  color: #a94442;
  border: 1px solid #ff9999;
}

.count-today {
  background-color: #e4d57f;
  color: #a97c42;
  border: 1px solid #c8bb4a;
}

.count-future {
  background-color: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.btn-postpone {
  background: #e0e0e0;
  border: 1px solid #bbb;
  border-radius: 3px;
  color: #555;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  padding: 3px 8px;
}
.btn-postpone:hover {
  background: #c8e6c9;
  border-color: #81c784;
  color: #2e7d32;
}
.btn-postpone:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.no-list-separator {
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 4px;
  margin-top: 2px;
  list-style: none;
}

.no-list-board {
  font-size: 0.85em;
  color: #bbb;
  list-style: none;
}

.no-list-board a {
  color: #bbb;
  text-decoration: none;
}

#scrumBoard span.iterationTasks,
span.iterationTasks {
  display: inline-block;
  font-size: 0.8em;
  opacity: 0.5;
}
