/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Keep the document comparison scrollable while the review controls stay in view. */
.modal-box:has(.credential-review-panel, .credential-summary-panel) {
  max-height: calc(100dvh - 3rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-block: 1.5rem;
}
.modal-box:has(.credential-review-panel, .credential-summary-panel) > turbo-frame {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.credential-review-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100dvh - 6rem);
}
.credential-review-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: .5rem;
}
.credential-review-controls {
  flex-shrink: 0;
  border-top: 1px solid var(--color-base-300);
  padding-top: .75rem;
  margin-top: .75rem;
}
.credential-review-controls .fieldset { padding-block: 0; }
.credential-review-controls textarea { min-height: 4rem; }
@media (max-height: 550px) {
  .credential-review-panel { overflow-y: auto; }
  .credential-review-scroll { flex-shrink: 0; overflow: visible; }
}

.credential-summary-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100dvh - 6rem);
}
.credential-summary-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: .5rem;
}
