/* ========================================================
   🖨️ 六合彩（Mark Six）實體開獎拷貝單（標準 A4 列印手寫版）專屬樣式庫
   檔案路徑: static/css/lottery_marksix_copy_sheet.css
   說明:
     1. 入口卡片：置於六合彩專區最底端，深紫/粉紅高雅色調、點擊彈出預覽。
     2. 預覽彈窗：全螢幕浮層，自適應紙張檢視，頂部帶有【本機列印 (A4)】與【7-11 ibon 列印】。
     3. A4 紙張與 3 欄表格：包含 6 顆正號 ＋ 1 顆特別號獨立框線/色塊標註，108 格（3 欄 × 36 列）。
     4. 7-11 ibon 全自動代傳出碼彈窗：包含模式選擇（黑白 $3 / 彩色 $10）、上傳中動畫與 QR Code 醒目大圖。
     5. @media print：呼叫列印時隱藏其餘網頁組件，純淨輸出 A4 滿版黑白/彩色表格。
   ======================================================== */

/* 1. 六合彩頁面最下方入口卡片 */
.copy-sheet-marksix-entry-card {
  margin-top: 6px;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(131, 24, 67, 0.35), rgba(15, 23, 42, 0.98)) !important;
  border: 1.5px solid rgba(236, 72, 153, 0.45) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(236, 72, 153, 0.15);
  transition: all 0.3s ease;
}

.copy-sheet-marksix-entry-card:hover {
  border-color: rgba(236, 72, 153, 0.7) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(236, 72, 153, 0.25);
}

.btn-marksix-copy-sheet-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #db2777, #9d174d);
  border: 1px solid #f472b6;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-marksix-copy-sheet-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(219, 39, 119, 0.5);
  background: linear-gradient(135deg, #f472b6, #be185d);
}

/* 2. 六合彩表格特別號欄位獨立高亮與框線 */
.sheet-col-table thead th.th-marksix-m { width: 9%; }
.sheet-col-table thead th.th-marksix-d { width: 9%; }
.sheet-col-table thead th.th-marksix-w { width: 8%; }
.sheet-col-table thead th.th-marksix-p { width: 16%; }
.sheet-col-table thead th.th-marksix-b { width: 8%; }
.sheet-col-table thead th.th-marksix-sp {
  width: 10%;
  background: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 900 !important;
  border-left: 1.5px solid #dc2626 !important;
  border-right: 1.5px solid #dc2626 !important;
}

.sheet-col-table tbody td.td-marksix-sp {
  font-family: monospace;
  font-weight: 900;
  font-size: 8pt;
  color: #dc2626;
  background: #fff5f5;
  border-left: 1.5px solid #dc2626 !important;
  border-right: 1.5px solid #dc2626 !important;
}

/* 特別號小標籤色圈 */
.marksix-sp-badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 2px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid #dc2626;
  border-radius: 4px;
  color: #b91c1c;
  font-weight: 900;
  line-height: 1.2;
}

/* 空白格手寫帶線 */
.row-blank td.td-marksix-sp {
  background: #ffffff !important;
  border-left: 1.5px solid #dc2626 !important;
  border-right: 1.5px solid #dc2626 !important;
}

/* 3. A4 列印樣式適配 (@media print) */
@media print {
  /* 當列印六合彩拷貝單時 */
  #modal-marksix-copy-sheet {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    backdrop-filter: none !important;
    z-index: 9999999 !important;
  }

  #copy-sheet-paper-marksix,
  #copy-sheet-paper-marksix * {
    visibility: visible !important;
  }

  #copy-sheet-paper-marksix {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .sheet-col-table thead th.th-marksix-sp {
    background: #fee2e2 !important;
    border-left: 1.5px solid #000000 !important;
    border-right: 1.5px solid #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .sheet-col-table tbody td.td-marksix-sp {
    border-left: 1.5px solid #000000 !important;
    border-right: 1.5px solid #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ========================================================
   4. 大A網港彩開獎單 1:1 真實表格樣式
   ======================================================== */
.biga-sheet-wrap {
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
}

.biga-sheet-wrap #printdiv {
  width: 100%;
  margin: 0 auto;
}

.biga-sheet-wrap .outbound {
  padding: 0;
  width: 100%;
  background: #ffffff;
}

.biga-sheet-wrap .ptitle {
  width: 100%;
  height: 32px;
  line-height: 32px;
  font-size: 19px;
  font-weight: bold;
  text-align: center;
  color: #111;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-family: 'Microsoft JhengHei', sans-serif;
}

.biga-sheet-wrap .ptitle span {
  font-size: 14px;
  font-weight: normal;
  color: #555;
}

table.tw539 {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #777 !important;
  cursor: default !important;
  font-family: 'Microsoft JhengHei', sans-serif !important;
  background: #ffffff !important;
  margin: 0 auto !important;
}

table.tw539 tr.even {
  background: #f2f2f2 !important;
}

table.tw539 th {
  background: #222 !important;
  color: #ffffff !important;
  font-weight: bold !important;
  border: 1px solid #777 !important;
  padding: 2px 0 !important;
  font-size: 13px !important;
}

table.tw539 td {
  text-align: center !important;
  padding: 0 !important;
  height: 20px !important;
  line-height: 20px !important;
  border: 1px solid #aaa !important;
}

table.tw539 tr:hover {
  background: #fff8c4 !important;
}

.spxx {
  border-left: 2px solid #000 !important;
  text-decoration: underline !important;
  padding: 1px 2px !important;
  font-weight: 800 !important;
  color: #b91c1c !important;
  font-size: 13px !important;
  display: block !important;
  width: 100% !important;
  min-height: 18px !important;
}

.xno {
  padding: 1px 2px !important;
  font-size: 13px !important;
  color: #111 !important;
  font-weight: 600 !important;
  display: block !important;
  width: 100% !important;
  min-height: 18px !important;
}

.w16 {
  width: 24px !important;
  font-size: 13px !important;
  font-weight: bold !important;
  color: #1e3a8a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.f14 {
  color: #555 !important;
  font-size: 12px !important;
  font-weight: normal !important;
}

