@use '../../../../mx-core/src/base/shape';
@use '../../../../mx-core/src/layout/utils';

:host {
  width: 100%;
}

.mx-table-search {
  &__overlay {
    &--wrapper {
      @extend .rounded-x-sm;
      display: flex;
      flex-direction: column;
      padding: 16px;
    }
  }

  &__filter-items {
    &--wrapper {
      display: flex;
      flex-direction: column;
      column-gap: 4px;
    }

    &--group {
      display: flex;
      align-items: start;
      justify-items: center;
      column-gap: 8px;

      > .mat-icon {
        min-width: 20px;
        width: 20px;
        height: 76px;
        padding-bottom: 20px;
        box-sizing: border-box;
      }

      .mdc-icon-button {
        margin-top: 12px;
        min-width: 32px;
      }
    }

    &--label {
      max-width: 180px;
      flex-grow: 1;
    }

    &--value {
      flex-grow: 1;
    }

    &__date-time-range {
      display: grid;
      justify-items: center;
      grid-template-columns: 1fr 80px 80px;
      gap: 8px;

      &:not(:last-child) {
        margin-bottom: 4px;
      }
    }
  }
  &__filter-items-selection--option {
    @extend .gl-ellipsis-text;
    width: 100%;
  }

  &__footer {
    display: flex;
    justify-content: flex-end;
  }
}

.mat-mdc-form-field {
  width: 100%;
}

.button-wrapper {
  display: inline-flex;
}
