/* 选货平台专用样式，从原站页面内联 <style> 原样抽取 */

    .wrapper{
      height: auto;
    }
    form{
      padding: 15px 0;
      margin-bottom: 15px;
    }
    form label.select-label{
      display: inline-block;
      height: 32px;
      line-height: 32px;
      font-size: 14px;
      margin-right: 5px;
    }
    form select{
      display: inline-block;
      height: 32px;
      line-height: 32px;
      font-size: 14px;
      color: #666;
      margin-right: 15px;
      width: 160px;
      border: 1px solid #ccc;
      border-radius: 4px;
      outline: none;
    }
    form .form-area{
      border-top: 1px solid #ddd;
    }
    form .form-area-item{
      position: relative;
      border-bottom: 1px solid #ddd;
      padding-left: 90px;
      padding-right: 40px;
      box-sizing: border-box;
      background-color: #f3f3f3;
    }
    form .form-area-item .multiple{
      position: absolute;
      top: 5px;
      right: 5px;
      height: 23px;
      line-height: 22px;
      font-size: 12px;
      color: #666;
      border: 1px solid #ddd;
      padding: 0 5px;
      box-sizing: border-box;
    }
    form .form-area-item .multiple:hover{
      color: #e4393c;
      border-color: #e4393c;
    }
    form .form-area-item .more{
      position: absolute;
      top: 5px;
      right: 55px;
      height: 23px;
      line-height: 22px;
      font-size: 12px;
      color: #fff;
      background-color: #5b82b5;
      border: 1px solid #5b82b5;
      padding: 0 5px;
      box-sizing: border-box;
    }
    form .form-area-item .save-btn{
      position: absolute;
      top: 5px;
      right: 50px;
      height: 23px;
      line-height: 21px;
      color: #fff;
      border: 1px solid #ef554a;
      background-color: #ef554a;
      padding: 0 5px;
      box-sizing: border-box;
    }
    form .form-area-item .cancel-btn{
      position: absolute;
      top: 5px;
      right: 5px;
      height: 23px;
      line-height: 21px;
      color: #ef554a;
      border: 1px solid #ef554a;
      padding: 0 5px;
      box-sizing: border-box;
    }
    form .form-area-item em{
      float: left;
      width: 90px;
      height: 34px;
      line-height: 24px;
      padding-left: 10px;
      padding-top: 5px;
      padding-bottom: 5px;
      font-size: 12px;
      font-weight: bold;
      font-style: normal;
      color: #666;
      box-sizing: border-box;
      margin-left: -90px;
      margin-right: 0;
    }
    form .form-area-item .dl-box{
      float: left;
      width: 1110px;
      padding-left: 15px;
      padding-right: 50px;
      padding-top: 5px;
      padding-bottom: 5px;
      height: 34px;
      box-sizing: border-box;
      background-color: #fff;
      overflow: hidden;
    }
    form .form-area-item .dl-box.expand{
      height: auto;
    }
    form .form-area-item dl::after{
      content: '';
      display: block;
      height: 0;
      visibility: hidden;
      clear: both;
    }
    form .form-area-item dl dd{
      float: left;
      height: 24px;
      line-height: 24px;
      font-size: 12px;
      color: #005aa0;
      cursor: pointer;
      margin-right: 50px;
    }
    form .form-area-item dl dd:hover{
      color: #e4393c;
    }
    form .form-area-item dl dd.cur{
      color: #e4393c;
    }
    form .form-area-item dl dd label input[type=checkbox]{
      vertical-align: middle;
    }
    form .form-area-item dl dd label span{
      vertical-align: middle;
      margin-left: 3px;
    }
    form .form-area-item::after{
      content: '';
      display: block;
      height: 0;
      visibility: hidden;
      clear: both;
    }
    table{
      border-spacing: 0;
    }
    table tbody tr:hover{
      background-color: #efefef;
    }
    table th{
      font-size: 14px;
      text-align: center;
      line-height: 36px;
      background-color: #e7f1fb;
      border-top: 1px solid #ddd;
      border-bottom: 1px solid #ddd;
    }
    table th.ta-r{
      text-align: right;
      padding-right: 20px;
    }
    table td{
      font-size: 14px;
      text-align: center;
      line-height: 32px;
      border-bottom: 1px solid #efefef;
    }
    table td.ta-r{
      text-align: right;
      padding-right: 20px;
    }
    .nor_list{
      margin: 20px 0;
      font-size: 14px;
    }
    .nor_list ul li{
      font-size: 14px;
      height: 32px;
      line-height: 32px;
    }
    .nor_list ul li a{
      font-size: 14px;
      height: 32px;
      line-height: 32px;
    }
    .nor_list ul li span{
      font-size: 14px;
      height: 32px;
      line-height: 32px;
    }
    .search-btn{
      display: inline-block;
      height: 32px;
      line-height: 32px;
      font-size: 14px;
      text-align: center;
      padding: 0 15px;
      color: #fff !important;
      background-color: #128bed;
      border-radius: 4px;
    }
    .search-btn:hover{
      color: #fff !important;
      background-color: #107cd4;
    }
    .empty-btn{
      display: inline-block;
      height: 32px;
      line-height: 30px;
      font-size: 14px;
      text-align: center;
      padding: 0 14px;
      color: #666;
      background-color: #fff;
      border: 1px solid #e5e5e5;
      border-radius: 4px;
      box-sizing: border-box;
      margin-left: 10px;
    }
    .no-result{
      width: 100%;
      text-align: center;
    }
    .no-result img{
      display: block;
      width: 160px;
      height: 160px;
      margin: 0 auto;
    }
    .no-result p{
      height: 40px;
      line-height: 40px;
      font-size: 14px;
      text-align: center;
    }
    .selected-area{
      position: relative;
      padding: 10px 0;
      padding-left: 90px;
    }
    .selected-area em{
      float: left;
      height: 25px;
      line-height: 25px;
      font-size: 14px;
      font-style: normal;
      color: #333;
      margin-left: -90px;
    }
    .selected-area dl{
      float: left;
      width: 1110px;
      padding-right: 50px;
      box-sizing: border-box;
    }
    .selected-area dl dd{
      float: left;
      position: relative;
      height: 25px;
      line-height: 23px;
      padding: 0 30px 0 10px;
      font-size: 12px;
      color: #ef554a;
      border: 1px solid #ef554a;
      box-sizing: border-box;
      margin-right: 15px;
      cursor: pointer;
    }
    .selected-area dl dd i{
      position: absolute;
      top: 4px;
      right: 4px;
      width: 15px;
      height: 15px;
      background: url(/skin/img/filter-close.gif) no-repeat;
      cursor: pointer;
    }
    .selected-area dl dd:hover{
      color: #fff;
      background-color: #ef554a;
    }
    .selected-area::after{
      content: '';
      display: block;
      height: 0;
      visibility: hidden;
      clear: both;
    }
    .selected-area .empty-all{
      position: absolute;
      top: 10px;
      right: 5px;
      height: 25px;
      line-height: 24px;
      font-size: 12px;
      color: #666;
      border: 1px solid #ddd;
      padding: 0 5px;
      box-sizing: border-box;
    }
    
/* ============================================================
 * 三阶段加载：骨架屏 + 加载中
 * ------------------------------------------------------------
 * 背景：ERP 的 GetStockInfo 单次 13 秒，页面必须"先给结构、再给数据"，
 * 否则客户看到的是 13 秒全白。骨架条宽度固定 420px，是因为大多数分组
 * 实际渲染后只有 3~8 个短词（不超过 420px），宽度接近就不会明显跳动。
 * ============================================================ */
.sk-bar{
  display: block;
  width: 420px;
  max-width: 60%;
  height: 12px;
  margin-top: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ececec 25%, #f7f7f7 37%, #ececec 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.4s ease infinite;
}
@keyframes sk-shimmer{
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
/* 加载中行：给足高度，保证骨架阶段表格区域不会塌成一条线 */
.loading-row td{
  padding: 70px 0 !important;
  border-bottom: 1px solid #efefef;
}
.loading-tip{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #888;
}
.loading-spin{
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #d8e6f3;
  border-top-color: #5b82b5;
  border-radius: 50%;
  animation: sk-spin .8s linear infinite;
}
@keyframes sk-spin{
  to { transform: rotate(360deg); }
}

/* ============================================================
 * PHP 风格库存查询遮罩（白底圆角弹层 + 浅色半透明遮罩）
 * ------------------------------------------------------------
 * 为什么要浅色遮罩而不是 PHP 的黑色遮罩：
 *   用户要求"检索时先不清数据，等返回再替换"——黑色遮罩会把旧库存表格
 *   整个盖住，等于还是"看不见旧数据"；浅色遮罩既给出明确加载反馈，
 *   又能透出底下旧数据，两条诉求同时成立。
 * ============================================================ */
.stock-loading-mask{
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.55);   /* 浅色遮罩，不挡旧数据 */
}
/* 横条：绿勾圆 + "正在处理..." + 两个橙点动画 + "请勿刷新页面"，
   复刻 PHP 原站 layer_loading 的视觉（用户指定要这个样式） */
.stock-loading-box{
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  padding: 14px 26px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.16);
  white-space: nowrap;
}
/* 绿色对勾圆。box-sizing:border-box 让 34px 含边框，避免父级 flex 里被撑成 38px 导致偏位 */
.stock-loading-box .ico-ok{
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  margin-right: 12px;
  border: 2px solid #35c88b;
  border-radius: 50%;
  box-sizing: border-box;
}
/* 对勾用两段边框旋转 45° 画出来（不依赖图片/图标字体，放大不糊） */
.stock-loading-box .ico-ok::after{
  content: '';
  position: absolute;
  left: 10px; top: 7px;
  width: 8px; height: 14px;
  border-right: 3px solid #35c88b;
  border-bottom: 3px solid #35c88b;
  transform: rotate(45deg);
}
.stock-loading-box .txt{
  font-size: 16px;
  color: #333;
  margin-right: 10px;
}
/* 两个橙色圆点错峰跳动，表示"处理中"（第二个延迟 .25s） */
.stock-loading-box .dots{
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
}
.stock-loading-box .dots i{
  display: inline-block;
  width: 13px; height: 13px;
  margin-right: 4px;
  border-radius: 50%;
  background: #f7941e;
  animation: sk-dot 1s ease-in-out infinite;
}
.stock-loading-box .dots i:nth-child(2){
  animation-delay: .25s;
}
@keyframes sk-dot{
  0%, 100% { transform: scale(.55); opacity: .45; }
  50%      { transform: scale(1);   opacity: 1; }
}
.stock-loading-box .hint{
  font-size: 16px;
  color: #333;
}

/* 轻提示 toast：服务异常时保留旧数据，只顶部飘一条告知，不抹表格 */
.stock-toast{
  position: fixed;
  left: 50%; top: 20px;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 10px 18px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  max-width: 80%;
  text-align: center;
}
.stock-toast.show{ opacity: 1; }

html, body { overflow: visible;}