﻿/*
 * Skin: Yuncang???????
 * ???? + ?????????/?????
 */
.skin-yuncang .main-header {
  background: #ffffff;
  -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.skin-yuncang .main-header .navbar {
  background-color: #ffffff;
}
.skin-yuncang .main-header .navbar .nav > li > a {
  color: #656565;
}
.skin-yuncang .main-header .navbar .nav > li > a:hover,
.skin-yuncang .main-header .navbar .nav > li > a:active,
.skin-yuncang .main-header .navbar .nav > li > a:focus,
.skin-yuncang .main-header .navbar .nav .open > a,
.skin-yuncang .main-header .navbar .nav .open > a:hover,
.skin-yuncang .main-header .navbar .nav .open > a:focus,
.skin-yuncang .main-header .navbar .nav > .active > a {
  background: rgba(249, 115, 22, 0.08);
  color: #fb3b19;
}
.skin-yuncang .main-header .navbar .nav-addtabs li > .close-tab {
  color: #8a8f98;
}
.skin-yuncang .main-header .navbar .sidebar-toggle {
  color: #656565;
}
.skin-yuncang .main-header .navbar .sidebar-toggle:hover {
  color: #fb3b19;
  background: rgba(249, 115, 22, 0.08);
}
.skin-yuncang .main-header .navbar .navbar-nav > li > a {
  border-right: none;
}
.skin-yuncang .main-header .navbar .navbar-custom-menu .navbar-nav > li > a,
.skin-yuncang .main-header .navbar .navbar-right > li > a {
  border-left: none;
  border-right-width: 0;
}
@media (max-width: 767px) {
  .skin-yuncang .main-header .navbar {
    background: linear-gradient(90deg, #fb3b19, #f97316);
  }
  .skin-yuncang .main-header .navbar .nav > li > a {
    color: #fff;
  }
  .skin-yuncang .main-header .navbar .nav > li > a:hover,
  .skin-yuncang .main-header .navbar .nav > li > a:active,
  .skin-yuncang .main-header .navbar .nav > li > a:focus,
  .skin-yuncang .main-header .navbar .nav .open > a,
  .skin-yuncang .main-header .navbar .nav .open > a:hover,
  .skin-yuncang .main-header .navbar .nav .open > a:focus,
  .skin-yuncang .main-header .navbar .nav > .active > a {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  .skin-yuncang .main-header .navbar .nav-addtabs li > .close-tab {
    color: #fff;
  }
  .skin-yuncang .main-header .navbar .sidebar-toggle {
    color: #fff;
  }
  .skin-yuncang .main-header .navbar .sidebar-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }
}
.skin-yuncang .main-header .logo {
  background: #fffaf2;
  color: #111827;
  border-bottom: 0 solid transparent;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
}
.skin-yuncang .main-header .logo:hover {
  background: #fff5e8;
  color: #111827;
}
@media (max-width: 767px) {
  .skin-yuncang .main-header .logo {
    background: #fffaf2;
    color: #111827;
    border-right: none;
  }
  .skin-yuncang .main-header .logo:hover {
    background: #fff5e8;
  }
}
.skin-yuncang .main-header li.user-header {
  background: linear-gradient(120deg, #fb3b19 0%, #f97316 100%);
}
.skin-yuncang .main-header .nav-addtabs > li > a,
.skin-yuncang .main-header .nav-addtabs > li.active > a {
  border-right-color: transparent;
}
.skin-yuncang .main-header .nav-addtabs > li.active > a {
  color: #fb3b19;
  border-bottom: 2px solid #f97316;
  background: rgba(249, 115, 22, 0.06);
}
.skin-yuncang .content-header {
  background: transparent;
  box-shadow: none;
}
.skin-yuncang .wrapper {
  background-color: #fffaf2;
}
.skin-yuncang .main-sidebar,
.skin-yuncang .left-side {
  background-color: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 4px 0 24px rgba(31, 35, 41, 0.04);
}
.skin-yuncang .content-wrapper,
.skin-yuncang .main-footer {
  border-left: none;
  background-color: #fffaf2;
}
.skin-yuncang .user-panel > .info,
.skin-yuncang .user-panel > .info > a {
  color: rgba(0, 0, 0, 0.78);
}
.skin-yuncang .user-panel {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.skin-yuncang .sidebar-menu > li {
  -webkit-transition: border-left-color 0.2s ease, background 0.2s ease;
  -o-transition: border-left-color 0.2s ease, background 0.2s ease;
  transition: border-left-color 0.2s ease, background 0.2s ease;
}
.skin-yuncang .sidebar-menu > li.header {
  color: #8a8f98;
  background: #fffaf2;
}
.skin-yuncang .sidebar-menu > li > a {
  border-left: 3px solid transparent;
  margin: 2px 10px;
  border-radius: 10px;
}
.skin-yuncang .sidebar-menu > li:hover > a,
.skin-yuncang .sidebar-menu > li.active > a {
  color: #fb3b19;
  background: rgba(249, 115, 22, 0.1);
  border-left-color: transparent;
}
.skin-yuncang .sidebar-menu > li.active > a {
  color: #fff;
  background: linear-gradient(90deg, #fb3b19, #f97316);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}
.skin-yuncang .sidebar-menu > li.active > a > .fa,
.skin-yuncang .sidebar-menu > li.active > a > .glyphicon,
.skin-yuncang .sidebar-menu > li.active > a > .ion {
  color: #fff;
}
.skin-yuncang .sidebar-menu > li > .treeview-menu {
  background: #fffaf2;
  margin: 0 10px 6px;
  border-radius: 10px;
}
.skin-yuncang .sidebar a {
  color: #414755;
}
.skin-yuncang .sidebar a:hover {
  text-decoration: none;
}
.skin-yuncang .treeview-menu > li > a {
  color: #656565;
  border-radius: 8px;
  margin: 2px 6px;
}
.skin-yuncang .treeview-menu > li.active > a,
.skin-yuncang .treeview-menu > li > a:hover {
  color: #fb3b19;
  background: rgba(249, 115, 22, 0.1);
}
.skin-yuncang .treeview-menu > li.active > a {
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #fb3b19, #f97316);
}
.skin-yuncang .sidebar-form {
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.12);
  background-color: #fffaf2;
  margin: 12px 14px;
  overflow: hidden;
}
.skin-yuncang .sidebar-form input[type="text"],
.skin-yuncang .sidebar-form .btn {
  box-shadow: none;
  background-color: #fffaf2;
  border: 1px solid transparent;
  height: 36px;
}
.skin-yuncang .sidebar-form input[type="text"] {
  color: rgba(0, 0, 0, 0.78);
  border-radius: 0;
}
.skin-yuncang .sidebar-form input[type="text"]:focus,
.skin-yuncang .sidebar-form input[type="text"]:focus + .input-group-btn .btn {
  background-color: #fff;
  color: rgba(0, 0, 0, 0.88);
}
.skin-yuncang .sidebar-form input[type="text"]:focus + .input-group-btn {
  background: #fff;
}
.skin-yuncang .sidebar-form input[type="text"]:focus + .input-group-btn .btn {
  border-left-color: #fff;
}
.skin-yuncang .sidebar-form .btn {
  color: #f97316;
  border-radius: 0;
}
.skin-yuncang .sidebar-menu .treeview-menu {
  padding-left: 0;
}
.skin-yuncang .sidebar-menu .treeview-menu .treeview-menu {
  padding-left: 0;
}
.skin-yuncang .sidebar-menu .treeview-menu .treeview-menu > li > a {
  padding-left: 30px;
}
.skin-yuncang .sidebar-menu li.treeview > a {
  background: transparent;
  border-left-color: transparent;
}
.skin-yuncang .sidebar-menu li.treeview.active > a,
.skin-yuncang .sidebar-menu li.treeview.treeview-open > a {
  color: #fb3b19;
  background: rgba(249, 115, 22, 0.08);
  border-left-color: transparent;
  box-shadow: none;
}
.skin-yuncang .sidebar-menu li.treeview.active > a > .fa,
.skin-yuncang .sidebar-menu li.treeview.treeview-open > a > .fa {
  color: #f97316;
}
.skin-yuncang.sidebar-collapse .sidebar-menu > li > a {
  margin: 2px 6px;
}
.skin-yuncang.sidebar-collapse .sidebar-menu li:hover > a,
.skin-yuncang.sidebar-collapse .sidebar-menu li.active > a {
  color: #fff;
  background: linear-gradient(90deg, #fb3b19, #f97316);
}
.skin-yuncang.sidebar-collapse .sidebar-menu .treeview-menu li.active > a {
  color: #fff;
  background: linear-gradient(90deg, #fb3b19, #f97316);
}
.skin-yuncang.sidebar-collapse .sidebar-menu .treeview-menu li.treeview > a {
  background: transparent;
  border-left-color: transparent;
}
@media (max-width: 767px) {
  .skin-yuncang.multiplenav .sidebar .mobilenav a.btn-app {
    background: #fffaf2;
    color: #414755;
  }
  .skin-yuncang.multiplenav .sidebar .mobilenav a.btn-app.active {
    background: linear-gradient(90deg, #fb3b19, #f97316);
    color: #fff;
  }
}

/* ??? cookie ?????????? */
.skin-black-blue .main-header .logo,
.skin-black-blue .main-header li.user-header {
  background: linear-gradient(120deg, #fb3b19 0%, #f97316 100%) !important;
  color: #fff !important;
  border-right-color: transparent !important;
}
.skin-black-blue .main-header .logo:hover {
  background: linear-gradient(120deg, #e83415 0%, #ea6c0c 100%) !important;
}
.skin-black-blue .wrapper,
.skin-black-blue .main-sidebar,
.skin-black-blue .left-side {
  background-color: #ffffff !important;
}
.skin-black-blue .main-sidebar,
.skin-black-blue .left-side {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 4px 0 24px rgba(31, 35, 41, 0.04);
}
.skin-black-blue .content-wrapper,
.skin-black-blue .main-footer {
  background-color: #fffaf2 !important;
  border-left: none !important;
}
.skin-black-blue .user-panel > .info,
.skin-black-blue .user-panel > .info > a {
  color: rgba(0, 0, 0, 0.78) !important;
}
.skin-black-blue .user-panel {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.skin-black-blue .sidebar-menu > li.header {
  color: #8a8f98 !important;
  background: #fffaf2 !important;
}
.skin-black-blue .sidebar a {
  color: #414755 !important;
}
.skin-black-blue .sidebar-menu > li > a {
  border-left: 3px solid transparent;
  margin: 2px 10px;
  border-radius: 10px;
}
.skin-black-blue .sidebar-menu > li:hover > a {
  color: #fb3b19 !important;
  background: rgba(249, 115, 22, 0.1) !important;
  border-left-color: transparent !important;
}
.skin-black-blue .sidebar-menu > li.active > a {
  color: #fff !important;
  background: linear-gradient(90deg, #fb3b19, #f97316) !important;
  border-left-color: transparent !important;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}
.skin-black-blue .sidebar-menu > li > .treeview-menu {
  background: #fffaf2 !important;
  margin: 0 10px 6px;
  border-radius: 10px;
}
.skin-black-blue .treeview-menu > li > a {
  color: #656565 !important;
  border-radius: 8px;
  margin: 2px 6px;
}
.skin-black-blue .treeview-menu > li.active > a,
.skin-black-blue .treeview-menu > li > a:hover {
  color: #fff !important;
  background: linear-gradient(90deg, #fb3b19, #f97316) !important;
}
.skin-black-blue .sidebar-form {
  border-radius: 12px !important;
  border: 1px solid rgba(249, 115, 22, 0.12) !important;
  background-color: #fffaf2 !important;
}
.skin-black-blue .sidebar-form input[type="text"],
.skin-black-blue .sidebar-form .btn {
  background-color: #fffaf2 !important;
}
.skin-black-blue .sidebar-form .btn {
  color: #f97316 !important;
}
.skin-black-blue .sidebar-menu li.treeview.active > a,
.skin-black-blue .sidebar-menu li.treeview.treeview-open > a {
  color: #fb3b19 !important;
  background: rgba(249, 115, 22, 0.08) !important;
  border-left-color: transparent !important;
}
.skin-black-blue.sidebar-collapse .sidebar-menu li:hover > a,
.skin-black-blue.sidebar-collapse .sidebar-menu li.active > a,
.skin-black-blue.sidebar-collapse .sidebar-menu .treeview-menu li.active > a {
  color: #fff !important;
  background: linear-gradient(90deg, #fb3b19, #f97316) !important;
}
.skin-black-blue .main-header .navbar .nav > li > a:hover,
.skin-black-blue .main-header .navbar .nav > .active > a {
  background: rgba(249, 115, 22, 0.08);
  color: #fb3b19;
}
.skin-black-blue .main-header .nav-addtabs > li.active > a {
  color: #fb3b19;
  border-bottom: 2px solid #f97316;
  background: rgba(249, 115, 22, 0.06);
}

/* Hide image URL inputs; keep upload buttons and preview thumbs */
.form-group .input-group:has(.faupload),
.form-group .form-inline:has(.faupload) {
  position: relative;
  display: block;
  width: auto;
  max-width: 100%;
}
.form-group .input-group:has(.faupload) > input.form-control,
.form-group .form-inline:has(.faupload) > input.form-control {
  position: absolute !important;
  left: 0;
  top: 0;
  z-index: -1;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}
.form-group .input-group:has(.faupload) > .input-group-addon {
  display: inline-block;
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  vertical-align: middle;
  text-align: left;
}
.form-group .image-thumbs,
.panel-body .image-thumbs,
.yc-od-value .image-thumbs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-group .image-thumbs li,
.panel-body .image-thumbs li,
td .image-thumbs li,
.yc-od-value .image-thumbs li {
  display: block;
  margin: 0;
  vertical-align: top;
}
.form-group .image-thumbs img,
.panel-body .image-thumbs img,
td .image-thumbs img,
.yc-od-value .image-thumbs img {
  display: block;
  width: 96px;
  height: 96px;
  max-width: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  cursor: pointer;
  background: #fffaf2;
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group .image-thumbs img:hover,
.panel-body .image-thumbs img:hover,
td .image-thumbs img:hover,
.yc-od-value .image-thumbs img:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
}

/* ========== Layer dialog / form polish ========== */
.layui-layer-fast {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(31, 35, 41, 0.18) !important;
}
.layui-layer-fast .layui-layer-title {
  background: #ffffff !important;
  color: #1f2937 !important;
  border-bottom: 1px solid rgba(249, 115, 22, 0.12) !important;
  height: 48px;
  line-height: 48px;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.layui-layer-fast .layui-layer-title ~ .layui-layer-setwin {
  top: 0;
  height: 48px;
  right: 14px;
}
.layui-layer-fast .layui-layer-title ~ .layui-layer-setwin > a {
  height: 48px;
  line-height: 48px;
}
.layui-layer-fast .layui-layer-setwin > a:after {
  color: #9ca3af !important;
  font-size: 16px;
}
.layui-layer-fast .layui-layer-setwin > a:hover:after {
  color: #fb3b19 !important;
}
.layui-layer-fast.layui-layer-border {
  border: none !important;
  box-shadow: 0 18px 48px rgba(31, 35, 41, 0.18) !important;
}
.layui-layer-fast .layui-layer-btn,
.layui-layer-fast .layui-layer-footer {
  background: #ffffff !important;
  border-top: 1px solid rgba(249, 115, 22, 0.1);
  padding: 12px 20px !important;
  text-align: right !important;
  min-height: 56px;
}
.layui-layer-fast .layui-layer-btn a,
.layui-layer-fast .layui-layer-footer .btn {
  border-radius: 8px !important;
  height: 34px;
  line-height: 34px;
  padding: 0 18px;
  margin-left: 8px;
  font-size: 13px;
  border: none;
}
.layui-layer-fast .layui-layer-btn .layui-layer-btn0,
.layui-layer-fast .layui-layer-footer .btn-primary {
  background: linear-gradient(90deg, #fb3b19, #f97316) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.22);
}
.layui-layer-fast .layui-layer-footer .btn-default {
  background: #fff !important;
  color: #656565 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: none;
}
.layui-layer-fast .layui-layer-footer .btn-default:hover {
  color: #fb3b19 !important;
  border-color: rgba(249, 115, 22, 0.35) !important;
  background: rgba(249, 115, 22, 0.06) !important;
}

/* Dialog form body */
.is-dialog,
.is-dialog html,
.is-dialog body {
  height: auto !important;
  min-height: 0 !important;
}
.is-dialog,
.is-dialog body,
.is-dialog #main,
.is-dialog .content-wrapper,
.is-dialog .content {
  background: #ffffff !important;
}
.is-dialog body {
  overflow-x: hidden;
  overflow-y: auto;
}
.is-dialog .wrapper,
.is-dialog .content-wrapper,
.is-dialog #main {
  min-height: 0 !important;
  height: auto !important;
}
.is-dialog .content {
  padding: 18px 24px 12px !important;
}
.is-dialog form.form-horizontal {
  max-width: 100%;
  width: 100%;
  margin: 0;
}
.is-dialog form.form-horizontal .form-group {
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: 14px;
}
/* 大弹窗内表单字段横向铺满 */
@media (min-width: 900px) {
  .is-dialog form.form-horizontal > .form-group > .control-label.col-sm-2,
  .is-dialog form.form-horizontal > .form-group > .control-label.col-sm-3 {
    width: 14%;
  }
  .is-dialog form.form-horizontal > .form-group > .col-sm-8,
  .is-dialog form.form-horizontal > .form-group > .col-sm-9 {
    width: 82%;
  }
  .is-dialog form.form-horizontal > .form-group > .col-sm-4 {
    width: 36%;
  }
}
/* 弹窗字段铺满后，右侧校验提示会溢出：改为输入框下方显示 */
.is-dialog form.form-horizontal .form-group > [class*="col-"] {
  position: relative;
}
.is-dialog .n-bootstrap .msg-box.n-right {
  position: static !important;
  display: block;
  width: 100%;
  margin: 6px 0 0;
  left: auto;
  top: auto;
  text-align: left;
}
.is-dialog .n-bootstrap .msg-box.n-right .msg-wrap {
  position: static !important;
  margin: 0;
  white-space: normal;
}
.is-dialog form.form-horizontal .control-label {
  color: #4b5563;
  font-weight: 500;
  padding-top: 9px;
  padding-right: 8px;
}
.is-dialog form.form-horizontal .form-control {
  height: 36px;
  border-radius: 8px;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.is-dialog form.form-horizontal .form-control:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}
.is-dialog form.form-horizontal textarea.form-control {
  height: auto;
  min-height: 140px;
  border-radius: 10px;
  resize: vertical;
}
.is-dialog form.form-horizontal textarea.form-control.editor {
  min-height: 280px;
}
.is-dialog form.form-horizontal .bootstrap-select > .dropdown-toggle {
  height: 36px !important;
  border-radius: 8px !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  background: #fff !important;
  padding-top: 6px;
  padding-bottom: 6px;
}
.is-dialog form.form-horizontal .bootstrap-select.open > .dropdown-toggle,
.is-dialog form.form-horizontal .bootstrap-select > .dropdown-toggle:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14) !important;
  outline: none !important;
}

/* Upload / choose buttons — unified brand */
.is-dialog .btn.faupload,
.form-group .btn.faupload {
  background: linear-gradient(90deg, #fb3b19, #f97316) !important;
  border-color: transparent !important;
  color: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
  padding: 6px 14px;
}
.is-dialog .btn.faupload:hover,
.form-group .btn.faupload:hover {
  background: linear-gradient(90deg, #e83415, #ea6c0c) !important;
  color: #fff !important;
}
.is-dialog .btn.fachoose,
.form-group .btn.fachoose {
  background: #fff !important;
  color: #fb3b19 !important;
  border: 1px solid rgba(249, 115, 22, 0.35) !important;
  border-radius: 8px !important;
  box-shadow: none;
  padding: 6px 14px;
  margin-left: 6px;
}
.is-dialog .btn.fachoose:hover,
.form-group .btn.fachoose:hover {
  background: rgba(249, 115, 22, 0.08) !important;
  color: #e83415 !important;
  border-color: #f97316 !important;
}
.is-dialog .input-group-addon.no-border.no-padding {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Image upload preview — compact thumbs + corner delete (global) */
.faupload-preview,
.plupload-preview {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.faupload-preview > li,
.plupload-preview > li {
  position: relative;
  float: none !important;
  width: 96px !important;
  max-width: 96px;
  margin: 0 !important;
  padding: 0 !important;
}
.faupload-preview .thumbnail,
.plupload-preview .thumbnail {
  display: block;
  margin: 0 !important;
  padding: 0;
  height: 96px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 10px;
  background: #fffaf2;
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faupload-preview > li:hover .thumbnail,
.plupload-preview > li:hover .thumbnail {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
}
.faupload-preview > li:not(.yc-media-add-wrap) a:first-child,
.plupload-preview > li:not(.yc-media-add-wrap) a:first-child {
  height: 96px;
}
.faupload-preview .thumbnail img,
.plupload-preview .thumbnail img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 0;
  border: none;
}
.faupload-preview .btn-trash,
.plupload-preview .btn-trash {
  position: absolute !important;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(31, 35, 41, 0.48) !important;
  color: #fff !important;
  font-size: 11px;
  opacity: 0.88;
  -webkit-transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}
.faupload-preview > li:hover .btn-trash,
.plupload-preview > li:hover .btn-trash {
  opacity: 1;
  background: rgba(31, 35, 41, 0.62) !important;
}
.faupload-preview .btn-trash:hover,
.plupload-preview .btn-trash:hover {
  background: #ef4444 !important;
  color: #fff !important;
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}
.faupload-preview .btn-trash .fa,
.plupload-preview .btn-trash .fa {
  margin: 0;
  line-height: 1;
}

/* Media tab: aligned sections, no nested flex pollution */
#tab-media {
  --yc-media-label: 76px;
}
#tab-media > .form-group,
#tab-media .yc-carousel-specs-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 18px;
}
#tab-media > .form-group:last-child,
#tab-media .yc-carousel-specs-group:last-child {
  margin-bottom: 4px;
}
#tab-media > .form-group > .control-label,
#tab-media .yc-carousel-specs-group > .control-label {
  float: none;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 var(--yc-media-label);
  flex: 0 0 var(--yc-media-label);
  width: var(--yc-media-label);
  min-width: var(--yc-media-label);
  max-width: var(--yc-media-label);
  margin: 0;
  padding: 10px 12px 0 0;
  text-align: left;
  white-space: nowrap;
  color: #475569;
  font-weight: 600;
}
#tab-media > .form-group > [class*="col-"],
#tab-media > .form-group > .yc-media-field,
#tab-media .yc-carousel-specs-content {
  float: none;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  width: auto !important;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
#tab-media .form-group .input-group:has(.faupload) {
  margin-bottom: 0;
}
#tab-media .faupload-preview,
#tab-media .plupload-preview {
  gap: 10px;
  margin: 0;
}

/* Spec editor: name + values in one compact row */
#tab-media .yc-spec-editor .yc-spec-fields {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px 12px;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
}
#tab-media .yc-spec-editor .yc-spec-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
#tab-media .yc-spec-editor .yc-spec-field > label {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
#tab-media .yc-spec-editor .yc-spec-field-name {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 132px;
  flex: 0 0 132px;
  width: 132px;
  max-width: 100%;
}
#tab-media .yc-spec-editor .yc-spec-field-values {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 220px;
  flex: 1 1 220px;
  min-width: 0;
}
#tab-media .yc-spec-editor .help-block {
  margin-top: 8px;
}

/* + add tile next to image previews */
.yc-media-picker {
  position: relative;
}
.yc-media-picker > .yc-media-picker-controls {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  z-index: -1 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  border: 0 !important;
}
.yc-media-picker-controls .form-control { display: none; }
.yc-media-picker-controls .input-group-addon { display: block; padding: 0 !important; background: transparent; border: 0; }
.yc-media-picker-controls .btn { margin: 0; }
.yc-media-picker > .faupload-preview,
.yc-media-picker > .plupload-preview {
  margin-top: 0;
}
.faupload-preview > li.yc-media-add-wrap,
.plupload-preview > li.yc-media-add-wrap {
  width: 96px !important;
  max-width: 96px;
  overflow: visible;
}
.faupload-preview > li.yc-media-add-wrap:has(.yc-media-add.open),
.plupload-preview > li.yc-media-add-wrap:has(.yc-media-add.open) {
  z-index: 40;
}
.yc-media-add {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: visible;
}
.yc-media-add-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding: 0;
  margin: 0;
  border: 1px dashed rgba(249, 115, 22, 0.4);
  border-radius: 10px;
  background: #fffaf2;
  color: #f97316;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  -webkit-transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.yc-media-add-btn:hover,
.yc-media-add.open .yc-media-add-btn {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  color: #fb3b19;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
  outline: none;
}
.yc-media-add-btn:focus {
  outline: none;
}
.yc-media-add-menu {
  display: none;
  position: absolute !important;
  left: calc(100% + 8px);
  top: 0;
  z-index: 50;
  min-width: 128px;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(31, 35, 41, 0.14);
}
.yc-media-add.open .yc-media-add-menu {
  display: block;
}

/* Compact single avatar picker */
.yc-media-picker-sm .faupload-preview > li,
.yc-media-picker-sm .plupload-preview > li,
.yc-media-picker-sm .faupload-preview > li.yc-media-add-wrap,
.yc-media-picker-sm .plupload-preview > li.yc-media-add-wrap {
  width: 72px !important;
  max-width: 72px;
}
.yc-media-picker-sm .yc-media-add,
.yc-media-picker-sm .yc-media-add-btn,
.yc-media-picker-sm .faupload-preview .thumbnail,
.yc-media-picker-sm .plupload-preview .thumbnail,
.yc-media-picker-sm .faupload-preview > li:not(.yc-media-add-wrap) a:first-child,
.yc-media-picker-sm .plupload-preview > li:not(.yc-media-add-wrap) a:first-child {
  width: 72px;
  height: 72px;
}
.yc-media-picker-sm .yc-media-add-btn {
  font-size: 22px;
  border-radius: 8px;
}
.yc-media-picker-sm .faupload-preview,
.yc-media-picker-sm .plupload-preview {
  margin: 0;
  gap: 8px;
}

/* Member edit dialog — tighter spacing */
.is-dialog form.yc-user-edit {
  max-width: 100%;
  margin: 0;
  padding: 4px 4px 0;
}
.is-dialog form.yc-user-edit .form-group {
  margin-left: -6px;
  margin-right: -6px;
  margin-bottom: 10px;
}
.is-dialog form.yc-user-edit .form-group:last-child {
  margin-bottom: 0;
}
.is-dialog form.yc-user-edit .control-label {
  padding-top: 8px;
  padding-right: 6px;
}
.is-dialog form.yc-user-edit .radio,
.is-dialog form.yc-user-edit .radio-inline {
  margin-top: 6px;
  margin-bottom: 0;
}
.yc-media-add-menu a {
  display: block;
  height: auto !important;
  padding: 8px 14px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  -webkit-transition: background 0.12s ease, color 0.12s ease;
  transition: background 0.12s ease, color 0.12s ease;
}
.yc-media-add-menu a:hover {
  background: rgba(249, 115, 22, 0.08);
  color: #fb3b19;
  text-decoration: none;
}
.yc-media-add-menu a .fa {
  width: 16px;
  margin-right: 6px;
  text-align: center;
  color: #f97316;
}

/* Compact paired numeric fields */
.is-dialog .yc-form-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}
.is-dialog .yc-form-row > .form-group {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 50%;
  flex: 1 1 50%;
  max-width: 50%;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.is-dialog .yc-form-row > .form-group .control-label {
  width: 33.33333333%;
  float: left;
}
.is-dialog .yc-form-row > .form-group > [class*="col-sm-"] {
  width: 66.66666667%;
  float: left;
}
@media (max-width: 640px) {
  .is-dialog .yc-form-row > .form-group {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .is-dialog .yc-form-row > .form-group .control-label,
  .is-dialog .yc-form-row > .form-group > [class*="col-sm-"] {
    width: 100%;
    float: none;
  }
}

/* Radio / status */
.is-dialog .radio,
.is-dialog .radio-inline {
  margin-right: 16px;
}
.is-dialog .radio-inline + .radio-inline {
  margin-top: 0;
}

/* Soften toolbar action colors slightly for harmony */
.fixed-table-toolbar .btn-success {
  background: linear-gradient(90deg, #0d9488, #14b8a6) !important;
  border-color: transparent !important;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}
.fixed-table-toolbar .btn-info {
  background: #fff !important;
  color: #0ea5e9 !important;
  border: 1px solid rgba(14, 165, 233, 0.35) !important;
  border-radius: 8px;
  box-shadow: none;
}
.fixed-table-toolbar .btn-info:hover {
  background: rgba(14, 165, 233, 0.08) !important;
}
.fixed-table-toolbar .btn-danger {
  background: #fff !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  border-radius: 8px;
  box-shadow: none;
}
.fixed-table-toolbar .btn-danger:hover {
  background: rgba(239, 68, 68, 0.08) !important;
}
.fixed-table-toolbar .btn-primary,
.fixed-table-toolbar .btn-refresh {
  border-radius: 8px;
}

/* ========== List page / table polish ========== */
.panel-intro {
  background: transparent;
  box-shadow: none;
}
.panel-intro > .panel-heading {
  background: transparent !important;
  border: none !important;
  padding: 4px 4px 0 !important;
}
.panel-intro > .panel-body {
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: 14px;
  padding: 16px 18px 12px;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.04);
}
.panel-intro .widget-body.no-padding {
  padding: 0;
}

.bootstrap-table .table {
  border-collapse: separate !important;
  border-spacing: 0;
  background: #fff;
}
.bootstrap-table .table > thead > tr > th,
.fixed-table-container thead th {
  background: #fffaf2 !important;
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(249, 115, 22, 0.14) !important;
  border-top: none !important;
  vertical-align: middle !important;
}
.bootstrap-table .table > tbody > tr > td {
  border-color: rgba(0, 0, 0, 0.05) !important;
  vertical-align: middle !important;
  color: #374151;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.bootstrap-table .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #fffdf9;
}
.bootstrap-table .table-hover > tbody > tr:hover {
  background-color: rgba(249, 115, 22, 0.06) !important;
}
.fixed-table-container tbody .selected td {
  background-color: rgba(249, 115, 22, 0.1) !important;
}
.bootstrap-table .table-bordered,
.bootstrap-table .table-bordered > thead > tr > th,
.bootstrap-table .table-bordered > tbody > tr > td {
  border-left: none !important;
  border-right: none !important;
}
.bootstrap-table .fixed-table-pagination {
  padding: 10px 4px 0;
  color: #8a8f98;
}
.bootstrap-table .pagination > .active > a,
.bootstrap-table .pagination > .active > span {
  background: linear-gradient(90deg, #fb3b19, #f97316) !important;
  border-color: transparent !important;
  border-radius: 6px;
}

/* Row operate buttons — soft icon pills */
.bootstrap-table .btn-xs,
table .btn-xs {
  width: 28px;
  height: 28px;
  padding: 0 !important;
  line-height: 28px !important;
  border-radius: 8px !important;
  margin: 0 3px;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
}
.bootstrap-table .btn-xs .fa,
table .btn-xs .fa {
  margin: 0;
  font-size: 12px;
}

/* 操作列：图标钮横排，右侧固定列可直接点 */
.bootstrap-table td .yc-operate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 6px;
  min-width: 72px;
}
.bootstrap-table td .yc-operate > a.btn-xs {
  margin: 0;
  flex: 0 0 auto;
  width: 28px;
}

/* 会员信息：头像+昵称+手机+编号 */
.yc-member-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  vertical-align: middle;
}
.yc-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.12);
}
.yc-member-info {
  min-width: 0;
  line-height: 1.3;
}
.yc-member-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.88);
  word-break: break-all;
}
.yc-member-meta {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #8a8f98;
  font-variant-numeric: tabular-nums;
}
.yc-member-meta span + span::before {
  content: "·";
  margin: 0 4px;
  opacity: 0.6;
}
.yc-member-cell-static {
  display: flex;
  margin-top: 2px;
}
.yc-member-cell-hero {
  display: flex;
  width: 100%;
}
.yc-member-avatar-lg {
  width: 48px;
  height: 48px;
  border-color: rgba(14, 165, 233, 0.2);
  background: #e0f2fe;
}
.yc-member-cell-hero .yc-user-stock-name {
  margin-bottom: 4px;
}
.yc-member-cell-hero .yc-user-stock-kicker {
  margin-bottom: 2px;
}
.yc-member-cell-hero .yc-user-stock-meta {
  margin-top: 2px;
}
.yc-stock-grid > li.full {
  width: 100%;
  border-right: none !important;
}
.yc-stock-value .yc-member-cell {
  display: flex;
}
.yc-dist-field .yc-member-cell {
  padding: 4px 0;
}
.yc-dist-field .yc-member-name {
  color: rgba(0, 0, 0, 0.88);
}
.bootstrap-table .btn-xs.btn-success,
table .btn-xs.btn-success {
  background: rgba(13, 148, 136, 0.12) !important;
  color: #0f766e !important;
}
.bootstrap-table .btn-xs.btn-success:hover,
table .btn-xs.btn-success:hover {
  background: rgba(13, 148, 136, 0.22) !important;
  color: #0d9488 !important;
}
.bootstrap-table .btn-xs.btn-danger,
table .btn-xs.btn-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
}
.bootstrap-table .btn-xs.btn-danger:hover,
table .btn-xs.btn-danger:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #ef4444 !important;
}
.bootstrap-table .btn-xs.btn-primary,
table .btn-xs.btn-primary {
  background: rgba(249, 115, 22, 0.12) !important;
  color: #ea580c !important;
}
.bootstrap-table .btn-xs.btn-primary:hover,
table .btn-xs.btn-primary:hover {
  background: rgba(249, 115, 22, 0.22) !important;
  color: #fb3b19 !important;
}
.bootstrap-table .btn-xs.btn-info,
table .btn-xs.btn-info {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0284c7 !important;
}
.bootstrap-table .btn-xs.btn-warning,
table .btn-xs.btn-warning {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #d97706 !important;
}

/* Status labels */
.label-success,
.badge-success,
.label-danger,
.badge-danger,
.label-default,
.badge-default,
.label-info,
.badge-info,
.label-warning,
.badge-warning,
.label-primary,
.badge-primary {
  border-radius: 999px;
  font-weight: 500;
  padding: 3px 10px;
}
.label-success,
.badge-success {
  background: rgba(13, 148, 136, 0.12) !important;
  color: #0f766e !important;
}
.label-danger,
.badge-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
}
.label-default,
.badge-default {
  background: rgba(107, 114, 128, 0.12) !important;
  color: #4b5563 !important;
}
.label-info,
.badge-info {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0284c7 !important;
}
.label-warning,
.badge-warning {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #d97706 !important;
}
.label-primary,
.badge-primary {
  background: rgba(249, 115, 22, 0.12) !important;
  color: #ea580c !important;
}

/* Toolbar spacing */
.fixed-table-toolbar .bs-bars .toolbar .btn,
.fixed-table-toolbar .toolbar > .btn,
.fixed-table-toolbar .toolbar > a.btn {
  margin-right: 6px;
  height: 34px;
  line-height: 20px;
  padding: 6px 14px;
  font-weight: 500;
}
.fixed-table-toolbar .btn-refresh {
  background: linear-gradient(90deg, #fb3b19, #f97316) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.22);
}

/* Layer footer: 重置 | 确定（确定靠右） */
.layui-layer-fast .layui-layer-footer {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}
.layui-layer-fast .layui-layer-footer > .row,
.layui-layer-fast .layui-layer-footer .form-group,
.layui-layer-fast .layui-layer-footer [class*="col-"] {
  display: contents !important;
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.layui-layer-fast .layui-layer-footer label,
.layui-layer-fast .layui-layer-footer .control-label {
  display: none !important;
}
.layui-layer-fast .layui-layer-footer .btn {
  margin: 0 !important;
  float: none !important;
}

/* Checkbox accent */
.bootstrap-table input[type="checkbox"] {
  accent-color: #f97316;
}

/* Image thumbs in table */
.bootstrap-table img.img-sm,
table .img-sm {
  border-radius: 8px;
  border: 1px solid rgba(249, 115, 22, 0.15);
}

/* Attachment name / mime cells — no forced center boxes */
.yc-attach-name,
.yc-attach-mime {
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  margin: 0;
}
.yc-attach-name-select {
  max-width: none;
}
.yc-attach-mime {
  max-width: 120px;
  color: #6b7280;
  font-size: 12px;
}

/* Attachment picker dialog — denser table */
.yc-attach-select .panel-heading {
  padding: 8px 12px 0;
}
.yc-attach-select .panel-heading .panel-lead {
  display: none;
}
.yc-attach-select .nav-tabs {
  margin-bottom: 0;
}
.yc-attach-select .nav-tabs > li > a {
  padding: 8px 12px;
  font-size: 13px;
}
.yc-attach-select .yc-search-block,
.yc-attach-select .commonsearch-table {
  margin: 8px 12px 6px !important;
  padding: 10px 12px !important;
}
.yc-attach-select #one .commonsearch-table {
  padding-top: 10px !important;
}
.yc-attach-select .fixed-table-toolbar {
  padding: 0 12px;
  margin-bottom: 4px;
}
.yc-attach-select .bootstrap-table .table > thead > tr > th,
.yc-attach-select .fixed-table-container thead th {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  font-size: 12px;
}
.yc-attach-select .bootstrap-table .table > tbody > tr > td {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
.yc-attach-select .yc-attach-thumb {
  display: inline-block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  background: #fffaf2;
  vertical-align: middle;
}
.yc-attach-select .yc-attach-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yc-attach-select .btn-chooseone {
  width: 28px !important;
}
.yc-attach-select .fixed-table-pagination {
  padding: 6px 12px 8px;
}

/* Dialog form max width a bit wider for paired rows */
.is-dialog form.form-horizontal {
  padding-bottom: 4px;
}
.is-dialog .layer-footer {
  display: none;
}

/* Kill cream background inside dialog iframe */
.is-dialog .tab-content.tab-addtabs,
.is-dialog .tab-addtabs {
  background: #ffffff !important;
}

/* Goods edit/add: form tabs */
.form-dialog-compact {
  max-width: 100% !important;
  width: 100%;
}
.form-dialog-tabs {
  margin: -6px -4px 16px;
  padding: 0 4px 0;
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}
.form-dialog-tabs .nav-tabs {
  border-bottom: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  gap: 6px;
}
.form-dialog-tabs .nav-tabs > li {
  float: none;
  margin: 0;
}
.form-dialog-tabs .nav-tabs > li > a {
  margin: 0;
  padding: 8px 16px;
  border: none !important;
  border-radius: 8px 8px 0 0 !important;
  color: #6b7280;
  background: transparent !important;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
}
.form-dialog-tabs .nav-tabs > li > a:hover,
.form-dialog-tabs .nav-tabs > li > a:focus {
  color: #fb3b19;
  background: rgba(249, 115, 22, 0.06) !important;
}
.form-dialog-tabs .nav-tabs > li.active > a,
.form-dialog-tabs .nav-tabs > li.active > a:hover,
.form-dialog-tabs .nav-tabs > li.active > a:focus {
  color: #fb3b19 !important;
  background: rgba(249, 115, 22, 0.1) !important;
  box-shadow: inset 0 -2px 0 #f97316;
}
.form-dialog-body {
  min-height: 280px;
  padding-top: 4px;
}
.form-dialog-body > .tab-pane {
  padding-top: 4px;
}

/* Paired price/stock rows */
.form-row-pair {
  margin-left: -8px;
  margin-right: -8px;
}
.form-row-pair > .form-group {
  margin-bottom: 14px;
  padding-left: 8px;
  padding-right: 8px;
}
.form-row-pair .input-group-addon {
  background: #fffaf2;
  border-color: rgba(0, 0, 0, 0.1);
  color: #9a3412;
  border-radius: 8px 0 0 8px;
  font-weight: 600;
  min-width: 36px;
}
.form-row-pair .input-group .form-control {
  border-radius: 0 8px 8px 0;
}
.form-dialog-compact .help-block {
  margin-bottom: 0;
  margin-top: 6px;
  color: #9ca3af;
  font-size: 12px;
}

/* Goods gallery image-to-spec mapping */
#tab-media .yc-carousel-specs-group {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px dashed #f1dfd1;
}
#c-carousel-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 420px;
}
.yc-image-spec-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  min-width: 0;
  border: 1px solid #f0e3d8;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  -webkit-transition: border-color .18s ease, box-shadow .18s ease;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.yc-image-spec-row:focus-within {
  border-color: #fb8b53;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .1);
}
.yc-image-spec-index {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  min-width: 58px;
  padding: 9px 12px;
  color: #9a3412;
  background: #fff7ed;
  border-right: 1px solid #f0e3d8;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.yc-image-spec-row .form-control {
  height: 36px;
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
@media (max-width: 767px) {
  #tab-media > .form-group,
  #tab-media .yc-carousel-specs-group {
    display: block;
  }
  #tab-media > .form-group > .control-label,
  #tab-media .yc-carousel-specs-group > .control-label {
    display: block;
    width: auto;
    max-width: none;
    min-width: 0;
    -ms-flex: none;
    flex: none;
    padding: 0 0 8px;
  }
  #c-carousel-specs {
    max-width: none;
  }
  #tab-media .yc-spec-editor .yc-spec-field-name {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .form-dialog-tabs .nav-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .form-dialog-tabs .nav-tabs > li > a {
    padding: 8px 12px;
    white-space: nowrap;
  }
  .form-row-pair > .form-group {
    width: 100%;
  }
}

/* ===== 仓库库存编辑弹窗 ===== */
.is-dialog form.yc-stock-edit {
  max-width: 100%;
  width: 100%;
  margin: 0;
}
.yc-stock-edit {
  --yc-orange: #f97316;
  --yc-ink: rgba(0, 0, 0, 0.88);
  --yc-muted: #8a8f98;
  --yc-line: rgba(0, 0, 0, 0.06);
  --yc-bg: #fffaf6;
  color: var(--yc-ink);
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yc-stock-hero {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff7ed 0%, #fffaf6 55%, #ffffff 100%);
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.06);
}
.yc-stock-cover {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--yc-line);
}
.yc-stock-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yc-stock-cover-empty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 22px;
  background: #f9fafb;
}
.yc-stock-hero-main {
  min-width: 0;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.yc-stock-hero-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.yc-stock-kicker {
  font-size: 12px;
  color: var(--yc-muted);
  letter-spacing: 0.02em;
}
.yc-stock-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.yc-stock-tag-success {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}
.yc-stock-tag-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.yc-stock-goods {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
.yc-stock-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--yc-muted);
}
.yc-stock-section {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--yc-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.yc-stock-section-title {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--yc-ink);
  background: var(--yc-bg);
  border-bottom: 1px solid var(--yc-line);
}
.yc-stock-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.yc-stock-grid > li {
  width: 50%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-bottom: 1px solid var(--yc-line);
}
.yc-stock-grid > li:nth-child(odd) {
  border-right: 1px solid var(--yc-line);
}
.yc-stock-grid > li:nth-last-child(-n+2) {
  border-bottom: none;
}
.yc-stock-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--yc-muted);
  font-weight: 500;
}
.yc-stock-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}
.yc-stock-sub {
  margin-left: 6px;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: var(--yc-muted);
}
.yc-stock-section-edit .yc-stock-fields {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 14px 16px 6px;
  gap: 0;
}
.yc-stock-field {
  width: 50%;
  box-sizing: border-box;
  padding: 0 8px 12px;
}
.yc-stock-field-full {
  width: 100%;
}
.yc-stock-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--yc-muted);
}
.yc-stock-input {
  position: relative;
}
.yc-stock-input .form-control,
.is-dialog .yc-stock-edit .yc-stock-input .form-control {
  padding-right: 36px;
  height: 38px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.yc-stock-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--yc-muted);
  pointer-events: none;
}
.yc-stock-field-full .form-control,
.is-dialog .yc-stock-edit .yc-stock-field-full .form-control {
  height: 38px;
  border-radius: 10px;
}
.yc-stock-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
}
.yc-stock-times {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0 4px 4px;
  font-size: 12px;
  color: var(--yc-muted);
}
@media (max-width: 767px) {
  .yc-stock-grid > li {
    width: 100%;
    border-right: none !important;
  }
  .yc-stock-grid > li:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--yc-line);
  }
  .yc-stock-grid > li:last-child {
    border-bottom: none;
  }
  .yc-stock-field {
    width: 100%;
  }
  .yc-stock-hero {
    padding: 12px;
  }
}

/* ===== 分销商编辑弹窗：区块分类 ===== */
.is-dialog form.yc-dist-edit {
  max-width: 100%;
  width: 100%;
  margin: 0;
}
.yc-dist-edit {
  --yc-orange: #f97316;
  --yc-ink: rgba(0, 0, 0, 0.88);
  --yc-muted: #8a8f98;
  --yc-line: rgba(0, 0, 0, 0.06);
  --yc-bg: #fffaf6;
  color: var(--yc-ink);
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yc-dist-hero {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 16px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, #fb3b19 0%, #f97316 55%, #ffb06a 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.22);
}
.yc-dist-hero-main {
  min-width: 0;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.yc-dist-hero-user {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.yc-dist-hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
}
.yc-dist-hero-text {
  min-width: 0;
}
.yc-dist-hero-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.yc-dist-kicker {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.04em;
}
.yc-dist-name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}
.yc-dist-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  opacity: 0.92;
}
.yc-dist-hero-side {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-end;
  -ms-flex-align: flex-end;
  align-items: flex-end;
  gap: 16px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.yc-dist-price {
  text-align: right;
}
.yc-dist-price-label {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}
.yc-dist-price-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.yc-dist-price-value small {
  font-size: 14px;
  font-weight: 600;
  margin-right: 2px;
}
.yc-dist-status-stack {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 6px;
}
.yc-dist-hero .yc-dist-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.yc-dist-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}
.yc-dist-tag-primary {
  background: #fff7ed;
  color: #ea580c;
}
.yc-dist-tag-success {
  background: #ecfdf5;
  color: #059669;
}
.yc-dist-tag-warning {
  background: #fffbeb;
  color: #d97706;
}
.yc-dist-tag-default {
  background: #f3f4f6;
  color: #4b5563;
}
.yc-dist-section {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--yc-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.yc-dist-section-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--yc-ink);
  background: var(--yc-bg);
  border-bottom: 1px solid var(--yc-line);
}
.yc-dist-section-title em {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: var(--yc-muted);
}
.yc-dist-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.yc-dist-grid > li {
  width: 50%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-bottom: 1px solid var(--yc-line);
}
.yc-dist-grid > li:nth-child(odd) {
  border-right: 1px solid var(--yc-line);
}
.yc-dist-grid > li:nth-last-child(-n+2) {
  border-bottom: none;
}
.yc-dist-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--yc-muted);
  font-weight: 500;
}
.yc-dist-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}
.yc-dist-fields {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 14px 16px 6px;
}
.yc-dist-field {
  width: 50%;
  box-sizing: border-box;
  padding: 0 8px 12px;
}
.yc-dist-field-full {
  width: 100%;
}
.yc-dist-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--yc-muted);
}
.yc-dist-field .form-control,
.is-dialog .yc-dist-edit .yc-dist-field .form-control {
  height: 38px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.yc-dist-input {
  position: relative;
}
.yc-dist-input .form-control,
.is-dialog .yc-dist-edit .yc-dist-input .form-control {
  padding-left: 28px;
  font-variant-numeric: tabular-nums;
}
.yc-dist-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--yc-orange);
  pointer-events: none;
  z-index: 2;
}
.yc-dist-static {
  margin: 0;
  min-height: 38px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  word-break: break-word;
}
.yc-dist-static.muted {
  color: var(--yc-muted);
  font-weight: 400;
}
.yc-dist-bind-count {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}
.yc-dist-bind-view {
  display: inline-flex;
  width: 28px;
  height: 28px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--yc-orange);
  background: rgba(249, 115, 22, 0.1);
  text-decoration: none !important;
  -webkit-transition: background .15s ease, color .15s ease;
  transition: background .15s ease, color .15s ease;
}
.yc-dist-bind-view:hover,
.yc-dist-bind-view:focus {
  color: #fff;
  background: var(--yc-orange);
}
.yc-bind-layer {
  padding: 12px 16px 16px;
  max-height: 460px;
  overflow: auto;
}
.yc-bind-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 10px;
}
.yc-bind-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}
.yc-bind-item .yc-member-cell {
  margin: 0;
}
.yc-bind-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--yc-muted);
}
.yc-bind-empty .fa {
  font-size: 28px;
  opacity: .45;
  margin-bottom: 10px;
}
.yc-bind-empty p {
  margin: 0;
  font-size: 13px;
}
.yc-dist-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
}
.yc-dist-radios {
  min-height: 38px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 4px 0;
}
.yc-dist-radios .radio,
.yc-dist-radios .radio-inline {
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 14px;
}
.yc-dist-readonly-status {
  min-height: 38px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.yc-dist-readonly-status .yc-dist-tag {
  font-size: 13px;
  padding: 5px 12px;
}
.yc-dist-agree-list {
  padding: 12px 16px 16px;
}
.yc-dist-agree-item {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}
.yc-dist-agree-list .yc-dist-agree-item:first-child {
  margin-top: 0;
}
.yc-dist-agree-item .yc-dist-fields {
  padding: 0;
}
.yc-dist-agree-item .yc-dist-field {
  padding-bottom: 0;
}
.yc-dist-agree-empty {
  margin: 0;
  padding: 14px 16px 16px;
}
.yc-dist-agree-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 10px;
}
.yc-dist-agree-head strong {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
@media (max-width: 767px) {
  .yc-dist-hero {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }
  .yc-dist-hero-side {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .yc-dist-price {
    text-align: left;
  }
  .yc-dist-status-stack {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }
  .yc-dist-grid > li {
    width: 100%;
    border-right: none !important;
  }
  .yc-dist-grid > li:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--yc-line);
  }
  .yc-dist-grid > li:last-child {
    border-bottom: none;
  }
  .yc-dist-field {
    width: 100%;
  }
}

/* ===== 会员仓库库存弹窗 ===== */
.is-dialog .yc-user-stock {
  padding: 4px 8px 12px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yc-user-stock-hero {
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, #ecfeff 0%, #f0f9ff 55%, #ffffff 100%);
  border: 1px solid rgba(14, 165, 233, 0.14);
}
.yc-user-stock-kicker {
  display: block;
  font-size: 12px;
  color: #0284c7;
  margin-bottom: 4px;
}
.yc-user-stock-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}
.yc-user-stock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: #64748b;
}
.yc-user-stock-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
}
.yc-user-stock-table {
  margin: 0;
}
.yc-user-stock-table > thead > tr > th {
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.yc-user-stock-table > tbody > tr > td {
  vertical-align: middle;
  white-space: nowrap;
}
.yc-user-stock-thumb {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  vertical-align: middle;
}
.yc-user-stock-thumb.empty {
  line-height: 36px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}
.yc-user-stock-empty {
  padding: 48px 16px;
  text-align: center;
  color: #94a3b8;
}
.yc-user-stock-empty .fa {
  font-size: 36px;
  margin-bottom: 10px;
}
.yc-user-stock-empty p {
  margin: 0;
  font-size: 13px;
}

/* ===== 会员订单弹窗 ===== */
.is-dialog .yc-user-orders {
  padding: 4px 8px 12px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.yc-user-orders-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.yc-user-orders-stat {
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%);
  border: 1px solid rgba(249, 115, 22, 0.16);
}
.yc-user-orders-stat-label {
  font-size: 12px;
  color: #9a3412;
  margin-bottom: 6px;
}
.yc-user-orders-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.88);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.yc-user-orders-stat-unit {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #78716c;
}
.yc-user-orders-stat-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #a8a29e;
}

/* ========== Order wait-ship reminder ========== */
.yc-waitship-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.95));
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.06);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.yc-waitship-banner:not(.is-empty) {
  cursor: pointer;
}
.yc-waitship-banner:not(.is-empty):hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.1);
}
.yc-waitship-banner.is-active {
  border-color: rgba(249, 115, 22, 0.55);
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.98), rgba(255, 250, 245, 0.98));
}
.yc-waitship-banner.is-empty {
  border-color: rgba(148, 163, 184, 0.25);
  background: #f8fafc;
  box-shadow: none;
}
.yc-waitship-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.yc-waitship-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  font-size: 16px;
}
.yc-waitship-banner.is-empty .yc-waitship-icon {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}
.yc-waitship-text {
  min-width: 0;
}
.yc-waitship-title {
  font-size: 14px;
  font-weight: 600;
  color: #9a3412;
  line-height: 1.3;
}
.yc-waitship-banner.is-empty .yc-waitship-title {
  color: #64748b;
}
.yc-waitship-count {
  display: inline-block;
  margin-left: 8px;
  min-width: 22px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}
.yc-waitship-banner.is-empty .yc-waitship-count {
  background: #94a3b8;
}
.yc-waitship-desc {
  margin-top: 3px;
  font-size: 12px;
  color: #b45309;
  line-height: 1.4;
}
.yc-waitship-banner.is-empty .yc-waitship-desc {
  color: #94a3b8;
}
.yc-waitship-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.yc-waitship-banner .yc-waitship-go {
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #f97316, #fb923c);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}
.yc-waitship-banner .yc-waitship-go:hover,
.yc-waitship-banner .yc-waitship-go:focus {
  background: linear-gradient(90deg, #ea580c, #f97316);
  color: #fff;
}
.yc-waitship-banner .yc-waitship-clear {
  display: none;
  border-radius: 8px;
}
.yc-waitship-banner.is-active .yc-waitship-clear {
  display: inline-block;
}
.yc-waitship-banner.is-active .yc-waitship-go {
  display: none;
}
.yc-waitship-banner.is-empty .yc-waitship-go {
  opacity: .55;
  box-shadow: none;
}
@media (max-width: 767px) {
  .yc-waitship-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .yc-waitship-actions {
    justify-content: flex-end;
  }
}

/* 列表快速搜索：图标与占位符均在输入框内左侧 */
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block {
  float: none !important;
  clear: both;
  width: 100%;
  max-width: none !important;
  margin: 0 0 12px 0 !important;
  padding: 14px 16px;
  background: #fffaf2;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 12px;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px 12px;
  box-sizing: border-box;
}
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-search-label {
  display: none !important;
}
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-search-input-wrap {
  position: relative;
  flex: 0 0 320px;
  width: 320px;
  min-width: 180px;
  max-width: 420px;
}
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-search-input-wrap > .fa {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;
  color: #f97316;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-search-input-wrap > input.form-control {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 38px;
  margin: 0 !important;
  padding: 0 14px 0 36px !important;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 8px;
  background-color: #fff;
  box-shadow: none !important;
}
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-search-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-search-actions .btn {
  height: 38px;
  padding: 0 16px;
  line-height: 36px;
  border-radius: 8px;
}
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-btn-dosearch {
  background: linear-gradient(90deg, #fb3b19, #f97316);
  border-color: transparent;
  min-width: 72px;
  color: #fff;
}
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-btn-dosearch:hover,
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-btn-dosearch:focus {
  background: linear-gradient(90deg, #e83412, #ea580c);
  border-color: transparent;
  color: #fff;
}
.bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-btn-resetsearch {
  min-width: 72px;
}
@media (max-width: 767px) {
  .bootstrap-table > .fixed-table-toolbar > .search.yc-search-block {
    flex-wrap: wrap !important;
  }
  .bootstrap-table > .fixed-table-toolbar > .search.yc-search-block .yc-search-input-wrap {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }
}

/* 订单等列表：常显普通搜索表单 */
.commonsearch-table {
  position: relative;
  z-index: 5;
  overflow: visible;
  margin: 0 0 12px;
  padding: 14px 16px 4px;
  background: #fffaf5;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 12px;
}
.commonsearch-table .form-commonsearch .row > .form-group {
  margin-bottom: 12px;
}
.commonsearch-table .form-commonsearch .control-label {
  color: #78716c;
  font-weight: 500;
  font-size: 12px;
  padding-top: 8px;
}
.commonsearch-table .form-commonsearch .form-control {
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: none;
  height: 34px;
  font-size: 13px;
}
.commonsearch-table .form-commonsearch .form-control:focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.commonsearch-table .form-commonsearch .bootstrap-select {
  width: 100% !important;
}
.commonsearch-table .form-commonsearch .bootstrap-select > .dropdown-toggle {
  height: 38px !important;
  padding: 8px 32px 8px 12px !important;
  border-radius: 8px !important;
  border-color: rgba(249, 115, 22, 0.25) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 13px;
  color: #44403c;
}
.commonsearch-table .form-commonsearch .bootstrap-select > .dropdown-toggle .filter-option {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.commonsearch-table .form-commonsearch .bootstrap-select > .dropdown-toggle .bs-caret {
  position: absolute;
  top: 50%;
  right: 12px;
  margin-top: 0;
  transform: translateY(-50%);
}
.commonsearch-table .form-commonsearch .bootstrap-select > .dropdown-toggle .caret {
  border-top-color: #f97316;
  border-width: 5px 5px 0;
}
.commonsearch-table .form-commonsearch .bootstrap-select .bs-placeholder {
  color: #a8a29e !important;
}
.commonsearch-table .form-commonsearch .bootstrap-select.open > .dropdown-toggle,
.commonsearch-table .form-commonsearch .bootstrap-select > .dropdown-toggle:focus {
  border-color: rgba(249, 115, 22, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
  outline: none !important;
}
/* body 挂载的定位壳：勿继承 .bootstrap-select 的 min-height，否则 top:100% 会再空出一截 */
.bs-container.bootstrap-select {
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}
/* 菜单可能挂在 body>.bs-container；只样式化外层，勿命中 ul.dropdown-menu.inner */
.commonsearch-table .form-commonsearch .bootstrap-select > .dropdown-menu,
.bs-container.bootstrap-select > .dropdown-menu {
  z-index: 2060;
  top: 0;
  border-radius: 10px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  background-color: #fff !important;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.12);
  margin-top: 4px !important;
  padding: 4px 0;
  max-height: 280px;
  overflow: hidden;
}
.commonsearch-table .form-commonsearch .bootstrap-select .dropdown-menu.inner,
.bs-container.bootstrap-select .dropdown-menu.inner,
.commonsearch-table .form-commonsearch .bootstrap-select .dropdown-menu > .inner,
.bs-container.bootstrap-select .dropdown-menu > .inner {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.commonsearch-table .form-commonsearch .bootstrap-select .dropdown-menu li a,
.bs-container.bootstrap-select .dropdown-menu li a {
  padding: 8px 14px;
  font-size: 13px;
  color: #44403c;
  outline: none;
}
.commonsearch-table .form-commonsearch .bootstrap-select .dropdown-menu li a:hover,
.commonsearch-table .form-commonsearch .bootstrap-select .dropdown-menu li a:focus,
.bs-container.bootstrap-select .dropdown-menu li a:hover,
.bs-container.bootstrap-select .dropdown-menu li a:focus {
  background: rgba(249, 115, 22, 0.08);
  color: #ea580c;
}
.commonsearch-table .form-commonsearch .bootstrap-select .dropdown-menu li.selected a,
.commonsearch-table .form-commonsearch .bootstrap-select .dropdown-menu li.selected a:hover,
.commonsearch-table .form-commonsearch .bootstrap-select .dropdown-menu li.selected a:focus,
.bs-container.bootstrap-select .dropdown-menu li.selected a,
.bs-container.bootstrap-select .dropdown-menu li.selected a:hover,
.bs-container.bootstrap-select .dropdown-menu li.selected a:focus {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
}
.commonsearch-table .form-commonsearch .bootstrap-select .dropdown-menu li.active a,
.bs-container.bootstrap-select .dropdown-menu li.active a {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}
.commonsearch-table .form-commonsearch select.form-control:not(.selectpicker) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f97316' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 12px 8px;
}
.commonsearch-table .form-commonsearch .btn-success {
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.22);
}
.commonsearch-table .form-commonsearch .btn-success:hover,
.commonsearch-table .form-commonsearch .btn-success:focus {
  background: linear-gradient(90deg, #ea580c, #f97316);
  color: #fff;
}
.commonsearch-table .form-commonsearch .btn-default {
  border-radius: 8px;
}
.commonsearch-table .form-commonsearch .row-between .col-xs-6 {
  padding-left: 4px;
  padding-right: 4px;
}
.commonsearch-table .form-commonsearch .row-between .col-xs-6:first-child {
  padding-left: 0;
}
.commonsearch-table .form-commonsearch .row-between .col-xs-6:last-child {
  padding-right: 0;
}
@media (max-width: 767px) {
  .commonsearch-table {
    padding: 12px 10px 2px;
  }
  .commonsearch-table .form-commonsearch .control-label {
    text-align: left;
    margin-bottom: 4px;
  }
}

