.xy-channel-quick-btn {
  height: 32px;
  padding: 0 15px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.xy-channel-quick-btn:hover {
  border-color: #c6e2ff;
  background: #ecf5ff;
  color: #409eff;
}

.xy-channel-quick-mask {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.35);
}

.xy-channel-quick-mask.is-open {
  display: flex;
}

.xy-channel-quick-panel {
  width: min(860px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.xy-channel-quick-head {
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
}

.xy-channel-quick-title {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.xy-channel-quick-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.xy-channel-quick-close:hover {
  background: #f1f5f9;
  color: #111827;
}

.xy-channel-quick-search {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  border-bottom: 1px solid #eef2f7;
}

.xy-channel-quick-input {
  height: 36px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 4px;
  color: #111827;
  font: inherit;
  outline: none;
}

.xy-channel-quick-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.xy-channel-quick-search-btn {
  height: 36px;
  min-width: 76px;
  padding: 0 16px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.xy-channel-quick-search-btn:hover {
  background: #1d4ed8;
}

.xy-channel-create-panel {
  width: min(760px, calc(100vw - 40px));
}

.xy-channel-create-form {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.xy-channel-create-form label span {
  display: block;
  margin-bottom: 6px;
  color: #606266;
  font-size: 13px;
  font-weight: 600;
}

.xy-channel-create-wide {
  grid-column: 1 / -1;
}

.xy-channel-quick-textarea {
  width: 100%;
  min-height: 84px;
  padding: 9px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 4px;
  color: #111827;
  font: inherit;
  resize: vertical;
  outline: none;
}

.xy-channel-quick-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.xy-channel-create-foot {
  min-height: 54px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 13px;
}

.xy-channel-create-foot > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xy-channel-action-btn {
  height: 32px;
  padding: 0 15px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.xy-channel-action-btn:hover {
  border-color: #c6e2ff;
  background: #ecf5ff;
  color: #409eff;
}

.xy-channel-action-primary {
  border-color: #409eff;
  background: #409eff;
  color: #fff;
}

.xy-channel-action-primary:hover {
  border-color: #337ecc;
  background: #337ecc;
  color: #fff;
}

.xy-channel-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.xy-channel-quick-body {
  min-height: 220px;
  overflow: auto;
}

.xy-channel-quick-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.xy-channel-quick-table th,
.xy-channel-quick-table td {
  height: 42px;
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: middle;
}

.xy-channel-quick-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.xy-channel-quick-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xy-channel-quick-phone {
  font-weight: 700;
  color: #111827;
}

.xy-channel-quick-view {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe3ef;
  border-radius: 4px;
  background: #fff;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
}

.xy-channel-quick-view:hover {
  border-color: #2563eb;
}

.xy-channel-quick-empty {
  padding: 38px 18px;
  color: #64748b;
  text-align: center;
}

.xy-channel-quick-foot {
  min-height: 42px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 13px;
}

.xy-channel-quick-status {
  color: #64748b;
}

.xy-order-channel-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
  overflow: visible;
  white-space: normal;
}

.el-table .cell:has(.xy-order-channel-list) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.35;
}

.el-table .cell.xy-order-channel-cell {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.35;
}

.xy-order-channel-row {
  min-height: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  color: #606266;
  font-size: 12px;
  white-space: normal;
}

.xy-order-channel-name,
.xy-order-channel-phone,
.xy-order-channel-contact-line {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.xy-order-channel-name {
  flex: 0 0 auto;
  max-width: none;
  color: inherit;
  font-weight: 400;
}

.xy-order-channel-phone {
  flex: 0 0 auto;
  color: inherit;
  font-weight: 400;
}

.xy-order-channel-contact-line {
  flex: 0 0 auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}

.xy-order-channel-view {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 5px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #409eff;
  font-size: 12px;
  cursor: pointer;
}

.xy-order-channel-view:hover {
  border-color: #c6e2ff;
  background: #ecf5ff;
}

.xy-order-channel-empty,
.xy-order-channel-more {
  color: #909399;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .xy-channel-quick-panel {
    width: calc(100vw - 20px);
  }

  .xy-channel-quick-search {
    grid-template-columns: 1fr;
  }

  .xy-channel-quick-table {
    min-width: 760px;
  }

  .xy-channel-create-form {
    grid-template-columns: 1fr;
  }

  .xy-channel-create-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .xy-channel-create-foot > div {
    justify-content: flex-end;
  }
}
