/* === 扩容上报看板 WPS Board === */
.wps-board-page {
  background: var(--clr-muted, #f8fafc);
  min-height: 100%;
  padding-bottom: 60px;
  box-sizing: border-box;
}

.wb-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- 顶栏 Header --- */
.wb-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.wb-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wb-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.wb-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.wb-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: #d1fae5;
  color: #065f46;
}

.wb-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

/* 顶栏 Tabs 模式切换 */
.wb-tabs {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.wb-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wb-tab-btn:hover {
  color: #1e293b;
}

.wb-tab-btn.active {
  background: #fff;
  color: #059669;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.wb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- Tab 1: 扩容进度看板 --- */
.wb-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.wb-stat-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  min-width: 105px;
}

.wb-sc-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.wb-sc-lbl {
  font-size: 11px;
  color: #64748b;
}

.wb-stat-reported .wb-sc-val { color: #059669; }
.wb-stat-unreported .wb-sc-val { color: #d97706; }
.wb-stat-verified .wb-sc-val { color: #2563eb; }
.wb-stat-pending .wb-sc-val { color: #eab308; }
.wb-stat-rejected .wb-sc-val { color: #dc2626; }

.wb-stat-meta {
  margin-left: auto;
  min-width: auto;
  background: transparent;
  border: none;
  padding: 4px 8px;
  align-items: flex-end;
}

.wb-sc-time {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.wb-sc-tip {
  font-size: 11px;
  color: #94a3b8;
}

/* 搜索与筛选栏 */
.wb-ctrl-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.wb-search-wrap {
  position: relative;
  width: 100%;
}

.wb-search-ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.wb-search-input {
  width: 100%;
  padding-left: 36px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.wb-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.wb-pill-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb-pg-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.wb-pill {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wb-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.wb-pill.active {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

/* 表格区 */
.wb-table-wrap {
  padding: 16px 20px;
  overflow-x: auto;
}

.wb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wb-table th, .wb-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  text-align: left;
}

.wb-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.wb-table tr:hover td {
  background: #f8fafc;
}

.wb-row-reported td:first-child {
  box-shadow: inset 3px 0 0 #10b981;
}

.wb-row-unreported td:first-child {
  box-shadow: inset 3px 0 0 #f59e0b;
}

/* 标签样式 */
.wb-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.wb-tag-ok { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.wb-tag-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.wb-tag-bad { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.wb-tag-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.wb-tag-muted { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* 搜索高亮 */
mark.wb-hit {
  background: #fef08a;
  color: #854d0e;
  padding: 0 2px;
  border-radius: 2px;
}

/* --- Tab 2: 黄单快速上报布局 --- */
.wb-push-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  padding: 20px;
}

.wb-push-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wb-pfc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.wb-pfc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.wb-pfc-tip {
  font-size: 12px;
  color: #059669;
  font-weight: 500;
}

.wb-push-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wb-form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wb-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wb-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.wb-label.required::after {
  content: " *";
  color: #dc2626;
}

.wb-input-with-btn {
  display: flex;
  gap: 8px;
}

.wb-field-hint {
  font-size: 11.5px;
  color: #64748b;
}

/* 照片上传器 */
.wb-photo-uploader {
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wb-upload-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  cursor: pointer;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.wb-upload-trigger:hover {
  background: #eff6ff;
  color: #2563eb;
}

.wb-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.wb-photo-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.wb-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb-photo-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-photo-size {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px;
  text-align: center;
  padding: 1px 0;
}

.wb-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

/* 右侧侧边栏 */
.wb-push-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wb-ps-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wb-ps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.wb-ps-head h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.wb-ps-sub {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: #64748b;
}

.wb-yellow-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}

.wb-yo-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
}

.wb-yo-card:hover {
  background: #fff;
  border-left-color: #059669;
  transform: translateX(2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.wb-yo-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.wb-yo-sub {
  color: #64748b;
  font-size: 11px;
}

.wb-guide-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}

/* --- 抽屉 Drawer --- */
.wb-drawer-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

.wb-drawer-mask[hidden] {
  display: none !important;
}

.wb-drawer {
  width: 480px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  animation: wbDrawerIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wbDrawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.wb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.wb-drawer-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.wb-drawer-subtitle {
  font-size: 12px;
  color: #64748b;
}

.wb-drawer-close {
  border: none;
  background: transparent;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.wb-drawer-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wb-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wb-detail-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wb-df-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.wb-df-val {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
}

.wb-df-val.mono {
  font-family: monospace;
}

@media (max-width: 900px) {
  .wb-push-layout {
    grid-template-columns: 1fr;
  }
}
