// общие стили таблицы и грида
mat-toolbar {
  &.mat-toolbar-single-row {
    background: var(--GRID-SURFACE-BG, var(--WHITE));
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    margin-bottom: 0;
    border-radius: var(--GRID-RADIUS, 5px);
    gap: 10px;
    padding-top: var(--GRID-TOOLBAR-PADDING-TOP, 10px);
    height: auto;
  }
  .sln-left-side {
    display: flex;
    align-items: center;
    gap: 10px;
    .mat-mdc-form-field {
      max-width: 300px;
    }
  }
  .right-side-spacer {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}
mat-toolbar.sln-minigrid-toolbar {
  width: 100%;
}
.ng-scroll-content:has(core-grid) {
  max-width: 100%;
}
.grid {
  width: 100%;
  max-width: 100%;
  background: var(--GRID-SURFACE-BG, var(--WHITE));
  border-radius: var(--GRID-RADIUS, 5px);
  .mat-table {
    width: var(--GRID-TABLE-WIDTH, 95%);
  }
  &.mini-grid .mat-table {
    width: 100%;
  }
  &.mini-grid {
    margin-bottom: 0px;
  }
  .sln-bg-none {
    border: none;
    background: transparent;
    img {
      width: 20px;
      height: 20px;
      cursor: pointer;
    }
  }
  table th {
    font-family: var(--GRID-TH-FONT-FAMILY, var(--font));
    font-size: var(--GRID-TH-FONT-SIZE, 12px);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0 var(--GRID-CELL-GAP, 10px) 0 0;
    &:last-child {
      padding: 0;
    }
  }
  table td {
    font-family: var(--GRID-TD-FONT-FAMILY, var(--font-medium));
    font-size: var(--GRID-TD-FONT-SIZE, 13px);
    align-items: center;
    letter-spacing: 0.01em;
    color: var(--GRID-TEXT-COLOR, var(--DARK-GREY));
    padding: 0 var(--GRID-CELL-GAP, 10px) 0 0;
    &:last-child {
      padding: 0;
    }
    span {
      font-family: var(--GRID-TD-FONT-FAMILY, var(--font-medium));
      font-size: var(--GRID-TD-FONT-SIZE, 13px);
      align-items: center;
      letter-spacing: 0.01em;
      color: var(--GRID-TEXT-COLOR, var(--DARK-GREY));
      padding: 0;
    }
  }
  td.mat-cell:first-of-type {
    padding-left: 0;
  }
}
.grid-detail-row {
  background-color: var(--GRID-SURFACE-BG, var(--WHITE));
}
tr.grid-detail-row {
  height: 0 !important;
}
.expanded-element-detail {
  overflow: hidden;
  background-color: var(--GRID-SURFACE-BG, var(--WHITE));
}
.mat-paginator-page-size {
  margin-right: 0 !important;
  align-items: center !important;
}
.mat-paginator-container {
  margin: 0 !important;
}
.mat-paginator-page-size-select {
  margin: 0 !important;
  .mat-form-field-wrapper {
    padding-bottom: 0 !important;
    mat-select {
      height: 40px !important;
    }
  }
}
table.mat-table {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.highlight {
  background: var(--GRID-ROW-HIGHLIGHT, #f0f0f0);
  margin: 0;
  padding: 0;
  left: 0;
  right: 0;
  top: 0;
}
.mat-sort-header-content {
  display: block !important;
  text-align: start !important;
}
.sln-mydoc-grid table th {
  padding-left: 10px;
}
.sln-mydoc-grid {
  margin: 0 !important;
}

.mat-paginator {
  display: initial !important;
}
.mat-paginator-outer-container {
  width: 98.2%;
}
.mat-mdc-table {
  padding: 0 15px;
}
.mat-mdc-menu-item-text {
  display: flex;
  align-items: center;
}
.mat-mdc-menu-item:not([disabled]):hover {
  background: var(--GRID-MENU-HOVER-BG, var(--LIGHT-GRAY)) !important;
}
.sln-accordion {
  .mat-expansion-indicator::after {
    color: var(--MIDLE-GRAY);
  }
  core-field-number .mat-mdc-form-field {
    padding: 20px 10px 0 0 !important;
  }
  core-field-string .mat-mdc-form-field {
    padding: 20px 10px 0 0 !important;
  }
}

.ng-scroll-content:has(core-grid) {
  max-width: 100%;
}
