* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #f1f4f5;
  color: #333;
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, select, textarea { font: inherit; }
button,
[data-page],
.site-menu-item > a,
.nav-tabs > li > a,
.quick-entry-item,
.td-btn,
.btn,
.toggle-btn,
.switchery,
.pagination a,
.cap-card,
.pay-card { cursor: pointer; }
.padding-top-60 { padding-top: 60px; }
.bg-hui { background: #f1f4f5; }
.bg-white { background: #fff; }
.padding-20 { padding: 20px; }
.padding-left-30 { padding-left: 30px; }
.padding-right-30 { padding-right: 30px; }
.padding-top-20 { padding-top: 20px; }
.padding-bottom-20 { padding-bottom: 20px; }
.padding-bottom-10 { padding-bottom: 10px; }
.padding-horizontal-20 { padding-left: 20px; padding-right: 20px; }
.margin-top-20 { margin-top: 20px; }
.margin-bottom-20 { margin-bottom: 20px; }
.margin-right-10 { margin-right: 10px; }
.margin-right-20 { margin-right: 20px; }
.margin-right-30 { margin-right: 30px; }
.margin-left-10 { margin-left: 10px; }
.inline-block { display: inline-block; vertical-align: middle; }
.block { display: block; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.pull-left { float: left; }
.clearfix::after { content: ""; display: block; clear: both; }
.width-100 { width: 100px; }
.width-120 { width: 120px; }
.width-200 { width: 200px; }
.width-400 { width: 400px; }
.width-full { width: 100%; }
.min-width-100 { min-width: 100px; }
.border-top { border-top: 1px solid #e4eaec; }

.site-navbar {
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 0;
  left: 0;
  height: 60px;
  background: #4e97d9;
  color: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.navbar-brand {
  float: left;
  width: 220px;
  height: 60px;
  padding: 0 20px;
  line-height: 60px;
}
.navbar-app {
  float: left;
  height: 60px;
  line-height: 60px;
  font-size: 15px;
}
.navbar-toolbar {
  float: right;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
  padding-right: 20px;
  color: rgba(255, 255, 255, .92);
}

.site-menubar {
  position: fixed;
  z-index: 1900;
  top: 60px;
  bottom: 0;
  left: 0;
  width: 220px;
  overflow-y: auto;
  background: #263238;
  color: rgba(163, 175, 183, .9);
}
.site-menu,
.site-menu-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu-item > a {
  position: relative;
  display: block;
  min-height: 37px;
  padding: 0 38px 0 46px;
  color: rgba(163, 175, 183, .9);
  line-height: 36px;
  white-space: nowrap;
}
.site-menu-item > a:hover,
.site-menu-item.active > a {
  background: #242f35;
  color: #fff;
}
.site-menu-icon {
  position: absolute;
  top: 0;
  left: 20px;
  width: 16px;
  line-height: 36px;
  text-align: center;
  opacity: .9;
}
.site-menu-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: .85;
}
.site-menu-item.open > a .site-menu-arrow {
  transform: rotate(135deg);
}
.site-menu-sub {
  display: none;
  background: rgba(0, 0, 0, .08);
}
.site-menu-item.open > .site-menu-sub {
  display: block;
}
.site-menu-sub .site-menu-item > a {
  padding-left: 50px;
  color: rgba(163, 175, 183, .78);
}
.site-menu-sub .site-menu-sub .site-menu-item > a {
  padding-left: 64px;
}

.site-page {
  min-height: calc(100vh - 60px);
  margin-left: 220px;
  background: #f1f4f5;
}
.prototype-page {
  min-height: calc(100vh - 60px);
}
.page-section { display: none; }
.page-section.active { display: block; }

.page-header {
  min-height: 77px;
  padding: 10px 20px 15px;
  border: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #62a8ea;
}
.breadcrumb li + li::before {
  content: "/";
  padding: 0 8px;
  color: #ccd5db;
}
.breadcrumb .active { color: #76838f; }
.page-title {
  margin: 8px 0 0;
  color: #37474f;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}
.nav-tabs {
  height: 41px;
  margin: 0;
  padding-left: 20px;
  border: 0;
  border-top: 1px solid #e4eaec;
  border-bottom: 1px solid #e4eaec;
  background: #fff;
  list-style: none;
}
.nav-tabs > li {
  float: left;
  height: 41px;
  margin-right: 28px;
}
.nav-tabs > li > a {
  display: block;
  height: 41px;
  padding: 0;
  color: #555;
  line-height: 40px;
  border-bottom: 2px solid transparent;
}
.nav-tabs > li.active > a {
  color: #62a8ea;
  border-bottom-color: #62a8ea;
}
.nav-tabs-line {
  border-bottom: 1px solid #e4eaec;
}

.form-group { margin: 0; }
.form-inline .form-group { margin-bottom: 10px; }
.control-label {
  display: inline-block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 400;
}
.form-control {
  height: 32px;
  padding: 5px 12px;
  border: 1px solid #e4eaec;
  background: #fff;
  color: #76838f;
  line-height: 20px;
  outline: 0;
}
.input-suffix-group {
  display: inline-flex;
  align-items: stretch;
  width: 200px;
  height: 32px;
  border: 1px solid #e4eaec;
  border-radius: 3px;
  background: #fff;
}
.input-suffix-group:focus-within {
  border-color: #62a8ea;
  box-shadow: 0 0 0 2px rgba(98, 168, 234, .12);
}
.input-suffix-group input {
  flex: 1;
  min-width: 0;
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: #37474f;
  font-size: 13px;
  line-height: 20px;
  outline: 0;
}
.input-suffix-group .input-suffix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-left: 1px solid #e4eaec;
  background: #f3f7f9;
  color: #76838f;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.input-suffix-group.percentage-input { width: 300px; }
.input-suffix-group.is-invalid { border-color: #f96868; }
.input-group {
  display: inline-flex;
  align-items: stretch;
  vertical-align: middle;
}
.input-group .form-control { flex: 1; min-width: 0; }
.input-group-addon,
.input-group-btn .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e4eaec;
  background: #f3f7f9;
  color: #76838f;
}
.date-icon {
  position: relative;
  width: 38px;
  min-width: 38px;
}
.date-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid #a3afb7;
  border-radius: 2px;
  background:
    linear-gradient(#a3afb7, #a3afb7) 0 3px / 100% 1px no-repeat,
    linear-gradient(#a3afb7, #a3afb7) 3px 0 / 1px 4px no-repeat,
    linear-gradient(#a3afb7, #a3afb7) 10px 0 / 1px 4px no-repeat;
}
.btn {
  display: inline-block;
  min-width: 58px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #e4eaec;
  border-radius: 3px;
  background: #fff;
  color: #333;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}
.btn-primary {
  border-color: #62a8ea;
  background: #62a8ea;
  color: #fff;
}
.btn-default {
  border-color: #e4eaec;
  background: #fff;
  color: #333;
}
.btn-outline {
  background: #fff;
  color: #62a8ea;
}
.button-padding { padding-right: 20px; padding-left: 20px; }
.td-btn {
  display: inline-block;
  margin: 0 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #00a0e9;
  cursor: pointer;
}
.search-mod {
  min-height: 57px;
}
.op-row {
  min-height: 52px;
}
/* --- Search module: flex + search-field (supply-chain style) --- */
.search-field { display: flex; flex-direction: column; gap: 6px; width: 380px; }
.search-field .select-with-input { width: 100%; }
.search-field .select-with-input input { flex: 1; width: auto; }
.search-field .form-control { width: 100%; }
.search-field .input-group { width: 100%; display: flex; }
.search-field .input-group .form-control { flex: 1; width: auto; min-width: 0; }
.search-label { color: #76838f; font-size: 13px; white-space: nowrap; }
.select-with-input { display: inline-flex; align-items: stretch; }
.select-with-input select {
  height: 32px; border: 1px solid #e4eaec; border-right: 0;
  border-radius: 3px 0 0 3px; background: #f3f7f9; color: #76838f;
  padding: 0 8px; outline: 0; min-width: 90px;
}
.select-with-input input {
  height: 32px; padding: 5px 12px; border: 1px solid #e4eaec;
  border-radius: 0 3px 3px 0; background: #fff; color: #76838f;
  line-height: 20px; outline: 0;
}
.border-bottom-line { border-bottom: 1px solid #e4eaec; }
.toggle-btn {
  float: right;
  color: #76838f;
  line-height: 32px;
}
.select-btn.is-check {
  border-color: #62a8ea;
  color: #62a8ea;
}

.page-min-height { min-height: calc(100vh - 177px); }
.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 22px;
  border-collapse: collapse;
  background: transparent;
}
.table-bordered {
  border: 1px solid #e4eaec;
}
.table th,
.table td {
  padding: 12px 8px;
  border: 1px solid #e4eaec;
  color: #333;
  font-weight: 400;
  vertical-align: middle;
}
.table thead tr.active th,
.table thead tr.active td,
.table tr.active th,
.table tr.active td {
  background: #f3f7f9;
  color: #37474f;
}
.order-card-table {
  min-width: 1350px;
}
.order-meta-row td {
  padding: 10px 12px;
  background: #f7f9fb;
  color: #526069;
  text-align: left;
}
.order-meta-row span {
  display: inline-block;
  margin-left: 18px;
}
.order-detail-row td {
  vertical-align: middle;
}
.goods-cell {
  display: flex;
  align-items: center;
  min-width: 210px;
  text-align: left;
}
.goods-thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  margin-right: 10px;
  border: 1px solid #e4eaec;
  background: #f3f7f9;
}
.goods-cell p {
  margin: 0 0 4px;
  color: #37474f;
}
.goods-cell span,
.text-muted {
  color: #a3afb7;
}
.list-summary,
.alert-info {
  margin: 0 0 20px;
  padding: 12px 40px;
  border: 1px solid #bce8f1;
  border-radius: 3px;
  background: #e5f7ff;
  color: #333;
}
.list-summary span { margin-right: 22px; }
.box.amount-main,
.amount-main {
  margin: 0 0 20px;
  padding: 12px 40px;
  border: 1px solid #bce8f1;
  border-radius: 3px;
  background: #e5f7ff;
  color: #333;
}
.box.amount-main span,
.amount-main span { margin-right: 22px; }
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination-gap {
  margin-top: 0;
}
.pagination a {
  display: block;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #e4eaec;
  background: #fff;
  color: #76838f;
  line-height: 28px;
  text-align: center;
}
.pagination .active a {
  border-color: #62a8ea;
  background: #62a8ea;
  color: #fff;
}
.table-pagination-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}
.pagination-jump {
  display: flex;
  align-items: center;
}
.pagination-jump input {
  width: 48px;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid #e4eaec;
  border-radius: 3px 0 0 3px;
  outline: 0;
}
.pagination-jump .btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 0 3px 3px 0;
  line-height: 28px;
}
.search-radio-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}
.search-radio-option {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #e4eaec;
  border-radius: 3px;
  background: #fff;
  color: #76838f;
  font-size: 13px;
  line-height: 30px;
  cursor: pointer;
}
.search-radio-option.is-active {
  border-color: #62a8ea;
  background: #62a8ea;
  color: #fff;
}

.overview-panel {
  margin-bottom: 20px;
  padding: 28px 20px;
  background: #fff;
}
.section-title {
  margin: 0 0 16px;
  color: #37474f;
  font-size: 15px;
  font-weight: 600;
}
.overview-title {
  margin: 0 0 22px;
  color: #37474f;
  font-size: 16px;
  font-weight: 600;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.metric-row.four { grid-template-columns: repeat(4, 1fr); }
.metric-name { color: #76838f; }
.metric-value {
  margin-top: 10px;
  color: #37474f;
  font-size: 38px;
  font-weight: 600;
  line-height: 48px;
}
.metric-sub { margin-top: 4px; color: #76838f; }
.data-box {
  padding: 20px;
  background: #fff;
  text-align: center;
}
.data-num {
  color: #37474f;
  font-size: 32px;
  font-weight: 600;
  line-height: 42px;
}
.data-name {
  margin-top: 6px;
  color: #76838f;
  font-size: 13px;
}
.quick-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  padding: 10px 70px 20px;
}
.quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  padding: 10px 70px 20px;
}
.quick-entry-item { width: 90px; text-align: center; color: #37474f; }
.quick-entry-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #62a8ea;
  color: #fff;
  font-size: 30px;
  line-height: 70px;
}

.img-box {
  display: inline-flex;
  position: relative;
  width: 90px;
  height: 90px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ccd5db;
  border-radius: 4px;
  background: #fafafa;
  color: #a3afb7;
  vertical-align: middle;
  cursor: pointer;
}
.img-box img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 3px;
}
.img-box .del,
.img-box-del {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f96868;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.wb-plus {
  color: #a3afb7;
  font-size: 28px;
  line-height: 1;
}

.form-horizontal .form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
}
.form-horizontal .form-row > label {
  width: 150px;
  padding-top: 5px;
  padding-right: 18px;
  text-align: right;
}
.settings-panel {
  display: flex;
  flex-direction: column;
}
.settings-panel > .footer-submit {
  margin-top: auto;
}
.form-help {
  margin-top: 6px;
  color: #a3afb7;
  font-size: 12px;
}
.required {
  margin-right: 3px;
  color: #f96868;
}
.input-unit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.width-120 { width: 120px; }
.width-200 { width: 200px; }
.width-300 { width: 300px; }
.width-400 { width: 400px; }
.nested-setting {
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid #e4eaec;
  background: #f8fafc;
}
.form-horizontal .form-row.compact {
  margin-bottom: 12px;
}
.form-horizontal .form-row.compact > label {
  width: 110px;
  padding-right: 12px;
}
.footer-submit {
  position: sticky;
  bottom: 0;
  margin: 30px -20px -20px;
  padding: 15px;
  border-top: 1px solid #e4eaec;
  background: #fff;
  text-align: center;
}
.switchery {
  display: inline-block;
  position: relative;
  width: 46px;
  height: 24px;
  border-radius: 999px;
  background: #e4eaec;
  vertical-align: middle;
}
.switchery::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.switchery.checked { background: #62a8ea; }
.switchery.checked::after { left: 24px; }
.radio-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 1px solid #ccd5db;
  border-radius: 50%;
  background: #fff;
  vertical-align: -2px;
}
.radio-dot.checked {
  border-color: #62a8ea;
  box-shadow: inset 0 0 0 4px #fff;
  background: #62a8ea;
}
.upload-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.upload-box {
  display: flex;
  width: 96px;
  height: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ccd5db;
  border-radius: 4px;
  background: #fafbfc;
  color: #76838f;
}
.upload-box em {
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
}
.upload-meta {
  padding-top: 8px;
}
.file-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rich-editor {
  width: min(760px, 100%);
  border: 1px solid #ccd5db;
  border-radius: 4px;
  background: #fff;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 8px;
  border-bottom: 1px solid #e4eaec;
  background: #f8fafc;
}
.editor-toolbar button {
  min-width: 32px;
  height: 28px;
  margin-right: 6px;
  border: 1px solid #ccd5db;
  border-radius: 3px;
  background: #fff;
  color: #37474f;
}
.editor-body {
  min-height: 180px;
  padding: 14px;
  color: #76838f;
}
.checkbox-custom {
  display: inline-block;
  position: relative;
  min-height: 20px;
  padding-left: 22px;
  vertical-align: middle;
}
.checkbox-custom input {
  position: absolute;
  left: 0;
  top: 2px;
}

.pay-section-title,
.cap-group-title {
  margin: 12px 0 22px 50px;
  color: #37474f;
  font-size: 16px;
  font-weight: 600;
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px 20px;
  max-width: 1600px;
  margin: 0 0 34px 46px;
}
.pay-card {
  min-height: 162px;
  border: 1px solid #ccd5db;
  border-radius: 4px;
  background: #fff;
}
.pay-head {
  display: flex;
  align-items: center;
  height: 82px;
  padding: 18px 20px;
}
.pay-icon {
  width: 48px;
  height: 48px;
  margin-right: 24px;
  border-radius: 4px;
  background: #62a8ea;
  color: #fff;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
}
.pay-title { flex: 1; color: #37474f; }
.pay-client {
  min-height: 70px;
  padding: 12px 20px;
  border-top: 1px solid #e4eaec;
}
.pay-client label {
  display: inline-block;
  margin-right: 14px;
  margin-bottom: 6px;
  color: #37474f;
}
.fake-check {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 3px;
  background: #62a8ea;
  color: #fff;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
}
.channel-setting-head {
  margin-bottom: 24px;
  padding: 20px 55px;
  background: #f3f3f3;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
  gap: 30px 24px;
  align-items: start;
  margin-left: 20px;
}
.cap-card {
  position: relative;
  min-height: 130px;
  padding: 20px 20px 0;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
  color: #37474f;
}
.cap-card:hover {
  border-color: #ccd5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.cap-head {
  display: flex;
  align-items: center;
  min-height: 60px;
}
.cap-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin-right: 12px;
  border-radius: 4px;
  background: #5b85f0;
  color: #fff;
  font-size: 26px;
  line-height: 58px;
  text-align: center;
}
.cap-body {
  min-width: 0;
  flex: 1;
}
.cap-name {
  margin-bottom: 4px;
  color: #37474f;
  font-size: 14px;
  font-weight: 600;
}
.cap-link {
  color: #76838f;
  font-size: 13px;
}
.cap-arrow {
  position: absolute;
  top: 38px;
  right: 28px;
  color: #a3afb7;
  font-size: 28px;
  line-height: 1;
}
.cap-desc {
  margin-top: 18px;
  padding: 10px 0 13px;
  border-top: 1px solid #e4eaec;
  color: #a3afb7;
  font-size: 12px;
  line-height: 20px;
}
@media (max-width: 1366px) {
  .pay-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .cap-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 310px)); }
  .metric-row { grid-template-columns: repeat(3, 1fr); }
}
