/* Fisher 设备列表 → 对齐 dayu-admin 条带表格视觉（device-list-ui.mdc） */
html.dayu-fisher-skin,
html.dayu-fisher-skin body {
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

/* 设备控制：列表铺满剩余区域，不要缩成中间一小块 */
.dayu-control-fill {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

.dayu-pager-fill {
  width: 100% !important;
  align-self: stretch !important;
  margin-top: 8px !important;
  box-sizing: border-box;
}

/* 简洁模式列表外框 → 大鱼表格 */
.fisher-dayu-list-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: none;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  min-width: 0 !important;
  min-height: 280px;
  box-sizing: border-box;
}

.dayu-dt-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

.fisher-dayu-list-row.dayu-src-row {
  display: none !important;
}

.dayu-dt-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background: #fff;
  color: #0f172a;
}

.dayu-dt-table .dt-check { display: none !important; }
tr[data-id="b7e1c9a04f2d8e6c5a19384726150df2"],
.fisher-dayu-list-row[data-id="b7e1c9a04f2d8e6c5a19384726150df2"] {
  display: none !important;
}
.dayu-dt-table .dt-phone-cell { width: 3.6%; text-align: center; }
.dayu-dt-table .dt-id { width: 12%; }
.dayu-dt-table .dt-staff-col { width: 4.6%; }
.dayu-dt-table .dt-group-col { width: 6%; }
.dayu-dt-table .dt-country-col { width: 3.8%; }
.dayu-dt-table .dt-time-col { width: 7.2%; }
.dayu-dt-table .dt-actions-col { width: 16%; }
.dayu-dt-table .dt-remark-cell { width: 9%; }
.dayu-dt-table .dt-balance-col { width: 6.2%; }

.dayu-dt-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 8px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dayu-dt-table tbody td {
  border: 1px solid #e2e8f0;
  padding: 8px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  height: 52px;
  background: #fff;
  vertical-align: middle;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dayu-dt-table tbody tr.dt-row--online > td {
  background: #f4fbf6;
}

.dayu-dt-table tbody tr.dt-row--acc-off > td {
  background: #fffaf9;
}

.dayu-dt-table tbody tr.dt-row--online.dt-row--acc-off > td {
  background: #f4fbf6;
}

.dayu-dt-table tbody tr:hover > td {
  background: #eef6ff !important;
}

.dayu-dt-table .dt-cell-stack {
  white-space: normal;
}

.dayu-dt-table tbody td.dt-phone-cell,
.dayu-dt-table tbody td.dt-remark-cell {
  overflow: hidden;
  white-space: nowrap;
}

.dayu-dt-table tbody td.dt-actions-col {
  overflow: visible;
  white-space: nowrap;
}

.dayu-dt-table tbody tr > td:first-child {
  box-shadow: inset 4px 0 0 #cbd5e1;
}

.dayu-dt-table tbody tr.dt-row--online > td:first-child {
  box-shadow: inset 4px 0 0 #22c55e;
}

.dayu-dt-table tbody tr.dt-row--acc-off > td:first-child {
  box-shadow: inset 4px 0 0 #f87171;
}

.dayu-dt-table tbody tr.dt-row--online.dt-row--acc-off > td:first-child {
  box-shadow: inset 4px 0 0 #f59e0b;
}

.dayu-dt-table .dt-android-id {
  display: block;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dayu-dt-table .dt-check {
  text-align: center;
}

.dt-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.dt-status-dot--off {
  background: #94a3b8;
  box-shadow: none;
}

.dt-cell-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.35;
}

.dt-cell-main {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.dt-cell-sub {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.dt-dash {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.dt-badge {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  font-weight: 700;
}

.dt-badge--ok { background: #ecfdf3; color: #15803d; }
.dt-badge--warn { background: #fffbeb; color: #b45309; }
.dt-badge--bad { background: #fef2f2; color: #dc2626; }
.dt-badge--screen-on { background: #ecfdf3; color: #15803d; }
.dt-badge--screen-off { background: #f8fafc; color: #64748b; }
.dt-badge--wallet { background: #fff7ed; color: #ea580c; min-width: 36px; }

.dt-balance {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.dt-act {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.dt-act--detail { color: #2563eb; background: #eff6ff; }
.dt-act--assign { color: #ea580c; background: #fff7ed; }
.dt-act--tag { color: #16a34a; background: #f0fdf4; }
.dt-act--ctrl { color: #2563eb; background: #eff6ff; }
.dt-act--send { color: #16a34a; background: #f0fdf4; }
.dt-act--group { color: #ea580c; background: #fff7ed; }
.dt-act:hover { filter: brightness(0.97); }

.dayu-act-pop {
  position: fixed;
  z-index: 4000;
  min-width: 196px;
  max-width: 280px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.dayu-act-pop-title {
  padding: 6px 10px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.dayu-act-pop--send .dayu-act-pop-title { color: #16a34a; }
.dayu-act-pop--group .dayu-act-pop-title { color: #ea580c; }
.dayu-act-pop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}
.dayu-act-pop-item:hover { background: #f8fafc; }
.dayu-act-pop-item.is-on {
  background: #eff6ff;
  color: #2563eb;
}
.dayu-act-pop-check {
  font-size: 13px;
  color: #2563eb;
}
.dayu-act-pop-empty {
  padding: 18px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}
.dayu-act-pop-clear {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: none;
  border-top: 1px solid #f1f5f9;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0 0 8px 8px;
}
.dayu-act-pop-clear:hover { color: #ef4444; background: #fff5f5; }

.dt-remark-empty { color: #94a3b8; font-size: 13px; }
.dt-remark-text { color: #475569; font-size: 13px; font-weight: 500; }

.dt-remark-input {
  width: 100%;
  max-width: 100%;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.dt-wallet-miss {
  color: #ff4d4f;
  font-size: 12px;
  font-weight: 600;
}

.dt-mini-phone {
  display: inline-flex;
  width: 22px;
  height: 34px;
  border-radius: 5px;
  border: 2px solid #303133;
  background: #fff;
  color: #303133;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
  box-sizing: border-box;
}

.dt-mini-phone[data-locked="1"] {
  background: #303133;
  color: #fff;
}

.dt-mini-phone svg {
  display: block;
  overflow: visible;
}

html[data-theme="dark"] .fisher-dayu-list-wrap,
html[data-theme="dark"] .dayu-dt-table {
  background: #161b22;
  border-color: #30363d;
  color: #e6edf3;
}

html[data-theme="dark"] .dayu-dt-table thead th {
  background: #21262d;
  color: #e6edf3;
  border-color: #30363d;
}

html[data-theme="dark"] .dayu-dt-table tbody td {
  background: #161b22;
  color: #e6edf3;
  border-color: #30363d;
}

html[data-theme="dark"] .dayu-dt-table tbody tr.dt-row--online > td {
  background: #13251b;
}

html[data-theme="dark"] .dayu-dt-table tbody tr.dt-row--acc-off > td {
  background: #2a1614;
}

html[data-theme="dark"] .dayu-dt-table tbody tr:hover > td {
  background: #1f2937 !important;
}

html[data-theme="dark"] .dt-cell-main,
html[data-theme="dark"] .dt-android-id,
html[data-theme="dark"] .dt-remark-text {
  color: #e6edf3;
}

html[data-theme="dark"] .dt-cell-sub,
html[data-theme="dark"] .dt-dash,
html[data-theme="dark"] .dt-remark-empty {
  color: #8b949e;
}

html[data-theme="dark"] .dt-act--detail,
html[data-theme="dark"] .dt-act--ctrl { background: #1e3a5f; color: #79c0ff; }
html[data-theme="dark"] .dt-act--tag,
html[data-theme="dark"] .dt-act--send { background: #163227; color: #7ee787; }
html[data-theme="dark"] .dt-act--assign,
html[data-theme="dark"] .dt-act--group { background: #3d2914; color: #ffa657; }

html[data-theme="dark"] .dayu-act-pop {
  background: #161b22;
  border-color: #30363d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .dayu-act-pop-item { color: #e6edf3; }
html[data-theme="dark"] .dayu-act-pop-item:hover { background: #21262d; }
html[data-theme="dark"] .dayu-act-pop-item.is-on { background: #1e3a5f; color: #79c0ff; }
html[data-theme="dark"] .dayu-act-pop-clear { border-top-color: #30363d; }

html[data-theme="dark"] .dt-remark-input {
  background: #0d1117;
  border-color: #30363d;
  color: #e6edf3;
}

html[data-theme="dark"] .dt-mini-phone {
  border-color: #8b949e;
}

html[data-theme="dark"] .dt-mini-phone[data-locked="0"] {
  background: #e6edf3;
}

.fisher-dayu-list-wrap > .fisher-dayu-list-row:last-child {
  border-bottom: none !important;
}

/* 旧卡片行（不再用）；不要套到表格 tr 上 */
div.fisher-dayu-list-row {
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  box-shadow: inset 4px 0 0 #cbd5e1 !important;
  background: #fff !important;
  padding: 8px 12px !important;
  gap: 12px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  transition: background 0.15s ease;
}

div.fisher-dayu-list-row:hover {
  background: #eef6ff !important;
}

div.fisher-dayu-list-row--online {
  background: #f4fbf6 !important;
  box-shadow: inset 4px 0 0 #22c55e !important;
}

div.fisher-dayu-list-row--online:hover {
  background: #eef6ff !important;
}

div.fisher-dayu-list-row--acc-off {
  background: #fffaf9 !important;
  box-shadow: inset 4px 0 0 #f87171 !important;
}

div.fisher-dayu-list-row--online.fisher-dayu-list-row--acc-off {
  background: #f4fbf6 !important;
  box-shadow: inset 4px 0 0 #f59e0b !important;
}

div.fisher-dayu-list-row--offline.fisher-dayu-list-row--acc-off {
  background: #fffaf9 !important;
}

html[data-theme="dark"] .fisher-dayu-list-wrap {
  border-color: #30363d;
  background: #161b22;
}

html[data-theme="dark"] div.fisher-dayu-list-row {
  border-bottom-color: #30363d !important;
  background: #161b22 !important;
  color: #e6edf3 !important;
}

html[data-theme="dark"] div.fisher-dayu-list-row:hover {
  background: #1f2937 !important;
}

html[data-theme="dark"] div.fisher-dayu-list-row--online {
  background: #13251b !important;
}

html[data-theme="dark"] div.fisher-dayu-list-row--online:hover {
  background: #163022 !important;
}

html[data-theme="dark"] div.fisher-dayu-list-row--acc-off {
  background: #2a1614 !important;
}

html[data-theme="dark"] div.fisher-dayu-list-row--online.fisher-dayu-list-row--acc-off {
  background: #231c10 !important;
}

/* 列表字段列宽对齐，两行一行高，看起来像格子而不是挤在一起 */
.fisher-dayu-list-row {
  align-items: center !important;
}
.fisher-dayu-list-row > div[style*="width:"] {
  font-size: 13px !important;
  line-height: 22px !important;
  min-width: 0 !important;
}
.fisher-dayu-list-row > div[style*="width: 160px"] {
  width: 168px !important;
  flex: 0 0 168px !important;
}
.fisher-dayu-list-row > div[style*="width: 130px"] {
  width: 140px !important;
  flex: 0 0 140px !important;
}
.fisher-dayu-list-row > div[style*="width: 156px"] {
  width: 148px !important;
  flex: 0 0 148px !important;
}
.fisher-dayu-list-row > div[style*="width: 210px"] {
  width: 196px !important;
  flex: 0 0 196px !important;
}
.fisher-dayu-list-row > div[style*="width: 280px"] {
  width: 220px !important;
  flex: 1 1 220px !important;
}
/* 在线/离线列已有状态，列表不再重复展示锁屏行 */
.fisher-dayu-list-row .dayu-lock-pill,
.fisher-dayu-list-row .dayu-lock-pill.compact {
  display: none !important;
  margin: 0 !important;
}

/* 状态角标略收敛，贴近大禹表格密度 */
.fisher-dayu-list-row div[style*="padding: 2px 12px"] {
  padding: 1px 8px !important;
  font-size: 12px !important;
  border-radius: 4px !important;
}

/* Ant Table（若某页用表格） */
html.dayu-fisher-skin .fisher-dayu-table.ant-table-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

html.dayu-fisher-skin .fisher-dayu-table .ant-table-cell {
  border-inline-end: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 13px !important;
  padding: 8px 10px !important;
  color: #0f172a !important;
}

html.dayu-fisher-skin .fisher-dayu-table .ant-table-thead > tr > th {
  background: #f8fafc !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  color: #334155 !important;
}

html.dayu-fisher-skin .fisher-dayu-table .dt-fisher-row--online > td {
  background: #f4fbf6 !important;
}

html.dayu-fisher-skin .fisher-dayu-table .dt-fisher-row--acc-off > td {
  background: #fffaf9 !important;
}

html.dayu-fisher-skin .fisher-dayu-table .dt-fisher-row--online > td:first-child {
  box-shadow: inset 4px 0 0 #22c55e;
}

html.dayu-fisher-skin .fisher-dayu-table .dt-fisher-row--acc-off > td:first-child {
  box-shadow: inset 4px 0 0 #f87171;
}

html.dayu-fisher-skin .fisher-dayu-table .dt-fisher-row--online.dt-fisher-row--acc-off > td:first-child {
  box-shadow: inset 4px 0 0 #f59e0b;
}

html.dayu-fisher-skin .fisher-dayu-table .ant-table-tbody > tr:not(.dt-fisher-row--online):not(.dt-fisher-row--acc-off) > td:first-child {
  box-shadow: inset 4px 0 0 #cbd5e1;
}

/* 32 位设备 ID 整段可见 */
.dayu-id-copy {
  font-family: ui-monospace, Consolas, "Courier New", monospace !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.fisher-dayu-list-row:not(.dayu-src-row) div[style*="width: 340px"]:has(.dayu-id-copy),
.fisher-dayu-list-row:not(.dayu-src-row) div[style*="width: 220px"]:has(.dayu-id-copy) {
  width: 168px !important;
  flex: 0 0 168px !important;
  min-width: 0 !important;
}

div[style*="width: 340px"]:has(.dayu-id-copy) > div,
div[style*="width: 220px"]:has(.dayu-id-copy) > div {
  overflow: visible !important;
  text-overflow: clip !important;
}

/* 夜间：Ant 表头/单元格不要再走浅底，字才能看见 */
html[data-theme="dark"] .ant-table-wrapper,
html[data-theme="dark"] .ant-table,
html[data-theme="dark"] .ant-table-container,
html[data-theme="dark"] .ant-table-content,
html[data-theme="dark"] .ant-table-body,
html[data-theme="dark"] .ant-table-placeholder {
  background: #161b22 !important;
  color: #e6edf3 !important;
}

html[data-theme="dark"] .ant-table-thead > tr > th,
html[data-theme="dark"] .ant-table-thead > tr > td {
  background: #21262d !important;
  color: #e6edf3 !important;
  border-color: #30363d !important;
}

html[data-theme="dark"] .ant-table-tbody > tr > td,
html[data-theme="dark"] .ant-table-cell {
  background: #161b22 !important;
  color: #c9d1d9 !important;
  border-color: #30363d !important;
}

html[data-theme="dark"] .ant-table-tbody > tr.ant-table-row:hover > td,
html[data-theme="dark"] .ant-table-tbody > tr:hover > td {
  background: #1f2937 !important;
  color: #e6edf3 !important;
}

html[data-theme="dark"] .ant-table-tbody > tr:nth-child(even) > td {
  background: #1c2128 !important;
}

html[data-theme="dark"] .ant-empty-description,
html[data-theme="dark"] .ant-table-placeholder,
html[data-theme="dark"] .ant-pagination,
html[data-theme="dark"] .ant-pagination * {
  color: #8b949e !important;
}

html[data-theme="dark"] .ant-statistic-title,
html[data-theme="dark"] .ant-card-head-title,
html[data-theme="dark"] .ant-card-head {
  color: #c9d1d9 !important;
  border-color: #30363d !important;
}

html[data-theme="dark"] .ant-card,
html[data-theme="dark"] .ant-card-body {
  background: transparent;
}

html[data-theme="dark"] .ant-select-selection-placeholder,
html[data-theme="dark"] .ant-select-selection-item,
html[data-theme="dark"] .ant-input::placeholder,
html[data-theme="dark"] input::placeholder {
  color: #8b949e !important;
}

html[data-theme="dark"] .xy-grid th {
  color: #c9d1d9 !important;
}

html[data-theme="dark"] .xy-grid td {
  color: #e6edf3 !important;
}

html[data-theme="dark"] .xy-grid td.muted {
  color: #8b949e !important;
}

/* 详情顶栏：黑幕 / 阻断一眼能分清开和关 */
.dayu-black-pill,
.dayu-block-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  user-select: none;
  flex: 0 0 auto;
}
.dayu-black-dot,
.dayu-block-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}
.dayu-black-pill[data-on="0"] {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}
.dayu-black-pill[data-on="0"] .dayu-black-dot {
  background: #cbd5e1;
}
.dayu-black-pill[data-on="1"] {
  background: #111827;
  color: #fff;
  border-color: #111827;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111827;
}
.dayu-black-pill[data-on="1"] .dayu-black-dot {
  background: #fff;
}
.dayu-block-pill[data-on="0"] {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
}
.dayu-block-pill[data-on="0"] .dayu-block-dot {
  background: #cbd5e1;
}
.dayu-block-pill[data-on="1"] {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #dc2626;
}
.dayu-block-pill[data-on="1"] .dayu-block-dot {
  background: #fff;
  animation: dayu-pill-pulse 1.1s ease-in-out infinite;
}
@keyframes dayu-pill-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
html[data-theme="dark"] .dayu-black-pill[data-on="0"],
html[data-theme="dark"] .dayu-block-pill[data-on="0"] {
  background: #1f2937;
  color: #9ca3af;
  border-color: #4b5563;
}
