/* ATLAS_TABLE_HEADER_V01126
   Sorted header, one continuous surface. Last 9 px are a resize hit target,
   NOT a transparent gap. The icon is a Lucide-style vector SVG mask, never
   text/emoji. Styles only; table sizing and drag/reorder JS are unchanged. */

/* Canonical page and nested report tables; no unsupported `.page #content` selector. */
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort],
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort],
html body #content.page #reportOutput table thead th[data-sortable][aria-sort] {
  --atlas-header-surface: var(--panel2);
  position: relative!important;  /* thead itself owns sticky positioning */
  isolation: isolate!important;
  overflow: hidden!important;
  background: var(--atlas-header-surface)!important;
  background-clip: padding-box!important;
  padding-right: 42px!important;
  text-overflow: clip!important;
}
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort]:hover,
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort].atlas-cell-column-hover,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort]:hover,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort].atlas-cell-column-hover,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort]:hover,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort].atlas-cell-column-hover {
  --atlas-header-surface: var(--soft);
  background: var(--atlas-header-surface)!important;
}

/* Fade extends ALL THE WAY to the physical right edge; no right:9px seam. */
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort]::before,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort]::before,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort]::before {
  content: ''!important;
  display: block!important;
  position: absolute!important;
  left: auto!important;
  top: 0!important;
  bottom: 1px!important;
  right: 0!important;
  width: min(64px,100%)!important;
  margin: 0!important;
  border: 0!important;
  padding: 0!important;
  background: linear-gradient(to right, transparent 0%, var(--atlas-header-surface) 42%, var(--atlas-header-surface) 100%)!important;
  opacity: 1!important;
  pointer-events: none!important;
  z-index: 3!important;
}

/* Reset all previous text/gradient arrows; render a genuine SVG outline icon. */
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort='ascending']::after,
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort='descending']::after,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort='ascending']::after,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort='descending']::after,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort='ascending']::after,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort='descending']::after {
  content: ''!important;
  display: block!important;
  position: absolute!important;
  top: 50%!important;
  left: auto!important;
  right: 14px!important;
  width: 16px!important;
  min-width: 16px!important;
  max-width: 16px!important;
  height: 16px!important;
  min-height: 16px!important;
  max-height: 16px!important;
  box-sizing: border-box!important;
  margin: 0!important;
  padding: 0!important;
  border: 0!important;
  transform: translateY(-50%)!important;
  font-size: 0!important;
  line-height: 0!important;
  color: transparent!important;
  -webkit-text-fill-color: transparent!important;
  background: var(--text)!important;
  background-image: none!important;
  -webkit-mask-position: center!important;
  mask-position: center!important;
  -webkit-mask-size: 16px 16px!important;
  mask-size: 16px 16px!important;
  -webkit-mask-repeat: no-repeat!important;
  mask-repeat: no-repeat!important;
  opacity: 1!important;
  visibility: visible!important;
  pointer-events: none!important;
  z-index: 6!important;
}
/* SVG path: Lucide-style arrow-up / arrow-down (not Unicode glyphs). */
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort='ascending']::after,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort='ascending']::after,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort='ascending']::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 7-7 7 7M12 19V5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 7-7 7 7M12 19V5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort='descending']::after,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort='descending']::after,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort='descending']::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 7 7 7-7M12 5v14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 7 7 7-7M12 5v14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}

/* Existing 9px resize span stays the interactive target and paints an opaque
   matching surface ABOVE the gradient. Only the 1px handle becomes visible
   on hover; the stripe is not a separate background-colored gap. */
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort] > .atlas-col-resize,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort] > .atlas-col-resize,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort] > .atlas-col-resize {
  position: absolute!important;
  top: 0!important;
  bottom: 0!important;
  left: auto!important;
  right: 0!important;
  width: 9px!important;
  height: 100%!important;
  border: 0!important;
  padding: 0!important;
  box-sizing: border-box!important;
  background: var(--atlas-header-surface)!important;
  z-index: 12!important;
  cursor: col-resize!important;
  touch-action: none!important;
}
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort] > .atlas-col-resize::after,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort] > .atlas-col-resize::after,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort] > .atlas-col-resize::after {
  content: ''!important;
  display: block!important;
  position: absolute!important;
  top: 17%!important;
  bottom: 17%!important;
  left: auto!important;
  right: 0!important;
  width: 1px!important;
  height: auto!important;
  opacity: 0!important;
  background: var(--text)!important;
  border: 0!important;
  transform: none!important;
  pointer-events: none!important;
}
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort]:hover > .atlas-col-resize::after,
html body #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort] > .atlas-col-resize:hover::after,
html body #content.page .campaign-table-wrap table.atlas-column-table thead th[data-sortable][aria-sort]:hover > .atlas-col-resize::after,
html body #content.page #reportOutput table thead th[data-sortable][aria-sort]:hover > .atlas-col-resize::after,
html body.atlas-resizing #content.page .table-wrap table.atlas-column-table thead th[data-sortable][aria-sort] > .atlas-col-resize::after {
  opacity: .65!important;
}

/* Lower visual intensity: no CSS animation on live DOM reorders. */
html body .atlas-column-drag-guide {
  border: 0!important;
  outline: 0!important;
  background: color-mix(in srgb, var(--soft) 5%, transparent)!important;
  box-shadow: 0 1px 3px color-mix(in srgb,var(--text) 3%,transparent),inset 1px 0 1px color-mix(in srgb,var(--text) 4%,transparent),inset -1px 0 1px color-mix(in srgb,var(--text) 4%,transparent)!important;
}
