
/* CORRECTO_BS51_PRO_LAYOUT */

.bs50-overlay {
  padding: 18px;
  backdrop-filter: blur(5px);
}

.bs50-dialog {
  display: flex;
  flex-direction: column;
  height: min(88dvh, 850px);
  max-height: 88dvh;
  overflow: hidden;
  padding: 54px 22px 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.bs50-dialog > .bs50-root {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 14px 16px;
}

.bs50-dialog .bs50-content:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.bs50-dialog .bs50-top,
.bs50-dialog .bs50-info,
.bs50-dialog .bs50-search,
.bs50-dialog .bs50-nav,
.bs50-dialog .bs50-note {
  flex-shrink: 0;
}

.bs50-dialog .bs50-table-scroll {
  flex: 1 1 auto;
  min-height: 120px;
  overflow: auto;
  border: 1px solid #345171;
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: #527599 #11233a;
}

.bs50-dialog .bs50-table {
  margin: 0;
}

.bs50-dialog .bs50-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0d2139;
  box-shadow: 0 1px 0 #44617e;
}

.bs50-table tr:nth-child(even) {
  background: rgba(255,255,255,.025);
}

.bs50-table tr:hover {
  background: rgba(90,150,220,.12);
}

.bs50-dialog .bs50-negative {
  color: #ff8d99 !important;
}

.bs50-dialog .bs50-positive {
  color: #77e5af !important;
}

.bs50-close {
  right: 18px;
  top: 10px;
  background: #254768;
  border-color: #6787a7;
  font-weight: 600;
  z-index: 3;
}

.bs51-export {
  background: #176c69;
  border-color: #3baba3;
  white-space: nowrap;
}

.bs51-export:hover {
  background: #20827d;
}

.bs50-dialog .bs50-nav {
  padding-top: 12px;
  border-top: 1px solid #2d4764;
}

@media (max-width: 600px) {
  .bs50-overlay {
    padding: 6px;
  }
  .bs50-dialog {
    height: 96dvh;
    max-height: 96dvh;
    padding: 47px 8px 10px;
  }
  .bs50-dialog > .bs50-root {
    padding: 10px;
  }
  .bs50-dialog .bs50-nav {
    gap: 6px;
  }
  .bs51-export {
    flex-basis: 100%;
  }
}

/* Within the existing sync modal, preserve BS39 scrolling. */
.sync-pro-extra .bs50-table-scroll {
  max-height: 350px;
  overflow: auto;
}

.sync-pro-extra .bs50-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0d2139;
}
