/* Dropbox / Datenerfassung */
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.sync-panel { padding: clamp(20px, 4vw, 30px); margin-bottom: 20px; }
.sync-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.sync-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; max-width: 820px; }
.sync-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sync-step { background: #f8fafb; border: 1px solid #edf0f2; border-radius: 16px; padding: 16px; display: grid; gap: 9px; align-content: start; }
.step-title { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; }
.step-number { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: white; font-size: 12px; font-weight: 800; }
.sync-step label { color: var(--muted); font-size: 12px; font-weight: 700; }
.text-input { width: 100%; min-width: 0; border: 1px solid var(--line); background: white; color: var(--text); border-radius: 12px; padding: 10px 12px; font: inherit; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row .text-input, .search-row .wide-select { flex: 1 1 auto; }
.wide-select { width: 100%; margin-top: 0; }
.sync-meta { color: var(--muted); font-size: 12px; line-height: 1.4; }
.sync-status { margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: #f8fafb; border: 1px solid #edf0f2; color: var(--muted); font-size: 13px; }
.sync-status.good { background: #e9f7f1; border-color: #cdebdc; color: var(--good); }
.sync-status.warn { background: #fff8e7; border-color: #f1ddb0; color: #7a5216; }
.sync-status.bad { background: #fff0ee; border-color: #f2ceca; color: var(--bad); }
.entry-list { display: grid; gap: 9px; margin-top: 16px; }
.entry-row { display: grid; grid-template-columns: 1fr minmax(130px, 190px); gap: 14px; align-items: center; padding: 13px 14px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.entry-info { min-width: 0; display: grid; gap: 3px; }
.entry-info strong { font-size: 14px; }
.entry-info span, .entry-info small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.entry-input-wrap { display: grid; grid-template-columns: auto 1fr; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: #fbfcfd; }
.entry-input-wrap span { color: var(--muted); font-weight: 800; }
.entry-input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; padding: 11px 0; text-align: right; font: inherit; font-weight: 750; font-variant-numeric: tabular-nums; }
.save-bar { display: flex; justify-content: flex-end; margin-top: 16px; position: sticky; bottom: 10px; pointer-events: none; }
.save-bar .button { pointer-events: auto; box-shadow: 0 10px 24px rgba(17,24,39,.16); }
.dropbox-note { padding: 10px 12px; border-radius: 12px; background: #f1f5ff; color: #41536f; font-size: 12px; line-height: 1.45; }

@media (max-width: 1000px) {
  .sync-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { flex-wrap: wrap; }
  .topbar-actions { width: 100%; }
  .topbar-actions .button { flex: 1 1 0; }
  .sync-head { align-items: flex-start; }
  .search-row { align-items: stretch; flex-wrap: wrap; }
  .search-row .button { flex: 1 1 auto; }
  .entry-row { grid-template-columns: 1fr; }
  .entry-input-wrap { width: 100%; }
  .save-bar .button { width: 100%; }
}