/* stat-compilter */
.stat-compiler-widget {
  --border-color: var(--border-default);
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.stat-compiler-widget:has(.show-filter) {
  z-index: unset;
}

.stat-compiler-widget .visualisation-item {
  padding-top: 0;
}

.stat-compiler-widget .visualisation-main-area {
  margin-top: var(--sp6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 15px;
}

.stat-compiler-widget .visualisation-main-area {
  min-height: 450px;
}

.stat-compiler-widget .selected-filters-component {
  padding-bottom: 0;
}

/* apply - reset wrapper */
.stat-compiler-widget .filter-reset-section {
  align-items: stretch;
}

.stat-compiler-widget .apply-reset-btn-wrap {
  flex-shrink: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.stat-compiler-widget .button {
  min-width: 120px;
  border-radius: 20px;
}

/* tab */
.stat-compiler-widget .tab--navigation {
  display: flex;
  justify-content: flex-end;
}

/* table filter */
.table--section {
  position: relative;
}

.table-filter-section {
  position: absolute;
  left: 0;
  top: 0;
  width: 350px;
  z-index: 1;
}

.table-with-filters .dropdown--them2 .awselect .front_face {
  padding: 7px 15px 7px 15px !important;
  height: 31px;
}

.table-with-filters .awselect-with-input-actions.awselect .front_face .placeholder {
  font-size: 14px;
}

.table-with-filters .awselect-input-label {
  font-size: 12px;
}

.stat-compiler-widget .data-table-section .datatable-table-block table.dataTable {
  min-width: 100%;
}

.stat-compiler-widget .datatable-table-block {
  min-height: 440px;
}

/* filter grouping */
.stat-compiler--dropdowns {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  width: 100%;
}

.state-compiler--dropdowns-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
}

.stat-compiler--dropdowns .button-block {
  flex-shrink: 0;
}

/* custom-modal-overlay */
.stat-compiler-widget:has(.custom-modal-overlay.show) {
  z-index: unset;
}

/* disagge */
.show-for-disagg,
.disagg-enabled .hide-for-disagg {
  display: none;
}

.disagg-enabled .show-for-disagg {
  display: block;
}

/* select */
.state-compiler--dropdowns-list .awselect .back_face {
  margin-left: -1px;
}

/* reset */
.data-query-reset {
  position: absolute;
  right: 0;
  top: 0;
}

/* nodata */
.compare-results-section:has(.chart-grid-data-na) .compare-tab-nav {
  pointer-events: none;
  opacity: 0.5;
}

/* info */
.stat-compiler-widget .info-inline {
  top: 2.5px;
}

@media (min-width: 1200px) {
  .stat-compiler--dropdowns .filter-field-label {
    padding-left: 20px;
  }
}
