.licence-notice {
  font-size: 14px;
  display: block;
  opacity: 0.6;}

clr-modal.root-modal {
  ::ng-deep {
    .modal-body-wrapper {
      height: calc(100% - 60px);
    }

    .modal-content {
      height: 80vh;
    }
  }

  .modal-footer {
    padding: 0;
  }

  .modal-body {
    max-height: 100%;
    height: 100%;
  }

  z-index: 1300;
}

dc-tree {
  overflow: auto;
  flex: 1;
}

.tooltip-long {
  word-break: break-word;
}

.add-new {
  width: 50%;
  padding-right: 5px;
}

.viewbox-limit-notice {
  opacity: .7;
  color: #E74C3C
}

.currently-open {
  width: 50%;

  .open-viewbox {
    cursor: pointer;
    padding: 3px 5px;

    &.selected {
      background: #3c85002e;
    }

    &:hover {
      background: #e8e8e8;
    }
  }
}

.viewboxes-container {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 999; // make it 1020 if there are issues
}

.viewbox {
  min-width: 200px;
  min-height: 200px;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: all;

  display: flex;
  flex-direction: column;

  border-top-left-radius: 3px;
  border-top-right-radius: 3px;

  box-shadow: 0px 0px 10px -3px black;

  &.focused {
    z-index: 1100;
    outline: none;
  }

  .content {
    border: 1px solid #0000004d;
    background: white;
    height: 100%;
    width: 100%;
    flex: 1;
    overflow-x: auto;
  }

  .drag-handle {
    width: 100%;
    min-height: 20px;
    background-color: #3c8500;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;

    color: #fff;
    padding: 0 5px;

    pointer-events: all;

    .table-title {
      white-space: pre-wrap;
      word-break: break-all;
    }

    .actions {
      display: flex;
      min-width: 35px;

      clr-icon {
        cursor: pointer;
        margin-left: 5px;

        &:hover {
          transform: scale(1.3);
        }
      }
    }
  }

  .click-icon {
    cursor: pointer;

    &:hover {
      transform: scale(1.3);
    }
  }

  .dragHandle {
    position: absolute;
    // bottom: -8px;
    // right: -8px;
    // background-color: black;
  }

  .dragHandle.corner {
    width: 15px;
    height: 15px;
    cursor: nwse-resize;
  }

  .dragHandle.right {
    width: 2px;
    height: 100%;
    cursor: ew-resize;
  }

  .dragHandle.bottom {
    height: 2px;
    width: 100%;
    cursor: ns-resize;
  }

}

.cols-search {
  width: 100%;
  margin-top: 5px;

  border: 1px solid #00000047;
  border-radius: 3px;
}

.cols-list {
  border: solid 1px #ccc;
  min-height: 60px;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  width: 400px;
  max-width: 100%;
  margin-top: 5px;
}

.col-box {
  padding: 2px 10px;
  border-bottom: solid 1px #ccc;
  color: rgba(0, 0, 0, 0.87);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: move;
  background: white;
  font-size: 14px;

  &.search:focus {
    background: #0000001a;
  }

  &.primaryKeyHeaderStyle {
    background: #306b0024;
  }
}

.cdk-drag-preview {
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
              0 8px 10px 1px rgba(0, 0, 0, 0.14),
              0 3px 14px 2px rgba(0, 0, 0, 0.12);
  z-index: 1300 !important;
}

.cdk-drag-placeholder {
  opacity: 0;
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.col-box:last-child {
  border: none;
}

.cols-list.cdk-drop-list-dragging .col-box:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

// FIXME
// Let's leave it here for a reference if there
// is an issue with viewboxes/filter modal overlaying
// we will remove it if no issues found
// clr-modal.filter-modal {
//   ::ng-deep {
//     .modal {
//       z-index: 1210 !important;
//     }
//   }
// }

.disabled {
  opacity: 0.5;
  transform: none !important;
  pointer-events: none;
}

.filter-active {
  color: #0072a3;
}

hot-table {
  ::ng-deep {
    .firstColumnHeaderStyle button.changeType {
      display: none;
    }

    .handsontable tbody th.ht__highlight, .handsontable thead th.ht__highlight {
      &.primaryKeyHeaderStyle {
        background: #306b00b0;
      }
    }

    .primaryKeyHeaderStyle {
      background: #306b006e;
    }

    th.readonlyCell {
      div {
        opacity: 0.4;
      }
    }

    td.readonlyCell {
      opacity: 0.5
    }
  }
}