.ef-panel{position:fixed;inset:2vh 2vw;z-index:1100;overflow:auto;background:#fff;color:#182f2b;padding:24px;border:1px solid #78958a;border-radius:14px;box-shadow:0 12px 60px #0006}.ef-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.ef-field{display:inline-flex;gap:6px;align-items:center;margin:8px}.ef-field input:not([type=checkbox]){width:130px}.ef-section{margin:22px 0;padding-top:16px;border-top:1px solid #ddd}.ef-button{padding:9px 14px;margin:4px;border-radius:8px;border:1px solid #78958a;background:#eff6f1;color:#182f2b}.ef-button:disabled{opacity:.5}.ef-button[aria-pressed=true]{background:#1f5d48;color:white}.ef-panel table{border-collapse:collapse;width:100%}.ef-panel td,.ef-panel th{border:1px solid #ccc;padding:7px;white-space:pre-wrap}.ef-panel th{background:#eaf3ed}.ef-table-wrap{overflow:auto}.ef-panel textarea{width:100%}.ef-panel details{margin:12px 0}.ef-panel details input{width:100%;box-sizing:border-box}.ef-panel details input[type=checkbox]{width:auto}.ef-status{min-height:24px}.ef-error{color:#ae2735}.ef-reminder pre{white-space:pre-wrap}.ef-panel[hidden],[data-ef-nav][hidden]{display:none!important}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  html { height: auto !important; min-height: 0 !important; background: #fff !important; }
  body.ef-printing {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
  /* Remove hidden background layout, rather than retaining its page height. */
  body.ef-printing > :not(.ef-panel),
  body.ef-printing .ef-panel > :not(.ef-report-section),
  body.ef-printing .ef-report-section > :not(.ef-report-print) { display: none !important; }
  body.ef-printing .ef-panel,
  body.ef-printing .ef-report-section,
  body.ef-printing .ef-report-print {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
  body.ef-printing .ef-report-print { font-size: 9pt; line-height: 1.35; }
  body.ef-printing .ef-report-print > h4 { margin: 0 0 3mm; font-size: 14pt; break-after: avoid; }
  body.ef-printing .ef-report-print > p { margin: 0 0 4mm; break-after: avoid; }
  body.ef-printing .ef-table-wrap {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.ef-printing .ef-report-print table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 9pt; }
  body.ef-printing .ef-report-print thead { display: table-header-group; }
  body.ef-printing .ef-report-print tbody { break-inside: auto; }
  body.ef-printing .ef-report-print tr { break-inside: avoid; page-break-inside: avoid; }
  body.ef-printing .ef-report-print th,
  body.ef-printing .ef-report-print td {
    padding: 1.5mm 1mm;
    border: .2mm solid #666;
    vertical-align: top;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: normal;
    overflow: visible;
    background: #fff !important;
    color: #000 !important;
  }
  body.ef-printing [data-report-name="07_異常追蹤"] th:nth-child(-n+3) { width: 8%; }
  body.ef-printing [data-report-name="07_異常追蹤"] th:nth-child(4) { width: 13%; }
  body.ef-printing [data-report-name="07_異常追蹤"] th:nth-child(5),
  body.ef-printing [data-report-name="07_異常追蹤"] th:nth-child(6) { width: 10%; }
  body.ef-printing [data-report-name="07_異常追蹤"] th:nth-child(7) { width: 7%; }
  body.ef-printing [data-report-name="07_異常追蹤"] th:nth-child(8) { width: 8%; }
  body.ef-printing [data-report-name="07_異常追蹤"] th:nth-child(9) { width: 7%; }
  body.ef-printing [data-report-name="07_異常追蹤"] th:nth-child(10) { width: 13%; }
  body.ef-printing [data-report-name="07_異常追蹤"] th:nth-child(11) { width: 8%; }
  body.ef-printing [data-report-name="04_據點分析"] th:first-child { width: 20%; }
  body.ef-printing [data-report-name="05_類別分析"] th:nth-child(-n+2) { width: 14%; }
  body.ef-printing [data-report-name="06_代墊支付分析"] th:first-child { width: 18%; }
}
