/* 排期查询页：复用 channel_PricingPlan.css 主布局，本文件补充表格与筛选样式 */

.sch-page .mj-pp-main-content {
  margin-bottom: 0;
}

.sch-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.sch-body--embedded {
  padding: 0 0 0px;
}

.sch-block {
  margin-bottom: 48px;
}

.sch-block--family {
  margin-bottom: 0;
  margin-bottom: 140px;
}

.sch-block__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  margin-top: 40px;
}

/* 表 A / 表 B 子 Tab：居中，激活白底 */
.sch-form-tabs {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 9999px;
  padding: 3px;
  gap: 4px;
  height: 48px;
}

.sch-form-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 40px;
  padding: 0 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sch-form-tab span {
  font-family: "Microsoft YaHei-Bold", sans-serif ;
  font-size: 16px;
  font-weight: bold;
  color: #4b5563;
  white-space: nowrap;
}

.sch-form-tab.active {
  background: #ebebeb;
}

.sch-form-tab.active span {
  color: #000000;
}

.sch-filters {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sch-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 100px;
  height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e5d59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

.sch-select:focus {
  outline: none;
  border-color: #bf123e;
}

/* 数据表格 1200px */
.sch-table-wrap {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  margin-top: 40px;
}

.sch-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sch-table__th {
  height: 48px;
  padding: 0 16px;
  text-align: center;
  font-family: "Microsoft YaHei-Bold", sans-serif ;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  background: #f2f2f2;
  border-bottom: 1px solid #e0e0e0;
}

.sch-table__th--cat {
  width: 320px;
  text-align: left;
  padding-left: 24px;
}

.sch-table__td {
  height: 48px;
  padding: 0 16px;
  text-align: center;
  vertical-align: middle;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: #4b5563;
  background: #ffffff;
  border-bottom: 1px solid #e8e6dc;
}

.sch-table__td--cat {
  width: 320px;
  text-align: left;
  padding-left: 24px;
  font-family: "Microsoft YaHei-Bold", sans-serif ;
  font-weight: bold;
  color: #000000;
  background: #ffffff;
}

.sch-table tbody tr:last-child .sch-table__td {
  border-bottom: none;
}

.sch-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sch-advance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 93px;
  min-height: 28px;
  padding: 2px 8px;
  background-color: #000000;
  border-radius: 12px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 配额查询 */
.quota-section {
  margin-top: 48px;
  padding: 32px;
  background: #eef2f9;
  border: 1px solid #e8e6dc;
  border-radius: 16px;
}

.section-titless {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: bold;
  color: #141413;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e6dc;
}

.no-quota,
.no-file {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
}

.no-file u b {
  color: #141413;
  font-size: 15px;
  text-decoration: none;
}

.loading-message,
.no-data-message {
  text-align: center;
  padding: 48px 20px;
  color: #4b5563;
  font-size: 16px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .sch-body {
    padding: 0 16px 40px;
  }

  .sch-block {
    margin-bottom: 32px;
  }

  .sch-block__head {
    gap: 16px;
  }

  .sch-form-tabs {
    width: 100%;
    justify-content: center;
  }

  .sch-form-tab {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
  }

  .sch-form-tab span {
    font-size: 16px;
  }

  .sch-filters {
    justify-content: flex-end;
  }

  .sch-select {
    min-width: 88px;
    height: 36px;
    font-size: 16px;
  }

  .sch-table-wrap {
    width: 100%;
    overflow-x: auto;
  }

  .sch-table {
    min-width: 960px;
  }

  .sch-table__th,
  .sch-table__td {
    font-size: 16px;
    padding: 0 8px;
  }

  .sch-table__th--cat,
  .sch-table__td--cat {
    width: 200px;
    padding-left: 12px;
  }

  .sch-advance-badge {
    width: auto;
    min-width: 72px;
    min-height: 28px;
    height: auto;
    padding: 2px 8px;
    font-size: 16px;
  }

  .quota-section {
    margin-top: 32px;
    padding: 20px 16px;
    border-radius: 12px;
  }

  .section-titless {
    font-size: 18px;
  }

  .loading-message,
  .no-data-message {
    padding: 32px 16px;
    font-size: 16px;
    min-height: 120px;
  }
}

/* Keep query values readable after the shared table styles load. */
html body .sch-table-wrap .sch-table :is(th, td) { font-size: 16px; line-height: 1.6; }
html body .sch-scroll-hint { font-size: 14px; line-height: 1.7; color: #596575; }
.sch-select { min-height: 44px; }
.sch-form-tabs { height: auto; min-height: 48px; }
.sch-form-tab { height: auto; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.sch-form-tab span { white-space: normal; text-align: center; line-height: 1.5; }

/* Keep date selection and chart switching in one compact desktop toolbar. */
.sch-page .sch-block__head--controls{margin-top:20px;gap:16px}
@media(min-width:769px){
 .sch-page .sch-block__head--controls{flex-direction:row;justify-content:space-between;align-items:center}
 .sch-page .sch-block__head--controls .sch-filters{order:2;align-self:auto;flex:0 0 auto}
 .sch-page .sch-block__head--controls .sch-form-tabs{order:1;margin:0}
}
@media(min-width:960px){
 .sch-page .sch-block__head--controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
 .sch-page .sch-block__head--controls .sch-form-tabs{grid-column:2;grid-row:1;justify-self:center}
 .sch-page .sch-block__head--controls .sch-filters{grid-column:3;grid-row:1;justify-self:end}
}

.sch-source--after-tables{margin:16px 0 0;text-align:left;font-size:14px;line-height:1.7;color:#596575}
.sch-source--after-tables a{color:inherit;text-decoration:underline;text-underline-offset:3px}
