.#{$ns}Modal.#{$ns}Modal-print {
  z-index: 1010 !important;
  .ant-form-item-label>label {
    color: #616161;
  }

  &.is-label {
    .#{$ns}Modal-content {
      width: 90%;
      max-width: none;
      height: calc(100vh - 56px);
    }
  }

  .#{$ns}Modal-content {
    // width: 430px;
    width: 90%;
    max-width: none;
    height: calc(100vh - 56px);

    .ant-col {
      max-height: 75px;
    }
  }

  .print-form-container {
    width: 100%;
    height: 100%;
    display: flex;

    label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
      display: none;
    }

    .ant-tabs-content {
      height: 100%;
    }

    .print-setting {
      width: 100%;
      height: 100%;
      padding-right: 8px;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      overflow-x: hidden;

      &-label {
        width: 100%;
        height: 32px;
        font-weight: 500;
        padding-left: 12px;
        background-color: #f3f3f3;
        color: black;
        line-height: 32px;
      }

      &-content {
        padding: 6px 0 0 0;

        .ant-form-item {
          margin-bottom: 8px;
        }
      }
    }

    .preview-container {
      position: relative;
      flex: 1;
      height: 100%;
      border: solid 1px #e8e8e8;
      border-radius: 5px;
      margin-right: 20px;

      .preview-empty {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 16px;
      }
    }

    .column-config-table {
      text-align: center;
      table-layout: fixed;
      font-size: 13px;

      &-select-dropdown {
        .ant-select-item {
          padding: 0;
          min-height: 30px;
          line-height: 30px;
          font-size: 12px;
          font-weight: 400;
        }
      }

      .ant-select {
        width: 100%;
        font-size: 13px;

        &-selector {
          border: none;
          box-shadow: none;
          border-radius: 0;
        }
      }

      .ant-input-number-input {
        padding: 0 4px;
        text-align: center;
      }

      thead {
        background-color: #ddd;
      }

      th,
      td {
        border: 1px solid #ccc;
      }

      td {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: default;
      }
    }

  }

  .input-count {
    width: 100%;
  }

  .#{$ns}Modal-footer {
    .#{$ns}Button {
      margin-left: 1rem;
    }
  }

  .label-print-template {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .ant-popover-open {
      display: inline;
    }

    .button-add {
      width: 100px;
    }

    .ant-select {
      width: 240px;
    }

    .ant-select-dropdown {
      padding: 0;
    }

    .ant-select-selection-item {
      color: #555;

      .label-print-HideIcon {
        display: none;
      }
    }
  }

  .remark {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 15px;
    color: #999;
  }
}

.label-print-template-select {
  .label-print-template-add {
    text-align: center;
    height: 30px;
    line-height: 30px;
    color: #555;
    cursor: pointer;
    background-color: #f5f5f5;
  }

  .select-item {
    width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ant-select-item-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ant-select-item-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff !important;
    color: #555;

    .label-print-HideIcon {
      font-size: 13px;
    }

    &:hover {
      color: #2a87eb !important;
      background-color: #fff !important;
    }

    &:hover .label-print-HideIcon {
      color: #2a87eb !important;
    }
  }

  .ant-select-item-option-active {
    background-color: #fff !important;
  }
}

.label-print-add-pop {
  padding-left: 0;

  .ant-popover-arrow {
    display: none;
  }

  .ant-popover-inner {
    box-shadow: none;
  }

  .ant-popover-inner-content {
    position: relative;
    top: 1px;
    padding: 4px;
    background-color: #fff;
  }
}

.label-print-selector {
  .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
    color: #2a77eb;
    background-color: #f5f5f5;
  }

  .ant-select-item-option:hover {
    color: #4185ec;
  }
}
