/* version 1 indicator of the Google Drive synchronisation in the top bar (app/layout.php, google_drive/i_data_sync.php)
             data-staat : laden, opslaan (blinking) / gewijzigd (orange) / bijgewerkt (green) / lezen (grey) / fout (red)
             on B (launcher) the javascript of the launcher changes data-staat, text and title while the page is open
             on a phone only the dot is shown
   version 2 the indicator is a button (role="button") : click = "Bijwerken" now, hand cursor, lighter on hover, focus ring
   version 3 .start-link : invisible strip left of the logo (the gutter), on hover or focus it shows "Start" (google_drive/start.php)
   version 4 "Start" never covers the logo : wide screen (room left of the bar) left of the logo with a gap,
             narrower screen just below the top bar
   version 5 the banner (.sync-melding) keeps its line breaks (short lines), button "Vernieuwen" in it (.sync-melding-knop) */
.sync-melding { white-space: pre-line; }
.sync-melding-knop {
  margin-top: 8px; padding: 6px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: var(--slecht, #c5221f); font: inherit; font-weight: 700;
}
.sync-melding-knop:hover { background: #fde8e7; }
.kopbalk-binnen { position: relative; }
.start-link {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--gutter, 16px); z-index: 2;
  color: #fff; text-decoration: none; font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.start-link span {
  position: absolute; left: 4px; top: calc(100% + 6px);
  padding: 6px 12px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .15s;
  background: var(--ah-blauw-donker, #00658f); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
@media (min-width: 1500px) {
  /* the strip reaches 80px into the empty space left of the bar, "Start" ends 10px before the logo */
  .start-link { left: -80px; width: calc(80px + var(--gutter, 16px)); }
  .start-link span { left: auto; right: calc(var(--gutter, 16px) + 10px); top: 50%; transform: translateY(-50%); }
}
.start-link:hover, .start-link:focus-visible { color: #fff; outline: none; }
.start-link:hover span, .start-link:focus-visible span { opacity: 1; pointer-events: auto; }
.start-link:focus-visible span { outline: 2px solid #fff; outline-offset: 2px; }
.sync-ind {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: default;
}
.sync-ind-punt {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .3);
}
.sync-ind[data-staat="bijgewerkt"] .sync-ind-punt { background: #5ee07a; }
.sync-ind[data-staat="gewijzigd"] .sync-ind-punt { background: var(--matig-accent, #f29900); }
.sync-ind[data-staat="lezen"] .sync-ind-punt { background: #c5d1dd; }
.sync-ind[data-staat="fout"] { background: var(--slecht, #c5221f); }
.sync-ind[data-staat="laden"] .sync-ind-punt,
.sync-ind[data-staat="opslaan"] .sync-ind-punt { animation: sync-puls 1s ease-in-out infinite; }
@keyframes sync-puls { 50% { opacity: .25; } }
.sync-ind[role="button"] { cursor: pointer; user-select: none; transition: background .15s; }
.sync-ind[role="button"]:hover { background: rgba(255, 255, 255, .3); }
.sync-ind[data-staat="fout"][role="button"]:hover { background: #a51c19; }
.sync-ind[role="button"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 479px) {
  .sync-ind { padding: 6px; }
  .sync-ind-tekst { display: none; }
}
@media print { .sync-ind, .start-link { display: none; } }
