* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #f5f7fa;
  color: #303133;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

body { padding-bottom: env(safe-area-inset-bottom); }

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  margin: 0 -16px 16px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #ebeef5;
}

.title-row,
.title-actions,
.tip-head,
.tip-actions,
.cell-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-row,
.tip-head {
  justify-content: space-between;
}

.title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.sub,
.hint,
.meta-line {
  color: #909399;
  font-size: 13px;
  line-height: 1.5;
}

.sub { margin-top: 4px; }
.hint { margin: 8px 0 0; }

.block { margin-bottom: 16px; }

.tip-actions { flex-wrap: wrap; margin-top: 8px; }

.tip-head .el-button,
.tip-actions .el-button,
.cell-line .el-button,
.title-actions .el-button {
  margin-left: 0;
}

.tip-empty { color: #909399; font-size: 12px; }

.account-table { width: 100%; background: #fff; }
.account-table .el-table__body tr { cursor: pointer; }

.cell-line .text {
  min-width: 0;
  word-break: break-all;
  line-height: 1.4;
}

.cell-line .el-button { padding: 0; flex: none; }

.seq { cursor: pointer; }

.tip-raw {
  max-width: min(440px, calc(100vw - 48px));
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}

.tip-extra { margin-top: 8px; }
.tip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tip-actions .el-button { margin-left: 0; }

.status-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-select { width: 108px; flex: none; }
.status-cell .el-date-editor.el-input { width: 168px; flex: none; }

.status-select.is-warning .el-input__inner {
  color: #E6A23C;
  border-color: #f5dab1;
  background: #fdf6ec;
}

.status-select.is-danger .el-input__inner {
  color: #F56C6C;
  border-color: #fbc4c4;
  background: #fef0f0;
}

.pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.foot { margin-top: 16px; }

.el-message { max-width: calc(100vw - 32px); min-width: 0; }

@media (max-width: 640px) {
  .title { font-size: 18px; }
  .page > .topbar .sub { display: none; }
  .title-row { align-items: flex-start; }
  .tip-actions .el-button { margin-bottom: 4px; }
  .status-cell { flex-wrap: wrap; }
  .status-select,
  .status-cell .el-date-editor.el-input { width: 100%; }
  .el-input__inner,
  .el-textarea__inner { font-size: 16px; }
  .el-message-box { width: 88% !important; }
}
