/* ── Reset & Variables ──────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #fff; --bg2: #f2f3f5; --bg3: #e3e5e8;
  --text: #2e3338; --text2: #4e5058; --text3: #80848e;
  --border: #e3e5e8; --accent: #5865f2; --accent-h: #4752c4;
  --green: #23a55a; --red: #f23f43; --yellow: #f0b232; --radius: 8px;
}

/* ── Layout ─────────────────────────────────────────────────── */
body {
  font-family: -apple-system, 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--text);
  display: flex; height: 100vh; overflow: hidden; font-size: 14px;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: 220px; background: var(--bg2);
  display: flex; flex-direction: column; flex-shrink: 0;
  border-right: 1px solid var(--border);
}
.sidebar-head {
  padding: 0 16px; height: 48px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 15px; gap: 8px;
}
.sidebar-head svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }
.sec-label {
  padding: 16px 12px 4px; font-size: 10px; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: .6px;
}
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--radius);
  cursor: pointer; color: var(--text2); transition: all .1s;
  margin: 1px 8px; font-size: 13px; font-weight: 500; user-select: none;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--bg3); color: var(--text); }
.nav-item svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 5px;
  border-radius: 8px; min-width: 18px; text-align: center; display: none;
}
.sidebar-foot {
  margin-top: auto; padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.sdot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); flex-shrink: 0; transition: background .3s;
}
.sdot.on  { background: var(--green); box-shadow: 0 0 0 3px rgba(35,165,90,.15); }
.sdot.warn { background: var(--yellow); }
.sstate {
  font-size: 12px; color: var(--text3); flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Main Area ───────────────────────────────────────────────── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  height: 48px; padding: 0 20px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.topbar svg { width: 16px; height: 16px; fill: var(--text3); }
.topbar-title { font-weight: 700; font-size: 15px; }
.topbar-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.topbar-sub { font-size: 12px; color: var(--text3); }
.push-badge {
  margin-left: auto; background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.content { flex: 1; overflow-y: auto; padding: 24px 28px; }

/* ── Common Controls ─────────────────────────────────────────── */
.inp {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s;
}
.inp:focus { border-color: var(--accent); }
.inp::placeholder { color: var(--text3); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius); border: none;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.btn-primary:hover { background: var(--accent-h); }
.btn-primary:disabled { background: var(--bg3); color: var(--text3); cursor: not-allowed; }
.btn-icon {
  width: 32px; height: 32px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--text3);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .15s; padding: 0;
}
.btn-icon:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-icon svg { width: 14px; height: 14px; fill: currentColor; }
.btn-add {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 9px;
  border: 1.5px dashed var(--border); border-radius: var(--radius);
  background: transparent; color: var(--text3);
  font-size: 13px; cursor: pointer; font-family: inherit;
  transition: all .15s; margin-top: 8px;
}
.btn-add:hover { border-color: var(--accent); color: var(--accent); }
.btn-add svg { width: 14px; height: 14px; fill: currentColor; }
.btn-test {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text2);
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; white-space: nowrap; transition: all .15s;
}
.btn-test:hover { border-color: var(--accent); color: var(--accent); }
.btn-test:disabled { opacity: .5; cursor: not-allowed; }
.btn-test svg { width: 11px; height: 11px; fill: currentColor; }
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; z-index: 9999;
  opacity: 0; transition: all .3s; pointer-events: none;
  transform: translateY(8px); box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok  { background: var(--green); color: #fff; }
.toast.err { background: var(--red);   color: #fff; }
.toast.inf { background: var(--accent); color: #fff; }
.pane { display: none; } .pane.show { display: block; }

/* ── Feed / Orders ───────────────────────────────────────────── */
.feed-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 14px; padding: 12px 14px;
  background: var(--bg2); border-radius: 10px; border: 1px solid var(--border);
}
.feed-toolbar-group { display: flex; align-items: center; gap: 6px; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--text3); white-space: nowrap; }
.filter-sel {
  padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--text); font-size: 12px;
  font-family: inherit; cursor: pointer; outline: none;
}
.filter-sel:focus { border-color: var(--accent); }
.filter-inp {
  padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--text); font-size: 12px;
  font-family: inherit; outline: none; width: 120px;
}
.filter-inp:focus { border-color: var(--accent); }
.filter-btn {
  padding: 5px 12px; border-radius: 7px; border: none;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.filter-btn:hover { background: var(--accent-h); }
.filter-reset {
  padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text3);
  font-size: 12px; cursor: pointer; font-family: inherit;
}
.filter-reset:hover { background: var(--bg3); }
.feed-stats { font-size: 12px; color: var(--text3); margin-left: auto; white-space: nowrap; }

/* Orders Table */
.orders-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.orders-table th {
  padding: 8px 10px; text-align: left; font-size: 10px; font-weight: 700;
  color: var(--text3); text-transform: uppercase; letter-spacing: .4px;
  background: var(--bg2); border-bottom: 2px solid var(--border); white-space: nowrap;
}
.orders-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.orders-table tr:hover td { background: var(--bg2); }
.orders-table tr.new-row td { background: #f0f0ff; }
.orders-table .col-gs { white-space: nowrap; }
.gs-chip { display: inline-flex; align-items: center; gap: 5px; }
.gs-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.gs-name { font-weight: 600; font-size: 12px; }
.col-amount { font-weight: 700; color: var(--green); white-space: nowrap; }
.col-product { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); }
.col-pay { white-space: nowrap; }
.pay-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; background: #f0fff4; color: var(--green); font-weight: 600; }
.col-country, .col-age { color: var(--text3); text-align: center; }
.col-promo { color: var(--text2); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-time { white-space: nowrap; color: var(--text3); font-size: 11px; }
.new-badge {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-left: 4px; vertical-align: middle;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 4px; margin-top: 14px; justify-content: center; }
.pg-btn {
  padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text2);
  font-size: 12px; cursor: pointer; font-family: inherit;
  transition: all .15s; min-width: 32px; text-align: center;
}
.pg-btn:hover { background: var(--bg2); }
.pg-btn.act { background: var(--accent); color: #fff; border-color: var(--accent); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-info { font-size: 12px; color: var(--text3); padding: 0 8px; }

/* GS multi-select */
.gs-multi-wrap { position: relative; }
.gs-multi-btn {
  padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--text); font-size: 12px; cursor: pointer;
  font-family: inherit; display: flex; align-items: center; gap: 5px;
  white-space: nowrap; min-width: 80px;
}
.gs-multi-btn svg { width: 10px; height: 10px; fill: var(--text3); }
.gs-multi-dropdown {
  position: absolute; top: 100%; left: 0; z-index: 100;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; box-shadow: 0 4px 20px rgba(0,0,0,.12);
  padding: 6px; min-width: 160px; max-height: 260px; overflow-y: auto; display: none;
}
.gs-multi-dropdown.open { display: block; }
.gs-opt { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; user-select: none; }
.gs-opt:hover { background: var(--bg2); }
.gs-opt input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; accent-color: var(--accent); }
.gs-opt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Stats ───────────────────────────────────────────────────── */
.period-bar {
  display: flex; gap: 2px; background: var(--bg2);
  border-radius: var(--radius); padding: 3px; margin-bottom: 20px; width: fit-content;
}
.pb {
  padding: 6px 14px; border-radius: 6px; border: none;
  background: transparent; color: var(--text3);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.pb.act { background: var(--bg); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.stat-card .lbl { font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.stat-card .val { font-size: 26px; font-weight: 700; color: var(--text); }
.stat-card .val.green { color: var(--green); } .stat-card .val.blue { color: var(--accent); }
.stat-card .sub { font-size: 12px; color: var(--text3); margin-top: 3px; }
.sec-title { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.rank-table { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.rank-head {
  display: grid; grid-template-columns: 36px 1fr 100px 80px 80px;
  padding: 9px 16px; background: var(--bg2); border-bottom: 1px solid var(--border);
  font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .5px;
}
.rank-row {
  display: grid; grid-template-columns: 36px 1fr 100px 80px 80px;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  align-items: center; transition: background .1s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: var(--bg2); }
.rno { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--bg3); color: var(--text3); }
.rno.g1 { background: #ffd700; color: #5a4500; } .rno.g2 { background: #c0c0c0; color: #444; } .rno.g3 { background: #cd7f32; color: #fff; }
.rname { font-weight: 600; font-size: 13px; }
.ramt { font-weight: 700; color: var(--green); text-align: right; }
.rmeta { font-size: 12px; color: var(--text3); text-align: right; }
.rank-empty { padding: 28px; text-align: center; color: var(--text3); font-size: 13px; }
.chart-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.chart-inner { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 2px solid var(--border); overflow-x: auto; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 30px; }
.bar2 { width: 22px; border-radius: 3px 3px 0 0; background: var(--accent); min-height: 2px; transition: height .3s; }
.bar-val { font-size: 9px; color: var(--text2); font-weight: 600; text-align: center; white-space: nowrap; }
.bar-lbl { font-size: 9px; color: var(--text3); text-align: center; white-space: nowrap; }
.gs-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 12px; margin-bottom: 20px; }
.gs-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.gs-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.gs-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.gs-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.gs-card-name { font-weight: 700; font-size: 14px; } .gs-card-rank { font-size: 11px; color: var(--text3); }
.gs-metric { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--bg2); }
.gs-metric:last-child { border-bottom: none; }
.gs-mlbl { font-size: 12px; color: var(--text3); } .gs-mval { font-size: 12px; font-weight: 700; } .gs-mval.green { color: var(--green); }
.gs-bar-wrap { height: 3px; background: var(--bg3); border-radius: 2px; margin: 7px 0 5px; }
.gs-bar-fill { height: 3px; border-radius: 2px; background: var(--accent); transition: width .4s; }

/* ── Bark Config ─────────────────────────────────────────────── */
.sub-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 14px; }
.st {
  padding: 8px 16px; border: none; background: transparent; color: var(--text3);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  font-family: inherit; transition: all .15s;
}
.st.act { color: var(--accent); border-bottom-color: var(--accent); }
.sub-panel { display: none; } .sub-panel.show { display: block; }
.bark-row {
  display: grid; gap: 8px; align-items: center;
  padding: 8px 10px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px;
}
.bark-row:hover { box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.bark-row.gl { grid-template-columns: 1fr 50px 1fr 100px 56px 32px; }
.bark-row.gs { grid-template-columns: 110px 1fr 50px 1fr 100px 56px 32px; }
.tbl-head { display: grid; gap: 8px; padding: 0 10px 5px; font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; }
.tbl-head.gl { grid-template-columns: 1fr 50px 1fr 100px 56px 32px; }
.tbl-head.gs { grid-template-columns: 110px 1fr 50px 1fr 100px 56px 32px; }
.bk-inp {
  width: 100%; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg2); color: var(--text); font-size: 12px;
  font-family: inherit; outline: none; transition: border-color .15s;
}
.bk-inp:focus { border-color: var(--accent); background: var(--bg); }
.bk-inp::placeholder { color: var(--text3); }
.bk-sel {
  width: 100%; padding: 5px 7px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg2); color: var(--text); font-size: 11px;
  font-family: inherit; cursor: pointer; outline: none;
}
.bk-sel:focus { border-color: var(--accent); }
.gs-sel-wrap { display: flex; align-items: center; gap: 6px; }
.gs-sel-av { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px; color: #fff; flex-shrink: 0; }
.gs-sel-wrap select { border: none; background: transparent; font-weight: 600; font-size: 13px; color: var(--text); cursor: pointer; outline: none; font-family: inherit; flex: 1; min-width: 0; }
.icon-drop {
  border: 1.5px dashed var(--border); border-radius: 50%;
  background: var(--bg2); cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; transition: all .15s; flex-shrink: 0;
  overflow: hidden;
}
.icon-drop:hover { border-color: var(--accent); background: rgba(88,101,242,.05); }
.icon-drop .icon-inp { display: none; }
.icon-drop img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block; }
.icon-drop-ph { display: flex; align-items: center; justify-content: center; pointer-events: none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Order Cards (Feed 气泡卡片) ─────────────────────────────── */
#feedCards { display: flex; flex-direction: column; gap: 8px; }

.order-card {
  display: flex; align-items: stretch;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  animation: cardIn .3s cubic-bezier(.34,1.56,.64,1) both;
}
.order-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
  transform: translateY(-1px);
}

/* 新订单：高亮边框 + 入场动画更强 */
.order-card-new {
  border-color: #eef0f3;
  box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03);
  animation: cardNew .5s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardNew {
  from { opacity: 0; transform: translateY(-10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 左侧色条 */
.card-stripe {
  width: 4px; flex-shrink: 0;
  border-radius: 0;
}

/* 卡片主体 */
.card-body {
  flex: 1; padding: 11px 16px; display: flex; flex-direction: column; gap: 7px; min-width: 0;
}

/* 第一行 */
.card-row1 {
  display: flex; align-items: center; gap: 10px;
}
.card-gs-wrap {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
}
.card-gs-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.card-gs-name {
  font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap;
}
.card-new-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-left: 4px;
  animation: pulse 1s infinite;
}
.card-player {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
}
.card-player-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-server {
  font-size: 11px; color: var(--text3); white-space: nowrap; flex-shrink: 0;
}
.card-amount {
  font-size: 18px; font-weight: 800; flex-shrink: 0; letter-spacing: -.3px;
}
.amt-high { color: #e8370d; }
.amt-mid  { color: #f0a500; }
.amt-low  { color: var(--green); }

/* 第二行 */
.card-row2 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
}
.card-tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500;
  white-space: nowrap; max-width: 180px;
  overflow: hidden; text-overflow: ellipsis;
}
.card-product { background: #f0f4ff; color: #3b5bdb; }
.card-pay     { background: #f3f0ff; color: #7048e8; }
.card-country { background: #fff3bf; color: #5c4700; }
.card-dept    { background: #e6fcf5; color: #087f5b; max-width: 120px; }
.card-staff   { background: #fff0f6; color: #a61e4d; }
.card-empty   { background: #f1f3f5; color: #868e96; }

.card-time {
  margin-left: auto; font-size: 11px; color: var(--text3);
  white-space: nowrap; flex-shrink: 0;
}
.card-orderid {
  font-family: monospace; font-size: 10px; color: #adb5bd;
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: help;
}

/* ── Feed Grid 表格 ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

.feed-table-wrap { background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.06); overflow: hidden; }
.table-scroll-x { overflow-x: auto; padding: 0 16px 16px; }

/* 唯一 grid 容器：表头格 + 数据格都是直接子元素 */
.grid-table { display: grid; min-width: 900px; }

/* 表头格 */
.feed-th {
  background: #fafaf8;
  border-top: 1px solid #ececea;
  border-bottom: 2px solid #ececea;
  padding: 10px 4px;
  font-size: 10px; font-weight: 700; color: #9ca3af;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; justify-content: center;
  position: relative; user-select: none;
  margin-bottom: 2px;
}
/* 首列表头：左圆角 */
.feed-th-first {
  border-left: 1px solid #ececea;
  border-radius: 12px 0 0 12px;
}
/* 末列表头：右圆角 */
.feed-th-last {
  border-right: 1px solid #ececea;
  border-radius: 0 12px 12px 0;
}
.feed-th.feed-align-left { justify-content: flex-start; padding-left: 8px; }

/* 拖拽手柄 + 竖线分隔 */
.feed-rh {
  position: absolute; right: 0; top: 0; bottom: 0; width: 5px;
  cursor: col-resize; z-index: 5;
  border-right: 1.5px solid #e0dfd8;
  background: transparent;
  transition: background .12s, border-color .12s;
}
.feed-rh:hover, .feed-rh.on { background: #b0b7c3; border-right-color: transparent; border-radius: 2px; }

/* 数据行（display:contents，子格直接参与 grid） */
.feed-row { display: contents; }

/* 数据格基础 */
.feed-td {
  background: #fff;
  height: 50px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #374151;
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid #e8e8e4;
  border-top: 1px solid #e8e8e4;
  margin-top: 6px;
  transition: background .12s;
  animation: feedRowIn .28s cubic-bezier(.34,1.3,.64,1) both;
}
.feed-align-left { justify-content: flex-start; padding-left: 8px; }

@keyframes feedRowIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* 首格：左边框 + 左圆角 */
.feed-td-first {
  border-left: 1px solid #e8e8e4;
  border-radius: 12px 0 0 12px;
}
/* 新订单首格：绿色左线 */
.feed-td-first-new {
  border-left: 3px solid #22c55e;
  border-radius: 12px 0 0 12px;
}
/* 中间格 */
.feed-td-mid {}
/* 末格：右边框 + 右圆角 */
.feed-td-last {
  border-right: 1px solid #e8e8e4;
  border-radius: 0 12px 12px 0;
}
/* hover 整行 */
.feed-row.hovered .feed-td { background: #f7f7f4; }

/* GS 单元格 */
.feed-gs-cell { display: flex; align-items: center; gap: 6px; }
.feed-gs-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.feed-gs-name { font-size: 12px; font-weight: 700; }
.feed-ndot    { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: pulse 1s infinite; }

/* 金额 */
.feed-amt { font-size: 16px; font-weight: 800; font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; letter-spacing: -.2px; }

/* 商品标签 */
.feed-ptag { display: inline-block; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 支付类型 */
.feed-ptype { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; }
.feed-pi { background: #fdf4ff; color: #7e22ce; }
.feed-pt { background: #fff7ed; color: #c2410c; }

/* 国家 / 推广小组 / 推广成员 标签 */
.feed-country-tag { display: inline-block; background: #fff3bf; color: #5c4700; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-dept-tag    { display: inline-block; background: #e6fcf5; color: #087f5b; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-staff-tag   { display: inline-block; background: #fff0f6; color: #a61e4d; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 年龄标签 */
.feed-age-tag { display: inline-block; background: #e0f2fe; color: #0369a1; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }


/* ── GS 头像 (订单列表) ────────────────────────────────────── */
.feed-gs-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.feed-gs-avatar-fallback {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
/* 有头像时行高稍高 */
.feed-td { height: 54px; }

/* ── GS 头像上传 (系统配置) ─────────────────────────────────── */
.bark-row.gs { grid-template-columns: 110px 1fr 50px 1fr 100px 56px 32px; }
.tbl-head.gs { grid-template-columns: 110px 1fr 50px 1fr 100px 56px 32px; }
.gs-avatar-wrap {
  display: flex; align-items: center; justify-content: center;
}
.gs-av-placeholder {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  cursor: pointer; transition: opacity .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.gs-av-placeholder:hover { opacity: .8; }

/* ── 新订单弹窗播报 ─────────────────────────────────────────── */
.order-toast {
  position: fixed; bottom: 28px; right: 28px;
  width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  display: flex; align-items: stretch;
  overflow: hidden;
  z-index: 9999;
  opacity: 0; transform: translateX(24px) scale(.97);
  transition: opacity .35s cubic-bezier(.34,1.3,.64,1), transform .35s cubic-bezier(.34,1.3,.64,1);
  pointer-events: none;
}
.order-toast.nt-show {
  opacity: 1; transform: translateX(0) scale(1);
  pointer-events: auto;
}
.nt-stripe { width: 5px; flex-shrink: 0; }
.nt-body { flex: 1; padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nt-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nt-gs { display: flex; align-items: center; gap: 7px; }
.nt-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.nt-avatar-fb {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.nt-gs-name { font-size: 13px; font-weight: 700; color: #111827; }
.nt-new-badge {
  font-size: 10px; font-weight: 700; padding: 1px 7px;
  background: #f0fdf4; color: #16a34a; border-radius: 20px;
  animation: pulse 1.2s infinite;
}
.nt-amt { font-size: 20px; font-weight: 800; letter-spacing: -.3px; flex-shrink: 0; }
.nt-row2 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.nt-player { font-size: 13px; font-weight: 600; color: #374151; }
.nt-srv { font-size: 11px; color: #9ca3af; }
.nt-prod {
  font-size: 11px; font-weight: 500; padding: 1px 7px;
  background: #eff6ff; color: #1d4ed8; border-radius: 4px;
}
.nt-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; font-size: 16px; color: #9ca3af;
  cursor: pointer; line-height: 1; padding: 2px 4px;
}
.nt-close:hover { color: #374151; }
