/* 公共界面组件：不包含业务金额或状态逻辑。 */
.control-full { width: 100%; }
.form-row-wrap { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.space-after { margin-bottom: 1rem; }
.chart-unavailable { padding: 1rem; font-size: 0.85rem; color: var(--text-muted); }
[data-erp-gated], [data-erp-nav-gated] { display: none !important; }
.header-tools { position: relative; }
.header-tools > summary { list-style: none; cursor: pointer; }
.header-tools > summary::-webkit-details-marker { display: none; }
.header-tools-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(300px, calc(100vw - 2rem));
  padding: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.header-tools-panel .server-tools { display: flex !important; flex-direction: column; align-items: stretch !important; margin: 0 !important; }
.header-tools-panel .btn { width: 100%; justify-content: flex-start; }
.backup-status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-muted); }
.report-scope-note { margin: 0.6rem 0 0; font-size: 0.8rem; line-height: 1.7; color: var(--text-muted); }
:is(button, a, input, select, textarea, summary, [role="button"]):focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.modal-overlay[role="dialog"]:focus { outline: none; }
@media (max-width: 640px) {
  #file-preview-overlay .modal-card { padding: 1rem; }
  #file-preview-overlay .modal-card > div:nth-child(2) { flex-direction: column; }
  #file-preview-list { flex: 0 0 auto !important; max-height: 120px; border-right: 0 !important; }
  #file-preview-stage { min-height: 160px; }
  .header-actions { gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { transition: none; }
}

