.page-main {
  display: flex;
  flex-direction: column;
  width: calc(100% - 100px);
  height: calc(100vh - 60px);
  margin-left: 100px;
  padding: 20px 40px;
  box-sizing: border-box;
}
.page {
  display: none;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}
.page.active {
  display: flex;
}
.main-header {
  display: block;
  width: 100%;
  min-height: 100px;
  overflow: hidden;
}
.main-title {
  margin: 0;
  font-family: FiraSans, sans-serif;
  font-size: 35px;
  font-weight: normal;
  line-height: 45px;
  letter-spacing: 0.6px;
  text-align: left;
  color: #000000;
}
.main-description {
  margin-top: 5px;
  padding-left: 3px;
  font-family: FiraSans, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 18px;
  letter-spacing: 0.6px;
  text-align: left;
  color: #000000;
}
.main-content {
  display: flex;
  flex-wrap: wrap;
  padding-top: 10px;
}
.content-btn {
  width: 150px;
  margin-top: auto;
  margin-bottom: 20px;
  margin-right: 30px;
}
.main-content .input-block {
  margin-left: auto;
}
.main-content .input-form {
  height: 30px;
}
.main-content .select-block::before {
  top: 13px;
}
.main-content .select-block.active::before {
  top: 6px;
}
.main-content .select-list {
  top: 29px;
}
.table-wrapper {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 290px);
  overflow: auto;
}
.content-table {
  width: 100%;
}
.table-head {
  /* position: sticky; */
  top: 0;
}
.table-body {
  overflow: auto;
}
.table-row {
  padding: 10px 5px;
  box-sizing: border-box;
}
.table-row:nth-child(2n) {
  background-color: #f3f3f3;
}
.table-row-head {
  /* position: sticky; */
  top: 100px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.table-row:last-child {
  border-bottom-color: transparent;
}
.table-row-head .table-cell {
  position: relative;
  padding-left: 5px;
  padding-right: 20px;
  color: #000000;
  cursor: pointer;
  box-sizing: border-box;
}
.table-cell .enable-btn.active {
  border-color: transparent;
}
.table-row-head .table-cell span {
  position: absolute;
  top: calc(50% - 11px);
  right: 2px;
  min-width: 8px;
  height: 22px;
}
.table-row-head .table-cell span::before,
.table-row-head .table-cell span::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0px;
  height: 0;
  border: 4px solid transparent;
  border-bottom: 5px solid #5a5a5a;
  transition: 0.3s;
}
.table-row-head .table-cell span::after {
  top: 10px;
  border-top: 5px solid #5a5a5a;
  border-bottom: none;
}
.table-row-head .table-cell.sort span::before {
  display: block;
  top: 0;
  border-width: 5px;
  border-bottom: 7px solid #f5820d;
}
.table-row-head .table-cell.sort span::after {
  display: none;
}
.table-row-head .table-cell.reversed span::before {
  display: none;
}
.table-row-head .table-cell.reversed span::after {
  display: block;
  top: 5px;
  border-width: 5px;
  border-top: 7px solid #f5820d;
}
.table-row-head .table-cell.actions span::before,
.table-row-head .table-cell.actions span::after {
  display: none;
}
.table-cell {
  height: auto;
  /* width: 25%; */
  padding: 3px 5px;
  text-align: justify;
  font-family: FiraSans, sans-serif;
  font-size: 14px;
  letter-spacing: 0.2px;
  line-height: 16px;
  text-align: left;
  color: #000000;
}
.table-cell.actions {
  min-width: 50px;
  width: 80px;
  max-width: 80px;
  min-height: 100%;
  text-align: center;
  cursor: default;
}
[data-field="kqiId"] + .table-cell.actions,
[data-field="clientId"] + .table-cell.actions,
[data-field="kqiId"] + .table-cell.actions {
  display: flow-root;
  margin-left: auto;
}
.table-cell .enable-btn {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  margin: auto;
  border: 1px solid #5f5f5f;
  box-sizing: border-box;
  cursor: pointer;
}
.table-cell .enable-btn span {
  position: absolute;
  top: 1px;
  left: 2px;
  width: 20px;
  height: 13px;
  border: 2px solid #5f5f5f;
  border-right-color: transparent;
  border-top-color: transparent;
  box-sizing: border-box;
  opacity: 0;
  transform: rotate(-50deg);
  transition: 0.3s;
}
.table-cell .enable-btn input:checked + span {
  opacity: 1;
}
.table-cell .enable-btn input {
  display: none;
}
.table-cell .edit-btn,
.table-cell .remove-btn {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  background-color: transparent;
  background-image: url(../img/edit.png);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 16px;
}

.table-cell .remove-btn {
  margin-left: 13px;
  background-image: url(../img/trash.png);
  background-size: 15px;
}

.table-cell .edit-btn:hover, .remove-btn:hover {
  filter: brightness(50%);
}

.page-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 30px 0;
  background-color: rgba(0, 0, 0, 0.3);
  overflow: auto;
  z-index: 1000;
}
.page-modal.active {
  display: flex;
}
.modal-content {
  display: block;
  background-color: #fff;
  box-shadow: 0 7px 26px 0 rgba(0, 0, 0, 0.5);
  border: solid 1px #979797;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 35px;
  padding: 0 10px;
  background-color: #365d6d;
  box-sizing: border-box;
}
.modal-title {
  font-family: FiraSans, sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-align: left;
  color: #ffffff;
}
.modal-close {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0; 
  width: 3px;
  height: 14px;
  background-color: #efefef;
  border-radius: 2px;
  transform: rotate(45deg);
}
.modal-close::after {
  left: 6px;
  top: 0;
  transform: rotate(135deg);
}
.modal-close:hover::before,
.modal-close:hover::after {
  background-color: #fff;
}
.modal-form {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 0px 30px;
  box-sizing: border-box;
}
.input-block {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}
.input-label {
  font-family: FiraSans, sans-serif;
  font-size: 15px;
  letter-spacing: 0.2px;
  width: 281px;
  color: #000000;
}

.input-form {
  display: flex;
  flex-direction: column;
  width: 320px;
  height: 25px;
  margin-left: 30px;
  padding: 5px;
  border: solid 1px #979797;
  box-sizing: border-box;
  font-family: FiraSans, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0.2px;
  text-align: left;
  color: #000000;
  background-color: transparent;
  z-index: 2;
}

.gen-pass {
  position: absolute;
  right: 5px;
  z-index: 5;
}

.input-form[type="checkbox"] {
  width: 25px;
  margin: 0 0 0 325px;
}

.input-form:focus {
  border-color: #466e92;
  box-shadow: inset 0 0 10px 1px #dadada;
  outline: none;
}

.input-date-form {
  width: 200px;
  padding: 5px 10px;
  font-family: FiraSans, sans-serif;
  font-size: 14px;
}

textarea.input-form {
  height: 75px;
  min-height: 75px;
  max-height: 75px;
}
.select-block .input-form {
  padding-right: 25px;
  cursor: pointer;
}
.select-block::before,
.search-block::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 11px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: #a0a0a0;
  transition: 0.3s;
  cursor: pointer;
}
.select-block.active::before,
.search-block.active::before {
  top: 5px;
  border-top-color: transparent;
  border-bottom-color: #a0a0a0;
}
.select-block.active .select-list {
  opacity: 1;
  z-index: 100;
}
.select-list {
  position: absolute;
  top: 24px;
  right: 0;
  width: 320px;
  max-height: 200px;
  border: 1px solid #979797;
  box-sizing: border-box;
  background-color: #fff;
  overflow: auto;
  opacity: 0;
  z-index: -1;
  transition: 0.3s;
}
.select-list .item {
  display: block;
  width: 100%;
  height: auto;
  padding: 5px;
  box-sizing: border-box;
  font-family: FiraSans, sans-serif;
  font-size: 14px;
  line-height: 16px;
  cursor: pointer;
}
.select-list .item:hover {
  background-color: #c8e5fd;
}
.param-block {
  margin-bottom: 10px;
}
.param-block .input-block,
.parent .input-block {
  margin-bottom: 0;
}
.param-block .input-form {
  width: 276px;
  min-width: 276px;
  max-width: 276px;
}
.param-block .plus-btn {
  position: relative;
  width: 34px;
  min-width: 34px;
  height: 25px;
  margin-left: 10px;
  padding: 0;
  background-color: #ebebeb;
  border: solid 1px #979797;
}
.param-block .plus-btn::before,
.param-block .plus-btn::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 11px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.3);
}
.param-block .plus-btn::after {
  transform: rotate(90deg);
}

.param-block .remove-btn {
  position: relative;
  width: 34px;
  min-width: 34px;
  height: 25px;
  margin-left: 10px;
  padding: 0;
  border: solid 1px #a74646;
  background-color: #f17f7f;
  background-image: url(../img/trash.png);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 12px;
  filter: none;
}
.param-block .remove-btn:hover,
.param-block .remove-btn:focus {
  background-color: #e06969;
}

.search-block {
  position: relative;
}
.search-block .input-block:first-child {
  margin-bottom: 15px;
}
.search-block .result-list .list-item {
  cursor: all-scroll;
}
.search-block .all-list {
  position: absolute;
  top: 24px;
  height: auto;
  max-height: 112px;
  background-color: #fff;
  opacity: 0;
  z-index: -1;
  transition: 0.3s;
}
.search-block .all-list.active {
  opacity: 1;
  z-index: 100;
}
.input-list {
  position: relative;
  width: 320px;
  height: 112px;
  padding: 5px 0;
  border: solid 1px #979797;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}
.input-list.dragged {
  cursor: all-scroll;
}
.list-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  cursor: pointer;
}
.list-item:hover {
  background-color: #f4faff;
}
.list-item.active {
  background-color: #c8e5ff;
}
.list-item.dragged {
  background-color: rgba(211, 211, 211, 0.4);
  cursor: all-scroll;
}
.input-list .text {
  font-family: FiraSans, sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2px;
  text-align: left;
  color: #000000;
}
.input-list .trash {
  display: block;
  width: 15px;
  min-width: 15px;
  height: 15px;
  margin-left: 10px;
  background-color: transparent;
  background-image: url('../img/trash.png');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 12px;
  cursor: pointer;
}
.modal-btn {
  width: 100%;
  margin-top: 30px;
  margin-left: auto;
}

/* for mobile */
@media (max-width: 768px) {
  .page-header {
    height: 45px;
    padding: 0 15px;
  }
  .page-main {
    width: calc(100% - 40px);
    margin-left: 40px;
    padding: 10px 20px;
  }
  .main-title {
    font-size: 25px;
    line-height: 35px;
  }
  .content-table {
    margin-top: 15px;
    overflow-x: auto;
  }
  .table-row {
    padding: 5px 0;
  }
  .table-row-head {
    min-width: max-content;
    padding: 10px 0;
  }
  .table-cell {
    font-size: 12px;
    line-height: 14px;
  }
  .table-cell:nth-child(1) {
    min-width: 30px;
    max-width: 30px;
  }
  .table-cell:nth-child(2) {
    min-width: 80px;
    max-width: 120px;
  }
  .table-cell:nth-child(3) {
    min-width: 80px;
    max-width: 220px;
  }
  .table-cell:nth-child(4) {
    min-width: 80px;
    max-width: 180px;
  }

  .modal-content {
    width: 300px;
  }
  .modal-header {

  }
  .modal-form {
    margin-top: 15px;
    padding: 0 10px;
  }
  .input-block {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 15px;
  }
  .input-label {
    /* margin-top: 10px; */
    margin-bottom: 5px;
    font-size: 14px;
  }
  .input-form {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    margin: 0;
  }
  .select-block::before,
  .search-block::before {
    top: 30px;
  }
  .select-block.active::before,
  .search-block.active::before {
    top: 24px;
  }
  .select-block.active .select-list {
    top: 43px;
  }
  .filter-block.select-block.active .select-list {
    top: 29px;
  }
  .param-block {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .param-block .input-form {
    width: 236px;
  }
  .search-block .all-list {
    top: 43px;
  }
  .input-list {
    width: 280px;
  }
  .modal-btn {
    margin-top: 15px;
    margin-bottom: 10px;
  }
}



/* TOOL */
/* .copy-block .control-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
} */
.copy-modal .modal-content .copy-btn {
  margin-left: auto;
}
.copy-block .copy-title {
  font-size: 16px;
  line-height: 20px;
}
.copy-block .copy-btn {
  font-size: 14px;
}
.copy-block .select-block {
  position: relative;
  margin-bottom: 0px;
}
.copy-block .input-form {
  width: 200px;
  min-width: 200px;
  margin-left: 0;
}
.copy-open-btn, .import-sso-open-btn {
  width: min-content;
  margin-top: auto;
  margin-bottom: 20px;
}
.copy-modal .modal-content {
  position: relative;
  width: 300px;
}
.copy-block {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 200px;
  height: 130px;
  margin: 20px auto;
}

.import-sso-modal .modal-content {
  position: relative;
  width: 600px;
}

.import-sso-modal .import-sso-block input, .import-sso-modal .import-sso-block select {
  width: 450px;
}

.import-sso-modal .import-sso-block span {
  width: 100px;
  display: inline-block;
}

.import-sso-modal .import-sso-block textarea {
  width: 550px;
  height: 100px;
}

.import-sso-modal p {
  margin: 10px 20px;
}

.copy-to-client-account {
  font-family: FiraSans, sans-serif;
  display: flex;
  flex-direction: column;
}

.copy-to-client-account p {
  display: flex;
  justify-content: space-around;
}

.copy-to-client-account select {
  width: 400px;
}

/* filter */

.filter-block {
  width: 240px;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 20px;
  margin-left: auto;
}
.filter-block .input-block {
  margin: 0;
  width: inherit;
}
.filter-block .filter-title {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 20px;
}
.filter-block .input-form {
  width: inherit;
  margin-left: 0;
}

.filter-block .select-list {
  width: inherit;
}


/* calendar */
.page-main .daterangepicker.auto-apply .drp-buttons {
  display: flex;
  justify-content: space-evenly;
}
.page-main .daterangepicker.auto-apply .drp-buttons .btn {
  height: 25px;
  padding: 0px 5px;
}

.one-row-inputs {
  text-align: right;
}
.one-row-inputs .input-block {
  display: inline-block;
  vertical-align: top;
  margin-right: 25px;
}
.one-row-inputs .input-block:last-child {
  margin-right: 0;
}
.one-row-inputs .input-form {
  display: inline-block;
  width: 275px;
  margin-left: 5px;
}

.modal-form .image-preview {
  text-align: right;
}
.modal-form .image-preview img {
  max-width: 300px;
  max-height: 100px;
}