/* Publications specific */
.ocrdoe-pub-card {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}

.ocrdoe-pub-meta {
    font-size: 13px;
    color: #444;
}

.ocrdoe-thumb {
    border: 2px solid #d2d2d2;
}

.ocrdoe-thumb.is-active {
    border: 2px solid green;
}

/* Grid 2 colunas responsivo */
.ocr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 colunas iguais */
    gap: 16px;
    align-items: stretch;
    min-height: 60vh;
}

@media (max-width: 992px) {
    .ocr-grid {
        grid-template-columns: 1fr;
        /* empilha no mobile */
        min-height: 70vh;
    }
}

/* Coluna da imagem: toolbar + área pan/zoom */
.ocr-col--img {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 60vh;
}

.ocr-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.ocr-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    font: inherit;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.ocr-btn:active {
    transform: scale(0.98);
}

/* Área de pan/zoom: evita "vazar" */
.ocr-panzoom {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    /* <— impede ultrapassar a coluna */
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    /* altura mínima para facilitar o uso do pan/zoom */
    min-height: 50vh;
    touch-action: none;
    /* necessário para pinch/drag suave no mobile */
}

/* Imagem pan/zoom */
.ocr-img {
    transform-origin: 0 0;
    /* facilita o cálculo do clamp */
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    max-width: none;
    /* importante: não limitar pela largura do container */
    max-height: none;
    display: block;
}

/* Coluna do texto */
.ocr-col--text {
    min-height: 60vh;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    overflow: auto;
}

.ocr-text {
    margin: 0;
    padding: 12px;
    white-space: pre-wrap;
    /* mantém quebras e permite wrap */
    word-break: break-word;
}

.ocrdoe label {
    font: 14px "OpenSans-Semibold", Helvetica, Arial, sans-serif;
    margin-bottom: 0;
}

.ocrdoe .gap-3 {
    gap: 24px;
}

.ocrdoe .gap-3 {
    gap: 24px;
}

.ocrdoe .form-group {
    margin-bottom: 0 !important;
}

.ocrdoe .card-deck {
    display: flex !important;
    flex-direction: column !important;
}

.ocrdoe-doc a:hover,
.ocrdoe-tab:hover {
    background: #055a26 !important;
    color: #FFF !important;
}

.ocrdoe-badge,
.ocrdoe-thumb__lbl,
.ocrdoe-modal .d-none {
    display: none !important;
}

.ocrdoe label {
    font: 14px "OpenSans-Semibold", Helvetica, Arial, sans-serif;
    margin-bottom: 0;
}

.ocrdoe .gap-3 {
    gap: 24px;
}

.ocrdoe .gap-3 {
    gap: 24px;
}

.ocrdoe .form-group {
    margin-bottom: 0 !important;
}

.ocrdoe .card-deck {
    display: flex !important;
    flex-direction: column !important;
}

.ocrdoe-modal .ocr-text {
    font: 18px "OpenSans-Semibold", Helvetica, Arial, sans-serif;
    font-family: serif;
}

.ocrdoe-modal .btn-success:hover {

    background: #055a26 !important;
    color: #FFF !important;
}
