.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.9;
}
.empty-state img {
  max-width: 100px;
  border-radius: 50%;
  background-color: var(--p-color-bg-app);
  margin-bottom: var(--p-space-4);
}

.Polaris-Button--plain .Polaris-Icon--colorSubdued svg {
  fill: var(--p-color-icon-subdued) !important;

  &:hover {
    fill: var(--p-color-icon) !important;
  }
}

.Polaris-Tooltip {
  z-index: var(--p-z-index-1);
}

html[class~="Polaris-Summer-Editions-2023"] .Polaris-TopBar {
  background-color: var(--p-color-bg-surface);
  box-shadow: var(--p-shadow-sm);
  gap: var(--p-space-600);
}

html[class~="Polaris-Summer-Editions-2023"] .Polaris-TopBar-Menu__Activator {
  color: var(--p-color-text);
  padding: var(--p-space-150);
  background-color: var(--p-color-bg-fill);
  border-radius: var(--p-border-radius-200);
  min-width: auto;
  min-height: 2rem;
}

.Polaris-TopBar-Menu__Activator {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
  color: var(--p-color-text);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 2.25rem;
  padding: var(--p-space-100) var(--p-space-200);
  border: 0;
  cursor: pointer;
  transition: background-color var(--p-motion-duration-100);
  margin-right: var(--p-space-200);
  border-radius: var(--p-border-radius-100);
  gap: var(--p-space-200);
}

html[class~="Polaris-Summer-Editions-2023"]
  .Polaris-TopBar-Menu__Activator:focus {
  background-color: var(--p-color-bg-fill-hover);
}

html[class~="Polaris-Summer-Editions-2023"]
  .Polaris-TopBar-Menu__Activator:active,
html[class~="Polaris-Summer-Editions-2023"]
  .Polaris-TopBar-Menu__Activator[aria-expanded="true"] {
  background-color: var(--p-color-bg-fill-active);
}

html[class~="Polaris-Summer-Editions-2023"]
  .Polaris-TopBar-Menu__Activator:hover {
  background-color: var(--pc-top-bar-background-light, var(--p-color-bg-hover));
}

.Polaris-TopBar-Menu__Activator:hover {
  background-color: var(--pc-top-bar-background-light, var(--p-color-bg-hover));
}

@media screen and (max-width: 1024px) {
  .Polaris-HorizontalGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 500px) {
  .Polaris-HorizontalGrid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .filter-margin {
    margin-left: var(--p-space-4);
  }
}

/* Parent wrapper */
.sticky-scroll-table {
  overflow-x: auto;
  position: relative;
  max-width: 100%;
  white-space: nowrap;
  border-radius: inherit;
}

/* Ensure table takes full width */
.sticky-scroll-table .Polaris-IndexTable__Table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

/* Sticky first column */
.sticky-scroll-table .Polaris-IndexTable__Table thead tr th:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  transition: border-right 0.2s ease-in-out;

  background: var(--p-color-bg-surface-secondary);
  text-align: left;
  font-weight: var(--p-font-weight-semibold);
}

.sticky-scroll-table .Polaris-IndexTable__Table tbody tr td:first-child {
  position: sticky;
  left: 0;
  background: var(--p-color-bg-surface);
  z-index: 10;
  font-weight: 600;
  transition: border-right 0.2s ease-in-out;
}

/* Show right border when scrolling */
.Polaris-IndexTable-ScrollContainer.scrolled
  .Polaris-IndexTable__Table
  tbody
  tr
  td:first-child::after,
.Polaris-IndexTable-ScrollContainer.scrolled
  .Polaris-IndexTable__Table
  thead
  tr
  th:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px; /* Adjust thickness */
  height: 100%;
  background: var(--p-color-border-secondary); /* Adjust color */
}
.hidden {
  display: none;
}

.relative {
  position: relative;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
