@use "@/static/_uni.scss" as uni;
$white: uni.$uni-color-inverse;
$gray_ebedf0: #ebedf0;

.bg-gray-light {
	background-color: #f1f1f1;
}

/* 卡片样式 */
.card {
  min-height: 252rpx;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.card-header {
  display: flex;
  align-items: center;
  height: 80rpx;
  padding: 0 44rpx;
  box-sizing: border-box;
  font-size: 28rpx;
  color: #333;
  position: relative;
  /* border-bottom: 1rpx solid #ddd; */
}

.card-header {
  width: 4rpx;
  height: 32rpx;
  background: #4DC182;
  position: absolute;
  left: 24rpx;
  top: 26rpx;
}

/* 1px边框 */
.border-top-before,
.border-bottom-after,
.border-left-before,
.border-right-before {
  position: relative;
}

.border-bottom-after::after {
  content: '';
  position: absolute;
  background-color: #ddd;
  display: block;
  z-index: 1;
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform-origin: 50% 100%;
  transform: scaleY(0.5);
}

.border-top-before::before {
  content: '';
  position: absolute;
  background-color: #ddd;
  display: block;
  z-index: 1;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 1PX;
  transform-origin: 50% 100%;
  transform: scaleY(0.5);
}

.border-left-before::before {
  content: '';
  position: absolute;
  background-color: #ddd;
  display: block;
  z-index: 1;
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  /* transform-origin: 100% 50%; */
  transform: scaleX(0.5);
}

.border-right-before::before {
  content: '';
  position: absolute;
  background-color: #ddd;
  display: block;
  z-index: 1;
  top: auto;
  right: 0;
  bottom: 0;
  left: auto;
  width: 1px;
  height: 100%;
  /* transform-origin: 100% 50%; */
  transform: scaleX(0.5);
}

/* 单行溢出内容点点点显示 */
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 自定义输入框样式 */
.custom-address-input {
  display: flex;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 24px;
  color: #323233;
  background-color: #fff;
  z-index: 0 !important;
  position: relative;
  box-sizing: border-box;
}

.custom-address-input .cdi__title {
  flex: 1;
  -webkit-flex: 1;
  flex: none;
  width: 180rpx;
}

.custom-address-input .cdi__value {
  display: block;
  flex: none;
  width: calc(100% - 16rpx - 180rpx - 16rpx);
  text-align: left;
  color: #666;
  -webkit-flex: 1;
  flex: 1;
  overflow: hidden;
}

.custom-address-input .cdi__value.cdi__placeholder {
  color: #969799;
}

.custom-address-input:after {
  position: absolute;
  box-sizing: border-box;
  -webkit-transform-origin: center;
  transform-origin: center;
  content: " ";
  pointer-events: none;
  top: auto;
  right: 0;
  bottom: 0;
  left: 16px;
  border-bottom: 1px solid #ebedf0;
  -webkit-transform: scaleY(.5);
  transform: scaleY(.5);  
}

/*无数据*/
.no-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.no-data .txt {
  color: #999999;
  margin-top: 5px;
}

/* 按钮样式 */
.border-blue {
	border-color: uni.$uni-color-primary !important;
}
.btn {
	.btn-default {
		background: transparent !important;
	}
}
