/******************************************************
 *  image_viewer_panel
 ******************************************************/

#wisePanelImageViewerBody {
    width: 100%;
    height: 100%;
    background: #e5e5e5;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#wisePanelImageViewerBody::-webkit-scrollbar {
    display: none;
}

#wisePanelImageViewerView {
    width: 100%;
    height: 100%;
}

.wisePanelImageViewerViewContents {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#wisePanelImageViewerViewMainContentContainer {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#wisePanelImageViewerViewMainContentArea {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#wisePanelImageViewerContainer {
    width: 100%;
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #777;
}

#wisePanelImageViewerContainer::-webkit-scrollbar {
    display: none;
}

#wisePanelImageViewerZoomStage {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: max-content;
    height: max-content;
    min-width: 100%;
    min-height: 100%;
    overflow: visible;
    transform-origin: top left;
}

.wisePanelImageViewerContentContainer {
    position: relative;
    display: inline-block;
}

.wisePanelImageViewerContentContainer.hidden {
    display: none;
}


/******************************************************
 *  Image
 ******************************************************/

#wisePanelImageViewerImageContainer {
    position: relative;
}

#wisePanelImageViewerImageCanvas {
    display: block;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}


/******************************************************
 *  PDF
 ******************************************************/

#wisePanelImageViewerPdfContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.wisePanelImageViewerPdfPage {
    position: relative;
    display: block;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.wisePanelImageViewerPdfCanvas {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    background: #fff;
    z-index: 1;
}

.wisePanelImageViewerTextLayer {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    line-height: 1;
    transform-origin: top left;
    pointer-events: auto;
    z-index: 2;
}

.wisePanelImageViewerTextLayer span {
    position: absolute;
    white-space: pre;
    color: transparent;
    cursor: text;
    transform-origin: top left;
}

.wisePanelImageViewerTextLayer ::selection {
    background: rgba(0, 120, 255, 0.35);
}

#wisePanelImageViewerPdfContainer .wisePanelImageViewerTextLayer,
#wisePanelImageViewerPdfContainer .wisePanelImageViewerTextLayer * {
    user-select: text !important;
    -webkit-user-select: text !important;
}

#wisePanelImageViewerPdfContainer .wisePanelImageViewerTextLayer span {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

#wisePanelImageViewerPdfContainer .wisePanelImageViewerTextLayer span::selection {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: rgba(0, 120, 255, 0.35);
}

#wisePanelImageViewerPdfContainer .wisePanelImageViewerTextLayer span::-moz-selection {
    color: transparent !important;
    background: rgba(0, 120, 255, 0.35);
}