@charset "UTF-8";

/* select-2 dropdown */

span.select2-container {
  span.select2-dropdown {
    .select2-results {
      max-height: 600px;
      ul.select2-results__options {
        max-height: 600px;
        li.select2-results__option {
          font-size: 16px;
          font-weight: 300;
          &:first-of-type {
            color: darkgray;
          }
          // height: 40px;
          // line-height: 40px;
        }
      }
    }
  }
}

.vue-chosen-wrapper {
  span.select2 {
    .select2-selection {
      height: 36px;
      border-radius: 0 !important;
      width: 100%;
      &.disabled {
        background-colorselect2-search__field: #eee;
        color: darkgray;
        cursor: not-allowed;
      }
      .select2-selection__rendered {
        line-height: 34px;
      }
      .select2-container .select2-selection--single {
        height: 36px;
      }
      .select2-selection__arrow {
        height: 36px;
      }
      b:before {
        display: none;
      }
    }
  }
  // 預設的 select2 dropdown option list
  .select2-container {
    .select2-search {
      font-size: 16px;
    }
    .select2-results {
      ul.select2-results__options {
        li.select2-results__option {
          font-size: 16px;
        }
      }
    }
  }
  &.validation-error {
    webkit-box-shadow: 0px 1px 0px 0px rgba(255, 0, 0, 1) !important;
    -moz-box-shadow: 0px 1px 0px 0px rgba(255, 0, 0, 1) !important;
    border-bottom: 1px solid red !important;
  }
}


/* 文件選擇器 */

.vue-group-selector-wrapper {
  .checkbox-group {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 10px;
    list-style-type: none;
    .item {
      display: inline-block;
      margin-right: 10px;
      border-style: solid;
      border-width: 1px;
      padding: 5px;
      border-color: lightgray;
      // 避免 checkbox 文字在雙擊時被選取
      -webkit-user-select: none;
      /* webkit (safari, chrome) browsers */
      -moz-user-select: none;
      /* mozilla browsers */
      -khtml-user-select: none;
      /* webkit (konqueror) browsers */
      -ms-user-select: none;
      /* IE10+ */
      &.checked {
        background-color: #FCC8C8;
        font-weight: 400;
      }
      label {
        // 目前限制 label 最小長度效果不好
        // min-width: 100px;
        font-size: 100%;
      }
      [type="checkbox"]:not(:checked)+label:before {
        top: -2px;
      }
    }
  }
}


/* 類別篩選器 */

.vue-category-filter-wrapper {
  margin-bottom: 20px;
  margin-left: -20px;
  .filter-item {
    margin-bottom: 70px;
  }
}


/* 狀態篩選器 */

.vue-status-filter-wrapper {
  position: absolute;
  margin-left: 60px;
  margin-top: -40px;
  z-index: 0;
  .status-filter {
    // 強迫內文太長時擴大元件顯示
    overflow: visible;
    display: inline-table;
    min-width: 140px;
    border-radius: .25em .25em 0 0;
    background-color: #d1fff5;
    color: #4a4a4a;
    cursor: pointer;
    font-size: 1em;
    min-height: 40px;
    line-height: 38px;
    margin-right: 50px;
    padding: 0 1.5em;
    text-align: center;
    margin-bottom: -1px;
    margin-right: 10px;
    font-size: 16px;
    font-weight: 300;
    text-align: center;
    -webkit-box-shadow: 0px -1px 3px -1px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0px -1px 3px -1px rgba(0, 0, 0, 0.4);
    box-shadow: 0px -1px 3px -1px rgba(0, 0, 0, 0.4);
    label {
      display: block;
      height: 30px;
      pointer-events: none !important;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
      max-width: 8em;
    }
  }
}


/* 可以更改姓名與啟用狀態的元件 */

.vue-enabler-wrapper {
  margin-bottom: 40px;
  margin-top: -20px;
  .edit-name {
    height: 40px;
    input {
      height: 30px;
      margin-right: 10px;
      text-align: center;
      width: 250px;
      font-size: 0.8em;
    }
    a {
      i {
        line-height: 30px;
        position: static;
      }
      i.edit {}
      i.update {}
    }
  }
  .edit-enable {
    label {
      margin: 0 5px 0 5px;
    }
  }
}


/* 案件圖表 dashboard */

.vue-dashboard-wrapper {
  input[placeholder] {
    text-align: center;
  }
  .dashboard-charts {
    margin-left: 25px;
    margin-right: 25px;
    .chart-container {
      padding: 10px;
      border-radius: 3px;
      background-color: #f2f2f2;
      box-shadow: 0 2px 4px 0 rgba(35, 36, 37, 0.3);
      margin: 10px 0px;
      min-height: 500px;
      width: 98%;
      .row {
        margin: 0 !important;
      }
      .chart-title {
        font-size: 20px;
        font-weight: 300;
        text-align: left;
        color: #232425;
        margin-bottom: 20px;
      }
      .chart-subtitle,
      .chart-time-range {
        font-size: 14px;
        font-weight: 300;
        text-align: left;
        color: #4a4a4a;
      }
      .vue-chart {
        margin: 0 auto;
        height: 95%;
        text-align: center;
        max-width: 95%;
      }
      .vue-chart-wapper {
        .pie-chart {
          canvas {
            width: auto;
            height: 400px !important;
            margin: 0 auto;
          }
        }
        .bar-chart {
          canvas {
            width: auto !important;
            height: 430px !important;
            margin: 0 auto;
          }
        }
      }
    }
  }
}


/* 分頁篩選器 */

.vue-pagination-wrapper {
  text-align: right;
  margin-bottom: -20px;
  li {
    a {
      font-size: 14px;
      cursor: pointer;
      border: none;
      box-shadow: none;
      -webkit-box-shadow: none;
    }
  }
}


/* 排序篩選器右側的按鈕列 */

.vue-actionbar-wrapper {
  padding: 5px;
  float: right;
  margin-top: 20px;
  margin-bottom: 20px;
  display: inline-flex;
  overflow-x: scroll;
  button.action {
    margin-left: 15px; 
  }
  .vue-button-wrapper {
    margin-left: 15px;
  }
}


/* 排序篩選器 */

.vue-sorter-wrapper {
  margin-bottom: 10px;
  margin-top: 10px;
  font-size: 16px;
  .sorter-count-wrapper {
    float: left;
  }
  .dropdown-menu {
    li {
      a {
        font-weight: 300;
        color: #666;
      }
    }
  }
}


/* 欄位篩選器 */

.vue-field-filter-wrapper {
  margin-top: 25px;
  input,
  span {
    font-size: 16px;
  }
  input {
    max-width: 100%;
    color: #232425;
    text-align: left;
    border: none;
    border-bottom-color: darkgray;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    &.disabled {
      cursor: not-allowed !important;
      background-color: #eee !important;
      opacity: 1 !important;
    }
    &.validation-error {
      webkit-box-shadow: 0px 1px 0px 0px rgba(255, 0, 0, 1) !important;
      -moz-box-shadow: 0px 1px 0px 0px rgba(255, 0, 0, 1) !important;
      border-bottom: 1px solid red !important;
    }
  }
  .field-filter {}
  .field-input {}
}


/* 條件 TAG */

.vue-field-tag-wrapper {
  height: 48px;
  line-height: 48px;
  overflow-x: scroll;
  .tag {
    border: 1px solid #eee;
    border-radius: 4px;
    background: rgba(202, 209, 209, 0.3);
    height: 20px;
    background-color: #d4dfe5;
    padding: 3px;
    font-size: 14px;
    font-weight: 300;
    text-align: left;
    color: #4a4a4a;
    margin-right: 10px;
    padding: 5px;
    .value {
      margin: 0 5px;
    }
    .close {
      float: unset;
      padding-bottom: 25px;
      margin-right: 5px;
      position: relative;
      outline: none;
      color: #4a4a4a;
      font-size: 14px;
      opacity: 1 !important;
      text-shadow: none;
    }
  }
}


/* 物件表格 */

.vue-table-wrapper {
  .table-scrolling {
    overflow-x: auto;
  }
  .table-fixed-right {
    overflow-x: hidden;
    overflow-y: hidden;
    // box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
    // background-color: white;
  }
  table {
    margin-top: 30px;
    thead {
      tr {
        background-image: none;
        background-color: transparent;
      }
      th {
        min-width: 50px !important;
        font-size: 1.2em;
        font-weight: 400;
        text-align: center;
        width: fit-content;
        .head {
          overflow: hidden;
          display: inline-block;
          text-overflow: ellipsis;
          white-space: nowrap;
          vertical-align: bottom;
        }
        span {
          min-width: 100px !important;
          width: fit-content;
        }
        label {
          min-width: auto;
        }
      }
    }
    tbody {
      td,
      th {
        height: 62px;
        font-size: 16px;
        font-weight: 200;
        // line-height: 0.8em;
        text-align: center;
        vertical-align: middle;
        span {
          max-width: 250px !important;
          min-width: 100px !important;
          width: min-content;
        }
      }
      tr {
        &.active {}
        &.deactive {
          background-color: pink;
        }
        &.limit-indicator {
          border-top: pink 5px dashed;
        }
      }
      .fields {
        .sn {
          text-align: left !important;
          font-weight: 500 !important;
        }
        span {
          font-size: 1em;
        }
        td {
          img {
            max-height: 44px;
          }
          &.select {
            .checkbox {
              margin-top: 3px !important;
              label {
                font-size: 20px;
              }
            }
          }
        }
      }
      span {
        max-width: 200px;
        overflow: hidden;
        display: inline-block;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
      }
    }
  }

}


/* vue 元件 date-range-picker */

.vue-daterange-picker {
  width: 300px;
  color: #232425;
  text-align: center;
  cursor: pointer;
  border: none;
  border-bottom-color: darkgray;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}


/* Vue Modal */

.vue-modal {
  .modal-mask {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    display: table;
    transition: opacity .3s ease;
  }
  .modal-wrapper {
    display: table-cell;
    vertical-align: middle;
  }
  .modal-container {
    width: 300px;
    margin: 0px auto;
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
    transition: all .3s ease;
    font-family: Helvetica, Arial, sans-serif;
  }
  .modal-header h3 {
    margin-top: 0;
    color: #42b983;
  }
  .modal-body {
    margin: 20px 0;
  }
  .modal-default-button {
    float: right;
  }
  /*
   * The following styles are auto-applied to elements with
   * transition="modal" when their visibility is toggled
   * by Vue.js.
   *
   * You can easily play with the modal transition by editing
   * these styles.
   */
  .modal-enter {
    opacity: 0;
  }
  .modal-leave-active {
    opacity: 0;
  }
  .modal-enter .modal-container,
  .modal-leave-active .modal-container {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}


/* Vue Summernote */

.vue-summernote-wrapper {
  .vue-summernote-wrapper {
    .note-toolbar-wrapper {
      height: auto !important;
    }
  }
  button {
    height: 40px;
    width: auto;
  }
  i.note-icon-menu-check {
    display: none;
    color: white;
    opacity: 0;
  }
}


/* Vue drag-drop uploader */

.vue-drop-uploader-wrapper {
  .is-dragover {
    background-color: lightgrey;
  }
  #labelInput {
    width: 100%;
    height: 150px;
    border: 1px dashed #ccc;
    position: relative;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    display: block;
    float: left;
    .validation-error {
      webkit-box-shadow: 0px 1px 0px 0px rgba(255, 0, 0, 1) !important;
      -moz-box-shadow: 0px 1px 0px 0px rgba(255, 0, 0, 1) !important;
      border-bottom: 0.5px solid red !important;
    }
  }
  #labelInput:hover {
    cursor: pointer;
  }
  #labelInput:after,
  #labelInput:before {
    height: 1px;
    width: 20px;
    content: "";
    background-color: #ccc;
    display: block;
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
  }
  #labelInput:before {
    width: 1px;
    height: 20px;
  }
  .clearfix:after {
    content: '';
    clear: both;
    display: table;
  }
  .image {
    width: 150px;
    height: 150px;
    // margin: 0 20px 20px 0;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: 1px dashed #ccc;
    position: relative;
    float: left;
  }
  .image>.name {
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    margin: 0 0 2px 0;
    color: #eee;
    text-shadow: 1px 0 1px #e27474, 0 1px 1px #e27474, 0 -1px 1px #e27474, -1px 0 1px #e27474;
  }
  .delete {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAA8klEQVRYR+2W2w3DIAxFzaRtNvAmeIMmk6ZyRSSUGPwIUvoBf5Gw7+Fi4yR4eKWH9WECTAf+3wFEfKeU9pzz5ukYa1zXAU4CAJ8ivBLRYoFAxBUAXmXvQkT8LS4PACdQIU7iHBMH4GghYRNC2LsREbvYXKYitEBExJnKBKA5ERV3AbQgyiGOguNtqu31fZgdOIKE09b5XOJuBxQIt/hoALVFpVYYfQVuCBeAVO3lVHURuiDMAL1Ws7wToae4U3SXgotCqA54HpkIhHcYqa02dBidxrEq3riy29PwN816M10qsAKvxqk1YPkBubNnAkwHpgNflf+WIapfg7AAAAAASUVORK5CYII=);
    display: block;
    width: 32px;
    height: 32px;
    position: absolute;
    right: -16px;
    top: -16px;
    background-color: transparent;
    border: none;
  }
  .delete:hover {
    transform: rotate(360deg);
    transition: all 2s;
    cursor: pointer;
  }
  .progress {
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    line-height: 150px;
    color: #fff;
    text-align: center;
  }
  .btn-upload {
    position: absolute;
    top: 15%;
    right: -2px;
    i {
      color: mediumblue;
      font-size: 32px;
      width: 32px;
      height: 32px;
    }
  }
}


/* 案件列表的可編輯清單 */

.vue-editable-list-wrapper {
  &.validation-error {
    .new-item-input {
      webkit-box-shadow: 0px 1px 0px 0px rgba(255, 0, 0, 1) !important;
      -moz-box-shadow: 0px 1px 0px 0px rgba(255, 0, 0, 1) !important;
      border-bottom: 0.5px solid red !important;
    }
  }
}

.banner-list {
  .banner-list-item {
    border-bottom-color: rgba(35, 36, 37, 0.3);
    border-bottom-style: solid;
    margin-bottom: 20px;
    padding-bottom: 30px;
  }
  .banner-title {
    width: 96px;
    height: 28px;
    font-size: 20px;
    text-align: left;
    color: #232425;
    display: table;
  }
  .banner-control {
    .btn {
      margin-top: 10px;
    }
  }
  #link-input {
    border-radius: 3px;
    background-color: #ffffff;
    border: solid 1px #979797;
    margin-bottom: 14px;
  }
}


/* 自動表單 */

.vue-form-wrapper {
  div.required {
    &:before {
      position: absolute;
      top: 20%;
      content: "ˇ";
      color: red;
      margin-left: -1em;
      font-weight: 900;
    }
  }
  .form-group {
    .input-title {
      min-height: 48px;
      display: -webkit-flex;
      display:         flex;
      -webkit-align-items: center;
              align-items: center;
    }
    .input-content{
      min-height: 48px;
      display: -webkit-flex;
      display:         flex;
      -webkit-align-items: center;
              align-items: center;
      div.checkbox {
        margin-top: 0;
        margin-bottom: 0;
      }
    }
  }
}