/**
 * 共享组件 — Apple 极简（蓝 / 灰 / 红）
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--btn-radius);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  text-decoration: none;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--btn-primary-hover);
  opacity: 1;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-secondary {
  background: var(--btn-secondary-bg) !important;
  color: var(--btn-secondary-text) !important;
}

.btn-danger {
  background: var(--btn-danger-bg) !important;
  color: var(--btn-danger-text) !important;
}

.btn-outline {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.btn-outline:hover {
  background: var(--surface) !important;
}

.btn-orange,
.btn-green,
.btn-blue,
.btn-teal {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
}

.btn-edit,
.btn-detail,
.btn-cancel,
.btn-mini {
  background: var(--apple-green-soft) !important;
  color: var(--apple-green-text-strong) !important;
  border: 1px solid var(--apple-green-border) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.btn-del {
  background: transparent !important;
  color: var(--danger) !important;
  border: 1px solid var(--danger-border) !important;
  font-weight: 500 !important;
}

.btn-add,
.btn-save {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 0 !important;
}

.text-accent { color: var(--accent) !important; }
.text-strong { color: var(--text-strong) !important; }
.text-muted-strong { color: var(--muted) !important; }
.text-danger { color: var(--danger-text) !important; }
.text-warning { color: var(--text) !important; }
.text-success { color: var(--muted) !important; }
.text-info { color: var(--text) !important; }

.fw-bold { font-weight: 600 !important; }
.fw-semibold { font-weight: 600 !important; }

.panel-info,
.info-panel {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 0;
  background: transparent;
  border-radius: 0;
  color: var(--text);
  box-shadow: none;
}

.panel-danger,
.danger-panel {
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--danger-border);
  border-left: 0;
  background: transparent;
  border-radius: 0;
  color: var(--danger-text);
  box-shadow: none;
  margin-top: 16px;
}

.panel-success,
.success-panel,
.panel-neutral,
.neutral-panel {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 0;
  background: transparent;
  border-radius: 0;
  color: var(--text);
  box-shadow: none;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  margin: 14px 0 6px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.section-title.is-accent {
  color: var(--text);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.badge-warn,
.badge-purple,
.badge-success {
  background: var(--surface);
  color: var(--muted);
}

/* —— 队列：Apple 浅绿待处理 / 灰已完成 —— */
.queue-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.queue-section-head.pending {
  margin-top: 4px;
  background: var(--apple-green-soft);
  border: 1px solid var(--apple-green-border);
  color: var(--apple-green-text-strong);
}

.queue-section-head.done {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #48484a;
}

.queue-section-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.queue-section-head.pending .queue-section-count {
  color: var(--apple-green-text);
  border: 1px solid var(--apple-green-border);
}

.queue-section-head.done .queue-section-count {
  color: #48484a;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.queue-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.queue-tag-new,
.queue-tag-active {
  background: var(--apple-green-soft);
  color: var(--apple-green-text);
  border: 1px solid var(--apple-green-border);
}

.queue-tag-done,
.queue-tag-sent {
  background: #f0f0f2;
  color: #48484a;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.queue-tag-return {
  background: var(--danger-soft);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.queue-dot.new {
  background: var(--apple-green);
}

.queue-dot.done {
  background: #86868b;
}

.item.queue-new,
.item.queue-pending {
  background: var(--apple-green-soft);
  border-color: var(--apple-green-border);
  border-left: 4px solid var(--apple-green);
}

.item.queue-new:hover,
.item.queue-pending:hover {
  background: var(--apple-green-soft-hover);
  border-color: #86efac;
}

.item.queue-new.active,
.item.queue-pending.active {
  outline: none;
  outline-offset: 0;
  background: var(--apple-green-soft);
  border-color: var(--apple-green-border);
  box-shadow: none;
}

.item.queue-done,
.item.queue-pushed {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  border-left: 4px dashed #86868b;
}

.item.queue-done:hover,
.item.queue-pushed:hover {
  background: #fbfbfd;
  border-color: rgba(0, 0, 0, 0.14);
}

.item.queue-done.active,
.item.queue-pushed.active {
  outline: none;
  outline-offset: 0;
  background: var(--surface);
  border-color: rgba(0, 0, 0, 0.14);
  border-left-style: solid;
  box-shadow: none;
}

.item.queue-pushed {
  border-left-style: solid;
  border-left-color: #c7c7cc;
}

.item.queue-pushed.active {
  outline-color: rgba(52, 199, 89, 0.35);
  border-left-color: var(--apple-green);
}

