
.upload-container {

  border-radius: 5px;

  .upload-header, .upload-footer {
    @extend .clearfix;
    padding: 20px;
    background-color: #fcfcfc;
  }

  .upload-header {

    > b {
      float: left;
      font-size: 20px;
      color: #9c9c9c;
      font-weight: normal;
    }

    @include border-top-radius(5px);
    border-bottom: 1px solid #ddd;
  }

  .upload-footer {
    @include border-bottom-radius(5px);
    border-top: 1px solid #ddd;

    [data-upload] {
      margin-left: 10px;
    }

  }

}

.upload-body {

  padding: 25px;

  table {
    width: 100%;
    table-layout: fixed;

    th {
      color: #999;
      font-size: 12px;
      font-weight: normal;
      text-align: center;
    }

    th, td {
      &.index {
        width: 4.5em;
      }
      &.thumb {
        width: 7em;
      }
      &.prog {
        width: 37%;
      }
    }
  }

  .upload-entity {

    // 로딩바 등은 30px로 고정된 상태에서 위아래 여백  :: 썸네일은 이 수치에 따라 바뀐다.
    $padding: 20px;
    $default-height: 30px;

    & + .upload-entity {
      border-top: 1px solid #ececec;
    }

    > td {

      padding: 10px 0;
      vertical-align: middle;

      &.index, &.thumb {
        text-align: center;
      }

      &.thumb {
        > span {
          display: block;
          width: 100%;
          height: 50px;
          border: 1px solid #f1f1f1;

          background: {
            repeat: no-repeat;
            position: center;
            size: contain;
          }
        }
      }

      &.name {

        padding: {
          left: 15px;
          right: 15px;
        }

        > input {

          padding: 0 15px;
          width: 100%;
          height: 34px;

          border: 0;
          border-radius: 3px;
          background-color: transparent;
          outline: 0;

          &:focus {
            background-color: #f3f3f3;
            box-shadow: inset 1px 1px 1px rgba(0, 0, 0, .1);
          }
        }
      }

      &.prog {

        // 업로드 리스트 삭제 버튼 :: 기본적으로 btn을 쓴다
        [entry-delete] {
          float: right;
          @include border-left-radius(0);
          border-color: #ddd;
        }

        .gauge {

          overflow: hidden;
          position: relative;
          height: 30px;

          line-height: 30px;
          border: 1px solid #ddd;
          border-right: 0;
          @include border-left-radius(3px);
          background-color: white;

          .gauge-bar {
            width: 0%;
            height: 100%;

            transition: width 0.65s ease;
            border-radius: 3px 0 0 3px;
            background: #337ab7;
          }
          .size {
            position: absolute;
            right: 15px;
            font-size: 12px;
          }
        }
      }
    }
  }
}