/* FieldBase Manual Sync Controls - rev 1.6.8.3.26 */
.fieldbase-manual-sync-card[hidden]{display:none!important}
.fieldbase-manual-sync-card:not(.is-dev-visible){display:none!important}
.fieldbase-manual-sync-card.is-dev-visible{display:block}
.fieldbase-manual-sync-card .sync-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:14px}
.fieldbase-manual-sync-card .sync-status-tile{border:1px solid rgba(148,163,184,.26);border-radius:18px;padding:14px;background:rgba(15,23,42,.58);box-shadow:0 12px 28px rgba(2,6,23,.18)}
.fieldbase-manual-sync-card .sync-status-tile span{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:rgba(148,163,184,.95);font-weight:800;margin-bottom:5px}
.fieldbase-manual-sync-card .sync-status-tile strong{display:block;font-size:1rem;color:var(--text-primary,#f8fafc)}
.fieldbase-manual-sync-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}
.fieldbase-manual-sync-status{margin:12px 0 0;color:rgba(226,232,240,.9);font-weight:700;min-height:1.4em}
.fieldbase-manual-sync-status.is-working{color:#93c5fd}
.fieldbase-manual-sync-status.is-success{color:#86efac}
.fieldbase-manual-sync-status.is-error{color:#fca5a5}
.fieldbase-manual-sync-note{margin-top:10px;color:rgba(203,213,225,.86);font-size:.95rem;line-height:1.5}
.fieldbase-manual-sync-card button[disabled]{opacity:.62;cursor:not-allowed}
body.light-mode .fieldbase-manual-sync-card .sync-status-tile,
html.light-mode .fieldbase-manual-sync-card .sync-status-tile{background:rgba(255,255,255,.82);border-color:rgba(15,23,42,.12);box-shadow:0 10px 24px rgba(15,23,42,.08)}
body.light-mode .fieldbase-manual-sync-status,
html.light-mode .fieldbase-manual-sync-status,
body.light-mode .fieldbase-manual-sync-note,
html.light-mode .fieldbase-manual-sync-note{color:#334155}


/* FieldBase Patch 1.6.8.3.125 - Manual Cloud Sync mobile overflow guard */
.fieldbase-manual-sync-card,
.fieldbase-manual-sync-card *{
  box-sizing:border-box;
}
.fieldbase-manual-sync-card{
  max-width:100%;
  overflow:hidden;
}
.fieldbase-manual-sync-card .sync-status-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));
}
.fieldbase-manual-sync-card .sync-status-tile{
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.fieldbase-manual-sync-card .sync-status-tile strong,
.fieldbase-manual-sync-status,
.fieldbase-manual-sync-note{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media (max-width: 560px){
  .fieldbase-manual-sync-card .sync-status-grid{
    grid-template-columns:1fr;
  }
  .fieldbase-manual-sync-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .fieldbase-manual-sync-actions .primary-btn,
  .fieldbase-manual-sync-actions .outline-btn,
  .fieldbase-manual-sync-actions button{
    width:100%;
  }
}
