/* print.css */

@media print {
  /* Hide non-essential elements */
  header,
  footer,
  .sidebar,
  .region-sidebar-first,
  .region-sidebar-second,
  .tabs,
  .node-links,
  .skip-link,
  #topbar,
  .block-subtheme-breadcrumbs{
    display: none !important;
  }

  /* Reset layout for full width printing */
  body,
  .main-content,
  .region-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Ensure links are readable and optionally show URLs */
  a {
    text-decoration: underline;
    color: #000;
  }

  /* Optional: print URLs after links */
  /*
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }
  */

  /* Prevent awkward page breaks */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    break-after: avoid;
  }

  img, table, figure {
    page-break-inside: avoid;
    break-inside: avoid;
  }
    .header-wrapper .product, .medication-wrapper .product {
    width: 300px !important;
}
    .medication-wrapper .periode {
    width: 110px !important;
    min-width: 110px !important;
}
}