@media print {
    /* Hide non-essential UI elements */
    .navbar, .btn, .alert, .nav, .no-print {
      display: none !important;
    }
  
    /* Remove extra space from body and container */
    body, .container {
      margin: 0;
      padding: 0;
      width: 100%;
    }
  
    /* Adjust font size and line height for printing */
    body, table, th, td {
      font-size: 0.8rem;
      line-height: 0.95;
    }

    h1,h2,h3,h4,h5,h6 {
        font-size: .8rem !important;
    }
  
    /* Make tables compact */
    table {
      border-collapse: collapse !important;
    }
  
    th, td {
      padding: 2px;
      border: 1px solid rgb(222,226,230) !important;
    }

    a.edit-link {
        text-decoration: none;
        color: black;
        pointer-events: none;
      }
  
    /* Page settings with a ½" margin */
    @page {
      /* size: landscape; */
      margin: 0.375in;
    }
  }

/* Hide spinners for number inputs with the no-spinner class */
input[type="number"].no-spinner {
    -moz-appearance: textfield !important; /* For Firefox */
    -webkit-appearance: none !important;   /* For Chrome, Safari, Opera */
    margin: 0 !important;
  }
  
  input[type="number"].no-spinner::-webkit-inner-spin-button,
  input[type="number"].no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
  }