/* ============ 经营报表（店主 Web 端） ============ */

/* 控件区整体：卡片式，翡翠绿顶部渐变 */
.report-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid #e3eee8;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(15, 90, 61, 0.05);
  flex-wrap: wrap;
}

/* ─── 类型分段控件 ─── */
.report-type-seg {
  display: inline-flex;
  background: #f0f5f2;
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}
.rp-seg-item {
  padding: 8px 18px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b847b;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.rp-seg-item:hover { color: #0f5a3d; }
.rp-seg-item.active {
  background: linear-gradient(135deg, #0f5a3d, #3cb371);
  color: #fff;
  box-shadow: 0 2px 6px rgba(15, 90, 61, 0.25);
}

/* ─── 周期选择 ─── */
.report-period {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rp-field {
  position: relative;
}
.rp-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 9px 36px 9px 14px;
  border: 1px solid #d3e2db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #16302a;
  min-width: 120px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.rp-field select:hover { border-color: #3cb371; }
.rp-field select:focus {
  outline: none;
  border-color: #0f5a3d;
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.15);
}
/* 自定义下拉箭头 */
.rp-field::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b847b;
  pointer-events: none;
  font-size: 12px;
  font-weight: bold;
}

/* ─── 生成按钮 ─── */
.rp-gen-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f5a3d, #3cb371);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 90, 61, 0.3);
  transition: transform .12s, box-shadow .15s;
  white-space: nowrap;
}
.rp-gen-btn:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(15, 90, 61, 0.4);
  transform: translateY(-1px);
}
.rp-gen-btn:active:not(:disabled) { transform: translateY(0); }
.rp-gen-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── 辅助按钮（下载/打印） ─── */
.rp-aux-btn {
  padding: 9px 18px;
  border: 1px solid #d3e2db;
  border-radius: 8px;
  background: #fff;
  color: #0f5a3d;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.rp-aux-btn:hover {
  background: #eef7f1;
  border-color: #3cb371;
}

/* ─── 预览 iframe ─── */
.report-preview {
  border: 1px solid #e3eee8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 90, 61, 0.05);
}
.report-preview iframe {
  width: 100%;
  height: 760px;
  border: none;
  display: block;
  background: #f6f8f7;
}

/* ─── 空状态 ─── */
.report-empty {
  text-align: center;
  padding: 100px 20px;
  background: #fff;
  border: 2px dashed #d3e2db;
  border-radius: 14px;
  color: #7a8a80;
}
.report-empty-ico {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.85;
}
.report-empty-title {
  font-size: 15px;
  color: #0f5a3d;
  font-weight: 600;
  margin-bottom: 6px;
}
.report-empty-sub {
  font-size: 13px;
  color: #9ab0a7;
}

/* 隐藏工具类（和全站保持一致） */
.hidden { display: none !important; }

@media (max-width: 760px) {
  .report-controls { flex-direction: column; align-items: stretch; gap: 14px; }
  .report-type-seg { justify-content: center; }
  .report-period { justify-content: center; }
  .rp-gen-btn, .rp-aux-btn { width: 100%; }
  .report-preview iframe { height: 520px; }
}
