/**
 * 后台自定义样式：侧栏父级菜单箭头统一为「默认向右、展开向下」
 */

.sidebar-menu li.treeview > a .pull-right-container > .fa-angle-right,
.sidebar-menu li.treeview > a > .fa-angle-right {
  width: auto;
  height: auto;
  padding: 0;
  margin-right: 10px;
  transition: transform 0.2s ease;
  transform: rotate(0deg) !important;
}

.sidebar-menu li.treeview.active > a .pull-right-container > .fa-angle-right,
.sidebar-menu li.treeview.treeview-open > a .pull-right-container > .fa-angle-right {
  transform: rotate(90deg) !important;
}

/* 兼容仍输出 angle-left 的旧菜单 HTML */
.sidebar-menu li.treeview > a .pull-right-container > .fa-angle-left,
.sidebar-menu li.treeview > a > .fa-angle-left {
  transition: transform 0.2s ease;
  transform: rotate(0deg) !important;
}

.sidebar-menu li.treeview.active > a .pull-right-container > .fa-angle-left,
.sidebar-menu li.treeview.treeview-open > a .pull-right-container > .fa-angle-left {
  transform: rotate(90deg) !important;
}

/* 用户列表头像：圆形 */
img.user-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* 用户列表：类型/有效期 双 VIP 上下排列，行高与单行一致 */
.bootstrap-table td .user-membership-cell {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  font-size: 12px;
  vertical-align: middle;
  max-width: 220px;
}

.bootstrap-table td .user-membership-cell.is-single {
  font-size: 13px;
  line-height: 1.42857143;
}

.bootstrap-table td .user-membership-cell.is-multi .line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bootstrap-table td .user-membership-cell.is-multi .line + .line {
  margin-top: 1px;
}

.bootstrap-table td .user-balance-cell {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
  font-size: 12px;
  vertical-align: middle;
  white-space: nowrap;
}

.bootstrap-table td .user-balance-cell .line + .line {
  margin-top: 2px;
}

.bootstrap-table td .user-membership-cell.is-balance .line:first-child {
  color: #111827;
  font-weight: 500;
}

.bootstrap-table td .user-membership-cell.is-balance .line + .line {
  color: #64748b;
  font-size: 11px;
}

/* 列表页筛选区（与充值记录一致） */
.task-list-page,
.persona-face-log-page,
.user-list-page .bootstrap-table td .btn-user-login-frontend {
  margin-right: 2px;
}

.user-list-page .fixed-table-body table tbody tr td:last-child,
.user-list-page .fixed-table-body table thead tr th:last-child {
  min-width: 108px;
  white-space: nowrap;
}

.workflow-list-page,
.finance-recharge-page {
  overflow: visible !important;
}

/* 已改用 admin-list-filter，隐藏 bootstrap-table 旧版通用搜索 */
.task-list-page .commonsearch-table,
.persona-face-log-page .commonsearch-table,
.user-list-page .commonsearch-table,
.workflow-list-page .commonsearch-table {
  display: none !important;
}

.task-list-page .toolbar,
.persona-face-log-page .toolbar,
.user-list-page .toolbar,
.workflow-list-page .toolbar,
.finance-recharge-toolbar {
  overflow: visible !important;
}

.admin-list-filter {
  margin: 0 12px 12px;
  padding: 12px 14px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: visible;
  width: auto;
  box-sizing: border-box;
}

.admin-list-filter .filter-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}

.admin-list-filter .filter-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.admin-list-filter .filter-field-actions {
  flex: 0 0 auto;
  min-width: auto;
  max-width: none;
}

.admin-list-filter .filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-list-filter .filter-actions .btn {
  height: 34px;
  min-height: 34px;
  line-height: 22px;
  padding: 6px 14px;
  font-size: 13px;
  box-sizing: border-box;
}

.admin-list-filter .filter-actions-label {
  visibility: hidden;
}

.admin-list-filter .filter-fields {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
  width: 100%;
}

.admin-list-filter .filter-field {
  flex: 0 1 160px;
  min-width: 150px;
  max-width: 220px;
}

.admin-list-filter .filter-field-wide {
  flex: 0 1 200px;
  min-width: 180px;
  max-width: 260px;
}

.admin-list-filter .filter-field label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: normal;
  color: #64748b;
  white-space: nowrap;
}

.admin-list-filter .filter-field .form-control,
.admin-list-filter .filter-field .input-group {
  width: 100%;
}

.admin-list-filter select.form-control {
  height: 34px;
  min-height: 34px;
  line-height: normal;
  padding: 7px 28px 7px 10px;
  font-size: 13px;
  box-sizing: border-box;
  overflow: visible;
}

.admin-list-filter .input-group-sm > .form-control {
  height: 34px;
  min-height: 34px;
  line-height: 20px;
  padding: 7px 10px;
  font-size: 13px;
}

.admin-list-filter .input-group-sm > .input-group-addon {
  height: 34px;
  line-height: 32px;
  padding: 0 10px;
}

@media (max-width: 992px) {
  .admin-list-filter .filter-field,
  .admin-list-filter .filter-field-wide {
    flex: 1 1 calc(50% - 10px);
    max-width: none;
  }
}

@media (max-width: 576px) {
  .admin-list-filter .filter-field,
  .admin-list-filter .filter-field-wide {
    flex: 1 1 100%;
    max-width: none;
  }

  .admin-list-filter .filter-field-actions {
    flex: 1 1 100%;
  }
}
