.sf-metadata-ocr-result-popover .popover {
  max-width: 500px;
  width: 500px;
  height: 100%;
  overflow: hidden;
}

.sf-metadata-ocr-result-popover .popover-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sf-metadata-ocr-result-popover .sf-metadata-ocr-result-popover-header {
  height: 48px;
  border-bottom: 1px solid rgba(0, 40, 100, .12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.sf-metadata-ocr-result-popover .sf-metadata-ocr-result-popover-header h5 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0;
}

.sf-metadata-ocr-result-popover .sf-metadata-ocr-result-popover-body {
  flex: 1 1 auto;
  padding: 0;
  overflow: hidden;
}

.sf-metadata-ocr-result-popover .sf-metadata-ocr-file-loading-container {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
}

.sf-metadata-ocr-result-popover .sf-metadata-ocr-file-loading-container .loading-tip {
  margin: 0;
  height: 16px;
  width: 16px;
  display: block;
  flex-shrink: 0;
}

.sf-metadata-ocr-result-popover .sf-metadata-ocr-file-loading-container .sf-metadata-ocr-file-loading-tip-text {
  color: #666;
  margin-left: 8px;
}

.sf-metadata-ocr-result-popover .sf-metadata-ocr-result-display-container {
  width: 100%;
  height: 100%;
  max-height: inherit;
  padding: 16px;
  overflow: auto;
  white-space: pre-line;
}

.sf-metadata-ocr-result-popover .sf-metadata-ocr-result-display-container.empty-tip {
  color: #666;
  margin: 0;
  display: block;
}

.sf-metadata-ocr-result-popover .sf-metadata-ocr-result-popover-footer {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 12px;
  border-top: 1px solid rgba(0, 40, 100, .12);
}
