/* Tùy biến nhỏ trên nền AdminLTE 4 */

/* Dải nhãn môi trường (App:EnvironmentLabel), ví dụ DEV */
.environment-label {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    padding: 2px 16px;
    background: #fd7e14;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    pointer-events: none;
}

.app-toasts {
    z-index: 1090;
}

.header-search {
    max-width: 420px;
}

.table-documents td,
.table-documents th {
    vertical-align: middle;
}

.table-documents .col-title {
    min-width: 280px;
    max-width: 520px;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-number {
    font-family: var(--bs-font-monospace);
    white-space: nowrap;
}

/* ---------- PDF viewer ---------- */
.pdf-viewer-card {
    height: calc(100vh - 170px);
    min-height: 480px;
}

.pdf-viewer-body {
    overflow: auto;
    background: var(--bs-secondary-bg);
    outline: none;
}

.pdf-canvas-wrapper {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.pdf-canvas-wrapper canvas {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    background: #fff;
}

.pdf-page-input {
    width: 120px;
}

.pdf-zoom-label {
    min-width: 58px;
}

.metadata-panel {
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .pdf-viewer-card {
        height: 70vh;
    }

    .metadata-panel {
        max-height: none;
    }
}

/* ---------- Review / AI suggestion ---------- */
.ai-suggestion {
    border-left: 3px solid var(--bs-success);
    background: var(--bs-success-bg-subtle);
    border-radius: .25rem;
    padding: .25rem .5rem;
    font-size: .875rem;
}

.ai-badge {
    font-size: .7rem;
    letter-spacing: .02em;
}

.content-preview {
    white-space: pre-wrap;
    font-size: .85rem;
    max-height: 360px;
    overflow-y: auto;
}

.chart-box {
    position: relative;
    height: 300px;
}

.login-box {
    width: 400px;
    max-width: 94vw;
}

.json-values {
    font-family: var(--bs-font-monospace);
    font-size: .75rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 420px;
}
