page-alarm-task {
  display: block;

  ul {
    margin-bottom: 0;
  }

  .alarm-form {
    background-color: white;
    padding: 15px;
  }

  .red::after {
    content: '*';
    color: red;
    vertical-align: text-top;
  }

  .form-control-auto {
    width: auto;
    margin-left: 20px;
  }

  .form {
    display: flex;
    margin: 10px 0;

    [for="output"] {
      padding-left: 39px;
    }

    [for="input"] {
      padding-left: 53px;
    }

    .group {
      flex: 1;
      display: flex;
      align-items: center;

      &:nth-child(even) {
        & > label {
          width: 150px;
        }
      }

      .partition-num {
        margin-left: 10px;
      }

      label {
        text-align: right;
        margin-right: 10px;
      }

      .form-control {
        flex: 1;
      }
    }

    .time {
      flex: 0.35;
    }

    .field {
      flex: 0.35;
    }

    .add {
      margin-top: 5px;
      font-size: 15px;
    }

    .fa-times-circle-o {
      font-size: 25px;
    }

    .agg-field {
      flex: 0.7;
      margin-top: 15px;

      .field {
        margin-right: 45px;

        p {
          flex: 1;
          margin: 0;
          margin-right: 10px;
        }
      }

      li {
        display: flex;
        align-items: center;
        margin-top: 5px;

        .form-control {
          margin-right: 10px;
        }
      }
    }
  }

  .matching-columns {
    border: 1px dashed #666;
    padding: 0 0 10px 20px;
    margin: 20px 0;

    .title-box {
      height: 40px;
      line-height: 40px;

      span {
        color: #8D8D8D;
      }
    }

    .field-item-li {
      display: inline-block;
      margin: 0;
      padding: 5px 0 45px 0;
      width: 25%;
      height: 30px;
      line-height: 30px;

      .field-item-inline {
        display: flex;
        padding-right: 20px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
      }

      .field-item-span {
        text-align: left;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        display: inline-block;
        width: auto;
        min-width: 90px;
        max-width: 110px;
        text-align: right;
      }
    }

    .sharp-selector {
      width: auto;
      max-width: 130px;
      width: 130px;
      margin-left: 15px;
      cursor: pointer;
    }

    .tooltip {
      width: 200px;

      .tooltip-inner {
        text-align: left;
        padding: 5px 8px 5px 12px;
        overflow: hidden;
        white-space: normal;
        width: 180px;
        display: block;
        word-break: break-all;
      }
    }
  }

  .button-hint-layer {
    height: 40px;
    line-height: 40px;
    display: flex;

    & > div {
      width: 50%;

    }

    span {
      font-weight: 700;
    }

    .button-box {
      padding-left: 11px;

      .btn {
        padding: 1px 10px;
        margin-left: 10px;
        vertical-align: inherit;
        background-color: var(--global-theme-color-light, #0099CC);
        border-color: var(--global-theme-color-light, #0099CC);
      }
    }
  }

  .alarm-processing {
    height: auto;
    display: flex;
    margin-bottom: 20px;

    .filter {
      flex: 1;
      box-sizing: border-box;
      overflow-y: auto;

      .inline-items {
        display: block;
        margin: 20px;

        select {
          max-width: 220px;
          display: inline-block;
        }

        i {
          display: inline-block;
          padding-left: 5px;
        }
      }

      .compress, .inhibition {
        .time-form-control {
          width: 100px;
          max-width: 100px;
          display: inline;
        }

        .time-unit-form-control {
          width: auto;
        }
      }

      .inhibition {
        display: none;
      }

      .compress {
        .time-form-control {
          margin-left: 9px;
        }
      }

      .notify {
        label {
          cursor: pointer;
        }

        .inline-items {
          display: block;
          margin-bottom: 0;

          &.eg {
            margin-top: 10px;
          }
        }
      }

      .rule {
        display: none;
      }

      .title, .eg {
        font-weight: 600;
      }

      .fa-plus {
        color: var(--global-theme-color-light, #04BEB4);
        margin-right: 3px;
      }

      &.dashed {
        border: 1px dashed #666;
        margin-right: 20px;
      }

      .ace_print-margin {
        display: none !important;
      }
    }
  }

  .samples-layer {
    .content {
      background: white !important;

      td {
        padding: 0 !important;
      }

      textarea {
        border: 0;
        background: white;
        height: 100%;
      }

      .select-radio, .operate {
        text-align: center;
        vertical-align: middle;
      }

      .fa {
        font-size: 20px;
      }
    }

    .head-table {
      background-color: var(--global-theme-color-light, #04BEB4) !important;
      color: white;

      th {
        overflow: hidden;
      }
    }

    .multiSelect {
      > button {
        background: var(--global-theme-color-light, #00c8c1);
        color: #fff;
        border: none;
        height: 22px;

        &:hover {
          background: var(--global-btnCancel-theme-color, #00B8B1);
        }
      }

      .caret {
        border-top-color: #fff;
      }
    }
  }

  .advance-config {
    margin: 10px 0 0;
    min-height: 30px;
    text-align: right;
    line-height: 30px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: bold;

    .text {
      padding: 8px 10px;
      background-color: #FAFAFA;
      border:1px solid #D2D2D2;
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
      border-bottom: none;
    }

    .fa {
      font-size: 16px;
      margin-top: 6px;
    }
  }

  .advance-config-body {
    margin: 0 16px 10px;
    padding: 20px 30px;
    border: 1px solid #D2D2D2;
    background-color: #FAFAFA;

    .outer {
      background-color: #fff;
    }
  }

  .multiSelect {
    & > button {
      height: 34px;
      border-radius: 4px;
    }
  }

  .day-data {
    padding: 0;
  }

  .remark {
    margin-right: 0 !important;
    padding: 0;

    label {
      padding:0 25px 0 64px;
    }
  }

  .gray {
    color: #999;
  }

  .btn-wrapper {
    margin-bottom: 5px;
  }

  filter-condition {
    flex: 1;
  }

  .sharp-selector {
    max-width: 220px;
    padding: 0;
    border: none;
    display: inline-block;
  }

  select-multiple {
    flex: 1;

    .select-selection__rendered {
      overflow-y: auto;
      max-height: 68px;
    }
  }

  .form-group {
    &>div {
      vertical-align: top;
    }
  }
}


