/*@import "./iconfont.css";*/

@import "weapp-tailwindcss";

@theme {
  --color-primary: #15B8A6;
  --color-neutral-darkest: #333333;
  --color-neutral-darker: #666666;
  --color-neutral-dark: #999999;
  --color-neutral-base: #DDDDDD;
  --color-neutral-light: #EEEEEE;
  --color-neutral-lightest: #F8F9FA;
}

body {
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica,
  Segoe UI, Arial, Roboto, PingFang SC, miui, Hiragino Sans GB,
  Microsoft Yahei, sans-serif;
  background: #f7f7f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-overflow-style: none;
}

.taro_page {
  background: #f2f2f2 !important;
}

.taro-tabbar__panel {
  background: #f2f2f2 !important;
}

/** 隐藏导航条 */
::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  background: transparent;
}

textarea {
  height: auto;
}

button::after {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 覆盖 Taro Button 组件的基础样式 */
button {
  all: unset; /* 清除所有默认样式，使其成为“裸按钮” */
  background: none; /* 移除背景颜色 */
  border: none; /* 移除边框 */
  padding: 0; /* 移除内边距 */
  margin: 0; /* 移除外边距 */
  font-size: inherit; /* 继承字体大小 */
  color: inherit; /* 继承文本颜色 */
  cursor: pointer; /* 鼠标悬停时显示为指针形状 */
  line-height: inherit !important;
  width: auto !important;
}

.taro-checkbox_checked {
  border-radius: 99999px !important;
  color: var(--color-primary) !important;
}

.taro-checkbox_checked:checked::before {
  color: var(--color-primary) !important;
}

.nut-textarea-textarea {
  height: 200rpx !important;
}

/* swtich整体大小 */
.wx-switch-input {
  width: 84rpx !important;
  height: 44rpx !important;
}

/* false的样式 */
.wx-switch-input::before {
  width: 80rpx !important;
  height: 40rpx !important;
}

/* true的样式 */
.wx-switch-input::after {
  width: 40rpx !important;
  height: 40rpx !important;
}

.input-bold {
  .weui-input {
    font-weight: bold;
  }
}

@supports (padding-bottom: constant(safe-area-inset-bottom)) or (padding-bottom: env(safe-area-inset-bottom)) {
  .nut-calendar-footer {
    padding-bottom: constant(safe-area-inset-bottom) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}

.nut-empty-base {
  width: 480rpx !important;
  height: 360rpx !important;
}

.nut-empty {
  padding: 16rpx !important;
}

.nut-cell-group-wrap {
  overflow: visible !important;
}

.nut-cell.nut-form-footer.nut-cell-group-item {
  position: sticky;
  bottom: 0;
}

.textarea-placeholder {
  color: #9CA3AF;
  font-size: var(--text-sm);
  font-weight: bold;
}

.nut-input-native {
  font-weight: bold;
}

.preview {
  view {
    height: 1.1cm;
  }
}

.table-border {
  border: 4rpx solid #000;
}

.table-border > view {
  border-bottom: 2rpx solid #000;
}

.table-border > view > view {
  border-right: 2rpx solid #000;
}

.table-border > view > view:last-child {
  border-right: none;
}

.table-border > view:last-child {
  border-bottom: none;
}


.table-sum {
  .nut-table-main-body-tr:last-child {
    background-color: #FAF5A5 !important;
  }
}
