/*!
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved.

rebuild is dual-licensed under commercial and open source licenses (GPLv3).
See LICENSE and COMMERCIAL in the project root for license information.
*/

/* filter pane */

.quick-filter-pane {
  background-color: #fff;
  padding: 3px 18px 12px;
  margin-bottom: 12px;
  border-radius: 2px;
  min-height: 63px;
  min-height: 80px;
}

.quick-filter-pane .ph-item {
  background-color: #eee;
  min-height: 20px;
  border-radius: 2px;
  margin: 12px 0 0;
}

.quick-filter-pane > span {
  display: none;
}

.quick-filter-pane .col-item {
  margin-top: 10px;
  margin-right: 10px;
  display: inline-block;
  min-width: 227px;
  position: relative;
  vertical-align: top;
}

.quick-filter-pane .col-item > div .filter-items > .row {
  margin: 0;
  padding: 0;
}

.quick-filter-pane .col-item > div .filter-items .col-sm-5.field,
.quick-filter-pane .col-item > div .filter-items .col-sm-2.op {
  display: none;
}

.quick-filter-pane .col-item > div .filter-items .col-sm-5.val {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.quick-filter-pane .col-item > div .filter-items .col-sm-5.val > label {
  display: block;
  margin: 0;
  margin-bottom: 5px;
  line-height: 1;
}

.quick-filter-pane .col-item.operating {
  vertical-align: bottom;
}

.quick-filter-pane .col-item.operating a {
  display: inline-block;
  padding: 8px 8px 8px 0;
  opacity: 0.8;
  color: #616161;
  line-height: 1;
}

.quick-filter-pane .col-item.operating .btn,
.quick-filter-pane .col-item.operating a {
  min-height: 37px;
  max-height: 37px;
}

.quick-filter-pane .col-item.operating a .icon {
  font-size: 1.231rem;
  display: inline-block;
}

.quick-filter-pane .col-item.operating a:hover {
  opacity: 1;
}

.quick-filter-pane .col-item.operating a.admin-show {
  visibility: hidden;
}

.quick-filter-pane .col-item.operating:hover a.admin-show {
  visibility: visible;
}

.quick-filter-pane .col-item.operating .dropdown-menu {
  padding: 15px 0;
  min-width: 200px;
  text-align: center;
  align-items: center;
}

.quick-filter-pane .form-control:focus,
.quick-filter-pane .select2-container--default.select2-container--focus .select2-selection.select2-selection--multiple {
  border-color: #bababa;
}

.quick-filter-pane .col-item > div .filter-items .col-sm-5.val {
  position: relative;
}

.quick-filter-pane .col-item > div .filter-items .col-sm-5.val a.close {
  font-size: 1.5rem;
  font-weight: normal;
  right: 9px;
  top: 8px;
  position: absolute;
  color: #000;
}

.quick-filter-pane .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  min-width: 114px;
}

.quick-filter-pane .val-range {
  width: 227px;
}

.quick-filter-pane .val-range > input.form-control {
  width: 50%;
  display: inline-block;
  margin-top: 0 !important;
}

.quick-filter-pane .val-range > input.form-control:first-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right-color: #eee !important;
}

.quick-filter-pane .val-range > input.form-control + input {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left-color: #eee !important;
}

.quick-filter-pane .val-range > span {
  display: none;
}

.quick-filter-pane .datetime-filter .btn-group .btn {
  width: 20%;
  min-width: auto;
  padding: 0 3px;
  min-height: 37px;
}

.quick-filter-pane .datetime-filter .btn-group .btn + .btn {
  margin-left: -1px !important;
  width: 20%;
}

.quick-filter-pane .datetime-filter .val-range,
.quick-filter-pane .datetime-filter.show-range .btn-group {
  display: none;
}

.quick-filter-pane .datetime-filter.show-range .val-range {
  display: block;
}

/* filter tabs */

.quick-filter-tabs {
  background-color: #fff;
  padding: 0 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid #e6e6e6;
  height: 44px;
}

.quick-filter-tabs > div {
  font-size: 0;
  margin-top: 6px;
}

.quick-filter-tabs > div .dropdown-item {
  display: inline-block;
  width: auto;
  line-height: 1;
  padding: 9px 18px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px !important;
  min-width: 60px;
  text-align: center;
}

.quick-filter-tabs > div .dropdown-item:active {
  background-color: #f5f5f5;
  color: unset;
}

.quick-filter-tabs > div .dropdown-item.active {
  background-color: var(--rb-theme-color);
  border-radius: 0;
}

.quick-filter-tabs > div .dropdown-item.active:active {
  color: #fff;
}

.page-aside.widgets .nav.nav-tabs {
  min-height: 44px;
}

.quick-filter-tabs + .quick-filter-pane,
.quick-filter-tabs + .card-table,
.quick-filter-tabs + .nav-tabs {
  margin-top: 44px;
}

.dataTables_oper.invisible2 > .btn,
.dataTables_oper.invisible2 > .btn-group {
  display: none;
}

.dataTables_oper.invisible2 > .btn.J_view {
  display: inline-block;
  margin-right: 0;
}

.record-merge-table {
  width: 100%;
  overflow: auto;
}

.record-merge-table table > thead > tr > th {
  border-bottom-color: #aaa;
}

.record-merge-table table th {
  min-width: 200px;
}

.record-merge-table table td {
  cursor: default;
  position: relative;
}

.record-merge-table table td > div,
.record-merge-table table th > a {
  max-width: 500px;
  word-wrap: break-word;
  display: inline-block;
}

.record-merge-table table td > div > a::after {
  content: ', ';
  color: #404040;
}

.record-merge-table table td > div > a:last-child::after {
  content: '';
}

.record-merge-table table td > div > a:hover {
  color: #4285f4 !important;
}

.record-merge-table table td.active {
  border: 1px double #34a853;
  background-color: #f5f8fd;
}

.record-merge-table table td.active::after {
  font-family: 'Material Design Icons', serif;
  content: '\F012C';
  position: absolute;
  right: 6px;
  top: 6px;
  color: #34a853;
  font-size: 1rem;
  font-weight: bold;
}

.record-merge-table table tbody tr:first-child td.active::before {
  height: 1px;
  line-height: 1;
  font-size: 0;
  content: '';
  position: absolute;
  background-color: #34a853;
  top: -1px;
  left: 0;
  width: 100%;
}

.record-merge-table table td.sysfield {
  cursor: not-allowed;
}

.record-merge-table table tr.bt2 {
  border-top: 2px solid #aaa;
}

.record-merge-table table tr.bt2 label {
  margin-top: 2px;
}

/* left aside */

#asideFilters .action {
  display: none;
}

#asideFilters .dropdown-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-transform: none;
  height: 34px;
}

#asideFilters .dropdown-item:hover {
  background-color: #eee;
}

#asideFilters .dropdown-item:active {
  color: #404040;
}

#asideFilters .dropdown-item.active {
  background-color: #4285f4;
  background-color: var(--rb-theme-color);
  color: #fff;
}

#asideCharts .chart-box {
  padding: 0;
  width: 100%;
  height: 240px;
  background-color: #fff;
  border-radius: 6px;
}

#asideCharts .chart-box .chart-body {
  padding-top: 10px;
}

#asideCharts .chart-box .chart-head {
  background-color: transparent;
}

#asideCharts .chart-box .chart-title {
  margin-right: 60px;
}

#asideCharts .chart-box:hover .chart-oper {
  display: block;
}

#asideCharts .chart-box:hover .chart-oper a.J_source,
#asideCharts .chart-box:hover .chart-oper a.J_chart-edit,
#asideCharts .chart-box:hover .chart-oper a.J_export,
#asideCharts .chart-box:hover .chart-oper a.J_chart-filter {
  display: none !important;
}

#asideCharts .charts-wrap > div {
  margin-bottom: 15px;
}

#asideCharts .charts-wrap > div.fullscreen {
  position: fixed;
  top: 60px !important;
  left: 230px !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999;
  background-color: #fff;
  padding: 20px;
  margin: 0;
  overflow: hidden;
  transition: all 0.3s;
}

#asideCharts .charts-wrap > div.fullscreen .chart-box {
  height: 100%;
}

@media (min-width: 768px) and (max-width: 1464px) {
  #asideCharts .charts-wrap > div.fullscreen {
    left: 200px !important;
  }
}

.rb-collapsible-sidebar-collapsed #asideCharts .charts-wrap > div.fullscreen {
  left: 60px !important;
}

#asideCharts .charts-wrap .ui-sortable-helper {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 16px 24px 0 rgba(81, 129, 228, 0.1);
}

#asideCharts .chart-box.INDEX {
  height: 120px;
}

#asideCharts .chart-box.INDEX .chart-body {
  padding-top: 40px;
}

#asideCharts .chart-box.INDEX .chart-body .with {
  margin-top: -8px;
}

#asideCharts .chart-box.LINE,
#asideCharts .chart-box.BAR,
#asideCharts .chart-box.BAR2,
#asideCharts .chart-box.BAR3 {
  height: 160px;
}

#asideCharts .chart-box.ApprovalList .chart-head,
#asideCharts .chart-box.FeedsSchedule .chart-head {
  margin: 0;
}

#asideCharts .chart.ApprovalList .table td,
#asideCharts .chart.ApprovalList .table th,
#asideCharts .chart.FeedsSchedule .table td,
#asideCharts .chart.FeedsSchedule .table th {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

#asideCharts .chart-box.ApprovalList .progress-wrap {
  margin: 10px 0;
  padding-left: 0;
  padding-right: 0;
}

#asideCharts .chart.FeedsSchedule td > .content {
  min-height: auto;
  padding: 0;
}

@media (max-width: 767px) {
  .rb-aside .page-aside.widgets {
    display: none !important;
  }

  .rb-aside.rb-aside-collapsed .main-content {
    margin-left: 0;
  }
}

.dataTables_wrapper .rb-datatable-header.v42 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.dataTables_wrapper .rb-datatable-header.v42 > div {
  flex: none;
  white-space: nowrap;
  width: unset;
  max-width: unset;
}

.dataTables_wrapper .rb-datatable-header.v42 > div.right {
  text-align: right;
}
