@media print {
  /* Reset all spacing to prevent page breaks */
  * {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Restore minimal spacing for readability */
  h1 {
    margin-bottom: 0.5rem !important;
  }
  
  h4 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  table {
    margin-top: 0.5rem !important;
  }
  
  th, td {
    padding: 0.25rem !important;
  }
  
  .print-page {
    display: none;
  }
  a:link {
    color: black;
    text-decoration: none;
  }
  a:visited {
    color: black;
    text-decoration: none;
  }
  .header {
    display: none;
  }
  .link {
    display: none;
  }

  /* Hide notice/alert boxes and print buttons when printing */
  #notice, [class*="flex-none"] {
    display: none !important;
  }

  .reports {
    .centered {
      margin: auto;
      max-width: 1024px;
    }
    .capture-time {
      form {
        .field {
          max-width: 200px;
        }
      }
    }
    table {
      border-collapse: collapse;
      border: 1px solid black
    }
    th {
      border: 1px solid black;
      padding: 0 8px;

    }
    td {
      padding: 0 8px;
      text-align: center;
      border: 1px solid black
    }
    &.monthly-charting {
      hr {
        border-color: white;
        color: white;
      }
      .content{
        margin: 0px auto;
        max-width: 1024px;
        .chart-title {
          font-size: 16px;
          margin-top: 30px;
          text-align: center;

        }
        .chart-subtitle {
          font-size: 14px;
          margin: 8px 0px;
          text-align: center;
        }
        .chart-details {
          margin-top: 10px;
          font-size: 12px;
          text-align: left;
          display: block;
        }
        .user-detail {
          font-size: 12px;
          margin-top:10px;
          .left {
            margin: auto;
          }
        }
      }
     
      .page-break{
        page-break-after: always;
      }
    }
  }
}

