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

.chart-box {
  height: 100%;
  padding: 20px 25px;
}

.chart-box.TREEMAP {
  padding-bottom: 25px;
}

.chart-box.INDEX {
  padding-bottom: 0;
}

.chart-box.high {
  outline: 2px solid #4285f4;
}

.chart-box .chart-body {
  height: 100%;
  z-index: 1;
  margin-top: -20px;
  padding-top: 20px;
}

.chart-box .chart-head {
  position: relative;
  margin: 0;
  z-index: 2;
}

.chart-box .chart-head .chart-title {
  cursor: move;
  margin-right: 80px;
  font-weight: bold;
  height: 20px;
  line-height: 20px;
}

.chart-box .chart-head .chart-title.ui-draggable-disabled {
  cursor: default;
}

.chart-box .chart-head .chart-oper {
  position: absolute;
  right: 0;
  top: 0;
  display: none;
}

.chart-box .chart-head .chart-oper a {
  color: #000;
  opacity: 0.4;
  display: inline-block;
  height: 20px;
  margin-left: 10px;
  padding-left: 3px;
}

.chart-box .chart-head .chart-oper a:hover {
  opacity: 0.7;
}

.chart-box .chart-head .chart-oper a .zmdi {
  font-size: 1.3rem;
  vertical-align: middle;
}

.chart-box .chart-head .chart-oper a .zmdi-close {
  font-size: 1.45rem;
}

.chart-box .chart-head .chart-oper a .zmdi-fullscreen,
.chart-box .chart-head .chart-oper a .zmdi-fullscreen-exit {
  font-size: 1.43rem;
}

.chart-undata {
  margin: 0;
  color: #999;
  display: inline-block;
  font-size: 1.1rem;
}

.chart-undata > .icon {
  font-size: 3rem;
  display: block;
  text-align: center;
}

.chart-body .chart {
  line-height: normal;
  height: 100%;
  cursor: default;
}

.chart .table {
  margin: 0;
  padding: 0;
  background-color: #fff;
}

.chart.index {
  overflow: hidden;
  position: relative;
  margin-top: -15px;
}

.chart.index > .data-item {
  display: inline-block;
  text-align: left;
  max-width: 100%;
}

.chart.index > .data-item p {
  font-size: 1.1rem;
  margin-bottom: 1px;
  opacity: 0.8;
  line-height: 1;
}

.chart.index > .data-item strong {
  font-size: 3.1rem;
  font-weight: 400;
}

.grid-stack-item.fullscreen .chart.index > .data-item p {
  font-size: 3rem;
}

.grid-stack-item.fullscreen .chart.index > .data-item strong {
  font-size: 8.8rem;
  zoom: 1 !important;
}

.chart.index > .data-item a {
  color: #404040;
}

.chart.index > .data-item a:hover {
  opacity: 0.9;
}

.chart.ctable {
  position: relative;
  width: 100%;
  margin-top: 15px;
}

.chart.ctable .table td,
.chart.ctable .table th {
  padding: 10px 10px;
  cursor: default;
  font-size: 1rem;
}

.chart.ctable .table td > div {
  min-height: 16px;
}

.chart.ctable .table td.active,
.chart.ctable .table td.highlight {
  outline: 1px solid #4285f4;
  background-color: #f5f8fd;
}

.chart.ctable .table tr.highlight {
  background-color: #dee2e6;
}

.chart.ctable .table td:first-child.active {
  border-left: 1px solid #4285f4;
}

.chart.ctable .table th {
  background-color: #eceff1;
  border-width: 1px;
  font-weight: normal;
}

.chart.ctable .table.line-number thead th:first-child,
.chart.ctable .table.line-number tbody th:first-child {
  width: 50px;
}

.chart.ctable .table.sums tbody tr:last-child td {
  font-weight: bold;
}

.chart-box.ApprovalList,
.chart-box.FeedsSchedule,
.chart-box.ProjectTasks {
  padding: 20px 0 0;
}

.chart-box.ApprovalList .chart-head,
.chart-box.FeedsSchedule .chart-head,
.chart-box.ProjectTasks .chart-head {
  margin: 0 25px;
}

.chart.ApprovalList,
.chart.FeedsSchedule,
.chart.ProjectTasks {
  position: relative;
  width: 100%;
  margin-top: 5px;
}

.chart.ApprovalList .table,
.chart.FeedsSchedule .table,
.chart.ProjectTasks .table {
  border-bottom: 1px solid #dee2e6;
}

.chart.ApprovalList .table th,
.chart.FeedsSchedule .table th,
.chart.ProjectTasks .table th {
  border-top: 0 none;
  padding-top: 0;
  padding-bottom: 6px;
  font-weight: normal;
}

.chart.ApprovalList .table td,
.chart.FeedsSchedule .table td,
.chart.ProjectTasks .table td {
  padding: 8px 10px;
}

.chart.ApprovalList .table tr th:first-child,
.chart.ApprovalList .table tr td:first-child,
.chart.FeedsSchedule .table tr th:first-child,
.chart.FeedsSchedule .table tr td:first-child,
.chart.ProjectTasks .table tr th:first-child,
.chart.ProjectTasks .table tr td:first-child {
  padding-left: 25px;
}

.chart.ApprovalList .table tr th:last-child,
.chart.ApprovalList .table tr td:last-child,
.chart.FeedsSchedule .table tr th:last-child,
.chart.FeedsSchedule .table tr td:last-child,
.chart.ProjectTasks .table tr th:last-child,
.chart.ProjectTasks .table tr td:last-child {
  padding-right: 23px;
}

.chart.FeedsSchedule span.badge,
.chart.ProjectTasks span.badge {
  display: inline-block;
  font-weight: normal;
  padding: 3px 5px;
  line-height: 1;
  margin-top: 2px;
}

.chart-box.ApprovalList .progress-wrap {
  padding: 10px 25px 15px;
  background-color: #fff;
}

.chart-box.ApprovalList .progress-wrap.sticky {
  position: sticky;
  top: 0;
}

.chart-box.ApprovalList .progress-wrap .progress-bar:hover {
  cursor: pointer;
  opacity: 0.8;
}

.chart-box.ApprovalList .progress-wrap .progress-bar.active {
  font-weight: bold;
  box-shadow: inset 3px 3px 3px rgba(0, 0, 0, 0.15);
}

.chart.FeedsSchedule,
.chart.ProjectTasks {
  margin-top: 13px;
}

.chart.FeedsSchedule td > .content,
.chart.ProjectTasks td > .content {
  max-height: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #404040;
  display: inline-block;
  line-height: 1;
}

.chart.FeedsSchedule td > .content:hover,
.chart.ProjectTasks td > .content:hover {
  opacity: 0.8;
}

.chart.FeedsSchedule td > .content p,
.chart.ProjectTasks td > .content p {
  margin: 0;
  line-height: 1.4;
}

.chart.ProjectTasks tr.priority-2 td:first-child,
.chart.ProjectTasks tr.priority-3 td:first-child {
  border-left: 5px solid #f7b904;
  padding-left: 20px;
}

.chart.ProjectTasks tr.priority-3 td:first-child {
  border-left-color: #ea3f30;
}

.chart.ProjectTasks tr.status-1 a,
.chart.ProjectTasks tr.status-1 label {
  color: #8c8c8c;
  opacity: 0.5;
}

.chart-select-wrap .nav-pills .nav-link {
  padding: 0.7rem 1rem;
}

.chart-list > div {
  border: 1px solid #eee;
  padding: 0;
  max-height: 48px;
  overflow: hidden;
  cursor: default;
}

.chart-list > div + div {
  margin-top: 6px;
}

.chart-list > div:hover {
  border-color: #4285f4;
}

.chart-list > div .title {
  margin-top: 7px;
}

.chart-list > div .title strong,
.chart-list > div .title p {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  font-weight: normal;
}

.chart-list > div .title p > span + span {
  margin-left: 6px;
}

.chart-list > div .title p > span + span::before {
  content: '·';
  color: #aaa;
  margin-right: 6px;
  font-weight: bolder;
}

.chart-list > div .btn {
  min-width: 0;
  height: 48px;
  line-height: 48px;
  width: 60px;
  background-color: #eee;
  border-radius: 0;
  border: 0 none;
}

.chart-list > div:hover .btn {
  background-color: #4285f4;
  color: #fff;
}

.chart-list > div .delete {
  font-size: 1.2rem;
  color: #a1a1a1;
  padding: 8px;
  margin-top: 3px;
  margin-right: 6px;
  display: none;
}

.chart-list > div:hover .delete {
  display: block;
}

.chart-list > div .chart-icon {
  width: 48px;
  text-align: center;
}

.chart-list > div .chart-icon > i {
  width: 32px;
  height: 32px;
  display: inline-block;
  margin-top: 7px;
  background: url(../img/charts-sprite.svg?v=1.10) no-repeat -1092px -1410px;
}

.chart-list > div .chart-icon > i.TABLE {
  background-position: -1180px -1464px;
}

.chart-list > div .chart-icon > i.INDEX {
  background-position: -170px -1288px;
}

.chart-list > div .chart-icon > i.LINE {
  background-position: -1106px -1326px;
}

.chart-list > div .chart-icon > i.BAR {
  background-position: -1501px -1406px;
}

.chart-list > div .chart-icon > i.PIE {
  background-position: -978px -1326px;
}

.chart-list > div .chart-icon > i.FUNNEL {
  background-position: -709px -387px;
}

.chart-list > div .chart-icon > i.TREEMAP {
  background-position: -1020px -1464px;
}

.chart-list > div .chart-icon > i.RADAR {
  background-position: -362px -1288px;
}

.chart-list > div .chart-icon > i.SCATTER {
  background-position: -650px -1288px;
}

.chart-list > div .chart-icon > i.BARNEGATIVE {
  background-position: -1290px -1288px;
}

.chart-list > div .chart-icon > i.DOLOR {
  background-position: -956px -1464px;
}

.chart-list > div .chart-icon > i.CNMAP {
  background-position: -938px -1288px;
}

.chart-list > div .chart-icon > i.SUNBURST {
  background-position: -1372px -1464px;
}

.sortable-box.h200 {
  height: 208px;
}

.sortable-box.h200 .dd-list {
  height: 200px;
}

.chart-box.DataList .chart.ctable tbody,
.chart-box.DataList .chart.ctable thead {
  border: 1px solid #dee2e6;
}

.chart-box.DataList .chart.ctable .td-sm {
  padding: 4px 10px;
}

.chart-box.DataList .chart.ctable thead th.sort-asc::after,
.chart-box.DataList .chart.ctable thead th.sort-desc::after {
  position: absolute;
  font: normal normal normal 14px/1 'Material-Design-Iconic-Font';
  content: '\f2fc';
  font-size: 18px;
  color: #4285f4;
  font-weight: normal;
  margin-left: 4px;
  margin-top: -1px;
}

.chart-box.DataList .chart.ctable thead th.sort-desc::after {
  content: '\f2f9';
}

.chart-box.DataList .chart.ctable thead th:hover,
.chart-box.DataList .chart.ctable thead th:active {
  cursor: pointer;
  background-color: #dee2e6;
}

.chart-box.DataList .table td,
.chart-box.DataList .table td > div {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  clear: both;
  max-width: 400px;
}

.DataList-showfields .select2-container--default .select2-selection--single .select2-selection__arrow b::after {
  font-family: 'Material Design Icons', serif;
  content: '\f0415';
  font-size: 1.4rem;
  margin-left: -2px;
}

.DataList-showfields .sortable-box .dd-item .sort.desc::before {
  content: '\F05BF';
}

.DataList-showfields .sortable-box .dd-item.active .sort {
  color: #4285f4 !important;
}
