﻿/* =========================
   ptyx 表格整体设置
   ========================= */

/* 强制表格居中 */
table.ptyx {
  margin: 0 auto !important;        /* 水平居中 */
  margin-top: 0 !important;         /* 上外边距为0 */
  margin-bottom: 0 !important;      /* 下外边距为0 */
  border-collapse: collapse !important; /* 防止双线 */
}

/* 去掉所有表格线条 */
table.ptyx,
table.ptyx th,
table.ptyx td {
  border: none !important;
}

/* 隐藏第一行 */
table.ptyx tr:first-child {
  display: none !important;
}


/* =========================
   表格隔行底色
   ========================= */

/* 奇数行白色 */
table.ptyx tr:nth-child(odd) {
  background-color: #fff !important;
}

/* 偶数行浅绿色 */
table.ptyx tr:nth-child(even) {
  background-color: #e6f9e6 !important;
}


/* =========================
   表格文字和行高设置
   ========================= */

/* 强制每一行高度 30px */
table.ptyx tr {
  height: 30px !important;
}

/* 所有单元格统一样式 */
table.ptyx th,
table.ptyx td {
  height: 30px !important;
  line-height: 30px !important;
  padding: 6px 6px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  text-align: center !important;
}

/* 数据行字体设置 */
table.ptyx tr:nth-child(n+2) td {
  font-size: 18px !important;
  font-weight: bold !important;
}