/* 概率查看（库存快照） */
#probViewBody .pv-pos{margin-bottom:14px}
#probViewBody .pv-pos-h{font-size:12.5px;font-weight:600;color:#0D162F;margin-bottom:6px}
#probViewBody .pv-slot{border:1px solid #E6E7EA;border-radius:8px;margin-bottom:8px;overflow:hidden}
#probViewBody .pv-slot-h{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#F8FAFC;font-size:12px;color:#0D162F}
#probViewBody .pv-slot-h b{font-weight:600}
#probViewBody .pv-slot-h span{color:#868A97;font-size:11px}
#probViewBody .pv-slot-h .sp{margin-left:auto;color:#4B40D6;font-weight:600;font-size:12px}
#probViewBody .pv-card-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;border-top:1px solid #F0F1F3;font-size:11.5px;color:#5B6272}
#probViewBody .pv-card-row span:last-child{color:#4B40D6;font-weight:600}
#probViewBody .pv-empty{padding:24px;text-align:center;font-size:12.5px;color:#868A97}

#probViewBody .pv-card-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px}
#probViewBody .pv-card-rem{color:#5F6368;font-size:11px;white-space:nowrap}

/* 概率弹窗新布局：位签 + 折叠 + 搜索 */
#probViewBody .pv-tabs{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap}
#probViewBody .pv-tab{height:30px;padding:0 14px;border:1px solid #E6E7EA;border-radius:6px;background:#fff;color:#5B6272;font-size:12px;cursor:pointer}
#probViewBody .pv-tab em{font-style:normal;color:#9AA0A6;margin-left:4px}
#probViewBody .pv-tab.on{background:#F0EFFF;border-color:#DCD9FF;color:#4B40D6;font-weight:600}
#probViewBody .pv-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:8px}
#probViewBody .pv-search{flex:1;height:32px;padding:0 10px;border:1px solid #E6E7EA;border-radius:6px;font-size:12px;color:#0D162F;outline:none}
#probViewBody .pv-search:focus{border-color:#5E6AD2;box-shadow:0 0 0 3px rgba(94,106,210,.12)}
#probViewBody .pv-btn{height:32px;padding:0 12px;border:1px solid #E6E7EA;border-radius:6px;background:#fff;color:#4B40D6;font-size:12px;cursor:pointer}
#probViewBody .pv-count{font-size:11.5px;color:#868A97;white-space:nowrap}
#probViewBody .pv-list{max-height:58vh;overflow:auto;border:1px solid #E6E7EA;border-radius:8px}
#probViewBody .pv-grp{border-bottom:1px solid #F0F1F3}
#probViewBody .pv-grp:last-child{border-bottom:0}
#probViewBody .pv-grp summary{display:flex;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;list-style:none;background:#FAFBFF}
#probViewBody .pv-grp summary::-webkit-details-marker{display:none}
#probViewBody .pv-grp-id{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:4px;background:#EEF0FF;color:#4B40D6;font-size:10.5px;font-weight:600}
#probViewBody .pv-grp-name{font-size:12px;font-weight:600;color:#0D162F}
#probViewBody .pv-chip{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:4px;background:#F3F3F4;color:#5B6272;font-size:10.5px}
#probViewBody .pv-grp-cnt{font-size:11px;color:#868A97}
#probViewBody .pv-grp-pct{margin-left:auto;font-size:12px;font-weight:600;color:#4B40D6}
#probViewBody .pv-rows{padding:2px 12px 8px}
#probViewBody .pv-row{display:grid;grid-template-columns:1fr 78px 96px 82px;gap:10px;padding:6px 0;border-top:1px dashed #F0F1F3;font-size:11.5px;color:#5B6272}
#probViewBody .pv-type{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#probViewBody .pv-type .st-chip{height:18px;font-size:10.5px;line-height:1;padding:0 7px}
#probViewBody .pv-rem{text-align:right;color:#5F6368}
#probViewBody .pv-pct{text-align:right;color:#4B40D6;font-weight:600}

/* 赏品款式库存 */
#posCurWrap .inv-cat-hd{display:flex;align-items:center;gap:8px;padding:12px 12px 6px;font-size:12px;font-weight:600;color:#0D162F;background:#FAFBFF;border-top:1px solid #F0F1F3}
#posCurWrap .inv-cat-name{font-weight:600}
#posCurWrap .inv-cat-id{font-size:10.5px;color:#868A97;font-weight:400}
#posCurWrap .inv-cat-sum{margin-left:auto;font-size:11.5px;color:#4B40D6;font-weight:600}
#posCurWrap .inv-style-list{margin:0;padding:0;border:0}
#posCurWrap .inv-cat-grp{background:#F3F5FF;cursor:pointer}
#posCurWrap .pos-grp-hd .pg-total{margin-left:auto;min-width:120px;text-align:right;font-size:12px;font-weight:600;color:#5E6AD2;flex-shrink:0}
#posCurWrap .inv-style-hd{font-size:11px;color:#868A97;margin:4px 0 2px}
#posCurWrap .inv-style-row{display:flex;align-items:center;gap:12px;padding:4px 0}
#posCurWrap .inv-style-name{flex:1;min-width:0;font-size:11.5px;color:#5B6272;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#posCurWrap .inv-style-pid{font-size:10.5px;color:#868A97;margin-left:8px;font-weight:400}
#posCurWrap .inv-style-qty{width:110px;height:28px;text-align:right}

/* 只读库存：卡位 / 玩法两处统一 disabled 样式 */
#panePos input[id^="posPct"]:disabled,
#panePos input[id^="posCardPct"]:disabled,
#invPityWrap .qty-input:disabled,
#posCurWrap .inv-style-qty:disabled,
#fStock:disabled {
  background:#F5F6F8 !important;
  color:#9AA0A6 !important;
  -webkit-text-fill-color:#9AA0A6;
  border-color:#E4E6E9 !important;
  cursor:not-allowed !important;
  opacity:1 !important;
}
#invPityWrap .pity-dist:disabled{opacity:.45;cursor:not-allowed}

/* 列表：剩余抽数只读纯文字，去掉外框 */
#tbody .stock-box{display:inline!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
#tbody .stock-box .sbtn{display:none!important}
#tbody .stock-box .sp-stock{display:inline!important;min-width:0!important;height:auto!important;padding:0!important;font-size:13px!important;font-weight:600!important;color:#202124!important;cursor:default!important;background:transparent!important}

/* 卡编行：卡位类型 tag 紧跟卡编，一行显示 */
#posCurWrap .pos-card-row .card-type{margin-left:6px;vertical-align:middle}

/* 卡编合计放进卡位分组头：去掉原来的白底/内边距/边框，纯文字 */
#posCurWrap .pos-grp-hd .pos-card-hint{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0 0 0 10px!important;height:auto!important;min-height:0!important;line-height:1.4!important}

/* 保底库存右侧与表单对齐 */
#invPityWrap{min-width:0}
#invPityWrap .frow.wide .fv{flex:1;min-width:0;width:auto!important}
#invPityWrap .pity-card,#invPityWrap .g-table{max-width:100%;box-sizing:border-box}

/* 库存补丁样式：只作用于玩法页签的保底库存区 */
#invPityWrap .pity-card{width:100%;flex:1 1 100%;border:1px solid #E6E7EA;border-radius:10px;padding:14px;margin-bottom:12px;background:#fff}
#invPityWrap .pity-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
#invPityWrap .pity-title{font-size:13px;font-weight:600;color:#0D162F}
#invPityWrap .pity-acts{margin-left:auto;display:flex;align-items:center;gap:8px}
#invPityWrap .pity-dist{height:28px;padding:0 12px;border:1px solid #E6E7EA;border-radius:6px;background:#fff;color:#4B40D6;font-size:12px;cursor:pointer}
#invPityWrap .pity-dist:hover{background:#F5F6FF;border-color:#DCD9FF}
#invPityWrap .slot-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin:10px 0}
#invPityWrap .slot-check{display:flex;align-items:center;justify-content:flex-start;gap:6px;width:100%;height:32px;padding:0 10px;box-sizing:border-box;border:1px solid #E6E7EA;border-radius:6px;background:#fff;font-size:12px;color:#5B6272;cursor:pointer;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#invPityWrap .slot-check input{width:13px;height:13px;margin:0;accent-color:#5E6AD2;flex-shrink:0}
#invPityWrap .slot-check.on{background:#F0EFFF;border-color:#DCD9FF;color:#4B40D6;font-weight:500}
#invPityWrap .g-table{border:1px solid #E6E7EA;border-radius:8px;overflow:hidden;margin-top:8px}
#invPityWrap .g-row{display:grid;grid-template-columns:minmax(160px,1.3fr) 120px 90px 120px 32px;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #F0F1F3;font-size:12px;color:#0D162F}
#invPityWrap .g-row:last-child{border-bottom:0}
#invPityWrap .g-row.head{background:#F8FAFC;font-size:11px;color:#868A97;font-weight:500}
#invPityWrap .g-row.group{background:#FAFBFF;font-weight:600}
#invPityWrap .g-row.group .g-sub{font-weight:400;color:#868A97;font-size:11px}
#invPityWrap .g-total{text-align:right;font-weight:600;color:#0D162F}
#invPityWrap .g-pity{font-size:11.5px;color:#868A97;margin-top:6px}
#invPityWrap .g-pity b{font-weight:600}
#invPityWrap .g-pity b.ok{color:#0E9384}
#invPityWrap .g-pity b.bad{color:#C62828}
#invPityWrap .qty-input{width:100px;height:30px;text-align:right;padding:0 8px;border:1px solid #E6E7EA;border-radius:6px;font-size:12px;color:#0D162F;background:#fff}
#invPityWrap .qty-input:focus{border-color:#5E6AD2;box-shadow:0 0 0 3px rgba(94,106,210,.12);outline:none}
#invPityWrap .empty-mini{font-size:12px;color:#868A97;padding:10px 2px}
#invPityWrap .card-type{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:4px;font-size:10.5px;background:#F3F3F4;color:#5B6272;white-space:nowrap}

/* 组头合计与数量列对齐：绝对定位固定右偏移 */
#posCurWrap .pos-grp-hd{position:relative;padding-right:170px}
#posCurWrap .pos-grp-hd .pg-total{position:absolute;right:42px;top:50%;transform:translateY(-50%);width:110px;margin:0;text-align:right;font-size:12px;font-weight:600;color:#5E6AD2}
#posCurWrap .pos-grp-hd > .sub-x,#posCurWrap .pos-grp-hd > .inv-cat-del{position:absolute;right:0;top:50%;transform:translateY(-50%);margin:0}

/* 恢复 flex 列宽：合计 120px、删除 30px，与行内数量列/删除列同宽 */
#posCurWrap .pos-grp-hd{position:static;padding-right:10px}
#posCurWrap .pos-grp-hd .pg-total{position:static;transform:none;flex:0 0 120px;width:120px;margin:0;text-align:right;font-size:12px;font-weight:600;color:#5E6AD2}
#posCurWrap .pos-grp-hd > .sub-x,#posCurWrap .pos-grp-hd > .inv-cat-del{position:static;transform:none;flex:0 0 30px;margin:0;text-align:center}

/* 组头统一：不再高亮合计，赏品组头与卡牌组头同底色 */
#posCurWrap .inv-cat-grp{background:#EFF2FA;cursor:default}
#posCurWrap .pos-grp-hd .pg-total{color:#202124;font-weight:500}

/* 合计紧跟款数文字，删除固定行尾 */
#posCurWrap .pos-grp-hd .pg-total{display:inline;color:inherit;font-weight:600;margin-left:2px}
#posCurWrap .pos-grp-hd .inv-grp-del{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:26px;margin-left:auto}

/* 赏品组头折叠箭头 */

/* 上架过机台：玩法整页只读 */
#panePity.inv-ro{pointer-events:none;opacity:.65}
#panePity.inv-ro input,#panePity.inv-ro select,#panePity.inv-ro button,#panePity.inv-ro .switch{cursor:not-allowed}


/* v1.1.55：数量下方的出率小字（占上架总抽数） */
#posCurWrap .pos-pct{flex-wrap:wrap;row-gap:1px}
#posCurWrap .inv-prob{flex:0 0 100%;text-align:right;font-size:11px;color:#9AA0A6;line-height:1.25;white-space:nowrap}

/* v1.1.61：概率弹窗款式行回显赏品ID */
#probViewBody .pv-pid{font-style:normal;font-size:10.5px;color:#868A97;margin-left:6px}

/* v1.1.64：首次上架强提示 */
.up-warn-t{font-size:13px;color:#374151;line-height:1.8;margin:0}
.up-warn-list{margin:8px 0 0 18px;padding:0;font-size:13px;color:#374151;line-height:1.9}
.up-warn-note{font-size:12px;color:#9AA0A6;line-height:1.7;margin:10px 0 0}

/* v1.2.4 卡编行出率标签 */
.inv-rate-tag{display:inline-block;margin-left:8px;font-size:11px;color:#5E6AD2;background:#F2F4FF;border:1px solid #DDE3FF;border-radius:4px;padding:1px 5px;font-weight:600;vertical-align:middle;white-space:nowrap}
