/* =========================================================
   CoinASX V115 - Delivery Contract
   Source DOM:
   .deliveryContract
   .Full-warehouse
   .Delivery-time
   .price
   .position
   ========================================================= */

html{
  --dc-bg:#000000;
  --dc-panel:#0b0b0d;
  --dc-panel2:#17181d;
  --dc-panel3:#202228;
  --dc-border:#2a2c31;

  --dc-title:#ffffff;
  --dc-body:#f1f2f4;
  --dc-small:#a9adb4;
  --dc-muted:#73777f;

  --dc-green:#2fc48d;
  --dc-red:#ff4f64;
  --dc-green-soft:rgba(47,196,141,.10);
  --dc-red-soft:rgba(255,79,100,.10);
}

html.cx-theme-light,
html[data-theme="light"],
html[data-cx-theme="light"]{
  --dc-bg:#ffffff;
  --dc-panel:#ffffff;
  --dc-panel2:#f3f4f6;
  --dc-panel3:#eaecf0;
  --dc-border:#dfe2e6;

  --dc-title:#111317;
  --dc-body:#2f3338;
  --dc-small:#737981;
  --dc-muted:#9aa0a8;

  --dc-green:#0ea772;
  --dc-red:#df4155;
  --dc-green-soft:rgba(14,167,114,.07);
  --dc-red-soft:rgba(223,65,85,.07);
}

/* ===== 页面背景 ===== */
body:has(.deliveryContract),
.deliveryContract,
.deliveryContract.appContent,
.deliveryContract .contract-header,
.deliveryContract .Full-warehouse,
.deliveryContract .position{
  background:var(--dc-bg)!important;
  color:var(--dc-body)!important;
}

/* ===== 顶部 BTC/USDT ===== */
.deliveryContract .contract-header{
  border-bottom:1px solid var(--dc-border)!important;
}

.deliveryContract .contract-header .pl-30.pr-30{
  padding-left:16px!important;
  padding-right:16px!important;
}

.deliveryContract .contract-header .pt-45{
  min-height:78px!important;
  padding-top:20px!important;
  padding-bottom:14px!important;
}

.deliveryContract .contract-header .font-35{
  color:var(--dc-title)!important;
  font-size:20px!important;
  line-height:26px!important;
  font-weight:800!important;
}

.deliveryContract .contract-header .ml-15,
.deliveryContract .contract-header .pl-30.w-160{
  color:var(--dc-small)!important;
  font-size:12px!important;
}

.deliveryContract .contract-header .w-35.h-35{
  width:28px!important;
  height:28px!important;
}

.deliveryContract .contract-header .w-38.h-35{
  width:24px!important;
  height:24px!important;
}

/* ===== 全仓区域 ===== */
.deliveryContract .Full-warehouse{
  padding:14px 14px 18px!important;
}

.deliveryContract .Full-warehouse-bottom-flex{
  margin-bottom:12px!important;
}

.deliveryContract .Full-warehouse-bottom{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:68px!important;
  height:34px!important;
  padding:0 12px!important;
  border:1px solid var(--dc-border)!important;
  border-radius:9px!important;
  background:var(--dc-panel2)!important;
  color:var(--dc-title)!important;
  font-size:13px!important;
  font-weight:700!important;
}

.deliveryContract .segmentation{
  height:1px!important;
  background:var(--dc-border)!important;
  margin:0 0 15px!important;
}

/* ===== 左右两栏 ===== */
.deliveryContract .Full-warehouse-list{
  display:grid!important;
  grid-template-columns:minmax(0,1.48fr) minmax(126px
  gap:14px!important;
  align-items:start!important;
}

/* ===== 交
.deliveryContract .Delivery-time-title{
  color:var(--dc-small)!important;
  font-size:12px!important;
  margin-bottom:8px!important;
}

.deliveryContract .Delivery-time-list{
  display:flex!important;
  gap:6px!important;
  overflow-x:auto!important;
  padding-bottom:5px!important;
  scrollbar-width:none!important;
}
.deliveryContract .Delivery-time-list::-webkit-scrollbar{display:none!important}

.deliveryContract .Delivery-time-item{
  fl
  min-width:62px!important;
  border:1px so
  border-radius:9px!important;
  overflow:hidden!important;
  background:var(--dc-panel2)!important;
}

.deliveryContract .Delivery-time-item-time,
.deliveryContract .Delivery-time-item-percentage{
  background:transparent!important;
  color:var(--dc-small)!important;
  text-align:center!important;
  font-size:10.5px!important;
  line-height:20px!important;
}

.deliveryContract .Delivery-time-item:first-child .Delivery-time-item-tim
.deliveryContract .Delivery-time-item:first-child .Delivery-time-item-percentage{
  background:var(--dc-panel3)!important;
  color:var(--dc-title)!important;
}

/* ===== 成本输入框 ===== */
.deliveryContract .Delivery-time-input{
  margin-top:12px!important;
}

.deliveryContract .Delivery-time-input .van-cell{
  min-height:52px!important;
  padding:0 12px!important;
  display:flex!important;
  align-items:center!important;
  border:1px solid var(--dc-border)!important;
  border-radius:11px!important;
  background:var(--dc-panel2)!important;
}

.deliveryContract .Delivery-time-input input{
  color:var(--dc-title)!important;
  font-size:16px!important;
  font-weight:700!important;
}

.deliveryContract .Delivery-time-input input::placeholder{
  color:var(--dc-muted)!important;
}

.deliveryContract .Delivery-time-input-text{
  color:var(--dc-title)!important;
  font-size:14px!important;
  font-weight:700!important;
}

/* ===== 看涨 / 看跌按钮 ===== */
.deliveryContract .Delivery-time-open-more{
  min-height:54px!important;
  margin-top:11px!important;
  border-radius:13px!important;
  border:0!important;
  background:var(--dc-green)!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  box-shadow:none!important;
}

.deliveryContract .Delivery-time-open-more-red{
  background:var(--dc-red)!important;
}

.deliveryContract .Delivery-time-open-more-text{
  color:#fff!important;
  font-size:17px!important;
  line-height:22px!important;
  font-weight:800!important;
}

.deliveryContract .Delivery-time-open-more-text2{
  color:rgba(255,255,255,.86)!important;
  font-size:11px!important;
}

/* ===== 手续费 ===== */
.deliveryContract .handling-fee{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  margin-top:12px!important;
  color:var(--dc-small)!important;
  font-size:12px!important;
}

/* ===== 右侧价格数量盘口 ===== */
.deliveryContract .price{
  min-width:0!important;
  color:var(--dc-body)!important;
}

.deliveryContract .price-title,
.deliveryContract .unit{
  display:flex!important;
  justify-content:space-between!important;
}

.deliveryContract .price-text,
.deliveryContract .quantity,
.deliveryContract .unit-text,
.deliveryContract .unit-text2{
  color:var(--dc-muted)!important;
  font-size:10.5px!important;
}

.deliveryContract .price-content{
  margin-top:4px!important;
}

.deliveryContract .price-item{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  min-height:25px!important;
  padding:0 4px!important;
  background:transparent!important;
}

.deliveryContract .price-item-text{
  color:var(--dc-green)!important;
  font-size:12px!important;
  font-weight:650!important;
}

.deliveryContract .price-item-text-red{
  color:var(--dc-red)!important;
}

.deliveryContract .price-item-text2{
  color:var(--dc-small)!important;
  font-size:11px!important;
}

.deliveryContract .price-content-title{
  margin:8px 0!important;
  color:var(--dc-title)!important;
  font-size:18px!important;
  line-height:24px!important;
  font-weight:800!important;
  text-align:center!important;
}

/* ===== 仓位 / 委托区域 ===== */
.deliveryContract .position{
  border-top:1px solid var(--dc-border)!important;
  min-height:180px!important;
}

/* ===== 去旧紫色 ===== */
.deliveryContract [style*="rgb(127, 129, 253)"],
.deliveryContract [style*="rgb(108, 82, 230)"]{
  background:var(--dc-panel3)!important;
  color:var(--dc-title)!important;
}

/* ===== 响应式 ===== */
@media(max-width:390px){
  .deliveryContract .Full-warehouse-list{
    grid-template-columns:minmax(0,1.45fr) minmax(112px,.90fr)!important;
    gap:10px!important;
  }

  .deliveryContract .Delivery-time-open-more{
    min-height:50px!important;
  }

  .deliveryContract .Delivery-time-open-more-text{
    font-size:16px!important;
  }

  .deliveryContract .price-item-text{
    font-size:11px!important;
  }

  .deliveryContract .price-item-text2{
    font-size:10px!important;
  }
}

/* ===== 主题切换平滑，行情数字不闪 ===== */
.deliveryContract,
.deliveryContract .contract-header,
.deliveryContract .Full-warehouse-bottom,
.deliveryContract .Delivery-time-item,
.deliveryContract .Delivery-time-input .van-cell,
.deliveryContract .Delivery-time-open-more{
  transition:
    background-color .14s ease,
    color .14s ease,
    border-color .14s ease!important;
}

.deliveryContract .price *,
.deliveryContract .price-item,
.deliveryContract .price-content-title{
  animation:none!important;
  transform:none!important;
}
