page-agent-relation {
  display: block;

  .main-content {
    box-shadow: none;
    overflow-x: hidden;
    min-height: 300px;
    padding: 15px;
  }

  .agent-info-hint {
    margin: 0 0 10px 0;
    border-bottom: 1px solid #E7E7E7;
    color: #111;
  }

  sharp-switch {
    margin-top: 5px;
    margin-left: 5px;
  }

  .fa {
    margin: 0 8px;
    cursor: pointer;

    &.fa-sliders {
      font-size: 14px;
    }

    &.fa-times-circle {
      color: red;
      font-size: 16px;

      &.protected {
	color: #A7A3A3;
	cursor: default;
      }
    }

    &.fa-plus {
      margin: 0;
    }
  }

  .operate-layer {
    margin-bottom: 10px;

    &::after {
      content: " ";
      display: block;
      height: 0;
      clear: both;
    }

    .fa {
      margin: 0;
    }

    .btn {
      padding: 6px;
      border-radius: 4px;

      &.btn-ok.active {
	background: var(--global-theme-color-light, #00bbb4);
	color: white;

	.fa {
	  color: white;
	}
      }
    }

    .search-layer {
      display: flex;
      float: right;
      z-index: 0;

      input {
	width: 260px;
      }

      .btn {
	flex: 1;
	margin: 0 0 15px 10px;
	height: 34px;

	&.btn-search {
	  flex: none;
	  width: 50px;
	}

	.fa {
	  color: #FFF;
	  margin-right: 5px;
	}
      }

      .input-group {
	display: inline-flex;
      }

      .input-group-addon {
	height: 34px;
	width: 34px;
	text-align: center;
	padding: 10px;
	outline: none;

	.fa {
	  color: gray;
	}
      }
    }
  }

  .enabled {
    color: #00C8C1;
  }

  .disabled {
    color: #8D8D8D;
  }

  th, td {
    & > label {
      display: block;
      margin-bottom: 0;
      cursor: pointer;
    }
  }

  td {
    &.invalid {
      color: #A6A29D;
    }

    .fa.fa-sliders {
      color: var(--global-theme-color-light, #00bbb4);
    }

    .to-bear-box {
      display: flex;

      .fa {
	width: 11px;
	margin: 3px 0 0 0;
      }

      .a-normal {
	max-width: calc(100% - 25px);
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0 3px;
      }
    }
  }

  .table-inline-pro {
    .tag-list {
      margin-top: -10px;
    }

    form {
      display: none;
    }
  }

  .no-data-table {
    border: none;

    .nil-tr {
      text-align: center;
      line-height: 400px;

      &:hover {
	background: #FFF;
      }
    }

    td {
      color: #CECECE;
    }
  }

  .batch-operate-btn-layer {
    text-align: center;
    padding-top: 10px;

    .btn {
      margin: 10px;
    }
  }

  .update-version-btn {
    height: 15px;
    line-height: 14px;
    padding: 0 3px;
    margin-left: 2px;
    text-align: center;
    font-size: 12px;
    transform: scale(0.9);
    background: white;
    border-color: var(--global-theme-color-light, #00bbb4);
    color: var(--global-theme-color-light, #00bbb4);
    position: relative;
    top: -1px;
  }

  .group {
    overflow: visible;
    padding-right: 5px;

    .group-style {
      float: right;
    }

    label {
      border: none;
      background: none;
      padding: 0;

      &::after {
	content: none !important;
      }
    }
  }
}

[data-page=agentRelation] {
  .dropdown-menu {
    min-width: 100px;
  }

  .filter-type-container {
    position: absolute;
    right: 10px;

    &.auto {
      right: 35px;
    }
  }

  .filter-type {
    max-height: 300px;
    overflow-y: auto;

    &.drop-left {
      left: auto !important;
      right: 63px !important;
    }

    li {
      padding: 5px 15px 5px 0;
      display: flex;

      &:hover {
	background: #F8F8F8;
      }

      .i-den {
	width: 26px;
	text-align: center;
      }
    }
  }
}

.modal-batch-upgrades {
  width: 500px;
}
