/**Variable**/
@import './base/checked.scss';

.vhb-export--panel-column > ul {
  list-style-type: none;
  overflow: auto;
  margin: 0;
  padding: 0;
  user-select: none;
  & > li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
}

.vhb-export--panel {
  & > table {
    width: 100%;
    border: 0;
    table-layout: fixed;
    tr {
      td {
        padding: 0 10px;
        &:nth-child(1) {
          text-align: right;
          width: 30%;
          font-weight: 700;
          padding: 8px 10px;
        }
        &:nth-child(2) {
          width: 70%;
        }
        & > .vhb-input,
        & > .vhb-select {
          width: 80%;
        }
        & > .vhb-export--panel-option-row {
          padding: 0.25em 0;
        }
      }
    }
  }
  .vhb-export--panel-column {
    width: 80%;
    border: 1px solid $vhb-input-border-color;
    margin: 3px 0;
    border-radius: $vhb-border-radius;
    user-select: none;
    & > ul {
      & > li {
        padding: 0.2em 1em 0.2em 2.3em;
        @for $i from 2 through 8 {
          $interval: $i - 1 + 0.2;
          &.level--#{$i}{
            padding-left: #{$interval + 2.3}em;
            .vhb-checkbox--icon {
              left: #{$interval + 0.6}em;
            }
          }
        }
      }
    }
    .vhb-export--panel-column-header {
      padding: 0.1em 0;
      background-color: $vhb-table-header-background-color;
      font-weight: 700;
      border-bottom: 1px solid $vhb-table-border-color;
    }
    .vhb-export--panel-column-body {
      padding: 0.2em 0;
      min-height: 10em;
      max-height: 17.6em;
    }
  }
  .vhb-import-selected--file {
    padding-right: 40px;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
    & > i {
      display: none;
      position: absolute;
      top: 50%;
      right: 15px;
      transform: translateY(-50%);
      font-size: 16px;
      cursor: pointer;
    }
    &:hover {
      & > i {
        display: block;
      }
      color: $vhb-primary-color;
    }
  }
  .vhb-import-select--file {
    border: 1px dashed $vhb-input-border-color;
    padding: 6px 34px;
    outline: 0;
    border-radius: $vhb-border-radius;
    background-color: $vhb-input-background-color;
    user-select: none;
    cursor: pointer;
    &:focus {
      border-color: $vhb-primary-color;
      box-shadow: 0 0 0.25em 0 $vhb-primary-color;
    }
    &:hover {
      color: $vhb-primary-color;
      border-color: $vhb-primary-color;
    }
  }
  .vhb-export--panel-btns {
    text-align: right;
    padding: 0.25em;
  }
}

.vhb-export--panel-column-option {
  @extend %XECheckbox;
  .vhb-checkbox--icon {
    left: 0.6em;
    top: 0.38em;
  }
  &:hover {
    background-color: $vhb-table-row-hover-background-color;
  }
}

.vhb-modal--wrapper {
  .vhb-export--panel-column-option {
    & > .vhb-checkbox--icon {
      font-size: $vhb-checkbox-font-size-default;
    }
  }
  &.size--medium {
    .vhb-export--panel-column-option {
      & > .vhb-checkbox--icon {
        font-size: $vhb-checkbox-font-size-medium;
      }
    }
  }
  &.size--small {
    .vhb-export--panel-column-option {
      & > .vhb-checkbox--icon {
        font-size: $vhb-checkbox-font-size-small;
      }
    }
  }
  &.size--mini {
    .vhb-export--panel-column-option {
      & > .vhb-checkbox--icon {
        font-size: $vhb-checkbox-font-size-mini;
      }
    }
  }
}