@media print {
  a, a:visited { text-decoration: none !important;}
  #header,#footer,#content>.l{display:none;}
    /*  不要鎖固定高度，否則只會印一頁 */
  html, body { width: 297mm; height: 210mm; }    
  body { min-width: 297mm !important; }    
  
  * {-webkit-print-color-adjust: exact !important; print-color-adjust: exact !important;}

  /* 清掉會卡頁的屬性 */
  html, body, .wrapper, .container, .tbcard {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;}             
  /* 如果有用 100vh 之類，列印時改掉 */
  .h-screen, [style*="100vh"] { height: auto !important; }

  #wrap{padding:0;}
  .box01 .box_hd h2.title {color: #008080;}
  .path{display:none;}
  .tbbox{margin:5px 1px;width:auto;}
  .tbbox .tb_long{width:auto;}
  .btn{color: #008080;}
  .tbcard th,.tbcard td{padding:2px;font-size:10pt;}
  .tbcard .btn{padding:0;min-width:auto;min-height:auto;}
  .tbcard .btn span[class^="i_"]{display:none;}
  #content>.r{padding:0;width:auto;}
  .box01 .box_bd{padding:0;}
  .box01 .box_bd .inbd{border:none;padding:0;}

  .box01 .box_hd h2.title{ color:var(--clr_main) !important;}
  .tbbox thead th {background-color: var(--clr_sub) !important;color: #000 !important;-webkit-print-color-adjust: exact !important;print-color-adjust: exact !important;}
  .tb_hd {background: var(--clr_main) !important;color: #fff !important;}
  .box01 .box_hd h2.title {color: var(--clr_main) !important;-webkit-print-color-adjust: exact !important;print-color-adjust: exact !important;}
  .tfhd {color: var(--clr_main) !important;-webkit-print-color-adjust: exact !important;print-color-adjust: exact !important;}
  .tfhd::before {background: var(--clr_main) !important;-webkit-print-color-adjust: exact !important;print-color-adjust: exact !important;}
  .tbcard td a {color: #32ade6 !important;-webkit-print-color-adjust: exact !important;print-color-adjust: exact !important;}
  .mystyle .active span {
    /* 保留原本的 background 規則 */
    background: var(--clr_main) !important;
    /* 【關鍵修正】使用 Box-Shadow 模擬背景色，瀏覽器會列印陰影 */
    box-shadow: inset 0 0 0 1000px var(--clr_main) !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .btn[class*="btn05"] {display: inline-flex !important;background-color: #dbf9f9 !important;box-shadow: inset 0 0 0 1000px #dbf9f9 !important;color: teal !important;-webkit-print-color-adjust: exact !important;print-color-adjust: exact !important;}
  .btn.btn05_2 {display: inline-flex !important;background-color: #faedee !important;box-shadow: inset 0 0 0 1000px #faedee !important;color: #eb4751 !important;-webkit-print-color-adjust: exact !important;print-color-adjust: exact !important;}
  .gopath span:last-child {color: var(--clr_main) !important;-webkit-print-color-adjust: exact !important;print-color-adjust: exact !important;}
  .ps em {color: #dc3545 !important;-webkit-print-color-adjust: exact !important;print-color-adjust: exact !important;}

}
