/* Increase font size of table number labels on round tables */
text.table-label, 
.table-label {
  font-size: 48px !important; /* Increase font size as needed */
  font-weight: bold !important;
  fill: #000 !important;       /* Text color for SVG labels */
}

/* Make table label numbers larger and bold */
.seat-label, 
.table-label, 
.section-label {
  font-size: 28px !important; /* Increase number size */
  font-weight: 700 !important; /* Make bold */
  fill: #000000 !important; /* Black color for SVG text */
  color: #000000 !important; /* Backup for text elements */
  text-shadow: 1px 1px 2px #ffffff; /* Optional: adds contrast against background */
}

/* Optional - center labels perfectly within round tables */
.table-label {
  dominant-baseline: middle;
  text-anchor: middle;
}
/* Make table label numbers larger and bold */
.seat-label, 
.table-label, 
.section-label {
  font-size: 28px !important; /* Increase number size */
  font-weight: 700 !important; /* Make bold */
  fill: #000000 !important; /* Black color for SVG text */
  color: #000000 !important; /* Backup for text elements */
  text-shadow: 1px 1px 2px #ffffff; /* Optional: adds contrast against background */
}

/* Optional - center labels perfectly within round tables */
.table-label {
  dominant-baseline: middle;
  text-anchor: middle;
}

/* SVG text styling for table numbers in SimpleTix seat map */
svg text.table-label,
svg text.seat-label,
svg text.section-label {
  font-size: 32px !important;   /* Increase size of table numbers */
  font-weight: 700 !important;  /* Make bold */
  fill: #000000 !important;     /* Color of text (black) */
  stroke: #ffffff !important;   /* Outline for better visibility */
  stroke-width: 1px !important; /* Thickness of outline */
  text-anchor: middle !important; /* Center align in the table */
  dominant-baseline: middle !important; /* Vertically center text */
}


/* Optional hover effect to highlight numbers while editing */
svg text.table-label:hover {
  fill: #ffcc00 !important;  /* Change color on hover (gold highlight) */
  cursor: pointer;
}

<script>
document.addEventListener('DOMContentLoaded', function () {
  // Try to find the seat-map iframe on the public event page
  const iframe = document.querySelector('iframe[src*="seatchart"]');
  if (!iframe) return;

  iframe.addEventListener('load', function () {
    try {
      const svgDoc = iframe.contentDocument || iframe.contentWindow.document;
      if (!svgDoc) return;

      // Create a <style> tag inside the iframe to override SVG text
      const style = svgDoc.createElement('style');
      style.textContent = `
        text, text[class*="label"], [class*="label"] text {
          font-size: 36px !important;
          font-weight: 700 !important;
          fill: #000 !important;
          stroke: #fff !important;
          stroke-width: 2px !important;
          text-anchor: middle !important;
          dominant-baseline: middle !important;
        }
      `;
      svgDoc.head.appendChild(style);
    } catch (e) {
      // If cross-origin isolation prevents access, JS injection won't work either
      console.warn('Seat map is cross-origin; cannot inject styles.');
    }
  });
});
</script>


body { outline: 6px solid magenta !important; }

body { outline: 6px solid magenta !important; }

