/* static/print.css */
@media print {

  @page { margin: 10mm; }

  body.backend .card{
    box-shadow: none!important;
  }

  /* Paper baseline */
  html, body, body.backend, body.theme-esa{
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
    -webkit-print-color-adjust: economy !important;
    print-color-adjust: economy !important;
  }

  /* Hide UI chrome */
  header, footer,
  .dont-print,
  form, button,
  input, select, textarea,
  .switch, .tooltip,
  .modal-overlay, .modal,
  .user-panel-wrapper, .nav-links {
    display: none !important;
  }

  /* REMOVE backend layout constraints that cause “margin” */
  .content, main, .wrap {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Kill glass cards/wrappers + any overflow clipping */
  .card, .match-card, .tournament-card,
  .rp-tablewrap, .backend-table-wrap {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    overflow: visible !important;
  }

  /* Titles */
  h1{
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
  }
  h2{ display:none !important; }
  .sub{ display:none !important; }

  /* ===== Table (no margin, no shadow, no rounded corners) ===== */
  table{
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  /* ===== Kill backend THEAD gradient + overlays ===== */
  thead{
    background: transparent !important;
    backdrop-filter: none !important;
  }
  thead::before,
  thead::after{
    content: none !important;
    display: none !important;
  }

  thead th{
    background: transparent !important;
    color: #000 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    font-size: 12px !important;
    padding: 8px 10px !important;

    border-bottom: 1px solid #999 !important;
    border-right: none !important;
    position: static !important;
    text-align: center !important;
  }

  tbody td{
    border-bottom: 1px solid #ccc !important;
    border-right: none !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    text-align: center !important;
    background: transparent !important;
    color: #000 !important;
  }

  tbody tr:nth-child(even) td{
    background: #f9f9f9 !important;
  }

  /* Name col left aligned */
  table th:nth-child(2),
  table td:nth-child(2){
    text-align: left !important;
  }

  /* If roster-ish cells appear, don’t print secondary lines */
  .nameCell{ min-width: 300px !important; }
  td .sub{ display:none !important; }

  a{ color:#000 !important; text-decoration:none !important; }

    /* ===== LAST-RESORT PRINT OVERRIDES ===== */

  /* Kill ALL shadows & filters (including pseudo elements) */
  *, *::before, *::after{
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }

  /* Ensure the table isn't using "separate" spacing that hides lines */
  table{
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }

  /* Hard-disable any header/table pseudo overlays */
  table::before, table::after,
  thead::before, thead::after,
  th::before, th::after{
    content: none !important;
    display: none !important;
  }

  /* Force row separator lines to actually appear */
  tbody tr,
  tbody tr td{
    border-bottom: 1px solid #ccc !important;
  }

  /* If something is setting td borders to 0, this reasserts it */
  tbody td{
    border-bottom: 1px solid #ccc !important;
  }
  /* ===== Players print: hard overrides for ESA backend wrappers ===== */

  /* Kill any shadow that can come from wrappers, table, header, pseudos */
  body.backend .card,
  body.backend .rp-tablewrap,
  body.backend .rp-tablewrap table,
  body.backend .rp-tablewrap thead,
  body.backend .rp-tablewrap th,
  body.backend .rp-tablewrap td,
  body.backend .rp-tablewrap table * {
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
  }

  /* The backend header sheen is often a pseudo overlay */
  body.backend .rp-tablewrap thead::before,
  body.backend .rp-tablewrap thead::after,
  body.backend .rp-tablewrap th::before,
  body.backend .rp-tablewrap th::after {
    content: none !important;
    display: none !important;
  }

  /* Remove rounded corners + any clipping that makes shadows “stick” */
  body.backend .card,
  body.backend .rp-tablewrap,
  body.backend .rp-tablewrap table {
    border-radius: 0 !important;
    overflow: visible !important;
  }

  /* Force “lines under rows” no matter what the theme does */
  body.backend .rp-tablewrap table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }

  body.backend .rp-tablewrap tbody td {
    border-bottom: 1px solid #ccc !important;
  }

  /* If you had this anywhere, it kills the last line — override it */
  body.backend .rp-tablewrap tbody tr:last-child td {
    border-bottom: 1px solid #ccc !important;
  }

/* static/print.css */
@media print {

  @page { margin: 10mm; }

  html, body, body.backend, body.theme-esa {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
    -webkit-print-color-adjust: economy !important;
    print-color-adjust: economy !important;
  }

  /* Hide site chrome + interactive controls */
  header, footer,
  .dont-print,
  form,
  button,
  input, select, textarea,
  .switch,
  .tooltip,
  .modal-overlay,
  .modal,
  .user-panel-wrapper,
  .nav-links {
    display: none !important;
  }

  /* Remove layout constraints so the table can go full-width */
  main, .content, .wrap {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* KILL ALL SHADOWS everywhere (including pseudo-elements) */
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }

  /* Kill “glass” wrappers and any clipping */
  .card, .rp-tablewrap, .backend-card, .backend-table-wrap {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    overflow: visible !important;
  }

  /* Titles */
  h1 {
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
  }
  h2 { display: none !important; }
  .sub { display: none !important; }

  /* ===== Table: explicitly override backend_esa’s IMPORTANT shadow ===== */
  table,
  body.backend table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important; /* THIS is what you were missing */
    overflow: visible !important;
  }

  /* ===== Header: remove backend gradient + overlay pseudos ===== */
  thead,
  body.backend thead {
    background: transparent !important;
    backdrop-filter: none !important;
  }
  thead::before, thead::after,
  body.backend thead::before, body.backend thead::after,
  th::before, th::after {
    content: none !important;
    display: none !important;
  }

  thead th {
    background: transparent !important;
    color: #000 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 12px !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #999 !important;
    border-right: none !important;
    position: static !important;
    text-align: center !important;
  }

  /* Row separators (force them on) */
  tbody td {
    padding: 8px 10px !important;
    font-size: 12px !important;
    text-align: center !important;
    color: #000 !important;
    background: transparent !important;

    border-bottom: 1px solid #ccc !important;
    border-right: none !important;
  }

  /* Zebra striping like the PDF */
  tbody tr:nth-child(even) td {
    background: #f9f9f9 !important;
  }

  /* Name column left aligned */
  table th:nth-child(2),
  table td:nth-child(2) {
    text-align: left !important;
  }

  /* Don’t fade rows on paper */
  tr.dropped td { opacity: 1 !important; }

  a { color: #000 !important; text-decoration: none !important; }
}


}
