/* =========================================================
 * Third-Party Plugin Overrides
 * 載入順序：vendor CSS → third-party-extend.css → iplusone.css
 * ========================================================= */

/* Typeahead
-------------------------------------------------------*/
.input-search .tt-menu {
  max-height: 200px;
  overflow-y: auto;
}

/* Bootstrap Tagsinput
-------------------------------------------------------*/
.w-full>.bootstrap-tagsinput {
  width: 100% !important;
}

.w-full>.bootstrap-tagsinput>.twitter-typeahead>.tt-input {
  width: 100% !important;
}

/* Bootstrap Select
-------------------------------------------------------*/

/* 修正 dropdown item margin 消失 */
.bootstrap-select .dropdown-menu>li {
  margin: 0;
}

/* 綠色主題 selectpicker：未選取為灰色、選取後為 tiffany 色 */
.bootstrap-select.green button.bs-placeholder span.filter-option,
.bootstrap-select.green .dropdown-menu li span {
  color: #A3AFB7;
}

.bootstrap-select.green button span.filter-option,
.bootstrap-select.green .dropdown-menu li.selected span {
  color: #81D8D0;
}

/* 修正 bs-container 內 dropdown 不顯示 */
.bs-container.open>.dropdown-menu,
.bs-container.open .open>.dropdown-menu {
  display: block;
}

/* Bootstrap Touchspin
-------------------------------------------------------*/
.bootstrap-touchspin .input-group-btn-vertical i {
  left: 3px;
}

/* Bootstrap Carousel
-------------------------------------------------------*/

/* 小型指示點 */
.carousel-indicator-sm {
  max-width: 5px !important;
  height: 5px !important;
}

/* 緊湊字幕（無上下 padding） */
.carousel-caption-sm {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

/* 無指示點時字幕位置下移 */
.carousel-caption-no-indicator {
  bottom: 10px !important;
}

/* Bootstrap Ribbon
-------------------------------------------------------*/

/* 反轉書籤式 ribbon 的內距修正 */
.ribbon-bookmark.ribbon-reverse .ribbon-inner {
  padding-left: 27px;
  padding-right: 20px;
}

/* FullCalendar
-------------------------------------------------------*/
.fc td.fc-widget-header {
  padding-top: 10px;
  padding-bottom: 10px;
  border-width: 0;
  font-size: 14px;
  text-transform: uppercase;
}

.fc td.fc-widget-content {
  border-width: 1px 0 0;
}

.fc td.fc-day.fc-widget-content+.fc-widget-content {
  border-left-width: 1px;
}

.fc .fc-row {
  border-width: 0;
}

.fc-day-grid>.fc-row.fc-week {
  min-height: 5em;
}

.fc table>thead>tr>th {
  border-width: 0;
  font-weight: 100;
}

.fc .fc-toolbar h2 {
  display: inline-block;
  font-size: 20px;
  vertical-align: sub;
}

.fc .fc-axis.fc-time {
  text-transform: uppercase;
}

.fc .fc-toolbar {
  position: relative;
}

.fc-button.fc-prev-button,
.fc-button.fc-next-button {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  background-image: none;
  background-color: transparent;
  border: 0 solid transparent;
}

.fc-button.fc-month-button,
.fc-button.fc-agendaWeek-button,
.fc-button.fc-agendaDay-button {
  height: auto;
  padding: 8px 14px;
  font-size: 14px;
  -webkit-box-shadow: none;
  box-shadow: none;
  background-image: none;
  text-transform: capitalize;
  background-color: #f6f8f8;
  border-color: #e4eaec;
  outline: none;
  text-shadow: none;
}

.fc-button.fc-state-active,
.fc-button.fc-state-hover {
  background-color: #fff;
}

.fc-unthemed .fc-today {
  background-color: #f4f7f8;
}

.fc-toolbar .fc-right {
  position: absolute;
  right: 0;
  top: 0;
}

.fc-agendaWeek-view .fc-event,
.fc-agendaDay-view .fc-event {
  border-radius: 3px;
}

.fc-row.fc-widget-header {
  border-color: transparent;
}

.fc-event {
  border-radius: 10px;
  background-color: #62a8ea;
  border-color: #62a8ea;
}

.fc-day-grid-event .fc-content {
  line-height: 1em;
  padding: 2px 10px;
}

.fc-highlight {
  background: #f3f7f9;
}

@media (max-width: 991px) {
  .fc-toolbar .fc-center {
    white-space: nowrap;
  }

  .fc-button.fc-prev-button {
    padding-left: 0;
  }

  .fc-button.fc-next-button {
    padding-right: 0;
  }
}

@media (max-width: 479px) {
  .fc-toolbar {
    margin-bottom: 50px;
  }

  .fc-toolbar .fc-right {
    top: 40px;
  }
}

/* Dropzone
-------------------------------------------------------*/
.dropzone {
  border: 2px solid #E5E5E5;
  padding: 0px;
}

.dropzone .dz-message .dz-button {
  color: #777;
}

.dropzone .dz-preview .dz-details .dz-size {
  display: none;
}

.dropzone .dz-preview .dz-details .dz-filename {
  display: none;
}

.dropzone .dz-preview:hover .dz-image img {
  -webkit-filter: none;
  filter: none;
}

.dropzone .dz-preview .dz-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropzone .dz-message .dz-button .icon {
  font-size: 50px;
}
