/*!
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved.

rebuild is dual-licensed under commercial and open source licenses (GPLv3).
See LICENSE and COMMERCIAL in the project root for license information.
*/

.ps-toolbar {
  padding: 5px 20px;
  padding-top: 7px;
  background-color: #fff;
  border-bottom: 1px solid #e6e6e6;
  height: 52px;
}

.ps-toolbar h4 {
  margin: 10px 0;
  line-height: 1;
}

.project-head {
  display: inline-block;
  padding-right: 71px;
  position: relative;
}

.project-head .project-action {
  position: absolute;
  top: 0;
  right: 0;
  padding-top: 8px;
  padding-left: 6px;
  text-align: left;
  width: 70px;
  display: none;
}

.project-head:hover .project-action {
  display: block;
}

.project-head .project-action a {
  padding: 3px;
  margin-left: 3px;
}

.project-head .badge {
  font-weight: normal;
  border-radius: 99px;
  color: #777;
  padding: 0 8px;
  margin-left: 5px;
}

.project-head .badge + .badge {
  margin-left: 0;
}

#plan-boxes {
  white-space: nowrap;
  overflow: auto;
  margin: 0;
  padding-left: 20px;
  padding-bottom: 15px;
  display: flex;
  cursor: default;
}

#plan-boxes .plan-box-wrapper {
  flex: 0 0 320px;
  margin: 0;
}

#plan-boxes .plan-box-wrapper .plan-box {
  width: 300px;
}

.plan-box .plan-header .plan-title {
  font-weight: bold;
  margin: 15px 0;
}

.plan-box .plan-header .plan-title > small {
  font-weight: normal;
  font-size: 1rem;
  color: #777;
}

.plan-box .task-list {
  margin-bottom: 8px;
}

.plan-box .task-list .no-tasks {
  color: #999;
}

.task-card {
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  padding: 12px 14px 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.task-card:last-child {
  margin-bottom: 0;
}

.task-card:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  border-left: 6px solid #4285f4;
  padding-left: 8px !important;
}

.task-content-wrapper {
  display: flex;
  width: 100%;
}

.task-content-wrapper .task-status {
  width: 30px;
  overflow: hidden;
}

.task-content-wrapper .task-status .custom-control {
  margin-left: 2px;
}

.task-content-wrapper .task-content {
  flex: 1;
  padding: 4px 0;
}

.task-content-wrapper .task-content .badge {
  font-weight: normal;
  font-size: 12px;
  padding: 0.07692rem 0.38rem;
}

.task-content .task-title {
  color: #444;
  margin-bottom: 4px;
}

.task-content .task-time {
  font-size: 12px;
  color: #999;
}

.task-content .task-time .badge {
  margin-top: 2px;
  margin-bottom: 1px;
}

.task-content .task-tags {
  margin: 0 0 4px;
  word-wrap: break-word !important;
  word-break: break-all !important;
  white-space: normal !important;
}

.task-content .task-tags > a {
  font-size: 12px;
  display: inline-block;
  margin-top: 4px;
  margin-right: 8px;
}

.task-content .task-tags > a > i {
  float: left;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background-color: #ccc;
  margin-right: 4px;
  transform: translateY(4px);
}

.task-content .task-extras {
  margin-top: 4px;
}

.task-content .task-extras > .avatar,
.task-content .task-extras > .icon {
  float: left;
  cursor: default;
}

.task-content .task-extras > .avatar img,
td.task-user > .avatar img {
  width: 24px;
  height: 24px;
}

.task-content .task-extras > .avatar + .avatar {
  margin-left: -10px;
}

.task-content .task-extras > .icon {
  font-size: 1.3rem;
  color: #999;
  margin-top: 5px;
}

.task-content .task-extras > .badge {
  background-color: #f7f7f7;
  color: #595959;
  border-width: 0;
  margin-top: 4px;
}

.task-card.highlight {
  box-shadow: none;
  opacity: 0.6;
  min-height: 34px;
}

.task-card.ui-sortable-helper {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.task-card.priority-0:hover {
  border-color: #aaa;
}

.task-card.priority-1:hover {
  border-color: #3d82f4;
}

.task-card.priority-2 {
  border-left: 3px solid #f7b904;
  padding-left: 11px;
}

.task-card.priority-2:hover {
  border-color: #f7b904;
  border-width: 6px;
}

.task-card.priority-3 {
  border-left: 3px solid #ea3f30;
  padding-left: 11px;
}

.task-card.priority-3:hover {
  border-color: #ea3f30;
  border-width: 6px;
}

.task-card.status-1:hover {
  border-color: #fff;
}

.task-card.status-1:hover {
  border-color: #fff !important;
}

.task-card.status-1,
.task-card.status-1 .task-title,
.task-card.status-1 .task-time,
.task-card.status-1 .custom-control-input:checked ~ .custom-control-label::after,
.status-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  color: #8c8c8c;
  border-color: #fff !important;
}

.task-card.status-1 .custom-control-input ~ .custom-control-label::before,
.status-checkbox .custom-control-input ~ .custom-control-label::before {
  border-color: #ccc;
  background-color: #fff !important;
}

.task-card.status-1 .task-card-body {
  opacity: 0.5;
}

.task-card.newbtn {
  text-align: center;
  font-size: 1.75rem;
  color: #aaa;
  padding: 2px 0 !important;
  border: 0 none !important;
}

.task-card.newbtn:hover {
  color: #4285f4;
}

.task-card.newtask {
  cursor: default;
  padding: 14px 16px !important;
  border: 0 none !important;
  margin-bottom: 12px;
}

.task-card.newtask .task-card-body textarea {
  border: 1px solid #d5d8de;
  resize: none;
  -webkit-appearance: none;
}

.task-card.newtask .task-card-body textarea:focus {
  border: 1px solid #ccc;
}

.task-card.newtask .task-card-body > div + div {
  margin-top: 12px;
}

.modal.rbview.task .modal-dialog .modal-content {
  width: 888px;
  margin-right: -1000px;
}

/* v3.7 */

.ps-toolbar {
  position: sticky;
  top: 61px;
  background-color: #fff;
  z-index: 1;
}

.ps-toolbar .input-search {
  width: 267px;
  margin-right: 0;
}

.ps-toolbar .input-search .input-group-btn {
  right: 36px;
}

.ps-toolbar .input-search input + .btn-input-clear {
  right: 69px;
}

.ps-toolbar .J_view > .btn,
.ps-toolbar .J_sorts > .btn {
  padding-left: 20px;
  padding-right: 0;
  width: auto;
  min-width: auto;
  margin-left: 20px;
}

.ps-toolbar .J_view > .btn > .icon,
.ps-toolbar .J_sorts > .btn > .icon {
  font-size: 17px;
  top: 11.5px;
  left: 0;
  position: absolute;
}

.ps-toolbar .J_filterbtn .icon {
  font-size: 16px !important;
}

.plan-list-wrapper {
  width: 980px;
  margin: 20px auto;
  margin-bottom: 7px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 18px 30px -16px rgba(157, 159, 169, 0.31);
  border-radius: 6px;
}

.plan-list-wrapper table thead th {
  border-top: 0 none;
  border-width: 1px;
}

.plan-list-wrapper table tbody tr:hover {
  background-color: #eee;
  cursor: pointer;
}

.plan-list-wrapper table tbody tr:last-child {
  border: 1px solid #dee2e6;
}

.plan-list-wrapper table th {
  padding-top: 15px;
}

.plan-list-wrapper table td {
  vertical-align: top;
}

.plan-list-wrapper table > tbody > tr > td:first-child {
  border-left: 3px solid transparent;
}

.plan-list-wrapper table > tbody > tr.priority-0 > td:first-child {
  border-left-color: #aaa;
}

.plan-list-wrapper table > tbody > tr.priority-1 > td:first-child {
  border-left-color: transparent;
}

.plan-list-wrapper table > tbody > tr.priority-2 > td:first-child {
  border-left-color: #f7b904;
}

.plan-list-wrapper table > tbody > tr.priority-3 > td:first-child {
  border-left-color: #ea3f30;
}

td.task-state {
  padding-left: 20px;
  padding-right: 0;
  width: 45px;
}

td.task-title > div {
  padding-top: 1px;
}

td.task-time {
  font-size: 12px;
  color: #999;
}

tr.status-1 {
  color: #8c8c8c;
  opacity: 0.6;
}

tr.status-1 .custom-control-input:checked ~ .custom-control-label::after {
  color: #8c8c8c;
  border-color: #fff !important;
}

tr.status-1 .custom-control-input ~ .custom-control-label::before {
  border-color: #ccc;
  background-color: #fff !important;
}
