.grid {
  border: var(--PANEL-BORDER-WIDTH, 0) solid var(--PANEL-BORDER-COLOR, transparent);
  table th {
    font-family: var(--GRID-TH-FONT-FAMILY, var(--font-bold));
    font-weight: normal;
    text-transform: none;
    font-size: var(--GRID-TH-FONT-SIZE, 12px);
  }

  table td {
    font-family: var(--GRID-TD-FONT-FAMILY, var(--font-medium));
    font-weight: normal;

    span {
      font-family: var(--GRID-TD-FONT-FAMILY, var(--font-medium));
      font-weight: normal;
    }
  }

  .mat-mdc-header-row {
    height: var(--GRID-HEADER-ROW-HEIGHT, 30px);
  }

  .mat-sort-header-content {
    text-align: var(--GRID-TH-TEXT-ALIGN, start) !important;
  }

  .mat-mdc-header-cell,
  .mat-mdc-cell {
    border-bottom-color: var(--GRID-CELL-BORDER-BOTTOM-COLOR, #e8effe);
  }
}

core-card-panel .grid {
  padding: var(--GRID-IN-CARD-PANEL-PADDING, 0) !important;
}

.sln-grid-multi-commands {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--GRID-MULTI-CMD-GAP, 8px);
  min-height: 36px;
  padding: var(--GRID-MULTI-CMD-PADDING-Y, 8px) var(--GRID-MULTI-CMD-PADDING-X, 14px);
  border: none;
  border-radius: var(--GRID-MULTI-CMD-RADIUS, 8px);
  background: var(--GRID-MULTI-CMD-BG, #e8effe);
  color: var(--GRID-MULTI-CMD-COLOR, var(--PRIMARY));
  font-family: var(--font-medium);
  font-size: var(--GRID-MULTI-CMD-FONT-SIZE, 14px);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: background 0.15s ease;

  &:hover:not(:disabled) {
    background: var(--GRID-MULTI-CMD-BG-HOVER, #dce8fd);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .sln-filter-empty,
  .sln-filter-delete,
  .sln-grid-vertical-dots {
    background-image: none;
    background-color: var(--GRID-MULTI-CMD-COLOR, var(--PRIMARY));
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  .sln-filter-empty {
    -webkit-mask-image: url("../../../../../assets/themes/docplat_new/images/grid/filter-empty.svg");
    mask-image: url("../../../../../assets/themes/docplat_new/images/grid/filter-empty.svg");
  }

  .sln-filter-delete {
    -webkit-mask-image: url("../../../../../assets/themes/docplat_new/images/grid/filter-delete.svg");
    mask-image: url("../../../../../assets/themes/docplat_new/images/grid/filter-delete.svg");
  }

  .sln-grid-vertical-dots {
    -webkit-mask-image: url("../../../../../assets/themes/docplat_new/images/grid/vertical-dots.svg");
    mask-image: url("../../../../../assets/themes/docplat_new/images/grid/vertical-dots.svg");
  }
}
