:root {
  --tc-cart-bg: #edf3f9;
  --tc-cart-surface: #ffffff;
  --tc-cart-surface-2: #e6eef7;
  --tc-cart-text: #08182b;
  --tc-cart-muted: #4c627c;
  --tc-cart-line: rgba(22, 57, 96, .2);
  --tc-cart-primary: #1769e0;
  --tc-cart-primary-soft: rgba(23, 105, 224, .1);
  --tc-cart-success: #0d9f78;
  --tc-cart-danger: #dc3f59;
  --tc-cart-shadow: 0 18px 48px rgba(41, 67, 98, .1);
}

:root[data-theme-mode="dark"] {
  --tc-cart-bg: #060d17;
  --tc-cart-surface: #0c1929;
  --tc-cart-surface-2: #101f32;
  --tc-cart-text: #edf6ff;
  --tc-cart-muted: #91a4bd;
  --tc-cart-line: rgba(132, 176, 223, .16);
  --tc-cart-primary: #5a9cff;
  --tc-cart-primary-soft: rgba(90, 156, 255, .14);
  --tc-cart-success: #35d4a5;
  --tc-cart-danger: #ff7084;
  --tc-cart-shadow: 0 26px 70px rgba(0, 0, 0, .34);
}

body,
.template,
.goods,
.template > .el-container,
.goods > .el-container,
.template .el-main,
.goods .el-main {
  background: var(--tc-cart-bg) !important;
  color: var(--tc-cart-text) !important;
}

.template .el-main,
.goods .el-main {
  padding: 28px !important;
}

.main-card,
.config-box .content,
.main-content-box,
.goods-item,
.shopping-goods,
.domain-content,
.car-box,
.footer-box,
.up-dialog .el-dialog,
.el-dialog,
.el-popover,
.el-select-dropdown {
  background: var(--tc-cart-surface) !important;
  border-color: var(--tc-cart-line) !important;
  color: var(--tc-cart-text) !important;
  box-shadow: var(--tc-cart-shadow) !important;
}

.main-card,
.config-box .content,
.main-content-box {
  border: 1px solid var(--tc-cart-line) !important;
  border-radius: 18px !important;
}

.main-title,
.goods-name,
.shop-name,
.table-name,
.domain-name,
.dia-title,
.car-name,
.search-title {
  color: var(--tc-cart-text) !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}

.main-title {
  position: relative;
  padding-left: 14px !important;
}

.main-title::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 18px;
  border-radius: 8px;
  background: var(--tc-cart-primary);
  content: "";
  transform: translateY(-50%);
}

.shopping-item,
.shopping-goods,
.domain-item,
.car-item,
.price-item,
.batch-item {
  border-color: var(--tc-cart-line) !important;
  border-radius: 14px !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.shopping-item:hover,
.domain-item:hover,
.car-item:hover {
  border-color: var(--tc-cart-primary) !important;
  box-shadow: 0 14px 34px rgba(23, 105, 224, .1) !important;
  transform: translateY(-2px);
}

.table-name,
.table-content,
.goods-table,
.goods-table th,
.goods-table td,
.car-top,
.car-bottom,
.batch-box,
.discount-box,
.cash-box,
.totalprice-box,
.show-config-list {
  background: var(--tc-cart-surface) !important;
  border-color: var(--tc-cart-line) !important;
  color: var(--tc-cart-text) !important;
}

.goods-table thead,
.goods-table th,
.price-list,
.domain-left,
.car-top,
.batch-main {
  background: var(--tc-cart-surface-2) !important;
}

.goods-description,
.goods-info,
.goodsInfo-type,
.goodsInfo-val,
.qty-tips,
.tips,
.up-tips,
.unavail-reason,
.file-name,
.price-year,
.car-year,
.no-goods-tips {
  color: var(--tc-cart-muted) !important;
}

.money-text,
.now-price,
.price-new,
.item-price,
.item-total,
.total-price,
.car-money,
.car-price {
  color: var(--tc-cart-danger) !important;
}

.blue-a-text,
.bule-text,
.open-text,
.edit-goods,
.price-renew {
  color: var(--tc-cart-primary) !important;
}

.el-input__inner,
.el-textarea__inner,
.el-select .el-input__inner,
.el-input-number,
.el-input-number .el-input__inner {
  background: var(--tc-cart-surface) !important;
  border-color: var(--tc-cart-line) !important;
  border-radius: 10px !important;
  color: var(--tc-cart-text) !important;
}

.el-input__inner:focus,
.el-textarea__inner:focus,
.el-select .el-input.is-focus .el-input__inner {
  border-color: var(--tc-cart-primary) !important;
  box-shadow: 0 0 0 3px var(--tc-cart-primary-soft) !important;
}

.el-button--primary,
.search-btn,
.buy-btn,
.settle-btn,
.confim-btn,
.add-btn,
.upload-btn,
.file-btn {
  background: var(--tc-cart-primary) !important;
  border-color: var(--tc-cart-primary) !important;
  border-radius: 10px !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(23, 105, 224, .22);
}

.el-button--default,
.cancel-btn,
.batch-btn,
.search-button {
  background: var(--tc-cart-surface) !important;
  border-color: var(--tc-cart-line) !important;
  border-radius: 10px !important;
  color: var(--tc-cart-text) !important;
}

.el-checkbox__inner,
.el-radio__inner {
  background: var(--tc-cart-surface) !important;
  border-color: var(--tc-cart-line) !important;
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-radio__input.is-checked .el-radio__inner {
  background: var(--tc-cart-primary) !important;
  border-color: var(--tc-cart-primary) !important;
}

.el-empty__description p,
.el-dialog__body,
.el-dialog__title,
.el-form-item__label,
.el-select-dropdown__item {
  color: var(--tc-cart-text) !important;
}

.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover,
.el-select-dropdown__item.selected {
  background: var(--tc-cart-primary-soft) !important;
  color: var(--tc-cart-primary) !important;
}

.el-loading-mask {
  background: color-mix(in srgb, var(--tc-cart-surface) 82%, transparent) !important;
}

@media (max-width: 900px) {
  .template .el-main,
  .goods .el-main {
    padding: 16px !important;
  }

  .main-card,
  .config-box .content,
  .main-content-box {
    border-radius: 14px !important;
  }

  .search-box,
  .footer-box,
  .car-bottom,
  .action-box {
    align-items: stretch !important;
    flex-wrap: wrap;
    gap: 12px;
  }

  .goods-table {
    min-width: 680px;
  }

  .table-content {
    overflow-x: auto;
  }
}

/* TungstenCloud 1.4 cart density and layout repair. */
html[theme="tungstencloud"] body .template > .el-container,
html[theme="tungstencloud"] body .goods > .el-container { width: 100%; flex-direction: row !important; }
html[theme="tungstencloud"] body .template > .el-container > .el-container,
html[theme="tungstencloud"] body .goods > .el-container > .el-container {
  width: 0;
  min-width: 0;
  flex: 1 1 0%;
  flex-direction: column !important;
}
html[theme="tungstencloud"] body .template .el-main,
html[theme="tungstencloud"] body .goods .el-main {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  padding: 24px 28px 118px !important;
}
html[theme="tungstencloud"] body .template .main-card,
html[theme="tungstencloud"] body .goods .main-card {
  width: 100%;
  max-width: 1480px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 30px 32px 34px !important;
  box-sizing: border-box;
}
.main-title {
  margin: 0 0 24px !important;
  padding-left: 14px !important;
  font-size: 26px !important;
  line-height: 1.3 !important;
}
.main-content-box,
.config-box .content {
  padding: 22px !important;
}
.main-card > .search-box {
  justify-content: flex-end !important;
  margin: 0 0 20px !important;
}
.search-box { gap: 10px; }
.search-box .el-select,
.search-box .el-input,
.search-input { max-width: 320px; }
.goods-list-div {
  grid-template-columns: repeat(2, minmax(360px, 520px)) !important;
  justify-content: start;
  align-items: stretch;
  gap: 20px !important;
}
.shopping-item {
  min-width: 0;
  min-height: 452px !important;
  padding-bottom: 24px !important;
  border: 2px solid var(--tc-cart-line) !important;
  border-radius: 18px !important;
  background: var(--tc-cart-surface) !important;
  box-shadow: 0 12px 32px rgba(41, 67, 98, .07);
}
.shopping-item .goods-description {
  min-height: 188px !important;
  max-height: 260px !important;
  padding: 22px 20px !important;
  overflow: auto;
  border-bottom: 1px solid var(--tc-cart-line);
  color: var(--tc-cart-muted) !important;
  background: var(--tc-cart-surface-2) !important;
  font-size: 14px !important;
  line-height: 1.72;
}
.shopping-item .goods-content { min-height: 184px; }
.shopping-item .goods-name { margin-top: 20px !important; padding: 0 20px !important; }
.shopping-item .goods-name .goods-name-text {
  color: var(--tc-cart-text) !important;
  font-size: 17px !important;
  line-height: 1.45;
}
.shopping-item .goods-active { padding: 0 20px !important; }
.shopping-item .price-box {
  align-items: flex-end !important;
  margin-top: auto !important;
  padding: 20px 20px 0 !important;
}
.shopping-item .price-box .price-box-left { min-width: 0; text-align: left !important; }
.shopping-item .price-box .item-price { font-size: 26px !important; line-height: 1.15; }
.shopping-item .price-box .buy-btn {
  min-width: 112px;
  height: 40px !important;
  border-radius: 10px !important;
}
.shopping-goods {
  margin-bottom: 16px !important;
  padding: 18px 20px !important;
}
.goods-box { padding-bottom: 24px !important; }
.table-content { width: 100%; overflow-x: auto; }
.goods-table { margin-top: 14px !important; }
.goods-table th { padding-right: 16px !important; padding-left: 16px !important; }
.goods-table tbody tr td { padding: 18px 16px !important; }
.el-footer {
  left: 228px;
  width: calc(100vw - 228px) !important;
  height: auto !important;
  min-height: 88px;
  padding: 14px 28px !important;
  border-top: 1px solid var(--tc-cart-line);
  background: color-mix(in srgb, var(--tc-cart-surface) 94%, transparent) !important;
  backdrop-filter: blur(16px);
}
.footer-box {
  width: 100%;
  max-width: 1480px !important;
  gap: 20px;
}
.footer-left,
.footer-right { min-width: 0; font-size: 14px !important; }
.footer-right { gap: 14px; }
.total-price { font-size: 24px !important; white-space: nowrap; }
.buy-btn {
  width: auto !important;
  min-width: 150px;
  height: 44px !important;
  margin: 0 0 0 16px !important;
}

@media (max-width: 980px) {
  .el-footer { left: 0; width: 100vw !important; }
  .goods-list-div { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 720px) {
  html[theme="tungstencloud"] body .template .el-main,
  html[theme="tungstencloud"] body .goods .el-main { padding: 14px 12px 108px !important; }
  html[theme="tungstencloud"] body .template .main-card,
  html[theme="tungstencloud"] body .goods .main-card { padding: 20px 16px 24px !important; }
  .main-title { margin-bottom: 16px !important; font-size: 22px !important; }
  .main-content-box,
  .config-box .content { padding: 14px !important; }
  .main-card > .search-box,
  .search-box { justify-content: stretch !important; margin-bottom: 16px !important; }
  .search-box .el-select,
  .search-box .el-input,
  .search-input { width: 100% !important; max-width: none; }
  .goods-list-div { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  .shopping-item { min-height: 0 !important; }
  .shopping-item .goods-description { min-height: 0 !important; max-height: 240px !important; padding: 18px 16px !important; }
  .shopping-item .goods-content { min-height: 0; }
  .shopping-item .goods-name,
  .shopping-item .goods-active,
  .shopping-item .price-box { padding-right: 16px !important; padding-left: 16px !important; }
  .shopping-goods { padding: 14px !important; }
  .goods-table tbody tr td { padding: 14px 12px !important; }
  .el-footer { min-height: 78px; padding: 10px 12px !important; }
  .footer-box { gap: 10px; }
  .footer-left { font-size: 12px !important; }
  .footer-right { flex-direction: row !important; align-items: center !important; gap: 8px; }
  .footer-right p { margin: 0; }
  .total-price { font-size: 18px !important; }
  .buy-btn { min-width: 96px; height: 40px !important; margin: 0 !important; }
}


/* TungstenCloud 2.1.8: final order-product workspace correction. */
@media (min-width: 901px) {
  .template > .el-container > .el-container > .el-main {
    width: 100% !important; padding: 24px clamp(24px, 2vw, 46px) 38px !important;
    overflow-x: hidden !important; box-sizing: border-box !important;
  }
  .template .el-main > .main-card {
    width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
    overflow: hidden !important; border: 1px solid var(--tc-cart-line) !important; border-radius: 20px !important;
    background: var(--tc-cart-surface) !important; box-shadow: var(--tc-cart-shadow) !important;
  }
  .template .el-main > .main-card > .main-title {
    min-height: 66px !important; display: flex !important; align-items: center !important; margin: 0 !important;
    padding: 0 28px !important; border: 0 !important; border-bottom: 0 !important; font-size: 26px !important;
  }
  .template .el-main > .main-card > .main-title::before,
  .template .el-main > .main-card > .main-title::after { display: none !important; content: none !important; }
  .template .el-main > .main-card > .main-content-box {
    width: 100% !important; margin: 0 !important; padding: 22px 28px 30px !important;
    border: 0 !important; border-top: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important;
  }
  .template .search-box {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 auto 22px !important;
  }
  .template .search-box .second-select, .template .search-box .search-btn { margin: 0 !important; }
  .template .goods-list-div {
    width: 100% !important; display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)) !important; gap: 22px !important;
  }
  .template .shopping-item {
    width: 100% !important; max-width: none !important; min-height: 0 !important;
    border: 1px solid var(--tc-cart-line) !important; border-radius: 16px !important; background: var(--tc-cart-surface) !important;
  }
  .template .shopping-item .goods-description {
    min-height: 0 !important; max-height: none !important; height: auto !important; padding: 24px 26px !important;
    overflow: visible !important; border: 0 !important; background: var(--tc-cart-surface-2) !important;
    column-width: 300px; column-gap: 38px;
  }
  .template .shopping-item .goods-content { padding: 4px 0 18px !important; border: 0 !important; }
  .template .shopping-item .goods-tag { border: 0 !important; }
}
@media (min-width: 1800px) {
  .template > .el-container > .el-container > .el-main { padding-right: 56px !important; padding-left: 56px !important; }
}
@media (max-width: 900px) {
  .template .el-main > .main-card > .main-content-box { padding: 16px !important; border: 0 !important; }
  .template .shopping-item .goods-description { max-height: none !important; overflow: visible !important; column-width: auto !important; }
}


/* TungstenCloud 2.1.8: vertical product cards with fully visible parameters. */
@media (min-width: 901px) {
  .template .goods-list-div {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 420px)) !important;
    justify-content: start !important;
    align-items: start !important;
    gap: 22px !important;
  }
  .template .shopping-item {
    width: 100% !important;
    max-width: 420px !important;
    min-height: 0 !important;
    align-self: start !important;
  }
  .template .shopping-item .goods-description {
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    padding: 22px 22px !important;
    overflow: visible !important;
    column-count: 1 !important;
    column-width: auto !important;
    columns: auto !important;
    white-space: normal !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }
  .template .shopping-item .goods-description > * {
    max-width: 100% !important;
  }
  .template .shopping-item .goods-content {
    width: 100% !important;
  }
  .template .el-main > .main-card > .main-content-box,
  .template .el-main > .main-card > .main-title {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }
}
@media (max-width: 900px) {
  .template .goods-list-div {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .template .shopping-item {
    max-width: none !important;
  }
  .template .shopping-item .goods-description {
    max-height: none !important;
    overflow: visible !important;
    column-count: 1 !important;
    columns: auto !important;
  }
}


/* TungstenCloud 2.1.9: hard-center the order-product filters in their own full-width stage. */
.tc-goods-search-stage {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
}
.tc-goods-search-stage > .tc-goods-search {
  width: auto !important;
  max-width: 100% !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
}
.tc-goods-search-stage > .tc-goods-search > .el-select,
.tc-goods-search-stage > .tc-goods-search > .el-input {
  width: clamp(220px, 18vw, 320px) !important;
  max-width: 320px !important;
  flex: 0 1 320px !important;
  margin: 0 !important;
}
.tc-goods-search-stage > .tc-goods-search > .search-btn {
  flex: 0 0 auto !important;
  margin: 0 !important;
}
@media (max-width: 900px) {
  .tc-goods-search-stage {
    margin-bottom: 16px !important;
  }
  .tc-goods-search-stage > .tc-goods-search {
    width: 100% !important;
  }
  .tc-goods-search-stage > .tc-goods-search > .el-select,
  .tc-goods-search-stage > .tc-goods-search > .el-input,
  .tc-goods-search-stage > .tc-goods-search > .search-btn {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
  }
}
