/* 与主站操作页同结构：规则、筛选、500px表格、右侧分页、底部操作栏。 */
.customs-workspace {
  max-width: 1240px;
}
.customs-panel {
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
.customs-panel > .layui-card-header {
  font-size: 16px;
  font-weight: 600;
}
.customs-panel > .layui-card-body {
  padding: 15px;
}
.customs-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 24px;
  color: var(--ink);
}
.customs-rules p {
  line-height: 1.8;
  margin-bottom: 4px;
}
.customs-member-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 12px;
}
.customs-member-line strong {
  color: var(--primary);
}
.customs-rules .access-notice {
  margin-top: 10px;
  color: var(--muted);
}
.customs-panel .customs-divider {
  background-color: var(--primary);
  margin: 18px 0;
}
.customs-form .layui-form-label {
  float: none;
  width: auto;
  padding: 0 0 6px;
  margin: 0;
  line-height: 20px;
  text-align: left;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}
.customs-form .layui-input-block {
  margin-left: 0;
  margin-top: auto;
  width: 100%;
}
.customs-form .layui-form-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 15px;
}
.customs-form .layui-row {
  display: flex;
  flex-wrap: wrap;
}
.customs-form .layui-row > div {
  display: flex;
  min-width: 0;
}
.customs-form .hint {
  margin: 0 0 12px;
}
.customs-search-actions {
  margin-top: 8px;
}
.customs-table-frame .layui-table-view {
  margin: 0;
  border-radius: 0;
  border-bottom: 0;
}
.customs-table-frame .layui-table-header {
  background: #f8fafc;
}
.customs-table-frame .layui-table-body .layui-table-cell {
  height: 42px;
  line-height: 30px;
}
.customs-table-frame .layui-table-cell .layui-btn-xs {
  vertical-align: top;
  margin-top: 0;
}
.customs-pagination {
  margin: 0;
  height: auto;
  min-height: 42px;
  padding: 4px 10px;
  text-align: right;
  border: 1px solid #e2e2e2;
  box-sizing: border-box;
}
.customs-pagination .layui-laypage {
  margin: 0;
  white-space: normal;
}
.customs-pagination.is-disabled {
  pointer-events: none;
}
.customs-report-bar {
  border: 0;
  padding: 20px 0 10px;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.customs-report-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.customs-report-controls > label {
  margin: 0 8px 0 0;
  line-height: 24px;
}
.customs-analysis-select {
  width: 190px;
}
.customs-report-bar .layui-btn + .layui-btn {
  margin-left: 0;
}
.customs-export-controls {
  margin-left: auto;
}
.customs-download-dialog {
  padding: 16px 20px;
}
@media (max-width: 767px) {
  /* 保留Layui原生双月选择，手机上下排列，避免横向超出屏幕。 */
  .layui-laydate-range {
    width: 274px;
    max-width: calc(100vw - 12px);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    /* 窄屏固定顶部，避免长面板超出可视高度。 */
    top: 8px !important;
  }
  .layui-laydate-range .layui-laydate-main {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .layui-laydate-range .layui-laydate-footer {
    height: auto;
  }
  .layui-laydate-range .layui-laydate-preview {
    display: block;
  }
  .layui-laydate-range .laydate-footer-btns {
    position: static;
    margin-top: 6px;
    text-align: right;
  }
  .customs-panel > .layui-card-body {
    padding: 12px;
  }
  .customs-report-controls,
  .customs-export-controls {
    width: 100%;
  }
  .customs-analysis-select {
    flex: 1;
    min-width: 120px;
  }
  .customs-pagination .layui-laypage-count {
    display: block;
    padding-right: 0;
  }
  .customs-report-bar .layui-btn {
    max-width: 100%;
  }
  .customs-report-controls > label {
    max-width: 120px;
  }
}

.customs-pagination {
  white-space: normal;
  overflow: visible;
}
.customs-pagination .layui-laypage {
  height: auto;
  max-width: 100%;
}
.customs-pagination .layui-laypage a,
.customs-pagination .layui-laypage span {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .customs-pagination .layui-laypage a,
  .customs-pagination .layui-laypage span.layui-laypage-curr {
    padding-left: 8px;
    padding-right: 8px;
  }
}
