/* Polaris overrides */

/* Fix for tabs */
.Polaris-Tabs {
  position: relative;
  z-index: 10;
}

.Polaris-Tabs__Panel {
  position: relative;
  z-index: 5;
  padding: 1rem 0;
}

.Polaris-Tabs__Wrapper {
  border-bottom: 1px solid var(--p-border-subdued);
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

.Polaris-Tabs__Tab {
  padding: 0.5rem 1rem;
  cursor: pointer !important;
  z-index: 11 !important;
  position: relative !important;
  pointer-events: auto !important;
}

.Polaris-Tabs__Tab:hover {
  background-color: var(--p-surface-hovered);
}

.Polaris-Tabs__Tab--selected {
  background-color: var(--p-surface-selected);
  border-bottom: 3px solid var(--p-action-primary) !important;
  font-weight: bold !important;
}

/* Layout fixes */
.Polaris-Page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.Polaris-Layout__Section {
  margin-top: 1rem;
}

/* Card styles */
.Polaris-Card {
  margin-bottom: 1rem;
}

/* General spacing */
.Polaris-Stack {
  margin-bottom: 0.5rem;
}

/* Improve button clickability */
.Polaris-Button {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 5 !important;
}
