// datagrid
.grid-header-bar {
  margin-top: calc(15px - 0.5rem);
  margin-bottom: calc(15px + 0.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;

  $base: unquote(".grid-header-bar");

  >#{$base}__btn {
    grid-area: btn;
    display: flex;
    justify-content: flex-end;
    height: 40px;
  }

  #{$base}__center {
    grid-area: center;
    justify-self: center;
  }

  .btn-view {
    margin-left: 15px;
    padding: 0 5px 0 5px;
    height: 40px;
    line-height: 40px;
    font-size: 15px;
    border-radius: 20px;
  }

  .title {
    grid-area: title;
    font-size: 1.5em;
    font-weight: bolder;
  }

  .header-title {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
  }
}

.agGridViewClass {
  display: flex;
  align-items: center;

  >ui-button {
    width: 100%;

    a {
      display: flex;
      width: 100%;

      .ui-btn__label {
        width: 100%;
        text-align: left;

        span:nth-of-type(2) {
          font-size: 13px;
        }
      }
    }
  }

  >span {
    display: flex;
  }
}

.grid-menu {
  overflow-x: hidden;
  max-height: calc(100% - 100px) !important;
  min-width: 300px;
  padding-bottom: 10px;
  z-index: 1000;

  h6 {
    margin-bottom: 15px;
    padding-left: 10px;
  }

  li:hover:not(.divider) {
    background-color: inherit !important;
  }

  .btn-flat {
    width: 100%;
    padding: 0;
  }

  li {
    list-style-type: none;
    min-height: fit-content !important;
    padding: 3px 10px 3px 10px;
    cursor: default;
  }

  li.divider {
    padding: 0;
    margin-bottom: 10px;
  }
}