
/* CORRECTO_SYNC_DETAILS_BS36B */
.sync-pro-active .sync-result-dialog {
  width: min(790px, calc(100vw - 24px));
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sync-pro-extra {
  margin-top: 20px;
  border-top: 1px solid #30435e;
  padding-top: 18px;
  text-align: left;
}

.sync-pro-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #69afff;
}

.sync-pro-meta {
  margin: 8px 0 15px;
  font-size: 12px;
  line-height: 1.6;
  color: #a9bdd4;
  overflow-wrap: anywhere;
}

.sync-pro-section {
  padding: 19px 0;
  border-top: 1px solid #293d58;
}

.sync-pro-section h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 16px;
}

.sync-pro-note {
  margin: 0 0 13px;
  color: #adbed4;
  font-size: 12px;
  line-height: 1.5;
}

.sync-pro-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.sync-pro-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid #304666;
  border-radius: 12px;
  background: #142640;
}

.sync-pro-stat span {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: #b4c5d8;
}

.sync-pro-stat strong {
  display: block;
  margin-top: 7px;
  font-size: 21px;
  color: #ffffff;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.sync-pro-info {
  margin: 12px 0;
  padding: 13px 15px;
  border: 1px solid #23625a;
  border-radius: 11px;
  background: #12352f;
  color: #c3f7e5;
  font-size: 12px;
  line-height: 1.6;
}

.sync-pro-warning {
  border-color: #83633e;
  background: #3b2d22;
  color: #ffe0a8;
}

@media (max-width: 650px) {
  .sync-pro-active .sync-result-dialog {
    max-height: 94dvh;
    padding: 18px 13px;
  }

  .sync-pro-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sync-pro-stat strong {
    font-size: 18px;
  }
}


/* CORRECTO_BS37B_VISUAL_POLISH */

.sync-pro-active .sync-result-dialog {
  width: min(820px, calc(100vw - 28px));
  max-height: 90vh;
  max-height: 90dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #527092 #101d31;
  border: 1px solid #36506f;
  border-radius: 22px;
  box-shadow: 0 32px 90px rgba(0,0,0,.48);
}

.sync-pro-active #syncResultTitle {
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.25;
  letter-spacing: -.3px;
}

.sync-pro-active #syncResultSubtitle {
  line-height: 1.55;
}

.sync-pro-active #syncResultGrid {
  gap: 9px;
}

.sync-pro-active #syncResultGrid > div {
  min-width: 0;
  border-radius: 13px;
  border-color: #344c69;
  background: #152943;
}

.sync-pro-active .sync-pro-extra {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #344966;
}

.sync-pro-active .sync-pro-eyebrow {
  letter-spacing: 1.4px;
  font-weight: 800;
  color: #68b4ff;
}

.sync-pro-active .sync-pro-meta {
  margin: 8px 0 14px;
  line-height: 1.6;
  color: #adc2d8;
  overflow-wrap: anywhere;
}

.sync-pro-active .sync-pro-section {
  padding: 20px 0;
  border-color: #2e4360;
}

.sync-pro-active .sync-pro-section h3 {
  font-size: 17px;
  line-height: 1.3;
}

.sync-pro-active .sync-pro-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}

.sync-pro-active .sync-pro-stat {
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid #354e70;
  border-radius: 13px;
  background: #162a46;
}

.sync-pro-active .sync-pro-stat span {
  color: #b8c9dd;
  font-size: 11px;
  line-height: 1.45;
}

.sync-pro-active .sync-pro-stat strong {
  margin-top: 9px;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.sync-pro-active .sync-pro-info {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.65;
}

.sync-pro-active .sync-pro-warning {
  border-left: 4px solid #e8b55d;
  background: #3b2e24;
  color: #ffe1af;
}

/* Sticky action only when the existing last child is a button
   or the existing actions container. */
.sync-pro-active .sync-result-dialog > button:last-child,
.sync-pro-active .sync-result-dialog > .sync-result-actions:last-child {
  position: sticky;
  bottom: 0;
  z-index: 3;
}

@media (max-width: 800px) {
  .sync-pro-active .sync-pro-stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 480px) {
  .sync-pro-active .sync-result-dialog {
    width: calc(100vw - 12px);
    max-height: 95dvh;
    padding: 18px 12px;
    border-radius: 16px;
  }

  .sync-pro-active #syncResultTitle {
    font-size: 19px;
  }

  .sync-pro-active #syncResultGrid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .sync-pro-active .sync-pro-section {
    padding: 16px 0;
  }

  .sync-pro-active .sync-pro-stat {
    min-height: 78px;
    padding: 11px;
  }

  .sync-pro-active .sync-pro-stat strong {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sync-pro-active * {
    scroll-behavior: auto !important;
  }
}


/* CORRECTO_BS39_MODAL_LAYOUT_FIX */

/*
  Desktop:
  - zaglavlje i osnovni brojevi ostaju na mestu
  - samo detalji se skroluju
  - dugme U REDU ostaje na dnu
  - dugme nikada ne prekriva kartice
*/

.sync-pro-active .sync-result-dialog {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(820px, calc(100vw - 28px));
  height: min(88dvh, 800px);
  max-height: 88dvh;
  overflow: hidden;
  padding: 22px 26px 18px;
}

.sync-pro-active .sync-result-dialog >
  :not(.sync-pro-extra) {
  flex-shrink: 0;
}

.sync-pro-active .sync-pro-extra {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #527092 #101d31;
  scrollbar-width: thin;
  margin-top: 16px;
  padding: 16px 5px 18px 0;
  border-top: 1px solid #344966;
}

/* Footer action - never sticky over content */
.sync-pro-active .sync-result-dialog >
  .sync-result-ok {
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto;
  align-self: center;
  z-index: auto;
  min-height: 45px;
  min-width: 170px;
  margin: 14px auto 0;
  padding: 10px 22px;
  border-radius: 11px;
  box-shadow: none;
}

/* The detail section never sits under the button */
.sync-pro-active .sync-pro-section:last-of-type {
  padding-bottom: 16px;
}

.sync-pro-active .sync-pro-stats {
  align-items: stretch;
}

.sync-pro-active .sync-pro-stat {
  box-sizing: border-box;
}

/* On small screens use normal page-like dialog scrolling.
   No floating / sticky buttons over statistics. */
@media (max-width: 600px),
       (max-height: 720px) {

  .sync-pro-active .sync-result-dialog {
    display: block;
    box-sizing: border-box;
    height: auto;
    max-height: 94dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 14px;
    scrollbar-gutter: auto;
  }

  .sync-pro-active .sync-pro-extra {
    display: block;
    min-height: auto;
    max-height: none;
    overflow: visible;
    margin-top: 18px;
    padding-top: 16px;
  }

  .sync-pro-active .sync-result-dialog >
    .sync-result-ok {
    position: static !important;
    display: block;
    margin: 22px auto 4px;
    min-width: 160px;
  }
}

@media (max-width: 420px) {
  .sync-pro-active #syncResultGrid {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }

  .sync-pro-active .sync-pro-stats {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }

  .sync-pro-active .sync-result-dialog {
    width: calc(100vw - 12px);
    max-height: 96dvh;
    padding: 17px 12px;
  }
}
