/* ========================================================
   🖨️ 大樂透 實體開獎拷貝單（標準 A4 列印手寫版）專屬樣式庫
   檔案路徑: static/css/lottery_lotto649_copy_sheet.css
   品牌: 100% 易算神算 777 自有品牌
   ======================================================== */

/* 1. 大樂透頁面最下方入口卡片 */
.copy-sheet-lotto649-entry-card {
  margin-top: 6px;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(180, 83, 9, 0.35), rgba(15, 23, 42, 0.98)) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.2);
  transition: all 0.3s ease;
}

.copy-sheet-lotto649-entry-card:hover {
  border-color: rgba(245, 158, 11, 0.8) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 158, 11, 0.35);
}

/* 2. 大樂透拷貝單專屬表格欄位寬度與儲存格排版 (11欄：月、日、星、期數、①~⑥、特，總計 100%) */
#copy-sheet-paper-lotto649 .sheet-col-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  font-size: 7.5pt !important;
}

#copy-sheet-paper-lotto649 .sheet-col-table thead th {
  padding: 1.5px 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  font-size: 7.5pt !important;
}

#copy-sheet-paper-lotto649 .sheet-col-table thead th.th-lotto649-m { width: 7.5% !important; }
#copy-sheet-paper-lotto649 .sheet-col-table thead th.th-lotto649-d { width: 7.5% !important; }
#copy-sheet-paper-lotto649 .sheet-col-table thead th.th-lotto649-w { width: 6.5% !important; }
#copy-sheet-paper-lotto649 .sheet-col-table thead th.th-lotto649-p { width: 17.5% !important; }
#copy-sheet-paper-lotto649 .sheet-col-table thead th.th-lotto649-b { width: 8.5% !important; }
#copy-sheet-paper-lotto649 .sheet-col-table thead th.th-lotto649-sp {
  width: 10% !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 900 !important;
  border-left: 1.5px solid #dc2626 !important;
}

#copy-sheet-paper-lotto649 .sheet-col-table tbody td {
  border: 1px solid #1f2937 !important;
  text-align: center !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  font-size: 7.5pt !important;
  line-height: 1.2 !important;
  letter-spacing: -0.3px;
}

#copy-sheet-paper-lotto649 .sheet-col-table tbody td.td-lotto649-m { width: 7.5%; }
#copy-sheet-paper-lotto649 .sheet-col-table tbody td.td-lotto649-d { width: 7.5%; }
#copy-sheet-paper-lotto649 .sheet-col-table tbody td.td-lotto649-w { width: 6.5%; }
#copy-sheet-paper-lotto649 .sheet-col-table tbody td.td-lotto649-p { width: 17.5%; font-weight: 700; }
#copy-sheet-paper-lotto649 .sheet-col-table tbody td.td-lotto649-b { width: 8.5%; font-weight: 600; }
#copy-sheet-paper-lotto649 .sheet-col-table tbody td.td-lotto649-sp {
  width: 10% !important;
  font-weight: 900 !important;
  font-size: 8pt !important;
  color: #dc2626 !important;
  background: #fff5f5 !important;
  border-left: 1.5px solid #dc2626 !important;
  white-space: nowrap !important;
}

#copy-sheet-paper-lotto649 .row-blank td.td-lotto649-sp {
  background: #ffffff !important;
  border-left: 1.5px solid #dc2626 !important;
}

/* 3. 列印特定樣式 */
@media print {
  body.print-lotto649-sheet * {
    visibility: hidden;
  }

  body.print-lotto649-sheet #copy-sheet-paper-lotto649,
  body.print-lotto649-sheet #copy-sheet-paper-lotto649 * {
    visibility: visible;
  }

  body.print-lotto649-sheet #copy-sheet-paper-lotto649 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    margin: 0 !important;
    padding: 6mm !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

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

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