$toolbar-height: 1.875em;

.bx--data-table-container.kui--data-table-container-with-toolbars.kui--data-table-container-with-title {
  padding-top: 0;
}

.kui--toolbar-button-with-icon {
  &[data-enabled='true'] {
    svg {
      fill: var(--color-base0D);
      path {
        /* give the enabled button a bit more weight */
        stroke: var(--color-base0D);
        stroke-width: 1.1;
      }
    }
  }
  &[data-enabled='false'] svg {
    fill: var(--color-base05);
  }
}

body[kui-theme-style] .kui--toolbar-alert.bx--toast-notification {
  position: unset;
  width: inherit;
  margin-right: 0.5rem;
  margin-left: 0.5rem;

  &.bx--toast-notification__subtitle > p {
    font-size: 14px;
  }
}

body[kui-theme-style] .kui--data-table-toolbar {
  display: flex;

  nav[aria-label='Breadcrumb'] {
    overflow-x: unset;
  }

  & > div:not(:empty),
  & > nav:not(:empty) {
    height: $toolbar-height;
  }

  nav[aria-label='Breadcrumb'] {
    display: flex;
    align-items: center;
    flex: 1;
    height: 2.5rem;
  }

  .kui--toolbar-button-with-icon {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* so that buttons are flush-left and pagination is flush-right */
  .kui--data-table-toolbar-filler {
    flex: 1;
  }

  .kui--data-table-toolbar-buttons {
    display: flex;
  }

  .kui--data-table-toolbar-pagination.bx--pagination {
    display: flex;
    border: none;
    background-color: transparent;
    width: unset;
    align-items: unset;

    .kui--data-table-toolbar-pagination-info {
      white-space: pre; /* see padStart in Toolbar.tsx */
      color: var(--color-text-02);
      flex: 1;
      padding: 0 1.25rem;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      border: none;
    }
  }
}
